*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
1 2006-06-17 Kim F. Storm <storm@cua.dk>
2
3 * dispnew.c (update_frame): Check for input pending on entry.
4 (update_window, update_frame_1): Break loop if input is detected.
5
6 2006-06-16 Francis Litterio <flitterio@gmail.com>
7
8 * xterm.c (x_check_expected_move, handle_one_xevent)
9 (x_set_offset, x_check_fullscreen): Extensive changes to make
10 frame positioning deterministic under X.
11
12 * xterm.h (x_output): Added members left_before_move and
13 top_before_move. Removed members expected_left and expected_top.
14
15 2006-06-16 Kim F. Storm <storm@cua.dk>
16
17 * dispextern.h (struct it): Add union to iterator stack to save
18 image, composition, and stretch specific paramters.
19
20 * xdisp.c (next_overlay_string): Fix assert.
21 (push_it, pop_it): Handle composition and stretch specific values.
22 Only handle it->slice in image (for now).
23 (back_to_previous_visible_line_start): Continue search if newline is
24 part of a compisition. Simplify.
25 (reseat_1): Set it->object to buffer.
26 (set_iterator_to_next): Set it->object to string or buffer, when
27 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
28 (next_element_from_composition): Set it->object to buffer if not
29 from string.
30 (set_cursor_from_row): Only save start of string if not already
31 done to handle multiple strings in a row.
32
33 * .gdbinit (pitx): Show composition parameters.
34 (pgx, pg): New commands to print a glyph structure.
35 (pgi, pgn): New commands to print specific/next glyph.
36 (pgrowx, pgrow): New commands to print all glyphs in a row.
37
38 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
39
40 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
41 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
42
43 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
44 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
45 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
46 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
47 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
48 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
49 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
50 Services functions to get size of main display in pixels.
51
52 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
53
54 * xdisp.c (back_to_previous_visible_line_start): Reset
55 it->continuation_lines_width.
56
57 2006-06-14 Richard Stallman <rms@gnu.org>
58
59 * eval.c (Fdefconst): Mark variable as risky.
60
61 * callproc.c (Fcall_process): Doc fix.
62
63 * window.c (adjust_window_trailing_edge): Don't break out of the loop
64 because there's no next window, if there are parallel windows.
65 Do break out when WINDOW is nil.
66
67 2006-06-14 Kim F. Storm <storm@cua.dk>
68
69 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
70 iterator stack (instead of hardcoded number). Increase from 2 to
71 4 to make room for propertized overlay strings before and after a
72 display string, image or composition.
73 (struct it): Add image_id and method members to iterator stack.
74
75 * xdisp.c (init_from_display_pos): Don't set it->method and
76 overlay_string_index after pop_it. Add asserts.
77 (handle_stop): Look for overlay strings around a display string,
78 image, or composition. Handle properties on those strings.
79 (next_overlay_string): Don't set string, pos or method after pop_it.
80 (get_overlay_strings_1): Split from get_overlay_strings; don't
81 modify it if no overlay strings are found.
82 (get_overlay_strings): Use get_overlay_strings_1. Always set
83 it->string and it->method.
84 (push_it): Push it->image_id and it->method. Push it->object
85 instead of it->string if method is GET_FROM_IMAGE.
86 (pop_it): Pop it->image_id and it->method. Ppo it->object
87 instead of it->string if method is GET_FROM_IMAGE.
88 Reset it->current.string_pos if popped it->string is nil.
89 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
90 whether a given change was correct; but the change is correct.
91 Clear it->string_from_display_prop_p.
92 (set_iterator_to_next): Rely on it->method and it->image_id from
93 iterator stack, instead of setting them explicitly after pop_it.
94
95 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
96 negative time forces redisplay even when input is available.
97 (Fsit_for): Doc fix.
98
99 2006-06-13 Kim F. Storm <storm@cua.dk>
100
101 * dispnew.c: Modify preemptive redisplay to be based on periodic
102 checks for input.
103 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
104 (Vredisplay_preemption_period): New variable.
105 (syms_of_display): DEFVAR_LISP and initialize it.
106 (preemption_period, preemption_next_check): New variables.
107 (update_frame, update_single_window): Initialize them based on
108 Vredisplay_preemption_period if !force_p.
109 (update_window, update_frame_1): Use them to determine when to
110 check for input.
111
112 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
113
114 * lread.c (read_escape): Provide a Unicode character escape
115 syntax; \u followed by exactly four or \U followed by exactly
116 eight hex digits in a comment or string is read as a Unicode
117 character with that code point.
118
119 2006-06-09 Eli Zaretskii <eliz@gnu.org>
120
121 * window.c (window_scroll_pixel_based): Signal "Beginning of
122 buffer" when scroll-down at the beginning of an empty buffer.
123
124 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
125
126 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude
127 0x7f from ASCII range.
128
129 2006-06-05 Jason Rumney <jasonr@gnu.org>
130
131 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
132 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
133 (x_scroll_bar_report_motion): Remove workarounds for
134 versions of Windows NT < 3.51.
135 [!SIF_ALL]: Remove.
136 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
137 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
138
139 2006-06-04 David Kastrup <dak@gnu.org>
140
141 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
142 `sit-for'.
143
144 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
145
146 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
147
148 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
149
150 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
151 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
152 [USE_MAC_TSM]: Likewise.
153 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
154 (Qbefore_string) [USE_MAC_TSM]: Add extern.
155 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
156 ActivateTSMDocument/DeactivateTSMDocument.
157 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
158 (mac_handle_window_event) [USE_MAC_TSM]: Handle
159 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
160 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
161 (install_window_handler) [USE_MAC_TSM]: Install it. Register
162 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
163 (keycode_to_xkeysym_table): Add entry for f16.
164 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
165 before/after passing keystroke event to toolbox dispatcher.
166 (init_tsm) [USE_MAC_TSM]: New function.
167 (mac_initialize) [USE_MAC_TSM]: Call it.
168 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
169
170 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
171
172 2006-06-02 John Paul Wallington <jpw@gnu.org>
173
174 * xfns.c (x_set_name_internal): Set icon to `text', derived from
175 name, when frame's icon_name isn't a string rather than only when
176 it is nil.
177
178 2006-06-03 Eli Zaretskii <eliz@gnu.org>
179
180 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
181 and not nil.
182
183 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
184
185 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
186 string.
187
188 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
189
190 * xdisp.c (next_element_from_composition): Set it->object to
191 it->string if composition is coming from string.
192 (set_cursor_from_row): Don't return 0 unless row displays a
193 continued line.
194 (dump_glyph): Dump composite glyph.
195
196 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
197
198 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
199
200 2006-06-01 Richard Stallman <rms@gnu.org>
201
202 * window.c (Fsplit_window): Doc fix.
203
204 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
205
206 * process.c (deleted_pid_list): New variable to store the pids
207 of deleted processes. Declare it only if SIGCHLD is defined.
208 (init_process): Initialize it.
209 (syms_of_process): Staticpro it.
210 (Fdelete_process): Add pid of the deleted process to it. Check after
211 the addition and before the kill if the process is already stopped,
212 in which case it is deleted from the list and not killed.
213 (sigchld_handler): Define it only if SIGCHLD is. Search the process
214 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
215 Original idea by Stefan Monnier.
216
217 2006-06-01 Kim F. Storm <storm@cua.dk>
218
219 * dispnew.c (sit_for): Perform redisplay even if input is pending
220 when redisplay-dont-pause is non-nil.
221
222 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223
224 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
225 (XTread_socket): Remove obsolete comment.
226
227 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
228
229 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
230 menu-bar-open.
231
232 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
233
234 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
235 menu-bar-open.
236
237 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
238
239 2006-05-31 Juri Linkov <juri@jurta.org>
240
241 * minibuf.c (Vhistory_add_new_input): New variable.
242 (read_minibuf): Use it.
243 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
244 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
245
246 2006-05-31 Kim F. Storm <storm@cua.dk>
247
248 * process.c (select_wrapper): Add wrapper around select to work around
249 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
250 select called from wait_reading_process_output.
251
252 2006-05-30 Andreas Schwab <schwab@suse.de>
253
254 * xmenu.c (Fmenu_bar_start): Return a value.
255
256 2006-05-30 Richard Stallman <rms@gnu.org>
257
258 * coding.c (Ffind_operation_coding_system): Doc fix.
259
260 2006-05-30 Eli Zaretskii <eliz@gnu.org>
261
262 * w32term.c (x_draw_hollow_cursor): Fix last change.
263
264 2006-05-29 Kim F. Storm <storm@cua.dk>
265
266 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
267
268 2006-05-29 Eli Zaretskii <eliz@gnu.org>
269
270 * coding.c (Ffind_operation_coding_system): Doc fix.
271
272 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
273
274 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
275 Call mac_set_font_info_for_selection if font panel is made visible.
276
277 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
278 (mac_font_panel_visible_p, mac_show_hide_font_panel)
279 [USE_MAC_FONT_PANEL]: New functions.
280 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
281 immediately if font panel is not visible.
282
283 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
284 Add externs.
285
286 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
287
288 * search.c (matcher_overflow): Mark as NO_RETURN.
289
290 * xterm.c (x_connection_closed): Likewise.
291
292 * sysdep.c (croak): Likewise.
293
294 * sound.c (sound_perror, alsa_sound_perror): Likewise.
295
296 * lisp.h (die, nsberror): Likewise.
297
298 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
299
300 * sound.c (alsa_open, alsa_configure, alsa_write): Move
301 assignment to err out of if-statement.
302
303 * gtkutil.c (menu_nav_ended): New function.
304 (create_menus): Connect menu_nav_ended to "selection-done" to fix
305 grabs.
306
307 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
308
309 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
310
311 * charset.h (invalid_character): Mark as NO_RETURN.
312
313 2006-05-29 Kenichi Handa <handa@m17n.org>
314
315 * coding.c (Ffind_operation_coding_system): Call a function by
316 safe_call1 instead of call1.
317
318 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
319
320 * window.c (struct saved_window): Add `dedicated'.
321 (Fset_window_configuration, save_window_save): Save/restore the
322 `dedicated' flag.
323
324 2006-05-28 Kim F. Storm <storm@cua.dk>
325
326 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
327 don't update w->cursor and return 0. Return 1 on success.
328 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
329 until it succeeds.
330
331 * dispextern.h (set_cursor_from_row): Update prototype.
332
333 2006-05-28 Kim F. Storm <storm@cua.dk>
334
335 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
336 parameters. Adjust x and width in case cursor in on a partially
337 visible stretch glyph on the left edge.
338 (erase_phys_cursor): Don't erase into left fringe/margin in case
339 previous cursor glyph is a partially visible stretch glyph on left.
340
341 * dispextern.h (get_phys_cursor_geometry): Update prototype.
342
343 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
344 cursor and erasing cursor on partially visible stretch glyph on left.
345 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
346
347 * macterm.c: Likewise.
348
349 * w32term.c: Likewise.
350
351 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
352
353 * macselect.c (mac_handle_apple_event):
354 Return errAEEventNotHandled if key binding is not found.
355
356 2006-05-26 Eli Zaretskii <eliz@gnu.org>
357
358 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
359 [__MINGW32__]: MinGW-specific declaration of `etext'.
360
361 * w32heap.c (etext, edata): Remove unused definitions.
362
363 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
364
365 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
366 Incorporate the exclusive file-opening functionality into the behavior
367 when OK-IF-ALREADY-EXISTS is nil.
368 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
369
370 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
371
372 * sound.c (alsa_configure): Move get period/buffer_size after
373 setting hwparams.
374
375 2006-05-26 Kenichi Handa <handa@m17n.org>
376
377 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
378 . BUFFER) in TARGET.
379
380 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
381
382 * image.c (png_load): Don't call fclose on NULL.
383
384 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
385
386 * fns.c (Fyes_or_no_p):
387 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
388 only seven args.
389
390 2006-05-25 Juri Linkov <juri@jurta.org>
391
392 * lisp.h (Fread_from_minibuffer): Decrement number of args.
393
394 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
395 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
396
397 * buffer.c (mode-line-format): Fix docstring.
398
399 2006-05-25 Richard Stallman <rms@gnu.org>
400
401 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
402
403 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
404
405 * puresize.h (BASE_PURESIZE): Increase to 1210000.
406
407 2006-05-24 Alan Mackenzie <acm@muc.de>
408
409 * lread.c (Vload_history): Enhance doc-string to say that the file
410 is the absolute truename of the loaded file.
411
412 * lread.c (Vafter_load_alist): doc-string: state that an element
413 now has a regexp to match file names, not a file name as such.
414
415 * lread.c (readevalloop): Call file-truename on the name for
416 load-history, except at preloading time.
417
418 * lread.c (Fload): At preloading time, preserve the extension of
419 the filename which goes into load-history. New var hist_file_name.
420
421 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
422 function do-after-load-evaluation.
423
424 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
425
426 * mac.c (ae_attr_table): New variable.
427 (syms_of_mac): Intern and staticpro its elements.
428 (mac_aelist_to_lisp): Also convert Apple event attributes.
429 (mac_ae_put_lisp): New function.
430 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
431
432 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
433
434 * macselect.c (Qemacs_suspension_id): New variable.
435 (syms_of_macselect): Intern and staticpro it.
436 (struct suspended_ae_info): New struct.
437 (deferred_apple_events, defer_apple_events)
438 (Fmac_process_deferred_apple_events): Use it.
439 (suspended_apple_events): New variable.
440 (mac_handle_apple_event_1): New function.
441 (mac_handle_apple_event): Use it. Don't process previously
442 suspended events.
443 (cleanup_suspended_apple_events, get_suspension_id)
444 (cleanup_all_suspended_apple_events): New functions.
445 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
446 at exit.
447 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
448 (Fmac_resume_apple_event): New defuns.
449 (syms_of_macselect): Defsubr them.
450
451 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
452 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
453
454 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
455 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
456 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
457 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
458 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
459 Likewise.
460 (typeUTF8Text, kEventParamWindowMouseLocation)
461 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
462 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
463
464 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
465
466 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
467 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
468 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
469 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
470 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
471 resource to backtranslate key with modifiers.
472 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
473
474 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
475
476 * xterm.c: Remove declarations already in xterm.h
477
478 * xterm.h: Add extern declarations for x_clear_errors,
479 x_fully_uncatch_errors, x_catching_errors and
480 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
481
482 2006-05-21 Richard Stallman <rms@gnu.org>
483
484 * xfaces.c (best_matching_font): Abort for best == NULL
485 before we start to use it.
486
487 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
488
489 2006-05-20 Kim F. Storm <storm@cua.dk>
490
491 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
492
493 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
494
495 * macterm.c (convert_fn_keycode): Fix last change.
496
497 2006-05-19 Eli Zaretskii <eliz@gnu.org>
498
499 * w32.c (init_environment): Perform the processing of environment
500 variables on a copy of default variables and their values, not on
501 the original. Simplify code that calls ExpandEnvironmentStrings
502 and make buf1[] and buf2[] more visible for easier debugging.
503
504 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
505
506 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
507
508 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
509
510 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
511
512 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
513 Forward keyUp events to toolbox_dispatcher.
514
515 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
516
517 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
518
519 * config.in: Regenerated (HAVE_ALSA).
520
521 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
522 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
523 (snd_error_quiet, alsa_init): New functions.
524 (vox_init): Return 0 if unable to open device.
525 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
526 a fallback.
527 (struct sound_device): Add period_size.
528 (wav_play, au_play): Use period_size if set.
529
530 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
531 (ALL_CFLAGS): Add CFLAGS_SOUND
532
533 2006-05-18 Kenichi Handa <handa@m17n.org>
534
535 * callproc.c (Fcall_process): Reject encoding arguments by
536 ascii-incompatible coding systems (e.g. utf-16).
537
538 * coding.c (Qascii_incompatible): New variable.
539 (syms_of_coding): Setup Qascii_incompatible.
540 (setup_coding_system): Be sure to initialize coding->common_flags.
541 Check `ascii-incompatible' property of the coding system.
542
543 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
544
545 2006-05-18 Kim F. Storm <storm@cua.dk>
546
547 * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
548 backtracking in case last image doesn't fit on line.
549
550 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
551
552 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
553 height of one frame default line.
554
555 2006-05-17 Richard Stallman <rms@gnu.org>
556
557 * xfaces.c (better_font_p): Any font beats no font.
558 (best_matching_font): Simplify based on above change.
559
560 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
561
562 2006-05-16 Kim F. Storm <storm@cua.dk>
563
564 * xterm.c (handle_one_xevent): Check that f is not NULL before
565 calling x_kill_gs_process.
566
567 2006-05-14 Richard Stallman <rms@gnu.org>
568
569 * textprop.c (Fnext_single_char_property_change)
570 (Fprevious_single_char_property_change): Don't allow returning
571 value beyond LIMIT in any cases.
572 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
573
574 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
575
576 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
577
578 * xterm.c (handle_one_xevent): Check that f is not NULL before
579 calling _XEditResCheckMessages.
580
581 2006-05-14 Kim F. Storm <storm@cua.dk>
582
583 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
584
585 2006-05-13 Eli Zaretskii <eliz@gnu.org>
586
587 * frame.c (x_set_border_width): Fix error message to say "frame",
588 not "window".
589
590 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
591
592 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
593
594 * intervals.c (set_point_both): Fix mixup before before and after
595 in variable names.
596
597 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
598 while setting point temporarily.
599
600 2006-05-11 Richard Stallman <rms@gnu.org>
601
602 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
603
604 2006-05-11 Kim F. Storm <storm@cua.dk>
605
606 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
607
608 2006-05-11 Kenichi Handa <handa@m17n.org>
609
610 * fileio.c (Finsert_file_contents): Fix for the case of IO error
611 while handling replace operation.
612
613 2006-05-10 Kenichi Handa <handa@m17n.org>
614
615 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
616 chosen for the default face was different from the frame font,
617 adjust the frame font.
618
619 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
620
621 * image.c (Qduration) [MAC_OS]: Undo previous change.
622 (syms_of_image) [MAC_OS]: Likewise.
623 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
624
625 * macfns.c (x_to_mac_color): Fix shift amount change.
626 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
627 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
628
629 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
630 Vmac_services_selection. All uses changed.
631 (mac_store_service_event): Rename from mac_store_services_event in
632 extern and calls.
633
634 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
635 changed.
636 [MAC_OSX] (mac_store_service_event): Rename from
637 mac_store_services_event. All callers changed.
638 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
639 FACE_ID and C. All callers changed.
640 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
641 mac_set_font_info_for_selection when focus frame is destroyed.
642 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
643
644 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
645 args in extern.
646
647 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
648
649 * keymap.c (describe_map): Avoid generating duplicate entries if
650 the shadowed binding has the same definition.
651
652 2006-05-09 Kenichi Handa <handa@m17n.org>
653
654 * keymap.c (push_key_description): Handle invalid character key.
655
656 2006-05-08 Kenichi Handa <handa@m17n.org>
657
658 * callproc.c (Fcall_process): Use system_eol_type for encoding
659 arguments if eol_type is not yet decided.
660
661 * coding.h (system_eol_type): Extern it.
662
663 * coding.c (setup_coding_system): For invalid coding-system, set
664 coding->eol_type to CODING_EOL_UNDECIDED.
665 (encode_coding): Cancel previous change.
666 (shrink_encoding_region): Likewise.
667 (code_convert_region1): Likewise.
668 (code_convert_string1): Likewise.
669 (code_convert_string_norecord): Likewise.
670
671 * fileio.c (choose_write_coding_system): Use system_eol_type for
672 encoding if eol_type is not yet decided.
673
674 * process.c (setup_process_coding_systems): Use system_eol_type
675 for encoding if eol_type is not yet decided.
676 (read_process_output): Likewise.
677 (send_process): Likewise.
678
679 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
680
681 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
682
683 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
684
685 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
686 (syms_of_mac): Likewise for defsubr.
687
688 * macfns.c (mac_set_font): New function.
689 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
690 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
691 kWindowToolbarButtonAttribute when creating window.
692 (Fmac_clear_font_name_table): Move from macfns.c.
693 (syms_of_macfns): Likewise for defsubr.
694 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
695 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
696
697 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
698 and build is done on Mac OS X 10.2 and later.
699
700 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
701 (mac_store_services_event): Change return type in extern.
702
703 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
704 FMFontFamily value.
705 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
706 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
707 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
708 (QWindow) [MAC_OSX]: Likewise.
709 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
710 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
711 (syms_of_macterm) [USE_ATSUI]: Defvar it.
712 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
713 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
714 (syms_of_macterm): Intern and staticpro them.
715 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
716 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
717 function.
718 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
719 [MAC_OSX] (mac_store_services_event): Likewise.
720 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
721 kEventWindowToolbarSwitchMode event.
722 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
723 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
724 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
725 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
726 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
727
728 * macterm.h (mac_set_font_info_for_selection): Add extern.
729
730 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
731
732 * image.c (Qduration) [MAC_OS]: New variable.
733 (syms_of_image) [MAC_OS]: Intern and staticpro it.
734 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
735 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
736 instead of cfstring_create_with_string.
737
738 2006-05-06 Kim F. Storm <storm@cua.dk>
739
740 * .gdbinit (xframe): Print frame name.
741 (xlist): New command to print a list (max 10 elements).
742 (xpr): Print lisp object of any type.
743 (pitx): Print it->pixel_width.
744
745 2006-05-05 Kenichi Handa <handa@m17n.org>
746
747 * xdisp.c (handle_composition_prop): Fix for the case of empty
748 composition component.
749
750 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
751
752 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
753 from event->arg.
754
755 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
756 MAC_APPLE_EVENT.
757
758 * macterm.h (mac_make_lispy_event_code): Remove extern.
759 (mac_post_mouse_moved_event): Add extern.
760 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
761 `const AEDesc *' in externs.
762 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
763
764 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
765 `const AEDesc *'.
766 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
767 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
768 Use xrealloc instead of repeated xmalloc/xfree.
769 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
770 function.
771
772 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
773
774 * macselect.c: Update copyright year.
775 (mac_store_apple_event): Change return type to void in extern.
776 (mac_handle_apple_event): Don't get return value from
777 mac_store_apple_event.
778 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
779 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
780 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
781 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
782 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
783 implementation using create_apple_event_from_drag_ref.
784 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
785 (mac_do_receive_dragUPP): Move variables from macterm.c.
786 (install_drag_handler, remove_drag_handler): New functions.
787
788 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
789 path select also for proxy icon click.
790 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
791 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
792 (xlfdpat_create): Remove unused label `error' and trailing sentences.
793 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
794 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
795 macselect.c.
796 (install_drag_handler, remove_drag_handler): Add extern.
797 (mac_store_apple_event): Change return type to void. All uses changed.
798 Create Lisp object from Apple event and store it into input event.
799 (mac_make_lispy_event_code): Remove function.
800 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
801 (install_window_handler): Call install_drag_handler.
802 (remove_window_handler): Call remove_drag_handler.
803
804 2006-05-03 Richard Stallman <rms@gnu.org>
805
806 * sound.c (Fplay_sound_internal): Dynamically allocate
807 current_sound_device and current_sound.
808 (sound_cleanup): Free them.
809
810 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
811 when inside a keyboard macro.
812
813 2006-05-02 Andreas Schwab <schwab@suse.de>
814
815 * xmenu.c (restore_menu_items): Return a value.
816
817 2006-05-01 Martin Rudalics <rudalics@gmx.at>
818
819 * syntax.c (Fforward_comment): Detect generic comment at beginning of
820 buffer when moving backwards.
821
822 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
823
824 * dispnew.c (update_window): Don't set changed_p when mode/header
825 line is updated.
826
827 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
828 (get_glyph_face_and_encoding, get_char_face_and_encoding):
829 Don't distinguish known faces from others.
830
831 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
832 through typeFileURL failed.
833
834 * macfns.c (mac_update_title_bar): New function.
835 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
836 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
837 Call mac_prepare_for_quickdraw.
838
839 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
840 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
841 (enum pcm_status): New enum.
842 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
843 (XCharStructRow): Remove. Now validity is represented by
844 non-negativeness of sum of ascent and descent.
845 (struct MacFontStruct): Change type of member `rows'.
846 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
847
848 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
849 Adjust endpoints of strictly horizontal/vertical lines.
850 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
851 (pcm_init, pcm_get_status): New functions.
852 (x_per_char_metric, XLoadQueryFont): Use them instead of
853 XCharStructRow and related macros.
854 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
855 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
856 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
857 and window path pop-up menu on title bar.
858 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
859
860 * macterm.h (mac_update_title_bar): Add extern.
861 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
862 (FRAME_FILE_NAME): New macro.
863
864 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
865
866 2006-04-30 Richard Stallman <rms@gnu.org>
867
868 * keymap.c (Fdefine_key): Improve error message
869 when KEY begins with a non-prefix key.
870
871 2006-04-30 Martin Rudalics <rudalics@gmx.at>
872
873 * syntax.c (Fforward_comment): Don't forget to break out of the loop
874 when we skipped backward over a generic comment.
875
876 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
877
878 * .gdbinit (pp1, pv1): Only print value as expression is now
879 printed out by gud-print.
880 (pv1): Correct doc string.
881
882 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
883
884 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
885 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
886 keymap.c:895: error: address of register variable `def' requested.
887
888 2006-04-26 Jason Rumney <jasonr@gnu.org>
889
890 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
891
892 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
893 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
894 where we preempt mouse_button_timer.
895
896 2006-04-25 Miles Bader <miles@gnu.org>
897
898 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
899
900 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
901
902 * process.h: Include headers for pid_t.
903
904 2006-04-24 Kim F. Storm <storm@cua.dk>
905
906 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
907 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
908 (produce_stretch_glyph): Assume that face box height and width is
909 already included in stretch glyph size so caller doesn't have to
910 consider the extra space otherwise added (fixes problem in ses.el).
911
912 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
913 matrices to force recalculation of tool-bar height after font change.
914
915 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
916 Clear it when done, so we don't accidentally draw a second copy of
917 the tool-bar after resetting f->n_tool_bar_rows.
918 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
919 we recalculate f->n_tool_bar_rows.
920
921 2006-04-23 Lars Hansen <larsh@soem.dk>
922
923 * editfns.c (find_field): Fix comment.
924 (Ffield_beginning): Fix bug when POS is at field beginning.
925
926 2006-04-22 Eli Zaretskii <eliz@gnu.org>
927
928 * puresize.h (BASE_PURESIZE): Increase to 1205000.
929
930 2006-04-21 Kim F. Storm <storm@cua.dk>
931
932 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
933 window start is at BEGV.
934
935 * dispextern.h (struct image): New member `corners'.
936 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
937
938 * image.c (four_corners_best): New arg CORNERS specifies what pixels
939 to look at in case image has margin.
940 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
941 (image_background, image_background_transparent)
942 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
943 (gif_load): Set img->corners according to image's margin spec.
944 Use img->corners values directly where applicable.
945 Save image extension data in img->data.lisp_val.
946 (gif_clear_image): New function to free img->data.lisp_val.
947 (gif_type): Use it instead of generic x_clear_image.
948 (Fimage_extension_data): New defun.
949 (syms_of_image): Defsubr it.
950
951 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
952
953 * window.c (Fdisplay_buffer): Doc fix.
954
955 2006-04-21 Eli Zaretskii <eliz@gnu.org>
956
957 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
958
959 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
960
961 * image.c [MAC_OS] (xpm_load_image): Fill in background field
962 while we have ximg handy.
963
964 * macmenu.c (restore_menu_items, save_menu_items): New functions
965 from xmenu.c.
966 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
967 changes for xmenu.c.
968
969 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
970 (add_mac_font_name): New function.
971 (init_font_name_table): Use it. Adopt the first found font from
972 those having the same family name.
973
974 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
975
976 * xdisp.c (note_mouse_highlight): Use build_string.
977
978 2006-04-20 Lars Hansen <larsh@soem.dk>
979
980 * textprop.c (Fremove_list_of_text_properties):
981 Ensure modify_region is called only when buffer is modified and that
982 signal_after_change is allways called in that case.
983
984 * print.c (PRINTFINISH): Call signal_after_change.
985
986 2006-04-20 Kim F. Storm <storm@cua.dk>
987
988 * xdisp.c (redisplay_window): Fix last change.
989
990 * xdisp.c (redisplay_window): If current window start is not at the
991 beginning of a line, select a new window start if buffer is modified
992 and window start is in the modified region, but the first change is
993 before window start.
994
995 2006-04-18 Richard Stallman <rms@gnu.org>
996
997 * xmenu.c (restore_menu_items, save_menu_items): New fns.
998 (set_frame_menubar): Use save_menu_items. Save updated vector in
999 the frame before unwinding it. Don't use unuse_menu_items.
1000 Don't use discard_menu_items.
1001 (digest_single_submenu): Abort if an item is not in a pane.
1002 (init_menu_items): Put the error check at the top.
1003
1004 * keymap.c (describe_map): Make "shadowed" warning more verbose.
1005
1006 * window.c (adjust_window_trailing_edge): Correctly distinguish
1007 series vs parallel cases, even when window has no parent.
1008
1009 * abbrev.c (record_symbol): New function.
1010 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
1011
1012 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1013
1014 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
1015 value of xmalloc.
1016
1017 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1018 (create_apple_event_from_event_ref, xrm_get_preference_database)
1019 (cfstring_create_normalized): Don't check return value of xmalloc.
1020
1021 * macselect.c (get_scrap_target_type_list, defer_apple_events)
1022 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
1023 return value of xmalloc/xrealloc.
1024
1025 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
1026 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
1027 (XLoadQueryFont, mac_store_apple_event): Don't check return value
1028 of xmalloc.
1029
1030 2006-04-17 Kim F. Storm <storm@cua.dk>
1031
1032 * window.c (coordinates_in_window): On the vertical border,
1033 calculate the row number measured from the top of the window, not
1034 the top of the frame.
1035 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
1036 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
1037
1038 2006-04-16 Eli Zaretskii <eliz@gnu.org>
1039
1040 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
1041
1042 2006-04-16 Romain Francoise <romain@orebokech.com>
1043
1044 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
1045
1046 2006-04-16 Andreas Schwab <schwab@suse.de>
1047
1048 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
1049
1050 2006-04-15 Romain Francoise <romain@orebokech.com>
1051
1052 * puresize.h (BASE_PURESIZE): Increment to 1210000.
1053
1054 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1055
1056 * print.c (Fprin1_to_string): Mention in the `doc' that the
1057 behavior is modified by `print-level' and `print-length'.
1058
1059 2006-04-13 Kenichi Handa <handa@m17n.org>
1060
1061 * coding.c (setup_coding_system): If eol-type is not yet decided
1062 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
1063 If coding_system is nil, return 0.
1064 (code_convert_region1): Even if coding_system is nil, don't skip
1065 conversion if system_eol_type is not LF.
1066 (code_convert_string1): Likewise.
1067 (code_convert_string_norecord): Likewise.
1068
1069 2006-04-13 Kenichi Handa <handa@m17n.org>
1070
1071 * coding.c (setup_coding_system): Fix previous change.
1072 (encode_coding): If eol_type is not yet decided, use system_eol_type.
1073 (shrink_encoding_region): If eol_type is not yet decided and
1074 system_eol_type is not LF, don't shrink.
1075
1076 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
1077
1078 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
1079 line.
1080
1081 2006-04-12 Richard Stallman <rms@gnu.org>
1082
1083 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
1084
1085 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
1086 (Fprocess_send_eof): Abort if fail to open null device.
1087
1088 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1089
1090 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
1091
1092 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
1093 assignment used as truth value. Add explicit braces to avoid
1094 ambiguous `else'.
1095 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
1096
1097 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
1098 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
1099 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
1100 Put externs in #ifdef HAVE_X_WINDOWS.
1101 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
1102 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
1103 (init_mac_osx_environment) [MAC_OSX]: Add extern.
1104
1105 * mac.c (init_process): Remove undef.
1106 (select) [MAC_OSX]: Undefine before including sysselect.h.
1107 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
1108 Remove functions and prototypes.
1109 (parse_value): Add parentheses around + inside shift.
1110 (path_from_vol_dir_name): Make static.
1111 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
1112 [!MAC_OSX] (get_path_to_system_folder): Likewise.
1113 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
1114 variable `cCode'.
1115 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
1116 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
1117
1118 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
1119 (x_set_mouse_color): Remove unused variable `dpy'.
1120 (Fx_create_frame): Remove unused variable `x_frame_count'.
1121 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
1122 (x_sync): Move from macterm.c.
1123 (Fx_file_dialog): Remove unused variable `default_filter_index'.
1124
1125 * macmenu.c (min_menu_id): Make element type explicit.
1126
1127 * macselect.c (get_flavor_type_from_symbol): Remove unused
1128 variable `val'.
1129 (get_scrap_private_timestamp, x_get_foreign_selection)
1130 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
1131 (Fmac_process_deferred_apple_events): Remove unused variables
1132 `keyword', `reply', `apple_event', `count', and `err'.
1133
1134 * macterm.c: Don't include gnu.h.
1135 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
1136 (x_sync): Move to macfns.c.
1137 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
1138 variable `mask_bits'.
1139 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
1140 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
1141 (x_mac_to_emacs_modifiers): Remove function.
1142 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
1143 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
1144 Add explicit braces to avoid ambiguous `else'.
1145 (x_make_frame_visible): Remove unused variables `type',
1146 `original_top', and `original_left'.
1147 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
1148 (x_load_font): Remove unused variables `full_name', and `value'.
1149 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
1150 Remove functions.
1151 (do_zoom_window): Reorganize variables with respect to conditionals.
1152 (init_command_handler): Remove unused variable `err'.
1153 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
1154
1155 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
1156 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
1157 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
1158 (do_menu_choice, have_menus_p, x_real_positions)
1159 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
1160 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
1161 (free_frame_menubar): Add externs.
1162
1163 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
1164 (malloc, realloc, free): Add undefs.
1165 (read_load_commands): Remove unused variable `n' and `j'.
1166 (copy_data_segment): Remove unused variable `r'.
1167
1168 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
1169 within ||. Add explicit braces to avoid ambiguous `else'.
1170 (dump_glyph_row): Remove label for `inverse_p' from legend.
1171
1172 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
1173 Add explicit braces to avoid ambiguous `else'.
1174
1175 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1176
1177 * dispnew.c (init_display): Don't init X display if the user asked
1178 for a non-X display.
1179
1180 2006-04-12 Kenichi Handa <handa@m17n.org>
1181
1182 * coding.c (setup_coding_system): Use system_eol_type for default
1183 coding->eol_type.
1184
1185 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1186
1187 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
1188
1189 * data.c (wrong_type_argument): Try to avoid compiler warnings due
1190 to the fact the function is now marked as NO_RETURN.
1191
1192 2006-04-10 Eli Zaretskii <eliz@gnu.org>
1193
1194 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
1195
1196 2006-04-10 Romain Francoise <romain@orebokech.com>
1197
1198 * xrdb.c (gethomedir): Use xstrdup.
1199
1200 2006-04-10 Andreas Schwab <schwab@suse.de>
1201
1202 * xrdb.c (gethomedir): Make sure to always return a pointer that
1203 can be passed to free.
1204
1205 2006-04-09 Richard Stallman <rms@gnu.org>
1206
1207 * lisp.h (Fkill_emacs): Undo previous change.
1208
1209 2006-04-08 Richard Stallman <rms@gnu.org>
1210
1211 * search.c (boyer_moore): Test ch >= 0400, not >.
1212
1213 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
1214
1215 * puresize.h (pure_write_error): Mark as NO_RETURN.
1216
1217 * lisp.h (args_out_of_range, args_out_of_range_3)
1218
1219 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1220
1221 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
1222 if a menu is active on this frame.
1223
1224 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
1225
1226 * lisp.h (report_file_error): Mark as NO_RETURN.
1227
1228 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1229
1230 * alloc.c [STDC_HEADERS]: Include stddef.h.
1231
1232 * lisp.h (PSEUDOVECSIZE): Fix last change.
1233
1234 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1235
1236 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
1237 `raw_status_high', and `raw_status_low' with plain integers, and move
1238 them to the end of the structure.
1239
1240 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
1241 pseudovector's size field so only the Lisp_Object fields get GC'd.
1242
1243 * process.c (update_status, make_process, Fdelete_process)
1244 (Fprocess_status, list_processes_1, start_process_unwind)
1245 (create_process, Fmake_network_process, server_accept_connection)
1246 (wait_reading_process_output, send_process, Fprocess_running_child_p)
1247 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
1248 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
1249 `pid' and `raw_status'.
1250 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
1251 representing PIDs that are larger than most-positive-fixnum.
1252
1253 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
1254
1255 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
1256
1257 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1258
1259 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
1260
1261 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
1262
1263 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
1264 ../lib-src/b2m.c and ../lib-src/editfns.c.
1265 (Fcurrent_time_string): Use it.
1266 Document that the year might not consume 4 columns if it's outside
1267 the range 1000-9999.
1268 Check for asctime failure.
1269 Don't assume that the output string length is always exactly 24.
1270
1271 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1272
1273 * macterm.c (XTread_socket): Initialize variable `f' before its use.
1274
1275 2006-04-03 Kenichi Handa <handa@m17n.org>
1276
1277 * image.c: Include "charset.h" and "coding.h".
1278 (x_find_image_file): Return an encoded file name.
1279
1280 2006-04-01 Eli Zaretskii <eliz@gnu.org>
1281
1282 * configure: Regenerated.
1283
1284 2006-03-31 Kenichi Handa <handa@m17n.org>
1285
1286 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
1287
1288 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1289
1290 * xdisp.c (syms_of_xdisp): Fix variable name.
1291
1292 2006-03-30 Kenichi Handa <handa@m17n.org>
1293
1294 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
1295
1296 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
1297
1298 * keyboard.c (process_tool_bar_item): Reorder dummy args.
1299
1300 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
1301
1302 * keyboard.c (tool_bar_items): Use map_keymap.
1303 (process_tool_bar_item): Add dummy args to fit the required interface.
1304
1305 2006-03-25 Eli Zaretskii <eliz@gnu.org>
1306
1307 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
1308 to zero before calling debug_print or safe_debug_print.
1309
1310 * print.c (print_output_debug_flag): New global variable.
1311 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
1312 OutputDebugString if print_output_debug_flag is zero.
1313
1314 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
1315
1316 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
1317 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
1318 (Fdecode_time): Cast tm_year to EMACS_INT.
1319 (Fcurrent_time_string): Report an invalid time specification if
1320 the argument is invalid. Also, check for out-of-range time stamps.
1321
1322 2006-03-24 Kim F. Storm <storm@cua.dk>
1323
1324 * xterm.c (handle_one_xevent):
1325 * w32term.c (w32_read_socket):
1326 * macterm.c (XTread_socket): Don't let key-press clear mouse face
1327 on in toolbar window if mouse-highlight is an integer.
1328
1329 * fns.c (sxhash_list): Include last non-nil CDR in hash.
1330
1331 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1332
1333 * macmenu.c (enum mac_menu_kind): New enum.
1334 (min_menu_id): New variable.
1335 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
1336 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
1337 min_menu_id and enumerators in enum mac_menu_kind.
1338 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
1339 All uses changed. Add range check for menu ID.
1340 (fill_menubar): Add range check for menu ID.
1341 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
1342 GetEventParameter.
1343 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
1344 for each menu kind.
1345
1346 2006-03-22 Kim F. Storm <storm@cua.dk>
1347
1348 * xdisp.c: Undo 2006-03-21 change.
1349
1350 * term.c: Define aliases for append_glyph and produce_stretch_glyph
1351 when `static' is defined to avoid name clash with those in xdisp.c.
1352
1353 * process.c (Faccept_process_output): Fix to comply with lisp reference.
1354 Change arg "timeout" to "seconds" and allow both integer and float value.
1355 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
1356 rather than microseconds. Fix doc string accordingly.
1357
1358 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
1359
1360 * xdisp.c (store_next_glyph): Rename from append_glyph.
1361 (generate_stretch_glyph): Rename from produce_stretch_glyph.
1362 All callers changed accordingly.
1363
1364 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1365
1366 * xterm.c: x_session_initialized new variable.
1367 (x_term_init): Use x_session_initialized to check if
1368 x_session_initialize should be called.
1369 (x_initialize): Initialize x_session_initialized.
1370
1371 2006-03-21 Kim F. Storm <storm@cua.dk>
1372
1373 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
1374 bitmap here, but ...
1375 (update_window_fringes): ... here, so we can test if it has changed.
1376
1377 2006-03-20 Andreas Schwab <schwab@suse.de>
1378
1379 * dispnew.c (init_display): Check DISPLAY here.
1380
1381 * emacs.c (main): Don't check here.
1382
1383 * xterm.c (x_display_ok): Don't use DISPLAY env var.
1384
1385 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1386
1387 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
1388 mixup (YAILOM).
1389
1390 2006-03-20 Eli Zaretskii <eliz@gnu.org>
1391
1392 * emacs.c (main): Fix last change.
1393
1394 2006-03-20 Kenichi Handa <handa@m17n.org>
1395
1396 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
1397
1398 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
1399
1400 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
1401
1402 * xterm.c (x_term_init): Remove unnecessary GCPRO.
1403
1404 2006-03-19 Kim F. Storm <storm@cua.dk>
1405
1406 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
1407 so it doesn't associate overlay string with following glyph by default.
1408 Allow integer property value to specify explicit number of buffer
1409 positions associate with overlay string.
1410
1411 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
1412
1413 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
1414
1415 2006-03-18 Nozomu Ando <nand@mac.com>
1416
1417 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
1418 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
1419 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
1420 Don't redefine.
1421
1422 * m/mips.h: Don't use unexmips on NetBSD.
1423 (LIBS_MACHINE): Move definition lower, so it doesn't use
1424 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
1425 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
1426
1427 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
1428 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
1429 option is broken (e.g., MIPS/NetBSD).
1430
1431 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
1432
1433 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
1434 Remove the HAVE_X_WINDOWS conditional.
1435
1436 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
1437
1438 * emacs.c (main): If user asks for a display that is unavailable,
1439 simulate -nw.
1440
1441 * xterm.c (x_display_ok): New function.
1442
1443 * xterm.h: Add prototype for x_display_ok.
1444
1445 2006-03-18 Eli Zaretskii <eliz@gnu.org>
1446
1447 * w32fns.c (Fw32_select_font): Doc fix.
1448
1449 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1450
1451 * image.c [MAC_OS] (XPutPixel, XGetPixel)
1452 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
1453 version when depth is 32.
1454 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
1455 New function.
1456 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
1457 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
1458
1459 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
1460 Create GWorld in ARGB pixel format.
1461 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
1462 Remove functions.
1463 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
1464 instead of mac_copy_area/mac_copy_area_with_mask.
1465
1466 2006-03-15 Kim F. Storm <storm@cua.dk>
1467
1468 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
1469 empty row. Fixes memory corruption revealed by 2006-03-02 change.
1470 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
1471 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
1472 width is exactly the same as the window width. Don't count a final
1473 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
1474
1475 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
1476
1477 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
1478 conditional on HAVE_NTGUI, not WINDOWS_NT.
1479
1480 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1481
1482 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
1483
1484 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
1485
1486 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
1487 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
1488 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
1489 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
1490 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
1491 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
1492 instead of mac_draw_bitmap.
1493 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
1494 define_fringe_bitmap and destroy_fringe_bitmap.
1495
1496 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
1497
1498 * xterm.c (x_uncatch_errors): Block input for entire function.
1499
1500 2006-03-12 Jason Rumney <jasonr@gnu.org>
1501
1502 * w32fns.c (Fx_create_frame): Remove call to
1503 Qface_set_after_frame_default (from xfns.c 2003-05-26).
1504
1505 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
1506 finished with the menu.
1507
1508 * w32term.c: Sync 2005-10-24 xterm.c changes.
1509 (last_mouse_glyph_frame): New var.
1510 (note_mouse_movement): Say mouse moved if current frame differs
1511 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1512 (w32_mouse_position): Set last_mouse_glyph_frame.
1513 Remove OLD_REDISPLAY_CODE block.
1514
1515 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1516
1517 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
1518
1519 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
1520 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
1521
1522 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1523
1524 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
1525
1526 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
1527 (x_draw_composite_glyph_string_foreground)
1528 (x_draw_image_foreground): Undo previous changes.
1529 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
1530 argument of mac_draw_rectangle.
1531 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
1532 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
1533 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
1534 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
1535 [USE_CG_DRAWING]: New functions.
1536 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
1537 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
1538 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
1539 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
1540 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
1541 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
1542 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1543
1544 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1545
1546 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
1547
1548 2006-03-11 Jason Rumney <jasonr@gnu.org>
1549
1550 * w32fns.c (signal_user_input): New function.
1551 (post_character_message): Use it for keyboard input.
1552 (w32_msg_pump): Use it for mouse input.
1553
1554 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
1555
1556 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
1557 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
1558
1559 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1560
1561 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
1562 if a menu is already active (the menubar_active flag is on).
1563
1564 2006-03-11 David Ponce <david@dponce.com>
1565
1566 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
1567
1568 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1569
1570 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
1571 the list of unused display error handling functions.
1572
1573 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
1574 HAVE_X_WINDOWS.
1575 (internal_condition_case, internal_condition_case_1)
1576 (internal_condition_case_2): Call x_catching_errors only if
1577 HAVE_X_WINDOWS.
1578
1579 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
1580 Don't include sys/resource.h unless defined.
1581
1582 2006-03-11 Richard Stallman <rms@gnu.org>
1583
1584 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
1585
1586 * vm-limit.c (get_lim_data, lim_data, data_space_start):
1587 Move from mem-limits.h.
1588 (enum warnlevel): New data type.
1589 (check_memory_limits): Rewrite the logic about warnings.
1590 Use standard `struct rlimit'. Check return values for nonsense.
1591 (memory_warnings): Always clear lim_data.
1592
1593 * mem-limits.h (get_lim_data, lim_data, data_space_start):
1594 Move to vm-limit.c.
1595
1596 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
1597
1598 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
1599 (internal_condition_case_1, internal_condition_case_2):
1600 Abort if within unclosed x_catch_errors.
1601
1602 2006-03-11 Romain Francoise <romain@orebokech.com>
1603
1604 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
1605
1606 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1607
1608 * lisp.h: Remove duplicate prototypes. Make the prototype of
1609 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
1610
1611 2006-03-11 Eli Zaretskii <eliz@gnu.org>
1612
1613 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
1614 argument of XDrawRectangle.
1615
1616 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
1617
1618 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
1619 (x_draw_glyph_string_foreground)
1620 (x_draw_composite_glyph_string_foreground)
1621 (x_draw_image_foreground): Don't subtract 1 from width and height
1622 arguments to mac_draw_rectangle.
1623 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
1624
1625 2006-03-10 Kim F. Storm <storm@cua.dk>
1626
1627 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
1628
1629 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
1630
1631 * alloc.c (USE_POSIX_MEMALIGN): New macro.
1632 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
1633
1634 2006-03-09 Kenichi Handa <handa@m17n.org>
1635
1636 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
1637 ASCII component of a composition.
1638
1639 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
1640
1641 * window.c: Declare preserve_y as a static global variable.
1642 (window_scroll_pixel_based): No longer declare preserve_y;
1643 it is global now.
1644 (syms_of_window): Set preserve_y to -1.
1645
1646 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1647
1648 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
1649 depth is 32.
1650 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
1651 depth is 32.
1652
1653 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
1654
1655 * xdisp.c (handle_invisible_prop): Don't update it->position with
1656 a buffer position if we're in a display string.
1657
1658 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1659
1660 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
1661 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
1662
1663 * macfns.c (x_default_scroll_bar_color_parameter)
1664 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
1665 Remove unnecessary prototypes.
1666 (x_set_scroll_bar_default_width):
1667 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
1668 (mac_set_scroll_bar_width): New function.
1669 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
1670
1671 * macterm.c (get_control_part_bounds): Fix type of return value.
1672 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
1673 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
1674 scroll bar if it is not tall enough to display scroll bar thumb.
1675 [USE_CARBON_EVENTS] (mac_convert_event_ref)
1676 (mac_handle_command_event, mac_handle_window_event)
1677 (mac_handle_mouse_event): Check error code of GetEventParameter.
1678 (convert_fn_keycode) [MAC_OSX]: Likewise.
1679
1680 2006-03-05 Andreas Schwab <schwab@suse.de>
1681
1682 * xselect.c (x_catch_errors_unwind): Fix missing return value.
1683
1684 2006-03-02 Kim F. Storm <storm@cua.dk>
1685
1686 * frame.h (struct frame): New member n_tool_bar_rows.
1687
1688 * xdisp.c: Minimize the unpleasent visual impact of the requirement
1689 that non-toolkit tool-bars must occupy an integral number of screen
1690 lines, by distributing the rows evenly over the tool-bar screen area.
1691 (Vtool_bar_border): New variable.
1692 (syms_of_xdisp): DEFVAR_LISP it.
1693 (display_tool_bar_line): Add HEIGHT arg for desired row height.
1694 Make tool-bar row the desired height. Use default face for border
1695 below tool-bar.
1696 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
1697 actual tool-bar rows.
1698 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
1699 Adjust the height of the tool-bar rows to fill tool-bar screen area.
1700 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
1701 is resized.
1702
1703 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
1704
1705 * search.c (Fregexp_quote): Do not precede a literal `]' with two
1706 backslashes to try to make clear that it has a literal meaning; it
1707 does not do that. (It could close a character alternative
1708 containing a backslash.)
1709
1710 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
1711
1712 * xselect.c (x_catch_errors_unwind): New function.
1713 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
1714 (Fx_get_atom_name): Call x_uncatch_errors earlier.
1715
1716 * window.c (Qscroll_up, Qscroll_down): New syms.
1717 (window_scroll_pixel_based): Make preserve_y static to avoid
1718 getting point stuck when scrolling 1 line.
1719
1720 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
1721
1722 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
1723
1724 * xterm.c (x_load_font, x_term_init, XTmouse_position)
1725 (handle_one_xevent, x_connection_closed, x_list_fonts):
1726 No arg for x_uncatch_errors.
1727
1728 * xselect.c (x_own_selection, x_decline_selection_request)
1729 (x_reply_selection_request, x_get_foreign_selection)
1730 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1731
1732 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1733 Likewise.
1734
1735 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
1736
1737 * lread.c: Declare Vload_file_rep_suffixes instead of
1738 deleted variable default_suffixes.
1739 (Fget_load_suffixes): New function.
1740 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
1741 No longer use deleted variable default_suffixes. Update docstring.
1742 (syms_of_lread): defsubr Sget_load_suffixes.
1743 Expand `load-suffixes' docstring.
1744 Delete default_suffixes and DEFVAR_LISP the new variable
1745 `load-file-rep-suffixes'.
1746
1747 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
1748 of Vload_suffixes.
1749
1750 * lisp.h: EXFUN Fget_load_suffixes.
1751 Extern Vload_file_rep_suffixes.
1752
1753 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
1754 with lisp.h.
1755
1756 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
1757
1758 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
1759 qualifier which was trying to avoid the bug that was fixed by
1760 yesterday's changes to xterm.c.
1761
1762 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
1763
1764 * xterm.h (x_catch_errors) Return value changed to void.
1765 (x_uncatch_errors): Delete unused count argument.
1766
1767 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
1768 it can be called in a signal handler.
1769 (x_catch_errors_unwind): Function deleted.
1770 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
1771 (x_check_errors): Call x_uncatch_errors before signalling error.
1772
1773 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
1774 (x_connection_closed, x_list_fonts): Use new versions of
1775 x_catch_errors and x_uncatch_errors.
1776
1777 * xselect.c (x_own_selection, x_decline_selection_request)
1778 (x_reply_selection_request, x_get_foreign_selection)
1779 (Fx_get_atom_name, Fx_send_client_event): Likewise.
1780
1781 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
1782 Likewise.
1783
1784 * eval.c (record_unwind_protect): Add an assertion.
1785
1786 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
1787
1788 * process.c (Fmake_network_process): Init the process's mark.
1789
1790 2006-02-25 Kim F. Storm <storm@cua.dk>
1791
1792 * buffer.c (modify_overlay): Force redisplay if we modify an
1793 overlay at the end of the buffer.
1794
1795 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1796
1797 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
1798 nil the image file has been removed, in that case use the (cached)
1799 pixmap.
1800
1801 2006-02-24 Kenichi Handa <handa@m17n.org>
1802
1803 * fileio.c (Finsert_file_contents): When a text is replaced
1804 partially, be sure to set point before the inserted characters.
1805
1806 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
1807
1808 * xfns.c (Fx_file_dialog): Return a decoded file name.
1809
1810 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1811
1812 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
1813 glyph whose face is extended to the text area end.
1814
1815 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
1816 values if control is not visible or values are not changed.
1817
1818 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
1819
1820 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
1821 The default `window' should not be "on a different frame".
1822
1823 2006-02-22 Kim F. Storm <storm@cua.dk>
1824
1825 * indent.c (Fvertical_motion): Only try to move back if we can.
1826
1827 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1828
1829 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
1830 n_clip_rects.
1831
1832 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
1833 xmenu.c.
1834
1835 * macterm.c (GC_CLIP_REGION): Remove macro.
1836 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
1837 All uses changed. Don't do clipping if n_clip_rects is zero.
1838 (mac_set_clip_rectangles): Use xassert instead of abort.
1839 Set n_clip_rects. Don't make clip_region empty when number of
1840 clipping rectangles is zero.
1841 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
1842 calling mac_set_clip_rectangles.
1843 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
1844 avoid multiple redraws.
1845
1846 2006-02-22 Kim F. Storm <storm@cua.dk>
1847
1848 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
1849
1850 2006-02-21 Kim F. Storm <storm@cua.dk>
1851
1852 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
1853
1854 2006-02-21 Zhang Wei <brep@newsmth.org>
1855
1856 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
1857 returning it.
1858
1859 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1860
1861 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
1862 (standard_bitmaps): Use it.
1863
1864 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1865
1866 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
1867 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
1868 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
1869 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
1870 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
1871 Draw background if BG_WIDTH is not zero. Use float constants as
1872 divisors instead of double. Use alloca instead of xmalloc/xfree.
1873 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1874 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
1875 mac_draw_image_string* functions.
1876 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
1877 some fonts when srcCopy text transfer mode might be used.
1878 (mac_begin_clip, mac_end_clip): Check if region is empty.
1879 (mac_set_clip_rectangles): When resetting clip region, make it
1880 empty instead of disposing of it.
1881
1882 2006-02-20 Kim F. Storm <storm@cua.dk>
1883
1884 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
1885
1886 * buffer.h (struct buffer): New members fringe_indicator_alist and
1887 fringe_cursor_alist.
1888
1889 * buffer.c (init_buffer_once): Set dummy default values for
1890 fringe-indicator-alist and fringe-cursor-alist. The proper
1891 default values are set by pre-loading fringe.el.
1892 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
1893 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
1894 corresponding default- variables.
1895
1896 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
1897 to use `int'.
1898 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
1899 Define explicitly.
1900 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
1901 (Qhollow_small): New variables.
1902 (syms_of_fringe): Intern and staticpro them.
1903 (question_mark_bits): Rename from unknown_bits.
1904 (left_curly_arrow_bits): Rename from continuation_bits.
1905 (right_curly_arrow_bits): Rename from continued_bits.
1906 (left_triangle_bits): Rename from ov_bits.
1907 (right_triangle_bits): Add.
1908 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
1909 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
1910 (filled_square_bits): Add.
1911 (vertical_bar_bits): Rename from bar_cursor_bits.
1912 (horizontal_bar_bits): Rename from hbar_cursor_bits.
1913 (empty_line_bits): Rename from zv_bits.
1914 (standard_bitmaps): Update to use new names.
1915 (draw_fringe_bitmap_1): Make static.
1916 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
1917 to map from logical cursors and indicators to physical bitmaps.
1918 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
1919 bitmaps using symbol names instead of bitmap numbers.
1920 (update_window_fringes): Use logical indicator symbol names
1921 instead of bitmap numbers for logical. Add bitmap cache.
1922 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
1923
1924 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
1925
1926 * regex.c: Revert 2006-02-19 change.
1927 (xmalloc, xrealloc): Define these when not linked to Emacs.
1928 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
1929
1930 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
1931
1932 * regex.c (extend_range_table_work_area): Fix typo.
1933
1934 2006-02-19 Richard M. Stallman <rms@gnu.org>
1935
1936 * xterm.c (x_catch_errors): Use xmalloc.
1937
1938 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
1939 (regex_compile): Likewise.
1940 (regcomp): Use xmalloc.
1941
1942 * gtkutil.c (malloc_widget_value): Use xmalloc.
1943
1944 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
1945 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
1946
1947 * xmenu.c (digest_single_submenu): When pane_string is empty,
1948 do initialize save_wv.
1949
1950 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1951
1952 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
1953 w->update_mode_line if arg F is not the selected frame.
1954
1955 * macmenu.c (popup_activated_flag, submenu_id)
1956 (next_menubar_widget_id): Remove variables.
1957 (initialize_frame_menubar): Remove function.
1958 (pop_down_menu, mac_menu_show): Simplify save value.
1959 (dispose_menus): New function.
1960 (pop_down_menu, fill_menubar): Use it.
1961 (fill_submenu): Remove function. All uses changed to fill_menu.
1962 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
1963 POS. Don't call SetMenuItemHierarchicalID here.
1964 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
1965 used next. Call SetMenuItemHierarchicalID here.
1966 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
1967 objects if needed. Reuse existing menu bar titles if possible.
1968 (set_frame_menubar): Don't clean up menu objects here.
1969
1970 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
1971
1972 * window.c (window_min_size_1): Ensure room for the scroll bar and
1973 fringes.
1974
1975 2006-02-17 Romain Francoise <romain@orebokech.com>
1976
1977 * puresize.h (BASE_PURESIZE): Increment to 1200000.
1978
1979 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
1980
1981 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
1982 addition of the BLOCK_INPUTs.
1983
1984 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
1985
1986 * window.c (Fset_window_scroll_bars): Doc fix.
1987
1988 2006-02-17 Kenichi Handa <handa@m17n.org>
1989
1990 * xdisp.c (display_mode_element): Call display_string with correct
1991 PREC arg (which must be a number of characters, not column width).
1992
1993 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1994
1995 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
1996
1997 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
1998
1999 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
2000
2001 2006-02-14 Richard M. Stallman <rms@gnu.org>
2002
2003 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
2004
2005 * m/ibms390x.h: New file.
2006
2007 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2008
2009 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
2010 value of x-gtk-whole-detached-tool-bar.
2011 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
2012
2013 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
2014
2015 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2016
2017 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
2018
2019 * xterm.h: Declare x_x_to_emacs_modifiers.
2020
2021 * gtkutil.c (xg_tool_bar_button_cb): New function.
2022 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
2023 store modifiers in event.
2024 (update_frame_tool_bar): Connect button-release-event to
2025 xg_tool_bar_button_cb.
2026
2027 2006-02-13 Richard M. Stallman <rms@gnu.org>
2028
2029 * .gdbinit (xwindow): Update the code to show the window box.
2030
2031 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2032
2033 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
2034
2035 2006-02-12 Richard M. Stallman <rms@gnu.org>
2036
2037 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
2038
2039 2006-02-11 Eli Zaretskii <eliz@gnu.org>
2040
2041 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
2042 (syms_of_keyboard): DEVFAR_LISP and initialize it.
2043 (parse_tool_bar_item, parse_menu_item): If that variable is
2044 non-nil, don't disable menu items and tool-bar buttons.
2045
2046 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
2047
2048 * doc.c (Fsubstitute_command_keys): Doc fix.
2049
2050 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
2051
2052 * data.c (Findirect_function): Rewrite docstring.
2053 Fix omission bug: Declare new arg NOERROR.
2054
2055 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2056
2057 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
2058 if window_desc is not set yet.
2059 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
2060 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
2061 parameter `visibility' is `icon'.
2062 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
2063 instead of "fontset-mac".
2064 (Fx_focus_frame): New defun.
2065 (syms_of_macfns): Defsubr it.
2066
2067 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
2068 for unfocused frame.
2069 (x_raise_frame): Call BringToFront instead of SelectWindow.
2070 (x_lower_frame): Use NULL instead of nil.
2071 (x_make_frame_visible): Don't call SelectWindow.
2072 (XTread_socket): Increment handling_signal at the start, decrement
2073 it at the end.
2074 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
2075 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
2076
2077 2006-02-10 Kim F. Storm <storm@cua.dk>
2078
2079 * data.c (Findirect_function): Add NOERROR arg. All callers changed
2080 to pass Qnil for NOERROR.
2081
2082 * keymap.c (current_minor_maps_error): Remove.
2083 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
2084 instead of using internal_condition_case_1+current_minor_maps_error.
2085
2086 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2087
2088 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
2089 frames for GTK, in that case it is the tool bar. This is so that
2090 highlighted text get reset properly.
2091
2092 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
2093
2094 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
2095
2096 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2097
2098 * window.c (adjust_window_trailing_edge): Check that shrinking
2099 does not set a window to size zero or less.
2100
2101 2006-02-08 Miles Bader <miles@gnu.org>
2102
2103 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
2104 of Fget_text_property (other field functions work with overlays as
2105 well as text-properties).
2106
2107 2006-02-07 Kenichi Handa <handa@m17n.org>
2108
2109 * dispextern.h (unibyte_display_via_language_environment): Extern it.
2110
2111 * xterm.h (unibyte_display_via_language_environment):
2112 * w32term.h (unibyte_display_via_language_environment):
2113 * macterm.h (unibyte_display_via_language_environment): Delete extern.
2114
2115 2006-02-07 Kenichi Handa <handa@m17n.org>
2116
2117 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
2118 (produce_glyphs): Set the character to print in
2119 it->char_to_display. Handle unibyte-display-via-language-environment.
2120 (produce_stretch_glyph): Set character to print in it->char_to_display.
2121
2122 2006-02-06 Kenichi Handa <handa@m17n.org>
2123
2124 * lread.c (openp): Initialize encoded_fn before GCPRO it.
2125
2126 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
2127
2128 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
2129
2130 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
2131 Cast bitfield value to EMACS_INT, to suppress gcc warning.
2132
2133 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
2134 defining.
2135
2136 2006-02-03 Kim F. Storm <storm@cua.dk>
2137
2138 * xdisp.c: Cache last merged escape glyph face.
2139 (last_escape_glyph_frame, last_escape_glyph_face_id)
2140 (last_escape_glyph_merged_face_id): New variables.
2141 (get_next_display_element): Use/update them.
2142 (redisplay_internal): Reset them before redisplay.
2143
2144 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
2145 Only recheck faces after displaying ellipsis.
2146
2147 2006-02-02 Kenichi Handa <handa@m17n.org>
2148
2149 * coding.c (decode_composition_emacs_mule): Fix handling of
2150 incorrect format data.
2151
2152 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2153
2154 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
2155 (gtk_toolbar_insert) so we can have tool bars of different sizes.
2156
2157 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
2158
2159 * data.c (Flistp): Doc fix.
2160
2161 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
2162
2163 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
2164 Fix typos in docstrings.
2165
2166 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
2167
2168 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
2169
2170 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
2171
2172 * alloc.c (make_interval, allocate_string)
2173 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
2174 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
2175 global variables.
2176
2177 2006-01-27 Eli Zaretskii <eliz@gnu.org>
2178
2179 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
2180 the MSDOS definition.
2181
2182 2006-01-26 Richard M. Stallman <rms@gnu.org>
2183
2184 * alloc.c (check_pure_size): Make overflow message an "error message".
2185
2186 * keymap.c (Fmap_keymap): Doc fix.
2187
2188 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
2189 unless they were cleared out.
2190
2191 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
2192
2193 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2194
2195 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
2196 (find_field): Set before_field to after_field when pos is at BEGV.
2197 (Fline_beginning_position, Fline_end_position):
2198 Clarify confusing doc string.
2199
2200 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
2201 string.
2202
2203 2006-01-26 Kenichi Handa <handa@m17n.org>
2204
2205 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
2206 current_dir, and error_file. On reporting an error, decode them
2207 back.
2208
2209 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2210
2211 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
2212 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
2213 Don't check for quit, since any loop will go through fail or jump.
2214
2215 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
2216
2217 * alloc.c (allocate_string_data): Update next_free immediately, to
2218 reduce risk of memory clobberage.
2219
2220 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2221
2222 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
2223 display when point moves across an ellipsis. If there are
2224 adjacent invisible texts, don't lose the second one's ellipsis.
2225 (x_produce_glyphs): Doc fix.
2226
2227 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
2230
2231 2006-01-23 Kim F. Storm <storm@cua.dk>
2232
2233 * xdisp.c (handle_single_display_spec): Fix handling of space
2234 property on char from string: set *position rather than
2235 it->current.pos.
2236 (produce_stretch_glyph): Reduce width of stretch glyphs so they
2237 don't get wider than the window (unless truncate-lines is on).
2238
2239 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 * xterm.c: Avoid allocating Lisp data from a signal handler.
2242 (x_error_message): New var to replace x_error_message_string.
2243 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
2244 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
2245 (syms_of_xterm): Use it instead of x_error_message_string.
2246
2247 * alloc.c (lisp_align_free): Add an assertion.
2248 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
2249 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
2250 a signal handler.
2251
2252 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
2253
2254 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
2255
2256 2006-01-21 Romain Francoise <romain@orebokech.com>
2257
2258 * xdisp.c (get_window_cursor_type): Fix last change.
2259 Update copyright year.
2260
2261 2006-01-20 Eli Zaretskii <eliz@gnu.org>
2262
2263 * lread.c (Fload): Don't leak the file descriptor returned by
2264 openp if we are going to signal an error.
2265
2266 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
2267 directly to _close.
2268 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
2269 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
2270 to _read.
2271 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
2272 directly to _write.
2273
2274 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
2275 if it is NULL.
2276
2277 2006-01-20 Kenichi Handa <handa@m17n.org>
2278
2279 * puresize.h (BASE_PURESIZE): Increment to 1190000.
2280
2281 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
2282
2283 * xdisp.c (get_window_cursor_type): Use cursor type specified by
2284 the selected buffer for the echo area too.
2285
2286 2006-01-19 Richard M. Stallman <rms@gnu.org>
2287
2288 * keymap.c (Fmap_keymap): Doc fix.
2289
2290 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
2291
2292 * keyboard.c (echo_char): Don't omit the space between first two
2293 echoed chars.
2294
2295 * minibuf.c (read_minibuf): Fix previous change.
2296
2297 2006-01-19 Kenichi Handa <handa@m17n.org>
2298
2299 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
2300
2301 2006-01-17 Richard M. Stallman <rms@gnu.org>
2302
2303 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
2304 value in f->param_alist.
2305
2306 2006-01-15 Andreas Schwab <schwab@suse.de>
2307
2308 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
2309
2310 2006-01-13 Richard M. Stallman <rms@gnu.org>
2311
2312 * Makefile.in: Define new macro WINDOW_SUPPORT.
2313 (lisp): Use it.
2314 (SOME_MACHINE_LISP): Add conditionally loaded files.
2315
2316 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2317
2318 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2319 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2320 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
2321 decomposed form.
2322
2323 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
2324 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
2325 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
2326 macro. Also try member ifr_addr when getting netmask.
2327
2328 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
2329
2330 * fileio.c (Fexpand_file_name): Remove redundant tests.
2331 Fix elimination of // so that it doesn't prevent elimination of an
2332 immediately following /. or /..
2333
2334 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2335
2336 * gtkutil.c (xg_toggle_notify_cb): New function.
2337 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
2338 xg_toggle_notify_cb.
2339 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
2340 parameter value changes so the toggle button gets updated.
2341
2342 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
2343
2344 * .gdbinit: Fix typo.
2345
2346 2006-01-05 Eli Zaretskii <eliz@gnu.org>
2347
2348 * .gdbinit: Fix last change.
2349
2350 2006-01-05 Kim F. Storm <storm@cua.dk>
2351
2352 * process.c (Fmake_network_process): Use AF_INET instead of
2353 AF_UNSPEC when AF_INET6 is not defined.
2354
2355 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2356
2357 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
2358 Don't check that the other type is known file-related one.
2359
2360 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
2361 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
2362 OS X 10.4 and later.
2363
2364 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2365
2366 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
2367 let GTK do all image processing. Importing Emacs own pixmaps to GTK
2368 looks bad for inactive tool bar items with some Gnome themes.
2369
2370 2006-01-04 Eli Zaretskii <eliz@gnu.org>
2371
2372 * .gdbinit: Avoid a warning message when x_error_quitter is not
2373 compiled in.
2374
2375 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
2376 for w32.
2377
2378 2006-01-04 Kim F. Storm <storm@cua.dk>
2379
2380 * process.c: Add IPv6 support.
2381 (Qipv4, Qipv6): New vars.
2382 (syms_of_process): Intern and staticpro them.
2383 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
2384 with or without port number. Handle 4 element vector as IPv4 address
2385 without port number.
2386 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2387 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
2388 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
2389 request that address family only. :family nil or omitted means to
2390 determine address family from the specified :host and :service.
2391 (ifflag_table): Add missing OpenBSD IFF_ flags.
2392 (server_accept_connection): Handle IPv6 addresses.
2393 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
2394
2395 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
2396 determine which breakpoints to set.
2397
2398 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
2399
2400 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
2401
2402 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
2403
2404 2006-01-03 Romain Francoise <romain@orebokech.com>
2405
2406 * emacs.c (main): Update copyright year.
2407
2408 2006-01-03 Ken Raeburn <raeburn@gnu.org>
2409
2410 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
2411 nil for the call to internal_delete_file.
2412
2413 2006-01-01 Ken Raeburn <raeburn@gnu.org>
2414
2415 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
2416 to nil for the call to Fwrite_region.
2417
2418 2005-12-31 Richard M. Stallman <rms@gnu.org>
2419
2420 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
2421
2422 2005-12-31 Eli Zaretskii <eliz@gnu.org>
2423
2424 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
2425
2426 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
2427
2428 * textprop.c (set_text_properties): Reword description of return value.
2429 Return Qnil if caller wants to remove all text properties from a
2430 string and the string already has no intervals.
2431
2432 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
2433
2434 * term.c (visible_cursor): New boolean var.
2435 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
2436 visible_cursor.
2437 (syms_of_term): Export the new var as "visible-cursor".
2438
2439 2005-12-30 Eli Zaretskii <eliz@gnu.org>
2440
2441 * .gdbinit: Tell users not to worry about GDB warnings that some
2442 functions do not exist in the binary.
2443
2444 2005-12-30 Andreas Schwab <schwab@suse.de>
2445
2446 * process.c (Fnetwork_interface_info): Correctly terminate the
2447 loop over ifflag_table.
2448
2449 2005-12-29 Richard M. Stallman <rms@gnu.org>
2450
2451 * lread.c (readevalloop): Test for reading a whole buffer
2452 before actually reading anything. Handle all cases, including
2453 START = END = nil and an already-narrowed buffer.
2454 Convert END to a marker if it is a number.
2455
2456 * keymap.c (describe_map): Put sparse map elements into an array,
2457 sort them, then output a sequence of identical bindings on one line.
2458 (struct describe_map_elt): New data type.
2459 (describe_map_compare): New function.
2460
2461 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2462
2463 * gtkutil.c (xg_get_file_with_chooser): Change message shown
2464 in file chooser.
2465
2466 2005-12-27 Richard M. Stallman <rms@gnu.org>
2467
2468 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
2469 not the current one.
2470
2471 * minibuf.c (Fminibuffer_message): Doc fix.
2472 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
2473
2474 * eval.c (do_autoload): Ignore elements of Vautoload_queue
2475 where car is not symbol.
2476
2477 2005-12-27 Kenichi Handa <handa@m17n.org>
2478
2479 * charset.c (lisp_string_width): Check multibyteness of STRING.
2480
2481 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2482
2483 * xfns.c: x_show_hidden_files, new variable.
2484 (syms_of_xfns): Defvar it.
2485
2486 * gtkutil.c (xg_toggle_visibility_cb): New function.
2487 (xg_get_file_with_chooser): Add toggle hidden files and a message
2488 to the new file chooser dialog. Show hidden files if
2489 x_show_hidden_files is non-zero.
2490
2491 2005-12-26 Richard M. Stallman <rms@gnu.org>
2492
2493 * keyboard.h: Undo previous change.
2494
2495 * Makefile.in (undo.o): Undo previous change.
2496
2497 * undo.c: Undo previous change.
2498
2499 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
2500
2501 * keyboard.h: extern last_point_position_window.
2502
2503 * undo.c: include keyboard.h.
2504
2505 * Makefile.in (undo.o): Depend on keyboard.h.
2506
2507 2005-12-26 Richard M. Stallman <rms@gnu.org>
2508
2509 * commands.h (last_point_position_window): Declare.
2510
2511 * undo.c: Depend on window.h.
2512 (record_point): Save old point from the correct window.
2513
2514 * keyboard.c (last_point_position_window): New variable.
2515 (command_loop_1): Set last_point_position_window.
2516 (syms_of_keyboard): Init it.
2517
2518 * Makefile.in (undo.o): Depend on window.h.
2519
2520 2005-12-25 Richard M. Stallman <rms@gnu.org>
2521
2522 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
2523 to undo a `provide'.
2524
2525 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
2526
2527 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
2528
2529 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
2530 define for FreeBSD on this platform.
2531
2532 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2533
2534 * macterm.h (TYPE_FILE_NAME): New define.
2535 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
2536
2537 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
2538 Add prototypes. Make static.
2539 (mac_aedesc_to_lisp): Initialize err to noErr.
2540 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2541 (init_coercion_handler): New functions.
2542 (Fmac_coerce_ae_data): Use coercion of Apple event data for
2543 translation from/to file names.
2544
2545 * macterm.c: Don't include sys/param.h.
2546 (init_coercion_handler): Add extern.
2547 [MAC_OS8] (main): Call init_coercion_handler.
2548 (mac_initialize) [MAC_OSX]: Likewise.
2549 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
2550 Apple event data for translation from/to file names.
2551
2552 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2553
2554 * image.c [MAC_OS] (find_image_fsspec): Likewise.
2555
2556 2005-12-23 Martin Rudalics <rudalics@gmx.at>
2557
2558 * insdel.c (insert, insert_and_inherit, insert_before_markers)
2559 (insert_before_markers_and_inherit): Make sure FROM is correct
2560 when `after-change-functions' are called.
2561
2562 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2563
2564 * xfns.c (Fx_uses_old_gtk_dialog): New function.
2565
2566 * gtkutil.c (xg_uses_old_file_dialog): New function.
2567 (xg_get_file_name): Use xg_uses_old_file_dialog.
2568
2569 * gtkutil.h: Declare xg_uses_old_file_dialog.
2570
2571 2005-12-22 Richard M. Stallman <rms@gnu.org>
2572
2573 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
2574
2575 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2576
2577 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
2578
2579 * macgui.h (XCharStruct): Remove member `valid_p'.
2580 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
2581 (XCharStructRow): New typedef.
2582 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
2583 New macros.
2584 (struct MacFontStruct): Add member `bounds'. Remove member
2585 `per_char'. All uses for QuichDraw Text fonts are changed to
2586 `bounds.per_char'. ATSUI font bounds are represented as an array
2587 `bounds.rows' of XCharStructRow's, each of which consists of a
2588 bitmap of valid entries and an array of char bounds.
2589
2590 * macterm.c (mac_per_char_metric): Add prototype.
2591 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
2592 (mac_query_char_extents): New function.
2593 (x_per_char_metric): Use it.
2594 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
2595 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
2596 Use mac_per_char_metric instead of x_per_char_metric.
2597 (mac_text_extents_16): New function.
2598 (mac_compute_glyph_string_overhangs): Use it.
2599 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
2600
2601 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2602
2603 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
2604 (Fminibuffer_completion_help): Remove duplicates before display.
2605
2606 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2607
2608 * print.c (print_preprocess): Don't lose print_depth levels while
2609 iterating.
2610
2611 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2612
2613 * macmenu.c (Qmac_apple_event): Add extern.
2614 (set_frame_menubar, mac_menu_show keymp_panes)
2615 (single_keymap_panes, list_of_panes, list_of_item)
2616 (single_menu_item): Add argument types to prototypes.
2617 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
2618 (struct skp): New struct (from xmenu.c).
2619 (single_keymap_panes, single_menu_item, list_of_panes)
2620 (list_of_item): Sync with xmenu.c.
2621 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
2622 POSITION if it is mac-apple-event event.
2623 (menubar_selection_callback): Don't use menu_command_in_progress.
2624 (set_frame_menubar): First parse all submenus, then make
2625 widget_value trees from them. Don't allocate any widget_value
2626 objects until we are done with the parsing.
2627 (parse_single_submenu, digest_single_submenu): New functions.
2628 (single_submenu): Function deleted, replaced by those two.
2629 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
2630 create or dispose of EventHandlerUPP. Install hander to all submenus.
2631 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
2632 instead of ENCODE_SYSTEM.
2633 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
2634 integer values.
2635 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
2636 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
2637 format menu item string. Don't use NULL for integer value.
2638
2639 * macterm.h (struct mac_output): Remove unused member
2640 menu_command_in_progress.
2641
2642 2005-12-20 Juri Linkov <juri@jurta.org>
2643
2644 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
2645 position is non-nil, else set it to nil.
2646
2647 * macmenu.c (Fx_popup_menu): Add `else' to set
2648 Vmenu_updating_frame to nil only if position is nil.
2649
2650 * w32menu.c (Fx_popup_menu): Add `else' to set
2651 Vmenu_updating_frame to nil only if position is nil.
2652
2653 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2654
2655 * keyboard.c (make_lispy_event): Drag-and-drop items are now
2656 stored in member `args' of struct input_event.
2657
2658 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
2659
2660 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
2661 stored in member `args' of struct input_event.
2662
2663 * w32term.c (construct_drag_n_drop): Likewise.
2664
2665 * macterm.c (mac_do_receive_drag): Likewise.
2666 (x_use_underline_position_properties): Undo 2005-07-13 change.
2667 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
2668 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
2669 (mac_pass_command_to_system, mac_pass_control_to_system):
2670 New boolean variables renamed from Lisp_Object ones
2671 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
2672 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
2673 All uses changed.
2674 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
2675 Make them user options.
2676 (mac_handle_command_event, mac_store_services_event):
2677 Call create_apple_event_from_event_ref without 5th argument.
2678 (backtranslate_modified_keycode): Mask off modifier keys that are
2679 mapped to some Emacs modifiers before passing it to KeyTranslate.
2680 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
2681 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
2682 Fix docstrings of `mac-*-modifier'.
2683
2684 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
2685 (do_applescript): Change argument types to Lisp_Object.
2686 All uses changed.
2687
2688 * macterm.h (create_apple_event_from_event_ref): Remove 5th
2689 argument from extern.
2690
2691 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2692
2693 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
2694 the answer, return `lambda', not nil.
2695
2696 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2697
2698 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
2699 enclosed in $(ARGQUOTE)s should not be split between two lines, as
2700 that will break with GNU Make >3.80, when sh.exe is used and
2701 arg quoting is with '..'.
2702
2703 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * print.c (print_preprocess): Just signal an error if print_depth
2706 is exceeded.
2707
2708 2005-12-17 Eli Zaretskii <eliz@gnu.org>
2709
2710 * .gdbinit: Set a breakpoint on w32_abort.
2711
2712 2005-12-16 Juri Linkov <juri@jurta.org>
2713
2714 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
2715 created from minibuffer_completion_contents.
2716 (minibuffer_completion_contents): Remove.
2717 (do_completion, Fminibuffer_complete_word)
2718 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
2719 with Fminibuffer_completion_contents.
2720 (syms_of_minibuf): Add Sminibuffer_completion_contents.
2721 (Fdisplay_completion_list): Doc fix.
2722 (display_completion_list_1): Use `nil' for second arg of
2723 `Fdisplay_completion_list'.
2724
2725 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2726
2727 * xfns.c (compute_tip_xy): Handle negative dx and dy.
2728
2729 * w32fns.c (compute_tip_xy): Ditto.
2730
2731 * macfns.c (compute_tip_xy): Ditto.
2732
2733 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
2734
2735 * print.c (print_preprocess): Go to a deeper print_depth to avoid
2736 print_object loop.
2737
2738 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2739
2740 * coding.c (code_convert_region_unwind): GCPRO arg.
2741
2742 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2743
2744 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
2745 i.e. dy is offset from top of frame instead of bottom.
2746
2747 * macfns.c (compute_tip_xy): Ditto.
2748
2749 * w32fns.c (compute_tip_xy): Ditto.
2750
2751 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
2752 (xg_get_image_for_pixmap, xg_create_frame_widgets)
2753 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
2754
2755 * xmenu.c (menubar_selection_callback): Do nothing if the callback
2756 is for an unselected radio menu item.
2757
2758 2005-12-11 Richard M. Stallman <rms@gnu.org>
2759
2760 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
2761
2762 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
2763
2764 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
2765 (Flookup_key): Doc fix.
2766 (syms_of_keymap) <function-key-map>: Doc fix.
2767
2768 * fns.c (Frequire): Treat evaluating from a source file
2769 like loading the file.
2770
2771 * floatfns.c (Flog): Doc fix.
2772
2773 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
2774 when we change the buffer.
2775
2776 2005-12-11 Juri Linkov <juri@jurta.org>
2777
2778 * minibuf.c (display_completion_list_1):
2779 Call `minibuffer_completion_contents' instead of using `nil' as
2780 second arg of `Fdisplay_completion_list'.
2781 (keys_of_minibuf): Unbind SPC in
2782 Vminibuffer_local_filename_completion_map (see also related
2783 change on 2005-12-06).
2784
2785 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2786
2787 * emacs.c (main) [MAC_OS8]: Undo previous change.
2788
2789 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
2790 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
2791
2792 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2793
2794 * Makefile.in (macselect.o): Depend on keymap.h.
2795
2796 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
2797 syms_of_macselect.
2798
2799 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
2800 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
2801
2802 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
2803 (syms_of_keyboard) [MAC_OS]: Initialize it.
2804 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
2805
2806 * mac.c (Qundecoded_file_name): New variable.
2807 (syms_of_mac): Initialize it.
2808 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
2809 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
2810 (Fmac_coerce_ae_data): New defun.
2811 (syms_of_mac): Defsubr it.
2812
2813 * macselect.c: Include keymap.h.
2814 (mac_ready_for_apple_events): New variable.
2815 (Vmac_apple_event_map, Qmac_apple_event_class)
2816 (Qmac_apple_event_id): New variables.
2817 (syms_of_macselect): Initialize them.
2818 (Qundefined, mac_store_apple_event): Add externs.
2819 (struct apple_event_binding): New struct.
2820 (find_event_binding_fun, find_event_binding)
2821 (mac_find_apple_event_spec, defer_apple_events)
2822 (mac_handle_apple_event, init_apple_event_handler)
2823 (copy_scrap_flavor_data): New functions.
2824 (Fmac_process_deferred_apple_events): New defun.
2825 (syms_of_macselect): Defsubr it.
2826 (mac_store_services_event): Fix extern.
2827 (mac_handle_service_event): Don't allocate Lisp objects during
2828 asynchronous input processing. Use mac_store_services_event
2829 instead of mac_store_application_menu_event.
2830
2831 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
2832 (Qpreferences): Remove variables.
2833 (syms_of_macterm) : Don't initialize them.
2834 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
2835 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
2836 (init_required_apple_events, do_ae_open_application)
2837 (do_ae_print_documents, do_ae_open_documents)
2838 (do_ae_quit_application): Remove functions and prototypes.
2839 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
2840 (mac_find_apple_event_spec): Add externs.
2841 (mac_store_application_menu_event): Remove function.
2842 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
2843 (mac_handle_command_event): Create Apple event from Carbon event.
2844 Use mac_store_apple_event instead of mac_store_application_menu_event.
2845 [MAC_OSX] (mac_store_services_event): Likewise.
2846 (struct SelectionRange, SelectionRange): Remove struct and typedef.
2847 [MAC_OS8] (main): Call init_apple_event_handler instead of
2848 init_required_apple_events.
2849 (mac_initialize) [MAC_OSX]: Likewise.
2850 [!USE_CARBON_EVENTS] (mac_wait_next_event):
2851 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
2852
2853 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
2854 Add externs.
2855 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
2856 (Fmac_get_preference): Add EXFUN.
2857
2858 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
2859 event.
2860
2861 2005-12-09 Richard M. Stallman <rms@gnu.org>
2862
2863 * xfns.c (Fx_create_frame): Reinstate previous change.
2864
2865 2005-12-09 Eli Zaretskii <eliz@gnu.org>
2866
2867 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
2868 GDB to the abort dialog.
2869
2870 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
2871
2872 * indent.c (Fvertical_motion): Force move if starting on
2873 stretch glyph.
2874
2875 2005-12-08 Richard M. Stallman <rms@gnu.org>
2876
2877 * lread.c (read_escape) <\s>: Don't treat strings specially.
2878
2879 * xfns.c (Fx_create_frame): Comment out previous change.
2880
2881 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2882
2883 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
2884 when needed.
2885
2886 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2887
2888 * minibuf.c (keys_of_minibuf): Just unbind SPC in
2889 Vminibuffer_local_filename_completion_map rather than forcing it
2890 explicitly to the same binding as the global map.
2891
2892 2005-12-06 Ken Raeburn <raeburn@gnu.org>
2893
2894 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
2895 * bytecode.c (Fbyte_code): Likewise.
2896 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
2897 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
2898 * undo.c (truncate_undo_list): Likewise.
2899
2900 2005-12-05 Richard M. Stallman <rms@gnu.org>
2901
2902 * window.c (enlarge_window): Eliminate arg preserve_before.
2903 Assume it is 0. All callers changed.
2904 (Fenlarge_window, Fshrink_window): Likewise.
2905
2906 2005-12-02 Eli Zaretskii <eliz@gnu.org>
2907
2908 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
2909 fit below.
2910
2911 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2912
2913 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
2914
2915 * xfns.c (x_real_positions): int ign => unsigned int.
2916 (xg_set_icon_from_xpm_data): Remove unused variable err.
2917 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
2918 to remove compiler warning.
2919 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
2920
2921 2005-12-02 David Reitter <david.reitter@gmail.com>
2922
2923 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
2924 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
2925 and Vminibuffer_local_must_match_filename_map keymaps.
2926 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
2927
2928 * keymap.c (Vminibuffer_local_filename_completion_map)
2929 (Vminibuffer_local_must_match_filename_map): New variables.
2930 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
2931 parent to be Vminibuffer_local_completion_map and
2932 Vminibuffer_local_must_match_map, respectively.
2933
2934 * commands.h (Vminibuffer_local_filename_completion_map)
2935 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
2936
2937 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
2938
2939 * window.c (Fset_window_configuration): Don't accidentally copy the
2940 window-point of one window to another.
2941
2942 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2943
2944 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
2945
2946 2005-11-30 Kim F. Storm <storm@cua.dk>
2947
2948 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
2949 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
2950 passing it to `emacs_write'.
2951
2952 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
2953
2954 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
2955
2956 2005-11-27 Richard M. Stallman <rms@gnu.org>
2957
2958 * window.c (adjust_window_trailing_edge): New function.
2959 (Fadjust_window_trailing_edge): New function.
2960 (syms_of_window): Defsubr it.
2961 (window_deletion_count): New variable.
2962 (delete_window): Update window_deletion_count.
2963
2964 2005-11-26 Eli Zaretskii <eliz@gnu.org>
2965
2966 * minibuf.c (syms_of_minibuf): Mention the extension of
2967 `completion-auto-help's meaning by complete.el.
2968
2969 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
2970
2971 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2972 Handle :inherit property as a lisp expression.
2973
2974 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2975
2976 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
2977 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
2978 Qsuper, and Qmodifier_value.
2979 (Vmac_control_modifier, Vmac_option_modifier)
2980 (Vmac_command_modifier, Vmac_function_modifier)
2981 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
2982 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
2983 (Vmac_charset_info_alist): Doc fixes.
2984
2985 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2986
2987 * emacs.c (main) [MAC_OSX]: Change working directory to home
2988 directory if `-psn_*' option is specified.
2989
2990 * mac.c (DECODE_UTF_8): Remove macro.
2991 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
2992 created from cfstring_to_lisp.
2993 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
2994 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
2995
2996 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
2997 Add prototype.
2998
2999 2005-11-21 Ken Raeburn <raeburn@gnu.org>
3000
3001 * keymap.c (shadow_lookup): Use make_number to pass a number to
3002 Fsubstring.
3003
3004 2005-11-21 Juri Linkov <juri@jurta.org>
3005
3006 * puresize.h (BASE_PURESIZE): Increment to 1180000.
3007
3008 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * xfaces.c (Finternal_set_lisp_face_attribute):
3011 Use :ignore-defface for new frame defaults when `unspecified' is
3012 supplied.
3013 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
3014 (merge_face_vectors): Don't do :ignore-defface overwriting here.
3015 (Finternal_merge_in_global_face): Do it here.
3016
3017 2005-11-20 Juri Linkov <juri@jurta.org>
3018
3019 * charset.c (invalid_character): Use Lisp-readable syntax
3020 for octal and hex. Reorder decimal, octal and hex values.
3021
3022 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
3023
3024 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
3025 this type is recognised when debugging.
3026
3027 2005-11-19 Andreas Schwab <schwab@suse.de>
3028
3029 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
3030 Lisp_Cons and Lisp_Float.
3031
3032 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3033
3034 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
3035 New variable.
3036 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
3037 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
3038 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
3039 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
3040
3041 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
3042
3043 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
3044
3045 * xfaces.c (Qignore_defface): New variable.
3046 (syms_of_xfaces): Provide `:ignore-defface'.
3047 (IGNORE_DEFFACE_P): New macro.
3048 (check_lface_attrs, lface_fully_specified_p)
3049 (Finternal_set_lisp_face_attribute)
3050 (Fface_attribute_relative_p, Fmerge_face_attribute):
3051 Handle Qignore_defface as a possible value.
3052 (merge_face_vectors): The merged face is `unspecified' if the
3053 mergee specifies `:ignore-defface'.
3054
3055 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * lread.c (readevalloop): Add missing GCPROs.
3058
3059 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
3060
3061 * xfns.c (xg_set_icon_from_xpm_data): New function.
3062
3063 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
3064 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
3065
3066 * xterm.c (x_bitmap_icon): Use the xpm if available.
3067
3068 * image.c (x_create_bitmap_from_xpm_data): New function.
3069 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
3070
3071 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
3072
3073 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
3074
3075 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
3076
3077 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
3078
3079 2005-11-15 Andreas Schwab <schwab@suse.de>
3080
3081 * lisp.h (struct Lisp_Cons): Make cdr a union.
3082 (XCDR_AS_LVALUE): Adjust.
3083 (struct Lisp_Float): Make data a union.
3084 (XFLOAT_DATA): Adjust.
3085
3086 * alloc.c (free_float): Make free list chaining aliasing-safe.
3087 (make_float): Likewise.
3088 (free_cons): Likewise.
3089 (Fcons): Likewise.
3090 (check_cons_list): Likewise.
3091 (Fmake_symbol): Likewise.
3092 (allocate_misc): Likewise.
3093 (free_misc): Likewise.
3094 (gc_sweep): Likewise.
3095
3096 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3097
3098 * mac.c (HASHKEY_QUERY_CACHE): New define.
3099 (xrm_create_database, xrm_q_put_resource): Empty query cache.
3100 (xrm_get_resource): Use query cache.
3101
3102 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
3103 inhibit_window_system is set.
3104
3105 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3106
3107 * macgui.h (USE_CG_TEXT_DRAWING): New define.
3108 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
3109 and cg_glyphs.
3110
3111 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
3112 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
3113 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
3114 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
3115 not used and font substitution never occurs for ASCII and Latin-1
3116 characters.
3117 (XLoadQueryFont): Maximum and minimum metrics are now those among
3118 ASCII characters.
3119 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
3120 height adjustments for Courier, Helvetica, and Times.
3121
3122 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
3123
3124 2005-11-11 David Reitter <david.reitter@gmail.com>
3125
3126 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
3127 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
3128 Vmac_control_modifier / mac-control-modifier,
3129 Vmac_option_modifier / mac-option-modifier,
3130 Vmac_command_modifier / mac-command-modifier.
3131 (mac_to_emacs_modifiers): Use the new style modifier
3132 variables. Return UInt32 (modifiers are longs now.)
3133 (backtranslate_modified_keycode): New function (refactoring).
3134 (XTread_socket): Use new modifier variables and refactored function.
3135 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
3136 no dedicated meta key. Not in use anyway.)
3137 (convert_fn_keycode): Map Fn-keys to their original keycode
3138 using a table (english keyboard only).
3139
3140 2005-11-11 Kim F. Storm <storm@cua.dk>
3141
3142 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
3143 Add post hook to "backtrace" to always dump lisp call stack to
3144 increase chance of people sending it to us when reporting bugs.
3145
3146 * doc.c (Fsubstitute_command_keys): Doc fix.
3147
3148 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
3149
3150 * xdisp.c (handle_stop): Skip overlay string handling if
3151 ignore_overlay_strings_at_pos_p is set.
3152 (set_iterator_to_next): At end of display vector, set
3153 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
3154 string, so we skip those overlay strings at current pos.
3155
3156 2005-11-10 Lars Hansen <larsh@soem.dk>
3157
3158 * fileio.c (file-regular-p): Doc fix.
3159
3160 2005-11-10 Kim F. Storm <storm@cua.dk>
3161
3162 * alloc.c (valid_lisp_object_p): New function to validate that
3163 an object is really a valid Lisp_Object.
3164
3165 * lisp.h (valid_lisp_object_p): Add prototype.
3166
3167 * print.c (safe_debug_print): New function to be called from gdb
3168 to print Lisp objects; use valid_lisp_object_p to avoid crashing
3169 if user tries to print something which is not a Lisp object.
3170
3171 * .gdbinit (pp, pp1): Use safe_debug_print.
3172 (pv, pv1): New commands to print value of a lisp variable.
3173
3174 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
3175
3176 * .gdbinit (pp1): New user-defined function.
3177
3178 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3179
3180 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
3181
3182 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
3183 related variables for dumped executable.
3184
3185 * unexmacosx.c (unexec_write_zero): New function.
3186 (copy_data_segment): Clear uninitialized local variables in
3187 statically linked libraries.
3188
3189 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
3190
3191 2005-11-09 Juri Linkov <juri@jurta.org>
3192
3193 * keymap.c (shadow_lookup): If Flookup_key returns a number,
3194 call it again with a sub-key-sequence, and if its return value
3195 is non-nil (sub-key is bound), return nil.
3196
3197 2005-11-08 Kim F. Storm <storm@cua.dk>
3198
3199 * process.c (Fsignal_process): Recognize signal names with and
3200 without SIG prefix, e.g. SIGHUP and HUP.
3201
3202 * search.c (search_buffer): No need to initialize base_pat.
3203
3204 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
3205
3206 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
3207 Don't abuse the `mini' arg. Use the `obj' arg instead.
3208
3209 2005-11-04 Kim F. Storm <storm@cua.dk>
3210
3211 * xdisp.c (show_mouse_face): Clear mouse face to eol.
3212
3213 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
3214
3215 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
3216 font-lock.elc and jit-lock.elc.
3217
3218 2005-11-03 Richard M. Stallman <rms@gnu.org>
3219
3220 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
3221 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
3222 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
3223
3224 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
3225
3226 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
3227
3228 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3229
3230 * window.c (Fdisplay_buffer): Fix last change to not use
3231 a dedicated window.
3232
3233 2005-11-01 Kim F. Storm <storm@cua.dk>
3234
3235 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
3236 Instead, rotate the bottom angle bitmap 180 degrees to indicate
3237 that the bottom row does not end in a newline.
3238
3239 2005-11-01 Andreas Schwab <schwab@suse.de>
3240
3241 * unexelf.c (unexec): Handle .plt section in BSS segment.
3242
3243 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3244
3245 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
3246
3247 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
3248 determine whether to consider dedicated windows as well.
3249 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
3250 (Fdisplay_buffer): Do consider dedicated windows in those cases where
3251 we will split the window rather than reuse it.
3252 Don't try to use windows on other displays.
3253
3254 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
3255
3256 * puresize.h (BASE_PURESIZE): Increment to 1170000.
3257
3258 2005-10-31 Romain Francoise <romain@orebokech.com>
3259
3260 * macfns.c: Update copyright year.
3261 * m/gould.h: Likewise.
3262
3263 2005-10-30 Kim F. Storm <storm@cua.dk>
3264
3265 * xdisp.c (display_line): Restore it->current_x and call
3266 extend_face_to_end_of_line when last glyph doesn't fit on line.
3267 (set_glyph_string_background_width): Remove specific tests here
3268 to see if face background should extend to end of line. Simplify.
3269
3270 2005-10-30 Richard M. Stallman <rms@gnu.org>
3271
3272 * alloc.c (BYTES_USED): Use uordblks, not arena.
3273 (bytes_used_when_reconsidered): New variable.
3274 (emacs_blocked_free): Set that.
3275
3276 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * alloc.c (emacs_blocked_free): Fix typo.
3279
3280 2005-10-29 Richard M. Stallman <rms@gnu.org>
3281
3282 * data.c (Fmake_variable_frame_local): Doc fix.
3283
3284 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
3285 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
3286 controls whether to save and restore mode_line_proptrans_alist.
3287 Callers changed.
3288 (unwind_format_mode_line): Work with that feature.
3289 (redisplay_internal): Don't call prepare_menu_bars if memory full.
3290 (move_elt_to_front): New function.
3291 (display_mode_element): Use move_elt_to_front.
3292 Don't bother munging text props on a null string.
3293 Delete obsolete elts from mode_line_proptrans_alist.
3294 (decode_mode_spec): Test Vmemory_full, not spare_memory.
3295 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
3296
3297 * lisp.h (memory_full_cons_threshold): Declare.
3298 (internal_lisp_condition_case): Declare.
3299
3300 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
3301 (Fmemory_full_p): Function deleted.
3302 (syms_of_alloc): Don't defsubr it.
3303 (memory_full_cons_threshold): New variable.
3304 (spare_memory): Now a vector of 7 elts.
3305 (buffer_memory_full): Don't set Vmemory_full here.
3306 (xfree): Don't try to refill here.
3307 (emacs_blocked_free): Record BYTES_USED in local var.
3308 (memory_full): Now free all the slots in spare_memory.
3309 (refill_memory_reserve): Allocate each slot in spare_memory.
3310 (init_alloc_once): Call refill_memory_reserve.
3311
3312 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
3313
3314 * eval.c (internal_lisp_condition_case): New function.
3315 (Fcondition_case): Use internal_lisp_condition_case.
3316 (Feval): Test Vmemory_full and memory_full_cons_threshold.
3317 (Ffuncall): Likewise.
3318
3319 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
3320
3321 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3322
3323 * syntax.c (Fparse_partial_sexp): Fix docstring.
3324
3325 2005-10-28 Romain Francoise <romain@orebokech.com>
3326
3327 * puresize.h (BASE_PURESIZE): Increment to 1130000.
3328
3329 2005-10-28 Richard M. Stallman <rms@gnu.org>
3330
3331 * xfns.c (syms_of_xfns): Provide `x' as feature.
3332
3333 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
3334
3335 * editfns.c (Fformat): Don't include string padding
3336 between info[n].start and info[n].end.
3337
3338 * alloc.c (spare_memory): No longer static.
3339 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
3340
3341 * puresize.h (BASE_PURESIZE): Increment to 1120000.
3342
3343 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
3346
3347 * fringe.c (update_window_fringes): Handle case where buffer ends
3348 with a newline.
3349
3350 2005-10-27 Kenichi Handa <handa@m17n.org>
3351
3352 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
3353
3354 2005-10-24 Kenichi Handa <handa@m17n.org>
3355
3356 * charset.h (charset_mule_unicode_0100_24ff)
3357 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3358 Extern them.
3359
3360 * charset.c (charset_mule_unicode_0100_24ff)
3361 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
3362 New variables.
3363 (Fsetup_special_charsets): Initialize them.
3364
3365 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
3366 supported Unicode characters.
3367
3368 2005-10-25 Jason Rumney <jasonr@gnu.org>
3369
3370 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
3371
3372 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3373
3374 * image.c [MAC_OS] (image_load_qt_1): Check image size.
3375 Use GraphicsImportGetImageDescription instead of
3376 GraphicsImportGetNaturalBounds.
3377 [MAC_OSX] (image_load_quartz2d): Check image size.
3378 [MAC_OS] (xpm_load_image): Likewise.
3379
3380 * macterm.c (last_mouse_glyph_frame): New var.
3381 (note_mouse_movement): Say mouse moved if current frame differs
3382 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3383 (XTmouse_position): Set last_mouse_glyph_frame.
3384 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
3385 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
3386 Use EndianU16_BtoN.
3387 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
3388 (x_per_char_metric, XLoadQueryFont)
3389 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
3390 glyph bounds.
3391 (mac_to_x_fontname, mac_do_list_fonts)
3392 (mac_initialize_display_info): Change screen resolutions to 72dpi.
3393
3394 2005-10-25 Masatake YAMATO <jet@gyve.org>
3395
3396 * minibuf.c (Fdisplay_completion_list): Small doc fix.
3397
3398 2005-10-24 Kim F. Storm <storm@cua.dk>
3399
3400 * xterm.c: Undo 2005-10-23 change.
3401 (last_mouse_glyph_frame): New var.
3402 (note_mouse_movement): Say mouse moved if current frame differs
3403 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3404 (XTmouse_position): Set last_mouse_glyph_frame.
3405 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
3406 last_mouse_glyph] on mouse up/down event.
3407
3408 * editfns.c (Fcompare_buffer_substrings): Fix last change.
3409
3410 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3411
3412 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
3413
3414 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3415
3416 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
3417 so tool tips don't interfere with press on tool bar button.
3418
3419 2005-10-23 Richard M. Stallman <rms@gnu.org>
3420
3421 * casetab.c (Fset_case_table): Doc fix.
3422
3423 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
3424 (readevalloop): Compute ENTIRE properly.
3425 (syms_of_lread) <load-history>: Doc fix.
3426
3427 2005-10-21 Richard M. Stallman <rms@gnu.org>
3428
3429 * lread.c (Fload): Simplify gcpro structure.
3430 Gcpro FOUND as well as FILE, but not EFOUND.
3431 Unless preloading, record FOUND instead of FILE in Vload_history.
3432 Rename repeat local FILE to MSG_FILE.
3433 (syms_of_lread) <load-history>: Doc fix.
3434
3435 2005-10-21 Kenichi Handa <handa@m17n.org>
3436
3437 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
3438
3439 2005-10-20 Kim F. Storm <storm@cua.dk>
3440
3441 * buffer.c (clone_per_buffer_values): Remove unused var tem.
3442 (init_buffer): Remove unused vars dotstat, pwdstat.
3443
3444 * ccl.c (check_ccl_update): Remove unused var vp.
3445
3446 * fileio.c (auto_save_error): Call SAFE_FREE.
3447
3448 * fns.c (Fchar_table_range): Remove unused var i.
3449
3450 * minibuf.c (display_completion_list_1): New wrapper function
3451 for Fdisplay_completion_list.
3452 (Fminibuffer_completion_help): Use it.
3453
3454 * term.c (encode_terminal_code): Remove unused var src_start.
3455
3456 * window.c (Fwindow_tree): Remove unused var alist.
3457
3458 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
3459
3460 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
3461
3462 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
3463
3464 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
3465
3466 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
3467
3468 2005-10-20 Andreas Schwab <schwab@suse.de>
3469
3470 * minibuf.c (Fdisplay_completion_list): Doc fix.
3471
3472 2005-10-19 Kim F. Storm <storm@cua.dk>
3473
3474 * image.c (check_image_size): Handle integer Vmax_image_size value
3475 directly as max pixel value. Use default frame size for null frame.
3476 (syms_of_image) <max-image-size>: Describe integer value.
3477
3478 2005-10-19 Romain Francoise <romain@orebokech.com>
3479
3480 * emacs.c (main): Update copyright year.
3481
3482 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
3483
3484 * image.c (Vmax_image_size): New variable.
3485 (check_image_size): New function.
3486 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
3487 (gif_load, gs_load): Use it.
3488 (lookup_image): Try loading again if previous load failed.
3489 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
3490 to display in, NULL if none.
3491 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
3492 argument.
3493
3494 2005-10-18 Richard M. Stallman <rms@gnu.org>
3495
3496 * search.c (Fstring_match): Doc fix.
3497
3498 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3499
3500 * macterm.c (note_mouse_movement): Use PtInRect.
3501 (XTread_socket): Also ignore mouse motion just before a button
3502 release event. Don't process button release event when mouse is
3503 not grabbed.
3504
3505 2005-10-16 Masatake YAMATO <jet@gyve.org>
3506
3507 * minibuf.c (Fdisplay_completion_list): Add new optional
3508 argument COMMON_SUBSTRING. Bind `completion-common-substring'
3509 to the optional argument during running `completion-setup-hook'.
3510
3511 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3512
3513 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
3514 Allow nil as argument.
3515 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
3516 for encoding arguments as UTF-16 in native byte order, no BOM.
3517
3518 * macfns.c (Fx_create_frame): Add debugging code.
3519 (Fx_show_tip): Set frame pixel width and height.
3520
3521 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
3522 (FRAME_NORMAL_GC): New macro.
3523 (mac_draw_line, mac_clear_area, mac_clear_window)
3524 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
3525 (mac_draw_image_string, mac_draw_image_string_16): Rename from
3526 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
3527 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
3528 All uses changed.
3529 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
3530 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
3531 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
3532 (mac_draw_string_16, mac_draw_image_string)
3533 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
3534 (mac_scroll_area): Drawing functions now take frame as destination.
3535 All uses changed.
3536 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
3537 (x_draw_fringe_bitmap): Set clipping area in face->gc.
3538
3539 * macterm.h (mac_clear_area): Add extern.
3540
3541 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3542
3543 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
3544 changes for xterm.c.
3545
3546 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
3547
3548 2005-10-14 Kenichi Handa <handa@m17n.org>
3549
3550 * search.c (search_buffer): Give up BM search on case-fold-search
3551 if one of a target character has a case-equivalence of different
3552 charset even if that target charcter is an ASCII.
3553
3554 * casefiddle.c (casify_object): Fix for the case that case
3555 conversion change the byte length.
3556
3557 2005-10-14 Kim F. Storm <storm@cua.dk>
3558
3559 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
3560 (handle_one_xevent): Only clear help_echo_string; restore it if
3561 note_mouse_movement didn't record any mouse movement.
3562
3563 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
3564 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
3565
3566 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
3567 (Fposn_at_x_y): Fix calculation of x coordinate.
3568 (Fposn_at_point): Return nil if point is hscrolled out of view.
3569
3570 2005-10-13 Andreas Schwab <schwab@suse.de>
3571
3572 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
3573 non-interactive mode.
3574
3575 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3576
3577 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
3578
3579 2005-10-12 Kim F. Storm <storm@cua.dk>
3580
3581 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
3582
3583 2005-10-12 Romain Francoise <romain@orebokech.com>
3584
3585 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
3586
3587 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3588
3589 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
3590 get end of text rows. Obtain header-line/mode-line rows directly.
3591
3592 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
3593 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
3594
3595 2005-10-12 Kim F. Storm <storm@cua.dk>
3596
3597 * xdisp.c (remember_mouse_glyph): New generic version based on
3598 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
3599 properly handle all different window areas.
3600
3601 * dispextern.h (remember_mouse_glyph): Add prototype.
3602
3603 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
3604 (note_mouse_movement, XTmouse_position): Use generic
3605 remember_mouse_glyph, add last_mouse_glyph arg.
3606
3607 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
3608 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
3609 (note_mouse_movement, w32_mouse_position): Use generic
3610 remember_mouse_glyph, add last_mouse_glyph arg.
3611
3612 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
3613 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
3614 (XTmouse_position): Adapt to use generic remember_mouse_glyph
3615 instead of pixel_to_glyph_coords.
3616
3617 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
3618 Fix x position for ON_TEXT when left margin width > 0.
3619
3620 2005-10-11 Kim F. Storm <storm@cua.dk>
3621
3622 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
3623
3624 * keyboard.c (make_lispy_position): Fix buffer calculations for
3625 mouse click or movement in right fringe and the margins.
3626
3627 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
3628
3629 * image.c (fn_jpeg_stdio_src): Don't define it.
3630 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
3631 (our_common_init_source): Rename from `our_init_source'.
3632 (our_common_term_source): Rename from `our_term_source'.
3633 (our_memory_fill_input_buffer): Rename from
3634 `our_fill_input_buffer'.
3635 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
3636 (jpeg_memory_src): Use the new names.
3637 (struct jpeg_stdio_mgr): New struct.
3638 (JPEG_STDIO_BUFFER_SIZE): New constant.
3639 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
3640 (jpeg_file_src): New functions.
3641 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
3642
3643 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3644
3645 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
3646 (fm_font_family_alist): New variable.
3647 (syms_of_macterm): Initialize and staticpro it.
3648 (decode_mac_font_name): Replace '-' in family name with '_' if it
3649 occurs just once. Lower family name.
3650 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
3651 All uses changed. Remove argument MF and code conversion for it.
3652 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
3653 to CHARSET. Parse font size. Lower family name. Return integer
3654 value for status of parsing.
3655 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
3656 Don't use Fdowncase because family name is already lowered by
3657 decode_mac_font_name.
3658 (init_font_name_table): Always call decode_mac_font_name.
3659 Add pair of family name and its reference to fm_font_family_alist.
3660 (mac_clear_font_name_table): Clear fm_font_family_alist.
3661 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
3662 Lookup fm_font_family_alist to get font family reference.
3663 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
3664 name is already lowered by parse_x_font_name.
3665
3666 2005-10-11 Kim F. Storm <storm@cua.dk>
3667
3668 * xterm.c (glyph_rect): Return 0 if position is outside text area.
3669
3670 * keyboard.c (make_lispy_position): Fix buffer position calculation for
3671 mouse click or movement in fringe.
3672
3673 2005-10-10 Jason Rumney <jasonr@gnu.org>
3674
3675 * xterm.c (remember_mouse_glyph): New function.
3676 (note_mouse_movement): Use it to remember the current glyph if changed.
3677 (XTmouse_position): Fix calculation of fake glyph under mouse.
3678 Move code to calculate glyph under mouse into remember_mouse_glyph.
3679
3680 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3681
3682 * emacs.c (USAGE3, standard_args): -nb => -nbi.
3683
3684 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
3685
3686 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
3687 (next_frame, prev_frame, set_term_frame_name): Make static.
3688
3689 * window.c (Fwindow_tree): Fix spelling.
3690
3691 2005-10-09 Romain Francoise <romain@orebokech.com>
3692
3693 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
3694
3695 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3696
3697 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
3698 Add options -nb, --no-bitmap-icon.
3699
3700 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
3701
3702 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3703
3704 * macgui.h (MAX_CLIP_RECTS): New define.
3705 (struct _XGC): New member clip_region.
3706 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
3707 clip_rects.
3708
3709 * macterm.c (GC_CLIP_REGION): New macro.
3710 (saved_port_clip_region): New variable.
3711 (mac_begin_clip, mac_end_clip): New functions.
3712 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
3713 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
3714 (mac_copy_area_with_mask, mac_scroll_area): Use them.
3715 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
3716 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3717 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
3718 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
3719 rectangles stored in gc.
3720 (XFreeGC): Dispose of clipping region.
3721 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
3722 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
3723 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
3724 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
3725 (x_draw_bar_cursor): Use them.
3726 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
3727 get multiple clipping rectangles.
3728
3729 * macterm.h (mac_term_init): Add types to extern.
3730 (struct mac_output): Remove members mWP and pending_menu_activation.
3731 Put members scroll_bar_foreground_pixel and
3732 scroll_bar_background_pixel in #if 0.
3733 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
3734
3735 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
3736 Add debugging code.
3737
3738 2005-10-08 Kim F. Storm <storm@cua.dk>
3739
3740 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
3741
3742 2005-10-07 Kim F. Storm <storm@cua.dk>
3743
3744 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
3745 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
3746 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
3747
3748 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3749
3750 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
3751 to for_overlaps. Now occupy 3 bits.
3752 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
3753 (OVERLAPS_ERASED_CURSOR): New defines.
3754 (struct redisplay_interface): Add new OVERLAPS arg to member
3755 fix_overlapping_area.
3756 (x_fix_overlapping_area): Add new OVERLAPS arg.
3757 (get_glyph_string_clip_rects): Add extern.
3758
3759 * dispnew.c (redraw_overlapping_rows):
3760 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
3761
3762 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
3763 for_overlaps.
3764 (get_glyph_string_clip_rects): New function created from
3765 get_glyph_string_clip_rect. Set clipping rectangles according to the
3766 value of for_overlaps. Enable to store multiple clipping rectangles.
3767 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
3768 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
3769 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
3770 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
3771 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
3772 calculating clipping rectangles later. Call x_fix_overlapping_area
3773 with new OVERLAPS arg to draw only erased cursor area.
3774 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
3775 to draw overlaps in both preceding and succeeding rows.
3776
3777 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
3778 struct glyph_string to for_overlaps.
3779
3780 2005-10-04 Richard M. Stallman <rms@gnu.org>
3781
3782 * alloc.c (refill_memory_reserve): Conditionalize the body,
3783 not the function's existence.
3784
3785 2005-10-04 Kim F. Storm <storm@cua.dk>
3786
3787 * window.c (window_split_tree): New function.
3788 (Fwindow_split_tree): New defun.
3789 (syms_of_window): Defsubr it.
3790
3791 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3792
3793 * macterm.c (mac_invert_rectangle): New function.
3794 (XTflash): Use it.
3795
3796 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
3797
3798 * regex.h (re_char): Don't expose it in the interface.
3799 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
3800
3801 * regex.c (re_char): Move it back here.
3802 (re_set_whitespace_regexp): Change the arg's type to not use it.
3803
3804 * keyboard.c (make_lispy_event): If point has moved between down and up
3805 event, make it a drag, not a click, to mirror what
3806 mouse-drag-region expects.
3807
3808 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 * lisp.h (fatal): Undo previous change.
3811 * term.c (fatal): Undo previous change.
3812
3813 2005-10-01 Richard M. Stallman <rms@gnu.org>
3814
3815 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
3816
3817 2005-10-01 Kim F. Storm <storm@cua.dk>
3818
3819 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
3820
3821 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3822
3823 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
3824
3825 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
3826 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
3827 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
3828 Try ATSUI-compatible 12pt Monaco font first.
3829
3830 * macgui.h (struct _XCharStruct): New member valid_p.
3831 (STORE_XCHARSTRUCT): Set valid_p.
3832 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
3833
3834 * macterm.c (mac_draw_string_common, x_per_char_metric)
3835 (mac_compute_glyph_string_overhangs, init_font_name_table)
3836 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
3837 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
3838 (x_draw_glyph_string_background)
3839 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
3840 XDrawImageString. Always draw background and foreground separately.
3841 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
3842 functions for one-byte chars when using ATSUI-compatible fonts.
3843 (atsu_font_id_hash) [USE_ATSUI]: New variable.
3844 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3845 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
3846 max_char_or_byte2 more in detail.
3847 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
3848
3849 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3850
3851 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
3852 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
3853
3854 * unexelf.c (fatal): Fix prototype.
3855
3856 * term.c (fatal): Implement using varargs.
3857
3858 * regex.c (re_char): Move typedef ...
3859 * regex.h (re_char): ... here.
3860 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
3861
3862 * emacs.c (malloc_set_state): Fix return type.
3863 (endif): Fix type.
3864
3865 * lisp.h (fatal): Add argument types.
3866
3867 * dispextern.h (fatal): Delete prototype.
3868
3869 * systime.h (make_time): Prototype moved from ...
3870 * editfns.c (make_time): ... here.
3871
3872 * editfns.c: Move systime.h include after lisp.h.
3873 * dired.c:
3874 * xsmfns.c:
3875 * process.c: Likewise.
3876
3877 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
3878 Add parameter types.
3879 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
3880 (emacs_blocked_free): Change definition to match __free_hook.
3881 (emacs_blocked_malloc): Change definition to match __malloc_hook.
3882 (emacs_blocked_realloc): Change definition to match __realloc_hook.
3883
3884 2005-09-30 Romain Francoise <romain@orebokech.com>
3885
3886 * minibuf.c (Fread_buffer): Follow convention for reading from the
3887 minibuffer with a default value. Doc fix.
3888
3889 2005-09-29 Juri Linkov <juri@jurta.org>
3890
3891 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
3892 Rename argument name `string' to `format-string'.
3893 (Fformat): Doc fix.
3894
3895 2005-09-28 Kim F. Storm <storm@cua.dk>
3896
3897 * image.c (gif_load): Fix size of allocated image buffer
3898 for images where a sub-image may be larger than the image's
3899 total height/width specifications.
3900
3901 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3902
3903 * macgui.h (struct _XCharStruct): Each member now takes short value.
3904
3905 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
3906
3907 * xfaces.c (lookup_derived_face): Add parameter type.
3908
3909 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
3910
3911 * marker.c (verify_bytepos): Add parameter type.
3912
3913 * process.c (get_operating_system_release): Move prototype ...
3914
3915 * systime.h (get_operating_system_release): ... here.
3916
3917 * xterm.c (handle_one_xevent): Refer to union field to match the
3918 type required by the function definition.
3919 (set_vertical_scroll_bar): Move prototype ...
3920
3921 * xterm.h: ... here.
3922
3923 * fns.c (internal_equal, seed_random): Fix prototypes.
3924 (internal_equal): Add missing parameter.
3925
3926 2005-09-25 Richard M. Stallman <rms@gnu.org>
3927
3928 * keyboard.c (update_menu_bindings): Variable deleted.
3929 (syms_of_keyboard): Don't defvar it.
3930 (parse_menu_item): Don't test it.
3931
3932 2005-09-23 Richard M. Stallman <rms@gnu.org>
3933
3934 * editfns.c (Fformat): Explicitly test for end of format string
3935 and don't use `index'.
3936
3937 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
3938
3939 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
3940 Define BROKEN_GET_CURRENT_DIR_NAME.
3941
3942 * sysdep.c (get_current_dir_name): Also define if
3943 BROKEN_GET_CURRENT_DIR_NAME.
3944
3945 * m/ibmrs6000.h: Test for USG5, not USG5_4.
3946
3947 2005-09-22 Kim F. Storm <storm@cua.dk>
3948
3949 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
3950 (message2): Fix commentary. Ok to use alloca'ed memory.
3951 Still not ok to use Lisp string data (because of GC).
3952 (set_message): Add comment why GC cannot happen.
3953
3954 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3955
3956 * macterm.c (xlfdpat_block_match_1): Fix assertion.
3957 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
3958 variants for a scalable font multiple times.
3959
3960 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3961
3962 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
3963 Setup slave tty options before forking.
3964
3965 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3966
3967 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
3968 positions have been set for the frame (as is done for frames in
3969 special-display-buffer-names).
3970
3971 2005-09-19 Kim F. Storm <storm@cua.dk>
3972
3973 * editfns.c (Fformat): Don't scan past end of format string that
3974 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
3975
3976 2005-09-18 Andreas Schwab <schwab@suse.de>
3977
3978 * window.h (struct window): Remove height_fixed_p, no longer set.
3979
3980 * window.c (make_window): Don't initialize height_fixed_p.
3981 (window_fixed_size_p): Don't use it.
3982
3983 2005-09-18 John Paul Wallington <jpw@pobox.com>
3984
3985 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
3986
3987 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3988
3989 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
3990
3991 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
3992 New variables.
3993 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
3994 file selection.
3995
3996 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
3997
3998 2005-09-17 Eli Zaretskii <eliz@gnu.org>
3999
4000 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
4001 (obj): Use XMENU_OBJ, not a literal xmenu.o.
4002
4003 2005-09-16 Romain Francoise <romain@orebokech.com>
4004
4005 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
4006
4007 2005-09-15 Richard M. Stallman <rms@gnu.org>
4008
4009 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
4010 (display_mode_element): Instead of `lisp_string' and `this',
4011 record `offset' and increment that.
4012 `last_offset' replaces `last'.
4013
4014 * Makefile.in (XMENU_OBJ): Variable deleted.
4015 (obj): Use xmenu.o unconditionally.
4016 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
4017
4018 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
4019
4020 2005-09-15 Kim F. Storm <storm@cua.dk>
4021
4022 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
4023 (reseat_at_next_visible_line_start): Likewise (in xassert).
4024
4025 2005-09-14 Romain Francoise <romain@orebokech.com>
4026
4027 * fileio.c (write_region_inhibit_fsync): New variable.
4028 (Fwrite_region): Use it to skip call to fsync.
4029 (syms_of_fileio): Initialize it.
4030
4031 2005-09-14 Kenichi Handa <handa@m17n.org>
4032
4033 * coding.c (code_convert_region_unwind): Argument format changed.
4034 (run_pre_post_conversion_on_str): If pre-write-conversion function
4035 changed the current buffer, delete the new buffer.
4036 (run_pre_write_conversin_on_c_str): Likewise.
4037
4038 * fileio.c (Fexpand_file_name): Check multibyteness of
4039 default_directory.
4040
4041 2005-09-13 Kenichi Handa <handa@m17n.org>
4042
4043 * composite.c (compose_chars_in_text): Delete it.
4044
4045 * composite.h (compose_chars_in_text): Delete extern.
4046
4047 2005-09-13 Kim F. Storm <storm@cua.dk>
4048
4049 * print.c (print_error_message): Fix last change.
4050
4051 2005-09-12 Kim F. Storm <storm@cua.dk>
4052
4053 * composite.c (compose_chars_in_text): Fix setup of `pend'.
4054 Unconditionally reload `ptr' and `pend' after eval.
4055
4056 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
4057
4058 * print.c (print_error_message): Pass copy of caller name to
4059 message_dolog.
4060
4061 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
4062
4063 2005-09-12 Kenichi Handa <handa@m17n.org>
4064
4065 * xdisp.c (display_mode_element): Be sure to make variables THIS
4066 and LISP_STRING point into a string data of ELT.
4067
4068 2005-09-12 Kim F. Storm <storm@cua.dk>
4069
4070 * editfns.c (Ftranslate_region_internal): Reload `tt' after
4071 signal_after_change that may have GC'ed.
4072 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
4073
4074 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
4075 after insert while runs signal_after_change.
4076
4077 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
4078 declaration to where it is used.
4079
4080 * w32.c (check_windows_init_file): Fix allocation of error buffer.
4081
4082 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
4083 (x_set_name_internal): Call x_encode_text with new FREEP arg to
4084 know if xfree is needed instead of guessing.
4085
4086 * xterm.h (x_encode_text): Remove prototype.
4087
4088 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
4089
4090 * w32term.c (x_bitmap_icon): Load small icons too.
4091
4092 2005-09-10 Romain Francoise <romain@orebokech.com>
4093
4094 * buffer.c (init_buffer): Grow buffer to add directory separator
4095 and terminal zero. Fix typos.
4096
4097 2005-09-10 Eli Zaretskii <eliz@gnu.org>
4098
4099 * buffer.c (init_buffer): Fix error message for failed call to
4100 get_current_dir_name.
4101 (get_current_dir_name): Remove prototype.
4102
4103 * xsmfns.c (get_current_dir_name): Remove prototype.
4104
4105 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4106 Add prototype.
4107
4108 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
4109 Don't #undef NULL after including blockinput.h.
4110
4111 * config.in: Regenerated.
4112
4113 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
4114
4115 Remove the MAXPATHLEN limitations:
4116
4117 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4118 New function.
4119
4120 * buffer.c (init_buffer): Use it.
4121
4122 * xsmfns.c (smc_save_yourself_CB): Ditto.
4123
4124 2005-09-09 Kim F. Storm <storm@cua.dk>
4125
4126 * doc.c (Fsubstitute_command_keys): Lookup key binding for
4127 commands that are remapped from some other command.
4128
4129 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
4130 flag in disabled rows below the window.
4131
4132 * frame.h (struct frame): New member updated_p.
4133
4134 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
4135 member. Remove local `updated' array and associated variables.
4136
4137 2005-09-07 Kim F. Storm <storm@cua.dk>
4138
4139 * xdisp.c (handle_display_prop): Respect overlay window property.
4140
4141 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
4142 Fixes crash reported by YAMAMOTO Mitsuharu.
4143
4144 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4145
4146 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
4147 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
4148 (xlfdpat_block_match_1, xlfdpat_match): New functions.
4149 (xlfdpat_block_match): New macro.
4150 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
4151 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
4152 (add_font_name_table_entry): Increase font_name_table_size more
4153 rapidly.
4154 (mac_c_string_match): Remove function.
4155 (mac_do_list_fonts): Use XLFD pattern match instead of regular
4156 expression match.
4157
4158 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
4159
4160 2005-09-03 Richard M. Stallman <rms@gnu.org>
4161
4162 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
4163 (move_it_in_display_line_to): Stop after last char on line even
4164 on a windowing terminal, if that's the specified stop position.
4165
4166 * fns.c (Fsort): Doc fix.
4167
4168 * editfns.c (Fpropertize): Don't insist that properties be symbols.
4169
4170 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
4171
4172 * dired.c (directory_files_internal_unwind, directory_files_internal)
4173 (file_name_completion): Use a Save_Value object rather than a cons of
4174 two 16bit ints to store the DIR*.
4175 (directory_files_internal, file_name_completion): Handle both EINTR and
4176 EAGAIN consistently after `readdir'.
4177
4178 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4179
4180 * intervals.c (update_interval): Add position info in error.
4181
4182 * dispnew.c (window_to_frame_hpos, update_window):
4183 Avoid gcc warning about unused variable `f'.
4184
4185 2005-08-31 Jason Rumney <jasonr@gnu.org>
4186
4187 * w32menu.c (add_menu_item): If unicode_append_menu returns an
4188 error, revert to using AppendMenu.
4189
4190 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4191
4192 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
4193 All uses changed.
4194 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
4195 cases.
4196 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
4197 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
4198 Use posix_pathname_to_fsspec.
4199 [MAC_OS] (xpm_load_image): Fill in background_transparent field
4200 while we have mask.
4201
4202 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
4203
4204 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
4205
4206 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4207
4208 * syntax.c (update_syntax_table): Properly reproduce the special +1
4209 setting of e_property at the end of the buffer when bumping into the
4210 INTERVALS_AT_ONCE limit.
4211
4212 2005-08-27 Eli Zaretskii <eliz@gnu.org>
4213
4214 * emacs.c (USAGE1): Fix the description of the -Q option.
4215
4216 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
4217
4218 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
4219
4220 2005-08-26 Kim F. Storm <storm@cua.dk>
4221
4222 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
4223 Don't move PT to new window start.
4224
4225 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4226
4227 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
4228 ICONIFY/DEICONIFY_EVENT.
4229
4230 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
4231 Restore background color.
4232 (mac_handle_visibility_change): New function.
4233 (x_make_frame_invisible, x_iconify_frame)
4234 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
4235 [USE_CARBON_EVENTS] (mac_handle_window_event)
4236 (install_window_handler): Handle visibility change events.
4237 (x_make_frame_visible): Don't reposition window if it is iconified
4238 or asked for visible before. Select and uncollapse window when it
4239 is made visible.
4240 (x_make_frame_invisible): Don't reset x_highlight_frame.
4241 (x_iconify_frame): Likewise. Make invisible frame visible before
4242 it is iconified.
4243 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
4244 (do_window_update): Don't change visibility of invisible frame.
4245
4246 2005-08-22 Juri Linkov <juri@jurta.org>
4247
4248 * term.c (turn_on_face): Check for TS_set_foreground and
4249 TS_set_background depending on standout_mode. Simplify.
4250
4251 2005-08-21 Kim F. Storm <storm@cua.dk>
4252
4253 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
4254 bitmaps on fully visible rows.
4255
4256 * fringe.c (update_window_fringes): Replace FORCE_P arg with
4257 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
4258 and return 0.
4259
4260 * xdisp.c (redisplay_window): Call update_window_fringes with
4261 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
4262
4263 2005-08-20 Richard M. Stallman <rms@gnu.org>
4264
4265 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
4266 (resize_mini_window): Set w->start, and PT, so as to display the tail
4267 end of the buffer, if it doesn't all fit.
4268
4269 2005-08-18 Kim F. Storm <storm@cua.dk>
4270
4271 * xdisp.c (calc_pixel_width_or_height): Use actual display
4272 resolution when available instead of Vdisplay_pixels_per_inch.
4273
4274 2005-08-17 Kim F. Storm <storm@cua.dk>
4275
4276 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
4277
4278 * dispnew.c (buffer_posn_from_coords): Check that target row is
4279 within matrix.
4280
4281 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4282
4283 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
4284 xg_set_frame_icon and call it.
4285
4286 * gtkutil.c (xg_set_frame_icon): New function.
4287
4288 * gtkutil.h (xg_set_frame_icon): Declare it.
4289
4290 2005-08-16 Kim F. Storm <storm@cua.dk>
4291
4292 * dispnew.c (increment_row_positions): Skip non-enabled rows.
4293
4294 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
4295 (Fcurrent_window_configuration): Use VECSIZE macro instead.
4296
4297 2005-08-15 Richard M. Stallman <rms@gnu.org>
4298
4299 * xdisp.c (message3_nolog): Clear echo_message_buffer.
4300
4301 2005-08-15 Kim F. Storm <storm@cua.dk>
4302
4303 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
4304
4305 * process.c (deactivate_process, status_notify, read_process_output)
4306 (update_status, status_convert, decode_status, allocate_pty)
4307 (make_process, remove_process, list_processes_1)
4308 (create_process_1, unwind_request_sigio, read_process_output)
4309 (send_process, keyboard_bit_set): Declare static.
4310 (Fdelete_process): Simplify. Pass process to status_notify, so we
4311 don't try to read output from it.
4312 (status_notify): New arg deleting_process--don't try to read
4313 output from that process.
4314
4315 * lisp.h (deactivate_process, status_notify, read_process_output):
4316 Remove prototypes.
4317
4318 2005-08-14 Richard M. Stallman <rms@gnu.org>
4319
4320 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
4321 define_image_type.
4322
4323 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4324
4325 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
4326 (xg_get_image_for_pixmap): Move some code to
4327 xg_get_pixbuf_from_pix_and_mask, and call it.
4328
4329 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
4330
4331 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
4332 to get an GTK icon and set it with GTK functions to avoid having GTK
4333 override an icon set with just X functions.
4334
4335 2005-08-11 Richard M. Stallman <rms@gnu.org>
4336
4337 * image.c (syms_of_image): Init image_types here, and call
4338 define_image_type.
4339 (init_image): Not here.
4340
4341 2005-08-09 Richard M. Stallman <rms@gnu.org>
4342
4343 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
4344
4345 * lisp.h (QUIT): Throw t to Vthrow_on_input.
4346
4347 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
4348
4349 * floatfns.c (Fexpt): Use floats for negative exponent.
4350
4351 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4352
4353 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
4354 should not be there, causing menu display errors with GTK 2.6.9.
4355
4356 2005-08-07 Richard M. Stallman <rms@gnu.org>
4357
4358 * floatfns.c (Fexpt): Undo previous change.
4359
4360 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
4361 so it can be used with various state vectors.
4362
4363 * emacs.c (endif): Convert -script into -scriptload.
4364 (standard_args): Add -scriptload. Allow -basic-display with one dash.
4365
4366 * fns.c (syms_of_fns): Add `emacs' to features.
4367
4368 * term.c (set_terminal_modes): If no TS_termcap_modes string,
4369 output newlines to scroll the old screen contents off the screen.
4370
4371 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
4372
4373 * floatfns.c (Fexpt): Use floats for negative exponent.
4374 Reported by D Goel.
4375
4376 2005-08-02 Richard M. Stallman <rms@gnu.org>
4377
4378 * frame.c (Fframe_char_width): Doc fix.
4379
4380 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
4381
4382 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
4383 Defvar it.
4384
4385 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
4386
4387 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
4388 (my_create_window, my_create_tip_window): Make static.
4389
4390 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
4391 (my_set_foreground_window, my_destroy_window): Make static.
4392
4393 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
4394
4395 Merge gnulib getopt implementation into Emacs.
4396
4397 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
4398 now part of lib-src.
4399
4400 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
4401
4402 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
4403
4404 2005-07-25 Jason Rumney <jasonr@gnu.org>
4405
4406 * w32menu.c (w32_menu_display_help): Suppress tooltip when
4407 navigating menus with the keyboard.
4408
4409 2005-07-23 Richard M. Stallman <rms@gnu.org>
4410
4411 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
4412
4413 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
4414 gc_relative_threshold, one by one.
4415
4416 * keyboard.c (read_char): Test gc_cons_threshold.
4417 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
4418
4419 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
4420 gc_relative_threshold, one by one.
4421
4422 * alloc.c (gc_cons_threshold): Not static.
4423 (gc_cons_combined_threshold): Var deleted.
4424 (gc_relative_threshold): New variable.
4425 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
4426 instead of gc_cons_combined_threshold.
4427
4428 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
4429 (gc_cons_combined_threshold): Declaration deleted.
4430
4431 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4432
4433 * mac.c: Don't include stdlib.h or string.h.
4434 (Fdo_applescript, Fmac_file_name_to_posix)
4435 (Fmac_file_name_to_posix): Doc fixes.
4436 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
4437 (Fmac_code_convert_string): Likewise.
4438 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
4439 if the executable is not contained in a bundle.
4440
4441 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
4442 (gray_width, gray_height): Remove defines.
4443 (gray_bits, gray_bitmap_width, gray_bitmap_height)
4444 (gray_bitmap_bits): Remove variables.
4445 (lispy_function_keys): Remove extern.
4446 (free_frame_menubar): Add extern.
4447 (x_window_to_frame): Remove function.
4448 (unwind_create_tip_frame): Add declaration.
4449 (x_set_name_internal): New function.
4450 (x_set_name, x_set_title): Use it.
4451 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
4452 (Fx_display_pixel_height, Fx_display_planes)
4453 (Fx_display_color_cells, Fx_server_max_request_size)
4454 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4455 (Fx_display_mm_height, Fx_display_mm_width)
4456 (Fx_display_backing_store, Fx_display_visual_class)
4457 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
4458
4459 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4460
4461 * macselect.c (Fx_own_selection_internal): Follow error conventions.
4462 (Fx_get_selection_internal, Fx_selection_owner_p)
4463 (Fx_selection_exists_p): Doc fixes.
4464 (syms_of_macselect) <selection-converter-alist>: Likewise.
4465
4466 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
4467
4468 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4469
4470 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
4471 (Fccl_execute_on_string): Likewise; add usage info.
4472
4473 * composite.c (Fcompose_region_internal)
4474 (Fcompose_string_internal):
4475 Improve argument/docstring consistency.
4476
4477 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
4478 Fix typos in docstrings.
4479
4480 * textprop.c (Fnext_char_property_change)
4481 (Fprevious_char_property_change): Doc fixes.
4482
4483 * window.c (Fset_window_margins, Fset_window_fringes):
4484 Improve argument/docstring consistency.
4485
4486 * xfaces.c (Finternal_lisp_face_p): Doc fix.
4487
4488 2005-07-21 Andreas Schwab <schwab@suse.de>
4489
4490 * eval.c (restore_stack_limits): Return a value.
4491
4492 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
4493
4494 * eval.c (Fdefvar): Doc fix.
4495
4496 2005-07-20 Kim F. Storm <storm@cua.dk>
4497
4498 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
4499 Use make_save_value to unwind protect stream.
4500
4501 * lread.c (Fload, load_unwind):
4502 Use make_save_value to unwind protect stream.
4503
4504 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
4505
4506 * eval.c (Fprog2, Fcalled_interactively_p),
4507 (syms_of_eval) <debug-on-quit>: Doc fixes.
4508 (syms_of_eval) <max-specpdl-size>:
4509 (Finteractive_p): Fix typos in docstrings.
4510
4511 2005-07-19 Kim F. Storm <storm@cua.dk>
4512
4513 * w32fns.c (Vx_hand_shape): Variable removed.
4514 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
4515
4516 2005-07-19 Kenichi Handa <handa@m17n.org>
4517
4518 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
4519
4520 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
4521
4522 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
4523
4524 2005-07-18 Kim F. Storm <storm@cua.dk>
4525
4526 * frame.h (struct frame): New member already_hscrolled_p.
4527
4528 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
4529 to avoid redisplay looping hscrolling back and forth ad infinitum.
4530
4531 2005-07-18 Juri Linkov <juri@jurta.org>
4532
4533 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
4534 * keymap.c (Fminor_mode_key_binding):
4535 * macterm.c (mac-emulate-three-button-mouse):
4536 Delete duplicate duplicate words.
4537
4538 2005-07-18 Ken Raeburn <raeburn@gnu.org>
4539
4540 * minibuf.c (Ftest_completion): Fix odd syntax in test.
4541
4542 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4543
4544 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
4545
4546 * macgui.h (struct _XGC): New struct.
4547 (GC): Use it.
4548 (GCForeground, GCBackground, GCFont): Use X11 mask values.
4549 (XCreateGC, XParseGeometry): Move externs to macterm.h.
4550
4551 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
4552 (XSetFont): Add declaration.
4553 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
4554 Remove functions.
4555 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
4556 New defines.
4557 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
4558 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
4559 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
4560 Use them.
4561 (mac_erase_rectangle): New function.
4562 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
4563 (x_draw_stretch_glyph_string): Use it.
4564 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
4565 (XSetBackground, XSetFont): Adjust for new GC implementation.
4566 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
4567 (XTset_vertical_scroll_bar): Clear area under scroll bar.
4568
4569 * macterm.h (struct mac_display_info): Change types of
4570 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
4571 (XCreateGC, XParseGeometry): Move externs from macgui.h.
4572
4573 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
4574
4575 2005-07-16 Richard M. Stallman <rms@gnu.org>
4576
4577 * buffer.c (Fmake_overlay): Doc fix.
4578
4579 2005-07-16 Eli Zaretskii <eliz@gnu.org>
4580
4581 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
4582 Vw32_valid_locale_ids, and Vw32_valid_codepages.
4583
4584 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4585
4586 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
4587 Use Fstring_as_unibyte instead of string_make_unibyte.
4588
4589 2005-07-15 Richard M. Stallman <rms@gnu.org>
4590
4591 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
4592
4593 2005-07-15 Kim F. Storm <storm@cua.dk>
4594
4595 * xdisp.c: Fix redisplay loop in last change.
4596 (IT_POS_VALID_AFTER_MOVE_P): New macro.
4597 (move_it_vertically_backward, move_it_by_lines): Use it.
4598
4599 2005-07-14 Jason Rumney <jasonr@gnu.org>
4600
4601 * w32.c (init_environment): Default HOME directory to user's
4602 appdata directory if possible.
4603
4604 2005-07-14 Kim F. Storm <storm@cua.dk>
4605
4606 * .gdbinit (pitx): Fix output format. Print string charpos.
4607
4608 * lread.c (syms_of_lread): Initialize seen_list.
4609
4610 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
4611
4612 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
4613 Staticpro re_match_object.
4614
4615 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4616
4617 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
4618 dereference.
4619
4620 * macterm.c (mac_window_to_frame): Remove duplicate define.
4621
4622 2005-07-14 Kenichi Handa <handa@m17n.org>
4623
4624 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
4625 (code_convert_region): Adjust for the above change.
4626 (set_conversion_work_buffer): If the work buffer is already in
4627 use, generate a new buffer and return it. Otherwise return Qnil.
4628 (run_pre_post_conversion_on_str): Adjust for the above change.
4629 (run_pre_write_conversin_on_c_str): Likewise.
4630
4631 2005-07-13 Kim F. Storm <storm@cua.dk>
4632
4633 * xdisp.c (start_display): Don't reseat to next visible line start
4634 if current start position is in a string or image.
4635 (move_it_vertically_backward): Be sure to move out of strings and
4636 images when moving it2 forward.
4637 (move_it_by_lines): When moving forward, move to next buffer
4638 position if we end up in a string or image. When moving backward,
4639 count rows moved over when moving to start of current row in case
4640 row starts in middle of a string or image. Also move further
4641 backward if we end up in a string or image.
4642 (try_cursor_movement): If overlay string spans multiple lines,
4643 move backward to set cursor on start of an overlay string.
4644 (cursor_row_p): Row is ok if cursor is at newline from string, but
4645 string starts on this line (so we always position cursor at start
4646 of string).
4647
4648 * indent.c (Fvertical_motion): If start position is on an image,
4649 don't move back if we move too far (that's almost certain to happen).
4650
4651 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
4652 row in minibuffer windows.
4653 (try_window): Don't check margins in minibuffer windows.
4654
4655 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4656
4657 * macterm.c: Don't include stdlib.h or composite.h.
4658 (x_use_underline_position_properties, last_mouse_press_frame)
4659 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
4660 (syms_of_macterm, mac_initialize): Don't initialize them.
4661 (waiting_for_input, initial_argv, initial_argc)
4662 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
4663 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
4664 (extra_keyboard_modifiers): Fix type in extern.
4665 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
4666 (x_scroll_bar_report_motion): Add argument types to declaration.
4667 (mac_compute_glyph_string_overhangs): Add declaration.
4668 (disable_mouse_highlight): Remove unused variable.
4669 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
4670 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
4671 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
4672 All callers changed.
4673 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
4674 timestamp.
4675 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
4676 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
4677 only when its width is less than the height.
4678 (XTredeem_scroll_bar): Sync with xterm.c.
4679 (font_name_table, font_name_table_size, font_name_count):
4680 Make static.
4681 (drag_and_drop_file_list): Remove variable. Previous use is now
4682 local to function.
4683 (do_ae_open_documents): Move DRAG_N_DROP event construction part
4684 from XTread_socket.
4685 (XTread_socket): Consolidate setting of event timestamp.
4686 Move DRAG_N_DROP event construction part to do_ae_open_documents.
4687 Support extra_keyboard_modifiers.
4688
4689 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
4690 beginning with that for ASCII.
4691
4692 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
4693
4694 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
4695 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
4696 (syms_of_alloc): Declare gc-cons-percentage.
4697
4698 * eval.c (Feval, Ffuncall):
4699 * keyboard.c (read_char):
4700 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
4701
4702 * lisp.h (gc_cons_combined_threshold): Declare.
4703
4704 2005-07-12 Kim F. Storm <storm@cua.dk>
4705
4706 * coding.c (Qprocess_argument):
4707 * coding.h (Qprocess_argument): Remove unused var.
4708
4709 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
4710
4711 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4712
4713 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
4714 Endian.h.
4715 [!MAC_OSX] (fchmod, fchown): New functions.
4716 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
4717 Use SBYTES and EndianU32_BtoN.
4718 (mac_get_object_from_code): Return 4 byte string even if argument
4719 is 0. Use make_unibyte_string and EndianU32_NtoB.
4720 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
4721 (Fmac_set_file_type): Fix documents and argument declarations.
4722 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
4723
4724 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4725
4726 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
4727
4728 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4729
4730 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
4731 Lucid if X_I18N, font otherwise.
4732
4733 2005-07-10 Steven Tamm <steventamm@mac.com>
4734
4735 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
4736 (Fmac_set_file_type, Fmac_set_file_creator): Add.
4737 (mac_get_object_from_code, mac_get_code_from_arg): Add.
4738
4739 2005-07-10 Richard M. Stallman <rms@gnu.org>
4740
4741 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
4742 (syms_of_lread): Set up eval-buffer-list.
4743 (Feval_buffer, Feval_region): Bind eval-buffer-list.
4744
4745 2005-07-08 Richard M. Stallman <rms@gnu.org>
4746
4747 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
4748
4749 2005-07-08 Kim F. Storm <storm@cua.dk>
4750
4751 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
4752 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
4753
4754 2005-07-07 Kim F. Storm <storm@cua.dk>
4755
4756 * window.c (Frecenter): Fix last change (set iarg before use).
4757
4758 2005-07-06 Richard M. Stallman <rms@gnu.org>
4759
4760 * window.c (Frecenter): When arg is inside the scroll margin,
4761 move it out of the margin.
4762
4763 2005-07-06 Jason Rumney <jasonr@gnu.org>
4764
4765 * w32console.c (initialize_w32_display): Detect when the console
4766 dimensions are insane, and default to 80x25 instead.
4767 (w32_use_full_screen_buffer): Default to NIL.
4768
4769 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4770
4771 * macterm.c (mac_draw_vertical_window_border): Use foreground of
4772 VERTICAL_BORDER_FACE_ID for vertical border line.
4773 (mac_encode_char): Call check_ccl_update in advance.
4774 (mac_to_x_fontname, x_font_name_to_mac_font_name)
4775 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
4776 Don't assume that font family length is less than 32.
4777 (x_compute_min_glyph_bounds): Make static.
4778 (x_load_font): Never set fonts_changed_p to zero.
4779
4780 2005-07-04 Lute Kamstra <lute@gnu.org>
4781
4782 * Update FSF's address in GPL notices.
4783
4784 2005-07-03 Richard M. Stallman <rms@gnu.org>
4785
4786 * xdisp.c (try_window): Fix previous change in how it handles
4787 a partially-visible line or one only partly past the margin.
4788
4789 * window.c (window_scroll_pixel_based): Take account
4790 of this_scroll_margin when finding point when scrolling up.
4791
4792 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
4793
4794 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4795 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
4796 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4797
4798 2005-07-02 Juri Linkov <juri@jurta.org>
4799
4800 * w32term.c (w32_draw_vertical_window_border): Use foreground of
4801 VERTICAL_BORDER_FACE_ID for vertical border line.
4802
4803 2005-07-02 Eli Zaretskii <eliz@gnu.org>
4804
4805 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
4806 fchmod so that chmod doesn't get called on MSDOS before the file
4807 is closed.
4808
4809 2005-07-01 Jason Rumney <jasonr@gnu.org>
4810
4811 * w32term.c (cleartype_active): New flag for enabling sub-pixel
4812 workaround.
4813 (w32_initialize): Initialize it.
4814 (w32_native_per_char_metric): Allow a couple of extra pixels when
4815 Cleartype is active.
4816
4817 * w32term.c (w32_initialize): Move check for screen reader here
4818 from syms_of_w32term.
4819
4820 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4821
4822 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
4823 is not zero.
4824
4825 2005-07-01 Masatake YAMATO <jet@gyve.org>
4826
4827 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
4828
4829 2005-06-30 Juri Linkov <juri@jurta.org>
4830
4831 * xdisp.c (x_draw_vertical_border): If left fringe is not present
4832 decrease x coord of vertical border by 1 pixel to not occupy text
4833 area of the right window.
4834
4835 * xterm.c (x_draw_vertical_window_border): Use foreground of
4836 VERTICAL_BORDER_FACE_ID for vertical border line.
4837
4838 * term.c (turn_on_face): In standout mode apply specified
4839 fg to bg, and specified bg to fg (this makes the logic of
4840 inversion on terminal consistent with X).
4841
4842 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
4843
4844 * eval.c (user_variable_p_eh): New function.
4845 (Fuser_variable_p): Use it. Clarify docstring.
4846 Return t for aliases of user options, nil for alias loops.
4847
4848 2005-06-27 Richard M. Stallman <rms@gnu.org>
4849
4850 * eval.c (Fdefvar): Improve error message.
4851
4852 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4853
4854 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
4855 change.
4856
4857 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
4858
4859 * eval.c (Fdefvar): Don't try to set constant symbols.
4860
4861 2005-06-25 Richard M. Stallman <rms@gnu.org>
4862
4863 * macfns.c (Fx_show_tip): Pass new arg to try_window.
4864
4865 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
4866
4867 * xfns.c (Fx_show_tip): Pass new arg to try_window.
4868
4869 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
4870 (redisplay_window): Handle try_window reporting point in scroll margin.
4871
4872 * dispextern.h (try_window): Declare new arg.
4873
4874 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
4875 Use fchmod to copy the file modes.
4876 (Frename_file): Don't copy UID and GID here;
4877 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
4878
4879 * eval.c (call_debugger): Take full care of extending stack limits
4880 to make space for the debugger, and restore the change afterward.
4881 Bind debug-on-error to nil.
4882 (restore_stack_limits): New subroutine.
4883 (Fsignal): Extend specpdl bound along with eval depth bound,
4884 for calling edebug. Don't do either one, for calling debugger.
4885 (find_handler_clause): Don't bind debug-on-error here.
4886 Don't unbind anything either.
4887 Temporarily advance max_specpdl_size for calling
4888 internal_with_output_to_temp_buffer.
4889 (grow_specpdl): Don't alter max_specpdl_size before signaling
4890 an error.
4891 (syms_of_eval) <max-specpdl-size>: Doc fix.
4892
4893 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
4894
4895 2005-06-24 Eli Zaretskii <eliz@gnu.org>
4896
4897 * fileio.c (Frename_file): Undo last change: no need to ifdef away
4898 chown on DOS_NT platforms.
4899
4900 * w32.c (sys_chown): New function.
4901
4902 * s/ms-w32.h (chown): New; define to sys_chown.
4903
4904 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
4905
4906 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
4907 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
4908
4909 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
4910
4911 2005-06-23 Richard M. Stallman <rms@gnu.org>
4912
4913 * xdisp.c (get_next_display_element): Finish reversing the tests of
4914 Vnobreak_char_display.
4915
4916 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
4917 All uses changed.
4918 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
4919 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
4920
4921 * fileio.c (Frename_file): Preserve owner and group, if possible,
4922 when copying.
4923
4924 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
4925
4926 * abbrev.c (Funexpand_abbrev):
4927 * category.c (Fmake_category_set):
4928 * dispnew.c (Fsleep_for, Fsit_for):
4929 * editfns.c (Fsubst_char_in_region):
4930 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
4931 * frame.c (make_frame_without_minibuffer):
4932 * lread.c (read_vector):
4933 * macfns.c (check_x_frame):
4934 * process.c (Fstop_process, Fcontinue_process):
4935 * search.c (Freplace_match):
4936 * syntax.c (Fstring_to_syntax):
4937 * w32fns.c (check_x_frame, check_x_display_info):
4938 * xfaces.c (x_supports_face_attributes_p):
4939 * xselect.c (Fx_own_selection_internal): Follow error conventions.
4940
4941 * image.c (fn_png_init_io): Don't define it.
4942 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
4943 (png_read_from_file): New function, based on png_read_from_memory.
4944 (png_load): Use it, instead of fn_png_init_io.
4945
4946 2005-06-23 Kim F. Storm <storm@cua.dk>
4947
4948 * search.c (Fmatch_data): Remove evaporate option.
4949 (Fset_match_data): Do not mention evaporate option in doc string.
4950 Add commentary explaining evaporate arg (for internal use only).
4951 (unwind_set_match_data): Add comment on evaporate use.
4952
4953 2005-06-22 Miles Bader <miles@gnu.org>
4954
4955 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
4956 (realize_basic_faces, syms_of_xfaces): Update references to it.
4957 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
4958 to `VERTICAL_BORDER_FACE_ID'.
4959 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
4960
4961 2005-06-21 Juri Linkov <juri@jurta.org>
4962
4963 * dispextern.h: Add extern Qframe_set_background_mode.
4964
4965 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
4966 Qframe_set_background_mode.
4967
4968 * frame.c (Fmodify_frame_parameters):
4969 Call frame-set-background-mode after changing the background color
4970 on non-window non-dos branch.
4971
4972 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
4973
4974 * fns.c (Fchar_table_range):
4975 * process.c (Fmake_network_process): Fix spellings.
4976
4977 2005-06-20 Kim F. Storm <storm@cua.dk>
4978
4979 * fns.c (Fsort): Doc fix.
4980
4981 2005-06-20 Miles Bader <miles@gnu.org>
4982
4983 * xfaces.c (Qvertical_divider): New variable.
4984 (realize_basic_faces): Realize its face.
4985 (syms_of_xfaces): Initialize it.
4986
4987 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
4988
4989 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
4990 window-separator on ttys using `vertical-divider' face by default.
4991
4992 2005-06-17 Richard M. Stallman <rms@gnu.org>
4993
4994 * xdisp.c (get_next_display_element):
4995 Reverse test of Vshow_nonbreak_escape.
4996
4997 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
4998 (Ftty_no_underline): New function.
4999 (syms_of_term): defsubr it.
5000
5001 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
5002
5003 * dispnew.c (spec_glyph_lookup_face): New function.
5004 (build_frame_matrix_from_leaf_window): Use it.
5005
5006 * dispextern.h (spec_glyph_lookup_face): Add declaration.
5007
5008 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5009
5010 2005-06-12 Richard M. Stallman <rms@gnu.org>
5011
5012 * keyboard.c (read_char): After catching a longjmp,
5013 call restore_getcjmp.
5014
5015 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
5016
5017 * xselect.c (lisp_data_to_selection_data): Fix spelling.
5018
5019 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5020
5021 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
5022 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
5023 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
5024 events.
5025 (XTread_socket): Don't pass keyboard events with the option
5026 modifier to the system when Vmac_command_key_is_meta is nil or
5027 Vmac_option_modifier is non-nil.
5028 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
5029 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
5030 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
5031 handler function.
5032 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
5033 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
5034 handler part to mac_handle_mouse_event.
5035
5036 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
5037
5038 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
5039 NEW-ALIAS and BASE-VARIABLE, respectively.
5040
5041 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5042
5043 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5044 (get_phys_cursor_geometry, format_mode_line_unwind_data)
5045 (get_line_height_property, x_produce_glyphs): Remove unused vars.
5046
5047 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
5048
5049 2005-06-13 Eli Zaretskii <eliz@gnu.org>
5050
5051 * w32term.c (x_use_underline_position_properties): New variable.
5052 (x_draw_glyph_string): Remind in a comment to change doc string of
5053 x-use-underline-position-properties if/when underline positioning
5054 is implemented.
5055 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
5056 and initialize it to nil.
5057
5058 2005-06-12 Jason Rumney <jasonr@gnu.org>
5059
5060 * w32fns.c (NEWOPENFILENAME): New struct.
5061 (Fx_file_dialog): Use it to trick the system into giving us up to
5062 date dialogs on systems that are documented to support it.
5063 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
5064
5065 2005-06-12 Eli Zaretskii <eliz@gnu.org>
5066
5067 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
5068 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
5069
5070 2005-06-11 Eli Zaretskii <eliz@gnu.org>
5071
5072 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
5073 to CreateDIBSection to avoid a compiler warning.
5074 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
5075 warning.
5076 (png_load): Cast return values of fn_png_create_read_struct and
5077 fn_png_create_info_struct, to avoid compiler warnings on W32.
5078 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
5079 to avoid compiler warnings.
5080 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
5081 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
5082 avoid a compiler warning.
5083 (tiff_load): Cast return values of fn_TIFFOpen and
5084 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
5085 to IMAGE_BACKGROUND to avoid a compiler warning.
5086 (gif_load): Cast return values of fn_DGifOpenFileName and
5087 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
5088 IMAGE_BACKGROUND to avoid a compiler warning.
5089 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
5090 before redefining.
5091
5092 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
5093 the call to CreateDIBSection, to avoid a compiler warning.
5094
5095 2005-06-11 Jason Rumney <jasonr@gnu.org>
5096
5097 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
5098 minibuffer.
5099 * macfns.c (Fx_file_dialog): Likewise.
5100
5101 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5102
5103 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
5104
5105 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5106
5107 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
5108 * w32fns.c (syms_of_w32fns): Fix spellings.
5109
5110 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5111
5112 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5113 `verbose'; print diagnostic messages only if it is non-zero.
5114 All callers changed to pass a zero value unless DEBUG_DUMP is defined
5115 in the environment.
5116 (copy_executable_and_dump_data): Print section names with %.8s.
5117
5118 2005-06-10 Masatake YAMATO <jet@gyve.org>
5119
5120 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
5121 when mouse_face is not given.
5122
5123 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
5124
5125 * window.c (Fselect_window): Adapt call to Fselect_frame.
5126
5127 * lisp.h: Update EXFUN of Fselect_frame.
5128
5129 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
5130
5131 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
5132 no_enter.
5133 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
5134 Adapt to above change.
5135
5136 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5137
5138 * fns.c (Fmemq, Fmaphash): Doc fixes.
5139
5140 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
5141
5142 * xfaces.c (Fdisplay_supports_face_attributes_p):
5143 Fix typo in docstring.
5144
5145 2005-06-08 Steven Tamm <steventamm@mac.com>
5146
5147 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
5148 used by gcc4 on intel mac.
5149
5150 2005-06-09 Kim F. Storm <storm@cua.dk>
5151
5152 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
5153 in REUSE list if non-nil; free them if equal to evaporate.
5154 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
5155 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
5156 (restore_search_regs): Rename from restore_match_data. Uses changed.
5157 (unwind_set_match_data): New function.
5158 (record_unwind_save_match_data): New function like save-match-data.
5159
5160 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
5161 (record_unwind_save_match_data): Add prototype.
5162 (restore_search_regs): Rename from restore_match_data.
5163
5164 * composite.c (compose_chars_in_text):
5165 * eval.c (do_autoload):
5166 * macmenu.c (set_frame_menubar):
5167 * process.c (read_process_output, exec_sentinel):
5168 * xmenu.c (set_frame_menubar):
5169 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
5170 * w32menu.c (set_frame_menubar):
5171 Use record_unwind_save_match_data.
5172
5173 2005-06-08 Richard M. Stallman <rms@gnu.org>
5174
5175 * xdisp.c (get_next_display_element): Alter previous change:
5176 Distinguish Vshow_nonbreak_escape = t or not t.
5177 For t, use escape_glyph once again, as before previous change.
5178 Use space or hyphen for display, instead of the non-ASCII char.
5179 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
5180
5181 * process.c (Fstart_process): Don't touch command_channel_p slot.
5182
5183 * process.h (struct process): Delete command_channel_p.
5184
5185 2005-06-07 Masatake YAMATO <jet@gyve.org>
5186
5187 * xdisp.c (note_mode_line_or_margin_highlight):
5188 Check the overlapping of re-rendering area to avoid flickering.
5189 (note_mouse_highlight): Call clear_mouse_face if PART
5190 is not ON_MODE_LINE nor ON_HEADER_LINE.
5191
5192 2005-06-07 Kim F. Storm <storm@cua.dk>
5193
5194 * process.c: Improve commentary for adaptive read buffering.
5195
5196 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
5197
5198 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
5199 if available.
5200
5201 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5202
5203 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
5204 New functions for popping down menus on C-g.
5205 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
5206
5207 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
5208 non-static.
5209
5210 * config.in: Add HAVE_CANCELMENUTRACKING.
5211
5212 2005-06-06 Eli Zaretskii <eliz@gnu.org>
5213
5214 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
5215
5216 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
5217
5218 * w32proc.c (RVA_TO_PTR): New macro.
5219
5220 * w32heap.c (RVA_TO_PTR): No need to #undef now.
5221
5222 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
5223 Depend on w32heap.h.
5224
5225 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
5226
5227 * keyboard.c (command_loop_1): Update Vthis_original_command.
5228
5229 2005-06-06 Richard M. Stallman <rms@gnu.org>
5230
5231 * xmenu.c (popup_get_selection): Undo previous change.
5232
5233 2005-06-06 Juri Linkov <juri@jurta.org>
5234
5235 * xdisp.c (Qno_break_space): New variable.
5236 (syms_of_xdisp): Initialize it.
5237 (get_next_display_element): Add no-break space and soft hypen
5238 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
5239 Use `no-break-space' face for no-break spaces.
5240
5241 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5242
5243 * window.c (delete_window): Handle the case where a h/vchild has
5244 a h/vchild.
5245
5246 2005-06-05 Eli Zaretskii <eliz@gnu.org>
5247
5248 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
5249 call to pfn_setsockopt, cast optval to `const char *'.
5250
5251 2005-06-04 Eli Zaretskii <eliz@gnu.org>
5252
5253 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
5254 (open_unc_volume): Cast return value of map_w32_filename, to avoid
5255 compiler warnings.
5256
5257 * s/ms-w32.h (fileno): Don't define if already defined.
5258
5259 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
5260
5261 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
5262
5263 2005-06-04 Richard M. Stallman <rms@gnu.org>
5264
5265 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
5266
5267 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5268
5269 * macmenu.c (cleanup_popup_menu): New function.
5270 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
5271 mac_menu_show Quit:s.
5272 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
5273 a dialog).
5274
5275 2005-06-04 Kim F. Storm <storm@cua.dk>
5276
5277 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
5278
5279 * callproc.c (Fcall_process): Don't use alloca to gradually
5280 increase size of buf, as it effectively uses twice the necessary
5281 space on the stack. Instead, pre-allocate buf of full size, and
5282 gradually increase the read size.
5283
5284 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
5285
5286 * eval.c (unbind_to): Preserve value of Vquit_flag.
5287
5288 * xterm.c (handle_one_xevent): Also ignore mouse motion just
5289 before a button release event.
5290
5291 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
5292
5293 * xfaces.c (Finternal_lisp_face_equal_p): Really report
5294 on faces in a frame, if the argument FRAME is non-nil.
5295 Improve argument/docstring consistency.
5296
5297 2005-06-02 Kim F. Storm <storm@cua.dk>
5298
5299 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
5300 (x_consider_frame_title, Fformat_mode_line): Save offset into
5301 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
5302
5303 2005-06-01 Kim F. Storm <storm@cua.dk>
5304
5305 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
5306
5307 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5308
5309 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
5310 resolution fields for scalable fonts to 0.
5311
5312 * xfaces.c (build_scalable_font_name): Round pixel size to the
5313 nearest integer.
5314
5315 2005-06-01 Kim F. Storm <storm@cua.dk>
5316
5317 * xdisp.c (display_mode_line): Support nested calls to redisplay
5318 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
5319
5320 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5321
5322 * fileio.c (Finsert_file_contents):
5323 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5324
5325 2005-05-31 Kim F. Storm <storm@cua.dk>
5326
5327 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
5328 (mode_line_noprop_ptr): Rename from frame_title_*.
5329 (store_mode_line_noprop_char): Rename from store_frame_title_char.
5330 (store_mode_line_noprop): Rename from store_frame_title.
5331 (mode_line_target): New enum to specify current output target
5332 for mode line formatting.
5333 (display_mode_element): Test it rather than frame_title_ptr and
5334 mode_line_string_list to determine where output should go.
5335 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
5336 (Vmode_line_unwind_vector): New variable.
5337 (format_mode_line_unwind_data, unwind_format_mode_line):
5338 New functions for unwind protection in mode line formatting.
5339 (x_consider_frame_title): Use them and new local var 'title_start'
5340 to support nested calls to format-mode-line and redisplay.
5341 Set mode_line_target to MODE_LINE_TITLE.
5342 (Fformat_mode_line): Use them and new local var 'string_start' to
5343 support nested calls to format-mode-line and redisplay.
5344 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
5345 Don't trim trailing dashes.
5346 (decode_mode_spec): Don't make infinite number of trailing dashes
5347 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
5348 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
5349 mode_line_string_face_prop, and Vmode_line_unwind_vector.
5350 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
5351 Initialize mode_line_target to MODE_LINE_DISPLAY.
5352
5353 2005-05-29 Richard M. Stallman <rms@gnu.org>
5354
5355 * buffer.c (Fbuffer_local_value): Call indirect_variable.
5356
5357 2005-05-28 Masatake YAMATO <jet@gyve.org>
5358
5359 * xdisp.c (note_mode_line_or_margin_highlight): Change the
5360 pointer to a hand cursor when hoovering over a mouse-face.
5361
5362 2005-05-27 Kenichi Handa <handa@m17n.org>
5363
5364 * xterm.c (x_encode_char): Call check_ccl_update in advance.
5365
5366 * ccl.c: Now an element of Vccl_program_table is a vector of
5367 length 4, not 3.
5368 (ccl_get_compiled_code): New arg idx. Caller changed.
5369 Adjust for the change of Vccl_program_table.
5370 (setup_ccl_program): Adjust for the change of Vccl_program_table.
5371 (check_ccl_update): New function.
5372 (Fregister_ccl_program): Use ASET to set an element of a vector.
5373 Adjusted for the change of Vccl_program_table.
5374
5375 * ccl.h (struct ccl_program): New member idx.
5376 (check_ccl_update): Extern it.
5377
5378 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
5379
5380 * image.c (Vimage_library_alist): Move from image.el.
5381 (syms_of_image): Defvar it.
5382 (lookup_image_type): Use it.
5383
5384 * buffer.c (Fbuffer_local_value): Make argument name match its use
5385 in docstring.
5386
5387 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
5388
5389 * keyboard.c (Frecursive_edit): Fix typo in docstring.
5390 (Fposn_at_x_y): Make argument name match its use in docstring.
5391
5392 2005-05-26 Lute Kamstra <lute@gnu.org>
5393
5394 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
5395
5396 2005-05-24 Masatake YAMATO <jet@gyve.org>
5397
5398 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
5399 as loop sentinels.
5400
5401 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
5402
5403 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
5404 select frame title ("Question"/"Information").
5405 (xdialog_show): Use it.
5406
5407 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
5408
5409 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
5410
5411 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
5412 a third argument (Qnil).
5413
5414 * lisp.h: x-popup-dialog can have three arguments.
5415
5416 * editfns.c (Fmessage_box): Use "Information" for frame title.
5417
5418 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
5419
5420 * termcap.c [VMS]: Include <starlet.h>.
5421
5422 2005-05-23 Masatake YAMATO <jet@gyve.org>
5423
5424 * xdisp.c (note_mode_line_or_margin_highlight): Add code
5425 for mouse-face. Change the type of the first argument from `window'
5426 to `Lisp_Object'.
5427 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
5428 window instead of w.
5429
5430 2005-05-22 Andreas Schwab <schwab@suse.de>
5431
5432 * process.c (send_process): Move misplaced volatile.
5433
5434 2005-05-21 Richard M. Stallman <rms@gnu.org>
5435
5436 * xdisp.c (display_mode_element): If we're processing a list and
5437 padding is specified, put it after the last element.
5438
5439 2005-05-21 Eli Zaretskii <eliz@gnu.org>
5440
5441 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
5442 "superroot" on DOS_NT systems.
5443
5444 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
5445
5446 * process.c (send_process): Restore the SIGPIPE handler if we
5447 catch a SIGPIPE.
5448
5449 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
5450
5451 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
5452 misleading comments).
5453 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
5454
5455 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
5456
5457 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
5458 Correct the right value.
5459
5460 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
5461
5462 * keyboard.c (syms_of_keyboard): Remove Lisp variables
5463 post-command-idle-hook and post-command-idle-delay.
5464 (command_loop_1): Don't try to execute post-command-idle-hook.
5465
5466 2005-05-16 Kim F. Storm <storm@cua.dk>
5467
5468 * xdisp.c (handle_display_prop): Handle empty replacement.
5469 (handle_single_display_spec): Return -1 for empty replacement.
5470
5471 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
5472
5473 * .gdbinit (pitx): Print more info about iterator.
5474
5475 2005-05-16 Andreas Schwab <schwab@suse.de>
5476
5477 * unexmacosx.c (unexec_realloc): Move declarations before statements.
5478
5479 2005-05-14 Richard M. Stallman <rms@gnu.org>
5480
5481 * xdisp.c (message3): Call cancel_echoing.
5482
5483 * alloc.c (Fmemory_full_p): New function.
5484 (syms_of_alloc): defsubr it.
5485
5486 * process.c (send_process_trap): Unblock SIGPIPE.
5487 (send_process): Reset SIGPIPE handler before reporting error.
5488
5489 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
5490
5491 * emacs.c (syms_of_emacs): Fix doc string for system-type.
5492
5493 2005-05-13 Richard M. Stallman <rms@gnu.org>
5494
5495 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
5496 (Finsert_file_contents): If we read 0 bytes from a special file,
5497 unlock the visited file if we locked it.
5498 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
5499 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
5500
5501 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5502
5503 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
5504
5505 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
5506 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5507 redisplay from being paused by them.
5508
5509 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
5510 [!MAC_OSX] (target_ticks): Remove variable.
5511 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
5512 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
5513 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
5514 event occurs before timeout, behave as if the function were interrupted.
5515 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
5516 handling using Time Manager routines.
5517 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
5518 New variables.
5519 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
5520 (setitimer): New functions.
5521
5522 * macfns.c, macmenu.c: Don't include signal.h.
5523
5524 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
5525 Rename from get_control_part_bound. All callers changed.
5526 (x_scroll_bar_clear): New function.
5527 (x_clear_frame): Use it.
5528 (XTset_vertical_scroll_bar): Don't call Draw1Control.
5529 (x_scroll_bar_handle_click): Change type of second argument from
5530 int to ControlPartCode.
5531 (check_alarm): Remove declaration.
5532 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
5533 (XTread_socket): Use ControlPartCode instead of SInt16.
5534
5535 2005-05-13 Nozomu Ando <nand@mac.com>
5536
5537 * unexmacosx.c: Include assert.h.
5538 (MACOSX_MALLOC_MULT16): New define.
5539 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
5540 ptr is in unexec regions by checking it is multiple of 16.
5541 (unexec_malloc_header_t): New typedef.
5542 (unexec_malloc, unexec_realloc, unexec_free): Store and use
5543 allocated size information in unexec_malloc_header.
5544
5545 2005-05-10 Richard M. Stallman <rms@gnu.org>
5546
5547 * xterm.c (noinclude): Add #undef.
5548
5549 * image.c, xfns.c, xmenu.c: Don't include signal.h.
5550
5551 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
5552
5553 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
5554 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
5555 Doc fixes.
5556
5557 * dired.c (Ffile_name_completion): Make argument name
5558 match its use in docstring.
5559
5560 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
5561
5562 * eval.c (Fdefvaralias): Remove any pre-existing
5563 variable-documentation property of the alias.
5564
5565 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
5566
5567 * xfns.c (start_hourglass): Do nothing when running on a tty.
5568
5569 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
5570
5571 * fns.c (Fchar_table_range): Fix typos in docstring.
5572
5573 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5574
5575 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
5576
5577 2005-05-06 Eli Zaretskii <eliz@gnu.org>
5578
5579 * lread.c (Flocate_file_internal): Doc fix.
5580
5581 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
5582
5583 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5584
5585 * macselect.c (x_own_selection): Accept Lisp string as result of
5586 selection converter function.
5587 (x_clear_frame_selections): Don't call x-lost-selection-functions
5588 if Emacs is not owner of the selection.
5589 (Vmac_services_selection): Put variable and initialization in
5590 #ifdef MAC_OSX.
5591 (syms_of_macselect) [MAC_OSX]: Set default value of
5592 Vmac_services_selection to PRIMARY.
5593
5594 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
5595 (mac_handle_tool_bar_click): Remove unused function and declaration.
5596 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
5597 (install_scroll_bar_timer, set_scroll_bar_timer)
5598 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
5599 (get_control_part_bound, x_scroll_bar_handle_press)
5600 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
5601 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
5602 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
5603 (scroll_bar_timer_event_posted_p): New variables.
5604 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
5605 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
5606 (x_scroll_bar_create): Set control reference with NewControl.
5607 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
5608 Initialize track_top and track_height to nil.
5609 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
5610 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
5611 (XTset_vertical_scroll_bar): Don't make space between scroll bar
5612 and associated window.
5613 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
5614 from window config.
5615 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5616 Set track_top and track_height to nil when scroll bar size is changed.
5617 Recalculate them if they are nil.
5618 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
5619 clicked control is a scroll bar.
5620 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
5621 event handler functions. Don't add modifiers to scroll bar click
5622 events. Call scroll bar release handler when window is deactivated.
5623 (mac_initialize): Remove unused code for X toolkit.
5624 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
5625 Initialize Vx_toolkit_scroll_bars to nil.
5626
5627 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5628 New members track_top and track_height.
5629
5630 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
5631 init_process when including sys/select.h.
5632
5633 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
5634
5635 * eval.c (Fdefvaralias): Doc fix.
5636
5637 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5638
5639 2005-05-05 Kim F. Storm <storm@cua.dk>
5640
5641 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
5642 default value.
5643 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
5644 Fix type of cursor-in-non-selected-windows.
5645
5646 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5647
5648 * mac.c: #undef init_process so not to conflict with system headers.
5649
5650 2005-05-02 Richard M. Stallman <rms@gnu.org>
5651
5652 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
5653
5654 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
5655
5656 * xdisp.c (Vcursor_in_non_selected_windows)
5657 (Qcursor_in_non_selected_windows): Vars deleted.
5658 (syms_of_xdisp): Don't initialize them.
5659 (get_window_cursor_type): Use cursor_in_non_selected_windows
5660 buffer slot.
5661
5662 2005-05-02 Kim F. Storm <storm@cua.dk>
5663
5664 * macros.c (executing_kbd_macro_index): Rename from
5665 executing_macro_index. All uses changed.
5666 (executing_kbd_macro_iterations): Rename from
5667 executing_macro_iterations. All uses changed.
5668 (executing_kbd_macro): Rename from executing_macro.
5669 All uses changed.
5670 (syms_of_macros): Rename Lisp var executing-macro-index to
5671 executing-kbd-macro-index.
5672
5673 * xdisp.c (move_it_in_display_line_to): Fix last change.
5674
5675 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5676
5677 * xmenu.c (Fx_popup_menu): Doc fix.
5678
5679 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
5680
5681 2005-05-02 Jason Rumney <jasonr@gnu.org>
5682
5683 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
5684
5685 2005-05-02 Nozomu Ando <nand@mac.com>
5686
5687 * sysselect.h: Fix typo.
5688
5689 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
5690
5691 * charset.c (Fchars_in_region): Remove as obsolete.
5692
5693 2005-05-01 Kim F. Storm <storm@cua.dk>
5694
5695 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
5696 TO_CHARPOS. This may happen if last glyphs was an image or stretch
5697 glyph.
5698
5699 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
5700
5701 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
5702
5703 2005-05-01 Richard M. Stallman <rms@gnu.org>
5704
5705 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
5706 If user cancels the menu, quit unless FOR_CLICK.
5707
5708 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
5709 All uses changed.
5710 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
5711 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
5712 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
5713 * commands.h (Vexecuting_kbd_macro): Likewise.
5714
5715 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
5716
5717 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
5718
5719 2005-04-30 Richard M. Stallman <rms@gnu.org>
5720
5721 * fileio.c (Ffind_file_name_handler): Handle the `operations'
5722 property of the file name handler.
5723 (Qoperations): New variable.
5724 (syms_of_fileio): Initialize and staticpro it.
5725
5726 * xdisp.c (set_message_1): Delete xassert.
5727
5728 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5729
5730 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
5731
5732 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
5733
5734 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
5735 before/after including Carbon.h if there is a working mktime.
5736
5737 2005-04-28 Kim F. Storm <storm@cua.dk>
5738
5739 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
5740 Fix cyclic alias check. If alias loop is detected, signal
5741 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
5742
5743 2005-04-28 Lute Kamstra <lute@gnu.org>
5744
5745 * eval.c (do_autoload): Record only autoloads in the autoload
5746 property of symbols.
5747
5748 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
5749
5750 * emacs.c (USAGE1): Add --basic-display and --quick options.
5751
5752 2005-04-27 Kim F. Storm <storm@cua.dk>
5753
5754 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
5755
5756 2005-04-26 Richard M. Stallman <rms@gnu.org>
5757
5758 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
5759 (syms_of_window): Doc fixes.
5760
5761 * indent.c (Fvertical_motion): Undo previous change.
5762
5763 2005-04-26 Kenichi Handa <handa@m17n.org>
5764
5765 * fns.c (char_table_range): New function.
5766 (Fchar_table_range): Signal an error if characters in the range
5767 have inconsistent values. Don't check the parent.
5768
5769 2005-04-25 Kenichi Handa <handa@m17n.org>
5770
5771 * fontset.c (fontset_set): Fix previous change.
5772
5773 2005-04-24 Richard M. Stallman <rms@gnu.org>
5774
5775 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
5776
5777 2005-04-24 Eli Zaretskii <eliz@gnu.org>
5778
5779 * regex.c (re_search_2, re_match_2_internal): Convert second arg
5780 of RE_TRANSLATE to int, to shut up GCC warnings.
5781
5782 * fileio.c (Fcopy_file): Doc fix.
5783 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
5784 not needed.
5785
5786 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5787
5788 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
5789 (SOME_MACHINE_OBJECTS): Likewise.
5790 (mac.o): Depend on ccl.h.
5791 (macselect.o): New target.
5792
5793 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
5794 Call syms_of_macselect.
5795
5796 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
5797
5798 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
5799 (QCLIPBOARD): Remove variable.
5800 (syms_of_mac): Don't initialize it.
5801 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
5802 Remove functions.
5803 (syms_of_mac): Don't defsubr them.
5804 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
5805 (QHFS_plus_D, QHFS_plus_C): New variables.
5806 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5807 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
5808 (cfstring_create_normalized): New functions.
5809 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
5810 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5811
5812 * macterm.c (handling_window_update, terminate_flag):
5813 Remove variables.
5814 (do_window_update, do_ae_quit_application, XTread_socket):
5815 Don't use them.
5816 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
5817 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
5818 (init_service_handler): Move to macselect.c. Remove declarations.
5819 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
5820 (Qapplication, Qabout): New variables.
5821 (syms_of_mac): Initialize them.
5822 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
5823 (Qperform): New variables.
5824 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
5825 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
5826 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
5827 (mac_store_application_menu_event, init_menu_bar): New functions.
5828 [USE_CARBON_EVENTS] (mac_handle_command_event)
5829 (init_command_handler): New functions.
5830 (mac_handle_window_event): Return noErr on window update event.
5831 (do_ae_quit_application): Call mac_store_application_menu_event.
5832 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
5833 and init_menu_bar.
5834
5835 * macterm.h (x_clear_frame_selections): Add extern.
5836
5837 * macselect.c: New file for selection processing on Mac OS.
5838
5839 2005-04-23 Richard M. Stallman <rms@gnu.org>
5840
5841 * fileio.c (Fcopy_file): New arg MUSTBENEW.
5842 (Frename_file): Pass new arg to Fcopy_file.
5843
5844 * window.c (window_size_fixed): Variable deleted.
5845 (syms_of_window): Initialize window-size-fixed to nil.
5846 But don't DEFVAR window_size_fixed.
5847
5848 2005-04-23 Andreas Schwab <schwab@suse.de>
5849
5850 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
5851 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
5852 use lib64 instead of lib.
5853 (_LP64) [_ARCH_PPC64]: Define if not defined.
5854
5855 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
5856
5857 * s/ms-w32.h (HAVE_PWD_H): Define.
5858
5859 2005-04-22 Kenichi Handa <handa@m17n.org>
5860
5861 * fns.c (copy_sub_char_table): Explicitly copy the default value
5862 of the sub-chartable.
5863
5864 * fontset.c (fontset_set): When a sub-chartable is created,
5865 explicitly sets the defalt value.
5866
5867 2005-04-22 Kim F. Storm <storm@cua.dk>
5868
5869 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
5870 (Fsafe_plist_get): Rename to Fplist_get.
5871 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
5872 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
5873
5874 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
5875
5876 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
5877 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5878 Use Fplist_get instead of Fsafe_plist_get.
5879
5880 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
5881
5882 2005-04-21 Miles Bader <miles@gnu.org>
5883
5884 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
5885
5886 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
5887
5888 * sysdep.c: Remove reference to defunct vms-pwd.h.
5889 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
5890 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
5891
5892 * config.in: Regenerate.
5893
5894 2005-04-20 Kenichi Handa <handa@m17n.org>
5895
5896 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
5897 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
5898 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
5899
5900 * alloc.c (make_sub_char_table): Argument changed to initial
5901 value of the slots.
5902
5903 * data.c (Faref): Handle special slots used as default values of
5904 ascii, eight-bit-control, eight-bit-control. Don't ignore a
5905 default value set for a group of characters.
5906 (Faset): Signal an error if IDXVAL is not a valid character code.
5907 Make a sub-chartable with correct initial value.
5908
5909 * fns.c (Fset_char_table_range): Don't set slots used as default
5910 values for ascii, eight-bit-control, eight-bit-graphic.
5911 Don't call Faref with charset-id.
5912 (Fset_char_table_default): Document how to treat normal character
5913 argument. Handle special slots used as default values of ascii,
5914 eight-bit-control, eight-bit-control. Make a sub chartable if
5915 necessary.
5916
5917 2005-04-20 Kenichi Handa <handa@m17n.org>
5918
5919 * search.c (boyer_moore): Fix previous change.
5920
5921 2005-04-19 Kim F. Storm <storm@cua.dk>
5922
5923 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
5924 face unless last visible char and first invisible char have the
5925 same face. Also use default face if saved_face_id is undefined.
5926
5927 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5928
5929 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
5930 `full_name'.
5931 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
5932 mac_scriptcode member.
5933
5934 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
5935 (syms_of_mac): Don't initialize them.
5936 (Vmac_charset_info_alist): New variable.
5937 (syms_of_mac): Defvar it.
5938 (create_text_encoding_info_alist): New function.
5939 (decode_mac_font_name, mac_to_x_fontname)
5940 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
5941 code the correspondence among XLFD charsets, Mac script codes, and
5942 Emacs coding systems. Use Vmac_charset_info_alist and result of
5943 create_text_encoding_info_alist instead.
5944 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
5945 routines also on Mac OS Classic.
5946 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
5947 Use add_font_name_table_entry.
5948 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
5949 specified. Derive unspecified scalable fields from specified one.
5950 (x_list_fonts): Consider Valternate_fontname_alist.
5951 (kDefaultFontSize): Change value from 9 to 12.
5952 (XLoadQueryFont): Get decoded font family, font face, and charset
5953 from x_font_name_to_mac_font_name. Set full name of loaded font.
5954 (mac_unload_font): Free `full_name' member.
5955 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
5956 NULL. Copy full_name member of struct MacFontStruct to that of
5957 struct font_info.
5958
5959 2005-04-19 Kim F. Storm <storm@cua.dk>
5960
5961 * xdisp.c (handle_stop): Set saved_face_id to current face if
5962 selective_display_ellipsis_p so ellipsis will be shown in same
5963 face as preceding text.
5964 (setup_for_ellipsis): Don't set saved_face_id here.
5965 (next_element_from_display_vector): Default to saved_face_id.
5966
5967 * fns.c (Fsafe_get): New function.
5968 (syms_of_fns): Defsubr it.
5969
5970 * lisp.h (Fsafe_get): EXFUN it.
5971
5972 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
5973 loops in case of bad face property lists. Limit number of face
5974 alias lookups to 10 (in case of face alias loops).
5975
5976 2005-04-18 Kim F. Storm <storm@cua.dk>
5977
5978 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
5979 It replaces the corresponding member from struct window, as a
5980 window may now show multiple overlay arrows.
5981 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
5982
5983 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
5984 Compare overlay_arrow_bitmap than overlay_arrow_p members.
5985
5986 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
5987 rather than from window.
5988 (update_window_fringes): Compare overlay_arrow_bitmap rather than
5989 overlay_arrow_p members.
5990 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
5991 if not default.
5992
5993 * window.h (struct window): Remove member overlay_arrow_bitmap.
5994
5995 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
5996
5997 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
5998 Calls changed. Don't check for overlay-arrow-bitmap property here.
5999 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
6000 fringe is present, return Lisp integer for bitmap (or -1 for default).
6001 Fix value of overlay-arrow-bitmap property to be a symbol, use
6002 lookup_fringe_bitmap to parse it.
6003 (display_line): Change call to overlay_arrow_at_row. Store integer
6004 return value as overlay bitmap in row rather than window.
6005 Only show overlay arrow if row displays text, or if no other overlay
6006 arrow is seen in window (if overlay marker is at point-max).
6007
6008 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6009
6010 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
6011
6012 2005-04-18 Lute Kamstra <lute@gnu.org>
6013
6014 * lread.c (Vloads_in_progress): Static.
6015 * fns.c (Vloads_in_progress): Remove extern.
6016 (load_in_progress): Add extern.
6017 (Frequire): Use load_in_progress instead of Vloads_in_progress.
6018
6019 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6020
6021 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
6022
6023 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6024
6025 * macterm.c (XTread_socket): Don't beep on keyboard input even if
6026 no frame is visible.
6027
6028 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6029
6030 * term.c (struct keys): Add support for shifted keys.
6031
6032 2005-04-16 Richard M. Stallman <rms@gnu.org>
6033
6034 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
6035 (set_message): Call with_echo_area_buffer with WHICH = 0.
6036 (set_message_1): Erase the echo area buffer first thing.
6037 (echo_area_display): Don't clear echo_message_buffer.
6038
6039 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6040
6041 * Makefile.in (mac.o): Depend on charset.h and coding.h.
6042
6043 * mac.c: Include charset.h and coding.h.
6044 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
6045 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
6046 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
6047
6048 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6049
6050 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
6051
6052 * macterm.c (x_autoselect_window_p): Remove variable.
6053 (last_window): New variable.
6054 (XTreassert_line_highlight, x_change_line_highlight):
6055 Remove declarations.
6056 (mac_focus_changed, x_detect_focus_change): New functions and
6057 declarations.
6058 (XTextExtents16, front_emacs_window): Remove function.
6059 (mac_focus_frame): New function.
6060 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
6061 (mac_check_for_quit_char): Use it instead of front_emacs_window.
6062 (x_scroll_bar_report_motion): Obtain window from control owner.
6063 (x_make_frame_invisible): Set window manager size hint.
6064 (do_mouse_moved): Remove function.
6065 (XTread_socket): Move its contents here. Generate select-window
6066 event on mouse movement if needed. Use x_detect_focus_change on
6067 activate/deactivate events. Don't deiconify frame or invalidate
6068 window rectangle when dnd items are dropped.
6069 Don't activate/deactivate root control.
6070 (frame_highlight, frame_unhighlight): Activate/deactivate root
6071 control here.
6072 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
6073
6074 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
6075 New extern.
6076
6077 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
6078
6079 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
6080 (lisp): Use it.
6081 (SOME_MACHINE_LISP): Add tooltip.
6082
6083 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6084
6085 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
6086 Don't include TextEncodingConverter.h.
6087 (mac_system_script_code, Vmac_system_locale): New variables.
6088 (syms_of_mac): Defvar them.
6089 (mac_get_system_locale): New function.
6090
6091 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
6092 Use ENCODE_SYSTEM to encode title bar string.
6093 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
6094 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
6095 Use CFStringGetSystemEncoding to get system default string encoding.
6096
6097 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
6098 TextEncodingConverter.h.
6099
6100 2005-04-13 Steven Tamm <steventamm@mac.com>
6101
6102 * macterm.c (syms_of_macterm): Remove redundant definition of
6103 mac-pass-control-to-system.
6104
6105 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6106
6107 * window.c (Fset_window_configuration): Be careful when you choose
6108 among several possible points for the new_current_buffer.
6109
6110 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6111
6112 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
6113 poll_for_input_1. Set interrupt_input_pending to 1 instead.
6114 (Qlanguage_change) [MAC_OS]: New variable.
6115 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
6116 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
6117
6118 * macterm.c (mac_keyboard_text_encoding)
6119 (current_mac_keyboard_text_encoding): Remove variables.
6120 (XTread_socket): Store language-change event if keyboard script change
6121 is detected. Don't convert input to `mac_keyboard_text_encoding'.
6122 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
6123
6124 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
6125
6126 2005-04-10 Richard M. Stallman <rms@gnu.org>
6127
6128 * emacs.c (standard_args): Rename --bare-bones to --quick.
6129 Add -D aka --basic-display.
6130
6131 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
6132
6133 2005-04-09 Richard M. Stallman <rms@gnu.org>
6134
6135 * keymap.c (where_is_internal): Convert a string used as event type
6136 into "(any string)".
6137
6138 * lread.c (Vloads_in_progress): Not static.
6139 * fns.c (Vloads_in_progress): Add extern.
6140 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
6141
6142 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
6143
6144 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
6145
6146 2005-04-09 Lute Kamstra <lute@gnu.org>
6147
6148 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
6149 within the accessible part of the buffer.
6150
6151 2005-04-09 Kim F. Storm <storm@cua.dk>
6152
6153 * lread.c (readevalloop): Add args START and END as region in
6154 current buffer to read. Callers changed.
6155 When specified, narrow to this region only when reading,
6156 not during eval. Track next point to read from during eval.
6157 Also restore point to "real" buffer position before eval.
6158 (Feval_region): Don't save excursion and restriction here, and
6159 don't narrow to region. Just pass region to readevalloop.
6160 Note: Point is now preserved even when PRINTFLAG is nil.
6161
6162 2005-04-08 Kim F. Storm <storm@cua.dk>
6163
6164 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
6165
6166 2005-04-06 Kim F. Storm <storm@cua.dk>
6167
6168 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
6169
6170 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6171
6172 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
6173 (Fmac_get_preference): Doc fix.
6174
6175 * macfns.c (Fx_create_frame, x_create_tip_frame):
6176 Add "fontset-mac" to fallback font/fontsets.
6177
6178 2005-04-04 Kim F. Storm <storm@cua.dk>
6179
6180 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
6181
6182 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
6183 Call it again after autoload.
6184
6185 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6186
6187 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
6188 mallopt.
6189
6190 * ralloc.c (r_alloc_init): Ditto.
6191
6192 2005-04-01 Kenichi Handa <handa@m17n.org>
6193
6194 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
6195 (Vascii_eqv_table): Extern them.
6196
6197 * casetab.c (set_case_table): If standard is nonzero, setup
6198 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
6199
6200 * search.c (looking_at_1): Use current_buffer->case_canon_table,
6201 not DOWNCASE_TABLE.
6202 (string_match_1): Likewise.
6203 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
6204 Vascii_downcase_table.
6205 (fast_string_match_ignore_case): Likewise.
6206 (search_buffer): Fix checking of boyer-moore usability.
6207 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
6208 No need of tranlating characters in PAT. Fix calculation of
6209 simple_translate.
6210
6211 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6212
6213 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
6214 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
6215 Use XtNtopShadowPixel and XtNbottomShadowPixel.
6216 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
6217 really work and that breaks with some versions of Xaw3d.
6218
6219 2005-03-31 Kenichi Handa <handa@m17n.org>
6220
6221 * coding.c (syms_of_coding): Fix previous change.
6222
6223 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * fileio.c (search_embedded_absfilename): Fix last change.
6226
6227 2005-03-25 Kenichi Handa <handa@m17n.org>
6228
6229 * coding.c (syms_of_coding): Suggest to use set-coding-category in
6230 the docstring of coding-category-list.
6231
6232 2005-03-31 Kim F. Storm <storm@cua.dk>
6233
6234 * keyboard.c (Qmouse_fixup_help_message): New var.
6235 (syms_of_keyboard): Intern and staticpro it.
6236 (show_help_echo): Apply mouse-fixup-help-message to help string.
6237
6238 2005-03-30 Kim F. Storm <storm@cua.dk>
6239
6240 * xdisp.c (display_line): Allow multiple overlay arrows in window.
6241
6242 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6243
6244 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
6245 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
6246 (Ffile_name_absolute_p): Use it.
6247 (search_embedded_absfilename): New fun, extracted from
6248 Fsubstitute_in_file_name. Use file_name_absolute_p.
6249 Free the pw data after use.
6250 (Fsubstitute_in_file_name): Use it.
6251 After cutting a prefix, re-check file-name-handler.
6252
6253 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
6254
6255 * w32term.h (x_output): Add focus_state.
6256
6257 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
6258 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
6259
6260 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6261
6262 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
6263 Use Fexit_minibuffer.
6264 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
6265
6266 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6267
6268 * dired.c (Ffile_attributes): Add a missing gcpro.
6269
6270 * alloc.c (make_number): The arg can be bigger than `int'.
6271 * lisp.h (make_number): Make prototype more precise.
6272
6273 * process.c, dired.c (Vfile_name_coding_system)
6274 (Vdefault_file_name_coding_system):
6275 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
6276 (Vdefault_file_name_coding_system): Remove unused declarations.
6277
6278 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6279
6280 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
6281 if it failed to pop up (Gnome "show pointer on ctrl" option makes
6282 menus fail to pop up).
6283
6284 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6285
6286 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
6287 Just prepend a backslash without replacing the NBSP by an SPC.
6288
6289 2005-03-22 Kim F. Storm <storm@cua.dk>
6290
6291 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
6292 * dispextern.h (lookup_derived_face): Fix prototype.
6293 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
6294
6295 * xdisp.c (handle_single_display_spec): Derive left-fringe and
6296 right-fringe face from fringe face.
6297
6298 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
6299 Derive face from fringe face.
6300
6301 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6302
6303 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
6304
6305 2005-03-22 David Kastrup <dak@gnu.org>
6306
6307 * textprop.c (Fnext_char_property_change)
6308 (Fprevious_char_property_change): Allow marker as limit.
6309 (Fnext_single_char_property_change)
6310 (Fprevious_single_char_property_change): Check that limit is a
6311 number in strings.
6312 (Fnext_single_char_property_change): Coerce position to integer.
6313 (Fprevious_single_char_property_change): Same here.
6314
6315 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
6316
6317 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
6318
6319 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6320
6321 * frame.c (Fignore_event): Remove.
6322 (syms_of_frame): Don't defsubr it.
6323
6324 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
6325 redundant `ignore-event'.
6326
6327 2005-03-19 Eli Zaretskii <eliz@gnu.org>
6328
6329 * unexec.c (write_segment, unexec): Move these functions to avoid
6330 forward references (which cause errors with "gcc -gcoff").
6331
6332 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6333
6334 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
6335 that it doesn't become "tooltip". The specbind is enough.
6336
6337 * xrdb.c (x_load_resources): Use different char *helv when I18N
6338 is present.
6339
6340 2005-03-17 Kenichi Handa <handa@m17n.org>
6341
6342 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
6343
6344 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6345
6346 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
6347 Use xic_create_fontsetname even for non-Motif menus.
6348 Don't forget to free the fontsetname.
6349
6350 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
6351
6352 2005-03-17 Richard M. Stallman <rms@gnu.org>
6353
6354 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
6355
6356 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
6357 (Fmake_symbolic_link): Use G to read the new file name.
6358
6359 * callint.c (Finteractive): Document G option.
6360 (Fcall_interactively): Implement G option.
6361
6362 * buffer.c (buffer_lisp_local_variables): New function,
6363 broken out from Fbuffer_local_variables.
6364 (clone_per_buffer_values): Use buffer_lisp_local_variables.
6365
6366 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6367
6368 * xfns.c (xic_create_fontsetname): Add `motif' argument.
6369 Always return a freshly allocated string.
6370 (xic_create_xfontset): Adjust call.
6371
6372 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
6373 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
6374 (dump_realized_face): Fix warning.
6375
6376 * emacs.c (Fkill_emacs): YAILOM.
6377
6378 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
6379
6380 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6381
6382 * mac.c (HASHKEY_TERMINAL): Remove.
6383 (HASHKEY_MAX_NID): New macro.
6384 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
6385 argument.
6386 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
6387 (xrm_create_database, xrm_q_put_resource)
6388 (xrm_merge_string_database, xrm_q_get_resource_1)
6389 (xrm_q_get_resource): Change resource database representation so
6390 that it may not use multiple hash tables for a single database.
6391 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
6392
6393 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
6394
6395 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
6396
6397 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
6398 locale-coding-system, as was already done for WINDOWSNT.
6399
6400 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
6401 translation for chars in the 0-255 range.
6402
6403 2005-03-16 Lute Kamstra <lute@gnu.org>
6404
6405 * floatfns.c (Ffloor): Doc fix.
6406
6407 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6408
6409 * mac.c: Include macterm.h instead of directly including Carbon.h.
6410 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
6411 (Qarray, Qdictionary): New variables.
6412 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
6413 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
6414 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
6415 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
6416 in callback for CFDictionaryApplyFunction.
6417 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6418 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6419 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
6420 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
6421 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
6422 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
6423 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
6424 (skip_white_space, parse_comment, parse_include_file)
6425 (parse_binding, parse_component, parse_resource_name, parse_value)
6426 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
6427 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
6428 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
6429 New functions.
6430
6431 * macfns.c (mac_get_rdb_resource): Remove function.
6432 (x_get_string_resource): Use xrm_get_resource.
6433
6434 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
6435
6436 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
6437 name_list_element.
6438 (mac_make_rdb): Create resource database from preferences and
6439 argument string.
6440 (mac_term_init): Save resource database to cddr part of
6441 name_list_element.
6442
6443 * macterm.h (xrm_merge_string_database, xrm_get_resource)
6444 (xrm_get_preference_database): Add externs.
6445 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
6446 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
6447 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
6448
6449 * process.c (init_process): Change `#ifdef DARWIN' to `#if
6450 defined (DARWIN) || defined (MAC_OSX)'
6451
6452 * s/darwin.h (DARWIN): Don't define.
6453
6454 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6455
6456 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
6457 Remove unused variables.
6458 (syms_of_macfns): Don't initialize them. Likewise for
6459 Qface_set_after_frame_default. Defvar and initialize
6460 Vx_window_horizontal_drag_shape.
6461 (x_set_mouse_color): Change mouse pointer shape.
6462 (mac_window) [!MAC_OSX]: Create root control.
6463 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6464 (hourglass_started): New function (from xfns.c).
6465 (start_hourglass, cancel_hourglass): Put function body in #ifdef
6466 MAC_OSX.
6467 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
6468 indicator for each non-tooltip frame if needed, and show it.
6469 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6470
6471 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
6472 Controls.h. Use ThemeCursor instead of CursHandle.
6473
6474 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
6475 Remove functions and declarations.
6476 (mac_set_colors): Take argument for saving background color.
6477 All callers changed.
6478 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
6479 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
6480 background color.
6481 (x_update_end, mac_do_track_drag): Don't reset background color.
6482 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
6483 Use SetThemeCursor.
6484 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
6485 indicator control to the upper-right corner of the window.
6486 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
6487 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
6488 (do_window_update): Update controls after updating content area.
6489 (mac_handle_window_event): Remove unused extern.
6490 (XTread_socket): Check both control handle and control part code
6491 to determine whether a scroll bar is clicked. Activate/deactivate
6492 root control instead of contained scroll bar controls.
6493 (make_mac_terminal_frame): Use ThemeCursor constants.
6494
6495 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
6496 New member hourglass_control.
6497 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
6498 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6499
6500 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6501
6502 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6503 coincides with that in Apple X11 except `clear', `enter' on
6504 laptops, and fn + `enter' on laptops.
6505
6506 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
6509 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
6510 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
6511
6512 * xfns.c (xic_defaut_fontset): New constant.
6513 (xic_create_fontsetname): New function.
6514 Extracted from create_frame_xic. Try to generate a slightly
6515 better fontset.
6516 (xic_create_xfontset): Use it.
6517 (create_frame_xic): Simplify.
6518
6519 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
6520
6521 * fileio.c (Fmake_symbolic_link): Fix last change.
6522
6523 2005-03-11 Richard M. Stallman <rms@gnu.org>
6524
6525 * fileio.c (Frename_file, Fadd_name_to_file)
6526 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
6527 expand the basename of FILE relative to it.
6528
6529 2005-03-11 Kenichi Handa <handa@m17n.org>
6530
6531 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
6532 before calling setup_coding_system so that autoloading of a coding
6533 system work.
6534
6535 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6536
6537 * xfns.c (hourglass_started): New function.
6538
6539 * dispextern.h: Declare hourglass_started.
6540
6541 * keyboard.c (Fexecute_extended_command): Restart hourglass
6542 after call to Fcompleting_read if already started.
6543
6544 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
6545 GTK main loop is entered in xterm.c, thus doing the redraw.
6546
6547 2005-03-10 Kim F. Storm <storm@cua.dk>
6548
6549 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
6550
6551 2005-03-08 Kenichi Handa <handa@m17n.org>
6552
6553 * frame.c (x_set_font): Call set_default_ascii_font if an
6554 available font is found.
6555
6556 * fontset.c (set_default_ascii_font): New function.
6557 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
6558
6559 * fontset.h (set_default_ascii_font): Extern it.
6560
6561 2005-03-07 Kim F. Storm <storm@cua.dk>
6562
6563 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
6564 (clear_image_cache_count): New var.
6565 (redisplay_internal): Don't clear face and image caches in the
6566 middle of redisplay; do it afterwards.
6567
6568 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
6569
6570 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
6571 is valid. If not, clear phys_cursor_on_p and return.
6572
6573 2005-03-07 Andreas Schwab <schwab@suse.de>
6574
6575 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
6576
6577 2005-03-06 Richard M. Stallman <rms@gnu.org>
6578
6579 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
6580
6581 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
6582 (Feval, Ffuncall): Use CHECK_CONS_LIST.
6583
6584 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
6585
6586 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
6587 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
6588
6589 2005-03-05 Juri Linkov <juri@jurta.org>
6590
6591 * emacs.c (USAGE1): Replace Info node name "command arguments"
6592 with "emacs invocation".
6593 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
6594 allow arguments `--color' and `MODE' to be separated by space.
6595 Add --no-blinking-cursor, -nbc.
6596 (standard_args): Add -nbc, --no-blinking-cursor.
6597
6598 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6599
6600 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
6601 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
6602 * fileio.c (Fexpand_file_name) [VMS]:
6603 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
6604 * doc.c (munge_doc_file_name) [VMS]: Likewise.
6605 (Fsnarf_documentation): Call munge_doc_file_name.
6606
6607 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
6608
6609 * s/vms.h (FILE_SYSTEM_CASE): New macro.
6610 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
6611 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
6612
6613 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6614
6615 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
6616 defined (MAC_OSX) && defined (HAVE_CARBON)'.
6617
6618 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
6619
6620 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6621 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
6622 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
6623 (mac_clear_font_name_table): Move extern to macterm.h.
6624
6625 * macfns.c (install_window_handler): Move extern to macterm.h.
6626 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
6627 valid. Don't check !NILP (dir) because it is already checked with
6628 CHECK_STRING.
6629 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
6630 specifying the default location and obtaining the selected filename.
6631
6632 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
6633
6634 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
6635 are included via Carbon.h.
6636
6637 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
6638 Define USE_CARBON_EVENTS to 1.
6639 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
6640 (x_free_frame_resources): Call remove_window_handler for
6641 non-tooltip windows.
6642 [TARGET_API_MAC_CARBON]: Don't include headers that are included
6643 via Carbon.h.
6644 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
6645 (mac_do_receive_dragUPP): New variables.
6646 (mac_handle_service_event, init_service_handler): Put declarations
6647 and definitions in #ifdef MAC_OSX.
6648 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
6649 drag-and-drop handler functions and register them.
6650 (remove_window_handler): New function.
6651 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
6652 Use fsspec_to_posix_pathname.
6653 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
6654 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
6655 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
6656 Set default cursors.
6657 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
6658 init_service_handler or init_quit_char_handler.
6659 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
6660
6661 * macterm.h (install_window_handler, remove_window_handler)
6662 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
6663 (mac_clear_font_name_table): New externs.
6664
6665 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6666
6667 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
6668 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
6669 (Fexpand_file_name): Likewise.
6670
6671 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
6672
6673 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
6674 no longer special-case VMS. Add bogus return value.
6675
6676 2005-03-02 Kim F. Storm <storm@cua.dk>
6677
6678 * dispextern.h (XASSERTS): Define to 0 if not already defined.
6679 (xassert) [!XASSERTS]: Define dummy version.
6680
6681 2005-03-02 Kim F. Storm <storm@cua.dk>
6682
6683 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
6684 Reported by David Kastrup.
6685
6686 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
6687
6688 * xdisp.c (get_next_display_element): Fix control and escape
6689 glyph from display vector.
6690
6691 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
6692
6693 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
6694
6695 2005-02-27 Richard M. Stallman <rms@gnu.org>
6696
6697 * xdisp.c (fast_find_position): Rename END to BEG.
6698 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
6699
6700 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6701
6702 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6703 gtk_window_resize and x_wm_set_size_hint.
6704
6705 2005-02-25 Kim F. Storm <storm@cua.dk>
6706
6707 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
6708
6709 * xdisp.c (init_from_display_pos): Don't read past end of
6710 it->overlay_strings array.
6711
6712 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
6713
6714 * buffer.c (syms_of_buffer): Fix typo.
6715
6716 2005-02-23 Lute Kamstra <lute@gnu.org>
6717
6718 * buffer.c (Foverlay_buffer): Doc fix.
6719
6720 2005-02-22 Kim F. Storm <storm@cua.dk>
6721
6722 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
6723 and symbol keys in alists and hash tables.
6724
6725 * xdisp.c (fast_find_position): Fix search for start of overlay.
6726
6727 2005-02-21 Kim F. Storm <storm@cua.dk>
6728
6729 * window.c (window_scroll_pixel_based): When scrolling backwards,
6730 handle partial visible line at end of window even when we hit PT.
6731
6732 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6733
6734 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
6735
6736 2005-02-21 Kim F. Storm <storm@cua.dk>
6737
6738 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
6739 I think those asserts are bogus if buffer contains invisible text
6740 or images.
6741
6742 2005-02-21 David Kastrup <dak@gnu.org>
6743
6744 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
6745
6746 2005-02-20 Kim F. Storm <storm@cua.dk>
6747
6748 * xdisp.c (pos_visible_p): Be sure to move to the specified
6749 position. Always get the full ascent / descent of the
6750 corresponding row, to return reliable rtop and rbot values.
6751 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
6752 Must look one character back, as back_to_previous_line_start
6753 returns position after the newline.
6754 (move_it_vertically_backward): Fix heuristic for when to move further
6755 back in case line_height * 2/3 is larger than window height.
6756 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
6757 as it does not do anything anymore. Add arg current_matrix_p to
6758 use current matrix rather than desired matrix when set.
6759 (try_cursor_movement): Don't scroll to make cursor row fully
6760 visible if cursor didn't move. This avoids unexpected recentering
6761 in case of blinking cursor or accepting process output.
6762 Use current matrix to check cursor row visibility.
6763 (redisplay_window): Fix whether to recenter or move to top in case
6764 cursor line is taller than window height.
6765 (find_first_unchanged_at_end_row): Stop search if we reach a row
6766 which not enabled (instead of abort).
6767
6768 2005-02-18 Kim F. Storm <storm@cua.dk>
6769
6770 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
6771 to be nil in a :box attribute value list; customize prints that
6772 as lisp value when no box color is specified.
6773
6774 * .gdbinit (pitx, pit): Pretty print display iterator.
6775 (prowx, prow): Pretty print glyph row.
6776 (pcursorx, pcursor): Pretty print a window cursor.
6777 (pwinx, pwin): Pretty print struct window.
6778
6779 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6780
6781 * alloc.c (BLOCK_BYTES): Harmless typo.
6782
6783 2005-02-17 Andreas Schwab <schwab@suse.de>
6784
6785 * xfns.c (hack_wm_protocols): Use correct type for last parameter
6786 of XGetWindowProperty to avoid aliasing issues.
6787 (Fx_window_property): Likewise.
6788
6789 * xselect.c (Fx_disown_selection_internal): Use union of struct
6790 input_event and struct selection_input_event to avoid aliasing issues.
6791
6792 * xterm.c (handle_one_xevent): Use union of struct input_event and
6793 struct selection_input_event to avoid aliasing issues.
6794 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
6795
6796 2005-02-17 Kim F. Storm <storm@cua.dk>
6797
6798 * dispextern.h (enum it_method): New enum.
6799 (GET_FROM_*): Its members.
6800 (struct it): Change member method from function pointer to enum.
6801
6802 * xdisp.c (check_it, init_from_display_pos, handle_stop)
6803 (setup_for_ellipsis, handle_single_display_spec)
6804 (handle_composition_prop, next_overlay_string)
6805 (get_overlay_strings, reseat_1, reseat_to_string)
6806 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
6807 (in_display_vector_p, display_line, get_next_display_element):
6808 Change it->method from function pointer to enum.
6809 (get_next_element): New array to map it->method to function.
6810 (get_next_display_element): Use it.
6811 (set_iterator_to_next): Use switch instead of if/else chain.
6812
6813 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6814
6815 * w32select.c: Summary: Thorough rework to implement Unicode
6816 clipboard operations and delayed rendering.
6817
6818 Drop last_clipboard_text and related code, keep track of
6819 ownership via clipboard_owner instead. Drop old #if0 sections.
6820
6821 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
6822 (clipboard_owner, modifying_clipboard, cfg_coding_system)
6823 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
6824 (current_coding_system, current_requires_encoding)
6825 (current_num_nls, current_clipboard_type, current_lcid):
6826 New static variables.
6827
6828 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
6829 (render, render_all, run_protected, lisp_error_handler)
6830 (owner_callback, create_owner, setup_config)
6831 (enum_locale_callback, cp_from_locale, coding_from_cp):
6832 New local functions.
6833
6834 (term_w32select, globals_of_w32select): New global functions.
6835
6836 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
6837 clipboard_owner instead. Use delayed rendering and provide
6838 all text formats. Provide CF_LOCALE if necessary.
6839
6840 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
6841 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
6842 available. Force DOS line-ends for decoding.
6843
6844 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
6845
6846 (syms_of_w32select): Init and register new variables.
6847
6848 * w32.h: Add prototypes for globals_of_w32select and
6849 term_w32select. Make the neighboring K&R declarations into
6850 prototypes, too.
6851
6852 * emacs.c: Include w32.h to get function prototypes.
6853 (main): Call globals_of_w32select.
6854
6855 * w32.c (term_ntproc): Call term_w32select.
6856
6857 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
6858
6859 2005-02-16 Kim F. Storm <storm@cua.dk>
6860
6861 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
6862 at end of display vector.
6863
6864 2005-02-15 Richard M. Stallman <rms@gnu.org>
6865
6866 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
6867 for mode and header lines.
6868
6869 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
6870
6871 * keymap.h (describe_map_tree): Change decl.
6872
6873 * keyboard.c (command_loop_1): Always use safe_run_hooks
6874 to run Qdeferred_action_function.
6875
6876 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
6877 (describe_map, describe_vector): Likewise. When it's 1,
6878 don't omit shadowed bindings, instead mark them as shadowed.
6879
6880 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
6881 for describe_map_tree. Pass 1 for MENTION_SHADOW.
6882
6883 * data.c (Fsetq_default): Allow no arg case.
6884
6885 2005-02-14 Kenichi Handa <handa@m17n.org>
6886
6887 * coding.c (encode_coding_string): Always return a unibyte string.
6888 If NOCOPY is nonzero and there's no need of encoding, make STR
6889 unibyte directly.
6890
6891 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
6892 multibyte string, signal an error instead of aborting.
6893
6894 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
6895
6896 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
6897
6898 2005-02-12 Kim F. Storm <storm@cua.dk>
6899
6900 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
6901
6902 2005-02-10 Kim F. Storm <storm@cua.dk>
6903
6904 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
6905 if it moves outside window or it doesn't display text.
6906
6907 2005-02-09 Kim F. Storm <storm@cua.dk>
6908
6909 * undo.c (Fprimitive_undo): Check that undo function does not
6910 switch buffer.
6911
6912 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6913
6914 * xselect.c (selection_data_to_lisp_data): For the special case
6915 type == XA_ATOM, data contains array of int, not array of Atom.
6916 (x_property_data_to_lisp, selection_data_to_lisp_data):
6917 Comment update: data must be array of int for format == 32.
6918
6919 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6920
6921 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
6922
6923 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6924
6925 * xfns.c (Fx_change_window_property): Use long array when format is 32.
6926 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
6927 convert long array returned from XGetWindowProperty to an int array.
6928 (x_set_tool_bar_lines): Check that width and height is greater than
6929 zero before clearing area.
6930
6931 * xselect.c (x_reply_selection_request): Pass long array to
6932 XChangeProperty so that 64 bit longs are handeled correctly.
6933 (x_get_window_property): If format is 32 and long is bigger than 32
6934 bits convert data from XGetWindowProperty from long array to int array.
6935 (lisp_data_to_selection_data): When the input is a vector and the
6936 format is 32, allocate a long array even if long is bigger than 32 bits.
6937 (x_fill_property_data): Use char, short and long as the man page
6938 for XChangeProperty specifies. This way the data returned is OK for
6939 both 32 and 64 bit machines.
6940 (x_handle_dnd_message): Calculate size correctly even for 64 bit
6941 machines.
6942 (Fx_send_client_event): Undo change from 2005-02-05,
6943 x_fill_property_data now handles that case.
6944
6945 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
6946 reason for the approach in the code.
6947
6948 2005-02-07 Kim F. Storm <storm@cua.dk>
6949
6950 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
6951
6952 2005-02-06 Richard M. Stallman <rms@gnu.org>
6953
6954 * eval.c (Frun_hook_with_args)
6955 (Frun_hook_with_args_until_success)
6956 (Frun_hook_with_args_until_failure): Doc fixes.
6957
6958 2005-02-05 Andreas Schwab <schwab@suse.de>
6959
6960 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
6961
6962 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6963
6964 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
6965 the longs in a XClientMessageEvent correctly when long is 64 bits.
6966
6967 2005-02-05 Eli Zaretskii <eliz@gnu.org>
6968
6969 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
6970 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
6971
6972 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6973
6974 * xmenu.c (menubar_selection_callback): Force out GTK buffered
6975 events so the menu event comes after them. This is to prevent sit-for
6976 from exiting on buffered events directly after a menu selection,
6977 lisp code for Help => About Emacs uses sit-for.
6978
6979 * gtkutil.c (create_menus): Connect selection-done event instead of
6980 the deactivate event to deactivate_cb. This will make the last
6981 leave event come before the call to deactivate_cb, so the leave
6982 event does not make sit-for exit after a menu selection.
6983
6984 2005-02-03 Kim F. Storm <storm@cua.dk>
6985
6986 * dispnew.c (build_frame_matrix_from_leaf_window)
6987 [!GLYPH_DEBUG]: Fix xassert.
6988
6989 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
6990
6991 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6992
6993 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6994
6995 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
6996 the compiling OS version.
6997
6998 * macfns.c (x_create_tip_frame): Likewise.
6999
7000 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
7001
7002 2005-02-03 Richard M. Stallman <rms@gnu.org>
7003
7004 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
7005
7006 * xdisp.c (echo_area_display): Clear echo_message_buffer.
7007
7008 * buffer.c (Fbury_buffer): Doc fix.
7009
7010 2005-02-02 Steven Tamm <steventamm@mac.com>
7011
7012 * macfns.c (unwind_create_frame): Fix compile error due to
7013 xassert being uncondition, but predicate is.
7014 * dispnew.c (update_window): Fix compile error due to
7015 xassert being uncondition, but predicate is.
7016
7017 2005-02-02 Miles Bader <miles@gnu.org>
7018
7019 * dispextern.h (xassert): Enable unconditionally.
7020
7021 2005-02-02 Kim F. Storm <storm@cua.dk>
7022
7023 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
7024
7025 2005-02-02 Kenichi Handa <handa@m17n.org>
7026
7027 * casefiddle.c (casify_object): Enable changing characters of
7028 different byte length.
7029 (casify_region): Fix loop condition, args to replace_range_2, and
7030 update opoint_byte.
7031
7032 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
7033
7034 2005-02-01 Kim F. Storm <storm@cua.dk>
7035
7036 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
7037 stack before calling handle_display_prop.
7038
7039 2005-01-31 Kim F. Storm <storm@cua.dk>
7040
7041 * undo.c (Qapply): New lisp var.
7042 (syms_of_undo): Intern and staticpro it.
7043 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
7044 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
7045
7046 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7047
7048 2005-01-30 Jesper Harder <harder@phys.au.dk>
7049
7050 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
7051 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7052
7053 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
7054
7055 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
7056 Increase value to 3 Meg.
7057
7058 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7059
7060 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
7061 button events are not received otherwise.
7062
7063 2005-01-29 Richard M. Stallman <rms@gnu.org>
7064
7065 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7066
7067 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
7068
7069 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
7070
7071 * keymap.c (access_keymap): YAILOM.
7072
7073 2005-01-27 Kim F. Storm <storm@cua.dk>
7074
7075 * xdisp.c (get_phys_cursor_geometry): New function to calculate
7076 phys cursor position and size for hollow cursor. Position is
7077 aligned with get_glyph_string_clip_rect and ensures that a hollow
7078 cursor is shown, even when the actual glyph is not visible.
7079
7080 * dispextern.h (get_phys_cursor_geometry): Add prototype.
7081
7082 * xterm.c (x_clip_to_row): Ensure y >= 0.
7083 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7084
7085 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7086
7087 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7088
7089 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
7090
7091 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
7092
7093 2005-01-27 Kim F. Storm <storm@cua.dk>
7094
7095 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
7096 glyph, even when row is only partially visible and actual cursor
7097 position is not visible.
7098
7099 2005-01-24 Richard M. Stallman <rms@gnu.org>
7100
7101 * xterm.c (x_error_quitter): No longer static, and moved after
7102 x_error_handler.
7103
7104 2005-01-24 Kim F. Storm <storm@cua.dk>
7105
7106 * xdisp.c (move_it_by_lines): If we move forward after going too
7107 far back, cancel move if end position is same as start position.
7108
7109 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7110
7111 * dispextern.h (struct glyph_string): New members clip_head and
7112 clip_tail.
7113
7114 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
7115 region to the area between clip_head and clip_tail.
7116 (draw_glyphs): Record the area that need to be actually redrawn to
7117 the new variables clip_head and clip_tail when there are
7118 overhangs. Set values of these variables to the corresponding
7119 members in struct glyph_string. Refine x coordinates for
7120 notice_overwritten_cursor using clip_head and clip_tail.
7121
7122 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
7123
7124 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
7125 QDTextBounds.
7126 (x_draw_glyph_string): Don't fill the background of the successor
7127 of a glyph with a right overhang if the successor will draw a cursor.
7128 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
7129 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
7130
7131 2005-01-24 Kim F. Storm <storm@cua.dk>
7132
7133 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
7134 direction if window height was smaller than next-screen-context-lines.
7135 Now always scroll at least one line in the requested direction.
7136 Ensure that we actually do scroll backwards when requested to do so.
7137
7138 * xdisp.c (redisplay_window): Only try to make cursor line fully
7139 visible once (to avoid redisplay loop).
7140
7141 2005-01-23 Kim F. Storm <storm@cua.dk>
7142
7143 * window.c (Fpos_visible_in_window_p): Simplify return value for
7144 partially visible rows.
7145 (window_scroll_pixel_based): Adapt to that change.
7146
7147 * window.c (window_scroll_pixel_based): Force moving to next line
7148 if scrolling doesn't move start point, e.g. if looking at tall image.
7149
7150 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
7151 Clear last_height before calling line_bottom_y to get real height.
7152 Fix calculation of y.
7153
7154 2005-01-22 Steven Tamm <steventamm@mac.com>
7155
7156 * s/darwin.h: Removed PTY_ITERATION from here.
7157 (DARWIN): Define.
7158
7159 * process.c (init_process): Default process-connection-type to
7160 nil on darwin 6 or less, t if it is 7 or higher. This way the
7161 broken pty behavior is still allowed on darwin 6 for interactive
7162 processes for people that know what they are doing.
7163
7164 2005-01-22 Kim F. Storm <storm@cua.dk>
7165
7166 * window.c (auto_window_vscroll_p): New boolean.
7167 (syms_of_window): DEFVAR_BOOL it.
7168 (Fpos_visible_in_window_p): Extend return value to include RTOP
7169 and RBOT values if FULLY is nil.
7170 (window_scroll_pixel_based): Adjust vscroll for partially visible
7171 rows if auto_window_vscroll_p is set.
7172 (Fset_window_vscroll): Do nothing if vscroll is not modified.
7173
7174 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
7175 to return number of partially invisible pixels at top and bottom
7176 of the dislay row at POS.
7177
7178 * lisp.h (pos_visible_p): Fix prototype.
7179
7180 2005-01-21 Richard M. Stallman <rms@gnu.org>
7181
7182 * fileio.c (Fcopy_file): Doc fix.
7183
7184 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7185
7186 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
7187 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
7188 start of function for older compilers.
7189
7190 2005-01-20 Richard M. Stallman <rms@gnu.org>
7191
7192 * editfns.c (Fmessage): If arg is "", return "" (as before).
7193
7194 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
7195
7196 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
7197 variable.
7198
7199 2005-01-20 Steven Tamm <steventamm@mac.com>
7200
7201 * editfns.c (Voperating_system_release): Add.
7202 (init_editfns): Assign new variable operating-system-release
7203 based on call to uname if available.
7204 (get_operating_system_release): Add function to
7205 allow c-level access to operating system release.
7206
7207 * config.h: Regenerated.
7208
7209 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
7210 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
7211 using ptys as '7'.
7212
7213 2005-01-20 Kim F. Storm <storm@cua.dk>
7214
7215 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
7216
7217 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
7218 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
7219
7220 * macterm.c (x_draw_glyph_string_box): Likewise.
7221
7222 * w32term.c (x_draw_glyph_string_box): Likewise.
7223
7224 * indent.c (Fvertical_motion): Temporarily disable selective display.
7225
7226 2005-01-19 Kim F. Storm <storm@cua.dk>
7227
7228 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
7229 image property.
7230
7231 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
7232
7233 2005-01-18 Kim F. Storm <storm@cua.dk>
7234
7235 * xdisp.c (fast_find_position): Backtrack to find first row if
7236 charpos is inside a display overlay that spans multiple lines.
7237
7238 2005-01-18 Kenichi Handa <handa@m17n.org>
7239
7240 * coding.c (decode_coding_iso2022): Translate invalid codes if
7241 translation-table is specified.
7242
7243 2005-01-18 Kim F. Storm <storm@cua.dk>
7244
7245 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
7246 change. If handle_display_prop indicates newline is replaced by
7247 image or text, move back to start of relevant overlay or interval
7248 and continue scan from there. Simplify.
7249
7250 2005-01-17 Kim F. Storm <storm@cua.dk>
7251
7252 * dispnew.c (mode_line_string, marginal_area_string):
7253 Fix off-by-one error in search for glyph.
7254
7255 2005-01-16 Kim F. Storm <storm@cua.dk>
7256
7257 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
7258
7259 2005-01-16 Steven Tamm <steventamm@mac.com>
7260
7261 * macterm.c (mac_to_x_fontname): Remove spurious argument.
7262
7263 2005-01-16 Andreas Schwab <schwab@suse.de>
7264
7265 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
7266
7267 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7268
7269 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
7270 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
7271
7272 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7273
7274 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
7275 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
7276 New flags for readable_events.
7277 (get_filtered_input_pending, readable_filtered_events): Remove.
7278 (tracking_off): Call readable_events and get_input_pending with
7279 flag READABLE_EVENTS_DO_TIMERS_NOW.
7280 (readable_events): Move code from old readable_filtered_events here,
7281 but check new READABLE_EVENTS_* in argument flags instead of previous
7282 two boolean arguments do_timers_now and filter_events.
7283 If we are doing mouse tracking and the mouse moved, return only if
7284 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
7285 (swallow_events): Call get_input_pending with flag
7286 READABLE_EVENTS_DO_TIMERS_NOW.
7287 (get_input_pending): Move code from old get_filtered_input_pending
7288 here. Replace boolean arguments do_timers_now, filter_events with
7289 flags, and pass flags to readable_events. Document new
7290 READABLE_EVENTS_* flags.
7291 (detect_input_pending_ignore_squeezables): New function.
7292 (detect_input_pending_run_timers): Call get_input_pending with flag
7293 READABLE_EVENTS_DO_TIMERS_NOW.
7294 (Finput_pending_p): Call get_input_pending with flags
7295 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
7296
7297 * dispnew.c (update_window, update_frame_1): Replace calls to
7298 detect_input_pending with detect_input_pending_ignore_squeezables
7299 so that redisplay is not paused if the event queue contains only
7300 mouse movements.
7301
7302 * lisp.h: Declare detect_input_pending_ignore_squeezables.
7303
7304 2005-01-15 Steven Tamm <steventamm@mac.com>
7305
7306 * macterm.c (Vmac_use_core_graphics): Declare variable for
7307 mac-allow-anti-aliasing.
7308 (syms_of_macterm): DEFVAR_LISP and initialize it.
7309 (mac_draw_string_common): Use core graphics text rendering if
7310 mac-allow-anti-aliasing is enabled.
7311
7312 * macfns.c (Fx_file_dialog): Save As dialog includes only the
7313 file name in the text box.
7314
7315 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7316
7317 * macfns.c (x_set_foreground_color, x_set_background_color):
7318 Sync with xfns.c.
7319 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
7320 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
7321 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
7322
7323 2005-01-14 Kim F. Storm <storm@cua.dk>
7324
7325 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
7326
7327 2005-01-13 Richard M. Stallman <rms@gnu.org>
7328
7329 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
7330 if Voverriding_terminal_local_map is non-nil.
7331
7332 * keyboard.c (syms_of_keyboard): Doc fix.
7333
7334 2005-01-13 Kim F. Storm <storm@cua.dk>
7335
7336 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
7337 (specify 0 for FACE instead). Reorder arg list. Doc fix.
7338
7339 2005-01-12 Richard M. Stallman <rms@gnu.org>
7340
7341 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
7342 face property for characters that don't specify one.
7343
7344 * fns.c (Frequire): Record in load-history unconditionally.
7345
7346 2005-01-10 Kim F. Storm <storm@cua.dk>
7347
7348 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
7349
7350 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
7351 Callers changed.
7352 Add support to merge with lisp face id too (if face_name is t).
7353
7354 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7355 Don't lookup lface_id from display table glyphs here; instead use
7356 merge_faces to merge the lisp face id into current face.
7357
7358 2005-01-09 Kim F. Storm <storm@cua.dk>
7359
7360 * dispextern.h (struct it): New member dpvec_face_id.
7361 (merge_into_realized_face): Add prototype.
7362
7363 * xfaces.c (merge_into_realized_face): New function. Used to
7364 merge escape-glyph face or face from display table into current face.
7365
7366 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
7367 (syms_of_xdisp): DEFVAR_LISP it.
7368 (escape_glyph_face): Remove var.
7369 (redisplay_window): Don't initialize it.
7370 (setup_for_ellipsis, get_next_display_element):
7371 Set it->dpvec_face_id to -1.
7372 (get_next_display_element): Test Vshow_nonbreak_escape.
7373 Do not setup escape_glyph_face.
7374 Properly merge escape-glyph face or face from display table with
7375 current face for escape and control characters.
7376 Set it->dpvec_face_id to relevant face id instead of adding it to each
7377 element of display vector.
7378 (next_element_from_display_vector): If it->dpvec_face_id is set,
7379 use that instead of lface_id from glyph itself.
7380
7381 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7382
7383 * xterm.h (struct x_output): New member, toolbar_detached.
7384
7385 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
7386 38.
7387 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
7388 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
7389 (xg_create_tool_bar): Initialize toolbar_detached.
7390 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
7391 toolbar_detached is zero.
7392
7393 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7394
7395 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
7396 gtk_menu_popup if not for_click, so callbacks for the menu are called.
7397
7398 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
7399 (xg_tool_bar_callback, xg_tool_bar_help_callback)
7400 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
7401
7402 * xselect.c (x_get_foreign_selection, x_fill_property_data)
7403 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
7404 XFLOAT_DATA to get extract number from Lisp object.
7405
7406 2005-01-07 Kim F. Storm <storm@cua.dk>
7407
7408 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
7409 Set stop_charpos to current charpos instead of 0.
7410
7411 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
7412
7413 * xdisp.c (Fformat_mode_line): First arg now required.
7414
7415 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7416
7417 * macterm.c (XLoadQueryFont): Correctly handle 0 size
7418 font widths that are returned from some Japanese fonts.
7419
7420 2005-01-06 Kim F. Storm <storm@cua.dk>
7421
7422 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
7423 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
7424 (destroy_fringe_bitmap): Set fringe_faces element to nil.
7425 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
7426 fringe_faces array and init elements to nil.
7427 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
7428 non-persistent face id.
7429 (mark_fringe_data): New function for GC.
7430
7431 * alloc.c (mark_fringe_data): Declare extern.
7432 (Fgarbage_collect): Call mark_fringe_data.
7433
7434 * alloc.c (overrun_check_free): Invalidate freed memory if
7435 XMALLOC_CLEAR_FREE_MEMORY is defined.
7436
7437 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7438
7439 * macfns.c: Include sys/param.h.
7440 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
7441 and function.
7442 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
7443 of filename string. Set event callback function when creating
7444 dialog boxes. Add code conversions for filenames. Don't dispose
7445 of apple event descriptor record if failed to create it.
7446
7447 * macterm.c: Include sys/param.h.
7448 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
7449 kEventWindowUpdate.
7450 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
7451 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
7452 of FSSpec from apple event descriptor record.
7453 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
7454 size of filename string.
7455 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
7456 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
7457 file dialog is in action.
7458 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
7459 Reject only when there are no filename items. Set background color
7460 before (un)highlighting the window below the dragged items.
7461 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
7462
7463 2005-01-05 Romain Francoise <romain@orebokech.com>
7464
7465 * term.c (encode_terminal_code): Fix buffer size computation.
7466
7467 2005-01-04 Richard M. Stallman <rms@gnu.org>
7468
7469 * xdisp.c (Fformat_mode_line): Doc fix.
7470
7471 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7472
7473 * alloc.c (refill_memory_reserve): Move.
7474 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
7475 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
7476
7477 2005-01-03 Richard M. Stallman <rms@gnu.org>
7478
7479 * window.c (window_scroll_pixel_based): Don't correct preserve_y
7480 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
7481
7482 2005-01-03 Jason Rumney <jasonr@gnu.org>
7483
7484 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
7485 fontp->space_width to FONT_WIDTH so they are valid.
7486
7487 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
7488 average width. Set fontp->average_width and fontp->space_width to
7489 their appropriate values.
7490
7491 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7492 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7493 fontp->space_width.
7494
7495 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7496
7497 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
7498 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
7499 metrics for max and min bounds.
7500 (x_load_font): Correctly calculate average font width metrics.
7501
7502 2005-01-02 Richard M. Stallman <rms@gnu.org>
7503
7504 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
7505
7506 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7507
7508 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
7509
7510 2004-12-31 Richard M. Stallman <rms@gnu.org>
7511
7512 * xdisp.c (setup_for_ellipsis, get_next_display_element):
7513 Set it->ellipsis_p to 1 or 0.
7514 (display_line): Record whether row ends in mid-ellipsis.
7515 (set_cursor_from_row): If ends in ellipsis, find start of it.
7516 (cursor_row_p): If PT's at the end of the ellipsis the row
7517 ends within, don't display cursor on this row.
7518
7519 * dispextern.h (struct it): New element ellipsis_p.
7520 (struct glyph_row): New element ends_in_ellipsis_p.
7521
7522 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
7523 position if we're reading from something other than the buffer.
7524
7525 * window.c (window_scroll_pixel_based): Only look at
7526 Vscroll_preserve_screen_position if the old PT can't be kept.
7527 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7528
7529 2004-12-30 Kim F. Storm <storm@cua.dk>
7530
7531 * xdisp.c (get_line_height_property): New function extracted from
7532 original calc_line_height_property.
7533 (calc_line_height_property): Rework. Handle t and (nil . ratio).
7534 (x_produce_glyphs): Use them to handle line-height and
7535 line-spacing according to new height spec.
7536 (Qtotal): Remove.
7537 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
7538
7539 2004-12-30 Kenichi Handa <handa@m17n.org>
7540
7541 * fileio.c (Finsert_file_contents): Don't use
7542 current_buffer->buffer_file_coding_system even if REPLACE is
7543 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
7544
7545 * fontset.h (struct font_info): New members space_width and
7546 average_width.
7547
7548 * frame.h (struct frame): New member space_width.
7549 (FRAME_SPACE_WIDTH): New macro.
7550
7551 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
7552
7553 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
7554 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
7555 fontp->space_width.
7556 (x_load_font): Calculate fontp->space_width and fontp->average_width.
7557 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
7558
7559 * xdisp.c (x_produce_glyphs): Calculate tab width by
7560 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
7561
7562 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
7563
7564 * macterm.c (SelectionRange): Add Xcode position apple event struct.
7565 (do_ae_open_documents): Handle Xcode-style file position open events.
7566
7567 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
7568
7569 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
7570
7571 2004-12-29 Richard M. Stallman <rms@gnu.org>
7572
7573 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
7574
7575 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7576
7577 * macfns.c (install_window_handler): Modify extern to return OSErr
7578 value.
7579 (mac_window): Handle return value of install_window_handler.
7580
7581 * macterm.c (reflect_byte): Remove function.
7582 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
7583 Lookup table instead.
7584 (mac_do_font_lists): Simplify calculation of the longest
7585 nonspecial string.
7586 (init_mac_drag_n_drop): Remove function and declaration.
7587 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
7588 init_mac_drag_n_drop.
7589 (mac_do_track_drag): New function and declaration.
7590 (install_window_handler): Return OSErr value.
7591 (install_window_handler) [TARGET_API_MAC_CARBON]:
7592 Register handlers for tracking/receiving drag-and-drop items.
7593 (do_ae_open_documents): Generate unibyte strings for filenames.
7594 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
7595 Reject only non-filename items. Set event modifiers, and return value.
7596
7597 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7598
7599 * coding.c (decode_coding): Fix previous change.
7600
7601 2004-12-28 Richard M. Stallman <rms@gnu.org>
7602
7603 * xdisp.c (back_to_previous_visible_line_start):
7604 Don't call handle_display_prop.
7605
7606 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
7607
7608 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
7609 (decode_coding_emacs_mule, encode_coding_emacs_mule)
7610 (decode_coding_iso2022, encode_designation_at_bol)
7611 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
7612 (decode_coding): Constify arguments and local vars.
7613
7614 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7615
7616 * xmenu.c (popup_get_selection): Only pop down dialogs
7617 on C-g and Escape.
7618 (popup_get_selection): Remove parameter down_on_keypress.
7619 (create_and_show_popup_menu, create_and_show_dialog):
7620 Remove parameter down_on_keypress to popup_get_selection.
7621
7622 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7623
7624 * dispextern.h: Change HAVE_CARBON to MAC_OS.
7625 (struct glyph_string): Likewise.
7626
7627 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
7628 mac_initialize.
7629
7630 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
7631 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
7632
7633 * fns.c (vector): Change MAC_OSX to MAC_OS.
7634
7635 * frame.c (x_set_frame_parameters, x_report_frame_params)
7636 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
7637 (x_set_border_width, Vdefault_frame_scroll_bars):
7638 Change HAVE_CARBON to MAC_OS.
7639
7640 * image.c [MAC_OS]: Include sys/stat.h.
7641 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
7642 QuickTimeComponents.h.
7643
7644 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
7645 [!MAC_OSX] (select): Use mac_wait_next_event.
7646 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
7647 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
7648 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7649 (mac_clear_font_name_table): Add extern.
7650 (Fmac_clear_font_name_table): New defun.
7651 (syms_of_mac): Defsubr it.
7652 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
7653 [MAC_OSX] (select_and_poll_event): New function.
7654 [MAC_OSX] (sys_select): Use it.
7655 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
7656 [MAC_OSX && SELECT_USE_CFSOCKET]
7657 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
7658 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
7659 RunLoop for simultaneously monitoring two kinds of inputs, window
7660 events and process outputs, without periodically polling.
7661
7662 * macfns.c (mac_initialized): Remove extern.
7663 (stricmp): Put in #if 0. All callers changed to use xstricmp in
7664 xfaces.c.
7665 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
7666 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
7667 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
7668 (mac_get_rdb_resource): New function (from w32reg.c).
7669 (x_get_string_resource): Use it.
7670 (install_window_handler): Add extern.
7671 (mac_window): New function.
7672 (Fx_create_frame): Use it instead of make_mac_frame.
7673 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
7674 (Fx_open_connection, Fx_close_connection): New defuns.
7675 (syms_of_macfns): Defsubr them.
7676 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
7677 Add kWindowNoUpdatesAttribute to the window attribute.
7678 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
7679 (x_create_tip_frame): Don't call ShowWindow.
7680 (Fx_show_tip): Call ShowWindow.
7681 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
7682 TARGET_API_MAC_CARBON'.
7683 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
7684 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
7685
7686 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
7687 (Window): Typedef to WindowPtr and move outside `#if
7688 TARGET_API_MAC_CARBON'.
7689 (XSizeHints): New struct.
7690
7691 * macterm.c (x_update_begin, x_update_end)
7692 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
7693 frame.
7694 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7695 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
7696 (construct_mouse_click): Put in #if 0.
7697 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
7698 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
7699 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
7700 (activate_scroll_bars, deactivate_scroll_bars)
7701 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
7702 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
7703 if the position is neither user-specified nor program-specified.
7704 (x_free_frame_resources): Free size_hints.
7705 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
7706 (mac_clear_font_name_table): New function.
7707 (mac_do_list_fonts): Initialize font_name_table if needed.
7708 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
7709 around mac_do_list_fonts.
7710 (mac_unload_font): New function.
7711 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
7712 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
7713 and definitions with #if TARGET_API_MAC_CARBON.
7714 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
7715 (install_window_handler): Add decl.
7716 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
7717 window. Use UpdateControls. Get the rectangle that should be
7718 updated and restrict the target of expose_frame to it.
7719 (do_grow_window): Set minimum height/width according to size_hints.
7720 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
7721 (do_zoom_window): Don't use x_set_window_size.
7722 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
7723 (install_window_handler): New function.
7724 [!USE_CARBON_EVENTS] (mouse_region): New variable.
7725 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
7726 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
7727 GetEventDispatcherTarget inside BLOCK_INPUT.
7728 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
7729 Update mouse_region when mouse is moved.
7730 (make_mac_frame): Remove.
7731 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
7732 Initialize mouse pointer shapes. Change values of f->left_pos and
7733 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
7734 Don't call ShowWindow.
7735 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
7736 Vinvocation_name and Vsystem_name.
7737 (mac_make_rdb): New function (from w32term.c).
7738 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
7739 already been opened. Don't pass argument to
7740 mac_initialize_display_info. Don't set dpyinfo->height/width.
7741 Add entries to x_display_list and x_display_name_list.
7742 (x_delete_display): New function.
7743 (mac_initialize): Don't call mac_initialize_display_info.
7744 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
7745
7746 * macterm.h (check_mac): Add extern.
7747 (struct mac_output): New member size_hints.
7748 (FRAME_SIZE_HINTS): New macro.
7749 (mac_unload_font): Add extern.
7750
7751 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
7752
7753 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
7754
7755 2004-12-27 Richard M. Stallman <rms@gnu.org>
7756
7757 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
7758 (syms_of_buffer): Don't defsubr it.
7759
7760 * process.c (list_processes_1): Set undo_list instead
7761 of calling Fbuffer_disable_undo.
7762
7763 * xdisp.c (single_display_spec_string_p): Rename from
7764 single_display_prop_string_p.
7765 (single_display_spec_intangible_p): Rename from
7766 single_display_prop_intangible_p.
7767 (handle_single_display_spec): Rename from handle_single_display_prop.
7768 Rewritten to be easier to understand.
7769
7770 Change in load-history format. Functions now get (defun . NAME),
7771 and variables get just NAME.
7772
7773 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7774
7775 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
7776 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
7777 (Qdefvar): Var deleted.
7778 (syms_of_eval): Don't initialze it.
7779
7780 * lread.c (syms_of_lread) <load-history>: Doc fix.
7781
7782 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7783
7784 * xmenu.c (popup_get_selection): Pop down on C-g.
7785 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
7786 pops down menu on C-g.
7787 (xdialog_show): If dialog popped down and no button in the dialog was
7788 pushed, call Fsignal to quit.
7789 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
7790 Fsignal to quit.
7791
7792 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
7793
7794 * gtkutil.c (xg_initialize): Install bindings for C-g so that
7795 dialogs and menus pop down.
7796
7797 2004-12-27 Kenichi Handa <handa@m17n.org>
7798
7799 * coding.c (code_convert_region): Fix calculation of `ratio'.
7800
7801 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7802
7803 * gtkutil.c (update_frame_tool_bar): Make the value of
7804 tool-bar-button-margin control margins of images in tool bar.
7805
7806 * alloc.c (check_depth): New variable.
7807 (overrun_check_malloc, overrun_check_realloc): Only add
7808 overhead and write check pattern if check_depth is 1 (to handle
7809 recursive calls). Increase/decrease check_depth in entry/exit.
7810 (overrun_check_free): Only check for overhead if check_depth is 1.
7811 Increase/decrease check_depth in entry/exit.
7812
7813 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7814
7815 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
7816 before touching input_available_clear_time, to avoid accessing it
7817 from multiple threads.
7818
7819 2004-12-23 Jason Rumney <jasonr@gnu.org>
7820
7821 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
7822 of JPEG library.
7823
7824 2004-12-22 Richard M. Stallman <rms@gnu.org>
7825
7826 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
7827
7828 * lisp.h (Vundo_outer_limit): Fix decl.
7829
7830 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
7831 Uses changed.
7832 (syms_of_undo): Initialize appropriately.
7833 (truncate_undo_list): If it's nil, there's no limit.
7834
7835 2004-12-22 Kenichi Handa <handa@m17n.org>
7836
7837 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
7838
7839 2004-12-21 Richard M. Stallman <rms@gnu.org>
7840
7841 * eval.c (unwind_to_catch): Clear immediate_quit.
7842
7843 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
7844 specially as `\ ' and `\-'.
7845
7846 * keyboard.c (kbd_buffer_store_event_hold):
7847 In the code for while-no-input, handle immediate_quit.
7848
7849 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
7850 Call that at the very start.
7851 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
7852 (syms_of_alloc): Don't define undo-limit,
7853 undo-strong-limit and undo-outer-limit here.
7854
7855 * undo.c (truncate_undo_list): Return void.
7856 Take just one argument, the buffer.
7857 Make it current, and inhibit recursive GC.
7858 Access and update the undo list directly; return void.
7859 Refer to the undo...limit variables directly.
7860 Test undo_outer_limit only after counting the whole current command.
7861 When it's exceeded, call the function in undo-outer-limit-function.
7862 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
7863 (Vundo_outer_limit_function): New variable.
7864 (syms_of_undo): Define undo-limit, undo-strong-limit
7865 and undo-outer-limit here, and undo-outer-limit-function.
7866 Doc fixes.
7867
7868 * lisp.h (truncate_undo_list): Update decl.
7869
7870 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
7871
7872 * fileio.c (Fread_file_name): Delete duplicates in
7873 file-name-history when history_delete_duplicates is true.
7874
7875 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7876
7877 * macterm.c (mac_do_list_fonts): Fix memory leak
7878
7879 2004-12-20 Richard M. Stallman <rms@gnu.org>
7880
7881 * regex.c (re_match_2_internal) <symend, wordend>:
7882 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
7883
7884 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7885
7886 * macterm.c (endif, x_font_name_to_mac_font_name):
7887 Use maccentraleurroman instead of maccentraleuropean
7888 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
7889 quickly finding a specific font without needing regexps.
7890
7891 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7892
7893 * syssignal.h: Declare main_thread.
7894 (SIGNAL_THREAD_CHECK): New macro.
7895
7896 * keyboard.c (input_available_signal): Move thread checking code
7897 to macro SIGNAL_THREAD_CHECK and call that macro.
7898 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
7899
7900 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
7901
7902 * emacs.c: Define main_thread.
7903 (main): Initialize main_thread.
7904 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
7905 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
7906
7907 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
7908
7909 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
7910
7911 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
7912
7913 * process.c (send_process_trap, sigchld_handler):
7914 Call SIGNAL_THREAD_CHECK.
7915
7916 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
7917
7918 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
7919
7920 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
7921 returning when xg_ignore_gtk_scrollbar is true.
7922
7923 2004-12-14 Kim F. Storm <storm@cua.dk>
7924
7925 * keyboard.c (read_char): Save and restore echo_string when
7926 handling input method.
7927
7928 2004-12-13 Richard M. Stallman <rms@gnu.org>
7929
7930 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
7931
7932 * keyboard.c (Vthrow_on_input): New variable.
7933 (syms_of_keyboard): Defvar and initialize it.
7934 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
7935
7936 * lisp.h (QUIT): Check for Vthrow_on_input.
7937 (Vthrow_on_input): Declare it.
7938
7939 2004-12-13 Kim F. Storm <storm@cua.dk>
7940
7941 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
7942 vector.
7943
7944 2004-12-12 Richard M. Stallman <rms@gnu.org>
7945
7946 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
7947
7948 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
7949 (Ftry_completion): Really use outer `zero'; eliminate inner one.
7950
7951 2004-12-12 Kenichi Handa <handa@m17n.org>
7952
7953 * term.c (encode_terminal_code): Fix previous change.
7954
7955 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
7956
7957 * keyboard.c (handle_async_input): Remove pthread mutex handling.
7958 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
7959
7960 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
7961 in macro arguments.
7962
7963 * minibuf.c (Ftry_completion, Fall_completions): Don't use
7964 XFASTINT blindly.
7965
7966 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
7967
7968 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7969
7970 * w32term.c (x_calc_absolute_position): Remove calculation of
7971 difference between inner and outer window. Don't subtract difference
7972 for left and top calculations.
7973
7974 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
7975 for left and top calculations. Remove call to x_real_positions.
7976 [Bug report by Drew Adams in November]
7977 (x_check_expected_move): Do not set change_gravity to 1 when calling
7978 x_set_offset.
7979
7980 2004-12-08 Richard M. Stallman <rms@gnu.org>
7981
7982 * xdisp.c (get_next_display_element): Use `escape-glyph' for
7983 control chars and escaped octal codes.
7984 (Qescape_glyph): New variable.
7985 (syms_of_xdisp): Initialize it.
7986 (escape_glyph_face): New variable.
7987 (redisplay_window): Initialize it.
7988
7989 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
7990
7991 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
7992 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
7993
7994 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7995
7996 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
7997 reset_malloc_hooks.
7998
7999 * keyboard.c (handle_async_input, input_available_signal):
8000 Add ! defined (SYSTEM_MALLOC) around thread code.
8001
8002 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
8003
8004 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
8005
8006 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
8007
8008 * config.in: Regenerate.
8009
8010 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8011
8012 * xmenu.c (Fx_popup_menu): Correct documentation about position.
8013 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
8014 if not given by a mouse click to correspond with x-popup-menu
8015 documentation.
8016
8017 * config.in: Regenerate.
8018
8019 * gtkutil.c: Include signal.h and syssignal.h.
8020 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
8021
8022 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
8023 new variables main_thread and alloc_mutex,
8024 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
8025 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
8026 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
8027 (UN)BLOCK_INPUT.
8028 (emacs_blocked_free, emacs_blocked_malloc)
8029 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
8030 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
8031 (reset_malloc_hooks): New function.
8032
8033 * lisp.h: Declare reset_malloc_hooks.
8034
8035 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
8036
8037 * keyboard.c: Conditionally include pthread.h
8038 (handle_async_input, input_available_signalt): If not in the main
8039 thread, block signal, send signal to main thread and return.
8040
8041 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
8042 Set current folder in file chooser if default_filename is a directory.
8043
8044 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
8045
8046 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
8047 Remove redundant correctness checks.
8048 (regex_compile): Fix up error codes for \{..\} expressions.
8049
8050 2004-12-05 Richard M. Stallman <rms@gnu.org>
8051
8052 * regex.c (regex_compile): Fix end-of-pattern case for space.
8053
8054 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8055
8056 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
8057 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
8058 crashes with invalid characters.
8059 * macmenu.c (add_menu_item): Use it.
8060 * image.c (image_load_quartz2d): Likewise.
8061 * macfns.c (x_set_name, x_set_title): Likewise.
8062 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
8063 creating them each time for labels.
8064
8065 2004-12-02 Richard M. Stallman <rms@gnu.org>
8066
8067 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
8068 don't use it here.
8069
8070 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
8071 (interactive_p): Skip Scalled_interactively_p frames
8072 like Sinteractive_p frames.
8073 (unwind_to_catch): Clear handling_signal.
8074
8075 * data.c (Fmake_variable_buffer_local): Doc fix.
8076 (Fmake_local_variable): Doc fix.
8077
8078 * insdel.c (insert_from_string_before_markers)
8079 (insert_from_string): Don't modify buffer on empty insertion.
8080
8081 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
8082
8083 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8084
8085 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
8086 menu text as UTF8 fails.
8087
8088 2004-12-01 Kim F. Storm <storm@cua.dk>
8089
8090 * alloc.c: Add commentary for last change.
8091 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
8092 sizeof(size_t) != 4.
8093 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
8094 Use them. Also clear header and trailer of freed memory.
8095 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
8096 (string_overrun_cookie): Rename from string_overrun_pattern.
8097 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
8098
8099 2004-12-01 Andreas Schwab <schwab@suse.de>
8100
8101 * lisp.h: Declare string_to_multibyte.
8102
8103 2004-12-01 Kenichi Handa <handa@m17n.org>
8104
8105 * w32console.c (w32con_write_glyphs): Decide coding here.
8106 Adjusted for the change of encode_terminal_code.
8107
8108 * term.c (encode_terminal_code): Don't make it "static".
8109
8110 2004-11-30 Kenichi Handa <handa@m17n.org>
8111
8112 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
8113 (encode_terminal_code): Argument changed. Encode all
8114 characters at once, and return a pointer to the result of encoding.
8115 (write_glyphs): Decide coding here. Adjusted for the above change.
8116 (insert_glyphs): Likewise.
8117 (term_init): Initialize encode_terminal_bufsize to 0.
8118
8119 * coding.c (Vcode_conversion_workbuf_name): New variable.
8120 (syms_of_coding): Initialize and staticpro it.
8121 (set_conversion_work_buffer): New function.
8122 (run_pre_post_conversion_on_str): Use it.
8123 (run_pre_write_conversin_on_c_str): New function.
8124
8125 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
8126
8127 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8128
8129 * keyboard.c: Don't undef SIGIO
8130 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
8131 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
8132 (macfns.o): Don't depend on ccl.h.
8133 * macfns.c (mac_frame_parm_handlers): Set handlers for
8134 Qleft_fringe and Qright_fringe.
8135 * macterm.c (mac_fill_rectangle_to_pixmap)
8136 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
8137 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
8138 Put in #if 0.
8139 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
8140 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
8141 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
8142 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
8143 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
8144 XDrawImageString. Always draw background and foreground separately.
8145 (x_draw_image_foreground): Use clipping instead of computing the
8146 intersection rectangle.
8147 (x_draw_image_glyph_string): Don't draw an image with mask to a
8148 pixmap.
8149 (x_redisplay_interface): Set flush_display_optional member to 0.
8150 (XTread_socket): Correctly reset the TEConverter
8151 object.
8152
8153 2004-11-30 Kim F. Storm <storm@cua.dk>
8154
8155 * lisp.h: New defines to enable buffer overrun checking.
8156 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
8157 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
8158
8159 * alloc.c: Add more checks for buffer overruns.
8160 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
8161 xmalloc_overrun_check_trailer, overrun_check_malloc)
8162 overrun_check_realloc, overrun_check_free): Add.
8163 (GC_STRING_EXTRA, string_overrun_pattern): Add.
8164 (check_sblock, allocate_string_data, compact_small_strings):
8165 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
8166 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
8167 (check_string_free_list): Add.
8168 (allocate_string, sweep_strings): Call check_string_free_list.
8169
8170 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
8171 XMALLOC_OVERRUN_CHECK to avoid crash during load.
8172
8173 2004-11-29 Kim F. Storm <storm@cua.dk>
8174
8175 * fns.c (concat): Use SAFE_ALLOCA.
8176
8177 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
8178
8179 * sysdep.c (emacs_write): Don't use QUIT.
8180
8181 2004-11-29 Kenichi Handa <handa@m17n.org>
8182
8183 * buffer.c (init_buffer): Set current_buffer->directory to a
8184 multibyte string made by string_to_multibyte.
8185
8186 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
8187
8188 2004-11-27 Andreas Schwab <schwab@suse.de>
8189
8190 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
8191
8192 * s/gnu-linux.h: Enable no-op gcpros on ia64.
8193 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
8194
8195 * filelock.c (lock_file_1): Call get_boot_time early.
8196 Increase buffer size.
8197
8198 2004-11-27 Eli Zaretskii <eliz@gnu.org>
8199
8200 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
8201 is not defined.
8202
8203 2004-11-27 Kim F. Storm <storm@cua.dk>
8204
8205 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
8206 marker out of doc string.
8207
8208 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
8209
8210 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
8211 which was not mentioned in the log.
8212
8213 2004-11-26 Kim F. Storm <storm@cua.dk>
8214
8215 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
8216 angle bitmaps at top/bottom line.
8217
8218 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
8219 set it when it->method is set to next_element_from_display_vector.
8220 (setup_for_ellipsis): Add LEN argument. Callers changed.
8221 Set it->saved_face_id.
8222 (get_next_display_element): Use loop instead of recursion.
8223 Set it->saved_face_id. Combine duplicate code for ctr chars.
8224 (next_element_from_display_vector): Do not set it->saved_face_id.
8225 (next_element_from_ellipsis): Use setup_for_ellipsis.
8226
8227 2004-11-26 Eli Zaretskii <eliz@gnu.org>
8228
8229 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
8230 prevent compiler warnings.
8231
8232 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
8233
8234 * keyboard.c (command_loop_1): Print a message describing the key
8235 the user just pressed when this key has no binding.
8236
8237 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
8238 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
8239
8240 * lread.c (readchar): Check QUIT when `getc' is interrupted.
8241
8242 2004-11-24 Richard M. Stallman <rms@gnu.org>
8243
8244 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
8245
8246 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
8247
8248 2004-11-24 Kim F. Storm <storm@cua.dk>
8249
8250 * xdisp.c (move_it_in_display_line_to, display_line):
8251 Restore saved_face_id also when truncate-lines or hscrolled.
8252
8253 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8254
8255 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
8256 x-use-old-gtk-file-dialog.
8257
8258 * xfns.c: Define x_use_old_gtk_file_dialog.
8259 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
8260 outside ifdef USE_GTK.
8261
8262 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
8263
8264 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
8265 Don't use XFASTINT blindly.
8266
8267 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
8268
8269 * indent.c (skip_invisible): Avoid non-idempotent side-effects
8270 in macro arguments.
8271
8272 * keymap.c (Flookup_key): Check INTEGERP before XINT.
8273
8274 * lread.c (oblookup): Don't use XFASTINT blindly.
8275
8276 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
8277 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
8278
8279 2004-11-23 Kim F. Storm <storm@cua.dk>
8280
8281 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
8282 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
8283
8284 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
8285 signal_p is zero and face name is unknown.
8286 (Fx_list_fonts): Don't signal error in lookup_named_face.
8287 (Fface_font): Signal error in lookup_named_face.
8288 (ascii_face_of_lisp_face): Likewise.
8289
8290 * dispextern.h (lookup_named_face): Fix prototype.
8291
8292 * xdisp.c (handle_single_display_prop): Don't signal error in
8293 lookup_named_face for unknown fringe face name.
8294 (highlight_trailing_whitespace): Don't signal error in
8295 lookup_named_face if trailing-whitespace face unknown.
8296 (calc_line_height_property): Don't signal error in
8297 lookup_named_face if specified face name is unknown.
8298
8299 * fringe.c (update_window_fringes): Show top row indicator if
8300 window has header-line. Don't show arrow at bob and eob
8301 if the boundary indicators are not used.
8302 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
8303
8304 * window.c (set_window_buffer): Clear display_error_modiff.
8305
8306 2004-11-22 Kim F. Storm <storm@cua.dk>
8307
8308 * fringe.c (update_window_fringes): Provide sensible fall-back
8309 value for non-nil indicate-buffer-boundaries setting.
8310
8311 2004-11-22 Markus Rost <rost@ias.edu>
8312
8313 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
8314
8315 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8316
8317 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
8318
8319 2004-11-21 Kim F. Storm <storm@cua.dk>
8320
8321 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
8322
8323 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
8324 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8325
8326 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
8327 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8328
8329 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
8330 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8331
8332 * xdisp.c (move_it_in_display_line_to, display_line):
8333 Restore saved_face_id if overflow-newline-into-fringe is enabled and
8334 line is continued before or in middle of element from display vector.
8335
8336 * indent.c (Fvertical_motion): Fix last change. Use another
8337 method to detect if iterator moved too far ahead after reseat.
8338
8339 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
8340 expand matrix width for overflow in zero-width area.
8341 (append_glyph, append_composite_glyph, produce_image_glyph)
8342 (append_stretch_glyph): Use it to avoid loop in redisplay.
8343 (note_mode_line_or_margin_highlight): Don't let help-echo from
8344 string override help-echo from image map.
8345
8346 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
8347
8348 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
8349 * callint.c (Fcall_interactively): Ditto.
8350
8351 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
8352
8353 * minibuf.c (Fminibuffer_complete_and_exit):
8354 Fixup the case of the completed value, for case-indep completion.
8355
8356 2004-11-20 Richard M. Stallman <rms@gnu.org>
8357
8358 * lisp.h (Fread_from_minibuffer): Add arg in decl.
8359
8360 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
8361 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
8362
8363 * search.c (Vsearch_spaces_regexp):
8364 Rename from Vsearch_whitespace_regexp. All uses changed.
8365
8366 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
8367
8368 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
8369
8370 2004-11-19 Richard M. Stallman <rms@gnu.org>
8371
8372 * search.c (Vsearch_whitespace_regexp): New variable.
8373 (syms_of_search): Defvar it.
8374 (compile_pattern_1): Call re_set_whitespace_regexp with it.
8375 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
8376 is non-nil.
8377 (struct regexp_cache): New element whitespace_regexp.
8378 (syms_of_search): Initialize whitespace_regexp elements.
8379 (compile_pattern): Compare whitespace_regexp elements.
8380 (compile_pattern_1): Set whitespace_regexp elements.
8381
8382 * regex.c (regex_compile): Substitute whitespace_regexp
8383 for spaces, if it is nonzero.
8384 (whitespace_regexp): New variable.
8385 (re_set_whitespace_regexp): New function.
8386
8387 2004-11-19 Kim F. Storm <storm@cua.dk>
8388
8389 * indent.c (Fvertical_motion): Fix last change.
8390
8391 2004-11-18 Kim F. Storm <storm@cua.dk>
8392
8393 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
8394 Instead, move back again if reseating moves too far ahead.
8395
8396 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
8397
8398 * xdisp.c (message3): Call clear_message.
8399
8400 2004-11-17 Kim F. Storm <storm@cua.dk>
8401
8402 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
8403
8404 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8405
8406 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
8407
8408 * xmenu.c (x_menu_in_use): Remove.
8409 (x_menu_set_in_use): Also set popup_activated_flag.
8410
8411 * xfns.c (Fx_file_dialog): Call popup_activated instead of
8412 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
8413
8414 * xterm.h (x_menu_in_use): Remove.
8415
8416 2004-11-16 Richard M. Stallman <rms@gnu.org>
8417
8418 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
8419 Use map-keymap-internal to implement that.
8420
8421 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
8422
8423 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8424
8425 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
8426 a window before using XWINDOW.
8427
8428 * window.c (make_window, Fselect_window, make_dummy_parent)
8429 (save_window_save):
8430 * frame.c (make_frame):
8431 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
8432
8433 * lisp.h (NILP): Use EQ rather than XFASTINT.
8434
8435 2004-11-16 Kim F. Storm <storm@cua.dk>
8436
8437 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
8438
8439 * indent.c (Fvertical_motion): Fix last change. Only reseat when
8440 moving backwards.
8441
8442 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
8443
8444 * dispextern.h: Extern reseat_at_previous_visible_line_start.
8445
8446 2004-11-16 Kenichi Handa <handa@m17n.org>
8447
8448 * xdisp.c (display_mode_element): Fix previous change (calculate
8449 end position of substring to display correctly).
8450
8451 2004-11-16 Kim F. Storm <storm@cua.dk>
8452
8453 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
8454 Reported by Andrew M. Scott.
8455
8456 2004-11-15 Kim F. Storm <storm@cua.dk>
8457
8458 * fns.c (Fsafe_plist_get): New defun.
8459 (syms_of_fns): Defsubr it.
8460
8461 * lisp.h (Fsafe_plist_get): Add EXFUN.
8462
8463 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
8464 Use Fsafe_plist_get.
8465 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8466 Fix image map element parsing. Use Fsafe_plist_get.
8467
8468 2004-11-15 Richard M. Stallman <rms@gnu.org>
8469
8470 * xdisp.c (get_next_display_element): Fix previous change.
8471
8472 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8473
8474 * window.c (shrink_windows): Handle special case of one window left
8475 when trying to shrink the final reminder. Grow windows if
8476 total_removed is less than total_shrink.
8477
8478 * xmenu.c (pop_down_menu): Remove global variable current_menu,
8479 extract pointer from arg with XSAVE_VALUE.
8480 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
8481 Construct arg to record_unwind_protect with make_save_value.
8482
8483 2004-11-13 Richard M. Stallman <rms@gnu.org>
8484
8485 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
8486 (get_next_display_element): Fix previous change to apply only to \n.
8487
8488 * indent.c (Fvertical_motion): Scan to PT from start of line to
8489 make iterator consistent.
8490
8491 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8492
8493 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8494
8495 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
8496
8497 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
8498 Record unwind with clean_up_file_dialog.
8499
8500 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
8501 Declare.
8502
8503 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
8504
8505 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8506
8507 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
8508 (xg_file_sel_destroy): Remove.
8509 (xg_file_response_cb, pop_down_file_dialog)
8510 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
8511 New functions.
8512 (xg_get_file_with_chooser, xg_get_file_with_selection):
8513 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
8514 Move common code to xg_get_file_name. Return widget created.
8515 (xg_get_file_name): Set name, transient for, modal and destroy
8516 with parent here. Connect response signal to xg_file_response_cb,
8517 connect delete-event to gtk_true. Record pop_down_file_dialog
8518 for unwind. Do event loop and call x_menu_wait_for_event in loop.
8519 (xg_create_widget): Make dialogs modal.
8520
8521 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
8522 Lisp_Object.
8523 (popup_get_selection): Move unwind protect ...
8524 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8525 Move destroy of widget to pop_down_menu.
8526 (popup_widget_loop): Move unwind protect ...
8527 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
8528 Move destroy of widget to pop_down_menu.
8529 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
8530 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
8531 x_mouse_leave and grabbed = 0 to pop_down_menu.
8532
8533 2004-11-13 Kim F. Storm <storm@cua.dk>
8534
8535 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
8536 (syms_of_xdisp): DEFVAR_BOOL it.
8537 (make_cursor_line_fully_visible, try_cursor_movement)
8538 (try_window_id): Use it.
8539
8540 2004-11-12 Kim F. Storm <storm@cua.dk>
8541
8542 * dispextern.h (struct glyph_row): New member extra_line_spacing.
8543 (struct it): New member max_extra_line_spacing.
8544 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
8545 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
8546 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
8547 part of last line is only extra line spacing (so the text on the
8548 line is fully visible). Use helper macros.
8549 Add W arg (to use them). All callers changed.
8550 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
8551 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
8552
8553 * window.c (window_scroll_pixel_based, Frecenter):
8554 Use move_it_vertically_backward directly.
8555 (Frecenter): Fix calculation of new start pos for negative arg.
8556 Before, the new start pos was sometimes chosen too far back, so
8557 the last line became only partially visible, and thus would be
8558 either only semi-visible or automatically scrolled to the middle
8559 of the window by redisplay.
8560
8561 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
8562 (move_it_vertically_backward): Don't recure to move further back.
8563 (move_it_vertically): Remove superfluous condition.
8564 (move_it_by_lines): Clear last_height when moved 0 lines.
8565 (resize_mini_window): Use it.max_extra_line_spacing.
8566 (display_tool_bar_line): Clear row->extra_line_spacing.
8567 (try_scrolling): Use move_it_vertically_backward directly.
8568 (redisplay_window): Likewise.
8569 (compute_line_metrics): Set row->extra_line_spacing.
8570 (display_line, display_string): Likewise.
8571 (x_produce_glyphs): Update it->max_extra_line_spacing.
8572
8573 * xmenu.c (pop_down_menu): Return nil.
8574
8575 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8576
8577 * xmenu.c (x_menu_wait_for_event): New function.
8578 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
8579 to handle timers.
8580 (popup_widget_loop): Add argument do_timers.
8581 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
8582 do_timers to popup_widget_loop.
8583 (xmenu_show): Call XMenuActivateSetWaitFunction so that
8584 x_menu_wait_for_event is called by XMenuActivate.
8585 (create_and_show_popup_menu): Pass 1 for do_timers to
8586 popup_get_selection.
8587 (pop_down_menu): New function.
8588 (popup_get_selection, popup_widget_loop): Unwind protect to
8589 pop_down_menu.
8590 (popup_widget_loop): Add argument widget.
8591 (create_and_show_popup_menu, create_and_show_dialog): Pass new
8592 argument widget to popup_widget_loop.
8593
8594 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8595
8596 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
8597
8598 2004-11-09 Kim F. Storm <storm@cua.dk>
8599
8600 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
8601 Fix various comments referring to XEvents instead of input events.
8602 (x_queue_event): Fix format strings.
8603 (x_stop_queuing_selection_requests): Likewise.
8604
8605 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
8606 (pint2hrstr): Add extra braces to silence compiler.
8607
8608 * print.c (print_object): Fix format string.
8609
8610 * lread.c (read1): Fix next_char matching.
8611
8612 * lisp.h (Fdelete): Add EXFUN.
8613 (replace_range_2): Add prototype.
8614
8615 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
8616
8617 * intervals.h (NULL_INTERVAL_P): Add separate version when
8618 ENABLE_CHECKING is not defined to silence compiler.
8619 (compare_string_intervals): Add prototype.
8620
8621 * fringe.c (destroy_fringe_bitmap): Fix return type.
8622 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
8623
8624 * emacs.c (Fdump_emacs): Fix format string.
8625
8626 * doc.c: Include <ctype.h>.
8627 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
8628
8629 * data.c (store_symval_forwarding): Remove unused variables.
8630
8631 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
8632
8633 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8634
8635 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
8636 to ${OLDXMENU}.
8637
8638 2004-11-09 Kim F. Storm <storm@cua.dk>
8639
8640 * process.c (Fmake_network_process): Remove kludge for interrupted
8641 connects on BSD. If connect is interrupted, just close socket and
8642 start over rather than sleeping and retry with same socket.
8643
8644 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8645
8646 * .cvsignore: Add buildobj.lst.
8647
8648 * doc.c: New variable Vbuild_files.
8649 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
8650 file names from buildobj.lst. Only attach docstrings from files
8651 that are in Vbuild_files.
8652 (syms_of_doc): Defvar Vbuild_files.
8653
8654 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
8655 and w32*.o.
8656 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
8657 (mostlyclean): Rm buildobj.lst
8658
8659 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
8660 is linked.
8661
8662 2004-11-09 Kim F. Storm <storm@cua.dk>
8663
8664 * fringe.c (update_window_fringes): Update fringe bitmaps if
8665 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
8666 also update previous row to get rid of misc. artifacts.
8667
8668 2004-11-08 Kim F. Storm <storm@cua.dk>
8669
8670 * xdisp.c (fast_find_position): Fix start pos if header line present.
8671 (note_mouse_highlight): Clear mouse face if we move out of text area.
8672
8673 2004-11-08 Eli Zaretskii <eliz@gnu.org>
8674
8675 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
8676 Don't include <sys/time.h> explicitly.
8677 Include <stdio.h> unconditionally, not just on MacOS.
8678
8679 2004-11-08 Kenichi Handa <handa@m17n.org>
8680
8681 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
8682 don't pay attention to '\' before '*'.
8683 (fontset_pattern_regexp): Change the meaning of the second arg.
8684 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
8685 (check_fontset_name): Try NAME as literal at first, and if it
8686 failes, try NAME as pattern.
8687
8688 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8689
8690 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
8691
8692 2004-11-07 Andreas Schwab <schwab@suse.de>
8693
8694 * lisp.h (Fmsdos_downcase_filename): Declare.
8695 * dired.c (Fmsdos_downcase_filename): Don't declare here.
8696 * fileio.c: Likewise.
8697
8698 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8699
8700 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
8701 comparisons with integers instead of Lisp_Object address.
8702 (Fmsdos_set_keyboard): Declare argument allkeys.
8703
8704 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
8705
8706 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
8707 int/Lisp_Object mixup.
8708
8709 * fileio.c: Ditto.
8710
8711 2004-11-06 Steven Tamm <steventamm@mac.com>
8712
8713 * editfns.c: Need to include sys/time.h before resource.h on darwin.
8714
8715 2004-11-06 Richard M. Stallman <rms@gnu.org>
8716
8717 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
8718
8719 * xfaces.c (merge_named_face): GCPRO the face_name in the
8720 named_merge_point struct that we make.
8721 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
8722
8723 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
8724 before deciding whether to inactivate mark.
8725
8726 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
8727
8728 * config.in: Regenerate (add HAVE_GETRUSAGE).
8729 * editfns.c (Fget_internal_run_time): New function.
8730 (syms_of_data): Defsubr it.
8731 * fns.c (sxhash): As far as possible, merge calculation of
8732 hash code for symbols and strings.
8733
8734 2004-11-06 Eli Zaretskii <eliz@gnu.org>
8735
8736 * frame.c (syms_of_frame): Fix the example in the doc string.
8737
8738 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8739
8740 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
8741
8742 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
8743 (create_and_show_dialog): Revert change from 2004-10-31.
8744
8745 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
8746
8747 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
8748
8749 2004-11-05 Kim F. Storm <storm@cua.dk>
8750
8751 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
8752
8753 * fileio.c (Ffile_modes): Doc fix.
8754 (auto_save_1): Check for Ffile_modes nil value.
8755
8756 2004-11-05 Kim F. Storm <storm@cua.dk>
8757
8758 * xselect.c (struct selection_event_queue, selection_queue)
8759 (x_queue_selection_requests, x_queue_event)
8760 (x_start_queuing_selection_requests)
8761 (x_stop_queuing_selection_requests): Add new queue for selection
8762 input events to replace previous XEvent queue in xterm.c.
8763 (queue_selection_requests_unwind): Adapt to new queue.
8764 (x_reply_selection_request): Adapt to new queue.
8765 Unexpect wait_object in case of x errors (memory leak).
8766 (x_handle_selection_request, x_handle_selection_clear): Make static.
8767 (x_handle_selection_event): New function. May queue selection events.
8768 (wait_for_property_change_unwind): Use save_value instead of cons.
8769 Clear property_change_reply_object.
8770 (wait_for_property_change): Abort if already waiting.
8771 Use save_value instead of cons for unwind data.
8772 (x_handle_property_notify): Skip events already arrived, but don't
8773 free them, as "arrived" field is checked by wait_for_property_change,
8774 and it will be freed by unwind or explicit unexpect_property_change.
8775 (x_get_foreign_selection): Add to new queue.
8776 (receive_incremental_selection): Don't unexpect wait_object when done
8777 as it has already been freed by previous wait_for_property_change.
8778
8779 * xterm.h (x_start_queuing_selection_requests)
8780 (x_stop_queuing_selection_requests, x_handle_selection_request)
8781 (x_handle_selection_clear): Remove prototypes.
8782 (x_handle_selection_event): Add prototype.
8783
8784 * xterm.c (handle_one_xevent): Don't queue X selection events
8785 here, it may be too late if we start queuing after we have already
8786 stored some selection events into the kbd buffer.
8787 (struct selection_event_queue, queue, x_queue_selection_requests)
8788 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
8789 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
8790 (x_catch_errors_unwind): Block input around final XSync.
8791
8792 * keyboard.h (kbd_buffer_unget_event): Add prototype.
8793
8794 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
8795 (kbd_buffer_unget_event): New function.
8796 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
8797 and use x_handle_selection_event.
8798 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
8799
8800 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8801
8802 * xselect.c (TRACE3): New debug macro.
8803 (x_reply_selection_request): Use it.
8804 (receive_incremental_selection): In call to TRACE0, the name of
8805 a symbol is in xname.
8806
8807 2004-11-05 Kim F. Storm <storm@cua.dk>
8808
8809 * fontset.c (fontset_pattern_regexp): Use unsigned char.
8810
8811 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8812
8813 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
8814
8815 * gtkutil.h (use_old_gtk_file_dialog): Declare.
8816
8817 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
8818 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
8819 * xfns.c (syms_of_xfns): ... to here.
8820
8821 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
8822 it doesn't start with /.
8823
8824 2004-11-04 Kenichi Handa <handa@m17n.org>
8825
8826 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
8827 treat it as a literal character.
8828
8829 2004-11-03 Kim F. Storm <storm@cua.dk>
8830
8831 * .gdbinit (ppt): New function.
8832
8833 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8834
8835 * xterm.c (x_window_to_scroll_bar): Only call
8836 xg_get_scroll_id_for_window if toolkit scroll bars are used.
8837
8838 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
8839 of save.
8840
8841 2004-11-02 Andreas Schwab <schwab@suse.de>
8842
8843 * window.c (Fscroll_right): Fix last change.
8844
8845 2004-11-02 Kim F. Storm <storm@cua.dk>
8846
8847 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
8848
8849 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8850
8851 * callproc.c (Fcall_process): Block input around vfork.
8852
8853 2004-11-02 Kim F. Storm <storm@cua.dk>
8854
8855 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
8856 (syms_of_eval): Defsubr it.
8857
8858 2004-11-02 Richard M. Stallman <rms@gnu.org>
8859
8860 * insdel.c (replace_range_2): New function.
8861
8862 * casefiddle.c (casify_region): Handle changes in byte-length
8863 using replace_range_2.
8864
8865 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
8866
8867 * xdisp.c (back_to_previous_visible_line_start):
8868 Subtract 1 from pos when checking previous newline for invisibility.
8869
8870 * window.c (window_scroll_pixel_based): Update preserve_y
8871 for header line if any.
8872 (Fscroll_left, Fscroll_right): Don't call interactive_p;
8873 use a new second argument instead.
8874
8875 * eval.c (Fcall_interactive_p): New function.
8876 (interactive_p): Don't test INTERACTIVE here.
8877 (Finteractive_p): Doc fix.
8878
8879 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
8880
8881 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8882
8883 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
8884 comparing font names.
8885
8886 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8887
8888 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
8889 Fx_file_dialog if only directories should be read.
8890
8891 * lisp.h: Fx_file_dialog takes 5 parameters.
8892
8893 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
8894 Add parameter only_dir_p.
8895 In Motif version, don't put DEFAULT_FILENAME in filter part of the
8896 dialog, just text field part. Do not add DEFAULT_FILENAME
8897 to list of files if it isn't there.
8898 In GTK version, pass only_dir_p parameter to xg_get_file_name.
8899
8900 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
8901 Check only_dir_p instead of comparing prompt to "Dired". When using
8902 a save dialog, add option kNavDontConfirmReplacement, change title
8903 to "Enter name", change text for save button to "Ok".
8904
8905 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
8906 Check only_dir_p instead of comparing prompt to "Dired".
8907
8908 * gtkutil.c (xg_get_file_with_chooser)
8909 (xg_get_file_with_selection): New functions, only defined ifdef
8910 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
8911 respectively.
8912 (xg_get_file_name): Add parameter only_dir_p.
8913 Call xg_get_file_with_chooser or xg_get_file_with_selection
8914 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
8915 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
8916
8917 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
8918
8919 * config.in: Rebuild (added HAVE_GTK_FILE_*).
8920
8921 2004-11-01 Kim F. Storm <storm@cua.dk>
8922
8923 * process.c (connect_wait_mask, num_pending_connects):
8924 Only declare and use them if NON_BLOCKING_CONNECT is defined.
8925 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
8926 (IF_NON_BLOCKING_CONNECT): New helper macro.
8927 (wait_reading_process_output): Only declare and use local vars
8928 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
8929
8930 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
8931
8932 * w32term.c (x_scroll_run): Delete region objects after use.
8933
8934 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8935
8936 * xmenu.c: Add prototypes for forward function declarations.
8937 (popup_get_selection): Remove parameter do_timers, remove call to
8938 timer_check.
8939 (create_and_show_popup_menu, create_and_show_dialog):
8940 Remove parameter do_timers from call to popup_get_selection.
8941
8942 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
8943 tool_bar_items and assign the result to f->tool_bar_items if
8944 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
8945 tool_bar_items to assignment of result.
8946
8947 * atimer.c (alarm_signal_handler): Do not call set_alarm if
8948 pending_atmers is non-zero.
8949
8950 2004-10-31 Kim F. Storm <storm@cua.dk>
8951
8952 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
8953
8954 2004-10-28 Will <will@glozer.net>
8955
8956 * macterm.c: Allow user to assign key modifiers to the Mac Option
8957 key via a 'mac-option-modifier' variable.
8958
8959 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8960
8961 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
8962 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
8963 (x_handle_selection_request, x_handle_selection_clear)
8964 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
8965
8966 2004-10-28 Richard M. Stallman <rms@gnu.org>
8967
8968 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8969
8970 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8971
8972 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
8973
8974 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
8975 comment-starter over a 1-char one.
8976
8977 2004-10-27 Richard M. Stallman <rms@gnu.org>
8978
8979 * xdisp.c (get_next_display_element): In mode lines,
8980 treat newline and tab like other control characters.
8981
8982 * editfns.c (Fmessage): Doc fix.
8983
8984 * indent.c (vmotion): When moving up, check the newline before.
8985 Make prevline an int, not a Lisp_Object.
8986
8987 2004-10-27 Kim F. Storm <storm@cua.dk>
8988
8989 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
8990 Only allocate info and discarded tables once.
8991
8992 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
8993 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
8994 (SAFE_FREE): Test it to determine if we need to unwind to free.
8995 Remove size arg. All users changed.
8996 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
8997
8998 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8999
9000 * gtkutil.c: Put empty line between comment and function body.
9001 (xg_destroy_widgets): Rename from remove_from_container.
9002 Just destroy all widgets in list. Argument wcont removed.
9003 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
9004 instead of remove_from_container.
9005 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
9006 (free_frame_tool_bar): Add comment.
9007
9008 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
9009 is not NULL before strcmp.
9010
9011 2004-10-26 Kim F. Storm <storm@cua.dk>
9012
9013 * callint.c (Fcall_interactively): Add 'U' code to get the
9014 up-event discarded by a previous 'k' or 'K' argument.
9015
9016 2004-10-26 David Kastrup <dak@gnu.org>
9017
9018 * buffer.c (syms_of_buffer): Fix a few typos.
9019
9020 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9021
9022 * xsmfns.c: Put empty line between comment and function body.
9023 Use two spaces before comment end.
9024
9025 2004-10-25 Kenichi Handa <handa@m17n.org>
9026
9027 * fontset.c (fontset_pattern_regexp): Optimize for the case that
9028 PATTERN is full XLFD.
9029
9030 2004-10-24 Kenichi Handa <handa@m17n.org>
9031
9032 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
9033
9034 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
9035 (regex_compile): Return REG_ERANGEX if appropriate.
9036
9037 2004-10-22 Kenichi Handa <handa@m17n.org>
9038
9039 * editfns.c (Ftranslate_region_internal): New function.
9040 (syms_of_editfns): Defsubr it.
9041
9042 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9043
9044 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
9045
9046 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
9047
9048 * xterm.h (x_output): New member `xic_base_fontname'.
9049 (FRAME_XIC_BASE_FONTNAME): New macro.
9050 (xic_free_xfontset): Declare.
9051
9052 * xfns.c (xic_create_xfontset): Share fontsets between frames
9053 based on base_fontname.
9054 (xic_free_xfontset): New function.
9055 (free_frame_xic): Use it.
9056 (xic_set_xfontset): Ditto.
9057
9058 * xterm.c (xim_destroy_callback): Ditto.
9059
9060
9061 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
9062
9063 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
9064
9065 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9066
9067 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
9068 XSync.
9069
9070 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
9071 New variables and constant.
9072 (main): Calculate heap_bss_diff. If we are dumping and the
9073 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
9074 and exec ourself again.
9075 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
9076 print a warning.
9077
9078 * lastfile.c: Make my_endbss and my_endbss_static available on all
9079 platforms.
9080
9081 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
9082 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
9083
9084 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
9085
9086 * data.c (Flocal_variable_if_set_p): Doc fix.
9087
9088 2004-10-19 Jason Rumney <jasonr@gnu.org>
9089
9090 * w32.c (init_environment): Set emacs_dir correctly when running
9091 emacs from the build directory.
9092
9093 2004-10-19 Richard M. Stallman <rms@gnu.org>
9094
9095 * editfns.c (Fdelete_and_extract_region):
9096 If region is empty, return null string.
9097
9098 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9099
9100 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
9101 and canon_width.
9102 (xg_frame_cleared): Remove.
9103
9104 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
9105 (xg_find_top_left_in_fixed): Remove.
9106 (xg_create_scroll_bar): Put an event box widget between
9107 the scroll bar widget and the edit widget.
9108 (xg_show_scroll_bar): Show the parent widget (the event box).
9109 (xg_remove_scroll_bar): Destroy parent (the event box) also.
9110 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
9111 Move the parent (the event box) widget inside the fixed widget.
9112 Move window clear to xterm.c.
9113
9114 * gtkutil.h (xg_frame_cleared): Remove.
9115
9116 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
9117 (x_scroll_bar_create, XTset_vertical_scroll_bar):
9118 Remove arguments left and width to xg_update_scrollbar_pos.
9119 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
9120
9121 2004-10-19 Kenichi Handa <handa@m17n.org>
9122
9123 * xdisp.c (display_mode_element): Fix display of wide chars.
9124
9125 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9126
9127 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
9128 gdk_window_clear and move gdk_window_process_all_updates after
9129 clear so events are sent to the X server in correct order.
9130
9131 2004-10-18 Kenichi Handa <handa@m17n.org>
9132
9133 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
9134 comparing font names.
9135 (fs_query_fontset): Use fast_string_match for comparing fontset names.
9136 (list_fontsets): Likewise.
9137
9138 * search.c (fast_string_match_ignore_case): New function.
9139
9140 * lisp.h (fast_string_match_ignore_case): Extern it.
9141
9142 2004-10-17 Kim F. Storm <storm@cua.dk>
9143
9144 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
9145 than bitmap if there is not left fringe.
9146 (get_overlay_arrow_glyph_row): Also used on windows system.
9147 (display_line): Display overlay string if no left fringe.
9148
9149 2004-10-16 Jason Rumney <jasonr@gnu.org>
9150
9151 * w32fns.c (w32_font_match): Encode font name being matched.
9152
9153 2004-10-16 Richard M. Stallman <rms@gnu.org>
9154
9155 * window.c (Fspecial_display_p): Doc fix.
9156
9157 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
9158
9159 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
9160 Don't ignore menus, because where-is-internal already does it for us.
9161
9162 2004-10-15 Kim F. Storm <storm@cua.dk>
9163
9164 * xdisp.c (redisplay_window): Only update fringes and vertical
9165 border on window frames.
9166
9167 2004-10-14 Andreas Schwab <schwab@suse.de>
9168
9169 * m/ia64.h (DATA_SEG_BITS): Don't define.
9170
9171 2004-10-14 Kim F. Storm <storm@cua.dk>
9172
9173 * xterm.h: Include Xutil.h after keysym.h to work around bug
9174 in some X versions.
9175
9176 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9177
9178 * fns.c (map_char_table): Add missing gcpros.
9179
9180 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9181
9182 * keymap.c (get_keymap): An autoload form is not a keymap.
9183
9184 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
9185
9186 2004-10-13 Kim F. Storm <storm@cua.dk>
9187
9188 * callproc.c (Fcall_process): Simplify handling of display arg.
9189 Resume `display_on_the_fly' once a coding system is determined.
9190
9191 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
9192
9193 2004-10-12 Kim F. Storm <storm@cua.dk>
9194
9195 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
9196 caller, such as call-process, is not going to poll for input.
9197 (calc_line_height_property): Handle case where it->object is nil.
9198
9199 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
9200
9201 2004-10-12 Kenichi Handa <handa@m17n.org>
9202
9203 * xdisp.c (get_next_display_element):
9204 If unibyte_display_via_language_environment is zero, display 8-bit
9205 chars in octal in unibyte buffer.
9206
9207 2004-10-12 Kim F. Storm <storm@cua.dk>
9208
9209 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
9210 are no ordinary bindings.
9211
9212 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9213
9214 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
9215
9216 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9217
9218 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
9219 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
9220 (make_mac_frame): Add BLOCK_INPUT around the making of a
9221 terminal frame.
9222 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
9223 * macgui.h (mktime): Use emacs_mktime.
9224 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
9225 Make a cancel file-open dialog be like C-g.
9226 * mac.c (mktime): Use emacs_mktime.
9227 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
9228 (Fmac_paste_function): Add better error handling for carbon cut/paste.
9229
9230 2004-10-10 Kim F. Storm <storm@cua.dk>
9231
9232 * keyboard.c (timer_resume_idle): New function to resume idle
9233 timer without resetting timers on the idle list.
9234 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9235 (timer_start_idle, timer_stop_idle): Declare static.
9236 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
9237
9238 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
9239
9240 2004-10-08 Steven Tamm <steventamm@mac.com>
9241
9242 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
9243 * macterm.c (mac_check_for_quit_char): Remove warning for using
9244 NULL where 0 should be used.
9245 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
9246 objc/malloc.h
9247 * mac.c: Include time.h for Tiger compatibility.
9248
9249 2004-10-07 Kim F. Storm <storm@cua.dk>
9250
9251 * xdisp.c (redisplay_window): Fix flicker on vertical line between
9252 windows. Update vertical line after drawing window fringes, but
9253 only if actually drawing any bitmaps--or there is no fringe.
9254
9255 * xterm.c (x_update_window_end): Likewise.
9256 * macterm.c (x_update_window_end): Likewise.
9257 * w32term.c (x_update_window_end): Likewise.
9258
9259 * fringe.c (draw_window_fringes): Return value now indicates if
9260 any fringe bitmaps were redrawn (or there are no fringes).
9261
9262 * dispextern.h (draw_window_fringes): Update prototype.
9263
9264 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9265
9266 * macfns.c (mac_get_window_bounds): Add extern.
9267 (x_real_positions): Use mac_get_window_bounds.
9268
9269 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
9270 xmenu.c (YAILOM).
9271
9272 * macterm.c [!MAC_OSX]: Include Windows.h.
9273 (front_emacs_window): Rename from mac_front_window. All uses
9274 changed. Return the frontmost non-tooltip emacs window.
9275 (mac_get_window_bounds): New function.
9276 (x_calc_absolute_position): Use the difference of width and height
9277 between the inner and outer window.
9278 (x_set_offset): Specify window position by the coordinae of the
9279 outer window. Adjust the position if the title bar is completely
9280 outside the screen.
9281 (app_is_suspended, app_sleep_time): Remove unused variables.
9282 (do_app_resume, do_app_suspend): Remove their contents because
9283 window-activate/deactivate events will do the job.
9284 (do_zoom_window): Remove unused variables. Make compliant to the
9285 standard way of zooming. Set f->left_pos and f->top_pos.
9286 (XTread_socket): Don't use argument `expected'. Don't use
9287 FrontWindow to determine the clicked window. Exclude unprocessed
9288 mouseUp cases in the early stage. Add parentheses to fix operator
9289 precedence.
9290 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
9291
9292 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
9293
9294 * config.in: Regenerate.
9295
9296 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
9297 HAVE_EXECSHIELD.
9298
9299 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9300
9301 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
9302 a row if Alt or Meta has been found for that row. Also stop scanning
9303 for Keysyms for that row.
9304
9305 2004-10-04 Kim F. Storm <storm@cua.dk>
9306
9307 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
9308 to list. Include overlay arrow bitmap in return value.
9309
9310 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
9311 bars with fractional column width. If scroll bar separates two
9312 windows, move it towards the window it belongs to. Only update
9313 the padding area below the scroll bar widget when necessary,
9314 i.e. when scroll bar widget is created, moved, or resized.
9315
9316 * xdisp.c (define_frame_cursor1): Do not change frame cursor
9317 while tracking/dragging mouse.
9318 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
9319
9320 * window.c (coordinates_in_window): Relax check for cursor
9321 on vertial border between mode lines.
9322 (Fset_window_fringes): Do not allow negative widths.
9323 (Fset_window_scroll_bars): Likewise.
9324
9325 * .gdbinit (pp): Shorthand for p ARG + pr.
9326 (ff): New command: flush frame updates (X only).
9327
9328 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
9329
9330 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
9331
9332 2004-09-30 Kenichi Handa <handa@m17n.org>
9333
9334 * process.c (send_process): Free composition data.
9335
9336 * fileio.c (Finsert_file_contents): Free composition data.
9337
9338 * coding.c (code_convert_region): Don't skip ASCIIs if there are
9339 compositions to encode.
9340 (encode_coding_string): Likewise. Free composition data.
9341
9342 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
9343
9344 * coding.c (code_convert_region): Free composition data.
9345
9346 2004-09-29 Kim F. Storm <storm@cua.dk>
9347
9348 * fringe.c: Remove limit on number of bitmaps.
9349 (fringe_bitmaps, fringe_faces): Change to pointers.
9350 (max_fringe_bitmaps): New var.
9351 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
9352 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
9353
9354 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
9355 (struct glyph_row): Reorder fringe_bitmap related fields.
9356 (struct it): Likewise.
9357
9358 * w32term.c (fringe_bmp): Change to pointer.
9359 (max_fringe_bmp): New var.
9360 (w32_define_fringe_bitmap): Expand fringe_bmp.
9361 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
9362 (w32_destroy_fringe_bitmap): Likewise.
9363
9364 2004-09-29 Kim F. Storm <storm@cua.dk>
9365
9366 * fringe.c: Simplify last change.
9367 (lookup_fringe_bitmap): New function.
9368 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
9369 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
9370 Keep standard bitmaps in Vfringe_bitmaps.
9371 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
9372 (Fset_fringe_bitmap_face): Likewise.
9373
9374 * dispextern.h (lookup_fringe_bitmap): Add prototype.
9375 (valid_fringe_bitmap_p): Remove prototype.
9376
9377 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
9378
9379 2004-09-29 Kim F. Storm <storm@cua.dk>
9380
9381 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
9382 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
9383
9384 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
9385
9386 * fringe.c (Vfringe_bitmaps): New variable.
9387 (syms_of_fringe): DEFVAR_LISP it.
9388 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
9389 Change arg to Lisp_Object and fail if not an integer.
9390 (get_fringe_bitmap_name, resolve_fringe_bitmap)
9391 (destroy_fringe_bitmap): New functions.
9392 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
9393 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
9394 clear its fringe property.
9395 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
9396 Fdestroy_fringe_bitmap.
9397 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
9398 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
9399 and set fringe property. Signal error if no free slots.
9400 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
9401 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
9402
9403 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
9404 symbols with a fringe property.
9405
9406 2004-09-27 Kim F. Storm <storm@cua.dk>
9407
9408 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
9409 Doc fix. Format may now be a symbol or alist, not a cons.
9410
9411 * fringe.c (update_window_fringes): Handle new formats of
9412 indicate-buffer-boundaries (symbol or alist). No longer
9413 allow a simple cons.
9414 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
9415
9416 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9417
9418 * config.in: Rebuild.
9419
9420 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9421
9422 * config.in: Rebuild.
9423
9424 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
9425
9426 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
9427
9428 * xterm.c (x_term_init): Work around a bug in some X servers.
9429
9430 2004-09-18 Richard M. Stallman <rms@gnu.org>
9431
9432 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
9433
9434 * xdisp.c (try_window_reusing_current_matrix):
9435 Handle the case where we reach the old displayed text,
9436 out of sync with the old line boundary.
9437
9438 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
9439
9440 * fileio.c (Finsert_file_contents): Fix case of replacement in a
9441 narrowed buffer.
9442
9443 2004-09-14 Kim F. Storm <storm@cua.dk>
9444
9445 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
9446
9447 * xfaces.c (Qface_no_inherit): New var.
9448 (syms_of_xfaces): Intern and staticpro it.
9449 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
9450 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
9451 Don't increment face_change_count when face has non-nil
9452 face-no-inherit property.
9453
9454 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
9455
9456 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
9457 (Fbyte_code): Remove dead code after `wrong_type_argument'.
9458
9459 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9460 before doing the mark_stack_check_gcpros since they're not on the stack.
9461
9462 2004-09-12 Kim F. Storm <storm@cua.dk>
9463
9464 * editfns.c (Fformat): Handle format strings with multiple text
9465 properties. Reverse text property list from the format string,
9466 so the positions are in increasing order.
9467
9468 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9469
9470 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
9471 x_uncatch_errors so that possible protocol errors are delivered.
9472
9473 2004-09-10 Eli Zaretskii <eliz@gnu.org>
9474
9475 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
9476 blockinput.h.
9477 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
9478 charset.h, and coding.h
9479 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
9480 (term.o): Depend on window.h and keymap.h.
9481 (abbrev.o): Depend on syntax.h.
9482 (callint.o): Depend on keymap.h.
9483 (casefiddle.o): Depend on charset.h and keymap.h.
9484 (category.o): Depend on keymap.h.
9485 (coding.o): Depend on dispextern.h.
9486 (cmds.o): Depend on keyboard.h and keymap.h.
9487 (dispnew.o): Depend on indent.h and intervals.h.
9488 (doc.o): Depend on keymap.h.
9489 (editfns.o): Depend on frame.h.
9490 (emacs.o): Depend on dispextern.h.
9491 (fileio.o): Don't depend on ccl.h.
9492 (filelock.o): Depend on charset.h and coding.h.
9493 (frame.o): Depend on w32term.h and macterm.h.
9494 (insdel.o): Depend on region-cache.h.
9495 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
9496 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
9497 (search.o): Depend on $(INTERVALS_SRC).
9498 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
9499 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
9500 xterm.h, w32term.h, and macterm.h.
9501 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
9502 w32term.h, and macterm.h.
9503 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
9504 region-cache.h, xterm.h, w32term.h, and macterm.h.
9505 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
9506 (data.o): Depend on frame.h.
9507 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
9508 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
9509 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
9510 (intervals.o): Depend on keymap.h.
9511
9512 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
9513 Add debugging print-out to termscript.
9514
9515 2004-09-09 Richard M. Stallman <rms@gnu.org>
9516
9517 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
9518
9519 2004-09-08 Richard M. Stallman <rms@gnu.org>
9520
9521 * window.c (Fset_window_buffer): Doc fix.
9522
9523 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
9524
9525 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
9526
9527 * minibuf.c (history_delete_duplicates): New variable.
9528 (read_minibuf): Use it.
9529 (syms_of_minibuf): Create the corresponding lisp variable.
9530
9531 2004-09-08 Kim F. Storm <storm@cua.dk>
9532
9533 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
9534 overlay just before point.
9535
9536 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
9537
9538 * buffer.h (struct buffer): Add auto_save_file_format field.
9539 * buffer.c (reset_buffer, init_buffer_once):
9540 Handle auto_save_file_format field.
9541 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
9542 `buffer-auto-save-file-format'.
9543 * fileio.c: Delete declaration for removed Vauto_save_file_format.
9544 (build_annotations): Adapt to replacement of
9545 `auto-save-file-format' with the new buffer-local variable
9546 `buffer-auto-save-file-format'.
9547 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
9548
9549 2004-09-07 Jason Rumney <jasonr@gnu.org>
9550
9551 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
9552
9553 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
9554 Handle Unicode menu titles.
9555
9556 2004-09-07 Kim F. Storm <storm@cua.dk>
9557
9558 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
9559 property from text property or overlay strings at point.
9560
9561 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9562
9563 * xmenu.c (update_submenu_strings): YAILOM.
9564 (set_frame_menubar): Make sure last_i is initialized.
9565
9566 2004-09-03 Jason Rumney <jasonr@gnu.org>
9567
9568 * w32menu.c (_widget_value): Add lname and lkey.
9569 (digest_single_submenu): Set lname and lkey in widget_value
9570 instead of name and key.
9571 (update_submenu_strings): New function.
9572 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9573 call update_submenu_strings.
9574
9575 * w32menu.c (globals_of_w32menu): Check for Unicode API.
9576 (digest_single_submenu, w32_menu_show): Encode menu strings as
9577 UTF-8 if Unicode API is available.
9578 (utf8to16): New function.
9579 (add_menu_item): Use it when calling Unicode API.
9580
9581 2004-09-03 Kim F. Storm <storm@cua.dk>
9582
9583 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
9584 in overlay or text-property strings; set cursor on corresponding
9585 glyph rather than at end of the string.
9586
9587 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9588
9589 * macfns.c (x_real_positions): Save the current window port and
9590 set a new one before obtaining the global coordinate.
9591 Use FRAME_MAC_WINDOW.
9592 (x_set_name, x_set_title): Encode title to UTF8.
9593 Use SetWindowTitleWithCFString.
9594 (Fx_server_version): Get correct OS version.
9595
9596 * macmenu.c (add_menu_item): Remove unused variable `i'.
9597 Don't let separator items destroy refence constants of other menu items.
9598
9599 * macterm.c (x_update_end): Move SetPortWindowPort to inside
9600 BLOCK_INPUT.
9601 (x_set_offset): Use FRAME_MAC_WINDOW.
9602
9603 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
9604 nontext_cursor if it is on a scroll bar.
9605
9606 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
9607 Carbon support.
9608 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
9609 Use LIBS_CARBON.
9610
9611 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9612
9613 * xfns.c (x_set_name_internal): New function. Check if we shall call
9614 xfree before ENCODE_UTF_8.
9615 (x_set_name, x_set_title): Call x_set_name_internal.
9616
9617 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
9618
9619 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
9620 reload it.
9621
9622 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9623
9624 * macmenu.c (_widget_value): Add lname and lkey.
9625 (single_submenu): Set lname and lkey in widget_value
9626 instead of name and key.
9627 (update_submenu_strings): New function.
9628 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9629 call update_submenu_strings.
9630
9631 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
9632 instead of name and key.
9633 (update_submenu_strings): New function.
9634 (set_frame_menubar): Remove call to inhibit_garbage_collection,
9635 call update_submenu_strings.
9636
9637 * gtkutil.h (_widget_value): Added lname and lkey.
9638
9639 2004-08-30 Steven Tamm <steventamm@mac.com>
9640
9641 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
9642 by using different names for inner loop variables.
9643
9644 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9645
9646 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
9647 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
9648
9649 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
9650 tool bar items is 0.
9651
9652 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9653
9654 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
9655 strings in menu items.
9656 (single_submenu): Use ENCODE_MENU_STRING
9657 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
9658 button release isn't passed to event loop
9659 (add_menu_item): Use SetMenuItemWithCFString
9660
9661 2004-08-26 Steven Tamm <steventamm@mac.com>
9662
9663 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
9664 tool-bar/menu click.
9665 * macfns.c (Fx_file_dialog): Implement using NavServices.
9666
9667 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9668
9669 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
9670
9671 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9672 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9673 (x_top_window_to_frame): Return 0 if wdesc is None.
9674
9675 2004-08-22 Richard M. Stallman <rms@gnu.org>
9676
9677 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
9678 HAVE_TERMIOS]: If there's no char for this signal, drop through
9679 and use system calls.
9680
9681 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
9682
9683 2004-08-20 Kim F. Storm <storm@cua.dk>
9684
9685 * process.c (wait_reading_process_output): Rename from
9686 wait_reading_process_input. All uses changed.
9687 (wait_reading_process_output_1): Rename from
9688 wait_reading_process_input_1. All uses changed.
9689
9690 * dispnew.c (Fsleep_for): Remove obsolete code.
9691
9692 2004-08-20 Kenichi Handa <handa@m17n.org>
9693
9694 * syntax.c (skip_chars): Fix for unibyte case.
9695
9696 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * syntax.c (char_quoted): Mixup byte/char pos.
9699 (back_comment): Fixup globals in all cases.
9700
9701 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9702
9703 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
9704 passing it to gtk_window_set_title.
9705
9706 2004-08-19 Kim F. Storm <storm@cua.dk>
9707
9708 * process.c (wait_reading_process_input): Clean up.
9709 Add wait_for_cell, wait_proc, and just_wait_proc args
9710 to avoid overloading `read_kbd' and `do_display' args.
9711 Change read_kbd arg to int. All callers changed.
9712
9713 * process.c (process_send_signal): Use CDISABLE.
9714
9715 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
9716
9717 2004-08-18 Kim F. Storm <storm@cua.dk>
9718
9719 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
9720 forward to wait_reading_process_input via DO_DISPLAY arg.
9721 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
9722 object, only process output from that process; also inhibit
9723 running timers if DO_DISPLAY==-2.
9724
9725 2004-08-17 Kim F. Storm <storm@cua.dk>
9726
9727 * process.c (process_send_signal): Fix last change--use
9728 _POSIX_VDISABLE instead of CVDISABLE when available.
9729
9730 2004-08-16 Richard M. Stallman <rms@gnu.org>
9731
9732 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
9733 Set VQUIT and VINTR chars to the standard ones if they are unset.
9734 [AIX]: Don't do that here. And don't force VINTR to standard
9735 when SIGNALS_VIA_CHARACTERS.
9736
9737 * process.c (process_send_signal)
9738 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
9739 Do nothing if the character is CVDISABLE.
9740
9741 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
9742
9743 * intervals.c (move_if_not_intangible):
9744 Force POSITION to be between BEGV and ZV.
9745
9746 2004-08-14 John Paul Wallington <jpw@gnu.org>
9747
9748 * buffer.c (Frestore_buffer_modified_p): Doc fix.
9749
9750 * fileio.c (Fread_file_name): Doc fix.
9751
9752 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9753
9754 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
9755
9756 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
9757
9758 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
9759
9760 * keyboard.c: Declare Qdisabled_command_function instead of
9761 Qdisabled_command_hook.
9762 (Fcommand_execute): Use Qdisabled_command_function instead of
9763 Qdisabled_command_hook.
9764 (syms_of_keyboard): Ditto.
9765
9766 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
9767
9768 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
9769 (syms_of_keymap) <key-translation-map>: Doc fixes.
9770
9771 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
9772
9773 * window.c (window_list_1): YAILOM.
9774
9775 * fileio.c (make_temp_name): Handle multibyte prefixes.
9776
9777 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
9778
9779 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
9780 Doc fix.
9781
9782 2004-08-03 Kenichi Handa <handa@m17n.org>
9783
9784 * coding.c (decode_coding_string): Adjust coding->consumed, and
9785 etc. with shrinked_bytes.
9786
9787 2004-08-03 Kim F. Storm <storm@cua.dk>
9788
9789 * indent.c (compute_motion): Fix check for full width window
9790 in non-window case. Do not count left truncation glyph on
9791 window systems.
9792
9793 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
9794
9795 * data.c (Finteractive_form): Doc fix.
9796
9797 2004-08-02 Kim F. Storm <storm@cua.dk>
9798
9799 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
9800 properly accounting for continuation glyph on non-window systems.
9801 (Fcompute_motion): Use actual window width if WIDTH is nil, and
9802 actual window width/height if TOPOS is nil, properly accounting for
9803 continuation glyphs on non-window systems, and optional header lines.
9804 (vmotion): Let compute_motion calculate actual window width.
9805
9806 * window.c (window_scroll_line_based): Let compute_motion
9807 calculate actual window width.
9808
9809 2004-08-02 Kim F. Storm <storm@cua.dk>
9810
9811 * process.c (read_process_output): Use whole read buffer.
9812 Don't trigger adaptive read buffering on errors.
9813
9814 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
9815
9816 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
9817
9818 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
9819
9820 * callint.c (Fcall_interactively): Doc fix.
9821
9822 2004-07-30 Richard M. Stallman <rms@gnu.org>
9823
9824 * abbrev.c (Fexpand_abbrev): Undo previous change.
9825
9826 2004-07-30 Kim F. Storm <storm@cua.dk>
9827
9828 * editfns.c (Fformat): Allocate extra (dummy) element in info.
9829
9830 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
9831
9832 * eval.c (Fdefvar, Fdefconst): Doc fixes.
9833
9834 2004-07-27 Kim F. Storm <storm@cua.dk>
9835
9836 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
9837 we have ensured that the glyph fits on the current line (or returned
9838 MOVE_LINE_CONTINUED otherwise).
9839
9840 2004-07-26 Kim F. Storm <storm@cua.dk>
9841
9842 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
9843 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
9844 if target position is at end of display line but char is not a newline.
9845
9846 2004-07-25 Richard M. Stallman <rms@gnu.org>
9847
9848 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
9849 instead of ON_VERTICAL_BORDER, when on scroll bar.
9850 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
9851
9852 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
9853
9854 * window.c (Fcoordinates_in_window_p):
9855 Take account of FRAME_INTERNAL_BORDER_WIDTH.
9856
9857 * alloc.c (check_cons_list): New function (contents commented out).
9858
9859 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
9860
9861 * xfaces.c (Fcolor_supported_p): Doc fix.
9862
9863 * frame.c (Fselect_frame, Fset_frame_selected_window)
9864 (Fframe_visible_p, Fraise_frame): Doc fixes.
9865
9866 2004-07-24 Richard M. Stallman <rms@gnu.org>
9867
9868 * keyboard.h (not_single_kboard_state): Declare.
9869
9870 * fileio.c (Fwrite_region): Doc fix.
9871
9872 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
9873
9874 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
9875 only when a real abbrev is present.
9876
9877 * xfns.c (x_icon_verify): New function.
9878 (Fx_create_frame): Use it.
9879
9880 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
9881
9882 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
9883
9884 2004-07-21 Kim F. Storm <storm@cua.dk>
9885
9886 * window.h (struct glyph_matrix): New members nrows_scale_factor
9887 and ncols_scale_factor.
9888
9889 * window.c (make_window): Initialize nrows_scale_factor and
9890 ncols_scale_factor members.
9891
9892 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
9893 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
9894 (required_matrix_height): Apply nrows_scale_factor.
9895 (required_matrix_width): Apply ncols_scale_factor.
9896
9897 * xdisp.c (display_line): Increment nrows_scale_factor and set
9898 fonts_changed_p if past last allocated row.
9899 (append_glyph, append_composite_glyph, produce_image_glyph)
9900 (append_stretch_glyph): Increment ncols_scale_factor and set
9901 fonts_changed_p if current area is full.
9902
9903 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9904
9905 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
9906
9907 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
9908
9909 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
9910 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
9911 (Fset_window_start, Fscroll_up, Fscroll_down)
9912 (Fother_window_for_scrolling, Fscroll_other_window)
9913 (Fsave_window_excursion, Fset_window_vscroll)
9914 (syms_of_window) <window-size-fixed>: Doc fixes.
9915
9916 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9917
9918 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
9919 ENCODE_SYSTEM for filenames.
9920
9921 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9922
9923 * mac.c (sys_select): Block input around call to
9924 ReceiveNextEvent to prevent breakage. Correctly handle
9925 blocking on event queue only by calling ReceiveNextEvent
9926 instead of select (since GUI events aren't on an fd).
9927 (sys_read): Remove function
9928 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
9929
9930 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9931
9932 * mac.c (sys_select): Redo sys_select to use alarm-based
9933 polling instead of 1 sec timeouts (like solaris).
9934
9935 * macterm.c (x_make_frame_visible): Comment in polling on
9936 frame creation.
9937
9938 * keyboard.c: Undef SIGIO on Carbon
9939
9940 * atimer.c (alarm_signal_handler): Call alarm handlers after
9941 scheduling.
9942
9943 * eval.c (Feval): Remove quit_char test
9944
9945 * process.c (wait_reading_process_input): Remove clearing
9946 stdin for select call on process input.
9947
9948 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
9949
9950 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
9951 capitalization error in docstring.
9952
9953 2004-07-17 Juanma Barranquero <lektu@terra.es>
9954
9955 * keyboard.c (not_single_kboard_state): Do nothing unless
9956 MULTI_KBOARD is defined.
9957
9958 2004-07-17 Richard M. Stallman <rms@gnu.org>
9959
9960 * window.c (coordinates_in_window): Inside the window but outside
9961 its box to the L or R, return ON_VERTICAL_BORDER.
9962 (window_list_1): Rotate the list to start with WINDOW.
9963
9964 * print.c (print_preprocess): Test for print_depth at limit
9965 before entering in being_printed.
9966
9967 * keyboard.c (not_single_kboard_state): New function.
9968 (stuff_buffered_input): Now no-op only if no SIGTSTP.
9969
9970 * frame.c (Fdelete_frame): If we're in single_bboard_state on
9971 this kboard, and we delete its last frame, go to any_kboard_state.
9972
9973 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
9974
9975 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9976
9977 * w32fns.c (Fx_file_dialog): Encode strings in system coding
9978 system before passing them to OS functions for display.
9979
9980 2004-07-15 David Kastrup <dak@gnu.org>
9981
9982 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
9983 Apparently fixes an abort condition.
9984
9985 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
9986
9987 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
9988 instead of a cons.
9989
9990 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
9991
9992 * keyboard.c (echo_dash): Do nothing if there already is a dash
9993 at the end of the echo string.
9994
9995 2004-07-12 Kim F. Storm <storm@cua.dk>
9996
9997 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
9998 if GC_MARK_STACK.
9999
10000 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
10001
10002 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
10003
10004 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
10005 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
10006 (Freplace_buffer_in_windows, Fset_window_buffer)
10007 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
10008 (syms_of_window): Expand docstring of `display-buffer-function'.
10009
10010 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
10011
10012 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
10013 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
10014 that time values of the type (HIGH . LOW) are considered obsolete.
10015
10016 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
10017
10018 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
10019 docstring.
10020
10021 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
10022
10023 2004-07-06 John Paul Wallington <jpw@gnu.org>
10024
10025 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
10026
10027 * fns.c (Fclear_string): Signal an error if STRING is not a string.
10028
10029 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10030
10031 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
10032 instead of CGMainDisplayID (only in OSX 10.2 and later).
10033
10034 2004-07-04 John Paul Wallington <jpw@gnu.org>
10035
10036 * fileio.c (read_file_name_completion_ignore_case): New variable.
10037 (syms_of_fileio): Declare and initialise it.
10038 (Fread_file_name): Bind `completion-ignore-case' to respect it.
10039
10040 2004-07-03 Eli Zaretskii <eliz@gnu.org>
10041
10042 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
10043 for event.x and event.y.
10044
10045 2004-07-01 Kenichi Handa <handa@m17n.org>
10046
10047 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
10048 after getting a new string by pre-write-conversion.
10049
10050 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
10051
10052 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
10053 (x_calc_absolute_position): Remove unused var `child'.
10054
10055 * xfaces.c (x_supports_face_attributes_p)
10056 (Fdisplay_supports_face_attributes_p): YAILOM.
10057 (tty_supports_face_attributes_p): Remove unused var `i'.
10058
10059 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
10060 back_unibyte_ok.
10061
10062 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
10063
10064 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
10065
10066 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
10067
10068 2004-06-30 Andreas Schwab <schwab@suse.de>
10069
10070 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
10071 (Finit_image_library): Pass LIBRARIES through to
10072 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
10073 (lookup_image_type): Pass Qnil as second argument to
10074 Finit_image_library.
10075
10076 * lisp.h (Finit_image_library): Declare.
10077
10078 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10079
10080 * macterm.c (do_window_activate, do_window_deactivate): Remove.
10081 (XTread_socket): Send mouse button events to the toolbox
10082 dispatcher even when the mouse is grabbed. Don't process window
10083 activate events for non-Emacs windows. Replace function calls to
10084 do_window_activate and do_window_deactivate with their contents.
10085 Reset mouse grabbing status when a window is deactivated.
10086
10087 2004-06-29 Steven Tamm <steventamm@mac.com>
10088
10089 * macterm.c (mac_get_emulated_btn)
10090 (mac_event_to_emacs_modifiers): Fix emulated mouse button
10091 support to correctly mask out modifiers.
10092
10093 2004-06-29 David Kastrup <dak@gnu.org>
10094
10095 * search.c (Fset_match_data): Allow buffer before end of list
10096 which can happen if set-match-data is using a pre-consed list.
10097
10098 2004-06-28 Steven Tamm <steventamm@mac.com>
10099
10100 * macterm.c (XTread_socket): Correctly set the frame position
10101 after the window is moved.
10102
10103 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10104
10105 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
10106 gpix and gmask just before return to avoid memory leak.
10107 (xg_get_image_for_pixmap): Add workaround for monochrome displays
10108 so insensitive and activated icons look ok.
10109
10110 2004-06-27 Jason Rumney <jasonr@gnu.org>
10111
10112 * w32fns.c (file_dialog_callback): Disable edit control if set
10113 to directories only on CDN_INITDONE message.
10114 (Fx_file_dialog): Default to directories only when prompt starts
10115 with "Dired".
10116
10117 2004-06-25 Kim F. Storm <storm@cua.dk>
10118
10119 * alloc.c (allocate_misc): Update total_free_markers.
10120 (free_misc): New function.
10121 (safe_alloca_unwind, free_marker): Use it.
10122
10123 * lisp.h (free_misc): Add prototype.
10124
10125 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
10126
10127 2004-06-24 Richard M. Stallman <rms@gnu.org>
10128
10129 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
10130 (syms_of_emacs): Lisp variables deleted.
10131
10132 2004-06-23 David Kastrup <dak@gnu.org>
10133
10134 * search.c (Freplace_match): Adjust the match-data more thoroughly
10135 when replacing strings in the buffer.
10136 (Fmatch_data): When INTEGERS is non-nil and the last match was in
10137 a buffer, add the buffer as last element to the match data.
10138 (Fset_match_data): If an additional element of the match-data is a
10139 buffer, restore it to last_thing_searched.
10140 (save_search_regs): Save last_thing_searched as part of the match data.
10141 (restore_match_data): Restore it again.
10142
10143 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
10144
10145 * keymap.c (Ftext_char_description): Doc fix.
10146 * doc.c (Fsnarf_documentation): Doc fix.
10147
10148 2004-06-22 Kim F. Storm <storm@cua.dk>
10149
10150 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
10151
10152 * lisp.h (struct Lisp_Save_Value): New member dogc.
10153 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
10154 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
10155 (SAFE_FREE_LISP): New macro.
10156
10157 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
10158 (make_save_value): Init new dogc member.
10159 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
10160
10161 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
10162 SAFE_FREE_LISP macros.
10163
10164 2004-06-22 Kim F. Storm <storm@cua.dk>
10165
10166 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
10167 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
10168 in that memory area are unknown to GC. Add comments.
10169
10170 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
10171
10172 2004-06-21 Kim F. Storm <storm@cua.dk>
10173
10174 * lisp.h (MAX_ALLOCA): Define here.
10175 (safe_alloca_unwind): Add prototype.
10176 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
10177
10178 * alloc.c (safe_alloca_unwind): New function.
10179
10180 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10181
10182 * charset.c (Fstring): Use SAFE_ALLOCA.
10183
10184 * coding.c (MAX_ALLOCA): Remove define.
10185
10186 * data.c (MAX_ALLOCA): Remove define.
10187 (Faset): Use SAFE_ALLOCA.
10188
10189 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
10190
10191 * fns.c (string_make_multibyte, string_to_multibyte)
10192 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
10193 (MAX_ALLOCA): Remove define.
10194 (Fbase64_encode_region, Fbase64_encode_string)
10195 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
10196 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
10197 memory leak if encoding fails.
10198
10199 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
10200
10201 2004-06-21 Eli Zaretskii <eliz@gnu.org>
10202
10203 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10204
10205 2004-06-20 Richard M. Stallman <rms@gnu.org>
10206
10207 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
10208
10209 * search.c (match_limit): Cleaner err msg when no match data available.
10210
10211 * window.c (syms_of_window): Doc fix.
10212
10213 * keyboard.c (command_loop_1): Handle values `only' and `identity'
10214 for Vtransient_mark_mode.
10215
10216 * buffer.c (syms_of_buffer): Doc fix.
10217
10218 2004-06-21 David Kastrup <dak@gnu.org>
10219
10220 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
10221 and unbinding of `case-fold-search' according to
10222 `completion-ignore-case' around calls of string-match and
10223 predicates, respectively. Should give satisfactory performance
10224 in all relevant cases.
10225
10226 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10227
10228 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
10229 clip_x/y_origin.
10230
10231 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
10232
10233 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
10234
10235 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
10236 on Mac OSX.
10237
10238 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
10239
10240 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
10241
10242 2004-06-16 Kim F. Storm <storm@cua.dk>
10243
10244 * dispextern.h (Vimage_types): Remove extern.
10245
10246 2004-06-16 Miles Bader <miles@gnu.org>
10247
10248 * image.c (lookup_image_type): Initialize image type if necessary.
10249
10250 2004-06-15 Kim F. Storm <storm@cua.dk>
10251
10252 * xdisp.c (try_cursor_movement): Exclude header line from scroll
10253 margin at top of window.
10254 (try_window_reusing_current_matrix): Calculate proper cursor position
10255 after scrolling up with non-zero scroll margin, as the old cursor
10256 position corresponds to value of PT before executing this command.
10257 (try_window_id): Consider scroll margin at bottom of window too;
10258 otherwise we fail to scroll when hl-line-mode is enabled.
10259
10260 * syntax.c (skip_chars): Only recognize [:class:] when it has the
10261 proper format and class is a lower-case word.
10262
10263 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10264
10265 * gtkutil.c (xg_get_image_for_pixmap): New function.
10266 (xg_get_gdk_pixmap_and_mask): Remove.
10267 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
10268 xg_get_gdk_pixmap_and_mask.
10269
10270 * xterm.h (struct x_display_info): Typo in comment fixed.
10271
10272 2004-06-14 Juanma Barranquero <lektu@terra.es>
10273
10274 * dispextern.h (Vimage_types): Make it conditional on
10275 HAVE_WINDOW_SYSTEM.
10276
10277 * image.c (Vimage_types): Move from xdisp.c.
10278 (Vimage_type_cache): New variable.
10279 (define_image_type): New argument indicating whether an image
10280 library was loaded; cache loaded status and return t on success,
10281 nil otherwise.
10282 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
10283 (w32_delayed_load): New function to load an image library from a
10284 list of possible filenames.
10285 (init_xpm_functions, init_png_functions, init_jpeg_functions)
10286 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
10287 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
10288 (Finit_image_library): New function, extracted from `init_image'.
10289 Try to initialize an image library on demand and cache whether we
10290 were successful or not.
10291 (syms_of_image): Initialize `Vimage_types' and
10292 `Vimage_type_cache'. Add recognized image types to Vimage_types.
10293 Export `init-image-library'.
10294 (init_image): Remove initialization of all image types, except xbm
10295 and pbm.
10296
10297 * xdisp.c (Vimage_types): Delete (moved to image.c).
10298
10299 2004-06-14 Andreas Schwab <schwab@suse.de>
10300
10301 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10302 Avoid calling specbind when completion-regexp-list is empty.
10303
10304 2004-06-13 Richard M. Stallman <rms@gnu.org>
10305
10306 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10307 (re_wctype, re_iswctype, re_wctype_to_bit):
10308 Non-function definitions moved here from regex.c.
10309
10310 * regex.c (re_wctype, re_iswctype): Function defs longer static.
10311 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10312 (re_wctype, re_iswctype, re_wctype_to_bit):
10313 Non-function definitions moved to regex.h.
10314
10315 * window.c (Fselect_window): Doc fix.
10316
10317 * syntax.c: Include regex.h.
10318 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
10319 If requested, make a list of classes, then check the scanned
10320 chars for membership in them.
10321 (in_classes): New function.
10322 Doc fix.
10323
10324 * keyboard.c (cmd_error): Don't call any_kboard_state
10325 if inside a recursive edit level.
10326
10327 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10328
10329 * keyboard.c (command_loop): Call any_kboard_state before
10330 command_loop_2 when at top level.
10331
10332 2004-06-13 Andreas Schwab <schwab@suse.de>
10333
10334 * print.c (print_object): Always use %ld for printing EMACS_INT.
10335
10336 * keyboard.c (cancel_hourglass_unwind): Return a value.
10337 (modify_event_symbol): Always use %ld for printing EMACS_INT.
10338 (Fexecute_extended_command): Likewise.
10339
10340 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
10341 avoid clashes.
10342 (SYNTAX): Likewise.
10343 (SYNTAX_WITH_FLAGS): Likewise.
10344 (SYNTAX_MATCH): Likewise.
10345
10346 * syntax.c (char_quoted): Avoid warning about undefined operation.
10347 (find_defun_start): Likewise.
10348 (scan_lists): Likewise.
10349 (INC_FROM): Likewise.
10350 (scan_sexps_forward): Likewise.
10351
10352 * image.c: Include <ctype.h>.
10353
10354 * xfaces.c (face_attr_equal_p): Declare parameters.
10355
10356 2004-06-13 Kenichi Handa <handa@m17n.org>
10357
10358 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
10359
10360 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
10361
10362 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
10363
10364 2004-06-12 Kenichi Handa <handa@m17n.org>
10365
10366 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
10367 ccl_prog_stack_struct and update it.
10368 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
10369 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
10370 ccl->eof_ic on EOF.
10371 (ccl_debug_hook): New function.
10372 (struct ccl_prog_stack): New member eof_ic.
10373 (ccl_driver): Handle EOF in subrountine call correctly.
10374
10375 2004-06-11 Kenichi Handa <handa@m17n.org>
10376
10377 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
10378
10379 2004-06-11 Kim F. Storm <storm@cua.dk>
10380
10381 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
10382
10383 2004-06-11 Juanma Barranquero <lektu@terra.es>
10384
10385 * keyboard.c (Fposn_at_point): Doc fix.
10386
10387 2004-06-11 David Kastrup <dak@gnu.org>
10388
10389 * search.c (match_limit): Don't flag an error if match-data
10390 exceeding the allocated search_regs.num_regs gets requested, just
10391 return Qnil.
10392
10393 2004-06-08 Miles Bader <miles@gnu.org>
10394
10395 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
10396
10397 2004-06-07 Juanma Barranquero <lektu@terra.es>
10398
10399 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
10400 (Fcurrent_time_string, Fcurrent_time_zone)
10401 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
10402
10403 2004-06-07 Miles Bader <miles@gnu.org>
10404
10405 * xfaces.c (struct named_merge_point): New type.
10406 (push_named_merge_point): New function.
10407 (merge_named_face): New function.
10408 (merge_face_ref, face_at_buffer_position, face_at_string_position):
10409 Use `merge_named_face'.
10410 (merge_face_inheritance): Function removed.
10411 (merge_face_ref): Rename from `merge_face_vector_with_property'.
10412 Add new `err_msgs' and `named_merge_points' args. Return error
10413 status. Only print error messages if ERR_MSGS is true. Don't try to
10414 do :inherit attribute validation.
10415 (merge_face_heights): Handle `unspecified' in both directions.
10416 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
10417 Call `merge_face_ref' instead of `merge_face_inheritance'.
10418 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
10419 (compute_char_face, face_at_buffer_position)
10420 (face_at_string_position): Call `merge_face_ref' instead of
10421 `merge_face_vector_with_property'.
10422
10423 2004-06-07 Kenichi Handa <handa@m17n.org>
10424
10425 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
10426 the necessary places.
10427
10428 2004-06-07 Kim F. Storm <storm@cua.dk>
10429
10430 * process.c (Fdelete_process): Undo 2004-05-28 change.
10431 Instead, call status_notify also for network process.
10432 (status_message): Use process instead of status as arg.
10433 Give messages "deleted" or "connection broken by remote peer" for
10434 an exited network process.
10435 (status_notify): Change call to status_message.
10436 (read_process_output): Increase readmax to 4096. Do not increase
10437 buffer size for datagram channels (default is now large enough).
10438
10439 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10440
10441 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
10442 problem due to newly defined variable.
10443
10444 2004-06-06 Miles Bader <miles@gnu.org>
10445
10446 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
10447 immediately if non-interactive or not initialized.
10448
10449 2004-06-05 Richard M. Stallman <rms@gnu.org>
10450
10451 * minibuf.c (Fcompleting_read): Doc fix.
10452
10453 2004-06-05 Andreas Schwab <schwab@suse.de>
10454
10455 * macfns.c (x_create_tip_frame): Fix declaration after statement.
10456
10457 2004-06-05 Juanma Barranquero <lektu@terra.es>
10458
10459 * keymap.c (Fdescribe_vector): Fix docstring.
10460 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
10461
10462 2004-06-05 Miles Bader <miles@gnu.org>
10463
10464 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
10465 attributes have different values than the default face.
10466
10467 2004-06-04 Eli Zaretskii <eliz@gnu.org>
10468
10469 * xfaces.c (x_supports_face_attributes_p): Make this function
10470 conditional on HAVE_WINDOW_SYSTEM.
10471 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
10472 Don't call x_supports_face_attributes_p if it was not compiled in.
10473
10474 2004-06-04 Miles Bader <miles@gnu.org>
10475
10476 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
10477 from Ftty_supports_face_attributes_p.
10478 (x_supports_face_attributes_p): New function.
10479 (Ftty_supports_face_attributes_p): Function deleted.
10480 (Fdisplay_supports_face_attributes_p): New function.
10481 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
10482 (face_attr_equal_p): New function.
10483 (lface_equal_p): Use it.
10484
10485 2004-06-03 Juanma Barranquero <lektu@terra.es>
10486
10487 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
10488 (Vw32_color_map): Fix typo in docstring.
10489 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
10490 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
10491 Make argument names match their use in docstring.
10492
10493 2004-06-02 Juanma Barranquero <lektu@terra.es>
10494
10495 Work around bugs/problems with MinGW builds of graphics libraries
10496 called from MSVC builds of Emacs.
10497
10498 * image.c (lookup_image): Make pointer to img static.
10499 (png_read_from_memory): Disable "global" optimization.
10500
10501 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
10502
10503 * eval.c (Fcondition_case): Fix usage. Simplify.
10504
10505 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
10506
10507 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10508
10509 * macfns.c: Don't include ccl.h.
10510 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
10511 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
10512 TextUtils.h.
10513 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
10514 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
10515 display height/width.
10516 (compute_tip_xy, Vx_max_tooltip_size): Declare.
10517 (unwind_create_tip_frame, compute_tip_xy): New functions.
10518 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
10519 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
10520 and last_show_tip_args.
10521
10522 * macgui.h [!MAC_OSX]: Include Gestalt.h.
10523 (Cursor, No_Cursor): New defines.
10524 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
10525 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
10526
10527 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
10528
10529 * macterm.c: Don't include Gestalt.h.
10530 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
10531 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
10532 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
10533 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
10534 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
10535 (construct_mouse_click, XTmouse_position)
10536 (x_scroll_bar_report_motion, x_calc_absolute_position)
10537 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
10538 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
10539 (note_mouse_movement): Clear the mouse face and reset the pointer
10540 shape when the pointer goes outside the frame without grabbing.
10541 (mac_front_window): New function.
10542 (mac_window_to_frame): New macro.
10543 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
10544 (do_window_activate, do_window_deactivate, do_app_resume)
10545 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
10546 (do_zoom_window, mac_do_receive_drag, XTread_socket)
10547 (mac_check_for_quit_char): Use mac_front_window and/or
10548 mac_window_to_frame.
10549 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
10550 scroll-bar click event.
10551 (mac_define_frame_cursor): Change the pointer shape.
10552 (x_free_frame_resources): Reset tip_window to NULL when it is
10553 disposed of.
10554 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
10555 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
10556 (do_window_update): Don't do anything if the updated window is the
10557 tooltip window.
10558 (do_mouse_moved): Handle mouse movement events here (previously in
10559 XTread_socket). Clear the mouse face if
10560 dpyinfo->mouse_face_hidden is set.
10561 (do_os_event, do_events): Remove (now in XTread_socket).
10562 (XTread_socket): Immediately return if interrupt_input_blocked.
10563 Loop until all the events in the queue are processed.
10564 Rearrange codes for mouse grabbing. Add tooltip support. Include the
10565 contents of do_os_event and do_events. Remove mouse movement
10566 handling (now in do_mouse_moved). Add the case where
10567 Vmouse_highlight has an integer value.
10568 (NewMacWindow): Remove.
10569 (make_mac_frame): Do what NewMacWindow previously did. Don't do
10570 excess initializations.
10571 (make_mac_terminal_frame): Previous initializations in
10572 make_mac_frame are moved here.
10573 (mac_initialize_display_info):
10574 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
10575
10576 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
10577 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
10578
10579 2004-05-29 Richard M. Stallman <rms@gnu.org>
10580
10581 * lisp.h (truncate_undo_list): Update decl.
10582
10583 * alloc.c (undo_outer_limit): New variable.
10584 (syms_of_alloc): Defvar it.
10585 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
10586
10587 * undo.c (truncate_undo_list): New arg LIMITSIZE.
10588
10589 * alloc.c (lisp_align_malloc): Check for base == 0
10590 regardless of HAVE_POSIX_MEMALIGN.
10591 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
10592
10593 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10594
10595 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
10596 (marker_blocks_pending_free): Remove.
10597 (Fgarbage_collect): Sweep after cleaning up undo-lists.
10598 Mark the undo lists after claning them up.
10599 Don't free block in marker_blocks_pending_free.
10600 (mark_buffer): Don't mark undo_list.
10601 (gc_sweep): Sweep hash-tables and strings first.
10602 Do free marker blocks that are empty.
10603
10604 2004-05-28 Jim Blandy <jimb@redhat.com>
10605
10606 * regex.c (print_partial_compiled_pattern): Add missing 'break'
10607 after 'case wordend'. For symbeg and symend, print to stderr,
10608 like the other cases.
10609
10610 2004-05-28 Noah Friedman <friedman@splode.com>
10611
10612 * process.c (Fdelete_process): Do not call remove_process.
10613
10614 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10615
10616 * alloc.c (struct backtrace): Remove.
10617 (Fgarbage_collect): Use the new mark_backtrace.
10618
10619 * eval.c (mark_backtrace): New function.
10620
10621 * minibuf.c (run_exit_minibuf_hook): New function.
10622 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
10623 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
10624
10625 2004-05-27 Kim F. Storm <storm@cua.dk>
10626
10627 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
10628 over display properties, e.g. images, that replace buffer text.
10629
10630 2004-05-25 Kim F. Storm <storm@cua.dk>
10631
10632 * alloc.c (marker_blocks_pending_free): New var.
10633 (gc_sweep): Store free marker blocks on that list.
10634 (Fgarbage_collect): Free them after undo-list cleanup.
10635
10636 * process.c (wait_reading_process_input): Check connect_wait_mask
10637 before actually accepting connection in case it has already been
10638 accepted due to recursion.
10639
10640 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10641
10642 * coding.c (Fset_safe_terminal_coding_system_internal):
10643 Set suppress_error in safe_terminal_coding, not terminal_coding.
10644
10645 2004-05-22 Richard M. Stallman <rms@gnu.org>
10646
10647 * alloc.c (Fmake_string): Doc fix.
10648
10649 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
10650 and the alist pairs too.
10651
10652 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
10653
10654 * emacs.c (main): Update copyright year.
10655
10656 * fileio.c (Fread_file_name): Expand DIR if not absolute.
10657
10658 * insdel.c (del_range_2, replace_range): Don't write an anchor
10659 if the gap is empty.
10660
10661 * xdisp.c (try_scrolling): If scroll-up-aggressively or
10662 scroll-down-aggressively is small but positive, put point
10663 near the screen edge.
10664
10665 2004-05-22 Juanma Barranquero <lektu@terra.es>
10666
10667 * keymap.c (Fdefine_key): Doc fix.
10668
10669 2004-05-22 Kim F. Storm <storm@cua.dk>
10670
10671 * alloc.c (struct backtrace): Add debug_on_exit member.
10672 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
10673 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
10674 the removed cons cells.
10675 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
10676 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
10677 any cons cells pointing to unallocated stings.
10678 Do not lisp_free any marker blocks, as there may still be pointers
10679 to them from buffer undo lists at this stage of GC.
10680
10681 * keyboard.c (struct backtrace): Add debug_on_exit member.
10682 (Fcommand_execute): Clear it.
10683
10684 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
10685
10686 * intervals.c (lookup_char_property): Do not prematurely return nil.
10687
10688 2004-05-19 Jim Blandy <jimb@redhat.com>
10689
10690 Add support for new '\_<' and '\_>' regexp operators, matching the
10691 beginning and end of symbols.
10692
10693 * regex.c (enum syntaxcode): Add Ssymbol.
10694 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
10695 (re_opcode_t): New opcodes `symbeg' and `symend'.
10696 (print_partial_compiled_pattern): Print the new opcodes properly.
10697 (regex_compile): Parse the new operators.
10698 (analyse_first): Skip sym(beg|end) (they match only the empty string).
10699 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
10700 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
10701 (re_match_2_internal): Match symbeg and symend.
10702
10703 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
10704
10705 2004-05-19 Kim F. Storm <storm@cua.dk>
10706
10707 * .gdbinit (xsymbol): Fix last change.
10708
10709 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
10710
10711 * .gdbinit (xprintstr): New fun.
10712 (xstring, xprintsym): Use it.
10713
10714 * w32proc.c (create_child): Use INTMASK.
10715
10716 * alloc.c (Fgarbage_collect): Do all the marking before flushing
10717 unmarked elements of the undo list.
10718
10719 2004-05-18 David Ponce <david@dponce.com>
10720
10721 * print.c (print): Reset print_depth before to call print_object.
10722
10723 2004-05-18 Jason Rumney <jasonr@gnu.org>
10724
10725 * w32console.c: Prefix RIF functions with w32con_ to avoid
10726 namespace clash with functions in term.c and w32term.c.
10727
10728 * w32menu.c (add_menu_item, w32_menu_display_help)
10729 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
10730
10731 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
10732
10733 2004-05-18 Eli Zaretskii <eliz@gnu.org>
10734
10735 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
10736
10737 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
10738 with make_number.
10739 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
10740 with XINT.
10741
10742 2004-05-18 Kim F. Storm <storm@cua.dk>
10743
10744 * blockinput.h (INPUT_BLOCKED_P): New macros.
10745
10746 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
10747 (Ftop_level): Unblock input if blocked.
10748
10749 * buffer.h (GET_OVERLAYS_AT): New macro.
10750 * msdos.c (IT_note_mouse_highlight): Use it.
10751 * textprop.c (get_char_property_and_overlay): Use it.
10752 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
10753 * xfaces.c (face_at_buffer_position): Use it.
10754
10755 * print.c (print_object): Increase buf size.
10756
10757 2004-05-17 Jason Rumney <jasonr@gnu.org>
10758
10759 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
10760 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
10761 Lisp_Object using i member.
10762 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
10763 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
10764 consistently.
10765
10766 * w32proc.c (create_child): Use make_number instead of masking pid.
10767
10768 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
10769 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
10770 Use EQ to compare Lisp_Objects.
10771 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
10772
10773 * w32term.c (w32_num_mouse_buttons): Rename from
10774 Vw32_num_mouse_buttons and make it an int.
10775
10776 * w32.c (init_environment): Use it.
10777
10778 * w32fns.c (w32_wnd_proc): Likewise.
10779
10780 * w32proc.c (w32_pipe_read_delay): Rename from
10781 Vw32_pipe_read_delay and make it an int.
10782
10783 * w32.c (_sys_read_ahead): Use it.
10784
10785 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
10786
10787 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
10788
10789 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
10790 (key_event): Don't mix Lisp_Object and int.
10791
10792 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
10793
10794 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
10795 modifiers in language change event.
10796
10797 2004-05-17 Kim F. Storm <storm@cua.dk>
10798
10799 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
10800 Such objects may be freed markers which still exist on an undo list.
10801
10802 2004-05-16 Juanma Barranquero <lektu@terra.es>
10803
10804 * data.c (Fset_default): Make argument names match their use in
10805 docstring.
10806
10807 2004-05-15 Andreas Schwab <schwab@suse.de>
10808
10809 * emacs.c (gdb_array_mark_flag): Define.
10810 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
10811
10812 2004-05-15 Eli Zaretskii <eliz@gnu.org>
10813
10814 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
10815 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
10816 defined for the MS-DOS build.
10817
10818 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
10819
10820 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
10821
10822 2004-05-14 Kenichi Handa <handa@m17n.org>
10823
10824 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
10825
10826 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10827
10828 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
10829 section to frame.c section.
10830 (Fxw_display_color_p, Fx_file_dialog): Declare if
10831 HAVE_WINDOW_SYSTEM defined.
10832
10833 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
10834
10835 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
10836
10837 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
10838 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
10839 (XTread_socket): Fix int/Lisp_Object mixup.
10840 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
10841
10842 * macterm.h (struct frame, struct face, struct image)
10843 (display_x_get_resource, Fx_display_color_p)
10844 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
10845 Add prototypes.
10846
10847 2004-05-14 Kim F. Storm <storm@cua.dk>
10848
10849 * process.c (wait_reading_process_input): Make reentrant.
10850 Make Available and Connecting non-static. Save and restore value
10851 of waiting_for_user_input_p.
10852
10853 2004-05-13 Kim F. Storm <storm@cua.dk>
10854
10855 * keyboard.c (mark_kboards): Don't mark x and y members
10856 that are overloaded in selection request events.
10857
10858 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
10861
10862 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
10863
10864 * window.c (Fdisplay_buffer, Fsplit_window)
10865 (split-height-threshold): Doc fix.
10866
10867 2004-05-13 Juanma Barranquero <lektu@terra.es>
10868
10869 * xfaces.c (Ftty_supports_face_attributes_p)
10870 (Finternal_copy_lisp_face): Fix typo in docstring.
10871 (Finternal_get_lisp_face_attribute): Fix docstring.
10872
10873 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10874
10875 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
10876
10877 2004-05-11 Steven Tamm <steventamm@mac.com>
10878
10879 * macfns.c (Fx_create_frame): Default to using tool-bar by
10880 setting tool-bar-lines to 1 in default-frame-alist.
10881
10882 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10883
10884 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
10885 (xpm_get_color_table_v, xpm_make_color_table_h)
10886 (xpm_put_color_table_h, xpm_get_color_table_h)
10887 (xpm_str_to_color_key, xpm_load_image, xpm_load)
10888 (syms_of_image): Support XPM on Carbon Emacs. Does not
10889 depend on libXpm, but only supports XPM version 3 without extensions.
10890
10891 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10892
10893 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
10894 instead of FRAME_X_P
10895
10896 2004-05-11 Kim F. Storm <storm@cua.dk>
10897
10898 * process.c (read_process_output): Grow decoding_buf when needed;
10899 this could cause a crash in allocate_string and compact_small_strings.
10900
10901 2004-04-29 Jim Blandy <jimb@redhat.com>
10902
10903 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
10904 against proper opcode.
10905
10906 2004-05-10 Juanma Barranquero <lektu@terra.es>
10907
10908 * process.c (Fstart_process): Fix docstring.
10909
10910 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
10911 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
10912 (Fsplit_char, Fchar_charset): Make argument names match their use
10913 in docstring.
10914
10915 2004-05-10 Richard M. Stallman <rms@gnu.org>
10916
10917 * print.c (print_preprocess): Use being_printed, loop_count and
10918 halftail to detect overdeep nesting and cyclic cdr chains.
10919
10920 2004-05-10 Andreas Schwab <schwab@suse.de>
10921
10922 * lisp.h (Fmake_symbolic_link): Declare.
10923
10924 * fileio.c (Frename_file): Remove extra argument in call to
10925 Fmake_symbolic_link.
10926
10927 2004-05-10 Kim F. Storm <storm@cua.dk>
10928
10929 * xdisp.c (calc_line_height_property): Use string position when
10930 object is a string.
10931
10932 2004-05-10 Kenichi Handa <handa@m17n.org>
10933
10934 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
10935 inhibit-modification-hooks to t temporarily before calling
10936 Ferase_buffer.
10937
10938 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
10939 inhibit-modification-hooks to t temporarily before calling
10940 Ferase_buffer.
10941
10942 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
10943 inhibit-modification-hooks to t temporarily before calling
10944 Ferase_buffer.
10945
10946 * fns.c (count_combining): Delete it.
10947 (concat): Don't check combining bytes.
10948
10949 2004-05-09 Jason Rumney <jasonr@gnu.org>
10950
10951 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
10952 (globals_of_w32fns): Set it.
10953
10954 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
10955
10956 * data.c (Fquo): Simplify.
10957
10958 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
10959
10960 * data.c (Fquo): If any argument is float, do the computation in
10961 floating point.
10962
10963 2004-05-08 Juanma Barranquero <lektu@terra.es>
10964
10965 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
10966 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
10967 Fix spelling of Emacs on docstring.
10968 (Fset_process_coding_system, Fprocess_coding_system)
10969 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
10970 Make argument names match their use in docstring.
10971 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
10972 Fix docstring.
10973
10974 * editfns.c (Finsert_buffer_substring): Make argument names match their
10975 use in docstring.
10976
10977 * syntax.c (Fmodify_syntax_entry): Fix docstring.
10978
10979 2004-05-07 Steven Tamm <steventamm@mac.com>
10980
10981 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
10982 around call to ReceiveEvent to avoid certain crashes.
10983
10984 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10985
10986 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
10987 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
10988 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
10989 Save/restore the current graphics port and device handle when
10990 drawing into an offscreen graphics world.
10991
10992 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
10993 (gif_load): Likewise.
10994
10995 2004-05-07 Juanma Barranquero <lektu@terra.es>
10996
10997 * window.c (Fset_window_buffer): Fix docstring.
10998
10999 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
11000
11001 * emacs.c (main) [VMS]: Fix var ref.
11002
11003 2004-05-06 Romain Francoise <romain@orebokech.com>
11004
11005 * data.c (Fsetq_default): Fix docstring.
11006
11007 2004-05-06 Jason Rumney <jasonr@gnu.org>
11008
11009 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
11010 to avoid name clash.
11011
11012 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11013
11014 * fileio.c (barf_or_query_if_file_exists): Use lstat.
11015 (Frename_file): Handle renaming of symlinks across file systems.
11016 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
11017
11018 2004-05-04 Kim F. Storm <storm@cua.dk>
11019
11020 * xdisp.c (Qtotal): New var.
11021 (syms_of_xdisp): Intern and staticpro it.
11022 (calc_line_height_property): New arg total. Set it if
11023 line-spacing property has format (total . VALUE).
11024 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
11025 Handle total line-spacing property.
11026
11027 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11028
11029 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
11030 "under" scroll bar when size/position changes.
11031
11032 2004-05-03 Jason Rumney <jasonr@gnu.org>
11033
11034 * makefile.nt: Remove.
11035
11036 2004-05-02 Eli Zaretskii <eliz@gnu.org>
11037
11038 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
11039 Avoid compiler warnings.
11040
11041 * Makefile.in (region-cache.o): Depend on config.h.
11042
11043 2004-05-02 Romain Francoise <romain@orebokech.com>
11044
11045 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
11046 with continuation lines, too.
11047
11048 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
11049
11050 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
11051
11052 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
11053
11054 * xdisp.c (calc_line_height_property): YAILOM (yet another
11055 int/Lisp_Object mixup).
11056
11057 2004-05-01 Eli Zaretskii <eliz@gnu.org>
11058
11059 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
11060 undo bad effect of pack(4) in some versions of system headers.
11061
11062 2004-05-01 Jason Rumney <jasonr@gnu.org>
11063
11064 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
11065
11066 2004-04-30 Kim F. Storm <storm@cua.dk>
11067
11068 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
11069 (syms_of_buffer) <cursor-type>: Doc fix.
11070
11071 * dispextern.h (struct it): Remove member use_default_face.
11072 Add members override_ascent, override_descent, override_boff.
11073
11074 * xdisp.c (init_iterator): Handle line-spacing float value.
11075 Initialize override_ascent member.
11076 (append_space_for_newline): Reset override_ascent.
11077 Remove use_default_face.
11078 (calc_line_height_property): New function to calculate value of
11079 line-height and line-spacing properties. Look at overlays, too.
11080 Set override_ascent, override_descent, override_boff members when
11081 using another face than the current face. Float values are now
11082 relative to the frame default font, by default; accept a cons
11083 of ratio and face name to specify value relative to a specific face.
11084 (x_produce_glyphs): Use calc_line_height_property.
11085 Use override_ascent etc. when set to handle different face heights.
11086 A negative line-spacing property value is interpreted as a total
11087 line height, rather than inter-line spacing.
11088 (note_mouse_highlight): Allocate room for 40 overlays initially.
11089
11090 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
11091
11092 * data.c (Fsubr_name): New fun.
11093 (syms_of_data): Defsubr it.
11094
11095 2004-04-29 Kim F. Storm <storm@cua.dk>
11096
11097 * xdisp.c (null_glyph_slice): New var.
11098 (append_glyph, append_composite_glyph, append_stretch_glyph):
11099 Use it to initialize glyph slice.
11100
11101 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
11102
11103 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
11104 (on_hot_spot_p): Make sure we always return a value.
11105 (Flookup_image_map): Remove unused var ix and iy.
11106 (note_mode_line_or_margin_highlight): Remove unused var `image'.
11107
11108 2004-04-27 Eli Zaretskii <eliz@gnu.org>
11109
11110 * msdos.c (init_environment): If one of the TMP... environment
11111 variables is set to a drive letter without a trailing slash,
11112 append a slash.
11113
11114 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
11115
11116 * editfns.c (lisp_time_argument): Provide externally.
11117
11118 * fileio.c (Fset_file_times): New function.
11119 (syms_of_fileio): Intern and staticpro it.
11120
11121 2004-04-27 Kim F. Storm <storm@cua.dk>
11122
11123 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
11124 header line strings.
11125
11126 * dispextern.h (struct it): New member use_default_face.
11127
11128 * xdisp.c (Qline_height): New variable.
11129 (syms_of_xdisp): Intern and staticpro it.
11130 (append_space_for_newline): Partially undo 2004-04-25 change;
11131 add default_face_p arg, and restore callers.
11132 Clear it->use_default_face after use.
11133 (x_produce_glyphs): Set default font for ascii char if
11134 it->use_default_font is set. Change line-spacing property to set
11135 just extra line spacing. Handle new line-height property.
11136
11137 2004-04-26 Andreas Schwab <schwab@suse.de>
11138
11139 * print.c (print_object): Print non-ascii characters in bool
11140 vector representation as octal escapes.
11141
11142 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
11143 * print.c (print_object): Use it instead of BITS_PER_CHAR for
11144 bool vectors.
11145 * lread.c (read1): Likewise.
11146 * alloc.c (Fmake_bool_vector): Likewise.
11147 * data.c (Faref, Faset): Likewise.
11148 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
11149 (mapcar1): Likewise.
11150
11151 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11152
11153 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
11154
11155 2004-04-26 Miles Bader <miles@gnu.org>
11156
11157 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
11158
11159 2004-04-26 Juanma Barranquero <lektu@terra.es>
11160
11161 * buffer.c (Fpop_to_buffer): Fix docstring.
11162
11163 2004-04-26 Steven Tamm <steventamm@mac.com>
11164
11165 * lread.c (init_lread): Don't display missing lisp directory
11166 warnings with Carbon Emacs because self-contained bundled Emacs
11167 may be built without correct installation path.
11168
11169 2004-04-25 Kim F. Storm <storm@cua.dk>
11170
11171 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11172
11173 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11174
11175 * xdisp.c (append_space_for_newline): Rename from append_space.
11176 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
11177 (x_produce_glyphs): Handle line-spacing property on newline char.
11178 If value is t, adjust ascent and descent to fit current row height.
11179 If value is an integer or float, set extra_line_spacing to integer
11180 value, or to float value x current line height.
11181
11182 2004-04-23 Kenichi Handa <handa@m17n.org>
11183
11184 * fontset.c (Finternal_char_font): If POSITION is nil, return
11185 font for displaying CH with the default face.
11186
11187 2004-04-23 Juanma Barranquero <lektu@terra.es>
11188
11189 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
11190
11191 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
11194 Don't make assumptions about the relative place of i and val.
11195 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
11196
11197 2004-04-21 Kim F. Storm <storm@cua.dk>
11198
11199 * dispextern.h (struct glyph_slice): New struct.
11200 (struct glyph): New member slice.
11201 (GLYPH_SLICE_EQUAL_P): New macro.
11202 (GLYPH_EQUAL_P): Use it.
11203 (struct glyph_string): New member slice.
11204 (struct it_slice): New struct.
11205 (struct it): New member slice, add member to stack too.
11206 New member constrain_row_ascent_descent_p.
11207 (image_ascent): Add prototype.
11208
11209 * dispnew.c (buffer_posn_from_coords): Return full image width
11210 and height even for image slices (posn is relative to full image).
11211 (marginal_area_string): Adjust x0,y0 for image slice.
11212
11213 * image.c (image_ascent): Add slice arg; calculate ascent for
11214 image slice (or full image).
11215
11216 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
11217 (syms_of_keyboard): Defsubr them.
11218
11219 * lisp.h (pos_visible_p): Fix prototype.
11220
11221 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11222 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11223 (x_draw_image_foreground, x_draw_image_relief)
11224 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11225 Draw sliced images.
11226
11227 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
11228 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11229 (x_draw_image_foreground, x_draw_image_relief)
11230 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
11231 Draw sliced images.
11232
11233 * w32term.h (image_ascent): Remove prototype.
11234
11235 * window.c (Fpos_visible_in_window_p): Return pixel position if
11236 PARTIALLY arg is non-nil. Simplify. Doc fix.
11237 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
11238 to return/set vscroll in pixels.
11239
11240 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
11241
11242 * xdisp.c (Qslice): New variable.
11243 (syms_of_xdisp): Intern and staticpro it.
11244 (pos_visible_p): Return pixel position in new x and y args.
11245 (init_iterator): Reset it->slice info.
11246 (handle_display_prop): Parse (slice ...) property.
11247 (push_it, pop_it): Save/restore slice info.
11248 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
11249 force repositioning of tall row if window is vscrolled, as that
11250 would reset vscroll.
11251 (append_space): Set it->constrain_row_ascent_descent_p to avoid
11252 increasing row height if row is non-empty.
11253 (fill_image_glyph_string): Copy slice info.
11254 (take_vertical_position_into_account): Simplify.
11255 (produce_image_glyph): Handle iterator slice info, setup glyph
11256 slice info. Do not force minimum line height.
11257 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
11258 do not increase height (ascent/descent) of non-empty row when
11259 adding normal character glyph; instead reduce glyph ascent/descent
11260 appropriately; if row is higher than current glyph, adjust glyph
11261 descent/ascent to reposition glyph within the existing row.
11262 Likewise, when char is newline, only set ascent/descent if row is
11263 currently empty.
11264 (note_mouse_highlight): Handle hotspots with sliced image.
11265
11266 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11267 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11268 (x_draw_image_foreground, x_draw_image_relief)
11269 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11270 Draw sliced images.
11271
11272 * xterm.h (image_ascent): Remove prototype.
11273
11274 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
11275
11276 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
11277
11278 2004-04-20 John Paul Wallington <jpw@gnu.org>
11279
11280 * fns.c (Fassoc, Feql): Fix indentation.
11281
11282 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
11283
11284 2004-04-19 John Paul Wallington <jpw@gnu.org>
11285
11286 * fns.c (Feql): New function.
11287 (syms_of_fns): Defsubr it.
11288
11289 2004-04-18 Jason Rumney <jasonr@gnu.org>
11290
11291 * w32select.c (Fw32_set_clipboard_data): Get sequence number
11292 after closing the clipboard.
11293
11294 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
11295
11296 * buffer.c (Fbuffer_base_buffer): Doc fix.
11297
11298 2004-04-17 Kim F. Storm <storm@cua.dk>
11299
11300 * keymap.c (Fkey_description): Add optional PREFIX arg.
11301 Combine prefix with KEYS to make up the full key sequence to describe.
11302 Correlate meta_prefix_char and following (simple) key to describe
11303 as meta modifier. All callers changed.
11304 (describe_map): Rename arg `keys' to `prefix'. Remove local
11305 `elt_prefix' var. Use Fkey_description with prefix instead of
11306 elt_prefix combined with Fsingle_key_description.
11307 (describe_vector): Declare static. Replace arg `elt_prefix' with
11308 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
11309 if !KEYMAP_P. Use Fkey_description with prefix instead of
11310 Fsingle_key_description.
11311
11312 * keymap.h (Fkey_description): Fix prototype.
11313 (describe_vector): Remove prototype.
11314
11315 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
11316
11317 * image.c (PNG_BG_COLOR_SHIFT): Remove.
11318 (png_load): Fix calculation of transparent background color on X
11319 and W32 platforms.
11320
11321 2004-04-16 Juanma Barranquero <lektu@terra.es>
11322
11323 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
11324 not too large before computing how much to scroll.
11325
11326 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
11327
11328 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
11329
11330 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
11331
11332 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
11333 Add hyperlink to Elisp manual to the docstring.
11334
11335 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
11336
11337 * callint.c (fix_command): Use XDCR.
11338
11339 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
11340
11341 * window.c (Fget_lru_window): Doc fix.
11342
11343 2004-04-14 Kim F. Storm <storm@cua.dk>
11344
11345 * editfns.c (Fformat): Fix allocation size of precision array.
11346
11347 * dispnew.c (update_window): Only set changed_p if
11348 scrolling_window actually did scroll.
11349 (scrolling_window): Only return 1 if we actually did scroll.
11350
11351 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
11352 height to glyph height when cursor row is not fully visible.
11353 (make_cursor_line_fully_visible): Add FORCE_P arg to return
11354 failure in case row is higher than window. Callers changed.
11355 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
11356 Try to scroll partially visible, higher-than-window cursor row.
11357 (redisplay_window): Always try to scroll partially visible,
11358 higher-than-window cursor row - both initially and again with
11359 centering_position = 0.
11360 Clear desired matrix before retrying with centering_position = 0.
11361
11362 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11363
11364 * syntax.c (scan_lists): Simplify backward string scan.
11365 Fix off-by-one boundary check for string and comment fences.
11366
11367 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
11368
11369 * sheap.c, unexcw.c: New files.
11370
11371 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
11372
11373 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
11374 base buffer has been killed. Correct the error message if the
11375 base buffer does not exist.
11376
11377 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
11378
11379 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
11380 Cygwin itself. Add support for Xaw3d scrollbars.
11381
11382 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
11383
11384 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
11385
11386 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
11387 before Cygwin unexec.
11388
11389 * Makefile.in: Link changes for Cygwin unexec() support.
11390
11391 2004-04-12 Andreas Schwab <schwab@suse.de>
11392
11393 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
11394
11395 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
11396
11397 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
11398 IGNORE argument equals NAME. Doc fix.
11399
11400 2004-04-11 Masatake YAMATO <jet@gyve.org>
11401
11402 * buffer.c (fix_start_end_in_overlays): Make overlays
11403 empty if they are backwards.
11404
11405 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11406
11407 * xfaces.c (face_color_supported_p): Fix compilation without X11.
11408
11409 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * doc.c (Fsnarf_documentation): Ignore new file name entries.
11412
11413 2004-04-06 Kim F. Storm <storm@cua.dk>
11414
11415 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11416 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
11417
11418 * w32term.c (w32_read_socket): Set mouse_face_hidden after
11419 clearing highlight.
11420
11421 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
11422
11423 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
11424 clearing highlight.
11425
11426 * indent.c (vmotion): Do not reserve one column for continuation
11427 marks on window frames.
11428
11429 2004-04-04 Eli Zaretskii <eliz@gnu.org>
11430
11431 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
11432 from GCC.
11433
11434 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11435
11436 * .gdbinit-union: Remove.
11437
11438 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
11439 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
11440 ($nonvalbits): Remove.
11441 ($valmask): Set it by calling xreload to avoid redundancy.
11442
11443 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
11444 (gdb_emacs_intbits): Remove.
11445
11446 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11447
11448 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
11449
11450 2004-03-30 Kenichi Handa <handa@m17n.org>
11451
11452 * editfns.c (Fformat): Fix initialization of the array info.
11453
11454 2004-03-30 Kim F. Storm <storm@cua.dk>
11455
11456 * xterm.c (x_mouse_click_focus_ignore_position): New var.
11457 (syms_of_xterm): DEFVAR_BOOL it.
11458 (ignore_next_mouse_click_timeout): New var.
11459 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
11460 Use it to filter mouse clicks following focus event.
11461
11462 2004-03-29 David Ponce <david@dponce.com>
11463
11464 * callint.c (Fcall_interactively): Fix last change.
11465
11466 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
11467
11468 * eval.c (Fcommandp): Simplify.
11469
11470 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
11471 Extend to handle all kinds of functions.
11472
11473 * lisp.h (Finteractive_form): Declare.
11474
11475 * callint.c (Fcall_interactively): Use it.
11476
11477 2004-03-26 Kim F. Storm <storm@cua.dk>
11478
11479 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
11480 to catch errors in calc_pixel_width_or_height during redisplay.
11481
11482 2004-03-26 Masatake YAMATO <jet@gyve.org>
11483
11484 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
11485
11486 * lisp.h (fix_start_end_in_overlays): Likewise.
11487
11488 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
11489
11490 * editfns.c (Ftranspose_regions): Likewise.
11491
11492 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11493
11494 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
11495
11496 2004-03-19 Richard M. Stallman <rms@gnu.org>
11497
11498 * s/sol2-6.h: Delete previous change.
11499
11500 2004-03-19 Kim F. Storm <storm@cua.dk>
11501
11502 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
11503 to_charpos corresponds to newline in right fringe. Use local
11504 BUFFER_POS_REACHED_P macro.
11505
11506 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11507
11508 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
11509 to compile on non-window system.
11510
11511 2004-03-19 Kim F. Storm <storm@cua.dk>
11512
11513 * dispextern.h (calc_pixel_width_or_height): Add prototype.
11514
11515 * image.c (Qcenter): Move to xdisp.c.
11516
11517 * xdisp.c (Qcenter): Declare here.
11518 (syms_of_xdisp): Intern and staticpro it.
11519 (handle_single_display_prop): Allow space display property on all
11520 platforms.
11521 (display_mode_line): Set mode_line_p before displaying line.
11522 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
11523 handling. Remove complex cases for fringes and scroll-bars.
11524 Add left, right, and center alignment positions. Add text (area)
11525 width/height. Return width or height for image specs.
11526 (produce_stretch_glyph): Improve handling of :align-to. Is now
11527 relative to left of text area by default, but other base offsets
11528 can be specified -- also for text lines.
11529
11530 * term.c (produce_glyphs): Handle IT_STRETCH.
11531 (produce_stretch_glyph): New function to handle space width and
11532 align-to display properties on non-window systems.
11533
11534 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11535
11536 * fileio.c (Fread_file_name): Set completion-ignore-case for
11537 case-insensitive systems.
11538
11539 2004-03-14 Masatake YAMATO <jet@gyve.org>
11540
11541 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
11542 when keymap and cursor are setup.
11543
11544 2004-03-14 Steven Tamm <steventamm@mac.com>
11545
11546 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
11547
11548 2004-03-14 Kim F. Storm <storm@cua.dk>
11549
11550 * dispextern.h (x_find_image_file): Add prototype.
11551
11552 * image.c (x_find_image_file): Make extern.
11553
11554 * xfns.c (x_find_image_file): Remove prototype.
11555
11556 2004-03-13 Eli Zaretskii <eliz@gnu.org>
11557
11558 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
11559
11560 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
11561
11562 2004-03-12 Richard M. Stallman <rms@gnu.org>
11563
11564 * fns.c (internal_equal): New arg PROPS controls comparing
11565 text properties. All callers changed.
11566 (Fequal_including_properties): New function.
11567 (syms_of_fns): defsubr it.
11568
11569 2004-03-12 Kim F. Storm <storm@cua.dk>
11570
11571 Fix image support on MAC. From YAMAMOTO Mitsuharu.
11572
11573 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
11574 (image_background, image_background_transparent): Fix prototypes.
11575
11576 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
11577
11578 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
11579 (x_query_font, x_find_ccl_program, x_set_window_size)
11580 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11581 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11582 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
11583
11584 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
11585 (x_query_font, x_find_ccl_program, x_set_window_size)
11586 (x_make_frame_visible, mac_initialize, XCreatePixmap)
11587 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
11588 (mac_draw_line_to_pixmap): Add prototypes.
11589
11590 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11591
11592 * macterm.c (XTread_socket): Fix mouse click on tool bar.
11593
11594 2004-03-11 Kim F. Storm <storm@cua.dk>
11595
11596 * dispextern.h: Move image related prototypes from xfns.c section
11597 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
11598 HAVE_X_WINDOWS.
11599
11600 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
11601 Move gtkutil.o to new GTK_OBJ list.
11602 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
11603 (GTK_OBJ) [USE_GTK]: New declaration.
11604 (obj): Add $(GTK_OBJ) to list.
11605
11606 2004-03-11 Steven Tamm <steventamm@mac.com>
11607
11608 * image.c [MAC_OSX]: Include sys/stat.h.
11609
11610 * macfns.c (syms_of_macfns): Remove definitions of things now
11611 defined in image.c.
11612
11613 2004-03-11 Kim F. Storm <storm@cua.dk>
11614
11615 The following changes consolidates the identical/similar image
11616 support code previously found in xfns.c, w32fns.c, and macfns.c
11617 into a new file image.c.
11618
11619 * makefile.w32-in (OBJ1): Add image.o.
11620 ($(BLD)/image.$(O)): Add dependencies.
11621
11622 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
11623 (image.o): Add dependencies.
11624
11625 * image.c: New file with consolidated image support code.
11626 (COLOR_TABLE_SUPPORT): New define to control whether
11627 color table support is available (X only).
11628 (Bitmap_Record): Common name for x_bitmap_record,
11629 w32_bitmap_record, and mac_bitmap_record.
11630 (XImagePtr): Common name for pointer to XImage or equivalent.
11631 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
11632 to XImagePtr on X+MAC, and to HDC on W32.
11633 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
11634 (NO_PIXMAP): Common name for "None" or equivalent.
11635 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
11636 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
11637 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
11638 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
11639 Define with suitable equivalents on W32 and MAC for code sharing.
11640 (XDrawLine): Define on MAC for code sharing.
11641 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
11642 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
11643 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11644 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11645 (x_reference_bitmap, x_create_bitmap_from_data)
11646 (x_create_bitmap_from_file, x_destroy_bitmap)
11647 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11648 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11649 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11650 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11651 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11652 (define_image_type, lookup_image_type, valid_image_p)
11653 (image_error, enum image_value_type, struct image_keyword)
11654 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11655 (make_image, free_image, prepare_image_for_display, image_ascent)
11656 (four_corners_best, image_background, image_background_transparent)
11657 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11658 (make_image_cache, free_image_cache, clear_image_cache)
11659 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11660 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11661 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11662 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11663 (init_image_func_pointer, image_load_quartz2d)
11664 (struct ct_color, init_color_table, free_color_table)
11665 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11666 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11667 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11668 (x_disable_image, x_build_heuristic_mask)
11669 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11670 (TIFF support, GIF support, Ghostscript support): Consolidate image
11671 code from xfns.c, w32fns.c, and macfns.c.
11672 (syms_of_image): Consolidate image related symbol setup here.
11673 (init_image): Consolidate image related initializations here.
11674
11675 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
11676 and init_image. Remove call to init_xfns.
11677
11678 * macterm.h (struct mac_bitmap_record): Add file member.
11679 Not currently used, but simplifies code sharing.
11680
11681 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11682 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11683 (x_reference_bitmap, x_create_bitmap_from_data)
11684 (x_create_bitmap_from_file, x_destroy_bitmap)
11685 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11686 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11687 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11688 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11689 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11690 (define_image_type, lookup_image_type, valid_image_p)
11691 (image_error, enum image_value_type, struct image_keyword)
11692 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11693 (make_image, free_image, prepare_image_for_display, image_ascent)
11694 (four_corners_best, image_background, image_background_transparent)
11695 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11696 (make_image_cache, free_image_cache, clear_image_cache)
11697 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11698 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11699 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11700 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
11701 (init_image_func_pointer, image_load_quartz2d)
11702 (struct ct_color, init_color_table, free_color_table)
11703 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11704 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11705 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11706 (x_disable_image, x_build_heuristic_mask)
11707 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11708 (TIFF support, GIF support, Ghostscript support): Merge with image
11709 code from xfns.c and macfns.c into image.c.
11710 (syms_of_xfns): Move image related symbols to image.c.
11711 (init_external_image_libraries, init_xfns): Remove; initialization
11712 moved to init_image in image.c.
11713
11714 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11715 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11716 (x_reference_bitmap, x_create_bitmap_from_data)
11717 (x_create_bitmap_from_file, x_destroy_bitmap)
11718 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11719 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11720 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11721 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11722 (define_image_type, lookup_image_type, valid_image_p)
11723 (image_error, enum image_value_type, struct image_keyword)
11724 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11725 (make_image, free_image, prepare_image_for_display, image_ascent)
11726 (four_corners_best, image_background, image_background_transparent)
11727 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11728 (make_image_cache, free_image_cache, clear_image_cache)
11729 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11730 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11731 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11732 (struct ct_color, init_color_table, free_color_table)
11733 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11734 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11735 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11736 (x_disable_image, x_build_heuristic_mask)
11737 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11738 (TIFF support, GIF support, Ghostscript support): Merge with image
11739 code from xfns.c and macfns.c into image.c.
11740 (syms_of_xfns): Move image related symbols to image.c.
11741 (init_external_image_libraries, init_xfns): Remove; initialization
11742 moved to init_image in image.c.
11743
11744 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
11745 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11746 (x_reference_bitmap, x_create_bitmap_from_data)
11747 (x_create_bitmap_from_file, x_destroy_bitmap)
11748 (x_destroy_all_bitmaps, x_create_bitmap_mask)
11749 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
11750 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
11751 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
11752 (define_image_type, lookup_image_type, valid_image_p)
11753 (image_error, enum image_value_type, struct image_keyword)
11754 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
11755 (make_image, free_image, prepare_image_for_display, image_ascent)
11756 (four_corners_best, image_background, image_background_transparent)
11757 (x_clear_image_1, x_clear_image, x_alloc_image_color)
11758 (make_image_cache, free_image_cache, clear_image_cache)
11759 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
11760 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
11761 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
11762 (struct ct_color, init_color_table, free_color_table)
11763 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
11764 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
11765 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
11766 (x_disable_image, x_build_heuristic_mask)
11767 (XBM support, XPM support, PBM support, PNG support, JPEG support)
11768 (TIFF support, GIF support, Ghostscript support): Merge with
11769 w32fns.c and macfns.c image code into image.c.
11770 (syms_of_xfns): Move image related symbols to image.c.
11771 (init_xfns): Remove; initialization moved to init_image in image.c.
11772
11773 * lisp.h (syms_of_image, init_image): Add protoypes.
11774 (init_xfns): Remove prototype.
11775
11776 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11777 (x_reference_bitmap, x_create_bitmap_from_data)
11778 (x_create_bitmap_from_file, x_destroy_bitmap)
11779 (x_create_bitmap_mask): Move prototypes from dispextern.h.
11780 (gamma_correct) [MAC_OS]: Add prototype.
11781
11782 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
11783 (x_reference_bitmap, x_create_bitmap_from_data)
11784 (x_create_bitmap_from_file, x_destroy_bitmap)
11785 (x_create_bitmap_mask): Move prototypes to dispextern.h.
11786
11787 2004-03-09 Kenichi Handa <handa@etlken2>
11788
11789 * coding.c (decode_coding_emacs_mule): Handle insufficent source
11790 correctly.
11791
11792 2004-03-04 Richard M. Stallman <rms@gnu.org>
11793
11794 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
11795
11796 * window.c (Fdisplay_buffer): Doc fix.
11797
11798 * buffer.c (Fpop_to_buffer): Doc fix.
11799
11800 2004-03-03 Kim F. Storm <storm@cua.dk>
11801
11802 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
11803
11804 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
11805
11806 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
11807
11808 2004-03-02 Richard M. Stallman <rms@gnu.org>
11809
11810 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
11811
11812 2004-03-02 Kenichi Handa <handa@m17n.org>
11813
11814 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
11815
11816 2004-03-02 Kim F. Storm <storm@cua.dk>
11817
11818 * window.h (struct window): New member overlay_arrow_bitmap.
11819
11820 * window.c (make_window): Initialize overlay_arrow_bitmap.
11821
11822 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
11823 implement and integrate multiple overlay arrows with redisplay.
11824 (syms_of_xdisp): DEFVAR_LISP and initialize it.
11825 (last_arrow_position, last_arrow_string): Replace by properties.
11826 (Qlast_arrow_position, Qlast_arrow_string)
11827 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
11828 (syms_of_xdisp): Intern and staticpro them.
11829 (overlay_arrow_string_or_property, update_overlay_arrows)
11830 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
11831 (overlay_arrow_at_row): New functions for multiple overlay arrows.
11832 (redisplay_internal): Use them instead of directly accessing
11833 Voverlay_arrow_position etc. for multiple overlay arrows.
11834 (mark_window_display_accurate): Use update_overlay_arrows.
11835 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
11836 (try_window_id): Use overlay_arrows_changed_p.
11837 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
11838 (display_line): Use overlay_arrow_at_row to check multiple
11839 overlay arrows, and get relevant overlay-arrow-string and
11840 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
11841 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
11842 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
11843
11844 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
11845 (update_window_fringes): Remove unused code.
11846
11847 2004-03-01 Jason Rumney <jasonr@gnu.org>
11848
11849 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
11850
11851 2004-03-01 Juanma Barranquero <lektu@terra.es>
11852
11853 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
11854
11855 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
11856
11857 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11858
11859 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
11860 how many colors can be displayed.
11861
11862 2004-03-01 Kenichi Handa <handa@m17n.org>
11863
11864 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
11865 correctly.
11866
11867 2004-02-28 Kim F. Storm <storm@cua.dk>
11868
11869 * dispnew.c (update_window): Update header line also if there are
11870 no other changes in window (move code after set_cursor label).
11871
11872 * lisp.h (mark_window_display_accurate): Remove prototype.
11873
11874 * window.c (window_loop, Fforce_window_update): Force mode line
11875 updates by setting prevent_redisplay_optimizations_p and
11876 update_mode_lines.
11877
11878 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11879
11880 * xfns.c (x_window): Fix indentation.
11881
11882 * xterm.c (x_calc_absolute_position): Call x_real_positions
11883 to get WM window sizes and use those to calculate position.
11884 (x_set_offset): Remove code commented out.
11885
11886 2004-02-28 Miles Bader <miles@gnu.org>
11887
11888 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
11889
11890 2004-02-28 Kim F. Storm <storm@cua.dk>
11891
11892 * keyboard.c (kbd_buffer_store_event_hold): New function to store
11893 an event into kbd fifo, but with special handling of quit event;
11894 a quit event is saved for later, and further events are discarded
11895 until the saved quit event has been processed.
11896 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
11897 (gen_help_event): Store help event in kbd fifo.
11898 (NREAD_INPUT_EVENTS): Remove.
11899 (read_avail_input): Adapt to new read_socket_hook interface.
11900 Remove allocation and initialization of local input_event buffer,
11901 as read_socket_hook stores events directly in fifo. Allocate and
11902 initialize local hold_quit event to handle postponed quit event
11903 (and store it if set by kbd_buffer_store_event_hold).
11904
11905 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
11906 (gen_help_event): Fix prototype.
11907
11908 * macterm.c (XTread_socket): Remove bufp_r and
11909 numcharsp args. Add hold_quit arg.
11910 Rework to use just one, local, inev input_event. Store inev
11911 directly in fifo using kbd_buffer_store_event_hold.
11912
11913 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
11914 (read_input_waiting): Adapt to new read_socket_hook interface.
11915 Remove allocation and initialization of local input_event buffer,
11916 as read_socket_hook stores events directly in fifo. Allocate and
11917 initialize local hold_quit event to handle postponed quit event
11918 (and store it if set by kbd_buffer_store_event_hold).
11919
11920 * term.c (read_socket_hook): Fix arg list.
11921
11922 * termhooks.h (read_socket_hook): Fix prototype.
11923
11924 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
11925 numcharsp args. Add hold_quit arg.
11926 Rework to use just one, local, inev input_event. Store inev
11927 directly in fifo using kbd_buffer_store_event_hold.
11928
11929 * w32inevt.h (w32_console_mouse_position): Fix prototype.
11930
11931 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
11932 Add hold_quit arg. Rework to use just one, local, inev
11933 input_event. Store inev directly in fifo using
11934 kbd_buffer_store_event_hold. Update count in one place.
11935 Postpone call to gen_help_event until inev is stored; use new
11936 local do_help for this.
11937 Remove local emacs_event in handing of ButtonPress event; just use
11938 inev instead (so no reason to copy it later).
11939
11940 * xsmfns.c (x_session_check_input): Remove numchars arg.
11941
11942 * xterm.c (x_focus_changed, x_detect_focus_change):
11943 Remove numchars arg. Always store event into bufp arg.
11944 Return nothing. Callers changed accordingly.
11945 (glyph_rect): Simplify.
11946 (STORE_KEYSYM_FOR_DEBUG): New macro.
11947 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
11948 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
11949 (current_hold_quit) [USE_GTK]: Add.
11950 (event_handler_gdk): Adapt to new handle_one_xevent.
11951 (handle_one_xevent): Remove bufp_r and numcharsp args.
11952 Add hold_quit arg. Rework to use just one, local, inev
11953 input_event. Store inev directly in fifo using
11954 kbd_buffer_store_event_hold. Update count in one place.
11955 Postpone call to gen_help_event until inev is stored; use new
11956 local do_help for this.
11957 Simplify handling of keysyms (consolidate common code). Fix bug
11958 where count was updated with nchars instead of nbytes.
11959 Remove local emacs_event in handing of ButtonPress event; just use
11960 inev instead (so no reason to copy it later).
11961 Remove `out' label. Rename label `ret' to `done'; add various
11962 `goto done' to clarify code flow in deeply nested blocks.
11963 (x_dispatch_event): Simplify as handle_one_xevent now calls
11964 kbd_buffer_store_event itself.
11965 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
11966 arg. Call handle_one_xevent with new arglist. Store event from
11967 x_session_check_input in fifo.
11968 [USE_GTK]: Setup current_hold_quit.
11969 Decrement handling_signal before unblocking input.
11970 (x_initialize) [USE_GTK]: Initialize current_count.
11971
11972 * xterm.h (x_session_check_input): Fix prototype.
11973
11974 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11975
11976 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
11977
11978 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
11979 macgui.h).
11980
11981 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
11982
11983 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
11984 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
11985 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
11986 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
11987 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
11988 (Bitmap): Remove typedef.
11989 (Pixmap): Change int to GWorldPtr.
11990
11991 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11992
11993 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11994 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
11995 New #define to extract 16-bit depth color components from unsigned
11996 long representation.
11997 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
11998 colors used for masks.
11999 (struct mac_display_info): Add color_p. Remove n_cbits.
12000
12001 * macfns.c: Include sys/types.h and sys/stat.h.
12002 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
12003 Include QuickTime/QuickTime.h.
12004 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12005 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
12006 functions defined in macterm.c.
12007 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
12008 (ZPixmap): New #define for compatibility with xfns.c.
12009 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12010 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12011 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
12012 New functions.
12013 (four_corners_best, x_create_x_image_and_pixmap)
12014 (x_destroy_x_image, unwind_create_frame, x_disable_image)
12015 (x_edge_detection, init_color_table, colors_in_color_table)
12016 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
12017 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
12018 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
12019 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
12020 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
12021 long mixup.
12022 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
12023 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
12024 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
12025 (x_set_cursor_type, Fxw_color_values, valid_image_p)
12026 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
12027 (x_alloc_image_color, clear_image_cache, lookup_image)
12028 (x_find_image_file, xbm_read_bitmap_file_data)
12029 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
12030 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
12031 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
12032 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
12033 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
12034 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
12035 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
12036 #if 0.
12037 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
12038 #if 0. Free white_relief.gc and black_relief.gc.
12039 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
12040 New functions (from xfns.c).
12041 (Fx_create_frame): Record unwind_create_frame.
12042 (Fxw_display_color_p): Use dpyinfo->color_p.
12043 (Fx_display_grayscale_p, Fx_display_planes): Don't use
12044 dpyinfo->n_cbits.
12045 (Fx_display_color_cells): Use dpyinfo->n_planes;
12046 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
12047 (Qheuristic, cross_disabled_images, emboss_matrix)
12048 (laplace_matrix): New variables (from xfns.c).
12049 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
12050 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
12051 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
12052 (image_background_transparent): New function (from xfns.c).
12053 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12054 (image_load_quicktime): Add declaration.
12055 [MAC_OSX] (image_load_quartz2d): Likewise.
12056 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
12057 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
12058 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
12059 (xbm_load_image_from_file, x_laplace_read_row)
12060 (x_laplace_write_row, pbm_read_file): Remove functions.
12061 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
12062 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
12063 (colors_in_color_table): Sync with xfns.c (although not used).
12064 (lookup_rgb_color): Don't lookup color table. Just do gamma
12065 correction.
12066 (COLOR_INTENSITY): New #define (from xfns.c).
12067 (x_disable_image): New function (from xfns.c).
12068 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12069 (x_build_heuristic_mask): Sync with xfns.c.
12070 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12071 (HAVE_PBM): Remove #ifdef.
12072 (pbm_load): Sync with xfns.c. Set img->width and img->height
12073 before IMAGE_BACKGROUND.
12074 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
12075 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
12076 Don't enclose with #if HAVE_PNG.
12077 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
12078 symbol _CGImageCreateWithPNGDataProvider is defined.
12079 Otherwise use image_load_quicktime.
12080 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
12081 [HAVE_PNG] (png_load): Sync with xfns.c.
12082 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12083 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
12084 HAVE_JPEG.
12085 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
12086 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
12087 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
12088 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
12089 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
12090 (tiff_image_p, tiff_load): Don't enclose declarations with #if
12091 HAVE_TIFF.
12092 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
12093 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
12094 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
12095 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
12096 New functions (from xfns.c).
12097 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
12098 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
12099 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
12100 Don't enclose with #if HAVE_GIF.
12101 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
12102 animated gif. Otherwise use image_load_quicktime.
12103 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
12104 gif_DrawText to avoid conflict with QuickdrawText.h.
12105 [HAVE_GIF] (gif_load): Sync with xfns.c.
12106 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
12107 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
12108 Ghostscript is not supported yet).
12109 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
12110 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
12111 cross_disabled_images (from xfns.c). Remove #if 0 for supported
12112 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12113 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
12114 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12115 HAVE_PNG. Call EnterMovies to support animated gifs.
12116 Call init_image_func_pointer to bind a symbol
12117 _CGImageCreateWithPNGDataProvider if it is defined.
12118
12119 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12120 (x_draw_bar_cursor): Sync declaration with xterm.c.
12121 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
12122 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
12123 graphics).
12124 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
12125 (mac_draw_line_to_pixmap, XCreatePixmap)
12126 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
12127 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
12128 New functions.
12129 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
12130 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12131 Cast bits to char *.
12132 (reflect_byte): New function (from w32fns.c).
12133 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
12134 due to byte alignment.
12135 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
12136 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12137 (XSetForeground): Remove static (now used in macfns.c).
12138 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
12139 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
12140 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
12141 (x_draw_glyph_string_box, x_draw_image_foreground)
12142 (x_draw_image_foreground_1, x_draw_image_glyph_string)
12143 (x_draw_stretch_glyph_string, x_draw_glyph_string)
12144 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
12145 Sync with xterm.c.
12146 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
12147 than the xterm.c version when a strictly horizontal or vertical
12148 line is drawn.
12149 (XTset_terminal_window): Add static.
12150 (x_make_frame_visible): Add UNBLOCK_INPUT.
12151 (x_free_frame_resources): New funcion (from xterm.c).
12152 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
12153 occurs in tool bar area.
12154 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
12155 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
12156 Initialize image cache.
12157 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
12158 Enclose unused functions with #if 0.
12159 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
12160 (decode_mac_font_name): New function to apply code conversions
12161 from a mac font name to an XLFD font name according to its script code.
12162 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
12163 font name to a mac font name according to REGISTRY and ENCODING fields.
12164 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
12165 whose name starts with `.'.
12166 (init_font_name_table): Use decode_mac_font_name. Add both
12167 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
12168 of a font is smJapanese.
12169 (mac_do_list_fonts): New function to list fonts that match a given
12170 pattern.
12171 (x_list_fonts, XLoadQueryFont): Use it.
12172 (XLoadQueryFont): Set rbearing field for each variable width
12173 character to avoid needless redraw.
12174 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
12175
12176 2004-02-26 Kim F. Storm <storm@cua.dk>
12177
12178 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
12179 as read_socket_hook handler on X aborts if buffer is too small
12180 and W32 handler doesn't always check buffer limit.
12181
12182 * xdisp.c (handle_single_display_prop): Handle left-fringe and
12183 right-fringe similar to a display margin image. Specifically,
12184 the characters having the fringe prop are no longer shown, and
12185 we use IT_IMAGE/next_element_from_image with image_id = -1 to
12186 do this. Set fringe bitmap face_id in it->face_id.
12187 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
12188 still realize it->face (i.e. the fringe bitmap face).
12189
12190 2004-02-25 Miles Bader <miles@gnu.org>
12191
12192 * xdisp.c (check_it): Check string/string_pos consistency.
12193 (init_iterator): Initialize string-related fields properly.
12194
12195 2004-02-11 Miles Bader <miles@gnu.org>
12196
12197 * xdisp.c (produce_image_glyph): Force negative descents to zero.
12198
12199 2004-02-10 Miles Bader <miles@gnu.org>
12200
12201 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
12202 BLOCK_INPUT can be nested, so it doesn't make much sense.
12203
12204 2004-02-24 Michael Mauger <mmaug@yahoo.com>
12205
12206 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
12207 (xbm_read_bitmap_data): Use unsigned char for image data.
12208
12209 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
12210
12211 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
12212
12213 2004-02-22 Jason Rumney <jasonr@gnu.org>
12214
12215 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
12216 correctly over other bitmaps.
12217
12218 2004-02-21 Eli Zaretskii <eliz@gnu.org>
12219
12220 * emacs.c (USAGE1): Split into two halves.
12221 (USAGE2): Second half of the old USAGE1.
12222 (USAGE3): Rename from USAGE2.
12223 (USAGE4): Rename from USAGE3.
12224
12225 2004-02-21 Juri Linkov <juri@jurta.org>
12226
12227 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
12228 Fix --multibyte. Move --help, --version to USAGE2. Add alias
12229 --file. Fix -f, -l. Sort options. Untabify.
12230 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
12231
12232 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
12233
12234 * category.c (Fdefine_category, Fcategory_docstring)
12235 (Fget_unused_category, Fset_category_table)
12236 (Fcategory_set_mnemonics): Doc fixes.
12237
12238 2004-02-20 Kim F. Storm <storm@cua.dk>
12239
12240 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
12241 The following changes are relative to the 2004-01-21 revision.
12242 (NREAD_INPUT_EVENTS): Define as max number of input events to read
12243 in one call to read_socket_hook. Value is 8.
12244 (read_avail_input): Separate and rework handling of read_socket_hook
12245 and non-read_socket_hook cases. Use smaller input_event buffer
12246 in read_socket_hook case, and repeat if full buffer is read.
12247 Use new local variable 'discard' to skip input after C-g.
12248 In non-read_socket_hook case, just use a single input_event, and
12249 call kbd_buffer_store_event on the fly for each character.
12250
12251 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12252
12253 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
12254 Remove unused `gu' alternative.
12255
12256 2004-02-19 Andreas Schwab <schwab@suse.de>
12257
12258 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
12259 warning.
12260
12261 2004-02-18 Kim F. Storm <storm@cua.dk>
12262
12263 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
12264 Fix last change.
12265
12266 2004-02-17 Kim F. Storm <storm@cua.dk>
12267
12268 * xdisp.c (fast_find_position): Fix return value of new version;
12269 it was inverted compared to the 21.1 version.
12270 (get_window_cursor_type): Don't look at glyph if NULL.
12271 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
12272
12273 * keyboard.c: Rework previous change; it didn't consider that the
12274 buf array was allocated on the stack.
12275 (prev_read): Remove variable.
12276 (read_avail_input_buf): New static event buffer array.
12277 (in_read_avail_input): New static variable to handle re-entrancy.
12278 (read_avail_input): Change buf to pinter to read_avail_input_buf.
12279 Use in_read_avail_input to handle re-entrance; when re-entered,
12280 fully initialize and use tmp_buf array instead of read_avail_input_buf.
12281 Do not initialize read_avail_input_buf in full here; instead assume it
12282 is always cleared on entry. To ensure that, we clear (just) the
12283 entries that were used before we return.
12284 (init_keyboard): Initialize read_avail_input_buf here.
12285
12286 2004-02-16 Jesper Harder <harder@ifa.au.dk>
12287
12288 * cmds.c (Fend_of_line): Doc fix.
12289
12290 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
12291
12292 * keyboard.c (prev_read): New static variable.
12293 (read_avail_input): Use it to zero out only those slots in buf[]
12294 that were used last time we were called.
12295
12296 2004-02-16 Eli Zaretskii <eliz@gnu.org>
12297
12298 * Makefile.in (obj): Move fringe.o from here...
12299 (XOBJ, MAC_OBJ): ...to here.
12300
12301 2004-02-16 Stephen Eglen <stephen@gnu.org>
12302
12303 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
12304
12305 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
12306
12307 * data.c (Fbyteorder):
12308 * fringe.c (Fdefine_fringe_bitmap):
12309 * xdisp.c (handle_single_display_prop):
12310 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
12311
12312 2004-02-16 Jason Rumney <jasonr@gnu.org>
12313
12314 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
12315
12316 2004-02-15 Steven Tamm <steventamm@mac.com>
12317
12318 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
12319 controlling emulation of a three button mouse with option and
12320 command keys.
12321 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
12322 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
12323
12324 2004-02-15 Kim F. Storm <storm@cua.dk>
12325
12326 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
12327
12328 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
12329 Perform byte-swapping.
12330
12331 2004-02-14 Kim F. Storm <storm@cua.dk>
12332
12333 * dispextern.h (struct draw_fringe_bitmap_params): Change member
12334 bits from char to short to facilitate wider bitmaps.
12335 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
12336 member.
12337
12338 * fringe.c (struct fringe_bitmap): Change member bits from char to
12339 short to facilitate 16 bits wide bitmaps. Modify all standard
12340 bitmaps accordingly.
12341 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
12342 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
12343 (draw_fringe_bitmap): Ditto.
12344 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
12345 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
12346 handle up to 16 bits wide bitmaps.
12347 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
12348 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12349
12350 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
12351 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
12352 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
12353
12354 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
12355 so it is no longer necessary to expand them here.
12356
12357 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
12358
12359 2004-02-12 Kim F. Storm <storm@cua.dk>
12360
12361 * window.c (Fwindow_fringes): Doc fix.
12362
12363 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12364
12365 * xselect.c (x_get_foreign_selection): Add new optional parameter
12366 time_stamp.
12367 (Fx_get_selection_internal): Ditto, pass time_stamp to
12368 x_get_foreign_selection.
12369
12370 * data.c (Fbyteorder): New function.
12371
12372 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12373
12374 * atimer.c: Move include stdio.h to same place as in other files.
12375
12376 * region-cache.c: Ditto.
12377
12378 * sysdep.c: Ditto.
12379
12380 * xfaces.c: Ditto.
12381
12382 2004-02-09 Sam Steingold <sds@gnu.org>
12383
12384 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
12385
12386 2004-02-09 Kim F. Storm <storm@cua.dk>
12387
12388 * fringe.c: New file. Move original fringe related declarations
12389 and code from dispextern.h and xdisp.c here.
12390 Rework code to support user defined fringe bitmaps, redefining
12391 standard bitmaps, ability to overlay user defined bitmap with
12392 overlay arrow bitmap, and add faces to bitmaps.
12393 (Voverflow_newline_into_fringe): Declare here.
12394 (enum fringe_bitmap_align): New enum.
12395 (..._bits): All bitmaps are now defined without bitswapping; that
12396 is now done in init_fringe_once (if necessary).
12397 (standard_bitmaps): New array with specifications for the
12398 standard fringe bitmaps.
12399 (fringe_faces): New array.
12400 (valid_fringe_bitmap_id_p): New function.
12401 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
12402 (draw_fringe_bitmap): New function which draws fringe bitmap,
12403 possibly overlaying bitmap with cursor in right fringe or the
12404 overlay arrow in the left fringe.
12405 (update_window_fringes): Do not handle overlay arrow here.
12406 Compare and copy fringe bitmap faces.
12407 (init_fringe_bitmap): New function.
12408 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
12409 define and destroy user defined fringe bitmaps.
12410 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
12411 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
12412 (syms_of_fringe): New function. Defsubr new DEFUNs.
12413 DEFVAR_LISP Voverflow_newline_into_fringe.
12414 (init_fringe_once, init_fringe): New functions.
12415 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
12416
12417 * Makefile.in (obj): Add fringe.o.
12418 (fringe.o): New dependencies.
12419
12420 * dispextern.h (FRINGE_ID_BITS): New definition for number of
12421 bits allocated to hold a fringe number. Increase number of bits
12422 from 4 to 8 to allow user defined fringe bitmaps.
12423 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
12424 left_user_fringe_face_id, right_user_fringe_bitmap,
12425 right_user_fringe_face_id.
12426 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
12427 Move to new file fringe.c.
12428 (MAX_FRINGE_BITMAPS): Define here.
12429 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
12430 and overlay_p. Change member which to int.
12431 (struct redisplay_interface): New members define_fringe_bitmap
12432 and destroy_fringe_bitmap.
12433 (valid_fringe_bitmap_id_p): Add prototype.
12434 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
12435
12436 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
12437 arrows.
12438 (update_frame): Do flush_display if force_flush_display_p to
12439 ensure display (specifically fringes) are updated in a timely
12440 manner when resizing the frame by dragging the mouse.
12441 (update_window_line): Update row if overlay arrow changed.
12442 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
12443 or overlay arrow changed.
12444
12445 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
12446 syms_of_fringe, and init_fringe.
12447
12448 * frame.h (struct frame): New member force_flush_display_p.
12449
12450 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
12451 Add prototypes.
12452
12453 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
12454 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
12455 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
12456 Use cursor color for displaying cursor in fringe.
12457 (x_redisplay_interface): Add null handlers for
12458 define_fringe_bitmap and destroy_fringe_bitmap functions.
12459
12460 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
12461 xterm.c to handle overlayed fringe bitmaps and to use cursor color
12462 for displaying cursor in fringe.
12463 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
12464 specific functions to define and destroy fringe bitmaps in fringe_bmp.
12465 (w32_redisplay_interface): Add them to redisplay_interface.
12466 (w32_term_init): Call w32_init_fringe instead of explicitly
12467 defining fringe bitmaps in fringe_bmp array.
12468 (x_delete_display): Call w32_reset_fringes instead of explicitly
12469 destroying fringe bitmaps in fringe_bmp array.
12470
12471 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
12472 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
12473 (continued_bits, continuation_bits, ov_bits, first_line_bits)
12474 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
12475 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
12476 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
12477 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
12478 Move fringe handling vars and code to new file fringe.c.
12479 (handle_display_prop): Handle left-fringe and right-fringe
12480 display properties; store user fringe bitmaps in iterator.
12481 (move_it_in_display_line_to): Handle cursor in fringe at eob.
12482 (clear_garbaged_frames): Set force_flush_display_p if resized.
12483 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
12484 (display_line): Handle cursor in fringe at eob.
12485 (display_line): Set row user fringe bitmaps from iterator.
12486
12487 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
12488 Use cursor color for displaying cursor in fringe.
12489 (x_redisplay_interface): Add null handlers for
12490 define_fringe_bitmap and destroy_fringe_bitmap functions.
12491
12492 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12493
12494 * macfns.c (Fx_change_window_property): Make doc string and
12495 parameters same as for X version.
12496
12497 * w32fns.c (Fx_change_window_property): Ditto.
12498
12499 2004-02-07 Kim F. Storm <storm@cua.dk>
12500
12501 * xdisp.c (hscroll_window_tree): Position cursor near to right
12502 margin in hscrolled window when jumping to end of line (rather
12503 than centering cursor).
12504
12505 * process.c (wait_reading_process_input): Don't do adaptive read
12506 buffering if waiting for a specific process.
12507
12508 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
12509
12510 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
12511 (Fread_minibuffer, Feval_minibuffer)
12512 (Fread_string, Fread_no_blanks_input)
12513 (Fcompleting_read): Doc fixes.
12514 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
12515 completion-regexp-list. Define Qcase_fold_search and staticpro it.
12516 (read_minibuf): Fix initial comment.
12517 (Ftry_completion, Fall_completions, Ftest_completion): Bind
12518 case-fold-search to the value of completion-ignore-case when
12519 checking completion-regexp-list.
12520 (Fdisplay_completion_list): Make it handle arguments that are
12521 symbols. Doc fix.
12522
12523 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12524
12525 * xterm.h: Add declaration of free_frame_menubar.
12526
12527 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
12528 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
12529 (Fx_change_window_property): Add declaration of parameters type and
12530 format. Remove unused variable cons.
12531
12532 * xselect.c: Include stdio.h.
12533
12534 2004-02-05 Kenichi Handa <handa@m17n.org>
12535
12536 * fns.c (Fset_char_table_range): Fix previous change.
12537
12538 * buffer.c (Fset_buffer_multibyte): Fix docstring.
12539
12540 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
12541
12542 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
12543
12544 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
12545
12546 * keymap.c (Vmouse_events): Rename from Vmenu_events.
12547 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
12548
12549 2004-02-04 Kenichi Handa <handa@m17n.org>
12550
12551 * fns.c (Fset_char_table_range): Handle charsets ascii,
12552 eight-bit-control, and eight-bit-graphic correctly.
12553
12554 2004-02-03 Jason Rumney <jasonr@gnu.org>
12555
12556 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
12557
12558 * w32fns.c (x_to_w32_font): Likewise.
12559
12560 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12561
12562 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
12563 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
12564
12565 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
12566 ClientMessages.
12567
12568 * xselect.c: Include termhooks.h and X11/Xproto.h
12569 (x_check_property_data, x_fill_property_data)
12570 (x_property_data_to_lisp, mouse_position_for_drop)
12571 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
12572 (Fx_send_client_event): Move here from xfns.c.
12573 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
12574
12575 * xfns.c (x-send-client-message): Move to xselect.c
12576 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
12577 OUTER_P.
12578 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
12579 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
12580 if vector_ret_p is true.
12581 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
12582
12583 2004-02-02 Eli Zaretskii <eliz@gnu.org>
12584
12585 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
12586 basename of FILE relative to it, not FILE itself.
12587
12588 2004-02-02 Kenichi Handa <handa@m17n.org>
12589
12590 * coding.c (coding_restore_composition): Check invalid
12591 composition data more rigidly.
12592
12593 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
12594
12595 * fileio.c (Fread_file_name_internal): Correctly handle the case
12596 where insert-default-directory is nil.
12597 (Fread_file_name): Always return an empty string if the user exits
12598 with an empty minibuffer. Adapt the docstring accordingly.
12599 (syms_of_fileio): Adapt the docstring of insert-default-directory
12600 to the change in Fread_file_name.
12601
12602 2004-01-29 Eli Zaretskii <eliz@gnu.org>
12603
12604 * alloca.c [!alloca]: Fix the prototype for xfree.
12605
12606 2004-01-29 Kenichi Handa <handa@m17n.org>
12607
12608 * fns.c (string_char_to_byte): Optimize for ASCII only string.
12609 (string_byte_to_char): Likewise.
12610
12611 2004-01-28 Peter Runestig <peter@runestig.com>
12612
12613 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
12614
12615 2004-01-27 Steven Tamm <steventamm@mac.com>
12616
12617 * unexmacosx.c (unexec_copy): Do not copy more than was
12618 requested to prevent overwriting during unexec.
12619
12620 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12621
12622 * process.c (sigchld_handler): Add comment about not calling malloc.
12623
12624 * process.h: Add extern to synch_process_termsig.
12625
12626 2004-01-27 Steven Tamm <steventamm@mac.com>
12627
12628 * macterm.c (make_mac_frame, make_mac_terminal_frame):
12629 Move setting of scroll bars from make_mac_frame to
12630 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
12631
12632 2004-01-26 Richard M. Stallman <rms@gnu.org>
12633
12634 * search.c (Freplace_match): Handle nonexistent
12635 back-references properly.
12636
12637 2004-01-03 Richard M. Stallman <rms@gnu.org>
12638
12639 * window.c (decode_any_window): New function.
12640 (Fwindow_height, Fwindow_width, Fwindow_edges)
12641 (Fwindow_pixel_edges, Fwindow_inside_edges)
12642 (Fwindow_inside_pixel_edges): Use decode_any_window.
12643
12644 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12645
12646 * process.h: synch_process_termsig new variable.
12647
12648 * callproc.c: Define synch_process_termsig.
12649 (Fcall_process): Initiate synch_process_termsig to zero and
12650 check if non-zero and get signal name after subprocess has ended.
12651
12652 * process.c (sigchld_handler): Set synch_process_termsig
12653 if terminated by a signal. synch_process_death setting removed.
12654
12655 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
12656
12657 2004-01-26 Andreas Schwab <schwab@suse.de>
12658
12659 * print.c (print_preprocess): Declare size as EMACS_INT to not
12660 lose bits.
12661 (print_object): Likewise.
12662 * alloc.c (Fpurecopy): Likewise.
12663
12664 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
12665
12666 * window.c (Fwindow_minibuffer_p): Doc fix.
12667
12668 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
12669
12670 * editfns.c (Fformat): Make both passes accept the same set of flags.
12671
12672 2004-01-23 Kenichi Handa <handa@m17n.org>
12673
12674 * fns.c (Fmd5): If OBJECT is a buffer different from the current
12675 one, set buffer to OBJECT temporarily.
12676
12677 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12678
12679 * keyboard.c (kbd_buffer_gcpro): Remove.
12680 (kbd_buffer_store_event, clear_event, Fdiscard_input)
12681 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
12682 Don't initialize and/or maintain the variable any more. It was made
12683 redundant by my commit of 2003-06-15.
12684
12685 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
12686
12687 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12688
12689 * lisp.h: Add undef DECL_ALIGN.
12690
12691 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
12692
12693 * process.c (wait_reading_process_input) [SYNC_INPUT]:
12694 Check interrupt_input_pending explicitly.
12695
12696 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
12697
12698 * keyboard.c (handle_async_input): New fun,
12699 extracted from input_available_signal.
12700 (input_available_signal, reinvoke_input_signal): Use it.
12701
12702 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
12703
12704 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
12705
12706 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
12707 manipulation macros for when tags are in the lower bits.
12708 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
12709 (DECL_ALIGN): New macro.
12710 (DEFUN): Use it.
12711
12712 * lisp.h [ENABLE_CHECKING]: Don't force union type.
12713
12714 * s/darwin.h (__attribute__): Remove outdated workaround.
12715
12716 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
12717
12718 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
12719 Don't check range of malloc address.
12720 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
12721
12722 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
12723
12724 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
12725
12726 2004-01-19 Kenichi Handa <handa@m17n.org>
12727
12728 * fontset.c (fontset_font_pattern): Fix previous change.
12729
12730 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
12731
12732 * xdisp.c (Voverflow_newline_into_fringe)
12733 (move_it_in_display_line_to, redisplay_internal)
12734 (update_window_fringes, redisplay_window, display_line, window):
12735 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
12736 that it compiles without a window-system.
12737 * dispnew.c (direct_output_for_insert, update_window): Likewise.
12738
12739 2004-01-16 Kim F. Storm <storm@cua.dk>
12740
12741 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
12742
12743 * buffer.c (init_buffer_once): Set buffer_defaults and
12744 buffer_local_flags for indicate_buffer_boundaries.
12745 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
12746 default- variable for it.
12747
12748 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
12749 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
12750 New members exact_window_width_line_p and cursor_in_fringe_p for
12751 overflowing newlines into right fringe.
12752 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
12753 and indicate_bottom_line_p for buffer boundaries and scrolling.
12754 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
12755 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
12756 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
12757 and HOLLOW_SQUARE_BITMAP.
12758 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
12759 Add prototypes.
12760
12761 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
12762 instead of related indicator fields.
12763 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
12764 (direct_output_for_insert): Handle exact width lines like
12765 contined lines. Call update_window_fringes.
12766 (update_window): Call update_window_fringes.
12767 (scrolling_window): Don't skip desired rows with changed bitmaps.
12768 Check if fringe bitmaps changes when assigning scrolled rows.
12769
12770 * xdisp.c (Voverflow_newline_into_fringe): New variable.
12771 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
12772 (move_it_in_display_line_to): Overflow newline into fringe for
12773 rows that are exactly as wide as the window.
12774 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
12775 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
12776 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
12777 (fringe_bitmaps): Add new bitmaps.
12778 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
12779 Select proper bitmap for cursor in fringe when appropriate.
12780 Handle alignment of bitmap to top or bottom of row.
12781 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
12782 done by update_window_fringes.
12783 (update_window_fringes, draw_window_fringes): New functions.
12784 (redisplay_internal): Call update_window_fringes in case only
12785 cursor row is updated.
12786 (redisplay_window): Call update_window_fringes.
12787 Explicitly call draw_window_fringes if redisplay was done using
12788 the current matrix or the overlay arrow is in the window.
12789 (try_window_reusing_current_matrix): Mark scrolled rows for
12790 fringe update (to update buffer-boundaries / scrolling icons).
12791 (find_last_unchanged_at_beg_row): Handle exact width lines line
12792 continued lines.
12793 (display_line): Overflow newline into fringe for rows that are
12794 exactly as wide as the window. Don't append space for newline
12795 in this case.
12796 (notice_overwritten_cursor): Explicitly clear cursor bitmap
12797 in fringe as if it had been overwritten.
12798 (erase_phys_cursor): Erase cursor bitmap in fringe.
12799 (syms_of_xdisp): Mark show-trailing-whitespace and
12800 void-text-area-pointer as user options.
12801 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
12802
12803 * xterm.c (x_update_window_end): Call draw_window_fringes.
12804 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12805 in row instead of actually drawing fringe bitmaps.
12806 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12807 (x_draw_window_cursor): Draw cursor in fringe.
12808
12809 * w32term.c (x_update_window_end): Call draw_window_fringes.
12810 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12811 in row instead of actually drawing fringe bitmaps.
12812 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12813 (w32_draw_window_cursor): Draw cursor in fringe.
12814
12815 * macterm.c (x_update_window_end): Call draw_window_fringes.
12816 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
12817 in row instead of actually drawing fringe bitmaps.
12818 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
12819 (mac_draw_window_cursor): Draw cursor in fringe.
12820
12821 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12822
12823 * xterm.c (handle_one_xevent): Don't handle characters that are part
12824 of an old style (XLookupString) compose sequence.
12825
12826 2004-01-15 Kenichi Handa <handa@m17n.org>
12827
12828 * search.c (Freplace_match): Use make_multibyte_string or
12829 make_unibyte_string according to the buffer multibyteness.
12830
12831 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
12832
12833 * alloc.c (struct interval_block, struct string_block)
12834 (struct symbol_block, struct marker_block, live_string_p)
12835 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
12836 Better preserve alignment for objects in blocks.
12837 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
12838
12839 * lread.c (defvar_per_buffer): Remove dead declaration.
12840
12841 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
12842 space size.
12843
12844 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12845
12846 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
12847 if a key press should pop down. Only pop down if a key is pressed
12848 outside the menu/dialog.
12849 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
12850 popup_get_selection.
12851 (create_and_show_dialog): Pass 1 for down_on_keypress to
12852 popup_get_selection.
12853
12854 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12855
12856 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
12857 BLOCK/UNBLOCK_INPUT.
12858
12859 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12860
12861 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
12862 specified.
12863
12864 2004-01-08 Kenichi Handa <handa@m17n.org>
12865
12866 * editfns.c (Fformat): Fix '&' to '&&'.
12867
12868 2004-01-08 Andreas Schwab <schwab@suse.de>
12869
12870 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
12871 size if PSEUDOVECTOR_FLAG is set.
12872
12873 2004-01-07 Kenichi Handa <handa@m17n.org>
12874
12875 * charset.c (Fdeclare_equiv_charset): Fix docstring.
12876
12877 * fontset.c (fontset_ref_via_base): Fix previous change.
12878
12879 2004-01-07 Kim F. Storm <storm@cua.dk>
12880
12881 * process.c (read_process_output): Only activate adaptive
12882 buffering if we read less than 256 bytes at a time.
12883
12884 2004-01-06 Kim F. Storm <storm@cua.dk>
12885
12886 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
12887 object and image object. Return glyph width and height.
12888 (mode_line_string, marginal_area_string): Ditto.
12889
12890 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12891 (marginal_area_string): Fix prototypes.
12892
12893 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
12894 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
12895 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
12896
12897 * keyboard.c (make_lispy_position): Use modified mode_line_string,
12898 buffer_posn_from_coords, and marginal_area_string functions to
12899 include both string object and image object in the lispy position.
12900 Also add actual glyph width and height to position.
12901 (read_key_sequence): Use real buffer position from mouse
12902 event to find keymap property even when click is in marginal area.
12903
12904 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
12905 mode_line_string and marginal_area_string functions to handle
12906 both string object and image object properties.
12907
12908 2004-01-06 Andreas Schwab <schwab@suse.de>
12909
12910 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
12911 character.
12912
12913 2004-01-02 Andreas Schwab <schwab@suse.de>
12914
12915 * macterm.c (emacs_options, x_initialized, same_x_server):
12916 Remove unused (and duplicated) definitions.
12917
12918 2004-01-02 Kim F. Storm <storm@cua.dk>
12919
12920 * process.h (struct Lisp_Process): New members for adaptive read
12921 buffering: adaptive_read_buffering, read_output_delay, and
12922 read_output_skip.
12923
12924 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
12925 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
12926 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
12927 (process_output_delay_count, process_output_skip): New vars.
12928 (Vprocess_adaptive_read_buffering): New variable.
12929 (make_process): Initialize adaptive read buffering members.
12930 (Fstart_process): Set adaptive_read_buffering member.
12931 (deactivate_process): Cleanup adaptive read buffering.
12932 (wait_reading_process_input): Temporarily omit delayed
12933 subprocesses from the set of file descriptors to read from;
12934 adjust the select timeout if we skipped any subprocesses.
12935 (read_process_output): Increase adaptive read buffering delay if
12936 we read less than a full buffer; reduce delay when we read a
12937 full buffer.
12938 (send_process): Simplify using local Lisp_Process var.
12939 Reset adaptive read buffering delay after write.
12940 (init_process): Initialize process_output_delay_count and
12941 process_output_skip.
12942 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
12943
12944 2004-01-01 Jason Rumney <jasonr@gnu.org>
12945
12946 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
12947
12948 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
12949
12950 * print.c (Ferror_message_string): Add hyperlink in the docstring
12951 to the definition of `signal' in the Elisp manual.
12952 * eval.c (Fsignal): Ditto.
12953
12954 2003-12-29 James Clark <jjc@jclark.com>
12955
12956 * fns.c (internal_equal): Return t for two NaN arguments.
12957
12958 2003-12-29 Richard M. Stallman <rms@gnu.org>
12959
12960 * data.c (store_symval_forwarding): Handle setting
12961 default-fill-column, etc., by changing the value in
12962 buffers that use the default.
12963
12964 * minibuf.c (Fset_minibuffer_window): Doc fix.
12965
12966 * fileio.c (choose_write_coding_system): Ignore auto_saving
12967 if using the visited file for auto saves.
12968 (Fwrite_region): Don't update SAVE_MODIFF
12969 if auto-saving in visited file.
12970
12971 2003-12-29 Kenichi Handa <handa@m17n.org>
12972
12973 * dispextern.h (face_font_available_p): Extern it.
12974
12975 * fontset.c (Voverriding_fontspec_alist): New variable.
12976 (lookup_overriding_fontspec): New function.
12977 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
12978 (fontset_font_pattern): Likewise.
12979 (regulalize_fontname): New function.
12980 (Fset_fontset_font): Call regulalize_fontname.
12981 (Fset_overriding_fontspec_internal): New function.
12982 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
12983 Defsubr Sset_overriding_fontspec_internal.
12984
12985 * xfaces.c (face_font_available_p): New function.
12986
12987 2003-12-28 Richard M. Stallman <rms@gnu.org>
12988
12989 * buffer.c (Fother_buffer): Don't crash if BUF is nil
12990 or if its name is nil.
12991
12992 * buffer.c (Fkill_buffer): Don't delete auto-save file
12993 if it's the same as the visited file.
12994
12995 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
12996
12997 * coding.c (Fcheck_coding_system): Doc fix.
12998
12999 2003-12-28 Kim F. Storm <storm@cua.dk>
13000
13001 * Makefile.in (eval.o): Depend on dispextern.h.
13002
13003 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
13004 image glyph using image's ascent.
13005 (mode_line_string): Return image glyph as object clicked on.
13006 Adjust y0 for image glyph using image's ascent.
13007
13008 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
13009 (struct glyph): New members, ascent and descent. Used to save
13010 this glyph's ascent and descent, instead of having.
13011 (struct glyph): Declare member face_id using FACE_ID_BITS.
13012 (find_hot_spot): Add prototype.
13013
13014 * keyboard.c (Qimage): Remove extern (now in lisp.h).
13015 (QCmap): Declare extern.
13016 (make_lispy_position): When position is inside image hot-spot,
13017 use hot-spot element's id as posn element.
13018
13019 * lisp.h (IMAGEP): New macro to test for image object type.
13020 (Qimage): Declare extern.
13021
13022 * macfns.c (Qimage): Remove extern (now in lisp.h).
13023 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13024
13025 * macterm.c (Qface, Qmouse_face): Remove unused externs.
13026
13027 * w32fns.c (Qimage): Remove extern (now in lisp.h).
13028 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13029
13030 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
13031
13032 * w32term.c (Qface, Qmouse_face): Remove unused externs.
13033
13034 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
13035 pointer types.
13036 (Qrelative_width, Qalign_to): Remove unused variables.
13037 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
13038 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
13039 image maps.
13040 (x_y_to_hpos_vpos): Return glyph relative coordinates through
13041 new dx and dy args.
13042 Remove buffer_only_p arg (always 0). Simplify code accordingly.
13043 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
13044 than row's ascent and height, to get sensible height on tall rows.
13045 (build_desired_tool_bar_string): Remove Qimage extern.
13046 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
13047 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
13048 image glyph is alone on the last line.
13049 (append_glyph, append_composite_glyph, produce_image_glyph)
13050 (append_stretch_glyph): Set glyph's ascent and descent.
13051 (on_hot_spot_p): New function to check if position is inside an
13052 rectangular, circular, or polygon-shaped image hot-spot,
13053 (find_hot_spot): New function to search for image hot-spot.
13054 (Flookup_image_map): New defun to search for image hot-spot.
13055 (define_frame_cursor1): New aux function to determine frame pointer.
13056 (note_mode_line_or_margin_highlight, note_mouse_highlight):
13057 Handle `pointer' text property and :pointer image property to
13058 control frame pointer shape. Detect image hot-spots for pointer
13059 and help_echo properties. Use define_frame_cursor1.
13060 (note_mouse_highlight): Use Vvoid_text_area_pointer.
13061 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
13062 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
13063
13064 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
13065
13066 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
13067 (Qimage): Remove extern (now in lisp.h).
13068 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13069
13070 * xmenu.c (show_help_event): Remove unused code.
13071
13072 * xterm.c (Qface, Qmouse_face): Remove unused externs.
13073 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
13074 row's ascent and descent, to get a sensible height on tall rows.
13075
13076 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
13077
13078 * minibuf.c (Fcompleting_read): Undo previous change.
13079
13080 2003-12-25 Lars Hansen <larsh@math.ku.dk>
13081
13082 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
13083 Arguments GCPRO'ed in call to file name handler.
13084
13085 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
13086
13087 * termcap.c (tgetst1): Scan for "%pN"; if all
13088 N are continuous in [1,9], remove all "%pN".
13089
13090 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13091
13092 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
13093
13094 * xfaces.c (lface_fully_specified_p): Take into account that
13095 MAC OS always have unspecified stipple.
13096
13097 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13098
13099 * tparam.c (tparam1): Add handling for `%pN', which
13100 means use param N for the next substitution.
13101
13102 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13103
13104 * xfaces.c (Fcolor_gray_p): Fix omission bug:
13105 In case `frame' is nil, consult the selected frame.
13106 (Fcolor_supported_p): Likewise.
13107
13108 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
13109
13110 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
13111 Doc fixes.
13112
13113 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
13114 and an integer. Adapt the introductory comment accordingly.
13115 (Fread_from_minibuffer): Delete code moved into read_minibuf.
13116 Doc fix.
13117 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
13118 read_minibuf.
13119 (Fcompleting_read): Delete code moved into read_minibuf.
13120 (Ftest_completion): Make it handle obarrays and hash tables correctly.
13121
13122 2003-12-03 Kenichi Handa <handa@m17n.org>
13123
13124 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
13125 encoding sequence.
13126
13127 2003-12-01 Kenichi Handa <handa@m17n.org>
13128
13129 * composite.c (syms_of_composite): Don't make the compostion hash
13130 table week.
13131
13132 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
13133
13134 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
13135 * textprop.c (Fget_char_property_and_overlay): New function.
13136 (syms_of_textprop): Defsubr it.
13137
13138 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13139
13140 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
13141 to compile on terminal configuration.
13142
13143 * fileio.c (Fread_file_name): Check use_file_dialog also before
13144 calling Fx_file_dialog.
13145
13146 * fns.c (use_file_dialog): New variable.
13147 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
13148
13149 2003-11-29 Kim F. Storm <storm@cua.dk>
13150
13151 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
13152 (syms_of_msdos): Don't intern and staticpro them.
13153
13154 2003-11-27 Kim F. Storm <storm@cua.dk>
13155
13156 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
13157 coordinates relative to glyph at posn. If glyph is an image,
13158 return that as object at posn. Callers changed.
13159 (mode_line_string, marginal_area_string): Calculate and return
13160 pixel coordinates relative to glyph. Callers changed.
13161
13162 * dispextern.h (buffer_posn_from_coords, mode_line_string)
13163 (marginal_area_string): Fix prototypes.
13164 (window_box_left_offset, window_box_right_offset): Add prototypes.
13165
13166 * frame.h (get_specified_cursor_type, get_window_cursor_type):
13167 Remove prototypes.
13168
13169 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
13170
13171 * keyboard.c (make_lispy_position): Add x and y coordinates
13172 relative to the current glyph as 7th element of position.
13173 If glyph is an image, return it in the object element.
13174 (read_key_sequence): Skip checks for keymap property in cases
13175 where POSN_STRING is not a string (e.g. an image).
13176
13177 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
13178 (Vshow_text_cursor_in_void): New variable.
13179 (glyph_to_pixel_coords): Don't use negative hpos.
13180 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
13181 (append_stretch_glyph): Change ascent arg to be actual value
13182 in pixels rather than ratio to height. Callers changed.
13183 (calc_pixel_width_or_height): New aux function, implementing
13184 pixel based artihmetic for glyph widths and heights.
13185 (produce_stretch_glyph): Use calc_pixel_width_or_height for
13186 :width, :height, :align-to, and :ascent, thus allowing these to
13187 be specified in pixels as well as multiples of characters.
13188 Don't produce stretch glyphs with zero width or height.
13189 (get_specified_cursor_type): Declare static.
13190 (get_window_cursor_type): Declare static. Add glyph arg to be
13191 able to know when cursor is on an image; always substitute
13192 hollow-box cursor for filled-box cursor on images, to avoid
13193 negative images and flicker when blinking the cursor.
13194 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
13195 (note_mode_line_or_margin_highlight): Use non-text cursor rather
13196 than vertical scroll-bar cursor in display margins.
13197 (note_mouse_highlight): Use non-text cursor rather than text
13198 cursor in fringes and over images in the text area.
13199 Use non-text cursor when mouse pointer is outside editable text,
13200 i.e. in the void after end-of-line or end-of-buffer; this was
13201 already done for W32, but is now standard for all systems --
13202 user can toggle show-text-cursor-in-void to get old behaviour.
13203 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
13204 Vdisplay_pixels_per_inch.
13205
13206 2003-11-25 Andreas Schwab <schwab@suse.de>
13207
13208 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
13209 EMACS_INT to not lose bits.
13210 (Ffillarray): Don't set bits beyond the size of a bool vector.
13211
13212 2003-11-25 Kim F. Storm <storm@cua.dk>
13213
13214 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
13215 define this defun on systems that cannot use stderr as lvalue.
13216
13217 2003-11-24 Gerd Moellmann <gerd@gnu.org>
13218
13219 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
13220 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
13221 ld's default is incompatible with unexec.
13222
13223 2003-11-23 Kim F. Storm <storm@cua.dk>
13224
13225 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
13226 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
13227 (Fforce_window_update): New defun.
13228 (syms_of_window): Defsubr it.
13229 (Fset_window_margins, Fset_window_fringes): Doc fix.
13230
13231 * print.c (Fredirect_debugging_output): New defun.
13232 (syms_of_print): Defsubr it.
13233
13234 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
13235
13236 * fns.c (Fset_char_table_parent): Doc fix.
13237
13238 2003-11-22 Kim F. Storm <storm@cua.dk>
13239
13240 * dispnew.c (buffer_posn_from_coords): Return actual row/column
13241 for glyph clicked on, rather than (unused) pixel positions.
13242 (mode_line_string, marginal_area_string): Change X and Y args to
13243 pointers for returning actual row/column for glyph clicked on.
13244 Simplify and optimize loops.
13245
13246 * dispextern.h (mode_line_string, marginal_area_string):
13247 Update prototypes.
13248
13249 * keyboard.c (make_lispy_position): New function for generating
13250 mouse click positions from frame and pixel coordinates.
13251 Enhanced to return buffer position and actual row/column for
13252 events outside the text area using updated mode_line_string and
13253 marginal_area_string functions.
13254 Return left-fringe and right-fringe clicks as such, rather than
13255 clicks in text area.
13256 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
13257 pixel_to_glyph_coords, as we never use the results.
13258 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
13259 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
13260 Eliminate unused code in WHEEL_EVENT handling.
13261 (make_lispy_movement): Use make_lispy_position.
13262
13263 * window.c (coordinates_in_window): Remove redundant tests.
13264 Fix returned X pixel value for left-margin.
13265
13266 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
13267 mode_line_string and marginal_area_string parameters.
13268
13269 2003-11-22 Lars Hansen <larsh@math.ku.dk>
13270
13271 * w32.c (struct the_group, getgrgid): Add.
13272 * mac.c (struct my_group, getgrgid): Add.
13273
13274 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13275
13276 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
13277
13278 2003-11-21 Lars Hansen <larsh@math.ku.dk>
13279
13280 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
13281 include in call to file name handler. Optionally translate numeric
13282 UID and GID to strings. Update docstring.
13283 (directory_files_internal): Add parameter ID-FORMAT.
13284 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
13285 include in call to file name handler and call to
13286 directory_files_internal. Update Docstring.
13287 (Fdirectory_files): Add dummy parameter in call to
13288 directory_files_internal.
13289 * lisp.h (Qinteger): Add.
13290 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
13291 (Ffile_attributes): Add parameter.
13292 * data.c (Qinteger): Export.
13293
13294 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13295
13296 * fns.c (Freverse, Fnreverse): Doc fixes.
13297
13298 2003-11-19 Kim F. Storm <storm@cua.dk>
13299
13300 * xdisp.c (init_iterator): Initialize it->start to position
13301 before reseating (in case start position is invisible).
13302 (init_to_row_start): Set it->start to row-start.
13303 (redisplay_window): Accept optional_new_start if start position
13304 is invisible (in which case IT_CHARPOS overshoots PT).
13305 (display_line): Setup row->start from it->start (rather than
13306 it->current which is wrong if first char on line is invisible).
13307 When done, reseat it->start to it->current (= start of next row).
13308 (expose_area): Fix exposure of text area when first char (e.g. TAB)
13309 is only partially visible.
13310
13311 * dispextern.h (struct it): New member start.
13312
13313 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
13314
13315 * alloc.c (make_float, Fcons): Clear the markbit at init time.
13316 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
13317 of block_index outside of the macro call.
13318 (Fgarbage_collect): Remove null code.
13319
13320 * m/amdx86-64.h: Don't redefine XPNTR.
13321
13322 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
13323 of VALMASK.
13324
13325 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
13326 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
13327 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
13328
13329 * lisp.h (VALMASK): Only define for non-union type.
13330 (MARKBIT): Remove.
13331 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
13332 (XTYPE): Define unconditionally.
13333 (XSETTYPE): Remove one more remnant.
13334 (EQ): Define differently for the union and non-union cases.
13335 (INTMASK): New bit mask.
13336 (struct Lisp_Marker): Move down to prepare for upcoming patch.
13337 (GC_EQ): Delegate to EQ.
13338
13339 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
13340
13341 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13342
13343 * xterm.c (x_window_to_scroll_bar): Move check of display to
13344 where window_id is compared.
13345
13346 2003-11-17 Kim F. Storm <storm@cua.dk>
13347
13348 * dispextern.h (struct it): New member first_vpos.
13349
13350 * xdisp.c (start_display): Set it->first_vpos.
13351 (try_window_id): Use first_vpos to start display in first _text_
13352 line if no reusable lines at start of window with header line.
13353
13354 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13355
13356 * w32fns.c (XPutPixel):
13357 * w32bdf.c (w32_init_bdf_font):
13358 * sunfns.c (sel_read):
13359 * process.c (Fmake_network_process):
13360 * frame.c (store_frame_param):
13361 * fontset.c (Fset_fontset_font):
13362 * emacs.c (shut_down_emacs):
13363 * ccl.c (ccl_driver): Remove period at end of error message.
13364
13365 * config.in: Regenerate.
13366
13367 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13368 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13369 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
13370 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
13371 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
13372
13373 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
13374
13375 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
13376 (XTmouse_position, handle_one_xevent): Pass Display* to
13377 x_window_to_scroll_bar.
13378 (x_window_to_scroll_bar): Take a Display* argument.
13379 Check that display for frame is equal to Display* argument.
13380 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
13381 x_display_info_for_display instead. Use Display in xev instead
13382 of GDK_DISPLAY.
13383 (x_dispatch_event): Call x_display_info_for_display.
13384 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
13385 (x_connection_closed): Call xg_display_close for GTK.
13386 (x_term_init): Call xg_display_open for additional displays.
13387 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
13388 for GTK.
13389
13390 * xmenu.c (single_menu_item, mouse_position_for_popup)
13391 (x_activate_menubar): Formatting adjustments.
13392
13393 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
13394 adjustments.
13395
13396 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
13397 (xg_display_close, xg_create_default_cursor)
13398 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
13399 handling.
13400 (xg_left_ptr_cursor): Remove.
13401 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
13402 cursor here.
13403 (xg_win_to_widget): Take Display* argument, call
13404 gdk_xid_table_lookup_for_display.
13405 (xg_create_frame_widgets, xg_get_file_name, create_menus)
13406 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
13407 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
13408 in FRAME_X_DISPLAY_INFO.
13409 (xg_get_scroll_id_for_window): Take Display* argument.
13410 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
13411 (xg_initialize): Remove xg_left_ptr_cursor.
13412
13413 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
13414 Display* argument.
13415 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
13416
13417 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13418
13419 * xterm.c (x_detect_focus_change): Do not change focus frame for
13420 Enter/LeaveNotify if the current focus frame has explicit focus.
13421
13422 2003-11-14 Kim F. Storm <storm@cua.dk>
13423
13424 * dispnew.c (update_text_area): Fix redisplay error when hscroll
13425 is active and first glyph is only partially visible.
13426
13427 2003-11-13 Kenichi Handa <handa@m17n.org>
13428
13429 * xdisp.c (select_frame_for_redisplay): New function.
13430 (redisplay_internal): Record also selected_frame for
13431 unwind_redisplay. Call select_frame_for_redisplay before
13432 redrawing each frame.
13433 (unwind_redisplay): Argument changed to a cons.
13434
13435 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
13436
13437 * fns.c (Fstring_to_multibyte): Doc fix.
13438
13439 2003-11-11 Kenichi Handa <handa@m17n.org>
13440
13441 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13442
13443 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13444
13445 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
13446 program specified positions.
13447
13448 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13449
13450 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
13451
13452 2003-11-08 Kenichi Handa <handa@m17n.org>
13453
13454 * Makefile.in (lisp): Add kannada.el.
13455 (shortlisp): Likewise.
13456
13457 2003-11-07 Kenichi Handa <handa@m17n.org>
13458
13459 * coding.c (coding_allocate_composition_data):
13460 Reset coding->composing to COMPOSITION_NO.
13461 (coding_restore_composition): Detect invalid composition data.
13462 Give Fstring and Fvector a Lispy integer, not C int.
13463
13464 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * floatfns.c (Flogb): Don't use VALMASK.
13467
13468 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
13469 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
13470
13471 * lisp.h (XINT): Move the cast to clarify what is going on.
13472 (GCTYPEMASK, XSETTYPE): Remove.
13473 (XGCTYPE): Make it an alias of XTYPE.
13474
13475 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13476
13477 * xterm.c (x_term_init): Fix formatting.
13478
13479 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13480
13481 * gtkutil.h (xg_have_tear_offs): Declare.
13482 (xg_keep_popup, xg_did_tearoff): Remove.
13483
13484 * gtkutil.c: Remove variable xg_did_tearoff.
13485 (xg_have_tear_offs): New function.
13486 (tearoff_remove): Just decrease xg_detached_menus.
13487 (tearoff_activate): Increase xg_detached_menus and call
13488 tearoff_remove when tearoff is removed.
13489 (xg_keep_popup): Remove function.
13490 (create_menus): Give add_tearoff_p as argument to recursive
13491 call to create_menus.
13492 (xg_create_widget): Use variables instead of multiple
13493 strcmp. Tell create_menus to create tear off only for
13494 menu bar menus.
13495 (xg_update_menubar): Change title for a detached menu also.
13496 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
13497 of deep_p.
13498 (xg_initialize): Initialize xg_detached_menus, remove
13499 initialization of xg_did_tearoff.
13500
13501 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
13502 xg_have_tear_offs returns non-zero.
13503 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
13504 call to xg_keep_popup.
13505
13506 2003-11-01 Andrew Choi <akochoi@shaw.ca>
13507
13508 * macterm.c (XTread_socket): Handle menubar selection and grow
13509 window only for mouseDown events.
13510
13511 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13512
13513 * xterm.c (x_term_init): For GTK part, increase x_initialized
13514 to check for more than one display. Use error instead of return 0.
13515
13516 2003-10-31 Andrew Choi <akochoi@shaw.ca>
13517
13518 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
13519 (copy_dysymtab): Call it.
13520
13521 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
13522
13523 * eval.c (Fdefvaralias): Doc fix.
13524
13525 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
13526
13527 * data.c (Fsetplist): Doc fix.
13528
13529 2003-10-14 Lute Kamstra <lute@gnu.org>
13530
13531 * window.c (Fset_window_fringes): Clarify docstring.
13532
13533 2003-10-14 Kim F. Storm <storm@cua.dk>
13534
13535 * window.c (Fset_window_margins): Simplify arg checking.
13536
13537 2003-10-13 Richard M. Stallman <rms@gnu.org>
13538
13539 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
13540 (print_partial_compiled_pattern): Replace assert with a printout.
13541 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
13542
13543 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
13544
13545 * window.c (Fset_window_margins): Allow only integers as args.
13546 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
13547 Doc fixes.
13548
13549 2003-10-13 Lute Kamstra <lute@gnu.org>
13550
13551 * window.c (Fset_window_fringes): Elaborate docstring.
13552
13553 2003-10-12 Andrew Choi <akochoi@shaw.ca>
13554
13555 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
13556
13557 * s/darwin.h (GC_MARK_STACK): Define.
13558
13559 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13560
13561 * window.c (shrink_windows): New function.
13562 (size_window): Call shrink_windows to calculate window sizes when
13563 shrinking frame with more than one window.
13564
13565 2003-10-12 Kim F. Storm <storm@cua.dk>
13566
13567 * xdisp.c (compute_fringe_widths): Doc fix.
13568
13569 2003-10-08 Kenichi Handa <handa@m17n.org>
13570
13571 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
13572
13573 2003-10-07 Kenichi Handa <handa@m17n.org>
13574
13575 * coding.c (Qcoding_system_define_form): New variable.
13576 (syms_of_coding): Intern and staticpro it.
13577 (Fcheck_coding_system): Try to autoload the definition of
13578 CODING-SYSTEM.
13579
13580 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
13581
13582 * fns.c (Frequire): Doc fix.
13583
13584 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13585
13586 * xfns.c (Fx_send_client_event): New function as a base for
13587 manipulating extended window manager hints.
13588 (Fx_send_client_event): Remove unused variable s.
13589
13590 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
13591 that function is removed.
13592
13593 * xterm.c (x_set_offset): Use move_offset_left/top instead of
13594 x/y_pixels_outer_diff.
13595 (x_check_expected_move): Calculate move_offset_left/top.
13596
13597 * xterm.h (struct x_output): New members: move_offset_top/left.
13598
13599 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
13600 call x_set_offset directly.
13601
13602 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
13603
13604 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
13605
13606 * xterm.c (x_delete_display): Free font names and font_encoder
13607 in dpyinfo->font_table.
13608
13609 * xfns.c (Fx_close_connection): Only call XFreeFont here.
13610 Move xfree of font names to x_delete_display.
13611
13612 * xterm.h (struct x_display_info): New member, wm_type.
13613 (struct x_output): New members, expected_top/left and
13614 check_expected_move.
13615
13616 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
13617 is received.
13618 (handle_one_xevent): Rename x_check_expected_move from
13619 x_check_fullscreen_move.
13620 (x_set_offset): Only add WM decoration sizes to modified_top/left
13621 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
13622 (x_check_expected_move): Rename from x_check_fullscreen_move.
13623 Removed fullscreen specific code. Use check_expected_move,
13624 expected_left/top instead. Also, set wm_type.
13625 (x_term_init): Initialize wm_type to unknown.
13626
13627 * frame.c (x_fullscreen_move): Remove addition of WM decoration
13628 sizes to move_x/y.
13629
13630 2003-10-03 Kenichi Handa <handa@m17n.org>
13631
13632 * macterm.c (x_load_font): Clear all members of FONTP before start
13633 filling them.
13634
13635 2003-10-02 Kenichi Handa <handa@m17n.org>
13636
13637 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
13638 before calling find_ccl_program_func. Call find_ccl_program_func
13639 only when fontp->font_encoder is not NULL.
13640
13641 * xterm.c (x_load_font): Clear all members of FONTP before start
13642 filling them.
13643
13644 2003-10-03 John Paul Wallington <jpw@gnu.org>
13645
13646 * keymap.c (map_keymap): Don't abort when binding is a vector.
13647
13648 2003-10-02 Jason Rumney <jasonr@gnu.org>
13649
13650 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
13651 Sync dependencies with Makefile.in.
13652 (alloca.o): Remove.
13653
13654 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
13655 filling them.
13656
13657 * w32bdf.c (w32_load_bdf_font): Likewise.
13658
13659 2003-09-30 Richard M. Stallman <rms@gnu.org>
13660
13661 * term.c (set_tty_color_mode): Calculate current_mode_spec
13662 regardless of value of VAL.
13663
13664 * intervals.c (graft_intervals_into_buffer):
13665 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
13666 Handle over_used when splitting UNDER.
13667
13668 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13669
13670 * regex.c (regex_compile): Free the stack when returning from function.
13671
13672 2003-09-28 Kenichi Handa <handa@m17n.org>
13673
13674 * fontset.c (Finternal_char_font): Change return value to
13675 cons (FONT-NAME . GLYPH-CODE).
13676
13677 2003-09-28 Eli Zaretskii <eliz@gnu.org>
13678
13679 * term.c (tty_setup_colors): Treat any negative argument as -1.
13680
13681 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
13682
13683 * process.c (send_process): Delete unused temp_buf.
13684
13685 2003-09-26 Dave Love <fx@gnu.org>
13686
13687 * xterm.c (x_bitmap_mask): Declare.
13688
13689 2003-09-25 Dave Love <fx@gnu.org>
13690
13691 * Makefile.in (fns.o): Depend on md5.h.
13692
13693 2003-09-25 Kim F. Storm <storm@cua.dk>
13694
13695 * window.c (set_window_buffer): Fix redisplay problems when
13696 switching between buffers with different display margin widths.
13697
13698 2003-09-23 Kim F. Storm <storm@cua.dk>
13699
13700 * process.c (set_socket_option): Fix :bindtodevice option.
13701 (Fset_network_process_option): Update process contact list when
13702 setting option succeeds.
13703 (Fmake_network_process): Doc fix.
13704
13705 2003-09-23 Dave Love <fx@gnu.org>
13706
13707 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
13708
13709 2003-09-22 Eli Zaretskii <eliz@gnu.org>
13710
13711 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
13712 color mode is an integer number (it could be -1).
13713
13714 2003-09-22 Richard M. Stallman <rms@gnu.org>
13715
13716 * intervals.c (graft_intervals_into_buffer): Correct the main loop
13717 in the case where OVER is longer than UNDER.
13718
13719 2003-09-22 Masatake YAMATO <jet@gyve.org>
13720
13721 * window.c (Fset_window_scroll_bars): Validate the value of
13722 `vertical_type'.
13723
13724 2003-09-21 Kim F. Storm <storm@cua.dk>
13725
13726 * frame.c (Vdefault_frame_scroll_bars): New variable.
13727 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
13728 (syms_of_frame): DEFVAR_LISP it, and initialize according to
13729 window-system default scroll bar position.
13730
13731 * window.c (Fwindow_scroll_bars): Doc fix.
13732
13733 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13734
13735 * xterm.c (x_set_offset): Take window manager decorations into account.
13736
13737 2003-09-19 Richard M. Stallman <rms@gnu.org>
13738
13739 * atimer.h: Don't include lisp.h.
13740 (P_): Define it here (as well as elsewhere).
13741
13742 * print.c (Fprin1_to_string): Move the PRINTPREPARE
13743 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
13744
13745 * data.c (Fvariable_binding_locus): New function.
13746 (syms_of_data): defsubr it.
13747 (Flocal_variable_p): Delete duplicate call to indirect_variable.
13748
13749 2003-09-18 Dave Love <fx@gnu.org>
13750
13751 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
13752
13753 * process.c (Fnetwork_interface_info): Fix type error.
13754 (Fnetwork_interface_list): Doc fix.
13755 (read_process_output, read_process_output): Delete unused var.
13756
13757 2003-09-17 Kim F. Storm <storm@cua.dk>
13758
13759 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
13760 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
13761 (Fnetwork_interface_info): Check that ifreq struct has required
13762 fields before accessing them; this requires that those fields are
13763 defined as macros, which may be too restrictive on some platforms,
13764 but it is better than failing on other platforms.
13765 (syms_of_process): Only defsubr above fns when included.
13766
13767 2003-09-17 Dave Love <fx@gnu.org>
13768
13769 * unexalpha.c: Don't include varargs.h.
13770
13771 2003-09-17 Kim F. Storm <storm@cua.dk>
13772
13773 * process.c (Fset_process_sentinel): Add sentinel to childp plist
13774 for network process.
13775 (socket_options): Add `:' prefix to option names. Add optbit field.
13776 (set_socket_option): Remove no_error arg and special handling of s < 0.
13777 Return 1<<optbit for known option, 0 for unknown.
13778 Do not interpret 0 as false for boolean option (only nil).
13779 Pass failed option and value to report_file_error.
13780 (Fset_network_process_options): Replace by Fset_network_process_option.
13781 (Fset_network_process_option): New function to set just one option.
13782 (Fmake_network_process): Allow :coding arg to be a cons.
13783 Allow :server arg to be an integer specifying backlog size.
13784 Remove :options arg, and allow options to be specified directly
13785 as :KEY, VALUE pairs. Parse these options before binding socket.
13786 As before, :reuseaddr t is default for a server process, but this
13787 can now be disabled by specifying :reuseaddr nil.
13788 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
13789 (init_process): Availability of network options is now checked with
13790 simpler syntax (featurep 'make-network-process :OPTION); use loop to
13791 setup features.
13792 (syms_of_process): Fix defsubr's for the replaced functions.
13793
13794 2003-09-16 Dave Love <fx@gnu.org>
13795
13796 * Makefile.in: Depend on coding.h.
13797
13798 2003-09-14 Kim F. Storm <storm@cua.dk>
13799
13800 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
13801 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
13802 (syms_of_process): Defsubr them.
13803
13804 * config.in: Regenerate.
13805
13806 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13807
13808 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
13809 * m/news-r6.h (XUNMARK): Remove.
13810 * m/mips.h (XUNMARK): Remove.
13811 * m/mips-siemens.h (XUNMARK): Remove.
13812 * m/iris4d.h (XUNMARK): Remove.
13813 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
13814
13815 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13816
13817 * lisp.h (VALBITS): Don't remove 1 for the markbit.
13818 (union Lisp_Object): Use unsigned int for types. Remove markbit.
13819 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
13820 (XTYPE): Use unsigned right-shift.
13821 (XMARKBIT, XMARK, XUNMARK): Remove.
13822
13823 * alloc.c (init_intervals, init_symbol, init_marker):
13824 Don't preallocate anything.
13825 (Fgarbage_collect, mark_object): Ignore the markbit.
13826
13827 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
13828
13829 2003-09-08 Lute Kamstra <lute@gnu.org>
13830
13831 * xdisp.c (pint2hrstr): New function.
13832 (decode_mode_spec): Add `%i' and `%I' specs.
13833 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
13834 for `mode-line-format'.
13835
13836 2003-09-07 Andreas Schwab <schwab@suse.de>
13837
13838 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
13839 avoid warning.
13840
13841 2003-09-07 Eli Zaretskii <eliz@gnu.org>
13842
13843 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
13844
13845 2003-09-03 Kim F. Storm <storm@cua.dk>
13846
13847 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
13848 change (superseded by 2002-08-30 change); the default blink-off
13849 cursor is now again "no cursor".
13850
13851 2003-09-01 Jason Rumney <jasonr@gnu.org>
13852
13853 * makefile.w32-in (alloca.o): Remove.
13854 (coding.o): Depend on intervals.h
13855 (emacs.o, bytecode.o): Depend on window.h
13856
13857 2003-09-01 Dave Love <fx@gnu.org>
13858
13859 * Makefile.in (alloca.o): Remove commands.
13860 (coding.o): Depend on intervals.h composite.h window.h.
13861 (emacs.o): Depend on window.h keyboard.h keymap.h.
13862 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
13863 (bytecode.o): Depend on window.h.
13864
13865 2003-08-31 Jason Rumney <jasonr@gnu.org>
13866
13867 * w32term.c (w32_per_char_metric): Allow cached metrics to be
13868 returned even when font_type is unknown.
13869
13870 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
13871
13872 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13873
13874 * xterm.c (x_term_init): Initialize new fields in x_display_info.
13875
13876 * xterm.h (struct x_display_info): Add red/green/blue_bits and
13877 *_offset.
13878
13879 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
13880 calculate pixel value.
13881
13882 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
13883
13884 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
13885 Don't tell redisplay display is accurate when it's actually been
13886 paused for pending input.
13887
13888 2003-08-29 Richard M. Stallman <rms@gnu.org>
13889
13890 * dispnew.c (adjust_glyph_matrix): Call window_box
13891 whenever W is nonzero.
13892
13893 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13894 (Fkill_local_variable, Fmake_variable_frame_local)
13895 (Flocal_variable_p, Flocal_variable_if_set_p):
13896 Use indirect_variable to trace thru variable aliases.
13897
13898 * config.in: Updated.
13899
13900 * callint.c (Fcall_interactively): Save and restore
13901 Vthis_command, Vthis_original_command, real_this_command,
13902 and current_kboard->Vlast_command.
13903
13904 * abbrev.c (Fexpand_abbrev): Insert before deleting.
13905
13906 2003-08-29 Gerd Moellmann <gerd@gnu.org>
13907
13908 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
13909
13910 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
13911
13912 * coding.c (decode_coding_iso2022): Initialize local variable c2.
13913 (decode_coding_sjis_big5): Likewise.
13914
13915 2003-08-27 Jason Rumney <jasonr@gnu.org>
13916
13917 * w32.c (sys_pipe): Protect against file descriptor overflow.
13918
13919 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
13920
13921 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
13922
13923 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
13924
13925 * xfns.c (Vgtk_version_string): New variable.
13926 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
13927
13928 2003-08-24 Eli Zaretskii <eliz@gnu.org>
13929
13930 * term.c (term_init): Remove `const' from buffer_size's declaration.
13931
13932 * Makefile.in (msdos.o): Depend on intervals.h.
13933
13934 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
13935
13936 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13937
13938 * xterm.h (struct x_display_info): New fields: client_leader_window
13939 and Xatom_wm_client_leader.
13940
13941 * xterm.c (x_initialize): Move call to x_session_initialize to ...
13942 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
13943
13944 * xsmfns.c (create_client_leader_window): New function.
13945 (x_session_initialize): Call create_client_leader_window, take
13946 dpyinfo as argument.
13947
13948 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
13949
13950 * Makefile.in (xsmfns.o): Add more depenedencies.
13951
13952 2003-08-21 Dave Love <fx@gnu.org>
13953
13954 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
13955
13956 2003-08-21 Kenichi Handa <handa@m17n.org>
13957
13958 * term.c (term_init): Fix previous change; don't rely on the
13959 length of `buffer' if TERMINFO is defined.
13960
13961 2003-08-20 Dave Love <fx@gnu.org>
13962
13963 * atimer.h: Include lisp.h.
13964
13965 * lisp.h (EMACS_LISP_H): New.
13966 (popup_activated_flag): Don't declare.
13967
13968 * alloca.c: Some merging with gnulib. Change logic and doc
13969 concerning (x)malloc/(x)free -- no longer Emacs-specific.
13970 [DO_BLOCK_INPUT]: Don't include lisp.h.
13971 (xmalloc, xfree): Declare.
13972 (malloc): Don't declare.
13973
13974 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
13975 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
13976 atimer.h, blockinput.h.
13977
13978 * alloc.c (lisp_align_malloc): Change type of `aligned'.
13979
13980 * alloca.s: Remove.
13981
13982 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13983
13984 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
13985 use -lncurses.
13986
13987 * term.c (term_init): Use a buffer of size 4096 for tgetent since
13988 FreeBSD returns something longer than 2044. Abort if the end of
13989 the buffer is overwritten.
13990
13991 2003-08-19 Miles Bader <miles@gnu.org>
13992
13993 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
13994
13995 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13996
13997 * alloc.c (lisp_align_malloc): Check for memory full when
13998 allocating ablocks, which also avoids freeing a pointer into an
13999 ablocks structure.
14000
14001 * puresize.h (BASE_PURESIZE): Increase to 1100000.
14002
14003 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
14004
14005 2003-08-16 Richard M. Stallman <rms@gnu.org>
14006
14007 * editfns.c (Fencode_time): Doc fix.
14008
14009 2003-08-16 David Ponce <david@dponce.com>
14010
14011 * fileio.c (Fwrite_region): Fix conditional expression to issue
14012 the right message.
14013
14014 2003-08-16 Juri Linkov <juri@jurta.org>
14015
14016 * syntax.c (Fforward_word): Argument changed to optional.
14017 Set default value to 1.
14018
14019 2003-08-15 Kenichi Handa <handa@m17n.org>
14020
14021 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
14022 what autoscaled.
14023 (best_matching_font): Once we find a better scalable font, set
14024 non_scalable_has_exact_height_p to 1.
14025 (try_font_list): Call try_alternative_families to try any family
14026 with the given registry.
14027
14028 2003-08-09 Andreas Schwab <schwab@suse.de>
14029
14030 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
14031
14032 * print.c (print_string): Fix printing of multibyte string with
14033 nontrivial printcharfun.
14034
14035 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14036
14037 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
14038
14039 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
14040
14041 2003-07-31 Kenichi Handa <handa@m17n.org>
14042
14043 * process.c (read_process_output): Return the actually read bytes
14044 instead of the result of decoding.
14045
14046 2003-07-31 Kenichi Handa <handa@m17n.org>
14047
14048 * xterm.h (struct x_bitmap_record): New member have_mask.
14049
14050 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
14051 to 0.
14052 (x_create_bitmap_from_file): Likewise.
14053 (x_destroy_bitmap): Check have_mask member before freeing a mask.
14054 (x_destroy_all_bitmaps): Likewise.
14055 (x_create_bitmap_mask): Set have_mask member to 1.
14056
14057 2003-07-30 Richard M. Stallman <rms@gnu.org>
14058
14059 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
14060
14061 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14062
14063 * gtkutil.c (xg_mark_data): Update calls to mark_object.
14064
14065 2003-07-29 Richard M. Stallman <rms@gnu.org>
14066
14067 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
14068 Conditionalize XIM code on HAVE_XIM.
14069
14070 * fns.c (Fclear_string): New function.
14071 (syms_of_fns): defsubr it.
14072
14073 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14074
14075 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
14076
14077 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
14078
14079 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
14080
14081 * buffer.c (delete_all_overlays): New function.
14082 * buffer.h (delete_all_overlays): Declare.
14083 * coding.c (run_pre_post_conversion_on_str):
14084 * print.c (temp_output_buffer_setup):
14085 * fileio.c (Finsert_file_contents):
14086 * minibuf.c (get_minibuffer): Use it.
14087
14088 2003-07-22 Andrew Choi <akochoi@shaw.ca>
14089
14090 * unexmacosx.c (unexec_regions_sort_compare):
14091 (unexec_regions_merge): New functions. Sort and merge unexec
14092 regions before dumping them.
14093
14094 2003-07-22 Dave Love <fx@gnu.org>
14095
14096 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
14097
14098 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
14099
14100 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
14101 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
14102 MARKBIT as the gcmarkbit for strings.
14103
14104 2003-07-21 Richard M. Stallman <rms@gnu.org>
14105
14106 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
14107
14108 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
14109 (syms_of_fns): Corresponding change.
14110
14111 * alloc.c (syms_of_alloc): Doc fixes.
14112
14113 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
14114
14115 * s/netbsd.h: Use -Wl syntax.
14116
14117 2003-07-17 Richard M. Stallman <rms@gnu.org>
14118
14119 * xterm.c (xim_initialize): Redo 6/24 change.
14120
14121 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
14122
14123 * buffer.c (copy_overlays): Use EMACS_INT for positions.
14124 (Fswitch_to_buffer): Don't signal an error when switching to the same
14125 buffer in a dedicated window.
14126
14127 * alloc.c: Use bitmaps for cons, as was done for floats.
14128 (init_float, init_cons): Let the normal code allocate the first block.
14129 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
14130 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
14131 New macros.
14132 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
14133 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
14134 (live_cons_p): Check the pointer is not past the `conses' array.
14135 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
14136 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
14137 (survives_gc_p): Use CONS_MARKED_P and simplify.
14138 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
14139
14140 2003-07-13 Paul Eggert <eggert@twinsun.com>
14141
14142 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
14143 puts it into BSS instead, at least on Solaris 8 and 9.
14144 This is a valid optimization, and it may occur on other platforms,
14145 so Emacs should not assume that initializing a static variable to
14146 zero puts it into data.
14147 * alloc.c (pure, staticvec):
14148 Initialize these arrays to nonzero, so that they're not
14149 put into BSS by that optimization.
14150
14151 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
14152
14153 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
14154 (lisp_align_malloc): Use posix_memalign is available.
14155 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
14156 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
14157 for consistency. Update users.
14158
14159 2003-07-13 Richard M. Stallman <rms@gnu.org>
14160
14161 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
14162
14163 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
14164
14165 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
14166 and use the Gtk+ function gtk_window_icon_from_file if available.
14167
14168 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
14169 handle mask of bitmaps.
14170 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
14171 mask property.
14172 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
14173
14174 * xterm.h (xg_set_icon): New function.
14175
14176 2003-07-12 Paul Eggert <eggert@twinsun.com>
14177
14178 * unexelf.c (unexec): Consider a section to precede the .bss
14179 section if its addresses overlap that of .bss.
14180
14181 2003-07-12 Richard M. Stallman <rms@gnu.org>
14182
14183 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
14184
14185 * config.in (HAVE_CRTIN): Add #undef.
14186 (INLINE): Really inline only if OPTIMIZE is defined.
14187
14188 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
14189 END_FILES_1.
14190 (START_FILES_1, END_FILES_1): New macros (conditional).
14191 (LD_SWITCH_SYSTEM_TEMACS): Define.
14192
14193 * s/openbsd.h: Don't include bsd4-3.h.
14194 (TERMINFO): Define.
14195 (LIBS_TERMCAP): Define.
14196 (LD_SWITCH_SYSTEM): Define (two definitions).
14197
14198 * xfns.c: Include libpng/png.h instead of png.h.
14199
14200 2003-07-11 Andreas Schwab <schwab@suse.de>
14201
14202 * buffer.c (modify_overlay): Update prototype.
14203 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
14204 Likewise.
14205
14206 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14207
14208 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
14209 (struct interval): Move to intervals.h.
14210 (struct Lisp_Marker): Use EMACS_INT for position info.
14211 (forward_point): Remove prototype of defunct function.
14212 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
14213 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
14214 (syms_of_textprop, set_text_properties): Remove prototypes that are
14215 already in intervals.h.
14216
14217 * intervals.h (struct interval): Move from lisp.h.
14218 Use EMACS_INT for position and size info.
14219
14220 * coding.c: Include intervals.h for Fset_text_properties.
14221
14222 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14223 position and length information.
14224
14225 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14226
14227 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14228 position and length information.
14229
14230 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14231
14232 Change overlays_after and overlays_before so the overlays themselves
14233 are linked into lists, rather than using cons cells. After all each
14234 Lisp_Misc already occupies 5 words, so we can add a `next' field to
14235 Lisp_Overlay for free and save up one cons cell per overlay (not
14236 to mention one indirection when traversing the list of overlay).
14237
14238 * lisp.h (struct Lisp_Overlay): New field `next'.
14239
14240 * buffer.h (struct buffer): Change overlays_before and overlays_after
14241 from Lisp lists of overlays to pointers to overlays.
14242
14243 * buffer.c (overlay_strings, recenter_overlay_lists):
14244 Fix typo in eassert in last commit.
14245 (unchain_overlay): New function.
14246 (add_overlay_mod_hooklist): Use AREF.
14247 (copy_overlays, reset_buffer, overlays_at, overlays_in)
14248 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
14249 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
14250 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
14251 (report_overlay_modification, evaporate_overlays, init_buffer_once):
14252 Adjust to new type of overlays_(before|after).
14253
14254 * alloc.c (mark_object): Mark the new `next' field of overlays.
14255 (mark_buffer): Manually mark the overlays_(after|before) fields.
14256
14257 * coding.c (run_pre_post_conversion_on_str):
14258 * editfns.c (overlays_around):
14259 * xdisp.c (load_overlay_strings):
14260 * fileio.c (Finsert_file_contents):
14261 * indent.c (current_column):
14262 * insdel.c (signal_before_change, signal_after_change):
14263 * intervals.c (set_point_both):
14264 * print.c (temp_output_buffer_setup): Use new type for
14265 overlays_(before|after).
14266
14267 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
14268
14269 * buffer.c (report_overlay_modification): Don't run hooks while
14270 traversing the list of overlays.
14271
14272 * buffer.h (struct buffer): Use an int for overlay_center.
14273 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14274 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14275
14276 * buffer.c (reset_buffer, recenter_overlay_lists)
14277 (adjust_overlays_for_insert, adjust_overlays_for_delete)
14278 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
14279 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
14280 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14281 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14282
14283 * xdisp.c (fast_find_position): Remove unused var.
14284
14285 * cmds.c (Qexpand_abbrev): New sym.
14286 (syms_of_cmds): Initialize it.
14287 (internal_self_insert): Use it to call expand-abbrev.
14288
14289 2003-07-09 Kim F. Storm <storm@cua.dk>
14290
14291 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
14292 was configured with --without-xim.
14293 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
14294
14295 2003-07-07 Richard M. Stallman <rms@gnu.org>
14296
14297 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
14298
14299 * alloc.c (Fgarbage_collect): Doc fix.
14300
14301 2003-07-07 Nozomu Ando <nand@mac.com>
14302
14303 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
14304
14305 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14306
14307 * minibuf.c (read_minibuf): UNGCPRO before returning.
14308 (Ftry_completion, Fall_completions): Doc fix.
14309
14310 * alloc.c (live_float_p): Check that p is not past the `floats' array,
14311 now that `floats' is not the last element of the struct any more.
14312
14313 2003-07-06 Jason Rumney <jasonr@gnu.org>
14314
14315 * w32term.h (ClipboardSequence_Proc): New type.
14316
14317 * w32fns.c (clipboard_sequence_fn): New variable.
14318 (globals_of_w32fns): Initialize it.
14319
14320 * w32select.c (last_clipboard_sequence_number): New variable.
14321 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
14322 number if possible.
14323
14324 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14325
14326 * m/amdx86-64.h (MARKBIT):
14327 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
14328 MARKBIT and ARRAY_MARK_FLAG any more.
14329
14330 * m/hp800.h (XSETMARKBIT):
14331 * m/sr2k.h (XSETMARKBIT):
14332 * lisp.h (XSETMARKBIT): Remove unused macro.
14333
14334 * lisp.h (mark_object): Change prototype.
14335
14336 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
14337 (last_marked): Change accordingly.
14338 (mark_interval, mark_maybe_object, mark_maybe_pointer)
14339 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
14340 (mark_buffer): Update calls to mark_object.
14341
14342 * bytecode.c (mark_byte_stack):
14343 * fns.c (sweep_weak_table):
14344 * keyboard.c (mark_kboards): Update calls to mark_object.
14345
14346 2003-07-06 Jason Rumney <jasonr@gnu.org>
14347
14348 * alloc.c (struct ablock): Only include padding when there is some.
14349
14350 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
14351
14352 * alloc.c (ALIGN): Add casts to simplify usage.
14353 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
14354 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
14355 (struct ablock, struct ablocks): New types.
14356 (free_ablock): New global var.
14357 (lisp_align_malloc, lisp_align_free): New functions.
14358 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
14359 (struct float_block): Reorder and add gcmarkbits.
14360 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
14361 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
14362 (init_float, make_float): Use lisp_align_malloc.
14363 (free_float, live_float_p): Don't use `type' any more.
14364 (make_float): Use FLOAT_UNMARK to access to mark bit.
14365 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
14366 Use FLOAT_MARKED_P to access the mark bit.
14367 (pure_alloc): Simplify use of ALIGN.
14368 (mark_object): Use FLOAT_MARK to access the mark bit.
14369 (gc_sweep): Use new macros to access the float's mark bit.
14370 (init_alloc_once): Init free_ablock.
14371
14372 * lisp.h (struct Lisp_Float): Remove unused field `type'.
14373
14374 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
14375
14376 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
14377 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
14378 (allocate_buffer): Move.
14379 (string_bytes): Don't mask markbit of `size_byte'.
14380 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14381 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
14382 Use the `size' field of buffers (rather than the `name' field) for
14383 the mark bit, as is done for all other vectorlike objects.
14384 Use the new macros to access the mark bit of vectorlike objects.
14385
14386 2003-06-26 Richard M. Stallman <rms@gnu.org>
14387
14388 * puresize.h (BASE_PURESIZE): Increment base size.
14389
14390 * xdisp.c (fast_find_position): Enable Gerd's new definition.
14391
14392 * xterm.c (xim_initialize): Undo previous change.
14393
14394 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
14395
14396 * alloc.c (survives_gc_p): Simplify.
14397
14398 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
14399
14400 * window.c (Fset_window_dedicated_p): Simplify.
14401 (display_buffer_1): Don't raise the win from which minibuf was entered.
14402 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
14403 (Fminibuffer_selected_window): Simplify.
14404
14405 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
14406
14407 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
14408 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
14409
14410 * insdel.c (check_markers, adjust_markers_for_delete)
14411 (adjust_markers_for_insert, adjust_markers_for_replace)
14412 (prepare_to_modify_buffer, RESTORE_VALUE):
14413 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
14414 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
14415 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
14416 * alloc.c (Fmake_marker, free_marker, gc_sweep):
14417 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
14418 * editfns.c (save_excursion_restore, transpose_markers):
14419 * window.c (delete_window):
14420 * xdisp.c (message_dolog): Update for new types.
14421
14422 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14423
14424 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
14425 (realize_default_face): Use default_face_done_p for the force_p
14426 argument to set_lface_from_font_name. Set default_face_done_p to one.
14427
14428 * frame.c (make_frame): Initialize default_face_done_p.
14429
14430 * frame.h (struct frame): Add default_face_done_p.
14431
14432 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
14433 will be defined.
14434
14435 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
14436
14437 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
14438 Initialize the new field `gcmarkbit'.
14439 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
14440 (mark_interval_tree): Don't mark the tree separately from the nodes.
14441 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
14442 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
14443 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
14444
14445 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
14446 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
14447 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
14448 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
14449 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
14450
14451 2003-06-24 Dave Love <fx@gnu.org>
14452
14453 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
14454
14455 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
14456 from gnulib.
14457
14458 2003-06-21 Richard M. Stallman <rms@gnu.org>
14459
14460 * fileio.c (Fwrite_region): Alternate messages
14461 for append and partial write.
14462
14463 * keyboard.c (read_key_sequence): When converting upcase fn key to
14464 downcase, update fkey and keytran so `backspace' gets translated.
14465
14466 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
14467
14468 * process.c (wait_reading_process_input): Don't signal SIGIO
14469 in batch mode.
14470
14471 2003-06-17 Kenichi Handa <handa@m17n.org>
14472
14473 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
14474 composite.h.
14475
14476 * xselect.c: Don't include charset.h, coding.h, composite.h.
14477 (Qforeign_selection): New variable.
14478 (syms_of_xselect): Intern and static it.
14479 (selection_data_to_lisp_data): Return a unibyte string made from
14480 data with `foreign-selection' text property.
14481
14482 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
14483
14484 * termhooks.h (EVENT_INIT): New macro.
14485
14486 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
14487
14488 * alloc.c (mark_kboards): Move to keyboard.c.
14489
14490 * keyboard.c (record_asynch_buffer_change, read_avail_input):
14491 * xterm.c (x_dispatch_event):
14492 * xmenu.c (find_and_call_menu_selection):
14493 * xdisp.c (handle_tool_bar_click):
14494 * w32menu.c (menubar_selection_callback):
14495 * sysdep.c (kbd_input_ast, read_input_waiting):
14496 * msdos.c (dos_rawgetc):
14497 * macterm.c (mac_check_for_quit_char):
14498 * macmenu.c (menubar_selection_callback):
14499 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
14500 data to kbd_buffer_store_event.
14501
14502 2003-06-15 Kim F. Storm <storm@cua.dk>
14503
14504 * xdisp.c (x_fix_overlapping_area): Always use area relative X
14505 to fix redisplay problem with tall characters (such as \e,AC\e(B).
14506
14507 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14508
14509 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
14510
14511 2003-06-12 Kenichi Handa <handa@m17n.org>
14512
14513 * fileio.c (Fwrite_region): Save and restore restriction.
14514
14515 2003-06-12 Dave Love <fx@gnu.org>
14516
14517 * alloca.c (alloca): Declare arg as size_t.
14518
14519 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
14520 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
14521
14522 2003-06-11 Dave Love <fx@gnu.org>
14523
14524 * search.c (shrink_regexp_cache): Use xrealloc.
14525 (syms_of_search): Use xmalloc.
14526
14527 2003-06-10 Kim F. Storm <storm@cua.dk>
14528
14529 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
14530 Adjust phys_cursor.x to be relative to window box, rather than
14531 text area before checking -- to ensure cursor is redrawn when
14532 exposing window.
14533 Note: This also fixes a similar (older) bug if display margins
14534 are present.
14535
14536 2003-06-06 Kenichi Handa <handa@m17n.org>
14537
14538 * coding.c (encoding_buffer_size): If coding->type is
14539 coding_type_ccl, double magnification on CRLF encoding.
14540
14541 2003-06-06 Jason Rumney <jasonr@gnu.org>
14542
14543 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
14544 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
14545
14546 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
14547 Mac too.
14548
14549 2003-06-05 Dave Love <fx@gnu.org>
14550
14551 * strftime.c: Merge changes from gnulib.
14552
14553 * mktime.c (__mktime_internal): Merge changes from gnulib
14554 involving year 69 and dst2.
14555
14556 Changes to merge with gnulib version and be consistent with the
14557 autoconf test:
14558
14559 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
14560 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
14561 [HAVE_LOCALE_H]: Include locale.h.
14562 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
14563
14564 2003-06-05 Kim F. Storm <storm@cua.dk>
14565
14566 * window.c (coordinates_in_window): Convert X and Y to window
14567 relative coordinates inside mode-line and header-line parts.
14568 Convert X and Y to margin area relative coordinates inside left
14569 and right display margin parts.
14570
14571 2003-06-05 Jason Rumney <jasonr@gnu.org>
14572
14573 * w32fns.c (add_system_logical_colors_to_map): New function.
14574 (Fx_open_connection): Use it.
14575
14576 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
14577
14578 * process.c (allocate_pty): Revert part of the previous patch.
14579 (Faccept_process_output): Simplify.
14580
14581 2003-06-04 Jason Rumney <jasonr@gnu.org>
14582
14583 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
14584
14585 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
14586 (lispy_mouse_wheel_names): Remove.
14587 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
14588 Always define drag_and_drop_syms.
14589
14590 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
14591 WHEEL_EVENT events.
14592
14593 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
14594
14595 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
14596
14597 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
14598
14599 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14600
14601 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
14602 menu item label.
14603
14604 2003-06-03 Richard M. Stallman <rms@gnu.org>
14605
14606 * window.c (Fwindow_edges): Doc fix.
14607 (Fwindow_pixel_edges, Fwindow_inside_edges)
14608 (Fwindow_inside_pixel_edges): New functions.
14609 (syms_of_window): defsubr them.
14610
14611 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
14612 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
14613
14614 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
14615
14616 * dispnew.c (Fsit_for): Don't lie about the number of args.
14617
14618 2003-06-02 Dave Love <fx@gnu.org>
14619
14620 * callproc.c: Use HAVE_FCNTL_H, not USG5.
14621 (syms_of_callproc) <process-environment>: Doc fix.
14622
14623 * doc.c: Use HAVE_FCNTL_H, not USG5.
14624
14625 * xfaces.c (font_rescale_ratio): Fix for K&R.
14626
14627 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
14628
14629 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
14630
14631 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
14632
14633 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
14634 (xg_create_frame_widgets): Use ENCODE_UTF_8.
14635
14636 * xterm.c (Qutf_8): Move to coding.c
14637
14638 * xmenu.c (ENCODE_MENU_STRING): New.
14639 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
14640 Use it.
14641
14642 * coding.h (ENCODE_UTF_8): New.
14643 (Qutf_8): Declare.
14644
14645 * coding.c (Qutf_8): New.
14646 (syms_of_coding): Intern it.
14647
14648 * fns.c: Doc fixes.
14649
14650 2003-06-02 Kenichi Handa <handa@m17n.org>
14651
14652 * buffer.c (Fset_buffer_multibyte): Fix previous change.
14653
14654 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
14655
14656 * lread.c (openp): Make sure STR is a string.
14657
14658 2003-06-01 David Ponce <david@dponce.com>
14659
14660 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
14661 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
14662
14663 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
14664 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
14665 (discard_mouse_events): Discard WHEEL_EVENT events too.
14666 (lispy_wheel_names, wheel_syms): New.
14667 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
14668 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
14669 (make_lispy_event): Add WHEEL_EVENT handler.
14670
14671 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
14672 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14673 WHEEL_EVENT events.
14674
14675 2003-05-31 John Paul Wallington <jpw@gnu.org>
14676
14677 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
14678 timer are in lisp/emacs-lisp.
14679
14680 2003-05-31 Kenichi Handa <handa@m17n.org>
14681
14682 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
14683 region when a buffer is changed to unibyte.
14684
14685 * charset.h (VALID_LEADING_CODE_P): New macro.
14686 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
14687
14688 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
14689 is nonzero, accept multibyte form of eight-bit-control chars.
14690 (decode_composition_emacs_mule): Likewise.
14691 (decode_coding_emacs_mule): Likewise.
14692 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
14693 multibyte form of eight-bit-control chars.
14694
14695 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
14696 (Finsert_file_contents): If coding-system-for-read is bound to
14697 Qauto_save_coding, use the coding system emacs-mule with special
14698 setting for recovering a file.
14699 (choose_write_coding_system): On auto saving, use the coding
14700 system emacs-mule with special setting for auto saving.
14701 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
14702
14703 2003-05-30 Kenichi Handa <handa@m17n.org>
14704
14705 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
14706 properly before calling ccl_driver.
14707
14708 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
14709
14710 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
14711 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
14712 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
14713
14714 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
14715
14716 * xfaces.c (realize_default_face): Do not abort if lface is
14717 non-existent - reverts change from 2003-05-19.
14718
14719 2003-05-29 Kenichi Handa <handa@m17n.org>
14720
14721 * coding.c (decode_coding_iso2022): Pay attention to the byte
14722 sequence of CTEXT extended segment, and retain those bytes as is.
14723
14724 2003-05-28 Kenichi Handa <handa@m17n.org>
14725
14726 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
14727 of CODING_REPLACEMENT_CHARACTER.
14728 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
14729 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
14730 check this flag on encoding.
14731 (encode_coding_sjis_big5):
14732 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
14733 (Fset_terminal_coding_system_internal):
14734 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
14735 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
14736
14737 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
14738 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14739 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
14740
14741 2003-05-28 Richard M. Stallman <rms@gnu.org>
14742
14743 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
14744
14745 * eval.c (unbind_to): Move init of this_binding to separate statement.
14746
14747 2003-05-28 Kim F. Storm <storm@cua.dk>
14748
14749 * xdisp.c (expose_window): Fix error in calculation of
14750 window relative coordinates of area to redisplay.
14751
14752 2003-05-27 Jason Rumney <jasonr@gnu.org>
14753
14754 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
14755
14756 2003-05-27 David Ponce <david@dponce.com>
14757
14758 Handle W32 mouse wheel events as mouse click events, like in X.
14759
14760 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
14761 MOUSE_WHEEL_EVENT anymore.
14762
14763 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
14764 Scrolling down/up the mouse wheel is respectively mapped to mouse
14765 button 4 and 5.
14766 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
14767 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
14768 WM_MOUSEWHEEL events.
14769
14770 2003-05-27 Andreas Schwab <schwab@suse.de>
14771
14772 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
14773
14774 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
14775 partially visible line.
14776
14777 * alloc.c (Fgarbage_collect): Fix last change.
14778
14779 2003-05-26 John Paul Wallington <jpw@gnu.org>
14780
14781 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
14782
14783 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
14784
14785 * window.c (Fset_window_buffer): Add type of `keep_margins'.
14786 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
14787
14788 * window.h (window_box_text_cols): Declare.
14789
14790 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
14791 (x_draw_vertical_border): Remove unused var `f'.
14792
14793 * xfaces.c (build_scalable_font_name): Remove `unused var
14794 pixel_size' warning.
14795
14796 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
14797
14798 * unexelf.c (unexec): Remove `unused var n' warning.
14799
14800 * strftime.c (my_strftime_localtime_r): Remove `defined but
14801 unused' warning.
14802
14803 * process.c (allocate_pty): Remove `unused var stb' and
14804 `cp might be used uninitialized' warnings.
14805
14806 * dispnew.c (mode_line_string): Remove unused var `f'.
14807
14808 * coding.c (find_safe_codings): Remove unused var `i'.
14809
14810 * bytecode.c (Fbyte_code): Remove `unused val' warning.
14811
14812 * buffer.c (Fkill_buffer): Remove unused var `list'.
14813
14814 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
14815
14816 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14817
14818 * frame.c (make_frame): Condition want_fullscreen with
14819 HAVE_WINDOW_SYSTEM.
14820
14821 2003-05-25 Juanma Barranquero <lektu@terra.es>
14822
14823 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
14824 (Fwindow_scroll_bars): Fix typo in docstring.
14825
14826 2003-05-24 Kim F. Storm <storm@cua.dk>
14827
14828 The following changes serve several purposes:
14829
14830 1) Swap the position of fringes and display margins in windows, i.e.
14831 the fringes are now displayed between the margins and the text area
14832 (by default).
14833
14834 2) Allow fringe and scroll bar parameters to be set per-buffer and
14835 per-window (like display margins). Such settings are now stored
14836 in window configurations, preserved when frames are resized, and
14837 copied when windows are split vertically or horizontally.
14838 Several bugs related to display margins have been fixed.
14839
14840 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
14841
14842 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
14843 rather than FRAME_WIDTH (FRAME_FONT (f)).
14844
14845 5) Introduce a consistent naming of variables, members and macros
14846 depending on whether their value is measured in pixels or in
14847 canonical columns/lines. Pixel dimensions are named *_width and
14848 *_height, while canonical columns/lines are named *_cols and
14849 *_lines. Pixel positions are named *_x and *_y, while column/line
14850 positions are named *_col and *_line.
14851
14852 6) Consolidate more of the X, W32, and MAC gui code by moving
14853 common data into struct frame, and generalize it for the non-gui
14854 case by using suitable defaults.
14855
14856 7) Cleanup and consolidate the macros controlling frame and window
14857 layout into frame.h and window.h, and generalize the use of the
14858 various window_box_* functions (enhanced to handle the new fringe
14859 position and the per-window fringe and scroll bar settings).
14860
14861 * frame.h (struct frame): Rename members height to text_lines,
14862 width to text_cols, window_height to total_lines, window_width to
14863 total_cols, new_height to new_text_lines, new_width to
14864 new_text_cols. All uses changed.
14865 (struct frame): New members which consolidate common members of
14866 x_output, w32_output, and mac_output structures: left_pos,
14867 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
14868 win_gravity, size_hint_flags, border_width, internal_border_width,
14869 line_height, fringe_cols, left_fringe_width, right_fringe_width,
14870 want_fullscreen. All uses changed.
14871 (struct frame): New member column_width contaning the canonical
14872 column width, analogue to line_height. All uses changed.
14873 (struct frame): Rename members scroll_bar_pixel_width to
14874 config_scroll_bar_width, and scroll_bar_cols to
14875 config_scroll_bar_cols. All uses changed.
14876 (struct frame): New member scroll_bar_actual_width which
14877 consolidates and renames the vertical_scroll_bar_extra member of
14878 x_output, w32_output, and mac_output structures. All uses changed.
14879 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
14880 from x/w32/macterm.h files. All uses changed. Also change code
14881 which referred to f->output_data...->pixel_height.
14882 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
14883 from x/w32/macterm.h files. All uses changed. Also change code
14884 which referred to f->output_data...->pixel_width.
14885 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
14886 Also change code which referred to f->height.
14887 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
14888 Also change code which referred to f->width.
14889 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
14890 to update new_text_lines and new_text_cols members directly.
14891 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
14892 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
14893 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
14894 FRAME_SCROLL_BAR_COLS. All uses changed.
14895 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
14896 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
14897 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
14898 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
14899 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
14900 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
14901 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
14902 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
14903 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
14904 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
14905 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
14906 Unconditionally return line_height member (it now has proper value
14907 also for non-window frames).
14908 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
14909 return new column_width member (rather than the default font width).
14910 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
14911 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
14912 from x/w32/macterm.h files. Unconditionally return corresponding
14913 member of frame structure (they now have proper values also for
14914 non-window frames).
14915 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
14916 Calculate return value from left and right widths.
14917 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
14918 internal_border_width member (has proper value for non-window frame).
14919 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
14920 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
14921 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
14922 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
14923 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
14924 consolidated from xterm.h, macterm.h, and w32term.h.
14925 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
14926 consolidated from xterm.h, macterm.h, and w32term.h.
14927 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
14928 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
14929 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
14930 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
14931 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
14932 consolidated from x/mac/w32term.h.
14933 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
14934 consolidated from x/mac/w32term.h.
14935 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
14936 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
14937 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
14938 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
14939
14940 * window.h (struct window): Rename members left to left_col,
14941 top to top_line, height to total_lines, width to total_cols,
14942 left_margin_width to left_margin_cols, right_margin_width to
14943 right_margin_cols, orig_height to orig_total_lines, orig_top to
14944 orig_top_line. All uses changed.
14945 (struct window): New members left_fringe_width, right_fringe_width,
14946 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
14947 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
14948 New macros primarily used to simplify other macros.
14949 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
14950 referred to XINT (w->width).
14951 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
14952 referred to XINT (w->height).
14953 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
14954 referred to XINT (w->width) * canon_x_unit.
14955 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
14956 referred to XINT (w->height) * canon_y_unit.
14957 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
14958 referred to XINT (w->left).
14959 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
14960 all uses and code that referred to XINT (w->left) + XINT (w->width).
14961 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
14962 referred to XINT (w->top).
14963 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
14964 referred to XINT (w->top) + XINT (w->height).
14965 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
14966 referred to XINT (w->left) * canon_x_unit.
14967 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
14968 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
14969 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
14970 referred to XINT (w->top) * canon_y_unit.
14971 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
14972 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
14973 (WINDOW_LEFTMOST_P): New macro.
14974 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
14975 All uses changed.
14976 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
14977 All uses changed.
14978 (WINDOW_BOX_LEFT_EDGE_X): Rename from
14979 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
14980 Do not exclude left fringe width.
14981 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
14982 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
14983 Do not exclude fringe widths.
14984 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
14985 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
14986 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
14987 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
14988 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
14989 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
14990 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
14991 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
14992 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
14993 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
14994 New macros. Change code which referenced corresponding
14995 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
14996 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
14997 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
14998 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
14999 allow per-window scroll-bar settings.
15000 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
15001 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
15002 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
15003 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
15004 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
15005 FRAME_SCROLL_BAR_WIDTH.
15006 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
15007 (WINDOW_SCROLL_BAR_AREA_X): New macros.
15008 (WINDOW_HEADER_LINE_HEIGHT): Rename from
15009 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
15010 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
15011 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
15012 (WINDOW_BOX_TEXT_HEIGHT): Rename from
15013 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
15014 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15015 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15016 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
15017 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
15018 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15019 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
15020 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15021 (window_from_coordinates): Update prototype.
15022 (Fset_window_buffer): Update EXFUN.
15023 (set_window_buffer): Update prototype.
15024
15025 * dispextern.h (struct glyph_matrix): Rename members window_left_x
15026 to window_left_col, window_top_y to window_top_line. All uses
15027 changed.
15028 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
15029 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
15030 internal_border_width is now set to 0 for non-window frames.
15031 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
15032 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
15033 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
15034 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
15035 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
15036 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15037 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15038 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
15039 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
15040 Move to window.h and renamed [see window.h changes].
15041 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
15042 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
15043 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
15044 Use WINDOW_TOTAL_LINES.
15045 (frame_update_line_height): Remove prototype.
15046
15047 * buffer.h (struct buffer): Rename members measured in columns:
15048 left_margin_width to left_margin_cols, right_margin_width to
15049 right_margin_cols. All uses changed.
15050 New members left_fringe_width, right_fringe_width,
15051 fringes_outside_margins for per-buffer fringe settings.
15052 New members scroll_bar_width and vertical_scroll_bar_type for
15053 per-buffer scroll bar settings.
15054
15055 * buffer.c (init_buffer_once): Set buffer_defaults and
15056 buffer_local_flags for new buffer-local variables
15057 left_fringe_width, right_fringe_width, fringes_outside_margins,
15058 scroll_bar_width, and vertical_scroll_bar_type.
15059 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
15060 default-* variables for them.
15061
15062 * dispnew.c: Make (many) trivial substitutions for renamed and
15063 new macros in dispextern.h, frame.h and window.h.
15064 (mode_line_string): No need to adjust width for mode lines, as it
15065 is already adjusted by the caller.
15066 (marginal_area_string): Handle fringes inside/outside margins.
15067
15068 * frame.c: Make (many) trivial substitutions for renamed and
15069 new macros in dispextern.h, frame.h and window.h.
15070 (make_frame): Initialize left_fringe_width, right_fringe_width,
15071 fringe_cols, scroll_bar_actual_width, border_width,
15072 internal_border_width, column_width, line_height, x_pixels_diff,
15073 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
15074 members with values suitable for a non-window frames.
15075
15076 * gtkutil.c: Make (many) trivial substitutions for renamed and
15077 new macros in dispextern.h, frame.h and window.h.
15078
15079 * indent.c: Make (few) trivial substitutions for renamed and
15080 new macros in dispextern.h, frame.h and window.h.
15081
15082 * keyboard.c: Make (many) trivial substitutions for renamed and
15083 new macros in dispextern.h, frame.h and window.h.
15084 (make_lispy_event): Use window positions returned from
15085 window_from_coordinates when constructing the lisp event for
15086 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
15087 (incorrect) values locally.
15088 (make_lispy_movement): Use window positions returned from
15089 window_from_coordinates when constructing the lisp event, rather
15090 than calculating (incorrect) values locally.
15091
15092 * scroll.c: Make (some) trivial substitutions for renamed and
15093 new macros in dispextern.h, frame.h and window.h.
15094
15095 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
15096 scroll-bars.
15097
15098 * sysdep.c: Make (few) trivial substitutions for renamed and
15099 new macros in dispextern.h, frame.h and window.h.
15100
15101 * term.c: Make (some) trivial substitutions for renamed and
15102 new macros in dispextern.h, frame.h and window.h.
15103
15104 * widget.c: Make (few) trivial substitutions for renamed and
15105 new macros in dispextern.h, frame.h and window.h.
15106
15107 * window.c: Make (many) trivial substitutions for renamed and
15108 new macros in dispextern.h, frame.h and window.h.
15109 (make_window): Initialize new members
15110 left_margin_cols, right_margin_cols, left_fringe_width,
15111 right_fringe_width, fringes_outside_margins, scroll_bar_width,
15112 and vertical_scroll_bar_type.
15113 (coordinates_in_window): Adapt to new fringe/margin positions
15114 and per-window fringes and scroll-bars.
15115 Fix bug related to incorrectly adjusting coordinates by
15116 frame's internal_border_width (the effect normally negible since
15117 the internal_border_width is typically 0 or 1 pixel, but very
15118 noticeable for an internal_border_width of e.g. 25 pixels).
15119 Upon successful return (other than ON_NOTHING), the coordinates
15120 are now always properly converted to window relative for the
15121 given display element.
15122 (window_from_coordinates): Add new parameters wx and wy to
15123 return the window relative x and y position in the returned
15124 window and part. A null arg means, don't return the position.
15125 All callers changed.
15126 (adjust_window_margins): New function which may reduce the width
15127 of the display margins if a window's text area is too small after
15128 resizing or splitting windows.
15129 (size_window): Fix bug that did not account for display margin
15130 widths when checking the minimum width of a window; use
15131 adjust_window_margins.
15132 (set_window_buffer): Call Fset_window_fringes and
15133 Fset_window_scroll_bars to setup per-window elements.
15134 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
15135 existing display margin, fringe widths, and scroll bar settings
15136 (e.g. after splitting a window or resizing the frame).
15137 All callers changed.
15138 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
15139 (Fsplit_window): Duplicate original window's display margin,
15140 fringe, and scroll-bar settings; then call Fset_window_buffer with
15141 KEEP_MARGINS non-nil. This fixes a bug which caused a split
15142 window to only preserve the display margins in one of the windows.
15143 When splitting horizontally, call adjust_window_margins on both
15144 windows to ensure that the text area of the new windows is non too
15145 narrow. This fixes a bug which could cause Emacs to trap if the
15146 width of the split window was less than the width of the display
15147 margins.
15148 (window_box_text_cols): Rename from window_internal_width.
15149 All uses changed. Adapt to per-window fringes and scroll bars.
15150 Fix bug that caused vertical separator to be subtracted also on
15151 window frames. Fix another bug that did not reduce the returned
15152 value by the columns used for display margins.
15153 (window_scroll_line_based): Fix bug related to scrolling too much
15154 when display margins are present (implicitly fixed by the fix to
15155 window_box_text_cols).
15156 (scroll_left, scroll_right): Fix bug related to scrolling too far
15157 by default when display margins are present (implicitly fixed by
15158 the fix to window_box_text_cols).
15159 (struct saved_window): Rename members left to left_col, top to
15160 top_line, width to total_cols, height to total_lines, orig_top to
15161 orig_top_line, orig_height to orig_total_lines. All uses changed.
15162 New members left_margin_cols, right_margin_cols,
15163 left_fringe_width, right_fringe_width, fringes_outside_margins,
15164 scroll_bar_width, and vertical_scroll_bar_type for saving
15165 per-window display elements.
15166 (Fset_window_configuration): Restore display margins, fringes,
15167 and scroll bar settings. This fixes a bug which caused display
15168 margins to be discarded when saving and restoring a window
15169 configuration.
15170 (save_window_save): Save display margins, fringes, and scroll bar
15171 settings. This fixes a bug which caused display margins to be
15172 discarded when saving and restoring a window configuration.
15173 (Fset_window_margins): Do nothing if display margins are not
15174 really changed. Otherwise, call adjust_window_margins to ensure
15175 the text area doesn't get too narrow. This fixes a bug which
15176 could cause Emacs to trap if setting display margins wider than
15177 the width of the window.
15178 (Fset_window_fringes): New defun to allow user to specifically set
15179 this window's fringe widths and position vs. display margins.
15180 (Fwindow_fringes): New defun to return window's actual fringe settings.
15181 (Fset_window_scroll_bars): New defun to allow user to specifically
15182 set this window's scroll bar width and position.
15183 (Fwindow_scroll_bars): New defun to return window's actual scroll
15184 bar settings.
15185 (compare_window_configurations): Also compare display margins,
15186 fringes, and scroll bar settings.
15187 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
15188
15189 * xdisp.c: Make (many) trivial substitutions for renamed and
15190 new macros in dispextern.h, frame.h and window.h.
15191 (window_box_width): Adapt to per-window fringes and scroll bars,
15192 and new fringe vs. display margin position. Note that returned
15193 value is no longer guaranteed to be a whole multiple of the frame
15194 column width, since per-window fringes may now be any width.
15195 (window_box_left_offset): New function like window_box_left, but
15196 value is relative to left border of window (rather than frame).
15197 (window_box_right_offset): New function like window_box_right,
15198 but value is relative to left border of window.
15199 (window_box_left): Adapt to per-window fringes and scroll bars,
15200 and new fringe vs. display margin position. Simplify by using
15201 WINDOW_LEFT_EDGE_X and window_box_left_offset.
15202 (window_box): Allow null args for unnecessary return values;
15203 change/simplify relevant callers.
15204 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
15205 and new fringe vs. display margin position.
15206 Use window_box_left_offset and window_box_right_offset
15207 (get_glyph_string_clip_rect): Adapt to per-window fringes and
15208 scroll bars, and new fringe vs. display margin position.
15209 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
15210 (draw_fringe_bitmap): Rework to handle per-window fringes and new
15211 fringe vs. display margin position.
15212 (hscroll_window_tree): Use window_box_width instead of window_box.
15213 (redisplay_window): Adapt to per-window scroll bars.
15214 (draw_glyphs): Rework to handle per-window fringes and scroll
15215 bars, and new fringe vs. display margin position.
15216 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
15217 (x_clear_end_of_line): Adapt to per-window fringes and scroll
15218 bars, and new fringe vs. display margin position. Fix bug which
15219 increased total width of full_width rows by width of scroll bars
15220 although window's total width already includes that.
15221 (x_fix_overlapping_area): Simplify using window_box_left_offset.
15222 (expose_area): Simplify using window_box_left_offset.
15223 (x_draw_vertical_border): Handle per-window scroll bar settings,
15224 mixing windows with left, right and no scroll bars.
15225
15226 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
15227 where it's used in x_list_fonts (for clarity).
15228 (frame_update_line_height): Remove unused function; functionality
15229 is now done directly when setting the default font in x_set_font.
15230
15231 * xfns.c: Make (many) trivial substitutions for renamed and
15232 new macros in dispextern.h, frame.h and window.h.
15233
15234 * xmenu.c: Make (some) trivial substitutions for renamed and
15235 new macros in dispextern.h, frame.h and window.h.
15236
15237 * xterm.h (struct x_output): Move members left_pos, top_pos,
15238 border_width, pixel_height, pixel_width, line_height,
15239 internal_border_width, vertical_scroll_bar_extra,
15240 left_fringe_width, right_fringe_width, fringe_cols,
15241 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15242 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15243 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15244 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15245 (PIXEL_WIDTH, PIXEL_HEIGHT)
15246 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15247 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15248 frame.h and renamed [see frame.h changes].
15249 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15250 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15251 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15252 and renamed [see frame.h changes].
15253
15254 * xterm.c: Make (several) trivial substitutions for renamed and
15255 new macros in dispextern.h, frame.h and window.h.
15256 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15257 (scroll_run): Adapt to new fringe position.
15258 (glyph_rect): Use window coordinates returned from
15259 window_from_coordinates rather than frame_to_window_pixel_xy.
15260 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15261 scroll-bars.
15262 (handle_one_xevent): Simplify a USE_GTK conditional.
15263 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15264 (fringes are now inside margins, i.e. always in the clipping area).
15265 All callers changed.
15266 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15267 directly, then call compute_fringe_widths. Don't call
15268 frame_update_line_height.
15269
15270 * w32term.h (struct w32_output): Move members left_pos, top_pos,
15271 border_width, pixel_height, pixel_width, line_height,
15272 internal_border_width, vertical_scroll_bar_extra,
15273 left_fringe_width, right_fringe_width, fringe_cols,
15274 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15275 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15276 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15277 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15278 (PIXEL_WIDTH, PIXEL_HEIGHT)
15279 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15280 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15281 frame.h and renamed [see frame.h changes].
15282 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15283 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15284 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15285 and renamed [see frame.h changes].
15286
15287 * w32term.c: Make (several) trivial substitutions for renamed and
15288 new macros in dispextern.h, frame.h and window.h.
15289 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15290 (glyph_rect): Use window coordinates returned from
15291 window_from_coordinates rather than frame_to_window_pixel_xy.
15292 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15293 scroll-bars.
15294 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
15295 (fringes are now inside margins, i.e. always in the clipping area).
15296 All callers changed.
15297 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15298 directly, then call compute_fringe_widths. Don't call
15299 frame_update_line_height.
15300
15301 * w32console.c: Make (few) trivial substitutions for renamed and
15302 new macros in dispextern.h, frame.h and window.h.
15303
15304 * w32fns.c: Make (many) trivial substitutions for renamed and
15305 new macros in dispextern.h, frame.h and window.h.
15306
15307 * w32menu.c: Make (few) trivial substitutions for renamed and
15308 new macros in dispextern.h, frame.h and window.h.
15309
15310 * macterm.h (struct mac_output): Move members left_pos, top_pos,
15311 border_width, pixel_height, pixel_width, line_height,
15312 internal_border_width, vertical_scroll_bar_extra,
15313 left_fringe_width, right_fringe_width, fringe_cols,
15314 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15315 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
15316 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15317 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15318 (PIXEL_WIDTH, PIXEL_HEIGHT)
15319 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15320 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15321 frame.h and renamed [see frame.h changes].
15322 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15323 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15324 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15325 and renamed [see frame.h changes].
15326
15327 * macterm.c: Make (several) trivial substitutions for renamed and
15328 new macros in dispextern.h, frame.h and window.h.
15329 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15330 (glyph_rect): Use window coordinates returned from
15331 window_from_coordinates rather than frame_to_window_pixel_xy.
15332 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15333 scroll-bars.
15334 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15335 (fringes are now inside margins, i.e. always in the clipping area).
15336 All callers changed.
15337 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15338 directly, then call compute_fringe_widths. Don't call
15339 frame_update_line_height.
15340
15341 * macfns.c: Make (several) trivial substitutions for renamed and
15342 new macros in dispextern.h, frame.h and window.h.
15343 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
15344
15345 * macmenu.c: Make (few) trivial substitutions for renamed and
15346 new macros in dispextern.h, frame.h and window.h.
15347
15348 * msdos.h (struct x_output): Remove members left_pos, top_pos,
15349 and line_height, and use corresponding new members in struct
15350 frame. All uses changed.
15351 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
15352 superseeded by corresponding macros in frame.h.
15353
15354 * msdos.c: Make (several) trivial substitutions for renamed and
15355 new macros in dispextern.h, frame.h and window.h.
15356 (IT_note_mouse_highlight): Use updated window coordinates returned
15357 by window_from_coordinates, rather than adjusting them locally.
15358 (internal_terminal_init): No need to initialize line_height here;
15359 it now defaults to 1.
15360
15361 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
15362
15363 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
15364 dropping `down' events.
15365
15366 2003-05-24 Andreas Schwab <schwab@suse.de>
15367
15368 * coding.c (find_safe_codings): Fix last change.
15369
15370 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
15371
15372 * xfns.c (x_window): Fix typo from 2003-05-21 change.
15373
15374 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
15375
15376 * xdisp.c (display_mode_element): Increase max depth.
15377 Simplify the error handling code. Use a different error string
15378 for the case where we hit the depth limit.
15379
15380 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
15381
15382 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
15383
15384 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
15385
15386 * intervals.c (get_local_map): Don't get char-property of previous
15387 point any more: get_pos_property already does it and better.
15388
15389 2003-05-21 Dave Love <fx@gnu.org>
15390
15391 [Merged from unicode branch.]
15392
15393 * xfns.c (x_window, x_window): Use use_xim.
15394
15395 * xterm.c (use_xim): Initialize.
15396 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15397 (x_term_init): Maybe set use_xim.
15398
15399 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15400
15401 2003-05-21 Jason Rumney <jasonr@gnu.org>
15402
15403 * unexw32.c (_start): Remove _fmode initialization.
15404
15405 * emacs.c (main) [WINDOWSNT]: Move it here.
15406
15407 2003-05-20 Dave Love <fx@gnu.org>
15408
15409 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
15410
15411 2003-05-19 Richard M. Stallman <rms@gnu.org>
15412
15413 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
15414 as value for QCfont attribute.
15415 (realize_default_face): lface should already exist; crash if not.
15416 Specify 0 for FORCE_P when calling set_lface_from_font_name.
15417
15418 * frame.c (Fignore_event): Doc fix.
15419
15420 2003-05-19 Kenichi Handa <handa@m17n.org>
15421
15422 * coding.c (decode_coding_string): Handle post-read-conversion
15423 even if the coding doesn't require decoding.
15424
15425 2003-05-18 Richard M. Stallman <rms@gnu.org>
15426
15427 * callproc.c (Fcall_process_region): Doc fix.
15428
15429 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15430
15431 * lread.c (Fload): Print a message if package is obsolete.
15432
15433 * window.c (Fselect_window): Add optional `norecord' arg.
15434 (select_window_1): Fold into Fselect_window.
15435 (select_window_norecord): New function.
15436 (temp_output_buffer_show): Use it. Preserve current buffer.
15437
15438 * window.h (Fselect_window): Update declaration.
15439
15440 * window.c (delete_window, Fother_window, Fset_window_configuration):
15441 * minibuf.c (read_minibuf):
15442 * macterm.c (x_new_focus_frame):
15443 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
15444 * callint.c (Fcall_interactively):
15445 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
15446
15447 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
15448
15449 2003-05-17 David Kastrup <dak@gnu.org>
15450
15451 * process.c (read_process_output): Back out change from 2003-03-09.
15452
15453 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
15454
15455 * editfns.c (get_pos_property): Don't assume that `object' = nil.
15456
15457 * textprop.c (text_property_stickiness): New arg `buffer'.
15458
15459 * intervals.h (text_property_stickiness): New arg `buffer'.
15460 (get_pos_property): Declare.
15461
15462 * intervals.c (get_local_map): Use get_pos_property, to obey
15463 stickiness and empty overlays.
15464 (create_root_interval, graft_intervals_into_buffer): Use BEG.
15465 (merge_properties, intervals_equal, merge_properties_sticky):
15466 Use XCAR, XCDR.
15467 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
15468
15469 2003-05-17 Richard M. Stallman <rms@gnu.org>
15470
15471 * minibuf.c (read_minibuf): If buffer is empty, record the default
15472 in the history.
15473 (Fminibuffer_complete_word): When deleting the overlap, take account
15474 of its real position.
15475
15476 * fns.c (map_char_table): Fix previous change.
15477
15478 * syntax.c (find_defun_start):
15479 When open_paren_in_column_0_is_defun_start,
15480 return beginning of buffer.
15481
15482 * lisp.h (map_char_table): Declare added arg.
15483
15484 * fns.c (map_char_table): New arg TABLE gets the master table.
15485 All calls changed.
15486 Process default and inheritance, resorting to Faref if necessary.
15487
15488 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15489 (Faccessible_keymaps): Pass new arg to map_char_table.
15490
15491 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
15492
15493 * casetab.c (set_case_table): Pass new arg to map_char_table.
15494
15495 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
15496
15497 * lisp.h (specbinding_func): New typedef.
15498 (struct specbinding): Use specbinding_func, to put the `volatile'
15499 in the right place.
15500
15501 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
15502 to avoid GCC warning.
15503
15504 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
15505
15506 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
15507
15508 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
15509
15510 * keyboard.c (apply_modifiers): Don't fill the other cache.
15511
15512 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
15513
15514 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
15515
15516 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
15517 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
15518 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
15519 (Fset_window_configuration, Fcurrent_window_configuration)
15520 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
15521 (Fpos_visible_in_window_p, mark_window_cursors_off)
15522 (window_internal_height, window_internal_width, Frecenter)
15523 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
15524 (replace_buffer_in_all_windows, init_window_once, init_window)
15525 (syms_of_window, keys_of_window): Move from lisp.h.
15526 * lisp.h: Move window.c declarations to window.h.
15527
15528 * bytecode.c: Include window.h.
15529 * emacs.c: Include window.h.
15530
15531 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
15532 (keyremap): Add `parent' field.
15533 (keyremap_step): Use it. Remove `parent' argument.
15534 (read_key_sequence): Setup and use the new `parent' field.
15535
15536 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
15537
15538 * keyboard.c (adjust_point_for_property): Ensure termination.
15539
15540 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
15541
15542 * keyboard.c (follow_key): Remove dead variable `did_meta'.
15543 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
15544 duplicated handling of function-key-map and key-translation-map
15545 in read_key_sequence.
15546 (read_key_sequence): Use them.
15547
15548 * keyboard.c (adjust_point_for_property): Try harder to move point
15549 to the non-sticky end of an invisible property.
15550
15551 * xdisp.c (single_display_prop_intangible_p): Make `space' display
15552 property intangible as well.
15553
15554 2003-05-10 Andreas Schwab <schwab@suse.de>
15555
15556 * xmenu.c (single_menu_item): Change last parameter to void* to
15557 avoid warning.
15558
15559 2003-05-09 Richard M. Stallman <rms@gnu.org>
15560
15561 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
15562 Bind Qinhibit_modification_hooks to t so there will be no GC.
15563 Rename local `tem' to `save_deactivate_mark'.
15564
15565 * eval.c (specpdl_ptr): Declare volatile.
15566 (unbind_to): Copy the whole binding and decrement specpdl_ptr
15567 before doing the work of unbinding it.
15568
15569 * lisp.h (struct specbinding): Declare elements volatile.
15570 (specpdl_ptr): Declare volatile.
15571
15572 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
15573
15574 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
15575 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
15576
15577 2003-05-08 Dave Love <fx@gnu.org>
15578
15579 * coding.c (Vlast_coding_system_used): Doc fix.
15580
15581 2003-05-07 Jason Rumney <jasonr@gnu.org>
15582
15583 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
15584 when system does not support them.
15585
15586 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
15587
15588 * fileio.c (Qwrite_region_annotate_functions): New var.
15589 (build_annotations): Use it to process the global part of the hook.
15590 (syms_of_fileio): Init and staticpro it.
15591
15592 * keyboard.c (safe_run_hooks_error): Display a message instead of
15593 silently ignoring the error.
15594
15595 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
15596
15597 * keyboard.c (input_available_signal): Mark static.
15598 (menu_bar_items): Use map_keymap.
15599 (menu_bar_one_keymap): Remove.
15600 (menu_bar_item): Adjust arglist (for use in map_keymap).
15601 Properly hide a second binding when not both are keymaps.
15602
15603 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
15604 (single_keymap_panes): Use it and map_keymap.
15605 (single_menu_item): Use skp as well.
15606
15607 * keymap.h (map_keymap_function_t): New type.
15608 (map_keymap): Declare.
15609
15610 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
15611 (map_keymap_call, Fmap_keymap): New functions.
15612 (syms_of_keymap): Defsubr map-keymap.
15613
15614 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15615
15616 * gtkutil.c (create_dialog, make_widget_for_menu_item)
15617 (make_menu_item, create_menus, xg_update_menu_item): Don't call
15618 ..._with_mnemonic functions for menu items.
15619
15620 2003-05-01 Kenichi Handa <handa@m17n.org>
15621
15622 * coding.c (coding_system_accept_latin_extra_p): Delete this
15623 function.
15624 (find_safe_codings): Pay attention to
15625 the property tranlsation-table-for-encode of each codings.
15626 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
15627
15628 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
15629
15630 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
15631
15632 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
15633
15634 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
15635
15636 * lisp.h (CHECK): Wrap args in parenthesis.
15637 (specbind): Fix doc: symbol = Qnil is not supported any more.
15638
15639 * bytecode.c (Fbyte_code) <unwind-protect>:
15640 Use Fprogn rather than 0 and Qnil.
15641
15642 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
15643 `double', and `triple' modifiers as well.
15644
15645 2003-04-30 Richard M. Stallman <rms@gnu.org>
15646
15647 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
15648
15649 * alloc.c (abort_on_gc): New variable.
15650 (Fgarbage_collect): Abort if abort_on_gc is set.
15651
15652 * lisp.h (abort_on_gc): Add decl.
15653
15654 * eval.c (Fsignal): Clear abort_on_gc.
15655
15656 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
15657 Reinit FORMAT_START and END before second scan.
15658
15659 * xdisp.c (move_it_vertically_backward): Do the final big else
15660 even if nlines is 0.
15661
15662 * xdisp.c (redisplay_internal): Finish the per-frame loop
15663 even if redisplay is suspended by input.
15664
15665 2003-04-24 Andrew Choi <akochoi@shaw.ca>
15666
15667 * macterm.c (x_list_fonts): Return all fonts that match if
15668 maxnames = -1.
15669
15670 2003-04-25 Kenichi Handa <handa@m17n.org>
15671
15672 * syntax.c (skip_chars): Fix previous change.
15673
15674 2003-04-24 Kenichi Handa <handa@m17n.org>
15675
15676 * syntax.c (skip_chars): Make the code faster by using the common
15677 technique of *p, *stop, and *endp.
15678
15679 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15680
15681 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
15682 tool_bar_items so GTK tool bar expose callback does not access items
15683 being updated.
15684
15685 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
15686
15687 * eval.c (Fapply): Undo last change and add a comment about why.
15688
15689 2003-04-18 Miles Bader <miles@gnu.org>
15690
15691 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
15692 pickier PARSE_MULTIBYTE_SEQ.
15693
15694 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
15695
15696 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
15697 Use XCDR, XCAR, CONSP.
15698 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
15699 (Fapply): Remove unnecessary GCPRO.
15700
15701 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
15702
15703 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
15704
15705 * buffer.h: Don't hardcode BEG==1.
15706
15707 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
15708
15709 2003-04-16 Richard M. Stallman <rms@gnu.org>
15710
15711 * xdisp.c (try_window, try_window_reusing_current_matrix):
15712 When at end of window, set window_end_pos to Z-ZV.
15713
15714 * buffer.c (Foverlay_recenter): Doc fix.
15715
15716 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
15717
15718 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
15719
15720 2003-04-14 Andrew Choi <akochoi@shaw.ca>
15721
15722 * macterm.c (mac_check_for_quit_char): Don't check more often than
15723 once a second.
15724
15725 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
15726
15727 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
15728 specially, so that they can't hide an implicit switch-frame event.
15729 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
15730 (head_table): Use switch-frame as event_kind for select-window.
15731 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
15732
15733 * editfns.c (Fformat): Lisp_Object/int mixup.
15734 (format2): Remove unused var numargs.
15735
15736 2003-04-11 Kenichi Handa <handa@m17n.org>
15737
15738 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
15739 (Qafter_insert_file_set_coding): New variable.
15740 (syms_of_fileio): Initialize and staticpro it. Delete declaration
15741 for after-insert-file-adjust-coding-function.
15742 (Finsert_file_contents): Call Qafter_insert_file_set_coding
15743 instead of Vafter_insert_file_adjust_coding_function.
15744
15745 2003-04-11 Kenichi Handa <handa@m17n.org>
15746
15747 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
15748
15749 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
15750 string. Callers changed.
15751
15752 2003-04-10 Kenichi Handa <handa@m17n.org>
15753
15754 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
15755 (syms_of_fileio): Declare it as a lisp variable.
15756 (Finsert_file_contents):
15757 Call Vafter_insert_file_adjust_coding_function before calling
15758 decode-format.
15759
15760 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15761
15762 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
15763 get GtkAdjustment as widget now is a GtkRange.
15764
15765 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
15766 GtkRange to avoid memory leak.
15767
15768 2003-04-09 Kenichi Handa <handa@m17n.org>
15769
15770 * xfaces.c (Vface_font_rescale_alist): New variable.
15771 (struct font_name): New member rescale_ratio.
15772 (font_rescale_ratio): New function.
15773 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
15774 (better_font_p): On comparing point sized, pay attention to
15775 recale_ratio member of fonts.
15776 (build_scalable_font_name): Reflect font->rescale_ratio in the
15777 font name.
15778 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15779
15780 * lread.c (read1): Before calling index, check if the 2nd
15781 arguemnt is in ASCII range.
15782
15783 2003-04-08 Richard M. Stallman <rms@gnu.org>
15784
15785 * fileio.c (Ffile_symlink_p): Doc fix.
15786
15787 * editfns.c (Fformat): Translate positions of text properties
15788 in the format string to apply them to the result.
15789
15790 * fileio.c (Finsert_file_contents): Doc fix.
15791 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
15792
15793 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
15794
15795 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
15796
15797 2003-04-08 Steven Tamm <steventamm@mac.com>
15798
15799 * mac.c (init_mac_osx_environment): Switch libexec and bin so
15800 that self-contained application finds libexec files.
15801
15802 2003-04-08 Kenichi Handa <handa@m17n.org>
15803
15804 * coding.c (code_convert_region_unwind):
15805 Set Vlast_coding_system_used to the argument.
15806 (code_convert_region): If post-read-conversion function changed
15807 the value of last-coding-sytem, keep the new value in
15808 coding->symbol so that it won't be overridden.
15809 (run_pre_post_conversion_on_str): Likewise.
15810 (coding_system_accept_latin_extra_p): New function.
15811 (find_safe_codings): Pay attention to characters registered in
15812 latin-extra-code-table.
15813
15814 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
15815
15816 * Makefile.in (md5.o): Add missing dependency info.
15817
15818 2003-04-06 Richard M. Stallman <rms@gnu.org>
15819
15820 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
15821
15822 * marker.c (verify_bytepos): New function.
15823
15824 * intervals.c (set_intervals_multibyte_1): When becoming
15825 multibyte, adjust right and left child sizes to a whole set of
15826 characters. If an interval gets zero total-length, delete it.
15827 If an interval consists of just its children, delete one of them.
15828
15829 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
15830 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
15831
15832 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
15833 All calls deleted.
15834 (lisp_malloc): Do the work here directly.
15835
15836 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
15837
15838 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
15839 char tables.
15840
15841 2003-04-04 Kenichi Handa <handa@m17n.org>
15842
15843 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
15844 destructively change "%S" to "%s".
15845
15846 2003-04-03 Miles Bader <miles@gnu.org>
15847
15848 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
15849 always set.
15850
15851 2003-04-01 Dave Love <fx@gnu.org>
15852
15853 * xfns.c (xpm_lookup_color): Grok "opaque".
15854
15855 2003-03-31 Andrew Choi <akochoi@shaw.ca>
15856
15857 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
15858 parent window ID.
15859
15860 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
15861
15862 * macterm.h (struct mac_output): Define x_pixels_diff and
15863 y_pixels_diff.
15864
15865 2003-03-31 Juanma Barranquero <lektu@terra.es>
15866
15867 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
15868 blockinput.h and files included from it.
15869
15870 2003-03-31 Kim F. Storm <storm@cua.dk>
15871
15872 The following changes consolidates the common code related to
15873 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
15874 files into frame.c.
15875
15876 * frame.c: Include blockinput.h.
15877 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
15878 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
15879 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
15880 related vars here.
15881 (struct frame_parm_table, frame_parms): New table for describing
15882 frame parameters and their associated Q-variable.
15883 The order of the parameters corresponds to the sequence of the
15884 frame_parm_handlers table in redisplay_interface.
15885 (x_fullscreen_move, x_set_frame_parameters)
15886 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
15887 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
15888 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15889 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
15890 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
15891 Generic functions for processing of frame parameters.
15892 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
15893 (display_x_get_resource, x_get_resource_string): Functions for
15894 generic access to X resources.
15895 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15896 (x_default_parameter, Fx_parse_geometry): Functions for generic
15897 access to frame parameters.
15898 (x_figure_window_size): Generic calculation of frame size.
15899 Fixed to add space needed for tool bar. Also setup size_hint_flags.
15900 (syms_of_frame): Intern and staticpro frame parameter variables.
15901 Defvar_lisp Vx_resource_class and Vx_resource_name here.
15902 Defsubr Sx_get_resource and Sx_parse_geometry.
15903
15904 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
15905 parameter related vars defined in frame.c.
15906 (EMACS_CLASS): Define here.
15907 (enum FULLSCREEN_*): Define here.
15908 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
15909 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
15910 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
15911 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
15912 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
15913 (x_set_visibility, x_set_autoraise, x_set_autolower)
15914 (x_set_unsplittable, x_set_vertical_scroll_bars)
15915 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
15916 (x_figure_window_size): Add prototypes.
15917
15918 * dispextern.h (frame_parm_handler): New typedef.
15919 (struct redisplay_interface): New member frame_parm_handlers.
15920 (enum resource_types): Move declaration here.
15921 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
15922 (x_default_parameter): Add prototypes.
15923
15924 * window.c: Remove extern decl for frame parameter vars.
15925 (change_window_heights): New generic function;
15926 replaces x_change_window_heights. All users changed.
15927
15928 * window.h (change_window_heights): Add prototype.
15929
15930 * xfaces.c: Remove extern decl for frame parameter vars.
15931
15932 * xterm.h (EMACS_CLASS): Remove. Use generic define.
15933 (struct w32_display_info): Fix type of xrdb member.
15934 (enum FULLSCREEN_*): Remove.
15935 Remove prototypes for generic functions (in frame.h).
15936
15937 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15938 parameters now defined in frame.h and frame.c.
15939 (Vx_resource_name): Remove. Use generic var.
15940 (enum x_frame_parms): Remove (bogus, unused enum).
15941 (check_x_display_info): Make non-static (for frame.c).
15942 (struct x_frame_parm_table, x_frame_parms): Remove.
15943 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15944 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15945 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15946 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15947 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15948 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15949 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15950 Remove. Use generic functions instead.
15951 (enum resource_types): Remove.
15952 (x_set_scroll_bar_default_width): New global function (for frame.c).
15953 (Fx_create_frame): Depend on x_figure_window_size to add space for
15954 toolbar and setup size_hint_flags.
15955 (x_frame_parm_handlers): New table for redisplay_interface.
15956 (syms_of_xfns): Don't intern/staticpro removed vars.
15957
15958 * xterm.c: Remove unnecessary extern declarations.
15959 (x_fullscreen_adjust): Remove. Use generic instead.
15960 (x_redisplay_interface): Add x_frame_parm_handlers member.
15961
15962 * w32gui.h (XrmDatabase): New (dummy) typedef.
15963
15964 * w32term.h (EMACS_CLASS): Remove. Use generic define.
15965 (struct w32_display_info): Fix type of xrdb member.
15966 (enum FULLSCREEN_*): Remove.
15967 (x_fullscreen_adjust): Remove prototype.
15968
15969 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15970 parameters now defined in frame.h and frame.c.
15971 (Vx_resource_name): Remove. Use generic var.
15972 (enum x_frame_parms): Remove (bogus, unused enum).
15973 (check_x_display_info): Make non-static (for frame.c).
15974 (struct x_frame_parm_table, x_frame_parms): Remove.
15975 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15976 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15977 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15978 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15979 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15980 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15981 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15982 Remove. Use generic functions instead.
15983 (enum resource_types): Remove.
15984 (x_set_scroll_bar_default_width): New global function (for frame.c).
15985 (Fx_create_frame): Depend on x_figure_window_size to add space for
15986 toolbar and setup size_hint_flags.
15987 (w32_frame_parm_handlers): New table for redisplay_interface.
15988 (syms_of_w32fns): Don't intern/staticpro removed vars.
15989
15990 * w32term.c: Remove unnecessary extern declarations.
15991 (x_fullscreen_adjust): Remove. Use generic instead.
15992 (x_redisplay_interface): Add w32_frame_parm_handlers member.
15993
15994 * w32reg.c (x_get_string_resource): Use XrmDatabase.
15995
15996 * macgui.h (XrmDatabase): New (dummy) typedef.
15997
15998 * macterm.h (EMACS_CLASS): Remove.
15999 (struct mac_display_info): Add xrdb member.
16000 (struct mac_output): Add want_fullscreen member.
16001
16002 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16003 parameters now defined in frame.h and frame.c.
16004 (Vx_resource_name): Remove. Use generic var.
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 (mac_frame_parm_handlers): New table for redisplay_interface.
16018 (syms_of_macfns): Don't intern/staticpro removed vars.
16019
16020 * macterm.c: Remove unnecessary extern declarations.
16021 (x_redisplay_interface): Add mac_frame_parm_handlers member.
16022
16023 * Makefile.in (frame.o): Add dependency on blockinput.h and files
16024 included from it (atimer.h and systime.h).
16025
16026 2003-03-30 Andreas Schwab <schwab@suse.de>
16027
16028 * xdisp.c (x_insert_glyphs): Fix swapped width and height
16029 parameters for shift_glyphs_for_insert.
16030
16031 * macterm.c (x_redisplay_interface): Add missing entry for
16032 draw_vertical_window_border.
16033
16034 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
16035
16036 * fileio.c (Fexpand_file_name): In the no-handler case, after
16037 expanding, look again for a handler and invoke it. This is needed
16038 for filenames like "/foo/../user@host:/bar/../baz" -- the first
16039 expansion produces "/user@host:/bar/../baz" which needs to be
16040 expanded again for the finame result "/user@host:/baz".
16041
16042 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16043
16044 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
16045 of area to be redrawn for better performance.
16046
16047 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
16048
16049 * xterm.c (take_vertical_position_into_account): Remove.
16050 (xt_action_hook): Call set_vertical_scroll_bar if needed.
16051 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
16052 (xm_scroll_callback, x_create_toolkit_scroll_bar)
16053 (x_set_toolkit_scroll_bar_thumb): Simplify.
16054 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
16055 (XTread_socket): Remove unused var.
16056 (x_make_frame_invisible): Replace goto with else.
16057
16058 * xdisp.c (set_vertical_scroll_bar): New fun.
16059 (redisplay_window): Use it.
16060
16061 2003-03-26 Richard M. Stallman <rms@gnu.org>
16062
16063 * xdisp.c (update_tool_bar): Recompute tool bar if
16064 update_mode_lines is set. Set w->update_mode_line
16065 only if the tool bar contents actually change.
16066 (update_menu_bar): Undo previous change.
16067
16068 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16069
16070 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
16071 (xg_frame_set_char_size): Calculate scroll bar width before frame
16072 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
16073 (xg_separator_p): Check for all documented separator types.
16074 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
16075 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
16076
16077 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
16078 so tool bar gets updated.
16079
16080 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
16081
16082 * data.c (store_symval_forwarding): Re-instate part of the code
16083 that was deleted with too much enthusiasm.
16084
16085 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
16086
16087 * data.c (store_symval_forwarding): Delete special read-only
16088 hack for type == -1, since we now use ->constant instead.
16089 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
16090
16091 * buffer.c (overlays_in): Declare static.
16092 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
16093 `constant' field rather than the variable's `type' field.
16094
16095 2003-03-24 Andrew Choi <akochoi@shaw.ca>
16096
16097 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
16098
16099 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
16100
16101 * fns.c [MAC_OSX]: Do not redefine vector.
16102
16103 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
16104
16105 * macgui.h: Remove definition of No_Cursor.
16106
16107 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
16108
16109 * xdisp.c: Define No_Cursor.
16110 (x_write_glyphs, notice_overwritten_cursor)
16111 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
16112 (note_mouse_highlight): Remove Mac-specific code.
16113 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
16114
16115 2003-03-24 John Paul Wallington <jpw@gnu.org>
16116
16117 * xdisp.c (redisplay_window): If mini window's buffer is not
16118 empty, then redisplay it like other windows.
16119
16120 2003-03-23 Kim F. Storm <storm@cua.dk>
16121
16122 * w32term.c (w32_draw_window_cursor): Fix last change.
16123
16124 2003-03-23 Kenichi Handa <handa@m17n.org>
16125
16126 * alloc.c (make_string_from_bytes, make_specified_string):
16127 Add `const' for the arg CONTENTS.
16128
16129 * lisp.h (make_string_from_bytes, make_specified_string):
16130 Prototypes adjusted.
16131
16132 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16133
16134 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
16135
16136 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
16137 (XG_SB_RANGE): New define.
16138
16139 * gtkutil.c (xg_fixed_handle_expose): New function.
16140 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
16141 expose events.
16142 (xg_update_scrollbar_pos): Take two more arguments, left and width
16143 of scroll bar including borders.
16144 Clear left and right part outside scroll bar separately as some
16145 themes have bars that are not an even number of pixels.
16146 Don't set reallocate_redraws, don't call
16147 gdk_window_process_all_updates.
16148 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
16149 so no need to change it. Calculate size and value with XG_SB_RANGE.
16150
16151 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
16152 Pass left and width of scroll bar including borders to
16153 xg_update_scrollbar_pos.
16154
16155 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
16156
16157 * Makefile.in: Make sure space precedes end-of-line backslashes.
16158
16159 2003-03-22 Kim F. Storm <storm@cua.dk>
16160
16161 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
16162 Add generic versions here. Remove system specific versions
16163 defined elsewhere.
16164
16165 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
16166 Add prototypes.
16167
16168 * xterm.h (STORE_NATIVE_RECT): New macro.
16169
16170 2003-03-21 Kim F. Storm <storm@cua.dk>
16171
16172 * xdisp.c (get_glyph_string_clip_rect):
16173 Use FRAME_INTERNAL_BORDER_WIDTH.
16174
16175 * dispextern.h (struct redisplay_interface): Add active_p
16176 argument to draw_window_cursor member. All uses changed.
16177
16178 2003-03-21 Kim F. Storm <storm@cua.dk>
16179
16180 The following changes consolidate code related to writing and
16181 inserting glyphs, exposing frame, the tool bar, the mouse face,
16182 the output cursor, and help echo from xterm.c, w32term.c and
16183 macterm.c into xdisp.c. It also generalizes the use of the
16184 window_part enum instead of using numeric values throughout.
16185
16186 * xdisp.c: Consolidate gui-independent code here.
16187 Include keymap.h.
16188 (Qhelp_echo): Import.
16189 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
16190 (help_echo_string, help_echo_window, help_echo_object)
16191 (previous_help_echo_string, help_echo_pos): Declare here.
16192 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
16193 (estimate_mode_line_height): Define here. Handle windowing
16194 systems directly (without using estimate_mode_line_height_hook).
16195 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
16196 (update_window_cursor, update_cursor_in_window_tree)
16197 (fast_find_position, fast_find_string_pos)
16198 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
16199 (expose_area, expose_line, expose_overlaps, expose_window)
16200 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
16201 declared static as they are only used locally in xdisp.c.
16202 (draw_glyphs): Rename from x_draw_glyphs and make static.
16203 (tool_bar_item_info, notice_overwritten_cursor): Make static.
16204 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16205 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
16206 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
16207 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16208 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
16209 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
16210 (note_mouse_highlight, x_clear_window_mouse_face)
16211 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
16212 (x_intersect_rectangles): New generic functions for use by xdisp.c
16213 and GUI front-ends.
16214 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
16215 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
16216
16217 * dispextern.h (Display_Info): Generic typedef for *_display_info.
16218 (NativeRectangle): Generic typedef for rectangle type.
16219 (enum window_part): Move here from window.c.
16220 (struct redisplay_interface): New members flush_display_optional,
16221 define_frame_cursor, clear_frame_area, draw_window_cursor,
16222 draw_vertical_window_border, shift_glyphs_for_insert.
16223 Rename member clear_mouse_face to clear_window_mouse_face.
16224 (estimate_mode_line_height_hook): Remove hook.
16225 (auto_raise_tool_bar_buttons_p): Don't declare extern.
16226 (tool_bar_item_info): Remove prototype.
16227 (help_echo_string, help_echo_window, help_echo_object)
16228 (previous_help_echo_string, help_echo_pos)
16229 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
16230 (x_stretch_cursor_p, output_cursor): Declare extern.
16231 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
16232 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
16233 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16234 (display_and_set_cursor, set_output_cursor, x_cursor_to)
16235 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
16236 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16237 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
16238 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
16239 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
16240 Add prototypes.
16241 (mode_line_string, marginal_area_string): Fix prototypes.
16242
16243 * window.c (enum window_part): Move to dispextern.h.
16244 (coordinates_in_window): Use enum window_part member names
16245 instead of numbers to describe return value.
16246 (struct check_window_data): Change part member to window_part.
16247 (check_window_containing): Return window_part unaltered.
16248 (window_from_coordinates): Change part arg from int to enum
16249 window_part. Allow part arg to be null. All users changed.
16250
16251 * window.h (window_from_coordinates): Fix prototype.
16252
16253 * term.c (estimate_mode_line_height): Move to xdisp.c.
16254
16255 * keyboard.c (make_lispy_event): Use enum window_part.
16256
16257 * dispnew.c (mode_line_string, marginal_area_string): Use enum
16258 window_part instead of int in arg list. Users changed.
16259
16260 * xterm.h (No_Cursor): Declare as None for X.
16261 (struct mac_output): Replace member cross_cursor by hand_cursor.
16262
16263 * xterm.c: Remove consolidated defines and code.
16264 (BETWEEN): Remove unused macro.
16265 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
16266 (x_define_frame_cursor, x_clear_frame_area)
16267 (x_draw_window_cursor): New X-specific functions for RIF.
16268 (x_redisplay_interface): Add new members.
16269
16270 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
16271
16272 * w32term.h (struct w32_output): Remove cross_cursor member.
16273
16274 * w32term.c: Remove consolidated defines and code.
16275 (BETWEEN): Remove unused macro.
16276 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
16277 (w32_define_frame_cursor, w32_clear_frame_area)
16278 (w32_draw_window_cursor): New W32-specific functions for RIF.
16279 (w32_redisplay_interface): Add new members.
16280
16281 * w32gui.h (No_Cursor): Define as 0 for W32.
16282 (XRectangle): Add X compatible rectangle type.
16283 (NativeRectangle): Declare as RECT for W32.
16284 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16285
16286 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
16287
16288 * w32console.c: Remove consolidated defines and code.
16289
16290 * msdos.h (Display_Info): Add generic typedef.
16291
16292 * msdos.c: Remove consolidated defines and code.
16293 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
16294
16295 * macterm.h (struct mac_output): Replace member cross_cursor by
16296 hand_cursor.
16297 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
16298
16299 * macterm.c: Remove consolidated defines and code.
16300 (BETWEEN): Remove unused macro.
16301 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
16302 (mac_define_frame_cursor, mac_clear_frame_area)
16303 (mac_draw_window_cursor): New Mac-specific functions for RIF.
16304 (x_redisplay_interface): Add new members.
16305
16306 * macgui.h (No_Cursor): Define as 0 for Mac.
16307 (XRectangle): Add X compatible rectangle type.
16308 (NativeRectangle): Declare as Rect for Mac.
16309 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16310
16311 * macfns.c (x_set_mouse_color): Setup hand_cursor.
16312 (x_set_cursor_color): Use x_display_and_set_cursor.
16313
16314 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
16315 included from it. Add dependency on keymap.h.
16316
16317 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
16318
16319 2003-03-21 Kenichi Handa <handa@m17n.org>
16320
16321 * fileio.c (Fexpand_file_name): Fix previous change.
16322
16323 2003-03-19 Kenichi Handa <handa@m17n.org>
16324
16325 * fileio.c (Ffile_name_directory): Reconstruct file name by
16326 make_specified_string.
16327 (Ffile_name_nondirectory, Ffile_name_as_directory)
16328 (Fdirectory_file_name, Fexpand_file_name)
16329 (Fsubstitute_in_file_name): Likewise.
16330 (Fread_file_name): Compare decoded homedir with DIR and
16331 DEFAULT_FILENAME.
16332
16333 * alloc.c (make_specified_string): If NCHARS is negative, count
16334 the number of characters.
16335
16336 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16337
16338 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
16339 all widgets.
16340
16341 * gtkutil.h: Removed xg_ignore_next_thumb.
16342
16343 2003-03-18 Kenichi Handa <handa@m17n.org>
16344
16345 * coding.c (Vchar_coding_system_table): Remove this variable.
16346 (Vcoding_system_safe_chars): New variable.
16347 (intersection): Remove this function.
16348 (find_safe_codings): Don't use Vchar_coding_system_table, but try
16349 all codings in SAFE_CODINGS.
16350 (Ffind_coding_systems_region_internal): Adjust for the change of
16351 find_safe_codings. Get generic coding systems from
16352 Vcoding_system_safe_chars.
16353 (Fdefine_coding_system_internal): New function.
16354 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
16355 Initialize and staticpro Vcoding_system_safe_chars.
16356
16357 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16358
16359 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
16360 equal old values before updating.
16361
16362 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
16363
16364 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
16365
16366 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16367
16368 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
16369 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
16370 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
16371 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
16372 (xg_create_scroll_bar): Pass bar to button event callback.
16373 (xg_find_top_left_in_fixed): New function.
16374 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
16375 whole scroll bar area. Get old position with
16376 xg_find_top_left_in_fixed, calculate and only clear needed areas.
16377 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
16378 dragging is in progress. Calculate whole as for Motif.
16379 Remove code that saved last values. Call gtk_range functions to
16380 set scroll bar sizes.
16381
16382 * gtkutil.h: Removed xg_ignore_next_thumb.
16383
16384 2003-03-17 Juanma Barranquero <lektu@terra.es>
16385
16386 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
16387 and files included from it.
16388
16389 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
16390
16391 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
16392 multiple occurrences of the same keymap under different prefixes.
16393 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
16394
16395 2003-03-16 Jason Rumney <jasonr@gnu.org>
16396
16397 * w32gui.h: Use HDC for Display.
16398
16399 * w32term.c (w32_encode_char): Prevent double-byte chars from
16400 crashing Emacs.
16401
16402 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
16403 as binary.
16404
16405 2003-03-16 Juanma Barranquero <lektu@terra.es>
16406
16407 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
16408
16409 2003-03-16 Kim F. Storm <storm@cua.dk>
16410
16411 The following changes consolidate some of the gui-independent
16412 parts of the processing and drawing of "glyph strings" from
16413 xterm.c, w32term.c, and macterm.c into xdisp.c.
16414
16415 * dispextern.h (struct glyph): Reduce face_id member from 22 to
16416 21 bits (this reduces number of faces from 4M to 2M).
16417 Replace W32 specific w32_font_type member (2 bits) by generic
16418 font_type member (3 bits) for portability.
16419 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
16420 (enum draw_glyphs_face): Define here.
16421 (struct glyph_string): Define here. Merge W32 and X versions.
16422 (struct redisplay_interface): New members per_char_metric,
16423 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
16424 (VCENTER_BASELINE_OFFSET): Define here.
16425 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
16426 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
16427
16428 * xdisp.c: Consolidate gui-independent "glyph string" code here.
16429 (dump_glyph_string): Moved here.
16430 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
16431 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
16432 (fill_composite_glyph_string, fill_glyph_string)
16433 (fill_image_glyph_string, fill_stretch_glyph_string)
16434 (left_overwritten, left_overwriting, right_overwritten)
16435 (right_overwriting, get_char_face_and_encoding)
16436 (set_glyph_string_background_width, compute_overhangs_and_x)
16437 (append_glyph, append_composite_glyph, produce_image_glyph)
16438 (take_vertical_position_into_account, append_stretch_glyph)
16439 (produce_stretch_glyph): New generic functions (based on X version).
16440 Call platform specific functions through rif.
16441 (INIT_GLYPH_STRING): New macro, hides W32 details.
16442 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
16443 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
16444 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
16445 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
16446 (notice_overwritten_cursor):
16447 Generic functions exported to platform modules. Users changed.
16448
16449 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
16450 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
16451 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
16452 New macros for consolidated code.
16453
16454 * xterm.c: Remove consolidated defines and code.
16455 (x_per_char_metric, x_encode_char)
16456 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
16457 (x_redisplay_interface): Add new members.
16458
16459 * w32gui.h (Display): Add dummy typedef for consolidation.
16460 (XChar2b): Define alias for wchar_t for consolidation.
16461 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16462
16463 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
16464 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
16465 New macros for consolidation.
16466
16467 * w32term.c: Remove consolidated defines and code.
16468 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
16469 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
16470 (w32_per_char_metric): Change font_type arg to int for RIF.
16471 (w32_encode_char): Return int according to RIF requirements.
16472 (w32_compute_glyph_string_overhangs): Adapt to RIF.
16473 (w32_get_glyph_overhangs): New function for RIF. Uses generic
16474 x_get_glyph_overhangs.
16475 (w32_redisplay_interface): Add new members.
16476
16477 * macgui.h (XChar2b): Move typedef here for consolidation.
16478 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
16479
16480 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
16481 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
16482 consolidation.
16483
16484 * macterm.c: Remove consolidated defines and code.
16485 (mac_per_char_metric): New function for RIF.
16486 (mac_encode_char): Adapt to new RIF requirements.
16487 (mac_compute_glyph_string_overhangs): Adapt for RIF.
16488 (x_redisplay_interface): Add new members.
16489
16490 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
16491
16492 * keymap.c (Vmenu_events): New var.
16493 (syms_of_keymap): Initialize it.
16494 (where_is_internal): Check more carefully what is a menu event.
16495
16496 2003-03-14 Richard M. Stallman <rms@gnu.org>
16497
16498 * lread.c (read1): After #!, exit loop on eof.
16499
16500 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16501
16502 * gtkutil.h: Add declaration for xg_frame_cleared.
16503
16504 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
16505
16506 * gtkutil.c (struct xg_last_sb_pos): New structure.
16507 (handle_fixed_child): New function.
16508 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
16509 and force a redraw on them.
16510 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
16511 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
16512 so we can avoid unneeded redraws.
16513 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
16514 and force a redraw on the scroll bar.
16515 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
16516 if xg_last_sb_pos shows the positions are up to date.
16517 (xg_frame_cleared): New function.
16518
16519 2003-03-13 Kenichi Handa <handa@m17n.org>
16520
16521 * coding.c (Fdetect_coding_region): Fix docstring.
16522 (Fdetect_coding_string): Fix docstring.
16523
16524 2003-03-13 Andreas Schwab <schwab@suse.de>
16525
16526 * gtkutil.c: Add prototype for create_menus.
16527
16528 * data.c (long_to_cons): Fix type of top.
16529
16530 * xselect.c (selection_data_to_lisp_data): Use int instead of
16531 long for an integer of size 4.
16532
16533 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
16534 (xg_tool_bar_help_callback): Likewise.
16535
16536 2003-03-12 Andreas Schwab <schwab@suse.de>
16537
16538 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
16539
16540 2003-03-12 Kim F. Storm <storm@cua.dk>
16541
16542 The following changes consolidate the fringe handling from
16543 xterm.c, w32term.c, and macterm.c into xdisp.c.
16544
16545 * xdisp.c: Consolidate fringe handling code here.
16546 (left_bits, right_bits, continued_bits, continuation_bits)
16547 (ov_bits, zv_bits): Define fringe bitmaps.
16548 (fringe_bitmaps): New array holding fringe bitmaps.
16549 (draw_fringe_bitmap): Draw a specific bitmap; call display
16550 specific drawing routine via rif->draw_fringe_bitmap.
16551 (draw_row_fringe_bitmaps): Generic replacement for
16552 x_draw_row_fringe_bitmaps; all callers changed.
16553 (compute_fringe_widths): Generic replacement for
16554 x_compute_fringe_widths; all callers changed.
16555
16556 * dispextern.h (enum fringe_bitmap_type): Define here.
16557 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
16558 (fringe_bitmaps): Declare extern.
16559 (struct redisplay_interface): New member draw_fringe_bitmap.
16560 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
16561
16562 * xterm.c: Remove generic fringe code.
16563 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16564 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16565
16566 * w32term.c: Remove generic fringe code.
16567 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
16568 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
16569
16570 * macterm.c: Remove generic fringe code.
16571 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
16572 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
16573
16574 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
16575
16576 * print.c (Fprin1_to_string): Return unibyte string if possible.
16577
16578 2003-03-09 David Kastrup <dak@gnu.org>
16579
16580 * process.c (read_process_output): We have allocated enough space
16581 for readmax and carryover, so actually use the alloted space.
16582
16583 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16584
16585 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
16586 toolkit scrollbar click.
16587
16588 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
16589 for USE_GTK.
16590 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
16591 also.
16592 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
16593 scrollbar and control is pressed, call x_scroll_bar_handle_click.
16594
16595 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
16596
16597 * gtkutil.c (xg_get_scroll_id_for_window): New function.
16598 (xg_tool_bar_item_expose_callback): New function.
16599 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
16600 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
16601 on the tool bar widget.
16602 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
16603 to expose on the tool bar item widgets.
16604
16605 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16606
16607 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
16608 struct image* when deciding to update (struct image* may have been
16609 deleted from the image cache).
16610
16611 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
16612 the event isn't for a frame (i.e. for dialogs).
16613
16614 2003-03-07 Kenichi Handa <handa@m17n.org>
16615
16616 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
16617 composition components reaches the limit, terminate composing.
16618 (COMPOSITION_OK): New macro.
16619 (detect_coding_iso2022): Use it if an escape sequence for
16620 composition is found.
16621 (coding_restore_composition): Adjust the number of composition
16622 components if it is not sane.
16623
16624 2003-03-06 Juanma Barranquero <lektu@terra.es>
16625
16626 * w32term.h (struct w32_display_info): Add xrdb member to support
16627 passing resources via -xrm on Windows.
16628
16629 * w32term.c (w32_make_rdb): New function.
16630 (w32_term_init): Use it to initialize xrdb member of w32_display_info
16631 struct. Delete leftover code.
16632
16633 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
16634 for resources passed on the command line.
16635
16636 * w32reg.c (w32_get_rdb_resource): New function.
16637 (x_get_string_resource): Use it, so resources passed with -xrm
16638 supercede the ones in the registry.
16639
16640 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16641
16642 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
16643 instead of x_top_window_to_frame.
16644
16645 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16646
16647 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
16648 when restarting Emacs.
16649
16650 2003-03-03 Richard M. Stallman <rms@gnu.org>
16651
16652 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
16653 to run kill-buffer-query-functions.
16654 (Qkill_buffer_query_functions): New var.
16655 (syms_of_buffer): Init and staticpro it.
16656
16657 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16658
16659 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
16660
16661 2003-02-25 Kim F. Storm <storm@cua.dk>
16662
16663 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
16664 If centering point failed to make whole line visible and vscroll
16665 is non-zero, disable vscroll and try centering point again.
16666
16667 * lread.c (read1): Accept `single space' syntax like (? x).
16668
16669 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16670
16671 * keyboard.c (cancel_hourglass_unwind): Surround with
16672 #ifdef HAVE_X_WINDOWS
16673
16674 2003-02-25 Kenichi Handa <handa@m17n.org>
16675
16676 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
16677 process only when "subprocesses" is defined.
16678
16679 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
16680
16681 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
16682
16683 2003-02-24 Juanma Barranquero <lektu@terra.es>
16684
16685 * callint.c (fix_command): Declare as static void and move before
16686 Fcall_interactively.
16687
16688 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
16689 (syms_of_xdisp): Don't initialize Qwhen.
16690
16691 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16692
16693 * keyboard.c (cancel_hourglass_unwind): New function.
16694 (command_loop_1): Cancel hourglass with unwind-protect.
16695
16696 2003-02-23 Richard M. Stallman <rms@gnu.org>
16697
16698 * callint.c (fix_command): New subroutine, from Fcall_interactively.
16699 Detect (when ... (region-beginning)) etc.
16700 (Fcall_interactively): Call fix_command.
16701 (Qif, Qwhen): New variables.
16702 (syms_of_callint): Init and staticpro them.
16703
16704 * regex.c (print_partial_compiled_pattern): Output to stderr.
16705
16706 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16707
16708 * dired.c (directory_files_internal): Don't expand directory.
16709 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
16710 instead. From Lars Hansen <larsh@math.ku.dk>.
16711
16712 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
16713
16714 * fns.c (string_to_multibyte): Remove unused var i.
16715 (Flanginfo): Fix int/Lisp_Object mixup.
16716 (void_call2): New fun.
16717 (Fmap_char_table): Use it in place of call2.
16718
16719 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
16720
16721 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
16722
16723 * keymap.c (copy_keymap_1): Make it static.
16724
16725 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
16726
16727 2003-02-22 David Ponce <david@dponce.com>
16728
16729 * lread.c (Fload): Don't check STRING_MULTIBYTE.
16730
16731 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16732
16733 * process.h: Removed subtty field from struct Lisp_Process.
16734
16735 * process.c (create_process): Remove setting of subtty.
16736 (emacs_get_tty_pgrp): New function.
16737 (Fprocess_running_child_p, process_send_signal):
16738 Call emacs_get_tty_pgrp instead of ioctl.
16739 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
16740
16741 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
16742
16743 * keymap.c (Fdefine_key): Doc fix.
16744
16745 2003-02-21 Juanma Barranquero <lektu@terra.es>
16746
16747 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
16748
16749 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
16750 POLLING_PROBLEM_IN_SELECT.
16751
16752 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
16753 Delete #undef of POLLING_PROBLEM_IN_SELECT.
16754
16755 * s/hpux10-20.h: New file.
16756
16757 * process.c (wait_reading_process_input):
16758 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
16759
16760 2003-02-20 Kenichi Handa <handa@m17n.org>
16761
16762 * fontset.c (check_fontset_name): If NAME is nil, return the
16763 default fontset.
16764 (override_font_info): New function.
16765 (Fset_fontset_font): Document that NAME nil means the default fontset.
16766 (Ffontset_info): If FONTSET is not the default fontset, merge
16767 FONTSET onto the copy of the default fontset, and work on that
16768 copy. Document that NAME nil means the default fontset.
16769 (Ffontset_font): Document that NAME nil means the default fontset.
16770
16771 * process.c (setup_process_coding_systems): If the process's
16772 in/out descriptor is -1, do nothing.
16773
16774 2003-02-19 Andreas Schwab <schwab@suse.de>
16775
16776 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
16777 Add prototypes.
16778
16779 2003-02-19 Kenichi Handa <handa@m17n.org>
16780
16781 * xfaces.c (try_alternative_families): Try all scalable fonts if
16782 Vscalable_fonts_allowed is not Qt.
16783
16784 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16785
16786 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
16787
16788 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16789
16790 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
16791 names.
16792
16793 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
16794 (sorted_font_list): Move allocation of struct font_name to
16795 x_face_list_fonts.
16796 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
16797 (Fx_list_fonts): Set maxnames to -1 to get all font names.
16798
16799 2003-02-18 Kim F. Storm <storm@cua.dk>
16800
16801 * lread.c (read1): Fix last change.
16802 "`" is not always special. Allow "?" after a character constant.
16803
16804 2003-02-18 Andrew Choi <akochoi@shaw.ca>
16805
16806 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
16807
16808 2003-02-18 Andreas Schwab <schwab@suse.de>
16809
16810 * window.c (window_scroll_pixel_based): Move outside a
16811 multi-glyph character before setting new window start.
16812
16813 * xdisp.c (in_display_vector_p): New function.
16814 * dispextern.h (in_display_vector_p): Declare.
16815
16816 2003-02-18 Kim F. Storm <storm@cua.dk>
16817
16818 * lread.c (read1): Fix and relax read syntax.
16819 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
16820 Only recognize "," after dotted-pair dot if inside backquote.
16821 Never include "`" or "," (inside backquote) in a symbol.
16822 Allow dotted-pair dot after a character constant.
16823 Allow "`" and "," (inside backquote) after a character constant.
16824
16825 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16826
16827 * gtkutil.c (xg_tool_bar_expose_callback): New function.
16828 (xg_create_tool_bar): Force style of tool bar to be horizontal with
16829 icons. Set name of tool bar to emacs-toolbar.
16830 (update_frame_tool_bar): Connect expose event to
16831 xg_tool_bar_expose_callback.
16832
16833 2003-02-17 Richard M. Stallman <rms@gnu.org>
16834
16835 * keyboard.c (this_command_key_count_reset): New variable.
16836 Initiatize to 0 where this_command_key_count is set.
16837 (read_char): Save and restore this_command_key_count_reset
16838 around input method code.
16839 (read_char): If this_command_key_count_reset, echo reread commands.
16840 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
16841
16842 2003-02-17 Kenichi Handa <handa@m17n.org>
16843
16844 * fns.c (string_to_multibyte): Always return a multibyte string.
16845
16846 2003-02-16 Jason Rumney <jasonr@gnu.org>
16847
16848 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
16849 Negative max_fonts parameter means list all.
16850
16851 2003-02-14 Dave Love <fx@gnu.org>
16852
16853 * fns.c (Flanginfo): Doc fix.
16854
16855 2003-02-13 Kim F. Storm <storm@cua.dk>
16856
16857 * lread.c (read_escape): Interpret \s as a SPACE character, except
16858 for \s-X in a character constant which still is the super modifier.
16859 (read1): Signal an `invalid read syntax' error if a character
16860 constant is immediately followed by a digit or symbol character.
16861
16862 * search.c (Fmatch_data): Doc fix. Explicitly state that
16863 match-data is undefined if last search failed.
16864
16865 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
16866 All uses changed.
16867
16868 2003-02-12 Juanma Barranquero <lektu@terra.es>
16869
16870 * eval.c (Fdefmacro): Fix typo.
16871
16872 2003-02-12 Kim F. Storm <storm@cua.dk>
16873
16874 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
16875 macro is a string, convert meta modifiers in string when copying
16876 the string into a vector.
16877
16878 2003-02-11 Kim F. Storm <storm@cua.dk>
16879
16880 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
16881
16882 2003-02-11 Kenichi Handa <handa@m17n.org>
16883
16884 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
16885
16886 2003-02-10 Kim F. Storm <storm@cua.dk>
16887
16888 * process.c: Doc fixes.
16889 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
16890
16891 2003-02-10 Kenichi Handa <handa@m17n.org>
16892
16893 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
16894
16895 * process.c (QCfilter_multibyte): New variable.
16896 (setup_process_coding_systems): New function.
16897 (Fset_process_buffer, Fset_process_filter):
16898 Call setup_process_coding_systems.
16899 (Fstart_process): Initialize the member `filter_multibyte' of
16900 struct Lisp_Process.
16901 (create_process): Call setup_process_coding_systems.
16902 (Fmake_network_process): New keyward `:filter-multibyte'.
16903 Initialize the member `filter_multibyte' of struct Lisp_Process.
16904 Call setup_process_coding_systems.
16905 (server_accept_connection): Call setup_process_coding_systems.
16906 (read_process_output): If the process has a filter, decide the
16907 multibyteness of a string to given to the filter by
16908 `filter_multibyte' member of the process. If the process doesn't
16909 have a filter and the result of conversion is unibyte, use
16910 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
16911 multibyte form.
16912 (Fset_process_coding_system): Call setup_process_coding_systems.
16913 (Fset_process_filter_multibyte): New function.
16914 (Fprocess_filter_multibyte_p): New function.
16915 (syms_of_process): Intern and staticpro QCfilter_multibyte.
16916 Defsubr Sset_process_filter_multibyte and
16917 Sprocess_filter_multibyte_p.
16918
16919 * process.h (struct Lisp_Process): New member filter_multibyte.
16920
16921 * lisp.h (setup_process_coding_systems): Add prototype.
16922
16923 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
16924 process, update coding systems for the process.
16925
16926 2003-02-09 Kenichi Handa <handa@m17n.org>
16927
16928 * fns.c (string_to_multibyte): New function.
16929 (Fstring_to_multibyte): New function.
16930 (syms_of_fns): Defsubr it.
16931
16932 2003-02-08 Andreas Schwab <schwab@suse.de>
16933
16934 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
16935 instead of the substitution.
16936
16937 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16938
16939 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
16940
16941 * xmenu.c (menu_position_func): Adjust menu popup position so that
16942 the menu is fully visible.
16943
16944 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16945
16946 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
16947 (x_make_frame_invisible, x_wm_set_icon_position):
16948 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
16949
16950 * xfns.c (x_set_name, x_set_title): Ditto.
16951
16952 2003-02-04 Richard M. Stallman <rms@gnu.org>
16953
16954 * keyboard.c (echo_now): Update before_command_echo_length.
16955 (Freset_this_command_lengths): Reset this_command_key_count etc.
16956 immediately rather than arranging to do it later.
16957 (before_command_key_count_1, before_command_echo_length_1)
16958 (before_command_restore_flag): Vars deleted.
16959 (add_command_key): Don't handle before_command_restore_flag.
16960 (read_char, record_menu_key): Don't update before_command_key_count or
16961 before_command_echo_length.
16962 (read_char): Don't handle before_command_restore_flag.
16963
16964 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
16965 in direct-output clauses if it wouldn't be called in the ordinary case.
16966
16967 2003-02-04 Kim F. Storm <storm@cua.dk>
16968
16969 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
16970
16971 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16972
16973 * gtkutil.c (remove_from_container): Copying list is not needed.
16974 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
16975 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
16976 on list returned from gtk_container_get_children to avoid memory leak.
16977
16978 2003-02-01 Jason Rumney <jasonr@gnu.org>
16979
16980 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
16981 local malloc.
16982 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
16983 definitions in xpm.h.
16984 (init_xpm_functions): New function.
16985 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
16986 (init_external_image_libraries): Try to load libXpm.dll.
16987
16988 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
16989 timestamp.
16990
16991 2003-01-31 Dave Love <fx@gnu.org>
16992
16993 * syntax.c (Fskip_chars_forward)
16994 (open-paren-in-column-0-is-defun-start): Doc fix.
16995
16996 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
16997
16998 * fileio.c: Support // at start of name for Cygwin (just added proper
16999 preprocessor tests).
17000
17001 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
17002
17003 * Makefile.in: Use @EXEEXT@ for Cygwin.
17004
17005 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
17006
17007 * s/cygwin.h: Added for Cygwin port.
17008
17009 2003-01-31 Juanma Barranquero <lektu@terra.es>
17010
17011 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
17012 when including gif_lib.h.
17013 (init_gif_functions, init_tiff_functions): New functions.
17014 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
17015 Windows. Disable color table lookups. Call library functions
17016 through pointers determined at runtime.
17017 (init_external_image_libraries): Try to load libungif.dll and
17018 libtiff.dll.
17019
17020 2003-01-31 Kenichi Handa <handa@m17n.org>
17021
17022 * xdisp.c (SKIP_GLYPHS): New macro.
17023 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
17024
17025 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17026
17027 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
17028
17029 2003-01-30 Dave Love <fx@gnu.org>
17030
17031 * alloc.c (Vgc_elapsed, gcs_done): New variables.
17032 (Fgarbage_collect): Use them.
17033 (init_alloc, syms_of_alloc): Set them up.
17034
17035 2003-01-30 Juanma Barranquero <lektu@terra.es>
17036
17037 * w32fns.c (init_external_image_libraries): Add missing operator.
17038
17039 2003-01-29 Jason Rumney <jasonr@gnu.org>
17040
17041 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
17042 an alternative name for jpeg.dll.
17043
17044 2003-01-29 Kenichi Handa <handa@m17n.org>
17045
17046 * xdisp.c (set_cursor_from_row): Pay attention to string display
17047 properties.
17048
17049 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
17050
17051 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
17052 <escape>.
17053 (keycode_to_xkeysym_table): Reformat and add more comments.
17054 (XTread_socket): Drop special case for backspace.
17055
17056 2003-01-28 Andrew Choi <akochoi@shaw.ca>
17057
17058 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
17059 values in old-style RGB specs.
17060
17061 2003-01-27 Juanma Barranquero <lektu@terra.es>
17062
17063 * w32fns.c (init_external_image_libraries): Try alternate names for the
17064 jpeg dll.
17065
17066 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17067
17068 * gtkutil.c (create_dialog, xg_separator_p)
17069 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
17070 before calling strcmp or strlen.
17071
17072 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17073
17074 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
17075 and handle image load failure.
17076
17077 2003-01-26 Jason Rumney <jasonr@gnu.org>
17078
17079 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
17080 New functions.
17081 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
17082 Disable color table lookups. Call jpeg library functions
17083 through pointers determined at runtime.
17084 (init_external_image_libraries): Try to load jpeg.dll.
17085
17086 2003-01-25 Richard M. Stallman <rms@gnu.org>
17087
17088 * lisp.h: Declare format2 instead of format1.
17089
17090 * fileio.c (barf_or_query_if_file_exists):
17091 Call format2 instead of format1.
17092
17093 * editfns.c (format2): New function, replaces format1
17094 but takes exactly two Lisp Objects as format args.
17095
17096 * buffer.c (Fkill_buffer): Call format2 instead of format1.
17097
17098 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17099
17100 * xterm.h: Change to return value of x_dispatch_event to int.
17101
17102 * xterm.c (x_filter_event): New function.
17103 (event_handler_gdk, XTread_socket): Call x_filter_event.
17104 (x_dispatch_event): Change to return value of finish.
17105 (event_handler_gdk): Use return value from x_dispatch_event.
17106
17107 * xfns.c (x_window): Call create_frame_xic for GTK version to
17108 initialize input methods.
17109
17110 * gtkutil.h: Add (void) prototypes.
17111
17112 * gtkutil.c (create_menus): Remove code that puts the help menu to
17113 the right.
17114
17115 2003-01-25 Jason Rumney <jasonr@gnu.org>
17116
17117 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
17118 [HAVE_PNG]: Sync with xfns.c version.
17119 (png_load): Adjust colors for Windows. Use Windows
17120 bitmaps. Disable color table lookups.
17121 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
17122 (init_png_functions): New function.
17123 (png_read_from_memory, png_load): Call png library functions
17124 through pointers determined at runtime.
17125 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
17126 (init_external_image_libraries): New function.
17127 (init_xfns): Call it.
17128
17129 2003-01-24 Andreas Schwab <schwab@suse.de>
17130
17131 * minibuf.c (Fminibuffer_message): Verify type of parameter.
17132
17133 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17134
17135 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
17136 of static initializer.
17137
17138 2003-01-24 Dave Love <fx@gnu.org>
17139
17140 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
17141 architectures.
17142
17143 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
17144 Use __alignof__.
17145
17146 2003-01-24 Kenichi Handa <handa@m17n.org>
17147
17148 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
17149 It it is nonzero, don't pretend that an invisible area doesn't exist.
17150 (command_loop_1): Call adjust_point_for_property with proper
17151 second arg.
17152
17153 2003-01-22 Jason Rumney <jasonr@gnu.org>
17154
17155 Sync changes with xterm.c and xfns.c.
17156
17157 * w32term.c (x_draw_glyph_string_foreground)
17158 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17159
17160 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
17161 phys_cursor's hpos is overwritten. This is still not completely
17162 correct, as it doesn't really make sense to use hpos at all to
17163 get the cursor glyph (as that is relative to the width of the
17164 characters on the line, which may have changed during the update).
17165
17166 * w32term.c (notice_overwritten_cursor): Handle the special case
17167 of the cursor being in the first blank non-text line at the
17168 end of a window.
17169
17170 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17171 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17172 Compute from the x position returned by x_draw_glyphs.
17173
17174 (x_display_and_set_cursor): Don't set phys_cursor_width here,
17175 except for NO_CURSOR and system caret, to make phys_cursor_width
17176 contain what its name suggests.
17177 (notice_overwritten_cursor): Consider the cursor image erased if
17178 the output area intersects the cursor image in y-direction.
17179
17180 * w32term.c (note_mode_line_or_margin_highlight): Rename from
17181 note_mode_line_highlight and extend.
17182
17183 * w32term.c (last_window): New variable.
17184 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
17185 (note_mouse_movement): Remove reimplemented code in #if 0.
17186
17187 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
17188 not update_mode_lines, and always set it to 1.
17189
17190 2003-01-21 Jason Rumney <jasonr@gnu.org>
17191
17192 * w32fns.c (IDC_HAND): Define it if system headers don't.
17193
17194 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17195
17196 * w32term.h (struct w32_output): New member hand_cursor.
17197 (WM_EMACS_SETCURSOR): New message definition.
17198
17199 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
17200 function w32_define_cursor.
17201 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
17202 position, change member name output_data.x to output_data.w32 and
17203 add function w32_define_cursor.
17204 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
17205 and change member name output_data.x to output_data.w32.
17206 (w32_initialize_display_info):
17207 Setup dpyinfo->vertical_scroll_bar_cursor.
17208
17209 * w32fns.c (Vx_hand_shape): New variable.
17210 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
17211 WM_EMACS_SETCURSOR.
17212 (x-create-frame): Setup Cursor types.
17213
17214 2003-01-21 David Ponce <david@dponce.com>
17215
17216 * w32term.c (w32_encode_char): For DIM=1 charset, set
17217 ccl->reg[2] to -1 before calling ccl_driver.
17218 (Sync. with xterm.c x_encode_char change by Kenichi Handa
17219 <handa@m17n.org> on 2002-09-30.)
17220 (w32_draw_relief_rect): Declare all args.
17221 (w32_define_cursor): New.
17222
17223 * w32fns.c (w32_load_cursor): New function.
17224 (w32_init_class): Use it.
17225 (x_put_x_image): Declare all args.
17226
17227 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
17228
17229 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
17230
17231 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17232
17233 * gtkutil.c: Must include stdio.h before termhooks.h
17234
17235 2003-01-21 Dave Love <fx@gnu.org>
17236
17237 * alloc.c (Fgc_status): Print zombie list.
17238 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17239 Fix assignment of zombies.
17240 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17241 Don't take car of non-cons.
17242
17243 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17244
17245 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17246
17247 2003-01-20 David Ponce <david@dponce.com>
17248
17249 * w32menu.c (digest_single_submenu): Declare all args.
17250
17251 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
17252 changes in xmenu.c:
17253
17254 (parse_single_submenu): Use individual keymap's prompt
17255 string as pane name, if there is one.
17256 (set_frame_menubar): Save menu_items_n_panes from each call to
17257 parse_single_submenu and use it when calling digest_single_submenu.
17258
17259 2003-01-20 Steven Tamm <steventamm@mac.com>
17260
17261 * macterm.c (XTread_socket): Check for valid, visible window
17262 before sending a scroll-wheel event.
17263
17264 2003-01-20 Richard M. Stallman <rms@gnu.org>
17265
17266 * xdisp.c (redisplay_window): If mini window's buffer is not
17267 a minibuffer, then redisplay it like other windows.
17268
17269 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17270
17271 * gtkutil.c (xg_create_frame_widgets): Check if there is an
17272 external tool bar before setting tool bar height.
17273
17274 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17275
17276 * xterm.c (handle_one_xevent): Surround popup_activated
17277 with #ifdef:s for non-toolkit version.
17278
17279 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
17280 (gtkutil.o): New file.
17281 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
17282 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
17283
17284 * gtkutil.c: New file for GTK version.
17285
17286 * gtkutil.h: New file for GTK version.
17287
17288 * xterm.h: Add xt_or_gtk_widget.
17289 Include gtk files for USE_GTK.
17290 (struct x_output): Add toolbar_height.
17291 (struct x_output): Add GTK widgets and Gdk size_hints.
17292 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
17293 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
17294 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
17295
17296 * xterm.c: Include gtkutil.h for USE_GTK.
17297 (free_frame_menubar): Declare extern void for USE_GTK.
17298 (note_mouse_highlight): Check popup_activated for USE_GTK.
17299 (xt_action_hook): Don't compile if USE_GTK.
17300 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
17301 (xg_scroll_callback): New function.
17302 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
17303 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
17304 for USE_GTK.
17305 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
17306 xg_show_scroll_bar for USE_GTK.
17307 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
17308 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
17309 (event_handler_gdk): New function for USE_GTK.
17310 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
17311 (handle_one_xevent): Make sure widget is mapped before
17312 calling x_real_positions for USE_GTK.
17313 (XTread_socket): Add GTK event loop for USE_GTK.
17314 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
17315 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
17316 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
17317 (x_iconify_frame): Add code for USE_GTK.
17318 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
17319 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
17320 is in gtkutil.c.
17321 (x_term_init): Add initialization for GTK.
17322 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
17323
17324 * xmenu.c: Include gtkutil.h for USE_GTK.
17325 (Fx_popup_menu): Use current position if x and y is NIL.
17326 (single_menu_item, single_menu_item, Fx_popup_dialog):
17327 Check for USE_GTK.
17328 (popup_widget_loop): New function for USE_GTK.
17329 (x_activate_menubar): Add code for USE_GTK.
17330 (popup_activate_callback, popup_deactivate_callback)
17331 (menu_highlight_callback, menubar_selection_callback):
17332 Add USE_GTK versions.
17333 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
17334 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
17335 (free_frame_menubar): Only compile if not USE_GTK. GTK version
17336 is in gtkutil.c.
17337 (popup_selection_callback): New version for USE_GTK.
17338 (create_and_show_popup_menu): New fuction, one USE_GTK version and
17339 one USE_X_TOOLKIT version.
17340 (xmenu_show): Call create_and_show_popup_menu.
17341 (dialog_selection_callback): New version for USE_GTK.
17342 (create_and_show_dialog): New fuction, one USE_GTK version and
17343 one USE_X_TOOLKIT version.
17344 (xdialog_show): Call create_and_show_dialog.
17345
17346 * xfns.c: Include gtkutil for USE_GTK.
17347 (x_window_to_frame, x_any_window_to_frame)
17348 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
17349 (x_top_window_to_frame): Add code for USE_GTK.
17350 (x_set_background_color): Call xg_set_background_color for GTK.
17351 (x_set_menu_bar_lines): Check for USE_GTK.
17352 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
17353 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
17354 (x_window): Call xg_create_frame_widgets for USE_GTK.
17355 (Fx_create_frame): Check for USE_GTK
17356 (Fx_file_dialog): New implementation for USE_GTK.
17357
17358 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
17359 (update_menu_bar): Add check for USE_GTK.
17360 (update_tool_bar): Add check for USE_GTK and external tool bar.
17361 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
17362 (redisplay_internal): Add check for USE_GTK and popup_activated.
17363 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
17364 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
17365 (display_menu_bar): Add check for USE_GTK
17366
17367 * lisp.h (Vx_resource_name): Declare extern.
17368
17369 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
17370 for USE_GTK.
17371 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
17372
17373 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
17374 (FRAME_EXTERNAL_TOOL_BAR): New macro.
17375 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
17376
17377 * fileio.c (Fread_file_name): Add check for USE_GTK.
17378
17379 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
17380 Add check for USE_GTK.
17381
17382 * config.in: Added HAVE_GTK
17383
17384 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
17385
17386 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
17387
17388 * charset.h (Funibyte_char_to_multibyte): Export.
17389
17390 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17391
17392 * xmenu.c (mouse_position_for_popup): New function.
17393 (Fx_popup_menu): Call mouse_position_for_popup for X and
17394 mouse_position_hook for others.
17395
17396 2003-01-17 Kim F. Storm <storm@cua.dk>
17397
17398 * editfns.c (Finsert): Mention `string-make-multibyte' and
17399 `string-as-multibyte' in doc string.
17400
17401 2003-01-17 Kenichi Handa <handa@m17n.org>
17402
17403 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
17404
17405 * editfns.c (Fformat): Convert an unibyte char argument that is
17406 formatted by "%c" to multibyte if the total result must be a
17407 multibyte string.
17408
17409 2003-01-16 Kim F. Storm <storm@cua.dk>
17410
17411 * process.c (set-process-filter): Document unibyte/multibyte-ness
17412 of string argument.
17413
17414 2003-01-16 Kenichi Handa <handa@m17n.org>
17415
17416 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
17417
17418 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
17419 (re_search_2): Likewise.
17420
17421 2003-01-15 Kenichi Handa <handa@m17n.org>
17422
17423 * xdisp.c (message_dolog): Fix bug of the case that *Message*
17424 buffer is unibyte.
17425
17426 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
17427
17428 * fns.c (Fsubstring): Clarify doc string.
17429
17430 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
17431 (Fprevious_char_property_change)
17432 (Fnext_single_char_property_change)
17433 (Fprevious_single_char_property_change, Fnext_property_change)
17434 (Fnext_single_property_change, Fprevious_property_change)
17435 (Fprevious_single_property_change, Fadd_text_properties)
17436 (Fput_text_property, Fset_text_properties)
17437 (Fremove_text_properties, Fremove_list_of_text_properties)
17438 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
17439
17440 2003-01-14 Kim F. Storm <storm@cua.dk>
17441
17442 * process.h (struct Lisp_Process): New member plist replaces old
17443 member private_vars. All uses changed.
17444
17445 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
17446 (QCplist): Rename from QCvars. Change all uses.
17447 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
17448 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
17449 (syms_of_process): Intern, staticpro, defsubr these.
17450 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
17451
17452 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
17453
17454 * m/delta.h: Remove (obsolete).
17455
17456 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
17457
17458 * fileio.c (Fdelete_directory, Fdelete_file): Document the
17459 behaviour in front of symlinks.
17460 (Fdelete_file): Raise an error on directories.
17461
17462 2003-01-13 Dave Love <fx@gnu.org>
17463
17464 * fns.c (Freverse): Use QUIT.
17465
17466 2003-01-13 Richard M. Stallman <rms@gnu.org>
17467
17468 * minibuf.c (minibuffer_completion_contents):
17469 Error if point is inside prompt.
17470
17471 * keyboard.c (command_loop_1): Don't redisplay directly
17472 if there's a post-command-hook.
17473
17474 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
17475 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
17476
17477 2003-01-12 Kim F. Storm <storm@cua.dk>
17478
17479 * process.h (struct Lisp_Process): New member private_vars.
17480
17481 * process.c (QCvars): New variable.
17482 (syms_of_process): Intern and staticpro it.
17483 (Fset_process_contact): Removed function.
17484 (Fprocess_variable, Fset_process_variable): New functions.
17485 (syms_of_process): Defsubr them.
17486 (Fstart_process): Initialize private_vars plist to nil.
17487 (Fmake_network_process): New arg :vars to setup the private
17488 variables for new network process.
17489 (server_accept_connection): Copy server's private variables to
17490 client process.
17491
17492 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
17493 crashes). Code rewritten and simplified. Now directly aligns the
17494 pointer and recalculates pure_bytes_used, rather than aligning the
17495 size and adjusting the pointer.
17496
17497 2003-01-11 Kim F. Storm <storm@cua.dk>
17498
17499 * process.c (Fset_process_contact): New function.
17500 (syms_of_process): defsubr it.
17501 (make-network-process): Update doc.
17502
17503 2003-01-10 Andreas Schwab <schwab@suse.de>
17504
17505 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
17506 Reported by Berthold Gunreben <b.gunreben@web.de>.
17507
17508 2003-01-10 Dave Love <fx@gnu.org>
17509
17510 * composite.c (syms_of_composite): Make composition_hash_table weak.
17511
17512 2003-01-09 Kim F. Storm <storm@cua.dk>
17513
17514 * process.c (Fmake_network_process): Convert new port number
17515 to host byte order for `:service t' case. From Mario Lang.
17516
17517 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17518
17519 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
17520 instead of XtAppProcessEvent.
17521
17522 * xterm.c (handle_one_xevent): New function.
17523 (x_dispatch_event): New function.
17524 (XTread_socket): Call handle_one_xevent.
17525
17526 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
17527
17528 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
17529 call XQueryPointer to get coordinates.
17530 (popup_get_selection): Do not set popup_activated_flag to zero,
17531 let popup_deactivate_callback do that. Needed for Motif.
17532 Call x_dispatch_event instead of XtDispatchEvent.
17533 (xmenu_show): Calculate root coordinate from frame top/left position.
17534
17535 2003-01-08 Kim F. Storm <storm@cua.dk>
17536
17537 * process.c (server_accept_connection): Fix recording of new
17538 connection's local address in :local property of contact info.
17539 (Fmake_network_process): Record local network address for new
17540 client processes in :local property of contact info.
17541 (format-network-address): Add arg OMIT-PORT. Change callers.
17542
17543 2003-01-07 Dave Love <fx@gnu.org>
17544
17545 * Makefile.in (fns.o): Depend on coding.h.
17546
17547 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
17548
17549 * minibuf.c (Fread_variable): Doc fix.
17550
17551 * eval.c (Fuser_variable_p): Doc change. For custom variables,
17552 use the same test as for custom-variable-p.
17553
17554 2003-01-05 Richard M. Stallman <rms@gnu.org>
17555
17556 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
17557 Count LAST_LINE_MISFIT in scroll margin for end of window.
17558 Move label too_near_end before setting SCROLL_MARGIN_POS.
17559 Set LAST_LINE_MISFIT before jumping there.
17560
17561 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
17562 scroll_conservatively case. If scrolling that much doesn't change
17563 STARTP, move it down one line.
17564
17565 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
17566 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
17567
17568 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
17569 selected frame.
17570
17571 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
17572 (syms_of_keymap): Staticpro them.
17573 (Fapropos_internal): Initialize them and clear them out.
17574 Don't GCPRO them.
17575
17576 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
17577
17578 * lisp.h: New misc type Lisp_Save_Value.
17579 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
17580 (XSAVE_VALUE): New macro.
17581 (struct Lisp_Save_Value): New data type.
17582 (union Lisp_Misc): Add u_save_value alternative.
17583 (make_save_value): Declare.
17584
17585 * alloc.c (make_save_value): New function.
17586
17587 * xterm.c (x_catch_errors): Save dpy using make_save_value.
17588 (x_catch_errors_unwind): Call XSync.
17589
17590 2003-01-01 Richard M. Stallman <rms@gnu.org>
17591
17592 * window.c (window_scroll_pixel_based): Partially undo last change.
17593
17594 * keyboard.c (command_loop_1): Call adjust_point_for_property
17595 in direct action cases for Qforward_char and Qbackward_char.
17596 Set already_adjusted so it won't be done twice.
17597
17598 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
17599
17600 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
17601 type definition of size_t.
17602
17603 2003-01-02 Steven Tamm <steventamm@mac.com>
17604
17605 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
17606 distinguish Carbon GUI builds from X11 builds on darwin.
17607
17608 2002-12-30 Steven Tamm <steventamm@mac.com>
17609
17610 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
17611 to default to t.
17612
17613 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
17614
17615 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
17616
17617 2002-12-28 Steven Tamm <steventamm@mac.com>
17618
17619 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
17620 allow building in a different directory than source. Uses some
17621 GNU Make extensions, but there is no other make on Mac OS X.
17622
17623 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
17624
17625 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
17626 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
17627 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
17628 (Fstring_to_number): Mention the returned value in the doc strings.
17629
17630 2002-12-23 Richard M. Stallman <rms@gnu.org>
17631
17632 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
17633 <scroll-down-aggressively>: Doc fix.
17634
17635 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
17636 string as pane name, if there is one.
17637 (set_frame_menubar): Save menu_items_n_panes from each call to
17638 parse_single_submenu and use it when calling digest_single_submenu.
17639
17640 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
17641 Don't try to make last line fully visible if it is past end of window.
17642
17643 2002-12-22 Steven Tamm <steventamm@mac.com>
17644
17645 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
17646 (mac_menu_show): Add support for hierarchical popup menus.
17647 (add_menu_item): Remove indentation support.
17648 (fill_submenu, fill_menu): Create hierarchical menus
17649 instead of using indentation.
17650
17651 2002-12-22 Richard M. Stallman <rms@gnu.org>
17652
17653 * xdisp.c (try_cursor_movement): Don't call try_window here.
17654 (redisplay_window): Never redisplay minibuffer when inactive.
17655
17656 * window.c (select_window_1): Undo 9/21 change.
17657
17658 2002-12-22 Steven Tamm <steventamm@mac.com>
17659
17660 * macterm.c (XTread_socket): Call KeyTranslate for control and
17661 meta to deal correctly shifted non-alpha characters, like C-S-5
17662 being treated like C-%. Do not look for shift key to deal
17663 with masking off control-key with mac-reverse-ctrl-meta.
17664
17665 2002-12-21 Richard M. Stallman <rms@gnu.org>
17666
17667 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
17668 If it is non-nil, run timers. Use an unwind-protect to requeue
17669 the events that were read ahead.
17670 (popup_get_selection_unwind): New subroutine.
17671 (popup_get_selection_queue): File-scope variable now holds that queue.
17672 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
17673 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
17674 Use an unwind-protect to pop down the dialog box.
17675 (xdialog_show_unwind): New subroutine implements that.
17676
17677 * xdisp.c (row_containing_pos): Change exit test using last_y.
17678 (try_window_id): Abort if row_containing_pos returns null.
17679
17680 * lread.c (load_error_handler): New function.
17681 (Fload): Handle errors in Fsubstitute_in_file_name.
17682 Don't expect Fsignal to return.
17683
17684 * eval.c: Errors and throws work right with interrupt blocking.
17685 (struct catchtag): New elt interrupt_input_blocked.
17686 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
17687 (internal_catch, Fcondition_case, internal_condition_case)
17688 (internal_condition_case_1, internal_condition_case_2): Save it.
17689 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
17690
17691 * editfns.c (Fformat): Add parens.
17692
17693 * dired.c (file_name_completion): Fix that change.
17694 Delete special quit-handling code; just use QUIT.
17695
17696 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
17697
17698 * dired.c (file_name_completion): Close directory on error
17699 just as in directory_files_internal.
17700
17701 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
17702
17703 * window.c (Fset_window_configuration): Set old_point to correct
17704 value when new_current_buffer == current_buffer.
17705
17706 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
17707
17708 Revisited my earlier fix for the following entry in etc/PROBLEMS:
17709 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17710 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17711
17712 These changes were in part based upon suggestions made by Peter
17713 'Luna' Runestig [peter@runestig.com].
17714
17715 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
17716 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
17717 (g_b_init_get_sid_identifier_authority ): Add several static
17718 global variables.
17719
17720 * w32.c (globals_of_w32): New function. Used to initialize those
17721 global variables that must always be initialized on startup even
17722 when the global variable initialized is non zero. Its primary
17723 purpose at this time is to set the global variables
17724 g_b_init_is_windows_9x, g_b_init_open_process_token,
17725 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
17726 g_b_init_get_sid_identifier_authority to 0 on startup.
17727 Called from main.
17728
17729 * w32.c (is_windows_9x): Perform initialization only if
17730 g_b_init_is_windows_9x is equal to 0. On initialization set
17731 g_b_init_is_windows_9x equal to 1.
17732
17733 * w32.c (open_process_token): Perform initialization only if
17734 g_b_init_open_process_token is equal to 0. On initialization set
17735 g_b_init_open_process_token equal to 1.
17736
17737 * w32.c (get_token_information): Perform initialization only if
17738 g_b_init_get_token_information is equal to 0. On initialization
17739 set g_b_init_get_token_information equal to 1.
17740
17741 * w32.c (lookup_account_sid): Perform initialization only if
17742 g_b_init_lookup_account_sid is equal to 0. On initialization
17743 set g_b_init_lookup_account_sid equal to 1.
17744
17745 * w32.c (get_sid_identifier_authority): Perform initialization
17746 only if g_b_init_get_sid_identifier_authority is equal to 0.
17747 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
17748
17749 * w32fns.c (globals_of_w32fns): New function. Used to initialize
17750 those global variables that must always be initialized on startup
17751 even when the global variable initialized is non zero.
17752 Its primary purpose at this time is to initialize the global variable
17753 track_mouse_event_fn.
17754
17755 * w32fns.c (w32_wnd_proc): Remove initialization of
17756 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
17757
17758 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
17759
17760 * w32menu.c (globals_of_w32menu): New function. Used to
17761 initialize those global variables that must always be initialized
17762 on startup even when the global variable initialized is non zero.
17763 Its primary purpose at this time is to initialize the global
17764 variables get_menu_item_info and set_menu_item_info.
17765
17766 * w32menu.c (initialize_frame_menubar): Remove initialization of
17767 get_menu_item_info and set_menu_item_info.
17768
17769 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
17770
17771 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
17772 Declare them.
17773
17774 * emacs.c (main): Call globals_of_w32 prior to calling
17775 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
17776 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
17777 is defined.
17778
17779 * w32term.c (x_update_window_begin): Fix Windows API error
17780 detected by BoundsChecker. Test to determine if
17781 w32_system_caret_hwnd is NULL prior to attempting to use
17782 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
17783
17784 * w32term.c (x_update_window_end): Fix Windows API error
17785 detected by BoundsChecker. Test to determine if
17786 w32_system_caret_hwnd is NULL prior to attempting to use
17787 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
17788
17789 2002-12-17 Kenichi Handa <handa@m17n.org>
17790
17791 * coding.c (coding_system_require_warning): New variable.
17792 (syms_of_coding): DEFVAR it.
17793
17794 * coding.h (coding_system_require_warning): Extern it.
17795
17796 * fileio.c (choose_write_coding_system): Even if
17797 Vcoding_system_for_write is non-nil, if
17798 coding_system_require_warning is nonzero, call
17799 Vselect_safe_coding_system_function.
17800
17801 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
17802
17803 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
17804 (lisp): Add font-core.
17805
17806 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
17807
17808 * textprop.c (text_read_only): New arg `propval'.
17809 (get_char_property_and_overlay): Remove unused var `next_overlay'.
17810 (verify_interval_modification): Use text_read_only's new arg.
17811
17812 2002-12-13 Kenichi Handa <handa@m17n.org>
17813
17814 * coding.c (Funencodable_char_position): Set pend correctly.
17815
17816 2002-12-12 Jason Rumney <jasonr@gnu.org>
17817
17818 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
17819 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
17820 Be more careful about when help_events are generated.
17821
17822 2002-12-12 Steven Tamm <steventamm@mac.com>
17823
17824 * macterm.c (mac_check_for_quit_char): Correctly set the
17825 modifiers of the event to 0.
17826 * mac.c (sys_select): Duplicate rfds before calling select to
17827 ensure that rfds survive the while loop.
17828
17829 2002-12-11 Kim F. Storm <storm@cua.dk>
17830
17831 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
17832 row_containing_pos returned NULL.
17833
17834 2002-12-10 Steven Tamm <steventamm@mac.com>
17835
17836 * mac.c (sys_read): Fix sys_read to not call select if IO is
17837 non-blocking.
17838 (sys_select): Fix sys_select to not use a timeout larger than
17839 the one given.
17840
17841 2002-12-10 Juanma Barranquero <lektu@terra.es>
17842
17843 * editfns.c (Fformat): Use alloca, not _alloca.
17844
17845 2002-12-09 Richard M. Stallman <rms@gnu.org>
17846
17847 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
17848 as the last thing.
17849
17850 2002-12-09 Dave Love <fx@gnu.org>
17851
17852 * s/sol2-8.h: Removed. (Not necessary.)
17853
17854 2002-12-09 Matthew Swift <swift@alum.mit.edu>
17855
17856 * editfns.c (Fformat): Handle precision in string conversion
17857 specifiers like libc functions do (ie, print at most that many
17858 characters).
17859
17860 2002-12-08 Richard M. Stallman <rms@gnu.org>
17861
17862 * xdisp.c (row_containing_pos): Check more carefully
17863 whether charpos is really in the row before returning it.
17864
17865 2002-12-07 Steven Tamm <steventamm@mac.com>
17866
17867 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
17868
17869 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
17870 each stack frame. This may change as it could be time consuming.
17871
17872 * macterm.c (mac_check_for_quit_char, quit_char_comp)
17873 (init_quit_char_handler, mac_determine_quit_char_modifiers)
17874 (mac_initialize): Add code to check for pressing of quit_char
17875 in the OS event queue.
17876
17877 * mac.c (sys_select): Call mac_check_for_quit_char every second
17878 while blocking on select.
17879
17880 * mac.c (sys_read): Use sys_select to test for input first
17881 before calling read, to allow C-g to break.
17882
17883 2002-12-07 Richard M. Stallman <rms@gnu.org>
17884
17885 * minibuf.c (Fcompleting_read): Doc fix.
17886
17887 * lread.c (syms_of_lread) <load-history>: Doc fix.
17888
17889 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
17890
17891 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
17892 autoload.
17893
17894 * data.c (Fdefalias): Record in load-history redefining an autoload.
17895
17896 * alloca.c: Undo ifdef change accidentally made on 12-04.
17897
17898 2002-12-06 Francesco Potorti` <pot@gnu.org>
17899
17900 * xfns.c (png_load): Avoid double gamma correction for PNG images.
17901
17902 2002-12-04 Richard M. Stallman <rms@gnu.org>
17903
17904 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
17905
17906 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
17907
17908 * alloca.c: Don't use #error.
17909
17910 2002-12-03 Dave Love <fx@gnu.org>
17911
17912 * buffer.c (Qucs_set_table_for_input): New.
17913 (Fget_buffer_create): Use it.
17914 (Qset_buffer_major_mode_hook): Deleted.
17915 (Fset_buffer_major_mode): Revert previous change.
17916 (init_buffer_once): Intern ucs-set-table-for-input.
17917 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
17918 Add &Qucs_set_table_for_input.
17919
17920 2002-12-03 Andreas Schwab <schwab@suse.de>
17921
17922 * callint.c (Fcall_interactively): Use next_event only if less
17923 than key_count.
17924
17925 2002-12-02 Andrew Choi <akochoi@shaw.ca>
17926
17927 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
17928 names to 255 characters.
17929
17930 * macterm.c (XTread_socket): If all frames have been collapsed,
17931 expand the first one before handling drag-and-drop events.
17932
17933 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
17934 which is detected by autoconf.
17935
17936 2002-12-01 Steven Tamm <steventamm@mac.com>
17937
17938 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
17939 offset in two hints table to allow prebinding to be redone and
17940 allow the executable to be stripped.
17941
17942 2002-11-29 Dave Love <fx@gnu.org>
17943
17944 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
17945 already provided.
17946
17947 2002-11-29 Richard M. Stallman <rms@gnu.org>
17948
17949 * xdisp.c (start_display): Check more intelligently for
17950 whether the line is continued.
17951 (move_it_vertically_backward): Clear it->continuation_lines_width.
17952
17953 2002-11-28 Dave Love <fx@gnu.org>
17954
17955 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
17956 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
17957
17958 2002-11-27 Steven Tamm <steventamm@mac.com>
17959
17960 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
17961 more descriptive error output from lread.c:Fload upon most require
17962 cycles during boostrapping.
17963
17964 2002-11-27 Jason Rumney <jasonr@gnu.org>
17965
17966 * fileio.c (Finsert_file_contents): Give a more appropriate error
17967 for files bigger than 2Gb when off_t is 32 bit.
17968
17969 * dired.c (Ffile_attributes): Don't return negative file sizes for
17970 files bigger than 2Gb when off_t is 32 bit.
17971
17972 2002-11-27 Dave Love <fx@gnu.org>
17973
17974 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17975
17976 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
17977 Test GETPGRP_VOID instead.
17978 [BSD_TERMIOS]: Remove definitions (never used).
17979
17980 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
17981 Don't define.
17982 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17983
17984 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
17985
17986 2002-11-25 Jason Rumney <jasonr@gnu.org>
17987
17988 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
17989 supported.
17990
17991 2002-11-25 Dave Love <fx@gnu.org>
17992
17993 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
17994
17995 * Makefile.in (TEMACS_LDFLAGS): Update last change.
17996
17997 2002-11-25 Andreas Schwab <schwab@suse.de>
17998
17999 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
18000
18001 2002-11-24 Steven Tamm <steventamm@mac.com>
18002
18003 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
18004 determine the size of pointers alloced in unexed space instead
18005 of using possibly invalid emacs_zone pointers. This fixes the
18006 binary incompatibility problems caused by updates to libSystem.B.
18007
18008 2002-11-24 Richard M. Stallman <rms@gnu.org>
18009
18010 * search.c (Fstring_match): Doc fix.
18011
18012 * callint.c (Fcall_interactively): If a command fails because
18013 `*' detects a read-only buffer, but RECORD_FLAG is set,
18014 record it anyway if the args don't actually do tty input.
18015
18016 2002-11-22 Dave Love <fx@gnu.org>
18017
18018 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
18019
18020 * keyboard.c (interrupt_signal): Provide forward declaration.
18021 (kbd_buffer_store_event): Don't declare interrupt_signal.
18022
18023 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
18024
18025 2002-11-21 Richard M. Stallman <rms@gnu.org>
18026
18027 * eval.c (interactive_p): Skip any number of bytecode
18028 and special form frames, in any order.
18029
18030 2002-11-20 Jason Rumney <jasonr@gnu.org>
18031
18032 * w32fns.c (convert_mono_to_color_image): New function.
18033 (xbm_load, xbm_load_image): Use it when foreground or background
18034 is explicitly set.
18035
18036 2002-11-19 Dave Love <fx@gnu.org>
18037
18038 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
18039
18040 2002-11-18 Jason Rumney <jasonr@gnu.org>
18041
18042 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
18043 (XPutPixel): Swap blue and red.
18044 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
18045 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
18046 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
18047 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
18048
18049 2002-11-18 Dave Love <fx@gnu.org>
18050
18051 * m/orion105.h (HAVE_ALLOCA): Don't define.
18052
18053 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
18054
18055 * m/intel386.h: Don't include alloca.h or define alloca.
18056
18057 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
18058 malloc, realloc, calloc.
18059
18060 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
18061 (bcmp): Don't define.
18062
18063 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
18064
18065 * m/amdahl.h: Don't define LIB_STANDARD.
18066
18067 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
18068
18069 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
18070
18071 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
18072 Don't include alloca.h.
18073
18074 * s/aix3-2.h (HAVE_FSYNC): Don't define.
18075
18076 * regex.c (_GNU_SOURCE): Don't define.
18077
18078 * process.c (_GNU_SOURCE): Don't define.
18079
18080 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
18081
18082 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
18083
18084 * s/sol2-8.h: Include sol2-6.h.
18085
18086 2002-11-18 Miles Bader <miles@gnu.org>
18087
18088 * dispextern.h (struct face): Add `overstrike' field.
18089 * xterm.c (x_draw_glyph_string_foreground)
18090 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18091 * xfaces.c (load_face_font): Set `face->overstrike' based on
18092 result from choose_face_font.
18093 (best_matching_font, choose_face_font): Add `needs_overstrike'
18094 argument, and use it to return whether overstriking is desirable
18095 for this face/font combo.
18096 (set_font_frame_param: Pass new argument to choose_face_font.
18097
18098 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18099
18100 This change is my fix for the following entry in etc/PROBLEMS:
18101 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
18102 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
18103
18104 * w32.c: Added wrapper functions around the win32 API functions
18105 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
18106 GetSidIdentifierAuthority. These wrapper functions serve two
18107 purposes:
18108 1. They ensure that the wrapped function can never be called
18109 when Emacs is running on an operating system on which they are
18110 not supported (Microsoft Windows 95 / 98 / ME).
18111 2. They call the wrapped functions via function pointers rather
18112 than calling them directly. This avoids taking advantage of the
18113 undocumented fact that although these functions are not supported
18114 in the 9x branch of Microsoft Windows, the functions do exist in
18115 the version of advapi32.dll that is found in the 9x branch of
18116 Microsoft Windows.
18117
18118 * w32.c (init_user_info): Replace the calls to the win32 API
18119 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
18120 and GetSidIdentifierAuthority with calls to the newly added
18121 wrapper functions.
18122
18123 * w32.h: Added extern declarations for the following functions:
18124 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
18125 syms_of_w32menu, and void syms_of_fontset.
18126
18127 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
18128 function pointer track_mouse_event_fn in the handler for the
18129 WM_SETFOCUS message.
18130
18131 * w32menu.c (initialize_frame_menubar): Add code to
18132 reinitialize the function pointers set_menu_item_info and
18133 get_menu_item_info.
18134
18135 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18136
18137 * sound.c: Added a partial implementation of play-sound-internal
18138 for Microsoft Windows. Added various #ifdef / #else / #endif
18139 code blocks to separate the code that will compile under
18140 Microsoft Windows from the code that is specific to GNU/Linux.
18141 Moved several blocks of code around to make this separation of code
18142 into Windows compatible and GNU/Linux compatible code blocks easier.
18143
18144 * makefile.w32-in: Include sound.c and link with WinMM.lib.
18145
18146 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
18147 added support for play-sound-internal under Windows would be
18148 included in the build of Emacs.
18149
18150 2002-11-16 Jason Rumney <jasonr@gnu.org>
18151
18152 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
18153
18154 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
18155
18156 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
18157
18158 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
18159 (adjust_point_for_property): Move out of display and invisible even if
18160 we were already inside before (in case a property was added while
18161 we weren't looking). Be more careful when handling invisible props.
18162 Skip invisible text as if it really wasn't there at all.
18163
18164 2002-11-15 Jason Rumney <jasonr@gnu.org>
18165
18166 * w32term.c (x_draw_image_foreground)
18167 (w32_draw_image_foreground_1): Use standard copy and invert
18168 operations to draw images.
18169
18170 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
18171 depth of 1.
18172 (xbm_read_bitmap_data): Invert bits as xbm is read in.
18173 (XPutPixel): Don't invert bits here.
18174
18175 2002-11-15 Jason Rumney <jasonr@gnu.org>
18176
18177 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
18178 (w32_draw_image_foreground_1): Handle image masks.
18179 (x_draw_image_glyph_string): Don't BitBlt transparently.
18180
18181 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
18182 (x_from_xcolors): Adjust RGB values for W32.
18183 (image_background, image_background_transparent)
18184 (postprocess_image, x_to_xcolors, x_disable_image)
18185 (x_build_heuristic_mask): Adapt for W32 and enable.
18186 (x_create_x_image_and_pixmap): Mark images with palettes as such.
18187 (xbm_load): Remove unused variable.
18188
18189 2002-11-14 Richard M. Stallman <rms@gnu.org>
18190
18191 * buffer.c (syms_of_buffer): Doc fix.
18192
18193 2002-11-14 Dave Love <fx@gnu.org>
18194
18195 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
18196
18197 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
18198 * xmenu.c (unuse_menu_items, digest_single_submenu):
18199 * xfns.c (x_put_x_image):
18200 * xdisp.c (message2_nolog, set_message):
18201 * undo.c (record_point):
18202 * terminfo.c (tparam):
18203 * syntax.c (scan_sexps_forward):
18204 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18205 * composite.c (update_compositions):
18206 * cm.c (calccost, cmgoto):
18207 * charset.c (c_string_width): Declare all args (per C99).
18208
18209 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
18210
18211 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
18212 Don't declare.
18213
18214 * emacs.c (main) [!VMS]: Avoid third arg.
18215
18216 * fns.c (Fcopy_sequence): Doc fix.
18217 (Fmap_char_table): Cast `call2'.
18218
18219 2002-11-14 Francesco Potorti` <pot@gnu.org>
18220
18221 * s/sol2-8.h: New file.
18222
18223 2002-11-14 Kim F. Storm <storm@cua.dk>
18224
18225 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
18226 dependency on `risky-local-variable' and the :propertize form.
18227
18228 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
18229
18230 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
18231
18232 * syntax.c (scan_sexps_forward): Undo last patch.
18233 Use a more obvious fix: check eob before updating the syntax table.
18234
18235 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
18236
18237 * syntax.c (scan_sexps_forward): Update syntax table before reading
18238 a char rather than after so we don't update the table past eob.
18239
18240 2002-11-09 Dave Love <fx@gnu.org>
18241
18242 * buffer.c (Fset_buffer_major_mode): Fix last change.
18243
18244 * regex.c (regexec): Fix pmatch declaration.
18245
18246 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
18247
18248 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
18249 to self-inserting characters.
18250 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
18251
18252 * coding.c (Vtranslation_table_for_input): New.
18253 (syms_of_coding): DEFVAR it.
18254
18255 2002-11-08 Juanma Barranquero <lektu@terra.es>
18256
18257 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
18258 window.
18259
18260 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18261
18262 * process.c (Fformat_network_address): Remove unused locals p,
18263 cp, and i.
18264
18265 2002-11-06 Dave Love <fx@gnu.org>
18266
18267 * buffer.c (Qset_buffer_major_mode_hook): New.
18268 (Fset_buffer_major_mode): Use it.
18269
18270 2002-11-06 Richard M. Stallman <rms@gnu.org>
18271
18272 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
18273 and stop_polling.
18274
18275 * process.c (wait_reading_process_input):
18276 Test POLLING_PROBLEM_IN_SELECT, not hpux.
18277 Avoid initialization for auto Lisp_Object var.
18278
18279 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
18280
18281 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
18282
18283 2002-11-05 Richard M. Stallman <rms@gnu.org>
18284
18285 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
18286
18287 * callint.c (Fcall_interactively): New local filter_specs.
18288 (Fcall_interactively): Check for progn as well as let.
18289 Add a gcpro.
18290 (Qprogn): New variable.
18291 (syms_of_callint): Staticpro and init Qprogn.
18292
18293 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
18294
18295 * lread.c (Feval_buffer): Doc fix.
18296
18297 2002-11-04 Dave Love <fx@gnu.org>
18298
18299 * keyboard.c (read_char): Always translate iff
18300 Vkeyboard_translate_table is a char table and c is valid.
18301
18302 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18303 and fix C types.
18304
18305 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
18306
18307 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
18308
18309 * editfns.c (get_pos_property): Don't hardcode Qfield.
18310
18311 * keyboard.c (adjust_point_for_property): Handle `display' prop on
18312 overlays. Also handle `invisible' prop.
18313
18314 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
18315
18316 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
18317 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
18318
18319 2002-11-01 Andreas Schwab <schwab@suse.de>
18320
18321 * editfns.c (Fmessage): Revert last change to properly handle %%.
18322
18323 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
18324
18325 * xmenu.c (unuse_menu_items): New fun.
18326 (menu_items_inuse): New var.
18327 (syms_of_xmenu): Initialize it.
18328 (init_menu_items): Use it to detect re-entrance.
18329 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
18330 (Fx_popup_menu): Remove spurious XSETFRAME.
18331
18332 * editfns.c (find_field): Make an exception for nil fields.
18333
18334 2002-11-01 Dave Love <fx@gnu.org>
18335
18336 * m/gec63.h: Deleted.
18337
18338 2002-10-31 Dave Love <fx@gnu.org>
18339
18340 * xterm.c (XTread_socket): Fix last change.
18341 (xaw_scroll_callback): Cast call_data to long to avoid warning.
18342
18343 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
18344
18345 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
18346
18347 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
18348
18349 * editfns.c (overlays_around, get_pos_property): New funs.
18350 (find_field): Use them.
18351 Also be careful not to modify POS before its last use.
18352 (Fmessage): Don't Fformat if there's nothing to format.
18353
18354 2002-10-30 Dave Love <fx@gnu.org>
18355
18356 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
18357 [HAVE_PTY_H]; Include pty.h.
18358
18359 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
18360
18361 * xterm.c (Qeql): Declare.
18362 (Vx_keysym_table): New.
18363 (syms_of_xterm): Initialize it.
18364 (XTread_socket): Use it. Deal with ASCII keysyms.
18365 (XSetIMValues) [HAVE_X11R6]: Prototype.
18366
18367 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
18368 (lispy_kana_keys): Comment out.
18369 (make_lispy_event) [XK_kana_A]: Comment out.
18370 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
18371 Fix sprintf call.
18372
18373 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
18374 regexp.h change).
18375 (TERMINFO, LIBS_TERMCAP): Define.
18376
18377 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
18378 (bcmp): Define conditional on HAVE_BCMP.
18379 (NO_SIOCTL_H): Don't define.
18380 (TIOCSIGSEND): Don't make conditional on IRIX6.
18381
18382 * s/sol2-5.h: Don't include strings.h.
18383 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
18384
18385 * s/irix6-0.h (IRIX6): Don't define.
18386 (bcopy, bcmp, bzero): Don't undef.
18387
18388 * s/irix6-5.h: Don't include strings.h.
18389 (IRIX6): Don't define.
18390 (bcopy, bcmp, bzero): Don't undef.
18391
18392 * syntax.c (Fforward_comment): Doc fix.
18393
18394 2002-10-29 Kim F. Storm <storm@cua.dk>
18395
18396 * process.c (Fsignal_process): Allow PROCESS to be specified by
18397 name in addition to pid (as integer or string).
18398
18399 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
18400
18401 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
18402 environments.
18403
18404 2002-10-27 Kim F. Storm <storm@cua.dk>
18405
18406 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18407
18408 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
18409
18410 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
18411
18412 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
18413
18414 2002-10-26 Richard M. Stallman <rms@gnu.org>
18415
18416 * editfns.c (Fformat): Detect invalid format letters for floats.
18417
18418 2002-10-25 Kenichi Handa <handa@m17n.org>
18419
18420 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
18421 (x_set_title): Likewise.
18422
18423 2002-10-25 Juanma Barranquero <lektu@terra.es>
18424
18425 * macgui.h:
18426 * w32gui.h: Remove definition of XColor.
18427
18428 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
18429
18430 2002-10-24 Kim F. Storm <storm@cua.dk>
18431
18432 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
18433 Callers changed (supply dummy arg).
18434
18435 * lisp.h (get_window_cursor_type): Update prototype.
18436
18437 * w32term.c (x_display_and_set_cursor): Get active_cursor from
18438 get_window_cursor_type to track system caret.
18439
18440 2002-10-24 Kim F. Storm <storm@cua.dk>
18441
18442 * process.c (Fformat_network_address): New function.
18443 (syms_of_process): Defsubr it.
18444 (list_processes_1): Use it to format :local/:remote address if
18445 service/host is not set; before Emacs would crash in that case.
18446 (Fmake_network_process): Don't use Ffind_operation_coding_system
18447 to setup coding system if host or service is not set.
18448
18449 2002-10-23 Juanma Barranquero <lektu@terra.es>
18450
18451 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
18452
18453 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
18454 COLORREF.
18455
18456 * macgui.h:
18457 * w32gui.h: Add definition of XColor.
18458
18459 * macfns.c:
18460 * w32fns.c:
18461 * xfaces.c: Remove definition of XColor.
18462
18463 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
18464
18465 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
18466
18467 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
18468 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
18469 window if it is dedicated.
18470 (Fshrink_window): Add preserve_before as was done for enlarge_window.
18471 (Vspecial_display_function): Update docstring.
18472
18473 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
18474 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
18475 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
18476
18477 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
18478
18479 * casefiddle.c (casify_region): Don't treat a prefix char as part
18480 of a word when at the beginning.
18481
18482 2002-10-17 Juanma Barranquero <lektu@terra.es>
18483
18484 * lread.c (syms_of_lread): Fix typos.
18485
18486 2002-10-17 Dave Love <fx@gnu.org>
18487
18488 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
18489
18490 2002-10-16 Richard M. Stallman <rms@gnu.org>
18491
18492 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
18493
18494 2002-10-14 Juanma Barranquero <lektu@terra.es>
18495
18496 * w16select.c (syms_of_win16select): Fix docstring for
18497 `selection-coding-system'.
18498
18499 * w32select.c (syms_of_w32select): Likewise.
18500
18501 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
18502
18503 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
18504 a backslash-quoted char.
18505 (scan_lists, scan_sexps_forward): Pacify the compiler.
18506
18507 2002-10-13 Richard M. Stallman <rms@gnu.org>
18508
18509 * window.c (window_scroll): Set immediate_quit.
18510
18511 * print.c (print): When backquote form is the car of a list,
18512 output in old style. Use old_backquote_output to output all
18513 comma forms inside it in old style too.
18514
18515 * buffer.h (struct buffer): Move `undo_list' down below `name'.
18516
18517 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
18518
18519 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
18520 batch mode).
18521
18522 * lread.c (Fload): Doc fix (load-suffixes).
18523
18524 2002-10-10 Steven Tamm <steventamm@mac.com>
18525
18526 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
18527 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
18528 Also switch the default to Qnil from Qt.
18529
18530 2002-10-08 Kenichi Handa <handa@m17n.org>
18531
18532 * coding.c (code_convert_region): When we need more GAP for
18533 conversion, pay attention to the case that coding->produced is not
18534 greater than coding->consumed.
18535
18536 2002-10-07 Richard M. Stallman <rms@gnu.org>
18537
18538 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
18539
18540 2002-10-06 Andrew Choi <akochoi@shaw.ca>
18541
18542 * macmenu.c (mac_menu_show): Add j to count menu items; match
18543 menu_item_selection to it to find selected item.
18544
18545 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18546
18547 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
18548 cases. The correct fix is to pass ReparentNotify to Xt.
18549 The shell widget interprets ConfigureNotify differently depending
18550 on if it has been reparented or not.
18551
18552 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
18553
18554 * editfns.c (Fformat_time_string): Doc fix.
18555
18556 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
18557
18558 * fns.c (Flength): Doc fix.
18559
18560 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
18561
18562 * keyboard.c (keyremap): New struct.
18563 (read_key_sequence): Use it: globally replace keytran_foo with
18564 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
18565 keytran_next and fkey_next to just `next'.
18566
18567 2002-10-04 Steven Tamm <steventamm@mac.com>
18568
18569 * macterm.c (keycode_to_xkeysym_table): Change return to be
18570 treated like an X keysym.
18571
18572 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18573
18574 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
18575 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
18576 This is to also handle x/y changes that occur because of a resize.
18577
18578 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
18579
18580 * frame.c (Vdelete_frame_functions): New variable.
18581 (syms_of_frame): Initialize and defvar it.
18582 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
18583 it when frame's `tooltip' parameter is non-nil.
18584
18585 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
18586
18587 * w32fns.c (x_create_tip_frame): Likewise.
18588
18589 * macfns.c (x_create_tip_frame): Likewise.
18590
18591 2002-09-30 Kenichi Handa <handa@m17n.org>
18592
18593 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
18594 -1 before calling ccl_driver.
18595
18596 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
18597 Only when it is non-nil, handle composition sequence.
18598 (setup_coding_system) <0>: Don't force composition handling.
18599
18600 * Makefile.in (lisp, shortlisp): Add utf-16.elc
18601
18602 2002-09-29 Richard M. Stallman <rms@gnu.org>
18603
18604 * search.c (Freplace_match): Adjust match data for the substitution
18605 just made in the buffer.
18606
18607 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
18608 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
18609
18610 2002-09-27 Richard M. Stallman <rms@gnu.org>
18611
18612 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
18613 (read_char): Use them. Do all exits thru the end of the function.
18614
18615 2002-09-27 Kenichi Handa <handa@etl.go.jp>
18616
18617 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
18618 is nil.
18619
18620 2002-09-26 Richard M. Stallman <rms@gnu.org>
18621
18622 * regex.h (__restrict_arr): Don't define if already defined.
18623
18624 * coding.c (run_pre_post_conversion_on_str):
18625 Save and restore Vdeactivate_mark.
18626
18627 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
18628
18629 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
18630
18631 2002-09-26 Kenichi Handa <handa@etl.go.jp>
18632
18633 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
18634 nonzero, try face's family at first. Otherwise try FAMILY at first.
18635 (choose_face_font): If C is a single byte char or latin-1, call
18636 try_font_list with PREFER_FACE_FAMILY 1.
18637
18638 2002-09-21 Richard M. Stallman <rms@gnu.org>
18639
18640 * window.c (select_window_1): Don't select frame.
18641 Set frame's selected window only when frame itself is selected.
18642 (Fselect_window): Doc fix.
18643
18644 2002-09-18 Kim F. Storm <storm@cua.dk>
18645
18646 * process.c (make-network-process): Doc fix (there is no
18647 network-server-log-function hook).
18648
18649 2002-09-18 Richard M. Stallman <rms@gnu.org>
18650
18651 * print.c (print): Clear out the unused parts of Vprint_number_table.
18652 (syms_of_print): Doc fix for `print-number-table'.
18653
18654 * unexelf.c (unexec): Undo previous change.
18655
18656 2002-09-17 Andreas Schwab <schwab@suse.de>
18657
18658 * m/alpha.h [LINUX]: Don't define DATA_START.
18659
18660 2002-09-16 Dave Love <fx@gnu.org>
18661
18662 * unexelf.c (unexec): Deal with .got, reinstating change from
18663 25-08-1999.
18664
18665 2002-09-13 Richard M. Stallman <rms@gnu.org>
18666
18667 * s/sol2-6.h (UNEXEC): Comment out definition.
18668
18669 * unexsol.c (unexec): Don't downcase first letter of error msg.
18670
18671 * xfaces.c (Fcolor_supported_p): Just one arg is required.
18672
18673 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
18674
18675 * unexsol.c: Include buffer.h, charset.h, coding.h.
18676
18677 2002-09-11 Richard M. Stallman <rms@gnu.org>
18678
18679 * unexsol.c: Don't use report_file_error; do it by hand
18680 using dlerror.
18681
18682 * process.c (wait_reading_process_input, both versions):
18683 Before calling turn_on_atimers, call stop_polling.
18684
18685 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
18686
18687 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
18688 we go to too_near_end, call clear_glyph_matrix.
18689 (redisplay_window): After make_cursor_line_fully_visible,
18690 call clear_glyph_matrix and bypass `goto done'.
18691
18692 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
18693 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
18694
18695 2002-09-10 Richard M. Stallman <rms@gnu.org>
18696
18697 * fileio.c (Fdo_auto_save): Catch error making directory.
18698 Only call push_message if we need to.
18699 At the same time, make an unwind-protect to pop it.
18700 Rename local message_p to old_message_p.
18701 (do_auto_save_make_dir, do_auto_save_eh): New functions.
18702 (do_auto_save_unwind): Don't call pop_message.
18703
18704 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
18705
18706 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
18707
18708 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
18709
18710 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
18711
18712 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
18713
18714 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
18715 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
18716 (re_match_2_internal): Be more careful with infinite loops.
18717
18718 2002-09-10 Kim F. Storm <storm@cua.dk>
18719
18720 * macros.c (end_kbd_macro): New function.
18721 (Fend_kbd_macro): Use it.
18722
18723 * macros.h (end_kbd_macro): Declare extern.
18724
18725 * keyboard.c (Fdiscard_input): If defining keyboard macro,
18726 end and save it instead of discarding it.
18727
18728 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
18729
18730 * s/sol2-6.h: Fix typo. Add comment.
18731
18732 2002-09-09 Richard M. Stallman <rms@gnu.org>
18733
18734 * regex.c (regnum_t): Use signed int, not unsigned int.
18735
18736 * s/sol2-6.h: New file.
18737
18738 * s/sol2-5.h (UNEXEC): Definition deleted.
18739
18740 2002-09-08 Kim F. Storm <storm@cua.dk>
18741
18742 * macros.c (executing_macro_index): Change type to EMACS_INT.
18743 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
18744
18745 * macros.h (executing_macro_index): Change type to EMACS_INT.
18746
18747 2002-09-06 Richard M. Stallman <rms@gnu.org>
18748
18749 * casetab.c (set_case_table): Make canon table point to eqv table.
18750
18751 2002-09-06 Juanma Barranquero <lektu@terra.es>
18752
18753 * coding.c (syms_of_coding): Fix spacing.
18754
18755 * composite.c (Fcompose_region_internal)
18756 (Fcompose_string_internal): Likewise.
18757
18758 * data.c (Flsh): Likewise.
18759
18760 * fontset.c (Fset_fontset_font): Likewise.
18761
18762 * macfns.c (Fx_server_max_request_size): Likewise.
18763
18764 * w16select.c (syms_of_win16select): Likewise.
18765
18766 * w32select.c (syms_of_w32select): Likewise.
18767
18768 * xselect.c (syms_of_xselect): Likewise.
18769
18770 2002-09-05 Richard M. Stallman <rms@gnu.org>
18771
18772 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
18773 call EXTEND_RANGE_TABLE and return a proper value.
18774 (set_image_of_range): Don't call set_image_of_range_1
18775 if no TRANSLATE or if range includes all of Latin-1.
18776 Only call it for the Latin-1 part of the range.
18777 For other cases, make two separate ranges,
18778 one for the original specified characters and one for
18779 their case-conversions.
18780
18781 2002-09-04 Richard M. Stallman <rms@gnu.org>
18782
18783 * s/sol2-5.h (UNEXEC): Use unexsol.o.
18784
18785 * window.c (displayed_window_lines): Correct for one-off bug
18786 in HEIGHT on non-window displays.
18787
18788 * regex.c (set_image_of_range_1): New function.
18789 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
18790 Return a value to indicate running out of memory.
18791 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
18792 (extend_range_table_work_area): New subroutine.
18793 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
18794 Different calling conventions, and used from set_image_of_range{,_1}.
18795 (IMMEDIATE_QUIT_CHECK): Definitions moved.
18796
18797 2002-09-04 Juanma Barranquero <lektu@terra.es>
18798
18799 * makefile.w32-in: All dependencies updated.
18800
18801 2002-09-01 Richard M. Stallman <rms@gnu.org>
18802
18803 * unexsol.c: New file.
18804
18805 * xfns.c (Qbox): Declare external, don't define.
18806
18807 * xdisp.c (redisplay_window) <force-start case>:
18808 If point is on semi-visible last line, reposition
18809 it at previous line.
18810
18811 * alloc.c (display_malloc_warning): Use display-warning.
18812 (malloc_warning_1): Function deleted.
18813
18814 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
18815
18816 * lread.c (read1): Handle #! by skipping the line.
18817
18818 2002-08-31 Richard M. Stallman <rms@gnu.org>
18819
18820 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
18821 Don't include LDFLAGS.
18822 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
18823
18824 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
18825
18826 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
18827 member of x_display_info unless we compile for some window system.
18828
18829 2002-08-31 Kim F. Storm <storm@cua.dk>
18830
18831 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
18832 (get_window_cursor_type): Don't use them.
18833 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
18834
18835 2002-08-30 Kenichi Handa <handa@etl.go.jp>
18836
18837 * xdisp.c (get_next_display_element): Fix previous change.
18838
18839 2002-08-30 Andrew Choi <akochoi@shaw.ca>
18840
18841 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
18842 (expose_window): Use it to fix the display of overlapping
18843 rows (merge code from xterm.c).
18844
18845 * macfns.c (Qbox): Add extern declaration.
18846
18847 2002-08-30 Juanma Barranquero <lektu@terra.es>
18848
18849 * w32fns.c (Qbox): Make extern.
18850 (syms_of_w32fns): Remove initialization of Qbox.
18851
18852 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
18853
18854 * xfns.c (Fx_open_connection): Fix error message.
18855
18856 2002-08-30 Kim F. Storm <storm@cua.dk>
18857
18858 The following changes consolidates the handling of the cursor
18859 type in xdisp.c, moving duplicate code and functionality from
18860 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
18861
18862 * frame.h (enum text_cursor_kinds): Consolidated here.
18863 Added DEFAULT_CURSOR value.
18864 (struct frame) <desired_cursor, cursor_width>
18865 <blink_off_cursor, blink_off_cursor_width>: New fields.
18866 Consolidated from output_x, output_w32 and output_mac structs.
18867 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18868 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
18869
18870 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
18871 Variables consolidated here.
18872 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
18873 (Vcursor_in_non_selected_windows): Renamed from
18874 cursor_in_non_selected_windows and changed to Lisp_Object.
18875 (syms_of_xdisp): Define and staticpro new and moved variables.
18876 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
18877 consolidated here. Recognize Qhollow setting.
18878 (set_frame_cursor_types): New function to set frame cursor types
18879 based on the frame parameters.
18880 (get_window_cursor_type): New function to calculate new cursor
18881 type and width for the specified window. Based on duplicated
18882 code consolidated here.
18883 Enhancements: cursor-in-non-selected-windows may be a cursor type,
18884 check buffer-local alternate-cursor-type and blink-cursor-alist
18885 before using built-in blink off methods.
18886
18887 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
18888
18889 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
18890 (get_specified_cursor_type, get_window_cursor_type)
18891 (set_frame_cursor_types): Added prototypes.
18892
18893 * macfns.c (x_specified_cursor_type): Removed.
18894 (x_set_cursor_type): Use set_frame_cursor_types.
18895 (Qbar, Qbox): Removed.
18896 (syms_of_macfns): Don't intern or staticpro them.
18897
18898 * macterm.c (x_specified_cursor_type): Remove prototype.
18899 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18900 (x_display_and_set_cursor): Use get_window_cursor_type.
18901 Remove unused local variables cursor_non_selected, active_cursor.
18902 Redraw cursor if hbar cursor width changes.
18903 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
18904
18905 * macterm.h (enum text_cursor_kinds): Removed.
18906 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
18907 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18908 (FRAME_DESIRED_CURSOR): Macro removed.
18909
18910 * w32fns.c (Vblink_cursor_alist): Removed.
18911 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18912 (syms_of_w32fns): Don't intern, staticpro, or define them.
18913 (x_specified_cursor_type): Removed.
18914 (x_set_cursor_type): Use set_frame_cursor_types.
18915
18916 * w32term.c (x_specified_cursor_type): Remove prototype.
18917 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18918 (x_display_and_set_cursor): Use get_window_cursor_type.
18919 Remove unused local variables cursor_off_state.
18920 Redraw cursor if hbar cursor width changes.
18921 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
18922
18923 * w32term.h (enum text_cursor_kinds): Removed.
18924 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
18925 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18926 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18927 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18928 (struct w32_display_info) <x_highlight_frame>: Renamed member from
18929 w32_highlight_frame.
18930
18931 * xfns.c (Vblink_cursor_alist): Removed.
18932 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18933 (syms_of_xfns): Don't intern, staticpro, or define them.
18934 (x_specified_cursor_type): Removed.
18935 (x_set_cursor_type): Use set_frame_cursor_types.
18936
18937 * xterm.c (x_specified_cursor_type): Remove prototype.
18938 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18939 (x_display_and_set_cursor): Use get_window_cursor_type.
18940 Remove unused local variables cursor_off_state.
18941 Redraw cursor if hbar cursor width changes.
18942
18943 * xterm.h (enum text_cursor_kinds): Removed.
18944 (struct output_x) <current_cursor, desired_cursor, cursor_width>
18945 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18946 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18947 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18948 (x_specified_cursor_type): Remove prototype.
18949
18950 2002-08-28 Richard M. Stallman <rms@gnu.org>
18951
18952 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18953 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18954 (Vblink_cursor_alist): New variable.
18955 (syms_of_w32fns): Initialize and defvar it.
18956 (x_specified_cursor_type): Recognize Qbox for filled box.
18957 Exceptions are hollow boxes.
18958 (Qbox, Qhollow): New variables.
18959 (syms_of_w32fns): Initialize and staticpro them.
18960
18961 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18962 New macros.
18963 (struct w32_output): New fields blink_off_cursor,
18964 blink_off_cursor_width.
18965 (FRAME_CURSOR_WIDTH): New macro.
18966
18967 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18968 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18969
18970 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18971 for bar cursor.
18972
18973 * w32term.c (expose_overlaps): New function.
18974 (expose_window): Use it to fix the display of overlapping rows.
18975
18976 2002-08-28 Simon Josefsson <jas@extundo.com>
18977
18978 * xfns.c (Fx_open_connection): Improve help when X connection
18979 fails, xhost is insecure and xauth is better.
18980
18981 2002-08-28 Juanma Barranquero <lektu@terra.es>
18982
18983 * makefile.w32-in: Add missing dependencies on w32term.h and
18984 composite.h.
18985
18986 * emacs.c (USAGE1): Add missing newline.
18987
18988 2002-08-27 Andrew Choi <akochoi@shaw.ca>
18989
18990 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
18991
18992 2002-08-27 Richard M. Stallman <rms@gnu.org>
18993
18994 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18995 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18996 (Vblink_cursor_alist): New variable.
18997 (syms_of_xfns): Initialize and defvar it.
18998 (x_specified_cursor_type): Recognize Qbox for filled box.
18999 Exceptions are hollow boxes.
19000 (Qbox, Qhollow): New variables.
19001 (syms_of_xfns): Initialize and staticpro them.
19002
19003 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19004 New macros.
19005 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
19006
19007 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19008 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19009
19010 * emacs.c (main): Handle --script.
19011 (USAGE1): Mention --script.
19012 (standard_args): Define sort order for --script.
19013
19014 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
19015
19016 * xdisp.c (redisplay_updating_p): Variable removed.
19017 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
19018 New variables.
19019 (init_iterator): Don't free realized faces if
19020 inhibit_free_realized_faces is set.
19021 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
19022 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
19023 initialize Qinhibit_free_realized_faces.
19024
19025 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
19026 when iterator is adding glyphs to a glyph matrix.
19027
19028 2002-08-27 Kenichi Handa <handa@etl.go.jp>
19029
19030 * xdisp.c (get_next_display_element): In unibyte case, don't use
19031 octal form for such eight-bit characters that can be converted to
19032 multibyte char.
19033
19034 2002-08-26 Kim F. Storm <storm@cua.dk>
19035
19036 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
19037 foreground and background colors. From Joe Buehler.
19038
19039 2002-08-26 Miles Bader <miles@gnu.org>
19040
19041 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
19042
19043 2002-08-25 Andrew Choi <akochoi@shaw.ca>
19044
19045 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
19046 defined instead of MAC_OSX.
19047
19048 * s/darwin.h (select): Define select to sys_select only if
19049 HAVE_CARBON is defined.
19050 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
19051 (DONT_REOPEN_PTY): #def it.
19052
19053 * macterm.c (XTread_socket): Remove code to call
19054 SendEventToEventTarget for keys with command modifiers when
19055 mac_command_key_is_meta is nil.
19056
19057 2002-08-24 Andreas Schwab <schwab@suse.de>
19058
19059 * eval.c (Fdefvar): Fix last change.
19060
19061 2002-08-23 Richard M. Stallman <rms@gnu.org>
19062
19063 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
19064 Record variables in load history as (defvar . VAR).
19065 (Fdefvar): Don't record in load history if no initial value.
19066 (Qdefvar): New variable.
19067 (syms_of_eval): Init and staticpro it.
19068
19069 * lread.c (syms_of_lread): Doc fix.
19070 (build_load_history): Use Fmember to see if a definition
19071 is already in the Vload_history element.
19072
19073 * process.c (Fstart_process): Remove /: from program name.
19074
19075 * emacs.c (decode_env_path): Don't add /: if file name handler
19076 has a `safe-magic' property.
19077
19078 * callproc.c (Fcall_process): Remove /: from program name.
19079
19080 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
19081
19082 * regex.c (PATFETCH): Remove the translating fetch.
19083 (PATFETCH_RAW): Rename to PATFETCH.
19084 (set_image_of_range): New fun.
19085 (SET_RANGE_TABLE_WORK_AREA): Use it.
19086 (regex_compile): Don't translate the pattern chars so eagerly.
19087 Only do it when inserting an `exactn' bytecode or when handling
19088 a char-range.
19089 (mutually_exclusive_p): Avoid empty statement.
19090
19091 2002-08-22 Kim F. Storm <storm@cua.dk>
19092
19093 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
19094 end up on a partially visible line; this reverts a specific part
19095 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
19096 display error which has been reported several times now.
19097 However it introduces the problem that changes was supposed to fix.
19098 See my comments in the source if you want to debug this further.
19099
19100 2002-08-20 Kenichi Handa <handa@etl.go.jp>
19101
19102 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19103
19104 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
19105
19106 * msdos.c (croak): Add `void' to definition.
19107
19108 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
19109 Don't define them, they are defined in msdos.c.
19110
19111 * mem-limits.h [MSDOS]: Declare etext.
19112
19113 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
19114 `const' since CORRECT_DIR_SEPS modifies its target.
19115
19116 2002-08-19 Kim F. Storm <storm@cua.dk>
19117
19118 * keyboard.c (Fclear_this_command_keys): Add optional arg
19119 KEEP-RECORD to avoid clearing lossage when we just want to clear
19120 the current key sequence (kmacro needs this).
19121
19122 2002-08-19 Kenichi Handa <handa@localhost>
19123
19124 * composite.c (run_composition_function): Call FUNC if it is fboundp.
19125
19126 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
19127 cons, return Qnil.
19128
19129 2002-08-17 Richard M. Stallman <rms@gnu.org>
19130
19131 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
19132
19133 * sysdep.c [!VMS]: Include sys/files.h.
19134
19135 * editfns.c (save_restriction_restore): Defend from unchained marker.
19136
19137 * buffer.c (overlays_at): Handle extending vec uniformly.
19138 (overlays_in): Handle extending vec from length 0 as in overlays_at.
19139
19140 2002-08-15 Andrew Choi <akochoi@shaw.ca>
19141
19142 * mac.c (init_mac_osx_environment): New function.
19143
19144 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
19145
19146 2002-08-14 Kim F. Storm <storm@cua.dk>
19147
19148 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
19149 executing macro before appending to it (when used from Lisp).
19150 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
19151 which is called prior to each iteration of macro (for kmacro.el).
19152 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
19153
19154 * lisp.h (Fexecute_kbd_macro): Update prototype.
19155
19156 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
19157
19158 2002-08-14 Kenichi Handa <handa@etl.go.jp>
19159
19160 * xselect.c (QUTF8_STRING): New variable.
19161 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
19162 (x_atom_to_symbol): Likewise.
19163 (x_get_local_selection): New argument local_request. If it is
19164 nonzero, call handler_fn with the second arg nil.
19165 (x_handle_selection_request): Call x_get_local_selection with
19166 local_request 0.
19167 (lisp_data_to_selection_data): Don't encode the string here.
19168 (Fx_get_selection_internal): Call x_get_local_selection with
19169 local_request 1.
19170 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
19171
19172 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
19173
19174 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
19175
19176 2002-08-13 Richard M. Stallman <rms@gnu.org>
19177
19178 * minibuf.c (Fminibufferp): New function.
19179 (syms_of_minibuf): Defsubr it.
19180 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
19181
19182 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
19183
19184 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
19185
19186 2002-08-12 Richard M. Stallman <rms@gnu.org>
19187
19188 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
19189 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
19190 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
19191 already.
19192
19193 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
19194
19195 2002-08-11 Andrew Choi <akochoi@shaw.ca>
19196
19197 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
19198 (Vmac_pass_command_to_system): New variable.
19199 (Vmac_pass_control_to_system): New variable.
19200 (do_mouse_moved): Check wp with is_emacs_window.
19201 (XTread_socket): Check window_ptr with is_emacs_window.
19202 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
19203 events back to Mac Toolbox for processing, depending on values of
19204 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
19205 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
19206 Vmac_pass_control_to_system.
19207
19208 2002-08-10 Kenichi Handa <handa@etl.go.jp>
19209
19210 * coding.c (unencodable_char_position): New function.
19211 (Funencodable_char_position): New function.
19212 (syms_of_coding): Defsubr Funencodable_char_position.
19213
19214 2002-08-10 Andrew Choi <akochoi@shaw.ca>
19215
19216 * mac.c (sys_select) [MAC_OSX]: New function.
19217
19218 * macterm.c (MakeMeTheFrontProcess): New function.
19219 (mac_initialize): Call MakeMeTheFrontProcess.
19220
19221 * s/darwin.h: Define select to sys_select.
19222
19223 2002-08-09 Richard M. Stallman <rms@gnu.org>
19224
19225 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
19226
19227 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
19228
19229 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
19230 end of the buffer.
19231
19232 2002-08-08 Ken Raeburn <raeburn@gnu.org>
19233
19234 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
19235
19236 * puresize.h (BASE_PURESIZE): Increase to 910000.
19237
19238 2002-08-08 Kenichi Handa <handa@etl.go.jp>
19239
19240 * coding.c (Ffind_operation_coding_system): For write-region, if
19241 VISIT is a filename, make it the target.
19242
19243 2002-08-07 Richard M. Stallman <rms@gnu.org>
19244
19245 * alloc.c (mark_object): Detect long lists for debugging.
19246 (mark_object_loop_halt): New variable.
19247
19248 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
19249
19250 * data.c (Fmake_variable_frame_local): Doc fix.
19251
19252 2002-08-01 David Ponce <david@dponce.com>
19253
19254 * w32menu.c (local_heap, local_alloc, local_free): New macros.
19255 (malloc_widget_value, free_widget_value)
19256 (w32_free_submenu_strings): Use them.
19257
19258 (push_submenu_start, push_submenu_end, push_left_right_boundary)
19259 (push_menu_pane, push_menu_item, single_keymap_panes)
19260 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
19261 (single_submenu, set_frame_menubar)
19262 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
19263
19264 (Fx_popup_menu): Don't show pop up menu until preceding one is
19265 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
19266
19267 * w32menu.c: Changes adapted from xmenu.c
19268 (set_frame_menubar): First parse all submenus,
19269 then make widget_value trees from them.
19270 Don't allocate any widget_value objects
19271 until we are done with the parsing.
19272 (parse_single_submenu): New function.
19273 (digest_single_submenu): New function.
19274 (single_submenu): Function deleted, replaced by those two.
19275
19276 2002-08-04 Andrew Choi <akochoi@shaw.ca>
19277
19278 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
19279 returns a valid window pointer before proceeding for keyDown and
19280 autoKey events.
19281
19282 2002-08-03 Andrew Choi <akochoi@shaw.ca>
19283
19284 * macterm.c (USE_CARBON_EVENTS): New macro.
19285 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
19286 (x_iconify_frame): Call CollapseWindow.
19287 (Vmac_reverse_ctrl_meta): New variable.
19288 (Vmac_wheel_button_is_mouse_2): New variable.
19289 (init_mac_drag_n_drop): New function.
19290 (mac_do_receive_drag): New function.
19291 (mac_handle_service_event): New function.
19292 (init_service_handler): New function.
19293 (mac_to_emacs_modifiers): New function.
19294 (mac_event_to_emacs_modifiers): New function.
19295 (mac_get_mouse_btn): New function.
19296 (mac_convert_event_ref): New function.
19297 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
19298 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
19299 mac_get_mouse_btn.
19300 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
19301
19302 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
19303 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
19304 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
19305 TOOL_BAR_EVENT for MAC_OS as well.
19306 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
19307 as for WINDOWS_NT.
19308 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
19309
19310 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
19311
19312 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
19313
19314 * xdisp.c (forward_to_next_line_start): Fix a condition that
19315 lead to a newline being skipped.
19316
19317 2002-08-02 Andrew Choi <akochoi@shaw.ca>
19318
19319 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
19320
19321 2002-08-01 Richard M. Stallman <rms@gnu.org>
19322
19323 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
19324
19325 2002-07-31 Andrew Choi <akochoi@shaw.ca>
19326
19327 * macfns.c: #undef init_process before #define-ing it.
19328
19329 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
19330 HAVE_CARBON is defined.
19331
19332 2002-07-31 Richard M. Stallman <rms@gnu.org>
19333
19334 * xmenu.c (set_frame_menubar): First parse all submenus,
19335 then make widget_value trees from them.
19336 Don't allocate any widget_value objects
19337 until we are done with the parsing.
19338 (parse_single_submenu): New function.
19339 (digest_single_submenu): New function.
19340 (single_submenu): Function deleted, replaced by those two.
19341
19342 2002-07-30 Juanma Barranquero <lektu@terra.es>
19343
19344 * w32proc.c (syms_of_ntproc): Fix docstring of
19345 `w32-get-true-file-attributes'.
19346
19347 2002-07-28 Richard M. Stallman <rms@gnu.org>
19348
19349 * s/hpux8.h (HPUX8): Define this before including hpux.h.
19350 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
19351
19352 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
19353
19354 * keyboard.c (make_lispy_event):
19355 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
19356 Explicitly clear up_modifier in event->modifiers.
19357
19358 2002-07-27 Richard M. Stallman <rms@gnu.org>
19359
19360 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
19361
19362 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19363 for bar cursor.
19364
19365 2002-07-26 Kenichi Handa <handa@etl.go.jp>
19366
19367 * coding.c (detect_coding_iso2022): While checking a byte sequence
19368 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
19369 it in the normal loop.
19370
19371 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
19372
19373 * xterm.c (expose_overlaps): New function.
19374 (expose_window): Use it to fix the display of overlapping rows.
19375
19376 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
19377
19378 2002-07-23 Ken Raeburn <raeburn@gnu.org>
19379
19380 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
19381 since it only depends on XUINT.
19382
19383 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
19384 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
19385 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
19386 Macros deleted.
19387
19388 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
19389 its value over other approaches.
19390 * sysdep.c (start_of_data): Don't define the function if a macro
19391 form has been defined.
19392
19393 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
19394
19395 * xdisp.c (redisplay_updating_p): New variable.
19396 (init_iterator): Don't free realized faces when
19397 redisplay_updating_p is set.
19398 (redisplay_internal): Set redisplay_updating_p while updating
19399 the display.
19400
19401 2002-07-23 Richard M. Stallman <rms@gnu.org>
19402
19403 * editfns.c (Fmessage): Treat "" like nil.
19404
19405 2002-07-23 Kenichi Handa <handa@etl.go.jp>
19406
19407 * xdisp.c (face_before_or_after_it_pos):
19408 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19409
19410 2002-07-22 Juanma Barranquero <lektu@terra.es>
19411
19412 * callproc.c (init_callproc) [DOS_NT]:
19413 Initialize Vshared_game_score_directory to nil.
19414 (syms_of_callproc) [DOS_NT]: Likewise.
19415
19416 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
19417
19418 * xdisp.c (display_line): Replace an abort with xassert.
19419
19420 2002-07-21 Richard M. Stallman <rms@gnu.org>
19421
19422 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
19423 and END_UNCHANGED when setting buffer_unchanged_p.
19424 Use current_matrix_up_to_date_p to decide whether to use
19425 try_cursor_movement.
19426
19427 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
19428
19429 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
19430
19431 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
19432 Set to nil if dir does not exist.
19433 (syms_of_callproc): Init unconditionally and simply.
19434
19435 * buffer.c (Fbuffer_list): Doc fix.
19436
19437 2002-07-21 Ken Raeburn <raeburn@gnu.org>
19438
19439 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
19440
19441 * buffer.c (mmap_realloc): When shrinking, make sure number of
19442 pages to unmap is rounded towards zero.
19443
19444 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
19445 (XSETINT): Deleted.
19446
19447 * m/att3b.h (XINT): Don't define.
19448 (VALBITS, VALMASK, XTYPE): Deleted.
19449 (DATA_SEG_BITS): Define.
19450 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
19451 ARRAY_MARK_FLAG): Deleted.
19452 (DATA_SEG_BITS): Define.
19453 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
19454 (DATA_SEG_BITS): Define.
19455
19456 2002-07-20 Richard M. Stallman <rms@gnu.org>
19457
19458 * print.c (print_error_message): New args CONTEXT and CALLER.
19459 Calls changed.
19460
19461 * lisp.h (print_error_message): Declare new args.
19462
19463 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
19464 and CONTEXT to print_error_message, don't print them here.
19465 For a Quit, don't use Vsignaling_function.
19466 Call message_log_maybe_newline.
19467
19468 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
19469
19470 2002-07-20 Kim F. Storm <storm@cua.dk>
19471
19472 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
19473
19474 2002-07-19 Ken Raeburn <raeburn@gnu.org>
19475
19476 * bytecode.c (struct byte_stack): Pointers into byte string now
19477 point to const.
19478 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
19479 const.
19480 * charset.h (BCOPY_SHORT): Source pointer now points to const.
19481 * coding.c (encode_eol, detect_coding, detect_eol):
19482 (decode_coding, encode_coding, detect_coding_system):
19483 Source strings now treated as const.
19484 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
19485 modify Lisp string contents.
19486 * coding.h (decode_coding, encode_coding, detect_coding,
19487 detect_eol): Declarations updated.
19488 * composite.c (compose_chars_in_text): Treat Lisp string contents
19489 as const.
19490 * dispnew.c (safe_bcopy): Source pointer now points to const.
19491 * lisp.h (STRING_COPYIN): New macro.
19492 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
19493 (internal_with_output_to_temp_buffer): Declarations updated.
19494 * print.c (temp_output_buffer_setup):
19495 (internal_with_output_to_temp_buffer): Buffer name argument is now
19496 pointer to const.
19497 * sound.c (struct sound_device): Function pointer field "write"
19498 buffer argument now points to const.
19499 (vox_write): Buffer argument points to const.
19500 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
19501 contents as const.
19502 * sysdep.c (emacs_write): Buffer pointer now const.
19503 * term.c (encode_terminal_code): Buffer pointer now const.
19504 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
19505 (x_face_list_fonts, x_update_menu_appearance):
19506 (hash_string_case_insensitive): Treat Lisp string contents as const.
19507
19508 2002-07-19 Juanma Barranquero <lektu@terra.es>
19509
19510 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
19511
19512 * fileio.c (syms_of_fileio): Likewise.
19513 (Ffile_name_as_directory): Fix argument name in docstring.
19514 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
19515
19516 2002-07-18 Richard M. Stallman <rms@gnu.org>
19517
19518 * data.c (Fdefalias): Doc fix.
19519
19520 2002-07-17 Dave Love <fx@gnu.org>
19521
19522 * intervals.h (text_property_stickiness): Use P_.
19523
19524 * ccl.c: Remove `emacs' conditionals.
19525 (ccl_backtrace_table): Fix size spec.
19526 (ccl_driver): Fix type errors.
19527
19528 2002-07-16 Ken Raeburn <raeburn@gnu.org>
19529
19530 * alloc.c (xstrdup, make_string, make_unibyte_string)
19531 (make_multibyte_string, build_string): String pointer args now
19532 point to const.
19533 * charset.c (find_charset_in_text, c_string_width):
19534 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
19535 * fileio.c (report_file_error):
19536 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
19537 (count_combining_before, count_combining_after, insert_1_both):
19538 (insert, insert_and_inherit, insert_string):
19539 (insert_before_markers, insert_before_markers_and_inherit):
19540 * lread.c (intern, oblookup, hash_string):
19541 * minibuf.c (temp_echo_area_glyphs):
19542 * search.c (fast_c_string_match_ignore_case):
19543 * sysdep.c (emacs_open, set_file_times):
19544 * xfaces.c (xstricmp):
19545 * xdisp.c (store_frame_title, string_char_and_length):
19546 (message_dolog, message2, message2_nolog, set_message): Likewise.
19547 (set_message_1): Cast message string argument to const pointer.
19548 * editfns.c (general_insert_function): Insertion function now
19549 takes pointer to const for input data.
19550 * charset.h (find_charset_in_text, c_string_width):
19551 (parse_str_as_multibyte): Declarations updated.
19552 * dispextern.h (xstricmp): Declaration updated.
19553 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
19554 (count_size_as_multibyte, count_combining_before):
19555 (count_combining_after, insert_1, insert_1_both, message_dolog):
19556 (insert, insert_and_inherit, insert_before_markers)
19557 (insert_before_markers_and_inherit, set_message, message2):
19558 (message2_dolog, build_string, make_string, make_unibyte_string):
19559 (make_multibyte_string, intern, oblookup, report_file_error):
19560 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
19561 (emacs_open, xstrdup): Declarations updated.
19562 * systime.h (set_file_times): Declaration updated.
19563
19564 * charset.c (find_charset_in_text, lisp_string_width): Use const
19565 for pointer to lisp string data.
19566 * charset.h (FETCH_STRING_CHAR_ADVANCE):
19567 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
19568 * coding.c (Ffind_coding_systems_region_interval):
19569 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
19570 (Fmake_directory_internal, Fdelete_directory):
19571 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
19572 * fontset.c (font_family_registry, fs_query_fontset):
19573 (list_fontsets):
19574 * frame.c (Fframe_parameter):
19575 * keyboard.c (cmd_error_internal):
19576 * keymap.c (Fdescribe_buffer_bindings):
19577 * lread.c (complete_filename_p, openp):
19578 * minibuf.c (Fminibuffer_complete_word):
19579 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
19580 (face_before_or_after_it_pos, next_element_from_string):
19581 (get_overlay_arrow_glyph_row, display_mode_element):
19582 (decode_mode_spec_coding):
19583 * xterm.c (same_x_server): Likewise.
19584
19585 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
19586 settings of non-existent fields.
19587
19588 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
19589 copy a lisp value.
19590
19591 * lread.c (Fintern_soft): Use string macros instead of
19592 Lisp_String fields.
19593 * keyboard.c (echo_char, parse_modifiers_uncached):
19594 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
19595 * textprop.c (validate_interval_range, interval_of): Likewise.
19596
19597 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
19598
19599 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19600 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
19601 XSTRING()->size_byte.
19602
19603 * lisp.h (SDATA, SREF): Produce rvalue.
19604 (SSET): New macro.
19605 * alloc.c (make_event_array): Use SSET for storing into a string.
19606 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
19607 a string.
19608 * casefiddle.c (casify_object): Use SSET.
19609 * charset.h (FETCH_STRING_CHAR_ADVANCE)
19610 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
19611 address of string contents.
19612 * data.c (Faref): Use SDATA.
19613 (Faset): Use SDATA, SSET.
19614 * dired.c (directory_files_internal): Use SSET.
19615 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
19616 (Fread_file_name): Use SREF, SSET.
19617 * fns.c (concat): Use SSET.
19618 (concat, Fdelete): Use SDATA.
19619 * insdel.c (insert_from_string_1): Use SDATA.
19620 * keyboard.c (Fevent_convert_list): Use SREF.
19621 * lread.c (Fload): Use SDATA, SSET.
19622 * macfns.c (validate_x_resource_name): Use SSET.
19623 * process.c (status_message): Use SSET.
19624 * search.c (wordify): Use SDATA.
19625 (Freplace_match): Use SREF.
19626 * w32fns.c (validate_x_resource_name): Use SSET.
19627 * xfns.c (validate_x_resource_name): Use SSET.
19628 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
19629
19630 2002-07-16 Richard M. Stallman <rms@gnu.org>
19631
19632 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
19633
19634 * xdisp.c (reconsider_clip_changes):
19635 Don't test prevent_redisplay_optimizations_p.
19636 (redisplay_internal): Test prevent_redisplay_optimizations_p
19637 along with clip_changed in some cases.
19638 (try_window_id): Likewise.
19639 (redisplay_window): New local var buffer_unchanged_p.
19640
19641 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
19642
19643 * process.c (create_process): Test USG_SUBTTY_WORKS.
19644 (process_send_signal): Clean up handling of GID.
19645 Detect errors in ioctls meant to set GID.
19646
19647 * window.c (temp_output_buffer_show):
19648 Don't set prevent_redisplay_optimizations_p.
19649
19650 2002-07-15 Juanma Barranquero <lektu@terra.es>
19651
19652 * eval.c (Fdefvaralias): Add docstring argument.
19653
19654 2002-07-15 Ken Raeburn <raeburn@gnu.org>
19655
19656 * lisp.h (STRING_INTERVALS): Produce rvalue.
19657 (STRING_SET_INTERVALS): New macro.
19658 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
19659 * fns.c (Fstring_as_multibyte): Likewise.
19660 * intervals.c (balance_possible_root_interval, delete_interval)
19661 (create_root_interval, copy_intervals_to_string): Likewise.
19662 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
19663 instead of 0.
19664
19665 2002-07-14 Ken Raeburn <raeburn@gnu.org>
19666
19667 * lisp.h (STRING_SET_CHARS): New macro.
19668 (SCHARS, SBYTES): Produce rvalues.
19669 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
19670 * fns.c (concat): Likewise.
19671 * lread.c (read_vector): Likewise.
19672
19673 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
19674 (STRING_SET_UNIBYTE): New macro.
19675 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
19676 length of -1) changed to use STRING_SET_UNIBYTE.
19677 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19678 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
19679 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
19680 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
19681 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
19682 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
19683 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
19684 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
19685 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
19686 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
19687 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
19688 STRING_BYTES or indirection changed to SCHARS, SBYTES,
19689 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
19690 unchanged for now.
19691
19692 2002-07-13 Kim F. Storm <storm@cua.dk>
19693
19694 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
19695
19696 2002-07-12 Richard M. Stallman <rms@gnu.org>
19697
19698 * fileio.c (Fwrite_region): Doc fix.
19699
19700 * print.c (print_error_message): Don't handle Vsignaling_function here.
19701
19702 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
19703 (command_loop_1): Avoid certain actions after memory-full error.
19704
19705 * eval.c (Fsignal): Don't call cancel_hourglass.
19706 For a memory-full error, don't call Vsignal_hook_function
19707 and don't set Vsignaling_function.
19708
19709 * process.c (process_send_signal): Add abort call.
19710
19711 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
19712
19713 * keymap.c (Fkey_binding): Fix typo.
19714
19715 2002-07-11 Richard M. Stallman <rms@gnu.org>
19716
19717 * alloc.c (Vmemory_full): New variable.
19718 (Vmemory_signal_data): Rename from memory_signal_data.
19719 Uses changed.
19720 (syms_of_alloc): Defvar them.
19721 (memory_full, buffer_memory_full): Set Vmemory_full.
19722
19723 * lisp.h (Vmemory_full): Add declaration.
19724 (current_column, indented_beyond_p): Change declaration.
19725
19726 * indent.c (last_known_column): Declare as double, not float.
19727 (current_column, current_column_1, string_display_width)
19728 (position_indentation): Return `double'.
19729 (indented_beyond_p): Arg `column' is `double'. Callers changed.
19730
19731 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
19732 (back_to_previous_visible_line_start)
19733 (reseat_at_next_visible_line_start, next_element_from_buffer):
19734 Use `double', not `float', when calling indented_beyond_p.
19735
19736 * s/hpux11.h (BROKEN_SA_RESTART): Define.
19737
19738 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
19739
19740 2002-07-11 Juanma Barranquero <lektu@terra.es>
19741
19742 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
19743 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
19744 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
19745 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
19746 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
19747 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
19748
19749 2002-07-10 Juanma Barranquero <lektu@terra.es>
19750
19751 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
19752 All callers changed.
19753
19754 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
19755
19756 * data.c (Fdefalias): Add an optional `docstring' argument.
19757 (set_internal, Fsetq_default): Use XCAR/XCDR.
19758
19759 * composite.c (HASH_VALUE, HASH_KEY):
19760 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
19761
19762 2002-07-09 Kenichi Handa <handa@etl.go.jp>
19763
19764 * callproc.c (Fcall_process): Fix previous change.
19765
19766 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
19767
19768 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
19769 Add support for hash-tables.
19770 (Ftry_completion): Return t even if the string appears multiple times.
19771
19772 * fns.c (Fnconc): Use XCDR.
19773 (Fprovide): Use CONSP and XCDR.
19774 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19775 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
19776 (Fmake_hash_table): Accept `:size nil'.
19777 (Fmakehash): Delete: moved to subr.el.
19778 (syms_of_fns): Don't defsubr makehash.
19779
19780 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
19781 (HASH_TABLE_SIZE): Move from fns.c.
19782
19783 2002-07-07 Richard M. Stallman <rms@gnu.org>
19784
19785 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
19786 Instead just return 0 when there is something to be done.
19787 (try_scrolling): If make_cursor_line_fully_visible returns 0,
19788 retry scrolling as if cursor were off the bottom.
19789 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
19790 return CURSOR_MOVEMENT_MUST_SCROLL.
19791 (redisplay_window): If make_cursor_line_fully_visible returns 0,
19792 go to try_to_scroll.
19793
19794 * buffer.c (Fbuffer_local_value): Store current value into its binding
19795 so we get the up-to-date value for the binding that is loaded.
19796
19797 * eval.c (Fdefmacro): Doc fix.
19798
19799 2002-07-05 Dave Love <fx@gnu.org>
19800
19801 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
19802 correctly.
19803
19804 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
19805 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
19806 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
19807 CCL_LookupCharConstTbl.
19808 (syms_of_ccl): Defvar translation-hash-table-vector.
19809
19810 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19811
19812 * xdisp.c: Remove unused variable `face'.
19813
19814 2002-07-04 Juanma Barranquero <lektu@terra.es>
19815
19816 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
19817 obsolescence information.
19818
19819 2002-07-03 Andrew Choi <akochoi@shaw.ca>
19820
19821 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
19822 pattern. Search cache first.
19823 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
19824 for Japanese font.
19825 (XLoadQueryFont): Use it.
19826
19827 2002-07-02 Richard M. Stallman <rms@gnu.org>
19828
19829 * keymap.c (Fdefine_key): Doc fix.
19830
19831 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
19832
19833 2002-07-02 Juanma Barranquero <lektu@terra.es>
19834
19835 * keymap.c (syms_of_keymap): Fix typo.
19836
19837 2002-07-01 Andrew Choi <akochoi@shaw.ca>
19838
19839 * s/darwin.h: Define POSIX_SIGNALS.
19840
19841 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
19842 and FSRefMakePath to convert FSSpec returned with Apple Event to
19843 Posix pathname.
19844 (mac_initialize) [TARGET_API_MAC_CARBON]:
19845 Call init_required_apple_events and disable the `Quit' menu item
19846 provided automatically by the Carbon Toolbox.
19847
19848 2002-07-01 Dave Love <fx@gnu.org>
19849
19850 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19851 for K&R.
19852
19853 * xterm.c: Fix prototype for K&R.
19854
19855 * term.c (costs_set): Declare static, non-initialized for pcc.
19856
19857 2002-07-01 Richard M. Stallman <rms@gnu.org>
19858
19859 * keyboard.c (timer_last_idleness_start_time): New variable.
19860 (timer_start_idle): Set that.
19861 (read_key_sequence): Use that to reset timer_idleness_start_time
19862 to previous value.
19863
19864 * window.c (Frecenter): With arg, set optional_new_start.
19865
19866 * xdisp.c (redisplay_internal): Make optional_new_start really work.
19867
19868 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
19869 buffer for completion.
19870
19871 2002-06-29 Ken Raeburn <raeburn@gnu.org>
19872
19873 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
19874
19875 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19876
19877 * keyboard.c (readable_filtered_events): New function that filters
19878 FOCUS_IN_EVENT depending on parameter.
19879 (readable_events): Calls readable_filtered_events, not filtering
19880 FOCUS_IN_EVENT.
19881 (get_filtered_input_pending): New function, filtering parameter passed
19882 to readable_filtered_events.
19883 (get_input_pending): Calls get_filtered_input_pending, not filtering
19884 FOCUS_IN_EVENT.
19885 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
19886 FOCUS_IN_EVENT.
19887
19888 * xterm.h (struct x_output): Add focus_state.
19889
19890 * xterm.c (x_focus_changed): New function.
19891 (x_detect_focus_change): New function.
19892 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
19893 EnterNotify and LeaveNotify to track X focus changes.
19894
19895 2002-06-28 Andreas Schwab <schwab@suse.de>
19896
19897 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
19898
19899 2002-06-27 Kim F. Storm <storm@cua.dk>
19900
19901 * xdisp.c (mode_line_string_list, mode_line_string_face)
19902 (mode_line_string_face_prop): New variables.
19903 (store_mode_line_string): New function.
19904 (display_mode_element): Use store_mode_line_string to
19905 add mode-line string elements to mode_line_string_list
19906 when mode_line_string_list is non-nil.
19907 (Fformat_mode_line): Now returns propertized string by
19908 default. New arg NO-PROPS to ignore properties.
19909 (decode_mode_spec): Only add two dashes for %- in propertized
19910 mode-line string.
19911 (syms_of_xdisp): Init and staticpro mode_line_string_list.
19912
19913 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
19914
19915 * minibuf.c (minibuffer_completion_contents): Add return type.
19916
19917 2002-06-27 Juanma Barranquero <lektu@terra.es>
19918
19919 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
19920
19921 2002-06-26 Juanma Barranquero <lektu@terra.es>
19922
19923 * fileio.c (read_file_name_cleanup): Add missing return.
19924
19925 2002-06-26 Richard M. Stallman <rms@gnu.org>
19926
19927 * window.c (Frecenter): Don't set force_start flag.
19928
19929 * minibuf.c (do_completion, Fminibuffer_complete_word)
19930 (Fminibuffer_completion_help): Complete just the text before point.
19931 (minibuffer_completion_contents): New function.
19932
19933 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
19934
19935 * frame.c (frames_bury_buffer): Function deleted.
19936
19937 2002-06-25 Miles Bader <miles@gnu.org>
19938
19939 * callint.c (Fcall_interactively): When checking to see if doprnt hit
19940 the end of callint_message, allow for a terminating '\0'.
19941
19942 2002-06-24 Juanma Barranquero <lektu@terra.es>
19943
19944 * w32select.c: Include composite.h.
19945
19946 * w16select.c: Likewise.
19947
19948 2002-06-24 Kenichi Handa <handa@etl.go.jp>
19949
19950 * callproc.c (Fcall_process): If code detection is necessary,
19951 call detect_coding directly here.
19952
19953 * coding.c (detect_eol): Preserve coding->cmp_data.
19954
19955 * w16select.c (Fw16_get_clipboard_data):
19956 * w32fns.c (w32_to_x_font):
19957 * w32select.c (Fw32_get_clipboard_data):
19958 * xselect.c (selection_data_to_lisp_data):
19959 * xterm.c (XTread_socket): Disable composition handling.
19960
19961 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
19962
19963 * print.c (temp_output_buffer_setup): Kill all local variables.
19964
19965 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
19966
19967 * lread.c (Fread): Remove redundant and imprecise declaration.
19968
19969 * xfns.c (check_x_display_info): Use check_x_frame.
19970
19971 * .gdbinit (xprintsym): Use the new `xname' field.
19972 (xsymbol): Use it.
19973
19974 2002-06-22 Jason Rumney <jasonr@gnu.org>
19975
19976 * w32fns.c (file_dialog_callback): New function.
19977 (Fx_file_dialog): Allow selecting directories as well as files.
19978
19979 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19980
19981 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
19982 OpenBSD. Add support for mipseb-*-netbsd* machines.
19983
19984 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19985
19986 * macterm.c (mac_scroll_area): Set foreground and backcolor to
19987 black and white before scrolling. Restore frame background and
19988 foreground color after scrolling.
19989 (do_window_update): Call XClearWindow before calling expose_frame.
19990 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
19991 FRAME_FOREGROUND_PIXEL of frame.
19992
19993 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19994 test Mac command key as <ALT> key.
19995
19996 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
19997
19998 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
19999
20000 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
20001 Lookup keys in function-key-map immediately so that key-translation-map
20002 can be applied earlier.
20003 Remove function_key_possible and key_translation_possible, replaced
20004 by checking `keytran_start < t'.
20005
20006 * .gdbinit (xsymbol): Use the new `xname' field.
20007
20008 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20009
20010 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20011 test Mac command key as <ALT> key.
20012
20013 * mac.c (do_applescript): Call initialize_applescript if necessary
20014 when first called. Dispose of result_desc only when there is no error.
20015 (Fdo_applescript): Use %d format specifier instead of %ld.
20016
20017 2002-06-16 Andrew Choi <akochoi@shaw.ca>
20018
20019 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
20020 of FrontWindow for cases keyDown and autoKey.
20021
20022 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
20023 Vdefault_fontset to Monaco with mac-roman coding.
20024
20025 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
20026 init_process before and after inclusion of Carbon/Carbon.h, resp.
20027
20028 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
20029 cursor_gc.
20030 (add_font_name_table_entry): New function.
20031 (init_font_name_table): Use add_font_name_table_entry; add italic,
20032 bold, and bold-italic entries for truetype fonts.
20033
20034 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
20035 for Mac too.
20036 (try_font_list) [MAC_OS]: If no font matches given registry, try
20037 fonts with any registry matching face_family.
20038 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
20039
20040 * s/darwin.h: If autoconf detects the Ncurses library, define
20041 LIBS_TERMCAP to -lncurses to use it.
20042
20043 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
20044
20045 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
20046
20047 2002-06-15 Richard M. Stallman <rms@gnu.org>
20048
20049 * window.c (Fset_window_configuration): Explicitly preserve
20050 the point value that new_current_buffer had at the start.
20051
20052 2002-06-14 Juanma Barranquero <lektu@terra.es>
20053
20054 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
20055 Fix typos.
20056
20057 2002-06-14 Kim F. Storm <storm@cua.dk>
20058
20059 * insdel.c (insert_1_both, insert_from_string_1)
20060 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
20061 insert happened in the end_unchanged region. Otherwise, the
20062 redisplay may be confused and duplicate the last line in the
20063 buffer [seen after save-buffer when require-final-newline==t].
20064
20065 2002-06-13 Jason Rumney <jasonr@gnu.org>
20066
20067 * w32.c (init_environment): Remove EMACSLOCKDIR.
20068 (stat): Swap _S_IFDIR and _S_IFREG.
20069
20070 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20071
20072 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
20073 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
20074 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
20075 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
20076 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
20077 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
20078 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
20079 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
20080 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
20081 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
20082 SELECTION_REQUEST_EVENT, selection_clear_event to
20083 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
20084 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
20085 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
20086 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
20087 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
20088 no_event to NO_EVENT.
20089
20090 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20091
20092 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
20093
20094 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
20095
20096 * intervals.c (textget): Don't forget to `return'.
20097 (lookup_char_property): Use XCAR/XCDR.
20098
20099 2002-06-12 Juanma Barranquero <lektu@terra.es>
20100
20101 * xdisp.c (Fformat_mode_line): Fix typo.
20102
20103 2002-06-12 Kim F. Storm <storm@cua.dk>
20104
20105 * xdisp.c (Fformat_mode_line): New function.
20106 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
20107 (store_frame_title_char, store_frame_title): Use unconditionally.
20108 (init_xdisp): Defsubr Fformat_mode_line.
20109 Initialize frame_title_buf etc. unconditionally.
20110
20111 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
20112
20113 * keyboard.c (read_key_sequence):
20114 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
20115 things through those maps after downcasing events.
20116 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
20117 applies after function-key-map.
20118 Make sure that keytran can be done in the middle in the sequence.
20119 Be careful not to throw away events past the one we downcase.
20120
20121 * lread.c (read_integer): Remove unused var `tem'.
20122 (read1): Fix int/Lisp_Object mixup.
20123
20124 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
20125
20126 2002-06-11 Richard M. Stallman <rms@gnu.org>
20127
20128 * keyboard.c (readable_events): Ignore any number of
20129 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
20130
20131 2002-06-09 Miles Bader <miles@gnu.org>
20132
20133 * xfaces.c (Ftty_supports_face_attributes_p): New function.
20134 (parse_rgb_list, tty_lookup_color): New functions.
20135 (tty_defined_color): Use `tty_lookup_color' to do all the work.
20136 (color_distance, Fcolor_distance): New functions.
20137 (TTY_SAME_COLOR_THRESHOLD): New macro.
20138 (Qtty_color_standard_values): New variable.
20139 (syms_of_xfaces): Initialize new vars & functions.
20140
20141 2002-06-08 Colin Walters <walters@verbum.org>
20142
20143 * textprop.c (Vchar_property_alias_alist): New variable.
20144 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
20145
20146 * intervals.c (lookup_char_property): New function for looking up
20147 overlay and text properties, created from textget.
20148 (textget): Use it.
20149
20150 * intervals.h (lookup_char_property): Declare.
20151 (Vchar_property_alias_alist): Declare.
20152
20153 * buffer.c (Foverlay_get): Use lookup_char_property.
20154
20155 2002-06-07 Sam Steingold <sds@gnu.org>
20156
20157 * xselect.c (lisp_data_to_selection_data): Fix last change:
20158 *data_ret is not a Lisp string, while unibyte_string is.
20159
20160 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
20161
20162 * xselect.c (lisp_data_to_selection_data): Fix last change:
20163 set size_ret.
20164
20165 2002-06-07 Andreas Schwab <schwab@suse.de>
20166
20167 * m/amdx86-64.h: New file.
20168
20169 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
20170
20171 * fns.c (Fstring_make_unibyte): Doc fix.
20172
20173 * xselect.c (lisp_data_to_selection_data): If the requested type
20174 is STRING, call string_make_unibyte to encode the selected text
20175 as a string.
20176
20177 * window.c (Fset_window_hscroll): Doc fix.
20178
20179 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20180
20181 * fileio.c (choose_write_coding_system):
20182 Call select-safe-coding-system properly.
20183
20184 2002-06-03 Richard M. Stallman <rms@gnu.org>
20185
20186 * xdisp.c (message_with_string): Error if STRING is not a string.
20187
20188 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
20189
20190 * fileio.c (choose_write_coding_system): Pass FILE arg to
20191 Vselect_safe_coding_system_function.
20192
20193 2002-06-03 Ken Raeburn <raeburn@gnu.org>
20194
20195 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
20196
20197 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
20198
20199 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
20200 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
20201 * keymap.c (describe_command): Likewise.
20202 * minibuf.c (read_minibuf): Likewise.
20203
20204 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
20205 Cast `current_column' return value to int.
20206 (back_to_previous_visible_line_start)
20207 (reseat_at_next_visible_line_start, next_element_from_buffer):
20208 Cast `indented_beyond_p' 3rd arg to float.
20209
20210 * indent.c (last_known_column): Now a float.
20211 (current_column_1, position_indentation, current_column)
20212 (string_display_width): Return float.
20213 (Fcurrent_column): Cast `current_column' return value to int.
20214 (Fcurrent_indentation): Cast `position_indentation' retval to int.
20215 (indented_beyond_p): Third arg now a float.
20216 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
20217
20218 * lisp.h (current_column): Now returns float.
20219 (indented_beyond_p): 3rd arg now a float.
20220
20221 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
20222
20223 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
20224 is Qcompound_text_with_extensions.
20225
20226 * xselect.c (lisp_data_to_selection_data): Always set selection
20227 type as string if x_encode_text returns streingp non-NULL.
20228
20229 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
20230
20231 2002-05-30 Richard M. Stallman <rms@gnu.org>
20232
20233 * window.c (Fset_window_configuration): Correct the handling
20234 of point in current buffer, to work with multiple windows.
20235
20236 2002-05-29 Colin Walters <walters@verbum.org>
20237
20238 * lread.c (Fread_from_string): Don't depend on order of evaluation
20239 for C function parameters.
20240
20241 2002-05-28 Richard M. Stallman <rms@gnu.org>
20242
20243 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
20244 way for blinked-off state and for a nonselected window.
20245
20246 * window.c (window_scroll_pixel_based): Don't call Fbolp;
20247 instead, see if the new start pos is at beginning of line.
20248
20249 * fileio.c (Fwrite_region): If START is a string, don't
20250 make any annotations.
20251
20252 * eval.c (syms_of_eval): Doc fix.
20253
20254 2002-05-28 Colin Walters <walters@debian.org>
20255
20256 * emacs.c (USAGE1): Add --no-splash.
20257 (standard_args): Ditto.
20258
20259 2002-05-28 Colin Walters <walters@gnu.org>
20260
20261 * lread.c (readchar_count): New variable.
20262 (readchar): Increment it.
20263 (unreadchar): Decrement it.
20264 (read_multibyte): Decrement it.
20265 (Vread_with_symbol_positions): New variable.
20266 (Vread_symbol_positions_list): New variable.
20267 (read_internal_start): New function, created from Fread and
20268 Fread_from_string. Handle Vread_symbol_positions_list and
20269 Vread_with_symbol_positions.
20270 (readevalloop, Fread, Fread_from_string): Use it.
20271 (read1): Use readchar_count to add symbol positions to
20272 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
20273 (syms_of_lread): DEFVAR_LISP and initialize them.
20274
20275 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
20276 (substitute_object_recurse, substitute_object_in_subtree)
20277 (substitute_in_interval): Prototype.
20278 (read_multibyte): Return c if it's less than zero.
20279
20280 2002-05-28 Kim F. Storm <storm@cua.dk>
20281
20282 * fileio.c (Fread_file_name_internal): Added brute-force
20283 speed up for using predicate file-directory-p.
20284
20285 2002-05-28 Kim F. Storm <storm@cua.dk>
20286
20287 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
20288 New variables.
20289 (syms_of_fileio): DEFVAR_LISP them.
20290 (read_file_name_cleanup): New unwind function.
20291 (Fread_file_name_internal): Only return completions satifying
20292 Vread_file_name_predicate. Temporarily unwind protect and rebind
20293 default-directory while checking completions against the predicate.
20294 (Fread_file_name): Added PREDICATE argument. Specbind it to
20295 Vread_file_name_predicate during completion.
20296 Call Vread_file_name_function to read the file name if non-nil.
20297
20298 * lisp.h (Fread_file_name): Now has 6 args.
20299
20300 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
20301 predicate for Fread_file_name when reading directory name.
20302 Supply Qnil for predicate in other calls to Fread_file_name.
20303
20304 2002-05-26 Miles Bader <miles@gnu.org>
20305
20306 * term.c (tty_capable_p): New function.
20307 * dispextern.h (tty_capable_p): New function declaration.
20308 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
20309 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
20310
20311 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
20312
20313 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
20314 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
20315 (Vwrite_region_annotate_functions): Docstring fix.
20316
20317 2002-05-23 Kim F. Storm <storm@cua.dk>
20318
20319 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
20320 phys_cursor's hpos is overwritten. This is still not completely
20321 correct, as it doesn't really make sense to use hpos at all to
20322 get the cursor glyph (as that is relative to the width of the
20323 characters on the line, which may have changed during the update).
20324
20325 2002-05-22 Jason Rumney <jasonr@gnu.org>
20326
20327 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
20328 Lisp_Object.
20329 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
20330 Use modified enumfont_t struct.
20331
20332 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20333
20334 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
20335 Handle the `hbar' cursor type.
20336 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20337
20338 * w32fns.c (Qhbar): New variable.
20339 (x_specified_cursor_type): Use it.
20340
20341 2002-05-21 Ken Raeburn <raeburn@gnu.org>
20342
20343 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
20344 now, when the address is needed.
20345
20346 2002-05-21 Colin Walters <walters@gnu.org>
20347
20348 * Makefile.in (shortlisp): Add font-core.el.
20349
20350 2002-05-20 Richard M. Stallman <rms@gnu.org>
20351
20352 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
20353
20354 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
20355 equivalent key bindings here.
20356
20357 2002-05-20 Ken Raeburn <raeburn@gnu.org>
20358
20359 Change symbol structure to contain a lisp object for the symbol
20360 name:
20361 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
20362 object field named "xname".
20363 (SYMBOL_NAME): New macro.
20364 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
20365 name field.
20366 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
20367 (mark_object, gc_sweep): Use symbol xname field and XSTRING
20368 instead of name field.
20369 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
20370 SYMBOL_NAME instead of XSYMBOL and name field.
20371 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
20372 instead of XSYMBOL and name field.
20373 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
20374 and SYMBOL_NAME instead of XSYMBOL and name field.
20375 * coding.c (Fread_coding_system, code_convert_region1)
20376 (code_convert_string1, code_convert_string_norecord)
20377 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
20378 XSYMBOL and name field.
20379 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
20380 (Fmake_variable_buffer_local, Fmake_local_variable)
20381 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
20382 of XSYMBOL and name field.
20383 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
20384 XSYMBOL and name field.
20385 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
20386 instead of XSYMBOL and name field.
20387 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
20388 XSYMBOL and name field.
20389 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
20390 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20391 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
20392 instead of XSYMBOL and name field.
20393 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
20394 (parse_modifiers, apply_modifiers, Fevent_convert_list)
20395 (parse_solitary_modifier, Fexecute_extended_command):
20396 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20397 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
20398 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
20399 of XSYMBOL and name field.
20400 (describe_command, describe_translation): Use SYMBOL_NAME and
20401 assignment instead of XSYMBOL and name field and XSETSTRING.
20402 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
20403 instead of XSYMBOL and name field.
20404 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
20405 name field and XSETSTRING.
20406 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20407 of XSYMBOL and name field.
20408 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
20409 assignment instead of XSYMBOL and name field and XSETSTRING.
20410 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
20411 XSTRING instead of XSYMBOL and name field.
20412 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
20413 and XSTRING instead of XSYMBOL and name field.
20414 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
20415 and XSTRING instead of XSYMBOL and name field.
20416 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
20417 XSTRING instead of XSYMBOL and name field.
20418 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
20419 of XSYMBOL and name field.
20420 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
20421 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
20422
20423 2002-05-19 Ken Raeburn <raeburn@gnu.org>
20424
20425 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
20426 and XCDR real rvalues in most configurations.
20427
20428 * buffer.c (fix_overlays_in_range, fix_overlays_before):
20429 Don't take the address of the cdr part of a cons cell; instead, track
20430 the parent cell and call XSETCDR, or set the variable for the head
20431 of the list if we haven't started down the list yet.
20432
20433 2002-05-19 Richard M. Stallman <rms@gnu.org>
20434
20435 * doc.c (reread_doc_file): Don't ask for confirmation.
20436
20437 2002-05-18 Jason Rumney <jasonr@gnu.org>
20438
20439 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
20440 (xbm_load_image): Use it.
20441 (xbm_load): Ditto.
20442 (xbm_read_bitmap_data): Reverted to xfns.c version.
20443 From David Ponce <david@dponce.com>.
20444
20445 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
20446
20447 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
20448 2.02 and later.
20449
20450 2002-05-16 Juanma Barranquero <lektu@terra.es>
20451
20452 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
20453
20454 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
20455
20456 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
20457 meaningful test.
20458 (read_char_minibuf_menu_prompt): Fix typo.
20459
20460 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
20461
20462 * eval.c (Fcommandp): Doc fix.
20463
20464 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
20465
20466 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
20467 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
20468 (Fset_keymap_parent): Gcpro a bit more.
20469 (access_keymap): Gcpro around meta_map call and around the main loop.
20470 (get_keyelt): Gcpro when following indirect references.
20471 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
20472 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
20473 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
20474 Remove useless ad-hoc remap code.
20475
20476 2002-05-13 Richard M. Stallman <rms@gnu.org>
20477
20478 * search.c (search_buffer): Give up boyer moore search if inverse
20479 translation change charset_base.
20480
20481 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
20482
20483 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
20484 characters is carried over from the previous block of text, adjust
20485 coding->produced to account for the extra character.
20486
20487 2002-05-11 Andreas Schwab <schwab@suse.de>
20488
20489 * coding.c (intersection): Keep the elements of the returned list
20490 in the same order as in the first list.
20491
20492 2002-05-11 Kim F. Storm <storm@cua.dk>
20493
20494 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
20495 only update cmm_size if realloc actually succeeds.
20496 Testing with initial size of 2 elements revealed that using
20497 realloc on GNU/Linux would cause a random trap in xmalloc
20498 later on, so I rewrote the code to use malloc/bcopy/free instead
20499 of realloc.
20500
20501 2002-05-10 Jason Rumney <jasonr@gnu.org>
20502
20503 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
20504
20505 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
20506
20507 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
20508 parens, to ensure correct evaluation order.
20509
20510 2002-05-10 Kim F. Storm <storm@cua.dk>
20511
20512 * keymap.c (Vemulation_mode_map_alists): New variable.
20513 (syms_of_keymap): DEFVAR_LISP it.
20514 (current_minor_maps): Process keymap alists in that list before
20515 minor-mode-overriding-map-alist and minor-mode-map-alist.
20516
20517 2002-05-09 Richard M. Stallman <rms@gnu.org>
20518
20519 * search.c (Freplace_match): Doc fix.
20520
20521 2002-05-09 Kim F. Storm <storm@cua.dk>
20522
20523 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20524 Enlarge cursor rectangle drawn around image with non-zero relief.
20525
20526 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
20527 Enlarge cursor rectangle drawn around image with non-zero relief.
20528
20529 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
20530 Enlarge cursor rectangle drawn around image with non-zero relief.
20531
20532 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
20533
20534 * xselect.c (lisp_data_to_selection_data): Don't set selection
20535 type if comes from the Lisp object's car. If the selection
20536 contains a pure ASCII text, always return QSTRING as its type.
20537
20538 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20539
20540 * mac.c (mac-cut-function): Doc fix.
20541
20542 2002-05-05 Richard M. Stallman <rms@gnu.org>
20543
20544 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
20545
20546 2002-05-04 Jason Rumney <jasonr@gnu.org>
20547
20548 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
20549 for event-click-count.
20550
20551 * process.c (init_process): Only add server subfeature if we can
20552 use non-blocking I/O.
20553
20554 2002-05-04 Andrew Choi <akochoi@shaw.ca>
20555
20556 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
20557 repeatedly.
20558
20559 2002-05-03 Jason Rumney <jasonr@gnu.org>
20560
20561 * process.c (Fmake_network_process): Only support server sockets
20562 when we can make them non-blocking.
20563
20564 * s/ms-w32.h (HAVE_SELECT): Define.
20565
20566 * w32.h (FILE_NDELAY): New flag.
20567
20568 * w32.c (sys_getpeername, fcntl): New functions.
20569 (_sys_read_ahead): Temporarily block on non-blocking sockets.
20570
20571 * w32proc.c: Include sys/file.h.
20572
20573 2002-05-03 Colin Walters <walters@verbum.org>
20574
20575 * callproc.c (Vgame_score_directory): Renamed to
20576 Vshared_game_score_directory.
20577
20578 2002-04-30 Richard M. Stallman <rms@gnu.org>
20579
20580 * s/gnu.h [emacs]: Include stdio.h.
20581 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
20582
20583 * eval.c (do_autoload): Error if called while preparing to dump.
20584
20585 * fns.c (Frequire): Error if need to load while preparing to dump.
20586
20587 2002-04-28 Colin Walters <walters@verbum.org>
20588
20589 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
20590 Default to "~/.emacs.d/games".
20591
20592 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
20593
20594 * lread.c (openp): Change arg exec_only to predicate.
20595 (build_load_history): Use XCAR/XCDR.
20596 (Flocate_file_internal): New fun.
20597 (syms_of_lread): Defsubr it.
20598 (Fload): Update call to openp.
20599
20600 * lisp.h (openp): Update prototype.
20601
20602 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
20603 * w32proc.c (sys_spawnve):
20604 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
20605 * w32.c (check_windows_init_file):
20606 * sound.c (Fplay_sound_internal):
20607 * process.c (Fstart_process):
20608 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
20609 * mac.c (run_mac_command):
20610 * emacs.c (init_cmdargs):
20611 * callproc.c (Fcall_process): Update call to openp.
20612
20613 * textprop.c (remove_properties): Don't use XCAR without CONSP.
20614
20615 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
20616
20617 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20618
20619 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
20620 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
20621
20622 2002-04-28 Richard M. Stallman <rms@gnu.org>
20623
20624 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
20625
20626 * eval.c (Fcommandp): New arg for_call_interactively.
20627 * lisp.h (Fcommandp): Declare new arg.
20628
20629 2002-04-28 Jason Rumney <jasonr@gnu.org>
20630
20631 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
20632
20633 * w32.c (stat, fstat): Use file index information to generate
20634 inodes for directories where available.
20635
20636 2002-04-26 Andrew Choi <akochoi@shaw.ca>
20637
20638 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
20639 [HAVE_CARBON]: Include Mac object files.
20640
20641 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
20642 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
20643 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
20644 MAC_OSX, and MAC_OS instead of macintosh.
20645
20646 * editfns.c [MAC_OS8]: Include stdio.h.
20647
20648 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
20649
20650 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
20651 Apple Monaco.
20652
20653 * process.c (QCfamily, QCfilte): Declare extern.
20654 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
20655 calling select.
20656
20657 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
20658
20659 * tparam.c [MAC_OSX]: Don't define BC and UP.
20660
20661 * config.in [HAVE_CARBON]: Add.
20662
20663 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
20664 Move here from mac/src and mac/inc.
20665
20666 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
20667
20668 2002-04-26 Gerd Moellmann <gerd@gnu.org>
20669
20670 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
20671 Compute phys_cursor_width from the x position returned
20672 by x_draw_glyhs, which is cheaper.
20673 (x_display_and_set_cursor): Compute the buffer-local value
20674 of `cursor-in-non-selected-windows' only when needed.
20675
20676 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20677
20678 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
20679 cursor on a stretch glyph has a width that depends on
20680 x_stretch_cursor_p.
20681
20682 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20683
20684 * abbrev.c (abbrev-start-location): Doc fix.
20685
20686 * indent.c (Fvertical_motion): Fix last change.
20687
20688 2002-04-25 Gerd Moellmann <gerd@gnu.org>
20689
20690 * indent.c (Fvertical_motion): Move to the start of the line
20691 containing PT before moving up or down.
20692
20693 2002-04-24 Gerd Moellmann <gerd@gnu.org>
20694
20695 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
20696 case of writing a whole row, more or less analogous to the case of
20697 writing only parts of a row.
20698
20699 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
20700 0 for NO_CURSOR.
20701
20702 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
20703
20704 2002-04-23 Colin Walters <walters@verbum.org>
20705
20706 * buffer.c (syms_of_buffer): Doc fix.
20707
20708 2002-04-23 Gerd Moellmann <gerd@gnu.org>
20709
20710 * xterm.c (notice_overwritten_cursor): Handle the special case
20711 of the cursor being in the first blank non-text line at the
20712 end of a window.
20713
20714 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20715 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20716 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
20717 bar cursors only, to make phys_cursor_width contain what its name
20718 suggests.
20719 (notice_overwritten_cursor): Consider the cursor image erased if
20720 the output area intersects the cursor image in y-direction.
20721
20722 2002-04-23 Simon Marshall <simon@gnu.org>
20723
20724 * xfns.c (x_set_mouse_color): Change default for cross_cursor
20725 to XC_hand2.
20726
20727 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20728
20729 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
20730
20731 2002-04-22 Kim F. Storm <storm@cua.dk>
20732
20733 * textprop.c (remove_properties): Fixed trap for malformed plist.
20734
20735 2002-04-22 Richard M. Stallman <rms@gnu.org>
20736
20737 * cmds.c (Fend_of_line): Handle intangible text in mid line.
20738
20739 * window.c (make_window): Initialize height_fixed_p,
20740 last_cursor_off_p, and p->cursor_off_p slots.
20741
20742 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20743
20744 * fns.c (use-dialog-box): Doc fix.
20745
20746 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20747
20748 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
20749 variables `row', `i' and `area'.
20750 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
20751 toolkit library.
20752
20753 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
20754
20755 * xfaces.c (clear_font_table): Don't free the default font of
20756 a frame even if it's on another display.
20757 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
20758 that could be Qt.
20759
20760 2002-04-19 Juanma Barranquero <lektu@terra.es>
20761
20762 * indent.c (Fmove_to_column): Remove unused local variable
20763 `next_boundary_byte'.
20764 (current_column_1): Likewise.
20765
20766 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
20767
20768 * msdos.c (Qhbar): New variable.
20769 (syms_of_msdos): Intern and staticpro it.
20770 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
20771 cursor type.
20772
20773 2002-04-19 Dave Lambert <dlambert@acm.org>
20774
20775 Theses change implement an underscore-like (`hbar') cursor.
20776
20777 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20778
20779 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
20780 Handle the `hbar' cursor type.
20781 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
20782
20783 * xfns.c (Qhbar): New variable.
20784 (syms_of_xfns): Intern and staticpro it.
20785 (x_specified_cursor_type): Handle `hbar' cursor.
20786
20787 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
20788 not defined.
20789
20790 2002-04-18 Richard M. Stallman <rms@gnu.org>
20791
20792 * textprop.c (remove_properties): New arg LIST allows scanning
20793 either a list or a plist.
20794 (interval_has_some_properties_list): New function, like
20795 interval_has_some_properties using list instead of plist.
20796 All callers changed.
20797 (Fremove_list_of_text_properties): New function.
20798 (syms_of_textprop): Defsubr it.
20799
20800 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20801
20802 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
20803
20804 2002-04-17 Juanma Barranquero <lektu@terra.es>
20805
20806 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
20807
20808 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
20809
20810 * window.c (coordinates_in_window): Don't report on margin area
20811 if its width is zero.
20812
20813 2002-04-16 Jason Rumney <jasonr@gnu.org>
20814
20815 * w32fns.c (Fx_file_dialog): Decode file name before using.
20816
20817 * w32term.c (construct_drag_n_drop): Likewise.
20818
20819 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
20820
20821 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
20822 store load-history in pure space.
20823
20824 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
20825
20826 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
20827
20828 * xterm.c (Qlatin_1, Qutf_8): New vars.
20829 (syms_of_xterm): Initialize them.
20830 (XTread_socket): Eliminate incorrect optimization that tried to avoid
20831 decoding the output of X*LookupString.
20832 Always use latin-1 to decode the output of XLookupString.
20833 Try Xutf8LookupString if XmbLookupString failed.
20834
20835 * region-cache.c (new_region_cache): Use BEG.
20836
20837 2002-04-16 Gerd Moellmann <gerd@gnu.org>
20838
20839 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
20840 configuration files.
20841 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
20842 returns 0.
20843
20844 2002-04-15 Andreas Schwab <schwab@suse.de>
20845
20846 * config.in: Regenerated using autoheader.
20847
20848 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
20849 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
20850 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
20851 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
20852 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
20853 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
20854 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
20855 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
20856 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
20857 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
20858 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
20859 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
20860 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
20861 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
20862 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
20863 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
20864 STACK_DIRECTION, now set by autoconf.
20865
20866 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20867
20868 * dispnew.c (marginal_area_string): Sort arguments.
20869
20870 * dispextern.h (marginal_area_string): Add prototype.
20871
20872 2002-04-13 Richard M. Stallman <rms@gnu.org>
20873
20874 * fileio.c (Finsert_file_contents):
20875 Don't call temp_output_buffer_setup--do just part, by hand.
20876
20877 * coding.c (run_pre_post_conversion_on_str):
20878 Don't call temp_output_buffer_setup--do just part, by hand.
20879
20880 * keyboard.c (command_loop_1): Don't call start_hourglass
20881 or cancel_hourglass when executing a macro.
20882
20883 * marker.c (count_markers): New function.
20884
20885 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
20886 grow without limit. Move recently used elements to the front.
20887
20888 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
20889
20890 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
20891
20892 2002-04-12 Gerd Moellmann <gerd@gnu.org>
20893
20894 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
20895 rows marginal areas.
20896 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
20897 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
20898
20899 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
20900
20901 2002-04-12 Dave Love <fx@gnu.org>
20902
20903 * dispnew.c (marginal_area_string): New.
20904
20905 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
20906 (Qleft_margin, Qright_margin): Declare.
20907 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
20908
20909 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
20910 note_mode_line_highlight and extended.
20911
20912 * keyboard.c (Qleft_margin, Qright_margin): Declare.
20913 (make_lispy_event): Deal with mouse events in margins.
20914
20915 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
20916
20917 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
20918
20919 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
20920 than deactivating the mark if tmm is set to `lambda'.
20921 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
20922 Use a single event for HELP_EVENT.
20923 (Fexecute_extended_command): Save last_point_position.
20924
20925 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20926
20927 * lisp.h (Fpropertize): Add prototype.
20928
20929 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
20930
20931 2002-04-10 Colin Walters <walters@verbum.org>
20932
20933 * config.in: Add HAVE_SHARED_GAME_DIR.
20934
20935 * callproc.c (Vgame_score_directory): New variable.
20936 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
20937
20938 2002-04-10 Richard M. Stallman <rms@gnu.org>
20939
20940 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
20941
20942 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
20943
20944 * minibuf.c (read_minibuf): Use empty_string.
20945 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
20946 Short-circuit the search as soon as it "failed".
20947 (Fall_completions): Allow lambda forms and lists of strings for alist.
20948 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
20949 when require_match is nil.
20950 (Ftest_completion): Rename from `test_completion' and export to elisp.
20951 Call the predicate also when alist is a list.
20952 Obey Vcompletion_regexp_list.
20953 (do_completion, Fminibuffer_complete_and_exit): Use it.
20954 (Fassoc_string): Rename from `assoc_for_completion'.
20955 Allow list of strings as well and export to elisp.
20956
20957 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
20958
20959 * puresize.h (BASE_PURESIZE): Increase to 900KB.
20960
20961 2002-04-08 Juanma Barranquero <lektu@terra.es>
20962
20963 * w32.c (sys_accept): Don't hide variable `s'.
20964
20965 2002-04-05 Gerd Moellmann <gerd@gnu.org>
20966
20967 * callint.c (Fcall_interactively): Use INTEGERP instead of
20968 NUMBERP for checking Vhistory_length.
20969
20970 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20971
20972 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
20973 Doc fix to reflect it.
20974
20975 2002-04-04 Richard M. Stallman <rms@gnu.org>
20976
20977 * xdisp.c (display_mode_element): New arg RISKY.
20978 Disregard text props found or specified within a variable
20979 that isn't marked risky-local-variable.
20980 (Qrisky_local_variable): New variable.
20981 (syms_of_xdisp): Init and staticpro it.
20982
20983 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
20984
20985 * undo.c (record_point): New fun.
20986 (record_delete, record_insert): Use it.
20987
20988 2002-04-03 Juanma Barranquero <lektu@terra.es>
20989
20990 * doc.c (Fdocumentation): Add missing parentheses.
20991 (Fdocumentation_property): Likewise.
20992
20993 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
20994
20995 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
20996 data is 0, just return nil.
20997
20998 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
20999
21000 * msdos.c (syms_of_msdos): Fix last change with
21001 mouse_autoselect_window.
21002
21003 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21004
21005 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
21006 mouse_autoselect_window.
21007
21008 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
21009
21010 * keyboard.c (make_lispy_event): Handle unknown keysyms together
21011 with system-specific keysyms. Use it also for unknown function keys.
21012
21013 * doc.c (reread_doc_file): Return whether reload was attempted.
21014 (Fdocumentation, Fdocumentation_property): Don't try to reload
21015 if the doc is 0 and only ask once.
21016
21017 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
21018
21019 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
21020
21021 * keyboard.c (read_char): If the event was Qselect_window,
21022 restore timer_idleness_start_time to its previous value.
21023
21024 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
21025
21026 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
21027
21028 * region-cache.c (new_region_cache): Use BEG.
21029
21030 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
21031 Use BEG and BEG_BYTE.
21032
21033 * doc.c (get_doc_string): Return nil if the location is wrong.
21034 (reread_doc_file): New fun.
21035 (Fdocumentation, Fdocumentation_property):
21036 Call it if get_doc_string fails.
21037 (Fsnarf_documentation): Make it work for a dumped Emacs.
21038
21039 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
21040 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
21041
21042 * charset.c (Fstring): Allow 0 arguments.
21043
21044 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
21045
21046 * process.c (DATAGRAM_CONN_P, list_processes_1)
21047 (Fprocess_datagram_address, Fset_process_datagram_address)
21048 (Fset_network_process_options, server_accept_connection):
21049 Fix some int/Lisp_Object confusions (thank you union types).
21050
21051 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21052
21053 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
21054
21055 * w32term.c: Likewise.
21056 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
21057
21058 * keyboard.c (Qselect_window): New symbol.
21059 (head_table): Use it.
21060 (keys_of_keyboard): Bound select-window event to handle-select-window.
21061 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
21062
21063 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
21064 (last_window): New variable.
21065 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
21066 (note_mouse_movement): Remove reimplemented code in #if 0.
21067 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
21068 Emacs windows.
21069
21070 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
21071
21072 2002-03-31 Gerd Moellmann <gerd@gnu.org>
21073
21074 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
21075 Callers changed.
21076
21077 2002-03-30 Richard M. Stallman <rms@gnu.org>
21078
21079 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
21080 loop whenever it stops making progress.
21081
21082 * widget.c (set_frame_size): Don't call change_frame_size.
21083
21084 2002-03-30 Gerd Moellmann <gerd@gnu.org>
21085
21086 * dispnew.c (direct_output_for_insert):
21087 Call mark_window_display_accurate.
21088
21089 2002-03-29 Jason Rumney <jasonr@gnu.org>
21090
21091 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
21092
21093 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
21094
21095 * Makefile.in (lread.o): Depend on coding.h.
21096
21097 * lread.c (openp, Fload): Encode the file name before passing it
21098 to `stat', `access', and `emacs_open'.
21099 (openp): GCPRO the encoded file name. Don't recompute Lisp
21100 strings unnecessarily.
21101
21102 2002-03-29 Kim F. Storm <storm@cua.dk>
21103
21104 * fns.c (Flax_plist_put): Doc fix.
21105
21106 2002-03-28 Miles Bader <miles@gnu.org>
21107
21108 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
21109
21110 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21111
21112 * process.c (set-network-process-options): Add usage.
21113 (make-network-process): Doc fix.
21114
21115 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
21116
21117 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
21118
21119 2002-03-26 Richard M. Stallman <rms@gnu.org>
21120
21121 * fns.c (Fsubstring_no_properties): New function.
21122 (Flax_plist_get, Flax_plist_put): New functions.
21123 (syms_of_fns): defsubr them.
21124
21125 * xdisp.c (update_menu_bar): Test only update_mode_lines;
21126 don't test or alter w->update_mode_line.
21127
21128 * window.c (Fdisplay_buffer): Doc fix.
21129
21130 2002-03-24 Richard M. Stallman <rms@gnu.org>
21131
21132 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
21133
21134 2002-03-24 Gerd Moellmann <gerd@gnu.org>
21135
21136 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
21137 (Fdefmacro): Handle `(declare ...)'.
21138 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
21139 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
21140
21141 2002-03-24 Jason Rumney <jasonr@gnu.org>
21142
21143 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
21144 (xbm_file_p): Add prototypes.
21145 (xbm_format, xbm_image_p): Sync with xfns.c.
21146 (reflect_byte): New function.
21147 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
21148 (xbm_load_image): Create bitmaps with a depth of 1.
21149 (init_xfns): Enable XBM images.
21150
21151 2002-03-23 Jason Rumney <jasonr@gnu.org>
21152
21153 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
21154 correctly. Do not pass up_modifier to keyboard buffer.
21155
21156 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
21157
21158 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
21159
21160 * Makefile.in (bootstrapclean): New target.
21161 (bootstrap-temacs, bootstrap-doc): Remove.
21162 (bootstrap-emacs): Use a bog-standard `temacs'.
21163 Don't bother to build a DOC file.
21164
21165 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
21166
21167 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
21168 in temacs even if !CANNOT_DUMP.
21169 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
21170
21171 * alloc.c (check_pure_size): Only output a warning.
21172
21173 2002-03-22 Jason Rumney <jasonr@gnu.org>
21174
21175 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
21176 supported.
21177
21178 * w32term.c (zv_bits): Declare as short, for word alignment.
21179 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
21180 (syms_of_w32term): Define x-use-underline-position-properties.
21181
21182 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
21183 (clear_image_cache): Block input, fix logic, clear matrices in
21184 all frames that share this cache.
21185
21186 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
21187
21188 * emacs.c (main): Update the Copyright year in the blurb printed
21189 by "emacs --version".
21190
21191 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
21192
21193 * xterm.c (XTread_socket): If XK_ISO_Lock and
21194 XK_ISO_Last_Group_Lock are defined, handle keysyms between
21195 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
21196
21197 2002-03-21 Kim F. Storm <storm@cua.dk>
21198
21199 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
21200 menu-bar bindings in keymap and local-map properties _are_ used.
21201 But try keymap property first in accordance with 2002-01-03 patch.
21202 Added comment describing why this is not always reliable.
21203 (tool_bar_items): Ditto for tool-bar.
21204
21205 2002-03-21 Jason Rumney <jasonr@gnu.org>
21206
21207 * w32fns.c (x_clear_image_1): Disable color table code.
21208
21209 2002-03-21 Kim F. Storm <storm@cua.dk>
21210
21211 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
21212 removed the wrong version of the DEFUN macro; fixed it.
21213
21214 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
21215 Fmember rather than Fmemq).
21216 (Fprovide): Check that subfeatures is a list.
21217
21218 * process.c (QCfeature, QCdatagram): Removed variables.
21219 (QCtype, Qdatagram): New variables.
21220 (network_process_featurep): Removed function.
21221 (Fmake_network_process): Removed :feature check.
21222 Use :type 'datagram instead of :datagram t to create a datagram
21223 socket. This allows us to add other connection types (e.g. raw
21224 sockets) later in a consistent manner.
21225 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
21226 supported subfeatures for feature make-network-process.
21227 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
21228 Intern and staticpro QCtype and Qdatagram.
21229 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
21230
21231 * xfns.c (QCtype): Remove duplicate declaration and
21232 initialization (is now declared in process.c).
21233
21234 * w32fns.c (QCtype): Remove duplicate declaration and
21235 initialization (is now declared in process.c).
21236
21237 2002-03-21 Richard M. Stallman <rms@gnu.org>
21238
21239 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
21240 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
21241 when jumping to `fail' to avoid undoing reg changes in the
21242 last iteration of the loop.
21243 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
21244
21245 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
21246 Depend on process.h.
21247
21248 2002-03-20 Jason Rumney <jasonr@gnu.org>
21249
21250 Most of the following changes are still conditional on HAVE_IMAGES
21251 which is not set by default on Windows.
21252
21253 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
21254
21255 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
21256 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
21257 (four_corners_best, x_clear_image_1, x_clear_image)
21258 (x_alloc_image_color, postprocess_image)
21259 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
21260 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
21261 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
21262
21263 * w32gui.h (struct XImage): Define.
21264
21265 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
21266 extract mouse co-ordinates.
21267
21268 2002-03-20 Jason Rumney <jasonr@gnu.org>
21269
21270 * w32.c (init_winsock): Dynamically load new server and UDP
21271 socket functions.
21272 (socket_to_fd): New function.
21273 (sys_socket): Use it.
21274 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
21275 (sys_recvfrom, sys_sendto): New wrapper functions.
21276
21277 * process.c (QCfamily, QCfilter): Remove duplicate declaration
21278 and initialization.
21279
21280 * makefile.w32-in (LIBS): Remove $(WSOCK32).
21281
21282 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
21283
21284 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
21285 Don't use "sun" as a variable, it's a predefined constant on Sun
21286 machines.
21287
21288 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21289
21290 * bytecode.c (Fbyte_code): Revert last change.
21291
21292 2002-03-19 Kim F. Storm <storm@cua.dk>
21293
21294 * makefile.w32-in (LIBS): Add $(WSOCK32).
21295 From David Ponce <dponce@voila.fr>.
21296
21297 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21298
21299 * process.c (wait_reading_process_input): Move variables `pname'
21300 and `pnamelen' down where they are used.
21301
21302 * bytecode.c (Fbyte_code): Discard unused computed value to
21303 prevent gcc warning.
21304
21305 * lisp.h (Fplist_member): Add prototype.
21306
21307 2002-03-18 Kim F. Storm <storm@cua.dk>
21308
21309 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
21310 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
21311
21312 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
21313 Remove explicit GNU_LINUX settings for datagram support.
21314
21315 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21316
21317 * process.c (Fmake_network_process): Remove unused variable `sa'.
21318 Doc fix. Add usage:.
21319 (set_socket_options): Remove unused variables `optnum' and `opttype'.
21320
21321 2002-03-17 Richard M. Stallman <rms@gnu.org>
21322
21323 * xdisp.c (cursor_type_changed): New variable.
21324 (redisplay_internal): Redisplay all windows if cursor_type_changed.
21325 Clear it when clearing windows_or_buffers_changed.
21326 (try_cursor_movement, redisplay_window, try_window_id)
21327 (try_window_reusing_current_matrix): Test cursor_type_changed
21328 along with windows_or_buffers_changed.
21329
21330 * window.h (cursor_type_changed): New variable.
21331
21332 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
21333 not update_mode_lines, and always set it to 1.
21334
21335 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
21336 if no frames needed redrawing.
21337
21338 2002-03-17 Kim F. Storm <storm@cua.dk>
21339
21340 The following changes add support for network server processes,
21341 datagram connections, and local (unix) sockets.
21342
21343 * process.h (struct Lisp_Process): New member log.
21344 Doc fix: Member command used to indicate stopped network process.
21345 Doc fix: Member childp contains plist for network process.
21346 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
21347
21348 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
21349 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
21350 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
21351 New variables.
21352 (NETCONN1_P): New macro.
21353 (DATAGRAM_SOCKETS): New conditional symbol.
21354 (datagram_address): New array.
21355 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
21356 (status_message): Use concat3.
21357 (Fprocess_status): Add `listen' status to doc string. Return `stop'
21358 for a stopped network process.
21359 (Fset_process_buffer): Update contact plist for network process.
21360 (Fset_process_filter): Ditto. Don't enable input for stopped
21361 network processes. Server must listen, even if filter is t.
21362 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
21363 New functions.
21364 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
21365 (Fprocess_contact): Added KEY argument. Handle datagrams.
21366 (list_processes_1): Optionally show only processes with the query
21367 on exit flag set. Dynamically adjust column widths. Omit tty
21368 column if not needed. Report stopped network processes.
21369 Identify server and datagram network processes.
21370 (Flist_processes): New optional arg `query-only'.
21371 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
21372 (conv_lisp_to_sockaddr, set_socket_options)
21373 (network_process_featurep, unwind_request_sigio): New helper functions.
21374 (Fprocess_datagram_address, Fset_process_datagram_address):
21375 (Fset_network_process_options): New lisp functions.
21376 (Fopen_network_stream): Removed. Now defined in simple.el.
21377 (Fmake_network_process): New lisp function. Code is based on previous
21378 Fopen_network_stream, but heavily reworked with new property list based
21379 argument list, support for datagrams, server processes, and local
21380 sockets in addition to old client-only functionality.
21381 (server_accept_connection): New function.
21382 (wait_reading_process_input): Use it to handle incoming connects.
21383 Do not enable input on a new connection if process is stopped.
21384 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
21385 (send_process): Handle datagram sockets.
21386 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
21387 network process is indicated by setting command field to t .
21388 (Fprocess_send_eof): No-op if datagram connection.
21389 (Fstatus_notify): Don't read input for a stream server socket or a
21390 stopped network process.
21391 (init_process): Initialize datagram_address array.
21392 (syms_of_process): Intern and staticpro new variables, defsubr new
21393 functions.
21394
21395 2002-03-16 Jason Rumney <jasonr@gnu.org>
21396
21397 * w32fns.c (w32_to_all_x_charsets): Return correct type in
21398 startup case.
21399
21400 2002-03-16 Richard M. Stallman <rms@gnu.org>
21401
21402 * xdisp.c (redisplay_internal, redisplay_windows):
21403 Use list_of_error to call internal_condition_case_1.
21404 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
21405 so as to catch all errors with no possibility of debugger redisplay.
21406 (list_of_error): New variable.
21407 (syms_of_xdisp): Init and staticpro it.
21408
21409 * print.c (print_object): Delete `\ ' from printed rep of frame.
21410
21411 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
21412
21413 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
21414 until its implementation is fixed.
21415
21416 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21417
21418 * xfns.c (png_load): Remove unused variable `gamma_str'.
21419
21420 2002-03-14 Richard M. Stallman <rms@gnu.org>
21421
21422 * xfns.c (x_real_positions): Handle failure in XQueryTree.
21423
21424 2002-03-14 Miles Bader <miles@gnu.org>
21425
21426 * intervals.c (adjust_for_invis_intang): New function.
21427 (set_point_both): Use `adjust_for_invis_intang' to do most of the
21428 work for dealing with invisible+intangible regions. Do so before
21429 and after both forward and backward movements, to handle both
21430 front-sticky and rear-sticky cases.
21431 * textprop.c (text_property_stickiness): Function moved here from
21432 `editfns.c'.
21433 * intervals.h (text_property_stickiness): New declaration.
21434 * editfns.c (char_property_eq): Function removed.
21435 (text_property_stickiness): Function moved to `textprop.c'.
21436
21437 2002-03-13 Jason Rumney <jasonr@gnu.org>
21438
21439 * config.in: Add STRFTIME_NO_POSIX2.
21440
21441 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
21442 and %OX when underlying strftime does not.
21443
21444 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
21445
21446 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
21447 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
21448 line) to avoid annoying flicker.
21449 (xm_scroll_callback): Get rid of the now unnecessary kludge.
21450 (XTread_socket): Mark it static.
21451
21452 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
21453
21454 2002-03-13 Kim F. Storm <storm@cua.dk>
21455
21456 * puresize.h (BASE_PURESIZE): Increase to 775000.
21457
21458 2002-03-12 Juanma Barranquero <lektu@terra.es>
21459
21460 * editfns.c (syms_of_editfns): Fix typo.
21461
21462 2002-03-12 Gerd Moellmann <gerd@gnu.org>
21463
21464 * xsmfns.c: Include stdio.h because termhooks.h needs it.
21465 Include termopt.h for interrupt_input.
21466
21467 2002-03-11 Andreas Schwab <schwab@suse.de>
21468
21469 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
21470
21471 2002-03-11 Gerd Moellmann <gerd@gnu.org>
21472
21473 * xterm.c (note_mouse_movement): Put code for
21474 x_autoselect_window_p in #if 0.
21475
21476 * lread.c (Fload): Don't assume that message_with_string uses the
21477 string it is given like a C string.
21478
21479 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21480
21481 * xterm.h (x_session_check_input, x_session_initialize): Declare.
21482
21483 * xterm.c (XTread_socket): Add call to x_session_check_input and
21484 x_session_have_connection.
21485 (x_initialize): Add call to x_session_initialize.
21486
21487 * termhooks.h (enum event_kind): Add save_session_event.
21488
21489 * keyboard.c: Add Emacs event save_session_event.
21490
21491 * emacs.c (main): Add call to syms_of_xsmfns.
21492
21493 * lisp.h (syms_of_xsmfns): Declare extern.
21494
21495 * config.in: Add HAVE_X_SM.
21496
21497 * Makefile.in (LIBXT): Add -lSM -lICE
21498 if HAVE_X_SM and not USE_X_TOOLKIT.
21499 (XOBJ): New file xsmfns.c added.
21500
21501 * xsmfns.c: New file for X session management.
21502
21503 2002-03-09 Jason Rumney <jasonr@gnu.org>
21504
21505 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
21506 read-only when setting modified time.
21507
21508 2002-03-08 Gerd Moellmann <gerd@gnu.org>
21509
21510 * xdisp.c (move_it_vertically_backward): At the end of the function,
21511 when moving forward by lines, treat terminal frames specially.
21512
21513 * keyboard.c (echo_char): Make sure to add a separator between
21514 keys even if echo_dash hasn't been called.
21515
21516 * xdisp.c: Use new string macros.
21517 (update_echo_area): Pass number of bytes to message3 instead of
21518 number of chars.
21519 (set_message_1): Don't access a string's size_byte directly.
21520 (decode_mode_spec_coding): Use number of bytes of eoltype string
21521 instead number of chars.
21522
21523 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
21524
21525 2002-03-08 Juanma Barranquero <lektu@terra.es>
21526
21527 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
21528 24-bit.
21529
21530 2002-03-06 Jason Rumney <jasonr@gnu.org>
21531
21532 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
21533
21534 2002-03-06 Gerd Moellmann <gerd@gnu.org>
21535
21536 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
21537 (cancel_echoing, echo_length, echo_truncate): Changed to
21538 work with new kboard definition.
21539 (echo_now): Use message3_nolog instead of message2_nolog.
21540
21541 * alloc.c (mark_kboards): Mark echo_string.
21542
21543 * keyboard.h (ECHOBUFSIZE): Removed.
21544 (struct kboard): Member echoptr removed, member echobuf renamed
21545 to echo_string.
21546
21547 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
21548 message3 instead of message2 to display the message using STRING's
21549 text properties.
21550
21551 2002-03-05 Andreas Schwab <schwab@suse.de>
21552
21553 * xdisp.c (hscroll_margin): Change to EMACS_INT.
21554
21555 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
21556
21557 * frame.c (default-frame-alist): Explain that setting it doesn't
21558 affect existing frames.
21559
21560 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
21561
21562 * indent.c (skip_invisible): Fix my brain fart.
21563
21564 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
21565
21566 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
21567
21568 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
21569 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
21570 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
21571 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
21572 and variables to use EMACS_INT instead of just int.
21573
21574 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
21575
21576 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
21577
21578 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
21579 environment, pass it down with corrected value.
21580
21581 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21582
21583 * lread.c (read_filtered_event): Do not call start_hourglass
21584 before returning.
21585
21586 2002-03-04 Juanma Barranquero <lektu@terra.es>
21587
21588 * w32term.c (x_display_and_set_cursor): Fix typo.
21589
21590 2002-03-03 Richard M. Stallman <rms@gnu.org>
21591
21592 * fileio.c (Fmake_temp_name): Doc fix.
21593
21594 2002-03-03 Gary Wong <gtw@gnu.org>
21595
21596 * termcap.c [!emacs]: Replace ospeed for building standalone
21597 libtermcap, for binary compatibility.
21598
21599 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
21600
21601 2002-03-03 Richard M. Stallman <rms@gnu.org>
21602
21603 * xrdb.c (file_p): Rename arg `path' to `filename'.
21604
21605 * abbrev.c (Fexpand_abbrev): Increment plist as use count
21606 only if it is an integer.
21607
21608 * xfns.c (png_load): Set screen_gamma based on f->gamma.
21609 If png_get_sRGB gives an answer, call png_set_gamma
21610 using the default image gamma value.
21611
21612 * lread.c (read1): When reading from a file, default string to
21613 multibyte only if it has some multibyte characters.
21614
21615 * print.c (print_object): Output multibyte chars 128...255
21616 using \x even if ! print_escape_multibyte.
21617
21618 * xdisp.c (display_mode_element): Move the places where
21619 bytepos, charpos, this, and lisp_string are set.
21620 Use lisp_string to set bytepos.
21621
21622 * xdisp.c (redisplay_internal):
21623 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
21624
21625 * xdisp.c (display_mode_element): Merge properties specified with
21626 :propertize onto those that come with the string.
21627
21628 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
21629
21630 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
21631 automatic-hscrolling. Users changed.
21632 <hscroll-margin>: Renamed from automatic-hscroll-margin.
21633 Users changed.
21634 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
21635
21636 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
21637
21638 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
21639
21640 2002-03-02 Kim F. Storm <storm@cua.dk>
21641
21642 * window.c (Fminibuffer_selected_window): New function.
21643 (syms_of_window): Defsubr it.
21644
21645 2002-03-01 Kim F. Storm <storm@cua.dk>
21646
21647 * window.h (struct window): New member phys_cursor_width.
21648
21649 * window.c (make_window, replace_window): Init phys_cursor_width.
21650
21651 * xterm.c (x_display_and_set_cursor): Blink box cursor using
21652 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21653
21654 * w32term.c (x_display_and_set_cursor): Blink box cursor using
21655 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
21656
21657 * lisp.h (GCPRO6): New macro.
21658
21659 * process.c (Fopen_network_stream): Use GCPRO6.
21660
21661 2002-03-01 Kim F. Storm <storm@cua.dk>
21662
21663 * process.c (Qconnect, Qfailed): New variables.
21664 (syms_of_process): Intern and staticpro them.
21665 (Fprocess_status): Document connect and failed return values.
21666 [NON_BLOCKING_CONNECT]: New conditional.
21667 (connect_wait_mask, num_pending_connects): New variables.
21668 (status_message): Convert Qfailed status.
21669 (Fopen_network_stream): Added support for non-blocking connect.
21670 New optional args: filter, sentinel, non_blocking. Doc updated.
21671 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
21672 (deactivate_process): Handle pending non-blocking connect.
21673 (wait_reading_process_input): Poll for status of non-blocking
21674 connects. Exec sentinel directly when connect succeeds.
21675 (status_notify): Don't read process output if not yet connected.
21676
21677 2002-02-28 Kim F. Storm <storm@cua.dk>
21678
21679 * window.c (minibuf_selected_window): Renamed from
21680 Vminibuf_selected_window. Users changed.
21681 (syms_of_window): Staticpro it.
21682
21683 2002-02-26 Kim F. Storm <storm@cua.dk>
21684
21685 The following changes add a new Vminibuf_selected_window variable
21686 which is similar to Vminibuf_scroll_window, but which is only set
21687 on entry to the minibuffer (from a non-minibuffer window):
21688
21689 * window.c (Vminibuf_selected_window): New variable.
21690 (struct save_window_data): New member minibuf_selected_window.
21691 (Fset_window_configuration): Restore Vminibuf_selected_window.
21692 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
21693 Set minibuf_scroll_window member to nil if minibuf_level is 0.
21694 (compare_window_configurations): Compare minibuf_selected_window.
21695
21696 * window.h (Vminibuf_selected_window): Declare extern.
21697
21698 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
21699 entry to minibuffer or on entry from a non-minibuffer window.
21700
21701 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
21702 Vminibuf_selected_window instead of Vminibuf_scroll_window.
21703
21704 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
21705 instead of Vminibuf_scroll_window when deciding in which window
21706 the region should be highlighted. Consequently, the region remains
21707 highlighteded even when a completion buffer is also displayed.
21708
21709 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
21710
21711 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
21712
21713 * xselect.c (Qcompound_text_with_extensions): Renamed from
21714 Qcompound_text_no_extensions.
21715 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
21716
21717 2002-02-26 Juanma Barranquero <lektu@terra.es>
21718
21719 * w32proc.c (syms_of_ntproc): Doc fix.
21720
21721 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21722
21723 * intervals.h: Include "dispextern.h" unconditionally.
21724
21725 2002-02-24 Jason Rumney <jasonr@gnu.org>
21726
21727 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
21728 and disp-table.elc.
21729 (lisp): Add emacs-lisp/backquote.elc.
21730
21731 2002-02-24 Kim F. Storm <storm@cua.dk>
21732
21733 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
21734 The validation of the event type was too strict as it didn't
21735 allow string events; buffer names are used in bindings for
21736 menu-bar-select-buffer (see `menu-bar-update-buffers').
21737
21738 2002-02-23 Kim F. Storm <storm@cua.dk>
21739
21740 The following changes rework my patch of 2002-02-06 which
21741 added command remapping by entering the commands directly into
21742 the keymaps. Now, command remapping uses an explicit `remap'
21743 prefix in the keymaps, i.e. [remap COMMAND].
21744
21745 * keymap.c (Qremap, remap_command_vector): New variables.
21746 (is_command_symbol): Remove function.
21747 (Fdefine_key): No longer accept a symbol for KEY.
21748 Added validation of [remap COMMAND] argument for KEY.
21749 The DEF is no longer required to be a symbol when remapping a command.
21750 (Fremap_command): New function to remap command through keymaps.
21751 (Flookup_key): Perform command remapping initiated by
21752 Fremap_command directly for speed.
21753 (Fkey_binding): Use Fremap_command for command remapping.
21754 (where_is_internal): Handle new command remapping representation.
21755 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
21756 staticpro them. Defsubr Fremap_command.
21757
21758 * keymap.h (Fremap_command): Declare extern.
21759 (is_command_symbol): Remove extern.
21760
21761 * keyboard.c (command_loop_1): Use Fremap_command for command
21762 remapping; now try command remapping for all symbols.
21763
21764 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21765
21766 * coding.h (run_pre_post_conversion_on_str): Add prototype.
21767
21768 2002-02-23 Jason Rumney <jasonr@gnu.org>
21769
21770 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
21771 on the string before encoding it.
21772 (Fw32_get_clipboard_data): Run post-read-conversion on the string
21773 after decoding it.
21774
21775 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
21776
21777 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21778
21779 * w32term.c (enter_timestamp): Remove unused static variable to
21780 prevent warning.
21781
21782 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
21783
21784 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
21785
21786 * w16select.c (Fw16_get_clipboard_data): Fix last change.
21787
21788 * xselect.c (selection_data_to_lisp_data): Fix last change.
21789
21790 2002-02-22 Jason Rumney <jasonr@gnu.org>
21791
21792 * w32term.h (struct w32_output): New member menu_command_in_progress.
21793
21794 * w32menu.c (menubar_selection_callback): Free the menu and
21795 clear the menu_command_in_progress flag.
21796
21797 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
21798 (menu_free_timer): New variable.
21799 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
21800 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
21801 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
21802 menu command is in progress.
21803 <WM_COMMAND>: Set the menu_command_in_progress flag.
21804 Kill any menu_free_timer that is running.
21805
21806 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
21807 Call ExtTextOutA rather than ExtTextOut.
21808
21809 2002-02-22 Eli Zaretskii <eliz@gnu.org>
21810
21811 * puresize.h (BASE_PURESIZE): Increase to 755000.
21812
21813 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21814
21815 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
21816 on the string before encoding it.
21817 (Fw16_get_clipboard_data): Run post-read-conversion on the string
21818 after decoding it.
21819
21820 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
21821
21822 Support for ICCCM Extended Segments in X selections:
21823
21824 * xselect.c <Qcompound_text_no_extensions>: New variable.
21825 (syms_of_xselect): Intern and staticpro it.
21826 (selection_data_to_lisp_data): Run post-read-conversion on decoded
21827 selection text.
21828 (lisp_data_to_selection_data): If next-selection-coding-system is
21829 compound-text-no-extensions, set the type of selection to be
21830 compound-text.
21831
21832 * xterm.h (x_encode_text): Update prototype.
21833
21834 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
21835 callers changed. If SELECTIONP is non-zero, run the
21836 pre-write-conversion function before encoding the selection text.
21837
21838 2002-02-21 Kim F. Storm <storm@cua.dk>
21839
21840 * frame.c (syms_of_frame): Change mouse-highlight default to t.
21841
21842 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
21843 Correct composing of language-change event.
21844
21845 2002-02-20 Kim F. Storm <storm@cua.dk>
21846
21847 * keyboard.c (menu_bar_items): Don't include keymap or local-map
21848 bindings at PT when building menu (the menu is not updated often
21849 enough for this to work reliable).
21850 (tool_bar_items): Likewise.
21851 (current_active_maps): Removed unused (and buggy) function.
21852
21853 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21854
21855 * xfns.c (gif_load): Use correct width and height for GIF images.
21856
21857 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
21858
21859 * floatfns.c (Fatan): Accept an optional second arg and call
21860 atan2 if passed 2 args.
21861
21862 2002-02-18 Jason Rumney <jasonr@gnu.org>
21863
21864 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
21865
21866 2002-02-17 Jason Rumney <jasonr@gnu.org>
21867
21868 * w32term.c (x_autoselect_window_p): New variable.
21869 (syms_of_w32term): DEFVAR_BOOL and initialize it.
21870 (note_mouse_movement): Use it.
21871
21872 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
21873
21874 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
21875
21876 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21877 New variables.
21878 (syms_of_w32fns): Intern and staticpro them.
21879 (x_frame_parms) <"fullscreen">: New parameter.
21880 (x_fullscreen_move, x_set_fullscreen): New functions.
21881 (x_set_frame_parameters): Support Qfullscreen.
21882 (x_real_positions): Save x/y_pixels_diff frame params.
21883 (x_figure_window_size): Support full-screen frames.
21884 (Fx_create_frame): Default the fullscreen parameter.
21885
21886 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
21887 (x_fullscreen_adjust): New functions.
21888 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
21889 fullscreen. Call x_check_fullscreen_move, and set the
21890 want_fullscreen member of output_data.w32
21891 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
21892
21893 * w32term.h: New enum for FULLSCREEN_* constants.
21894 (struct w32_output): New members want_fullscreen, x_pixels_diff,
21895 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
21896 (x-fullscreen-adjust): New prototype.
21897
21898 2002-02-17 Kim F. Storm <storm@cua.dk>
21899
21900 * frame.c (Vmouse_highlight): New variable.
21901 (syms_of_frame): DEFVAR_LISP it.
21902
21903 * frame.h (Vmouse_highlight): Declare extern.
21904
21905 * xterm.h (struct x_display_info): Add mouse_face_hidden.
21906
21907 * xterm.c (disable_mouse_highlight): Removed variable.
21908 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21909 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21910 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
21911 and on after keyboard input.
21912 (x_term_init): Initialize mouse_face_hidden.
21913
21914 * msdos.h (struct display_info): Add mouse_face_hidden.
21915
21916 * msdos.c (disable_mouse_highlight): Removed variable.
21917 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21918 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
21919 (internal_terminal_init): Initialize mouse_face_hidden.
21920 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
21921 and on after keyboard input.
21922
21923 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
21924
21925 * w32term.c (disable_mouse_highlight): Removed variable.
21926 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
21927 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21928 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
21929 and on after keyboard input.
21930 (w32_initialize_display_info): Initialize mouse_face_hidden.
21931
21932 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
21933
21934 * msdos.c (last_mouse_window): New variable.
21935 (dos_rawgetc): Fix last change--if the mouse is in the same window
21936 as recorded in last_mouse_window, don't select this window.
21937
21938 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
21939
21940 * msdos.c (x_autoselect_window_p): New variable.
21941 (syms_of_msdos): Defvar it.
21942 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
21943 which the last mouse movement occured, unless it is already selected.
21944
21945 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
21946 New variables.
21947 (syms_of_xdisp): DEVFAR them.
21948 (hscroll_window_tree): Use automatic_hscroll_margin and
21949 Vautomatic_hscroll_step to compute the amount of window scrolling.
21950
21951 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21952
21953 * xterm.c (x-autoselect-window): New variable.
21954 (note_mouse_movement): Use it.
21955
21956 * keyboard.c: Do not include "systime.h" twice.
21957
21958 2002-02-15 Andreas Schwab <schwab@suse.de>
21959
21960 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
21961
21962 * alloc.c (NSTATICS): Increase to 1280.
21963
21964 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
21965
21966 * alloc.c (NSTATICS): Bump to 1026.
21967
21968 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
21969 (Vx_super_keysym): New variables.
21970 (syms_of_xterm): DEFVAR_LISP them.
21971 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
21972 variables to determine which keys to use for the various modifiers.
21973
21974 2002-02-13 Kim F. Storm <storm@cua.dk>
21975
21976 * window.c (Vmode_line_in_non_selected_windows): Removed.
21977 (mode_line_in_non_selected_windows): New variable.
21978 (syms_of_window): DEFVAR_BOOL it.
21979
21980 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
21981 Use mode_line_in_non_selected_windows.
21982 (mode_line_in_non_selected_windows): Declare extern.
21983 (Vmode_line_in_non_selected_windows): Removed extern.
21984
21985 2002-02-13 Richard M. Stallman <rms@gnu.org>
21986
21987 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
21988 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
21989 (Fclear_this_command_keys): Doc fixes.
21990
21991 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
21992 (update_face_from_frame_parameter): Increment face_change_count
21993 and windows_or_buffers_changed to force redisplay using changed faces.
21994
21995 * xdisp.c (QCpropertize): New variable.
21996 (mode_line_proptrans_alist): New variable.
21997 (display_mode_element): New arg PROPS; all calls changed.
21998 Implement this, for strings.
21999 Handle literal output of strings by sharing the
22000 main-line code for strings, using local var `literal'.
22001 Handle :propertize feature.
22002 (syms_of_xdisp): Initialze and staticpro QCpropertize and
22003 mode_line_proptrans_alist.
22004
22005 2002-02-11 Kim F. Storm <storm@cua.dk>
22006
22007 * window.c (Vmode_line_in_non_selected_windows): New variable.
22008 (syms_of_window): DEFVAR_LISP it.
22009
22010 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
22011 (CURRENT_MODE_LINE_FACE_ID): Use it.
22012 (Vmode_line_in_non_selected_windows): Declare extern.
22013
22014 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
22015 to get mode line face.
22016
22017 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
22018
22019 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
22020 variables; cus-start.el doesn't need them anymore.
22021
22022 2002-02-09 Kim F. Storm <storm@cua.dk>
22023
22024 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
22025 reduction. This fixes a display problem where stray newlines were
22026 inserted in the window (corrected by C-l). Clarified code (IMHO).
22027
22028 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
22029
22030 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
22031
22032 * xdisp.c (display_mode_lines): Fix last change.
22033
22034 2002-02-09 Jason Rumney <jasonr@gnu.org>
22035
22036 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
22037 match each other.
22038 (w32_load_system_font): Prevent Cleartype fonts from loading.
22039 (Fx_show_tip): Ensure tip frames are above other topmost windows.
22040
22041 2002-02-09 Kim F. Storm <storm@cua.dk>
22042
22043 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
22044 (CURRENT_MODE_LINE_HEIGHT): Use it.
22045 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
22046
22047 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
22048 (pos_visible_p, handle_face_prop): Likewise.
22049 (display_mode_lines): Likewise, but for the real selected window.
22050 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
22051
22052 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
22053 in non-selected windows.
22054 (realize_basic_faces): Realize it.
22055 (syms_of_term): Intern and staticpro it.
22056
22057 2002-02-08 Kim F. Storm <storm@cua.dk>
22058
22059 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
22060 Changed mail addresses to emacs-devel@gnu.org.
22061
22062 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
22063
22064 * fileio.c (Fsubstitute_in_file_name): If the file name includes
22065 ~user, and there's no such user, don't discard everything before ~user.
22066
22067 * floatfns.c (Fround): Doc fix.
22068
22069 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22070
22071 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
22072
22073 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
22074
22075 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
22076
22077 2002-02-07 Kim F. Storm <storm@cua.dk>
22078
22079 * keymap.c (where_is_internal): Only check whether definition is
22080 remapped if it fulfills is_command_symbol.
22081
22082 2002-02-07 Andreas Schwab <schwab@suse.de>
22083
22084 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
22085
22086 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
22087
22088 2002-02-06 Kim F. Storm <storm@cua.dk>
22089
22090 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
22091 defining command remapping. Doc updated.
22092 (Flookup_key): Remap command through keymap if KEY is a symbol.
22093 (is_command_symbol): New function.
22094 (Fkey_binding): Use it. New optional argument NO-REMAP.
22095 Doc updated. Callers changed. Perform command remapping via
22096 recursive call unless that arg is non-nil.
22097 (where_is_internal): New argument no_remap. Callers changed.
22098 Call recursively to find original key bindings for a remapped
22099 comand unless that arg is non-nil.
22100 (Fwhere_is_internal): New optional argument NO-REMAP.
22101 Doc updated. Callers changed. Pass arg to where_is_internal.
22102
22103 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
22104 (is_command_symbol): Add prototype.
22105
22106 * keyboard.c (Vthis_original_command): New variable.
22107 (syms_of_keyboard): DEFVAR_LISP it.
22108 (command_loop_1): Set it, and perform command remapping.
22109
22110 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22111
22112 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
22113
22114 2002-02-06 Jason Rumney <jasonr@gnu.org>
22115
22116 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
22117
22118 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
22119
22120 * charset.c (get_charset_id): Use if-else instead of ?:.
22121
22122 2002-02-06 Richard M. Stallman <rms@gnu.org>
22123
22124 * filelock.c (S_ISLNK): Define if not defined.
22125
22126 2002-02-03 Richard M. Stallman <rms@gnu.org>
22127
22128 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
22129
22130 * lread.c (read1): Redesign strategy for force_multibyte and
22131 force_singlebyte. Now is_multibyte records whether read_buffer
22132 is multibyte. Encountering any multibyte character makes it so.
22133
22134 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
22135
22136 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
22137 with the same sequence, map that sequence to f10 rather than f0.
22138
22139 2002-02-03 Andreas Schwab <schwab@suse.de>
22140
22141 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
22142 latter never being defined on GNU/Linux.
22143
22144 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
22145
22146 * xfaces.c (realize_default_face): Don't set the weight and slant of
22147 the default face to Qnormal, unless these attributes are unspecified.
22148
22149 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22150
22151 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
22152 Call cancel_hourglass unconditionally.
22153
22154 * eval.c (Fsignal): Remove duplicated declaration of
22155 the variable `display_hourglass_p'.
22156
22157 2002-01-31 Richard M. Stallman <rms@gnu.org>
22158
22159 * editfns.c (region_limit): Nicer error message.
22160
22161 * coding.c (decode_composition_emacs_mule):
22162 Give up if NCOMPONENT gets too large to index `component'.
22163
22164 * callint.c (check_mark): New arg to specify clearer error message.
22165 Callers changed.
22166
22167 2002-01-27 Richard M. Stallman <rms@gnu.org>
22168
22169 * minibuf.c (Fcompleting_read): Doc fix.
22170
22171 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22172
22173 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
22174 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
22175 Fix doc-strings.
22176
22177 2002-01-26 Richard M. Stallman <rms@gnu.org>
22178
22179 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
22180
22181 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
22182 and scroll_up_aggressively.
22183
22184 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22185
22186 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
22187
22188 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
22189
22190 * textprop.c (Fnext_property_change, Fnext_single_property_change)
22191 (Fprevious_property_change, Fprevious_single_property_change):
22192 Stay within the narrowed-buffer boundaries.
22193
22194 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
22195
22196 * term.c (Ftty_display_color_cells): New function.
22197 (syms_of_term): Defsubr it.
22198 (Ftty_display_color_cells, Ftty_display_color_p): Change the
22199 argument name to DISPLAY. Doc fix.
22200
22201 * dispextern.h: Add prototype for set_tty_color_mode and
22202 tty_setup_colors.
22203
22204 2002-01-24 Jason Rumney <jasonr@gnu.org>
22205
22206 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
22207 If region left to draw is not what was expected, mark the frame as
22208 garbaged.
22209
22210 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
22211 Combine the regions returned by BeginPaint and GetUpdateRect.
22212
22213 2002-01-23 Jason Rumney <jasonr@gnu.org>
22214
22215 * w32term.c (x_update_window_begin): Only hide caret if
22216 w32_use_visible_system_caret is set.
22217 (x_update_window_end): Only show caret if
22218 w32_use_visible_system_caret is set.
22219 (syms_of_w32term): Handle SystemParametersInfo call failing.
22220
22221 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
22222
22223 2002-01-22 Richard M. Stallman <rms@gnu.org>
22224
22225 * unexelf.c (unexec): Define n so as to cause compilation error
22226 for the code where people have often written n instead of nn.
22227
22228 * .gdbinit (hookpost-run): Defined.
22229
22230 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22231
22232 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
22233
22234 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22235
22236 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
22237 if fullscreen is being set.
22238
22239 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22240
22241 * minibuf.c (Fminibuffer_contents)
22242 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
22243 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
22244
22245 2002-01-21 Richard M. Stallman <rms@gnu.org>
22246
22247 * window.c (check_frame_size): Fix minimum height calculation.
22248
22249 2002-01-20 Ken Raeburn <raeburn@gnu.org>
22250
22251 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
22252 height before comparison.
22253 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
22254
22255 2002-01-20 Jason Rumney <jasonr@gnu.org>
22256
22257 * w32term.c (w32_system_caret_width): Remove.
22258 (w32_use_visible_system_caret): New user flag.
22259 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
22260 Windows reports a screen reader running.
22261 (x_update_window_begin): Hide the system caret.
22262 (x_update_window_end): Show the system caret.
22263 (x_display_and_set_cursor): Don't draw a cursor when
22264 w32_use_visible_system_caret is set. Do not adjust width.
22265
22266 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
22267 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
22268 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
22269 the user requests it. Use system default width when creating.
22270 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
22271
22272 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
22273 New window messages.
22274
22275 2002-01-20 Richard M. Stallman <rms@gnu.org>
22276
22277 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
22278
22279 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22280
22281 * doprnt.c (doprnt1): Fix typos in error call.
22282
22283 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
22284
22285 * unexelf.c (unexec) [__sgi]: Support the .got sections.
22286
22287 2002-01-20 Jason Rumney <jasonr@gnu.org>
22288
22289 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
22290 that Windows returns. If a double check fails, try to guess how
22291 ExtTextOut is going to act.
22292
22293 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
22294 in place of stricmp.
22295 (w32_list_synthesized_fonts): Removed.
22296 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
22297 (struct enumfont_t): New element; list.
22298 (enum_font_cb2): List all style and charset variations of a font.
22299 (Fw32_select_font): New optional argument; include_proportional.
22300 Exclude vertical fonts. Exclude proportional fonts unless
22301 include_proportional is non-nil.
22302 (w32_enable_synthesized_fonts): Change to a boolean.
22303 (Fw32_send_sys_command): Doc fix.
22304
22305 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22306
22307 * dispnew.c (update_frame): Move the variable `tem' to the block
22308 where it is used.
22309
22310 2002-01-19 Jason Rumney <jasonr@gnu.org>
22311
22312 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
22313 call to face-set-after-frame-default.
22314
22315 2002-01-18 Richard M. Stallman <rms@gnu.org>
22316
22317 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
22318 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
22319
22320 2002-01-17 Richard M. Stallman <rms@gnu.org>
22321
22322 * window.c (enlarge_window): When exceeding size of parent,
22323 directly delete all the siblings instead of trying to resize it.
22324
22325 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22326
22327 * term.c (set_tty_color_mode): Remove unused variable `tem'.
22328
22329 2002-01-16 Henrik Enberg <henrik@enberg.org>
22330
22331 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
22332
22333 2002-01-16 Kim F. Storm <storm@cua.dk>
22334
22335 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
22336 is invisible. This can happen if cursor is on top line of a
22337 window, and we switch to a buffer with a header line.
22338
22339 * w32term.c (x_erase_phys_cursor): Ditto.
22340
22341 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22342
22343 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
22344 `dont_resize' only when used.
22345
22346 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
22347
22348 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
22349
22350 * xdisp.c (display_mode_element): When computing charpos, depend
22351 on multibyteness of elt, not the text in field.
22352
22353 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22354
22355 * buffer.c (Fkill_all_local_variables):
22356 Increment `update_mode_lines' only once.
22357
22358 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22359
22360 * lisp.h (adjust_after_replace_noundo)
22361 (Fupdate_coding_systems_internal): Add prototypes.
22362
22363 * sound.c (Fplay_sound): Initialize header_size also for :data case.
22364
22365 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
22366
22367 Support for the --color command-line argument and tty-color-mode
22368 frame parameter:
22369
22370 * term.c (tty_default_color_capabilities, tty_setup_colors)
22371 (set_tty_color_mode): New functions.
22372 (term_init): Call tty_default_color_capabilities.
22373 (Qtty_color_mode_alist): New variable.
22374 (syms_of_term): Intern and staticpro it.
22375
22376 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
22377 frames.
22378 (do_switch_frame): For termcap frames, switch the tty
22379 color mode as specified by the frame's parameters.
22380 (Qtty_color_mode): New variable.
22381 (syms_of_frame): Intern and staticpro it.
22382
22383 * emacs.c (USAGE2): Add the --color option.
22384 (standard_args): Ditto.
22385
22386 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22387
22388 * xterm.h (struct x_output): New members want_fullscreen,
22389 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
22390 y_pixels_outer_diff.
22391 New enum for FULLSCREEN_* constants.
22392 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
22393 is NULL.
22394 (x_fullscreen_adjust): Add prototype.
22395
22396 * emacs.c (USAGE2): Add the new full-screen arguments.
22397 (standard_args): Ditto.
22398
22399 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
22400 New variables.
22401 (syms_of_xfns): Intern and staticpro them.
22402 (x_frame_parms) <"fullscreen">: New parameter.
22403 (x_fullscreen_move, x_set_fullscreen): New functions.
22404 (x_set_frame_parameters): Support for Qfullscreen.
22405 (x_real_positions): More accurate computation of the frame position.
22406 (x_figure_window_size): Support full-screen frames.
22407 (Fx_create_frame): Default the fullscreen parameter.
22408
22409 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
22410 (XTread_socket) <Expose>: Call x_check_fullscreen.
22411 <ConfigureNotify>: Don't resize to fullscreen.
22412 Call x_check_fullscreen_move, and set the want_fullscreen member of
22413 output_data.x.
22414
22415 2002-01-13 Jason Rumney <jasonr@gnu.org>
22416
22417 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
22418 for mice with more than 3 buttons.
22419
22420 * w32term.c (parse_button): New parameter xbutton. Callers changed.
22421 (w32_read_socket): Handle new "XBUTTON" messages.
22422
22423 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
22424 (syms_of_w32fns): DEFVAR_BOOL it.
22425 (w32_wnd_proc): Handle new "XBUTTON" messages.
22426
22427 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22428
22429 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
22430
22431 2002-01-13 Andreas Schwab <schwab@suse.de>
22432
22433 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
22434
22435 2002-01-12 Andreas Schwab <schwab@suse.de>
22436
22437 * .gdbinit (xbuffer): Remove address operator since data is now a
22438 pointer.
22439
22440 2002-01-11 Richard M. Stallman <rms@gnu.org>
22441
22442 * insdel.c (adjust_after_replace_noundo): New function.
22443
22444 * coding.c (code_convert_region): Don't copy old text if undo disabled.
22445
22446 2002-01-09 Jason Rumney <jasonr@gnu.org>
22447
22448 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
22449 when checking for multiple frames.
22450
22451 2002-01-08 Richard M. Stallman <rms@gnu.org>
22452
22453 * window.c (delete_window): Rewrite the code for changing the
22454 selected window to handle the case where WINDOW is not a leaf.
22455
22456 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
22457
22458 * process.c (send_process): Set src_multibyte to 1 after the call
22459 top setup_coding_system, not before the call.
22460
22461 2002-01-07 Jason Rumney <jasonr@gnu.org>
22462
22463 * xmenu.c (set_frame_menubar, xmenu_show):
22464 (xdialog_show): Initialize wv->help to Qnil.
22465
22466 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
22467 (w32_dialog_show): Initialize wv->help to Qnil.
22468
22469 2002-01-06 Jason Rumney <jasonr@gnu.org>
22470
22471 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
22472
22473 * w32menu.c (w32_menu_display_help): Revert last change.
22474
22475 * xmenu.c (menu_highlight_callback): Revert last change.
22476
22477 2002-01-06 Andreas Schwab <schwab@suse.de>
22478
22479 * insdel.c (make_gap_larger): Make sure buffer size does not
22480 overflow range of int.
22481
22482 2002-01-05 Jason Rumney <jasonr@gnu.org>
22483
22484 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22485 OVERLAPS_P.
22486
22487 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
22488
22489 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
22490 to the left or to the right of the pointer, put it against
22491 the left screen edge.
22492 (x_frame_parms): Add missing braces around initializer.
22493
22494 * w32term.c (x_setup_relief_colors): Don't compute an image's
22495 background color if it doesn't have a Pixmap.
22496 (notice_overwritten_cursor): Don't depend on
22497 output_cursor and updated_area. Compare pixel coordinates with
22498 window's cursor pixel coordinates.
22499 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22500 Call notice_overwritten_cursor with new arg list.
22501 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22502 unconditionally.
22503 (x_draw_image_relief): Use predefined macro instead of
22504 constant when the value of `tool_bar_button_relief' is negative.
22505
22506 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
22507
22508 2002-01-04 Richard M. Stallman <rms@gnu.org>
22509
22510 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
22511
22512 2002-01-03 Richard M. Stallman <rms@gnu.org>
22513
22514 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
22515 (Fkey_binding): Try the `keymap' property map first.
22516 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
22517 minor mode bindings.
22518
22519 2002-01-03 Kim F. Storm <storm@cua.dk>
22520
22521 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
22522
22523 2002-01-02 Richard M. Stallman <rms@gnu.org>
22524
22525 * keyboard.c (read_key_sequence): Handle the keymap property
22526 before minor mode maps.
22527
22528 * editfns.c (Fformat): Update thissize from field_width
22529 based on the actual width, in the string case.
22530
22531 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22532
22533 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
22534 when used as truth value to prevent gcc warnings.
22535
22536 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
22537 * w32proc.c: Include <config.h>.
22538
22539 2002-01-01 Andreas Schwab <schwab@suse.de>
22540
22541 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
22542 not EMACS_INT, to make them compatible with DEFVAR_INT.
22543 * lisp.h (max_specpdl_size): Adjust declaration.
22544
22545 2002-01-01 Richard M. Stallman <rms@gnu.org>
22546
22547 * print.c (print_object): Test print_escape_nonascii only for
22548 unibyte strings.
22549 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
22550 when outputting to a multibyte buffer.
22551
22552 2001-12-29 Richard M. Stallman <rms@gnu.org>
22553
22554 * print.c (print_object): In multibyte string, use hex escapes.
22555 Use octal only for unibyte strings.
22556 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
22557
22558 * lread.c (read_escape): New arg BYTEREP for reporting whether
22559 escape forces unibyte or multibyte.
22560 (read1): When reading a string, take note of that info.
22561
22562 2001-12-29 Ken Raeburn <raeburn@gnu.org>
22563
22564 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
22565 comparison to test lisp value returned by Fget.
22566
22567 2001-12-29 Richard M. Stallman <rms@gnu.org>
22568
22569 * lisp.h (max_specpdl_size): Add declaration.
22570
22571 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
22572
22573 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
22574 Handle modifier bits. Correct typo in error message.
22575
22576 2001-12-28 Richard M. Stallman <rms@gnu.org>
22577
22578 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
22579 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
22580 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22581 Update calls to Fdefine_abbrev.
22582 (write_abbrev): Update for changed data format.
22583 Don't list "system" abbrevs.
22584 (Fexpand_abbrev): Update use count with new data format.
22585 (describe_abbrev): Update for changed data format.
22586 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
22587
22588 * config.in (HAVE_MBSINIT): Add #undef.
22589
22590 * strftime.c (mbsinit): Define as no-op if not available.
22591
22592 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
22593 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
22594
22595 * keymap.c (Flookup_key): Error message if key has wrong data type.
22596 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
22597 (exclude_key): New variable.
22598
22599 2001-12-28 Gerd Moellmann <gerd@gnu.org>
22600
22601 * xterm.c (x_setup_relief_colors): Don't compute an image's
22602 background color if it doesn't have a Pixmap.
22603
22604 * xterm.c (notice_overwritten_cursor): Don't depend on
22605 output_cursor and updated_area. Compare pixel coordinates with
22606 window's cursor pixel coordinates.
22607 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
22608 Call notice_overwritten_cursor with new arg list.
22609 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
22610 unconditionally.
22611
22612 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
22613 height of the cursor line to the amount to scroll.
22614
22615 2001-12-27 Richard M. Stallman <rms@gnu.org>
22616
22617 * intervals.c (set_point_both): The position after an invisible,
22618 intangible character is not an acceptable stopping point.
22619
22620 2001-12-27 Ken Raeburn <raeburn@gnu.org>
22621
22622 * window.c (enlarge_window): In new preserve_before code, convert
22623 CURBEG from lisp object to integer before doing arithmetic.
22624
22625 2001-12-27 Richard M. Stallman <rms@gnu.org>
22626
22627 * bytecode.c (Fbyte_code): Undo previous change.
22628
22629 2001-12-26 Kim F. Storm <storm@cua.dk>
22630
22631 * keyboard.c (record_char): Ignore duplicate help-echo events only
22632 separated by mouse-movement. When tracking mouse, only record
22633 first and last mouse-movement event in same window.
22634 Don't record mouse-movement events in keyboard macros.
22635
22636 2001-12-25 Richard M. Stallman <rms@gnu.org>
22637
22638 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
22639 (Fenlarge_window): New arg PRESERVE_BEFORE.
22640
22641 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
22642 instead of Fstring_as_unibyte.
22643
22644 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22645
22646 The following changes remove mocklisp support:
22647
22648 * mocklisp.h, mocklisp.c: Files removed.
22649
22650 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
22651 `Qmocklisp' and `Qmocklisp_arguments'.
22652 Remove prototype of syms_of_mocklisp.
22653
22654 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
22655
22656 * callint.c: Do not include mocklisp.h.
22657 (Fcall_interactively): Do not test for mocklisp case.
22658
22659 * eval.c: Remove variables `Qmocklisp_arguments',
22660 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
22661 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
22662 Do not test for mocklisp case.
22663 (Fwhile): Remove unused variable `tem'.
22664 (syms_of_eval): Remove variable `moclisp-arguments'.
22665
22666 * data.c (wrong_type_argument): Remove mocklisp case.
22667
22668 * doc.c (Fdocumentation): Remove mocklisp case.
22669
22670 * emacs.c (main): Do not call syms_of_mocklisp.
22671
22672 2001-12-21 Richard M. Stallman <rms@gnu.org>
22673
22674 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
22675 to the left or to the right of the pointer, put it against
22676 the left screen edge.
22677
22678 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
22679
22680 * Makefile.in (distclean): Remove .gdbinit if we are building
22681 outside the source tree.
22682
22683 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
22684
22685 * w32.c (emacs_root_dir): New function.
22686
22687 * msdos.c (emacs_root_dir): New function.
22688
22689 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
22690 of the current drive as the fallback for default_directory.
22691
22692 * dired.c (file_name_completion): Run the elements of
22693 completion-ignored-extensions through ENCODE_FILE.
22694
22695 * lisp.h (scmp): Remove prototype, since it's now a static
22696 function private to dired.c.
22697
22698 2001-12-18 Richard M. Stallman <rms@gnu.org>
22699
22700 * dired.c (scmp): Function moved from minibuf.c.
22701 Delete multibyte handling--used only on encoded strings.
22702
22703 * minibuf.c (scmp): Function moved to dired.c.
22704
22705 * fns.c (merge): Add QUIT call.
22706
22707 2001-12-18 Dave Love <fx@gnu.org>
22708
22709 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
22710 language/georgian.el.
22711
22712 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
22713
22714 * Makefile.in (lisp, shortlisp): Synchronize with changes to
22715 lisp/Makefile.in:DONTCOMPILE.
22716
22717 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22718
22719 * xdisp.c (window_box_height): Do not return negative values.
22720 From Gerd Moellmann <gerd@gnu.org>.
22721
22722 * keyboard.c (head_table): Add missing braces around initializer.
22723
22724 * term.c (keys): Likewise.
22725
22726 * xfns.c (x_frame_parms, visual_classes): Likewise.
22727
22728 2001-12-17 Sam Steingold <sds@gnu.org>
22729
22730 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
22731 patch (COMPOSING_P, not COMPOSING).
22732
22733 2001-12-17 Richard M. Stallman <rms@gnu.org>
22734
22735 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
22736
22737 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
22738 before calling decode_coding.
22739
22740 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
22741
22742 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
22743 instead of only for COMPOSITION_DISABLED.
22744
22745 2001-12-16 Richard M. Stallman <rms@gnu.org>
22746
22747 * alloc.c (pure_alloc): After overflow, allocate just a small block.
22748
22749 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
22750
22751 * buffer.h (struct buffer): New field `display_error_modiff'.
22752 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
22753
22754 * window.c (Frecenter): Clear display_error_modiff field.
22755
22756 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
22757 Call redisplay_window, but not if display_error_modiff field says no.
22758 (redisplay_window_error): New function.
22759 (displayed_buffer): New variable.
22760 (redisplay_internal, redisplay_windows): Call the new functions
22761 instead of redisplay_window directly.
22762
22763 2001-12-15 Richard M. Stallman <rms@gnu.org>
22764
22765 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
22766
22767 2001-12-14 Andrew Innes <andrewi@gnu.org>
22768
22769 * makefile.w32-in (EMACSLOADPATH): Define.
22770 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
22771 (bootstrap-temacs): Remove dependency on bootstrap-clean.
22772
22773 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
22774
22775 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
22776 parameter have a numeric value all the time.
22777
22778 * w32fns.c (x_report_frame_params): Likewise.
22779
22780 2001-12-12 Richard M. Stallman <rms@gnu.org>
22781
22782 * fileio.c (Fwrite_region): Doc fix.
22783
22784 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
22785 (redisplay_internal): Call clear_image_cache only for window terminals.
22786
22787 2001-12-12 Gerd Moellmann <gerd@gnu.org>
22788
22789 * xdisp.c (move_it_vertically_backward): Change heuristic
22790 for the case that we didn't move far enough initially.
22791
22792 * window.c (Frecenter): Simplify computation in the case of window
22793 system frames and ARG < 0; use window_box_height.
22794
22795 2001-12-11 Richard M. Stallman <rms@gnu.org>
22796
22797 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
22798 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
22799
22800 2001-12-11 Andrew Innes <andrewi@gnu.org>
22801
22802 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
22803 arg is negative.
22804
22805 2001-12-11 Richard M. Stallman <rms@gnu.org>
22806
22807 * m/hp800.h: Split the __hpux conditional into the parts
22808 that are right for GNU/Linux too and the parts that are not.
22809 Use the former if GNU_LINUX.
22810 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
22811
22812 * s/gnu-linux.h (GNU_LINUX): Defined.
22813
22814 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22815
22816 * macros.c, msdos.c, w16select.c: Change doc-string comments to
22817 `new style' [w/`doc:' keyword].
22818
22819 2001-12-10 Jason Rumney <jasonr@gnu.org>
22820
22821 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
22822 before using.
22823
22824 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22825
22826 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
22827 keyword].
22828
22829 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
22830
22831 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
22832
22833 * s/hpux10.h (srand48): Don't undefine.
22834
22835 2001-12-09 Jason Rumney <jasonr@gnu.org>
22836
22837 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
22838 Add comment to explain where the struct came from.
22839 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
22840 (add_menu_item): Process pop-up menus first to avoid memory leak.
22841 (add_menu_item, w32_menu_display_help): Use `help' field as
22842 Lisp_Object.
22843 (w32_free_submenu_strings): Only free owner-drawn strings.
22844
22845 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22846
22847 * COPYING: Moved back.
22848
22849 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
22850 Add parentheses around && within ||.
22851
22852 * indent.c (compute_motion): Likewise.
22853
22854 * intervals.c (merge_properties_sticky): Likewise.
22855
22856 * coding.c (setup_coding_system, shrink_encoding_region)
22857 (Fdecode_sjis_char): Likewise.
22858
22859 2001-12-07 Andreas Schwab <schwab@suse.de>
22860
22861 * xdisp.c (display_mode_element): Don't read past end of string if
22862 it ends with '%'.
22863
22864 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
22865 can hold.
22866
22867 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
22868 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
22869 type changed to Lisp_Object.
22870 (syms_of_data): DEFVAR_LISP them.
22871
22872 2001-12-07 Richard M. Stallman <rms@gnu.org>
22873
22874 * callproc.c (init_callproc): Set Vdata_directory based on the source
22875 location whenever Emacs was run uninstalled.
22876
22877 2001-12-06 Paul Eggert <eggert@twinsun.com>
22878
22879 * config.in (HAVE_WORKING_VFORK): New #undefs.
22880 * process.c (create_process):
22881 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
22882 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
22883 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
22884 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
22885 * m/intel386.h (HAVE_VFORK): Likewise.
22886 * m/mips-siemens.h (HAVE_VFORK): Likewise.
22887 * m/mips.h (HAVE_VFORK): Likewise.
22888 * s/freebsd.h (vfork): Remove #define.
22889 * s/lynxos.h (HAVE_VFORK): Remove #undef.
22890 * s/usg5-4-2.h: Fix comment about vfork.
22891
22892 2001-12-06 Richard M. Stallman <rms@gnu.org>
22893
22894 * s/hpux10.h (random): Add undef.
22895 (HAVE_RANDOM): Define it just once.
22896
22897 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
22898
22899 * eval.c: Undo last change: the standard syntax is not wanted.
22900
22901 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
22902
22903 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
22904 scroll bars of the frame before deleting the frame itself. If the
22905 frame has a widget, delete the frame with XtDestroyWidget, and do
22906 not call XDestroyWindow before that.
22907
22908 2001-12-06 Kim F. Storm <storm@cua.dk>
22909
22910 * xfns.c (x_report_frame_params): Return actual fringe widths.
22911
22912 * w32fns.c (x_report_frame_params): Return actual fringe widths.
22913
22914 2001-12-05 Andrew Innes <andrewi@gnu.org>
22915
22916 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
22917 excessively large.
22918
22919 * insdel.c (make_gap_larger): New function.
22920 (make_gap_smaller): New function.
22921 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
22922 Call make_gap_smaller if arg is negative.
22923
22924 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
22925
22926 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
22927 Pass a dummy argument when calling interrupt_signal.
22928 (parse_menu_item): Mark disabled items before checking for empty def.
22929 (read_char_minibuf_menu_prompt): Make safety more visible.
22930 (read_key_sequence): Add a `first_unbound' variable.
22931 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
22932 unbound prefix as soon as we can detect it.
22933
22934 * doc.c (Fsnarf_documentation): Add prototype.
22935 (get_doc_string): Handle negative arguments.
22936 (Fdocumentation): Use AREF and ASIZE.
22937 Move the calls to get_doc_string to a single place.
22938 Don't confuse an interactive-spec for a docstring reference.
22939 (Fdocumentation_property): Take advantage of the fact that
22940 get_doc_string now ignores the sign of the docstring position.
22941
22942 * eval.c: Use standard syntax for usage in docstrings.
22943
22944 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22945
22946 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
22947
22948 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22949
22950 * xterm.c (x_draw_image_relief): Use predefined macro instead of
22951 constant when the value of `tool_bar_button_relief' is negative.
22952
22953 2001-12-02 Richard M. Stallman <rms@gnu.org>
22954
22955 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
22956 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
22957
22958 * fileio.c (read_non_regular): Delete Fsignal call.
22959
22960 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
22961
22962 * lisp.h (run_hook_list_with_args): Undo last change.
22963
22964 2001-12-01 Gerd Moellmann <gerd@gnu.org>
22965
22966 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
22967
22968 2001-12-01 Jason Rumney <jasonr@gnu.org>
22969
22970 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
22971
22972 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
22973 [!WM_MOUSELEAVE]: Define.
22974
22975 * w32menu.c (current_popup_menu, get_menu_item_info):
22976 (set_menu_item_info): New vars.
22977 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
22978 (w32_menu_show): Set current_popup_menu.
22979 (add_menu_item): Allocate new strings for owner-drawn menu items
22980 and help strings.
22981 Use owner-draw for disabled menu items again.
22982 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
22983 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
22984
22985 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
22986 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
22987 <WM_EXITMENULOOP>: Free menu strings.
22988 <WM_MOUSELEAVE>: Stop tracking mouse.
22989 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
22990
22991 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
22992 and mouse face.
22993
22994 2001-12-01 Kim F. Storm <storm@cua.dk>
22995
22996 The following changes add left-fringe and right-fringe
22997 frame parameters to adjust fringe widths, or remove one or
22998 both fringes.
22999
23000 * frame.h (struct frame): Remove trunc_area_pixel_width and
23001 trunc_area_cols fields.
23002 (Qleft_fringe, Qright_fringe): Declare.
23003 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
23004
23005 * frame.c (Qleft_fringe, Qright_fringe): New vars.
23006 (syms_of_frame): Initialize them.
23007
23008 * window.c (coordinates_in_window): Handle separate left and right
23009 fringe widths.
23010
23011 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
23012 and fringe_cols fields.
23013 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
23014 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
23015 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
23016 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
23017 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
23018 (x_compute_fringe_widths): Add prototype.
23019
23020 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
23021 fill fringe evenly with small dashes.
23022 (x_draw_fringe_bitmap): Clear background if necessary. Align and
23023 clip the new ZV bitmap to avoid jitter between rows.
23024 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
23025 background. Don't draw fringe bitmaps if fringe width is zero.
23026 (x_compute_fringe_widths): New function.
23027 (x_new_font, x_set_window_size_1): Use it.
23028
23029 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
23030 (x_set_frame_parameters): Process `font' parameter before other
23031 parameters as fringe widths depend on it.
23032 (x_set_fringe_width): New function.
23033 (x_figure_window_size): Use x_compute_fringe_widths.
23034 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
23035 parameters.
23036
23037 * widget.c (set_frame_size): Use x_compute_fringe_widths.
23038 (EmacsFrameSetCharSize): Ditto.
23039
23040 * w32term.h: Merged changes from xterm.h.
23041 * w32term.c: Merged changes from xterm.c.
23042 * w32fns.c: Merged changes from xfns.c.
23043
23044 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23045
23046 * COPYING: Removed.
23047
23048 2001-11-29 Dave Love <fx@gnu.org>
23049
23050 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
23051 extra extra slot.
23052 (detect_coding_mask): Fix call of detect_coding_iso2022.
23053
23054 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23055
23056 * fileio.c (file-name-coding-system)
23057 (default-file-name-coding-system): Doc fix (links to referenced
23058 variables added).
23059
23060 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23061
23062 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
23063 Add dummy uses of gcproN variables.
23064
23065 * category.c (describe_category, describe_category_1)
23066 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
23067 (syms_of_category): Don't defsubr Sdescribe_categories.
23068
23069 2001-11-28 Richard M. Stallman <rms@gnu.org>
23070
23071 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
23072
23073 * Makefile.in (lispdir): New variable, referring to build dir.
23074 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
23075
23076 2001-11-28 Andrew Innes <andrewi@gnu.org>
23077
23078 * w32menu.c (w32_menu_display_help): Actually add the new argument
23079 OWNER.
23080
23081 2001-11-28 Jason Rumney <jasonr@gnu.org>
23082
23083 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
23084 menu items. From David Ponce <dponce@wanadoo.fr>.
23085 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
23086 conditionally.
23087 (w32_menu_display_help): New argument OWNER. Rewritten to store a
23088 help event in the owner frame's keyboard buffer.
23089
23090 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
23091 (Fx_show_tip): Don't subtract last width from row width.
23092
23093 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
23094 (w32_read_socket): Use EQ to compare frames.
23095
23096 2001-11-28 Gerd Moellmann <gerd@gnu.org>
23097
23098 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23099 OVERLAPS_P.
23100
23101 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23102
23103 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
23104 `gcpro3' and `gcpro4'.
23105
23106 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
23107
23108 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23109
23110 * ccl.c: Use AREF and ASIZE.
23111
23112 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
23113
23114 * lisp.h (run_hook_list_with_args): Remove.
23115 (LIST_END_P): Fix call to wrong_type_argument.
23116 (make_fixnum_or_float): Use EMACS_INT rather than int.
23117
23118 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
23119
23120 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
23121 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
23122
23123 * eval.c: Use AREF and ASIZE.
23124 (Ffetch_bytecode): Add the file name to the error message.
23125
23126 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
23127 which match the end of the file-name.
23128 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
23129 is not a valid env var, but leave it as is instead.
23130
23131 * keymap.c (access_keymap): Handle t bindings like nil bindings.
23132 Make nil bindings in char-tables transparent.
23133 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
23134
23135 2001-11-26 Richard M. Stallman <rms@gnu.org>
23136
23137 * textprop.c (set_text_properties_1): Allow START, END in either order.
23138 Do nothing if range is empty.
23139
23140 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
23141
23142 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
23143 (clean): Not here.
23144
23145 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23146
23147 * textprop.c (set_text_properties_1): Clearly mark that the
23148 interval should not be empty.
23149
23150 * intervals.c (graft_intervals_into_buffer):
23151 Don't call set_text_properties_1 on an empty interval.
23152
23153 2001-11-25 Richard M. Stallman <rms@gnu.org>
23154
23155 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
23156
23157 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
23158 don't lose the data in it.
23159
23160 2001-11-25 Juanma Barranquero <lektu@terra.es>
23161
23162 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
23163
23164 * buffer.c (Fkill_buffer): Likewise.
23165
23166 * print.c (temp_output_buffer_setup): Likewise.
23167
23168 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23169
23170 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
23171
23172 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
23173
23174 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
23175 Niemitalo <kon@iki.fi>.
23176
23177 2001-11-25 Jason Rumney <jasonr@gnu.org>
23178
23179 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
23180
23181 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
23182 (Fx_show_tip): Block input during frame creation.
23183 (Fx_show_tip, Fx_hide_tip): Enable.
23184
23185 2001-11-24 Richard M. Stallman <rms@gnu.org>
23186
23187 * lread.c (Fload): Detect recursive load error for more than 3
23188 nestings of the same file.
23189 (Vrecursive_load_depth_limit): Variable deleted.
23190 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
23191
23192 2001-11-24 Jason Rumney <jasonr@gnu.org>
23193
23194 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
23195 mouse position if either left or top is not specified.
23196
23197 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
23198 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
23199 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
23200 (my_create_tip_window): Assign tip_window.
23201 (x_create_tip_frame): Use same defaults as X.
23202 (compute_tip_xy): Remove unused variable. Use full screen width.
23203 (Fx_show_tip): Do not double height. Call ShowWindow directly.
23204
23205 * w32term.c (x_after_update_window_line): Doc fix.
23206 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
23207 frames.
23208 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
23209
23210 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
23211 for all Windowed systems.
23212
23213 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
23214
23215 * msdos.c (IT_clear_screen): If the frame's faces are not yet
23216 realized, use the initial screen colors to clear the screen.
23217
23218 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23219
23220 * textprop.c (Fset_text_properties): Remove unused variables
23221 `unchanged', `prev_changed', `s' and `len'.
23222
23223 * search.c (Freplace_match): Remove unused variable `inslen'.
23224
23225 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
23226
23227 2001-11-22 Jason Rumney <jasonr@gnu.org>
23228
23229 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
23230 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
23231 (my_create_tip_window): New function.
23232 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
23233 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
23234
23235 2001-11-20 Jason Rumney <jasonr@gnu.org>
23236
23237 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
23238 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
23239
23240 * w32fns.c (Vw32_system_coding_system): Remove.
23241 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
23242
23243 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
23244
23245 * fileio.c (Fwrite_region): Move choose_write_coding_system to
23246 after build_annotations.
23247
23248 * syntax.c (describe_syntax): Add dummy arg.
23249 (describe_syntax_1): Update call to describe_vector.
23250
23251 * category.c (describe_category): Add dummy arg.
23252 (describe_category_1): Update call to describe_vector.
23253
23254 * keymap.c (Fdescribe_vector): Add `describer' parameter.
23255 (describe_command, describe_translation): Add dummy second param.
23256 (describe_map): Call elt_describer with two arguments.
23257 (describe_vector_princ): Add `fun' parameter.
23258 Call it instead of the hardcoded `princ'.
23259 (describe_vector): Add arg `args'.
23260 Pass it as a new second argument to elt_describer.
23261
23262 * keymap.h (describe_vector): Update prototype.
23263
23264 * frame.c: Don't include keymap.h any more.
23265 (keys_of_frame): Remove.
23266
23267 * lisp.h (keys_of_frame): Remove declaration.
23268
23269 * emacs.c (main): Don't call `keys_of_frame' any more.
23270
23271 2001-11-14 Andreas Schwab <schwab@suse.de>
23272
23273 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
23274 if defined, 0 otherwise.
23275 (MAP_FAILED): Define if not defined and use it to test mmap failure.
23276 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
23277
23278 2001-11-19 Richard M. Stallman <rms@gnu.org>
23279
23280 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
23281
23282 2001-11-18 Jason Rumney <jasonr@gnu.org>
23283
23284 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
23285 (x_draw_bar_cursor): If the background color of the glyph under
23286 the cursor equals the frame's cursor color, use the glyph's
23287 foreground color for drawing the bar cursor.
23288 (x_after_update_window_line): Clear internal border in different
23289 circumstances.
23290 (w32_set_vertical_scroll_bar): Check for width and height > 0.
23291 (w32_draw_relief_rect): Correct relief by 1 pixel.
23292 (x_set_glyph_string_background_width):
23293 Set extends_to_end_of_line_p if the row's fill_line_p is set and
23294 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
23295 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
23296 if cursor_in_non_selected_windows is false.
23297 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
23298 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
23299 Notice if cursor gets overwritten.
23300 (notice_overwritten_cursor): Renamed from
23301 note_overwritten_text_cursor. Rewritten to take glyph widths
23302 into account, and to take X positions as parameters.
23303 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23304 around call to x_draw_glyphs.
23305 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23306 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23307 color to use for image glyph reliefs.
23308 (x_draw_image_relief): Accept zero tool_bar_button_relief.
23309 (glyph_rect): Remove unused variable `area'.
23310
23311 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
23312 some items.
23313 (x_set_internal_border_width): Set frame garbaged when window
23314 doesn't exist yet.
23315 (Fx_create_frame): Accept zero tool_bar_button_relief.
23316 (x_clear_image_1, four_corners_best, image_background)
23317 (image_background_transparent): New functions.
23318 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23319 (gs_format): Add `:background' entry.
23320 (lookup_image): Set IMG's background color if specified.
23321 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23322 when appropriate.
23323 (x_clear_image_1): Reset `background_valid' and
23324 `background_transparent_valid' fields.
23325 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23326 calculating it here. Set IMG's background_transparent field.
23327 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23328 (enum png_keyword_index): Add PNG_BACKGROUND.
23329 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23330 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23331 (enum gif_keyword_index): Add GIF_BACKGROUND.
23332 (enum gs_keyword_index): Add GS_BACKGROUND.
23333 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23334 Pre-calculate image background color where necessary.
23335 (x_create_x_image_and_pixmap, xbm_load, gs_load):
23336 Use display info's n_cbits entry for screen depth.
23337 (Fx_show_tip): Remove unused variables `buffer', `top',
23338 `left', `max_width' and `max_height'.
23339
23340 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
23341
23342 2001-11-18 Gerd Moellmann <gerd@gnu.org>
23343
23344 * puresize.h (BASE_PURESIZE): Increase to 750000.
23345
23346 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23347
23348 * frame.c (Fframe_live_p): Doc fix.
23349
23350 2001-11-18 Richard M. Stallman <rms@gnu.org>
23351
23352 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
23353 (message_dolog_marker3): New static variables hold three markers.
23354 (syms_of_xdisp): Initialize and staticpro them.
23355 (message_dolog): Use message_dolog_marker1..3 instead of
23356 allocating markers each time. Unchain them when done.
23357
23358 2001-11-17 Richard M. Stallman <rms@gnu.org>
23359
23360 * doc.c (Fsnarf_documentation): Doc fix.
23361
23362 2001-11-17 Andreas Schwab <schwab@suse.de>
23363
23364 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
23365
23366 2001-11-17 Richard M. Stallman <rms@gnu.org>
23367
23368 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
23369
23370 2001-11-17 Jason Rumney <jasonr@gnu.org>
23371
23372 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
23373
23374 2001-11-17 Gerd Moellmann <gerd@gnu.org>
23375
23376 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
23377 with invalid position.
23378
23379 2001-11-16 Richard M. Stallman <rms@gnu.org>
23380
23381 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
23382
23383 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
23384 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
23385 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
23386
23387 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
23388
23389 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23390
23391 * fileio.c (build_annotations): Split off the tail.
23392 (build_annotations_2): New fun. Extracted from build_annotations.
23393 (Fwrite_region): Split the call to build_annotations into two
23394 calls to build_annotations and build_annotations_2.
23395
23396 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23397
23398 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
23399 clear_waiting_for_input with argument.
23400
23401 * xterm.h (x_update_cursor): Remove duplicated prototype.
23402
23403 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
23404
23405 * xterm.c (waiting_for_input): Remove unnecessary declaration.
23406
23407 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
23408
23409 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
23410
23411 * fileio.c (choose_write_coding_system): New fun, extracted
23412 from Fwrite_region.
23413 (Fwrite_region): Use it.
23414
23415 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
23416 (funcall_lambda, run_hook_with_args): Make static and add prototype.
23417 (ml_apply, find_handler_clause): Add prototype.
23418
23419 2001-11-16 Eli Zaretskii <eliz@gnu.org>
23420
23421 * config.in: Add #undef HAVE_COFF_H.
23422
23423 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
23424 Required for ISC 4.1.
23425
23426 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
23427
23428 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
23429 Andrew Wiseman <a.wiseman@btclick.com>.
23430
23431 2001-11-16 Kim F. Storm <storm@cua.dk>
23432
23433 The following changes are made to clean up the various internal
23434 references to the fringes to actually use the term `fringe' for
23435 them. Previously, they were called `flags areas', `bitmap areas',
23436 `left/right side of windows', or implicitly as `flags' or
23437 `bitmaps':
23438
23439 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
23440 Comments fixed. Use renamed symbols.
23441
23442 * dispnew.c: Comment fix. Use renamed symbols.
23443
23444 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
23445 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
23446 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
23447
23448 * msdos.c: Comment fix.
23449
23450 * w32fns.c: Use renamed symbols.
23451
23452 * w32term.c: Comment fixes. Use renamed symbols.
23453 (fringe_bitmap_type): Renamed from bitmap_type.
23454 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23455 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
23456 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23457
23458 * w32term.h: Comment fixes. Use renamed symbols.
23459 (fringes_extra): Renamed from flags_areas_extra.
23460 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23461 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23462 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23463 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23464 (FRAME_X_LEFT_FRINGE_WIDTH):
23465 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23466 (FRAME_X_RIGHT_FRINGE_WIDTH):
23467 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23468
23469 * widget.c: Use renamed symbols.
23470
23471 * window.c: Comment fixes. Use renamed symbols.
23472 (coordinates-in-window-p): Doc fix.
23473
23474 * xdisp.c: Comment fixes. Use renamed symbols.
23475
23476 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
23477
23478 * xfns.c: Use renamed symbols.
23479
23480 * xterm.c: Comment fixes. Use renamed symbols.
23481 (fringe_bitmap_type): Renamed from bitmap_type.
23482 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
23483 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
23484 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
23485
23486 * xterm.h: Comment fixes. Use renamed symbols.
23487 (fringes_extra): Renamed from flags_areas_extra.
23488 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
23489 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
23490 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
23491 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
23492 (FRAME_X_LEFT_FRINGE_WIDTH):
23493 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
23494 (FRAME_X_RIGHT_FRINGE_WIDTH):
23495 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
23496
23497 2001-11-15 Jason Rumney <jasonr@gnu.org>
23498
23499 * w32menu.c (add-menu-item): Make help_echo and radio buttons
23500 work for most menu items. From David Ponce
23501 <david.ponce@wanadoo.fr>.
23502
23503 2001-11-15 Gerd Moellmann <gerd@gnu.org>
23504
23505 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
23506 Some x_set_* function expect to be called even if old and new
23507 value are equal.
23508
23509 * xdisp.c (build_desired_tool_bar_string): Accept zero
23510 tool_bar_button_relief.
23511
23512 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
23513
23514 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
23515
23516 * xterm.c (x_draw_bar_cursor): If the background color of the
23517 glyph under the cursor equals the frame's cursor color, use
23518 the glyph's foreground color for drawing the bar cursor.
23519
23520 * dispnew.c (direct_output_forward_char): Fix character/byte
23521 position comparison.
23522
23523 2001-11-15 Miles Bader <miles@gnu.org>
23524
23525 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
23526 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
23527 Update arguments to find_field.
23528 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
23529 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
23530 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
23531 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
23532
23533 2001-11-14 Richard M. Stallman <rms@gnu.org>
23534
23535 * editfns.c (Fpropertize): Allow call with 1 arg.
23536
23537 * dispextern.h (image_background, image_background_transparent):
23538 Conditionalize on HAVE_X_WINDOWS.
23539
23540 2001-11-13 Richard M. Stallman <rms@gnu.org>
23541
23542 * print.c (Fprin1_to_string): Doc fix.
23543
23544 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
23545
23546 * floatfns.c (Fceiling, Ffloor): Doc fixes.
23547
23548 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
23549
23550 * fileio.c (Ffile_accessible_directory_p): Doc fix.
23551
23552 * eval.c (syms_of_eval): Doc fix.
23553
23554 * coding.c (syms_of_coding): Doc fix.
23555
23556 * doc.c (Fsnarf_documentation): Doc fix.
23557
23558 * dispnew.c (syms_of_display): Doc fix.
23559
23560 * category.c (Fget_unused_category): Doc fix.
23561
23562 * buffer.c (syms_of_buffer): Doc fixes.
23563
23564 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
23565
23566 * print.c (prin1, print): Doc fix.
23567
23568 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23569
23570 * fontset.h: Remove declarations of variables
23571 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
23572
23573 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
23574 `Vclip_large_size_font'.
23575
23576 2001-11-13 Jason Rumney <jasonr@gnu.org>
23577
23578 * w32fns.c: Doc fix.
23579
23580 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23581
23582 * xfaces.c (Fface_attributes_as_vector): Doc fix.
23583
23584 * fns.c: Doc fix.
23585
23586 * emacs.c: Doc fix.
23587
23588 * coding.c: Doc fix.
23589
23590 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
23591 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
23592 `new style' [w/`doc:' keyword].
23593
23594 2001-11-12 Richard M. Stallman <rms@gnu.org>
23595
23596 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
23597 LeaveNotify events. Only FocusIn and FocusOut do that now.
23598 (x_display_and_set_cursor): Do display hollow cursors in active
23599 minibuffer windows when they are not selected.
23600
23601 2001-11-12 Jason Rumney <jasonr@gnu.org>
23602
23603 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23604 * w32term.c: Change doc-string comments to `new style'
23605 [w/`doc:' keyword]. Doc fixes.
23606
23607 * w32fns.c: Don't define max.
23608 (Fx_open_connection): Only execute once.
23609
23610 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23611
23612 * ccl.c: Change macros to use do-while block instead of if-else.
23613 Use braces to follow GNU Coding Standards.
23614
23615 2001-11-11 Richard M. Stallman <rms@gnu.org>
23616
23617 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
23618
23619 * lread.c (read_escape): Use end_of_file_error for reporting eof.
23620
23621 * insdel.c (replace_range): Use adjust_markers_for_replace
23622 instead of adjust_markers_for_delete and adjust_markers_for_insert.
23623
23624 * intervals.h (set_text_properties, set_text_properties_1): Declare.
23625
23626 * textprop.c (set_text_properties_1): New subroutine
23627 broken out of set_text_properties.
23628 (set_text_properties): Use set_text_properties_1.
23629
23630 * intervals.c (graft_intervals_into_buffer):
23631 Use set_text_properties_1 to clear out properties.
23632
23633 * search.c (Freplace_match): Use replace_range to insert
23634 and delete. Don't request property inheritance from
23635 surrounding text.
23636
23637 2001-11-10 Jason Rumney <jasonr@gnu.org>
23638
23639 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
23640 vertical fonts. Allow them if face name is explicitly specified.
23641 Do not give up if we find a font that cannot be converted to an xlfd.
23642
23643 2001-11-10 Gerd Moellmann <gerd@gnu.org>
23644
23645 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
23646 instead of malloc/free.
23647
23648 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23649
23650 * xfaces.c (merge_face_vectors): Use braces to follow GNU
23651 Coding Standards.
23652 (Finternal_set_lisp_face_attribute): Likewise.
23653
23654 * buffer.c (Fbury_buffer): Likewise.
23655
23656 * indent.c (current_column_1): Remove unused variable `prev_col'.
23657
23658 * coding.c (encode_coding): Use precomputed value of `src'.
23659 (encode_coding): Remove unused variable `src_end'.
23660 (code_convert_region): Remove unused variables `count'.
23661
23662 2001-11-07 Jason Rumney <jasonr@gnu.org>
23663
23664 * w32term.c (x_display_and_set_cursor): Do not move system caret
23665 if cursor_glyph is NULL.
23666
23667 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23668
23669 * keymap.c (access_keymap): Fix compilation error.
23670
23671 2001-11-07 Miles Bader <miles@gnu.org>
23672
23673 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
23674
23675 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23676
23677 * intervals.c (graft_intervals_into_buffer):
23678 Remove #ifdef'd-out code.
23679 (graft_intervals_into_buffer): Remove unused variable `middle'.
23680
23681 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
23682 code (eval-current-buffer).
23683 Change doc-string comments to `new style' [w/`doc:' keyword].
23684
23685 2001-11-06 Richard M. Stallman <rms@gnu.org>
23686
23687 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
23688
23689 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
23690
23691 * lread.c (read1): Fix behavior with nested backquoting.
23692
23693 * keyboard.c (make_lispy_event): Check integerness and fix
23694 Lisp_Object/int mixup.
23695
23696 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23697
23698 * fns.c (copy_hash_table): Remove unused variable `v'.
23699
23700 * fontset.c (fontset_font_pattern): Remove unused variable
23701 `family_registry'.
23702
23703 * indent.c (current_column_1): Remove unused variable `prev_col'.
23704
23705 2001-11-05 Richard M. Stallman <rms@gnu.org>
23706
23707 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
23708
23709 * buffer.c (Fkill_buffer): Don't delete auto save file
23710 if buffer is modified.
23711
23712 2001-11-05 Andrew Innes <andrewi@gnu.org>
23713
23714 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
23715 CHECK_NUMBER_CDR.
23716
23717 2001-11-05 Richard M. Stallman <rms@gnu.org>
23718
23719 * unexelf.c (unexec): Minor changes; clean up comments.
23720
23721 2001-11-05 Sam Steingold <sds@gnu.org>
23722
23723 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
23724
23725 2001-11-05 Andreas Schwab <schwab@suse.de>
23726
23727 * sound.c (sound_perror): Save errno from being clobbered.
23728
23729 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
23730
23731 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
23732 the program image directly.
23733
23734 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23735
23736 * buffer.h (Fbuffer_local_value): Add prototype.
23737
23738 2001-11-04 Richard M. Stallman <rms@gnu.org>
23739
23740 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
23741 and CHECK_BUFFER.
23742
23743 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
23744 (record_char): Likewise.
23745
23746 * keyboard.c (make_lispy_event): Don't insist a drag event must
23747 move to a different buffer position. Instead, check for moving at
23748 least double_click_fuzz.
23749
23750 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
23751
23752 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
23753
23754 * indent.c (current_column_1, Fmove_to_column): Separate the code
23755 for display-table glyphs from the code for buffer text, to fix
23756 bugs in the former.
23757
23758 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
23759
23760 * buffer.c (Fbuffer_local_value): New function.
23761 (syms_of_buffer): Defsubr it.
23762
23763 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
23764 value of `cursor-in-non-selected-windows'.
23765
23766 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
23767 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
23768 (syms_of_xdisp): Initialize it.
23769
23770 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23771
23772 * xfns.c (Fx_create_frame): Doc fix.
23773
23774 * coding.c: Change doc-string comments to `new style' [w/`doc:'
23775 keyword].
23776
23777 * eval.c (top_level_value, top_level_set): Remove commented and
23778 #ifdef'd-out code.
23779 (Fdefvar): Fix usage in doc-string.
23780
23781 2001-11-03 Richard M. Stallman <rms@gnu.org>
23782
23783 * xfns.c: Include unistd.h, if it exists.
23784
23785 * editfns.c: Move the include of ctype.h after unistd.h.
23786
23787 * gmalloc.c: Test BROKEN_PROTOTYPES.
23788
23789 2001-11-03 Ken Raeburn <raeburn@gnu.org>
23790
23791 * lisp.h (CHECK_STRING_CAR): New macro.
23792 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
23793 treating XCAR and XCDR as lvalues.
23794 (openp): Use CHECK_STRING_CAR.
23795 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
23796
23797 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
23798
23799 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
23800 (SIGMASKTYPE): Define.
23801
23802 * syssignal.h (sigunblock): Don't define if already defined.
23803
23804 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23805
23806 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
23807 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
23808 Fix typos in comments.
23809
23810 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
23811 and #ifdef'd-out code.
23812 Fix and reindent comments.
23813
23814 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
23815
23816 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
23817 argument `i' in macros.
23818
23819 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
23820 `i' in macros.
23821
23822 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
23823 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
23824 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
23825 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
23826 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
23827 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
23828 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
23829 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
23830 in macros.
23831
23832 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23833 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
23834 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
23835 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
23836 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
23837 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
23838 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
23839 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
23840 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
23841 (remove unused second argument).
23842
23843 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
23844
23845 * syntax.c (describe_syntax): New wrapper.
23846 (Finternal_describe_syntax_value): Rename from describe_syntax.
23847 Don't insert space at front and \n at the end.
23848 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
23849
23850 * regex.c (re_wctype): Try to fix some warnings.
23851 (regcomp, regexec): Don't forget the __restrict.
23852
23853 2001-11-02 Richard M. Stallman <rms@gnu.org>
23854
23855 * textprop.c (Fget_char_property): Doc fix.
23856
23857 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23858
23859 * process.c (Fstart_process): Add usage to doc-string.
23860
23861 * data.c (Fsetq_default): Ditto.
23862
23863 * callint.c (Finteractive): Ditto.
23864
23865 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
23866
23867 * macros.c: Don't include keymap.h any more.
23868
23869 2001-11-01 Richard M. Stallman <rms@gnu.org>
23870
23871 * data.c (Fmake_local_variable): Doc fix.
23872
23873 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
23874 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
23875
23876 * keymap.c (Fdescribe_buffer_bindings): Print character property
23877 bindings along with or instead of the buffer local map.
23878 Make the overriding maps override what they should.
23879
23880 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23881
23882 * window.c (grow_mini_window): Fix typo in comment.
23883
23884 2001-11-01 Gerd Moellmann <gerd@gnu.org>
23885
23886 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
23887 (XTset_vertical_scroll_bar): Likewise.
23888
23889 * xfns.c (x_build_heuristic_mask): Use four_corners_best
23890 instead of IMAGE_BACKGROUND.
23891
23892 * xfns.c (four_corners_best): Reindent.
23893
23894 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
23895 Handle :box so that it is possible to specify sexprs.
23896
23897 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
23898
23899 * s/hpux11.h: New file.
23900
23901 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23902
23903 * emacs.c (USAGE1): Show command line option --no-window-system
23904 instead of --no-windows in usage.
23905 (standard_args): Rename --no-windows to --no-window-system.
23906 (bug_reporting_address): Follow Emacs coding conventions.
23907
23908 * eval.c (Fcommandp): Doc fix.
23909 Change doc-string comments to `new style' [w/`doc:' keyword].
23910
23911 * frame.c (Fframe_live_p): Doc fix.
23912
23913 * buffer.c (selective-display-ellipses): Doc fix.
23914
23915 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23916
23917 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
23918
23919 * xfaces.c (realize_x_face): If C is not a single-byte character,
23920 set the face's colors_copied_bitwise_p instead of the defaulted_p
23921 members which have a different meaning.
23922 (free_face_colors): Do nothing for a face whose colors have been
23923 copied bitwise.
23924
23925 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
23926
23927 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23928
23929 * marker.c, mocklisp.c: Change doc-string comments to `new style'
23930 [w/`doc:' keyword].
23931
23932 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23933
23934 * fns.c (require_unwind): Return Lisp_Object.
23935
23936 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23937
23938 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
23939 (last-input-char): Revert doc-string to be the same as the
23940 doc-string of `last-input-event'.
23941
23942 * xdisp.c: Fix typos in comments.
23943
23944 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23945
23946 * window.c (grow_mini_window): Handle case that the root
23947 window is already smaller than the nominal mininum height.
23948
23949 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
23950
23951 * emacs.c (main): Don't call keys_of_macros any more.
23952
23953 * lisp.h (keys_of_macros): Remove.
23954
23955 * macros.c (keys_of_macros): Remove.
23956
23957 * xfaces.c (Fface_attribute_relative_p): Declare args.
23958
23959 2001-10-30 Jason Rumney <jasonr@gnu.org>
23960
23961 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
23962 (enum_font_cb2): Ignore fonts with vertical orientation.
23963
23964 2001-10-30 Richard M. Stallman <rms@gnu.org>
23965
23966 * keyboard.c (Finput_pending_p): Doc fix.
23967
23968 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23969
23970 * xterm.c (x_after_update_window_line): Don't run the code
23971 clearing in borders for rows whose visible height is 0.
23972
23973 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
23974 resized_p flag is set. If not set, use the much less flickering
23975 method previously used.
23976
23977 * dispnew.c (change_frame_size_1): Set frame's resized_p.
23978
23979 * frame.h (struct frame) <resized_p>: New member.
23980
23981 * lread.c (to_multibyte): Ensure read_buffer is at least twice
23982 as large as the number of bytes to convert.
23983
23984 * lread.c (to_multibyte): New function.
23985 (read1): Use it.
23986
23987 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
23988
23989 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
23990
23991 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23992
23993 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
23994 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
23995 if the row's fill_line_p is set and drawing the last glyph with
23996 DRAW_IMAGE_{RAISED,SUNKEN}.
23997
23998 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
23999
24000 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
24001
24002 * xmenu.c: Include coding.h and charset.h.
24003 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
24004 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
24005 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
24006 Explicitly set wv->help. Use `TRUE' rather than `True'.
24007 (menu_help_callback): Use empty_string.
24008
24009 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
24010 (Fx_popup_dialog): Explicitly init f.
24011 (w32_menu_display_help): Use empty_string.
24012
24013 2001-10-29 Richard M. Stallman <rms@gnu.org>
24014
24015 * fns.c (Frequire): Detect recursive try to require the same
24016 feature 3 or more levels deep, and get error.
24017 (require_unwind): New subroutine.
24018 (require_nesting_list): New variable.
24019 (syms_of_fns): Init and staticpro it.
24020
24021 * print.c (print_object): Clarify indication of insertion type.
24022
24023 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
24024
24025 * coding.c (syms_of_coding): Document that locale-coding-system is
24026 used for decoding input on X.
24027
24028 * window.c (Fscroll_left, Fscroll_right): Doc fix.
24029
24030 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24031
24032 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
24033 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
24034
24035 2001-10-29 Gerd Moellmann <gerd@gnu.org>
24036
24037 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
24038 use NO_CURSOR if cursor_in_non_selected_windows is false.
24039
24040 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
24041 the slant attribute if FRAME is t.
24042
24043 * xfns.c (x_set_internal_border_width): Set frame garbaged
24044 when X window doesn't exist yet.
24045
24046 * xterm.c (x_after_update_window_line): Clear internal border
24047 in different circumstances.
24048
24049 * xterm.c (XTread_socket) <KeyPress>: Don't use
24050 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
24051 <handa@etl.go.jp>.
24052
24053 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
24054
24055 * m/ibms390.h: New file. From Adam Thornton
24056 <athornton@sinenomine.net>.
24057
24058 2001-10-28 Gerd Moellmann <gerd@gnu.org>
24059
24060 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
24061
24062 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
24063 a loop counter.
24064
24065 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24066
24067 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
24068
24069 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
24070 keyword].
24071 Fix typos in comments.
24072
24073 * emacs.c (bug_reporting_address): New function.
24074 Use it when displaying usage message.
24075
24076 * minibuf.c (read_minibuf): Remove unused external declaration of
24077 variable `Qread_only'.
24078
24079 * keymap.c (access_keymap): Remove unused variable `charset'.
24080
24081 2001-10-28 Miles Bader <miles@gnu.org>
24082
24083 * xfaces.c (merge_face_heights): Handle TO being relative as well.
24084 Remove #ifdef'd-out code.
24085 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
24086 (syms_of_xfaces): Initialize them.
24087
24088 2001-10-27 Jason Rumney <jasonr@gnu.org>
24089
24090 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
24091 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
24092 position using the system caret.
24093
24094 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
24095 (w32_system_caret_height, w32_system_caret_x)
24096 (w32_system_caret_y): New variables for tracking system caret.
24097 (w32_initialize): Initialize them.
24098 (x_display_and_set_cursor): Make system caret follow the active cursor.
24099
24100 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
24101 New messages types.
24102
24103 * w32term.c (note_mouse_highlight): Clear old help_echo.
24104
24105 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24106
24107 * xterm.c: Fix typo in a comment.
24108
24109 * emacs.c: Fix typos in comments.
24110 Remove unnecessary spaces.
24111 Change doc-string comments to `new style' [w/`doc:' keyword].
24112 (USAGE2): Fix typos in usage string.
24113
24114 * xterm.c: Fix typo in a comment.
24115
24116 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
24117 emacs.c.
24118
24119 2001-10-27 Gerd Moellmann <gerd@gnu.org>
24120
24121 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
24122 instead of 1/2 line_height in the heuristic for skipping
24123 farther backward when target_y was not reached.
24124
24125 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
24126 Display errno only if non-zero.
24127 (sound_warning): New function.
24128 (vox_configure): Don't treat failing to set sample rate as error.
24129 (various places): Improve error messages.
24130
24131 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
24132
24133 * fileio.c (Faccess_file): Run the argument filename through
24134 Fexpand_file_name, before using it.
24135
24136 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
24137 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
24138
24139 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24140
24141 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
24142
24143 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24144 Fix clearing in the case of scroll bars on the right.
24145
24146 2001-10-26 Juanma Barranquero <lektu@terra.es>
24147
24148 * w32gui.h (XImage): Add a dummy typedef.
24149
24150 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24151
24152 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
24153
24154 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
24155
24156 * frame.c (Fframe_parameter): Fix last change.
24157
24158 * fileio.c: Revert last change (which removed old commented-out
24159 version of expand-file-name). Add a comment that explains why
24160 this old version should not be removed.
24161
24162 2001-10-25 Gerd Moellmann <gerd@gnu.org>
24163
24164 * frame.c (Fframe_parameter): Fix a bug whereby some
24165 ``artificial'' frame parameters, like `minibuffer' were not
24166 obtained by calling Fframe_parameters.
24167
24168 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
24169 cursor differently.
24170
24171 * xdisp.c (move_it_vertically_backward): Compute line height
24172 differently. Add heuristic to try to be more compatible to 20.x.
24173
24174 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
24175
24176 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
24177
24178 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
24179 boolean.
24180
24181 2001-10-25 Miles Bader <miles@gnu.org>
24182
24183 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
24184 BG is a pointer to a structure, not a structure.
24185 (gif_format, png_format): Add missing commas.
24186
24187 2001-10-24 Richard M. Stallman <rms@gnu.org>
24188
24189 * xfaces.c (Fface_attributes_as_vector): New function.
24190 (syms_of_xfaces): Defsubr it.
24191
24192 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24193
24194 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
24195 variable `area'.
24196
24197 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24198
24199 * search.c (scan_newline): Remove unused variable `selective_display'.
24200
24201 2001-10-25 Miles Bader <miles@gnu.org>
24202
24203 * dispextern.h (struct image): Add `background',
24204 `background_valid', and `background_transparent' fields.
24205 (image_background, image_background_transparent): New declarations.
24206 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
24207 * xfns.c (image_background, image_background_transparent)
24208 (four_corners_best): New functions.
24209 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24210 (gs_format): Add `:background' entry.
24211 (lookup_image): Set IMG's background color if specified.
24212 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24213 when appropriate.
24214 (x_clear_image_1): Reset `background_valid' and
24215 `background_transparent_valid' fields.
24216 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24217 calculating it here. Set IMG's background_transparent field.
24218 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24219 (enum png_keyword_index): Add PNG_BACKGROUND.
24220 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24221 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24222 (enum gif_keyword_index): Add GIF_BACKGROUND.
24223 (enum gs_keyword_index): Add GS_BACKGROUND.
24224 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24225 Pre-calculate image background color where necessary.
24226 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24227 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24228 color to use for image glyph reliefs.
24229
24230 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24231
24232 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
24233 in full-width rows.
24234
24235 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24236 Fix clearing of area not covered by scroll bar.
24237
24238 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24239
24240 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
24241 and `real_start'.
24242 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
24243 (glyph_rect): Remove unused variable `area'.
24244
24245 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24246
24247 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
24248
24249 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
24250 (row_containing_pos): Take additional argument DY.
24251 Treat rows ending in middle of char differently.
24252 (display_line): Handle tabs on window systems differently.
24253
24254 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
24255 with additional argument.
24256
24257 * dispextern.h (row_containing_pos): Adjust prototype.
24258
24259 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
24260 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
24261 (try_window_id, try_window_reusing_current_matrix)
24262 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
24263 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
24264
24265 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24266
24267 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
24268 gnuemacs).
24269 (HAVE_BOXES): Fix typo in comment.
24270 (push_menu_pane): Fix typo in comment.
24271
24272 * xdisp.c (display_prop_string_p): Remove unused local declaration
24273 of `Qwhen'.
24274 (single_display_prop_string_p): Remove unused local declarations
24275 of `Qwhen' and `Qmargin'.
24276 (string_buffer_position): Remove unused variable `around'.
24277 (store_frame_title): Remove unused variable `width'.
24278
24279 * window.c: Don't define max.
24280 (coordinates_in_window): Remove unused variable `uy'.
24281
24282 * widget.c: Don't define max.
24283
24284 * process.c: Don't define max.
24285 (create_process): Remove unused variable `buffer'.
24286
24287 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24288
24289 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
24290
24291 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
24292
24293 * xfaces.c (Finternal_set_lisp_face_attribute)
24294 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
24295 frame is on a windowed display.
24296
24297 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24298
24299 * dispnew.c (sync_window_with_frame_matrix_rows):
24300 Fix handling of windows which aren't full-width, fix handling
24301 of marginal areas.
24302
24303 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24304
24305 2001-10-23 Andreas Schwab <schwab@suse.de>
24306
24307 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
24308 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
24309
24310 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24311
24312 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
24313 REAL_END. Notice if cursor gets overwritten.
24314 (notice_overwritten_cursor): Take X positions as parameters.
24315 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24316 around call to x_draw_glyphs.
24317
24318 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24319
24320 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
24321 instead of C) and usage.
24322
24323 * editfns.c (char-to-string): Fix argument names (use CHAR instead
24324 of C) and usage.
24325
24326 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
24327 `left', `max_width' and `max_height'.
24328
24329 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24330
24331 * xdisp.c (display_line): For a tab continued to the next line,
24332 set row's ends_in_middle_of_char_p.
24333
24334 2001-10-22 Gerd Moellmann <gerd@gnu.org>
24335
24336 * xdisp.c (display_line): Fix computation of continuation lines
24337 width for TABs.
24338
24339 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24340
24341 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
24342 `Qlaplace'.
24343
24344 * fileio.c: Remove unused code.
24345
24346 2001-10-22 Miles Bader <miles@gnu.org>
24347
24348 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
24349 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
24350 Remove `DOC_STRINGS_IN_COMMENTS' cases.
24351
24352 2001-10-21 Jason Rumney <jasonr@gnu.org>
24353
24354 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
24355
24356 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
24357
24358 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
24359 (Finsert_string): Avoid the multi-line string literals warning.
24360
24361 2001-10-22 Miles Bader <miles@gnu.org>
24362
24363 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
24364 (Fdocumentation): Don't use it.
24365 (syms_of_doc): Don't initialize it.
24366
24367 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
24368 * print.c (Fwith_output_to_temp_buffer): Likewise.
24369 * window.c (Fsave_window_excursion): Likewise.
24370 * editfns.c (Fsave_excursion, Fsave_current_buffer)
24371 (Fsave_restriction): Likewise.
24372 * eval.c (Frun_hooks, Frun_hook_with_args)
24373 (Frun_hook_with_args_until_failure)
24374 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
24375 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
24376 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
24377 (Funwind_protect, Fcondition_case): Likewise.
24378 * coding.c (Ffind_operation_coding_system): Likewise.
24379 * keyboard.c (Ftrack_mouse): Likewise.
24380
24381 2001-10-21 Miles Bader <miles@gnu.org>
24382
24383 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
24384 (Fmake_hash_table): Add usage: string to doc string.
24385 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
24386 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
24387 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
24388 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
24389 (Fml_prefix_argument_loop): Likewise.
24390
24391 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24392
24393 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
24394
24395 * sysdep.c (init_sys_modes): Change doc-string comments to `new
24396 style' [w/`doc:' keyword].
24397
24398 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
24399 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
24400 comments to `new style' [w/`doc:' keyword].
24401
24402 2001-10-21 Jason Rumney <jasonr@gnu.org>
24403
24404 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
24405
24406 * w32term.c (remember_mouse_glyph): New function.
24407 (w32_mouse_position): Use it.
24408 (note_mouse_movement): If the mouse moved off the glyph, remember
24409 its new position.
24410
24411 * w32term.h (struct w32_output): Correct spelling of x_compatible.
24412 (w32_display_info): Add mouse_face_overlay.
24413
24414 * w32term.c (notice_overwritten_cursor): Renamed from
24415 note_overwritten_text_cursor. Rewritten to take glyph widths into
24416 account.
24417 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
24418 (fast_find_string_pos): New function.
24419 (fast_find_position): Return the correct vpos. Add parameter
24420 STOP. In the final row, stop before glyphs having STOP as object.
24421 Don't consider glyphs that are not from a buffer.
24422 (fast_find_position) [0]: Add a presumably more correct version
24423 for after 21.1.
24424 (expose_window_tree, expose_frame): Don't compute intersections here.
24425 (expose_window): Do it here instead.
24426 (expose_window_tree, expose_window, expose_line): Return 1 when
24427 overwriting mouse-face.
24428 (expose_window): If W is the window currently being updated, mark
24429 the frame garbaged.
24430 (expose_frame): If mouse-face was overwritten, redo it.
24431 (x_use_underline_position_properties): New variable.
24432 (syms_of_xterm): DEFVAR_BOOL it.
24433 (x_draw_glyph_string): Add comment to use it in future.
24434 (x_draw_glyph_string): Restore clipping after drawing box.
24435 Fix a computation of the underline position.
24436 (w32_get_glyph_string_clip_rect): Minor cleanup.
24437 (x_fill_stretch_glyph_string): Remove an assertion.
24438 (x_produce_glyphs): Don't convert multibyte characters
24439 to unibyte characters in unibyte buffers.
24440 (cursor_in_mouse_face_p): New function.
24441 (x_draw_stretch_glyph_string): Use it to choose a different GC
24442 when drawing a cursor within highlighted text. Don't draw
24443 background again if it has already been drawn.
24444 (x_draw_glyph_string_box): Don't draw a full-width
24445 box just because the glyph row's full_width_p flag is set.
24446 (x_draw_glyphs): Fix computation of rightmost x for
24447 full-width rows.
24448 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
24449 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
24450 change bottom shadow accordingly. Some cleanup.
24451 (x_update_window_end): Handle overwritten mouse face
24452 also for tool bar windows.
24453 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
24454 DRAW is DRAW_IMAGE_RAISED.
24455 (clear_mouse_face): Return 1 if text with mouse face was
24456 actually redrawn. Make the function static.
24457 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
24458 optimize away highlighting if we pass over that same overlay again.
24459 (note_mouse_highlight): Call mouse_face_overlay_overlaps
24460 to detect a case where we have to highlight a different region
24461 despite not having left the currently highlighted region.
24462 Set mouse_face_overlay in the x_display_info. Avoid changing the
24463 mouse pointer shape when show_mouse_face has already done it, or
24464 there is no need. Handle mouse-face and help-echo in strings.
24465 (glyph_rect): New function.
24466 (w32_mouse_position): Use it to raise the threshold for mouse
24467 movement event generation.
24468 (w32_initialize_display_info): Initialize the x_display_info's
24469 mouse_face_overlay.
24470 (w32_set_vertical_scroll_bar): Don't clear a zero height
24471 or width area.
24472 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
24473 a widget to zero height.
24474
24475 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
24476 Protect unibyte strings created by replacing their multibyte
24477 equivalents in menu_items.
24478 (w32_menu_show): Don't overwrite an item's name with its key
24479 description in case the description is a multibyte string.
24480 (single_submenu): Some cleanup.
24481
24482 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
24483 (postprocess_image): New function.
24484 (lookup_image): Call it for all image types except PostScript.
24485 (x_kill_gs_process): Call postprocess_image.
24486 (tiff_error_handler, tiff_warning_handler): New functions.
24487 (tiff_load): Install them as handlers.
24488 (x_kill_gs_process): Recognize if someone has cleared the image
24489 cache under us.
24490 (valid_image_p): Protect better against invalid image
24491 specifications. Previous code could signal an error.
24492 (Fx_hide_tip, Fshow_tip): Doc fix.
24493 (Fv_max_tooltip_size): New variable.
24494 (syns_of_xfns): DEFVAR_LISP it.
24495 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
24496 window buffer to *tip* right after creating the frame. Set frame's
24497 window_width. Use a maximum tooltip size specified by
24498 Vx_max_tooltip_size, if that has valid contents.
24499 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
24500 Make sure the tooltip is completely visible.
24501 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
24502 (Fx_create_frame): Adjust the frame's height for presence
24503 of the tool bar before calling x_figure_window_size.
24504 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
24505 when the window gets smaller.
24506 (x_set_foreground_color): Set frame's cursor_pixel.
24507 (x_set_foreground_color, x_set_background_color): Cleaned up.
24508 (x_set_font): Handle case of x_new_fontset returning the same name
24509 as before, although there was a change in fontsets.
24510
24511 2001-10-21 Miles Bader <miles@gnu.org>
24512
24513 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
24514 (Flogxor): Add usage: string to doc string.
24515 * charset.c (Fstring): Likewise.
24516 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
24517 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
24518
24519 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24520
24521 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
24522
24523 * alloc.c: Reindent DEFUNs with doc: keywords.
24524
24525 * abbrev.c (Finsert_abbrev_table_description): Reindent.
24526
24527 * frame.c: Change doc-string comments to `new style' [w/`doc:'
24528 keyword].
24529
24530 See ChangeLog.9 for earlier changes.
24531
24532 ;; Local Variables:
24533 ;; coding: iso-2022-7bit
24534 ;; End:
24535
24536 Copyright (C) 2001, 2002, 2003, 2004, 2005,
24537 2006 Free Software Foundation, Inc.
24538 Copying and distribution of this file, with or without modification,
24539 are permitted provided the copyright notice and this notice are preserved.
24540
24541 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4