1 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
3 * image.c (pbm_load): Correctly check image size for greyscale pbm.
5 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
7 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
11 2007-05-06 Richard Stallman <rms@gnu.org>
13 * process.c: Undo May 3 change.
15 2007-05-03 Per Cederqvist <ceder@lysator.liu.se> (tiny change)
17 * process.c (Faccept_process_output): Revert 2006-03-22 change so
18 that the third argument once again is in microseconds (not
19 milliseconds). This makes it compatible with Emacs 21 and
20 earlier. Problem found by Henrik Rindl
\e,Av
\e(Bw.
22 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27 2007-04-29 Richard Stallman <rms@gnu.org>
29 * insdel.c (replace_range): For undo, record insertion first.
31 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
33 * xdisp.c (try_window_reusing_current_matrix): Fix number of
36 2007-04-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
38 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
40 * gtkutil.c (xg_update_menubar, create_menus): Create empty
41 submenu for menu bar items.
43 2007-04-24 Chong Yidong <cyd@stupidchicken.com>
45 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
46 values of the actual window.
48 2007-04-23 Richard Stallman <rms@gnu.org>
50 * process.c (Fstart_process): Doc fix.
52 2007-04-23 Eli Zaretskii <eliz@gnu.org>
54 * process.c (Fstart_process): Doc fix.
56 2007-04-22 Richard Stallman <rms@gnu.org>
58 * abbrev.c (Fdefine_abbrev): Doc fix.
60 * keymap.c (Fdefine_key): Minor doc fix.
62 2007-04-21 Glenn Morris <rgm@gnu.org>
64 * keymap.c (Fdefine_key): Fix info ref in doc string.
66 2007-04-20 Glenn Morris <rgm@gnu.org>
68 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
70 2007-04-19 Juanma Barranquero <lekktu@gmail.com>
72 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
73 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
76 2007-04-16 Chong Yidong <cyd@stupidchicken.com>
78 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
79 Set garbaged flag in presence of window margins.
80 (showing_window_margins_p): New function.
82 * xdisp.c (cursor_row_p): Only end row on newline if it's a
83 display string. Suggested by Lennart Borgman.
85 2007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
87 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
88 if they are not yet initialized.
90 2007-04-15 Chong Yidong <cyd@stupidchicken.com>
92 * xdisp.c (redisplay_window): When deciding whether or not to
93 recenter, don't use the reset values of BEG_UNCHANGED and
96 2007-04-13 Kim F. Storm <storm@cua.dk>
98 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
99 and check that buffer is still alive upon return.
101 2007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
103 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
104 (mac_screen_config_changed): New variable.
105 (mac_handle_dm_notification, init_dm_notification_handler)
106 (mac_get_screen_info): New functions.
107 [MAC_OS8] (main): Call init_dm_notification_handler.
108 (mac_initialize) [MAC_OSX]: Likewise.
109 (XTread_socket): Call mac_get_screen_info if screen config changed.
110 (mac_initialized): Make static.
111 (mac_initialize_display_info): Remove function.
112 (mac_term_init): Call mac_get_screen_info. Add partial contents of
113 mac_initialize_display_info.
115 2007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
117 * mac.c (xrm_get_preference_database, Fmac_get_preference)
118 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
120 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
121 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
122 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
123 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
124 dpyinfo->width are those of whole screen.
126 2007-04-10 Chong Yidong <cyd@stupidchicken.com>
128 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
129 glyph pointer before start of glyph row.
131 2007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
133 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
134 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
136 2007-04-09 Martin Rudalics <rudalics@gmx.at>
138 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
140 2007-04-08 Richard Stallman <rms@gnu.org>
142 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
144 2007-04-07 Chong Yidong <cyd@stupidchicken.com>
146 * editfns.c (Ftranspose_regions): Validate interval before setting
149 2007-04-03 Eli Zaretskii <eliz@gnu.org>
151 * emacs.c (main): Fix instructions for building Emacs for profiling.
153 2007-04-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
155 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
158 2007-04-02 Juanma Barranquero <lekktu@gmail.com>
160 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
162 2007-04-01 Chong Yidong <cyd@stupidchicken.com>
164 * keymap.c (Fcommand_remapping): New optional argument.
165 (where_is_internal): Use new keymaps argument.
166 (Fkey_binding): Caller changed.
168 * keyboard.c (command_loop_1): Caller changed.
170 2007-03-31 Eli Zaretskii <eliz@gnu.org>
172 * window.c (Fget_lru_window): Doc fix.
174 2007-03-30 Chong Yidong <cyd@stupidchicken.com>
176 * undo.c (Fprimitive_undo): Give clearer error message when trying
177 to change text properties outside accessible part of buffer.
179 2007-03-29 Kim F. Storm <storm@cua.dk>
181 * process.c (wait_reading_process_output) [HAVE_PTYS]:
182 When EIO happens, clear channel from descriptor masks before raising
183 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
184 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
186 2007-03-29 Juanma Barranquero <lekktu@gmail.com>
188 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
190 * process.c (Fformat_network_address): Return nil when the
191 argument vector contains invalid values.
193 2007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
195 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
196 [USE_PTHREAD]: Include pthread.h.
197 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
198 (malloc_initialize_1): New function created from __malloc_initialize.
199 (__malloc_initialize): Use it.
200 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
201 (_malloc_internal, _free_internal, _realloc_internal): Use them.
203 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
205 2007-03-27 Juanma Barranquero <lekktu@gmail.com>
207 * process.c (Fformat_network_address): Make args array big enough
208 to format IPv6 addresses.
210 2007-03-27 Glenn Morris <rgm@gnu.org>
212 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
214 2007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
216 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
217 screen size in pixels by millimeters per pixel of main display.
219 * macselect.c (get_scrap_target_type_list, x_own_selection):
220 Move assignments outside predicate macros.
221 (Vselection_converter_alist): Doc fix.
223 * macterm.c (create_text_encoding_info_alist): Move assignments
224 outside predicate macros.
225 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
226 dpyinfo->width are those of whole screen.
228 2007-03-26 Sam Steingold <sds@gnu.org>
230 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
231 alleviate sluggishness (the original problem is still fixed).
233 2007-03-25 Kim F. Storm <storm@cua.dk>
235 * intervals.c (merge_properties): Use explicit loop instead of
236 Fplist_member to avoid QUIT. Don't use Fcdr.
237 (intervals_equal): Likewise. Rewrite loop to perform length check
238 on the fly rather than calling Flength. Don't use Fcar.
240 2007-03-24 Eli Zaretskii <eliz@gnu.org>
242 * editfns.c (Fgoto_char): Doc fix.
244 * indent.c (Findent_to): Doc fix.
246 2007-03-24 Chong Yidong <cyd@stupidchicken.com>
248 * editfns.c (Ftranspose_regions): Use set_text_properties_1
249 instead of Fset_text_properties to avoid GC. Signal after change.
251 2007-03-24 Eli Zaretskii <eliz@gnu.org>
253 * xfns.c (Fx_show_tip): Doc fix.
255 * macfns.c (Fx_show_tip): Doc fix.
257 * w32fns.c (Fx_show_tip): Doc fix.
259 2007-03-23 Kim F. Storm <storm@cua.dk>
261 * intervals.c (merge_properties, intervals_equal):
262 Use Fplist_member instead of Fmemq to find properties.
264 2007-03-23 Glenn Morris <rgm@gnu.org>
266 * unexhp9k800.c: Restore file with clarified legal status.
267 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
269 2007-03-22 Chong Yidong <cyd@stupidchicken.com>
271 * widget.c (EmacsFrameSetCharSize): Catch X errors.
273 2007-03-22 Kenichi Handa <handa@m17n.org>
275 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
276 non-encoded file name.
277 (Frename_file): Likewise.
278 (Fadd_name_to_file): Likewise.
279 (Fmake_symbolic_link): Likewise.
281 2007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
283 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
284 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
285 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
287 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
289 (macfns.o): Remove duplicate dependency on systime.h.
291 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
292 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
294 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
295 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
297 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
298 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
300 * lread.c: Include blockinput.h.
301 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
302 (unreadchar): Add BLOCK_INPUT around ungetc.
303 (load_unwind): Add BLOCK_INPUT around fclose.
305 * print.c: Include blockinput.h.
306 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
308 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
309 Clear immediate_quit before calling freeaddrinfo.
310 Add BLOCK_INPUT around freeaddrinfo.
312 * term.c: Include blockinput.h.
313 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
315 2007-03-19 Richard Stallman <rms@gnu.org>
317 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
319 * buffer.c (syms_of_buffer): Doc fix.
321 2007-03-18 Chong Yidong <cyd@stupidchicken.com>
323 * image.c (pbm_load): Signal error for invalid image size.
325 2007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
327 * macterm.c (note_mouse_movement): Don't return immediately for
330 * macmenu.c (popup_activated_flag): New variable.
331 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
332 (popup_activated): New function.
334 * xdisp.c (redisplay_internal, note_mouse_highlight):
335 Check popup_activated for MAC_OS.
337 2007-03-17 Juanma Barranquero <lekktu@gmail.com>
339 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
340 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
342 2007-03-17 Richard Stallman <rms@gnu.org>
344 * dired.c (file_name_completion): gcpro NAME.
346 2007-03-17 Chong Yidong <cyd@stupidchicken.com>
348 * xdisp.c (try_window_id): Increment matrix positions if the
349 buffer's byte count has increased, but not the character count.
351 2007-03-12 Andreas Schwab <schwab@suse.de>
353 * lisp.h: Declare check_obarray.
355 * process.c (Fdelete_process): Properly handle deletion of first
356 element of deleted_pid_list.
357 (create_process): Declare pid as pid_t.
359 2007-03-12 Kim F. Storm <storm@cua.dk>
361 * process.c (sigchld_handler): Change type of pid to pid_t.
362 Scan deleted_pid_list explicitly to avoid using Fmember which don't
363 know about mark bits and make_fixnum_or_float which may malloc.
364 Reported by Andreas Schwab.
366 * keyboard.c (read_key_sequence): Store original event into keybuf
367 when replaying sequence with local keymap(s) from string.
369 2007-03-12 Glenn Morris <rgm@gnu.org>
371 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
372 savings" to "daylight saving").
374 2007-03-11 Sam Steingold <sds@gnu.org>
376 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
378 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
380 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
382 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
384 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
385 Ignore mouse wheel movement on title bar or tool bar.
387 2007-03-10 Chong Yidong <cyd@stupidchicken.com>
389 * keyboard.c (help_form_saved_window_configs): New var.
390 (read_char_help_form_unwind): New function.
391 (read_char): Don't restore window configuration if a mouse click
392 arrives while the help form is being displayed.
394 2007-03-10 Kim F. Storm <storm@cua.dk>
396 * xdisp.c (redisplay_window): Don't automatically select a new window
397 start for a contination line during mouse-click.
399 2007-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
401 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
403 2007-03-09 Juanma Barranquero <lekktu@gmail.com>
405 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
407 2007-03-08 Richard Stallman <rms@gnu.org>
409 * keyboard.c (syms_of_keyboard): Doc fix.
411 2007-03-08 Chong Yidong <cyd@stupidchicken.com>
413 * minibuf.c (Ftry_completion): Don't short circuit if
414 completion-ignore-case is non-nil.
416 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
418 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
419 Undo 2006-03-06 changes.
421 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
422 bar if its width is smaller than that of Aqua small scroll bar.
424 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
426 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
427 to handle correctly prompts with read-only property.
429 2007-03-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
431 * sound.c (wav_play): Check header->data_length to see how much we
433 (alsa_period_size): Convert ALSA period size in frames to bytes.
434 (alsa_write): Return if frames is zero.
436 2007-03-06 Kenichi Handa <handa@m17n.org>
438 * xselect.c (Vselection_coding_system): Documentation improved.
440 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
442 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
443 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
444 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
445 internal border width has changed.
447 * macterm.h (struct mac_output): New member `internal_border_width'.
449 2007-03-04 Richard Stallman <rms@gnu.org>
451 * window.c (Fdisplay_buffer): Doc fix.
453 2007-03-03 Glenn Morris <rgm@gnu.org>
455 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
456 not include -lX11 on Solaris.
458 2007-03-02 Stuart D. Herring <herring@lanl.gov>
460 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
462 2007-03-01 Kenichi Handa <handa@m17n.org>
464 * process.c (send_process_object): Check the process status and
465 signal an error if something is wrong.
467 2007-02-28 Chong Yidong <cyd@stupidchicken.com>
469 * insdel.c (Fcombine_after_change_execute): Return nil if
470 combine_after_change_buffer has been invalidated.
472 2007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
474 * m/xtensa.h: New file.
476 2007-02-24 Nick Roberts <nickrob@snap.net.nz>
478 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
479 as strings and not character arrays.
481 2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
483 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
484 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
485 scroll bar handle size in order to avoid `scroll backward' problem.
486 (x_scroll_bar_create, XTset_vertical_scroll_bar)
487 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
489 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
490 New member `min_handle'.
492 2007-02-23 Kim F. Storm <storm@cua.dk>
494 * print.c (print): Reset print_number_index if Vprint_number_table
497 2007-02-23 Eli Zaretskii <eliz@gnu.org>
499 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
502 2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
504 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
505 `menu_item_selection' as in W32 version.
506 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
507 braces to avoid ambiguous `else'.
509 * macterm.c (mac_display_info_for_display): Remove function.
510 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
511 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
512 flush_display_optional.
513 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
514 New argument MOUSE_POS. All uses changed. Set bar->dragging to
515 negative integer if scroll bar handle is pressed.
516 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
517 Negative bar->dragging means scroll bar handle is not dragged.
518 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
519 offset of scroll bar handle from negative bar->dragging.
520 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
521 bar click is compared against mapped one. Set down/up_modifier
522 for scroll bar click event with control key.
524 * macterm.h (x_display_info_for_display): Remove extern.
525 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
526 value to be unpacked to 32-bit on LP64 model.
528 2007-02-23 Kenichi Handa <handa@m17n.org>
530 * process.c (send_process_object_unwind): New function.
531 (send_process_object): New function.
532 (Fprocess_send_region): Call send_process_object.
533 (Fprocess_send_string): Likewise.
535 2007-02-22 Jason Rumney <jasonr@gnu.org>
537 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
538 when popup menu finishes.
540 * w32fns.c (menubar_in_use): New flag.
541 (w32_wnd_proc) [WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND]:
544 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
545 (w32_menu_show): Do it here instead.
547 * w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame
550 * w32menu.c (current_popup_menu): Make available globally.
551 (menubar_selection_callback): Free menu strings before pushing the
552 menu event into the keyboard buffer. Remove menu_command_in_progress.
554 * w32fns.c (current_popup_menu): Use from w32menu.c.
555 (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active
556 and current_popup_menu to determine whether a menubar menu has
559 * w32term.h (w32_output): Remove menu_command_in_progress.
561 2007-02-22 Kim F. Storm <storm@cua.dk>
563 * dispnew.c (update_frame, update_single_window): Set force_p here if
564 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
565 (update_window, update_frame_1): ... instead of here.
566 (update_text_area): Clear mouse face on header lines.
568 2007-02-21 Kim F. Storm <storm@cua.dk>
570 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
572 2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
574 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
575 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
577 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
578 Layout Services routines to get current Unicode keyboard layout.
580 2007-02-20 Chong Yidong <cyd@stupidchicken.com>
582 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
585 2007-02-19 Kim F. Storm <storm@cua.dk>
587 * minibuf.c (Fassoc_string): Allow symbols as keys.
589 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
590 handle while dragging, except when we get close to eob.
591 Fix position and size calculations so we don't scroll backwards
592 just by clicking on the handle.
594 2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
596 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
597 [HAVE_CARBON]: Remove target.
598 (macosx-app) [HAVE_CARBON]: Don't depend on it.
600 2007-02-17 Juanma Barranquero <lekktu@gmail.com>
602 * callproc.c (syms_of_callproc) <doc-directory>:
603 <configure-info-directory>:
604 (Fgetenv_internal): Fix typos in docstrings.
606 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
608 2007-02-16 Andreas Schwab <schwab@suse.de>
610 * frame.c (Fmodify_frame_parameters): Return a value.
612 * editfns.c (Fformat): Add support for '+' flag.
613 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
615 2007-02-14 Chong Yidong <cyd@stupidchicken.com>
617 * s/umips.h: Unused file removed.
619 2007-02-14 Juanma Barranquero <lekktu@gmail.com>
621 * xfaces.c (Fcolor_distance): Don't continue checking a color for
622 errors after it has been correctly parsed as an RGB list.
624 2007-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
626 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
628 2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
630 * macfns.c (Fx_focus_frame): Move current process to foreground if
632 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
634 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
635 Fmac_set_font_panel_visibility. All uses changed. Rename argument
638 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
639 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
640 MakeMeTheFrontProcess.
642 2007-02-12 Chong Yidong <cyd@stupidchicken.com>
644 * frame.c (x_set_screen_gamma): Clear face cache.
646 2007-02-11 Juanma Barranquero <lekktu@gmail.com>
648 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
651 2007-02-10 Eli Zaretskii <eliz@gnu.org>
653 * window.c (Fwindow_height, Fwindow_hscroll)
654 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
655 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
656 Document the effect of WINDOW arg being nil.
658 2007-02-08 Kim F. Storm <storm@cua.dk>
660 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
661 Use Qlambda as interim value of Vminibuffer_completing_file_name.
662 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
663 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
665 2007-02-07 Juanma Barranquero <lekktu@gmail.com>
667 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
670 2007-02-07 Eli Zaretskii <eliz@gnu.org>
672 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
675 2007-02-06 Chong Yidong <cyd@stupidchicken.com>
677 * frame.c (Fmodify_frame_parameters): Don't bind
678 Qinhibit_default_face_x_resources, which has no effect.
679 (Qinhibit_default_face_x_resources): Symbol deleted.
681 2007-02-03 Eli Zaretskii <eliz@gnu.org>
683 * indent.c (Fmove_to_column): Document that the argument COLUMN is
684 taken from prefix numeric argument.
686 2007-02-03 Juanma Barranquero <lekktu@gmail.com>
688 * lread.c (syms_of_lread) <load-history>: Doc fix.
690 2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
692 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
693 Use the foreground color of the scroll-bar face when drawing
694 the scroll-bar's border.
696 2007-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
698 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
701 2007-02-01 Juanma Barranquero <lekktu@gmail.com>
703 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
704 Wording by Eli Zaretskii.
706 2007-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
708 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
710 2007-01-30 Richard Stallman <rms@gnu.org>
712 * minibuf.c (read_minibuf):
713 Save and clear Vminibuffer_completing_file_name.
714 (read_minibuf_unwind): Restore it.
715 (Vminibuffer_completion_table, Qminibuffer_completion_table)
716 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
717 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
718 (Vminibuffer_completing_file_name): Definitions moved up.
720 2007-01-29 Chong Yidong <cyd@stupidchicken.com>
722 * m/hp800.h: Restore, removing HP-UX support.
724 2007-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
726 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
728 2007-01-28 Richard Stallman <rms@gnu.org>
730 * minibuf.c (Ftry_completion, Fall_completions)
731 (Fcompleting_read, Ftest_completion):
732 Rename arg ALIST or TABLE to COLLECTION.
734 2007-01-27 Chong Yidong <cyd@stupidchicken.com>
736 * unexhp9k800.c: Remove due to lack of legal papers.
738 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
740 2007-01-27 Eli Zaretskii <eliz@gnu.org>
742 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
744 * minibuf.c (Fcompleting_read): Doc fix.
746 2007-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
748 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
750 * Makefile.in: Use XFT_LIBS if defined.
752 2007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
754 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
755 BLOCK_INPUT/UNBLOCK_INPUT.
757 * blockinput.h (interrupt_input_blocked): Declare volatile.
759 * keyboard.c (interrupt_input_blocked): Declare volatile.
761 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
763 2007-01-24 Kim F. Storm <storm@cua.dk>
765 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
767 2007-01-23 Juanma Barranquero <lekktu@gmail.com>
769 * editfns.c (Finsert_char): Doc fix.
770 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
772 2007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
774 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
775 Don't pass keyboard modifiers to mac_store_drag_event, but put
776 them as kEventParamKeyModifiers Apple event parameter.
778 2007-01-21 Chong Yidong <cyd@stupidchicken.com>
780 * xdisp.c (try_window): Revert previous change.
782 * dispnew.c (update_text_area): Revert 2006-09-17 change.
783 Always redraw non-mode-line rows with mouse-face.
785 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
787 * xdisp.c (try_window): Clear mouse-face highlights first.
789 * window.c (set_window_buffer): Revert 2006-11-22 change.
791 2007-01-20 Eli Zaretskii <eliz@gnu.org>
793 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
794 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
796 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
798 * keyboard.c (read_key_sequence): Extract local map only if the
799 given position is in an accessible buffer region.
801 2007-01-19 Nick Roberts <nickrob@snap.net.nz>
803 * .gdbinit: Reformat documentation so that first sentence
804 displays properly with "help user-defined" (like apropos).
806 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
808 * epaths.in: Move PATH_DOC from local/info to local/share/info.
810 2007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
812 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
813 Create movable modal window instead of movable alert window.
814 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
817 * macselect.c (Fmac_resume_apple_event): Set error number when
818 descriptor type of reply is non-null.
820 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
822 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
823 Use DisableControl for disabled items. Set default button to first
824 enabled one. Use icon of application in execution.
826 2007-01-13 Eli Zaretskii <eliz@gnu.org>
828 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
829 Copy PID into EMACS_INT to avoid GCC warnings.
831 * fns.c (maybe_resize_hash_table): Copy new size of hash table
832 into EMACS_INT to avoid GCC warnings.
834 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
835 geteuid and getuid into EMACS_INT to avoid GCC warnings.
837 * dired.c (Ffile_attributes): Fix last change.
839 2007-01-12 Eli Zaretskii <eliz@gnu.org>
841 * dired.c (Ffile_attributes): Copy some members of `struct stat'
842 into int's to avoid GCC warnings about limited range of short in
843 arguments to FIXNUM_OVERFLOW_P.
845 2007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
847 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
848 (mac_handle_dialog_event, install_dialog_event_handler)
849 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
850 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
851 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
852 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
853 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
854 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
855 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
856 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
857 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
858 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
860 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
861 Call mac_prepare_for_quickdraw.
862 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
863 outside #ifdef MAC_OSX.
864 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
865 outside #ifdef MAC_OSX.
866 (mac_check_bundle) [MAC_OSX]: Remove unused function.
868 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
869 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
871 2007-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
873 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
876 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
878 * editfns.c (Fformat): Allow integer-format to work with floats of size
879 larger than most-positive-fixnum (but still smaller than MAXINT).
881 * dired.c (Ffile_attributes): Use floats for large uids/gids.
883 2007-01-09 Eli Zaretskii <eliz@gnu.org>
885 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
887 2007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
889 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
892 * image.c (XDrawLine) [MAC_OS]: Remove macro.
893 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
894 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
897 * macgui.h (Display): Typedef to opaque type.
899 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
900 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
901 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
902 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
903 Use mac_quit_char_key_p.
905 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
906 (XCreateGC): Change type of 2nd argument to void *.
907 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
909 (mac_to_emacs_modifiers): Change return type to int.
910 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
911 (mac_mapped_modifiers): New function.
912 (XTread_socket): Use it.
913 [USE_TSM] (mac_handle_text_input_event): Likewise.
914 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
915 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
917 (mac_determine_quit_char_modifiers, init_quit_char_handler)
918 [MAC_OSX]: Remove functions.
919 (make_ctrl_char) [MAC_OSX]: Add extern.
920 (mac_quit_char_key_p) [MAC_OSX]: New function.
921 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
923 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
924 (XCreateGC): Change type in extern.
925 (XDrawLine): Rename from mac_draw_line_to_pixmap.
926 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
928 2007-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
930 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
931 interrupt_input_pending.
933 * xterm.h (x_display_info): New: net_supported_atoms,
934 nr_net_supported_atoms and net_supported_window.
936 * xterm.c (last_user_time): New variable.
937 (handle_one_xevent): Set last_user_time from events that have Time.
938 Set net_supported_window to 0 when reparented.
939 (wm_supports): New function.
940 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
941 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
942 and net_supported_window.
944 2007-01-05 Kim F. Storm <storm@cua.dk>
946 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
947 strings without embedded newlines immediately followed by newline.
949 2007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
951 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
952 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
953 gmtime/localtime/emacs_memftimeu/mktime.
955 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
957 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
959 * macgui.h (struct _XGC) [USE_CG_DRAWING
960 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
963 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
964 (restore_show_help_function, menu_target_item_handler)
965 [TARGET_API_MAC_CARBON]: New functions.
966 (install_menu_target_item_handler): New function.
967 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
970 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
971 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
972 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
973 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
974 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
975 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
976 (mac_cg_color_black) [USE_CG_DRAWING
977 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
978 (init_cg_color) [USE_CG_DRAWING]: New function.
979 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
980 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
981 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
982 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
983 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
984 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
985 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
986 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
987 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
989 (install_drag_handler, remove_drag_handler): Make extern.
990 (install_menu_target_item_handler): Add extern.
991 (install_window_handler): Call install_menu_target_item_handler.
992 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
993 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
995 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
997 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
999 * window.c (Fwindow_end): Fix use of >= operator.
1001 2007-01-03 Richard Stallman <rms@gnu.org>
1003 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
1005 2007-01-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1007 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
1010 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
1011 parent of the menu item. Get menu item widget from event.
1012 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
1013 unhighlight_id has been removed.
1014 (create_menus): Connect enter/leave-notify-event to the menu instead
1015 of individual items.
1017 2006-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1019 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
1020 xg_tool_bar_menu_proxy.
1021 (xg_tool_bar_menu_proxy): New function.
1022 (xg_tool_bar_proxy_callback): New function.
1024 2006-12-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1026 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
1027 (xg_tool_bar_callback): Remove check for button.
1028 (update_frame_tool_bar): Put an event box in the tool bar and a button
1029 in the event box. Attach enter/leave-notify-event to the event box.
1031 2006-12-30 Richard Stallman <rms@gnu.org>
1033 * keymap.c (Fdefine_key): Doc fix.
1035 2006-12-29 Kim F. Storm <storm@cua.dk>
1037 * frame.h (struct frame): New member minimize_tool_bar_window_p.
1039 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
1040 (Vauto_resize_tool_bars): ... this.
1041 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
1042 to describe new value `grow-only', and use of C-l.
1043 (display_tool_bar_line): Only use default face for border below
1044 toolbar if not grow-only (to get acceptable visual appearence).
1045 Explicitly set visible_height for empty toolbar lines.
1046 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
1047 minimize_tool_bar_window_p flag.
1049 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
1050 when called without arg to redraw with minimum toolbar height.
1053 2006-12-29 Jason Rumney <jasonr@gnu.org>
1055 * s/ms-w32.h (tzname): Do not define in msvc8.
1056 (utime): Do not define in msvc8.
1058 * regex.c (regerror): Change parameter name err_code.
1060 2006-12-26 Richard Stallman <rms@gnu.org>
1062 * search.c (Fsearch_forward): Doc fix.
1064 * callint.c (Finteractive): Doc fix.
1066 2006-12-25 Kim F. Storm <storm@cua.dk>
1068 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
1070 2006-12-23 Eli Zaretskii <eliz@gnu.org>
1072 * keyboard.c (some_mouse_moved): Fix last change.
1074 2006-12-22 Eli Zaretskii <eliz@gnu.org>
1076 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
1078 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
1080 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
1081 * m/sh3el.h: New file.
1083 2006-12-22 Eli Zaretskii <eliz@gnu.org>
1085 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
1087 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
1088 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
1089 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
1090 (clean): Delete stamp_BLD.
1092 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1094 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1095 Call mac_update_proxy_icon also when buffer modification flag changed.
1096 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
1097 but compare FSRef/FSSpec of resolved alias.
1099 2006-12-21 Kim F. Storm <storm@cua.dk>
1101 * w32.c (_sys_wait_accept): Fix handle leak.
1103 2006-12-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1105 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
1108 2006-12-20 Kim F. Storm <storm@cua.dk>
1110 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
1112 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
1114 * keyboard.c (syms_of_keyboard) <double-click-time>:
1115 * mac.c (Fmac_code_convert_string):
1116 * search.c (Fsearch_forward): Doc fixes.
1118 2006-12-19 Kim F. Storm <storm@cua.dk>
1120 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
1121 a sigusr1 event instead of [signal usr1] sequence, and signal events
1122 are now supposed to be handled via special-event-map.
1124 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
1125 (make_lispy_event): Don't generate Qsignal prefix for code 0.
1126 Abort if signal code is unknown.
1127 (store_user_signal_events): Don't make Qsignal prefix (code 0).
1128 (Qsignal): Move declaration back to process.c.
1129 (syms_of_keyboard): Don't intern or staticpro it here.
1131 * process.c (Qsignal): Declare here.
1132 (syms_of_process): Intern or staticpro it.
1134 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
1136 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
1138 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
1140 * buffer.c (syms_of_buffer) <buffer-display-table>:
1141 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
1143 2006-12-17 Richard Stallman <rms@gnu.org>
1145 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
1146 to Ffile_name_completion.
1148 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
1149 (Ffile_name_completion): New arg PREDICATE.
1151 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
1153 * buffer.c (Fkill_buffer): Doc fix.
1154 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
1156 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
1158 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
1160 2006-12-16 Eli Zaretskii <eliz@gnu.org>
1162 * w32fns.c (w32-window-exists-p): New function.
1163 (syms_of_w32fns): Defsubr it.
1165 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
1167 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
1169 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
1171 2006-12-15 Eli Zaretskii <eliz@gnu.org>
1173 * emacs.c (USAGE3): Clarify documentation of --color.
1175 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1177 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
1179 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
1180 [!MAC_OSX] (select): Use them.
1181 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1182 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
1184 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
1185 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
1186 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
1188 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1189 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
1191 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
1192 ATSUGetGlyphBounds if not necessary.
1193 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
1194 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
1195 (fm_get_style_from_font, atsu_find_font_from_family_name)
1196 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
1197 [USE_ATSUI]: New functions.
1198 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
1199 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
1200 Don't get metrics for Latin-1 right half characters.
1201 (mac_load_query_font): Don't load font if space width is not positive.
1202 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
1203 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
1204 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
1206 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
1208 2006-12-15 Kim F. Storm <storm@cua.dk>
1210 * keyboard.c (ignore_mouse_drag_p): New global var.
1211 (some_mouse_moved): Return 0 if it is non-zero.
1212 (make_lispy_event): Generate click event on mouse up if
1213 ignore_mouse_drag_p is non-zero, even if mouse moved.
1214 Clear ignore_mouse_drag_p on mouse down/up.
1216 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
1217 is resized to avoid generating a mouse drag event.
1219 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
1221 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
1222 minimum tracking size. Remove non-working old hack to do the same.
1224 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1226 * emacs.c (handle_user_signal): Move function to keyboard.c.
1227 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
1229 * keyboard.c (make_lispy_event): Use find_user_signal_name.
1230 (read_avail_input): Store pending user signal events.
1231 (struct user_signal_info): New struct.
1232 (user_signals): New variable.
1233 (add_user_signal, store_user_signal_events)
1234 (find_user_signal_name): New functions.
1235 (handle_user_signal): Move function from emacs.c. Don't store
1236 USER_SIGNAL_EVENT here, but increment number of pending signals.
1238 * keyboard.h (add_user_signals): Add extern.
1240 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
1242 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
1243 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
1244 <line-spacing, left-margin>: Doc fixes.
1246 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
1248 2006-12-10 Kim F. Storm <storm@cua.dk>
1250 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
1252 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
1254 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
1255 * buffer.c (syms_of_buffer) <default-major-mode>:
1256 * keymap.c (Flookup_key):
1257 * lread.c (Feval_buffer, Feval_region):
1258 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
1259 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
1260 * marker.c (Fmarker_insertion_type):
1261 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
1262 * msdos.c (syms_of_msdos) <delete-exited-processes>:
1263 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1264 <x-underline-at-descent-line>:
1265 * xdisp.c (format-mode-line):
1266 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
1267 <x-underline-at-descent-line>: Doc fixes.
1269 2006-12-10 Andreas Schwab <schwab@suse.de>
1271 * systime.h (EMACS_GET_TIME): Remove check for
1272 HAVE_STRUCT_TIMEZONE which is never defined.
1274 2006-12-10 Alan Mackenzie <acm@muc.de>
1276 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
1277 result is now neither the last elt nor optional for OLDSTATE.
1279 2006-12-09 Eli Zaretskii <eliz@gnu.org>
1281 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
1282 extract the process ID from a Lisp float.
1284 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
1286 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
1288 2006-12-08 Eli Zaretskii <eliz@gnu.org>
1290 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
1291 platforms where long is 64-bit.
1293 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
1295 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
1297 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
1299 2006-12-08 Kenichi Handa <handa@m17n.org>
1301 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
1303 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
1305 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1307 2006-12-07 Kim F. Storm <storm@cua.dk>
1309 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
1310 (Fsignal_process): Don't use strncasecmp.
1312 2006-12-05 Glenn Morris <rgm@gnu.org>
1314 * abbrev.c (Qforce): New Lisp_Object.
1315 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
1316 abbrevs, unless 'force is applied.
1317 (syms_of_abbrev): Add Qforce.
1319 2006-12-04 Kim F. Storm <storm@cua.dk>
1321 * process.c (parse_signal): Rename macro from handle_signal.
1322 (Fsignal_process): Also accept lower-case variants of signal
1323 names (to align with signal names generated by Emacs itself).
1325 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
1326 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
1327 first with code == 0 [signal] and one with code == sig number.
1328 (main): Use it as handler for SIGUR1 and SIGUSR2.
1330 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
1331 if first event in [signal xxx] sequence.
1332 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
1333 (syms_of_keyboard): Don't intern and staticpro them.
1334 (Qsignal): Declare here.
1335 (syms_of_keyboard): Intern and staticpro it.
1336 (make_lispy_event): Use it. Intern symbols on the fly for other
1337 USER_SIGNAL_EVENTs events.
1339 * process.c (Qsignal): Declare extern.
1340 (syms_of_process): Don't intern/staticpro it here.
1342 * process.c (read_process_output): Abort if carryover < 0.
1344 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1346 * config.in: Regenerate.
1348 * fileio.c [__NetBSD__]: Don't define `unix'.
1349 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
1352 2006-12-04 Glenn Morris <rgm@gnu.org>
1354 * Makefile.in (version): New variable, set by configure.
1355 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
1357 2006-12-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1359 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
1362 2006-12-01 Eli Zaretskii <eliz@gnu.org>
1364 * w32fns.c (Fw32_shell_execute): Doc fix.
1366 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
1368 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
1369 lines ending in tab.
1371 2006-11-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1373 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
1375 (XTframe_raise_lower): ... to here.
1377 2006-11-30 Kenichi Handa <handa@m17n.org>
1379 * regex.c (regex_compile): Fix previous change.
1381 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
1383 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
1385 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
1387 * config.in: Regenerate.
1389 2006-11-28 Kenichi Handa <handa@m17n.org>
1391 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
1392 multibyte character.
1394 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
1396 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
1398 2006-11-27 Kim F. Storm <storm@cua.dk>
1400 * window.c (set_window_buffer): Refactor recent changes.
1402 2006-11-27 Jason Rumney <jasonr@gnu.org>
1404 * w32term.c (w32_msg_worker): Declare correctly.
1405 (w32_initialize): Don't cast w32_msg_worker.
1407 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
1409 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
1411 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
1414 2006-11-25 Eli Zaretskii <eliz@gnu.org>
1416 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
1417 as per the calling sequence change on 2006-07-11.
1419 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
1421 * window.c (set_window_buffer): Use BLOCK_INPUT.
1423 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
1425 * fns.c (substring_both): Add missing address operator.
1427 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1429 * fns.c: Use AREF/ASIZE macros.
1430 (concat): Provide the full ANSI prototype.
1432 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
1434 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1436 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
1438 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
1440 2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
1442 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
1443 /usr/pkg/lib from the library search path.
1444 (LD_SWITCH_X_DEFAULT): New macro.
1446 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
1448 * window.c (set_window_buffer): Clear mouse highlight if it is in
1451 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
1453 * xfaces.c (realize_default_face): Check if the default font name
1454 exists on this display before trying to use it.
1456 2006-11-21 Richard Stallman <rms@gnu.org>
1458 * fileio.c: Break line before &&, not after.
1460 2006-11-20 Eli Zaretskii <eliz@gnu.org>
1462 * fns.c (concat) [!__GNUC__]: Add prototype.
1464 2006-11-20 Kenichi Handa <handa@m17n.org>
1466 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
1467 check the tailing slash of a filename.
1469 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
1471 * indent.c (Fvertical_motion): Include composition in the case of
1474 2006-11-19 Andreas Schwab <schwab@gnu.org>
1476 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
1478 * xmenu.c (Fx_popup_menu): Initialize selection.
1480 2006-11-18 Andreas Schwab <schwab@suse.de>
1482 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
1484 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1486 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
1487 to avoid gcc 2.96 error.
1489 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
1491 * search.c (simple_search): In the loop of backward searching,
1492 check also the byte position against the limit.
1494 2006-11-14 Romain Francoise <romain@orebokech.com>
1496 * minibuf.c (Fcompleting_read): Fix typo in docstring.
1498 2006-11-14 Kenichi Handa <handa@m17n.org>
1500 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1501 (decode_coding_string, code_convert_region): Likewise.
1503 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1505 * config.in: Regenerate.
1507 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1508 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1509 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1510 CGDisplayScreenSize is available.
1512 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1513 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
1514 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
1515 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1516 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1517 CancelMenuTracking is available.
1519 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
1520 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1521 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1522 CGContextShowGlyphsWithAdvances is available.
1524 2006-11-13 Jason Rumney <jasonr@gnu.org>
1526 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
1528 2006-11-13 Nozomu Ando <nand@mac.com>
1530 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
1531 Fix address calculations for case END < START.
1532 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
1534 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
1536 * coding.c (Fencode_sjis_char, Fencode_big5_char):
1537 Improve argument/docstring consistency.
1539 * editfns.c (Fmessage): Doc fixes.
1541 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
1543 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
1545 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
1547 2006-11-12 Romain Francoise <romain@orebokech.com>
1549 * xselect.c (selection-coding-system): Fix docstring.
1551 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
1553 * category.c (Fchar_category_set): Improve arg/docstring consistency.
1556 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
1557 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
1558 (Fstring_make_unibyte): Fix typos in docstrings.
1560 2006-11-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1562 * xterm.h (struct x_display_info): Fix indentation.
1564 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
1565 (x_check_fullscreen): Call do_ewmh_fullscreen.
1566 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
1568 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
1570 * term.c: Define fullscreen_hook.
1571 (syms_of_term): Initialize fullscreen_hook to NULL.
1573 * termhooks.h: Add fullscreen_hook.
1575 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
1577 * bytecode.c (Fbyte_code):
1578 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
1580 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
1582 * lread.c (syms_of_lread):
1583 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
1585 2006-11-06 Martin Rudalics <rudalics@gmx.at>
1587 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1589 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1590 Return nil if building without menus.
1592 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1593 Return nil if building without menus.
1595 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
1597 * s/netbsd.h (POSIX_SIGNALS): Define.
1599 2006-11-05 Martin Rudalics <rudalics@gmx.at>
1601 * macmenu.c (Fmenu_or_popup_active_p): New function.
1602 (syms_of_macmenu): Defsubr it.
1604 * w32menu.c (Fmenu_or_popup_active_p): New function.
1605 (syms_of_w32menu): Defsubr it.
1606 (popup_activated_flag, popup_activated): Remove.
1608 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
1609 check popup_activated.
1611 * xmenu.c (Fmenu_or_popup_active_p): New function.
1612 (syms_of_xmenu): Defsubr it.
1614 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1616 * unexmacosx.c (malloc_cookie): Remove unused variable.
1617 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
1618 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
1619 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
1620 (num_unexec_regions, unexec_regions): Make variables static.
1621 (print_regions, find_emacs_zone_regions): Make static.
1622 (unexec_region_info): New typedef.
1623 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
1625 (unexec_regions_recorder): Subtract size of trailing null pages from
1626 filesize. Show filesize.
1627 (unexec_regions_merge): Don't merge if null pages of preceding region
1628 is not too small. Use long format in printf.
1629 (copy_segment, copy_data_segment): Show filesize.
1630 (copy_data_segment): Write filesize bytes of region data.
1631 Adjust filesize in segment command accordingly.
1632 (dump_it): Use long format in printf.
1634 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
1636 * dosfns.c (Finsert_startup_screen):
1637 * fns.c (Ffeaturep, syms_of_fns):
1638 * frame.c (syms_of_frame): Fix typos in docstrings.
1640 * unexcw.c (unexec): Fix typo in output message.
1642 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
1644 * w32fns.c (w32_createwindow): Remove code for handling -geometry
1645 command line option and `initial-frame-alist' which is superfluous
1646 after the last change to `w32_createwindow'.
1648 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
1650 * w32proc.c (sys_wait): Only wait for processes with fd<0.
1651 Others should be handled by sys_select instead. Fixes problems
1652 with (progn (start-process "" nil "ls") (call-process "ls")).
1654 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1656 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
1657 avoid gcc 2.95 error.
1659 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
1661 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
1662 wicon is null, insert an empty button.
1664 2006-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1666 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
1669 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
1671 * emacs.c (Fkill_emacs): Fix typo in docstring.
1673 2006-11-02 Nozomu Ando <nand@mac.com>
1675 * unexmacosx.c (mach_header, segment_command, vm_region, section)
1676 [_LP64]: New defines.
1677 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
1678 (MH_MAGIC) [_LP64]: Redefine.
1679 (delta): Remove variable.
1680 (curr_file_offset, pagesize): New variables.
1681 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
1682 (data_segment_old_fileoff): Initialize explicitly.
1683 (print_region, unexec_regions_recorder, print_load_command_name)
1684 (copy_segment, copy_data_segment): Use long format in printf.
1685 (MAX_UNEXEC_REGIONS): Increase to 400.
1686 (unexec_regions_recorder): Don't warn too many regions here.
1687 (find_emacs_zone_regions): Warn too many regions here.
1688 (print_load_command_name) [_LP64]: Show correct load command name.
1689 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
1690 Show starting virtual memory address. Don't show ending file offset.
1691 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
1692 (dump_it): Use new local variable `linkedit_delta' and pass to them.
1693 Error if trying to handle multiple DATA segments.
1694 (unexec): Initialize variable `pagesize'.
1696 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
1698 * eval.c (Fcatch): Doc fix.
1700 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1702 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
1703 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
1704 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
1705 (xpm_load_image): Add const qualifier to arguments.
1706 [MAC_OS] (xpm_color_key_strings): Make static const.
1708 * mac.c (create_apple_event_from_event_ref)
1709 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
1710 (parse_include_file, parse_binding, parse_component)
1711 (parse_resource_name, parse_value, parse_resource_line)
1712 (xrm_merge_string_database, xrm_get_resource)
1713 (xrm_get_preference_database): Add const qualifier to arguments.
1714 [MAC_OSX] (sys_select): Make variable `context' static const.
1716 * macfns.c (mac_color_map): Make static const.
1717 (mac_color_map_lookup): Add const qualifier to arguments.
1719 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
1721 (name_is_separator): Add const qualifier to arguments.
1723 * macselect.c (init_service_handler): Make variable `specs' static
1726 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
1727 `swap_nibbles' static const.
1728 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
1729 `tags', `sizes', `values' static const.
1730 (mac_draw_string_common): Make variables `context' static.
1731 Make variables `tags', `sizes', and `values' static const.
1732 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
1733 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
1734 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
1735 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
1736 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
1737 qualifier to arguments.
1738 (xlfd_scalable_fields, keycode_to_xkeysym_table)
1739 (fn_keycode_to_keycode_table): Make static const.
1740 (mac_load_query_font): Make variables `tags', `sizes', `values',
1741 `types', and `selectors' static const.
1742 (mac_handle_command_event, mac_handle_window_event):
1743 Make variables `names' and `types' static const.
1744 (init_command_handler, install_window_handler): Make variables
1745 `specs*' static const.
1746 (mac_handle_font_event, mac_handle_text_input_event)
1747 (mac_store_service_event): Make variables `names' and `types'
1748 const. Make variables `names_*' and `types_*' static const.
1750 * macterm.h (create_apple_event_from_event_ref)
1751 (create_apple_event_from_drag_ref, xrm_merge_string_database)
1752 (xrm_get_resource, xrm_get_preference_database): Add const
1753 qualifier to arguments in externs.
1755 2006-10-31 Kenichi Handa <handa@m17n.org>
1757 * xfns.c (xic_create_xfontset): Fix previous change.
1759 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
1761 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
1762 /usr/pkg/lib to library search path.
1764 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
1766 * ralloc.c (relinquish): Use a long for excess space counter to
1767 handle 64-bit case correctly.
1769 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
1771 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
1773 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
1775 * window.c (Fdisplay_buffer): Fix typo in docstring.
1777 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
1779 * w32term.c (x_draw_glyph_string_foreground): Set background mode
1780 to TRANSPARENT before using overstrike to simulate bold faces.
1782 * xfaces.c (best_matching_font): Fix logic to decide whether to
1783 use overstriking to simulate bold-face (it was reversed).
1785 2006-10-23 Kim F. Storm <storm@cua.dk>
1787 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
1790 * keyboard.c (read_char): Make an element (t . EVENT) in
1791 unread-command-events add EVENT to the current command's key sequence.
1792 (syms_of_keyboard) <unread-command-events>: Update doc.
1794 2006-10-21 Richard Stallman <rms@gnu.org>
1796 * minibuf.c (Vread_expression_map): Define here.
1797 (Qread_expression_history): New variable.
1798 (syms_of_minibuf): Initialize them.
1799 (Feval_minibuffer): Use Vread_expression_map and
1800 Qread_expression_history.
1802 2006-10-21 Kenichi Handa <handa@m17n.org>
1804 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
1805 card, change it to "*".
1806 (xic_create_xfontset): Call XCreateFontSet for each single
1807 fontname in fontsetname.
1809 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
1811 * callint.c (callint_message): Convert to a Lisp string.
1812 (syms_of_callint): Initialize it.
1813 (callint_message_size): Var deleted.
1814 (Fcall_interactively): Use Fformat instead of doprnt to construct
1817 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1819 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
1821 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1823 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
1825 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
1827 2006-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1829 * xselect.c (x_handle_selection_request): If the converted_selection
1830 is nil or XCDR (converted_selection) is nil, decline the request.
1832 2006-10-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1834 * gtkutil.c (get_utf8_string): Remove warnings with casts.
1835 (xg_tool_bar_button_cb): Ditto.
1836 (xg_tool_bar_callback): Ditto.
1838 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1840 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
1842 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
1843 menu bar window matrices on non-X systems.
1845 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
1847 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
1848 adjustment is needed.
1849 (mac_load_query_font): Check if width and height are positive.
1851 2006-10-14 Richard Stallman <rms@gnu.org>
1853 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
1855 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
1857 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
1860 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
1862 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
1865 2006-10-12 Romain Francoise <romain@orebokech.com>
1867 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
1869 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
1871 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
1873 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
1875 * xterm.c (x_check_expected_move): Remove unused var `count'.
1877 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
1878 Fdefalias is not declared in any *.h file.
1880 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
1882 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
1884 * keyboard.c (command_loop_1): Handle non-number values of
1885 `minibuffer-message-timeout'.
1886 (Fexecute_extended_command): Fix typo.
1888 * minibuf.c (temp_echo_area_glyphs): Sit for
1889 `minibuffer-message-timeout' seconds.
1891 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1893 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
1894 Add argument OVERSTRIKE_P.
1895 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
1897 (mac_draw_string, mac_draw_string_16): Remove functions.
1898 (x_draw_glyph_string_foreground): Use overstrike when needed.
1899 (x_draw_composite_glyph_string_foreground): Likewise.
1900 Use mac_draw_image_string_16 instead of mac_draw_string_16.
1901 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
1902 F instead of DPY. All uses changed. Don't save/restore font.
1904 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
1906 * w32fns.c (w32_createwindow): Honour left and top positions if
1907 supplied explicitly.
1909 2006-10-06 Kim F. Storm <storm@cua.dk>
1911 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
1913 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
1915 * frame.c (Qinhibit_face_set_after_frame_default): New var.
1916 (syms_of_frame): Initialize it.
1917 (x_set_frame_parameters): Avoid resetting :font attributes to the
1920 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
1922 * lisp.h (clear_regexp_cache): Declare.
1924 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
1925 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
1926 (clear_regexp_cache): Only flush those regexps which depend on
1929 * regex.c (regex_compile): Set the new `used_syntax' bit.
1931 * regex.h: Remove file local variables.
1932 (struct re_pattern_buffer): New field `used_syntax'.
1934 2006-10-03 Kim F. Storm <storm@cua.dk>
1936 * process.c (list_processes_1): Run sentinels before removing dead
1937 processes. Also remove `closed' network connections.
1939 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1941 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
1943 2006-09-30 Eli Zaretskii <eliz@gnu.org>
1945 * config.in: Regenerated.
1947 2006-09-29 Juri Linkov <juri@jurta.org>
1949 * buffer.c (syms_of_buffer): Reorder coding systems in the
1950 docstring of %z to the real order displayed in the modeline.
1952 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1954 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
1956 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
1958 * indent.c (Fvertical_motion): Do move back if the Lisp string
1959 being displayed contains newlines.
1961 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1963 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
1964 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
1966 2006-09-26 Kenichi Handa <handa@m17n.org>
1968 * keymap.c (Fsingle_key_description): For an invalid char, return
1969 "Invalid char code NNNNN".
1971 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
1973 * callint.c (Fcall_interactively): Doc fix.
1975 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1977 * macterm.c (x_underline_at_descent_line): New variable.
1978 (syms_of_macterm): DEFVAR_BOOL it.
1979 (x_draw_glyph_string): Use it.
1980 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
1982 2006-09-25 Kenichi Handa <handa@m17n.org>
1984 * keymap.c (Fsingle_key_description): Return unique names for
1987 2006-09-24 Richard Stallman <rms@gnu.org>
1989 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
1991 2006-09-24 Eli Zaretskii <eliz@gnu.org>
1993 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
1994 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
1996 * w32proc.c (nl_langinfo): New function.
1998 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1999 (w32-pass-lwindow-to-system, w32-enable-num-lock)
2000 (w32-enable-caps-lock, w32-scroll-lock-modifier)
2001 (w32-lwindow-modifier, w32-rwindow-modifier)
2002 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
2004 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
2006 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
2007 (Fdisplay_completion_list): Fix typos in docstrings.
2009 2006-09-23 Romain Francoise <romain@orebokech.com>
2011 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
2013 2006-09-23 Kenichi Handa <handa@m17n.org>
2015 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
2017 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
2019 * regex.c (analyse_first): For eight-bit-control chars, mark both the
2020 char's value and its leading byte in the fastmap.
2021 (re_search_2): When fast-scanning without translation, be careful to
2022 check that we only match the leading byte of a multibyte char.
2024 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
2026 (AT_CHAR_BOUNDARY): New macro.
2028 2006-09-22 Kenichi Handa <handa@m17n.org>
2030 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
2031 whose default value is non-nil.
2033 2006-09-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2035 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
2036 Gtk+ versions < 2.10.
2038 * xfns.c (syms_of_xfns): Fix typo in help text for
2039 x-gtk-file-dialog-help-text.
2041 2006-09-21 Kim F. Storm <storm@cua.dk>
2043 * fns.c (Fmemq): Refill doc string.
2044 (Fmemql): New defun, like memq but using eql.
2045 (syms_of_fns): Defsubr it.
2047 2006-09-20 Kim F. Storm <storm@cua.dk>
2049 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
2050 last visible glyph in window.
2052 * window.c (Fset_window_hscroll, Fwindow_line_height):
2053 Doc fix. Use "off-window" instead of "off-screen".
2054 (Fpos_visible_in_window_p): Likewise.
2055 If POS is t, return info for last visible glyph in window.
2057 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
2059 * search.c (struct regexp_cache): New entry syntax_table.
2060 (compile_pattern_1): Set it.
2061 (syms_of_search): Initialize it.
2062 (compile_pattern): Require the syntax_table entry of the cache
2063 element to match the current syntax table entry.
2065 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2067 * window.c (Fwindow_end): Fix recent change.
2069 2006-09-19 Kim F. Storm <storm@cua.dk>
2071 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
2072 Doc fix. Use "off-screen" instead of "invisible".
2073 (Fwindow_line_height): Make line numbers 0-based. Make line arg
2074 optional; if nil, use current cursor row. Handle text terminals
2075 properly. Return nil if non-interactive or pseudo-window.
2077 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2079 * keymap.c: Include alloca.h if available.
2080 (Fkey_binding): Only use AREF after checking it's a vector.
2081 Remove unused var `window'.
2083 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2085 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
2088 * mac.c [!MAC_OSX] (select): Fix argument name.
2090 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
2091 menu ID for Apple menu.
2092 (menubar_selection_callback): Remove function.
2093 (find_and_call_menu_selection): New function from xmenu.c.
2094 (x_activate_menubar): Use it.
2095 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
2097 * macterm.c (menubar_selection_callback): Remove extern.
2098 (M_APPLE): Change to 234.
2099 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
2100 (do_menu_choice): Remove function.
2102 * macterm.h (struct mac_output): Remove member menubar_active.
2103 (do_menu_choice): Remove extern.
2104 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
2106 2006-09-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2108 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
2109 x_gtk_file_dialog_help_text.
2111 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
2112 to x-gtk-use-old-file-dialog.
2113 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
2114 x_gtk_file_dialog_help_text.
2116 * xfns.c (syms_of_xfns): Ditto.
2118 2006-09-18 Kim F. Storm <storm@cua.dk>
2120 * window.c (Fwindow_line_visibility): Remove.
2121 (Fwindow_line_height): New defun replacing it.
2122 (syms_of_window): Defsubr it.
2124 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2126 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
2127 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
2129 2006-09-17 Jay Belanger <belanger@truman.edu>
2134 * strftime.c: Replace "GNU Library General Public License" by "GNU
2135 General Public License" throughout.
2137 2006-09-17 Kim F. Storm <storm@cua.dk>
2139 * dispnew.c (update_text_area): Undo 2000-07-18 change.
2140 Always redrawing whole row if line has mouse-face in it causes
2141 excessive flickering of the mode line.
2143 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
2145 * search.c (clear_regexp_cache): New function.
2147 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
2149 2006-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2151 * gtkutil.c (xg_get_file_with_chooser):
2152 Check x-gtk-show-chooser-help-text before adding the help text.
2154 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
2156 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
2157 will simply crash if we fail.
2159 2006-09-16 Richard Stallman <rms@gnu.org>
2161 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
2163 2006-09-15 Kim F. Storm <storm@cua.dk>
2165 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
2166 (syms_of_window): Defsubr it.
2167 (Fwindow_end): Use window's buffer rather than current buffer.
2169 2006-09-15 Jay Belanger <belanger@truman.edu>
2171 * COPYING: Replace "Library Public License" by "Lesser Public
2172 License" throughout.
2174 2006-09-15 David Kastrup <dak@gnu.org>
2176 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
2178 * keymap.c: include "window.h".
2179 (Fcommand_remapping): New optional POSITION argument.
2180 (Fkey_binding): New optional POSITION argument. Completely rework
2181 handling of mouse clicks to get the same order of keymaps as
2182 `read-key-sequence' and heed POSITION. Also temporarily switch
2183 buffers to location of mouse click and back.
2185 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
2186 for additional argument.
2187 (parse_menu_item): Adjust call of `Fkey_binding' for additional
2189 (read_key_sequence): If there are both `local-map' and `keymap'
2190 text properties at some buffer position, heed both.
2192 * keymap.h: Declare additional optional arguments of
2193 `Fcommand_remapping' and `Fkey_binding'.
2195 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
2197 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
2199 2006-09-14 Andreas Schwab <schwab@suse.de>
2201 * print.c: Whitespace fixup.
2203 2006-09-14 Kim F. Storm <storm@cua.dk>
2205 * xdisp.c (produce_image_glyph): Automatically crop wide images at
2206 right window edge so we can draw the cursor on the same row to
2207 avoid confusing redisplay by placing the cursor outside the visible
2210 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2212 * xterm.c (x_initialize): Don't install Xt event timer here.
2213 (x_timeout_atimer_activated_flag): New var.
2214 (x_activate_timeout_atimer): New function to install Xt timer.
2215 (x_send_scroll_bar_event, x_process_timeouts): Use it.
2217 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
2218 (create_and_show_popup_menu, create_and_show_dialog): Use it.
2220 * xterm.h (x_activate_timeout_atimer): Add prototype.
2222 2006-09-13 Richard Stallman <rms@gnu.org>
2224 * print.c (print_string): When printcharfun is t,
2225 copy string contents and call strout on the copy.
2227 * keyboard.c (read_char): If end_time specified, don't put the
2228 event into this_command_keys.
2229 (read_key_sequence): If Voverriding_terminal_local_map is specified,
2230 don't check Voverriding_local_map at all.
2232 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2234 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2235 (Fprevious_property_change, Fprevious_single_property_change):
2236 Avoid changing limit, so we can correctly catch the case where the
2237 property is constant up to limit.
2239 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2241 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2242 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2243 Undo 2006-09-08 change.
2245 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
2247 * keymap.c (Fkey_binding): Use string position for string objects.
2249 2006-09-11 Kim F. Storm <storm@cua.dk>
2251 * keymap.c (Fkey_binding): Fix last change.
2253 * editfns.c (Fmessage): Recommend using (message "%s" ...).
2255 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
2257 * keymap.c (Fkey_binding): Check for local keymap for mouse click
2260 2006-09-10 Kim F. Storm <storm@cua.dk>
2262 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
2263 and Vunread_post_input_method_events.
2265 * dispnew.c (Fredisplay): Document return value.
2267 2006-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2269 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
2271 * gtkutil.c (xg_display_close): Always change default display if needed,
2272 check for < Gtk+ version 2.10 before calling gdk_display_close.
2274 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2276 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
2277 Make variable `ofds' static. Remove variable `maxfd'.
2279 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
2282 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
2283 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
2284 Apply 2006-09-08 change for xmenu.c.
2286 * xfns.c (Fx_file_dialog): Call check_x.
2288 2006-09-10 Kim F. Storm <storm@cua.dk>
2290 * xdisp.c (get_window_cursor_type): Use hollow cursor on
2291 non-transparent images.
2293 2006-09-09 Eli Zaretskii <eliz@gnu.org>
2295 * editfns.c (Fsystem_name): Mention "host" in the doc string.
2296 (syms_of_editfns) <system-name>: Likewise.
2298 2006-09-08 Martin Rudalics <rudalics@gmx.at>
2300 * xdisp.c (mouse_autoselect_window): Remove.
2301 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
2303 * dispextern.h (mouse_autoselect_window): Remove extern.
2304 (Vmouse_autoselect_window): Add extern.
2306 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
2307 instead of mouse_autoselect_window.
2309 * msdos.c (dos_rawgetc): Likewise.
2311 * w32term.c (w32_read_socket): Likewise.
2313 * xterm.c (handle_one_xevent): Likewise.
2315 2006-09-08 Richard Stallman <rms@gnu.org>
2317 * xdisp.c (Vmenu_updating_frame): Define here.
2318 (syms_of_xdisp): DEFVAR it here.
2319 (update_menu_bar): Always return hooks_run.
2320 Set Vmenu_updating_frame.
2322 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
2323 before calculating SELECTED_FRAME.
2325 * xmenu.c (Vmenu_updating_frame): Don't define here.
2326 (syms_of_xmenu): Don't DEFVAR it here.
2328 * xterm.c (x_error_quitter): For BadName error, just return.
2330 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
2332 * casetab.c (init_casetab_once): Call set_case_table.
2334 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
2336 * process.c (inhibit_sentinels): New variable.
2337 (exec_sentinel): Test inhibit_sentinels.
2338 (init_process): Initialize it.
2340 * process.h (inhibit_sentinels): Add decl.
2342 * search.c (looking_at_1, string_match_1, search_command):
2343 Make syntax table's canon table point to eqv table.
2345 2006-09-08 Andreas Schwab <schwab@suse.de>
2347 * print.c (strout): Fix whitespace.
2349 2006-09-08 Kim F. Storm <storm@cua.dk>
2351 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
2353 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2355 * mac.c [!MAC_OSX]: Don't include keyboard.h.
2356 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
2357 in the same BLOCK_INPUT block, in case that some input has already
2358 been read asynchronously. Pretend to be interrupted by a signal
2359 if some input is available.
2360 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2361 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
2362 Now used for ReceiveNextEvent timeout instead of select timeout.
2363 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
2364 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
2365 support. Quit event loop.
2366 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
2367 connect support. Reuse previously allocated CFRunLoopSource.
2368 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
2369 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2371 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2372 Specify kWindowAsyncDragAttribute.
2374 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
2375 (mac_get_ideal_size): New functions.
2376 (x_set_offset, x_set_window_size, x_make_frame_visible)
2377 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
2378 (install_window_handler, mac_handle_window_event)
2379 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
2380 kEventWindowBoundsChanged.
2381 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
2384 2006-09-07 Andreas Schwab <schwab@suse.de>
2386 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
2387 use lib64 instead of lib.
2389 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
2391 * Makefile.in: Avoid double quotes when possible.
2393 2006-09-06 Kenichi Handa <handa@m17n.org>
2395 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
2396 a Lisp string from the result of emacs_memftimeu call.
2398 2006-09-06 Kim F. Storm <storm@cua.dk>
2400 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
2401 so calculate heights even when pos-visible-in-window-p is called
2402 with partially = t. Don't overshoot last_visible_y in move_it_to.
2403 Return row height and row number in new rowh and vpos args.
2404 (cursor_row_fully_visible_p): First line is always "fully visible".
2405 (try_window): Don't clear matrix if vscrolled.
2407 * lisp.h (pos_visible_p): Update prototype.
2409 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
2410 Return row height and row number for partially visible rows.
2411 Modify return value to a 2 element list for fully visible rows and
2412 6 for partially visible row.
2413 (window_scroll_pixel_based): Use pos_visible_p directly instead of
2414 Fpos_visible_in_window_p. Fix auto vscrolling for partially
2415 visible lines. Only vscroll backwards if already vscrolled
2416 forwards. Unconditionally vscroll forwards if PT is first (and
2417 only) line. Set new window start instead of scrolling at
2418 start/end of tall line.
2420 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2422 * macterm.c (install_window_handler, mac_handle_window_event)
2423 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
2424 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
2425 ASCII keystroke event.
2427 2006-09-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2429 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
2430 the file chooser message. Only call gtk_file_chooser_set_current_name
2431 when action is SAVE.
2433 2006-09-04 Andreas Schwab <schwab@suse.de>
2435 * Makefile.in: Double all single and back quotes in C-style
2436 comments to help fontifier.
2438 2006-09-03 Jason Rumney <jasonr@gnu.org>
2440 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
2441 (globals_of_w32): Register it as a signal handler.
2443 2006-09-02 Juri Linkov <juri@jurta.org>
2445 * marker.c (Fmarker_position): Doc fix.
2447 2006-09-03 Eli Zaretskii <eliz@gnu.org>
2449 * window.c (syms_of_window) <split-height-threshold>:
2450 <window-min-height, window-min-width>: Doc fix.
2452 2006-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2454 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
2455 for writing files. Call gtk_file_chooser_set_current_name to keep
2458 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
2460 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
2462 * fns.c (concat) [__GNUC__]: Declare with
2463 `__attribute__((noinline))'.
2465 * eval.c (apply1, call2) [__GNUC__]: Declare with
2466 `__attribute__((noinline))'.
2468 2006-09-02 Stuart D. Herring <herring@lanl.gov>
2470 * minibuf.c (Finternal_complete_buffer): New function.
2471 (syms_of_minibuf): Defsubr it.
2472 (Fread_buffer): Use it, instead of Vbuffer_alist.
2474 2006-09-01 Martin Rudalics <rudalics@gmx.at>
2476 * buffer.h (struct buffer_text): New field chars_modiff.
2477 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
2478 * buffer.c (Fbuffer_chars_modified_tick): New function returning
2479 value of BUF_CHARS_MODIFF.
2480 (syms_of_buffer): Defsubr it.
2481 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
2482 * insdel.c (modify_region): New argument preserve_chars_modiff.
2483 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
2484 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
2485 (adjust_after_replace, adjust_after_replace_noundo)
2486 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
2487 * lisp.h (modify_region): Add fourth argument in extern.
2488 * casefiddle.c (casify_region): Call modify_region with fourth
2489 argument zero to assert that CHARS_MODIFF is updated.
2490 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2491 (Ftranspose_regions): Likewise.
2492 * textprop.c (Fadd_text_properties, Fset_text_properties)
2493 (Fremove_text_properties, Fremove_list_of_text_properties):
2494 Call modify_region with fourth argument 1 to avoid that
2495 CHARS_MODIFF is updated.
2497 2006-08-31 Richard Stallman <rms@gnu.org>
2499 * editfns.c (Fformat): Don't sign-extend for %o or %x.
2501 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
2503 * indent.c (Fvertical_motion): Don't move back if we were
2504 displaying a Lisp string, either.
2506 2006-08-28 Kim F. Storm <storm@cua.dk>
2508 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
2509 Don't attempt to replace cursor on image glyphs.
2511 2006-08-28 Kenichi Handa <handa@m17n.org>
2513 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
2514 Fix docstring about ISO-2022 control characters.
2516 2006-08-28 Kim F. Storm <storm@cua.dk>
2518 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
2519 with a hollow box cursor if image is larger than 32x32 (or the default
2520 frame font if that is bigger). Replace any other cursor on images
2521 with hollow box cursor, as redisplay doesn't support bar and hbar
2524 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2526 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
2527 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
2529 * dired.c (directory_files_internal_unwind, directory_files_internal)
2530 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
2532 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
2535 * keyboard.c (in_sighandler): Remove variable.
2536 (Fcurrent_idle_time): Add missing `doc:'.
2537 (input_available_signal, init_keyboard): Undo previous change.
2539 * keyboard.h (in_sighandler): Remove extern.
2541 * mac.c (create_apple_event_from_event_ref, select)
2542 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2543 (Fmac_set_file_type, cfstring_create_normalized)
2544 (mac_get_system_locale, select_and_poll_event, sys_select):
2545 Use OSStatus instead of OSErr.
2547 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
2548 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
2549 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
2551 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
2552 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
2553 (get_scrap_private_timestamp, get_scrap_target_type_list)
2554 (x_own_selection, x_get_foreign_selection)
2555 (Fx_disown_selection_internal, Fx_selection_owner_p)
2556 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
2558 * macterm.c (mac_draw_string_common, mac_query_char_extents)
2559 (x_iconify_frame, XLoadQueryFont, install_window_handler)
2560 (mac_handle_command_event, init_command_handler, init_menu_bar):
2561 Use OSStatus instead of OSErr.
2562 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
2564 (x_query_font): Apply 2006-08-04 change for xterm.c.
2565 (Qhi_command): Rename from Qhicommand. All uses changed.
2567 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
2569 (FRAME_FILE_NAME): Remove macro.
2570 (install_window_handler, create_apple_event_from_event_ref):
2571 Return OSStatus instead of OSErr.
2573 2006-08-26 Kim F. Storm <storm@cua.dk>
2575 * buffer.c (Fset_buffer_multibyte):
2576 * editfns.c (Fcurrent_time, Fget_internal_run_time):
2577 * macfns.c (Fxw_color_values):
2578 * w32fns.c (Fxw_color_values):
2579 * xfns.c (Fxw_color_values): Simplify; use list3.
2581 * fileio.c (Fmake_directory_internal, Fdelete_directory)
2582 (Fdelete_file): Simplify; use list1.
2583 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
2584 Simplify; remove NO_ARG_ARRAY stuff, use list2.
2586 2006-08-25 Richard Stallman <rms@gnu.org>
2588 * buffer.c (Fswitch_to_buffer): Fix previous change.
2590 2006-08-25 Kim F. Storm <storm@cua.dk>
2592 * keyboard.c (Fcurrent_idle_time): Simplify.
2594 2006-08-25 Richard Stallman <rms@gnu.org>
2596 * fns.c (sxhash_string): Rotate properly; don't lose bits.
2598 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
2600 * xdisp.c (overline_margin): New variable.
2601 (x_produce_glyphs): Use it.
2602 (syms_of_xdisp): DEFVAR_INT it.
2604 * xterm.c (x_underline_at_descent_line): New variable.
2605 (syms_of_xterm): DEFVAR_BOOL it.
2606 (x_draw_glyph_string): Use it.
2607 Draw underline and overline up to the end of line if the face
2608 extends to the end of line.
2610 * macterm.c: Likewise.
2612 * w32term.c: Likewise.
2614 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
2616 * buffer.c (Fswitch_to_buffer): Move buffer to front of
2617 buffer-alist if necessary.
2619 2006-08-22 Kim F. Storm <storm@cua.dk>
2621 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
2622 number of items changes.
2624 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2626 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
2628 2006-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2630 * keyboard.c: Clarify difference between in_sighandler and
2633 2006-08-21 Kim F. Storm <storm@cua.dk>
2635 * macterm.c (x_draw_stretch_glyph_string):
2636 * w32term.c (x_draw_stretch_glyph_string):
2637 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
2638 stretch glyph in left marginal areas on header and mode lines.
2640 2006-08-21 Kenichi Handa <handa@m17n.org>
2642 * keyboard.c (syms_of_keyboard): Docstring of
2643 Vunread_post_input_method_events and Vunread_input_method_events
2646 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
2648 * keyboard.c (show_help_echo): Preserve mouse movement flag if
2651 2006-08-20 Richard Stallman <rms@gnu.org>
2653 * xfaces.c (load_pixmap): Add quotes in error message.
2655 * keyboard.c (Fcurrent_idle_time): New function.
2656 (syms_of_keyboard): defsubr it.
2658 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
2660 * window.c (Fset_window_fringes): Do nothing on a tty.
2661 (Fwindow_fringes): Put ? operator after the line break.
2663 2006-08-16 Andreas Schwab <schwab@suse.de>
2665 * print.c (debug_output_compilation_hack): Fix return type.
2667 2006-08-16 Richard Stallman <rms@gnu.org>
2669 * print.c (debug_output_compilation_hack): New function.
2671 2006-08-16 Kenichi Handa <handa@m17n.org>
2673 * fileio.c (choose_write_coding_system): Use LF for end-of-line
2676 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
2678 * keyboard.c (read_char): Don't change idle timer state at all if
2679 end_time is supplied.
2681 2006-08-15 Kenichi Handa <handa@m17n.org>
2683 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
2684 is exhausted, return with RET.
2685 (detect_coding_emacs_mule, detect_coding_iso2022)
2686 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2687 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
2690 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
2692 * keyboard.c (read_char): Don't reset idle timers if a time limit
2695 2006-08-14 Kim F. Storm <storm@cua.dk>
2697 * .gdbinit (pitx): Print iterator position.
2698 Limit stack dump in case iterator is not initialized.
2700 2006-08-12 Eli Zaretskii <eliz@gnu.org>
2702 * frame.c (Fmouse_position, Fmouse_pixel_position)
2703 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
2705 2006-08-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2707 * xselect.c (Fx_register_dnd_atom): New function.
2708 (syms_of_xselect): Defsubr it.
2709 (x_handle_dnd_message): Check that message_type is in
2710 dpyinfo->x_dnd_atoms before generating lisp event.
2712 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
2713 of drag and drop Atoms.
2715 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
2717 2006-08-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2719 * keyboard.c: Define in_sighandler.
2720 (input_available_signal): Set in_sighandler.
2721 (init_keyboard): Initialize in_sighandler.
2723 * keyboard.h: Declare in_sighandler.
2725 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
2726 to check if mutex should be locked or not.
2728 2006-08-09 Richard Stallman <rms@gnu.org>
2730 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
2731 (read_key_sequence): Always start fkey.start and fkey.end at 0,
2732 and likewise for keytran.
2734 2006-08-09 Kenichi Handa <handa@m17n.org>
2736 * coding.c (syms_of_coding): Improve the docstring
2737 of file-coding-system-alist.
2739 2006-08-07 Andreas Schwab <schwab@suse.de>
2741 * puresize.h (BASE_PURESIZE): Increase to 1120000.
2743 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
2745 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
2746 (Fkill_all_local_variables): Use it.
2747 (syms_of_buffer): Defvar it.
2749 2006-08-05 Eli Zaretskii <eliz@gnu.org>
2751 * w32.c (w32_valid_pointer_p): New function.
2753 * w32.h: Add prototype for w32_valid_pointer_p.
2755 * alloc.c: Include w32.h.
2756 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
2759 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
2760 is exactly equal to end_time, not only when it is past that.
2762 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
2764 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
2766 * process.c: Reapply 2006-08-01 change.
2768 2006-08-04 Eli Zaretskii <eliz@gnu.org>
2770 * w32fns.c (w32_query_font): Fix last change: use stricmp.
2772 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2774 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
2775 the before-change-functions since they may have altered the buffer.
2777 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
2779 * w32fns.c (w32_createwindow): Handle -geometry command line option
2780 and the geometry settings in the Registry.
2782 2006-08-04 Kenichi Handa <handa@m17n.org>
2784 * w32fns.c (w32_query_font): Compare names by ignoring case.
2786 * xterm.c (x_query_font): Compare names by ignoring case.
2788 2006-08-03 Jason Rumney <jasonr@gnu.org>
2790 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
2791 when no option selected.
2793 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
2795 * process.c: Revert last change.
2797 2006-08-01 Kim F. Storm <storm@cua.dk>
2799 * process.c (wait_reading_process_output_unwind): New function.
2800 Restores waiting_for_user_input_p to saved value.
2801 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
2802 instead of save/restore old value on stack.
2804 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
2806 * editfns.c: Undo 2006-06-27 change.
2808 2006-07-29 Eli Zaretskii <eliz@gnu.org>
2810 * coding.c (Ffind_operation_coding_system): Revert the change from
2813 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
2815 2006-07-28 Richard Stallman <rms@gnu.org>
2817 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
2818 Add conditional aborts for clarity.
2820 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
2821 Used to avoid running the hooks over and over for each frame.
2822 (prepare_menu_bars): Pass value from update_menu_bar
2823 as HOOKS_RUN of next call.
2825 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
2827 2006-07-28 Kim F. Storm <storm@cua.dk>
2829 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
2830 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
2832 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
2834 * keyboard.c (read_char): New arg END_TIME specifying timeout.
2835 All callers changed. Turn off echoing if END_TIME is non-NULL.
2836 (kbd_buffer_get_event): New arg END_TIME.
2838 * lread.c (read_filtered_event): New arg SECONDS to wait until.
2839 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
2841 * lisp.h: Update read-char, read-event, and read_filtered_event
2844 * keyboard.h: Include systime.h. Update read_char prototype.
2846 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2848 * alloc.c (find_string_data_in_pure): New function.
2849 (make_pure_string): Use it to reuse existing string data if possible.
2851 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
2853 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2855 * keymap.c (Fdefine_key): If the key binding definition looks like an
2856 XEmacs-style key sequence, convert it to Emacs's format.
2858 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
2860 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
2861 parameters are bound to some values, use that instead of
2864 2006-07-21 Eli Zaretskii <eliz@gnu.org>
2866 * w32.c (convert_time): Use explicit long double constants to
2867 ensure long double arithmetics is used throughout.
2869 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2871 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
2872 (init_alloc_once): Initialize them.
2873 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
2876 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
2878 2006-07-18 Francis Litterio <franl@world.std.com>
2880 * w32term.c (x_calc_absolute_position): Fix frame positioning
2881 with negative X/Y coordinates.
2883 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2885 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
2887 * textprop.c (text_read_only): Likewise.
2889 * lread.c (end_of_file_error): Likewise.
2891 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
2894 * eval.c (unwind_to_catch): Likewise.
2896 * buffer.h (buffer_slot_type_mismatch): Likewise.
2898 2006-07-18 Kim F. Storm <storm@cua.dk>
2900 Cleanup Fsignal calls that never returns; now only use it for Qquit.
2902 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
2903 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
2904 (signal_error): New no-return function (from xfaces.c).
2905 (Fthrow): Use xsignal2 instead of Fsignal + abort.
2906 (error): Use xsignal1 instead of Fsignal + abort.
2907 (FletX, Flet, grow_specpdl): Use signal_error.
2908 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
2910 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
2911 (list1): New function.
2913 * lisp.h (list1): Add EXFUN.
2914 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
2915 Add prototypes. Mark them as no-return.
2917 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
2920 * callint.c (check_mark): Use xsignal0.
2922 * casefiddle.c (casify_object): wrong_type_argument is no-return.
2924 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
2926 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
2927 (Fdefine_coding_system_internal): Use xsignal1.
2929 * data.c (circular_list_error): Use xsignal.
2930 (wrong_type_argument): Use xsignal2. Don't care about return value.
2931 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
2932 Remove loop around Fsignal.
2933 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
2934 (indirect_function, Findirect_function, Fstring_to_number)
2935 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
2936 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
2939 * doc.c (Fdocumentation): Use xsignal1.
2941 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
2943 * fileio.c (report_file_error): Use xsignal.
2944 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
2945 (Finsert_file_contents): Use xsignal2.
2946 (syms_of_fileio): Use list2, list3.
2948 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
2949 (range_error2, domain_error2): Use xsignal3.
2950 (rounding_driver, fmod_float): Use xsignal0.
2951 (float_error): Use xsignal1.
2952 (matherr): Use xsignal.
2954 * fns.c (Flength): wrong_type_argument is no-return.
2955 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
2956 (Fmd5): Use xsignal1.
2958 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
2960 * keyboard.c (recursive_edit_1): Use xsignal1.
2962 * keymap.c (Fmap_keymap): Use xsignal1.
2964 * lread.c (Fload): Use xsignal2, signal_error.
2965 (end_of_file_error): Use xsignal0, xsignal1.
2966 (read0): Use xsignal1.
2967 (invalid_syntax): New error function marked no-return.
2968 (read_integer, read1, read_list): Use it.
2970 * macselect.c (x_get_local_selection): Use signal_error.
2972 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
2974 * search.c (compile_pattern_1): Use xsignal1.
2975 (signal_failure): Remove (was only called once).
2976 (search_command): Use xsignal1 instead of signal_failure.
2978 * syntax.c (scan_lists): Use xsignal3.
2980 * textprop.c (text_read_only): Use xsignal0, xsignal1.
2982 * unexsol.c (unexec): Use xsignal.
2984 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2987 * xfaces.c (signal_error): Move to eval.c.
2988 (resolve_face_name): Use xsignal1.
2990 * xfns.c (x_decode_color): Use signal_error.
2992 * xselect.c (x_get_local_selection, copy_multiple_data)
2993 (x_get_window_property_as_lisp_data)
2994 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
2995 (Fx_get_cut_buffer_internal): Use signal_error.
2997 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2999 * macterm.c (XTread_socket): Undo previous change.
3001 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3003 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
3004 directly lookup keycode_to_xkeysym_table.
3005 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
3006 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
3007 (XTread_socket): Use character codes to construct keypad key events.
3008 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
3009 (x_delete_display): Apply 2006-07-04 change for xterm.c.
3011 2006-07-17 Richard Stallman <rms@gnu.org>
3013 * keyboard.c (Vcommand_error_function): New variable.
3014 (syms_of_keyboard): Defvar it.
3015 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
3017 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
3019 2006-07-17 Kim F. Storm <storm@cua.dk>
3021 * xdisp.c (handle_single_display_spec): Ensure the right value of
3022 it->position is saved by push_it.
3023 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
3024 (reseat_1): Don't setup it->object twice.
3025 (set_iterator_to_next): No need to set it->object after pop_it.
3026 (move_it_to): Explicitly check to see if last move reached to_charpos.
3028 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
3030 * xdisp.c (display_mode_line): Preserve match data.
3032 2006-07-14 Kim F. Storm <storm@cua.dk>
3034 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
3035 (init_winsock): Load them. Use ws2_32.dll.
3036 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
3037 (sys_accept): Undo last change. Instead, set child status to
3038 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
3039 sys_select will wakeup the reader thread.
3040 (_sys_wait_accept): New function used by reader thread to wait for
3041 an incoming connection on a server socket.
3043 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
3045 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
3046 server socket (FILE_LISTEN flag).
3048 2006-07-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3050 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
3052 2006-07-14 Kim F. Storm <storm@cua.dk>
3054 * w32.c: Fix high cpu load for server sockets.
3055 (pfn_WSAEventSelect): New function ptr.
3056 (init_winsock): Load it.
3057 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
3058 char_avail event object to FD_ACCEPT.
3059 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
3060 socket's char_avail event object to FD_READ|FD_CLOSE.
3062 * w32.h (FILE_LISTEN): New filedesc flag value.
3064 2006-07-13 Kim F. Storm <storm@cua.dk>
3066 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
3067 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
3068 Simplify loops and use CAR for Bnth and Belt.
3070 * data.c (Findirect_function): Optimize for no indirection.
3072 * eval.c (Fthrow): Remove loop around Fsignal.
3073 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
3074 Use original function name in all signaled errors.
3075 Simplify Fsignal calls (no return).
3076 (funcall_lambda): Simplify Fsignal calls (no return).
3078 2006-07-13 Andreas Schwab <schwab@suse.de>
3080 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
3083 2006-07-13 Kenichi Handa <handa@m17n.org>
3085 * editfns.c (Fformat): Fix calculation of text property positions
3088 2006-07-12 Kim F. Storm <storm@cua.dk>
3090 * lisp.h (CHECK_TYPE): New macro for generic type checking.
3091 (CAR_SAFE, CDR_SAFE): New macros.
3092 (ARRAYP, CHECK_ARRAY): New macros.
3093 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
3094 (CHECK_WINDOW_CONFIGURATION): New macro.
3095 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
3096 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3097 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
3098 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
3099 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
3100 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
3101 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3102 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
3104 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
3105 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
3107 * callint.c (Fcall_interactively):
3108 * casefiddle.c (casify_object):
3109 * editfns.c (general_insert_function):
3110 * fns.c (Flength, Felt, Ffillarray):
3111 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
3113 * data.c (wrong_type_argument): Remove loop around Fsignal.
3114 (Farrayp, Fsequencep): Use ARRAYP.
3116 (Fcar_safe): Use CAR_SAFE.
3118 (Fcdr_safe): Use CDR_SAFE.
3119 (Fsetcar, Fsetcdr): Use CHECK_CONS.
3120 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
3121 (Faset): Use CHECK_ARRAY.
3123 * fns.c (Felt): Use CHECK_ARRAY.
3124 (concat): Use CHECK_NUMBER.
3125 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
3126 (Fmemq): Use CHECK_LIST.
3127 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
3128 (assq_no_quit): Use CAR_SAFE.
3129 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
3130 Use CHECK_LIST_CONS.
3131 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
3133 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
3135 * casetab.c (check_case_table):
3136 * category.c (check_category_table):
3137 * marker.c (Fcopy_marker):
3138 * syntax.c (check_syntax_table):
3139 * xfaces.c (load_pixmap): Use CHECK_TYPE.
3141 * fns.c (Fcopy_sequence, concat):
3142 * fringe.c (Fdefine_fringe_bitmap):
3143 * lread.c (check_obarray): Cleanup wrong_type_argument use.
3145 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
3147 * keymap.c (Fdefine_key, Flookup_key):
3148 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
3150 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
3152 * search.c (Fset_match_data): Use CHECK_LIST.
3154 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
3156 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
3157 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
3159 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3161 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
3163 * dired.c: Include blockinput.h.
3164 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
3166 * editfns.c: Include blockinput.h.
3167 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
3170 * fileio.c: Include blockinput.h.
3171 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
3173 (search_embedded_absfilename): Remove spurious xfree.
3175 2006-07-11 Kim F. Storm <storm@cua.dk>
3177 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
3178 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
3179 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
3180 Signal error if TIMEOUT is not a number.
3181 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
3182 The rework of sit_for args also fixes several incorrect Qt args
3183 which should have been 1.
3184 (Fredisplay): Pass 1 instead of Qt to swallow_events and
3185 detect_input_pending_run_timers.
3187 * lisp.h (sit_for): Update prototype.
3188 (Fredisplay): Add EXFUN.
3190 * dispextern.h (sit_for): Remove prototype.
3192 * callint.c (Fcall_interactively):
3193 * minibuf.c (temp_echo_area_glyphs):
3194 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
3195 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
3197 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3199 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
3201 2006-07-11 Kim F. Storm <storm@cua.dk>
3203 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
3204 input is available. Fix test for redisplay_dont_pause non-nil.
3205 Specbind redisplay-dont-pause to t if FORCE non-nil.
3207 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
3209 * puresize.h (BASE_PURESIZE): Increment to 1211000.
3211 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
3212 (Fsit_for): Function deleted.
3214 * keyboard.c (command_loop_1, Fexecute_extended_command):
3215 Call sit_for instead of Fsit_for.
3217 * minibuf.c (temp_echo_area_glyphs): Likewise.
3219 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
3221 * syntax.c (Fforward_comment): Revert the reversion.
3222 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
3224 2006-07-09 John Paul Wallington <jpw@pobox.com>
3226 * syntax.c (Fforward_comment): Revert previous change.
3228 2006-07-09 Kim F. Storm <storm@cua.dk>
3230 * window.c (Fforce_window_update): Doc fix.
3232 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
3234 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
3235 directory unreadable for better user privacy.
3237 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
3239 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
3241 * lread.c (read_filtered_event): Remove `register' qualifier because it
3242 causes compilation problem with gcc-4.0.2-20051125 on amd64.
3243 (readevalloop): Remove unused var `bpos'.
3244 Yet another int/Lisp_Object mixup (YAILOM).
3246 2006-07-07 Eli Zaretskii <eliz@gnu.org>
3248 * keyboard.c (Fexecute_extended_command): Mention the argument
3249 PREFIXARG in the doc string.
3251 2006-07-07 Kim F. Storm <storm@cua.dk>
3253 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3255 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
3257 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
3258 clash detection using the base buffer.
3260 * puresize.h (BASE_PURESIZE): Increment to 1210500.
3262 2006-07-04 Kim F. Storm <storm@cua.dk>
3264 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
3266 2006-07-04 Kenichi Handa <handa@m17n.org>
3268 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
3269 to update Voverriding_fontspec_alist.
3271 2006-07-03 Richard Stallman <rms@gnu.org>
3273 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
3275 * xfaces.c (Fface_attribute_relative_p): Doc fix.
3277 * textprop.c (Fget_char_property_and_overlay): Doc fix.
3279 * eval.c (Fdefvaralias): Doc fix.
3281 2006-07-03 Kim F. Storm <storm@cua.dk>
3283 * dispnew.c (sit_for): Fix preempt condition.
3285 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
3287 * lread.c (read_filtered_event): Treat select-window just like
3290 2006-07-02 Kim F. Storm <storm@cua.dk>
3292 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
3293 to ever fit the tool-bar,
3294 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
3295 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
3296 (redisplay_tool_bar): Only clear desired matrix if we actually
3297 change the tool-bar window height. Only try to make the tool-bar
3298 window bigger if there is actually room for it.
3300 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
3302 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
3303 SPI_GETWORKAREA to find the dimensions of the screen work area,
3304 and adjust vertical position of the frame in order to avoid being
3305 covered by the task bar.
3307 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
3308 f->left_pos and SH_SHOW instead of f->top_pos in the call to
3309 CreateWindow. Record the actual position in f->left_pos and
3312 2006-06-30 John Paul Wallington <jpw@pobox.com>
3314 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
3315 Doc fix - default value has changed.
3317 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3319 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
3321 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
3323 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
3325 * macterm.c (Qeql): Add extern.
3326 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
3327 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
3328 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3329 Change keys of Vmac_atsu_font_table from strings to numbers.
3330 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
3331 (init_font_name_table) [USE_ATSUI]: Use it.
3332 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3333 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
3334 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
3335 only when saved_ts_script_language_on_focus coincides with
3336 Vmac_ts_script_language_on_focus.
3337 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
3338 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
3339 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
3340 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
3342 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
3344 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
3345 (Ffield_string_no_properties, Ffield_end): Mention
3346 args-out-of-range error condition in docstring.
3348 2006-06-27 Kim F. Storm <storm@cua.dk>
3350 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
3352 2006-06-25 Kim F. Storm <storm@cua.dk>
3354 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
3355 version 2.4 and later.
3357 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
3359 * xfns.c (Fx_create_frame): Set font parameter directly instead of
3360 using x_default_parameter, since x_get_args clears the parm alist.
3362 2006-06-24 Eli Zaretskii <eliz@gnu.org>
3364 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
3367 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
3369 * lread.c (read_escape): When an unknown Unicode code point is
3370 encountered as a string or character escape, signal an error.
3372 2006-06-23 Kim F. Storm <storm@cua.dk>
3374 * .gdbinit (pitx): Dump iterator stack.
3376 * xdisp.c (handle_composition_prop): Push iterator on stack.
3377 (set_iterator_to_next): Pop iterator at end of composition.
3379 2006-06-23 Martin Rudalics <rudalics@gmx.at>
3381 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
3382 itself on DOS_NT platforms, if the old and new names are identical
3383 but for the letter-case.
3385 2006-06-21 Kim F. Storm <storm@cua.dk>
3387 * dispextern.h (struct it): Add `position' member to iterator stack.
3388 Rename `pos' member to `current'. Rearrange and add comments.
3390 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
3391 if we get any overlays.
3392 (set_cursor_from_row): Don't clobber `end' if we rescan from
3394 (push_it, pop_it): Save it->position.
3396 2006-06-19 Richard Stallman <rms@gnu.org>
3398 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
3399 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
3400 for the case of a top-level window and the following minibuffer.
3401 Don't exit because of no `next' when there is a parent.
3402 Use the FIRST_ONLY feature when resizing following windows.
3404 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
3406 2006-06-17 Kim F. Storm <storm@cua.dk>
3408 * dispnew.c (update_frame): Check for input pending on entry.
3409 (update_window, update_frame_1): Break loop if input is detected.
3411 2006-06-16 Francis Litterio <flitterio@gmail.com>
3413 * xterm.c (x_check_expected_move, handle_one_xevent)
3414 (x_set_offset, x_check_fullscreen): Extensive changes to make
3415 frame positioning deterministic under X.
3417 * xterm.h (x_output): Add members left_before_move and
3418 top_before_move. Removed members expected_left and expected_top.
3420 2006-06-16 Kim F. Storm <storm@cua.dk>
3422 * dispextern.h (struct it): Add union to iterator stack to save
3423 image, composition, and stretch specific paramters.
3425 * xdisp.c (next_overlay_string): Fix assert.
3426 (push_it, pop_it): Handle composition and stretch specific values.
3427 Only handle it->slice in image (for now).
3428 (back_to_previous_visible_line_start): Continue search if newline is
3429 part of a compisition. Simplify.
3430 (reseat_1): Set it->object to buffer.
3431 (set_iterator_to_next): Set it->object to string or buffer, when
3432 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
3433 (next_element_from_composition): Set it->object to buffer if not
3435 (set_cursor_from_row): Only save start of string if not already
3436 done to handle multiple strings in a row.
3438 * .gdbinit (pitx): Show composition parameters.
3439 (pgx, pg): New commands to print a glyph structure.
3440 (pgi, pgn): New commands to print specific/next glyph.
3441 (pgrowx, pgrow): New commands to print all glyphs in a row.
3443 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3445 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3446 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
3448 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
3449 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
3450 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
3451 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3452 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3453 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
3454 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
3455 Services functions to get size of main display in pixels.
3457 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
3459 * xdisp.c (back_to_previous_visible_line_start):
3460 Reset it->continuation_lines_width.
3462 2006-06-14 Richard Stallman <rms@gnu.org>
3464 * eval.c (Fdefconst): Mark variable as risky.
3466 * callproc.c (Fcall_process): Doc fix.
3468 * window.c (adjust_window_trailing_edge): Don't break out of the loop
3469 because there's no next window, if there are parallel windows.
3470 Do break out when WINDOW is nil.
3472 2006-06-14 Kim F. Storm <storm@cua.dk>
3474 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
3475 iterator stack (instead of hardcoded number). Increase from 2 to
3476 4 to make room for propertized overlay strings before and after a
3477 display string, image or composition.
3478 (struct it): Add image_id and method members to iterator stack.
3480 * xdisp.c (init_from_display_pos): Don't set it->method and
3481 overlay_string_index after pop_it. Add asserts.
3482 (handle_stop): Look for overlay strings around a display string,
3483 image, or composition. Handle properties on those strings.
3484 (next_overlay_string): Don't set string, pos or method after pop_it.
3485 (get_overlay_strings_1): Split from get_overlay_strings; don't
3486 modify it if no overlay strings are found.
3487 (get_overlay_strings): Use get_overlay_strings_1. Always set
3488 it->string and it->method.
3489 (push_it): Push it->image_id and it->method. Push it->object
3490 instead of it->string if method is GET_FROM_IMAGE.
3491 (pop_it): Pop it->image_id and it->method. Ppo it->object
3492 instead of it->string if method is GET_FROM_IMAGE.
3493 Reset it->current.string_pos if popped it->string is nil.
3494 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
3495 whether a given change was correct; but the change is correct.
3496 Clear it->string_from_display_prop_p.
3497 (set_iterator_to_next): Rely on it->method and it->image_id from
3498 iterator stack, instead of setting them explicitly after pop_it.
3500 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
3501 negative time forces redisplay even when input is available.
3502 (Fsit_for): Doc fix.
3504 2006-06-13 Kim F. Storm <storm@cua.dk>
3506 * dispnew.c: Modify preemptive redisplay to be based on periodic
3508 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
3509 (Vredisplay_preemption_period): New variable.
3510 (syms_of_display): DEFVAR_LISP and initialize it.
3511 (preemption_period, preemption_next_check): New variables.
3512 (update_frame, update_single_window): Initialize them based on
3513 Vredisplay_preemption_period if !force_p.
3514 (update_window, update_frame_1): Use them to determine when to
3517 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
3519 * lread.c (read_escape): Provide a Unicode character escape
3520 syntax; \u followed by exactly four or \U followed by exactly
3521 eight hex digits in a comment or string is read as a Unicode
3522 character with that code point.
3524 2006-06-09 Eli Zaretskii <eliz@gnu.org>
3526 * window.c (window_scroll_pixel_based): Signal "Beginning of
3527 buffer" when scroll-down at the beginning of an empty buffer.
3529 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3531 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
3532 Exclude 0x7f from ASCII range.
3534 2006-06-05 Jason Rumney <jasonr@gnu.org>
3536 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
3537 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
3538 (x_scroll_bar_report_motion): Remove workarounds for
3539 versions of Windows NT < 3.51.
3541 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
3542 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
3544 2006-06-04 David Kastrup <dak@gnu.org>
3546 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
3549 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3551 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
3553 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
3555 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
3556 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
3557 [USE_MAC_TSM]: Likewise.
3558 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
3559 (Qbefore_string) [USE_MAC_TSM]: Add extern.
3560 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
3561 ActivateTSMDocument/DeactivateTSMDocument.
3562 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
3563 (mac_handle_window_event) [USE_MAC_TSM]: Handle
3564 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3565 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
3566 (install_window_handler) [USE_MAC_TSM]: Install it. Register
3567 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3568 (keycode_to_xkeysym_table): Add entry for f16.
3569 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
3570 before/after passing keystroke event to toolbox dispatcher.
3571 (init_tsm) [USE_MAC_TSM]: New function.
3572 (mac_initialize) [USE_MAC_TSM]: Call it.
3573 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
3575 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
3577 2006-06-02 John Paul Wallington <jpw@gnu.org>
3579 * xfns.c (x_set_name_internal): Set icon to `text', derived from
3580 name, when frame's icon_name isn't a string rather than only when
3583 2006-06-03 Eli Zaretskii <eliz@gnu.org>
3585 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
3588 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
3590 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
3593 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3595 * xdisp.c (next_element_from_composition): Set it->object to
3596 it->string if composition is coming from string.
3597 (set_cursor_from_row): Don't return 0 unless row displays a
3599 (dump_glyph): Dump composite glyph.
3601 2006-06-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3603 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
3605 2006-06-01 Richard Stallman <rms@gnu.org>
3607 * window.c (Fsplit_window): Doc fix.
3609 2006-06-01 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3611 * process.c (deleted_pid_list): New variable to store the pids
3612 of deleted processes. Declare it only if SIGCHLD is defined.
3613 (init_process): Initialize it.
3614 (syms_of_process): Staticpro it.
3615 (Fdelete_process): Add pid of the deleted process to it. Check after
3616 the addition and before the kill if the process is already stopped,
3617 in which case it is deleted from the list and not killed.
3618 (sigchld_handler): Define it only if SIGCHLD is. Search the process
3619 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
3620 Original idea by Stefan Monnier.
3622 2006-06-01 Kim F. Storm <storm@cua.dk>
3624 * dispnew.c (sit_for): Perform redisplay even if input is pending
3625 when redisplay-dont-pause is non-nil.
3627 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3629 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
3630 (XTread_socket): Remove obsolete comment.
3632 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3634 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
3637 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3639 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
3642 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
3644 2006-05-31 Juri Linkov <juri@jurta.org>
3646 * minibuf.c (Vhistory_add_new_input): New variable.
3647 (read_minibuf): Use it.
3648 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
3649 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
3651 2006-05-31 Kim F. Storm <storm@cua.dk>
3653 * process.c (select_wrapper): Add wrapper around select to work around
3654 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
3655 select called from wait_reading_process_output.
3657 2006-05-30 Andreas Schwab <schwab@suse.de>
3659 * xmenu.c (Fmenu_bar_start): Return a value.
3661 2006-05-30 Richard Stallman <rms@gnu.org>
3663 * coding.c (Ffind_operation_coding_system): Doc fix.
3665 2006-05-30 Eli Zaretskii <eliz@gnu.org>
3667 * w32term.c (x_draw_hollow_cursor): Fix last change.
3669 2006-05-29 Kim F. Storm <storm@cua.dk>
3671 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
3673 2006-05-29 Eli Zaretskii <eliz@gnu.org>
3675 * coding.c (Ffind_operation_coding_system): Doc fix.
3677 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3679 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
3680 Call mac_set_font_info_for_selection if font panel is made visible.
3682 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
3683 (mac_font_panel_visible_p, mac_show_hide_font_panel)
3684 [USE_MAC_FONT_PANEL]: New functions.
3685 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
3686 Return immediately if font panel is not visible.
3688 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
3691 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
3693 * search.c (matcher_overflow): Mark as NO_RETURN.
3695 * xterm.c (x_connection_closed): Likewise.
3697 * sysdep.c (croak): Likewise.
3699 * sound.c (sound_perror, alsa_sound_perror): Likewise.
3701 * lisp.h (die, nsberror): Likewise.
3703 2006-05-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3705 * sound.c (alsa_open, alsa_configure, alsa_write):
3706 Move assignment to err out of if-statement.
3708 * gtkutil.c (menu_nav_ended): New function.
3709 (create_menus): Connect menu_nav_ended to "selection-done" to fix
3712 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
3714 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
3716 * charset.h (invalid_character): Mark as NO_RETURN.
3718 2006-05-29 Kenichi Handa <handa@m17n.org>
3720 * coding.c (Ffind_operation_coding_system): Call a function by
3721 safe_call1 instead of call1.
3723 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3725 * window.c (struct saved_window): Add `dedicated'.
3726 (Fset_window_configuration, save_window_save): Save/restore the
3729 2006-05-28 Kim F. Storm <storm@cua.dk>
3731 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
3732 don't update w->cursor and return 0. Return 1 on success.
3733 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
3736 * dispextern.h (set_cursor_from_row): Update prototype.
3738 2006-05-28 Kim F. Storm <storm@cua.dk>
3740 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
3741 parameters. Adjust x and width in case cursor in on a partially
3742 visible stretch glyph on the left edge.
3743 (erase_phys_cursor): Don't erase into left fringe/margin in case
3744 previous cursor glyph is a partially visible stretch glyph on left.
3746 * dispextern.h (get_phys_cursor_geometry): Update prototype.
3748 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
3749 cursor and erasing cursor on partially visible stretch glyph on left.
3750 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
3752 * macterm.c: Likewise.
3754 * w32term.c: Likewise.
3756 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3758 * macselect.c (mac_handle_apple_event):
3759 Return errAEEventNotHandled if key binding is not found.
3761 2006-05-26 Eli Zaretskii <eliz@gnu.org>
3763 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
3764 [__MINGW32__]: MinGW-specific declaration of `etext'.
3766 * w32heap.c (etext, edata): Remove unused definitions.
3768 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
3770 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
3771 Incorporate the exclusive file-opening functionality into the behavior
3772 when OK-IF-ALREADY-EXISTS is nil.
3773 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
3775 2006-05-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3777 * sound.c (alsa_configure): Move get period/buffer_size after
3780 2006-05-26 Kenichi Handa <handa@m17n.org>
3782 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
3783 . BUFFER) in TARGET.
3785 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
3787 * image.c (png_load): Don't call fclose on NULL.
3789 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
3791 * fns.c (Fyes_or_no_p):
3792 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
3795 2006-05-25 Juri Linkov <juri@jurta.org>
3797 * lisp.h (Fread_from_minibuffer): Decrement number of args.
3799 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
3800 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
3802 * buffer.c (mode-line-format): Fix docstring.
3804 2006-05-25 Richard Stallman <rms@gnu.org>
3806 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
3808 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
3810 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3812 2006-05-24 Alan Mackenzie <acm@muc.de>
3814 * lread.c (Vload_history): Enhance doc-string to say that the file
3815 is the absolute truename of the loaded file.
3817 * lread.c (Vafter_load_alist): doc-string: state that an element
3818 now has a regexp to match file names, not a file name as such.
3820 * lread.c (readevalloop): Call file-truename on the name for
3821 load-history, except at preloading time.
3823 * lread.c (Fload): At preloading time, preserve the extension of
3824 the filename which goes into load-history. New var hist_file_name.
3826 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
3827 function do-after-load-evaluation.
3829 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3831 * mac.c (ae_attr_table): New variable.
3832 (syms_of_mac): Intern and staticpro its elements.
3833 (mac_aelist_to_lisp): Also convert Apple event attributes.
3834 (mac_ae_put_lisp): New function.
3835 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
3837 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
3839 * macselect.c (Qemacs_suspension_id): New variable.
3840 (syms_of_macselect): Intern and staticpro it.
3841 (struct suspended_ae_info): New struct.
3842 (deferred_apple_events, defer_apple_events)
3843 (Fmac_process_deferred_apple_events): Use it.
3844 (suspended_apple_events): New variable.
3845 (mac_handle_apple_event_1): New function.
3846 (mac_handle_apple_event): Use it. Don't process previously
3848 (cleanup_suspended_apple_events, get_suspension_id)
3849 (cleanup_all_suspended_apple_events): New functions.
3850 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
3852 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
3853 (Fmac_resume_apple_event): New defuns.
3854 (syms_of_macselect): Defsubr them.
3856 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
3857 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
3859 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
3860 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
3861 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
3862 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3863 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3865 (typeUTF8Text, kEventParamWindowMouseLocation)
3866 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
3867 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
3869 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3871 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
3872 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
3873 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
3874 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
3875 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
3876 resource to backtranslate key with modifiers.
3877 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
3879 2006-05-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3881 * xterm.c: Remove declarations already in xterm.h
3883 * xterm.h: Add extern declarations for x_clear_errors,
3884 x_fully_uncatch_errors, x_catching_errors and
3885 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
3887 2006-05-21 Richard Stallman <rms@gnu.org>
3889 * xfaces.c (best_matching_font): Abort for best == NULL
3890 before we start to use it.
3892 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
3894 2006-05-20 Kim F. Storm <storm@cua.dk>
3896 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
3898 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3900 * macterm.c (convert_fn_keycode): Fix last change.
3902 2006-05-19 Eli Zaretskii <eliz@gnu.org>
3904 * w32.c (init_environment): Perform the processing of environment
3905 variables on a copy of default variables and their values, not on
3906 the original. Simplify code that calls ExpandEnvironmentStrings
3907 and make buf1[] and buf2[] more visible for easier debugging.
3909 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3911 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
3913 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
3915 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
3917 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
3918 Forward keyUp events to toolbox_dispatcher.
3920 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
3922 2006-05-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3924 * config.in: Regenerated (HAVE_ALSA).
3926 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
3927 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
3928 (snd_error_quiet, alsa_init): New functions.
3929 (vox_init): Return 0 if unable to open device.
3930 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
3932 (struct sound_device): Add period_size.
3933 (wav_play, au_play): Use period_size if set.
3935 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
3936 (ALL_CFLAGS): Add CFLAGS_SOUND.
3938 2006-05-18 Kenichi Handa <handa@m17n.org>
3940 * callproc.c (Fcall_process): Reject encoding arguments by
3941 ascii-incompatible coding systems (e.g. utf-16).
3943 * coding.c (Qascii_incompatible): New variable.
3944 (syms_of_coding): Setup Qascii_incompatible.
3945 (setup_coding_system): Be sure to initialize coding->common_flags.
3946 Check `ascii-incompatible' property of the coding system.
3948 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
3950 2006-05-18 Kim F. Storm <storm@cua.dk>
3952 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
3953 geometry when backtracking in case last image doesn't fit on line.
3955 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
3957 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
3958 more than height of one frame default line.
3960 2006-05-17 Richard Stallman <rms@gnu.org>
3962 * xfaces.c (better_font_p): Any font beats no font.
3963 (best_matching_font): Simplify based on above change.
3965 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
3967 2006-05-16 Kim F. Storm <storm@cua.dk>
3969 * xterm.c (handle_one_xevent): Check that f is not NULL before
3970 calling x_kill_gs_process.
3972 2006-05-14 Richard Stallman <rms@gnu.org>
3974 * textprop.c (Fnext_single_char_property_change)
3975 (Fprevious_single_char_property_change): Don't allow returning
3976 value beyond LIMIT in any cases.
3977 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
3979 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
3981 2006-05-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3983 * xterm.c (handle_one_xevent): Check that f is not NULL before
3984 calling _XEditResCheckMessages.
3986 2006-05-14 Kim F. Storm <storm@cua.dk>
3988 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
3990 2006-05-13 Eli Zaretskii <eliz@gnu.org>
3992 * frame.c (x_set_border_width): Fix error message to say "frame",
3995 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3997 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
3999 * intervals.c (set_point_both): Fix mixup before before and after
4002 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
4003 while setting point temporarily.
4005 2006-05-11 Richard Stallman <rms@gnu.org>
4007 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
4009 2006-05-11 Kim F. Storm <storm@cua.dk>
4011 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
4013 2006-05-11 Kenichi Handa <handa@m17n.org>
4015 * fileio.c (Finsert_file_contents): Fix for the case of IO error
4016 while handling replace operation.
4018 2006-05-10 Kenichi Handa <handa@m17n.org>
4020 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
4021 chosen for the default face was different from the frame font,
4022 adjust the frame font.
4024 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4026 * image.c (Qduration) [MAC_OS]: Undo previous change.
4027 (syms_of_image) [MAC_OS]: Likewise.
4028 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
4030 * macfns.c (x_to_mac_color): Fix shift amount change.
4031 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
4032 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
4034 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
4035 Vmac_services_selection. All uses changed.
4036 (mac_store_service_event): Rename from mac_store_services_event in
4039 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
4041 [MAC_OSX] (mac_store_service_event): Rename from
4042 mac_store_services_event. All callers changed.
4043 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
4044 FACE_ID and C. All callers changed.
4045 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
4046 mac_set_font_info_for_selection when focus frame is destroyed.
4047 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
4049 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
4052 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
4054 * keymap.c (describe_map): Avoid generating duplicate entries if
4055 the shadowed binding has the same definition.
4057 2006-05-09 Kenichi Handa <handa@m17n.org>
4059 * keymap.c (push_key_description): Handle invalid character key.
4061 2006-05-08 Kenichi Handa <handa@m17n.org>
4063 * callproc.c (Fcall_process): Use system_eol_type for encoding
4064 arguments if eol_type is not yet decided.
4066 * coding.h (system_eol_type): Extern it.
4068 * coding.c (setup_coding_system): For invalid coding-system, set
4069 coding->eol_type to CODING_EOL_UNDECIDED.
4070 (encode_coding): Cancel previous change.
4071 (shrink_encoding_region): Likewise.
4072 (code_convert_region1): Likewise.
4073 (code_convert_string1): Likewise.
4074 (code_convert_string_norecord): Likewise.
4076 * fileio.c (choose_write_coding_system): Use system_eol_type for
4077 encoding if eol_type is not yet decided.
4079 * process.c (setup_process_coding_systems): Use system_eol_type
4080 for encoding if eol_type is not yet decided.
4081 (read_process_output): Likewise.
4082 (send_process): Likewise.
4084 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
4086 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
4088 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4090 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
4091 (syms_of_mac): Likewise for defsubr.
4093 * macfns.c (mac_set_font): New function.
4094 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
4095 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
4096 kWindowToolbarButtonAttribute when creating window.
4097 (Fmac_clear_font_name_table): Move from macfns.c.
4098 (syms_of_macfns): Likewise for defsubr.
4099 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
4100 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
4102 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
4103 and build is done on Mac OS X 10.2 and later.
4105 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
4106 (mac_store_services_event): Change return type in extern.
4108 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
4110 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
4111 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
4112 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
4113 (QWindow) [MAC_OSX]: Likewise.
4114 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
4115 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
4116 (syms_of_macterm) [USE_ATSUI]: Defvar it.
4117 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
4118 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
4119 (syms_of_macterm): Intern and staticpro them.
4120 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
4121 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
4123 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
4124 [MAC_OSX] (mac_store_services_event): Likewise.
4125 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
4126 kEventWindowToolbarSwitchMode event.
4127 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
4128 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
4129 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
4130 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
4131 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
4133 * macterm.h (mac_set_font_info_for_selection): Add extern.
4135 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4137 * image.c (Qduration) [MAC_OS]: New variable.
4138 (syms_of_image) [MAC_OS]: Intern and staticpro it.
4139 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
4140 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
4141 instead of cfstring_create_with_string.
4143 2006-05-06 Kim F. Storm <storm@cua.dk>
4145 * .gdbinit (xframe): Print frame name.
4146 (xlist): New command to print a list (max 10 elements).
4147 (xpr): Print lisp object of any type.
4148 (pitx): Print it->pixel_width.
4150 2006-05-05 Kenichi Handa <handa@m17n.org>
4152 * xdisp.c (handle_composition_prop): Fix for the case of empty
4153 composition component.
4155 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4157 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
4160 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
4163 * macterm.h (mac_make_lispy_event_code): Remove extern.
4164 (mac_post_mouse_moved_event): Add extern.
4165 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4166 `const AEDesc *' in externs.
4167 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
4169 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4171 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
4172 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
4173 Use xrealloc instead of repeated xmalloc/xfree.
4174 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
4177 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
4179 * macselect.c: Update copyright year.
4180 (mac_store_apple_event): Change return type to void in extern.
4181 (mac_handle_apple_event): Don't get return value from
4182 mac_store_apple_event.
4183 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
4184 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
4185 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
4186 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
4187 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
4188 implementation using create_apple_event_from_drag_ref.
4189 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4190 (mac_do_receive_dragUPP): Move variables from macterm.c.
4191 (install_drag_handler, remove_drag_handler): New functions.
4193 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
4194 path select also for proxy icon click.
4195 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
4196 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
4197 (xlfdpat_create): Remove unused label `error' and trailing sentences.
4198 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
4199 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
4201 (install_drag_handler, remove_drag_handler): Add extern.
4202 (mac_store_apple_event): Change return type to void. All uses changed.
4203 Create Lisp object from Apple event and store it into input event.
4204 (mac_make_lispy_event_code): Remove function.
4205 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
4206 (install_window_handler): Call install_drag_handler.
4207 (remove_window_handler): Call remove_drag_handler.
4209 2006-05-03 Richard Stallman <rms@gnu.org>
4211 * sound.c (Fplay_sound_internal): Dynamically allocate
4212 current_sound_device and current_sound.
4213 (sound_cleanup): Free them.
4215 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
4216 when inside a keyboard macro.
4218 2006-05-02 Andreas Schwab <schwab@suse.de>
4220 * xmenu.c (restore_menu_items): Return a value.
4222 2006-05-01 Martin Rudalics <rudalics@gmx.at>
4224 * syntax.c (Fforward_comment): Detect generic comment at beginning of
4225 buffer when moving backwards.
4227 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4229 * dispnew.c (update_window): Don't set changed_p when mode/header
4232 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
4233 (get_glyph_face_and_encoding, get_char_face_and_encoding):
4234 Don't distinguish known faces from others.
4236 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
4237 through typeFileURL failed.
4239 * macfns.c (mac_update_title_bar): New function.
4240 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
4241 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
4242 Call mac_prepare_for_quickdraw.
4244 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
4245 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
4246 (enum pcm_status): New enum.
4247 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
4248 (XCharStructRow): Remove. Now validity is represented by
4249 non-negativeness of sum of ascent and descent.
4250 (struct MacFontStruct): Change type of member `rows'.
4251 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
4253 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
4254 Adjust endpoints of strictly horizontal/vertical lines.
4255 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
4256 (pcm_init, pcm_get_status): New functions.
4257 (x_per_char_metric, XLoadQueryFont): Use them instead of
4258 XCharStructRow and related macros.
4259 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
4260 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
4261 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
4262 and window path pop-up menu on title bar.
4263 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
4265 * macterm.h (mac_update_title_bar): Add extern.
4266 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
4267 (FRAME_FILE_NAME): New macro.
4269 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
4271 2006-04-30 Richard Stallman <rms@gnu.org>
4273 * keymap.c (Fdefine_key): Improve error message
4274 when KEY begins with a non-prefix key.
4276 2006-04-30 Martin Rudalics <rudalics@gmx.at>
4278 * syntax.c (Fforward_comment): Don't forget to break out of the loop
4279 when we skipped backward over a generic comment.
4281 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
4283 * .gdbinit (pp1, pv1): Only print value as expression is now
4284 printed out by gud-print.
4285 (pv1): Correct doc string.
4287 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
4289 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
4290 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
4291 keymap.c:895: error: address of register variable `def' requested.
4293 2006-04-26 Jason Rumney <jasonr@gnu.org>
4295 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
4297 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
4298 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
4299 where we preempt mouse_button_timer.
4301 2006-04-25 Miles Bader <miles@gnu.org>
4303 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
4305 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
4307 * process.h: Include headers for pid_t.
4309 2006-04-24 Kim F. Storm <storm@cua.dk>
4311 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
4312 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
4313 (produce_stretch_glyph): Assume that face box height and width is
4314 already included in stretch glyph size so caller doesn't have to
4315 consider the extra space otherwise added (fixes problem in ses.el).
4317 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
4318 matrices to force recalculation of tool-bar height after font change.
4320 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
4321 Clear it when done, so we don't accidentally draw a second copy of
4322 the tool-bar after resetting f->n_tool_bar_rows.
4323 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
4324 we recalculate f->n_tool_bar_rows.
4326 2006-04-23 Lars Hansen <larsh@soem.dk>
4328 * editfns.c (find_field): Fix comment.
4329 (Ffield_beginning): Fix bug when POS is at field beginning.
4331 2006-04-22 Eli Zaretskii <eliz@gnu.org>
4333 * puresize.h (BASE_PURESIZE): Increase to 1205000.
4335 2006-04-21 Kim F. Storm <storm@cua.dk>
4337 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
4338 window start is at BEGV.
4340 * dispextern.h (struct image): New member `corners'.
4341 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
4343 * image.c (four_corners_best): New arg CORNERS specifies what pixels
4344 to look at in case image has margin.
4345 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
4346 (image_background, image_background_transparent)
4347 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
4348 (gif_load): Set img->corners according to image's margin spec.
4349 Use img->corners values directly where applicable.
4350 Save image extension data in img->data.lisp_val.
4351 (gif_clear_image): New function to free img->data.lisp_val.
4352 (gif_type): Use it instead of generic x_clear_image.
4353 (Fimage_extension_data): New defun.
4354 (syms_of_image): Defsubr it.
4356 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
4358 * window.c (Fdisplay_buffer): Doc fix.
4360 2006-04-21 Eli Zaretskii <eliz@gnu.org>
4362 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
4364 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4366 * image.c [MAC_OS] (xpm_load_image): Fill in background field
4367 while we have ximg handy.
4369 * macmenu.c (restore_menu_items, save_menu_items): New functions
4371 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
4372 changes for xmenu.c.
4374 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
4375 (add_mac_font_name): New function.
4376 (init_font_name_table): Use it. Adopt the first found font from
4377 those having the same family name.
4379 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
4381 * xdisp.c (note_mouse_highlight): Use build_string.
4383 2006-04-20 Lars Hansen <larsh@soem.dk>
4385 * textprop.c (Fremove_list_of_text_properties):
4386 Ensure modify_region is called only when buffer is modified and that
4387 signal_after_change is allways called in that case.
4389 * print.c (PRINTFINISH): Call signal_after_change.
4391 2006-04-20 Kim F. Storm <storm@cua.dk>
4393 * xdisp.c (redisplay_window): Fix last change.
4395 * xdisp.c (redisplay_window): If current window start is not at the
4396 beginning of a line, select a new window start if buffer is modified
4397 and window start is in the modified region, but the first change is
4398 before window start.
4400 2006-04-18 Richard Stallman <rms@gnu.org>
4402 * xmenu.c (restore_menu_items, save_menu_items): New fns.
4403 (set_frame_menubar): Use save_menu_items. Save updated vector in
4404 the frame before unwinding it. Don't use unuse_menu_items.
4405 Don't use discard_menu_items.
4406 (digest_single_submenu): Abort if an item is not in a pane.
4407 (init_menu_items): Put the error check at the top.
4409 * keymap.c (describe_map): Make "shadowed" warning more verbose.
4411 * window.c (adjust_window_trailing_edge): Correctly distinguish
4412 series vs parallel cases, even when window has no parent.
4414 * abbrev.c (record_symbol): New function.
4415 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
4417 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4419 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
4422 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4423 (create_apple_event_from_event_ref, xrm_get_preference_database)
4424 (cfstring_create_normalized): Don't check return value of xmalloc.
4426 * macselect.c (get_scrap_target_type_list, defer_apple_events)
4427 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
4428 return value of xmalloc/xrealloc.
4430 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
4431 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
4432 (XLoadQueryFont, mac_store_apple_event): Don't check return value
4435 2006-04-17 Kim F. Storm <storm@cua.dk>
4437 * window.c (coordinates_in_window): On the vertical border,
4438 calculate the row number measured from the top of the window, not
4439 the top of the frame.
4440 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
4441 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
4443 2006-04-16 Eli Zaretskii <eliz@gnu.org>
4445 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
4447 2006-04-16 Romain Francoise <romain@orebokech.com>
4449 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
4451 2006-04-16 Andreas Schwab <schwab@suse.de>
4453 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
4455 2006-04-15 Romain Francoise <romain@orebokech.com>
4457 * puresize.h (BASE_PURESIZE): Increment to 1210000.
4459 2006-04-13 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4461 * print.c (Fprin1_to_string): Mention in the `doc' that the
4462 behavior is modified by `print-level' and `print-length'.
4464 2006-04-13 Kenichi Handa <handa@m17n.org>
4466 * coding.c (setup_coding_system): If eol-type is not yet decided
4467 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
4468 If coding_system is nil, return 0.
4469 (code_convert_region1): Even if coding_system is nil, don't skip
4470 conversion if system_eol_type is not LF.
4471 (code_convert_string1): Likewise.
4472 (code_convert_string_norecord): Likewise.
4474 2006-04-13 Kenichi Handa <handa@m17n.org>
4476 * coding.c (setup_coding_system): Fix previous change.
4477 (encode_coding): If eol_type is not yet decided, use system_eol_type.
4478 (shrink_encoding_region): If eol_type is not yet decided and
4479 system_eol_type is not LF, don't shrink.
4481 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
4483 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
4486 2006-04-12 Richard Stallman <rms@gnu.org>
4488 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
4490 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
4491 (Fprocess_send_eof): Abort if fail to open null device.
4493 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4495 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
4497 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
4498 assignment used as truth value. Add explicit braces to avoid
4500 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
4502 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
4503 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
4504 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
4505 Put externs in #ifdef HAVE_X_WINDOWS.
4506 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
4507 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
4508 (init_mac_osx_environment) [MAC_OSX]: Add extern.
4510 * mac.c (init_process): Remove undef.
4511 (select) [MAC_OSX]: Undefine before including sysselect.h.
4512 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
4513 Remove functions and prototypes.
4514 (parse_value): Add parentheses around + inside shift.
4515 (path_from_vol_dir_name): Make static.
4516 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
4517 [!MAC_OSX] (get_path_to_system_folder): Likewise.
4518 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
4520 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
4521 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
4523 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
4524 (x_set_mouse_color): Remove unused variable `dpy'.
4525 (Fx_create_frame): Remove unused variable `x_frame_count'.
4526 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
4527 (x_sync): Move from macterm.c.
4528 (Fx_file_dialog): Remove unused variable `default_filter_index'.
4530 * macmenu.c (min_menu_id): Make element type explicit.
4532 * macselect.c (get_flavor_type_from_symbol): Remove unused
4534 (get_scrap_private_timestamp, x_get_foreign_selection)
4535 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
4536 (Fmac_process_deferred_apple_events): Remove unused variables
4537 `keyword', `reply', `apple_event', `count', and `err'.
4539 * macterm.c: Don't include gnu.h.
4540 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
4541 (x_sync): Move to macfns.c.
4542 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
4543 variable `mask_bits'.
4544 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
4545 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
4546 (x_mac_to_emacs_modifiers): Remove function.
4547 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
4548 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
4549 Add explicit braces to avoid ambiguous `else'.
4550 (x_make_frame_visible): Remove unused variables `type',
4551 `original_top', and `original_left'.
4552 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
4553 (x_load_font): Remove unused variables `full_name', and `value'.
4554 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
4556 (do_zoom_window): Reorganize variables with respect to conditionals.
4557 (init_command_handler): Remove unused variable `err'.
4558 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
4560 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
4561 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
4562 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
4563 (do_menu_choice, have_menus_p, x_real_positions)
4564 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
4565 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
4566 (free_frame_menubar): Add externs.
4568 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
4569 (malloc, realloc, free): Add undefs.
4570 (read_load_commands): Remove unused variable `n' and `j'.
4571 (copy_data_segment): Remove unused variable `r'.
4573 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
4574 within ||. Add explicit braces to avoid ambiguous `else'.
4575 (dump_glyph_row): Remove label for `inverse_p' from legend.
4577 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
4578 Add explicit braces to avoid ambiguous `else'.
4580 2006-04-11 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4582 * dispnew.c (init_display): Don't init X display if the user asked
4583 for a non-X display.
4585 2006-04-12 Kenichi Handa <handa@m17n.org>
4587 * coding.c (setup_coding_system): Use system_eol_type for default
4590 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4592 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
4594 * data.c (wrong_type_argument): Try to avoid compiler warnings due
4595 to the fact the function is now marked as NO_RETURN.
4597 2006-04-10 Eli Zaretskii <eliz@gnu.org>
4599 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
4601 2006-04-10 Romain Francoise <romain@orebokech.com>
4603 * xrdb.c (gethomedir): Use xstrdup.
4605 2006-04-10 Andreas Schwab <schwab@suse.de>
4607 * xrdb.c (gethomedir): Make sure to always return a pointer that
4608 can be passed to free.
4610 2006-04-09 Richard Stallman <rms@gnu.org>
4612 * lisp.h (Fkill_emacs): Undo previous change.
4614 2006-04-08 Richard Stallman <rms@gnu.org>
4616 * search.c (boyer_moore): Test ch >= 0400, not >.
4618 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
4620 * puresize.h (pure_write_error): Mark as NO_RETURN.
4622 * lisp.h (args_out_of_range, args_out_of_range_3)
4624 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4626 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
4627 if a menu is active on this frame.
4629 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
4631 * lisp.h (report_file_error): Mark as NO_RETURN.
4633 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4635 * alloc.c [STDC_HEADERS]: Include stddef.h.
4637 * lisp.h (PSEUDOVECSIZE): Fix last change.
4639 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4641 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
4642 `raw_status_high', and `raw_status_low' with plain integers, and move
4643 them to the end of the structure.
4645 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
4646 pseudovector's size field so only the Lisp_Object fields get GC'd.
4648 * process.c (update_status, make_process, Fdelete_process)
4649 (Fprocess_status, list_processes_1, start_process_unwind)
4650 (create_process, Fmake_network_process, server_accept_connection)
4651 (wait_reading_process_output, send_process, Fprocess_running_child_p)
4652 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
4653 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
4654 `pid' and `raw_status'.
4655 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
4656 representing PIDs that are larger than most-positive-fixnum.
4658 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
4660 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
4662 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4664 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
4666 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
4668 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
4669 ../lib-src/b2m.c and ../lib-src/editfns.c.
4670 (Fcurrent_time_string): Use it.
4671 Document that the year might not consume 4 columns if it's outside
4672 the range 1000-9999.
4673 Check for asctime failure.
4674 Don't assume that the output string length is always exactly 24.
4676 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4678 * macterm.c (XTread_socket): Initialize variable `f' before its use.
4680 2006-04-03 Kenichi Handa <handa@m17n.org>
4682 * image.c: Include "charset.h" and "coding.h".
4683 (x_find_image_file): Return an encoded file name.
4685 2006-04-01 Eli Zaretskii <eliz@gnu.org>
4687 * configure: Regenerated.
4689 2006-03-31 Kenichi Handa <handa@m17n.org>
4691 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
4693 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4695 * xdisp.c (syms_of_xdisp): Fix variable name.
4697 2006-03-30 Kenichi Handa <handa@m17n.org>
4699 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
4701 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
4703 * keyboard.c (process_tool_bar_item): Reorder dummy args.
4705 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4707 * keyboard.c (tool_bar_items): Use map_keymap.
4708 (process_tool_bar_item): Add dummy args to fit the required interface.
4710 2006-03-25 Eli Zaretskii <eliz@gnu.org>
4712 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
4713 to zero before calling debug_print or safe_debug_print.
4715 * print.c (print_output_debug_flag): New global variable.
4716 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
4717 OutputDebugString if print_output_debug_flag is zero.
4719 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
4721 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
4722 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
4723 (Fdecode_time): Cast tm_year to EMACS_INT.
4724 (Fcurrent_time_string): Report an invalid time specification if
4725 the argument is invalid. Also, check for out-of-range time stamps.
4727 2006-03-24 Kim F. Storm <storm@cua.dk>
4729 * xterm.c (handle_one_xevent):
4730 * w32term.c (w32_read_socket):
4731 * macterm.c (XTread_socket): Don't let key-press clear mouse face
4732 on in toolbar window if mouse-highlight is an integer.
4734 * fns.c (sxhash_list): Include last non-nil CDR in hash.
4736 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4738 * macmenu.c (enum mac_menu_kind): New enum.
4739 (min_menu_id): New variable.
4740 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
4741 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
4742 min_menu_id and enumerators in enum mac_menu_kind.
4743 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
4744 All uses changed. Add range check for menu ID.
4745 (fill_menubar): Add range check for menu ID.
4746 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
4748 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
4751 2006-03-22 Kim F. Storm <storm@cua.dk>
4753 * xdisp.c: Undo 2006-03-21 change.
4755 * term.c: Define aliases for append_glyph and produce_stretch_glyph
4756 when `static' is defined to avoid name clash with those in xdisp.c.
4758 * process.c (Faccept_process_output): Fix to comply with lisp
4759 reference. Change arg "timeout" to "seconds" and allow both
4760 integer and float value. Change arg "timeout-msec" to "millisec"
4761 and interpret" as milliseconds rather than microseconds. Fix doc
4764 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
4766 * xdisp.c (store_next_glyph): Rename from append_glyph.
4767 (generate_stretch_glyph): Rename from produce_stretch_glyph.
4768 All callers changed accordingly.
4770 2006-03-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4772 * xterm.c: x_session_initialized new variable.
4773 (x_term_init): Use x_session_initialized to check if
4774 x_session_initialize should be called.
4775 (x_initialize): Initialize x_session_initialized.
4777 2006-03-21 Kim F. Storm <storm@cua.dk>
4779 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
4780 bitmap here, but ...
4781 (update_window_fringes): ... here, so we can test if it has changed.
4783 2006-03-20 Andreas Schwab <schwab@suse.de>
4785 * dispnew.c (init_display): Check DISPLAY here.
4787 * emacs.c (main): Don't check here.
4789 * xterm.c (x_display_ok): Don't use DISPLAY env var.
4791 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4793 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
4796 2006-03-20 Eli Zaretskii <eliz@gnu.org>
4798 * emacs.c (main): Fix last change.
4800 2006-03-20 Kenichi Handa <handa@m17n.org>
4802 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
4804 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
4806 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
4808 * xterm.c (x_term_init): Remove unnecessary GCPRO.
4810 2006-03-19 Kim F. Storm <storm@cua.dk>
4812 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
4813 so it doesn't associate overlay string with following glyph by default.
4814 Allow integer property value to specify explicit number of buffer
4815 positions associate with overlay string.
4817 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
4819 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
4821 2006-03-18 Nozomu Ando <nand@mac.com>
4823 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
4824 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
4825 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
4828 * m/mips.h: Don't use unexmips on NetBSD.
4829 (LIBS_MACHINE): Move definition lower, so it doesn't use
4830 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
4831 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
4833 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
4834 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
4835 option is broken (e.g., MIPS/NetBSD).
4837 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
4839 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
4840 Remove the HAVE_X_WINDOWS conditional.
4842 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
4844 * emacs.c (main): If user asks for a display that is unavailable,
4847 * xterm.c (x_display_ok): New function.
4849 * xterm.h: Add prototype for x_display_ok.
4851 2006-03-18 Eli Zaretskii <eliz@gnu.org>
4853 * w32fns.c (Fw32_select_font): Doc fix.
4855 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4857 * image.c [MAC_OS] (XPutPixel, XGetPixel)
4858 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
4859 version when depth is 32.
4860 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
4862 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
4863 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
4865 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
4866 Create GWorld in ARGB pixel format.
4867 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
4869 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
4870 instead of mac_copy_area/mac_copy_area_with_mask.
4872 2006-03-15 Kim F. Storm <storm@cua.dk>
4874 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
4875 empty row. Fixes memory corruption revealed by 2006-03-02 change.
4876 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
4877 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
4878 width is exactly the same as the window width. Don't count a final
4879 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
4881 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
4883 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
4884 conditional on HAVE_NTGUI, not WINDOWS_NT.
4886 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4888 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
4890 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
4892 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
4893 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
4894 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
4895 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
4896 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
4897 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
4898 instead of mac_draw_bitmap.
4899 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
4900 define_fringe_bitmap and destroy_fringe_bitmap.
4902 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
4904 * xterm.c (x_uncatch_errors): Block input for entire function.
4906 2006-03-12 Jason Rumney <jasonr@gnu.org>
4908 * w32fns.c (Fx_create_frame): Remove call to
4909 Qface_set_after_frame_default (from xfns.c 2003-05-26).
4911 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
4912 finished with the menu.
4914 * w32term.c: Sync 2005-10-24 xterm.c changes.
4915 (last_mouse_glyph_frame): New var.
4916 (note_mouse_movement): Say mouse moved if current frame differs
4917 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4918 (w32_mouse_position): Set last_mouse_glyph_frame.
4919 Remove OLD_REDISPLAY_CODE block.
4921 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4923 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
4925 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
4926 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
4928 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4930 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
4932 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
4933 (x_draw_composite_glyph_string_foreground)
4934 (x_draw_image_foreground): Undo previous changes.
4935 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
4936 argument of mac_draw_rectangle.
4937 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
4938 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
4939 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
4940 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
4941 [USE_CG_DRAWING]: New functions.
4942 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
4943 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
4944 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
4945 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
4946 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
4947 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
4948 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4950 2006-03-12 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4952 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
4954 2006-03-11 Jason Rumney <jasonr@gnu.org>
4956 * w32fns.c (signal_user_input): New function.
4957 (post_character_message): Use it for keyboard input.
4958 (w32_msg_pump): Use it for mouse input.
4960 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
4962 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
4963 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
4965 2006-03-11 Eli Zaretskii <eliz@gnu.org>
4967 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
4968 if a menu is already active (the menubar_active flag is on).
4970 2006-03-11 David Ponce <david@dponce.com>
4972 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
4974 2006-03-11 Eli Zaretskii <eliz@gnu.org>
4976 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
4977 the list of unused display error handling functions.
4979 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
4981 (internal_condition_case, internal_condition_case_1)
4982 (internal_condition_case_2): Call x_catching_errors only if
4985 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
4986 Don't include sys/resource.h unless defined.
4988 2006-03-11 Richard Stallman <rms@gnu.org>
4990 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
4992 * vm-limit.c (get_lim_data, lim_data, data_space_start):
4993 Move from mem-limits.h.
4994 (enum warnlevel): New data type.
4995 (check_memory_limits): Rewrite the logic about warnings.
4996 Use standard `struct rlimit'. Check return values for nonsense.
4997 (memory_warnings): Always clear lim_data.
4999 * mem-limits.h (get_lim_data, lim_data, data_space_start):
5002 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
5004 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
5005 (internal_condition_case_1, internal_condition_case_2):
5006 Abort if within unclosed x_catch_errors.
5008 2006-03-11 Romain Francoise <romain@orebokech.com>
5010 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
5012 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5014 * lisp.h: Remove duplicate prototypes. Make the prototype of
5015 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
5017 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5019 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
5020 argument of XDrawRectangle.
5022 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
5024 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
5025 (x_draw_glyph_string_foreground)
5026 (x_draw_composite_glyph_string_foreground)
5027 (x_draw_image_foreground): Don't subtract 1 from width and height
5028 arguments to mac_draw_rectangle.
5029 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
5031 2006-03-10 Kim F. Storm <storm@cua.dk>
5033 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
5035 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
5037 * alloc.c (USE_POSIX_MEMALIGN): New macro.
5038 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
5040 2006-03-09 Kenichi Handa <handa@m17n.org>
5042 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
5043 ASCII component of a composition.
5045 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
5047 * window.c: Declare preserve_y as a static global variable.
5048 (window_scroll_pixel_based): No longer declare preserve_y;
5050 (syms_of_window): Set preserve_y to -1.
5052 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5054 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
5056 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
5059 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
5061 * xdisp.c (handle_invisible_prop): Don't update it->position with
5062 a buffer position if we're in a display string.
5064 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5066 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
5067 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
5069 * macfns.c (x_default_scroll_bar_color_parameter)
5070 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
5071 Remove unnecessary prototypes.
5072 (x_set_scroll_bar_default_width):
5073 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
5074 (mac_set_scroll_bar_width): New function.
5075 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
5077 * macterm.c (get_control_part_bounds): Fix type of return value.
5078 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5079 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
5080 scroll bar if it is not tall enough to display scroll bar thumb.
5081 [USE_CARBON_EVENTS] (mac_convert_event_ref)
5082 (mac_handle_command_event, mac_handle_window_event)
5083 (mac_handle_mouse_event): Check error code of GetEventParameter.
5084 (convert_fn_keycode) [MAC_OSX]: Likewise.
5086 2006-03-05 Andreas Schwab <schwab@suse.de>
5088 * xselect.c (x_catch_errors_unwind): Fix missing return value.
5090 2006-03-02 Kim F. Storm <storm@cua.dk>
5092 * frame.h (struct frame): New member n_tool_bar_rows.
5094 * xdisp.c: Minimize the unpleasent visual impact of the requirement
5095 that non-toolkit tool-bars must occupy an integral number of screen
5096 lines, by distributing the rows evenly over the tool-bar screen area.
5097 (Vtool_bar_border): New variable.
5098 (syms_of_xdisp): DEFVAR_LISP it.
5099 (display_tool_bar_line): Add HEIGHT arg for desired row height.
5100 Make tool-bar row the desired height. Use default face for border
5102 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
5103 actual tool-bar rows.
5104 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
5105 Adjust the height of the tool-bar rows to fill tool-bar screen area.
5106 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
5109 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
5111 * search.c (Fregexp_quote): Do not precede a literal `]' with two
5112 backslashes to try to make clear that it has a literal meaning; it
5113 does not do that. (It could close a character alternative
5114 containing a backslash.)
5116 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
5118 * xselect.c (x_catch_errors_unwind): New function.
5119 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
5120 (Fx_get_atom_name): Call x_uncatch_errors earlier.
5122 * window.c (Qscroll_up, Qscroll_down): New syms.
5123 (window_scroll_pixel_based): Make preserve_y static to avoid
5124 getting point stuck when scrolling 1 line.
5126 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
5128 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
5130 * xterm.c (x_load_font, x_term_init, XTmouse_position)
5131 (handle_one_xevent, x_connection_closed, x_list_fonts):
5132 No arg for x_uncatch_errors.
5134 * xselect.c (x_own_selection, x_decline_selection_request)
5135 (x_reply_selection_request, x_get_foreign_selection)
5136 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5138 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5141 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
5143 * lread.c: Declare Vload_file_rep_suffixes instead of
5144 deleted variable default_suffixes.
5145 (Fget_load_suffixes): New function.
5146 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
5147 No longer use deleted variable default_suffixes. Update docstring.
5148 (syms_of_lread): defsubr Sget_load_suffixes.
5149 Expand `load-suffixes' docstring.
5150 Delete default_suffixes and DEFVAR_LISP the new variable
5151 `load-file-rep-suffixes'.
5153 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
5156 * lisp.h: EXFUN Fget_load_suffixes.
5157 Extern Vload_file_rep_suffixes.
5159 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
5162 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5164 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
5165 qualifier which was trying to avoid the bug that was fixed by
5166 yesterday's changes to xterm.c.
5168 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
5170 * xterm.h (x_catch_errors) Return value changed to void.
5171 (x_uncatch_errors): Delete unused count argument.
5173 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
5174 it can be called in a signal handler.
5175 (x_catch_errors_unwind): Function deleted.
5176 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
5177 (x_check_errors): Call x_uncatch_errors before signalling error.
5179 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
5180 (x_connection_closed, x_list_fonts): Use new versions of
5181 x_catch_errors and x_uncatch_errors.
5183 * xselect.c (x_own_selection, x_decline_selection_request)
5184 (x_reply_selection_request, x_get_foreign_selection)
5185 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5187 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5190 * eval.c (record_unwind_protect): Add an assertion.
5192 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5194 * process.c (Fmake_network_process): Init the process's mark.
5196 2006-02-25 Kim F. Storm <storm@cua.dk>
5198 * buffer.c (modify_overlay): Force redisplay if we modify an
5199 overlay at the end of the buffer.
5201 2006-02-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5203 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
5204 nil the image file has been removed, in that case use the (cached)
5207 2006-02-24 Kenichi Handa <handa@m17n.org>
5209 * fileio.c (Finsert_file_contents): When a text is replaced
5210 partially, be sure to set point before the inserted characters.
5212 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
5214 * xfns.c (Fx_file_dialog): Return a decoded file name.
5216 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5218 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
5219 glyph whose face is extended to the text area end.
5221 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
5222 values if control is not visible or values are not changed.
5224 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5226 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
5227 The default `window' should not be "on a different frame".
5229 2006-02-22 Kim F. Storm <storm@cua.dk>
5231 * indent.c (Fvertical_motion): Only try to move back if we can.
5233 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5235 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
5238 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
5241 * macterm.c (GC_CLIP_REGION): Remove macro.
5242 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
5243 All uses changed. Don't do clipping if n_clip_rects is zero.
5244 (mac_set_clip_rectangles): Use xassert instead of abort.
5245 Set n_clip_rects. Don't make clip_region empty when number of
5246 clipping rectangles is zero.
5247 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
5248 calling mac_set_clip_rectangles.
5249 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
5250 avoid multiple redraws.
5252 2006-02-22 Kim F. Storm <storm@cua.dk>
5254 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
5256 2006-02-21 Kim F. Storm <storm@cua.dk>
5258 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
5260 2006-02-21 Zhang Wei <brep@newsmth.org>
5262 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
5265 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5267 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
5268 (standard_bitmaps): Use it.
5270 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5272 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
5273 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
5274 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
5275 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
5276 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
5277 Draw background if BG_WIDTH is not zero. Use float constants as
5278 divisors instead of double. Use alloca instead of xmalloc/xfree.
5279 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5280 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
5281 mac_draw_image_string* functions.
5282 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
5283 some fonts when srcCopy text transfer mode might be used.
5284 (mac_begin_clip, mac_end_clip): Check if region is empty.
5285 (mac_set_clip_rectangles): When resetting clip region, make it
5286 empty instead of disposing of it.
5288 2006-02-20 Kim F. Storm <storm@cua.dk>
5290 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
5292 * buffer.h (struct buffer): New members fringe_indicator_alist and
5293 fringe_cursor_alist.
5295 * buffer.c (init_buffer_once): Set dummy default values for
5296 fringe-indicator-alist and fringe-cursor-alist. The proper
5297 default values are set by pre-loading fringe.el.
5298 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
5299 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
5300 corresponding default- variables.
5302 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
5304 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
5306 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
5307 (Qhollow_small): New variables.
5308 (syms_of_fringe): Intern and staticpro them.
5309 (question_mark_bits): Rename from unknown_bits.
5310 (left_curly_arrow_bits): Rename from continuation_bits.
5311 (right_curly_arrow_bits): Rename from continued_bits.
5312 (left_triangle_bits): Rename from ov_bits.
5313 (right_triangle_bits): Add.
5314 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
5315 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
5316 (filled_square_bits): Add.
5317 (vertical_bar_bits): Rename from bar_cursor_bits.
5318 (horizontal_bar_bits): Rename from hbar_cursor_bits.
5319 (empty_line_bits): Rename from zv_bits.
5320 (standard_bitmaps): Update to use new names.
5321 (draw_fringe_bitmap_1): Make static.
5322 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
5323 to map from logical cursors and indicators to physical bitmaps.
5324 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
5325 bitmaps using symbol names instead of bitmap numbers.
5326 (update_window_fringes): Use logical indicator symbol names
5327 instead of bitmap numbers for logical. Add bitmap cache.
5328 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
5330 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
5332 * regex.c: Revert 2006-02-19 change.
5333 (xmalloc, xrealloc): Define these when not linked to Emacs.
5334 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
5336 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
5338 * regex.c (extend_range_table_work_area): Fix typo.
5340 2006-02-19 Richard M. Stallman <rms@gnu.org>
5342 * xterm.c (x_catch_errors): Use xmalloc.
5344 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
5345 (regex_compile): Likewise.
5346 (regcomp): Use xmalloc.
5348 * gtkutil.c (malloc_widget_value): Use xmalloc.
5350 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
5351 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
5353 * xmenu.c (digest_single_submenu): When pane_string is empty,
5354 do initialize save_wv.
5356 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5358 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
5359 w->update_mode_line if arg F is not the selected frame.
5361 * macmenu.c (popup_activated_flag, submenu_id)
5362 (next_menubar_widget_id): Remove variables.
5363 (initialize_frame_menubar): Remove function.
5364 (pop_down_menu, mac_menu_show): Simplify save value.
5365 (dispose_menus): New function.
5366 (pop_down_menu, fill_menubar): Use it.
5367 (fill_submenu): Remove function. All uses changed to fill_menu.
5368 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
5369 POS. Don't call SetMenuItemHierarchicalID here.
5370 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
5371 used next. Call SetMenuItemHierarchicalID here.
5372 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
5373 objects if needed. Reuse existing menu bar titles if possible.
5374 (set_frame_menubar): Don't clean up menu objects here.
5376 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
5378 * window.c (window_min_size_1): Ensure room for the scroll bar and
5381 2006-02-17 Romain Francoise <romain@orebokech.com>
5383 * puresize.h (BASE_PURESIZE): Increment to 1200000.
5385 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
5387 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
5388 addition of the BLOCK_INPUTs.
5390 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
5392 * window.c (Fset_window_scroll_bars): Doc fix.
5394 2006-02-17 Kenichi Handa <handa@m17n.org>
5396 * xdisp.c (display_mode_element): Call display_string with correct
5397 PREC arg (which must be a number of characters, not column width).
5399 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5401 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
5403 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
5405 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
5407 2006-02-14 Richard M. Stallman <rms@gnu.org>
5409 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
5411 * m/ibms390x.h: New file.
5413 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5415 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
5416 value of x-gtk-whole-detached-tool-bar.
5417 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
5419 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
5421 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5423 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
5425 * xterm.h: Declare x_x_to_emacs_modifiers.
5427 * gtkutil.c (xg_tool_bar_button_cb): New function.
5428 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
5429 store modifiers in event.
5430 (update_frame_tool_bar): Connect button-release-event to
5431 xg_tool_bar_button_cb.
5433 2006-02-13 Richard M. Stallman <rms@gnu.org>
5435 * .gdbinit (xwindow): Update the code to show the window box.
5437 2006-02-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5439 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
5441 2006-02-12 Richard M. Stallman <rms@gnu.org>
5443 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
5445 2006-02-11 Eli Zaretskii <eliz@gnu.org>
5447 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
5448 (syms_of_keyboard): DEVFAR_LISP and initialize it.
5449 (parse_tool_bar_item, parse_menu_item): If that variable is
5450 non-nil, don't disable menu items and tool-bar buttons.
5452 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
5454 * doc.c (Fsubstitute_command_keys): Doc fix.
5456 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
5458 * data.c (Findirect_function): Rewrite docstring.
5459 Fix omission bug: Declare new arg NOERROR.
5461 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5463 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
5464 if window_desc is not set yet.
5465 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
5466 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
5467 parameter `visibility' is `icon'.
5468 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
5469 instead of "fontset-mac".
5470 (Fx_focus_frame): New defun.
5471 (syms_of_macfns): Defsubr it.
5473 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
5474 for unfocused frame.
5475 (x_raise_frame): Call BringToFront instead of SelectWindow.
5476 (x_lower_frame): Use NULL instead of nil.
5477 (x_make_frame_visible): Don't call SelectWindow.
5478 (XTread_socket): Increment handling_signal at the start, decrement
5480 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
5481 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
5483 2006-02-10 Kim F. Storm <storm@cua.dk>
5485 * data.c (Findirect_function): Add NOERROR arg. All callers changed
5486 to pass Qnil for NOERROR.
5488 * keymap.c (current_minor_maps_error): Remove.
5489 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
5490 instead of using internal_condition_case_1+current_minor_maps_error.
5492 2006-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5494 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
5495 frames for GTK, in that case it is the tool bar. This is so that
5496 highlighted text get reset properly.
5498 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
5500 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
5502 2006-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5504 * window.c (adjust_window_trailing_edge): Check that shrinking
5505 does not set a window to size zero or less.
5507 2006-02-08 Miles Bader <miles@gnu.org>
5509 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
5510 of Fget_text_property (other field functions work with overlays as
5511 well as text-properties).
5513 2006-02-07 Kenichi Handa <handa@m17n.org>
5515 * dispextern.h (unibyte_display_via_language_environment): Extern it.
5517 * xterm.h (unibyte_display_via_language_environment):
5518 * w32term.h (unibyte_display_via_language_environment):
5519 * macterm.h (unibyte_display_via_language_environment): Delete extern.
5521 2006-02-07 Kenichi Handa <handa@m17n.org>
5523 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
5524 (produce_glyphs): Set the character to print in
5525 it->char_to_display. Handle unibyte-display-via-language-environment.
5526 (produce_stretch_glyph): Set character to print in it->char_to_display.
5528 2006-02-06 Kenichi Handa <handa@m17n.org>
5530 * lread.c (openp): Initialize encoded_fn before GCPRO it.
5532 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
5534 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
5536 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
5537 Cast bitfield value to EMACS_INT, to suppress gcc warning.
5539 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
5542 2006-02-03 Kim F. Storm <storm@cua.dk>
5544 * xdisp.c: Cache last merged escape glyph face.
5545 (last_escape_glyph_frame, last_escape_glyph_face_id)
5546 (last_escape_glyph_merged_face_id): New variables.
5547 (get_next_display_element): Use/update them.
5548 (redisplay_internal): Reset them before redisplay.
5550 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
5551 Only recheck faces after displaying ellipsis.
5553 2006-02-02 Kenichi Handa <handa@m17n.org>
5555 * coding.c (decode_composition_emacs_mule): Fix handling of
5556 incorrect format data.
5558 2006-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5560 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
5561 gtk_toolbar_insert() so we can have tool bars of different sizes.
5563 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
5565 * data.c (Flistp): Doc fix.
5567 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
5569 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
5570 Fix typos in docstrings.
5572 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
5574 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
5576 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
5578 * alloc.c (make_interval, allocate_string)
5579 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
5580 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
5583 2006-01-27 Eli Zaretskii <eliz@gnu.org>
5585 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
5586 the MSDOS definition.
5588 2006-01-26 Richard M. Stallman <rms@gnu.org>
5590 * alloc.c (check_pure_size): Make overflow message an "error message".
5592 * keymap.c (Fmap_keymap): Doc fix.
5594 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
5595 unless they were cleared out.
5597 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
5599 2006-01-26 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
5601 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
5602 (find_field): Set before_field to after_field when pos is at BEGV.
5603 (Fline_beginning_position, Fline_end_position):
5604 Clarify confusing doc string.
5606 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
5609 2006-01-26 Kenichi Handa <handa@m17n.org>
5611 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
5612 current_dir, and error_file. On reporting an error, decode them
5615 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5617 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
5618 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5619 Don't check for quit, since any loop will go through fail or jump.
5621 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
5623 * alloc.c (allocate_string_data): Update next_free immediately, to
5624 reduce risk of memory clobberage.
5626 2006-01-24 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
5628 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
5629 display when point moves across an ellipsis. If there are
5630 adjacent invisible texts, don't lose the second one's ellipsis.
5631 (x_produce_glyphs): Doc fix.
5633 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
5635 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
5637 2006-01-23 Kim F. Storm <storm@cua.dk>
5639 * xdisp.c (handle_single_display_spec): Fix handling of space
5640 property on char from string: set *position rather than
5642 (produce_stretch_glyph): Reduce width of stretch glyphs so they
5643 don't get wider than the window (unless truncate-lines is on).
5645 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
5647 * xterm.c: Avoid allocating Lisp data from a signal handler.
5648 (x_error_message): New var to replace x_error_message_string.
5649 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
5650 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
5651 (syms_of_xterm): Use it instead of x_error_message_string.
5653 * alloc.c (lisp_align_free): Add an assertion.
5654 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
5655 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
5658 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
5660 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
5662 2006-01-21 Romain Francoise <romain@orebokech.com>
5664 * xdisp.c (get_window_cursor_type): Fix last change.
5665 Update copyright year.
5667 2006-01-20 Eli Zaretskii <eliz@gnu.org>
5669 * lread.c (Fload): Don't leak the file descriptor returned by
5670 openp if we are going to signal an error.
5672 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
5674 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
5675 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
5677 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
5680 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
5683 2006-01-20 Kenichi Handa <handa@m17n.org>
5685 * puresize.h (BASE_PURESIZE): Increment to 1190000.
5687 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
5689 * xdisp.c (get_window_cursor_type): Use cursor type specified by
5690 the selected buffer for the echo area too.
5692 2006-01-19 Richard M. Stallman <rms@gnu.org>
5694 * keymap.c (Fmap_keymap): Doc fix.
5696 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
5698 * keyboard.c (echo_char): Don't omit the space between first two
5701 * minibuf.c (read_minibuf): Fix previous change.
5703 2006-01-19 Kenichi Handa <handa@m17n.org>
5705 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5707 2006-01-17 Richard M. Stallman <rms@gnu.org>
5709 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
5710 value in f->param_alist.
5712 2006-01-15 Andreas Schwab <schwab@suse.de>
5714 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
5716 2006-01-13 Richard M. Stallman <rms@gnu.org>
5718 * Makefile.in: Define new macro WINDOW_SUPPORT.
5720 (SOME_MACHINE_LISP): Add conditionally loaded files.
5722 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5724 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
5725 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
5726 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
5729 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
5730 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
5731 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
5732 macro. Also try member ifr_addr when getting netmask.
5734 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
5736 * fileio.c (Fexpand_file_name): Remove redundant tests.
5737 Fix elimination of // so that it doesn't prevent elimination of an
5738 immediately following /. or /..
5740 2006-01-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5742 * gtkutil.c (xg_toggle_notify_cb): New function.
5743 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
5744 xg_toggle_notify_cb.
5745 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
5746 parameter value changes so the toggle button gets updated.
5748 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
5750 * .gdbinit: Fix typo.
5752 2006-01-05 Eli Zaretskii <eliz@gnu.org>
5754 * .gdbinit: Fix last change.
5756 2006-01-05 Kim F. Storm <storm@cua.dk>
5758 * process.c (Fmake_network_process): Use AF_INET instead of
5759 AF_UNSPEC when AF_INET6 is not defined.
5761 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5763 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
5764 Don't check that the other type is known file-related one.
5766 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
5767 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
5768 OS X 10.4 and later.
5770 2006-01-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5772 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
5773 let GTK do all image processing. Importing Emacs own pixmaps to GTK
5774 looks bad for inactive tool bar items with some Gnome themes.
5776 2006-01-04 Eli Zaretskii <eliz@gnu.org>
5778 * .gdbinit: Avoid a warning message when x_error_quitter is not
5781 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
5784 2006-01-04 Kim F. Storm <storm@cua.dk>
5786 * process.c: Add IPv6 support.
5787 (Qipv4, Qipv6): New vars.
5788 (syms_of_process): Intern and staticpro them.
5789 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
5790 with or without port number. Handle 4 element vector as IPv4 address
5791 without port number.
5792 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5793 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
5794 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
5795 request that address family only. :family nil or omitted means to
5796 determine address family from the specified :host and :service.
5797 (ifflag_table): Add missing OpenBSD IFF_ flags.
5798 (server_accept_connection): Handle IPv6 addresses.
5799 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
5801 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
5802 determine which breakpoints to set.
5804 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
5806 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
5808 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
5810 2006-01-03 Romain Francoise <romain@orebokech.com>
5812 * emacs.c (main): Update copyright year.
5814 2006-01-03 Ken Raeburn <raeburn@gnu.org>
5816 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
5817 nil for the call to internal_delete_file.
5819 2006-01-01 Ken Raeburn <raeburn@gnu.org>
5821 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
5822 to nil for the call to Fwrite_region.
5824 2005-12-31 Richard M. Stallman <rms@gnu.org>
5826 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
5828 2005-12-31 Eli Zaretskii <eliz@gnu.org>
5830 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
5832 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
5834 * textprop.c (set_text_properties): Reword description of return value.
5835 Return Qnil if caller wants to remove all text properties from a
5836 string and the string already has no intervals.
5838 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
5840 * term.c (visible_cursor): New boolean var.
5841 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
5843 (syms_of_term): Export the new var as "visible-cursor".
5845 2005-12-30 Eli Zaretskii <eliz@gnu.org>
5847 * .gdbinit: Tell users not to worry about GDB warnings that some
5848 functions do not exist in the binary.
5850 2005-12-30 Andreas Schwab <schwab@suse.de>
5852 * process.c (Fnetwork_interface_info): Correctly terminate the
5853 loop over ifflag_table.
5855 2005-12-29 Richard M. Stallman <rms@gnu.org>
5857 * lread.c (readevalloop): Test for reading a whole buffer
5858 before actually reading anything. Handle all cases, including
5859 START = END = nil and an already-narrowed buffer.
5860 Convert END to a marker if it is a number.
5862 * keymap.c (describe_map): Put sparse map elements into an array,
5863 sort them, then output a sequence of identical bindings on one line.
5864 (struct describe_map_elt): New data type.
5865 (describe_map_compare): New function.
5867 2005-12-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5869 * gtkutil.c (xg_get_file_with_chooser): Change message shown
5872 2005-12-27 Richard M. Stallman <rms@gnu.org>
5874 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
5875 not the current one.
5877 * minibuf.c (Fminibuffer_message): Doc fix.
5878 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
5880 * eval.c (do_autoload): Ignore elements of Vautoload_queue
5881 where car is not symbol.
5883 2005-12-27 Kenichi Handa <handa@m17n.org>
5885 * charset.c (lisp_string_width): Check multibyteness of STRING.
5887 2005-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5889 * xfns.c (x_show_hidden_files): New variable.
5890 (syms_of_xfns): Defvar it.
5892 * gtkutil.c (xg_toggle_visibility_cb): New function.
5893 (xg_get_file_with_chooser): Add toggle hidden files and a message
5894 to the new file chooser dialog. Show hidden files if
5895 x_show_hidden_files is non-zero.
5897 2005-12-26 Richard M. Stallman <rms@gnu.org>
5899 * keyboard.h: Undo previous change.
5901 * Makefile.in (undo.o): Undo previous change.
5903 * undo.c: Undo previous change.
5905 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
5907 * keyboard.h: extern last_point_position_window.
5909 * undo.c: include keyboard.h.
5911 * Makefile.in (undo.o): Depend on keyboard.h.
5913 2005-12-26 Richard M. Stallman <rms@gnu.org>
5915 * commands.h (last_point_position_window): Declare.
5917 * undo.c: Depend on window.h.
5918 (record_point): Save old point from the correct window.
5920 * keyboard.c (last_point_position_window): New variable.
5921 (command_loop_1): Set last_point_position_window.
5922 (syms_of_keyboard): Init it.
5924 * Makefile.in (undo.o): Depend on window.h.
5926 2005-12-25 Richard M. Stallman <rms@gnu.org>
5928 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
5929 to undo a `provide'.
5931 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
5933 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
5935 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
5936 define for FreeBSD on this platform.
5938 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5940 * macterm.h (TYPE_FILE_NAME): New define.
5941 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
5943 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
5944 Add prototypes. Make static.
5945 (mac_aedesc_to_lisp): Initialize err to noErr.
5946 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5947 (init_coercion_handler): New functions.
5948 (Fmac_coerce_ae_data): Use coercion of Apple event data for
5949 translation from/to file names.
5951 * macterm.c: Don't include sys/param.h.
5952 (init_coercion_handler): Add extern.
5953 [MAC_OS8] (main): Call init_coercion_handler.
5954 (mac_initialize) [MAC_OSX]: Likewise.
5955 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
5956 Apple event data for translation from/to file names.
5958 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5960 * image.c [MAC_OS] (find_image_fsspec): Likewise.
5962 2005-12-23 Martin Rudalics <rudalics@gmx.at>
5964 * insdel.c (insert, insert_and_inherit, insert_before_markers)
5965 (insert_before_markers_and_inherit): Make sure FROM is correct
5966 when `after-change-functions' are called.
5968 2005-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5970 * xfns.c (Fx_uses_old_gtk_dialog): New function.
5972 * gtkutil.c (xg_uses_old_file_dialog): New function.
5973 (xg_get_file_name): Use xg_uses_old_file_dialog.
5975 * gtkutil.h: Declare xg_uses_old_file_dialog.
5977 2005-12-22 Richard M. Stallman <rms@gnu.org>
5979 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
5981 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5983 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
5985 * macgui.h (XCharStruct): Remove member `valid_p'.
5986 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
5987 (XCharStructRow): New typedef.
5988 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
5990 (struct MacFontStruct): Add member `bounds'. Remove member
5991 `per_char'. All uses for QuichDraw Text fonts are changed to
5992 `bounds.per_char'. ATSUI font bounds are represented as an array
5993 `bounds.rows' of XCharStructRow's, each of which consists of a
5994 bitmap of valid entries and an array of char bounds.
5996 * macterm.c (mac_per_char_metric): Add prototype.
5997 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5998 (mac_query_char_extents): New function.
5999 (x_per_char_metric): Use it.
6000 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
6001 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
6002 Use mac_per_char_metric instead of x_per_char_metric.
6003 (mac_text_extents_16): New function.
6004 (mac_compute_glyph_string_overhangs): Use it.
6005 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
6007 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6009 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
6010 (Fminibuffer_completion_help): Remove duplicates before display.
6012 2005-12-21 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
6014 * print.c (print_preprocess): Don't lose print_depth levels while
6017 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6019 * macmenu.c (Qmac_apple_event): Add extern.
6020 (set_frame_menubar, mac_menu_show keymp_panes)
6021 (single_keymap_panes, list_of_panes, list_of_item)
6022 (single_menu_item): Add argument types to prototypes.
6023 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
6024 (struct skp): New struct (from xmenu.c).
6025 (single_keymap_panes, single_menu_item, list_of_panes)
6026 (list_of_item): Sync with xmenu.c.
6027 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
6028 POSITION if it is mac-apple-event event.
6029 (menubar_selection_callback): Don't use menu_command_in_progress.
6030 (set_frame_menubar): First parse all submenus, then make
6031 widget_value trees from them. Don't allocate any widget_value
6032 objects until we are done with the parsing.
6033 (parse_single_submenu, digest_single_submenu): New functions.
6034 (single_submenu): Function deleted, replaced by those two.
6035 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
6036 or dispose of EventHandlerUPP. Install hander to all submenus.
6037 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
6038 instead of ENCODE_SYSTEM.
6039 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
6041 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
6042 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
6043 format menu item string. Don't use NULL for integer value.
6045 * macterm.h (struct mac_output): Remove unused member
6046 menu_command_in_progress.
6048 2005-12-20 Juri Linkov <juri@jurta.org>
6050 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
6051 position is non-nil, else set it to nil.
6053 * macmenu.c (Fx_popup_menu): Add `else' to set
6054 Vmenu_updating_frame to nil only if position is nil.
6056 * w32menu.c (Fx_popup_menu): Add `else' to set
6057 Vmenu_updating_frame to nil only if position is nil.
6059 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6061 * keyboard.c (make_lispy_event): Drag-and-drop items are now
6062 stored in member `args' of struct input_event.
6064 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
6066 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
6067 stored in member `args' of struct input_event.
6069 * w32term.c (construct_drag_n_drop): Likewise.
6071 * macterm.c (mac_do_receive_drag): Likewise.
6072 (x_use_underline_position_properties): Undo 2005-07-13 change.
6073 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
6074 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
6075 (mac_pass_command_to_system, mac_pass_control_to_system):
6076 New boolean variables renamed from Lisp_Object ones
6077 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
6078 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
6080 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
6081 Make them user options.
6082 (mac_handle_command_event, mac_store_services_event):
6083 Call create_apple_event_from_event_ref without 5th argument.
6084 (backtranslate_modified_keycode): Mask off modifier keys that are
6085 mapped to some Emacs modifiers before passing it to KeyTranslate.
6086 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
6087 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
6088 Fix docstrings of `mac-*-modifier'.
6090 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
6091 (do_applescript): Change argument types to Lisp_Object.
6094 * macterm.h (create_apple_event_from_event_ref): Remove 5th
6095 argument from extern.
6097 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6099 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
6100 the answer, return `lambda', not nil.
6102 2005-12-17 Eli Zaretskii <eliz@gnu.org>
6104 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
6105 enclosed in $(ARGQUOTE)s should not be split between two lines, as
6106 that will break with GNU Make >3.80, when sh.exe is used and
6107 arg quoting is with '..'.
6109 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
6111 * print.c (print_preprocess): Just signal an error if print_depth
6114 2005-12-17 Eli Zaretskii <eliz@gnu.org>
6116 * .gdbinit: Set a breakpoint on w32_abort.
6118 2005-12-16 Juri Linkov <juri@jurta.org>
6120 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
6121 created from minibuffer_completion_contents.
6122 (minibuffer_completion_contents): Remove.
6123 (do_completion, Fminibuffer_complete_word)
6124 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
6125 with Fminibuffer_completion_contents.
6126 (syms_of_minibuf): Add Sminibuffer_completion_contents.
6127 (Fdisplay_completion_list): Doc fix.
6128 (display_completion_list_1): Use `nil' for second arg of
6129 `Fdisplay_completion_list'.
6131 2005-12-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6133 * xfns.c (compute_tip_xy): Handle negative dx and dy.
6135 * w32fns.c (compute_tip_xy): Ditto.
6137 * macfns.c (compute_tip_xy): Ditto.
6139 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
6141 * print.c (print_preprocess): Go to a deeper print_depth to avoid
6144 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6146 * coding.c (code_convert_region_unwind): GCPRO arg.
6148 2005-12-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6150 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
6151 i.e. dy is offset from top of frame instead of bottom.
6153 * macfns.c (compute_tip_xy): Ditto.
6155 * w32fns.c (compute_tip_xy): Ditto.
6157 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
6158 (xg_get_image_for_pixmap, xg_create_frame_widgets)
6159 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
6161 * xmenu.c (menubar_selection_callback): Do nothing if the callback
6162 is for an unselected radio menu item.
6164 2005-12-11 Richard M. Stallman <rms@gnu.org>
6166 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
6168 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
6170 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
6171 (Flookup_key): Doc fix.
6172 (syms_of_keymap) <function-key-map>: Doc fix.
6174 * fns.c (Frequire): Treat evaluating from a source file
6175 like loading the file.
6177 * floatfns.c (Flog): Doc fix.
6179 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
6180 when we change the buffer.
6182 2005-12-11 Juri Linkov <juri@jurta.org>
6184 * minibuf.c (display_completion_list_1):
6185 Call `minibuffer_completion_contents' instead of using `nil' as
6186 second arg of `Fdisplay_completion_list'.
6187 (keys_of_minibuf): Unbind SPC in
6188 Vminibuffer_local_filename_completion_map (see also related
6189 change on 2005-12-06).
6191 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6193 * emacs.c (main) [MAC_OS8]: Undo previous change.
6195 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
6196 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
6198 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6200 * Makefile.in (macselect.o): Depend on keymap.h.
6202 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
6205 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
6206 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
6208 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
6209 (syms_of_keyboard) [MAC_OS]: Initialize it.
6210 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
6212 * mac.c (Qundecoded_file_name): New variable.
6213 (syms_of_mac): Initialize it.
6214 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
6215 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
6216 (Fmac_coerce_ae_data): New defun.
6217 (syms_of_mac): Defsubr it.
6219 * macselect.c: Include keymap.h.
6220 (mac_ready_for_apple_events): New variable.
6221 (Vmac_apple_event_map, Qmac_apple_event_class)
6222 (Qmac_apple_event_id): New variables.
6223 (syms_of_macselect): Initialize them.
6224 (Qundefined, mac_store_apple_event): Add externs.
6225 (struct apple_event_binding): New struct.
6226 (find_event_binding_fun, find_event_binding)
6227 (mac_find_apple_event_spec, defer_apple_events)
6228 (mac_handle_apple_event, init_apple_event_handler)
6229 (copy_scrap_flavor_data): New functions.
6230 (Fmac_process_deferred_apple_events): New defun.
6231 (syms_of_macselect): Defsubr it.
6232 (mac_store_services_event): Fix extern.
6233 (mac_handle_service_event): Don't allocate Lisp objects during
6234 asynchronous input processing. Use mac_store_services_event
6235 instead of mac_store_application_menu_event.
6237 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
6238 (Qpreferences): Remove variables.
6239 (syms_of_macterm) : Don't initialize them.
6240 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
6241 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
6242 (init_required_apple_events, do_ae_open_application)
6243 (do_ae_print_documents, do_ae_open_documents)
6244 (do_ae_quit_application): Remove functions and prototypes.
6245 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
6246 (mac_find_apple_event_spec): Add externs.
6247 (mac_store_application_menu_event): Remove function.
6248 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
6249 (mac_handle_command_event): Create Apple event from Carbon event.
6250 Use mac_store_apple_event instead of mac_store_application_menu_event.
6251 [MAC_OSX] (mac_store_services_event): Likewise.
6252 (struct SelectionRange, SelectionRange): Remove struct and typedef.
6253 [MAC_OS8] (main): Call init_apple_event_handler instead of
6254 init_required_apple_events.
6255 (mac_initialize) [MAC_OSX]: Likewise.
6256 [!USE_CARBON_EVENTS] (mac_wait_next_event):
6257 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
6259 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
6261 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
6262 (Fmac_get_preference): Add EXFUN.
6264 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
6267 2005-12-09 Richard M. Stallman <rms@gnu.org>
6269 * xfns.c (Fx_create_frame): Reinstate previous change.
6271 2005-12-09 Eli Zaretskii <eliz@gnu.org>
6273 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
6274 GDB to the abort dialog.
6276 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6278 * indent.c (Fvertical_motion): Force move if starting on
6281 2005-12-08 Richard M. Stallman <rms@gnu.org>
6283 * lread.c (read_escape) <\s>: Don't treat strings specially.
6285 * xfns.c (Fx_create_frame): Comment out previous change.
6287 2005-12-07 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
6289 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
6292 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
6294 * minibuf.c (keys_of_minibuf): Just unbind SPC in
6295 Vminibuffer_local_filename_completion_map rather than forcing it
6296 explicitly to the same binding as the global map.
6298 2005-12-06 Ken Raeburn <raeburn@gnu.org>
6300 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
6301 * bytecode.c (Fbyte_code): Likewise.
6302 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
6303 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
6304 * undo.c (truncate_undo_list): Likewise.
6306 2005-12-05 Richard M. Stallman <rms@gnu.org>
6308 * window.c (enlarge_window): Eliminate arg preserve_before.
6309 Assume it is 0. All callers changed.
6310 (Fenlarge_window, Fshrink_window): Likewise.
6312 2005-12-02 Eli Zaretskii <eliz@gnu.org>
6314 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
6317 2005-12-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6319 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
6321 * xfns.c (x_real_positions): int ign => unsigned int.
6322 (xg_set_icon_from_xpm_data): Remove unused variable err.
6323 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
6324 to remove compiler warning.
6325 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
6327 2005-12-02 David Reitter <david.reitter@gmail.com>
6329 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
6330 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
6331 and Vminibuffer_local_must_match_filename_map keymaps.
6332 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
6334 * keymap.c (Vminibuffer_local_filename_completion_map)
6335 (Vminibuffer_local_must_match_filename_map): New variables.
6336 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
6337 parent to be Vminibuffer_local_completion_map and
6338 Vminibuffer_local_must_match_map, respectively.
6340 * commands.h (Vminibuffer_local_filename_completion_map)
6341 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
6343 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
6345 * window.c (Fset_window_configuration): Don't accidentally copy the
6346 window-point of one window to another.
6348 2005-11-30 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
6350 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6352 2005-11-30 Kim F. Storm <storm@cua.dk>
6354 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
6355 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
6356 passing it to `emacs_write'.
6358 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
6360 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
6362 2005-11-27 Richard M. Stallman <rms@gnu.org>
6364 * window.c (adjust_window_trailing_edge): New function.
6365 (Fadjust_window_trailing_edge): New function.
6366 (syms_of_window): Defsubr it.
6367 (window_deletion_count): New variable.
6368 (delete_window): Update window_deletion_count.
6370 2005-11-26 Eli Zaretskii <eliz@gnu.org>
6372 * minibuf.c (syms_of_minibuf): Mention the extension of
6373 `completion-auto-help's meaning by complete.el.
6375 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
6377 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
6378 Handle :inherit property as a lisp expression.
6380 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6382 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
6383 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
6384 Qsuper, and Qmodifier_value.
6385 (Vmac_control_modifier, Vmac_option_modifier)
6386 (Vmac_command_modifier, Vmac_function_modifier)
6387 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
6388 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
6389 (Vmac_charset_info_alist): Doc fixes.
6391 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6393 * emacs.c (main) [MAC_OSX]: Change working directory to home
6394 directory if `-psn_*' option is specified.
6396 * mac.c (DECODE_UTF_8): Remove macro.
6397 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
6398 created from cfstring_to_lisp.
6399 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
6400 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
6402 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
6405 2005-11-21 Ken Raeburn <raeburn@gnu.org>
6407 * keymap.c (shadow_lookup): Use make_number to pass a number to
6410 2005-11-21 Juri Linkov <juri@jurta.org>
6412 * puresize.h (BASE_PURESIZE): Increment to 1180000.
6414 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
6416 * xfaces.c (Finternal_set_lisp_face_attribute):
6417 Use :ignore-defface for new frame defaults when `unspecified' is
6419 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
6420 (merge_face_vectors): Don't do :ignore-defface overwriting here.
6421 (Finternal_merge_in_global_face): Do it here.
6423 2005-11-20 Juri Linkov <juri@jurta.org>
6425 * charset.c (invalid_character): Use Lisp-readable syntax
6426 for octal and hex. Reorder decimal, octal and hex values.
6428 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
6430 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
6431 this type is recognised when debugging.
6433 2005-11-19 Andreas Schwab <schwab@suse.de>
6435 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
6436 Lisp_Cons and Lisp_Float.
6438 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6440 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
6442 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
6443 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
6444 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
6445 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
6447 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
6449 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
6451 * xfaces.c (Qignore_defface): New variable.
6452 (syms_of_xfaces): Provide `:ignore-defface'.
6453 (IGNORE_DEFFACE_P): New macro.
6454 (check_lface_attrs, lface_fully_specified_p)
6455 (Finternal_set_lisp_face_attribute)
6456 (Fface_attribute_relative_p, Fmerge_face_attribute):
6457 Handle Qignore_defface as a possible value.
6458 (merge_face_vectors): The merged face is `unspecified' if the
6459 mergee specifies `:ignore-defface'.
6461 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6463 * lread.c (readevalloop): Add missing GCPROs.
6465 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
6467 * xfns.c (xg_set_icon_from_xpm_data): New function.
6469 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
6470 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
6472 * xterm.c (x_bitmap_icon): Use the xpm if available.
6474 * image.c (x_create_bitmap_from_xpm_data): New function.
6475 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
6477 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
6479 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
6481 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
6483 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
6485 2005-11-15 Andreas Schwab <schwab@suse.de>
6487 * lisp.h (struct Lisp_Cons): Make cdr a union.
6488 (XCDR_AS_LVALUE): Adjust.
6489 (struct Lisp_Float): Make data a union.
6490 (XFLOAT_DATA): Adjust.
6492 * alloc.c (free_float): Make free list chaining aliasing-safe.
6493 (make_float): Likewise.
6494 (free_cons): Likewise.
6496 (check_cons_list): Likewise.
6497 (Fmake_symbol): Likewise.
6498 (allocate_misc): Likewise.
6499 (free_misc): Likewise.
6500 (gc_sweep): Likewise.
6502 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6504 * mac.c (HASHKEY_QUERY_CACHE): New define.
6505 (xrm_create_database, xrm_q_put_resource): Empty query cache.
6506 (xrm_get_resource): Use query cache.
6508 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
6509 inhibit_window_system is set.
6511 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6513 * macgui.h (USE_CG_TEXT_DRAWING): New define.
6514 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
6517 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
6518 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
6519 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
6520 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
6521 not used and font substitution never occurs for ASCII and Latin-1
6523 (XLoadQueryFont): Maximum and minimum metrics are now those among
6525 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
6526 height adjustments for Courier, Helvetica, and Times.
6528 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
6530 2005-11-11 David Reitter <david.reitter@gmail.com>
6532 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
6533 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
6534 Vmac_control_modifier / mac-control-modifier,
6535 Vmac_option_modifier / mac-option-modifier,
6536 Vmac_command_modifier / mac-command-modifier.
6537 (mac_to_emacs_modifiers): Use the new style modifier
6538 variables. Return UInt32 (modifiers are longs now.)
6539 (backtranslate_modified_keycode): New function (refactoring).
6540 (XTread_socket): Use new modifier variables and refactored function.
6541 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
6542 no dedicated meta key. Not in use anyway.)
6543 (convert_fn_keycode): Map Fn-keys to their original keycode
6544 using a table (english keyboard only).
6546 2005-11-11 Kim F. Storm <storm@cua.dk>
6548 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
6549 Add post hook to "backtrace" to always dump lisp call stack to
6550 increase chance of people sending it to us when reporting bugs.
6552 * doc.c (Fsubstitute_command_keys): Doc fix.
6554 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
6556 * xdisp.c (handle_stop): Skip overlay string handling if
6557 ignore_overlay_strings_at_pos_p is set.
6558 (set_iterator_to_next): At end of display vector, set
6559 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
6560 string, so we skip those overlay strings at current pos.
6562 2005-11-10 Lars Hansen <larsh@soem.dk>
6564 * fileio.c (file-regular-p): Doc fix.
6566 2005-11-10 Kim F. Storm <storm@cua.dk>
6568 * alloc.c (valid_lisp_object_p): New function to validate that
6569 an object is really a valid Lisp_Object.
6571 * lisp.h (valid_lisp_object_p): Add prototype.
6573 * print.c (safe_debug_print): New function to be called from gdb
6574 to print Lisp objects; use valid_lisp_object_p to avoid crashing
6575 if user tries to print something which is not a Lisp object.
6577 * .gdbinit (pp, pp1): Use safe_debug_print.
6578 (pv, pv1): New commands to print value of a lisp variable.
6580 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
6582 * .gdbinit (pp1): New user-defined function.
6584 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6586 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
6588 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
6589 related variables for dumped executable.
6591 * unexmacosx.c (unexec_write_zero): New function.
6592 (copy_data_segment): Clear uninitialized local variables in
6593 statically linked libraries.
6595 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
6597 2005-11-09 Juri Linkov <juri@jurta.org>
6599 * keymap.c (shadow_lookup): If Flookup_key returns a number,
6600 call it again with a sub-key-sequence, and if its return value
6601 is non-nil (sub-key is bound), return nil.
6603 2005-11-08 Kim F. Storm <storm@cua.dk>
6605 * process.c (Fsignal_process): Recognize signal names with and
6606 without SIG prefix, e.g. SIGHUP and HUP.
6608 * search.c (search_buffer): No need to initialize base_pat.
6610 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
6612 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
6613 Don't abuse the `mini' arg. Use the `obj' arg instead.
6615 2005-11-04 Kim F. Storm <storm@cua.dk>
6617 * xdisp.c (show_mouse_face): Clear mouse face to eol.
6619 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
6621 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
6622 font-lock.elc and jit-lock.elc.
6624 2005-11-03 Richard M. Stallman <rms@gnu.org>
6626 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
6627 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
6628 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
6630 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
6632 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
6634 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6636 * window.c (Fdisplay_buffer): Fix last change to not use
6639 2005-11-01 Kim F. Storm <storm@cua.dk>
6641 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
6642 Instead, rotate the bottom angle bitmap 180 degrees to indicate
6643 that the bottom row does not end in a newline.
6645 2005-11-01 Andreas Schwab <schwab@suse.de>
6647 * unexelf.c (unexec): Handle .plt section in BSS segment.
6649 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6651 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
6653 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
6654 determine whether to consider dedicated windows as well.
6655 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
6656 (Fdisplay_buffer): Do consider dedicated windows in those cases where
6657 we will split the window rather than reuse it.
6658 Don't try to use windows on other displays.
6660 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
6662 * puresize.h (BASE_PURESIZE): Increment to 1170000.
6664 2005-10-31 Romain Francoise <romain@orebokech.com>
6666 * macfns.c: Update copyright year.
6667 * m/gould.h: Likewise.
6669 2005-10-30 Kim F. Storm <storm@cua.dk>
6671 * xdisp.c (display_line): Restore it->current_x and call
6672 extend_face_to_end_of_line when last glyph doesn't fit on line.
6673 (set_glyph_string_background_width): Remove specific tests here
6674 to see if face background should extend to end of line. Simplify.
6676 2005-10-30 Richard M. Stallman <rms@gnu.org>
6678 * alloc.c (BYTES_USED): Use uordblks, not arena.
6679 (bytes_used_when_reconsidered): New variable.
6680 (emacs_blocked_free): Set that.
6682 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
6684 * alloc.c (emacs_blocked_free): Fix typo.
6686 2005-10-29 Richard M. Stallman <rms@gnu.org>
6688 * data.c (Fmake_variable_frame_local): Doc fix.
6690 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
6691 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
6692 controls whether to save and restore mode_line_proptrans_alist.
6694 (unwind_format_mode_line): Work with that feature.
6695 (redisplay_internal): Don't call prepare_menu_bars if memory full.
6696 (move_elt_to_front): New function.
6697 (display_mode_element): Use move_elt_to_front.
6698 Don't bother munging text props on a null string.
6699 Delete obsolete elts from mode_line_proptrans_alist.
6700 (decode_mode_spec): Test Vmemory_full, not spare_memory.
6701 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
6703 * lisp.h (memory_full_cons_threshold): Declare.
6704 (internal_lisp_condition_case): Declare.
6706 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
6707 (Fmemory_full_p): Function deleted.
6708 (syms_of_alloc): Don't defsubr it.
6709 (memory_full_cons_threshold): New variable.
6710 (spare_memory): Now a vector of 7 elts.
6711 (buffer_memory_full): Don't set Vmemory_full here.
6712 (xfree): Don't try to refill here.
6713 (emacs_blocked_free): Record BYTES_USED in local var.
6714 (memory_full): Now free all the slots in spare_memory.
6715 (refill_memory_reserve): Allocate each slot in spare_memory.
6716 (init_alloc_once): Call refill_memory_reserve.
6718 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
6720 * eval.c (internal_lisp_condition_case): New function.
6721 (Fcondition_case): Use internal_lisp_condition_case.
6722 (Feval): Test Vmemory_full and memory_full_cons_threshold.
6723 (Ffuncall): Likewise.
6725 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
6727 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
6729 * syntax.c (Fparse_partial_sexp): Fix docstring.
6731 2005-10-28 Romain Francoise <romain@orebokech.com>
6733 * puresize.h (BASE_PURESIZE): Increment to 1130000.
6735 2005-10-28 Richard M. Stallman <rms@gnu.org>
6737 * xfns.c (syms_of_xfns): Provide `x' as feature.
6739 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
6741 * editfns.c (Fformat): Don't include string padding
6742 between info[n].start and info[n].end.
6744 * alloc.c (spare_memory): No longer static.
6745 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
6747 * puresize.h (BASE_PURESIZE): Increment to 1120000.
6749 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
6751 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
6753 * fringe.c (update_window_fringes): Handle case where buffer ends
6756 2005-10-27 Kenichi Handa <handa@m17n.org>
6758 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
6760 2005-10-24 Kenichi Handa <handa@m17n.org>
6762 * charset.h (charset_mule_unicode_0100_24ff)
6763 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6766 * charset.c (charset_mule_unicode_0100_24ff)
6767 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6769 (Fsetup_special_charsets): Initialize them.
6771 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6772 supported Unicode characters.
6774 2005-10-25 Jason Rumney <jasonr@gnu.org>
6776 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
6778 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6780 * image.c [MAC_OS] (image_load_qt_1): Check image size.
6781 Use GraphicsImportGetImageDescription instead of
6782 GraphicsImportGetNaturalBounds.
6783 [MAC_OSX] (image_load_quartz2d): Check image size.
6784 [MAC_OS] (xpm_load_image): Likewise.
6786 * macterm.c (last_mouse_glyph_frame): New var.
6787 (note_mouse_movement): Say mouse moved if current frame differs
6788 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6789 (XTmouse_position): Set last_mouse_glyph_frame.
6790 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
6791 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
6793 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
6794 (x_per_char_metric, XLoadQueryFont)
6795 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
6797 (mac_to_x_fontname, mac_do_list_fonts)
6798 (mac_initialize_display_info): Change screen resolutions to 72dpi.
6800 2005-10-25 Masatake YAMATO <jet@gyve.org>
6802 * minibuf.c (Fdisplay_completion_list): Small doc fix.
6804 2005-10-24 Kim F. Storm <storm@cua.dk>
6806 * xterm.c: Undo 2005-10-23 change.
6807 (last_mouse_glyph_frame): New var.
6808 (note_mouse_movement): Say mouse moved if current frame differs
6809 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6810 (XTmouse_position): Set last_mouse_glyph_frame.
6811 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
6812 last_mouse_glyph] on mouse up/down event.
6814 * editfns.c (Fcompare_buffer_substrings): Fix last change.
6816 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6818 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
6820 2005-10-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6822 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
6823 so tool tips don't interfere with press on tool bar button.
6825 2005-10-23 Richard M. Stallman <rms@gnu.org>
6827 * casetab.c (Fset_case_table): Doc fix.
6829 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
6830 (readevalloop): Compute ENTIRE properly.
6831 (syms_of_lread) <load-history>: Doc fix.
6833 2005-10-21 Richard M. Stallman <rms@gnu.org>
6835 * lread.c (Fload): Simplify gcpro structure.
6836 Gcpro FOUND as well as FILE, but not EFOUND.
6837 Unless preloading, record FOUND instead of FILE in Vload_history.
6838 Rename repeat local FILE to MSG_FILE.
6839 (syms_of_lread) <load-history>: Doc fix.
6841 2005-10-21 Kenichi Handa <handa@m17n.org>
6843 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
6845 2005-10-20 Kim F. Storm <storm@cua.dk>
6847 * buffer.c (clone_per_buffer_values): Remove unused var tem.
6848 (init_buffer): Remove unused vars dotstat, pwdstat.
6850 * ccl.c (check_ccl_update): Remove unused var vp.
6852 * fileio.c (auto_save_error): Call SAFE_FREE.
6854 * fns.c (Fchar_table_range): Remove unused var i.
6856 * minibuf.c (display_completion_list_1): New wrapper function
6857 for Fdisplay_completion_list.
6858 (Fminibuffer_completion_help): Use it.
6860 * term.c (encode_terminal_code): Remove unused var src_start.
6862 * window.c (Fwindow_tree): Remove unused var alist.
6864 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
6866 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
6868 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
6870 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
6872 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
6874 2005-10-20 Andreas Schwab <schwab@suse.de>
6876 * minibuf.c (Fdisplay_completion_list): Doc fix.
6878 2005-10-19 Kim F. Storm <storm@cua.dk>
6880 * image.c (check_image_size): Handle integer Vmax_image_size value
6881 directly as max pixel value. Use default frame size for null frame.
6882 (syms_of_image) <max-image-size>: Describe integer value.
6884 2005-10-19 Romain Francoise <romain@orebokech.com>
6886 * emacs.c (main): Update copyright year.
6888 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
6890 * image.c (Vmax_image_size): New variable.
6891 (check_image_size): New function.
6892 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
6893 (gif_load, gs_load): Use it.
6894 (lookup_image): Try loading again if previous load failed.
6895 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
6896 to display in, NULL if none.
6897 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
6900 2005-10-18 Richard M. Stallman <rms@gnu.org>
6902 * search.c (Fstring_match): Doc fix.
6904 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6906 * macterm.c (note_mouse_movement): Use PtInRect.
6907 (XTread_socket): Also ignore mouse motion just before a button
6908 release event. Don't process button release event when mouse is
6911 2005-10-16 Masatake YAMATO <jet@gyve.org>
6913 * minibuf.c (Fdisplay_completion_list): Add new optional
6914 argument COMMON_SUBSTRING. Bind `completion-common-substring'
6915 to the optional argument during running `completion-setup-hook'.
6917 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6919 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
6920 Allow nil as argument.
6921 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
6922 for encoding arguments as UTF-16 in native byte order, no BOM.
6924 * macfns.c (Fx_create_frame): Add debugging code.
6925 (Fx_show_tip): Set frame pixel width and height.
6927 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
6928 (FRAME_NORMAL_GC): New macro.
6929 (mac_draw_line, mac_clear_area, mac_clear_window)
6930 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
6931 (mac_draw_image_string, mac_draw_image_string_16): Rename from
6932 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
6933 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
6935 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
6936 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
6937 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
6938 (mac_draw_string_16, mac_draw_image_string)
6939 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
6940 (mac_scroll_area): Drawing functions now take frame as destination.
6942 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
6943 (x_draw_fringe_bitmap): Set clipping area in face->gc.
6945 * macterm.h (mac_clear_area): Add extern.
6947 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6949 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
6950 changes for xterm.c.
6952 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
6954 2005-10-14 Kenichi Handa <handa@m17n.org>
6956 * search.c (search_buffer): Give up BM search on case-fold-search
6957 if one of a target character has a case-equivalence of different
6958 charset even if that target charcter is an ASCII.
6960 * casefiddle.c (casify_object): Fix for the case that case
6961 conversion change the byte length.
6963 2005-10-14 Kim F. Storm <storm@cua.dk>
6965 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
6966 (handle_one_xevent): Only clear help_echo_string; restore it if
6967 note_mouse_movement didn't record any mouse movement.
6969 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
6970 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
6972 * keyboard.c (make_lispy_position): Adjust wx for left margin if
6974 (Fposn_at_x_y): Fix calculation of x coordinate.
6975 (Fposn_at_point): Return nil if point is hscrolled out of view.
6977 2005-10-13 Andreas Schwab <schwab@suse.de>
6979 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
6980 non-interactive mode.
6982 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6984 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
6986 2005-10-12 Kim F. Storm <storm@cua.dk>
6988 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
6990 2005-10-12 Romain Francoise <romain@orebokech.com>
6992 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
6994 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6996 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6997 get end of text rows. Obtain header-line/mode-line rows directly.
6999 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
7000 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
7002 2005-10-12 Kim F. Storm <storm@cua.dk>
7004 * xdisp.c (remember_mouse_glyph): New generic version based on
7005 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
7006 properly handle all different window areas.
7008 * dispextern.h (remember_mouse_glyph): Add prototype.
7010 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
7011 (note_mouse_movement, XTmouse_position): Use generic
7012 remember_mouse_glyph, add last_mouse_glyph arg.
7014 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
7015 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
7016 (note_mouse_movement, w32_mouse_position): Use generic
7017 remember_mouse_glyph, add last_mouse_glyph arg.
7019 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
7020 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
7021 (XTmouse_position): Adapt to use generic remember_mouse_glyph
7022 instead of pixel_to_glyph_coords.
7024 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
7025 Fix x position for ON_TEXT when left margin width > 0.
7027 2005-10-11 Kim F. Storm <storm@cua.dk>
7029 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
7031 * keyboard.c (make_lispy_position): Fix buffer calculations for
7032 mouse click or movement in right fringe and the margins.
7034 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
7036 * image.c (fn_jpeg_stdio_src): Don't define it.
7037 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
7038 (our_common_init_source): Rename from `our_init_source'.
7039 (our_common_term_source): Rename from `our_term_source'.
7040 (our_memory_fill_input_buffer): Rename from
7041 `our_fill_input_buffer'.
7042 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
7043 (jpeg_memory_src): Use the new names.
7044 (struct jpeg_stdio_mgr): New struct.
7045 (JPEG_STDIO_BUFFER_SIZE): New constant.
7046 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
7047 (jpeg_file_src): New functions.
7048 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
7050 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7052 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
7053 (fm_font_family_alist): New variable.
7054 (syms_of_macterm): Initialize and staticpro it.
7055 (decode_mac_font_name): Replace '-' in family name with '_' if it
7056 occurs just once. Lower family name.
7057 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
7058 All uses changed. Remove argument MF and code conversion for it.
7059 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
7060 to CHARSET. Parse font size. Lower family name. Return integer
7061 value for status of parsing.
7062 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
7063 Don't use Fdowncase because family name is already lowered by
7064 decode_mac_font_name.
7065 (init_font_name_table): Always call decode_mac_font_name.
7066 Add pair of family name and its reference to fm_font_family_alist.
7067 (mac_clear_font_name_table): Clear fm_font_family_alist.
7068 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
7069 Lookup fm_font_family_alist to get font family reference.
7070 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
7071 name is already lowered by parse_x_font_name.
7073 2005-10-11 Kim F. Storm <storm@cua.dk>
7075 * xterm.c (glyph_rect): Return 0 if position is outside text area.
7077 * keyboard.c (make_lispy_position): Fix buffer position calculation for
7078 mouse click or movement in fringe.
7080 2005-10-10 Jason Rumney <jasonr@gnu.org>
7082 * xterm.c (remember_mouse_glyph): New function.
7083 (note_mouse_movement): Use it to remember the current glyph if changed.
7084 (XTmouse_position): Fix calculation of fake glyph under mouse.
7085 Move code to calculate glyph under mouse into remember_mouse_glyph.
7087 2005-10-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7089 * emacs.c (USAGE3, standard_args): -nb => -nbi.
7091 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
7093 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
7094 (next_frame, prev_frame, set_term_frame_name): Make static.
7096 * window.c (Fwindow_tree): Fix spelling.
7098 2005-10-09 Romain Francoise <romain@orebokech.com>
7100 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
7102 2005-10-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7104 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
7105 Add options -nb, --no-bitmap-icon.
7107 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
7109 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7111 * macgui.h (MAX_CLIP_RECTS): New define.
7112 (struct _XGC): New member clip_region.
7113 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
7116 * macterm.c (GC_CLIP_REGION): New macro.
7117 (saved_port_clip_region): New variable.
7118 (mac_begin_clip, mac_end_clip): New functions.
7119 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
7120 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
7121 (mac_copy_area_with_mask, mac_scroll_area): Use them.
7122 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
7123 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
7124 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
7125 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
7126 rectangles stored in gc.
7127 (XFreeGC): Dispose of clipping region.
7128 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
7129 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
7130 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
7131 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
7132 (x_draw_bar_cursor): Use them.
7133 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
7134 get multiple clipping rectangles.
7136 * macterm.h (mac_term_init): Add types to extern.
7137 (struct mac_output): Remove members mWP and pending_menu_activation.
7138 Put members scroll_bar_foreground_pixel and
7139 scroll_bar_background_pixel in #if 0.
7140 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
7142 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
7145 2005-10-08 Kim F. Storm <storm@cua.dk>
7147 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
7149 2005-10-07 Kim F. Storm <storm@cua.dk>
7151 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
7152 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
7153 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
7155 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7157 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
7158 to for_overlaps. Now occupy 3 bits.
7159 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
7160 (OVERLAPS_ERASED_CURSOR): New defines.
7161 (struct redisplay_interface): Add new OVERLAPS arg to member
7162 fix_overlapping_area.
7163 (x_fix_overlapping_area): Add new OVERLAPS arg.
7164 (get_glyph_string_clip_rects): Add extern.
7166 * dispnew.c (redraw_overlapping_rows):
7167 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
7169 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
7171 (get_glyph_string_clip_rects): New function created from
7172 get_glyph_string_clip_rect. Set clipping rectangles according to the
7173 value of for_overlaps. Enable to store multiple clipping rectangles.
7174 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
7175 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
7176 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
7177 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
7178 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
7179 calculating clipping rectangles later. Call x_fix_overlapping_area
7180 with new OVERLAPS arg to draw only erased cursor area.
7181 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
7182 to draw overlaps in both preceding and succeeding rows.
7184 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
7185 struct glyph_string to for_overlaps.
7187 2005-10-04 Richard M. Stallman <rms@gnu.org>
7189 * alloc.c (refill_memory_reserve): Conditionalize the body,
7190 not the function's existence.
7192 2005-10-04 Kim F. Storm <storm@cua.dk>
7194 * window.c (window_split_tree): New function.
7195 (Fwindow_split_tree): New defun.
7196 (syms_of_window): Defsubr it.
7198 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7200 * macterm.c (mac_invert_rectangle): New function.
7203 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
7205 * regex.h (re_char): Don't expose it in the interface.
7206 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
7208 * regex.c (re_char): Move it back here.
7209 (re_set_whitespace_regexp): Change the arg's type to not use it.
7211 * keyboard.c (make_lispy_event): If point has moved between down and up
7212 event, make it a drag, not a click, to mirror what
7213 mouse-drag-region expects.
7215 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7217 * lisp.h (fatal): Undo previous change.
7218 * term.c (fatal): Undo previous change.
7220 2005-10-01 Richard M. Stallman <rms@gnu.org>
7222 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
7224 2005-10-01 Kim F. Storm <storm@cua.dk>
7226 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
7228 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7230 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
7232 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
7233 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
7234 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
7235 Try ATSUI-compatible 12pt Monaco font first.
7237 * macgui.h (struct _XCharStruct): New member valid_p.
7238 (STORE_XCHARSTRUCT): Set valid_p.
7239 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
7241 * macterm.c (mac_draw_string_common, x_per_char_metric)
7242 (mac_compute_glyph_string_overhangs, init_font_name_table)
7243 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
7244 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
7245 (x_draw_glyph_string_background)
7246 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
7247 XDrawImageString. Always draw background and foreground separately.
7248 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
7249 functions for one-byte chars when using ATSUI-compatible fonts.
7250 (atsu_font_id_hash) [USE_ATSUI]: New variable.
7251 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
7252 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
7253 max_char_or_byte2 more in detail.
7254 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
7256 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
7258 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
7259 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
7261 * unexelf.c (fatal): Fix prototype.
7263 * term.c (fatal): Implement using varargs.
7265 * regex.c (re_char): Move typedef ...
7266 * regex.h (re_char): ... here.
7267 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
7269 * emacs.c (malloc_set_state): Fix return type.
7272 * lisp.h (fatal): Add argument types.
7274 * dispextern.h (fatal): Delete prototype.
7276 * systime.h (make_time): Prototype moved from ...
7277 * editfns.c (make_time): ... here.
7279 * editfns.c: Move systime.h include after lisp.h.
7282 * process.c: Likewise.
7284 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
7285 Add parameter types.
7286 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
7287 (emacs_blocked_free): Change definition to match __free_hook.
7288 (emacs_blocked_malloc): Change definition to match __malloc_hook.
7289 (emacs_blocked_realloc): Change definition to match __realloc_hook.
7291 2005-09-30 Romain Francoise <romain@orebokech.com>
7293 * minibuf.c (Fread_buffer): Follow convention for reading from the
7294 minibuffer with a default value. Doc fix.
7296 2005-09-29 Juri Linkov <juri@jurta.org>
7298 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
7299 Rename argument name `string' to `format-string'.
7302 2005-09-28 Kim F. Storm <storm@cua.dk>
7304 * image.c (gif_load): Fix size of allocated image buffer
7305 for images where a sub-image may be larger than the image's
7306 total height/width specifications.
7308 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7310 * macgui.h (struct _XCharStruct): Each member now takes short value.
7312 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
7314 * xfaces.c (lookup_derived_face): Add parameter type.
7316 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
7318 * marker.c (verify_bytepos): Add parameter type.
7320 * process.c (get_operating_system_release): Move prototype ...
7322 * systime.h (get_operating_system_release): ... here.
7324 * xterm.c (handle_one_xevent): Refer to union field to match the
7325 type required by the function definition.
7326 (set_vertical_scroll_bar): Move prototype ...
7328 * xterm.h: ... here.
7330 * fns.c (internal_equal, seed_random): Fix prototypes.
7331 (internal_equal): Add missing parameter.
7333 2005-09-25 Richard M. Stallman <rms@gnu.org>
7335 * keyboard.c (update_menu_bindings): Variable deleted.
7336 (syms_of_keyboard): Don't defvar it.
7337 (parse_menu_item): Don't test it.
7339 2005-09-23 Richard M. Stallman <rms@gnu.org>
7341 * editfns.c (Fformat): Explicitly test for end of format string
7342 and don't use `index'.
7344 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
7346 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
7347 Define BROKEN_GET_CURRENT_DIR_NAME.
7349 * sysdep.c (get_current_dir_name): Also define if
7350 BROKEN_GET_CURRENT_DIR_NAME.
7352 * m/ibmrs6000.h: Test for USG5, not USG5_4.
7354 2005-09-22 Kim F. Storm <storm@cua.dk>
7356 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
7357 (message2): Fix commentary. Ok to use alloca'ed memory.
7358 Still not ok to use Lisp string data (because of GC).
7359 (set_message): Add comment why GC cannot happen.
7361 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7363 * macterm.c (xlfdpat_block_match_1): Fix assertion.
7364 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
7365 variants for a scalable font multiple times.
7367 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7369 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
7370 Setup slave tty options before forking.
7372 2005-09-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7374 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
7375 positions have been set for the frame (as is done for frames in
7376 special-display-buffer-names).
7378 2005-09-19 Kim F. Storm <storm@cua.dk>
7380 * editfns.c (Fformat): Don't scan past end of format string that
7381 ends in %. Reported by: Johan Bockg
\e,Ae
\e(Brd.
7383 2005-09-18 Andreas Schwab <schwab@suse.de>
7385 * window.h (struct window): Remove height_fixed_p, no longer set.
7387 * window.c (make_window): Don't initialize height_fixed_p.
7388 (window_fixed_size_p): Don't use it.
7390 2005-09-18 John Paul Wallington <jpw@pobox.com>
7392 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
7394 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7396 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
7398 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7400 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
7403 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
7405 2005-09-17 Eli Zaretskii <eliz@gnu.org>
7407 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
7408 (obj): Use XMENU_OBJ, not a literal xmenu.o.
7410 2005-09-16 Romain Francoise <romain@orebokech.com>
7412 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
7414 2005-09-15 Richard M. Stallman <rms@gnu.org>
7416 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
7417 (display_mode_element): Instead of `lisp_string' and `this',
7418 record `offset' and increment that.
7419 `last_offset' replaces `last'.
7421 * Makefile.in (XMENU_OBJ): Variable deleted.
7422 (obj): Use xmenu.o unconditionally.
7423 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
7425 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
7427 2005-09-15 Kim F. Storm <storm@cua.dk>
7429 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
7430 (reseat_at_next_visible_line_start): Likewise (in xassert).
7432 2005-09-14 Romain Francoise <romain@orebokech.com>
7434 * fileio.c (write_region_inhibit_fsync): New variable.
7435 (Fwrite_region): Use it to skip call to fsync.
7436 (syms_of_fileio): Initialize it.
7438 2005-09-14 Kenichi Handa <handa@m17n.org>
7440 * coding.c (code_convert_region_unwind): Argument format changed.
7441 (run_pre_post_conversion_on_str): If pre-write-conversion function
7442 changed the current buffer, delete the new buffer.
7443 (run_pre_write_conversin_on_c_str): Likewise.
7445 * fileio.c (Fexpand_file_name): Check multibyteness of
7448 2005-09-13 Kenichi Handa <handa@m17n.org>
7450 * composite.c (compose_chars_in_text): Delete it.
7452 * composite.h (compose_chars_in_text): Delete extern.
7454 2005-09-13 Kim F. Storm <storm@cua.dk>
7456 * print.c (print_error_message): Fix last change.
7458 2005-09-12 Kim F. Storm <storm@cua.dk>
7460 * composite.c (compose_chars_in_text): Fix setup of `pend'.
7461 Unconditionally reload `ptr' and `pend' after eval.
7463 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
7465 * print.c (print_error_message): Pass copy of caller name to
7468 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
7470 2005-09-12 Kenichi Handa <handa@m17n.org>
7472 * xdisp.c (display_mode_element): Be sure to make variables THIS
7473 and LISP_STRING point into a string data of ELT.
7475 2005-09-12 Kim F. Storm <storm@cua.dk>
7477 * editfns.c (Ftranslate_region_internal): Reload `tt' after
7478 signal_after_change that may have GC'ed.
7479 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
7481 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
7482 after insert while runs signal_after_change.
7484 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
7485 declaration to where it is used.
7487 * w32.c (check_windows_init_file): Fix allocation of error buffer.
7489 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
7490 (x_set_name_internal): Call x_encode_text with new FREEP arg to
7491 know if xfree is needed instead of guessing.
7493 * xterm.h (x_encode_text): Remove prototype.
7495 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
7497 * w32term.c (x_bitmap_icon): Load small icons too.
7499 2005-09-10 Romain Francoise <romain@orebokech.com>
7501 * buffer.c (init_buffer): Grow buffer to add directory separator
7502 and terminal zero. Fix typos.
7504 2005-09-10 Eli Zaretskii <eliz@gnu.org>
7506 * buffer.c (init_buffer): Fix error message for failed call to
7507 get_current_dir_name.
7508 (get_current_dir_name): Remove prototype.
7510 * xsmfns.c (get_current_dir_name): Remove prototype.
7512 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7515 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
7516 Don't #undef NULL after including blockinput.h.
7518 * config.in: Regenerated.
7520 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
7522 Remove the MAXPATHLEN limitations:
7524 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7527 * buffer.c (init_buffer): Use it.
7529 * xsmfns.c (smc_save_yourself_CB): Ditto.
7531 2005-09-09 Kim F. Storm <storm@cua.dk>
7533 * doc.c (Fsubstitute_command_keys): Lookup key binding for
7534 commands that are remapped from some other command.
7536 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
7537 flag in disabled rows below the window.
7539 * frame.h (struct frame): New member updated_p.
7541 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
7542 member. Remove local `updated' array and associated variables.
7544 2005-09-07 Kim F. Storm <storm@cua.dk>
7546 * xdisp.c (handle_display_prop): Respect overlay window property.
7548 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
7549 Fixes crash reported by YAMAMOTO Mitsuharu.
7551 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7553 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
7554 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
7555 (xlfdpat_block_match_1, xlfdpat_match): New functions.
7556 (xlfdpat_block_match): New macro.
7557 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
7558 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
7559 (add_font_name_table_entry): Increase font_name_table_size more
7561 (mac_c_string_match): Remove function.
7562 (mac_do_list_fonts): Use XLFD pattern match instead of regular
7565 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
7567 2005-09-03 Richard M. Stallman <rms@gnu.org>
7569 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
7570 (move_it_in_display_line_to): Stop after last char on line even
7571 on a windowing terminal, if that's the specified stop position.
7573 * fns.c (Fsort): Doc fix.
7575 * editfns.c (Fpropertize): Don't insist that properties be symbols.
7577 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
7579 * dired.c (directory_files_internal_unwind, directory_files_internal)
7580 (file_name_completion): Use a Save_Value object rather than a cons of
7581 two 16bit ints to store the DIR*.
7582 (directory_files_internal, file_name_completion): Handle both EINTR and
7583 EAGAIN consistently after `readdir'.
7585 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
7587 * intervals.c (update_interval): Add position info in error.
7589 * dispnew.c (window_to_frame_hpos, update_window):
7590 Avoid gcc warning about unused variable `f'.
7592 2005-08-31 Jason Rumney <jasonr@gnu.org>
7594 * w32menu.c (add_menu_item): If unicode_append_menu returns an
7595 error, revert to using AppendMenu.
7597 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7599 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
7601 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
7603 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
7604 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
7605 Use posix_pathname_to_fsspec.
7606 [MAC_OS] (xpm_load_image): Fill in background_transparent field
7609 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
7611 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
7613 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7615 * syntax.c (update_syntax_table): Properly reproduce the special +1
7616 setting of e_property at the end of the buffer when bumping into the
7617 INTERVALS_AT_ONCE limit.
7619 2005-08-27 Eli Zaretskii <eliz@gnu.org>
7621 * emacs.c (USAGE1): Fix the description of the -Q option.
7623 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
7625 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
7627 2005-08-26 Kim F. Storm <storm@cua.dk>
7629 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
7630 Don't move PT to new window start.
7632 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7634 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
7635 ICONIFY/DEICONIFY_EVENT.
7637 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
7638 Restore background color.
7639 (mac_handle_visibility_change): New function.
7640 (x_make_frame_invisible, x_iconify_frame)
7641 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
7642 [USE_CARBON_EVENTS] (mac_handle_window_event)
7643 (install_window_handler): Handle visibility change events.
7644 (x_make_frame_visible): Don't reposition window if it is iconified
7645 or asked for visible before. Select and uncollapse window when it
7647 (x_make_frame_invisible): Don't reset x_highlight_frame.
7648 (x_iconify_frame): Likewise. Make invisible frame visible before
7650 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
7651 (do_window_update): Don't change visibility of invisible frame.
7653 2005-08-22 Juri Linkov <juri@jurta.org>
7655 * term.c (turn_on_face): Check for TS_set_foreground and
7656 TS_set_background depending on standout_mode. Simplify.
7658 2005-08-21 Kim F. Storm <storm@cua.dk>
7660 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
7661 bitmaps on fully visible rows.
7663 * fringe.c (update_window_fringes): Replace FORCE_P arg with
7664 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
7667 * xdisp.c (redisplay_window): Call update_window_fringes with
7668 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
7670 2005-08-20 Richard M. Stallman <rms@gnu.org>
7672 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
7673 (resize_mini_window): Set w->start, and PT, so as to display the tail
7674 end of the buffer, if it doesn't all fit.
7676 2005-08-18 Kim F. Storm <storm@cua.dk>
7678 * xdisp.c (calc_pixel_width_or_height): Use actual display
7679 resolution when available instead of Vdisplay_pixels_per_inch.
7681 2005-08-17 Kim F. Storm <storm@cua.dk>
7683 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
7685 * dispnew.c (buffer_posn_from_coords): Check that target row is
7688 2005-08-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7690 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
7691 xg_set_frame_icon and call it.
7693 * gtkutil.c (xg_set_frame_icon): New function.
7695 * gtkutil.h (xg_set_frame_icon): Declare it.
7697 2005-08-16 Kim F. Storm <storm@cua.dk>
7699 * dispnew.c (increment_row_positions): Skip non-enabled rows.
7701 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
7702 (Fcurrent_window_configuration): Use VECSIZE macro instead.
7704 2005-08-15 Richard M. Stallman <rms@gnu.org>
7706 * xdisp.c (message3_nolog): Clear echo_message_buffer.
7708 2005-08-15 Kim F. Storm <storm@cua.dk>
7710 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
7712 * process.c (deactivate_process, status_notify, read_process_output)
7713 (update_status, status_convert, decode_status, allocate_pty)
7714 (make_process, remove_process, list_processes_1)
7715 (create_process_1, unwind_request_sigio, read_process_output)
7716 (send_process, keyboard_bit_set): Declare static.
7717 (Fdelete_process): Simplify. Pass process to status_notify, so we
7718 don't try to read output from it.
7719 (status_notify): New arg deleting_process--don't try to read
7720 output from that process.
7722 * lisp.h (deactivate_process, status_notify, read_process_output):
7725 2005-08-14 Richard M. Stallman <rms@gnu.org>
7727 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
7730 2005-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7732 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
7733 (xg_get_image_for_pixmap): Move some code to
7734 xg_get_pixbuf_from_pix_and_mask, and call it.
7736 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
7738 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
7739 to get an GTK icon and set it with GTK functions to avoid having GTK
7740 override an icon set with just X functions.
7742 2005-08-11 Richard M. Stallman <rms@gnu.org>
7744 * image.c (syms_of_image): Init image_types here, and call
7746 (init_image): Not here.
7748 2005-08-09 Richard M. Stallman <rms@gnu.org>
7750 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
7752 * lisp.h (QUIT): Throw t to Vthrow_on_input.
7754 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
7756 * floatfns.c (Fexpt): Use floats for negative exponent.
7758 2005-08-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7760 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
7761 should not be there, causing menu display errors with GTK 2.6.9.
7763 2005-08-07 Richard M. Stallman <rms@gnu.org>
7765 * floatfns.c (Fexpt): Undo previous change.
7767 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
7768 so it can be used with various state vectors.
7770 * emacs.c (endif): Convert -script into -scriptload.
7771 (standard_args): Add -scriptload. Allow -basic-display with one dash.
7773 * fns.c (syms_of_fns): Add `emacs' to features.
7775 * term.c (set_terminal_modes): If no TS_termcap_modes string,
7776 output newlines to scroll the old screen contents off the screen.
7778 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
7780 * floatfns.c (Fexpt): Use floats for negative exponent.
7783 2005-08-02 Richard M. Stallman <rms@gnu.org>
7785 * frame.c (Fframe_char_width): Doc fix.
7787 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
7789 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
7792 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
7794 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
7795 (my_create_window, my_create_tip_window): Make static.
7797 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
7798 (my_set_foreground_window, my_destroy_window): Make static.
7800 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
7802 Merge gnulib getopt implementation into Emacs.
7804 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
7805 now part of lib-src.
7807 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
7809 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
7811 2005-07-25 Jason Rumney <jasonr@gnu.org>
7813 * w32menu.c (w32_menu_display_help): Suppress tooltip when
7814 navigating menus with the keyboard.
7816 2005-07-23 Richard M. Stallman <rms@gnu.org>
7818 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
7820 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
7821 gc_relative_threshold, one by one.
7823 * keyboard.c (read_char): Test gc_cons_threshold.
7824 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
7826 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
7827 gc_relative_threshold, one by one.
7829 * alloc.c (gc_cons_threshold): Not static.
7830 (gc_cons_combined_threshold): Var deleted.
7831 (gc_relative_threshold): New variable.
7832 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
7833 instead of gc_cons_combined_threshold.
7835 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
7836 (gc_cons_combined_threshold): Declaration deleted.
7838 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7840 * mac.c: Don't include stdlib.h or string.h.
7841 (Fdo_applescript, Fmac_file_name_to_posix)
7842 (Fmac_file_name_to_posix): Doc fixes.
7843 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7844 (Fmac_code_convert_string): Likewise.
7845 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
7846 if the executable is not contained in a bundle.
7848 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
7849 (gray_width, gray_height): Remove defines.
7850 (gray_bits, gray_bitmap_width, gray_bitmap_height)
7851 (gray_bitmap_bits): Remove variables.
7852 (lispy_function_keys): Remove extern.
7853 (free_frame_menubar): Add extern.
7854 (x_window_to_frame): Remove function.
7855 (unwind_create_tip_frame): Add declaration.
7856 (x_set_name_internal): New function.
7857 (x_set_name, x_set_title): Use it.
7858 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
7859 (Fx_display_pixel_height, Fx_display_planes)
7860 (Fx_display_color_cells, Fx_server_max_request_size)
7861 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7862 (Fx_display_mm_height, Fx_display_mm_width)
7863 (Fx_display_backing_store, Fx_display_visual_class)
7864 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
7866 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7868 * macselect.c (Fx_own_selection_internal): Follow error conventions.
7869 (Fx_get_selection_internal, Fx_selection_owner_p)
7870 (Fx_selection_exists_p): Doc fixes.
7871 (syms_of_macselect) <selection-converter-alist>: Likewise.
7873 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
7875 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7877 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
7878 (Fccl_execute_on_string): Likewise; add usage info.
7880 * composite.c (Fcompose_region_internal)
7881 (Fcompose_string_internal):
7882 Improve argument/docstring consistency.
7884 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
7885 Fix typos in docstrings.
7887 * textprop.c (Fnext_char_property_change)
7888 (Fprevious_char_property_change): Doc fixes.
7890 * window.c (Fset_window_margins, Fset_window_fringes):
7891 Improve argument/docstring consistency.
7893 * xfaces.c (Finternal_lisp_face_p): Doc fix.
7895 2005-07-21 Andreas Schwab <schwab@suse.de>
7897 * eval.c (restore_stack_limits): Return a value.
7899 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
7901 * eval.c (Fdefvar): Doc fix.
7903 2005-07-20 Kim F. Storm <storm@cua.dk>
7905 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
7906 Use make_save_value to unwind protect stream.
7908 * lread.c (Fload, load_unwind):
7909 Use make_save_value to unwind protect stream.
7911 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
7913 * eval.c (Fprog2, Fcalled_interactively_p),
7914 (syms_of_eval) <debug-on-quit>: Doc fixes.
7915 (syms_of_eval) <max-specpdl-size>:
7916 (Finteractive_p): Fix typos in docstrings.
7918 2005-07-19 Kim F. Storm <storm@cua.dk>
7920 * w32fns.c (Vx_hand_shape): Variable removed.
7921 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
7923 2005-07-19 Kenichi Handa <handa@m17n.org>
7925 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
7927 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
7929 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
7931 2005-07-18 Kim F. Storm <storm@cua.dk>
7933 * frame.h (struct frame): New member already_hscrolled_p.
7935 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
7936 to avoid redisplay looping hscrolling back and forth ad infinitum.
7938 2005-07-18 Juri Linkov <juri@jurta.org>
7940 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
7941 * keymap.c (Fminor_mode_key_binding):
7942 * macterm.c (mac-emulate-three-button-mouse):
7943 Delete duplicate duplicate words.
7945 2005-07-18 Ken Raeburn <raeburn@gnu.org>
7947 * minibuf.c (Ftest_completion): Fix odd syntax in test.
7949 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7951 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
7953 * macgui.h (struct _XGC): New struct.
7955 (GCForeground, GCBackground, GCFont): Use X11 mask values.
7956 (XCreateGC, XParseGeometry): Move externs to macterm.h.
7958 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
7959 (XSetFont): Add declaration.
7960 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
7962 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
7964 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
7965 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
7966 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
7968 (mac_erase_rectangle): New function.
7969 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
7970 (x_draw_stretch_glyph_string): Use it.
7971 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
7972 (XSetBackground, XSetFont): Adjust for new GC implementation.
7973 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
7974 (XTset_vertical_scroll_bar): Clear area under scroll bar.
7976 * macterm.h (struct mac_display_info): Change types of
7977 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
7978 (XCreateGC, XParseGeometry): Move externs from macgui.h.
7980 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
7982 2005-07-16 Richard M. Stallman <rms@gnu.org>
7984 * buffer.c (Fmake_overlay): Doc fix.
7986 2005-07-16 Eli Zaretskii <eliz@gnu.org>
7988 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
7989 Vw32_valid_locale_ids, and Vw32_valid_codepages.
7991 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7993 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
7994 Use Fstring_as_unibyte instead of string_make_unibyte.
7996 2005-07-15 Richard M. Stallman <rms@gnu.org>
7998 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
8000 2005-07-15 Kim F. Storm <storm@cua.dk>
8002 * xdisp.c: Fix redisplay loop in last change.
8003 (IT_POS_VALID_AFTER_MOVE_P): New macro.
8004 (move_it_vertically_backward, move_it_by_lines): Use it.
8006 2005-07-14 Jason Rumney <jasonr@gnu.org>
8008 * w32.c (init_environment): Default HOME directory to user's
8009 appdata directory if possible.
8011 2005-07-14 Kim F. Storm <storm@cua.dk>
8013 * .gdbinit (pitx): Fix output format. Print string charpos.
8015 * lread.c (syms_of_lread): Initialize seen_list.
8017 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
8019 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
8020 Staticpro re_match_object.
8022 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8024 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
8027 * macterm.c (mac_window_to_frame): Remove duplicate define.
8029 2005-07-14 Kenichi Handa <handa@m17n.org>
8031 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
8032 (code_convert_region): Adjust for the above change.
8033 (set_conversion_work_buffer): If the work buffer is already in
8034 use, generate a new buffer and return it. Otherwise return Qnil.
8035 (run_pre_post_conversion_on_str): Adjust for the above change.
8036 (run_pre_write_conversin_on_c_str): Likewise.
8038 2005-07-13 Kim F. Storm <storm@cua.dk>
8040 * xdisp.c (start_display): Don't reseat to next visible line start
8041 if current start position is in a string or image.
8042 (move_it_vertically_backward): Be sure to move out of strings and
8043 images when moving it2 forward.
8044 (move_it_by_lines): When moving forward, move to next buffer
8045 position if we end up in a string or image. When moving backward,
8046 count rows moved over when moving to start of current row in case
8047 row starts in middle of a string or image. Also move further
8048 backward if we end up in a string or image.
8049 (try_cursor_movement): If overlay string spans multiple lines,
8050 move backward to set cursor on start of an overlay string.
8051 (cursor_row_p): Row is ok if cursor is at newline from string, but
8052 string starts on this line (so we always position cursor at start
8055 * indent.c (Fvertical_motion): If start position is on an image,
8056 don't move back if we move too far (that's almost certain to happen).
8058 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
8059 row in minibuffer windows.
8060 (try_window): Don't check margins in minibuffer windows.
8062 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8064 * macterm.c: Don't include stdlib.h or composite.h.
8065 (x_use_underline_position_properties, last_mouse_press_frame)
8066 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
8067 (syms_of_macterm, mac_initialize): Don't initialize them.
8068 (waiting_for_input, initial_argv, initial_argc)
8069 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
8070 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
8071 (extra_keyboard_modifiers): Fix type in extern.
8072 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
8073 (x_scroll_bar_report_motion): Add argument types to declaration.
8074 (mac_compute_glyph_string_overhangs): Add declaration.
8075 (disable_mouse_highlight): Remove unused variable.
8076 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
8077 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
8078 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
8079 All callers changed.
8080 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
8082 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
8083 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
8084 only when its width is less than the height.
8085 (XTredeem_scroll_bar): Sync with xterm.c.
8086 (font_name_table, font_name_table_size, font_name_count):
8088 (drag_and_drop_file_list): Remove variable. Previous use is now
8090 (do_ae_open_documents): Move DRAG_N_DROP event construction part
8092 (XTread_socket): Consolidate setting of event timestamp.
8093 Move DRAG_N_DROP event construction part to do_ae_open_documents.
8094 Support extra_keyboard_modifiers.
8096 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
8097 beginning with that for ASCII.
8099 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
8101 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
8102 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
8103 (syms_of_alloc): Declare gc-cons-percentage.
8105 * eval.c (Feval, Ffuncall):
8106 * keyboard.c (read_char):
8107 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
8109 * lisp.h (gc_cons_combined_threshold): Declare.
8111 2005-07-12 Kim F. Storm <storm@cua.dk>
8113 * coding.c (Qprocess_argument):
8114 * coding.h (Qprocess_argument): Remove unused var.
8116 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
8118 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8120 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
8122 [!MAC_OSX] (fchmod, fchown): New functions.
8123 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
8124 Use SBYTES and EndianU32_BtoN.
8125 (mac_get_object_from_code): Return 4 byte string even if argument
8126 is 0. Use make_unibyte_string and EndianU32_NtoB.
8127 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
8128 (Fmac_set_file_type): Fix documents and argument declarations.
8129 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
8131 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
8133 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
8135 2005-07-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8137 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
8138 Lucid if X_I18N, font otherwise.
8140 2005-07-10 Steven Tamm <steventamm@mac.com>
8142 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
8143 (Fmac_set_file_type, Fmac_set_file_creator): Add.
8144 (mac_get_object_from_code, mac_get_code_from_arg): Add.
8146 2005-07-10 Richard M. Stallman <rms@gnu.org>
8148 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
8149 (syms_of_lread): Set up eval-buffer-list.
8150 (Feval_buffer, Feval_region): Bind eval-buffer-list.
8152 2005-07-08 Richard M. Stallman <rms@gnu.org>
8154 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
8156 2005-07-08 Kim F. Storm <storm@cua.dk>
8158 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
8159 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
8161 2005-07-07 Kim F. Storm <storm@cua.dk>
8163 * window.c (Frecenter): Fix last change (set iarg before use).
8165 2005-07-06 Richard M. Stallman <rms@gnu.org>
8167 * window.c (Frecenter): When arg is inside the scroll margin,
8168 move it out of the margin.
8170 2005-07-06 Jason Rumney <jasonr@gnu.org>
8172 * w32console.c (initialize_w32_display): Detect when the console
8173 dimensions are insane, and default to 80x25 instead.
8174 (w32_use_full_screen_buffer): Default to nil.
8176 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8178 * macterm.c (mac_draw_vertical_window_border): Use foreground of
8179 VERTICAL_BORDER_FACE_ID for vertical border line.
8180 (mac_encode_char): Call check_ccl_update in advance.
8181 (mac_to_x_fontname, x_font_name_to_mac_font_name)
8182 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
8183 Don't assume that font family length is less than 32.
8184 (x_compute_min_glyph_bounds): Make static.
8185 (x_load_font): Never set fonts_changed_p to zero.
8187 2005-07-04 Lute Kamstra <lute@gnu.org>
8189 * Update FSF's address in GPL notices.
8191 2005-07-03 Richard M. Stallman <rms@gnu.org>
8193 * xdisp.c (try_window): Fix previous change in how it handles
8194 a partially-visible line or one only partly past the margin.
8196 * window.c (window_scroll_pixel_based): Take account
8197 of this_scroll_margin when finding point when scrolling up.
8199 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
8201 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8202 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
8203 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8205 2005-07-02 Juri Linkov <juri@jurta.org>
8207 * w32term.c (w32_draw_vertical_window_border): Use foreground of
8208 VERTICAL_BORDER_FACE_ID for vertical border line.
8210 2005-07-02 Eli Zaretskii <eliz@gnu.org>
8212 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
8213 fchmod so that chmod doesn't get called on MSDOS before the file
8216 2005-07-01 Jason Rumney <jasonr@gnu.org>
8218 * w32term.c (cleartype_active): New flag for enabling sub-pixel
8220 (w32_initialize): Initialize it.
8221 (w32_native_per_char_metric): Allow a couple of extra pixels when
8222 Cleartype is active.
8224 * w32term.c (w32_initialize): Move check for screen reader here
8225 from syms_of_w32term.
8227 2005-06-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8229 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
8232 2005-07-01 Masatake YAMATO <jet@gyve.org>
8234 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
8236 2005-06-30 Juri Linkov <juri@jurta.org>
8238 * xdisp.c (x_draw_vertical_border): If left fringe is not present
8239 decrease x coord of vertical border by 1 pixel to not occupy text
8240 area of the right window.
8242 * xterm.c (x_draw_vertical_window_border): Use foreground of
8243 VERTICAL_BORDER_FACE_ID for vertical border line.
8245 * term.c (turn_on_face): In standout mode apply specified
8246 fg to bg, and specified bg to fg (this makes the logic of
8247 inversion on terminal consistent with X).
8249 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
8251 * eval.c (user_variable_p_eh): New function.
8252 (Fuser_variable_p): Use it. Clarify docstring.
8253 Return t for aliases of user options, nil for alias loops.
8255 2005-06-27 Richard M. Stallman <rms@gnu.org>
8257 * eval.c (Fdefvar): Improve error message.
8259 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8261 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
8264 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
8266 * eval.c (Fdefvar): Don't try to set constant symbols.
8268 2005-06-25 Richard M. Stallman <rms@gnu.org>
8270 * macfns.c (Fx_show_tip): Pass new arg to try_window.
8272 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
8274 * xfns.c (Fx_show_tip): Pass new arg to try_window.
8276 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
8277 (redisplay_window): Handle try_window reporting point in scroll margin.
8279 * dispextern.h (try_window): Declare new arg.
8281 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
8282 Use fchmod to copy the file modes.
8283 (Frename_file): Don't copy UID and GID here;
8284 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
8286 * eval.c (call_debugger): Take full care of extending stack limits
8287 to make space for the debugger, and restore the change afterward.
8288 Bind debug-on-error to nil.
8289 (restore_stack_limits): New subroutine.
8290 (Fsignal): Extend specpdl bound along with eval depth bound,
8291 for calling edebug. Don't do either one, for calling debugger.
8292 (find_handler_clause): Don't bind debug-on-error here.
8293 Don't unbind anything either.
8294 Temporarily advance max_specpdl_size for calling
8295 internal_with_output_to_temp_buffer.
8296 (grow_specpdl): Don't alter max_specpdl_size before signaling
8298 (syms_of_eval) <max-specpdl-size>: Doc fix.
8300 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
8302 2005-06-24 Eli Zaretskii <eliz@gnu.org>
8304 * fileio.c (Frename_file): Undo last change: no need to ifdef away
8305 chown on DOS_NT platforms.
8307 * w32.c (sys_chown): New function.
8309 * s/ms-w32.h (chown): New; define to sys_chown.
8311 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
8313 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
8314 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
8316 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
8318 2005-06-23 Richard M. Stallman <rms@gnu.org>
8320 * xdisp.c (get_next_display_element): Finish reversing the tests of
8321 Vnobreak_char_display.
8323 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
8325 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
8326 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
8328 * fileio.c (Frename_file): Preserve owner and group, if possible,
8331 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
8333 * abbrev.c (Funexpand_abbrev):
8334 * category.c (Fmake_category_set):
8335 * dispnew.c (Fsleep_for, Fsit_for):
8336 * editfns.c (Fsubst_char_in_region):
8337 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
8338 * frame.c (make_frame_without_minibuffer):
8339 * lread.c (read_vector):
8340 * macfns.c (check_x_frame):
8341 * process.c (Fstop_process, Fcontinue_process):
8342 * search.c (Freplace_match):
8343 * syntax.c (Fstring_to_syntax):
8344 * w32fns.c (check_x_frame, check_x_display_info):
8345 * xfaces.c (x_supports_face_attributes_p):
8346 * xselect.c (Fx_own_selection_internal): Follow error conventions.
8348 * image.c (fn_png_init_io): Don't define it.
8349 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
8350 (png_read_from_file): New function, based on png_read_from_memory.
8351 (png_load): Use it, instead of fn_png_init_io.
8353 2005-06-23 Kim F. Storm <storm@cua.dk>
8355 * search.c (Fmatch_data): Remove evaporate option.
8356 (Fset_match_data): Do not mention evaporate option in doc string.
8357 Add commentary explaining evaporate arg (for internal use only).
8358 (unwind_set_match_data): Add comment on evaporate use.
8360 2005-06-22 Miles Bader <miles@gnu.org>
8362 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
8363 (realize_basic_faces, syms_of_xfaces): Update references to it.
8364 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
8365 to `VERTICAL_BORDER_FACE_ID'.
8366 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
8368 2005-06-21 Juri Linkov <juri@jurta.org>
8370 * dispextern.h: Add extern Qframe_set_background_mode.
8372 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
8373 Qframe_set_background_mode.
8375 * frame.c (Fmodify_frame_parameters):
8376 Call frame-set-background-mode after changing the background color
8377 on non-window non-dos branch.
8379 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
8381 * fns.c (Fchar_table_range):
8382 * process.c (Fmake_network_process): Fix spellings.
8384 2005-06-20 Kim F. Storm <storm@cua.dk>
8386 * fns.c (Fsort): Doc fix.
8388 2005-06-20 Miles Bader <miles@gnu.org>
8390 * xfaces.c (Qvertical_divider): New variable.
8391 (realize_basic_faces): Realize its face.
8392 (syms_of_xfaces): Initialize it.
8394 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
8396 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
8397 window-separator on ttys using `vertical-divider' face by default.
8399 2005-06-17 Richard M. Stallman <rms@gnu.org>
8401 * xdisp.c (get_next_display_element):
8402 Reverse test of Vshow_nonbreak_escape.
8404 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
8405 (Ftty_no_underline): New function.
8406 (syms_of_term): defsubr it.
8408 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
8410 * dispnew.c (spec_glyph_lookup_face): New function.
8411 (build_frame_matrix_from_leaf_window): Use it.
8413 * dispextern.h (spec_glyph_lookup_face): Add declaration.
8415 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8417 2005-06-12 Richard M. Stallman <rms@gnu.org>
8419 * keyboard.c (read_char): After catching a longjmp,
8420 call restore_getcjmp.
8422 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
8424 * xselect.c (lisp_data_to_selection_data): Fix spelling.
8426 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8428 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
8429 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
8430 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
8432 (XTread_socket): Don't pass keyboard events with the option
8433 modifier to the system when Vmac_command_key_is_meta is nil or
8434 Vmac_option_modifier is non-nil.
8435 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
8436 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
8437 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
8439 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
8440 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
8441 handler part to mac_handle_mouse_event.
8443 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
8445 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
8446 NEW-ALIAS and BASE-VARIABLE, respectively.
8448 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8450 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8451 (get_phys_cursor_geometry, format_mode_line_unwind_data)
8452 (get_line_height_property, x_produce_glyphs): Remove unused vars.
8454 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
8456 2005-06-13 Eli Zaretskii <eliz@gnu.org>
8458 * w32term.c (x_use_underline_position_properties): New variable.
8459 (x_draw_glyph_string): Remind in a comment to change doc string of
8460 x-use-underline-position-properties if/when underline positioning
8462 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
8463 and initialize it to nil.
8465 2005-06-12 Jason Rumney <jasonr@gnu.org>
8467 * w32fns.c (NEWOPENFILENAME): New struct.
8468 (Fx_file_dialog): Use it to trick the system into giving us up to
8469 date dialogs on systems that are documented to support it.
8470 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
8472 2005-06-12 Eli Zaretskii <eliz@gnu.org>
8474 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
8475 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
8477 2005-06-11 Eli Zaretskii <eliz@gnu.org>
8479 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
8480 to CreateDIBSection to avoid a compiler warning.
8481 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
8483 (png_load): Cast return values of fn_png_create_read_struct and
8484 fn_png_create_info_struct, to avoid compiler warnings on W32.
8485 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
8486 to avoid compiler warnings.
8487 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
8488 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
8489 avoid a compiler warning.
8490 (tiff_load): Cast return values of fn_TIFFOpen and
8491 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
8492 to IMAGE_BACKGROUND to avoid a compiler warning.
8493 (gif_load): Cast return values of fn_DGifOpenFileName and
8494 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
8495 IMAGE_BACKGROUND to avoid a compiler warning.
8496 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
8499 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
8500 the call to CreateDIBSection, to avoid a compiler warning.
8502 2005-06-11 Jason Rumney <jasonr@gnu.org>
8504 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
8506 * macfns.c (Fx_file_dialog): Likewise.
8508 2005-06-10 Eli Zaretskii <eliz@gnu.org>
8510 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
8512 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
8514 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
8515 * w32fns.c (syms_of_w32fns): Fix spellings.
8517 2005-06-10 Eli Zaretskii <eliz@gnu.org>
8519 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
8520 `verbose'; print diagnostic messages only if it is non-zero.
8521 All callers changed to pass a zero value unless DEBUG_DUMP is defined
8523 (copy_executable_and_dump_data): Print section names with %.8s.
8525 2005-06-10 Masatake YAMATO <jet@gyve.org>
8527 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
8528 when mouse_face is not given.
8530 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
8532 * window.c (Fselect_window): Adapt call to Fselect_frame.
8534 * lisp.h: Update EXFUN of Fselect_frame.
8536 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
8538 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
8540 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
8541 Adapt to above change.
8543 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
8545 * fns.c (Fmemq, Fmaphash): Doc fixes.
8547 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
8549 * xfaces.c (Fdisplay_supports_face_attributes_p):
8550 Fix typo in docstring.
8552 2005-06-08 Steven Tamm <steventamm@mac.com>
8554 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
8555 used by gcc4 on intel mac.
8557 2005-06-09 Kim F. Storm <storm@cua.dk>
8559 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
8560 in REUSE list if non-nil; free them if equal to evaporate.
8561 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
8562 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
8563 (restore_search_regs): Rename from restore_match_data. Uses changed.
8564 (unwind_set_match_data): New function.
8565 (record_unwind_save_match_data): New function like save-match-data.
8567 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
8568 (record_unwind_save_match_data): Add prototype.
8569 (restore_search_regs): Rename from restore_match_data.
8571 * composite.c (compose_chars_in_text):
8572 * eval.c (do_autoload):
8573 * macmenu.c (set_frame_menubar):
8574 * process.c (read_process_output, exec_sentinel):
8575 * xmenu.c (set_frame_menubar):
8576 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
8577 * w32menu.c (set_frame_menubar):
8578 Use record_unwind_save_match_data.
8580 2005-06-08 Richard M. Stallman <rms@gnu.org>
8582 * xdisp.c (get_next_display_element): Alter previous change:
8583 Distinguish Vshow_nonbreak_escape = t or not t.
8584 For t, use escape_glyph once again, as before previous change.
8585 Use space or hyphen for display, instead of the non-ASCII char.
8586 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
8588 * process.c (Fstart_process): Don't touch command_channel_p slot.
8590 * process.h (struct process): Delete command_channel_p.
8592 2005-06-07 Masatake YAMATO <jet@gyve.org>
8594 * xdisp.c (note_mode_line_or_margin_highlight):
8595 Check the overlapping of re-rendering area to avoid flickering.
8596 (note_mouse_highlight): Call clear_mouse_face if PART
8597 is not ON_MODE_LINE nor ON_HEADER_LINE.
8599 2005-06-07 Kim F. Storm <storm@cua.dk>
8601 * process.c: Improve commentary for adaptive read buffering.
8603 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
8605 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
8608 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8610 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
8611 New functions for popping down menus on C-g.
8612 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
8614 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
8617 * config.in: Add HAVE_CANCELMENUTRACKING.
8619 2005-06-06 Eli Zaretskii <eliz@gnu.org>
8621 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
8623 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
8625 * w32proc.c (RVA_TO_PTR): New macro.
8627 * w32heap.c (RVA_TO_PTR): No need to #undef now.
8629 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
8630 Depend on w32heap.h.
8632 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
8634 * keyboard.c (command_loop_1): Update Vthis_original_command.
8636 2005-06-06 Richard M. Stallman <rms@gnu.org>
8638 * xmenu.c (popup_get_selection): Undo previous change.
8640 2005-06-06 Juri Linkov <juri@jurta.org>
8642 * xdisp.c (Qno_break_space): New variable.
8643 (syms_of_xdisp): Initialize it.
8644 (get_next_display_element): Add no-break space and soft hypen
8645 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
8646 Use `no-break-space' face for no-break spaces.
8648 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8650 * window.c (delete_window): Handle the case where a h/vchild has
8653 2005-06-05 Eli Zaretskii <eliz@gnu.org>
8655 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
8656 call to pfn_setsockopt, cast optval to `const char *'.
8658 2005-06-04 Eli Zaretskii <eliz@gnu.org>
8660 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
8661 (open_unc_volume): Cast return value of map_w32_filename, to avoid
8664 * s/ms-w32.h (fileno): Don't define if already defined.
8666 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
8668 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
8670 2005-06-04 Richard M. Stallman <rms@gnu.org>
8672 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
8674 2005-06-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8676 * macmenu.c (cleanup_popup_menu): New function.
8677 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
8678 mac_menu_show Quit:s.
8679 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
8682 2005-06-04 Kim F. Storm <storm@cua.dk>
8684 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
8686 * callproc.c (Fcall_process): Don't use alloca to gradually
8687 increase size of buf, as it effectively uses twice the necessary
8688 space on the stack. Instead, pre-allocate buf of full size, and
8689 gradually increase the read size.
8691 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
8693 * eval.c (unbind_to): Preserve value of Vquit_flag.
8695 * xterm.c (handle_one_xevent): Also ignore mouse motion just
8696 before a button release event.
8698 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
8700 * xfaces.c (Finternal_lisp_face_equal_p): Really report
8701 on faces in a frame, if the argument FRAME is non-nil.
8702 Improve argument/docstring consistency.
8704 2005-06-02 Kim F. Storm <storm@cua.dk>
8706 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
8707 (x_consider_frame_title, Fformat_mode_line): Save offset into
8708 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
8710 2005-06-01 Kim F. Storm <storm@cua.dk>
8712 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
8714 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8716 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
8717 resolution fields for scalable fonts to 0.
8719 * xfaces.c (build_scalable_font_name): Round pixel size to the
8722 2005-06-01 Kim F. Storm <storm@cua.dk>
8724 * xdisp.c (display_mode_line): Support nested calls to redisplay
8725 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
8727 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8729 * fileio.c (Finsert_file_contents):
8730 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8732 2005-05-31 Kim F. Storm <storm@cua.dk>
8734 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
8735 (mode_line_noprop_ptr): Rename from frame_title_*.
8736 (store_mode_line_noprop_char): Rename from store_frame_title_char.
8737 (store_mode_line_noprop): Rename from store_frame_title.
8738 (mode_line_target): New enum to specify current output target
8739 for mode line formatting.
8740 (display_mode_element): Test it rather than frame_title_ptr and
8741 mode_line_string_list to determine where output should go.
8742 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
8743 (Vmode_line_unwind_vector): New variable.
8744 (format_mode_line_unwind_data, unwind_format_mode_line):
8745 New functions for unwind protection in mode line formatting.
8746 (x_consider_frame_title): Use them and new local var 'title_start'
8747 to support nested calls to format-mode-line and redisplay.
8748 Set mode_line_target to MODE_LINE_TITLE.
8749 (Fformat_mode_line): Use them and new local var 'string_start' to
8750 support nested calls to format-mode-line and redisplay.
8751 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
8752 Don't trim trailing dashes.
8753 (decode_mode_spec): Don't make infinite number of trailing dashes
8754 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
8755 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
8756 mode_line_string_face_prop, and Vmode_line_unwind_vector.
8757 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
8758 Initialize mode_line_target to MODE_LINE_DISPLAY.
8760 2005-05-29 Richard M. Stallman <rms@gnu.org>
8762 * buffer.c (Fbuffer_local_value): Call indirect_variable.
8764 2005-05-28 Masatake YAMATO <jet@gyve.org>
8766 * xdisp.c (note_mode_line_or_margin_highlight): Change the
8767 pointer to a hand cursor when hoovering over a mouse-face.
8769 2005-05-27 Kenichi Handa <handa@m17n.org>
8771 * xterm.c (x_encode_char): Call check_ccl_update in advance.
8773 * ccl.c: Now an element of Vccl_program_table is a vector of
8775 (ccl_get_compiled_code): New arg idx. Caller changed.
8776 Adjust for the change of Vccl_program_table.
8777 (setup_ccl_program): Adjust for the change of Vccl_program_table.
8778 (check_ccl_update): New function.
8779 (Fregister_ccl_program): Use ASET to set an element of a vector.
8780 Adjusted for the change of Vccl_program_table.
8782 * ccl.h (struct ccl_program): New member idx.
8783 (check_ccl_update): Extern it.
8785 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
8787 * image.c (Vimage_library_alist): Move from image.el.
8788 (syms_of_image): Defvar it.
8789 (lookup_image_type): Use it.
8791 * buffer.c (Fbuffer_local_value): Make argument name match its use
8794 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
8796 * keyboard.c (Frecursive_edit): Fix typo in docstring.
8797 (Fposn_at_x_y): Make argument name match its use in docstring.
8799 2005-05-26 Lute Kamstra <lute@gnu.org>
8801 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
8803 2005-05-24 Masatake YAMATO <jet@gyve.org>
8805 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
8808 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
8810 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
8811 select frame title ("Question"/"Information").
8812 (xdialog_show): Use it.
8814 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
8816 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
8818 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
8819 a third argument (Qnil).
8821 * lisp.h: x-popup-dialog can have three arguments.
8823 * editfns.c (Fmessage_box): Use "Information" for frame title.
8825 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
8827 * termcap.c [VMS]: Include <starlet.h>.
8829 2005-05-23 Masatake YAMATO <jet@gyve.org>
8831 * xdisp.c (note_mode_line_or_margin_highlight): Add code
8832 for mouse-face. Change the type of the first argument from `window'
8834 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
8835 window instead of w.
8837 2005-05-22 Andreas Schwab <schwab@suse.de>
8839 * process.c (send_process): Move misplaced volatile.
8841 2005-05-21 Richard M. Stallman <rms@gnu.org>
8843 * xdisp.c (display_mode_element): If we're processing a list and
8844 padding is specified, put it after the last element.
8846 2005-05-21 Eli Zaretskii <eliz@gnu.org>
8848 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
8849 "superroot" on DOS_NT systems.
8851 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
8853 * process.c (send_process): Restore the SIGPIPE handler if we
8856 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
8858 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
8859 misleading comments).
8860 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
8862 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8864 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
8865 Correct the right value.
8867 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
8869 * keyboard.c (syms_of_keyboard): Remove Lisp variables
8870 post-command-idle-hook and post-command-idle-delay.
8871 (command_loop_1): Don't try to execute post-command-idle-hook.
8873 2005-05-16 Kim F. Storm <storm@cua.dk>
8875 * xdisp.c (handle_display_prop): Handle empty replacement.
8876 (handle_single_display_spec): Return -1 for empty replacement.
8878 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
8880 * .gdbinit (pitx): Print more info about iterator.
8882 2005-05-16 Andreas Schwab <schwab@suse.de>
8884 * unexmacosx.c (unexec_realloc): Move declarations before statements.
8886 2005-05-14 Richard M. Stallman <rms@gnu.org>
8888 * xdisp.c (message3): Call cancel_echoing.
8890 * alloc.c (Fmemory_full_p): New function.
8891 (syms_of_alloc): defsubr it.
8893 * process.c (send_process_trap): Unblock SIGPIPE.
8894 (send_process): Reset SIGPIPE handler before reporting error.
8896 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
8898 * emacs.c (syms_of_emacs): Fix doc string for system-type.
8900 2005-05-13 Richard M. Stallman <rms@gnu.org>
8902 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
8903 (Finsert_file_contents): If we read 0 bytes from a special file,
8904 unlock the visited file if we locked it.
8905 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
8906 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
8908 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8910 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
8912 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
8913 Regard toolkit scroll bar thumb drag events as squeezable and prevent
8914 redisplay from being paused by them.
8916 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
8917 [!MAC_OSX] (target_ticks): Remove variable.
8918 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
8919 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
8920 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
8921 event occurs before timeout, behave as if the function were interrupted.
8922 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
8923 handling using Time Manager routines.
8924 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
8926 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
8927 (setitimer): New functions.
8929 * macfns.c, macmenu.c: Don't include signal.h.
8931 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
8932 Rename from get_control_part_bound. All callers changed.
8933 (x_scroll_bar_clear): New function.
8934 (x_clear_frame): Use it.
8935 (XTset_vertical_scroll_bar): Don't call Draw1Control.
8936 (x_scroll_bar_handle_click): Change type of second argument from
8937 int to ControlPartCode.
8938 (check_alarm): Remove declaration.
8939 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
8940 (XTread_socket): Use ControlPartCode instead of SInt16.
8942 2005-05-13 Nozomu Ando <nand@mac.com>
8944 * unexmacosx.c: Include assert.h.
8945 (MACOSX_MALLOC_MULT16): New define.
8946 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
8947 ptr is in unexec regions by checking it is multiple of 16.
8948 (unexec_malloc_header_t): New typedef.
8949 (unexec_malloc, unexec_realloc, unexec_free): Store and use
8950 allocated size information in unexec_malloc_header.
8952 2005-05-10 Richard M. Stallman <rms@gnu.org>
8954 * xterm.c (noinclude): Add #undef.
8956 * image.c, xfns.c, xmenu.c: Don't include signal.h.
8958 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
8960 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
8961 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
8964 * dired.c (Ffile_name_completion): Make argument name
8965 match its use in docstring.
8967 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
8969 * eval.c (Fdefvaralias): Remove any pre-existing
8970 variable-documentation property of the alias.
8972 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
8974 * xfns.c (start_hourglass): Do nothing when running on a tty.
8976 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
8978 * fns.c (Fchar_table_range): Fix typos in docstring.
8980 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8982 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
8984 2005-05-06 Eli Zaretskii <eliz@gnu.org>
8986 * lread.c (Flocate_file_internal): Doc fix.
8988 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
8990 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8992 * macselect.c (x_own_selection): Accept Lisp string as result of
8993 selection converter function.
8994 (x_clear_frame_selections): Don't call x-lost-selection-functions
8995 if Emacs is not owner of the selection.
8996 (Vmac_services_selection): Put variable and initialization in
8998 (syms_of_macselect) [MAC_OSX]: Set default value of
8999 Vmac_services_selection to PRIMARY.
9001 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
9002 (mac_handle_tool_bar_click): Remove unused function and declaration.
9003 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
9004 (install_scroll_bar_timer, set_scroll_bar_timer)
9005 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
9006 (get_control_part_bound, x_scroll_bar_handle_press)
9007 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
9008 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
9009 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
9010 (scroll_bar_timer_event_posted_p): New variables.
9011 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
9012 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
9013 (x_scroll_bar_create): Set control reference with NewControl.
9014 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
9015 Initialize track_top and track_height to nil.
9016 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
9017 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
9018 (XTset_vertical_scroll_bar): Don't make space between scroll bar
9019 and associated window.
9020 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
9022 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9023 Set track_top and track_height to nil when scroll bar size is changed.
9024 Recalculate them if they are nil.
9025 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
9026 clicked control is a scroll bar.
9027 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
9028 event handler functions. Don't add modifiers to scroll bar click
9029 events. Call scroll bar release handler when window is deactivated.
9030 (mac_initialize): Remove unused code for X toolkit.
9031 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
9032 Initialize Vx_toolkit_scroll_bars to nil.
9034 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9035 New members track_top and track_height.
9037 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
9038 init_process when including sys/select.h.
9040 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
9042 * eval.c (Fdefvaralias): Doc fix.
9044 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9046 2005-05-05 Kim F. Storm <storm@cua.dk>
9048 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
9050 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
9051 Fix type of cursor-in-non-selected-windows.
9053 2005-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9055 * mac.c: #undef init_process so not to conflict with system headers.
9057 2005-05-02 Richard M. Stallman <rms@gnu.org>
9059 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
9061 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
9063 * xdisp.c (Vcursor_in_non_selected_windows)
9064 (Qcursor_in_non_selected_windows): Vars deleted.
9065 (syms_of_xdisp): Don't initialize them.
9066 (get_window_cursor_type): Use cursor_in_non_selected_windows
9069 2005-05-02 Kim F. Storm <storm@cua.dk>
9071 * macros.c (executing_kbd_macro_index): Rename from
9072 executing_macro_index. All uses changed.
9073 (executing_kbd_macro_iterations): Rename from
9074 executing_macro_iterations. All uses changed.
9075 (executing_kbd_macro): Rename from executing_macro.
9077 (syms_of_macros): Rename Lisp var executing-macro-index to
9078 executing-kbd-macro-index.
9080 * xdisp.c (move_it_in_display_line_to): Fix last change.
9082 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9084 * xmenu.c (Fx_popup_menu): Doc fix.
9086 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
9088 2005-05-02 Jason Rumney <jasonr@gnu.org>
9090 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
9092 2005-05-02 Nozomu Ando <nand@mac.com>
9094 * sysselect.h: Fix typo.
9096 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
9098 * charset.c (Fchars_in_region): Remove as obsolete.
9100 2005-05-01 Kim F. Storm <storm@cua.dk>
9102 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
9103 TO_CHARPOS. This may happen if last glyphs was an image or stretch
9106 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9108 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
9110 2005-05-01 Richard M. Stallman <rms@gnu.org>
9112 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
9113 If user cancels the menu, quit unless FOR_CLICK.
9115 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
9117 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
9118 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
9119 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
9120 * commands.h (Vexecuting_kbd_macro): Likewise.
9122 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
9124 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
9126 2005-04-30 Richard M. Stallman <rms@gnu.org>
9128 * fileio.c (Ffind_file_name_handler): Handle the `operations'
9129 property of the file name handler.
9130 (Qoperations): New variable.
9131 (syms_of_fileio): Initialize and staticpro it.
9133 * xdisp.c (set_message_1): Delete xassert.
9135 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9137 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
9139 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
9141 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
9142 before/after including Carbon.h if there is a working mktime.
9144 2005-04-28 Kim F. Storm <storm@cua.dk>
9146 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
9147 Fix cyclic alias check. If alias loop is detected, signal
9148 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
9150 2005-04-28 Lute Kamstra <lute@gnu.org>
9152 * eval.c (do_autoload): Record only autoloads in the autoload
9153 property of symbols.
9155 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
9157 * emacs.c (USAGE1): Add --basic-display and --quick options.
9159 2005-04-27 Kim F. Storm <storm@cua.dk>
9161 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
9163 2005-04-26 Richard M. Stallman <rms@gnu.org>
9165 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
9166 (syms_of_window): Doc fixes.
9168 * indent.c (Fvertical_motion): Undo previous change.
9170 2005-04-26 Kenichi Handa <handa@m17n.org>
9172 * fns.c (char_table_range): New function.
9173 (Fchar_table_range): Signal an error if characters in the range
9174 have inconsistent values. Don't check the parent.
9176 2005-04-25 Kenichi Handa <handa@m17n.org>
9178 * fontset.c (fontset_set): Fix previous change.
9180 2005-04-24 Richard M. Stallman <rms@gnu.org>
9182 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
9184 2005-04-24 Eli Zaretskii <eliz@gnu.org>
9186 * regex.c (re_search_2, re_match_2_internal): Convert second arg
9187 of RE_TRANSLATE to int, to shut up GCC warnings.
9189 * fileio.c (Fcopy_file): Doc fix.
9190 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
9193 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9195 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
9196 (SOME_MACHINE_OBJECTS): Likewise.
9197 (mac.o): Depend on ccl.h.
9198 (macselect.o): New target.
9200 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
9201 Call syms_of_macselect.
9203 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
9205 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
9206 (QCLIPBOARD): Remove variable.
9207 (syms_of_mac): Don't initialize it.
9208 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
9210 (syms_of_mac): Don't defsubr them.
9211 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
9212 (QHFS_plus_D, QHFS_plus_C): New variables.
9213 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9214 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
9215 (cfstring_create_normalized): New functions.
9216 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
9217 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9219 * macterm.c (handling_window_update, terminate_flag):
9221 (do_window_update, do_ae_quit_application, XTread_socket):
9223 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
9224 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
9225 (init_service_handler): Move to macselect.c. Remove declarations.
9226 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
9227 (Qapplication, Qabout): New variables.
9228 (syms_of_mac): Initialize them.
9229 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
9230 (Qperform): New variables.
9231 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
9232 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
9233 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
9234 (mac_store_application_menu_event, init_menu_bar): New functions.
9235 [USE_CARBON_EVENTS] (mac_handle_command_event)
9236 (init_command_handler): New functions.
9237 (mac_handle_window_event): Return noErr on window update event.
9238 (do_ae_quit_application): Call mac_store_application_menu_event.
9239 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
9242 * macterm.h (x_clear_frame_selections): Add extern.
9244 * macselect.c: New file for selection processing on Mac OS.
9246 2005-04-23 Richard M. Stallman <rms@gnu.org>
9248 * fileio.c (Fcopy_file): New arg MUSTBENEW.
9249 (Frename_file): Pass new arg to Fcopy_file.
9251 * window.c (window_size_fixed): Variable deleted.
9252 (syms_of_window): Initialize window-size-fixed to nil.
9253 But don't DEFVAR window_size_fixed.
9255 2005-04-23 Andreas Schwab <schwab@suse.de>
9257 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
9258 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
9259 use lib64 instead of lib.
9260 (_LP64) [_ARCH_PPC64]: Define if not defined.
9262 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
9264 * s/ms-w32.h (HAVE_PWD_H): Define.
9266 2005-04-22 Kenichi Handa <handa@m17n.org>
9268 * fns.c (copy_sub_char_table): Explicitly copy the default value
9269 of the sub-chartable.
9271 * fontset.c (fontset_set): When a sub-chartable is created,
9272 explicitly sets the defalt value.
9274 2005-04-22 Kim F. Storm <storm@cua.dk>
9276 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
9277 (Fsafe_plist_get): Rename to Fplist_get.
9278 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
9279 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
9281 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
9283 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
9284 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9285 Use Fplist_get instead of Fsafe_plist_get.
9287 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
9289 2005-04-21 Miles Bader <miles@gnu.org>
9291 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
9293 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
9295 * sysdep.c: Remove reference to defunct vms-pwd.h.
9296 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
9297 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
9299 * config.in: Regenerate.
9301 2005-04-20 Kenichi Handa <handa@m17n.org>
9303 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
9304 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
9305 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
9307 * alloc.c (make_sub_char_table): Argument changed to initial
9310 * data.c (Faref): Handle special slots used as default values of
9311 ascii, eight-bit-control, eight-bit-control. Don't ignore a
9312 default value set for a group of characters.
9313 (Faset): Signal an error if IDXVAL is not a valid character code.
9314 Make a sub-chartable with correct initial value.
9316 * fns.c (Fset_char_table_range): Don't set slots used as default
9317 values for ascii, eight-bit-control, eight-bit-graphic.
9318 Don't call Faref with charset-id.
9319 (Fset_char_table_default): Document how to treat normal character
9320 argument. Handle special slots used as default values of ascii,
9321 eight-bit-control, eight-bit-control. Make a sub chartable if
9324 2005-04-20 Kenichi Handa <handa@m17n.org>
9326 * search.c (boyer_moore): Fix previous change.
9328 2005-04-19 Kim F. Storm <storm@cua.dk>
9330 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
9331 face unless last visible char and first invisible char have the
9332 same face. Also use default face if saved_face_id is undefined.
9334 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9336 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
9338 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
9339 mac_scriptcode member.
9341 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
9342 (syms_of_mac): Don't initialize them.
9343 (Vmac_charset_info_alist): New variable.
9344 (syms_of_mac): Defvar it.
9345 (create_text_encoding_info_alist): New function.
9346 (decode_mac_font_name, mac_to_x_fontname)
9347 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
9348 code the correspondence among XLFD charsets, Mac script codes, and
9349 Emacs coding systems. Use Vmac_charset_info_alist and result of
9350 create_text_encoding_info_alist instead.
9351 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
9352 routines also on Mac OS Classic.
9353 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
9354 Use add_font_name_table_entry.
9355 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
9356 specified. Derive unspecified scalable fields from specified one.
9357 (x_list_fonts): Consider Valternate_fontname_alist.
9358 (kDefaultFontSize): Change value from 9 to 12.
9359 (XLoadQueryFont): Get decoded font family, font face, and charset
9360 from x_font_name_to_mac_font_name. Set full name of loaded font.
9361 (mac_unload_font): Free `full_name' member.
9362 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
9363 NULL. Copy full_name member of struct MacFontStruct to that of
9366 2005-04-19 Kim F. Storm <storm@cua.dk>
9368 * xdisp.c (handle_stop): Set saved_face_id to current face if
9369 selective_display_ellipsis_p so ellipsis will be shown in same
9370 face as preceding text.
9371 (setup_for_ellipsis): Don't set saved_face_id here.
9372 (next_element_from_display_vector): Default to saved_face_id.
9374 * fns.c (Fsafe_get): New function.
9375 (syms_of_fns): Defsubr it.
9377 * lisp.h (Fsafe_get): EXFUN it.
9379 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
9380 loops in case of bad face property lists. Limit number of face
9381 alias lookups to 10 (in case of face alias loops).
9383 2005-04-18 Kim F. Storm <storm@cua.dk>
9385 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
9386 It replaces the corresponding member from struct window, as a
9387 window may now show multiple overlay arrows.
9388 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
9390 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
9391 Compare overlay_arrow_bitmap than overlay_arrow_p members.
9393 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
9394 rather than from window.
9395 (update_window_fringes): Compare overlay_arrow_bitmap rather than
9396 overlay_arrow_p members.
9397 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
9400 * window.h (struct window): Remove member overlay_arrow_bitmap.
9402 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
9404 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
9405 Calls changed. Don't check for overlay-arrow-bitmap property here.
9406 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
9407 fringe is present, return Lisp integer for bitmap (or -1 for default).
9408 Fix value of overlay-arrow-bitmap property to be a symbol, use
9409 lookup_fringe_bitmap to parse it.
9410 (display_line): Change call to overlay_arrow_at_row. Store integer
9411 return value as overlay bitmap in row rather than window.
9412 Only show overlay arrow if row displays text, or if no other overlay
9413 arrow is seen in window (if overlay marker is at point-max).
9415 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9417 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
9419 2005-04-18 Lute Kamstra <lute@gnu.org>
9421 * lread.c (Vloads_in_progress): Static.
9422 * fns.c (Vloads_in_progress): Remove extern.
9423 (load_in_progress): Add extern.
9424 (Frequire): Use load_in_progress instead of Vloads_in_progress.
9426 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9428 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
9430 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9432 * macterm.c (XTread_socket): Don't beep on keyboard input even if
9433 no frame is visible.
9435 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9437 * term.c (struct keys): Add support for shifted keys.
9439 2005-04-16 Richard M. Stallman <rms@gnu.org>
9441 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
9442 (set_message): Call with_echo_area_buffer with WHICH = 0.
9443 (set_message_1): Erase the echo area buffer first thing.
9444 (echo_area_display): Don't clear echo_message_buffer.
9446 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9448 * Makefile.in (mac.o): Depend on charset.h and coding.h.
9450 * mac.c: Include charset.h and coding.h.
9451 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
9452 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
9453 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
9455 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
9457 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
9459 * macterm.c (x_autoselect_window_p): Remove variable.
9460 (last_window): New variable.
9461 (XTreassert_line_highlight, x_change_line_highlight):
9462 Remove declarations.
9463 (mac_focus_changed, x_detect_focus_change): New functions and
9465 (XTextExtents16, front_emacs_window): Remove function.
9466 (mac_focus_frame): New function.
9467 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
9468 (mac_check_for_quit_char): Use it instead of front_emacs_window.
9469 (x_scroll_bar_report_motion): Obtain window from control owner.
9470 (x_make_frame_invisible): Set window manager size hint.
9471 (do_mouse_moved): Remove function.
9472 (XTread_socket): Move its contents here. Generate select-window
9473 event on mouse movement if needed. Use x_detect_focus_change on
9474 activate/deactivate events. Don't deiconify frame or invalidate
9475 window rectangle when dnd items are dropped.
9476 Don't activate/deactivate root control.
9477 (frame_highlight, frame_unhighlight): Activate/deactivate root
9479 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
9481 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
9484 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
9486 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
9488 (SOME_MACHINE_LISP): Add tooltip.
9490 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9492 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
9493 Don't include TextEncodingConverter.h.
9494 (mac_system_script_code, Vmac_system_locale): New variables.
9495 (syms_of_mac): Defvar them.
9496 (mac_get_system_locale): New function.
9498 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
9499 Use ENCODE_SYSTEM to encode title bar string.
9500 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
9501 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
9502 Use CFStringGetSystemEncoding to get system default string encoding.
9504 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
9505 TextEncodingConverter.h.
9507 2005-04-13 Steven Tamm <steventamm@mac.com>
9509 * macterm.c (syms_of_macterm): Remove redundant definition of
9510 mac-pass-control-to-system.
9512 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9514 * window.c (Fset_window_configuration): Be careful when you choose
9515 among several possible points for the new_current_buffer.
9517 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9519 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
9520 poll_for_input_1. Set interrupt_input_pending to 1 instead.
9521 (Qlanguage_change) [MAC_OS]: New variable.
9522 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
9523 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
9525 * macterm.c (mac_keyboard_text_encoding)
9526 (current_mac_keyboard_text_encoding): Remove variables.
9527 (XTread_socket): Store language-change event if keyboard script change
9528 is detected. Don't convert input to `mac_keyboard_text_encoding'.
9529 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
9531 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
9533 2005-04-10 Richard M. Stallman <rms@gnu.org>
9535 * emacs.c (standard_args): Rename --bare-bones to --quick.
9536 Add -D aka --basic-display.
9538 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
9540 2005-04-09 Richard M. Stallman <rms@gnu.org>
9542 * keymap.c (where_is_internal): Convert a string used as event type
9543 into "(any string)".
9545 * lread.c (Vloads_in_progress): Not static.
9546 * fns.c (Vloads_in_progress): Add extern.
9547 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
9549 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
9551 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
9553 2005-04-09 Lute Kamstra <lute@gnu.org>
9555 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
9556 within the accessible part of the buffer.
9558 2005-04-09 Kim F. Storm <storm@cua.dk>
9560 * lread.c (readevalloop): Add args START and END as region in
9561 current buffer to read. Callers changed.
9562 When specified, narrow to this region only when reading,
9563 not during eval. Track next point to read from during eval.
9564 Also restore point to "real" buffer position before eval.
9565 (Feval_region): Don't save excursion and restriction here, and
9566 don't narrow to region. Just pass region to readevalloop.
9567 Note: Point is now preserved even when PRINTFLAG is nil.
9569 2005-04-08 Kim F. Storm <storm@cua.dk>
9571 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
9573 2005-04-06 Kim F. Storm <storm@cua.dk>
9575 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
9577 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9579 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
9580 (Fmac_get_preference): Doc fix.
9582 * macfns.c (Fx_create_frame, x_create_tip_frame):
9583 Add "fontset-mac" to fallback font/fontsets.
9585 2005-04-04 Kim F. Storm <storm@cua.dk>
9587 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
9589 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
9590 Call it again after autoload.
9592 2005-04-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9594 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
9597 * ralloc.c (r_alloc_init): Ditto.
9599 2005-04-01 Kenichi Handa <handa@m17n.org>
9601 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
9602 (Vascii_eqv_table): Extern them.
9604 * casetab.c (set_case_table): If standard is nonzero, setup
9605 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
9607 * search.c (looking_at_1): Use current_buffer->case_canon_table,
9609 (string_match_1): Likewise.
9610 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
9611 Vascii_downcase_table.
9612 (fast_string_match_ignore_case): Likewise.
9613 (search_buffer): Fix checking of boyer-moore usability.
9614 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
9615 No need of tranlating characters in PAT. Fix calculation of
9618 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9620 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
9621 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
9622 Use XtNtopShadowPixel and XtNbottomShadowPixel.
9623 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
9624 really work and that breaks with some versions of Xaw3d.
9626 2005-03-31 Kenichi Handa <handa@m17n.org>
9628 * coding.c (syms_of_coding): Fix previous change.
9630 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
9632 * fileio.c (search_embedded_absfilename): Fix last change.
9634 2005-03-25 Kenichi Handa <handa@m17n.org>
9636 * coding.c (syms_of_coding): Suggest to use set-coding-category in
9637 the docstring of coding-category-list.
9639 2005-03-31 Kim F. Storm <storm@cua.dk>
9641 * keyboard.c (Qmouse_fixup_help_message): New var.
9642 (syms_of_keyboard): Intern and staticpro it.
9643 (show_help_echo): Apply mouse-fixup-help-message to help string.
9645 2005-03-30 Kim F. Storm <storm@cua.dk>
9647 * xdisp.c (display_line): Allow multiple overlay arrows in window.
9649 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9651 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
9652 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
9653 (Ffile_name_absolute_p): Use it.
9654 (search_embedded_absfilename): New fun, extracted from
9655 Fsubstitute_in_file_name. Use file_name_absolute_p.
9656 Free the pw data after use.
9657 (Fsubstitute_in_file_name): Use it.
9658 After cutting a prefix, re-check file-name-handler.
9660 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
9662 * w32term.h (x_output): Add focus_state.
9664 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
9665 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
9667 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9669 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
9670 Use Fexit_minibuffer.
9671 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
9673 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9675 * dired.c (Ffile_attributes): Add a missing gcpro.
9677 * alloc.c (make_number): The arg can be bigger than `int'.
9678 * lisp.h (make_number): Make prototype more precise.
9680 * process.c, dired.c (Vfile_name_coding_system)
9681 (Vdefault_file_name_coding_system):
9682 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
9683 (Vdefault_file_name_coding_system): Remove unused declarations.
9685 2005-03-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9687 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
9688 if it failed to pop up (Gnome "show pointer on ctrl" option makes
9689 menus fail to pop up).
9691 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9693 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
9694 Just prepend a backslash without replacing the NBSP by an SPC.
9696 2005-03-22 Kim F. Storm <storm@cua.dk>
9698 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
9699 * dispextern.h (lookup_derived_face): Fix prototype.
9700 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
9702 * xdisp.c (handle_single_display_spec): Derive left-fringe and
9703 right-fringe face from fringe face.
9705 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
9706 Derive face from fringe face.
9708 2005-03-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9710 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
9712 2005-03-22 David Kastrup <dak@gnu.org>
9714 * textprop.c (Fnext_char_property_change)
9715 (Fprevious_char_property_change): Allow marker as limit.
9716 (Fnext_single_char_property_change)
9717 (Fprevious_single_char_property_change): Check that limit is a
9719 (Fnext_single_char_property_change): Coerce position to integer.
9720 (Fprevious_single_char_property_change): Same here.
9722 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
9724 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
9726 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9728 * frame.c (Fignore_event): Remove.
9729 (syms_of_frame): Don't defsubr it.
9731 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
9732 redundant `ignore-event'.
9734 2005-03-19 Eli Zaretskii <eliz@gnu.org>
9736 * unexec.c (write_segment, unexec): Move these functions to avoid
9737 forward references (which cause errors with "gcc -gcoff").
9739 2005-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9741 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9742 that it doesn't become "tooltip". The specbind is enough.
9744 * xrdb.c (x_load_resources): Use different char *helv when I18N
9747 2005-03-17 Kenichi Handa <handa@m17n.org>
9749 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
9751 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9753 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
9754 Use xic_create_fontsetname even for non-Motif menus.
9755 Don't forget to free the fontsetname.
9757 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
9759 2005-03-17 Richard M. Stallman <rms@gnu.org>
9761 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
9763 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
9764 (Fmake_symbolic_link): Use G to read the new file name.
9766 * callint.c (Finteractive): Document G option.
9767 (Fcall_interactively): Implement G option.
9769 * buffer.c (buffer_lisp_local_variables): New function,
9770 broken out from Fbuffer_local_variables.
9771 (clone_per_buffer_values): Use buffer_lisp_local_variables.
9773 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9775 * xfns.c (xic_create_fontsetname): Add `motif' argument.
9776 Always return a freshly allocated string.
9777 (xic_create_xfontset): Adjust call.
9779 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
9780 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
9781 (dump_realized_face): Fix warning.
9783 * emacs.c (Fkill_emacs): YAILOM.
9785 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
9787 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9789 * mac.c (HASHKEY_TERMINAL): Remove.
9790 (HASHKEY_MAX_NID): New macro.
9791 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
9793 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
9794 (xrm_create_database, xrm_q_put_resource)
9795 (xrm_merge_string_database, xrm_q_get_resource_1)
9796 (xrm_q_get_resource): Change resource database representation so
9797 that it may not use multiple hash tables for a single database.
9798 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
9800 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
9802 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
9804 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
9805 locale-coding-system, as was already done for WINDOWSNT.
9807 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
9808 translation for chars in the 0-255 range.
9810 2005-03-16 Lute Kamstra <lute@gnu.org>
9812 * floatfns.c (Ffloor): Doc fix.
9814 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9816 * mac.c: Include macterm.h instead of directly including Carbon.h.
9817 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
9818 (Qarray, Qdictionary): New variables.
9819 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9820 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
9821 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
9822 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
9823 in callback for CFDictionaryApplyFunction.
9824 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9825 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9826 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
9827 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
9828 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
9829 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9830 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
9831 (skip_white_space, parse_comment, parse_include_file)
9832 (parse_binding, parse_component, parse_resource_name, parse_value)
9833 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
9834 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
9835 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
9838 * macfns.c (mac_get_rdb_resource): Remove function.
9839 (x_get_string_resource): Use xrm_get_resource.
9841 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
9843 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
9845 (mac_make_rdb): Create resource database from preferences and
9847 (mac_term_init): Save resource database to cddr part of
9850 * macterm.h (xrm_merge_string_database, xrm_get_resource)
9851 (xrm_get_preference_database): Add externs.
9852 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9853 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9854 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
9856 * process.c (init_process): Change `#ifdef DARWIN' to `#if
9857 defined (DARWIN) || defined (MAC_OSX)'
9859 * s/darwin.h (DARWIN): Don't define.
9861 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9863 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
9864 Remove unused variables.
9865 (syms_of_macfns): Don't initialize them. Likewise for
9866 Qface_set_after_frame_default. Defvar and initialize
9867 Vx_window_horizontal_drag_shape.
9868 (x_set_mouse_color): Change mouse pointer shape.
9869 (mac_window) [!MAC_OSX]: Create root control.
9870 (Fx_create_frame): Remove initializations of mouse pointer shapes.
9871 (hourglass_started): New function (from xfns.c).
9872 (start_hourglass, cancel_hourglass): Put function body in #ifdef
9874 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
9875 indicator for each non-tooltip frame if needed, and show it.
9876 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
9878 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
9879 Controls.h. Use ThemeCursor instead of CursHandle.
9881 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
9882 Remove functions and declarations.
9883 (mac_set_colors): Take argument for saving background color.
9884 All callers changed.
9885 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
9886 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
9888 (x_update_end, mac_do_track_drag): Don't reset background color.
9889 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
9891 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
9892 indicator control to the upper-right corner of the window.
9893 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
9894 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
9895 (do_window_update): Update controls after updating content area.
9896 (mac_handle_window_event): Remove unused extern.
9897 (XTread_socket): Check both control handle and control part code
9898 to determine whether a scroll bar is clicked. Activate/deactivate
9899 root control instead of contained scroll bar controls.
9900 (make_mac_terminal_frame): Use ThemeCursor constants.
9902 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
9903 New member hourglass_control.
9904 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
9905 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
9907 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9909 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
9910 coincides with that in Apple X11 except `clear', `enter' on
9911 laptops, and fn + `enter' on laptops.
9913 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9915 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
9916 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
9917 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
9919 * xfns.c (xic_defaut_fontset): New constant.
9920 (xic_create_fontsetname): New function.
9921 Extracted from create_frame_xic. Try to generate a slightly
9923 (xic_create_xfontset): Use it.
9924 (create_frame_xic): Simplify.
9926 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
9928 * fileio.c (Fmake_symbolic_link): Fix last change.
9930 2005-03-11 Richard M. Stallman <rms@gnu.org>
9932 * fileio.c (Frename_file, Fadd_name_to_file)
9933 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
9934 expand the basename of FILE relative to it.
9936 2005-03-11 Kenichi Handa <handa@m17n.org>
9938 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
9939 before calling setup_coding_system so that autoloading of a coding
9942 2005-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9944 * xfns.c (hourglass_started): New function.
9946 * dispextern.h: Declare hourglass_started.
9948 * keyboard.c (Fexecute_extended_command): Restart hourglass
9949 after call to Fcompleting_read if already started.
9951 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
9952 GTK main loop is entered in xterm.c, thus doing the redraw.
9954 2005-03-10 Kim F. Storm <storm@cua.dk>
9956 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9958 2005-03-08 Kenichi Handa <handa@m17n.org>
9960 * frame.c (x_set_font): Call set_default_ascii_font if an
9961 available font is found.
9963 * fontset.c (set_default_ascii_font): New function.
9964 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
9966 * fontset.h (set_default_ascii_font): Extern it.
9968 2005-03-07 Kim F. Storm <storm@cua.dk>
9970 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
9971 (clear_image_cache_count): New var.
9972 (redisplay_internal): Don't clear face and image caches in the
9973 middle of redisplay; do it afterwards.
9975 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
9977 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
9978 is valid. If not, clear phys_cursor_on_p and return.
9980 2005-03-07 Andreas Schwab <schwab@suse.de>
9982 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
9984 2005-03-06 Richard M. Stallman <rms@gnu.org>
9986 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
9988 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
9989 (Feval, Ffuncall): Use CHECK_CONS_LIST.
9991 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
9993 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
9994 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9996 2005-03-05 Juri Linkov <juri@jurta.org>
9998 * emacs.c (USAGE1): Replace Info node name "command arguments"
9999 with "emacs invocation".
10000 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
10001 allow arguments `--color' and `MODE' to be separated by space.
10002 Add --no-blinking-cursor, -nbc.
10003 (standard_args): Add -nbc, --no-blinking-cursor.
10005 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10007 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
10008 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
10009 * fileio.c (Fexpand_file_name) [VMS]:
10010 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
10011 * doc.c (munge_doc_file_name) [VMS]: Likewise.
10012 (Fsnarf_documentation): Call munge_doc_file_name.
10014 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10016 * s/vms.h (FILE_SYSTEM_CASE): New macro.
10017 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
10018 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
10020 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10022 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
10023 defined (MAC_OSX) && defined (HAVE_CARBON)'.
10025 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
10027 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10028 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
10029 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
10030 (mac_clear_font_name_table): Move extern to macterm.h.
10032 * macfns.c (install_window_handler): Move extern to macterm.h.
10033 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
10034 valid. Don't check !NILP (dir) because it is already checked with
10036 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
10037 specifying the default location and obtaining the selected filename.
10039 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10041 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
10042 are included via Carbon.h.
10044 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
10045 Define USE_CARBON_EVENTS to 1.
10046 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
10047 (x_free_frame_resources): Call remove_window_handler for
10048 non-tooltip windows.
10049 [TARGET_API_MAC_CARBON]: Don't include headers that are included
10051 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
10052 (mac_do_receive_dragUPP): New variables.
10053 (mac_handle_service_event, init_service_handler): Put declarations
10054 and definitions in #ifdef MAC_OSX.
10055 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
10056 drag-and-drop handler functions and register them.
10057 (remove_window_handler): New function.
10058 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
10059 Use fsspec_to_posix_pathname.
10060 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
10061 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
10062 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
10063 Set default cursors.
10064 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
10065 init_service_handler or init_quit_char_handler.
10066 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
10068 * macterm.h (install_window_handler, remove_window_handler)
10069 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
10070 (mac_clear_font_name_table): New externs.
10072 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10074 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
10075 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
10076 (Fexpand_file_name): Likewise.
10078 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10080 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
10081 no longer special-case VMS. Add bogus return value.
10083 2005-03-02 Kim F. Storm <storm@cua.dk>
10085 * dispextern.h (XASSERTS): Define to 0 if not already defined.
10086 (xassert) [!XASSERTS]: Define dummy version.
10088 2005-03-02 Kim F. Storm <storm@cua.dk>
10090 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
10091 Reported by David Kastrup.
10093 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
10095 * xdisp.c (get_next_display_element): Fix control and escape
10096 glyph from display vector.
10098 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
10100 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
10102 2005-02-27 Richard M. Stallman <rms@gnu.org>
10104 * xdisp.c (fast_find_position): Rename END to BEG.
10105 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
10107 2005-02-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10109 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
10110 gtk_window_resize and x_wm_set_size_hint.
10112 2005-02-25 Kim F. Storm <storm@cua.dk>
10114 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
10116 * xdisp.c (init_from_display_pos): Don't read past end of
10117 it->overlay_strings array.
10119 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
10121 * buffer.c (syms_of_buffer): Fix typo.
10123 2005-02-23 Lute Kamstra <lute@gnu.org>
10125 * buffer.c (Foverlay_buffer): Doc fix.
10127 2005-02-22 Kim F. Storm <storm@cua.dk>
10129 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
10130 and symbol keys in alists and hash tables.
10132 * xdisp.c (fast_find_position): Fix search for start of overlay.
10134 2005-02-21 Kim F. Storm <storm@cua.dk>
10136 * window.c (window_scroll_pixel_based): When scrolling backwards,
10137 handle partial visible line at end of window even when we hit PT.
10139 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10141 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
10143 2005-02-21 Kim F. Storm <storm@cua.dk>
10145 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
10146 I think those asserts are bogus if buffer contains invisible text
10149 2005-02-21 David Kastrup <dak@gnu.org>
10151 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
10153 2005-02-20 Kim F. Storm <storm@cua.dk>
10155 * xdisp.c (pos_visible_p): Be sure to move to the specified
10156 position. Always get the full ascent / descent of the
10157 corresponding row, to return reliable rtop and rbot values.
10158 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
10159 Must look one character back, as back_to_previous_line_start
10160 returns position after the newline.
10161 (move_it_vertically_backward): Fix heuristic for when to move further
10162 back in case line_height * 2/3 is larger than window height.
10163 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
10164 as it does not do anything anymore. Add arg current_matrix_p to
10165 use current matrix rather than desired matrix when set.
10166 (try_cursor_movement): Don't scroll to make cursor row fully
10167 visible if cursor didn't move. This avoids unexpected recentering
10168 in case of blinking cursor or accepting process output.
10169 Use current matrix to check cursor row visibility.
10170 (redisplay_window): Fix whether to recenter or move to top in case
10171 cursor line is taller than window height.
10172 (find_first_unchanged_at_end_row): Stop search if we reach a row
10173 which not enabled (instead of abort).
10175 2005-02-18 Kim F. Storm <storm@cua.dk>
10177 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
10178 to be nil in a :box attribute value list; customize prints that
10179 as lisp value when no box color is specified.
10181 * .gdbinit (pitx, pit): Pretty print display iterator.
10182 (prowx, prow): Pretty print glyph row.
10183 (pcursorx, pcursor): Pretty print a window cursor.
10184 (pwinx, pwin): Pretty print struct window.
10186 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10188 * alloc.c (BLOCK_BYTES): Harmless typo.
10190 2005-02-17 Andreas Schwab <schwab@suse.de>
10192 * xfns.c (hack_wm_protocols): Use correct type for last parameter
10193 of XGetWindowProperty to avoid aliasing issues.
10194 (Fx_window_property): Likewise.
10196 * xselect.c (Fx_disown_selection_internal): Use union of struct
10197 input_event and struct selection_input_event to avoid aliasing issues.
10199 * xterm.c (handle_one_xevent): Use union of struct input_event and
10200 struct selection_input_event to avoid aliasing issues.
10201 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
10203 2005-02-17 Kim F. Storm <storm@cua.dk>
10205 * dispextern.h (enum it_method): New enum.
10206 (GET_FROM_*): Its members.
10207 (struct it): Change member method from function pointer to enum.
10209 * xdisp.c (check_it, init_from_display_pos, handle_stop)
10210 (setup_for_ellipsis, handle_single_display_spec)
10211 (handle_composition_prop, next_overlay_string)
10212 (get_overlay_strings, reseat_1, reseat_to_string)
10213 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
10214 (in_display_vector_p, display_line, get_next_display_element):
10215 Change it->method from function pointer to enum.
10216 (get_next_element): New array to map it->method to function.
10217 (get_next_display_element): Use it.
10218 (set_iterator_to_next): Use switch instead of if/else chain.
10220 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10222 * w32select.c: Summary: Thorough rework to implement Unicode
10223 clipboard operations and delayed rendering.
10225 Drop last_clipboard_text and related code, keep track of
10226 ownership via clipboard_owner instead. Drop old #if0 sections.
10228 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
10229 (clipboard_owner, modifying_clipboard, cfg_coding_system)
10230 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
10231 (current_coding_system, current_requires_encoding)
10232 (current_num_nls, current_clipboard_type, current_lcid):
10233 New static variables.
10235 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
10236 (render, render_all, run_protected, lisp_error_handler)
10237 (owner_callback, create_owner, setup_config)
10238 (enum_locale_callback, cp_from_locale, coding_from_cp):
10239 New local functions.
10241 (term_w32select, globals_of_w32select): New global functions.
10243 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
10244 clipboard_owner instead. Use delayed rendering and provide
10245 all text formats. Provide CF_LOCALE if necessary.
10247 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
10248 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
10249 available. Force DOS line-ends for decoding.
10251 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
10253 (syms_of_w32select): Init and register new variables.
10255 * w32.h: Add prototypes for globals_of_w32select and
10256 term_w32select. Make the neighboring K&R declarations into
10259 * emacs.c: Include w32.h to get function prototypes.
10260 (main): Call globals_of_w32select.
10262 * w32.c (term_ntproc): Call term_w32select.
10264 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
10266 2005-02-16 Kim F. Storm <storm@cua.dk>
10268 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
10269 at end of display vector.
10271 2005-02-15 Richard M. Stallman <rms@gnu.org>
10273 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
10274 for mode and header lines.
10276 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
10278 * keymap.h (describe_map_tree): Change decl.
10280 * keyboard.c (command_loop_1): Always use safe_run_hooks
10281 to run Qdeferred_action_function.
10283 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
10284 (describe_map, describe_vector): Likewise. When it's 1,
10285 don't omit shadowed bindings, instead mark them as shadowed.
10287 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
10288 for describe_map_tree. Pass 1 for MENTION_SHADOW.
10290 * data.c (Fsetq_default): Allow no arg case.
10292 2005-02-14 Kenichi Handa <handa@m17n.org>
10294 * coding.c (encode_coding_string): Always return a unibyte string.
10295 If NOCOPY is nonzero and there's no need of encoding, make STR
10298 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
10299 multibyte string, signal an error instead of aborting.
10301 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
10303 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
10305 2005-02-12 Kim F. Storm <storm@cua.dk>
10307 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
10309 2005-02-10 Kim F. Storm <storm@cua.dk>
10311 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
10312 if it moves outside window or it doesn't display text.
10314 2005-02-09 Kim F. Storm <storm@cua.dk>
10316 * undo.c (Fprimitive_undo): Check that undo function does not
10319 2005-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10321 * xselect.c (selection_data_to_lisp_data): For the special case
10322 type == XA_ATOM, data contains array of int, not array of Atom.
10323 (x_property_data_to_lisp, selection_data_to_lisp_data):
10324 Comment update: data must be array of int for format == 32.
10326 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10328 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
10330 2005-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10332 * xfns.c (Fx_change_window_property): Use long array when format is 32.
10333 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
10334 convert long array returned from XGetWindowProperty to an int array.
10335 (x_set_tool_bar_lines): Check that width and height is greater than
10336 zero before clearing area.
10338 * xselect.c (x_reply_selection_request): Pass long array to
10339 XChangeProperty so that 64 bit longs are handeled correctly.
10340 (x_get_window_property): If format is 32 and long is bigger than 32
10341 bits convert data from XGetWindowProperty from long array to int array.
10342 (lisp_data_to_selection_data): When the input is a vector and the
10343 format is 32, allocate a long array even if long is bigger than 32 bits.
10344 (x_fill_property_data): Use char, short and long as the man page
10345 for XChangeProperty specifies. This way the data returned is OK for
10346 both 32 and 64 bit machines.
10347 (x_handle_dnd_message): Calculate size correctly even for 64 bit
10349 (Fx_send_client_event): Undo change from 2005-02-05,
10350 x_fill_property_data now handles that case.
10352 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
10353 reason for the approach in the code.
10355 2005-02-07 Kim F. Storm <storm@cua.dk>
10357 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
10359 2005-02-06 Richard M. Stallman <rms@gnu.org>
10361 * eval.c (Frun_hook_with_args)
10362 (Frun_hook_with_args_until_success)
10363 (Frun_hook_with_args_until_failure): Doc fixes.
10365 2005-02-05 Andreas Schwab <schwab@suse.de>
10367 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
10369 2005-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10371 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
10372 the longs in a XClientMessageEvent correctly when long is 64 bits.
10374 2005-02-05 Eli Zaretskii <eliz@gnu.org>
10376 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
10377 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
10379 2005-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10381 * xmenu.c (menubar_selection_callback): Force out GTK buffered
10382 events so the menu event comes after them. This is to prevent sit-for
10383 from exiting on buffered events directly after a menu selection,
10384 lisp code for Help => About Emacs uses sit-for.
10386 * gtkutil.c (create_menus): Connect selection-done event instead of
10387 the deactivate event to deactivate_cb. This will make the last
10388 leave event come before the call to deactivate_cb, so the leave
10389 event does not make sit-for exit after a menu selection.
10391 2005-02-03 Kim F. Storm <storm@cua.dk>
10393 * dispnew.c (build_frame_matrix_from_leaf_window)
10394 [!GLYPH_DEBUG]: Fix xassert.
10396 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
10398 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10400 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10402 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
10403 the compiling OS version.
10405 * macfns.c (x_create_tip_frame): Likewise.
10407 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
10409 2005-02-03 Richard M. Stallman <rms@gnu.org>
10411 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
10413 * xdisp.c (echo_area_display): Clear echo_message_buffer.
10415 * buffer.c (Fbury_buffer): Doc fix.
10417 2005-02-02 Steven Tamm <steventamm@mac.com>
10419 * macfns.c (unwind_create_frame): Fix compile error due to
10420 xassert being uncondition, but predicate is.
10421 * dispnew.c (update_window): Fix compile error due to
10422 xassert being uncondition, but predicate is.
10424 2005-02-02 Miles Bader <miles@gnu.org>
10426 * dispextern.h (xassert): Enable unconditionally.
10428 2005-02-02 Kim F. Storm <storm@cua.dk>
10430 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
10432 2005-02-02 Kenichi Handa <handa@m17n.org>
10434 * casefiddle.c (casify_object): Enable changing characters of
10435 different byte length.
10436 (casify_region): Fix loop condition, args to replace_range_2, and
10437 update opoint_byte.
10439 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
10441 2005-02-01 Kim F. Storm <storm@cua.dk>
10443 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
10444 stack before calling handle_display_prop.
10446 2005-01-31 Kim F. Storm <storm@cua.dk>
10448 * undo.c (Qapply): New lisp var.
10449 (syms_of_undo): Intern and staticpro it.
10450 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
10451 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
10453 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10455 2005-01-30 Jesper Harder <harder@phys.au.dk>
10457 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
10458 <mac-emulate-three-button-mouse>: Fix docstring indentation.
10460 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
10462 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
10463 Increase value to 3 Meg.
10465 2005-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10467 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
10468 button events are not received otherwise.
10470 2005-01-29 Richard M. Stallman <rms@gnu.org>
10472 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10474 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
10476 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10478 * keymap.c (access_keymap): YAILOM.
10480 2005-01-27 Kim F. Storm <storm@cua.dk>
10482 * xdisp.c (get_phys_cursor_geometry): New function to calculate
10483 phys cursor position and size for hollow cursor. Position is
10484 aligned with get_glyph_string_clip_rect and ensures that a hollow
10485 cursor is shown, even when the actual glyph is not visible.
10487 * dispextern.h (get_phys_cursor_geometry): Add prototype.
10489 * xterm.c (x_clip_to_row): Ensure y >= 0.
10490 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10492 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10494 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10496 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
10498 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
10500 2005-01-27 Kim F. Storm <storm@cua.dk>
10502 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
10503 glyph, even when row is only partially visible and actual cursor
10504 position is not visible.
10506 2005-01-24 Richard M. Stallman <rms@gnu.org>
10508 * xterm.c (x_error_quitter): No longer static, and moved after
10511 2005-01-24 Kim F. Storm <storm@cua.dk>
10513 * xdisp.c (move_it_by_lines): If we move forward after going too
10514 far back, cancel move if end position is same as start position.
10516 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10518 * dispextern.h (struct glyph_string): New members clip_head and
10521 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
10522 region to the area between clip_head and clip_tail.
10523 (draw_glyphs): Record the area that need to be actually redrawn to
10524 the new variables clip_head and clip_tail when there are
10525 overhangs. Set values of these variables to the corresponding
10526 members in struct glyph_string. Refine x coordinates for
10527 notice_overwritten_cursor using clip_head and clip_tail.
10529 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
10531 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
10533 (x_draw_glyph_string): Don't fill the background of the successor
10534 of a glyph with a right overhang if the successor will draw a cursor.
10535 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
10536 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
10538 2005-01-24 Kim F. Storm <storm@cua.dk>
10540 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
10541 direction if window height was smaller than next-screen-context-lines.
10542 Now always scroll at least one line in the requested direction.
10543 Ensure that we actually do scroll backwards when requested to do so.
10545 * xdisp.c (redisplay_window): Only try to make cursor line fully
10546 visible once (to avoid redisplay loop).
10548 2005-01-23 Kim F. Storm <storm@cua.dk>
10550 * window.c (Fpos_visible_in_window_p): Simplify return value for
10551 partially visible rows.
10552 (window_scroll_pixel_based): Adapt to that change.
10554 * window.c (window_scroll_pixel_based): Force moving to next line
10555 if scrolling doesn't move start point, e.g. if looking at tall image.
10557 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
10558 Clear last_height before calling line_bottom_y to get real height.
10559 Fix calculation of y.
10561 2005-01-22 Steven Tamm <steventamm@mac.com>
10563 * s/darwin.h: Removed PTY_ITERATION from here.
10566 * process.c (init_process): Default process-connection-type to
10567 nil on darwin 6 or less, t if it is 7 or higher. This way the
10568 broken pty behavior is still allowed on darwin 6 for interactive
10569 processes for people that know what they are doing.
10571 2005-01-22 Kim F. Storm <storm@cua.dk>
10573 * window.c (auto_window_vscroll_p): New boolean.
10574 (syms_of_window): DEFVAR_BOOL it.
10575 (Fpos_visible_in_window_p): Extend return value to include RTOP
10576 and RBOT values if FULLY is nil.
10577 (window_scroll_pixel_based): Adjust vscroll for partially visible
10578 rows if auto_window_vscroll_p is set.
10579 (Fset_window_vscroll): Do nothing if vscroll is not modified.
10581 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
10582 to return number of partially invisible pixels at top and bottom
10583 of the dislay row at POS.
10585 * lisp.h (pos_visible_p): Fix prototype.
10587 2005-01-21 Richard M. Stallman <rms@gnu.org>
10589 * fileio.c (Fcopy_file): Doc fix.
10591 2005-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10593 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
10594 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
10595 start of function for older compilers.
10597 2005-01-20 Richard M. Stallman <rms@gnu.org>
10599 * editfns.c (Fmessage): If arg is "", return "" (as before).
10601 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
10603 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
10606 2005-01-20 Steven Tamm <steventamm@mac.com>
10608 * editfns.c (Voperating_system_release): Add.
10609 (init_editfns): Assign new variable operating-system-release
10610 based on call to uname if available.
10611 (get_operating_system_release): Add function to
10612 allow c-level access to operating system release.
10614 * config.h: Regenerated.
10616 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
10617 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
10620 2005-01-20 Kim F. Storm <storm@cua.dk>
10622 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
10624 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
10625 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
10627 * macterm.c (x_draw_glyph_string_box): Likewise.
10629 * w32term.c (x_draw_glyph_string_box): Likewise.
10631 * indent.c (Fvertical_motion): Temporarily disable selective display.
10633 2005-01-19 Kim F. Storm <storm@cua.dk>
10635 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
10638 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
10640 2005-01-18 Kim F. Storm <storm@cua.dk>
10642 * xdisp.c (fast_find_position): Backtrack to find first row if
10643 charpos is inside a display overlay that spans multiple lines.
10645 2005-01-18 Kenichi Handa <handa@m17n.org>
10647 * coding.c (decode_coding_iso2022): Translate invalid codes if
10648 translation-table is specified.
10650 2005-01-18 Kim F. Storm <storm@cua.dk>
10652 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
10653 change. If handle_display_prop indicates newline is replaced by
10654 image or text, move back to start of relevant overlay or interval
10655 and continue scan from there. Simplify.
10657 2005-01-17 Kim F. Storm <storm@cua.dk>
10659 * dispnew.c (mode_line_string, marginal_area_string):
10660 Fix off-by-one error in search for glyph.
10662 2005-01-16 Kim F. Storm <storm@cua.dk>
10664 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
10666 2005-01-16 Steven Tamm <steventamm@mac.com>
10668 * macterm.c (mac_to_x_fontname): Remove spurious argument.
10670 2005-01-16 Andreas Schwab <schwab@suse.de>
10672 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
10674 2005-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10676 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
10677 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
10679 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10681 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
10682 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
10683 New flags for readable_events.
10684 (get_filtered_input_pending, readable_filtered_events): Remove.
10685 (tracking_off): Call readable_events and get_input_pending with
10686 flag READABLE_EVENTS_DO_TIMERS_NOW.
10687 (readable_events): Move code from old readable_filtered_events here,
10688 but check new READABLE_EVENTS_* in argument flags instead of previous
10689 two boolean arguments do_timers_now and filter_events.
10690 If we are doing mouse tracking and the mouse moved, return only if
10691 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
10692 (swallow_events): Call get_input_pending with flag
10693 READABLE_EVENTS_DO_TIMERS_NOW.
10694 (get_input_pending): Move code from old get_filtered_input_pending
10695 here. Replace boolean arguments do_timers_now, filter_events with
10696 flags, and pass flags to readable_events. Document new
10697 READABLE_EVENTS_* flags.
10698 (detect_input_pending_ignore_squeezables): New function.
10699 (detect_input_pending_run_timers): Call get_input_pending with flag
10700 READABLE_EVENTS_DO_TIMERS_NOW.
10701 (Finput_pending_p): Call get_input_pending with flags
10702 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
10704 * dispnew.c (update_window, update_frame_1): Replace calls to
10705 detect_input_pending with detect_input_pending_ignore_squeezables
10706 so that redisplay is not paused if the event queue contains only
10709 * lisp.h: Declare detect_input_pending_ignore_squeezables.
10711 2005-01-15 Steven Tamm <steventamm@mac.com>
10713 * macterm.c (Vmac_use_core_graphics): Declare variable for
10714 mac-allow-anti-aliasing.
10715 (syms_of_macterm): DEFVAR_LISP and initialize it.
10716 (mac_draw_string_common): Use core graphics text rendering if
10717 mac-allow-anti-aliasing is enabled.
10719 * macfns.c (Fx_file_dialog): Save As dialog includes only the
10720 file name in the text box.
10722 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10724 * macfns.c (x_set_foreground_color, x_set_background_color):
10726 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
10727 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
10728 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
10730 2005-01-14 Kim F. Storm <storm@cua.dk>
10732 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
10734 2005-01-13 Richard M. Stallman <rms@gnu.org>
10736 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
10737 if Voverriding_terminal_local_map is non-nil.
10739 * keyboard.c (syms_of_keyboard): Doc fix.
10741 2005-01-13 Kim F. Storm <storm@cua.dk>
10743 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
10744 (specify 0 for FACE instead). Reorder arg list. Doc fix.
10746 2005-01-12 Richard M. Stallman <rms@gnu.org>
10748 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
10749 face property for characters that don't specify one.
10751 * fns.c (Frequire): Record in load-history unconditionally.
10753 2005-01-10 Kim F. Storm <storm@cua.dk>
10755 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
10757 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
10759 Add support to merge with lisp face id too (if face_name is t).
10761 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10762 Don't lookup lface_id from display table glyphs here; instead use
10763 merge_faces to merge the lisp face id into current face.
10765 2005-01-09 Kim F. Storm <storm@cua.dk>
10767 * dispextern.h (struct it): New member dpvec_face_id.
10768 (merge_into_realized_face): Add prototype.
10770 * xfaces.c (merge_into_realized_face): New function. Used to
10771 merge escape-glyph face or face from display table into current face.
10773 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
10774 (syms_of_xdisp): DEFVAR_LISP it.
10775 (escape_glyph_face): Remove var.
10776 (redisplay_window): Don't initialize it.
10777 (setup_for_ellipsis, get_next_display_element):
10778 Set it->dpvec_face_id to -1.
10779 (get_next_display_element): Test Vshow_nonbreak_escape.
10780 Do not setup escape_glyph_face.
10781 Properly merge escape-glyph face or face from display table with
10782 current face for escape and control characters.
10783 Set it->dpvec_face_id to relevant face id instead of adding it to each
10784 element of display vector.
10785 (next_element_from_display_vector): If it->dpvec_face_id is set,
10786 use that instead of lface_id from glyph itself.
10788 2005-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10790 * xterm.h (struct x_output): New member, toolbar_detached.
10792 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
10794 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
10795 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
10796 (xg_create_tool_bar): Initialize toolbar_detached.
10797 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
10798 toolbar_detached is zero.
10800 2005-01-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10802 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
10803 gtk_menu_popup if not for_click, so callbacks for the menu are called.
10805 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
10806 (xg_tool_bar_callback, xg_tool_bar_help_callback)
10807 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
10809 * xselect.c (x_get_foreign_selection, x_fill_property_data)
10810 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
10811 XFLOAT_DATA to get extract number from Lisp object.
10813 2005-01-07 Kim F. Storm <storm@cua.dk>
10815 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
10816 Set stop_charpos to current charpos instead of 0.
10818 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
10820 * xdisp.c (Fformat_mode_line): First arg now required.
10822 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10824 * macterm.c (XLoadQueryFont): Correctly handle 0 size
10825 font widths that are returned from some Japanese fonts.
10827 2005-01-06 Kim F. Storm <storm@cua.dk>
10829 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
10830 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10831 (destroy_fringe_bitmap): Set fringe_faces element to nil.
10832 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
10833 fringe_faces array and init elements to nil.
10834 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10835 non-persistent face id.
10836 (mark_fringe_data): New function for GC.
10838 * alloc.c (mark_fringe_data): Declare extern.
10839 (Fgarbage_collect): Call mark_fringe_data.
10841 * alloc.c (overrun_check_free): Invalidate freed memory if
10842 XMALLOC_CLEAR_FREE_MEMORY is defined.
10844 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10846 * macfns.c: Include sys/param.h.
10847 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10849 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10850 of filename string. Set event callback function when creating
10851 dialog boxes. Add code conversions for filenames. Don't dispose
10852 of apple event descriptor record if failed to create it.
10854 * macterm.c: Include sys/param.h.
10855 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10856 kEventWindowUpdate.
10857 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
10858 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10859 of FSSpec from apple event descriptor record.
10860 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10861 size of filename string.
10862 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10863 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10864 file dialog is in action.
10865 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10866 Reject only when there are no filename items. Set background color
10867 before (un)highlighting the window below the dragged items.
10868 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
10870 2005-01-05 Romain Francoise <romain@orebokech.com>
10872 * term.c (encode_terminal_code): Fix buffer size computation.
10874 2005-01-04 Richard M. Stallman <rms@gnu.org>
10876 * xdisp.c (Fformat_mode_line): Doc fix.
10878 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10880 * alloc.c (refill_memory_reserve): Move.
10881 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10882 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10884 2005-01-03 Richard M. Stallman <rms@gnu.org>
10886 * window.c (window_scroll_pixel_based): Don't correct preserve_y
10887 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10889 2005-01-03 Jason Rumney <jasonr@gnu.org>
10891 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10892 fontp->space_width to FONT_WIDTH so they are valid.
10894 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
10895 average width. Set fontp->average_width and fontp->space_width to
10896 their appropriate values.
10898 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10899 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10900 fontp->space_width.
10902 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10904 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10905 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
10906 metrics for max and min bounds.
10907 (x_load_font): Correctly calculate average font width metrics.
10909 2005-01-02 Richard M. Stallman <rms@gnu.org>
10911 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10913 2004-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10915 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10917 2004-12-31 Richard M. Stallman <rms@gnu.org>
10919 * xdisp.c (setup_for_ellipsis, get_next_display_element):
10920 Set it->ellipsis_p to 1 or 0.
10921 (display_line): Record whether row ends in mid-ellipsis.
10922 (set_cursor_from_row): If ends in ellipsis, find start of it.
10923 (cursor_row_p): If PT's at the end of the ellipsis the row
10924 ends within, don't display cursor on this row.
10926 * dispextern.h (struct it): New element ellipsis_p.
10927 (struct glyph_row): New element ends_in_ellipsis_p.
10929 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10930 position if we're reading from something other than the buffer.
10932 * window.c (window_scroll_pixel_based): Only look at
10933 Vscroll_preserve_screen_position if the old PT can't be kept.
10934 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10936 2004-12-30 Kim F. Storm <storm@cua.dk>
10938 * xdisp.c (get_line_height_property): New function extracted from
10939 original calc_line_height_property.
10940 (calc_line_height_property): Rework. Handle t and (nil . ratio).
10941 (x_produce_glyphs): Use them to handle line-height and
10942 line-spacing according to new height spec.
10944 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
10946 2004-12-30 Kenichi Handa <handa@m17n.org>
10948 * fileio.c (Finsert_file_contents): Don't use
10949 current_buffer->buffer_file_coding_system even if REPLACE is
10950 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
10952 * fontset.h (struct font_info): New members space_width and
10955 * frame.h (struct frame): New member space_width.
10956 (FRAME_SPACE_WIDTH): New macro.
10958 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10960 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10961 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10962 fontp->space_width.
10963 (x_load_font): Calculate fontp->space_width and fontp->average_width.
10964 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10966 * xdisp.c (x_produce_glyphs): Calculate tab width by
10967 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10969 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
10971 * macterm.c (SelectionRange): Add Xcode position apple event struct.
10972 (do_ae_open_documents): Handle Xcode-style file position open events.
10974 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
10976 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10978 2004-12-29 Richard M. Stallman <rms@gnu.org>
10980 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10982 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10984 * macfns.c (install_window_handler): Modify extern to return OSErr
10986 (mac_window): Handle return value of install_window_handler.
10988 * macterm.c (reflect_byte): Remove function.
10989 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10990 Lookup table instead.
10991 (mac_do_font_lists): Simplify calculation of the longest
10993 (init_mac_drag_n_drop): Remove function and declaration.
10994 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10995 init_mac_drag_n_drop.
10996 (mac_do_track_drag): New function and declaration.
10997 (install_window_handler): Return OSErr value.
10998 (install_window_handler) [TARGET_API_MAC_CARBON]:
10999 Register handlers for tracking/receiving drag-and-drop items.
11000 (do_ae_open_documents): Generate unibyte strings for filenames.
11001 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
11002 Reject only non-filename items. Set event modifiers, and return value.
11004 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11006 * coding.c (decode_coding): Fix previous change.
11008 2004-12-28 Richard M. Stallman <rms@gnu.org>
11010 * xdisp.c (back_to_previous_visible_line_start):
11011 Don't call handle_display_prop.
11013 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11015 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
11016 (decode_coding_emacs_mule, encode_coding_emacs_mule)
11017 (decode_coding_iso2022, encode_designation_at_bol)
11018 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
11019 (decode_coding): Constify arguments and local vars.
11021 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11023 * xmenu.c (popup_get_selection): Only pop down dialogs
11025 (popup_get_selection): Remove parameter down_on_keypress.
11026 (create_and_show_popup_menu, create_and_show_dialog):
11027 Remove parameter down_on_keypress to popup_get_selection.
11029 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11031 * dispextern.h: Change HAVE_CARBON to MAC_OS.
11032 (struct glyph_string): Likewise.
11034 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
11037 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
11038 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
11040 * fns.c (vector): Change MAC_OSX to MAC_OS.
11042 * frame.c (x_set_frame_parameters, x_report_frame_params)
11043 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
11044 (x_set_border_width, Vdefault_frame_scroll_bars):
11045 Change HAVE_CARBON to MAC_OS.
11047 * image.c [MAC_OS]: Include sys/stat.h.
11048 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
11049 QuickTimeComponents.h.
11051 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
11052 [!MAC_OSX] (select): Use mac_wait_next_event.
11053 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
11054 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
11055 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11056 (mac_clear_font_name_table): Add extern.
11057 (Fmac_clear_font_name_table): New defun.
11058 (syms_of_mac): Defsubr it.
11059 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
11060 [MAC_OSX] (select_and_poll_event): New function.
11061 [MAC_OSX] (sys_select): Use it.
11062 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
11063 [MAC_OSX && SELECT_USE_CFSOCKET]
11064 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
11065 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
11066 RunLoop for simultaneously monitoring two kinds of inputs, window
11067 events and process outputs, without periodically polling.
11069 * macfns.c (mac_initialized): Remove extern.
11070 (stricmp): Put in #if 0. All callers changed to use xstricmp in
11072 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
11073 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
11074 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
11075 (mac_get_rdb_resource): New function (from w32reg.c).
11076 (x_get_string_resource): Use it.
11077 (install_window_handler): Add extern.
11078 (mac_window): New function.
11079 (Fx_create_frame): Use it instead of make_mac_frame.
11080 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
11081 (Fx_open_connection, Fx_close_connection): New defuns.
11082 (syms_of_macfns): Defsubr them.
11083 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
11084 Add kWindowNoUpdatesAttribute to the window attribute.
11085 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
11086 (x_create_tip_frame): Don't call ShowWindow.
11087 (Fx_show_tip): Call ShowWindow.
11088 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
11089 TARGET_API_MAC_CARBON'.
11090 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
11091 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
11093 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
11094 (Window): Typedef to WindowPtr and move outside `#if
11095 TARGET_API_MAC_CARBON'.
11096 (XSizeHints): New struct.
11098 * macterm.c (x_update_begin, x_update_end)
11099 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
11101 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11102 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
11103 (construct_mouse_click): Put in #if 0.
11104 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
11105 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
11106 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11107 (activate_scroll_bars, deactivate_scroll_bars)
11108 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
11109 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
11110 if the position is neither user-specified nor program-specified.
11111 (x_free_frame_resources): Free size_hints.
11112 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
11113 (mac_clear_font_name_table): New function.
11114 (mac_do_list_fonts): Initialize font_name_table if needed.
11115 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
11116 around mac_do_list_fonts.
11117 (mac_unload_font): New function.
11118 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
11119 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
11120 and definitions with #if TARGET_API_MAC_CARBON.
11121 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
11122 (install_window_handler): Add decl.
11123 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
11124 window. Use UpdateControls. Get the rectangle that should be
11125 updated and restrict the target of expose_frame to it.
11126 (do_grow_window): Set minimum height/width according to size_hints.
11127 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
11128 (do_zoom_window): Don't use x_set_window_size.
11129 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
11130 (install_window_handler): New function.
11131 [!USE_CARBON_EVENTS] (mouse_region): New variable.
11132 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
11133 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
11134 GetEventDispatcherTarget inside BLOCK_INPUT.
11135 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
11136 Update mouse_region when mouse is moved.
11137 (make_mac_frame): Remove.
11138 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
11139 Initialize mouse pointer shapes. Change values of f->left_pos and
11140 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
11141 Don't call ShowWindow.
11142 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
11143 Vinvocation_name and Vsystem_name.
11144 (mac_make_rdb): New function (from w32term.c).
11145 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
11146 already been opened. Don't pass argument to
11147 mac_initialize_display_info. Don't set dpyinfo->height/width.
11148 Add entries to x_display_list and x_display_name_list.
11149 (x_delete_display): New function.
11150 (mac_initialize): Don't call mac_initialize_display_info.
11151 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
11153 * macterm.h (check_mac): Add extern.
11154 (struct mac_output): New member size_hints.
11155 (FRAME_SIZE_HINTS): New macro.
11156 (mac_unload_font): Add extern.
11158 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
11160 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
11162 2004-12-27 Richard M. Stallman <rms@gnu.org>
11164 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
11165 (syms_of_buffer): Don't defsubr it.
11167 * process.c (list_processes_1): Set undo_list instead
11168 of calling Fbuffer_disable_undo.
11170 * xdisp.c (single_display_spec_string_p): Rename from
11171 single_display_prop_string_p.
11172 (single_display_spec_intangible_p): Rename from
11173 single_display_prop_intangible_p.
11174 (handle_single_display_spec): Rename from handle_single_display_prop.
11175 Rewritten to be easier to understand.
11177 Change in load-history format. Functions now get (defun . NAME),
11178 and variables get just NAME.
11180 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11182 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11183 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
11184 (Qdefvar): Var deleted.
11185 (syms_of_eval): Don't initialze it.
11187 * lread.c (syms_of_lread) <load-history>: Doc fix.
11189 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11191 * xmenu.c (popup_get_selection): Pop down on C-g.
11192 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
11193 pops down menu on C-g.
11194 (xdialog_show): If dialog popped down and no button in the dialog was
11195 pushed, call Fsignal to quit.
11196 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
11199 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
11201 * gtkutil.c (xg_initialize): Install bindings for C-g so that
11202 dialogs and menus pop down.
11204 2004-12-27 Kenichi Handa <handa@m17n.org>
11206 * coding.c (code_convert_region): Fix calculation of `ratio'.
11208 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11210 * gtkutil.c (update_frame_tool_bar): Make the value of
11211 tool-bar-button-margin control margins of images in tool bar.
11213 * alloc.c (check_depth): New variable.
11214 (overrun_check_malloc, overrun_check_realloc): Only add
11215 overhead and write check pattern if check_depth is 1 (to handle
11216 recursive calls). Increase/decrease check_depth in entry/exit.
11217 (overrun_check_free): Only check for overhead if check_depth is 1.
11218 Increase/decrease check_depth in entry/exit.
11220 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11222 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
11223 before touching input_available_clear_time, to avoid accessing it
11224 from multiple threads.
11226 2004-12-23 Jason Rumney <jasonr@gnu.org>
11228 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
11231 2004-12-22 Richard M. Stallman <rms@gnu.org>
11233 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
11235 * lisp.h (Vundo_outer_limit): Fix decl.
11237 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
11239 (syms_of_undo): Initialize appropriately.
11240 (truncate_undo_list): If it's nil, there's no limit.
11242 2004-12-22 Kenichi Handa <handa@m17n.org>
11244 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
11246 2004-12-21 Richard M. Stallman <rms@gnu.org>
11248 * eval.c (unwind_to_catch): Clear immediate_quit.
11250 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
11251 specially as `\ ' and `\-'.
11253 * keyboard.c (kbd_buffer_store_event_hold):
11254 In the code for while-no-input, handle immediate_quit.
11256 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
11257 Call that at the very start.
11258 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
11259 (syms_of_alloc): Don't define undo-limit,
11260 undo-strong-limit and undo-outer-limit here.
11262 * undo.c (truncate_undo_list): Return void.
11263 Take just one argument, the buffer.
11264 Make it current, and inhibit recursive GC.
11265 Access and update the undo list directly; return void.
11266 Refer to the undo...limit variables directly.
11267 Test undo_outer_limit only after counting the whole current command.
11268 When it's exceeded, call the function in undo-outer-limit-function.
11269 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
11270 (Vundo_outer_limit_function): New variable.
11271 (syms_of_undo): Define undo-limit, undo-strong-limit
11272 and undo-outer-limit here, and undo-outer-limit-function.
11275 * lisp.h (truncate_undo_list): Update decl.
11277 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
11279 * fileio.c (Fread_file_name): Delete duplicates in
11280 file-name-history when history_delete_duplicates is true.
11282 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11284 * macterm.c (mac_do_list_fonts): Fix memory leak
11286 2004-12-20 Richard M. Stallman <rms@gnu.org>
11288 * regex.c (re_match_2_internal) <symend, wordend>:
11289 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
11291 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11293 * macterm.c (endif, x_font_name_to_mac_font_name):
11294 Use maccentraleurroman instead of maccentraleuropean
11295 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
11296 quickly finding a specific font without needing regexps.
11298 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11300 * syssignal.h: Declare main_thread.
11301 (SIGNAL_THREAD_CHECK): New macro.
11303 * keyboard.c (input_available_signal): Move thread checking code
11304 to macro SIGNAL_THREAD_CHECK and call that macro.
11305 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
11307 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
11309 * emacs.c: Define main_thread.
11310 (main): Initialize main_thread.
11311 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
11312 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
11314 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
11316 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
11318 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
11320 * process.c (send_process_trap, sigchld_handler):
11321 Call SIGNAL_THREAD_CHECK.
11323 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
11325 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
11327 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
11328 returning when xg_ignore_gtk_scrollbar is true.
11330 2004-12-14 Kim F. Storm <storm@cua.dk>
11332 * keyboard.c (read_char): Save and restore echo_string when
11333 handling input method.
11335 2004-12-13 Richard M. Stallman <rms@gnu.org>
11337 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
11339 * keyboard.c (Vthrow_on_input): New variable.
11340 (syms_of_keyboard): Defvar and initialize it.
11341 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
11343 * lisp.h (QUIT): Check for Vthrow_on_input.
11344 (Vthrow_on_input): Declare it.
11346 2004-12-13 Kim F. Storm <storm@cua.dk>
11348 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
11351 2004-12-12 Richard M. Stallman <rms@gnu.org>
11353 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
11355 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
11356 (Ftry_completion): Really use outer `zero'; eliminate inner one.
11358 2004-12-12 Kenichi Handa <handa@m17n.org>
11360 * term.c (encode_terminal_code): Fix previous change.
11362 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
11364 * keyboard.c (handle_async_input): Remove pthread mutex handling.
11365 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
11367 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
11368 in macro arguments.
11370 * minibuf.c (Ftry_completion, Fall_completions): Don't use
11373 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
11375 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11377 * w32term.c (x_calc_absolute_position): Remove calculation of
11378 difference between inner and outer window. Don't subtract difference
11379 for left and top calculations.
11381 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
11382 for left and top calculations. Remove call to x_real_positions.
11383 [Bug report by Drew Adams in November.]
11384 (x_check_expected_move): Do not set change_gravity to 1 when calling
11387 2004-12-08 Richard M. Stallman <rms@gnu.org>
11389 * xdisp.c (get_next_display_element): Use `escape-glyph' for
11390 control chars and escaped octal codes.
11391 (Qescape_glyph): New variable.
11392 (syms_of_xdisp): Initialize it.
11393 (escape_glyph_face): New variable.
11394 (redisplay_window): Initialize it.
11396 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11398 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
11399 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
11401 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11403 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
11404 reset_malloc_hooks.
11406 * keyboard.c (handle_async_input, input_available_signal):
11407 Add ! defined (SYSTEM_MALLOC) around thread code.
11409 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
11411 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
11413 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
11415 * config.in: Regenerate.
11417 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11419 * xmenu.c (Fx_popup_menu): Correct documentation about position.
11420 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
11421 if not given by a mouse click to correspond with x-popup-menu
11424 * config.in: Regenerate.
11426 * gtkutil.c: Include signal.h and syssignal.h.
11427 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
11429 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
11430 new variables main_thread and alloc_mutex,
11431 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
11432 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
11433 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
11434 as (UN)BLOCK_INPUT.
11435 (emacs_blocked_free, emacs_blocked_malloc)
11436 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
11437 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
11438 (reset_malloc_hooks): New function.
11440 * lisp.h: Declare reset_malloc_hooks.
11442 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
11444 * keyboard.c: Conditionally include pthread.h.
11445 (handle_async_input, input_available_signalt): If not in the main
11446 thread, block signal, send signal to main thread and return.
11448 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
11449 Set current folder in file chooser if default_filename is a directory.
11451 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
11453 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
11454 Remove redundant correctness checks.
11455 (regex_compile): Fix up error codes for \{..\} expressions.
11457 2004-12-05 Richard M. Stallman <rms@gnu.org>
11459 * regex.c (regex_compile): Fix end-of-pattern case for space.
11461 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11463 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
11464 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
11465 crashes with invalid characters.
11466 * macmenu.c (add_menu_item): Use it.
11467 * image.c (image_load_quartz2d): Likewise.
11468 * macfns.c (x_set_name, x_set_title): Likewise.
11469 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
11470 creating them each time for labels.
11472 2004-12-02 Richard M. Stallman <rms@gnu.org>
11474 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
11477 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
11478 (interactive_p): Skip Scalled_interactively_p frames
11479 like Sinteractive_p frames.
11480 (unwind_to_catch): Clear handling_signal.
11482 * data.c (Fmake_variable_buffer_local): Doc fix.
11483 (Fmake_local_variable): Doc fix.
11485 * insdel.c (insert_from_string_before_markers)
11486 (insert_from_string): Don't modify buffer on empty insertion.
11488 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
11490 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11492 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
11493 menu text as UTF8 fails.
11495 2004-12-01 Kim F. Storm <storm@cua.dk>
11497 * alloc.c: Add commentary for last change.
11498 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
11499 sizeof(size_t) != 4.
11500 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
11501 Use them. Also clear header and trailer of freed memory.
11502 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
11503 (string_overrun_cookie): Rename from string_overrun_pattern.
11504 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
11506 2004-12-01 Andreas Schwab <schwab@suse.de>
11508 * lisp.h: Declare string_to_multibyte.
11510 2004-12-01 Kenichi Handa <handa@m17n.org>
11512 * w32console.c (w32con_write_glyphs): Decide coding here.
11513 Adjusted for the change of encode_terminal_code.
11515 * term.c (encode_terminal_code): Don't make it "static".
11517 2004-11-30 Kenichi Handa <handa@m17n.org>
11519 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
11520 (encode_terminal_code): Argument changed. Encode all
11521 characters at once, and return a pointer to the result of encoding.
11522 (write_glyphs): Decide coding here. Adjusted for the above change.
11523 (insert_glyphs): Likewise.
11524 (term_init): Initialize encode_terminal_bufsize to 0.
11526 * coding.c (Vcode_conversion_workbuf_name): New variable.
11527 (syms_of_coding): Initialize and staticpro it.
11528 (set_conversion_work_buffer): New function.
11529 (run_pre_post_conversion_on_str): Use it.
11530 (run_pre_write_conversin_on_c_str): New function.
11532 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
11534 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11536 * keyboard.c: Don't undef SIGIO
11537 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
11538 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
11539 (macfns.o): Don't depend on ccl.h.
11540 * macfns.c (mac_frame_parm_handlers): Set handlers for
11541 Qleft_fringe and Qright_fringe.
11542 * macterm.c (mac_fill_rectangle_to_pixmap)
11543 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
11544 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
11546 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
11547 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
11548 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
11549 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11550 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
11551 XDrawImageString. Always draw background and foreground separately.
11552 (x_draw_image_foreground): Use clipping instead of computing the
11553 intersection rectangle.
11554 (x_draw_image_glyph_string): Don't draw an image with mask to a
11556 (x_redisplay_interface): Set flush_display_optional member to 0.
11557 (XTread_socket): Correctly reset the TEConverter
11560 2004-11-30 Kim F. Storm <storm@cua.dk>
11562 * lisp.h: New defines to enable buffer overrun checking.
11563 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
11564 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
11566 * alloc.c: Add more checks for buffer overruns.
11567 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
11568 xmalloc_overrun_check_trailer, overrun_check_malloc)
11569 overrun_check_realloc, overrun_check_free): Add.
11570 (GC_STRING_EXTRA, string_overrun_pattern): Add.
11571 (check_sblock, allocate_string_data, compact_small_strings):
11572 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
11573 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
11574 (check_string_free_list): Add.
11575 (allocate_string, sweep_strings): Call check_string_free_list.
11577 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
11578 XMALLOC_OVERRUN_CHECK to avoid crash during load.
11580 2004-11-29 Kim F. Storm <storm@cua.dk>
11582 * fns.c (concat): Use SAFE_ALLOCA.
11584 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
11586 * sysdep.c (emacs_write): Don't use QUIT.
11588 2004-11-29 Kenichi Handa <handa@m17n.org>
11590 * buffer.c (init_buffer): Set current_buffer->directory to a
11591 multibyte string made by string_to_multibyte.
11593 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
11595 2004-11-27 Andreas Schwab <schwab@suse.de>
11597 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
11599 * s/gnu-linux.h: Enable no-op gcpros on ia64.
11600 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
11602 * filelock.c (lock_file_1): Call get_boot_time early.
11603 Increase buffer size.
11605 2004-11-27 Eli Zaretskii <eliz@gnu.org>
11607 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
11610 2004-11-27 Kim F. Storm <storm@cua.dk>
11612 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
11613 marker out of doc string.
11615 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
11617 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
11618 which was not mentioned in the log.
11620 2004-11-26 Kim F. Storm <storm@cua.dk>
11622 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
11623 angle bitmaps at top/bottom line.
11625 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
11626 set it when it->method is set to next_element_from_display_vector.
11627 (setup_for_ellipsis): Add LEN argument. Callers changed.
11628 Set it->saved_face_id.
11629 (get_next_display_element): Use loop instead of recursion.
11630 Set it->saved_face_id. Combine duplicate code for ctr chars.
11631 (next_element_from_display_vector): Do not set it->saved_face_id.
11632 (next_element_from_ellipsis): Use setup_for_ellipsis.
11634 2004-11-26 Eli Zaretskii <eliz@gnu.org>
11636 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
11637 prevent compiler warnings.
11639 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
11641 * keyboard.c (command_loop_1): Print a message describing the key
11642 the user just pressed when this key has no binding.
11644 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
11645 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
11647 * lread.c (readchar): Check QUIT when `getc' is interrupted.
11649 2004-11-24 Richard M. Stallman <rms@gnu.org>
11651 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
11653 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
11655 2004-11-24 Kim F. Storm <storm@cua.dk>
11657 * xdisp.c (move_it_in_display_line_to, display_line):
11658 Restore saved_face_id also when truncate-lines or hscrolled.
11660 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11662 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
11663 x-use-old-gtk-file-dialog.
11665 * xfns.c: Define x_use_old_gtk_file_dialog.
11666 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
11667 outside ifdef USE_GTK.
11669 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
11671 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
11672 Don't use XFASTINT blindly.
11674 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
11676 * indent.c (skip_invisible): Avoid non-idempotent side-effects
11677 in macro arguments.
11679 * keymap.c (Flookup_key): Check INTEGERP before XINT.
11681 * lread.c (oblookup): Don't use XFASTINT blindly.
11683 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
11684 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
11686 2004-11-23 Kim F. Storm <storm@cua.dk>
11688 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
11689 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
11691 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
11692 signal_p is zero and face name is unknown.
11693 (Fx_list_fonts): Don't signal error in lookup_named_face.
11694 (Fface_font): Signal error in lookup_named_face.
11695 (ascii_face_of_lisp_face): Likewise.
11697 * dispextern.h (lookup_named_face): Fix prototype.
11699 * xdisp.c (handle_single_display_prop): Don't signal error in
11700 lookup_named_face for unknown fringe face name.
11701 (highlight_trailing_whitespace): Don't signal error in
11702 lookup_named_face if trailing-whitespace face unknown.
11703 (calc_line_height_property): Don't signal error in
11704 lookup_named_face if specified face name is unknown.
11706 * fringe.c (update_window_fringes): Show top row indicator if
11707 window has header-line. Don't show arrow at bob and eob
11708 if the boundary indicators are not used.
11709 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
11711 * window.c (set_window_buffer): Clear display_error_modiff.
11713 2004-11-22 Kim F. Storm <storm@cua.dk>
11715 * fringe.c (update_window_fringes): Provide sensible fall-back
11716 value for non-nil indicate-buffer-boundaries setting.
11718 2004-11-22 Markus Rost <rost@ias.edu>
11720 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
11722 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11724 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
11726 2004-11-21 Kim F. Storm <storm@cua.dk>
11728 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
11730 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
11731 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11733 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
11734 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11736 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
11737 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11739 * xdisp.c (move_it_in_display_line_to, display_line):
11740 Restore saved_face_id if overflow-newline-into-fringe is enabled and
11741 line is continued before or in middle of element from display vector.
11743 * indent.c (Fvertical_motion): Fix last change. Use another
11744 method to detect if iterator moved too far ahead after reseat.
11746 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
11747 expand matrix width for overflow in zero-width area.
11748 (append_glyph, append_composite_glyph, produce_image_glyph)
11749 (append_stretch_glyph): Use it to avoid loop in redisplay.
11750 (note_mode_line_or_margin_highlight): Don't let help-echo from
11751 string override help-echo from image map.
11753 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
11755 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
11756 * callint.c (Fcall_interactively): Ditto.
11758 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
11760 * minibuf.c (Fminibuffer_complete_and_exit):
11761 Fixup the case of the completed value, for case-indep completion.
11763 2004-11-20 Richard M. Stallman <rms@gnu.org>
11765 * lisp.h (Fread_from_minibuffer): Add arg in decl.
11767 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
11768 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
11770 * search.c (Vsearch_spaces_regexp):
11771 Rename from Vsearch_whitespace_regexp. All uses changed.
11773 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
11775 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
11777 2004-11-19 Richard M. Stallman <rms@gnu.org>
11779 * search.c (Vsearch_whitespace_regexp): New variable.
11780 (syms_of_search): Defvar it.
11781 (compile_pattern_1): Call re_set_whitespace_regexp with it.
11782 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
11784 (struct regexp_cache): New element whitespace_regexp.
11785 (syms_of_search): Initialize whitespace_regexp elements.
11786 (compile_pattern): Compare whitespace_regexp elements.
11787 (compile_pattern_1): Set whitespace_regexp elements.
11789 * regex.c (regex_compile): Substitute whitespace_regexp
11790 for spaces, if it is nonzero.
11791 (whitespace_regexp): New variable.
11792 (re_set_whitespace_regexp): New function.
11794 2004-11-19 Kim F. Storm <storm@cua.dk>
11796 * indent.c (Fvertical_motion): Fix last change.
11798 2004-11-18 Kim F. Storm <storm@cua.dk>
11800 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
11801 Instead, move back again if reseating moves too far ahead.
11803 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
11805 * xdisp.c (message3): Call clear_message.
11807 2004-11-17 Kim F. Storm <storm@cua.dk>
11809 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
11811 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11813 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
11815 * xmenu.c (x_menu_in_use): Remove.
11816 (x_menu_set_in_use): Also set popup_activated_flag.
11818 * xfns.c (Fx_file_dialog): Call popup_activated instead of
11819 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
11821 * xterm.h (x_menu_in_use): Remove.
11823 2004-11-16 Richard M. Stallman <rms@gnu.org>
11825 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
11826 Use map-keymap-internal to implement that.
11828 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11830 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11832 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11833 a window before using XWINDOW.
11835 * window.c (make_window, Fselect_window, make_dummy_parent)
11836 (save_window_save):
11837 * frame.c (make_frame):
11838 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11840 * lisp.h (NILP): Use EQ rather than XFASTINT.
11842 2004-11-16 Kim F. Storm <storm@cua.dk>
11844 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
11846 * indent.c (Fvertical_motion): Fix last change. Only reseat when
11849 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
11851 * dispextern.h: Extern reseat_at_previous_visible_line_start.
11853 2004-11-16 Kenichi Handa <handa@m17n.org>
11855 * xdisp.c (display_mode_element): Fix previous change (calculate
11856 end position of substring to display correctly).
11858 2004-11-16 Kim F. Storm <storm@cua.dk>
11860 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11861 Reported by Andrew M. Scott.
11863 2004-11-15 Kim F. Storm <storm@cua.dk>
11865 * fns.c (Fsafe_plist_get): New defun.
11866 (syms_of_fns): Defsubr it.
11868 * lisp.h (Fsafe_plist_get): Add EXFUN.
11870 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
11871 Use Fsafe_plist_get.
11872 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11873 Fix image map element parsing. Use Fsafe_plist_get.
11875 2004-11-15 Richard M. Stallman <rms@gnu.org>
11877 * xdisp.c (get_next_display_element): Fix previous change.
11879 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11881 * window.c (shrink_windows): Handle special case of one window left
11882 when trying to shrink the final reminder. Grow windows if
11883 total_removed is less than total_shrink.
11885 * xmenu.c (pop_down_menu): Remove global variable current_menu,
11886 extract pointer from arg with XSAVE_VALUE.
11887 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11888 Construct arg to record_unwind_protect with make_save_value.
11890 2004-11-13 Richard M. Stallman <rms@gnu.org>
11892 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11893 (get_next_display_element): Fix previous change to apply only to \n.
11895 * indent.c (Fvertical_motion): Scan to PT from start of line to
11896 make iterator consistent.
11898 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11900 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11902 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11904 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11905 Record unwind with clean_up_file_dialog.
11907 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11910 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11912 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11914 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
11915 (xg_file_sel_destroy): Remove.
11916 (xg_file_response_cb, pop_down_file_dialog)
11917 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
11919 (xg_get_file_with_chooser, xg_get_file_with_selection):
11920 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
11921 Move common code to xg_get_file_name. Return widget created.
11922 (xg_get_file_name): Set name, transient for, modal and destroy
11923 with parent here. Connect response signal to xg_file_response_cb,
11924 connect delete-event to gtk_true. Record pop_down_file_dialog
11925 for unwind. Do event loop and call x_menu_wait_for_event in loop.
11926 (xg_create_widget): Make dialogs modal.
11928 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11930 (popup_get_selection): Move unwind protect ...
11931 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11932 Move destroy of widget to pop_down_menu.
11933 (popup_widget_loop): Move unwind protect ...
11934 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11935 Move destroy of widget to pop_down_menu.
11936 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
11937 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
11938 x_mouse_leave and grabbed = 0 to pop_down_menu.
11940 2004-11-13 Kim F. Storm <storm@cua.dk>
11942 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
11943 (syms_of_xdisp): DEFVAR_BOOL it.
11944 (make_cursor_line_fully_visible, try_cursor_movement)
11945 (try_window_id): Use it.
11947 2004-11-12 Kim F. Storm <storm@cua.dk>
11949 * dispextern.h (struct glyph_row): New member extra_line_spacing.
11950 (struct it): New member max_extra_line_spacing.
11951 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11952 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11953 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11954 part of last line is only extra line spacing (so the text on the
11955 line is fully visible). Use helper macros.
11956 Add W arg (to use them). All callers changed.
11957 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11958 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11960 * window.c (window_scroll_pixel_based, Frecenter):
11961 Use move_it_vertically_backward directly.
11962 (Frecenter): Fix calculation of new start pos for negative arg.
11963 Before, the new start pos was sometimes chosen too far back, so
11964 the last line became only partially visible, and thus would be
11965 either only semi-visible or automatically scrolled to the middle
11966 of the window by redisplay.
11968 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11969 (move_it_vertically_backward): Don't recure to move further back.
11970 (move_it_vertically): Remove superfluous condition.
11971 (move_it_by_lines): Clear last_height when moved 0 lines.
11972 (resize_mini_window): Use it.max_extra_line_spacing.
11973 (display_tool_bar_line): Clear row->extra_line_spacing.
11974 (try_scrolling): Use move_it_vertically_backward directly.
11975 (redisplay_window): Likewise.
11976 (compute_line_metrics): Set row->extra_line_spacing.
11977 (display_line, display_string): Likewise.
11978 (x_produce_glyphs): Update it->max_extra_line_spacing.
11980 * xmenu.c (pop_down_menu): Return nil.
11982 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11984 * xmenu.c (x_menu_wait_for_event): New function.
11985 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
11987 (popup_widget_loop): Add argument do_timers.
11988 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11989 do_timers to popup_widget_loop.
11990 (xmenu_show): Call XMenuActivateSetWaitFunction so that
11991 x_menu_wait_for_event is called by XMenuActivate.
11992 (create_and_show_popup_menu): Pass 1 for do_timers to
11993 popup_get_selection.
11994 (pop_down_menu): New function.
11995 (popup_get_selection, popup_widget_loop): Unwind protect to
11997 (popup_widget_loop): Add argument widget.
11998 (create_and_show_popup_menu, create_and_show_dialog): Pass new
11999 argument widget to popup_widget_loop.
12001 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12003 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
12005 2004-11-09 Kim F. Storm <storm@cua.dk>
12007 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
12008 Fix various comments referring to XEvents instead of input events.
12009 (x_queue_event): Fix format strings.
12010 (x_stop_queuing_selection_requests): Likewise.
12012 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
12013 (pint2hrstr): Add extra braces to silence compiler.
12015 * print.c (print_object): Fix format string.
12017 * lread.c (read1): Fix next_char matching.
12019 * lisp.h (Fdelete): Add EXFUN.
12020 (replace_range_2): Add prototype.
12022 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
12024 * intervals.h (NULL_INTERVAL_P): Add separate version when
12025 ENABLE_CHECKING is not defined to silence compiler.
12026 (compare_string_intervals): Add prototype.
12028 * fringe.c (destroy_fringe_bitmap): Fix return type.
12029 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
12031 * emacs.c (Fdump_emacs): Fix format string.
12033 * doc.c: Include <ctype.h>.
12034 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
12036 * data.c (store_symval_forwarding): Remove unused variables.
12038 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
12040 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12042 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
12045 2004-11-09 Kim F. Storm <storm@cua.dk>
12047 * process.c (Fmake_network_process): Remove kludge for interrupted
12048 connects on BSD. If connect is interrupted, just close socket and
12049 start over rather than sleeping and retry with same socket.
12051 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12053 * .cvsignore: Add buildobj.lst.
12055 * doc.c: New variable Vbuild_files.
12056 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
12057 file names from buildobj.lst. Only attach docstrings from files
12058 that are in Vbuild_files.
12059 (syms_of_doc): Defvar Vbuild_files.
12061 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
12063 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
12064 (mostlyclean): Rm buildobj.lst
12066 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
12069 2004-11-09 Kim F. Storm <storm@cua.dk>
12071 * fringe.c (update_window_fringes): Update fringe bitmaps if
12072 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
12073 also update previous row to get rid of misc. artifacts.
12075 2004-11-08 Kim F. Storm <storm@cua.dk>
12077 * xdisp.c (fast_find_position): Fix start pos if header line present.
12078 (note_mouse_highlight): Clear mouse face if we move out of text area.
12080 2004-11-08 Eli Zaretskii <eliz@gnu.org>
12082 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
12083 Don't include <sys/time.h> explicitly.
12084 Include <stdio.h> unconditionally, not just on MacOS.
12086 2004-11-08 Kenichi Handa <handa@m17n.org>
12088 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
12089 don't pay attention to '\' before '*'.
12090 (fontset_pattern_regexp): Change the meaning of the second arg.
12091 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
12092 (check_fontset_name): Try NAME as literal at first, and if it
12093 failes, try NAME as pattern.
12095 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12097 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
12099 2004-11-07 Andreas Schwab <schwab@suse.de>
12101 * lisp.h (Fmsdos_downcase_filename): Declare.
12102 * dired.c (Fmsdos_downcase_filename): Don't declare here.
12103 * fileio.c: Likewise.
12105 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12107 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
12108 comparisons with integers instead of Lisp_Object address.
12109 (Fmsdos_set_keyboard): Declare argument allkeys.
12111 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
12113 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
12114 int/Lisp_Object mixup.
12118 2004-11-06 Steven Tamm <steventamm@mac.com>
12120 * editfns.c: Need to include sys/time.h before resource.h on darwin.
12122 2004-11-06 Richard M. Stallman <rms@gnu.org>
12124 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
12126 * xfaces.c (merge_named_face): GCPRO the face_name in the
12127 named_merge_point struct that we make.
12128 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
12130 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
12131 before deciding whether to inactivate mark.
12133 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
12135 * config.in: Regenerate (add HAVE_GETRUSAGE).
12136 * editfns.c (Fget_internal_run_time): New function.
12137 (syms_of_data): Defsubr it.
12138 * fns.c (sxhash): As far as possible, merge calculation of
12139 hash code for symbols and strings.
12141 2004-11-06 Eli Zaretskii <eliz@gnu.org>
12143 * frame.c (syms_of_frame): Fix the example in the doc string.
12145 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12147 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
12149 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
12150 (create_and_show_dialog): Revert change from 2004-10-31.
12152 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
12154 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
12156 2004-11-05 Kim F. Storm <storm@cua.dk>
12158 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
12160 * fileio.c (Ffile_modes): Doc fix.
12161 (auto_save_1): Check for Ffile_modes nil value.
12163 2004-11-05 Kim F. Storm <storm@cua.dk>
12165 * xselect.c (struct selection_event_queue, selection_queue)
12166 (x_queue_selection_requests, x_queue_event)
12167 (x_start_queuing_selection_requests)
12168 (x_stop_queuing_selection_requests): Add new queue for selection
12169 input events to replace previous XEvent queue in xterm.c.
12170 (queue_selection_requests_unwind): Adapt to new queue.
12171 (x_reply_selection_request): Adapt to new queue.
12172 Unexpect wait_object in case of x errors (memory leak).
12173 (x_handle_selection_request, x_handle_selection_clear): Make static.
12174 (x_handle_selection_event): New function. May queue selection events.
12175 (wait_for_property_change_unwind): Use save_value instead of cons.
12176 Clear property_change_reply_object.
12177 (wait_for_property_change): Abort if already waiting.
12178 Use save_value instead of cons for unwind data.
12179 (x_handle_property_notify): Skip events already arrived, but don't
12180 free them, as "arrived" field is checked by wait_for_property_change,
12181 and it will be freed by unwind or explicit unexpect_property_change.
12182 (x_get_foreign_selection): Add to new queue.
12183 (receive_incremental_selection): Don't unexpect wait_object when done
12184 as it has already been freed by previous wait_for_property_change.
12186 * xterm.h (x_start_queuing_selection_requests)
12187 (x_stop_queuing_selection_requests, x_handle_selection_request)
12188 (x_handle_selection_clear): Remove prototypes.
12189 (x_handle_selection_event): Add prototype.
12191 * xterm.c (handle_one_xevent): Don't queue X selection events
12192 here, it may be too late if we start queuing after we have already
12193 stored some selection events into the kbd buffer.
12194 (struct selection_event_queue, queue, x_queue_selection_requests)
12195 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
12196 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
12197 (x_catch_errors_unwind): Block input around final XSync.
12199 * keyboard.h (kbd_buffer_unget_event): Add prototype.
12201 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
12202 (kbd_buffer_unget_event): New function.
12203 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
12204 and use x_handle_selection_event.
12205 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
12207 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12209 * xselect.c (TRACE3): New debug macro.
12210 (x_reply_selection_request): Use it.
12211 (receive_incremental_selection): In call to TRACE0, the name of
12212 a symbol is in xname.
12214 2004-11-05 Kim F. Storm <storm@cua.dk>
12216 * fontset.c (fontset_pattern_regexp): Use unsigned char.
12218 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12220 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
12222 * gtkutil.h (use_old_gtk_file_dialog): Declare.
12224 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
12225 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
12226 * xfns.c (syms_of_xfns): ... to here.
12228 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
12229 it doesn't start with /.
12231 2004-11-04 Kenichi Handa <handa@m17n.org>
12233 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
12234 treat it as a literal character.
12236 2004-11-03 Kim F. Storm <storm@cua.dk>
12238 * .gdbinit (ppt): New function.
12240 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12242 * xterm.c (x_window_to_scroll_bar): Only call
12243 xg_get_scroll_id_for_window if toolkit scroll bars are used.
12245 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
12248 2004-11-02 Andreas Schwab <schwab@suse.de>
12250 * window.c (Fscroll_right): Fix last change.
12252 2004-11-02 Kim F. Storm <storm@cua.dk>
12254 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
12256 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12258 * callproc.c (Fcall_process): Block input around vfork.
12260 2004-11-02 Kim F. Storm <storm@cua.dk>
12262 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
12263 (syms_of_eval): Defsubr it.
12265 2004-11-02 Richard M. Stallman <rms@gnu.org>
12267 * insdel.c (replace_range_2): New function.
12269 * casefiddle.c (casify_region): Handle changes in byte-length
12270 using replace_range_2.
12272 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
12274 * xdisp.c (back_to_previous_visible_line_start):
12275 Subtract 1 from pos when checking previous newline for invisibility.
12277 * window.c (window_scroll_pixel_based): Update preserve_y
12278 for header line if any.
12279 (Fscroll_left, Fscroll_right): Don't call interactive_p;
12280 use a new second argument instead.
12282 * eval.c (Fcall_interactive_p): New function.
12283 (interactive_p): Don't test INTERACTIVE here.
12284 (Finteractive_p): Doc fix.
12286 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
12288 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12290 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
12291 comparing font names.
12293 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12295 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
12296 Fx_file_dialog if only directories should be read.
12298 * lisp.h: Fx_file_dialog takes 5 parameters.
12300 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
12301 Add parameter only_dir_p.
12302 In Motif version, don't put DEFAULT_FILENAME in filter part of the
12303 dialog, just text field part. Do not add DEFAULT_FILENAME
12304 to list of files if it isn't there.
12305 In GTK version, pass only_dir_p parameter to xg_get_file_name.
12307 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
12308 Check only_dir_p instead of comparing prompt to "Dired". When using
12309 a save dialog, add option kNavDontConfirmReplacement, change title
12310 to "Enter name", change text for save button to "Ok".
12312 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
12313 Check only_dir_p instead of comparing prompt to "Dired".
12315 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
12316 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
12317 and HAVE_GTK_FILE_SELECTION_NEW respectively.
12318 (xg_get_file_name): Add parameter only_dir_p.
12319 Call xg_get_file_with_chooser or xg_get_file_with_selection
12320 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
12321 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
12323 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
12325 * config.in: Rebuild (added HAVE_GTK_FILE_*).
12327 2004-11-01 Kim F. Storm <storm@cua.dk>
12329 * process.c (connect_wait_mask, num_pending_connects):
12330 Only declare and use them if NON_BLOCKING_CONNECT is defined.
12331 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
12332 (IF_NON_BLOCKING_CONNECT): New helper macro.
12333 (wait_reading_process_output): Only declare and use local vars
12334 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
12336 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
12338 * w32term.c (x_scroll_run): Delete region objects after use.
12340 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12342 * xmenu.c: Add prototypes for forward function declarations.
12343 (popup_get_selection): Remove parameter do_timers, remove call to
12345 (create_and_show_popup_menu, create_and_show_dialog):
12346 Remove parameter do_timers from call to popup_get_selection.
12348 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
12349 tool_bar_items and assign the result to f->tool_bar_items if
12350 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
12351 tool_bar_items to assignment of result.
12353 * atimer.c (alarm_signal_handler): Do not call set_alarm if
12354 pending_atimers is non-zero.
12356 2004-10-31 Kim F. Storm <storm@cua.dk>
12358 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
12360 2004-10-28 Will <will@glozer.net>
12362 * macterm.c: Allow user to assign key modifiers to the Mac Option
12363 key via a 'mac-option-modifier' variable.
12365 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12367 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
12368 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
12369 (x_handle_selection_request, x_handle_selection_clear)
12370 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
12372 2004-10-28 Richard M. Stallman <rms@gnu.org>
12374 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12376 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12378 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
12380 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
12381 comment-starter over a 1-char one.
12383 2004-10-27 Richard M. Stallman <rms@gnu.org>
12385 * xdisp.c (get_next_display_element): In mode lines,
12386 treat newline and tab like other control characters.
12388 * editfns.c (Fmessage): Doc fix.
12390 * indent.c (vmotion): When moving up, check the newline before.
12391 Make prevline an int, not a Lisp_Object.
12393 2004-10-27 Kim F. Storm <storm@cua.dk>
12395 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
12396 Only allocate info and discarded tables once.
12398 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
12399 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
12400 (SAFE_FREE): Test it to determine if we need to unwind to free.
12401 Remove size arg. All users changed.
12402 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
12404 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12406 * gtkutil.c: Put empty line between comment and function body.
12407 (xg_destroy_widgets): Rename from remove_from_container.
12408 Just destroy all widgets in list. Argument wcont removed.
12409 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
12410 instead of remove_from_container.
12411 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
12412 (free_frame_tool_bar): Add comment.
12414 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
12415 is not NULL before strcmp.
12417 2004-10-26 Kim F. Storm <storm@cua.dk>
12419 * callint.c (Fcall_interactively): Add 'U' code to get the
12420 up-event discarded by a previous 'k' or 'K' argument.
12422 2004-10-26 David Kastrup <dak@gnu.org>
12424 * buffer.c (syms_of_buffer): Fix a few typos.
12426 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12428 * xsmfns.c: Put empty line between comment and function body.
12429 Use two spaces before comment end.
12431 2004-10-25 Kenichi Handa <handa@m17n.org>
12433 * fontset.c (fontset_pattern_regexp): Optimize for the case that
12434 PATTERN is full XLFD.
12436 2004-10-24 Kenichi Handa <handa@m17n.org>
12438 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
12440 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
12441 (regex_compile): Return REG_ERANGEX if appropriate.
12443 2004-10-22 Kenichi Handa <handa@m17n.org>
12445 * editfns.c (Ftranslate_region_internal): New function.
12446 (syms_of_editfns): Defsubr it.
12448 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12450 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
12452 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
12454 * xterm.h (x_output): New member `xic_base_fontname'.
12455 (FRAME_XIC_BASE_FONTNAME): New macro.
12456 (xic_free_xfontset): Declare.
12458 * xfns.c (xic_create_xfontset): Share fontsets between frames
12459 based on base_fontname.
12460 (xic_free_xfontset): New function.
12461 (free_frame_xic): Use it.
12462 (xic_set_xfontset): Ditto.
12464 * xterm.c (xim_destroy_callback): Ditto.
12466 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
12468 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
12470 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12472 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
12475 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
12476 New variables and constant.
12477 (main): Calculate heap_bss_diff. If we are dumping and the
12478 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
12479 and exec ourself again.
12480 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
12483 * lastfile.c: Make my_endbss and my_endbss_static available on all
12486 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
12487 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
12489 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
12491 * data.c (Flocal_variable_if_set_p): Doc fix.
12493 2004-10-19 Jason Rumney <jasonr@gnu.org>
12495 * w32.c (init_environment): Set emacs_dir correctly when running
12496 emacs from the build directory.
12498 2004-10-19 Richard M. Stallman <rms@gnu.org>
12500 * editfns.c (Fdelete_and_extract_region):
12501 If region is empty, return null string.
12503 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12505 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
12507 (xg_frame_cleared): Remove.
12509 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
12510 (xg_find_top_left_in_fixed): Remove.
12511 (xg_create_scroll_bar): Put an event box widget between
12512 the scroll bar widget and the edit widget.
12513 (xg_show_scroll_bar): Show the parent widget (the event box).
12514 (xg_remove_scroll_bar): Destroy parent (the event box) also.
12515 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
12516 Move the parent (the event box) widget inside the fixed widget.
12517 Move window clear to xterm.c.
12519 * gtkutil.h (xg_frame_cleared): Remove.
12521 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
12522 (x_scroll_bar_create, XTset_vertical_scroll_bar):
12523 Remove arguments left and width to xg_update_scrollbar_pos.
12524 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
12526 2004-10-19 Kenichi Handa <handa@m17n.org>
12528 * xdisp.c (display_mode_element): Fix display of wide chars.
12530 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12532 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
12533 gdk_window_clear and move gdk_window_process_all_updates after
12534 clear so events are sent to the X server in correct order.
12536 2004-10-18 Kenichi Handa <handa@m17n.org>
12538 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
12539 comparing font names.
12540 (fs_query_fontset): Use fast_string_match for comparing fontset names.
12541 (list_fontsets): Likewise.
12543 * search.c (fast_string_match_ignore_case): New function.
12545 * lisp.h (fast_string_match_ignore_case): Extern it.
12547 2004-10-17 Kim F. Storm <storm@cua.dk>
12549 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
12550 than bitmap if there is not left fringe.
12551 (get_overlay_arrow_glyph_row): Also used on windows system.
12552 (display_line): Display overlay string if no left fringe.
12554 2004-10-16 Jason Rumney <jasonr@gnu.org>
12556 * w32fns.c (w32_font_match): Encode font name being matched.
12558 2004-10-16 Richard M. Stallman <rms@gnu.org>
12560 * window.c (Fspecial_display_p): Doc fix.
12562 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
12564 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
12565 Don't ignore menus, because where-is-internal already does it for us.
12567 2004-10-15 Kim F. Storm <storm@cua.dk>
12569 * xdisp.c (redisplay_window): Only update fringes and vertical
12570 border on window frames.
12572 2004-10-14 Andreas Schwab <schwab@suse.de>
12574 * m/ia64.h (DATA_SEG_BITS): Don't define.
12576 2004-10-14 Kim F. Storm <storm@cua.dk>
12578 * xterm.h: Include Xutil.h after keysym.h to work around bug
12579 in some X versions.
12581 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12583 * fns.c (map_char_table): Add missing gcpros.
12585 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12587 * keymap.c (get_keymap): An autoload form is not a keymap.
12589 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
12591 2004-10-13 Kim F. Storm <storm@cua.dk>
12593 * callproc.c (Fcall_process): Simplify handling of display arg.
12594 Resume `display_on_the_fly' once a coding system is determined.
12596 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
12598 2004-10-12 Kim F. Storm <storm@cua.dk>
12600 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
12601 caller, such as call-process, is not going to poll for input.
12602 (calc_line_height_property): Handle case where it->object is nil.
12604 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
12606 2004-10-12 Kenichi Handa <handa@m17n.org>
12608 * xdisp.c (get_next_display_element):
12609 If unibyte_display_via_language_environment is zero, display 8-bit
12610 chars in octal in unibyte buffer.
12612 2004-10-12 Kim F. Storm <storm@cua.dk>
12614 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
12615 are no ordinary bindings.
12617 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12619 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
12621 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12623 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
12624 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
12625 (make_mac_frame): Add BLOCK_INPUT around the making of a
12627 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
12628 * macgui.h (mktime): Use emacs_mktime.
12629 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
12630 Make a cancel file-open dialog be like C-g.
12631 * mac.c (mktime): Use emacs_mktime.
12632 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
12633 (Fmac_paste_function): Add better error handling for carbon cut/paste.
12635 2004-10-10 Kim F. Storm <storm@cua.dk>
12637 * keyboard.c (timer_resume_idle): New function to resume idle
12638 timer without resetting timers on the idle list.
12639 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
12640 (timer_start_idle, timer_stop_idle): Declare static.
12641 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
12643 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
12645 2004-10-08 Steven Tamm <steventamm@mac.com>
12647 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
12648 * macterm.c (mac_check_for_quit_char): Remove warning for using
12649 NULL where 0 should be used.
12650 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
12652 * mac.c: Include time.h for Tiger compatibility.
12654 2004-10-07 Kim F. Storm <storm@cua.dk>
12656 * xdisp.c (redisplay_window): Fix flicker on vertical line between
12657 windows. Update vertical line after drawing window fringes, but
12658 only if actually drawing any bitmaps--or there is no fringe.
12660 * xterm.c (x_update_window_end): Likewise.
12661 * macterm.c (x_update_window_end): Likewise.
12662 * w32term.c (x_update_window_end): Likewise.
12664 * fringe.c (draw_window_fringes): Return value now indicates if
12665 any fringe bitmaps were redrawn (or there are no fringes).
12667 * dispextern.h (draw_window_fringes): Update prototype.
12669 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12671 * macfns.c (mac_get_window_bounds): Add extern.
12672 (x_real_positions): Use mac_get_window_bounds.
12674 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
12677 * macterm.c [!MAC_OSX]: Include Windows.h.
12678 (front_emacs_window): Rename from mac_front_window. All uses
12679 changed. Return the frontmost non-tooltip emacs window.
12680 (mac_get_window_bounds): New function.
12681 (x_calc_absolute_position): Use the difference of width and height
12682 between the inner and outer window.
12683 (x_set_offset): Specify window position by the coordinae of the
12684 outer window. Adjust the position if the title bar is completely
12685 outside the screen.
12686 (app_is_suspended, app_sleep_time): Remove unused variables.
12687 (do_app_resume, do_app_suspend): Remove their contents because
12688 window-activate/deactivate events will do the job.
12689 (do_zoom_window): Remove unused variables. Make compliant to the
12690 standard way of zooming. Set f->left_pos and f->top_pos.
12691 (XTread_socket): Don't use argument `expected'. Don't use
12692 FrontWindow to determine the clicked window. Exclude unprocessed
12693 mouseUp cases in the early stage. Add parentheses to fix operator
12695 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
12697 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12699 * config.in: Regenerate.
12701 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
12704 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12706 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
12707 a row if Alt or Meta has been found for that row. Also stop scanning
12708 for Keysyms for that row.
12710 2004-10-04 Kim F. Storm <storm@cua.dk>
12712 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
12713 to list. Include overlay arrow bitmap in return value.
12715 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
12716 bars with fractional column width. If scroll bar separates two
12717 windows, move it towards the window it belongs to. Only update
12718 the padding area below the scroll bar widget when necessary,
12719 i.e. when scroll bar widget is created, moved, or resized.
12721 * xdisp.c (define_frame_cursor1): Do not change frame cursor
12722 while tracking/dragging mouse.
12723 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
12725 * window.c (coordinates_in_window): Relax check for cursor
12726 on vertial border between mode lines.
12727 (Fset_window_fringes): Do not allow negative widths.
12728 (Fset_window_scroll_bars): Likewise.
12730 * .gdbinit (pp): Shorthand for p ARG + pr.
12731 (ff): New command: flush frame updates (X only).
12733 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
12735 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
12737 2004-09-30 Kenichi Handa <handa@m17n.org>
12739 * process.c (send_process): Free composition data.
12741 * fileio.c (Finsert_file_contents): Free composition data.
12743 * coding.c (code_convert_region): Don't skip ASCIIs if there are
12744 compositions to encode.
12745 (encode_coding_string): Likewise. Free composition data.
12747 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
12749 * coding.c (code_convert_region): Free composition data.
12751 2004-09-29 Kim F. Storm <storm@cua.dk>
12753 * fringe.c: Remove limit on number of bitmaps.
12754 (fringe_bitmaps, fringe_faces): Change to pointers.
12755 (max_fringe_bitmaps): New var.
12756 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
12757 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
12759 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
12760 (struct glyph_row): Reorder fringe_bitmap related fields.
12761 (struct it): Likewise.
12763 * w32term.c (fringe_bmp): Change to pointer.
12764 (max_fringe_bmp): New var.
12765 (w32_define_fringe_bitmap): Expand fringe_bmp.
12766 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
12767 (w32_destroy_fringe_bitmap): Likewise.
12769 2004-09-29 Kim F. Storm <storm@cua.dk>
12771 * fringe.c: Simplify last change.
12772 (lookup_fringe_bitmap): New function.
12773 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
12774 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
12775 Keep standard bitmaps in Vfringe_bitmaps.
12776 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
12777 (Fset_fringe_bitmap_face): Likewise.
12779 * dispextern.h (lookup_fringe_bitmap): Add prototype.
12780 (valid_fringe_bitmap_p): Remove prototype.
12782 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
12784 2004-09-29 Kim F. Storm <storm@cua.dk>
12786 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
12787 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
12789 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
12791 * fringe.c (Vfringe_bitmaps): New variable.
12792 (syms_of_fringe): DEFVAR_LISP it.
12793 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
12794 Change arg to Lisp_Object and fail if not an integer.
12795 (get_fringe_bitmap_name, resolve_fringe_bitmap)
12796 (destroy_fringe_bitmap): New functions.
12797 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
12798 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
12799 clear its fringe property.
12800 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
12801 Fdestroy_fringe_bitmap.
12802 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
12803 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
12804 and set fringe property. Signal error if no free slots.
12805 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
12806 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
12808 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
12809 symbols with a fringe property.
12811 2004-09-27 Kim F. Storm <storm@cua.dk>
12813 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
12814 Doc fix. Format may now be a symbol or alist, not a cons.
12816 * fringe.c (update_window_fringes): Handle new formats of
12817 indicate-buffer-boundaries (symbol or alist). No longer
12818 allow a simple cons.
12819 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
12821 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12823 * config.in: Rebuild.
12825 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12827 * config.in: Rebuild.
12829 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
12831 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
12833 * xterm.c (x_term_init): Work around a bug in some X servers.
12835 2004-09-18 Richard M. Stallman <rms@gnu.org>
12837 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
12839 * xdisp.c (try_window_reusing_current_matrix):
12840 Handle the case where we reach the old displayed text,
12841 out of sync with the old line boundary.
12843 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
12845 * fileio.c (Finsert_file_contents): Fix case of replacement in a
12848 2004-09-14 Kim F. Storm <storm@cua.dk>
12850 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
12852 * xfaces.c (Qface_no_inherit): New var.
12853 (syms_of_xfaces): Intern and staticpro it.
12854 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
12855 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
12856 Don't increment face_change_count when face has non-nil
12857 face-no-inherit property.
12859 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
12861 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
12862 (Fbyte_code): Remove dead code after `wrong_type_argument'.
12864 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
12865 before doing the mark_stack_check_gcpros since they're not on the stack.
12867 2004-09-12 Kim F. Storm <storm@cua.dk>
12869 * editfns.c (Fformat): Handle format strings with multiple text
12870 properties. Reverse text property list from the format string,
12871 so the positions are in increasing order.
12873 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12875 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
12876 x_uncatch_errors so that possible protocol errors are delivered.
12878 2004-09-10 Eli Zaretskii <eliz@gnu.org>
12880 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12882 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12883 charset.h, and coding.h
12884 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
12885 (term.o): Depend on window.h and keymap.h.
12886 (abbrev.o): Depend on syntax.h.
12887 (callint.o): Depend on keymap.h.
12888 (casefiddle.o): Depend on charset.h and keymap.h.
12889 (category.o): Depend on keymap.h.
12890 (coding.o): Depend on dispextern.h.
12891 (cmds.o): Depend on keyboard.h and keymap.h.
12892 (dispnew.o): Depend on indent.h and intervals.h.
12893 (doc.o): Depend on keymap.h.
12894 (editfns.o): Depend on frame.h.
12895 (emacs.o): Depend on dispextern.h.
12896 (fileio.o): Don't depend on ccl.h.
12897 (filelock.o): Depend on charset.h and coding.h.
12898 (frame.o): Depend on w32term.h and macterm.h.
12899 (insdel.o): Depend on region-cache.h.
12900 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
12901 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
12902 (search.o): Depend on $(INTERVALS_SRC).
12903 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
12904 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
12905 xterm.h, w32term.h, and macterm.h.
12906 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
12907 w32term.h, and macterm.h.
12908 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
12909 region-cache.h, xterm.h, w32term.h, and macterm.h.
12910 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
12911 (data.o): Depend on frame.h.
12912 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
12913 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
12914 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
12915 (intervals.o): Depend on keymap.h.
12917 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
12918 Add debugging print-out to termscript.
12920 2004-09-09 Richard M. Stallman <rms@gnu.org>
12922 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
12924 2004-09-08 Richard M. Stallman <rms@gnu.org>
12926 * window.c (Fset_window_buffer): Doc fix.
12928 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
12930 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
12932 * minibuf.c (history_delete_duplicates): New variable.
12933 (read_minibuf): Use it.
12934 (syms_of_minibuf): Create the corresponding lisp variable.
12936 2004-09-08 Kim F. Storm <storm@cua.dk>
12938 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
12939 overlay just before point.
12941 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
12943 * buffer.h (struct buffer): Add auto_save_file_format field.
12944 * buffer.c (reset_buffer, init_buffer_once):
12945 Handle auto_save_file_format field.
12946 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
12947 `buffer-auto-save-file-format'.
12948 * fileio.c: Delete declaration for removed Vauto_save_file_format.
12949 (build_annotations): Adapt to replacement of
12950 `auto-save-file-format' with the new buffer-local variable
12951 `buffer-auto-save-file-format'.
12952 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
12954 2004-09-07 Jason Rumney <jasonr@gnu.org>
12956 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
12958 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
12959 Handle Unicode menu titles.
12961 2004-09-07 Kim F. Storm <storm@cua.dk>
12963 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
12964 property from text property or overlay strings at point.
12966 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12968 * xmenu.c (update_submenu_strings): YAILOM.
12969 (set_frame_menubar): Make sure last_i is initialized.
12971 2004-09-03 Jason Rumney <jasonr@gnu.org>
12973 * w32menu.c (_widget_value): Add lname and lkey.
12974 (digest_single_submenu): Set lname and lkey in widget_value
12975 instead of name and key.
12976 (update_submenu_strings): New function.
12977 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12978 call update_submenu_strings.
12980 * w32menu.c (globals_of_w32menu): Check for Unicode API.
12981 (digest_single_submenu, w32_menu_show): Encode menu strings as
12982 UTF-8 if Unicode API is available.
12983 (utf8to16): New function.
12984 (add_menu_item): Use it when calling Unicode API.
12986 2004-09-03 Kim F. Storm <storm@cua.dk>
12988 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
12989 in overlay or text-property strings; set cursor on corresponding
12990 glyph rather than at end of the string.
12992 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12994 * macfns.c (x_real_positions): Save the current window port and
12995 set a new one before obtaining the global coordinate.
12996 Use FRAME_MAC_WINDOW.
12997 (x_set_name, x_set_title): Encode title to UTF8.
12998 Use SetWindowTitleWithCFString.
12999 (Fx_server_version): Get correct OS version.
13001 * macmenu.c (add_menu_item): Remove unused variable `i'.
13002 Don't let separator items destroy refence constants of other menu items.
13004 * macterm.c (x_update_end): Move SetPortWindowPort to inside
13006 (x_set_offset): Use FRAME_MAC_WINDOW.
13008 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
13009 nontext_cursor if it is on a scroll bar.
13011 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
13013 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
13016 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13018 * xfns.c (x_set_name_internal): New function. Check if we shall call
13019 xfree before ENCODE_UTF_8.
13020 (x_set_name, x_set_title): Call x_set_name_internal.
13022 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
13024 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
13027 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13029 * macmenu.c (_widget_value): Add lname and lkey.
13030 (single_submenu): Set lname and lkey in widget_value
13031 instead of name and key.
13032 (update_submenu_strings): New function.
13033 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13034 call update_submenu_strings.
13036 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
13037 instead of name and key.
13038 (update_submenu_strings): New function.
13039 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13040 call update_submenu_strings.
13042 * gtkutil.h (_widget_value): Added lname and lkey.
13044 2004-08-30 Steven Tamm <steventamm@mac.com>
13046 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
13047 by using different names for inner loop variables.
13049 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13051 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
13052 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
13054 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
13055 tool bar items is 0.
13057 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13059 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
13060 strings in menu items.
13061 (single_submenu): Use ENCODE_MENU_STRING
13062 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
13063 button release isn't passed to event loop
13064 (add_menu_item): Use SetMenuItemWithCFString
13066 2004-08-26 Steven Tamm <steventamm@mac.com>
13068 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
13069 tool-bar/menu click.
13070 * macfns.c (Fx_file_dialog): Implement using NavServices.
13072 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13074 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
13076 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13077 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13078 (x_top_window_to_frame): Return 0 if wdesc is None.
13080 2004-08-22 Richard M. Stallman <rms@gnu.org>
13082 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
13083 HAVE_TERMIOS]: If there's no char for this signal, drop through
13084 and use system calls.
13086 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
13088 2004-08-20 Kim F. Storm <storm@cua.dk>
13090 * process.c (wait_reading_process_output): Rename from
13091 wait_reading_process_input. All uses changed.
13092 (wait_reading_process_output_1): Rename from
13093 wait_reading_process_input_1. All uses changed.
13095 * dispnew.c (Fsleep_for): Remove obsolete code.
13097 2004-08-20 Kenichi Handa <handa@m17n.org>
13099 * syntax.c (skip_chars): Fix for unibyte case.
13101 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13103 * syntax.c (char_quoted): Mixup byte/char pos.
13104 (back_comment): Fixup globals in all cases.
13106 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13108 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
13109 passing it to gtk_window_set_title.
13111 2004-08-19 Kim F. Storm <storm@cua.dk>
13113 * process.c (wait_reading_process_input): Clean up.
13114 Add wait_for_cell, wait_proc, and just_wait_proc args
13115 to avoid overloading `read_kbd' and `do_display' args.
13116 Change read_kbd arg to int. All callers changed.
13118 * process.c (process_send_signal): Use CDISABLE.
13120 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
13122 2004-08-18 Kim F. Storm <storm@cua.dk>
13124 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
13125 forward to wait_reading_process_input via DO_DISPLAY arg.
13126 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
13127 object, only process output from that process; also inhibit
13128 running timers if DO_DISPLAY==-2.
13130 2004-08-17 Kim F. Storm <storm@cua.dk>
13132 * process.c (process_send_signal): Fix last change--use
13133 _POSIX_VDISABLE instead of CVDISABLE when available.
13135 2004-08-16 Richard M. Stallman <rms@gnu.org>
13137 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
13138 Set VQUIT and VINTR chars to the standard ones if they are unset.
13139 [AIX]: Don't do that here. And don't force VINTR to standard
13140 when SIGNALS_VIA_CHARACTERS.
13142 * process.c (process_send_signal)
13143 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
13144 Do nothing if the character is CVDISABLE.
13146 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
13148 * intervals.c (move_if_not_intangible):
13149 Force POSITION to be between BEGV and ZV.
13151 2004-08-14 John Paul Wallington <jpw@gnu.org>
13153 * buffer.c (Frestore_buffer_modified_p): Doc fix.
13155 * fileio.c (Fread_file_name): Doc fix.
13157 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13159 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
13161 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
13163 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
13165 * keyboard.c: Declare Qdisabled_command_function instead of
13166 Qdisabled_command_hook.
13167 (Fcommand_execute): Use Qdisabled_command_function instead of
13168 Qdisabled_command_hook.
13169 (syms_of_keyboard): Ditto.
13171 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
13173 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
13174 (syms_of_keymap) <key-translation-map>: Doc fixes.
13176 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
13178 * window.c (window_list_1): YAILOM.
13180 * fileio.c (make_temp_name): Handle multibyte prefixes.
13182 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
13184 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
13187 2004-08-03 Kenichi Handa <handa@m17n.org>
13189 * coding.c (decode_coding_string): Adjust coding->consumed, and
13190 etc. with shrinked_bytes.
13192 2004-08-03 Kim F. Storm <storm@cua.dk>
13194 * indent.c (compute_motion): Fix check for full width window
13195 in non-window case. Do not count left truncation glyph on
13198 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
13200 * data.c (Finteractive_form): Doc fix.
13202 2004-08-02 Kim F. Storm <storm@cua.dk>
13204 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
13205 properly accounting for continuation glyph on non-window systems.
13206 (Fcompute_motion): Use actual window width if WIDTH is nil, and
13207 actual window width/height if TOPOS is nil, properly accounting for
13208 continuation glyphs on non-window systems, and optional header lines.
13209 (vmotion): Let compute_motion calculate actual window width.
13211 * window.c (window_scroll_line_based): Let compute_motion
13212 calculate actual window width.
13214 2004-08-02 Kim F. Storm <storm@cua.dk>
13216 * process.c (read_process_output): Use whole read buffer.
13217 Don't trigger adaptive read buffering on errors.
13219 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
13221 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
13223 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
13225 * callint.c (Fcall_interactively): Doc fix.
13227 2004-07-30 Richard M. Stallman <rms@gnu.org>
13229 * abbrev.c (Fexpand_abbrev): Undo previous change.
13231 2004-07-30 Kim F. Storm <storm@cua.dk>
13233 * editfns.c (Fformat): Allocate extra (dummy) element in info.
13235 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
13237 * eval.c (Fdefvar, Fdefconst): Doc fixes.
13239 2004-07-27 Kim F. Storm <storm@cua.dk>
13241 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
13242 we have ensured that the glyph fits on the current line (or returned
13243 MOVE_LINE_CONTINUED otherwise).
13245 2004-07-26 Kim F. Storm <storm@cua.dk>
13247 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
13248 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
13249 if target position is at end of display line but char is not a newline.
13251 2004-07-25 Richard M. Stallman <rms@gnu.org>
13253 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
13254 instead of ON_VERTICAL_BORDER, when on scroll bar.
13255 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
13257 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
13259 * window.c (Fcoordinates_in_window_p):
13260 Take account of FRAME_INTERNAL_BORDER_WIDTH.
13262 * alloc.c (check_cons_list): New function (contents commented out).
13264 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
13266 * xfaces.c (Fcolor_supported_p): Doc fix.
13268 * frame.c (Fselect_frame, Fset_frame_selected_window)
13269 (Fframe_visible_p, Fraise_frame): Doc fixes.
13271 2004-07-24 Richard M. Stallman <rms@gnu.org>
13273 * keyboard.h (not_single_kboard_state): Declare.
13275 * fileio.c (Fwrite_region): Doc fix.
13277 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
13279 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
13280 only when a real abbrev is present.
13282 * xfns.c (x_icon_verify): New function.
13283 (Fx_create_frame): Use it.
13285 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
13287 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
13289 2004-07-21 Kim F. Storm <storm@cua.dk>
13291 * window.h (struct glyph_matrix): New members nrows_scale_factor
13292 and ncols_scale_factor.
13294 * window.c (make_window): Initialize nrows_scale_factor and
13295 ncols_scale_factor members.
13297 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
13298 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
13299 (required_matrix_height): Apply nrows_scale_factor.
13300 (required_matrix_width): Apply ncols_scale_factor.
13302 * xdisp.c (display_line): Increment nrows_scale_factor and set
13303 fonts_changed_p if past last allocated row.
13304 (append_glyph, append_composite_glyph, produce_image_glyph)
13305 (append_stretch_glyph): Increment ncols_scale_factor and set
13306 fonts_changed_p if current area is full.
13308 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13310 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
13312 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
13314 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
13315 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
13316 (Fset_window_start, Fscroll_up, Fscroll_down)
13317 (Fother_window_for_scrolling, Fscroll_other_window)
13318 (Fsave_window_excursion, Fset_window_vscroll)
13319 (syms_of_window) <window-size-fixed>: Doc fixes.
13321 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13323 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
13324 ENCODE_SYSTEM for filenames.
13326 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13328 * mac.c (sys_select): Block input around call to
13329 ReceiveNextEvent to prevent breakage. Correctly handle
13330 blocking on event queue only by calling ReceiveNextEvent
13331 instead of select (since GUI events aren't on an fd).
13332 (sys_read): Remove function
13333 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
13335 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13337 * mac.c (sys_select): Redo sys_select to use alarm-based
13338 polling instead of 1 sec timeouts (like solaris).
13340 * macterm.c (x_make_frame_visible): Comment in polling on
13343 * keyboard.c: Undef SIGIO on Carbon
13345 * atimer.c (alarm_signal_handler): Call alarm handlers after
13348 * eval.c (Feval): Remove quit_char test
13350 * process.c (wait_reading_process_input): Remove clearing
13351 stdin for select call on process input.
13353 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
13355 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
13356 capitalization error in docstring.
13358 2004-07-17 Juanma Barranquero <lektu@terra.es>
13360 * keyboard.c (not_single_kboard_state): Do nothing unless
13361 MULTI_KBOARD is defined.
13363 2004-07-17 Richard M. Stallman <rms@gnu.org>
13365 * window.c (coordinates_in_window): Inside the window but outside
13366 its box to the L or R, return ON_VERTICAL_BORDER.
13367 (window_list_1): Rotate the list to start with WINDOW.
13369 * print.c (print_preprocess): Test for print_depth at limit
13370 before entering in being_printed.
13372 * keyboard.c (not_single_kboard_state): New function.
13373 (stuff_buffered_input): Now no-op only if no SIGTSTP.
13375 * frame.c (Fdelete_frame): If we're in single_bboard_state on
13376 this kboard, and we delete its last frame, go to any_kboard_state.
13378 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
13380 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13382 * w32fns.c (Fx_file_dialog): Encode strings in system coding
13383 system before passing them to OS functions for display.
13385 2004-07-15 David Kastrup <dak@gnu.org>
13387 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
13388 Apparently fixes an abort condition.
13390 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
13392 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
13395 2004-07-14 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
13397 * keyboard.c (echo_dash): Do nothing if there already is a dash
13398 at the end of the echo string.
13400 2004-07-12 Kim F. Storm <storm@cua.dk>
13402 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
13405 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
13407 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
13409 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
13410 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
13411 (Freplace_buffer_in_windows, Fset_window_buffer)
13412 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
13413 (syms_of_window): Expand docstring of `display-buffer-function'.
13415 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
13417 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
13418 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
13419 that time values of the type (HIGH . LOW) are considered obsolete.
13421 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
13423 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
13426 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
13428 2004-07-06 John Paul Wallington <jpw@gnu.org>
13430 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
13432 * fns.c (Fclear_string): Signal an error if STRING is not a string.
13434 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13436 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
13437 instead of CGMainDisplayID (only in OSX 10.2 and later).
13439 2004-07-04 John Paul Wallington <jpw@gnu.org>
13441 * fileio.c (read_file_name_completion_ignore_case): New variable.
13442 (syms_of_fileio): Declare and initialise it.
13443 (Fread_file_name): Bind `completion-ignore-case' to respect it.
13445 2004-07-03 Eli Zaretskii <eliz@gnu.org>
13447 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
13448 for event.x and event.y.
13450 2004-07-01 Kenichi Handa <handa@m17n.org>
13452 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
13453 after getting a new string by pre-write-conversion.
13455 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
13457 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
13458 (x_calc_absolute_position): Remove unused var `child'.
13460 * xfaces.c (x_supports_face_attributes_p)
13461 (Fdisplay_supports_face_attributes_p): YAILOM.
13462 (tty_supports_face_attributes_p): Remove unused var `i'.
13464 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
13467 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
13469 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
13472 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
13474 2004-06-30 Andreas Schwab <schwab@suse.de>
13476 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
13477 (Finit_image_library): Pass LIBRARIES through to
13478 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
13479 (lookup_image_type): Pass Qnil as second argument to
13480 Finit_image_library.
13482 * lisp.h (Finit_image_library): Declare.
13484 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13486 * macterm.c (do_window_activate, do_window_deactivate): Remove.
13487 (XTread_socket): Send mouse button events to the toolbox
13488 dispatcher even when the mouse is grabbed. Don't process window
13489 activate events for non-Emacs windows. Replace function calls to
13490 do_window_activate and do_window_deactivate with their contents.
13491 Reset mouse grabbing status when a window is deactivated.
13493 2004-06-29 Steven Tamm <steventamm@mac.com>
13495 * macterm.c (mac_get_emulated_btn)
13496 (mac_event_to_emacs_modifiers): Fix emulated mouse button
13497 support to correctly mask out modifiers.
13499 2004-06-29 David Kastrup <dak@gnu.org>
13501 * search.c (Fset_match_data): Allow buffer before end of list
13502 which can happen if set-match-data is using a pre-consed list.
13504 2004-06-28 Steven Tamm <steventamm@mac.com>
13506 * macterm.c (XTread_socket): Correctly set the frame position
13507 after the window is moved.
13509 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13511 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
13512 gpix and gmask just before return to avoid memory leak.
13513 (xg_get_image_for_pixmap): Add workaround for monochrome displays
13514 so insensitive and activated icons look ok.
13516 2004-06-27 Jason Rumney <jasonr@gnu.org>
13518 * w32fns.c (file_dialog_callback): Disable edit control if set
13519 to directories only on CDN_INITDONE message.
13520 (Fx_file_dialog): Default to directories only when prompt starts
13523 2004-06-25 Kim F. Storm <storm@cua.dk>
13525 * alloc.c (allocate_misc): Update total_free_markers.
13526 (free_misc): New function.
13527 (safe_alloca_unwind, free_marker): Use it.
13529 * lisp.h (free_misc): Add prototype.
13531 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
13533 2004-06-24 Richard M. Stallman <rms@gnu.org>
13535 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
13536 (syms_of_emacs): Lisp variables deleted.
13538 2004-06-23 David Kastrup <dak@gnu.org>
13540 * search.c (Freplace_match): Adjust the match-data more thoroughly
13541 when replacing strings in the buffer.
13542 (Fmatch_data): When INTEGERS is non-nil and the last match was in
13543 a buffer, add the buffer as last element to the match data.
13544 (Fset_match_data): If an additional element of the match-data is a
13545 buffer, restore it to last_thing_searched.
13546 (save_search_regs): Save last_thing_searched as part of the match data.
13547 (restore_match_data): Restore it again.
13549 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
13551 * keymap.c (Ftext_char_description): Doc fix.
13552 * doc.c (Fsnarf_documentation): Doc fix.
13554 2004-06-22 Kim F. Storm <storm@cua.dk>
13556 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
13558 * lisp.h (struct Lisp_Save_Value): New member dogc.
13559 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
13560 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
13561 (SAFE_FREE_LISP): New macro.
13563 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
13564 (make_save_value): Init new dogc member.
13565 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
13567 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
13568 SAFE_FREE_LISP macros.
13570 2004-06-22 Kim F. Storm <storm@cua.dk>
13572 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
13573 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
13574 in that memory area are unknown to GC. Add comments.
13576 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
13578 2004-06-21 Kim F. Storm <storm@cua.dk>
13580 * lisp.h (MAX_ALLOCA): Define here.
13581 (safe_alloca_unwind): Add prototype.
13582 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
13584 * alloc.c (safe_alloca_unwind): New function.
13586 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
13588 * charset.c (Fstring): Use SAFE_ALLOCA.
13590 * coding.c (MAX_ALLOCA): Remove define.
13592 * data.c (MAX_ALLOCA): Remove define.
13593 (Faset): Use SAFE_ALLOCA.
13595 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
13597 * fns.c (string_make_multibyte, string_to_multibyte)
13598 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
13599 (MAX_ALLOCA): Remove define.
13600 (Fbase64_encode_region, Fbase64_encode_string)
13601 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
13602 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
13603 memory leak if encoding fails.
13605 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
13607 2004-06-21 Eli Zaretskii <eliz@gnu.org>
13609 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13611 2004-06-20 Richard M. Stallman <rms@gnu.org>
13613 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
13615 * search.c (match_limit): Cleaner err msg when no match data available.
13617 * window.c (syms_of_window): Doc fix.
13619 * keyboard.c (command_loop_1): Handle values `only' and `identity'
13620 for Vtransient_mark_mode.
13622 * buffer.c (syms_of_buffer): Doc fix.
13624 2004-06-21 David Kastrup <dak@gnu.org>
13626 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
13627 and unbinding of `case-fold-search' according to
13628 `completion-ignore-case' around calls of string-match and
13629 predicates, respectively. Should give satisfactory performance
13630 in all relevant cases.
13632 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13634 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
13637 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
13639 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
13641 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
13644 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
13646 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
13648 2004-06-16 Kim F. Storm <storm@cua.dk>
13650 * dispextern.h (Vimage_types): Remove extern.
13652 2004-06-16 Miles Bader <miles@gnu.org>
13654 * image.c (lookup_image_type): Initialize image type if necessary.
13656 2004-06-15 Kim F. Storm <storm@cua.dk>
13658 * xdisp.c (try_cursor_movement): Exclude header line from scroll
13659 margin at top of window.
13660 (try_window_reusing_current_matrix): Calculate proper cursor position
13661 after scrolling up with non-zero scroll margin, as the old cursor
13662 position corresponds to value of PT before executing this command.
13663 (try_window_id): Consider scroll margin at bottom of window too;
13664 otherwise we fail to scroll when hl-line-mode is enabled.
13666 * syntax.c (skip_chars): Only recognize [:class:] when it has the
13667 proper format and class is a lower-case word.
13669 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13671 * gtkutil.c (xg_get_image_for_pixmap): New function.
13672 (xg_get_gdk_pixmap_and_mask): Remove.
13673 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
13674 xg_get_gdk_pixmap_and_mask.
13676 * xterm.h (struct x_display_info): Typo in comment fixed.
13678 2004-06-14 Juanma Barranquero <lektu@terra.es>
13680 * dispextern.h (Vimage_types): Make it conditional on
13681 HAVE_WINDOW_SYSTEM.
13683 * image.c (Vimage_types): Move from xdisp.c.
13684 (Vimage_type_cache): New variable.
13685 (define_image_type): New argument indicating whether an image
13686 library was loaded; cache loaded status and return t on success,
13688 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
13689 (w32_delayed_load): New function to load an image library from a
13690 list of possible filenames.
13691 (init_xpm_functions, init_png_functions, init_jpeg_functions)
13692 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
13693 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
13694 (Finit_image_library): New function, extracted from `init_image'.
13695 Try to initialize an image library on demand and cache whether we
13696 were successful or not.
13697 (syms_of_image): Initialize `Vimage_types' and
13698 `Vimage_type_cache'. Add recognized image types to Vimage_types.
13699 Export `init-image-library'.
13700 (init_image): Remove initialization of all image types, except xbm
13703 * xdisp.c (Vimage_types): Delete (moved to image.c).
13705 2004-06-14 Andreas Schwab <schwab@suse.de>
13707 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13708 Avoid calling specbind when completion-regexp-list is empty.
13710 2004-06-13 Richard M. Stallman <rms@gnu.org>
13712 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13713 (re_wctype, re_iswctype, re_wctype_to_bit):
13714 Non-function definitions moved here from regex.c.
13716 * regex.c (re_wctype, re_iswctype): Function defs longer static.
13717 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13718 (re_wctype, re_iswctype, re_wctype_to_bit):
13719 Non-function definitions moved to regex.h.
13721 * window.c (Fselect_window): Doc fix.
13723 * syntax.c: Include regex.h.
13724 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
13725 If requested, make a list of classes, then check the scanned
13726 chars for membership in them.
13727 (in_classes): New function.
13730 * keyboard.c (cmd_error): Don't call any_kboard_state
13731 if inside a recursive edit level.
13733 2004-06-13 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
13735 * keyboard.c (command_loop): Call any_kboard_state before
13736 command_loop_2 when at top level.
13738 2004-06-13 Andreas Schwab <schwab@suse.de>
13740 * print.c (print_object): Always use %ld for printing EMACS_INT.
13742 * keyboard.c (cancel_hourglass_unwind): Return a value.
13743 (modify_event_symbol): Always use %ld for printing EMACS_INT.
13744 (Fexecute_extended_command): Likewise.
13746 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
13748 (SYNTAX): Likewise.
13749 (SYNTAX_WITH_FLAGS): Likewise.
13750 (SYNTAX_MATCH): Likewise.
13752 * syntax.c (char_quoted): Avoid warning about undefined operation.
13753 (find_defun_start): Likewise.
13754 (scan_lists): Likewise.
13755 (INC_FROM): Likewise.
13756 (scan_sexps_forward): Likewise.
13758 * image.c: Include <ctype.h>.
13760 * xfaces.c (face_attr_equal_p): Declare parameters.
13762 2004-06-13 Kenichi Handa <handa@m17n.org>
13764 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
13766 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
13768 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
13770 2004-06-12 Kenichi Handa <handa@m17n.org>
13772 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
13773 ccl_prog_stack_struct and update it.
13774 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
13775 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
13776 ccl->eof_ic on EOF.
13777 (ccl_debug_hook): New function.
13778 (struct ccl_prog_stack): New member eof_ic.
13779 (ccl_driver): Handle EOF in subrountine call correctly.
13781 2004-06-11 Kenichi Handa <handa@m17n.org>
13783 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
13785 2004-06-11 Kim F. Storm <storm@cua.dk>
13787 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
13789 2004-06-11 Juanma Barranquero <lektu@terra.es>
13791 * keyboard.c (Fposn_at_point): Doc fix.
13793 2004-06-11 David Kastrup <dak@gnu.org>
13795 * search.c (match_limit): Don't flag an error if match-data
13796 exceeding the allocated search_regs.num_regs gets requested, just
13799 2004-06-08 Miles Bader <miles@gnu.org>
13801 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
13803 2004-06-07 Juanma Barranquero <lektu@terra.es>
13805 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
13806 (Fcurrent_time_string, Fcurrent_time_zone)
13807 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
13809 2004-06-07 Miles Bader <miles@gnu.org>
13811 * xfaces.c (struct named_merge_point): New type.
13812 (push_named_merge_point): New function.
13813 (merge_named_face): New function.
13814 (merge_face_ref, face_at_buffer_position, face_at_string_position):
13815 Use `merge_named_face'.
13816 (merge_face_inheritance): Function removed.
13817 (merge_face_ref): Rename from `merge_face_vector_with_property'.
13818 Add new `err_msgs' and `named_merge_points' args. Return error
13819 status. Only print error messages if ERR_MSGS is true. Don't try to
13820 do :inherit attribute validation.
13821 (merge_face_heights): Handle `unspecified' in both directions.
13822 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
13823 Call `merge_face_ref' instead of `merge_face_inheritance'.
13824 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
13825 (compute_char_face, face_at_buffer_position)
13826 (face_at_string_position): Call `merge_face_ref' instead of
13827 `merge_face_vector_with_property'.
13829 2004-06-07 Kenichi Handa <handa@m17n.org>
13831 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
13832 the necessary places.
13834 2004-06-07 Kim F. Storm <storm@cua.dk>
13836 * process.c (Fdelete_process): Undo 2004-05-28 change.
13837 Instead, call status_notify also for network process.
13838 (status_message): Use process instead of status as arg.
13839 Give messages "deleted" or "connection broken by remote peer" for
13840 an exited network process.
13841 (status_notify): Change call to status_message.
13842 (read_process_output): Increase readmax to 4096. Do not increase
13843 buffer size for datagram channels (default is now large enough).
13845 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13847 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
13848 problem due to newly defined variable.
13850 2004-06-06 Miles Bader <miles@gnu.org>
13852 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
13853 immediately if non-interactive or not initialized.
13855 2004-06-05 Richard M. Stallman <rms@gnu.org>
13857 * minibuf.c (Fcompleting_read): Doc fix.
13859 2004-06-05 Andreas Schwab <schwab@suse.de>
13861 * macfns.c (x_create_tip_frame): Fix declaration after statement.
13863 2004-06-05 Juanma Barranquero <lektu@terra.es>
13865 * keymap.c (Fdescribe_vector): Fix docstring.
13866 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
13868 2004-06-05 Miles Bader <miles@gnu.org>
13870 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
13871 attributes have different values than the default face.
13873 2004-06-04 Eli Zaretskii <eliz@gnu.org>
13875 * xfaces.c (x_supports_face_attributes_p): Make this function
13876 conditional on HAVE_WINDOW_SYSTEM.
13877 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
13878 Don't call x_supports_face_attributes_p if it was not compiled in.
13880 2004-06-04 Miles Bader <miles@gnu.org>
13882 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
13883 from Ftty_supports_face_attributes_p.
13884 (x_supports_face_attributes_p): New function.
13885 (Ftty_supports_face_attributes_p): Function deleted.
13886 (Fdisplay_supports_face_attributes_p): New function.
13887 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
13888 (face_attr_equal_p): New function.
13889 (lface_equal_p): Use it.
13891 2004-06-03 Juanma Barranquero <lektu@terra.es>
13893 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
13894 (Vw32_color_map): Fix typo in docstring.
13895 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
13896 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
13897 Make argument names match their use in docstring.
13899 2004-06-02 Juanma Barranquero <lektu@terra.es>
13901 Work around bugs/problems with MinGW builds of graphics libraries
13902 called from MSVC builds of Emacs.
13904 * image.c (lookup_image): Make pointer to img static.
13905 (png_read_from_memory): Disable "global" optimization.
13907 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
13909 * eval.c (Fcondition_case): Fix usage. Simplify.
13911 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
13913 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13915 * macfns.c: Don't include ccl.h.
13916 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
13917 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
13919 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
13920 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
13921 display height/width.
13922 (compute_tip_xy, Vx_max_tooltip_size): Declare.
13923 (unwind_create_tip_frame, compute_tip_xy): New functions.
13924 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
13925 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
13926 and last_show_tip_args.
13928 * macgui.h [!MAC_OSX]: Include Gestalt.h.
13929 (Cursor, No_Cursor): New defines.
13930 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
13931 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
13933 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
13935 * macterm.c: Don't include Gestalt.h.
13936 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
13937 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
13938 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
13939 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
13940 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
13941 (construct_mouse_click, XTmouse_position)
13942 (x_scroll_bar_report_motion, x_calc_absolute_position)
13943 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
13944 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
13945 (note_mouse_movement): Clear the mouse face and reset the pointer
13946 shape when the pointer goes outside the frame without grabbing.
13947 (mac_front_window): New function.
13948 (mac_window_to_frame): New macro.
13949 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
13950 (do_window_activate, do_window_deactivate, do_app_resume)
13951 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
13952 (do_zoom_window, mac_do_receive_drag, XTread_socket)
13953 (mac_check_for_quit_char): Use mac_front_window and/or
13954 mac_window_to_frame.
13955 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
13956 scroll-bar click event.
13957 (mac_define_frame_cursor): Change the pointer shape.
13958 (x_free_frame_resources): Reset tip_window to NULL when it is
13960 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
13961 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
13962 (do_window_update): Don't do anything if the updated window is the
13964 (do_mouse_moved): Handle mouse movement events here (previously in
13965 XTread_socket). Clear the mouse face if
13966 dpyinfo->mouse_face_hidden is set.
13967 (do_os_event, do_events): Remove (now in XTread_socket).
13968 (XTread_socket): Immediately return if interrupt_input_blocked.
13969 Loop until all the events in the queue are processed.
13970 Rearrange codes for mouse grabbing. Add tooltip support. Include the
13971 contents of do_os_event and do_events. Remove mouse movement
13972 handling (now in do_mouse_moved). Add the case where
13973 Vmouse_highlight has an integer value.
13974 (NewMacWindow): Remove.
13975 (make_mac_frame): Do what NewMacWindow previously did. Don't do
13976 excess initializations.
13977 (make_mac_terminal_frame): Previous initializations in
13978 make_mac_frame are moved here.
13979 (mac_initialize_display_info):
13980 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
13982 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
13983 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
13985 2004-05-29 Richard M. Stallman <rms@gnu.org>
13987 * lisp.h (truncate_undo_list): Update decl.
13989 * alloc.c (undo_outer_limit): New variable.
13990 (syms_of_alloc): Defvar it.
13991 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
13993 * undo.c (truncate_undo_list): New arg LIMITSIZE.
13995 * alloc.c (lisp_align_malloc): Check for base == 0
13996 regardless of HAVE_POSIX_MEMALIGN.
13997 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13999 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14001 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
14002 (marker_blocks_pending_free): Remove.
14003 (Fgarbage_collect): Sweep after cleaning up undo-lists.
14004 Mark the undo lists after claning them up.
14005 Don't free block in marker_blocks_pending_free.
14006 (mark_buffer): Don't mark undo_list.
14007 (gc_sweep): Sweep hash-tables and strings first.
14008 Do free marker blocks that are empty.
14010 2004-05-28 Jim Blandy <jimb@redhat.com>
14012 * regex.c (print_partial_compiled_pattern): Add missing 'break'
14013 after 'case wordend'. For symbeg and symend, print to stderr,
14014 like the other cases.
14016 2004-05-28 Noah Friedman <friedman@splode.com>
14018 * process.c (Fdelete_process): Do not call remove_process.
14020 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14022 * alloc.c (struct backtrace): Remove.
14023 (Fgarbage_collect): Use the new mark_backtrace.
14025 * eval.c (mark_backtrace): New function.
14027 * minibuf.c (run_exit_minibuf_hook): New function.
14028 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
14029 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
14031 2004-05-27 Kim F. Storm <storm@cua.dk>
14033 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
14034 over display properties, e.g. images, that replace buffer text.
14036 2004-05-25 Kim F. Storm <storm@cua.dk>
14038 * alloc.c (marker_blocks_pending_free): New var.
14039 (gc_sweep): Store free marker blocks on that list.
14040 (Fgarbage_collect): Free them after undo-list cleanup.
14042 * process.c (wait_reading_process_input): Check connect_wait_mask
14043 before actually accepting connection in case it has already been
14044 accepted due to recursion.
14046 2004-05-23 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
14048 * coding.c (Fset_safe_terminal_coding_system_internal):
14049 Set suppress_error in safe_terminal_coding, not terminal_coding.
14051 2004-05-22 Richard M. Stallman <rms@gnu.org>
14053 * alloc.c (Fmake_string): Doc fix.
14055 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
14056 and the alist pairs too.
14058 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
14060 * emacs.c (main): Update copyright year.
14062 * fileio.c (Fread_file_name): Expand DIR if not absolute.
14064 * insdel.c (del_range_2, replace_range): Don't write an anchor
14065 if the gap is empty.
14067 * xdisp.c (try_scrolling): If scroll-up-aggressively or
14068 scroll-down-aggressively is small but positive, put point
14069 near the screen edge.
14071 2004-05-22 Juanma Barranquero <lektu@terra.es>
14073 * keymap.c (Fdefine_key): Doc fix.
14075 2004-05-22 Kim F. Storm <storm@cua.dk>
14077 * alloc.c (struct backtrace): Add debug_on_exit member.
14078 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
14079 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
14080 the removed cons cells.
14081 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
14082 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
14083 any cons cells pointing to unallocated stings.
14084 Do not lisp_free any marker blocks, as there may still be pointers
14085 to them from buffer undo lists at this stage of GC.
14087 * keyboard.c (struct backtrace): Add debug_on_exit member.
14088 (Fcommand_execute): Clear it.
14090 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
14092 * intervals.c (lookup_char_property): Do not prematurely return nil.
14094 2004-05-19 Jim Blandy <jimb@redhat.com>
14096 Add support for new '\_<' and '\_>' regexp operators, matching the
14097 beginning and end of symbols.
14099 * regex.c (enum syntaxcode): Add Ssymbol.
14100 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
14101 (re_opcode_t): New opcodes `symbeg' and `symend'.
14102 (print_partial_compiled_pattern): Print the new opcodes properly.
14103 (regex_compile): Parse the new operators.
14104 (analyse_first): Skip sym(beg|end) (they match only the empty string).
14105 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
14106 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
14107 (re_match_2_internal): Match symbeg and symend.
14109 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
14111 2004-05-19 Kim F. Storm <storm@cua.dk>
14113 * .gdbinit (xsymbol): Fix last change.
14115 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
14117 * .gdbinit (xprintstr): New fun.
14118 (xstring, xprintsym): Use it.
14120 * w32proc.c (create_child): Use INTMASK.
14122 * alloc.c (Fgarbage_collect): Do all the marking before flushing
14123 unmarked elements of the undo list.
14125 2004-05-18 David Ponce <david@dponce.com>
14127 * print.c (print): Reset print_depth before to call print_object.
14129 2004-05-18 Jason Rumney <jasonr@gnu.org>
14131 * w32console.c: Prefix RIF functions with w32con_ to avoid
14132 namespace clash with functions in term.c and w32term.c.
14134 * w32menu.c (add_menu_item, w32_menu_display_help)
14135 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
14137 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
14139 2004-05-18 Eli Zaretskii <eliz@gnu.org>
14141 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
14143 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
14145 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
14148 2004-05-18 Kim F. Storm <storm@cua.dk>
14150 * blockinput.h (INPUT_BLOCKED_P): New macros.
14152 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
14153 (Ftop_level): Unblock input if blocked.
14155 * buffer.h (GET_OVERLAYS_AT): New macro.
14156 * msdos.c (IT_note_mouse_highlight): Use it.
14157 * textprop.c (get_char_property_and_overlay): Use it.
14158 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
14159 * xfaces.c (face_at_buffer_position): Use it.
14161 * print.c (print_object): Increase buf size.
14163 2004-05-17 Jason Rumney <jasonr@gnu.org>
14165 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
14166 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
14167 Lisp_Object using i member.
14168 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
14169 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
14172 * w32proc.c (create_child): Use make_number instead of masking pid.
14174 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
14175 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
14176 Use EQ to compare Lisp_Objects.
14177 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
14179 * w32term.c (w32_num_mouse_buttons): Rename from
14180 Vw32_num_mouse_buttons and make it an int.
14182 * w32.c (init_environment): Use it.
14184 * w32fns.c (w32_wnd_proc): Likewise.
14186 * w32proc.c (w32_pipe_read_delay): Rename from
14187 Vw32_pipe_read_delay and make it an int.
14189 * w32.c (_sys_read_ahead): Use it.
14191 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
14193 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
14195 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
14196 (key_event): Don't mix Lisp_Object and int.
14198 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
14200 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
14201 modifiers in language change event.
14203 2004-05-17 Kim F. Storm <storm@cua.dk>
14205 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
14206 Such objects may be freed markers which still exist on an undo list.
14208 2004-05-16 Juanma Barranquero <lektu@terra.es>
14210 * data.c (Fset_default): Make argument names match their use in
14213 2004-05-15 Andreas Schwab <schwab@suse.de>
14215 * emacs.c (gdb_array_mark_flag): Define.
14216 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
14218 2004-05-15 Eli Zaretskii <eliz@gnu.org>
14220 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
14221 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
14222 defined for the MS-DOS build.
14224 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
14226 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
14228 2004-05-14 Kenichi Handa <handa@m17n.org>
14230 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
14232 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14234 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
14235 section to frame.c section.
14236 (Fxw_display_color_p, Fx_file_dialog): Declare if
14237 HAVE_WINDOW_SYSTEM defined.
14239 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
14241 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
14243 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
14244 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
14245 (XTread_socket): Fix int/Lisp_Object mixup.
14246 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
14248 * macterm.h (struct frame, struct face, struct image)
14249 (display_x_get_resource, Fx_display_color_p)
14250 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
14253 2004-05-14 Kim F. Storm <storm@cua.dk>
14255 * process.c (wait_reading_process_input): Make reentrant.
14256 Make Available and Connecting non-static. Save and restore value
14257 of waiting_for_user_input_p.
14259 2004-05-13 Kim F. Storm <storm@cua.dk>
14261 * keyboard.c (mark_kboards): Don't mark x and y members
14262 that are overloaded in selection request events.
14264 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14266 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
14268 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
14270 * window.c (Fdisplay_buffer, Fsplit_window)
14271 (split-height-threshold): Doc fix.
14273 2004-05-13 Juanma Barranquero <lektu@terra.es>
14275 * xfaces.c (Ftty_supports_face_attributes_p)
14276 (Finternal_copy_lisp_face): Fix typo in docstring.
14277 (Finternal_get_lisp_face_attribute): Fix docstring.
14279 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14281 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
14283 2004-05-11 Steven Tamm <steventamm@mac.com>
14285 * macfns.c (Fx_create_frame): Default to using tool-bar by
14286 setting tool-bar-lines to 1 in default-frame-alist.
14288 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14290 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
14291 (xpm_get_color_table_v, xpm_make_color_table_h)
14292 (xpm_put_color_table_h, xpm_get_color_table_h)
14293 (xpm_str_to_color_key, xpm_load_image, xpm_load)
14294 (syms_of_image): Support XPM on Carbon Emacs. Does not
14295 depend on libXpm, but only supports XPM version 3 without extensions.
14297 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14299 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
14300 instead of FRAME_X_P
14302 2004-05-11 Kim F. Storm <storm@cua.dk>
14304 * process.c (read_process_output): Grow decoding_buf when needed;
14305 this could cause a crash in allocate_string and compact_small_strings.
14307 2004-04-29 Jim Blandy <jimb@redhat.com>
14309 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
14310 against proper opcode.
14312 2004-05-10 Juanma Barranquero <lektu@terra.es>
14314 * process.c (Fstart_process): Fix docstring.
14316 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
14317 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
14318 (Fsplit_char, Fchar_charset): Make argument names match their use
14321 2004-05-10 Richard M. Stallman <rms@gnu.org>
14323 * print.c (print_preprocess): Use being_printed, loop_count and
14324 halftail to detect overdeep nesting and cyclic cdr chains.
14326 2004-05-10 Andreas Schwab <schwab@suse.de>
14328 * lisp.h (Fmake_symbolic_link): Declare.
14330 * fileio.c (Frename_file): Remove extra argument in call to
14331 Fmake_symbolic_link.
14333 2004-05-10 Kim F. Storm <storm@cua.dk>
14335 * xdisp.c (calc_line_height_property): Use string position when
14336 object is a string.
14338 2004-05-10 Kenichi Handa <handa@m17n.org>
14340 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
14341 inhibit-modification-hooks to t temporarily before calling
14344 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
14345 inhibit-modification-hooks to t temporarily before calling
14348 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
14349 inhibit-modification-hooks to t temporarily before calling
14352 * fns.c (count_combining): Delete it.
14353 (concat): Don't check combining bytes.
14355 2004-05-09 Jason Rumney <jasonr@gnu.org>
14357 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
14358 (globals_of_w32fns): Set it.
14360 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
14362 * data.c (Fquo): Simplify.
14364 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
14366 * data.c (Fquo): If any argument is float, do the computation in
14369 2004-05-08 Juanma Barranquero <lektu@terra.es>
14371 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
14372 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
14373 Fix spelling of Emacs on docstring.
14374 (Fset_process_coding_system, Fprocess_coding_system)
14375 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
14376 Make argument names match their use in docstring.
14377 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
14380 * editfns.c (Finsert_buffer_substring): Make argument names match their
14383 * syntax.c (Fmodify_syntax_entry): Fix docstring.
14385 2004-05-07 Steven Tamm <steventamm@mac.com>
14387 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
14388 around call to ReceiveEvent to avoid certain crashes.
14390 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14392 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
14393 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
14394 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
14395 Save/restore the current graphics port and device handle when
14396 drawing into an offscreen graphics world.
14398 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
14399 (gif_load): Likewise.
14401 2004-05-07 Juanma Barranquero <lektu@terra.es>
14403 * window.c (Fset_window_buffer): Fix docstring.
14405 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
14407 * emacs.c (main) [VMS]: Fix var ref.
14409 2004-05-06 Romain Francoise <romain@orebokech.com>
14411 * data.c (Fsetq_default): Fix docstring.
14413 2004-05-06 Jason Rumney <jasonr@gnu.org>
14415 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
14416 to avoid name clash.
14418 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14420 * fileio.c (barf_or_query_if_file_exists): Use lstat.
14421 (Frename_file): Handle renaming of symlinks across file systems.
14422 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
14424 2004-05-04 Kim F. Storm <storm@cua.dk>
14426 * xdisp.c (Qtotal): New var.
14427 (syms_of_xdisp): Intern and staticpro it.
14428 (calc_line_height_property): New arg total. Set it if
14429 line-spacing property has format (total . VALUE).
14430 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
14431 Handle total line-spacing property.
14433 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14435 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
14436 "under" scroll bar when size/position changes.
14438 2004-05-03 Jason Rumney <jasonr@gnu.org>
14440 * makefile.nt: Remove.
14442 2004-05-02 Eli Zaretskii <eliz@gnu.org>
14444 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
14445 Avoid compiler warnings.
14447 * Makefile.in (region-cache.o): Depend on config.h.
14449 2004-05-02 Romain Francoise <romain@orebokech.com>
14451 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
14452 with continuation lines, too.
14454 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
14456 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
14458 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
14460 * xdisp.c (calc_line_height_property): YAILOM (yet another
14461 int/Lisp_Object mixup).
14463 2004-05-01 Eli Zaretskii <eliz@gnu.org>
14465 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
14466 undo bad effect of pack(4) in some versions of system headers.
14468 2004-05-01 Jason Rumney <jasonr@gnu.org>
14470 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
14472 2004-04-30 Kim F. Storm <storm@cua.dk>
14474 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
14475 (syms_of_buffer) <cursor-type>: Doc fix.
14477 * dispextern.h (struct it): Remove member use_default_face.
14478 Add members override_ascent, override_descent, override_boff.
14480 * xdisp.c (init_iterator): Handle line-spacing float value.
14481 Initialize override_ascent member.
14482 (append_space_for_newline): Reset override_ascent.
14483 Remove use_default_face.
14484 (calc_line_height_property): New function to calculate value of
14485 line-height and line-spacing properties. Look at overlays, too.
14486 Set override_ascent, override_descent, override_boff members when
14487 using another face than the current face. Float values are now
14488 relative to the frame default font, by default; accept a cons
14489 of ratio and face name to specify value relative to a specific face.
14490 (x_produce_glyphs): Use calc_line_height_property.
14491 Use override_ascent etc. when set to handle different face heights.
14492 A negative line-spacing property value is interpreted as a total
14493 line height, rather than inter-line spacing.
14494 (note_mouse_highlight): Allocate room for 40 overlays initially.
14496 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
14498 * data.c (Fsubr_name): New fun.
14499 (syms_of_data): Defsubr it.
14501 2004-04-29 Kim F. Storm <storm@cua.dk>
14503 * xdisp.c (null_glyph_slice): New var.
14504 (append_glyph, append_composite_glyph, append_stretch_glyph):
14505 Use it to initialize glyph slice.
14507 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
14509 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
14510 (on_hot_spot_p): Make sure we always return a value.
14511 (Flookup_image_map): Remove unused var ix and iy.
14512 (note_mode_line_or_margin_highlight): Remove unused var `image'.
14514 2004-04-27 Eli Zaretskii <eliz@gnu.org>
14516 * msdos.c (init_environment): If one of the TMP... environment
14517 variables is set to a drive letter without a trailing slash,
14520 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
14522 * editfns.c (lisp_time_argument): Provide externally.
14524 * fileio.c (Fset_file_times): New function.
14525 (syms_of_fileio): Intern and staticpro it.
14527 2004-04-27 Kim F. Storm <storm@cua.dk>
14529 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
14530 header line strings.
14532 * dispextern.h (struct it): New member use_default_face.
14534 * xdisp.c (Qline_height): New variable.
14535 (syms_of_xdisp): Intern and staticpro it.
14536 (append_space_for_newline): Partially undo 2004-04-25 change;
14537 add default_face_p arg, and restore callers.
14538 Clear it->use_default_face after use.
14539 (x_produce_glyphs): Set default font for ascii char if
14540 it->use_default_font is set. Change line-spacing property to set
14541 just extra line spacing. Handle new line-height property.
14543 2004-04-26 Andreas Schwab <schwab@suse.de>
14545 * print.c (print_object): Print non-ascii characters in bool
14546 vector representation as octal escapes.
14548 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
14549 * print.c (print_object): Use it instead of BITS_PER_CHAR for
14551 * lread.c (read1): Likewise.
14552 * alloc.c (Fmake_bool_vector): Likewise.
14553 * data.c (Faref, Faset): Likewise.
14554 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
14555 (mapcar1): Likewise.
14557 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14559 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
14561 2004-04-26 Miles Bader <miles@gnu.org>
14563 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
14565 2004-04-26 Juanma Barranquero <lektu@terra.es>
14567 * buffer.c (Fpop_to_buffer): Fix docstring.
14569 2004-04-26 Steven Tamm <steventamm@mac.com>
14571 * lread.c (init_lread): Don't display missing lisp directory
14572 warnings with Carbon Emacs because self-contained bundled Emacs
14573 may be built without correct installation path.
14575 2004-04-25 Kim F. Storm <storm@cua.dk>
14577 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14579 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14581 * xdisp.c (append_space_for_newline): Rename from append_space.
14582 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
14583 (x_produce_glyphs): Handle line-spacing property on newline char.
14584 If value is t, adjust ascent and descent to fit current row height.
14585 If value is an integer or float, set extra_line_spacing to integer
14586 value, or to float value x current line height.
14588 2004-04-23 Kenichi Handa <handa@m17n.org>
14590 * fontset.c (Finternal_char_font): If POSITION is nil, return
14591 font for displaying CH with the default face.
14593 2004-04-23 Juanma Barranquero <lektu@terra.es>
14595 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
14597 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14599 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
14600 Don't make assumptions about the relative place of i and val.
14601 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
14603 2004-04-21 Kim F. Storm <storm@cua.dk>
14605 * dispextern.h (struct glyph_slice): New struct.
14606 (struct glyph): New member slice.
14607 (GLYPH_SLICE_EQUAL_P): New macro.
14608 (GLYPH_EQUAL_P): Use it.
14609 (struct glyph_string): New member slice.
14610 (struct it_slice): New struct.
14611 (struct it): New member slice, add member to stack too.
14612 New member constrain_row_ascent_descent_p.
14613 (image_ascent): Add prototype.
14615 * dispnew.c (buffer_posn_from_coords): Return full image width
14616 and height even for image slices (posn is relative to full image).
14617 (marginal_area_string): Adjust x0,y0 for image slice.
14619 * image.c (image_ascent): Add slice arg; calculate ascent for
14620 image slice (or full image).
14622 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
14623 (syms_of_keyboard): Defsubr them.
14625 * lisp.h (pos_visible_p): Fix prototype.
14627 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14628 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14629 (x_draw_image_foreground, x_draw_image_relief)
14630 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14631 Draw sliced images.
14633 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
14634 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14635 (x_draw_image_foreground, x_draw_image_relief)
14636 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
14637 Draw sliced images.
14639 * w32term.h (image_ascent): Remove prototype.
14641 * window.c (Fpos_visible_in_window_p): Return pixel position if
14642 PARTIALLY arg is non-nil. Simplify. Doc fix.
14643 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
14644 to return/set vscroll in pixels.
14646 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
14648 * xdisp.c (Qslice): New variable.
14649 (syms_of_xdisp): Intern and staticpro it.
14650 (pos_visible_p): Return pixel position in new x and y args.
14651 (init_iterator): Reset it->slice info.
14652 (handle_display_prop): Parse (slice ...) property.
14653 (push_it, pop_it): Save/restore slice info.
14654 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
14655 force repositioning of tall row if window is vscrolled, as that
14656 would reset vscroll.
14657 (append_space): Set it->constrain_row_ascent_descent_p to avoid
14658 increasing row height if row is non-empty.
14659 (fill_image_glyph_string): Copy slice info.
14660 (take_vertical_position_into_account): Simplify.
14661 (produce_image_glyph): Handle iterator slice info, setup glyph
14662 slice info. Do not force minimum line height.
14663 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
14664 do not increase height (ascent/descent) of non-empty row when
14665 adding normal character glyph; instead reduce glyph ascent/descent
14666 appropriately; if row is higher than current glyph, adjust glyph
14667 descent/ascent to reposition glyph within the existing row.
14668 Likewise, when char is newline, only set ascent/descent if row is
14670 (note_mouse_highlight): Handle hotspots with sliced image.
14672 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14673 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14674 (x_draw_image_foreground, x_draw_image_relief)
14675 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14676 Draw sliced images.
14678 * xterm.h (image_ascent): Remove prototype.
14680 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
14682 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
14684 2004-04-20 John Paul Wallington <jpw@gnu.org>
14686 * fns.c (Fassoc, Feql): Fix indentation.
14688 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
14690 2004-04-19 John Paul Wallington <jpw@gnu.org>
14692 * fns.c (Feql): New function.
14693 (syms_of_fns): Defsubr it.
14695 2004-04-18 Jason Rumney <jasonr@gnu.org>
14697 * w32select.c (Fw32_set_clipboard_data): Get sequence number
14698 after closing the clipboard.
14700 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
14702 * buffer.c (Fbuffer_base_buffer): Doc fix.
14704 2004-04-17 Kim F. Storm <storm@cua.dk>
14706 * keymap.c (Fkey_description): Add optional PREFIX arg.
14707 Combine prefix with KEYS to make up the full key sequence to describe.
14708 Correlate meta_prefix_char and following (simple) key to describe
14709 as meta modifier. All callers changed.
14710 (describe_map): Rename arg `keys' to `prefix'. Remove local
14711 `elt_prefix' var. Use Fkey_description with prefix instead of
14712 elt_prefix combined with Fsingle_key_description.
14713 (describe_vector): Declare static. Replace arg `elt_prefix' with
14714 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
14715 if !KEYMAP_P. Use Fkey_description with prefix instead of
14716 Fsingle_key_description.
14718 * keymap.h (Fkey_description): Fix prototype.
14719 (describe_vector): Remove prototype.
14721 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
14723 * image.c (PNG_BG_COLOR_SHIFT): Remove.
14724 (png_load): Fix calculation of transparent background color on X
14727 2004-04-16 Juanma Barranquero <lektu@terra.es>
14729 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
14730 not too large before computing how much to scroll.
14732 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
14734 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
14736 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
14738 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
14739 Add hyperlink to Elisp manual to the docstring.
14741 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
14743 * callint.c (fix_command): Use XDCR.
14745 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
14747 * window.c (Fget_lru_window): Doc fix.
14749 2004-04-14 Kim F. Storm <storm@cua.dk>
14751 * editfns.c (Fformat): Fix allocation size of precision array.
14753 * dispnew.c (update_window): Only set changed_p if
14754 scrolling_window actually did scroll.
14755 (scrolling_window): Only return 1 if we actually did scroll.
14757 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
14758 height to glyph height when cursor row is not fully visible.
14759 (make_cursor_line_fully_visible): Add FORCE_P arg to return
14760 failure in case row is higher than window. Callers changed.
14761 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
14762 Try to scroll partially visible, higher-than-window cursor row.
14763 (redisplay_window): Always try to scroll partially visible,
14764 higher-than-window cursor row - both initially and again with
14765 centering_position = 0.
14766 Clear desired matrix before retrying with centering_position = 0.
14768 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14770 * syntax.c (scan_lists): Simplify backward string scan.
14771 Fix off-by-one boundary check for string and comment fences.
14773 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
14775 * sheap.c, unexcw.c: New files.
14777 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
14779 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
14780 base buffer has been killed. Correct the error message if the
14781 base buffer does not exist.
14783 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
14785 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
14786 Cygwin itself. Add support for Xaw3d scrollbars.
14788 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
14790 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
14792 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
14793 before Cygwin unexec.
14795 * Makefile.in: Link changes for Cygwin unexec() support.
14797 2004-04-12 Andreas Schwab <schwab@suse.de>
14799 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
14801 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
14803 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
14804 IGNORE argument equals NAME. Doc fix.
14806 2004-04-11 Masatake YAMATO <jet@gyve.org>
14808 * buffer.c (fix_start_end_in_overlays): Make overlays
14809 empty if they are backwards.
14811 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14813 * xfaces.c (face_color_supported_p): Fix compilation without X11.
14815 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
14817 * doc.c (Fsnarf_documentation): Ignore new file name entries.
14819 2004-04-06 Kim F. Storm <storm@cua.dk>
14821 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14822 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
14824 * w32term.c (w32_read_socket): Set mouse_face_hidden after
14825 clearing highlight.
14827 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14829 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
14830 clearing highlight.
14832 * indent.c (vmotion): Do not reserve one column for continuation
14833 marks on window frames.
14835 2004-04-04 Eli Zaretskii <eliz@gnu.org>
14837 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
14840 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14842 * .gdbinit-union: Remove.
14844 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
14845 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
14846 ($nonvalbits): Remove.
14847 ($valmask): Set it by calling xreload to avoid redundancy.
14849 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
14850 (gdb_emacs_intbits): Remove.
14852 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14854 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
14856 2004-03-30 Kenichi Handa <handa@m17n.org>
14858 * editfns.c (Fformat): Fix initialization of the array info.
14860 2004-03-30 Kim F. Storm <storm@cua.dk>
14862 * xterm.c (x_mouse_click_focus_ignore_position): New var.
14863 (syms_of_xterm): DEFVAR_BOOL it.
14864 (ignore_next_mouse_click_timeout): New var.
14865 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
14866 Use it to filter mouse clicks following focus event.
14868 2004-03-29 David Ponce <david@dponce.com>
14870 * callint.c (Fcall_interactively): Fix last change.
14872 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14874 * eval.c (Fcommandp): Simplify.
14876 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
14877 Extend to handle all kinds of functions.
14879 * lisp.h (Finteractive_form): Declare.
14881 * callint.c (Fcall_interactively): Use it.
14883 2004-03-26 Kim F. Storm <storm@cua.dk>
14885 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
14886 to catch errors in calc_pixel_width_or_height during redisplay.
14888 2004-03-26 Masatake YAMATO <jet@gyve.org>
14890 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
14892 * lisp.h (fix_start_end_in_overlays): Likewise.
14894 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
14896 * editfns.c (Ftranspose_regions): Likewise.
14898 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14900 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
14902 2004-03-19 Richard M. Stallman <rms@gnu.org>
14904 * s/sol2-6.h: Delete previous change.
14906 2004-03-19 Kim F. Storm <storm@cua.dk>
14908 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
14909 to_charpos corresponds to newline in right fringe. Use local
14910 BUFFER_POS_REACHED_P macro.
14912 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14914 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
14915 to compile on non-window system.
14917 2004-03-19 Kim F. Storm <storm@cua.dk>
14919 * dispextern.h (calc_pixel_width_or_height): Add prototype.
14921 * image.c (Qcenter): Move to xdisp.c.
14923 * xdisp.c (Qcenter): Declare here.
14924 (syms_of_xdisp): Intern and staticpro it.
14925 (handle_single_display_prop): Allow space display property on all
14927 (display_mode_line): Set mode_line_p before displaying line.
14928 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
14929 handling. Remove complex cases for fringes and scroll-bars.
14930 Add left, right, and center alignment positions. Add text (area)
14931 width/height. Return width or height for image specs.
14932 (produce_stretch_glyph): Improve handling of :align-to. Is now
14933 relative to left of text area by default, but other base offsets
14934 can be specified -- also for text lines.
14936 * term.c (produce_glyphs): Handle IT_STRETCH.
14937 (produce_stretch_glyph): New function to handle space width and
14938 align-to display properties on non-window systems.
14940 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14942 * fileio.c (Fread_file_name): Set completion-ignore-case for
14943 case-insensitive systems.
14945 2004-03-14 Masatake YAMATO <jet@gyve.org>
14947 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
14948 when keymap and cursor are setup.
14950 2004-03-14 Steven Tamm <steventamm@mac.com>
14952 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
14954 2004-03-14 Kim F. Storm <storm@cua.dk>
14956 * dispextern.h (x_find_image_file): Add prototype.
14958 * image.c (x_find_image_file): Make extern.
14960 * xfns.c (x_find_image_file): Remove prototype.
14962 2004-03-13 Eli Zaretskii <eliz@gnu.org>
14964 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
14966 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
14968 2004-03-12 Richard M. Stallman <rms@gnu.org>
14970 * fns.c (internal_equal): New arg PROPS controls comparing
14971 text properties. All callers changed.
14972 (Fequal_including_properties): New function.
14973 (syms_of_fns): defsubr it.
14975 2004-03-12 Kim F. Storm <storm@cua.dk>
14977 Fix image support on MAC. From YAMAMOTO Mitsuharu.
14979 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
14980 (image_background, image_background_transparent): Fix prototypes.
14982 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
14984 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
14985 (x_query_font, x_find_ccl_program, x_set_window_size)
14986 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14987 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14988 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
14990 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
14991 (x_query_font, x_find_ccl_program, x_set_window_size)
14992 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14993 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14994 (mac_draw_line_to_pixmap): Add prototypes.
14996 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14998 * macterm.c (XTread_socket): Fix mouse click on tool bar.
15000 2004-03-11 Kim F. Storm <storm@cua.dk>
15002 * dispextern.h: Move image related prototypes from xfns.c section
15003 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
15006 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
15007 Move gtkutil.o to new GTK_OBJ list.
15008 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
15009 (GTK_OBJ) [USE_GTK]: New declaration.
15010 (obj): Add $(GTK_OBJ) to list.
15012 2004-03-11 Steven Tamm <steventamm@mac.com>
15014 * image.c [MAC_OSX]: Include sys/stat.h.
15016 * macfns.c (syms_of_macfns): Remove definitions of things now
15017 defined in image.c.
15019 2004-03-11 Kim F. Storm <storm@cua.dk>
15021 The following changes consolidates the identical/similar image
15022 support code previously found in xfns.c, w32fns.c, and macfns.c
15023 into a new file image.c.
15025 * makefile.w32-in (OBJ1): Add image.o.
15026 ($(BLD)/image.$(O)): Add dependencies.
15028 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
15029 (image.o): Add dependencies.
15031 * image.c: New file with consolidated image support code.
15032 (COLOR_TABLE_SUPPORT): New define to control whether
15033 color table support is available (X only).
15034 (Bitmap_Record): Common name for x_bitmap_record,
15035 w32_bitmap_record, and mac_bitmap_record.
15036 (XImagePtr): Common name for pointer to XImage or equivalent.
15037 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
15038 to XImagePtr on X+MAC, and to HDC on W32.
15039 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
15040 (NO_PIXMAP): Common name for "None" or equivalent.
15041 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
15042 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
15043 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
15044 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
15045 Define with suitable equivalents on W32 and MAC for code sharing.
15046 (XDrawLine): Define on MAC for code sharing.
15047 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
15048 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
15049 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15050 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15051 (x_reference_bitmap, x_create_bitmap_from_data)
15052 (x_create_bitmap_from_file, x_destroy_bitmap)
15053 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15054 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15055 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15056 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15057 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15058 (define_image_type, lookup_image_type, valid_image_p)
15059 (image_error, enum image_value_type, struct image_keyword)
15060 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15061 (make_image, free_image, prepare_image_for_display, image_ascent)
15062 (four_corners_best, image_background, image_background_transparent)
15063 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15064 (make_image_cache, free_image_cache, clear_image_cache)
15065 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15066 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15067 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15068 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15069 (init_image_func_pointer, image_load_quartz2d)
15070 (struct ct_color, init_color_table, free_color_table)
15071 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15072 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15073 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15074 (x_disable_image, x_build_heuristic_mask)
15075 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15076 (TIFF support, GIF support, Ghostscript support): Consolidate image
15077 code from xfns.c, w32fns.c, and macfns.c.
15078 (syms_of_image): Consolidate image related symbol setup here.
15079 (init_image): Consolidate image related initializations here.
15081 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
15082 and init_image. Remove call to init_xfns.
15084 * macterm.h (struct mac_bitmap_record): Add file member.
15085 Not currently used, but simplifies code sharing.
15087 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15088 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15089 (x_reference_bitmap, x_create_bitmap_from_data)
15090 (x_create_bitmap_from_file, x_destroy_bitmap)
15091 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15092 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15093 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15094 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15095 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15096 (define_image_type, lookup_image_type, valid_image_p)
15097 (image_error, enum image_value_type, struct image_keyword)
15098 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15099 (make_image, free_image, prepare_image_for_display, image_ascent)
15100 (four_corners_best, image_background, image_background_transparent)
15101 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15102 (make_image_cache, free_image_cache, clear_image_cache)
15103 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15104 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15105 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15106 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15107 (init_image_func_pointer, image_load_quartz2d)
15108 (struct ct_color, init_color_table, free_color_table)
15109 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15110 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15111 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15112 (x_disable_image, x_build_heuristic_mask)
15113 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15114 (TIFF support, GIF support, Ghostscript support): Merge with image
15115 code from xfns.c and macfns.c into image.c.
15116 (syms_of_xfns): Move image related symbols to image.c.
15117 (init_external_image_libraries, init_xfns): Remove; initialization
15118 moved to init_image in image.c.
15120 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15121 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15122 (x_reference_bitmap, x_create_bitmap_from_data)
15123 (x_create_bitmap_from_file, x_destroy_bitmap)
15124 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15125 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15126 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15127 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15128 (define_image_type, lookup_image_type, valid_image_p)
15129 (image_error, enum image_value_type, struct image_keyword)
15130 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15131 (make_image, free_image, prepare_image_for_display, image_ascent)
15132 (four_corners_best, image_background, image_background_transparent)
15133 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15134 (make_image_cache, free_image_cache, clear_image_cache)
15135 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15136 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15137 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15138 (struct ct_color, init_color_table, free_color_table)
15139 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15140 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15141 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15142 (x_disable_image, x_build_heuristic_mask)
15143 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15144 (TIFF support, GIF support, Ghostscript support): Merge with image
15145 code from xfns.c and macfns.c into image.c.
15146 (syms_of_xfns): Move image related symbols to image.c.
15147 (init_external_image_libraries, init_xfns): Remove; initialization
15148 moved to init_image in image.c.
15150 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15151 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15152 (x_reference_bitmap, x_create_bitmap_from_data)
15153 (x_create_bitmap_from_file, x_destroy_bitmap)
15154 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15155 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15156 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15157 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15158 (define_image_type, lookup_image_type, valid_image_p)
15159 (image_error, enum image_value_type, struct image_keyword)
15160 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15161 (make_image, free_image, prepare_image_for_display, image_ascent)
15162 (four_corners_best, image_background, image_background_transparent)
15163 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15164 (make_image_cache, free_image_cache, clear_image_cache)
15165 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15166 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15167 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15168 (struct ct_color, init_color_table, free_color_table)
15169 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15170 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15171 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15172 (x_disable_image, x_build_heuristic_mask)
15173 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15174 (TIFF support, GIF support, Ghostscript support): Merge with
15175 w32fns.c and macfns.c image code into image.c.
15176 (syms_of_xfns): Move image related symbols to image.c.
15177 (init_xfns): Remove; initialization moved to init_image in image.c.
15179 * lisp.h (syms_of_image, init_image): Add protoypes.
15180 (init_xfns): Remove prototype.
15182 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15183 (x_reference_bitmap, x_create_bitmap_from_data)
15184 (x_create_bitmap_from_file, x_destroy_bitmap)
15185 (x_create_bitmap_mask): Move prototypes from dispextern.h.
15186 (gamma_correct) [MAC_OS]: Add prototype.
15188 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15189 (x_reference_bitmap, x_create_bitmap_from_data)
15190 (x_create_bitmap_from_file, x_destroy_bitmap)
15191 (x_create_bitmap_mask): Move prototypes to dispextern.h.
15193 2004-03-09 Kenichi Handa <handa@etlken2>
15195 * coding.c (decode_coding_emacs_mule): Handle insufficent source
15198 2004-03-04 Richard M. Stallman <rms@gnu.org>
15200 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
15202 * window.c (Fdisplay_buffer): Doc fix.
15204 * buffer.c (Fpop_to_buffer): Doc fix.
15206 2004-03-03 Kim F. Storm <storm@cua.dk>
15208 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
15210 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
15212 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
15214 2004-03-02 Richard M. Stallman <rms@gnu.org>
15216 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
15218 2004-03-02 Kenichi Handa <handa@m17n.org>
15220 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
15222 2004-03-02 Kim F. Storm <storm@cua.dk>
15224 * window.h (struct window): New member overlay_arrow_bitmap.
15226 * window.c (make_window): Initialize overlay_arrow_bitmap.
15228 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
15229 implement and integrate multiple overlay arrows with redisplay.
15230 (syms_of_xdisp): DEFVAR_LISP and initialize it.
15231 (last_arrow_position, last_arrow_string): Replace by properties.
15232 (Qlast_arrow_position, Qlast_arrow_string)
15233 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
15234 (syms_of_xdisp): Intern and staticpro them.
15235 (overlay_arrow_string_or_property, update_overlay_arrows)
15236 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
15237 (overlay_arrow_at_row): New functions for multiple overlay arrows.
15238 (redisplay_internal): Use them instead of directly accessing
15239 Voverlay_arrow_position etc. for multiple overlay arrows.
15240 (mark_window_display_accurate): Use update_overlay_arrows.
15241 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
15242 (try_window_id): Use overlay_arrows_changed_p.
15243 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
15244 (display_line): Use overlay_arrow_at_row to check multiple
15245 overlay arrows, and get relevant overlay-arrow-string and
15246 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
15247 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
15248 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
15250 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
15251 (update_window_fringes): Remove unused code.
15253 2004-03-01 Jason Rumney <jasonr@gnu.org>
15255 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
15257 2004-03-01 Juanma Barranquero <lektu@terra.es>
15259 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
15261 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
15263 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15265 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
15266 how many colors can be displayed.
15268 2004-03-01 Kenichi Handa <handa@m17n.org>
15270 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
15273 2004-02-28 Kim F. Storm <storm@cua.dk>
15275 * dispnew.c (update_window): Update header line also if there are
15276 no other changes in window (move code after set_cursor label).
15278 * lisp.h (mark_window_display_accurate): Remove prototype.
15280 * window.c (window_loop, Fforce_window_update): Force mode line
15281 updates by setting prevent_redisplay_optimizations_p and
15284 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15286 * xfns.c (x_window): Fix indentation.
15288 * xterm.c (x_calc_absolute_position): Call x_real_positions
15289 to get WM window sizes and use those to calculate position.
15290 (x_set_offset): Remove code commented out.
15292 2004-02-28 Miles Bader <miles@gnu.org>
15294 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
15296 2004-02-28 Kim F. Storm <storm@cua.dk>
15298 * keyboard.c (kbd_buffer_store_event_hold): New function to store
15299 an event into kbd fifo, but with special handling of quit event;
15300 a quit event is saved for later, and further events are discarded
15301 until the saved quit event has been processed.
15302 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
15303 (gen_help_event): Store help event in kbd fifo.
15304 (NREAD_INPUT_EVENTS): Remove.
15305 (read_avail_input): Adapt to new read_socket_hook interface.
15306 Remove allocation and initialization of local input_event buffer,
15307 as read_socket_hook stores events directly in fifo. Allocate and
15308 initialize local hold_quit event to handle postponed quit event
15309 (and store it if set by kbd_buffer_store_event_hold).
15311 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
15312 (gen_help_event): Fix prototype.
15314 * macterm.c (XTread_socket): Remove bufp_r and
15315 numcharsp args. Add hold_quit arg.
15316 Rework to use just one, local, inev input_event. Store inev
15317 directly in fifo using kbd_buffer_store_event_hold.
15319 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
15320 (read_input_waiting): Adapt to new read_socket_hook interface.
15321 Remove allocation and initialization of local input_event buffer,
15322 as read_socket_hook stores events directly in fifo. Allocate and
15323 initialize local hold_quit event to handle postponed quit event
15324 (and store it if set by kbd_buffer_store_event_hold).
15326 * term.c (read_socket_hook): Fix arg list.
15328 * termhooks.h (read_socket_hook): Fix prototype.
15330 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
15331 numcharsp args. Add hold_quit arg.
15332 Rework to use just one, local, inev input_event. Store inev
15333 directly in fifo using kbd_buffer_store_event_hold.
15335 * w32inevt.h (w32_console_mouse_position): Fix prototype.
15337 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
15338 Add hold_quit arg. Rework to use just one, local, inev
15339 input_event. Store inev directly in fifo using
15340 kbd_buffer_store_event_hold. Update count in one place.
15341 Postpone call to gen_help_event until inev is stored; use new
15342 local do_help for this.
15343 Remove local emacs_event in handing of ButtonPress event; just use
15344 inev instead (so no reason to copy it later).
15346 * xsmfns.c (x_session_check_input): Remove numchars arg.
15348 * xterm.c (x_focus_changed, x_detect_focus_change):
15349 Remove numchars arg. Always store event into bufp arg.
15350 Return nothing. Callers changed accordingly.
15351 (glyph_rect): Simplify.
15352 (STORE_KEYSYM_FOR_DEBUG): New macro.
15353 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
15354 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
15355 (current_hold_quit) [USE_GTK]: Add.
15356 (event_handler_gdk): Adapt to new handle_one_xevent.
15357 (handle_one_xevent): Remove bufp_r and numcharsp args.
15358 Add hold_quit arg. Rework to use just one, local, inev
15359 input_event. Store inev directly in fifo using
15360 kbd_buffer_store_event_hold. Update count in one place.
15361 Postpone call to gen_help_event until inev is stored; use new
15362 local do_help for this.
15363 Simplify handling of keysyms (consolidate common code). Fix bug
15364 where count was updated with nchars instead of nbytes.
15365 Remove local emacs_event in handing of ButtonPress event; just use
15366 inev instead (so no reason to copy it later).
15367 Remove `out' label. Rename label `ret' to `done'; add various
15368 `goto done' to clarify code flow in deeply nested blocks.
15369 (x_dispatch_event): Simplify as handle_one_xevent now calls
15370 kbd_buffer_store_event itself.
15371 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
15372 arg. Call handle_one_xevent with new arglist. Store event from
15373 x_session_check_input in fifo.
15374 [USE_GTK]: Setup current_hold_quit.
15375 Decrement handling_signal before unblocking input.
15376 (x_initialize) [USE_GTK]: Initialize current_count.
15378 * xterm.h (x_session_check_input): Fix prototype.
15380 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15382 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
15384 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
15387 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
15389 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
15390 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
15391 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
15392 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
15393 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
15394 (Bitmap): Remove typedef.
15395 (Pixmap): Change int to GWorldPtr.
15397 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15399 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15400 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
15401 New #define to extract 16-bit depth color components from unsigned
15402 long representation.
15403 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
15404 colors used for masks.
15405 (struct mac_display_info): Add color_p. Remove n_cbits.
15407 * macfns.c: Include sys/types.h and sys/stat.h.
15408 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
15409 Include QuickTime/QuickTime.h.
15410 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15411 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
15412 functions defined in macterm.c.
15413 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
15414 (ZPixmap): New #define for compatibility with xfns.c.
15415 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15416 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15417 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
15419 (four_corners_best, x_create_x_image_and_pixmap)
15420 (x_destroy_x_image, unwind_create_frame, x_disable_image)
15421 (x_edge_detection, init_color_table, colors_in_color_table)
15422 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
15423 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
15424 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
15425 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
15426 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
15428 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
15429 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
15430 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
15431 (x_set_cursor_type, Fxw_color_values, valid_image_p)
15432 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
15433 (x_alloc_image_color, clear_image_cache, lookup_image)
15434 (x_find_image_file, xbm_read_bitmap_file_data)
15435 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
15436 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
15437 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
15438 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
15439 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
15440 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
15441 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
15443 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
15444 #if 0. Free white_relief.gc and black_relief.gc.
15445 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
15446 New functions (from xfns.c).
15447 (Fx_create_frame): Record unwind_create_frame.
15448 (Fxw_display_color_p): Use dpyinfo->color_p.
15449 (Fx_display_grayscale_p, Fx_display_planes): Don't use
15451 (Fx_display_color_cells): Use dpyinfo->n_planes;
15452 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
15453 (Qheuristic, cross_disabled_images, emboss_matrix)
15454 (laplace_matrix): New variables (from xfns.c).
15455 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
15456 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
15457 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
15458 (image_background_transparent): New function (from xfns.c).
15459 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15460 (image_load_quicktime): Add declaration.
15461 [MAC_OSX] (image_load_quartz2d): Likewise.
15462 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
15463 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
15464 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
15465 (xbm_load_image_from_file, x_laplace_read_row)
15466 (x_laplace_write_row, pbm_read_file): Remove functions.
15467 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
15468 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
15469 (colors_in_color_table): Sync with xfns.c (although not used).
15470 (lookup_rgb_color): Don't lookup color table. Just do gamma
15472 (COLOR_INTENSITY): New #define (from xfns.c).
15473 (x_disable_image): New function (from xfns.c).
15474 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15475 (x_build_heuristic_mask): Sync with xfns.c.
15476 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15477 (HAVE_PBM): Remove #ifdef.
15478 (pbm_load): Sync with xfns.c. Set img->width and img->height
15479 before IMAGE_BACKGROUND.
15480 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
15481 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
15482 Don't enclose with #if HAVE_PNG.
15483 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
15484 symbol _CGImageCreateWithPNGDataProvider is defined.
15485 Otherwise use image_load_quicktime.
15486 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
15487 [HAVE_PNG] (png_load): Sync with xfns.c.
15488 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15489 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
15491 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
15492 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
15493 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
15494 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
15495 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
15496 (tiff_image_p, tiff_load): Don't enclose declarations with #if
15498 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
15499 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
15500 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
15501 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
15502 New functions (from xfns.c).
15503 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
15504 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
15505 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
15506 Don't enclose with #if HAVE_GIF.
15507 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
15508 animated gif. Otherwise use image_load_quicktime.
15509 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
15510 gif_DrawText to avoid conflict with QuickdrawText.h.
15511 [HAVE_GIF] (gif_load): Sync with xfns.c.
15512 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
15513 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
15514 Ghostscript is not supported yet).
15515 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
15516 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
15517 cross_disabled_images (from xfns.c). Remove #if 0 for supported
15518 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15519 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
15520 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15521 HAVE_PNG. Call EnterMovies to support animated gifs.
15522 Call init_image_func_pointer to bind a symbol
15523 _CGImageCreateWithPNGDataProvider if it is defined.
15525 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15526 (x_draw_bar_cursor): Sync declaration with xterm.c.
15527 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
15528 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
15530 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
15531 (mac_draw_line_to_pixmap, XCreatePixmap)
15532 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
15533 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
15535 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
15536 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15537 Cast bits to char *.
15538 (reflect_byte): New function (from w32fns.c).
15539 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
15540 due to byte alignment.
15541 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
15542 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15543 (XSetForeground): Remove static (now used in macfns.c).
15544 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
15545 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
15546 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
15547 (x_draw_glyph_string_box, x_draw_image_foreground)
15548 (x_draw_image_foreground_1, x_draw_image_glyph_string)
15549 (x_draw_stretch_glyph_string, x_draw_glyph_string)
15550 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
15552 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
15553 than the xterm.c version when a strictly horizontal or vertical
15555 (XTset_terminal_window): Add static.
15556 (x_make_frame_visible): Add UNBLOCK_INPUT.
15557 (x_free_frame_resources): New funcion (from xterm.c).
15558 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
15559 occurs in tool bar area.
15560 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
15561 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
15562 Initialize image cache.
15563 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
15564 Enclose unused functions with #if 0.
15565 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
15566 (decode_mac_font_name): New function to apply code conversions
15567 from a mac font name to an XLFD font name according to its script code.
15568 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
15569 font name to a mac font name according to REGISTRY and ENCODING fields.
15570 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
15571 whose name starts with `.'.
15572 (init_font_name_table): Use decode_mac_font_name. Add both
15573 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
15574 of a font is smJapanese.
15575 (mac_do_list_fonts): New function to list fonts that match a given
15577 (x_list_fonts, XLoadQueryFont): Use it.
15578 (XLoadQueryFont): Set rbearing field for each variable width
15579 character to avoid needless redraw.
15580 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
15582 2004-02-26 Kim F. Storm <storm@cua.dk>
15584 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
15585 as read_socket_hook handler on X aborts if buffer is too small
15586 and W32 handler doesn't always check buffer limit.
15588 * xdisp.c (handle_single_display_prop): Handle left-fringe and
15589 right-fringe similar to a display margin image. Specifically,
15590 the characters having the fringe prop are no longer shown, and
15591 we use IT_IMAGE/next_element_from_image with image_id = -1 to
15592 do this. Set fringe bitmap face_id in it->face_id.
15593 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
15594 still realize it->face (i.e. the fringe bitmap face).
15596 2004-02-25 Miles Bader <miles@gnu.org>
15598 * xdisp.c (check_it): Check string/string_pos consistency.
15599 (init_iterator): Initialize string-related fields properly.
15601 2004-02-11 Miles Bader <miles@gnu.org>
15603 * xdisp.c (produce_image_glyph): Force negative descents to zero.
15605 2004-02-10 Miles Bader <miles@gnu.org>
15607 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
15608 BLOCK_INPUT can be nested, so it doesn't make much sense.
15610 2004-02-24 Michael Mauger <mmaug@yahoo.com>
15612 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
15613 (xbm_read_bitmap_data): Use unsigned char for image data.
15615 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
15617 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
15619 2004-02-22 Jason Rumney <jasonr@gnu.org>
15621 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
15622 correctly over other bitmaps.
15624 2004-02-21 Eli Zaretskii <eliz@gnu.org>
15626 * emacs.c (USAGE1): Split into two halves.
15627 (USAGE2): Second half of the old USAGE1.
15628 (USAGE3): Rename from USAGE2.
15629 (USAGE4): Rename from USAGE3.
15631 2004-02-21 Juri Linkov <juri@jurta.org>
15633 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
15634 Fix --multibyte. Move --help, --version to USAGE2. Add alias
15635 --file. Fix -f, -l. Sort options. Untabify.
15636 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
15638 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
15640 * category.c (Fdefine_category, Fcategory_docstring)
15641 (Fget_unused_category, Fset_category_table)
15642 (Fcategory_set_mnemonics): Doc fixes.
15644 2004-02-20 Kim F. Storm <storm@cua.dk>
15646 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
15647 The following changes are relative to the 2004-01-21 revision.
15648 (NREAD_INPUT_EVENTS): Define as max number of input events to read
15649 in one call to read_socket_hook. Value is 8.
15650 (read_avail_input): Separate and rework handling of read_socket_hook
15651 and non-read_socket_hook cases. Use smaller input_event buffer
15652 in read_socket_hook case, and repeat if full buffer is read.
15653 Use new local variable 'discard' to skip input after C-g.
15654 In non-read_socket_hook case, just use a single input_event, and
15655 call kbd_buffer_store_event on the fly for each character.
15657 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15659 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
15660 Remove unused `gu' alternative.
15662 2004-02-19 Andreas Schwab <schwab@suse.de>
15664 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
15667 2004-02-18 Kim F. Storm <storm@cua.dk>
15669 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
15672 2004-02-17 Kim F. Storm <storm@cua.dk>
15674 * xdisp.c (fast_find_position): Fix return value of new version;
15675 it was inverted compared to the 21.1 version.
15676 (get_window_cursor_type): Don't look at glyph if NULL.
15677 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
15679 * keyboard.c: Rework previous change; it didn't consider that the
15680 buf array was allocated on the stack.
15681 (prev_read): Remove variable.
15682 (read_avail_input_buf): New static event buffer array.
15683 (in_read_avail_input): New static variable to handle re-entrancy.
15684 (read_avail_input): Change buf to pinter to read_avail_input_buf.
15685 Use in_read_avail_input to handle re-entrance; when re-entered,
15686 fully initialize and use tmp_buf array instead of read_avail_input_buf.
15687 Do not initialize read_avail_input_buf in full here; instead assume it
15688 is always cleared on entry. To ensure that, we clear (just) the
15689 entries that were used before we return.
15690 (init_keyboard): Initialize read_avail_input_buf here.
15692 2004-02-16 Jesper Harder <harder@ifa.au.dk>
15694 * cmds.c (Fend_of_line): Doc fix.
15696 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
15698 * keyboard.c (prev_read): New static variable.
15699 (read_avail_input): Use it to zero out only those slots in buf[]
15700 that were used last time we were called.
15702 2004-02-16 Eli Zaretskii <eliz@gnu.org>
15704 * Makefile.in (obj): Move fringe.o from here...
15705 (XOBJ, MAC_OBJ): ...to here.
15707 2004-02-16 Stephen Eglen <stephen@gnu.org>
15709 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
15711 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
15713 * data.c (Fbyteorder):
15714 * fringe.c (Fdefine_fringe_bitmap):
15715 * xdisp.c (handle_single_display_prop):
15716 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
15718 2004-02-16 Jason Rumney <jasonr@gnu.org>
15720 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
15722 2004-02-15 Steven Tamm <steventamm@mac.com>
15724 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
15725 controlling emulation of a three button mouse with option and
15727 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
15728 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
15730 2004-02-15 Kim F. Storm <storm@cua.dk>
15732 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
15734 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
15735 Perform byte-swapping.
15737 2004-02-14 Kim F. Storm <storm@cua.dk>
15739 * dispextern.h (struct draw_fringe_bitmap_params): Change member
15740 bits from char to short to facilitate wider bitmaps.
15741 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
15744 * fringe.c (struct fringe_bitmap): Change member bits from char to
15745 short to facilitate 16 bits wide bitmaps. Modify all standard
15746 bitmaps accordingly.
15747 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
15748 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
15749 (draw_fringe_bitmap): Ditto.
15750 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
15751 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
15752 handle up to 16 bits wide bitmaps.
15753 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
15754 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
15756 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
15757 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
15758 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
15760 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
15761 so it is no longer necessary to expand them here.
15763 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
15765 2004-02-12 Kim F. Storm <storm@cua.dk>
15767 * window.c (Fwindow_fringes): Doc fix.
15769 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15771 * xselect.c (x_get_foreign_selection): Add new optional parameter
15773 (Fx_get_selection_internal): Ditto, pass time_stamp to
15774 x_get_foreign_selection.
15776 * data.c (Fbyteorder): New function.
15778 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15780 * atimer.c: Move include stdio.h to same place as in other files.
15782 * region-cache.c: Ditto.
15788 2004-02-09 Sam Steingold <sds@gnu.org>
15790 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
15792 2004-02-09 Kim F. Storm <storm@cua.dk>
15794 * fringe.c: New file. Move original fringe related declarations
15795 and code from dispextern.h and xdisp.c here.
15796 Rework code to support user defined fringe bitmaps, redefining
15797 standard bitmaps, ability to overlay user defined bitmap with
15798 overlay arrow bitmap, and add faces to bitmaps.
15799 (Voverflow_newline_into_fringe): Declare here.
15800 (enum fringe_bitmap_align): New enum.
15801 (..._bits): All bitmaps are now defined without bitswapping; that
15802 is now done in init_fringe_once (if necessary).
15803 (standard_bitmaps): New array with specifications for the
15804 standard fringe bitmaps.
15805 (fringe_faces): New array.
15806 (valid_fringe_bitmap_id_p): New function.
15807 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
15808 (draw_fringe_bitmap): New function which draws fringe bitmap,
15809 possibly overlaying bitmap with cursor in right fringe or the
15810 overlay arrow in the left fringe.
15811 (update_window_fringes): Do not handle overlay arrow here.
15812 Compare and copy fringe bitmap faces.
15813 (init_fringe_bitmap): New function.
15814 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
15815 define and destroy user defined fringe bitmaps.
15816 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
15817 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
15818 (syms_of_fringe): New function. Defsubr new DEFUNs.
15819 DEFVAR_LISP Voverflow_newline_into_fringe.
15820 (init_fringe_once, init_fringe): New functions.
15821 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
15823 * Makefile.in (obj): Add fringe.o.
15824 (fringe.o): New dependencies.
15826 * dispextern.h (FRINGE_ID_BITS): New definition for number of
15827 bits allocated to hold a fringe number. Increase number of bits
15828 from 4 to 8 to allow user defined fringe bitmaps.
15829 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
15830 left_user_fringe_face_id, right_user_fringe_bitmap,
15831 right_user_fringe_face_id.
15832 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
15833 Move to new file fringe.c.
15834 (MAX_FRINGE_BITMAPS): Define here.
15835 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
15836 and overlay_p. Change member which to int.
15837 (struct redisplay_interface): New members define_fringe_bitmap
15838 and destroy_fringe_bitmap.
15839 (valid_fringe_bitmap_id_p): Add prototype.
15840 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
15842 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
15844 (update_frame): Do flush_display if force_flush_display_p to
15845 ensure display (specifically fringes) are updated in a timely
15846 manner when resizing the frame by dragging the mouse.
15847 (update_window_line): Update row if overlay arrow changed.
15848 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
15849 or overlay arrow changed.
15851 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
15852 syms_of_fringe, and init_fringe.
15854 * frame.h (struct frame): New member force_flush_display_p.
15856 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
15859 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
15860 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
15861 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15862 Use cursor color for displaying cursor in fringe.
15863 (x_redisplay_interface): Add null handlers for
15864 define_fringe_bitmap and destroy_fringe_bitmap functions.
15866 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15867 xterm.c to handle overlayed fringe bitmaps and to use cursor color
15868 for displaying cursor in fringe.
15869 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15870 specific functions to define and destroy fringe bitmaps in fringe_bmp.
15871 (w32_redisplay_interface): Add them to redisplay_interface.
15872 (w32_term_init): Call w32_init_fringe instead of explicitly
15873 defining fringe bitmaps in fringe_bmp array.
15874 (x_delete_display): Call w32_reset_fringes instead of explicitly
15875 destroying fringe bitmaps in fringe_bmp array.
15877 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
15878 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
15879 (continued_bits, continuation_bits, ov_bits, first_line_bits)
15880 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
15881 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
15882 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
15883 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
15884 Move fringe handling vars and code to new file fringe.c.
15885 (handle_display_prop): Handle left-fringe and right-fringe
15886 display properties; store user fringe bitmaps in iterator.
15887 (move_it_in_display_line_to): Handle cursor in fringe at eob.
15888 (clear_garbaged_frames): Set force_flush_display_p if resized.
15889 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
15890 (display_line): Handle cursor in fringe at eob.
15891 (display_line): Set row user fringe bitmaps from iterator.
15893 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
15894 Use cursor color for displaying cursor in fringe.
15895 (x_redisplay_interface): Add null handlers for
15896 define_fringe_bitmap and destroy_fringe_bitmap functions.
15898 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15900 * macfns.c (Fx_change_window_property): Make doc string and
15901 parameters same as for X version.
15903 * w32fns.c (Fx_change_window_property): Ditto.
15905 2004-02-07 Kim F. Storm <storm@cua.dk>
15907 * xdisp.c (hscroll_window_tree): Position cursor near to right
15908 margin in hscrolled window when jumping to end of line (rather
15909 than centering cursor).
15911 * process.c (wait_reading_process_input): Don't do adaptive read
15912 buffering if waiting for a specific process.
15914 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
15916 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
15917 (Fread_minibuffer, Feval_minibuffer)
15918 (Fread_string, Fread_no_blanks_input)
15919 (Fcompleting_read): Doc fixes.
15920 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
15921 completion-regexp-list. Define Qcase_fold_search and staticpro it.
15922 (read_minibuf): Fix initial comment.
15923 (Ftry_completion, Fall_completions, Ftest_completion): Bind
15924 case-fold-search to the value of completion-ignore-case when
15925 checking completion-regexp-list.
15926 (Fdisplay_completion_list): Make it handle arguments that are
15929 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15931 * xterm.h: Add declaration of free_frame_menubar.
15933 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
15934 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
15935 (Fx_change_window_property): Add declaration of parameters type and
15936 format. Remove unused variable cons.
15938 * xselect.c: Include stdio.h.
15940 2004-02-05 Kenichi Handa <handa@m17n.org>
15942 * fns.c (Fset_char_table_range): Fix previous change.
15944 * buffer.c (Fset_buffer_multibyte): Fix docstring.
15946 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
15948 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
15950 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
15952 * keymap.c (Vmouse_events): Rename from Vmenu_events.
15953 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
15955 2004-02-04 Kenichi Handa <handa@m17n.org>
15957 * fns.c (Fset_char_table_range): Handle charsets ascii,
15958 eight-bit-control, and eight-bit-graphic correctly.
15960 2004-02-03 Jason Rumney <jasonr@gnu.org>
15962 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
15964 * w32fns.c (x_to_w32_font): Likewise.
15966 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15968 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
15969 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
15971 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
15974 * xselect.c: Include termhooks.h and X11/Xproto.h.
15975 (x_check_property_data, x_fill_property_data)
15976 (x_property_data_to_lisp, mouse_position_for_drop)
15977 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
15978 (Fx_send_client_event): Move here from xfns.c.
15979 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
15981 * xfns.c (x-send-client-message): Move to xselect.c.
15982 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
15984 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
15985 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
15986 if vector_ret_p is true.
15987 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
15989 2004-02-02 Eli Zaretskii <eliz@gnu.org>
15991 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
15992 basename of FILE relative to it, not FILE itself.
15994 2004-02-02 Kenichi Handa <handa@m17n.org>
15996 * coding.c (coding_restore_composition): Check invalid
15997 composition data more rigidly.
15999 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
16001 * fileio.c (Fread_file_name_internal): Correctly handle the case
16002 where insert-default-directory is nil.
16003 (Fread_file_name): Always return an empty string if the user exits
16004 with an empty minibuffer. Adapt the docstring accordingly.
16005 (syms_of_fileio): Adapt the docstring of insert-default-directory
16006 to the change in Fread_file_name.
16008 2004-01-29 Eli Zaretskii <eliz@gnu.org>
16010 * alloca.c [!alloca]: Fix the prototype for xfree.
16012 2004-01-29 Kenichi Handa <handa@m17n.org>
16014 * fns.c (string_char_to_byte): Optimize for ASCII only string.
16015 (string_byte_to_char): Likewise.
16017 2004-01-28 Peter Runestig <peter@runestig.com>
16019 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
16021 2004-01-27 Steven Tamm <steventamm@mac.com>
16023 * unexmacosx.c (unexec_copy): Do not copy more than was
16024 requested to prevent overwriting during unexec.
16026 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16028 * process.c (sigchld_handler): Add comment about not calling malloc.
16030 * process.h: Add extern to synch_process_termsig.
16032 2004-01-27 Steven Tamm <steventamm@mac.com>
16034 * macterm.c (make_mac_frame, make_mac_terminal_frame):
16035 Move setting of scroll bars from make_mac_frame to
16036 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
16038 2004-01-26 Richard M. Stallman <rms@gnu.org>
16040 * search.c (Freplace_match): Handle nonexistent
16041 back-references properly.
16043 2004-01-03 Richard M. Stallman <rms@gnu.org>
16045 * window.c (decode_any_window): New function.
16046 (Fwindow_height, Fwindow_width, Fwindow_edges)
16047 (Fwindow_pixel_edges, Fwindow_inside_edges)
16048 (Fwindow_inside_pixel_edges): Use decode_any_window.
16050 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16052 * process.h: synch_process_termsig new variable.
16054 * callproc.c: Define synch_process_termsig.
16055 (Fcall_process): Initiate synch_process_termsig to zero and
16056 check if non-zero and get signal name after subprocess has ended.
16058 * process.c (sigchld_handler): Set synch_process_termsig
16059 if terminated by a signal. synch_process_death setting removed.
16061 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
16063 2004-01-26 Andreas Schwab <schwab@suse.de>
16065 * print.c (print_preprocess): Declare size as EMACS_INT to not
16067 (print_object): Likewise.
16068 * alloc.c (Fpurecopy): Likewise.
16070 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
16072 * window.c (Fwindow_minibuffer_p): Doc fix.
16074 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
16076 * editfns.c (Fformat): Make both passes accept the same set of flags.
16078 2004-01-23 Kenichi Handa <handa@m17n.org>
16080 * fns.c (Fmd5): If OBJECT is a buffer different from the current
16081 one, set buffer to OBJECT temporarily.
16083 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16085 * keyboard.c (kbd_buffer_gcpro): Remove.
16086 (kbd_buffer_store_event, clear_event, Fdiscard_input)
16087 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
16088 Don't initialize and/or maintain the variable any more. It was made
16089 redundant by my commit of 2003-06-15.
16091 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
16093 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16095 * lisp.h: Add undef DECL_ALIGN.
16097 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16099 * process.c (wait_reading_process_input) [SYNC_INPUT]:
16100 Check interrupt_input_pending explicitly.
16102 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
16104 * keyboard.c (handle_async_input): New fun,
16105 extracted from input_available_signal.
16106 (input_available_signal, reinvoke_input_signal): Use it.
16108 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
16110 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
16112 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
16113 manipulation macros for when tags are in the lower bits.
16114 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
16115 (DECL_ALIGN): New macro.
16118 * lisp.h [ENABLE_CHECKING]: Don't force union type.
16120 * s/darwin.h (__attribute__): Remove outdated workaround.
16122 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
16124 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
16125 Don't check range of malloc address.
16126 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
16128 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
16130 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
16132 2004-01-19 Kenichi Handa <handa@m17n.org>
16134 * fontset.c (fontset_font_pattern): Fix previous change.
16136 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
16138 * xdisp.c (Voverflow_newline_into_fringe)
16139 (move_it_in_display_line_to, redisplay_internal)
16140 (update_window_fringes, redisplay_window, display_line, window):
16141 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
16142 that it compiles without a window-system.
16143 * dispnew.c (direct_output_for_insert, update_window): Likewise.
16145 2004-01-16 Kim F. Storm <storm@cua.dk>
16147 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
16149 * buffer.c (init_buffer_once): Set buffer_defaults and
16150 buffer_local_flags for indicate_buffer_boundaries.
16151 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
16152 default- variable for it.
16154 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
16155 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
16156 New members exact_window_width_line_p and cursor_in_fringe_p for
16157 overflowing newlines into right fringe.
16158 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
16159 and indicate_bottom_line_p for buffer boundaries and scrolling.
16160 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
16161 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
16162 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
16163 and HOLLOW_SQUARE_BITMAP.
16164 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
16167 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
16168 instead of related indicator fields.
16169 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
16170 (direct_output_for_insert): Handle exact width lines like
16171 contined lines. Call update_window_fringes.
16172 (update_window): Call update_window_fringes.
16173 (scrolling_window): Don't skip desired rows with changed bitmaps.
16174 Check if fringe bitmaps changes when assigning scrolled rows.
16176 * xdisp.c (Voverflow_newline_into_fringe): New variable.
16177 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
16178 (move_it_in_display_line_to): Overflow newline into fringe for
16179 rows that are exactly as wide as the window.
16180 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
16181 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
16182 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
16183 (fringe_bitmaps): Add new bitmaps.
16184 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
16185 Select proper bitmap for cursor in fringe when appropriate.
16186 Handle alignment of bitmap to top or bottom of row.
16187 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
16188 done by update_window_fringes.
16189 (update_window_fringes, draw_window_fringes): New functions.
16190 (redisplay_internal): Call update_window_fringes in case only
16191 cursor row is updated.
16192 (redisplay_window): Call update_window_fringes.
16193 Explicitly call draw_window_fringes if redisplay was done using
16194 the current matrix or the overlay arrow is in the window.
16195 (try_window_reusing_current_matrix): Mark scrolled rows for
16196 fringe update (to update buffer-boundaries / scrolling icons).
16197 (find_last_unchanged_at_beg_row): Handle exact width lines line
16199 (display_line): Overflow newline into fringe for rows that are
16200 exactly as wide as the window. Don't append space for newline
16202 (notice_overwritten_cursor): Explicitly clear cursor bitmap
16203 in fringe as if it had been overwritten.
16204 (erase_phys_cursor): Erase cursor bitmap in fringe.
16205 (syms_of_xdisp): Mark show-trailing-whitespace and
16206 void-text-area-pointer as user options.
16207 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
16209 * xterm.c (x_update_window_end): Call draw_window_fringes.
16210 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16211 in row instead of actually drawing fringe bitmaps.
16212 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16213 (x_draw_window_cursor): Draw cursor in fringe.
16215 * w32term.c (x_update_window_end): Call draw_window_fringes.
16216 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16217 in row instead of actually drawing fringe bitmaps.
16218 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16219 (w32_draw_window_cursor): Draw cursor in fringe.
16221 * macterm.c (x_update_window_end): Call draw_window_fringes.
16222 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16223 in row instead of actually drawing fringe bitmaps.
16224 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16225 (mac_draw_window_cursor): Draw cursor in fringe.
16227 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16229 * xterm.c (handle_one_xevent): Don't handle characters that are part
16230 of an old style (XLookupString) compose sequence.
16232 2004-01-15 Kenichi Handa <handa@m17n.org>
16234 * search.c (Freplace_match): Use make_multibyte_string or
16235 make_unibyte_string according to the buffer multibyteness.
16237 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
16239 * alloc.c (struct interval_block, struct string_block)
16240 (struct symbol_block, struct marker_block, live_string_p)
16241 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
16242 Better preserve alignment for objects in blocks.
16243 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
16245 * lread.c (defvar_per_buffer): Remove dead declaration.
16247 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
16250 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16252 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
16253 if a key press should pop down. Only pop down if a key is pressed
16254 outside the menu/dialog.
16255 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
16256 popup_get_selection.
16257 (create_and_show_dialog): Pass 1 for down_on_keypress to
16258 popup_get_selection.
16260 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16262 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
16263 BLOCK/UNBLOCK_INPUT.
16265 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16267 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
16270 2004-01-08 Kenichi Handa <handa@m17n.org>
16272 * editfns.c (Fformat): Fix '&' to '&&'.
16274 2004-01-08 Andreas Schwab <schwab@suse.de>
16276 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
16277 size if PSEUDOVECTOR_FLAG is set.
16279 2004-01-07 Kenichi Handa <handa@m17n.org>
16281 * charset.c (Fdeclare_equiv_charset): Fix docstring.
16283 * fontset.c (fontset_ref_via_base): Fix previous change.
16285 2004-01-07 Kim F. Storm <storm@cua.dk>
16287 * process.c (read_process_output): Only activate adaptive
16288 buffering if we read less than 256 bytes at a time.
16290 2004-01-06 Kim F. Storm <storm@cua.dk>
16292 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
16293 object and image object. Return glyph width and height.
16294 (mode_line_string, marginal_area_string): Ditto.
16296 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16297 (marginal_area_string): Fix prototypes.
16299 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
16300 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
16301 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
16303 * keyboard.c (make_lispy_position): Use modified mode_line_string,
16304 buffer_posn_from_coords, and marginal_area_string functions to
16305 include both string object and image object in the lispy position.
16306 Also add actual glyph width and height to position.
16307 (read_key_sequence): Use real buffer position from mouse
16308 event to find keymap property even when click is in marginal area.
16310 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
16311 mode_line_string and marginal_area_string functions to handle
16312 both string object and image object properties.
16314 2004-01-06 Andreas Schwab <schwab@suse.de>
16316 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
16319 2004-01-02 Andreas Schwab <schwab@suse.de>
16321 * macterm.c (emacs_options, x_initialized, same_x_server):
16322 Remove unused (and duplicated) definitions.
16324 2004-01-02 Kim F. Storm <storm@cua.dk>
16326 * process.h (struct Lisp_Process): New members for adaptive read
16327 buffering: adaptive_read_buffering, read_output_delay, and
16330 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
16331 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
16332 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
16333 (process_output_delay_count, process_output_skip): New vars.
16334 (Vprocess_adaptive_read_buffering): New variable.
16335 (make_process): Initialize adaptive read buffering members.
16336 (Fstart_process): Set adaptive_read_buffering member.
16337 (deactivate_process): Cleanup adaptive read buffering.
16338 (wait_reading_process_input): Temporarily omit delayed
16339 subprocesses from the set of file descriptors to read from;
16340 adjust the select timeout if we skipped any subprocesses.
16341 (read_process_output): Increase adaptive read buffering delay if
16342 we read less than a full buffer; reduce delay when we read a
16344 (send_process): Simplify using local Lisp_Process var.
16345 Reset adaptive read buffering delay after write.
16346 (init_process): Initialize process_output_delay_count and
16347 process_output_skip.
16348 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
16350 2004-01-01 Jason Rumney <jasonr@gnu.org>
16352 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
16354 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
16356 * print.c (Ferror_message_string): Add hyperlink in the docstring
16357 to the definition of `signal' in the Elisp manual.
16358 * eval.c (Fsignal): Ditto.
16360 2003-12-29 James Clark <jjc@jclark.com>
16362 * fns.c (internal_equal): Return t for two NaN arguments.
16364 2003-12-29 Richard M. Stallman <rms@gnu.org>
16366 * data.c (store_symval_forwarding): Handle setting
16367 default-fill-column, etc., by changing the value in
16368 buffers that use the default.
16370 * minibuf.c (Fset_minibuffer_window): Doc fix.
16372 * fileio.c (choose_write_coding_system): Ignore auto_saving
16373 if using the visited file for auto saves.
16374 (Fwrite_region): Don't update SAVE_MODIFF
16375 if auto-saving in visited file.
16377 2003-12-29 Kenichi Handa <handa@m17n.org>
16379 * dispextern.h (face_font_available_p): Extern it.
16381 * fontset.c (Voverriding_fontspec_alist): New variable.
16382 (lookup_overriding_fontspec): New function.
16383 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
16384 (fontset_font_pattern): Likewise.
16385 (regulalize_fontname): New function.
16386 (Fset_fontset_font): Call regulalize_fontname.
16387 (Fset_overriding_fontspec_internal): New function.
16388 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
16389 Defsubr Sset_overriding_fontspec_internal.
16391 * xfaces.c (face_font_available_p): New function.
16393 2003-12-28 Richard M. Stallman <rms@gnu.org>
16395 * buffer.c (Fother_buffer): Don't crash if BUF is nil
16396 or if its name is nil.
16398 * buffer.c (Fkill_buffer): Don't delete auto-save file
16399 if it's the same as the visited file.
16401 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
16403 * coding.c (Fcheck_coding_system): Doc fix.
16405 2003-12-28 Kim F. Storm <storm@cua.dk>
16407 * Makefile.in (eval.o): Depend on dispextern.h.
16409 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
16410 image glyph using image's ascent.
16411 (mode_line_string): Return image glyph as object clicked on.
16412 Adjust y0 for image glyph using image's ascent.
16414 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
16415 (struct glyph): New members, ascent and descent. Used to save
16416 this glyph's ascent and descent, instead of having.
16417 (struct glyph): Declare member face_id using FACE_ID_BITS.
16418 (find_hot_spot): Add prototype.
16420 * keyboard.c (Qimage): Remove extern (now in lisp.h).
16421 (QCmap): Declare extern.
16422 (make_lispy_position): When position is inside image hot-spot,
16423 use hot-spot element's id as posn element.
16425 * lisp.h (IMAGEP): New macro to test for image object type.
16426 (Qimage): Declare extern.
16428 * macfns.c (Qimage): Remove extern (now in lisp.h).
16429 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16431 * macterm.c (Qface, Qmouse_face): Remove unused externs.
16433 * w32fns.c (Qimage): Remove extern (now in lisp.h).
16434 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16436 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
16438 * w32term.c (Qface, Qmouse_face): Remove unused externs.
16440 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
16442 (Qrelative_width, Qalign_to): Remove unused variables.
16443 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
16444 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
16446 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
16447 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
16449 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
16450 than row's ascent and height, to get sensible height on tall rows.
16451 (build_desired_tool_bar_string): Remove Qimage extern.
16452 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
16453 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
16454 image glyph is alone on the last line.
16455 (append_glyph, append_composite_glyph, produce_image_glyph)
16456 (append_stretch_glyph): Set glyph's ascent and descent.
16457 (on_hot_spot_p): New function to check if position is inside an
16458 rectangular, circular, or polygon-shaped image hot-spot,
16459 (find_hot_spot): New function to search for image hot-spot.
16460 (Flookup_image_map): New defun to search for image hot-spot.
16461 (define_frame_cursor1): New aux function to determine frame
16463 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
16464 `pointer' text property and :pointer image property to control
16465 frame pointer shape. Detect image hot-spots for pointer and
16466 help_echo properties. Use define_frame_cursor1.
16467 (note_mouse_highlight): Use Vvoid_text_area_pointer.
16468 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
16469 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
16470 Vshow_text_cursor_in_void.
16472 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
16474 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
16475 (Qimage): Remove extern (now in lisp.h).
16476 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16478 * xmenu.c (show_help_event): Remove unused code.
16480 * xterm.c (Qface, Qmouse_face): Remove unused externs.
16481 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
16482 row's ascent and descent, to get a sensible height on tall rows.
16484 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
16486 * minibuf.c (Fcompleting_read): Undo previous change.
16488 2003-12-25 Lars Hansen <larsh@math.ku.dk>
16490 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
16491 Arguments GCPRO'ed in call to file name handler.
16493 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
16495 * termcap.c (tgetst1): Scan for "%pN"; if all
16496 N are continuous in [1,9], remove all "%pN".
16498 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16500 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
16502 * xfaces.c (lface_fully_specified_p): Take into account that
16503 MAC OS always have unspecified stipple.
16505 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16507 * tparam.c (tparam1): Add handling for `%pN', which
16508 means use param N for the next substitution.
16510 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16512 * xfaces.c (Fcolor_gray_p): Fix omission bug:
16513 In case `frame' is nil, consult the selected frame.
16514 (Fcolor_supported_p): Likewise.
16516 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
16518 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
16521 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
16522 and an integer. Adapt the introductory comment accordingly.
16523 (Fread_from_minibuffer): Delete code moved into read_minibuf.
16525 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
16527 (Fcompleting_read): Delete code moved into read_minibuf.
16528 (Ftest_completion): Make it handle obarrays and hash tables correctly.
16530 2003-12-03 Kenichi Handa <handa@m17n.org>
16532 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
16535 2003-12-01 Kenichi Handa <handa@m17n.org>
16537 * composite.c (syms_of_composite): Don't make the compostion hash
16540 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
16542 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
16543 * textprop.c (Fget_char_property_and_overlay): New function.
16544 (syms_of_textprop): Defsubr it.
16546 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16548 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
16549 to compile on terminal configuration.
16551 * fileio.c (Fread_file_name): Check use_file_dialog also before
16552 calling Fx_file_dialog.
16554 * fns.c (use_file_dialog): New variable.
16555 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
16557 2003-11-29 Kim F. Storm <storm@cua.dk>
16559 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
16560 (syms_of_msdos): Don't intern and staticpro them.
16562 2003-11-27 Kim F. Storm <storm@cua.dk>
16564 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
16565 coordinates relative to glyph at posn. If glyph is an image,
16566 return that as object at posn. Callers changed.
16567 (mode_line_string, marginal_area_string): Calculate and return
16568 pixel coordinates relative to glyph. Callers changed.
16570 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16571 (marginal_area_string): Fix prototypes.
16572 (window_box_left_offset, window_box_right_offset): Add prototypes.
16574 * frame.h (get_specified_cursor_type, get_window_cursor_type):
16577 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
16579 * keyboard.c (make_lispy_position): Add x and y coordinates
16580 relative to the current glyph as 7th element of position.
16581 If glyph is an image, return it in the object element.
16582 (read_key_sequence): Skip checks for keymap property in cases
16583 where POSN_STRING is not a string (e.g. an image).
16585 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
16586 (Vshow_text_cursor_in_void): New variable.
16587 (glyph_to_pixel_coords): Don't use negative hpos.
16588 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
16589 (append_stretch_glyph): Change ascent arg to be actual value
16590 in pixels rather than ratio to height. Callers changed.
16591 (calc_pixel_width_or_height): New aux function, implementing
16592 pixel based artihmetic for glyph widths and heights.
16593 (produce_stretch_glyph): Use calc_pixel_width_or_height for
16594 :width, :height, :align-to, and :ascent, thus allowing these to
16595 be specified in pixels as well as multiples of characters.
16596 Don't produce stretch glyphs with zero width or height.
16597 (get_specified_cursor_type): Declare static.
16598 (get_window_cursor_type): Declare static. Add glyph arg to be
16599 able to know when cursor is on an image; always substitute
16600 hollow-box cursor for filled-box cursor on images, to avoid
16601 negative images and flicker when blinking the cursor.
16602 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
16603 (note_mode_line_or_margin_highlight): Use non-text cursor rather
16604 than vertical scroll-bar cursor in display margins.
16605 (note_mouse_highlight): Use non-text cursor rather than text
16606 cursor in fringes and over images in the text area.
16607 Use non-text cursor when mouse pointer is outside editable text,
16608 i.e. in the void after end-of-line or end-of-buffer; this was
16609 already done for W32, but is now standard for all systems --
16610 user can toggle show-text-cursor-in-void to get old behaviour.
16611 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
16612 Vdisplay_pixels_per_inch.
16614 2003-11-25 Andreas Schwab <schwab@suse.de>
16616 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
16617 EMACS_INT to not lose bits.
16618 (Ffillarray): Don't set bits beyond the size of a bool vector.
16620 2003-11-25 Kim F. Storm <storm@cua.dk>
16622 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
16623 define this defun on systems that cannot use stderr as lvalue.
16625 2003-11-24 Gerd Moellmann <gerd@gnu.org>
16627 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
16628 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
16629 ld's default is incompatible with unexec.
16631 2003-11-23 Kim F. Storm <storm@cua.dk>
16633 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
16634 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
16635 (Fforce_window_update): New defun.
16636 (syms_of_window): Defsubr it.
16637 (Fset_window_margins, Fset_window_fringes): Doc fix.
16639 * print.c (Fredirect_debugging_output): New defun.
16640 (syms_of_print): Defsubr it.
16642 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
16644 * fns.c (Fset_char_table_parent): Doc fix.
16646 2003-11-22 Kim F. Storm <storm@cua.dk>
16648 * dispnew.c (buffer_posn_from_coords): Return actual row/column
16649 for glyph clicked on, rather than (unused) pixel positions.
16650 (mode_line_string, marginal_area_string): Change X and Y args to
16651 pointers for returning actual row/column for glyph clicked on.
16652 Simplify and optimize loops.
16654 * dispextern.h (mode_line_string, marginal_area_string):
16657 * keyboard.c (make_lispy_position): New function for generating
16658 mouse click positions from frame and pixel coordinates.
16659 Enhanced to return buffer position and actual row/column for
16660 events outside the text area using updated mode_line_string and
16661 marginal_area_string functions.
16662 Return left-fringe and right-fringe clicks as such, rather than
16663 clicks in text area.
16664 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
16665 pixel_to_glyph_coords, as we never use the results.
16666 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
16667 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
16668 Eliminate unused code in WHEEL_EVENT handling.
16669 (make_lispy_movement): Use make_lispy_position.
16671 * window.c (coordinates_in_window): Remove redundant tests.
16672 Fix returned X pixel value for left-margin.
16674 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
16675 mode_line_string and marginal_area_string parameters.
16677 2003-11-22 Lars Hansen <larsh@math.ku.dk>
16679 * w32.c (struct the_group, getgrgid): Add.
16680 * mac.c (struct my_group, getgrgid): Add.
16682 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16684 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
16686 2003-11-21 Lars Hansen <larsh@math.ku.dk>
16688 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
16689 include in call to file name handler. Optionally translate numeric
16690 UID and GID to strings. Update docstring.
16691 (directory_files_internal): Add parameter ID-FORMAT.
16692 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
16693 include in call to file name handler and call to
16694 directory_files_internal. Update Docstring.
16695 (Fdirectory_files): Add dummy parameter in call to
16696 directory_files_internal.
16697 * lisp.h (Qinteger): Add.
16698 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
16699 (Ffile_attributes): Add parameter.
16700 * data.c (Qinteger): Export.
16702 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16704 * fns.c (Freverse, Fnreverse): Doc fixes.
16706 2003-11-19 Kim F. Storm <storm@cua.dk>
16708 * xdisp.c (init_iterator): Initialize it->start to position
16709 before reseating (in case start position is invisible).
16710 (init_to_row_start): Set it->start to row-start.
16711 (redisplay_window): Accept optional_new_start if start position
16712 is invisible (in which case IT_CHARPOS overshoots PT).
16713 (display_line): Setup row->start from it->start (rather than
16714 it->current which is wrong if first char on line is invisible).
16715 When done, reseat it->start to it->current (= start of next row).
16716 (expose_area): Fix exposure of text area when first char (e.g. TAB)
16717 is only partially visible.
16719 * dispextern.h (struct it): New member start.
16721 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
16723 * alloc.c (make_float, Fcons): Clear the markbit at init time.
16724 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
16725 of block_index outside of the macro call.
16726 (Fgarbage_collect): Remove null code.
16728 * m/amdx86-64.h: Don't redefine XPNTR.
16730 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
16733 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
16734 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
16735 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
16737 * lisp.h (VALMASK): Only define for non-union type.
16739 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
16740 (XTYPE): Define unconditionally.
16741 (XSETTYPE): Remove one more remnant.
16742 (EQ): Define differently for the union and non-union cases.
16743 (INTMASK): New bit mask.
16744 (struct Lisp_Marker): Move down to prepare for upcoming patch.
16745 (GC_EQ): Delegate to EQ.
16747 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
16749 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16751 * xterm.c (x_window_to_scroll_bar): Move check of display to
16752 where window_id is compared.
16754 2003-11-17 Kim F. Storm <storm@cua.dk>
16756 * dispextern.h (struct it): New member first_vpos.
16758 * xdisp.c (start_display): Set it->first_vpos.
16759 (try_window_id): Use first_vpos to start display in first _text_
16760 line if no reusable lines at start of window with header line.
16762 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16764 * w32fns.c (XPutPixel):
16765 * w32bdf.c (w32_init_bdf_font):
16766 * sunfns.c (sel_read):
16767 * process.c (Fmake_network_process):
16768 * frame.c (store_frame_param):
16769 * fontset.c (Fset_fontset_font):
16770 * emacs.c (shut_down_emacs):
16771 * ccl.c (ccl_driver): Remove period at end of error message.
16773 * config.in: Regenerate.
16775 * xfns.c (x_window_to_frame, x_any_window_to_frame)
16776 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16777 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
16778 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
16779 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
16781 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
16783 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
16784 (XTmouse_position, handle_one_xevent): Pass Display* to
16785 x_window_to_scroll_bar.
16786 (x_window_to_scroll_bar): Take a Display* argument.
16787 Check that display for frame is equal to Display* argument.
16788 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
16789 x_display_info_for_display instead. Use Display in xev instead
16791 (x_dispatch_event): Call x_display_info_for_display.
16792 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
16793 (x_connection_closed): Call xg_display_close for GTK.
16794 (x_term_init): Call xg_display_open for additional displays.
16795 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
16798 * xmenu.c (single_menu_item, mouse_position_for_popup)
16799 (x_activate_menubar): Formatting adjustments.
16801 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
16804 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
16805 (xg_display_close, xg_create_default_cursor)
16806 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
16808 (xg_left_ptr_cursor): Remove.
16809 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
16811 (xg_win_to_widget): Take Display* argument, call
16812 gdk_xid_table_lookup_for_display.
16813 (xg_create_frame_widgets, xg_get_file_name, create_menus)
16814 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
16815 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
16816 in FRAME_X_DISPLAY_INFO.
16817 (xg_get_scroll_id_for_window): Take Display* argument.
16818 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
16819 (xg_initialize): Remove xg_left_ptr_cursor.
16821 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
16823 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
16825 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16827 * xterm.c (x_detect_focus_change): Do not change focus frame for
16828 Enter/LeaveNotify if the current focus frame has explicit focus.
16830 2003-11-14 Kim F. Storm <storm@cua.dk>
16832 * dispnew.c (update_text_area): Fix redisplay error when hscroll
16833 is active and first glyph is only partially visible.
16835 2003-11-13 Kenichi Handa <handa@m17n.org>
16837 * xdisp.c (select_frame_for_redisplay): New function.
16838 (redisplay_internal): Record also selected_frame for
16839 unwind_redisplay. Call select_frame_for_redisplay before
16840 redrawing each frame.
16841 (unwind_redisplay): Argument changed to a cons.
16843 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
16845 * fns.c (Fstring_to_multibyte): Doc fix.
16847 2003-11-11 Kenichi Handa <handa@m17n.org>
16849 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16851 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16853 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
16854 program specified positions.
16856 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16858 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
16860 2003-11-08 Kenichi Handa <handa@m17n.org>
16862 * Makefile.in (lisp): Add kannada.el.
16863 (shortlisp): Likewise.
16865 2003-11-07 Kenichi Handa <handa@m17n.org>
16867 * coding.c (coding_allocate_composition_data):
16868 Reset coding->composing to COMPOSITION_NO.
16869 (coding_restore_composition): Detect invalid composition data.
16870 Give Fstring and Fvector a Lispy integer, not C int.
16872 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
16874 * floatfns.c (Flogb): Don't use VALMASK.
16876 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
16877 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
16879 * lisp.h (XINT): Move the cast to clarify what is going on.
16880 (GCTYPEMASK, XSETTYPE): Remove.
16881 (XGCTYPE): Make it an alias of XTYPE.
16883 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16885 * xterm.c (x_term_init): Fix formatting.
16887 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16889 * gtkutil.h (xg_have_tear_offs): Declare.
16890 (xg_keep_popup, xg_did_tearoff): Remove.
16892 * gtkutil.c: Remove variable xg_did_tearoff.
16893 (xg_have_tear_offs): New function.
16894 (tearoff_remove): Just decrease xg_detached_menus.
16895 (tearoff_activate): Increase xg_detached_menus and call
16896 tearoff_remove when tearoff is removed.
16897 (xg_keep_popup): Remove function.
16898 (create_menus): Give add_tearoff_p as argument to recursive
16899 call to create_menus.
16900 (xg_create_widget): Use variables instead of multiple
16901 strcmp. Tell create_menus to create tear off only for
16903 (xg_update_menubar): Change title for a detached menu also.
16904 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
16906 (xg_initialize): Initialize xg_detached_menus, remove
16907 initialization of xg_did_tearoff.
16909 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
16910 xg_have_tear_offs returns non-zero.
16911 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
16912 call to xg_keep_popup.
16914 2003-11-01 Andrew Choi <akochoi@shaw.ca>
16916 * macterm.c (XTread_socket): Handle menubar selection and grow
16917 window only for mouseDown events.
16919 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16921 * xterm.c (x_term_init): For GTK part, increase x_initialized
16922 to check for more than one display. Use error instead of return 0.
16924 2003-10-31 Andrew Choi <akochoi@shaw.ca>
16926 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
16927 (copy_dysymtab): Call it.
16929 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
16931 * eval.c (Fdefvaralias): Doc fix.
16933 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
16935 * data.c (Fsetplist): Doc fix.
16937 2003-10-14 Lute Kamstra <lute@gnu.org>
16939 * window.c (Fset_window_fringes): Clarify docstring.
16941 2003-10-14 Kim F. Storm <storm@cua.dk>
16943 * window.c (Fset_window_margins): Simplify arg checking.
16945 2003-10-13 Richard M. Stallman <rms@gnu.org>
16947 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
16948 (print_partial_compiled_pattern): Replace assert with a printout.
16949 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
16951 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
16953 * window.c (Fset_window_margins): Allow only integers as args.
16954 (syms_of_window) <special-display-buffer-names,
16955 special-display-regexps>: Doc fixes.
16957 2003-10-13 Lute Kamstra <lute@gnu.org>
16959 * window.c (Fset_window_fringes): Elaborate docstring.
16961 2003-10-12 Andrew Choi <akochoi@shaw.ca>
16963 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
16965 * s/darwin.h (GC_MARK_STACK): Define.
16967 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16969 * window.c (shrink_windows): New function.
16970 (size_window): Call shrink_windows to calculate window sizes when
16971 shrinking frame with more than one window.
16973 2003-10-12 Kim F. Storm <storm@cua.dk>
16975 * xdisp.c (compute_fringe_widths): Doc fix.
16977 2003-10-08 Kenichi Handa <handa@m17n.org>
16979 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
16981 2003-10-07 Kenichi Handa <handa@m17n.org>
16983 * coding.c (Qcoding_system_define_form): New variable.
16984 (syms_of_coding): Intern and staticpro it.
16985 (Fcheck_coding_system): Try to autoload the definition of
16988 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
16990 * fns.c (Frequire): Doc fix.
16992 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16994 * xfns.c (Fx_send_client_event): New function as a base for
16995 manipulating extended window manager hints.
16996 (Fx_send_client_event): Remove unused variable s.
16998 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16999 that function is removed.
17001 * xterm.c (x_set_offset): Use move_offset_left/top instead of
17002 x/y_pixels_outer_diff.
17003 (x_check_expected_move): Calculate move_offset_left/top.
17005 * xterm.h (struct x_output): New members: move_offset_top/left.
17007 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
17008 call x_set_offset directly.
17010 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
17012 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
17014 * xterm.c (x_delete_display): Free font names and font_encoder
17015 in dpyinfo->font_table.
17017 * xfns.c (Fx_close_connection): Only call XFreeFont here.
17018 Move xfree of font names to x_delete_display.
17020 * xterm.h (struct x_display_info): New member, wm_type.
17021 (struct x_output): New members, expected_top/left and
17022 check_expected_move.
17024 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
17026 (handle_one_xevent): Rename x_check_expected_move from
17027 x_check_fullscreen_move.
17028 (x_set_offset): Only add WM decoration sizes to modified_top/left
17029 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
17030 (x_check_expected_move): Rename from x_check_fullscreen_move.
17031 Removed fullscreen specific code. Use check_expected_move,
17032 expected_left/top instead. Also, set wm_type.
17033 (x_term_init): Initialize wm_type to unknown.
17035 * frame.c (x_fullscreen_move): Remove addition of WM decoration
17038 2003-10-03 Kenichi Handa <handa@m17n.org>
17040 * macterm.c (x_load_font): Clear all members of FONTP before start
17043 2003-10-02 Kenichi Handa <handa@m17n.org>
17045 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
17046 before calling find_ccl_program_func. Call find_ccl_program_func
17047 only when fontp->font_encoder is not NULL.
17049 * xterm.c (x_load_font): Clear all members of FONTP before start
17052 2003-10-03 John Paul Wallington <jpw@gnu.org>
17054 * keymap.c (map_keymap): Don't abort when binding is a vector.
17056 2003-10-02 Jason Rumney <jasonr@gnu.org>
17058 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
17059 Sync dependencies with Makefile.in.
17060 (alloca.o): Remove.
17062 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
17065 * w32bdf.c (w32_load_bdf_font): Likewise.
17067 2003-09-30 Richard M. Stallman <rms@gnu.org>
17069 * term.c (set_tty_color_mode): Calculate current_mode_spec
17070 regardless of value of VAL.
17072 * intervals.c (graft_intervals_into_buffer):
17073 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
17074 Handle over_used when splitting UNDER.
17076 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17078 * regex.c (regex_compile): Free the stack when returning from function.
17080 2003-09-28 Kenichi Handa <handa@m17n.org>
17082 * fontset.c (Finternal_char_font): Change return value to
17083 cons (FONT-NAME . GLYPH-CODE).
17085 2003-09-28 Eli Zaretskii <eliz@gnu.org>
17087 * term.c (tty_setup_colors): Treat any negative argument as -1.
17089 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
17091 * process.c (send_process): Delete unused temp_buf.
17093 2003-09-26 Dave Love <fx@gnu.org>
17095 * xterm.c (x_bitmap_mask): Declare.
17097 2003-09-25 Dave Love <fx@gnu.org>
17099 * Makefile.in (fns.o): Depend on md5.h.
17101 2003-09-25 Kim F. Storm <storm@cua.dk>
17103 * window.c (set_window_buffer): Fix redisplay problems when
17104 switching between buffers with different display margin widths.
17106 2003-09-23 Kim F. Storm <storm@cua.dk>
17108 * process.c (set_socket_option): Fix :bindtodevice option.
17109 (Fset_network_process_option): Update process contact list when
17110 setting option succeeds.
17111 (Fmake_network_process): Doc fix.
17113 2003-09-23 Dave Love <fx@gnu.org>
17115 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
17117 2003-09-22 Eli Zaretskii <eliz@gnu.org>
17119 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
17120 color mode is an integer number (it could be -1).
17122 2003-09-22 Richard M. Stallman <rms@gnu.org>
17124 * intervals.c (graft_intervals_into_buffer): Correct the main loop
17125 in the case where OVER is longer than UNDER.
17127 2003-09-22 Masatake YAMATO <jet@gyve.org>
17129 * window.c (Fset_window_scroll_bars): Validate the value of
17132 2003-09-21 Kim F. Storm <storm@cua.dk>
17134 * frame.c (Vdefault_frame_scroll_bars): New variable.
17135 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
17136 (syms_of_frame): DEFVAR_LISP it, and initialize according to
17137 window-system default scroll bar position.
17139 * window.c (Fwindow_scroll_bars): Doc fix.
17141 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17143 * xterm.c (x_set_offset): Take window manager decorations into account.
17145 2003-09-19 Richard M. Stallman <rms@gnu.org>
17147 * atimer.h: Don't include lisp.h.
17148 (P_): Define it here (as well as elsewhere).
17150 * print.c (Fprin1_to_string): Move the PRINTPREPARE
17151 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
17153 * data.c (Fvariable_binding_locus): New function.
17154 (syms_of_data): defsubr it.
17155 (Flocal_variable_p): Delete duplicate call to indirect_variable.
17157 2003-09-18 Dave Love <fx@gnu.org>
17159 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
17161 * process.c (Fnetwork_interface_info): Fix type error.
17162 (Fnetwork_interface_list): Doc fix.
17163 (read_process_output, read_process_output): Delete unused var.
17165 2003-09-17 Kim F. Storm <storm@cua.dk>
17167 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
17168 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
17169 (Fnetwork_interface_info): Check that ifreq struct has required
17170 fields before accessing them; this requires that those fields are
17171 defined as macros, which may be too restrictive on some platforms,
17172 but it is better than failing on other platforms.
17173 (syms_of_process): Only defsubr above fns when included.
17175 2003-09-17 Dave Love <fx@gnu.org>
17177 * unexalpha.c: Don't include varargs.h.
17179 2003-09-17 Kim F. Storm <storm@cua.dk>
17181 * process.c (Fset_process_sentinel): Add sentinel to childp plist
17182 for network process.
17183 (socket_options): Add `:' prefix to option names. Add optbit field.
17184 (set_socket_option): Remove no_error arg and special handling of s < 0.
17185 Return 1<<optbit for known option, 0 for unknown.
17186 Do not interpret 0 as false for boolean option (only nil).
17187 Pass failed option and value to report_file_error.
17188 (Fset_network_process_options): Replace by Fset_network_process_option.
17189 (Fset_network_process_option): New function to set just one option.
17190 (Fmake_network_process): Allow :coding arg to be a cons.
17191 Allow :server arg to be an integer specifying backlog size.
17192 Remove :options arg, and allow options to be specified directly
17193 as :KEY, VALUE pairs. Parse these options before binding socket.
17194 As before, :reuseaddr t is default for a server process, but this
17195 can now be disabled by specifying :reuseaddr nil.
17196 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
17197 (init_process): Availability of network options is now checked with
17198 simpler syntax (featurep 'make-network-process :OPTION); use loop to
17200 (syms_of_process): Fix defsubr's for the replaced functions.
17202 2003-09-16 Dave Love <fx@gnu.org>
17204 * Makefile.in: Depend on coding.h.
17206 2003-09-14 Kim F. Storm <storm@cua.dk>
17208 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
17209 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
17210 (syms_of_process): Defsubr them.
17212 * config.in: Regenerate.
17214 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17216 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
17217 * m/news-r6.h (XUNMARK): Remove.
17218 * m/mips.h (XUNMARK): Remove.
17219 * m/mips-siemens.h (XUNMARK): Remove.
17220 * m/iris4d.h (XUNMARK): Remove.
17221 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
17223 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17225 * lisp.h (VALBITS): Don't remove 1 for the markbit.
17226 (union Lisp_Object): Use unsigned int for types. Remove markbit.
17227 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
17228 (XTYPE): Use unsigned right-shift.
17229 (XMARKBIT, XMARK, XUNMARK): Remove.
17231 * alloc.c (init_intervals, init_symbol, init_marker):
17232 Don't preallocate anything.
17233 (Fgarbage_collect, mark_object): Ignore the markbit.
17235 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
17237 2003-09-08 Lute Kamstra <lute@gnu.org>
17239 * xdisp.c (pint2hrstr): New function.
17240 (decode_mode_spec): Add `%i' and `%I' specs.
17241 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
17242 for `mode-line-format'.
17244 2003-09-07 Andreas Schwab <schwab@suse.de>
17246 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
17249 2003-09-07 Eli Zaretskii <eliz@gnu.org>
17251 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
17253 2003-09-03 Kim F. Storm <storm@cua.dk>
17255 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
17256 change (superseded by 2002-08-30 change); the default blink-off
17257 cursor is now again "no cursor".
17259 2003-09-01 Jason Rumney <jasonr@gnu.org>
17261 * makefile.w32-in (alloca.o): Remove.
17262 (coding.o): Depend on intervals.h
17263 (emacs.o, bytecode.o): Depend on window.h
17265 2003-09-01 Dave Love <fx@gnu.org>
17267 * Makefile.in (alloca.o): Remove commands.
17268 (coding.o): Depend on intervals.h composite.h window.h.
17269 (emacs.o): Depend on window.h keyboard.h keymap.h.
17270 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
17271 (bytecode.o): Depend on window.h.
17273 2003-08-31 Jason Rumney <jasonr@gnu.org>
17275 * w32term.c (w32_per_char_metric): Allow cached metrics to be
17276 returned even when font_type is unknown.
17278 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
17280 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17282 * xterm.c (x_term_init): Initialize new fields in x_display_info.
17284 * xterm.h (struct x_display_info): Add red/green/blue_bits and
17287 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
17288 calculate pixel value.
17290 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
17292 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
17293 Don't tell redisplay display is accurate when it's actually been
17294 paused for pending input.
17296 2003-08-29 Richard M. Stallman <rms@gnu.org>
17298 * dispnew.c (adjust_glyph_matrix): Call window_box
17299 whenever W is nonzero.
17301 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17302 (Fkill_local_variable, Fmake_variable_frame_local)
17303 (Flocal_variable_p, Flocal_variable_if_set_p):
17304 Use indirect_variable to trace thru variable aliases.
17306 * config.in: Updated.
17308 * callint.c (Fcall_interactively): Save and restore
17309 Vthis_command, Vthis_original_command, real_this_command,
17310 and current_kboard->Vlast_command.
17312 * abbrev.c (Fexpand_abbrev): Insert before deleting.
17314 2003-08-29 Gerd Moellmann <gerd@gnu.org>
17316 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
17318 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
17320 * coding.c (decode_coding_iso2022): Initialize local variable c2.
17321 (decode_coding_sjis_big5): Likewise.
17323 2003-08-27 Jason Rumney <jasonr@gnu.org>
17325 * w32.c (sys_pipe): Protect against file descriptor overflow.
17327 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
17329 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
17331 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
17333 * xfns.c (Vgtk_version_string): New variable.
17334 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
17336 2003-08-24 Eli Zaretskii <eliz@gnu.org>
17338 * term.c (term_init): Remove `const' from buffer_size's declaration.
17340 * Makefile.in (msdos.o): Depend on intervals.h.
17342 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
17344 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17346 * xterm.h (struct x_display_info): New fields: client_leader_window
17347 and Xatom_wm_client_leader.
17349 * xterm.c (x_initialize): Move call to x_session_initialize to ...
17350 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
17352 * xsmfns.c (create_client_leader_window): New function.
17353 (x_session_initialize): Call create_client_leader_window, take
17354 dpyinfo as argument.
17356 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
17358 * Makefile.in (xsmfns.o): Add more depenedencies.
17360 2003-08-21 Dave Love <fx@gnu.org>
17362 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
17364 2003-08-21 Kenichi Handa <handa@m17n.org>
17366 * term.c (term_init): Fix previous change; don't rely on the
17367 length of `buffer' if TERMINFO is defined.
17369 2003-08-20 Dave Love <fx@gnu.org>
17371 * atimer.h: Include lisp.h.
17373 * lisp.h (EMACS_LISP_H): New.
17374 (popup_activated_flag): Don't declare.
17376 * alloca.c: Some merging with gnulib. Change logic and doc
17377 concerning (x)malloc/(x)free -- no longer Emacs-specific.
17378 [DO_BLOCK_INPUT]: Don't include lisp.h.
17379 (xmalloc, xfree): Declare.
17380 (malloc): Don't declare.
17382 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
17383 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
17384 atimer.h, blockinput.h.
17386 * alloc.c (lisp_align_malloc): Change type of `aligned'.
17388 * alloca.s: Remove.
17390 2003-08-19 Gerd Moellmann <gerd@gnu.org>
17392 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
17395 * term.c (term_init): Use a buffer of size 4096 for tgetent since
17396 FreeBSD returns something longer than 2044. Abort if the end of
17397 the buffer is overwritten.
17399 2003-08-19 Miles Bader <miles@gnu.org>
17401 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
17403 2003-08-19 Gerd Moellmann <gerd@gnu.org>
17405 * alloc.c (lisp_align_malloc): Check for memory full when
17406 allocating ablocks, which also avoids freeing a pointer into an
17409 * puresize.h (BASE_PURESIZE): Increase to 1100000.
17411 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
17413 2003-08-16 Richard M. Stallman <rms@gnu.org>
17415 * editfns.c (Fencode_time): Doc fix.
17417 2003-08-16 David Ponce <david@dponce.com>
17419 * fileio.c (Fwrite_region): Fix conditional expression to issue
17422 2003-08-16 Juri Linkov <juri@jurta.org>
17424 * syntax.c (Fforward_word): Argument changed to optional.
17425 Set default value to 1.
17427 2003-08-15 Kenichi Handa <handa@m17n.org>
17429 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
17431 (best_matching_font): Once we find a better scalable font, set
17432 non_scalable_has_exact_height_p to 1.
17433 (try_font_list): Call try_alternative_families to try any family
17434 with the given registry.
17436 2003-08-09 Andreas Schwab <schwab@suse.de>
17438 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
17440 * print.c (print_string): Fix printing of multibyte string with
17441 nontrivial printcharfun.
17443 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17445 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
17447 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
17449 2003-07-31 Kenichi Handa <handa@m17n.org>
17451 * process.c (read_process_output): Return the actually read bytes
17452 instead of the result of decoding.
17454 2003-07-31 Kenichi Handa <handa@m17n.org>
17456 * xterm.h (struct x_bitmap_record): New member have_mask.
17458 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
17460 (x_create_bitmap_from_file): Likewise.
17461 (x_destroy_bitmap): Check have_mask member before freeing a mask.
17462 (x_destroy_all_bitmaps): Likewise.
17463 (x_create_bitmap_mask): Set have_mask member to 1.
17465 2003-07-30 Richard M. Stallman <rms@gnu.org>
17467 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
17469 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17471 * gtkutil.c (xg_mark_data): Update calls to mark_object.
17473 2003-07-29 Richard M. Stallman <rms@gnu.org>
17475 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
17476 Conditionalize XIM code on HAVE_XIM.
17478 * fns.c (Fclear_string): New function.
17479 (syms_of_fns): defsubr it.
17481 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17483 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17485 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
17487 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
17489 * buffer.c (delete_all_overlays): New function.
17490 * buffer.h (delete_all_overlays): Declare.
17491 * coding.c (run_pre_post_conversion_on_str):
17492 * print.c (temp_output_buffer_setup):
17493 * fileio.c (Finsert_file_contents):
17494 * minibuf.c (get_minibuffer): Use it.
17496 2003-07-22 Andrew Choi <akochoi@shaw.ca>
17498 * unexmacosx.c (unexec_regions_sort_compare):
17499 (unexec_regions_merge): New functions. Sort and merge unexec
17500 regions before dumping them.
17502 2003-07-22 Dave Love <fx@gnu.org>
17504 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
17506 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
17508 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
17509 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
17510 MARKBIT as the gcmarkbit for strings.
17512 2003-07-21 Richard M. Stallman <rms@gnu.org>
17514 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
17516 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
17517 (syms_of_fns): Corresponding change.
17519 * alloc.c (syms_of_alloc): Doc fixes.
17521 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
17523 * s/netbsd.h: Use -Wl syntax.
17525 2003-07-17 Richard M. Stallman <rms@gnu.org>
17527 * xterm.c (xim_initialize): Redo 6/24 change.
17529 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
17531 * buffer.c (copy_overlays): Use EMACS_INT for positions.
17532 (Fswitch_to_buffer): Don't signal an error when switching to the same
17533 buffer in a dedicated window.
17535 * alloc.c: Use bitmaps for cons, as was done for floats.
17536 (init_float, init_cons): Let the normal code allocate the first block.
17537 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
17538 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
17540 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
17541 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
17542 (live_cons_p): Check the pointer is not past the `conses' array.
17543 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
17544 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
17545 (survives_gc_p): Use CONS_MARKED_P and simplify.
17546 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
17548 2003-07-13 Paul Eggert <eggert@twinsun.com>
17550 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
17551 puts it into BSS instead, at least on Solaris 8 and 9.
17552 This is a valid optimization, and it may occur on other platforms,
17553 so Emacs should not assume that initializing a static variable to
17554 zero puts it into data.
17555 * alloc.c (pure, staticvec):
17556 Initialize these arrays to nonzero, so that they're not
17557 put into BSS by that optimization.
17559 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
17561 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
17562 (lisp_align_malloc): Use posix_memalign is available.
17563 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
17564 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
17565 for consistency. Update users.
17567 2003-07-13 Richard M. Stallman <rms@gnu.org>
17569 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
17571 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
17573 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
17574 and use the Gtk+ function gtk_window_icon_from_file if available.
17576 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
17577 handle mask of bitmaps.
17578 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
17580 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
17582 * xterm.h (xg_set_icon): New function.
17584 2003-07-12 Paul Eggert <eggert@twinsun.com>
17586 * unexelf.c (unexec): Consider a section to precede the .bss
17587 section if its addresses overlap that of .bss.
17589 2003-07-12 Richard M. Stallman <rms@gnu.org>
17591 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
17593 * config.in (HAVE_CRTIN): Add #undef.
17594 (INLINE): Really inline only if OPTIMIZE is defined.
17596 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
17598 (START_FILES_1, END_FILES_1): New macros (conditional).
17599 (LD_SWITCH_SYSTEM_TEMACS): Define.
17601 * s/openbsd.h: Don't include bsd4-3.h.
17602 (TERMINFO): Define.
17603 (LIBS_TERMCAP): Define.
17604 (LD_SWITCH_SYSTEM): Define (two definitions).
17606 * xfns.c: Include libpng/png.h instead of png.h.
17608 2003-07-11 Andreas Schwab <schwab@suse.de>
17610 * buffer.c (modify_overlay): Update prototype.
17611 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
17614 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17616 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
17617 (struct interval): Move to intervals.h.
17618 (struct Lisp_Marker): Use EMACS_INT for position info.
17619 (forward_point): Remove prototype of defunct function.
17620 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
17621 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
17622 (syms_of_textprop, set_text_properties): Remove prototypes that are
17623 already in intervals.h.
17625 * intervals.h (struct interval): Move from lisp.h.
17626 Use EMACS_INT for position and size info.
17628 * coding.c: Include intervals.h for Fset_text_properties.
17630 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17631 position and length information.
17633 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17635 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17636 position and length information.
17638 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17640 Change overlays_after and overlays_before so the overlays themselves
17641 are linked into lists, rather than using cons cells. After all each
17642 Lisp_Misc already occupies 5 words, so we can add a `next' field to
17643 Lisp_Overlay for free and save up one cons cell per overlay (not
17644 to mention one indirection when traversing the list of overlay).
17646 * lisp.h (struct Lisp_Overlay): New field `next'.
17648 * buffer.h (struct buffer): Change overlays_before and overlays_after
17649 from Lisp lists of overlays to pointers to overlays.
17651 * buffer.c (overlay_strings, recenter_overlay_lists):
17652 Fix typo in eassert in last commit.
17653 (unchain_overlay): New function.
17654 (add_overlay_mod_hooklist): Use AREF.
17655 (copy_overlays, reset_buffer, overlays_at, overlays_in)
17656 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
17657 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
17658 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
17659 (report_overlay_modification, evaporate_overlays, init_buffer_once):
17660 Adjust to new type of overlays_(before|after).
17662 * alloc.c (mark_object): Mark the new `next' field of overlays.
17663 (mark_buffer): Manually mark the overlays_(after|before) fields.
17665 * coding.c (run_pre_post_conversion_on_str):
17666 * editfns.c (overlays_around):
17667 * xdisp.c (load_overlay_strings):
17668 * fileio.c (Finsert_file_contents):
17669 * indent.c (current_column):
17670 * insdel.c (signal_before_change, signal_after_change):
17671 * intervals.c (set_point_both):
17672 * print.c (temp_output_buffer_setup): Use new type for
17673 overlays_(before|after).
17675 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
17677 * buffer.c (report_overlay_modification): Don't run hooks while
17678 traversing the list of overlays.
17680 * buffer.h (struct buffer): Use an int for overlay_center.
17681 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17682 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17684 * buffer.c (reset_buffer, recenter_overlay_lists)
17685 (adjust_overlays_for_insert, adjust_overlays_for_delete)
17686 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
17687 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
17688 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17689 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17691 * xdisp.c (fast_find_position): Remove unused var.
17693 * cmds.c (Qexpand_abbrev): New sym.
17694 (syms_of_cmds): Initialize it.
17695 (internal_self_insert): Use it to call expand-abbrev.
17697 2003-07-09 Kim F. Storm <storm@cua.dk>
17699 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
17700 was configured with --without-xim.
17701 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
17703 2003-07-07 Richard M. Stallman <rms@gnu.org>
17705 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
17707 * alloc.c (Fgarbage_collect): Doc fix.
17709 2003-07-07 Nozomu Ando <nand@mac.com>
17711 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
17713 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17715 * minibuf.c (read_minibuf): UNGCPRO before returning.
17716 (Ftry_completion, Fall_completions): Doc fix.
17718 * alloc.c (live_float_p): Check that p is not past the `floats' array,
17719 now that `floats' is not the last element of the struct any more.
17721 2003-07-06 Jason Rumney <jasonr@gnu.org>
17723 * w32term.h (ClipboardSequence_Proc): New type.
17725 * w32fns.c (clipboard_sequence_fn): New variable.
17726 (globals_of_w32fns): Initialize it.
17728 * w32select.c (last_clipboard_sequence_number): New variable.
17729 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
17730 number if possible.
17732 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17734 * m/amdx86-64.h (MARKBIT):
17735 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
17736 MARKBIT and ARRAY_MARK_FLAG any more.
17738 * m/hp800.h (XSETMARKBIT):
17739 * m/sr2k.h (XSETMARKBIT):
17740 * lisp.h (XSETMARKBIT): Remove unused macro.
17742 * lisp.h (mark_object): Change prototype.
17744 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
17745 (last_marked): Change accordingly.
17746 (mark_interval, mark_maybe_object, mark_maybe_pointer)
17747 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
17748 (mark_buffer): Update calls to mark_object.
17750 * bytecode.c (mark_byte_stack):
17751 * fns.c (sweep_weak_table):
17752 * keyboard.c (mark_kboards): Update calls to mark_object.
17754 2003-07-06 Jason Rumney <jasonr@gnu.org>
17756 * alloc.c (struct ablock): Only include padding when there is some.
17758 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
17760 * alloc.c (ALIGN): Add casts to simplify usage.
17761 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
17762 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
17763 (struct ablock, struct ablocks): New types.
17764 (free_ablock): New global var.
17765 (lisp_align_malloc, lisp_align_free): New functions.
17766 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
17767 (struct float_block): Reorder and add gcmarkbits.
17768 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
17769 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
17770 (init_float, make_float): Use lisp_align_malloc.
17771 (free_float, live_float_p): Don't use `type' any more.
17772 (make_float): Use FLOAT_UNMARK to access to mark bit.
17773 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
17774 Use FLOAT_MARKED_P to access the mark bit.
17775 (pure_alloc): Simplify use of ALIGN.
17776 (mark_object): Use FLOAT_MARK to access the mark bit.
17777 (gc_sweep): Use new macros to access the float's mark bit.
17778 (init_alloc_once): Init free_ablock.
17780 * lisp.h (struct Lisp_Float): Remove unused field `type'.
17782 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
17784 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
17785 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
17786 (allocate_buffer): Move.
17787 (string_bytes): Don't mask markbit of `size_byte'.
17788 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17789 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
17790 Use the `size' field of buffers (rather than the `name' field) for
17791 the mark bit, as is done for all other vectorlike objects.
17792 Use the new macros to access the mark bit of vectorlike objects.
17794 2003-06-26 Richard M. Stallman <rms@gnu.org>
17796 * puresize.h (BASE_PURESIZE): Increment base size.
17798 * xdisp.c (fast_find_position): Enable Gerd's new definition.
17800 * xterm.c (xim_initialize): Undo previous change.
17802 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
17804 * alloc.c (survives_gc_p): Simplify.
17806 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
17808 * window.c (Fset_window_dedicated_p): Simplify.
17809 (display_buffer_1): Don't raise the win from which minibuf was entered.
17810 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
17811 (Fminibuffer_selected_window): Simplify.
17813 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
17815 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
17816 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
17818 * insdel.c (check_markers, adjust_markers_for_delete)
17819 (adjust_markers_for_insert, adjust_markers_for_replace)
17820 (prepare_to_modify_buffer, RESTORE_VALUE):
17821 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
17822 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
17823 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
17824 * alloc.c (Fmake_marker, free_marker, gc_sweep):
17825 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
17826 * editfns.c (save_excursion_restore, transpose_markers):
17827 * window.c (delete_window):
17828 * xdisp.c (message_dolog): Update for new types.
17830 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17832 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
17833 (realize_default_face): Use default_face_done_p for the force_p
17834 argument to set_lface_from_font_name. Set default_face_done_p to one.
17836 * frame.c (make_frame): Initialize default_face_done_p.
17838 * frame.h (struct frame): Add default_face_done_p.
17840 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
17843 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
17845 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
17846 Initialize the new field `gcmarkbit'.
17847 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
17848 (mark_interval_tree): Don't mark the tree separately from the nodes.
17849 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
17850 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17851 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
17853 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
17854 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
17855 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
17856 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
17857 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
17859 2003-06-24 Dave Love <fx@gnu.org>
17861 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
17863 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
17866 2003-06-21 Richard M. Stallman <rms@gnu.org>
17868 * fileio.c (Fwrite_region): Alternate messages
17869 for append and partial write.
17871 * keyboard.c (read_key_sequence): When converting upcase fn key to
17872 downcase, update fkey and keytran so `backspace' gets translated.
17874 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
17876 * process.c (wait_reading_process_input): Don't signal SIGIO
17879 2003-06-17 Kenichi Handa <handa@m17n.org>
17881 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
17884 * xselect.c: Don't include charset.h, coding.h, composite.h.
17885 (Qforeign_selection): New variable.
17886 (syms_of_xselect): Intern and static it.
17887 (selection_data_to_lisp_data): Return a unibyte string made from
17888 data with `foreign-selection' text property.
17890 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
17892 * termhooks.h (EVENT_INIT): New macro.
17894 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
17896 * alloc.c (mark_kboards): Move to keyboard.c.
17898 * keyboard.c (record_asynch_buffer_change, read_avail_input):
17899 * xterm.c (x_dispatch_event):
17900 * xmenu.c (find_and_call_menu_selection):
17901 * xdisp.c (handle_tool_bar_click):
17902 * w32menu.c (menubar_selection_callback):
17903 * sysdep.c (kbd_input_ast, read_input_waiting):
17904 * msdos.c (dos_rawgetc):
17905 * macterm.c (mac_check_for_quit_char):
17906 * macmenu.c (menubar_selection_callback):
17907 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
17908 data to kbd_buffer_store_event.
17910 2003-06-15 Kim F. Storm <storm@cua.dk>
17912 * xdisp.c (x_fix_overlapping_area): Always use area relative X
17913 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
17915 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
17917 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
17919 2003-06-12 Kenichi Handa <handa@m17n.org>
17921 * fileio.c (Fwrite_region): Save and restore restriction.
17923 2003-06-12 Dave Love <fx@gnu.org>
17925 * alloca.c (alloca): Declare arg as size_t.
17927 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
17928 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
17930 2003-06-11 Dave Love <fx@gnu.org>
17932 * search.c (shrink_regexp_cache): Use xrealloc.
17933 (syms_of_search): Use xmalloc.
17935 2003-06-10 Kim F. Storm <storm@cua.dk>
17937 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
17938 Adjust phys_cursor.x to be relative to window box, rather than
17939 text area before checking -- to ensure cursor is redrawn when
17941 Note: This also fixes a similar (older) bug if display margins
17944 2003-06-06 Kenichi Handa <handa@m17n.org>
17946 * coding.c (encoding_buffer_size): If coding->type is
17947 coding_type_ccl, double magnification on CRLF encoding.
17949 2003-06-06 Jason Rumney <jasonr@gnu.org>
17951 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
17952 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
17954 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
17957 2003-06-05 Dave Love <fx@gnu.org>
17959 * strftime.c: Merge changes from gnulib.
17961 * mktime.c (__mktime_internal): Merge changes from gnulib
17962 involving year 69 and dst2.
17964 Changes to merge with gnulib version and be consistent with the
17967 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
17968 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
17969 [HAVE_LOCALE_H]: Include locale.h.
17970 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
17972 2003-06-05 Kim F. Storm <storm@cua.dk>
17974 * window.c (coordinates_in_window): Convert X and Y to window
17975 relative coordinates inside mode-line and header-line parts.
17976 Convert X and Y to margin area relative coordinates inside left
17977 and right display margin parts.
17979 2003-06-05 Jason Rumney <jasonr@gnu.org>
17981 * w32fns.c (add_system_logical_colors_to_map): New function.
17982 (Fx_open_connection): Use it.
17984 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
17986 * process.c (allocate_pty): Revert part of the previous patch.
17987 (Faccept_process_output): Simplify.
17989 2003-06-04 Jason Rumney <jasonr@gnu.org>
17991 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
17993 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
17994 (lispy_mouse_wheel_names): Remove.
17995 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17996 Always define drag_and_drop_syms.
17998 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17999 WHEEL_EVENT events.
18001 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
18003 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
18005 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
18007 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18009 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
18012 2003-06-03 Richard M. Stallman <rms@gnu.org>
18014 * window.c (Fwindow_edges): Doc fix.
18015 (Fwindow_pixel_edges, Fwindow_inside_edges)
18016 (Fwindow_inside_pixel_edges): New functions.
18017 (syms_of_window): defsubr them.
18019 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
18020 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
18022 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
18024 * dispnew.c (Fsit_for): Don't lie about the number of args.
18026 2003-06-02 Dave Love <fx@gnu.org>
18028 * callproc.c: Use HAVE_FCNTL_H, not USG5.
18029 (syms_of_callproc) <process-environment>: Doc fix.
18031 * doc.c: Use HAVE_FCNTL_H, not USG5.
18033 * xfaces.c (font_rescale_ratio): Fix for K&R.
18035 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
18037 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
18039 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
18041 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
18042 (xg_create_frame_widgets): Use ENCODE_UTF_8.
18044 * xterm.c (Qutf_8): Move to coding.c
18046 * xmenu.c (ENCODE_MENU_STRING): New.
18047 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
18050 * coding.h (ENCODE_UTF_8): New.
18053 * coding.c (Qutf_8): New.
18054 (syms_of_coding): Intern it.
18056 * fns.c: Doc fixes.
18058 2003-06-02 Kenichi Handa <handa@m17n.org>
18060 * buffer.c (Fset_buffer_multibyte): Fix previous change.
18062 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
18064 * lread.c (openp): Make sure STR is a string.
18066 2003-06-01 David Ponce <david@dponce.com>
18068 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
18069 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
18071 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
18072 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
18073 (discard_mouse_events): Discard WHEEL_EVENT events too.
18074 (lispy_wheel_names, wheel_syms): New.
18075 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
18076 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
18077 (make_lispy_event): Add WHEEL_EVENT handler.
18079 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
18080 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18081 WHEEL_EVENT events.
18083 2003-05-31 John Paul Wallington <jpw@gnu.org>
18085 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
18086 timer are in lisp/emacs-lisp.
18088 2003-05-31 Kenichi Handa <handa@m17n.org>
18090 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
18091 region when a buffer is changed to unibyte.
18093 * charset.h (VALID_LEADING_CODE_P): New macro.
18094 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
18096 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
18097 is nonzero, accept multibyte form of eight-bit-control chars.
18098 (decode_composition_emacs_mule): Likewise.
18099 (decode_coding_emacs_mule): Likewise.
18100 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
18101 multibyte form of eight-bit-control chars.
18103 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
18104 (Finsert_file_contents): If coding-system-for-read is bound to
18105 Qauto_save_coding, use the coding system emacs-mule with special
18106 setting for recovering a file.
18107 (choose_write_coding_system): On auto saving, use the coding
18108 system emacs-mule with special setting for auto saving.
18109 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
18111 2003-05-30 Kenichi Handa <handa@m17n.org>
18113 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
18114 properly before calling ccl_driver.
18116 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
18118 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
18119 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
18120 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
18122 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
18124 * xfaces.c (realize_default_face): Do not abort if lface is
18125 non-existent - reverts change from 2003-05-19.
18127 2003-05-29 Kenichi Handa <handa@m17n.org>
18129 * coding.c (decode_coding_iso2022): Pay attention to the byte
18130 sequence of CTEXT extended segment, and retain those bytes as is.
18132 2003-05-28 Kenichi Handa <handa@m17n.org>
18134 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
18135 of CODING_REPLACEMENT_CHARACTER.
18136 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
18137 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
18138 check this flag on encoding.
18139 (encode_coding_sjis_big5):
18140 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
18141 (Fset_terminal_coding_system_internal):
18142 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
18143 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
18145 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
18146 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18147 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
18149 2003-05-28 Richard M. Stallman <rms@gnu.org>
18151 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
18153 * eval.c (unbind_to): Move init of this_binding to separate statement.
18155 2003-05-28 Kim F. Storm <storm@cua.dk>
18157 * xdisp.c (expose_window): Fix error in calculation of
18158 window relative coordinates of area to redisplay.
18160 2003-05-27 Jason Rumney <jasonr@gnu.org>
18162 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
18164 2003-05-27 David Ponce <david@dponce.com>
18166 Handle W32 mouse wheel events as mouse click events, like in X.
18168 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
18169 MOUSE_WHEEL_EVENT anymore.
18171 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
18172 Scrolling down/up the mouse wheel is respectively mapped to mouse
18174 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18175 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
18176 WM_MOUSEWHEEL events.
18178 2003-05-27 Andreas Schwab <schwab@suse.de>
18180 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
18182 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
18183 partially visible line.
18185 * alloc.c (Fgarbage_collect): Fix last change.
18187 2003-05-26 John Paul Wallington <jpw@gnu.org>
18189 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
18191 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
18193 * window.c (Fset_window_buffer): Add type of `keep_margins'.
18194 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
18196 * window.h (window_box_text_cols): Declare.
18198 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
18199 (x_draw_vertical_border): Remove unused var `f'.
18201 * xfaces.c (build_scalable_font_name): Remove `unused var
18202 pixel_size' warning.
18204 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
18206 * unexelf.c (unexec): Remove `unused var n' warning.
18208 * strftime.c (my_strftime_localtime_r): Remove `defined but
18211 * process.c (allocate_pty): Remove `unused var stb' and
18212 `cp might be used uninitialized' warnings.
18214 * dispnew.c (mode_line_string): Remove unused var `f'.
18216 * coding.c (find_safe_codings): Remove unused var `i'.
18218 * bytecode.c (Fbyte_code): Remove `unused val' warning.
18220 * buffer.c (Fkill_buffer): Remove unused var `list'.
18222 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
18224 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18226 * frame.c (make_frame): Condition want_fullscreen with
18227 HAVE_WINDOW_SYSTEM.
18229 2003-05-25 Juanma Barranquero <lektu@terra.es>
18231 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
18232 (Fwindow_scroll_bars): Fix typo in docstring.
18234 2003-05-24 Kim F. Storm <storm@cua.dk>
18236 The following changes serve several purposes:
18238 1) Swap the position of fringes and display margins in windows, i.e.
18239 the fringes are now displayed between the margins and the text area
18242 2) Allow fringe and scroll bar parameters to be set per-buffer and
18243 per-window (like display margins). Such settings are now stored
18244 in window configurations, preserved when frames are resized, and
18245 copied when windows are split vertically or horizontally.
18246 Several bugs related to display margins have been fixed.
18248 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
18250 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
18251 rather than FRAME_WIDTH (FRAME_FONT (f)).
18253 5) Introduce a consistent naming of variables, members and macros
18254 depending on whether their value is measured in pixels or in
18255 canonical columns/lines. Pixel dimensions are named *_width and
18256 *_height, while canonical columns/lines are named *_cols and
18257 *_lines. Pixel positions are named *_x and *_y, while column/line
18258 positions are named *_col and *_line.
18260 6) Consolidate more of the X, W32, and MAC gui code by moving
18261 common data into struct frame, and generalize it for the non-gui
18262 case by using suitable defaults.
18264 7) Cleanup and consolidate the macros controlling frame and window
18265 layout into frame.h and window.h, and generalize the use of the
18266 various window_box_* functions (enhanced to handle the new fringe
18267 position and the per-window fringe and scroll bar settings).
18269 * frame.h (struct frame): Rename members height to text_lines,
18270 width to text_cols, window_height to total_lines, window_width to
18271 total_cols, new_height to new_text_lines, new_width to
18272 new_text_cols. All uses changed.
18273 (struct frame): New members which consolidate common members of
18274 x_output, w32_output, and mac_output structures: left_pos,
18275 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
18276 win_gravity, size_hint_flags, border_width, internal_border_width,
18277 line_height, fringe_cols, left_fringe_width, right_fringe_width,
18278 want_fullscreen. All uses changed.
18279 (struct frame): New member column_width contaning the canonical
18280 column width, analogue to line_height. All uses changed.
18281 (struct frame): Rename members scroll_bar_pixel_width to
18282 config_scroll_bar_width, and scroll_bar_cols to
18283 config_scroll_bar_cols. All uses changed.
18284 (struct frame): New member scroll_bar_actual_width which
18285 consolidates and renames the vertical_scroll_bar_extra member of
18286 x_output, w32_output, and mac_output structures. All uses changed.
18287 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
18288 from x/w32/macterm.h files. All uses changed. Also change code
18289 which referred to f->output_data...->pixel_height.
18290 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
18291 from x/w32/macterm.h files. All uses changed. Also change code
18292 which referred to f->output_data...->pixel_width.
18293 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
18294 Also change code which referred to f->height.
18295 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
18296 Also change code which referred to f->width.
18297 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
18298 to update new_text_lines and new_text_cols members directly.
18299 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
18300 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
18301 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
18302 FRAME_SCROLL_BAR_COLS. All uses changed.
18303 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
18304 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
18305 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
18306 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
18307 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
18308 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
18309 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
18310 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
18311 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
18312 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
18313 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
18314 Unconditionally return line_height member (it now has proper value
18315 also for non-window frames).
18316 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
18317 return new column_width member (rather than the default font width).
18318 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
18319 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
18320 from x/w32/macterm.h files. Unconditionally return corresponding
18321 member of frame structure (they now have proper values also for
18322 non-window frames).
18323 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
18324 Calculate return value from left and right widths.
18325 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
18326 internal_border_width member (has proper value for non-window frame).
18327 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
18328 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
18329 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
18330 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
18331 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
18332 consolidated from xterm.h, macterm.h, and w32term.h.
18333 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
18334 consolidated from xterm.h, macterm.h, and w32term.h.
18335 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
18336 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
18337 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
18338 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
18339 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
18340 consolidated from x/mac/w32term.h.
18341 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
18342 consolidated from x/mac/w32term.h.
18343 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
18344 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
18345 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
18346 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
18348 * window.h (struct window): Rename members left to left_col,
18349 top to top_line, height to total_lines, width to total_cols,
18350 left_margin_width to left_margin_cols, right_margin_width to
18351 right_margin_cols, orig_height to orig_total_lines, orig_top to
18352 orig_top_line. All uses changed.
18353 (struct window): New members left_fringe_width, right_fringe_width,
18354 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
18355 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
18356 New macros primarily used to simplify other macros.
18357 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
18358 referred to XINT (w->width).
18359 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
18360 referred to XINT (w->height).
18361 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
18362 referred to XINT (w->width) * canon_x_unit.
18363 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
18364 referred to XINT (w->height) * canon_y_unit.
18365 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
18366 referred to XINT (w->left).
18367 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
18368 all uses and code that referred to XINT (w->left) + XINT (w->width).
18369 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
18370 referred to XINT (w->top).
18371 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
18372 referred to XINT (w->top) + XINT (w->height).
18373 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
18374 referred to XINT (w->left) * canon_x_unit.
18375 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
18376 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
18377 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
18378 referred to XINT (w->top) * canon_y_unit.
18379 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
18380 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
18381 (WINDOW_LEFTMOST_P): New macro.
18382 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
18384 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
18386 (WINDOW_BOX_LEFT_EDGE_X): Rename from
18387 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
18388 Do not exclude left fringe width.
18389 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
18390 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
18391 Do not exclude fringe widths.
18392 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
18393 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
18394 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
18395 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
18396 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
18397 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
18398 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
18399 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
18400 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
18401 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
18402 New macros. Change code which referenced corresponding
18403 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
18404 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
18405 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
18406 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
18407 allow per-window scroll-bar settings.
18408 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
18409 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
18410 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
18411 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
18412 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
18413 FRAME_SCROLL_BAR_WIDTH.
18414 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
18415 (WINDOW_SCROLL_BAR_AREA_X): New macros.
18416 (WINDOW_HEADER_LINE_HEIGHT): Rename from
18417 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
18418 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
18419 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
18420 (WINDOW_BOX_TEXT_HEIGHT): Rename from
18421 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
18422 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18423 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18424 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
18425 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
18426 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18427 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
18428 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18429 (window_from_coordinates): Update prototype.
18430 (Fset_window_buffer): Update EXFUN.
18431 (set_window_buffer): Update prototype.
18433 * dispextern.h (struct glyph_matrix): Rename members window_left_x
18434 to window_left_col, window_top_y to window_top_line. All uses
18436 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
18437 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
18438 internal_border_width is now set to 0 for non-window frames.
18439 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
18440 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
18441 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
18442 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
18443 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
18444 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18445 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18446 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
18447 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
18448 Move to window.h and renamed [see window.h changes].
18449 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
18450 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
18451 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
18452 Use WINDOW_TOTAL_LINES.
18453 (frame_update_line_height): Remove prototype.
18455 * buffer.h (struct buffer): Rename members measured in columns:
18456 left_margin_width to left_margin_cols, right_margin_width to
18457 right_margin_cols. All uses changed.
18458 New members left_fringe_width, right_fringe_width,
18459 fringes_outside_margins for per-buffer fringe settings.
18460 New members scroll_bar_width and vertical_scroll_bar_type for
18461 per-buffer scroll bar settings.
18463 * buffer.c (init_buffer_once): Set buffer_defaults and
18464 buffer_local_flags for new buffer-local variables
18465 left_fringe_width, right_fringe_width, fringes_outside_margins,
18466 scroll_bar_width, and vertical_scroll_bar_type.
18467 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
18468 default-* variables for them.
18470 * dispnew.c: Make (many) trivial substitutions for renamed and
18471 new macros in dispextern.h, frame.h and window.h.
18472 (mode_line_string): No need to adjust width for mode lines, as it
18473 is already adjusted by the caller.
18474 (marginal_area_string): Handle fringes inside/outside margins.
18476 * frame.c: Make (many) trivial substitutions for renamed and
18477 new macros in dispextern.h, frame.h and window.h.
18478 (make_frame): Initialize left_fringe_width, right_fringe_width,
18479 fringe_cols, scroll_bar_actual_width, border_width,
18480 internal_border_width, column_width, line_height, x_pixels_diff,
18481 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
18482 members with values suitable for a non-window frames.
18484 * gtkutil.c: Make (many) trivial substitutions for renamed and
18485 new macros in dispextern.h, frame.h and window.h.
18487 * indent.c: Make (few) trivial substitutions for renamed and
18488 new macros in dispextern.h, frame.h and window.h.
18490 * keyboard.c: Make (many) trivial substitutions for renamed and
18491 new macros in dispextern.h, frame.h and window.h.
18492 (make_lispy_event): Use window positions returned from
18493 window_from_coordinates when constructing the lisp event for
18494 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
18495 (incorrect) values locally.
18496 (make_lispy_movement): Use window positions returned from
18497 window_from_coordinates when constructing the lisp event, rather
18498 than calculating (incorrect) values locally.
18500 * scroll.c: Make (some) trivial substitutions for renamed and
18501 new macros in dispextern.h, frame.h and window.h.
18503 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
18506 * sysdep.c: Make (few) trivial substitutions for renamed and
18507 new macros in dispextern.h, frame.h and window.h.
18509 * term.c: Make (some) trivial substitutions for renamed and
18510 new macros in dispextern.h, frame.h and window.h.
18512 * widget.c: Make (few) trivial substitutions for renamed and
18513 new macros in dispextern.h, frame.h and window.h.
18515 * window.c: Make (many) trivial substitutions for renamed and
18516 new macros in dispextern.h, frame.h and window.h.
18517 (make_window): Initialize new members
18518 left_margin_cols, right_margin_cols, left_fringe_width,
18519 right_fringe_width, fringes_outside_margins, scroll_bar_width,
18520 and vertical_scroll_bar_type.
18521 (coordinates_in_window): Adapt to new fringe/margin positions
18522 and per-window fringes and scroll-bars.
18523 Fix bug related to incorrectly adjusting coordinates by
18524 frame's internal_border_width (the effect normally negible since
18525 the internal_border_width is typically 0 or 1 pixel, but very
18526 noticeable for an internal_border_width of e.g. 25 pixels).
18527 Upon successful return (other than ON_NOTHING), the coordinates
18528 are now always properly converted to window relative for the
18529 given display element.
18530 (window_from_coordinates): Add new parameters wx and wy to
18531 return the window relative x and y position in the returned
18532 window and part. A null arg means, don't return the position.
18533 All callers changed.
18534 (adjust_window_margins): New function which may reduce the width
18535 of the display margins if a window's text area is too small after
18536 resizing or splitting windows.
18537 (size_window): Fix bug that did not account for display margin
18538 widths when checking the minimum width of a window; use
18539 adjust_window_margins.
18540 (set_window_buffer): Call Fset_window_fringes and
18541 Fset_window_scroll_bars to setup per-window elements.
18542 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
18543 existing display margin, fringe widths, and scroll bar settings
18544 (e.g. after splitting a window or resizing the frame).
18545 All callers changed.
18546 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
18547 (Fsplit_window): Duplicate original window's display margin,
18548 fringe, and scroll-bar settings; then call Fset_window_buffer with
18549 KEEP_MARGINS non-nil. This fixes a bug which caused a split
18550 window to only preserve the display margins in one of the windows.
18551 When splitting horizontally, call adjust_window_margins on both
18552 windows to ensure that the text area of the new windows is non too
18553 narrow. This fixes a bug which could cause Emacs to trap if the
18554 width of the split window was less than the width of the display
18556 (window_box_text_cols): Rename from window_internal_width.
18557 All uses changed. Adapt to per-window fringes and scroll bars.
18558 Fix bug that caused vertical separator to be subtracted also on
18559 window frames. Fix another bug that did not reduce the returned
18560 value by the columns used for display margins.
18561 (window_scroll_line_based): Fix bug related to scrolling too much
18562 when display margins are present (implicitly fixed by the fix to
18563 window_box_text_cols).
18564 (scroll_left, scroll_right): Fix bug related to scrolling too far
18565 by default when display margins are present (implicitly fixed by
18566 the fix to window_box_text_cols).
18567 (struct saved_window): Rename members left to left_col, top to
18568 top_line, width to total_cols, height to total_lines, orig_top to
18569 orig_top_line, orig_height to orig_total_lines. All uses changed.
18570 New members left_margin_cols, right_margin_cols,
18571 left_fringe_width, right_fringe_width, fringes_outside_margins,
18572 scroll_bar_width, and vertical_scroll_bar_type for saving
18573 per-window display elements.
18574 (Fset_window_configuration): Restore display margins, fringes,
18575 and scroll bar settings. This fixes a bug which caused display
18576 margins to be discarded when saving and restoring a window
18578 (save_window_save): Save display margins, fringes, and scroll bar
18579 settings. This fixes a bug which caused display margins to be
18580 discarded when saving and restoring a window configuration.
18581 (Fset_window_margins): Do nothing if display margins are not
18582 really changed. Otherwise, call adjust_window_margins to ensure
18583 the text area doesn't get too narrow. This fixes a bug which
18584 could cause Emacs to trap if setting display margins wider than
18585 the width of the window.
18586 (Fset_window_fringes): New defun to allow user to specifically set
18587 this window's fringe widths and position vs. display margins.
18588 (Fwindow_fringes): New defun to return window's actual fringe settings.
18589 (Fset_window_scroll_bars): New defun to allow user to specifically
18590 set this window's scroll bar width and position.
18591 (Fwindow_scroll_bars): New defun to return window's actual scroll
18593 (compare_window_configurations): Also compare display margins,
18594 fringes, and scroll bar settings.
18595 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
18597 * xdisp.c: Make (many) trivial substitutions for renamed and
18598 new macros in dispextern.h, frame.h and window.h.
18599 (window_box_width): Adapt to per-window fringes and scroll bars,
18600 and new fringe vs. display margin position. Note that returned
18601 value is no longer guaranteed to be a whole multiple of the frame
18602 column width, since per-window fringes may now be any width.
18603 (window_box_left_offset): New function like window_box_left, but
18604 value is relative to left border of window (rather than frame).
18605 (window_box_right_offset): New function like window_box_right,
18606 but value is relative to left border of window.
18607 (window_box_left): Adapt to per-window fringes and scroll bars,
18608 and new fringe vs. display margin position. Simplify by using
18609 WINDOW_LEFT_EDGE_X and window_box_left_offset.
18610 (window_box): Allow null args for unnecessary return values;
18611 change/simplify relevant callers.
18612 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
18613 and new fringe vs. display margin position.
18614 Use window_box_left_offset and window_box_right_offset
18615 (get_glyph_string_clip_rect): Adapt to per-window fringes and
18616 scroll bars, and new fringe vs. display margin position.
18617 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
18618 (draw_fringe_bitmap): Rework to handle per-window fringes and new
18619 fringe vs. display margin position.
18620 (hscroll_window_tree): Use window_box_width instead of window_box.
18621 (redisplay_window): Adapt to per-window scroll bars.
18622 (draw_glyphs): Rework to handle per-window fringes and scroll
18623 bars, and new fringe vs. display margin position.
18624 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
18625 (x_clear_end_of_line): Adapt to per-window fringes and scroll
18626 bars, and new fringe vs. display margin position. Fix bug which
18627 increased total width of full_width rows by width of scroll bars
18628 although window's total width already includes that.
18629 (x_fix_overlapping_area): Simplify using window_box_left_offset.
18630 (expose_area): Simplify using window_box_left_offset.
18631 (x_draw_vertical_border): Handle per-window scroll bar settings,
18632 mixing windows with left, right and no scroll bars.
18634 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
18635 where it's used in x_list_fonts (for clarity).
18636 (frame_update_line_height): Remove unused function; functionality
18637 is now done directly when setting the default font in x_set_font.
18639 * xfns.c: Make (many) trivial substitutions for renamed and
18640 new macros in dispextern.h, frame.h and window.h.
18642 * xmenu.c: Make (some) trivial substitutions for renamed and
18643 new macros in dispextern.h, frame.h and window.h.
18645 * xterm.h (struct x_output): Move members left_pos, top_pos,
18646 border_width, pixel_height, pixel_width, line_height,
18647 internal_border_width, vertical_scroll_bar_extra,
18648 left_fringe_width, right_fringe_width, fringe_cols,
18649 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18650 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18651 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18652 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18653 (PIXEL_WIDTH, PIXEL_HEIGHT)
18654 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
18655 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
18656 frame.h and renamed [see frame.h changes].
18657 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18658 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
18659 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
18660 and renamed [see frame.h changes].
18662 * xterm.c: Make (several) trivial substitutions for renamed and
18663 new macros in dispextern.h, frame.h and window.h.
18664 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
18665 (scroll_run): Adapt to new fringe position.
18666 (glyph_rect): Use window coordinates returned from
18667 window_from_coordinates rather than frame_to_window_pixel_xy.
18668 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18670 (handle_one_xevent): Simplify a USE_GTK conditional.
18671 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18672 (fringes are now inside margins, i.e. always in the clipping area).
18673 All callers changed.
18674 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18675 directly, then call compute_fringe_widths. Don't call
18676 frame_update_line_height.
18678 * w32term.h (struct w32_output): Move members left_pos, top_pos,
18679 border_width, pixel_height, pixel_width, line_height,
18680 internal_border_width, vertical_scroll_bar_extra,
18681 left_fringe_width, right_fringe_width, fringe_cols,
18682 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18683 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18684 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18685 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18686 (PIXEL_WIDTH, PIXEL_HEIGHT)
18687 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
18688 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
18689 frame.h and renamed [see frame.h changes].
18690 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18691 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
18692 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
18693 and renamed [see frame.h changes].
18695 * w32term.c: Make (several) trivial substitutions for renamed and
18696 new macros in dispextern.h, frame.h and window.h.
18697 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
18698 (glyph_rect): Use window coordinates returned from
18699 window_from_coordinates rather than frame_to_window_pixel_xy.
18700 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18702 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
18703 (fringes are now inside margins, i.e. always in the clipping area).
18704 All callers changed.
18705 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18706 directly, then call compute_fringe_widths. Don't call
18707 frame_update_line_height.
18709 * w32console.c: Make (few) trivial substitutions for renamed and
18710 new macros in dispextern.h, frame.h and window.h.
18712 * w32fns.c: Make (many) trivial substitutions for renamed and
18713 new macros in dispextern.h, frame.h and window.h.
18715 * w32menu.c: Make (few) trivial substitutions for renamed and
18716 new macros in dispextern.h, frame.h and window.h.
18718 * macterm.h (struct mac_output): Move members left_pos, top_pos,
18719 border_width, pixel_height, pixel_width, line_height,
18720 internal_border_width, vertical_scroll_bar_extra,
18721 left_fringe_width, right_fringe_width, fringe_cols,
18722 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18723 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
18724 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18725 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18726 (PIXEL_WIDTH, PIXEL_HEIGHT)
18727 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
18728 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
18729 frame.h and renamed [see frame.h changes].
18730 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18731 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
18732 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
18733 and renamed [see frame.h changes].
18735 * macterm.c: Make (several) trivial substitutions for renamed and
18736 new macros in dispextern.h, frame.h and window.h.
18737 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
18738 (glyph_rect): Use window coordinates returned from
18739 window_from_coordinates rather than frame_to_window_pixel_xy.
18740 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18742 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18743 (fringes are now inside margins, i.e. always in the clipping area).
18744 All callers changed.
18745 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18746 directly, then call compute_fringe_widths. Don't call
18747 frame_update_line_height.
18749 * macfns.c: Make (several) trivial substitutions for renamed and
18750 new macros in dispextern.h, frame.h and window.h.
18751 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
18753 * macmenu.c: Make (few) trivial substitutions for renamed and
18754 new macros in dispextern.h, frame.h and window.h.
18756 * msdos.h (struct x_output): Remove members left_pos, top_pos,
18757 and line_height, and use corresponding new members in struct
18758 frame. All uses changed.
18759 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
18760 superseeded by corresponding macros in frame.h.
18762 * msdos.c: Make (several) trivial substitutions for renamed and
18763 new macros in dispextern.h, frame.h and window.h.
18764 (IT_note_mouse_highlight): Use updated window coordinates returned
18765 by window_from_coordinates, rather than adjusting them locally.
18766 (internal_terminal_init): No need to initialize line_height here;
18767 it now defaults to 1.
18769 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
18771 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
18772 dropping `down' events.
18774 2003-05-24 Andreas Schwab <schwab@suse.de>
18776 * coding.c (find_safe_codings): Fix last change.
18778 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
18780 * xfns.c (x_window): Fix typo from 2003-05-21 change.
18782 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
18784 * xdisp.c (display_mode_element): Increase max depth.
18785 Simplify the error handling code. Use a different error string
18786 for the case where we hit the depth limit.
18788 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
18790 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
18792 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
18794 * intervals.c (get_local_map): Don't get char-property of previous
18795 point any more: get_pos_property already does it and better.
18797 2003-05-21 Dave Love <fx@gnu.org>
18799 [Merged from unicode branch.]
18801 * xfns.c (x_window, x_window): Use use_xim.
18803 * xterm.c (use_xim): Initialize.
18804 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18805 (x_term_init): Maybe set use_xim.
18807 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18809 2003-05-21 Jason Rumney <jasonr@gnu.org>
18811 * unexw32.c (_start): Remove _fmode initialization.
18813 * emacs.c (main) [WINDOWSNT]: Move it here.
18815 2003-05-20 Dave Love <fx@gnu.org>
18817 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
18819 2003-05-19 Richard M. Stallman <rms@gnu.org>
18821 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
18822 as value for QCfont attribute.
18823 (realize_default_face): lface should already exist; crash if not.
18824 Specify 0 for FORCE_P when calling set_lface_from_font_name.
18826 * frame.c (Fignore_event): Doc fix.
18828 2003-05-19 Kenichi Handa <handa@m17n.org>
18830 * coding.c (decode_coding_string): Handle post-read-conversion
18831 even if the coding doesn't require decoding.
18833 2003-05-18 Richard M. Stallman <rms@gnu.org>
18835 * callproc.c (Fcall_process_region): Doc fix.
18837 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18839 * lread.c (Fload): Print a message if package is obsolete.
18841 * window.c (Fselect_window): Add optional `norecord' arg.
18842 (select_window_1): Fold into Fselect_window.
18843 (select_window_norecord): New function.
18844 (temp_output_buffer_show): Use it. Preserve current buffer.
18846 * window.h (Fselect_window): Update declaration.
18848 * window.c (delete_window, Fother_window, Fset_window_configuration):
18849 * minibuf.c (read_minibuf):
18850 * macterm.c (x_new_focus_frame):
18851 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
18852 * callint.c (Fcall_interactively):
18853 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
18855 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
18857 2003-05-17 David Kastrup <dak@gnu.org>
18859 * process.c (read_process_output): Back out change from 2003-03-09.
18861 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18863 * editfns.c (get_pos_property): Don't assume that `object' = nil.
18865 * textprop.c (text_property_stickiness): New arg `buffer'.
18867 * intervals.h (text_property_stickiness): New arg `buffer'.
18868 (get_pos_property): Declare.
18870 * intervals.c (get_local_map): Use get_pos_property, to obey
18871 stickiness and empty overlays.
18872 (create_root_interval, graft_intervals_into_buffer): Use BEG.
18873 (merge_properties, intervals_equal, merge_properties_sticky):
18875 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
18877 2003-05-17 Richard M. Stallman <rms@gnu.org>
18879 * minibuf.c (read_minibuf): If buffer is empty, record the default
18881 (Fminibuffer_complete_word): When deleting the overlap, take account
18882 of its real position.
18884 * fns.c (map_char_table): Fix previous change.
18886 * syntax.c (find_defun_start):
18887 When open_paren_in_column_0_is_defun_start,
18888 return beginning of buffer.
18890 * lisp.h (map_char_table): Declare added arg.
18892 * fns.c (map_char_table): New arg TABLE gets the master table.
18894 Process default and inheritance, resorting to Faref if necessary.
18896 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18897 (Faccessible_keymaps): Pass new arg to map_char_table.
18899 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
18901 * casetab.c (set_case_table): Pass new arg to map_char_table.
18903 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
18905 * lisp.h (specbinding_func): New typedef.
18906 (struct specbinding): Use specbinding_func, to put the `volatile'
18907 in the right place.
18909 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
18910 to avoid GCC warning.
18912 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
18914 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
18916 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
18918 * keyboard.c (apply_modifiers): Don't fill the other cache.
18920 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
18922 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
18924 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
18925 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
18926 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
18927 (Fset_window_configuration, Fcurrent_window_configuration)
18928 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
18929 (Fpos_visible_in_window_p, mark_window_cursors_off)
18930 (window_internal_height, window_internal_width, Frecenter)
18931 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
18932 (replace_buffer_in_all_windows, init_window_once, init_window)
18933 (syms_of_window, keys_of_window): Move from lisp.h.
18934 * lisp.h: Move window.c declarations to window.h.
18936 * bytecode.c: Include window.h.
18937 * emacs.c: Include window.h.
18939 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
18940 (keyremap): Add `parent' field.
18941 (keyremap_step): Use it. Remove `parent' argument.
18942 (read_key_sequence): Setup and use the new `parent' field.
18944 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
18946 * keyboard.c (adjust_point_for_property): Ensure termination.
18948 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
18950 * keyboard.c (follow_key): Remove dead variable `did_meta'.
18951 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
18952 duplicated handling of function-key-map and key-translation-map
18953 in read_key_sequence.
18954 (read_key_sequence): Use them.
18956 * keyboard.c (adjust_point_for_property): Try harder to move point
18957 to the non-sticky end of an invisible property.
18959 * xdisp.c (single_display_prop_intangible_p): Make `space' display
18960 property intangible as well.
18962 2003-05-10 Andreas Schwab <schwab@suse.de>
18964 * xmenu.c (single_menu_item): Change last parameter to void* to
18967 2003-05-09 Richard M. Stallman <rms@gnu.org>
18969 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
18970 Bind Qinhibit_modification_hooks to t so there will be no GC.
18971 Rename local `tem' to `save_deactivate_mark'.
18973 * eval.c (specpdl_ptr): Declare volatile.
18974 (unbind_to): Copy the whole binding and decrement specpdl_ptr
18975 before doing the work of unbinding it.
18977 * lisp.h (struct specbinding): Declare elements volatile.
18978 (specpdl_ptr): Declare volatile.
18980 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
18982 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
18983 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
18985 2003-05-08 Dave Love <fx@gnu.org>
18987 * coding.c (Vlast_coding_system_used): Doc fix.
18989 2003-05-07 Jason Rumney <jasonr@gnu.org>
18991 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
18992 when system does not support them.
18994 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
18996 * fileio.c (Qwrite_region_annotate_functions): New var.
18997 (build_annotations): Use it to process the global part of the hook.
18998 (syms_of_fileio): Init and staticpro it.
19000 * keyboard.c (safe_run_hooks_error): Display a message instead of
19001 silently ignoring the error.
19003 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
19005 * keyboard.c (input_available_signal): Mark static.
19006 (menu_bar_items): Use map_keymap.
19007 (menu_bar_one_keymap): Remove.
19008 (menu_bar_item): Adjust arglist (for use in map_keymap).
19009 Properly hide a second binding when not both are keymaps.
19011 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
19012 (single_keymap_panes): Use it and map_keymap.
19013 (single_menu_item): Use skp as well.
19015 * keymap.h (map_keymap_function_t): New type.
19016 (map_keymap): Declare.
19018 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
19019 (map_keymap_call, Fmap_keymap): New functions.
19020 (syms_of_keymap): Defsubr map-keymap.
19022 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19024 * gtkutil.c (create_dialog, make_widget_for_menu_item)
19025 (make_menu_item, create_menus, xg_update_menu_item): Don't call
19026 ..._with_mnemonic functions for menu items.
19028 2003-05-01 Kenichi Handa <handa@m17n.org>
19030 * coding.c (coding_system_accept_latin_extra_p): Delete this
19032 (find_safe_codings): Pay attention to
19033 the property tranlsation-table-for-encode of each codings.
19034 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
19036 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
19038 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
19040 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
19042 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
19044 * lisp.h (CHECK): Wrap args in parenthesis.
19045 (specbind): Fix doc: symbol = Qnil is not supported any more.
19047 * bytecode.c (Fbyte_code) <unwind-protect>:
19048 Use Fprogn rather than 0 and Qnil.
19050 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
19051 `double', and `triple' modifiers as well.
19053 2003-04-30 Richard M. Stallman <rms@gnu.org>
19055 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
19057 * alloc.c (abort_on_gc): New variable.
19058 (Fgarbage_collect): Abort if abort_on_gc is set.
19060 * lisp.h (abort_on_gc): Add decl.
19062 * eval.c (Fsignal): Clear abort_on_gc.
19064 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
19065 Reinit FORMAT_START and END before second scan.
19067 * xdisp.c (move_it_vertically_backward): Do the final big else
19068 even if nlines is 0.
19070 * xdisp.c (redisplay_internal): Finish the per-frame loop
19071 even if redisplay is suspended by input.
19073 2003-04-24 Andrew Choi <akochoi@shaw.ca>
19075 * macterm.c (x_list_fonts): Return all fonts that match if
19078 2003-04-25 Kenichi Handa <handa@m17n.org>
19080 * syntax.c (skip_chars): Fix previous change.
19082 2003-04-24 Kenichi Handa <handa@m17n.org>
19084 * syntax.c (skip_chars): Make the code faster by using the common
19085 technique of *p, *stop, and *endp.
19087 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19089 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
19090 tool_bar_items so GTK tool bar expose callback does not access items
19093 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
19095 * eval.c (Fapply): Undo last change and add a comment about why.
19097 2003-04-18 Miles Bader <miles@gnu.org>
19099 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
19100 pickier PARSE_MULTIBYTE_SEQ.
19102 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
19104 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
19105 Use XCDR, XCAR, CONSP.
19106 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
19107 (Fapply): Remove unnecessary GCPRO.
19109 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
19111 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
19113 * buffer.h: Don't hardcode BEG==1.
19115 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
19117 2003-04-16 Richard M. Stallman <rms@gnu.org>
19119 * xdisp.c (try_window, try_window_reusing_current_matrix):
19120 When at end of window, set window_end_pos to Z-ZV.
19122 * buffer.c (Foverlay_recenter): Doc fix.
19124 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
19126 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
19128 2003-04-14 Andrew Choi <akochoi@shaw.ca>
19130 * macterm.c (mac_check_for_quit_char): Don't check more often than
19133 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
19135 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
19136 specially, so that they can't hide an implicit switch-frame event.
19137 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
19138 (head_table): Use switch-frame as event_kind for select-window.
19139 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
19141 * editfns.c (Fformat): Lisp_Object/int mixup.
19142 (format2): Remove unused var numargs.
19144 2003-04-11 Kenichi Handa <handa@m17n.org>
19146 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
19147 (Qafter_insert_file_set_coding): New variable.
19148 (syms_of_fileio): Initialize and staticpro it. Delete declaration
19149 for after-insert-file-adjust-coding-function.
19150 (Finsert_file_contents): Call Qafter_insert_file_set_coding
19151 instead of Vafter_insert_file_adjust_coding_function.
19153 2003-04-11 Kenichi Handa <handa@m17n.org>
19155 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
19157 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
19158 string. Callers changed.
19160 2003-04-10 Kenichi Handa <handa@m17n.org>
19162 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
19163 (syms_of_fileio): Declare it as a lisp variable.
19164 (Finsert_file_contents):
19165 Call Vafter_insert_file_adjust_coding_function before calling
19168 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19170 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
19171 get GtkAdjustment as widget now is a GtkRange.
19173 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
19174 GtkRange to avoid memory leak.
19176 2003-04-09 Kenichi Handa <handa@m17n.org>
19178 * xfaces.c (Vface_font_rescale_alist): New variable.
19179 (struct font_name): New member rescale_ratio.
19180 (font_rescale_ratio): New function.
19181 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
19182 (better_font_p): On comparing point sized, pay attention to
19183 recale_ratio member of fonts.
19184 (build_scalable_font_name): Reflect font->rescale_ratio in the
19186 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19188 * lread.c (read1): Before calling index, check if the 2nd
19189 arguemnt is in ASCII range.
19191 2003-04-08 Richard M. Stallman <rms@gnu.org>
19193 * fileio.c (Ffile_symlink_p): Doc fix.
19195 * editfns.c (Fformat): Translate positions of text properties
19196 in the format string to apply them to the result.
19198 * fileio.c (Finsert_file_contents): Doc fix.
19199 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19201 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
19203 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
19205 2003-04-08 Steven Tamm <steventamm@mac.com>
19207 * mac.c (init_mac_osx_environment): Switch libexec and bin so
19208 that self-contained application finds libexec files.
19210 2003-04-08 Kenichi Handa <handa@m17n.org>
19212 * coding.c (code_convert_region_unwind):
19213 Set Vlast_coding_system_used to the argument.
19214 (code_convert_region): If post-read-conversion function changed
19215 the value of last-coding-sytem, keep the new value in
19216 coding->symbol so that it won't be overridden.
19217 (run_pre_post_conversion_on_str): Likewise.
19218 (coding_system_accept_latin_extra_p): New function.
19219 (find_safe_codings): Pay attention to characters registered in
19220 latin-extra-code-table.
19222 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
19224 * Makefile.in (md5.o): Add missing dependency info.
19226 2003-04-06 Richard M. Stallman <rms@gnu.org>
19228 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
19230 * marker.c (verify_bytepos): New function.
19232 * intervals.c (set_intervals_multibyte_1): When becoming
19233 multibyte, adjust right and left child sizes to a whole set of
19234 characters. If an interval gets zero total-length, delete it.
19235 If an interval consists of just its children, delete one of them.
19237 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
19238 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
19240 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
19242 (lisp_malloc): Do the work here directly.
19244 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
19246 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
19249 2003-04-04 Kenichi Handa <handa@m17n.org>
19251 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
19252 destructively change "%S" to "%s".
19254 2003-04-03 Miles Bader <miles@gnu.org>
19256 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
19259 2003-04-01 Dave Love <fx@gnu.org>
19261 * xfns.c (xpm_lookup_color): Grok "opaque".
19263 2003-03-31 Andrew Choi <akochoi@shaw.ca>
19265 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
19268 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
19270 * macterm.h (struct mac_output): Define x_pixels_diff and
19273 2003-03-31 Juanma Barranquero <lektu@terra.es>
19275 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
19276 blockinput.h and files included from it.
19278 2003-03-31 Kim F. Storm <storm@cua.dk>
19280 The following changes consolidates the common code related to
19281 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
19282 files into frame.c.
19284 * frame.c: Include blockinput.h.
19285 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
19286 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
19287 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
19289 (struct frame_parm_table, frame_parms): New table for describing
19290 frame parameters and their associated Q-variable.
19291 The order of the parameters corresponds to the sequence of the
19292 frame_parm_handlers table in redisplay_interface.
19293 (x_fullscreen_move, x_set_frame_parameters)
19294 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
19295 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
19296 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19297 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
19298 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
19299 Generic functions for processing of frame parameters.
19300 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
19301 (display_x_get_resource, x_get_resource_string): Functions for
19302 generic access to X resources.
19303 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19304 (x_default_parameter, Fx_parse_geometry): Functions for generic
19305 access to frame parameters.
19306 (x_figure_window_size): Generic calculation of frame size.
19307 Fixed to add space needed for tool bar. Also setup size_hint_flags.
19308 (syms_of_frame): Intern and staticpro frame parameter variables.
19309 Defvar_lisp Vx_resource_class and Vx_resource_name here.
19310 Defsubr Sx_get_resource and Sx_parse_geometry.
19312 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
19313 parameter related vars defined in frame.c.
19314 (EMACS_CLASS): Define here.
19315 (enum FULLSCREEN_*): Define here.
19316 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
19317 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
19318 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
19319 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
19320 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
19321 (x_set_visibility, x_set_autoraise, x_set_autolower)
19322 (x_set_unsplittable, x_set_vertical_scroll_bars)
19323 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
19324 (x_figure_window_size): Add prototypes.
19326 * dispextern.h (frame_parm_handler): New typedef.
19327 (struct redisplay_interface): New member frame_parm_handlers.
19328 (enum resource_types): Move declaration here.
19329 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19330 (x_default_parameter): Add prototypes.
19332 * window.c: Remove extern decl for frame parameter vars.
19333 (change_window_heights): New generic function;
19334 replaces x_change_window_heights. All users changed.
19336 * window.h (change_window_heights): Add prototype.
19338 * xfaces.c: Remove extern decl for frame parameter vars.
19340 * xterm.h (EMACS_CLASS): Remove. Use generic define.
19341 (struct w32_display_info): Fix type of xrdb member.
19342 (enum FULLSCREEN_*): Remove.
19343 Remove prototypes for generic functions (in frame.h).
19345 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19346 parameters now defined in frame.h and frame.c.
19347 (Vx_resource_name): Remove. Use generic var.
19348 (enum x_frame_parms): Remove (bogus, unused enum).
19349 (check_x_display_info): Make non-static (for frame.c).
19350 (struct x_frame_parm_table, x_frame_parms): Remove.
19351 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19352 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19353 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19354 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19355 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19356 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19357 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19358 Remove. Use generic functions instead.
19359 (enum resource_types): Remove.
19360 (x_set_scroll_bar_default_width): New global function (for frame.c).
19361 (Fx_create_frame): Depend on x_figure_window_size to add space for
19362 toolbar and setup size_hint_flags.
19363 (x_frame_parm_handlers): New table for redisplay_interface.
19364 (syms_of_xfns): Don't intern/staticpro removed vars.
19366 * xterm.c: Remove unnecessary extern declarations.
19367 (x_fullscreen_adjust): Remove. Use generic instead.
19368 (x_redisplay_interface): Add x_frame_parm_handlers member.
19370 * w32gui.h (XrmDatabase): New (dummy) typedef.
19372 * w32term.h (EMACS_CLASS): Remove. Use generic define.
19373 (struct w32_display_info): Fix type of xrdb member.
19374 (enum FULLSCREEN_*): Remove.
19375 (x_fullscreen_adjust): Remove prototype.
19377 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19378 parameters now defined in frame.h and frame.c.
19379 (Vx_resource_name): Remove. Use generic var.
19380 (enum x_frame_parms): Remove (bogus, unused enum).
19381 (check_x_display_info): Make non-static (for frame.c).
19382 (struct x_frame_parm_table, x_frame_parms): Remove.
19383 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19384 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19385 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19386 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19387 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19388 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19389 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19390 Remove. Use generic functions instead.
19391 (enum resource_types): Remove.
19392 (x_set_scroll_bar_default_width): New global function (for frame.c).
19393 (Fx_create_frame): Depend on x_figure_window_size to add space for
19394 toolbar and setup size_hint_flags.
19395 (w32_frame_parm_handlers): New table for redisplay_interface.
19396 (syms_of_w32fns): Don't intern/staticpro removed vars.
19398 * w32term.c: Remove unnecessary extern declarations.
19399 (x_fullscreen_adjust): Remove. Use generic instead.
19400 (x_redisplay_interface): Add w32_frame_parm_handlers member.
19402 * w32reg.c (x_get_string_resource): Use XrmDatabase.
19404 * macgui.h (XrmDatabase): New (dummy) typedef.
19406 * macterm.h (EMACS_CLASS): Remove.
19407 (struct mac_display_info): Add xrdb member.
19408 (struct mac_output): Add want_fullscreen member.
19410 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19411 parameters now defined in frame.h and frame.c.
19412 (Vx_resource_name): Remove. Use generic var.
19413 (check_x_display_info): Make non-static (for frame.c).
19414 (struct x_frame_parm_table, x_frame_parms): Remove.
19415 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19416 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19417 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19418 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19419 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19420 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19421 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19422 Remove. Use generic functions instead.
19423 (enum resource_types): Remove.
19424 (x_set_scroll_bar_default_width): New global function (for frame.c).
19425 (mac_frame_parm_handlers): New table for redisplay_interface.
19426 (syms_of_macfns): Don't intern/staticpro removed vars.
19428 * macterm.c: Remove unnecessary extern declarations.
19429 (x_redisplay_interface): Add mac_frame_parm_handlers member.
19431 * Makefile.in (frame.o): Add dependency on blockinput.h and files
19432 included from it (atimer.h and systime.h).
19434 2003-03-30 Andreas Schwab <schwab@suse.de>
19436 * xdisp.c (x_insert_glyphs): Fix swapped width and height
19437 parameters for shift_glyphs_for_insert.
19439 * macterm.c (x_redisplay_interface): Add missing entry for
19440 draw_vertical_window_border.
19442 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
19444 * fileio.c (Fexpand_file_name): In the no-handler case, after
19445 expanding, look again for a handler and invoke it. This is needed
19446 for filenames like "/foo/../user@host:/bar/../baz" -- the first
19447 expansion produces "/user@host:/bar/../baz" which needs to be
19448 expanded again for the finame result "/user@host:/baz".
19450 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19452 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
19453 of area to be redrawn for better performance.
19455 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
19457 * xterm.c (take_vertical_position_into_account): Remove.
19458 (xt_action_hook): Call set_vertical_scroll_bar if needed.
19459 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
19460 (xm_scroll_callback, x_create_toolkit_scroll_bar)
19461 (x_set_toolkit_scroll_bar_thumb): Simplify.
19462 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
19463 (XTread_socket): Remove unused var.
19464 (x_make_frame_invisible): Replace goto with else.
19466 * xdisp.c (set_vertical_scroll_bar): New fun.
19467 (redisplay_window): Use it.
19469 2003-03-26 Richard M. Stallman <rms@gnu.org>
19471 * xdisp.c (update_tool_bar): Recompute tool bar if
19472 update_mode_lines is set. Set w->update_mode_line
19473 only if the tool bar contents actually change.
19474 (update_menu_bar): Undo previous change.
19476 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19478 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
19479 (xg_frame_set_char_size): Calculate scroll bar width before frame
19480 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
19481 (xg_separator_p): Check for all documented separator types.
19482 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
19483 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
19485 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
19486 so tool bar gets updated.
19488 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
19490 * data.c (store_symval_forwarding): Re-instate part of the code
19491 that was deleted with too much enthusiasm.
19493 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
19495 * data.c (store_symval_forwarding): Delete special read-only
19496 hack for type == -1, since we now use ->constant instead.
19497 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
19499 * buffer.c (overlays_in): Declare static.
19500 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
19501 `constant' field rather than the variable's `type' field.
19503 2003-03-24 Andrew Choi <akochoi@shaw.ca>
19505 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
19507 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
19509 * fns.c [MAC_OSX]: Do not redefine vector.
19511 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
19513 * macgui.h: Remove definition of No_Cursor.
19515 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
19517 * xdisp.c: Define No_Cursor.
19518 (x_write_glyphs, notice_overwritten_cursor)
19519 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
19520 (note_mouse_highlight): Remove Mac-specific code.
19521 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
19523 2003-03-24 John Paul Wallington <jpw@gnu.org>
19525 * xdisp.c (redisplay_window): If mini window's buffer is not
19526 empty, then redisplay it like other windows.
19528 2003-03-23 Kim F. Storm <storm@cua.dk>
19530 * w32term.c (w32_draw_window_cursor): Fix last change.
19532 2003-03-23 Kenichi Handa <handa@m17n.org>
19534 * alloc.c (make_string_from_bytes, make_specified_string):
19535 Add `const' for the arg CONTENTS.
19537 * lisp.h (make_string_from_bytes, make_specified_string):
19538 Prototypes adjusted.
19540 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19542 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
19544 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
19545 (XG_SB_RANGE): New define.
19547 * gtkutil.c (xg_fixed_handle_expose): New function.
19548 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
19550 (xg_update_scrollbar_pos): Take two more arguments, left and width
19551 of scroll bar including borders.
19552 Clear left and right part outside scroll bar separately as some
19553 themes have bars that are not an even number of pixels.
19554 Don't set reallocate_redraws, don't call
19555 gdk_window_process_all_updates.
19556 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
19557 so no need to change it. Calculate size and value with XG_SB_RANGE.
19559 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
19560 Pass left and width of scroll bar including borders to
19561 xg_update_scrollbar_pos.
19563 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
19565 * Makefile.in: Make sure space precedes end-of-line backslashes.
19567 2003-03-22 Kim F. Storm <storm@cua.dk>
19569 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
19570 Add generic versions here. Remove system specific versions
19573 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
19576 * xterm.h (STORE_NATIVE_RECT): New macro.
19578 2003-03-21 Kim F. Storm <storm@cua.dk>
19580 * xdisp.c (get_glyph_string_clip_rect):
19581 Use FRAME_INTERNAL_BORDER_WIDTH.
19583 * dispextern.h (struct redisplay_interface): Add active_p
19584 argument to draw_window_cursor member. All uses changed.
19586 2003-03-21 Kim F. Storm <storm@cua.dk>
19588 The following changes consolidate code related to writing and
19589 inserting glyphs, exposing frame, the tool bar, the mouse face,
19590 the output cursor, and help echo from xterm.c, w32term.c and
19591 macterm.c into xdisp.c. It also generalizes the use of the
19592 window_part enum instead of using numeric values throughout.
19594 * xdisp.c: Consolidate gui-independent code here.
19596 (Qhelp_echo): Import.
19597 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
19598 (help_echo_string, help_echo_window, help_echo_object)
19599 (previous_help_echo_string, help_echo_pos): Declare here.
19600 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
19601 (estimate_mode_line_height): Define here. Handle windowing
19602 systems directly (without using estimate_mode_line_height_hook).
19603 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
19604 (update_window_cursor, update_cursor_in_window_tree)
19605 (fast_find_position, fast_find_string_pos)
19606 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
19607 (expose_area, expose_line, expose_overlaps, expose_window)
19608 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
19609 declared static as they are only used locally in xdisp.c.
19610 (draw_glyphs): Rename from x_draw_glyphs and make static.
19611 (tool_bar_item_info, notice_overwritten_cursor): Make static.
19612 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19613 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
19614 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
19615 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19616 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
19617 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
19618 (note_mouse_highlight, x_clear_window_mouse_face)
19619 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
19620 (x_intersect_rectangles): New generic functions for use by xdisp.c
19621 and GUI front-ends.
19622 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
19623 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
19625 * dispextern.h (Display_Info): Generic typedef for *_display_info.
19626 (NativeRectangle): Generic typedef for rectangle type.
19627 (enum window_part): Move here from window.c.
19628 (struct redisplay_interface): New members flush_display_optional,
19629 define_frame_cursor, clear_frame_area, draw_window_cursor,
19630 draw_vertical_window_border, shift_glyphs_for_insert.
19631 Rename member clear_mouse_face to clear_window_mouse_face.
19632 (estimate_mode_line_height_hook): Remove hook.
19633 (auto_raise_tool_bar_buttons_p): Don't declare extern.
19634 (tool_bar_item_info): Remove prototype.
19635 (help_echo_string, help_echo_window, help_echo_object)
19636 (previous_help_echo_string, help_echo_pos)
19637 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
19638 (x_stretch_cursor_p, output_cursor): Declare extern.
19639 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
19640 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
19641 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19642 (display_and_set_cursor, set_output_cursor, x_cursor_to)
19643 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
19644 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19645 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
19646 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
19647 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
19649 (mode_line_string, marginal_area_string): Fix prototypes.
19651 * window.c (enum window_part): Move to dispextern.h.
19652 (coordinates_in_window): Use enum window_part member names
19653 instead of numbers to describe return value.
19654 (struct check_window_data): Change part member to window_part.
19655 (check_window_containing): Return window_part unaltered.
19656 (window_from_coordinates): Change part arg from int to enum
19657 window_part. Allow part arg to be null. All users changed.
19659 * window.h (window_from_coordinates): Fix prototype.
19661 * term.c (estimate_mode_line_height): Move to xdisp.c.
19663 * keyboard.c (make_lispy_event): Use enum window_part.
19665 * dispnew.c (mode_line_string, marginal_area_string): Use enum
19666 window_part instead of int in arg list. Users changed.
19668 * xterm.h (No_Cursor): Declare as None for X.
19669 (struct mac_output): Replace member cross_cursor by hand_cursor.
19671 * xterm.c: Remove consolidated defines and code.
19672 (BETWEEN): Remove unused macro.
19673 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
19674 (x_define_frame_cursor, x_clear_frame_area)
19675 (x_draw_window_cursor): New X-specific functions for RIF.
19676 (x_redisplay_interface): Add new members.
19678 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
19680 * w32term.h (struct w32_output): Remove cross_cursor member.
19682 * w32term.c: Remove consolidated defines and code.
19683 (BETWEEN): Remove unused macro.
19684 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
19685 (w32_define_frame_cursor, w32_clear_frame_area)
19686 (w32_draw_window_cursor): New W32-specific functions for RIF.
19687 (w32_redisplay_interface): Add new members.
19689 * w32gui.h (No_Cursor): Define as 0 for W32.
19690 (XRectangle): Add X compatible rectangle type.
19691 (NativeRectangle): Declare as RECT for W32.
19692 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19694 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
19696 * w32console.c: Remove consolidated defines and code.
19698 * msdos.h (Display_Info): Add generic typedef.
19700 * msdos.c: Remove consolidated defines and code.
19701 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
19703 * macterm.h (struct mac_output): Replace member cross_cursor by
19705 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
19707 * macterm.c: Remove consolidated defines and code.
19708 (BETWEEN): Remove unused macro.
19709 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
19710 (mac_define_frame_cursor, mac_clear_frame_area)
19711 (mac_draw_window_cursor): New Mac-specific functions for RIF.
19712 (x_redisplay_interface): Add new members.
19714 * macgui.h (No_Cursor): Define as 0 for Mac.
19715 (XRectangle): Add X compatible rectangle type.
19716 (NativeRectangle): Declare as Rect for Mac.
19717 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19719 * macfns.c (x_set_mouse_color): Setup hand_cursor.
19720 (x_set_cursor_color): Use x_display_and_set_cursor.
19722 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
19723 included from it. Add dependency on keymap.h.
19725 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
19727 2003-03-21 Kenichi Handa <handa@m17n.org>
19729 * fileio.c (Fexpand_file_name): Fix previous change.
19731 2003-03-19 Kenichi Handa <handa@m17n.org>
19733 * fileio.c (Ffile_name_directory): Reconstruct file name by
19734 make_specified_string.
19735 (Ffile_name_nondirectory, Ffile_name_as_directory)
19736 (Fdirectory_file_name, Fexpand_file_name)
19737 (Fsubstitute_in_file_name): Likewise.
19738 (Fread_file_name): Compare decoded homedir with DIR and
19741 * alloc.c (make_specified_string): If NCHARS is negative, count
19742 the number of characters.
19744 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19746 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
19749 * gtkutil.h: Removed xg_ignore_next_thumb.
19751 2003-03-18 Kenichi Handa <handa@m17n.org>
19753 * coding.c (Vchar_coding_system_table): Remove this variable.
19754 (Vcoding_system_safe_chars): New variable.
19755 (intersection): Remove this function.
19756 (find_safe_codings): Don't use Vchar_coding_system_table, but try
19757 all codings in SAFE_CODINGS.
19758 (Ffind_coding_systems_region_internal): Adjust for the change of
19759 find_safe_codings. Get generic coding systems from
19760 Vcoding_system_safe_chars.
19761 (Fdefine_coding_system_internal): New function.
19762 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
19763 Initialize and staticpro Vcoding_system_safe_chars.
19765 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19767 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
19768 equal old values before updating.
19770 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
19772 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
19774 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19776 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
19777 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
19778 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
19779 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
19780 (xg_create_scroll_bar): Pass bar to button event callback.
19781 (xg_find_top_left_in_fixed): New function.
19782 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
19783 whole scroll bar area. Get old position with
19784 xg_find_top_left_in_fixed, calculate and only clear needed areas.
19785 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
19786 dragging is in progress. Calculate whole as for Motif.
19787 Remove code that saved last values. Call gtk_range functions to
19788 set scroll bar sizes.
19790 * gtkutil.h: Removed xg_ignore_next_thumb.
19792 2003-03-17 Juanma Barranquero <lektu@terra.es>
19794 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
19795 and files included from it.
19797 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
19799 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
19800 multiple occurrences of the same keymap under different prefixes.
19801 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
19803 2003-03-16 Jason Rumney <jasonr@gnu.org>
19805 * w32gui.h: Use HDC for Display.
19807 * w32term.c (w32_encode_char): Prevent double-byte chars from
19810 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
19813 2003-03-16 Juanma Barranquero <lektu@terra.es>
19815 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
19817 2003-03-16 Kim F. Storm <storm@cua.dk>
19819 The following changes consolidate some of the gui-independent
19820 parts of the processing and drawing of "glyph strings" from
19821 xterm.c, w32term.c, and macterm.c into xdisp.c.
19823 * dispextern.h (struct glyph): Reduce face_id member from 22 to
19824 21 bits (this reduces number of faces from 4M to 2M).
19825 Replace W32 specific w32_font_type member (2 bits) by generic
19826 font_type member (3 bits) for portability.
19827 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
19828 (enum draw_glyphs_face): Define here.
19829 (struct glyph_string): Define here. Merge W32 and X versions.
19830 (struct redisplay_interface): New members per_char_metric,
19831 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
19832 (VCENTER_BASELINE_OFFSET): Define here.
19833 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
19834 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
19836 * xdisp.c: Consolidate gui-independent "glyph string" code here.
19837 (dump_glyph_string): Moved here.
19838 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
19839 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
19840 (fill_composite_glyph_string, fill_glyph_string)
19841 (fill_image_glyph_string, fill_stretch_glyph_string)
19842 (left_overwritten, left_overwriting, right_overwritten)
19843 (right_overwriting, get_char_face_and_encoding)
19844 (set_glyph_string_background_width, compute_overhangs_and_x)
19845 (append_glyph, append_composite_glyph, produce_image_glyph)
19846 (take_vertical_position_into_account, append_stretch_glyph)
19847 (produce_stretch_glyph): New generic functions (based on X version).
19848 Call platform specific functions through rif.
19849 (INIT_GLYPH_STRING): New macro, hides W32 details.
19850 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
19851 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
19852 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
19853 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
19854 (notice_overwritten_cursor):
19855 Generic functions exported to platform modules. Users changed.
19857 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
19858 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
19859 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
19860 New macros for consolidated code.
19862 * xterm.c: Remove consolidated defines and code.
19863 (x_per_char_metric, x_encode_char)
19864 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
19865 (x_redisplay_interface): Add new members.
19867 * w32gui.h (Display): Add dummy typedef for consolidation.
19868 (XChar2b): Define alias for wchar_t for consolidation.
19869 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19871 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
19872 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
19873 New macros for consolidation.
19875 * w32term.c: Remove consolidated defines and code.
19876 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
19877 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
19878 (w32_per_char_metric): Change font_type arg to int for RIF.
19879 (w32_encode_char): Return int according to RIF requirements.
19880 (w32_compute_glyph_string_overhangs): Adapt to RIF.
19881 (w32_get_glyph_overhangs): New function for RIF. Uses generic
19882 x_get_glyph_overhangs.
19883 (w32_redisplay_interface): Add new members.
19885 * macgui.h (XChar2b): Move typedef here for consolidation.
19886 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19888 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
19889 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
19892 * macterm.c: Remove consolidated defines and code.
19893 (mac_per_char_metric): New function for RIF.
19894 (mac_encode_char): Adapt to new RIF requirements.
19895 (mac_compute_glyph_string_overhangs): Adapt for RIF.
19896 (x_redisplay_interface): Add new members.
19898 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
19900 * keymap.c (Vmenu_events): New var.
19901 (syms_of_keymap): Initialize it.
19902 (where_is_internal): Check more carefully what is a menu event.
19904 2003-03-14 Richard M. Stallman <rms@gnu.org>
19906 * lread.c (read1): After #!, exit loop on eof.
19908 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19910 * gtkutil.h: Add declaration for xg_frame_cleared.
19912 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
19914 * gtkutil.c (struct xg_last_sb_pos): New structure.
19915 (handle_fixed_child): New function.
19916 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
19917 and force a redraw on them.
19918 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
19919 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
19920 so we can avoid unneeded redraws.
19921 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
19922 and force a redraw on the scroll bar.
19923 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
19924 if xg_last_sb_pos shows the positions are up to date.
19925 (xg_frame_cleared): New function.
19927 2003-03-13 Kenichi Handa <handa@m17n.org>
19929 * coding.c (Fdetect_coding_region): Fix docstring.
19930 (Fdetect_coding_string): Fix docstring.
19932 2003-03-13 Andreas Schwab <schwab@suse.de>
19934 * gtkutil.c: Add prototype for create_menus.
19936 * data.c (long_to_cons): Fix type of top.
19938 * xselect.c (selection_data_to_lisp_data): Use int instead of
19939 long for an integer of size 4.
19941 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
19942 (xg_tool_bar_help_callback): Likewise.
19944 2003-03-12 Andreas Schwab <schwab@suse.de>
19946 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
19948 2003-03-12 Kim F. Storm <storm@cua.dk>
19950 The following changes consolidate the fringe handling from
19951 xterm.c, w32term.c, and macterm.c into xdisp.c.
19953 * xdisp.c: Consolidate fringe handling code here.
19954 (left_bits, right_bits, continued_bits, continuation_bits)
19955 (ov_bits, zv_bits): Define fringe bitmaps.
19956 (fringe_bitmaps): New array holding fringe bitmaps.
19957 (draw_fringe_bitmap): Draw a specific bitmap; call display
19958 specific drawing routine via rif->draw_fringe_bitmap.
19959 (draw_row_fringe_bitmaps): Generic replacement for
19960 x_draw_row_fringe_bitmaps; all callers changed.
19961 (compute_fringe_widths): Generic replacement for
19962 x_compute_fringe_widths; all callers changed.
19964 * dispextern.h (enum fringe_bitmap_type): Define here.
19965 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
19966 (fringe_bitmaps): Declare extern.
19967 (struct redisplay_interface): New member draw_fringe_bitmap.
19968 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
19970 * xterm.c: Remove generic fringe code.
19971 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19972 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19974 * w32term.c: Remove generic fringe code.
19975 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
19976 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
19978 * macterm.c: Remove generic fringe code.
19979 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19980 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19982 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
19984 * print.c (Fprin1_to_string): Return unibyte string if possible.
19986 2003-03-09 David Kastrup <dak@gnu.org>
19988 * process.c (read_process_output): We have allocated enough space
19989 for readmax and carryover, so actually use the alloted space.
19991 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19993 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
19994 toolkit scrollbar click.
19996 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19998 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
20000 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
20001 scrollbar and control is pressed, call x_scroll_bar_handle_click.
20003 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
20005 * gtkutil.c (xg_get_scroll_id_for_window): New function.
20006 (xg_tool_bar_item_expose_callback): New function.
20007 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
20008 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
20009 on the tool bar widget.
20010 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
20011 to expose on the tool bar item widgets.
20013 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20015 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
20016 struct image* when deciding to update (struct image* may have been
20017 deleted from the image cache).
20019 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
20020 the event isn't for a frame (i.e. for dialogs).
20022 2003-03-07 Kenichi Handa <handa@m17n.org>
20024 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
20025 composition components reaches the limit, terminate composing.
20026 (COMPOSITION_OK): New macro.
20027 (detect_coding_iso2022): Use it if an escape sequence for
20028 composition is found.
20029 (coding_restore_composition): Adjust the number of composition
20030 components if it is not sane.
20032 2003-03-06 Juanma Barranquero <lektu@terra.es>
20034 * w32term.h (struct w32_display_info): Add xrdb member to support
20035 passing resources via -xrm on Windows.
20037 * w32term.c (w32_make_rdb): New function.
20038 (w32_term_init): Use it to initialize xrdb member of w32_display_info
20039 struct. Delete leftover code.
20041 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
20042 for resources passed on the command line.
20044 * w32reg.c (w32_get_rdb_resource): New function.
20045 (x_get_string_resource): Use it, so resources passed with -xrm
20046 supercede the ones in the registry.
20048 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20050 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
20051 instead of x_top_window_to_frame.
20053 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20055 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
20056 when restarting Emacs.
20058 2003-03-03 Richard M. Stallman <rms@gnu.org>
20060 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
20061 to run kill-buffer-query-functions.
20062 (Qkill_buffer_query_functions): New var.
20063 (syms_of_buffer): Init and staticpro it.
20065 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20067 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
20069 2003-02-25 Kim F. Storm <storm@cua.dk>
20071 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
20072 If centering point failed to make whole line visible and vscroll
20073 is non-zero, disable vscroll and try centering point again.
20075 * lread.c (read1): Accept `single space' syntax like (? x).
20077 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20079 * keyboard.c (cancel_hourglass_unwind): Surround with
20080 #ifdef HAVE_X_WINDOWS.
20082 2003-02-25 Kenichi Handa <handa@m17n.org>
20084 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
20085 process only when "subprocesses" is defined.
20087 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
20089 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
20091 2003-02-24 Juanma Barranquero <lektu@terra.es>
20093 * callint.c (fix_command): Declare as static void and move before
20094 Fcall_interactively.
20096 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
20097 (syms_of_xdisp): Don't initialize Qwhen.
20099 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20101 * keyboard.c (cancel_hourglass_unwind): New function.
20102 (command_loop_1): Cancel hourglass with unwind-protect.
20104 2003-02-23 Richard M. Stallman <rms@gnu.org>
20106 * callint.c (fix_command): New subroutine, from Fcall_interactively.
20107 Detect (when ... (region-beginning)) etc.
20108 (Fcall_interactively): Call fix_command.
20109 (Qif, Qwhen): New variables.
20110 (syms_of_callint): Init and staticpro them.
20112 * regex.c (print_partial_compiled_pattern): Output to stderr.
20114 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20116 * dired.c (directory_files_internal): Don't expand directory.
20117 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
20118 instead. From Lars Hansen <larsh@math.ku.dk>.
20120 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
20122 * fns.c (string_to_multibyte): Remove unused var i.
20123 (Flanginfo): Fix int/Lisp_Object mixup.
20124 (void_call2): New fun.
20125 (Fmap_char_table): Use it in place of call2.
20127 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
20129 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
20131 * keymap.c (copy_keymap_1): Make it static.
20133 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
20135 2003-02-22 David Ponce <david@dponce.com>
20137 * lread.c (Fload): Don't check STRING_MULTIBYTE.
20139 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20141 * process.h: Removed subtty field from struct Lisp_Process.
20143 * process.c (create_process): Remove setting of subtty.
20144 (emacs_get_tty_pgrp): New function.
20145 (Fprocess_running_child_p, process_send_signal):
20146 Call emacs_get_tty_pgrp instead of ioctl.
20147 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
20149 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20151 * keymap.c (Fdefine_key): Doc fix.
20153 2003-02-21 Juanma Barranquero <lektu@terra.es>
20155 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
20157 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
20158 POLLING_PROBLEM_IN_SELECT.
20160 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
20161 Delete #undef of POLLING_PROBLEM_IN_SELECT.
20163 * s/hpux10-20.h: New file.
20165 * process.c (wait_reading_process_input):
20166 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
20168 2003-02-20 Kenichi Handa <handa@m17n.org>
20170 * fontset.c (check_fontset_name): If NAME is nil, return the
20172 (override_font_info): New function.
20173 (Fset_fontset_font): Document that NAME nil means the default fontset.
20174 (Ffontset_info): If FONTSET is not the default fontset, merge
20175 FONTSET onto the copy of the default fontset, and work on that
20176 copy. Document that NAME nil means the default fontset.
20177 (Ffontset_font): Document that NAME nil means the default fontset.
20179 * process.c (setup_process_coding_systems): If the process's
20180 in/out descriptor is -1, do nothing.
20182 2003-02-19 Andreas Schwab <schwab@suse.de>
20184 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
20187 2003-02-19 Kenichi Handa <handa@m17n.org>
20189 * xfaces.c (try_alternative_families): Try all scalable fonts if
20190 Vscalable_fonts_allowed is not Qt.
20192 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20194 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
20196 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20198 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
20201 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
20202 (sorted_font_list): Move allocation of struct font_name to
20204 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
20205 (Fx_list_fonts): Set maxnames to -1 to get all font names.
20207 2003-02-18 Kim F. Storm <storm@cua.dk>
20209 * lread.c (read1): Fix last change.
20210 "`" is not always special. Allow "?" after a character constant.
20212 2003-02-18 Andrew Choi <akochoi@shaw.ca>
20214 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
20216 2003-02-18 Andreas Schwab <schwab@suse.de>
20218 * window.c (window_scroll_pixel_based): Move outside a
20219 multi-glyph character before setting new window start.
20221 * xdisp.c (in_display_vector_p): New function.
20222 * dispextern.h (in_display_vector_p): Declare.
20224 2003-02-18 Kim F. Storm <storm@cua.dk>
20226 * lread.c (read1): Fix and relax read syntax.
20227 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
20228 Only recognize "," after dotted-pair dot if inside backquote.
20229 Never include "`" or "," (inside backquote) in a symbol.
20230 Allow dotted-pair dot after a character constant.
20231 Allow "`" and "," (inside backquote) after a character constant.
20233 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20235 * gtkutil.c (xg_tool_bar_expose_callback): New function.
20236 (xg_create_tool_bar): Force style of tool bar to be horizontal with
20237 icons. Set name of tool bar to emacs-toolbar.
20238 (update_frame_tool_bar): Connect expose event to
20239 xg_tool_bar_expose_callback.
20241 2003-02-17 Richard M. Stallman <rms@gnu.org>
20243 * keyboard.c (this_command_key_count_reset): New variable.
20244 Initiatize to 0 where this_command_key_count is set.
20245 (read_char): Save and restore this_command_key_count_reset
20246 around input method code.
20247 (read_char): If this_command_key_count_reset, echo reread commands.
20248 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
20250 2003-02-17 Kenichi Handa <handa@m17n.org>
20252 * fns.c (string_to_multibyte): Always return a multibyte string.
20254 2003-02-16 Jason Rumney <jasonr@gnu.org>
20256 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
20257 Negative max_fonts parameter means list all.
20259 2003-02-14 Dave Love <fx@gnu.org>
20261 * fns.c (Flanginfo): Doc fix.
20263 2003-02-13 Kim F. Storm <storm@cua.dk>
20265 * lread.c (read_escape): Interpret \s as a SPACE character, except
20266 for \s-X in a character constant which still is the super modifier.
20267 (read1): Signal an `invalid read syntax' error if a character
20268 constant is immediately followed by a digit or symbol character.
20270 * search.c (Fmatch_data): Doc fix. Explicitly state that
20271 match-data is undefined if last search failed.
20273 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
20276 2003-02-12 Juanma Barranquero <lektu@terra.es>
20278 * eval.c (Fdefmacro): Fix typo.
20280 2003-02-12 Kim F. Storm <storm@cua.dk>
20282 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
20283 macro is a string, convert meta modifiers in string when copying
20284 the string into a vector.
20286 2003-02-11 Kim F. Storm <storm@cua.dk>
20288 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
20290 2003-02-11 Kenichi Handa <handa@m17n.org>
20292 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
20294 2003-02-10 Kim F. Storm <storm@cua.dk>
20296 * process.c: Doc fixes.
20297 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
20299 2003-02-10 Kenichi Handa <handa@m17n.org>
20301 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
20303 * process.c (QCfilter_multibyte): New variable.
20304 (setup_process_coding_systems): New function.
20305 (Fset_process_buffer, Fset_process_filter):
20306 Call setup_process_coding_systems.
20307 (Fstart_process): Initialize the member `filter_multibyte' of
20308 struct Lisp_Process.
20309 (create_process): Call setup_process_coding_systems.
20310 (Fmake_network_process): New keyward `:filter-multibyte'.
20311 Initialize the member `filter_multibyte' of struct Lisp_Process.
20312 Call setup_process_coding_systems.
20313 (server_accept_connection): Call setup_process_coding_systems.
20314 (read_process_output): If the process has a filter, decide the
20315 multibyteness of a string to given to the filter by
20316 `filter_multibyte' member of the process. If the process doesn't
20317 have a filter and the result of conversion is unibyte, use
20318 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
20320 (Fset_process_coding_system): Call setup_process_coding_systems.
20321 (Fset_process_filter_multibyte): New function.
20322 (Fprocess_filter_multibyte_p): New function.
20323 (syms_of_process): Intern and staticpro QCfilter_multibyte.
20324 Defsubr Sset_process_filter_multibyte and
20325 Sprocess_filter_multibyte_p.
20327 * process.h (struct Lisp_Process): New member filter_multibyte.
20329 * lisp.h (setup_process_coding_systems): Add prototype.
20331 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
20332 process, update coding systems for the process.
20334 2003-02-09 Kenichi Handa <handa@m17n.org>
20336 * fns.c (string_to_multibyte): New function.
20337 (Fstring_to_multibyte): New function.
20338 (syms_of_fns): Defsubr it.
20340 2003-02-08 Andreas Schwab <schwab@suse.de>
20342 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
20343 instead of the substitution.
20345 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20347 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
20349 * xmenu.c (menu_position_func): Adjust menu popup position so that
20350 the menu is fully visible.
20352 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20354 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
20355 (x_make_frame_invisible, x_wm_set_icon_position):
20356 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
20358 * xfns.c (x_set_name, x_set_title): Ditto.
20360 2003-02-04 Richard M. Stallman <rms@gnu.org>
20362 * keyboard.c (echo_now): Update before_command_echo_length.
20363 (Freset_this_command_lengths): Reset this_command_key_count etc.
20364 immediately rather than arranging to do it later.
20365 (before_command_key_count_1, before_command_echo_length_1)
20366 (before_command_restore_flag): Vars deleted.
20367 (add_command_key): Don't handle before_command_restore_flag.
20368 (read_char, record_menu_key): Don't update before_command_key_count or
20369 before_command_echo_length.
20370 (read_char): Don't handle before_command_restore_flag.
20372 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
20373 in direct-output clauses if it wouldn't be called in the ordinary case.
20375 2003-02-04 Kim F. Storm <storm@cua.dk>
20377 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
20379 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20381 * gtkutil.c (remove_from_container): Copying list is not needed.
20382 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
20383 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
20384 on list returned from gtk_container_get_children to avoid memory leak.
20386 2003-02-01 Jason Rumney <jasonr@gnu.org>
20388 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
20390 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
20391 definitions in xpm.h.
20392 (init_xpm_functions): New function.
20393 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
20394 (init_external_image_libraries): Try to load libXpm.dll.
20396 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
20399 2003-01-31 Dave Love <fx@gnu.org>
20401 * syntax.c (Fskip_chars_forward)
20402 (open-paren-in-column-0-is-defun-start): Doc fix.
20404 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
20406 * fileio.c: Support // at start of name for Cygwin (just added proper
20407 preprocessor tests).
20409 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
20411 * Makefile.in: Use @EXEEXT@ for Cygwin.
20413 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
20415 * s/cygwin.h: Added for Cygwin port.
20417 2003-01-31 Juanma Barranquero <lektu@terra.es>
20419 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
20420 when including gif_lib.h.
20421 (init_gif_functions, init_tiff_functions): New functions.
20422 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
20423 Windows. Disable color table lookups. Call library functions
20424 through pointers determined at runtime.
20425 (init_external_image_libraries): Try to load libungif.dll and
20428 2003-01-31 Kenichi Handa <handa@m17n.org>
20430 * xdisp.c (SKIP_GLYPHS): New macro.
20431 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
20433 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20435 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
20437 2003-01-30 Dave Love <fx@gnu.org>
20439 * alloc.c (Vgc_elapsed, gcs_done): New variables.
20440 (Fgarbage_collect): Use them.
20441 (init_alloc, syms_of_alloc): Set them up.
20443 2003-01-30 Juanma Barranquero <lektu@terra.es>
20445 * w32fns.c (init_external_image_libraries): Add missing operator.
20447 2003-01-29 Jason Rumney <jasonr@gnu.org>
20449 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
20450 an alternative name for jpeg.dll.
20452 2003-01-29 Kenichi Handa <handa@m17n.org>
20454 * xdisp.c (set_cursor_from_row): Pay attention to string display
20457 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
20459 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
20461 (keycode_to_xkeysym_table): Reformat and add more comments.
20462 (XTread_socket): Drop special case for backspace.
20464 2003-01-28 Andrew Choi <akochoi@shaw.ca>
20466 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
20467 values in old-style RGB specs.
20469 2003-01-27 Juanma Barranquero <lektu@terra.es>
20471 * w32fns.c (init_external_image_libraries): Try alternate names for the
20474 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20476 * gtkutil.c (create_dialog, xg_separator_p)
20477 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
20478 before calling strcmp or strlen.
20480 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20482 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
20483 and handle image load failure.
20485 2003-01-26 Jason Rumney <jasonr@gnu.org>
20487 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
20489 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
20490 Disable color table lookups. Call jpeg library functions
20491 through pointers determined at runtime.
20492 (init_external_image_libraries): Try to load jpeg.dll.
20494 2003-01-25 Richard M. Stallman <rms@gnu.org>
20496 * lisp.h: Declare format2 instead of format1.
20498 * fileio.c (barf_or_query_if_file_exists):
20499 Call format2 instead of format1.
20501 * editfns.c (format2): New function, replaces format1
20502 but takes exactly two Lisp Objects as format args.
20504 * buffer.c (Fkill_buffer): Call format2 instead of format1.
20506 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20508 * xterm.h: Change to return value of x_dispatch_event to int.
20510 * xterm.c (x_filter_event): New function.
20511 (event_handler_gdk, XTread_socket): Call x_filter_event.
20512 (x_dispatch_event): Change to return value of finish.
20513 (event_handler_gdk): Use return value from x_dispatch_event.
20515 * xfns.c (x_window): Call create_frame_xic for GTK version to
20516 initialize input methods.
20518 * gtkutil.h: Add (void) prototypes.
20520 * gtkutil.c (create_menus): Remove code that puts the help menu to
20523 2003-01-25 Jason Rumney <jasonr@gnu.org>
20525 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
20526 [HAVE_PNG]: Sync with xfns.c version.
20527 (png_load): Adjust colors for Windows. Use Windows
20528 bitmaps. Disable color table lookups.
20529 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
20530 (init_png_functions): New function.
20531 (png_read_from_memory, png_load): Call png library functions
20532 through pointers determined at runtime.
20533 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
20534 (init_external_image_libraries): New function.
20535 (init_xfns): Call it.
20537 2003-01-24 Andreas Schwab <schwab@suse.de>
20539 * minibuf.c (Fminibuffer_message): Verify type of parameter.
20541 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20543 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
20544 of static initializer.
20546 2003-01-24 Dave Love <fx@gnu.org>
20548 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
20551 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
20554 2003-01-24 Kenichi Handa <handa@m17n.org>
20556 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
20557 It it is nonzero, don't pretend that an invisible area doesn't exist.
20558 (command_loop_1): Call adjust_point_for_property with proper
20561 2003-01-22 Jason Rumney <jasonr@gnu.org>
20563 Sync changes with xterm.c and xfns.c.
20565 * w32term.c (x_draw_glyph_string_foreground)
20566 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20568 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
20569 phys_cursor's hpos is overwritten. This is still not completely
20570 correct, as it doesn't really make sense to use hpos at all to
20571 get the cursor glyph (as that is relative to the width of the
20572 characters on the line, which may have changed during the update).
20574 * w32term.c (notice_overwritten_cursor): Handle the special case
20575 of the cursor being in the first blank non-text line at the
20578 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20579 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20580 Compute from the x position returned by x_draw_glyphs.
20582 (x_display_and_set_cursor): Don't set phys_cursor_width here,
20583 except for NO_CURSOR and system caret, to make phys_cursor_width
20584 contain what its name suggests.
20585 (notice_overwritten_cursor): Consider the cursor image erased if
20586 the output area intersects the cursor image in y-direction.
20588 * w32term.c (note_mode_line_or_margin_highlight): Rename from
20589 note_mode_line_highlight and extend.
20591 * w32term.c (last_window): New variable.
20592 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
20593 (note_mouse_movement): Remove reimplemented code in #if 0.
20595 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
20596 not update_mode_lines, and always set it to 1.
20598 2003-01-21 Jason Rumney <jasonr@gnu.org>
20600 * w32fns.c (IDC_HAND): Define it if system headers don't.
20602 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
20604 * w32term.h (struct w32_output): New member hand_cursor.
20605 (WM_EMACS_SETCURSOR): New message definition.
20607 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
20608 function w32_define_cursor.
20609 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
20610 position, change member name output_data.x to output_data.w32 and
20611 add function w32_define_cursor.
20612 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
20613 and change member name output_data.x to output_data.w32.
20614 (w32_initialize_display_info):
20615 Setup dpyinfo->vertical_scroll_bar_cursor.
20617 * w32fns.c (Vx_hand_shape): New variable.
20618 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
20619 WM_EMACS_SETCURSOR.
20620 (x-create-frame): Setup Cursor types.
20622 2003-01-21 David Ponce <david@dponce.com>
20624 * w32term.c (w32_encode_char): For DIM=1 charset, set
20625 ccl->reg[2] to -1 before calling ccl_driver.
20626 (Sync. with xterm.c x_encode_char change by Kenichi Handa
20627 <handa@m17n.org> on 2002-09-30.)
20628 (w32_draw_relief_rect): Declare all args.
20629 (w32_define_cursor): New.
20631 * w32fns.c (w32_load_cursor): New function.
20632 (w32_init_class): Use it.
20633 (x_put_x_image): Declare all args.
20635 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
20637 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
20639 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20641 * gtkutil.c: Must include stdio.h before termhooks.h.
20643 2003-01-21 Dave Love <fx@gnu.org>
20645 * alloc.c (Fgc_status): Print zombie list.
20646 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20647 Fix assignment of zombies.
20648 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20649 Don't take car of non-cons.
20651 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20653 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20655 2003-01-20 David Ponce <david@dponce.com>
20657 * w32menu.c (digest_single_submenu): Declare all args.
20659 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
20660 changes in xmenu.c:
20662 (parse_single_submenu): Use individual keymap's prompt
20663 string as pane name, if there is one.
20664 (set_frame_menubar): Save menu_items_n_panes from each call to
20665 parse_single_submenu and use it when calling digest_single_submenu.
20667 2003-01-20 Steven Tamm <steventamm@mac.com>
20669 * macterm.c (XTread_socket): Check for valid, visible window
20670 before sending a scroll-wheel event.
20672 2003-01-20 Richard M. Stallman <rms@gnu.org>
20674 * xdisp.c (redisplay_window): If mini window's buffer is not
20675 a minibuffer, then redisplay it like other windows.
20677 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20679 * gtkutil.c (xg_create_frame_widgets): Check if there is an
20680 external tool bar before setting tool bar height.
20682 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20684 * xterm.c (handle_one_xevent): Surround popup_activated
20685 with #ifdef:s for non-toolkit version.
20687 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
20688 (gtkutil.o): New file.
20689 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
20690 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
20692 * gtkutil.c: New file for GTK version.
20694 * gtkutil.h: New file for GTK version.
20696 * xterm.h: Add xt_or_gtk_widget.
20697 Include gtk files for USE_GTK.
20698 (struct x_output): Add toolbar_height.
20699 (struct x_output): Add GTK widgets and Gdk size_hints.
20700 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
20701 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
20702 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
20704 * xterm.c: Include gtkutil.h for USE_GTK.
20705 (free_frame_menubar): Declare extern void for USE_GTK.
20706 (note_mouse_highlight): Check popup_activated for USE_GTK.
20707 (xt_action_hook): Don't compile if USE_GTK.
20708 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
20709 (xg_scroll_callback): New function.
20710 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
20711 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
20713 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
20714 xg_show_scroll_bar for USE_GTK.
20715 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
20716 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
20717 (event_handler_gdk): New function for USE_GTK.
20718 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
20719 (handle_one_xevent): Make sure widget is mapped before
20720 calling x_real_positions for USE_GTK.
20721 (XTread_socket): Add GTK event loop for USE_GTK.
20722 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
20723 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
20724 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
20725 (x_iconify_frame): Add code for USE_GTK.
20726 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
20727 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
20729 (x_term_init): Add initialization for GTK.
20730 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
20732 * xmenu.c: Include gtkutil.h for USE_GTK.
20733 (Fx_popup_menu): Use current position if x and y are nil.
20734 (single_menu_item, single_menu_item, Fx_popup_dialog):
20736 (popup_widget_loop): New function for USE_GTK.
20737 (x_activate_menubar): Add code for USE_GTK.
20738 (popup_activate_callback, popup_deactivate_callback)
20739 (menu_highlight_callback, menubar_selection_callback):
20740 Add USE_GTK versions.
20741 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
20742 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
20743 (free_frame_menubar): Only compile if not USE_GTK. GTK version
20745 (popup_selection_callback): New version for USE_GTK.
20746 (create_and_show_popup_menu): New fuction, one USE_GTK version and
20747 one USE_X_TOOLKIT version.
20748 (xmenu_show): Call create_and_show_popup_menu.
20749 (dialog_selection_callback): New version for USE_GTK.
20750 (create_and_show_dialog): New fuction, one USE_GTK version and
20751 one USE_X_TOOLKIT version.
20752 (xdialog_show): Call create_and_show_dialog.
20754 * xfns.c: Include gtkutil for USE_GTK.
20755 (x_window_to_frame, x_any_window_to_frame)
20756 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
20757 (x_top_window_to_frame): Add code for USE_GTK.
20758 (x_set_background_color): Call xg_set_background_color for GTK.
20759 (x_set_menu_bar_lines): Check for USE_GTK.
20760 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
20761 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
20762 (x_window): Call xg_create_frame_widgets for USE_GTK.
20763 (Fx_create_frame): Check for USE_GTK.
20764 (Fx_file_dialog): New implementation for USE_GTK.
20766 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
20767 (update_menu_bar): Add check for USE_GTK.
20768 (update_tool_bar): Add check for USE_GTK and external tool bar.
20769 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
20770 (redisplay_internal): Add check for USE_GTK and popup_activated.
20771 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
20772 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
20773 (display_menu_bar): Add check for USE_GTK
20775 * lisp.h (Vx_resource_name): Declare extern.
20777 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
20779 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
20781 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
20782 (FRAME_EXTERNAL_TOOL_BAR): New macro.
20783 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
20785 * fileio.c (Fread_file_name): Add check for USE_GTK.
20787 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
20788 Add check for USE_GTK.
20790 * config.in: Added HAVE_GTK.
20792 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
20794 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
20796 * charset.h (Funibyte_char_to_multibyte): Export.
20798 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20800 * xmenu.c (mouse_position_for_popup): New function.
20801 (Fx_popup_menu): Call mouse_position_for_popup for X and
20802 mouse_position_hook for others.
20804 2003-01-17 Kim F. Storm <storm@cua.dk>
20806 * editfns.c (Finsert): Mention `string-make-multibyte' and
20807 `string-as-multibyte' in doc string.
20809 2003-01-17 Kenichi Handa <handa@m17n.org>
20811 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
20813 * editfns.c (Fformat): Convert an unibyte char argument that is
20814 formatted by "%c" to multibyte if the total result must be a
20817 2003-01-16 Kim F. Storm <storm@cua.dk>
20819 * process.c (set-process-filter): Document unibyte/multibyte-ness
20820 of string argument.
20822 2003-01-16 Kenichi Handa <handa@m17n.org>
20824 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
20826 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
20827 (re_search_2): Likewise.
20829 2003-01-15 Kenichi Handa <handa@m17n.org>
20831 * xdisp.c (message_dolog): Fix bug of the case that *Message*
20834 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20836 * fns.c (Fsubstring): Clarify doc string.
20838 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
20839 (Fprevious_char_property_change)
20840 (Fnext_single_char_property_change)
20841 (Fprevious_single_char_property_change, Fnext_property_change)
20842 (Fnext_single_property_change, Fprevious_property_change)
20843 (Fprevious_single_property_change, Fadd_text_properties)
20844 (Fput_text_property, Fset_text_properties)
20845 (Fremove_text_properties, Fremove_list_of_text_properties)
20846 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
20848 2003-01-14 Kim F. Storm <storm@cua.dk>
20850 * process.h (struct Lisp_Process): New member plist replaces old
20851 member private_vars. All uses changed.
20853 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
20854 (QCplist): Rename from QCvars. Change all uses.
20855 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
20856 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
20857 (syms_of_process): Intern, staticpro, defsubr these.
20858 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
20860 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20862 * m/delta.h: Remove (obsolete).
20864 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20866 * fileio.c (Fdelete_directory, Fdelete_file): Document the
20867 behaviour in front of symlinks.
20868 (Fdelete_file): Raise an error on directories.
20870 2003-01-13 Dave Love <fx@gnu.org>
20872 * fns.c (Freverse): Use QUIT.
20874 2003-01-13 Richard M. Stallman <rms@gnu.org>
20876 * minibuf.c (minibuffer_completion_contents):
20877 Error if point is inside prompt.
20879 * keyboard.c (command_loop_1): Don't redisplay directly
20880 if there's a post-command-hook.
20882 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
20883 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
20885 2003-01-12 Kim F. Storm <storm@cua.dk>
20887 * process.h (struct Lisp_Process): New member private_vars.
20889 * process.c (QCvars): New variable.
20890 (syms_of_process): Intern and staticpro it.
20891 (Fset_process_contact): Removed function.
20892 (Fprocess_variable, Fset_process_variable): New functions.
20893 (syms_of_process): Defsubr them.
20894 (Fstart_process): Initialize private_vars plist to nil.
20895 (Fmake_network_process): New arg :vars to setup the private
20896 variables for new network process.
20897 (server_accept_connection): Copy server's private variables to
20900 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
20901 crashes). Code rewritten and simplified. Now directly aligns the
20902 pointer and recalculates pure_bytes_used, rather than aligning the
20903 size and adjusting the pointer.
20905 2003-01-11 Kim F. Storm <storm@cua.dk>
20907 * process.c (Fset_process_contact): New function.
20908 (syms_of_process): defsubr it.
20909 (make-network-process): Update doc.
20911 2003-01-10 Andreas Schwab <schwab@suse.de>
20913 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
20914 Reported by Berthold Gunreben <b.gunreben@web.de>.
20916 2003-01-10 Dave Love <fx@gnu.org>
20918 * composite.c (syms_of_composite): Make composition_hash_table weak.
20920 2003-01-09 Kim F. Storm <storm@cua.dk>
20922 * process.c (Fmake_network_process): Convert new port number
20923 to host byte order for `:service t' case. From Mario Lang.
20925 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20927 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
20928 instead of XtAppProcessEvent.
20930 * xterm.c (handle_one_xevent): New function.
20931 (x_dispatch_event): New function.
20932 (XTread_socket): Call handle_one_xevent.
20934 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
20936 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
20937 call XQueryPointer to get coordinates.
20938 (popup_get_selection): Do not set popup_activated_flag to zero,
20939 let popup_deactivate_callback do that. Needed for Motif.
20940 Call x_dispatch_event instead of XtDispatchEvent.
20941 (xmenu_show): Calculate root coordinate from frame top/left position.
20943 2003-01-08 Kim F. Storm <storm@cua.dk>
20945 * process.c (server_accept_connection): Fix recording of new
20946 connection's local address in :local property of contact info.
20947 (Fmake_network_process): Record local network address for new
20948 client processes in :local property of contact info.
20949 (format-network-address): Add arg OMIT-PORT. Change callers.
20951 2003-01-07 Dave Love <fx@gnu.org>
20953 * Makefile.in (fns.o): Depend on coding.h.
20955 2003-01-06 Dave Love <fx@gnu.org>
20957 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
20958 (Vlocale_coding_system): Declare.
20959 (Qcodeset, Qdays, Qmonths, Qpaper): New.
20961 (syms_of_fns): Initialize new stuff.
20963 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
20965 * minibuf.c (Fread_variable): Doc fix.
20967 * eval.c (Fuser_variable_p): Doc change. For custom variables,
20968 use the same test as for custom-variable-p.
20970 2003-01-05 Richard M. Stallman <rms@gnu.org>
20972 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
20973 Count LAST_LINE_MISFIT in scroll margin for end of window.
20974 Move label too_near_end before setting SCROLL_MARGIN_POS.
20975 Set LAST_LINE_MISFIT before jumping there.
20977 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
20978 scroll_conservatively case. If scrolling that much doesn't change
20979 STARTP, move it down one line.
20981 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
20982 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
20984 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
20987 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
20988 (syms_of_keymap): Staticpro them.
20989 (Fapropos_internal): Initialize them and clear them out.
20992 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
20994 * lisp.h: New misc type Lisp_Save_Value.
20995 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20996 (XSAVE_VALUE): New macro.
20997 (struct Lisp_Save_Value): New data type.
20998 (union Lisp_Misc): Add u_save_value alternative.
20999 (make_save_value): Declare.
21001 * alloc.c (make_save_value): New function.
21003 * xterm.c (x_catch_errors): Save dpy using make_save_value.
21004 (x_catch_errors_unwind): Call XSync.
21006 2003-01-01 Richard M. Stallman <rms@gnu.org>
21008 * window.c (window_scroll_pixel_based): Partially undo last change.
21010 * keyboard.c (command_loop_1): Call adjust_point_for_property
21011 in direct action cases for Qforward_char and Qbackward_char.
21012 Set already_adjusted so it won't be done twice.
21014 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
21016 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
21017 type definition of size_t.
21019 2003-01-02 Steven Tamm <steventamm@mac.com>
21021 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
21022 distinguish Carbon GUI builds from X11 builds on darwin.
21024 2002-12-30 Steven Tamm <steventamm@mac.com>
21026 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
21029 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
21031 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
21033 2002-12-28 Steven Tamm <steventamm@mac.com>
21035 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
21036 allow building in a different directory than source. Uses some
21037 GNU Make extensions, but there is no other make on Mac OS X.
21039 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
21041 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
21042 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
21043 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
21044 (Fstring_to_number): Mention the returned value in the doc strings.
21046 2002-12-23 Richard M. Stallman <rms@gnu.org>
21048 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
21049 <scroll-down-aggressively>: Doc fix.
21051 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
21052 string as pane name, if there is one.
21053 (set_frame_menubar): Save menu_items_n_panes from each call to
21054 parse_single_submenu and use it when calling digest_single_submenu.
21056 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
21057 Don't try to make last line fully visible if it is past end of window.
21059 2002-12-22 Steven Tamm <steventamm@mac.com>
21061 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
21062 (mac_menu_show): Add support for hierarchical popup menus.
21063 (add_menu_item): Remove indentation support.
21064 (fill_submenu, fill_menu): Create hierarchical menus
21065 instead of using indentation.
21067 2002-12-22 Richard M. Stallman <rms@gnu.org>
21069 * xdisp.c (try_cursor_movement): Don't call try_window here.
21070 (redisplay_window): Never redisplay minibuffer when inactive.
21072 * window.c (select_window_1): Undo 9/21 change.
21074 2002-12-22 Steven Tamm <steventamm@mac.com>
21076 * macterm.c (XTread_socket): Call KeyTranslate for control and
21077 meta to deal correctly shifted non-alpha characters, like C-S-5
21078 being treated like C-%. Do not look for shift key to deal
21079 with masking off control-key with mac-reverse-ctrl-meta.
21081 2002-12-21 Richard M. Stallman <rms@gnu.org>
21083 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
21084 If it is non-nil, run timers. Use an unwind-protect to requeue
21085 the events that were read ahead.
21086 (popup_get_selection_unwind): New subroutine.
21087 (popup_get_selection_queue): File-scope variable now holds that queue.
21088 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
21089 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
21090 Use an unwind-protect to pop down the dialog box.
21091 (xdialog_show_unwind): New subroutine implements that.
21093 * xdisp.c (row_containing_pos): Change exit test using last_y.
21094 (try_window_id): Abort if row_containing_pos returns null.
21096 * lread.c (load_error_handler): New function.
21097 (Fload): Handle errors in Fsubstitute_in_file_name.
21098 Don't expect Fsignal to return.
21100 * eval.c: Errors and throws work right with interrupt blocking.
21101 (struct catchtag): New elt interrupt_input_blocked.
21102 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
21103 (internal_catch, Fcondition_case, internal_condition_case)
21104 (internal_condition_case_1, internal_condition_case_2): Save it.
21105 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
21107 * editfns.c (Fformat): Add parens.
21109 * dired.c (file_name_completion): Fix that change.
21110 Delete special quit-handling code; just use QUIT.
21112 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
21114 * dired.c (file_name_completion): Close directory on error
21115 just as in directory_files_internal.
21117 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
21119 * window.c (Fset_window_configuration): Set old_point to correct
21120 value when new_current_buffer == current_buffer.
21122 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
21124 Revisited my earlier fix for the following entry in etc/PROBLEMS:
21125 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21126 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
21128 These changes were in part based upon suggestions made by Peter
21129 'Luna' Runestig [peter@runestig.com].
21131 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
21132 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
21133 (g_b_init_get_sid_identifier_authority ): Add several static
21136 * w32.c (globals_of_w32): New function. Used to initialize those
21137 global variables that must always be initialized on startup even
21138 when the global variable initialized is non zero. Its primary
21139 purpose at this time is to set the global variables
21140 g_b_init_is_windows_9x, g_b_init_open_process_token,
21141 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
21142 g_b_init_get_sid_identifier_authority to 0 on startup.
21145 * w32.c (is_windows_9x): Perform initialization only if
21146 g_b_init_is_windows_9x is equal to 0. On initialization set
21147 g_b_init_is_windows_9x equal to 1.
21149 * w32.c (open_process_token): Perform initialization only if
21150 g_b_init_open_process_token is equal to 0. On initialization set
21151 g_b_init_open_process_token equal to 1.
21153 * w32.c (get_token_information): Perform initialization only if
21154 g_b_init_get_token_information is equal to 0. On initialization
21155 set g_b_init_get_token_information equal to 1.
21157 * w32.c (lookup_account_sid): Perform initialization only if
21158 g_b_init_lookup_account_sid is equal to 0. On initialization
21159 set g_b_init_lookup_account_sid equal to 1.
21161 * w32.c (get_sid_identifier_authority): Perform initialization
21162 only if g_b_init_get_sid_identifier_authority is equal to 0.
21163 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
21165 * w32fns.c (globals_of_w32fns): New function. Used to initialize
21166 those global variables that must always be initialized on startup
21167 even when the global variable initialized is non zero.
21168 Its primary purpose at this time is to initialize the global variable
21169 track_mouse_event_fn.
21171 * w32fns.c (w32_wnd_proc): Remove initialization of
21172 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
21174 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
21176 * w32menu.c (globals_of_w32menu): New function. Used to
21177 initialize those global variables that must always be initialized
21178 on startup even when the global variable initialized is non zero.
21179 Its primary purpose at this time is to initialize the global
21180 variables get_menu_item_info and set_menu_item_info.
21182 * w32menu.c (initialize_frame_menubar): Remove initialization of
21183 get_menu_item_info and set_menu_item_info.
21185 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
21187 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
21190 * emacs.c (main): Call globals_of_w32 prior to calling
21191 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
21192 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
21195 * w32term.c (x_update_window_begin): Fix Windows API error
21196 detected by BoundsChecker. Test to determine if
21197 w32_system_caret_hwnd is NULL prior to attempting to use
21198 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
21200 * w32term.c (x_update_window_end): Fix Windows API error
21201 detected by BoundsChecker. Test to determine if
21202 w32_system_caret_hwnd is NULL prior to attempting to use
21203 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
21205 2002-12-17 Kenichi Handa <handa@m17n.org>
21207 * coding.c (coding_system_require_warning): New variable.
21208 (syms_of_coding): DEFVAR it.
21210 * coding.h (coding_system_require_warning): Extern it.
21212 * fileio.c (choose_write_coding_system): Even if
21213 Vcoding_system_for_write is non-nil, if
21214 coding_system_require_warning is nonzero, call
21215 Vselect_safe_coding_system_function.
21217 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
21219 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
21220 (lisp): Add font-core.
21222 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
21224 * textprop.c (text_read_only): New arg `propval'.
21225 (get_char_property_and_overlay): Remove unused var `next_overlay'.
21226 (verify_interval_modification): Use text_read_only's new arg.
21228 2002-12-13 Kenichi Handa <handa@m17n.org>
21230 * coding.c (Funencodable_char_position): Set pend correctly.
21232 2002-12-12 Jason Rumney <jasonr@gnu.org>
21234 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
21235 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
21236 Be more careful about when help_events are generated.
21238 2002-12-12 Steven Tamm <steventamm@mac.com>
21240 * macterm.c (mac_check_for_quit_char): Correctly set the
21241 modifiers of the event to 0.
21242 * mac.c (sys_select): Duplicate rfds before calling select to
21243 ensure that rfds survive the while loop.
21245 2002-12-11 Kim F. Storm <storm@cua.dk>
21247 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
21248 row_containing_pos returned NULL.
21250 2002-12-10 Steven Tamm <steventamm@mac.com>
21252 * mac.c (sys_read): Fix sys_read to not call select if IO is
21254 (sys_select): Fix sys_select to not use a timeout larger than
21257 2002-12-10 Juanma Barranquero <lektu@terra.es>
21259 * editfns.c (Fformat): Use alloca, not _alloca.
21261 2002-12-09 Richard M. Stallman <rms@gnu.org>
21263 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
21266 2002-12-09 Dave Love <fx@gnu.org>
21268 * s/sol2-8.h: Removed. (Not necessary.)
21270 2002-12-09 Matthew Swift <swift@alum.mit.edu>
21272 * editfns.c (Fformat): Handle precision in string conversion
21273 specifiers like libc functions do (ie, print at most that many
21276 2002-12-08 Richard M. Stallman <rms@gnu.org>
21278 * xdisp.c (row_containing_pos): Check more carefully
21279 whether charpos is really in the row before returning it.
21281 2002-12-07 Steven Tamm <steventamm@mac.com>
21283 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
21285 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
21286 each stack frame. This may change as it could be time consuming.
21288 * macterm.c (mac_check_for_quit_char, quit_char_comp)
21289 (init_quit_char_handler, mac_determine_quit_char_modifiers)
21290 (mac_initialize): Add code to check for pressing of quit_char
21291 in the OS event queue.
21293 * mac.c (sys_select): Call mac_check_for_quit_char every second
21294 while blocking on select.
21296 * mac.c (sys_read): Use sys_select to test for input first
21297 before calling read, to allow C-g to break.
21299 2002-12-07 Richard M. Stallman <rms@gnu.org>
21301 * minibuf.c (Fcompleting_read): Doc fix.
21303 * lread.c (syms_of_lread) <load-history>: Doc fix.
21305 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
21307 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
21310 * data.c (Fdefalias): Record in load-history redefining an autoload.
21312 * alloca.c: Undo ifdef change accidentally made on 12-04.
21314 2002-12-06 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
21316 * xfns.c (png_load): Avoid double gamma correction for PNG images.
21318 2002-12-04 Richard M. Stallman <rms@gnu.org>
21320 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
21322 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
21324 * alloca.c: Don't use #error.
21326 2002-12-03 Dave Love <fx@gnu.org>
21328 * buffer.c (Qucs_set_table_for_input): New.
21329 (Fget_buffer_create): Use it.
21330 (Qset_buffer_major_mode_hook): Deleted.
21331 (Fset_buffer_major_mode): Revert previous change.
21332 (init_buffer_once): Intern ucs-set-table-for-input.
21333 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
21334 Add &Qucs_set_table_for_input.
21336 2002-12-03 Andreas Schwab <schwab@suse.de>
21338 * callint.c (Fcall_interactively): Use next_event only if less
21341 2002-12-02 Andrew Choi <akochoi@shaw.ca>
21343 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
21344 names to 255 characters.
21346 * macterm.c (XTread_socket): If all frames have been collapsed,
21347 expand the first one before handling drag-and-drop events.
21349 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
21350 which is detected by autoconf.
21352 2002-12-01 Steven Tamm <steventamm@mac.com>
21354 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
21355 offset in two hints table to allow prebinding to be redone and
21356 allow the executable to be stripped.
21358 2002-11-29 Dave Love <fx@gnu.org>
21360 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
21363 2002-11-29 Richard M. Stallman <rms@gnu.org>
21365 * xdisp.c (start_display): Check more intelligently for
21366 whether the line is continued.
21367 (move_it_vertically_backward): Clear it->continuation_lines_width.
21369 2002-11-28 Dave Love <fx@gnu.org>
21371 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
21372 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
21374 2002-11-27 Steven Tamm <steventamm@mac.com>
21376 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
21377 more descriptive error output from lread.c:Fload upon most require
21378 cycles during boostrapping.
21380 2002-11-27 Jason Rumney <jasonr@gnu.org>
21382 * fileio.c (Finsert_file_contents): Give a more appropriate error
21383 for files bigger than 2Gb when off_t is 32 bit.
21385 * dired.c (Ffile_attributes): Don't return negative file sizes for
21386 files bigger than 2Gb when off_t is 32 bit.
21388 2002-11-27 Dave Love <fx@gnu.org>
21390 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21392 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
21393 Test GETPGRP_VOID instead.
21394 [BSD_TERMIOS]: Remove definitions (never used).
21396 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
21398 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21400 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
21402 2002-11-25 Jason Rumney <jasonr@gnu.org>
21404 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
21407 2002-11-25 Dave Love <fx@gnu.org>
21409 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
21411 * Makefile.in (TEMACS_LDFLAGS): Update last change.
21413 2002-11-25 Andreas Schwab <schwab@suse.de>
21415 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
21417 2002-11-24 Steven Tamm <steventamm@mac.com>
21419 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
21420 determine the size of pointers alloced in unexed space instead
21421 of using possibly invalid emacs_zone pointers. This fixes the
21422 binary incompatibility problems caused by updates to libSystem.B.
21424 2002-11-24 Richard M. Stallman <rms@gnu.org>
21426 * search.c (Fstring_match): Doc fix.
21428 * callint.c (Fcall_interactively): If a command fails because
21429 `*' detects a read-only buffer, but RECORD_FLAG is set,
21430 record it anyway if the args don't actually do tty input.
21432 2002-11-22 Dave Love <fx@gnu.org>
21434 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
21436 * keyboard.c (interrupt_signal): Provide forward declaration.
21437 (kbd_buffer_store_event): Don't declare interrupt_signal.
21439 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
21441 2002-11-21 Richard M. Stallman <rms@gnu.org>
21443 * eval.c (interactive_p): Skip any number of bytecode
21444 and special form frames, in any order.
21446 2002-11-20 Jason Rumney <jasonr@gnu.org>
21448 * w32fns.c (convert_mono_to_color_image): New function.
21449 (xbm_load, xbm_load_image): Use it when foreground or background
21452 2002-11-19 Dave Love <fx@gnu.org>
21454 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
21456 2002-11-18 Jason Rumney <jasonr@gnu.org>
21458 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
21459 (XPutPixel): Swap blue and red.
21460 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
21461 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
21462 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
21463 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
21465 2002-11-18 Dave Love <fx@gnu.org>
21467 * m/orion105.h (HAVE_ALLOCA): Don't define.
21469 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
21471 * m/intel386.h: Don't include alloca.h or define alloca.
21473 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
21474 malloc, realloc, calloc.
21476 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
21477 (bcmp): Don't define.
21479 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
21481 * m/amdahl.h: Don't define LIB_STANDARD.
21483 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
21485 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
21487 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
21488 Don't include alloca.h.
21490 * s/aix3-2.h (HAVE_FSYNC): Don't define.
21492 * regex.c (_GNU_SOURCE): Don't define.
21494 * process.c (_GNU_SOURCE): Don't define.
21496 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
21498 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
21500 * s/sol2-8.h: Include sol2-6.h.
21502 2002-11-18 Miles Bader <miles@gnu.org>
21504 * dispextern.h (struct face): Add `overstrike' field.
21505 * xterm.c (x_draw_glyph_string_foreground)
21506 (x_draw_composite_glyph_string_foreground): Implement overstriking.
21507 * xfaces.c (load_face_font): Set `face->overstrike' based on
21508 result from choose_face_font.
21509 (best_matching_font, choose_face_font): Add `needs_overstrike'
21510 argument, and use it to return whether overstriking is desirable
21511 for this face/font combo.
21512 (set_font_frame_param: Pass new argument to choose_face_font.
21514 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
21516 This change is my fix for the following entry in etc/PROBLEMS:
21517 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21518 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
21520 * w32.c: Added wrapper functions around the win32 API functions
21521 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
21522 GetSidIdentifierAuthority. These wrapper functions serve two
21524 1. They ensure that the wrapped function can never be called
21525 when Emacs is running on an operating system on which they are
21526 not supported (Microsoft Windows 95 / 98 / ME).
21527 2. They call the wrapped functions via function pointers rather
21528 than calling them directly. This avoids taking advantage of the
21529 undocumented fact that although these functions are not supported
21530 in the 9x branch of Microsoft Windows, the functions do exist in
21531 the version of advapi32.dll that is found in the 9x branch of
21534 * w32.c (init_user_info): Replace the calls to the win32 API
21535 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
21536 and GetSidIdentifierAuthority with calls to the newly added
21539 * w32.h: Added extern declarations for the following functions:
21540 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
21541 syms_of_w32menu, and void syms_of_fontset.
21543 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
21544 function pointer track_mouse_event_fn in the handler for the
21545 WM_SETFOCUS message.
21547 * w32menu.c (initialize_frame_menubar): Add code to
21548 reinitialize the function pointers set_menu_item_info and
21549 get_menu_item_info.
21551 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
21553 * sound.c: Added a partial implementation of play-sound-internal
21554 for Microsoft Windows. Added various #ifdef / #else / #endif
21555 code blocks to separate the code that will compile under
21556 Microsoft Windows from the code that is specific to GNU/Linux.
21557 Moved several blocks of code around to make this separation of code
21558 into Windows compatible and GNU/Linux compatible code blocks easier.
21560 * makefile.w32-in: Include sound.c and link with WinMM.lib.
21562 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
21563 added support for play-sound-internal under Windows would be
21564 included in the build of Emacs.
21566 2002-11-16 Jason Rumney <jasonr@gnu.org>
21568 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
21570 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
21572 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
21574 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
21575 (adjust_point_for_property): Move out of display and invisible even if
21576 we were already inside before (in case a property was added while
21577 we weren't looking). Be more careful when handling invisible props.
21578 Skip invisible text as if it really wasn't there at all.
21580 2002-11-15 Jason Rumney <jasonr@gnu.org>
21582 * w32term.c (x_draw_image_foreground)
21583 (w32_draw_image_foreground_1): Use standard copy and invert
21584 operations to draw images.
21586 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
21588 (xbm_read_bitmap_data): Invert bits as xbm is read in.
21589 (XPutPixel): Don't invert bits here.
21591 2002-11-15 Jason Rumney <jasonr@gnu.org>
21593 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
21594 (w32_draw_image_foreground_1): Handle image masks.
21595 (x_draw_image_glyph_string): Don't BitBlt transparently.
21597 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
21598 (x_from_xcolors): Adjust RGB values for W32.
21599 (image_background, image_background_transparent)
21600 (postprocess_image, x_to_xcolors, x_disable_image)
21601 (x_build_heuristic_mask): Adapt for W32 and enable.
21602 (x_create_x_image_and_pixmap): Mark images with palettes as such.
21603 (xbm_load): Remove unused variable.
21605 2002-11-14 Richard M. Stallman <rms@gnu.org>
21607 * buffer.c (syms_of_buffer): Doc fix.
21609 2002-11-14 Dave Love <fx@gnu.org>
21611 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
21613 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
21614 * xmenu.c (unuse_menu_items, digest_single_submenu):
21615 * xfns.c (x_put_x_image):
21616 * xdisp.c (message2_nolog, set_message):
21617 * undo.c (record_point):
21618 * terminfo.c (tparam):
21619 * syntax.c (scan_sexps_forward):
21620 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21621 * composite.c (update_compositions):
21622 * cm.c (calccost, cmgoto):
21623 * charset.c (c_string_width): Declare all args (per C99).
21625 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
21627 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
21630 * emacs.c (main) [!VMS]: Avoid third arg.
21632 * fns.c (Fcopy_sequence): Doc fix.
21633 (Fmap_char_table): Cast `call2'.
21635 2002-11-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
21637 * s/sol2-8.h: New file.
21639 2002-11-14 Kim F. Storm <storm@cua.dk>
21641 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
21642 dependency on `risky-local-variable' and the :propertize form.
21644 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
21646 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
21648 * syntax.c (scan_sexps_forward): Undo last patch.
21649 Use a more obvious fix: check eob before updating the syntax table.
21651 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
21653 * syntax.c (scan_sexps_forward): Update syntax table before reading
21654 a char rather than after so we don't update the table past eob.
21656 2002-11-09 Dave Love <fx@gnu.org>
21658 * buffer.c (Fset_buffer_major_mode): Fix last change.
21660 * regex.c (regexec): Fix pmatch declaration.
21662 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
21664 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
21665 to self-inserting characters.
21666 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
21668 * coding.c (Vtranslation_table_for_input): New.
21669 (syms_of_coding): DEFVAR it.
21671 2002-11-08 Juanma Barranquero <lektu@terra.es>
21673 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
21676 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
21678 * process.c (Fformat_network_address): Remove unused locals p,
21681 2002-11-06 Dave Love <fx@gnu.org>
21683 * buffer.c (Qset_buffer_major_mode_hook): New.
21684 (Fset_buffer_major_mode): Use it.
21686 2002-11-06 Richard M. Stallman <rms@gnu.org>
21688 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
21691 * process.c (wait_reading_process_input):
21692 Test POLLING_PROBLEM_IN_SELECT, not hpux.
21693 Avoid initialization for auto Lisp_Object var.
21695 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
21697 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
21699 2002-11-05 Richard M. Stallman <rms@gnu.org>
21701 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
21703 * callint.c (Fcall_interactively): New local filter_specs.
21704 (Fcall_interactively): Check for progn as well as let.
21706 (Qprogn): New variable.
21707 (syms_of_callint): Staticpro and init Qprogn.
21709 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
21711 * lread.c (Feval_buffer): Doc fix.
21713 2002-11-04 Dave Love <fx@gnu.org>
21715 * keyboard.c (read_char): Always translate iff
21716 Vkeyboard_translate_table is a char table and c is valid.
21718 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21721 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
21723 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
21725 * editfns.c (get_pos_property): Don't hardcode Qfield.
21727 * keyboard.c (adjust_point_for_property): Handle `display' prop on
21728 overlays. Also handle `invisible' prop.
21730 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
21732 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
21733 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
21735 2002-11-01 Andreas Schwab <schwab@suse.de>
21737 * editfns.c (Fmessage): Revert last change to properly handle %%.
21739 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
21741 * xmenu.c (unuse_menu_items): New fun.
21742 (menu_items_inuse): New var.
21743 (syms_of_xmenu): Initialize it.
21744 (init_menu_items): Use it to detect re-entrance.
21745 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
21746 (Fx_popup_menu): Remove spurious XSETFRAME.
21748 * editfns.c (find_field): Make an exception for nil fields.
21750 2002-11-01 Dave Love <fx@gnu.org>
21752 * m/gec63.h: Deleted.
21754 2002-10-31 Dave Love <fx@gnu.org>
21756 * xterm.c (XTread_socket): Fix last change.
21757 (xaw_scroll_callback): Cast call_data to long to avoid warning.
21759 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
21761 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
21763 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
21765 * editfns.c (overlays_around, get_pos_property): New funs.
21766 (find_field): Use them.
21767 Also be careful not to modify POS before its last use.
21768 (Fmessage): Don't Fformat if there's nothing to format.
21770 2002-10-30 Dave Love <fx@gnu.org>
21772 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
21773 [HAVE_PTY_H]; Include pty.h.
21775 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
21777 * xterm.c (Qeql): Declare.
21778 (Vx_keysym_table): New.
21779 (syms_of_xterm): Initialize it.
21780 (XTread_socket): Use it. Deal with ASCII keysyms.
21781 (XSetIMValues) [HAVE_X11R6]: Prototype.
21783 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
21784 (lispy_kana_keys): Comment out.
21785 (make_lispy_event) [XK_kana_A]: Comment out.
21786 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
21789 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
21791 (TERMINFO, LIBS_TERMCAP): Define.
21793 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
21794 (bcmp): Define conditional on HAVE_BCMP.
21795 (NO_SIOCTL_H): Don't define.
21796 (TIOCSIGSEND): Don't make conditional on IRIX6.
21798 * s/sol2-5.h: Don't include strings.h.
21799 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
21801 * s/irix6-0.h (IRIX6): Don't define.
21802 (bcopy, bcmp, bzero): Don't undef.
21804 * s/irix6-5.h: Don't include strings.h.
21805 (IRIX6): Don't define.
21806 (bcopy, bcmp, bzero): Don't undef.
21808 * syntax.c (Fforward_comment): Doc fix.
21810 2002-10-29 Kim F. Storm <storm@cua.dk>
21812 * process.c (Fsignal_process): Allow PROCESS to be specified by
21813 name in addition to pid (as integer or string).
21815 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
21817 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
21820 2002-10-27 Kim F. Storm <storm@cua.dk>
21822 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21824 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
21826 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
21828 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21830 2002-10-26 Richard M. Stallman <rms@gnu.org>
21832 * editfns.c (Fformat): Detect invalid format letters for floats.
21834 2002-10-25 Kenichi Handa <handa@m17n.org>
21836 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
21837 (x_set_title): Likewise.
21839 2002-10-25 Juanma Barranquero <lektu@terra.es>
21842 * w32gui.h: Remove definition of XColor.
21844 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
21846 2002-10-24 Kim F. Storm <storm@cua.dk>
21848 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
21849 Callers changed (supply dummy arg).
21851 * lisp.h (get_window_cursor_type): Update prototype.
21853 * w32term.c (x_display_and_set_cursor): Get active_cursor from
21854 get_window_cursor_type to track system caret.
21856 2002-10-24 Kim F. Storm <storm@cua.dk>
21858 * process.c (Fformat_network_address): New function.
21859 (syms_of_process): Defsubr it.
21860 (list_processes_1): Use it to format :local/:remote address if
21861 service/host is not set; before Emacs would crash in that case.
21862 (Fmake_network_process): Don't use Ffind_operation_coding_system
21863 to setup coding system if host or service is not set.
21865 2002-10-23 Juanma Barranquero <lektu@terra.es>
21867 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
21869 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
21873 * w32gui.h: Add definition of XColor.
21877 * xfaces.c: Remove definition of XColor.
21879 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
21881 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
21883 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
21884 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
21885 window if it is dedicated.
21886 (Fshrink_window): Add preserve_before as was done for enlarge_window.
21887 (Vspecial_display_function): Update docstring.
21889 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
21890 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
21891 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
21893 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
21895 * casefiddle.c (casify_region): Don't treat a prefix char as part
21896 of a word when at the beginning.
21898 2002-10-17 Juanma Barranquero <lektu@terra.es>
21900 * lread.c (syms_of_lread): Fix typos.
21902 2002-10-17 Dave Love <fx@gnu.org>
21904 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
21906 2002-10-16 Richard M. Stallman <rms@gnu.org>
21908 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
21910 2002-10-14 Juanma Barranquero <lektu@terra.es>
21912 * w16select.c (syms_of_win16select): Fix docstring for
21913 `selection-coding-system'.
21915 * w32select.c (syms_of_w32select): Likewise.
21917 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
21919 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
21920 a backslash-quoted char.
21921 (scan_lists, scan_sexps_forward): Pacify the compiler.
21923 2002-10-13 Richard M. Stallman <rms@gnu.org>
21925 * window.c (window_scroll): Set immediate_quit.
21927 * print.c (print): When backquote form is the car of a list,
21928 output in old style. Use old_backquote_output to output all
21929 comma forms inside it in old style too.
21931 * buffer.h (struct buffer): Move `undo_list' down below `name'.
21933 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
21935 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
21938 * lread.c (Fload): Doc fix (load-suffixes).
21940 2002-10-10 Steven Tamm <steventamm@mac.com>
21942 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
21943 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
21944 Also switch the default to Qnil from Qt.
21946 2002-10-08 Kenichi Handa <handa@m17n.org>
21948 * coding.c (code_convert_region): When we need more GAP for
21949 conversion, pay attention to the case that coding->produced is not
21950 greater than coding->consumed.
21952 2002-10-07 Richard M. Stallman <rms@gnu.org>
21954 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
21956 2002-10-06 Andrew Choi <akochoi@shaw.ca>
21958 * macmenu.c (mac_menu_show): Add j to count menu items; match
21959 menu_item_selection to it to find selected item.
21961 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21963 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
21964 cases. The correct fix is to pass ReparentNotify to Xt.
21965 The shell widget interprets ConfigureNotify differently depending
21966 on if it has been reparented or not.
21968 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
21970 * editfns.c (Fformat_time_string): Doc fix.
21972 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
21974 * fns.c (Flength): Doc fix.
21976 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
21978 * keyboard.c (keyremap): New struct.
21979 (read_key_sequence): Use it: globally replace keytran_foo with
21980 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
21981 keytran_next and fkey_next to just `next'.
21983 2002-10-04 Steven Tamm <steventamm@mac.com>
21985 * macterm.c (keycode_to_xkeysym_table): Change return to be
21986 treated like an X keysym.
21988 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
21990 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
21991 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
21992 This is to also handle x/y changes that occur because of a resize.
21994 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
21996 * frame.c (Vdelete_frame_functions): New variable.
21997 (syms_of_frame): Initialize and defvar it.
21998 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
21999 it when frame's `tooltip' parameter is non-nil.
22001 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
22003 * w32fns.c (x_create_tip_frame): Likewise.
22005 * macfns.c (x_create_tip_frame): Likewise.
22007 2002-09-30 Kenichi Handa <handa@m17n.org>
22009 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
22010 -1 before calling ccl_driver.
22012 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
22013 Only when it is non-nil, handle composition sequence.
22014 (setup_coding_system) <0>: Don't force composition handling.
22016 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
22018 2002-09-29 Richard M. Stallman <rms@gnu.org>
22020 * search.c (Freplace_match): Adjust match data for the substitution
22021 just made in the buffer.
22023 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
22024 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
22026 2002-09-27 Richard M. Stallman <rms@gnu.org>
22028 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
22029 (read_char): Use them. Do all exits thru the end of the function.
22031 2002-09-27 Kenichi Handa <handa@etl.go.jp>
22033 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
22036 2002-09-26 Richard M. Stallman <rms@gnu.org>
22038 * regex.h (__restrict_arr): Don't define if already defined.
22040 * coding.c (run_pre_post_conversion_on_str):
22041 Save and restore Vdeactivate_mark.
22043 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
22045 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
22047 2002-09-26 Kenichi Handa <handa@etl.go.jp>
22049 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
22050 nonzero, try face's family at first. Otherwise try FAMILY at first.
22051 (choose_face_font): If C is a single byte char or latin-1, call
22052 try_font_list with PREFER_FACE_FAMILY 1.
22054 2002-09-21 Richard M. Stallman <rms@gnu.org>
22056 * window.c (select_window_1): Don't select frame.
22057 Set frame's selected window only when frame itself is selected.
22058 (Fselect_window): Doc fix.
22060 2002-09-18 Kim F. Storm <storm@cua.dk>
22062 * process.c (make-network-process): Doc fix (there is no
22063 network-server-log-function hook).
22065 2002-09-18 Richard M. Stallman <rms@gnu.org>
22067 * print.c (print): Clear out the unused parts of Vprint_number_table.
22068 (syms_of_print): Doc fix for `print-number-table'.
22070 * unexelf.c (unexec): Undo previous change.
22072 2002-09-17 Andreas Schwab <schwab@suse.de>
22074 * m/alpha.h [LINUX]: Don't define DATA_START.
22076 2002-09-16 Dave Love <fx@gnu.org>
22078 * unexelf.c (unexec): Deal with .got, reinstating change from
22081 2002-09-13 Richard M. Stallman <rms@gnu.org>
22083 * s/sol2-6.h (UNEXEC): Comment out definition.
22085 * unexsol.c (unexec): Don't downcase first letter of error msg.
22087 * xfaces.c (Fcolor_supported_p): Just one arg is required.
22089 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
22091 * unexsol.c: Include buffer.h, charset.h, coding.h.
22093 2002-09-11 Richard M. Stallman <rms@gnu.org>
22095 * unexsol.c: Don't use report_file_error; do it by hand
22098 * process.c (wait_reading_process_input, both versions):
22099 Before calling turn_on_atimers, call stop_polling.
22101 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
22103 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
22104 we go to too_near_end, call clear_glyph_matrix.
22105 (redisplay_window): After make_cursor_line_fully_visible,
22106 call clear_glyph_matrix and bypass `goto done'.
22108 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
22109 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
22111 2002-09-10 Richard M. Stallman <rms@gnu.org>
22113 * fileio.c (Fdo_auto_save): Catch error making directory.
22114 Only call push_message if we need to.
22115 At the same time, make an unwind-protect to pop it.
22116 Rename local message_p to old_message_p.
22117 (do_auto_save_make_dir, do_auto_save_eh): New functions.
22118 (do_auto_save_unwind): Don't call pop_message.
22120 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
22122 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
22124 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
22126 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
22128 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
22130 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
22131 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
22132 (re_match_2_internal): Be more careful with infinite loops.
22134 2002-09-10 Kim F. Storm <storm@cua.dk>
22136 * macros.c (end_kbd_macro): New function.
22137 (Fend_kbd_macro): Use it.
22139 * macros.h (end_kbd_macro): Declare extern.
22141 * keyboard.c (Fdiscard_input): If defining keyboard macro,
22142 end and save it instead of discarding it.
22144 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
22146 * s/sol2-6.h: Fix typo. Add comment.
22148 2002-09-09 Richard M. Stallman <rms@gnu.org>
22150 * regex.c (regnum_t): Use signed int, not unsigned int.
22152 * s/sol2-6.h: New file.
22154 * s/sol2-5.h (UNEXEC): Definition deleted.
22156 2002-09-08 Kim F. Storm <storm@cua.dk>
22158 * macros.c (executing_macro_index): Change type to EMACS_INT.
22159 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
22161 * macros.h (executing_macro_index): Change type to EMACS_INT.
22163 2002-09-06 Richard M. Stallman <rms@gnu.org>
22165 * casetab.c (set_case_table): Make canon table point to eqv table.
22167 2002-09-06 Juanma Barranquero <lektu@terra.es>
22169 * coding.c (syms_of_coding): Fix spacing.
22171 * composite.c (Fcompose_region_internal)
22172 (Fcompose_string_internal): Likewise.
22174 * data.c (Flsh): Likewise.
22176 * fontset.c (Fset_fontset_font): Likewise.
22178 * macfns.c (Fx_server_max_request_size): Likewise.
22180 * w16select.c (syms_of_win16select): Likewise.
22182 * w32select.c (syms_of_w32select): Likewise.
22184 * xselect.c (syms_of_xselect): Likewise.
22186 2002-09-05 Richard M. Stallman <rms@gnu.org>
22188 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
22189 call EXTEND_RANGE_TABLE and return a proper value.
22190 (set_image_of_range): Don't call set_image_of_range_1
22191 if no TRANSLATE or if range includes all of Latin-1.
22192 Only call it for the Latin-1 part of the range.
22193 For other cases, make two separate ranges,
22194 one for the original specified characters and one for
22195 their case-conversions.
22197 2002-09-04 Richard M. Stallman <rms@gnu.org>
22199 * s/sol2-5.h (UNEXEC): Use unexsol.o.
22201 * window.c (displayed_window_lines): Correct for one-off bug
22202 in HEIGHT on non-window displays.
22204 * regex.c (set_image_of_range_1): New function.
22205 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
22206 Return a value to indicate running out of memory.
22207 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
22208 (extend_range_table_work_area): New subroutine.
22209 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
22210 Different calling conventions, and used from set_image_of_range{,_1}.
22211 (IMMEDIATE_QUIT_CHECK): Definitions moved.
22213 2002-09-04 Juanma Barranquero <lektu@terra.es>
22215 * makefile.w32-in: All dependencies updated.
22217 2002-09-01 Richard M. Stallman <rms@gnu.org>
22219 * unexsol.c: New file.
22221 * xfns.c (Qbox): Declare external, don't define.
22223 * xdisp.c (redisplay_window) <force-start case>:
22224 If point is on semi-visible last line, reposition
22225 it at previous line.
22227 * alloc.c (display_malloc_warning): Use display-warning.
22228 (malloc_warning_1): Function deleted.
22230 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
22232 * lread.c (read1): Handle #! by skipping the line.
22234 2002-08-31 Richard M. Stallman <rms@gnu.org>
22236 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
22237 Don't include LDFLAGS.
22238 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
22240 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
22242 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
22243 member of x_display_info unless we compile for some window system.
22245 2002-08-31 Kim F. Storm <storm@cua.dk>
22247 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
22248 (get_window_cursor_type): Don't use them.
22249 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
22251 2002-08-30 Kenichi Handa <handa@etl.go.jp>
22253 * xdisp.c (get_next_display_element): Fix previous change.
22255 2002-08-30 Andrew Choi <akochoi@shaw.ca>
22257 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
22258 (expose_window): Use it to fix the display of overlapping
22259 rows (merge code from xterm.c).
22261 * macfns.c (Qbox): Add extern declaration.
22263 2002-08-30 Juanma Barranquero <lektu@terra.es>
22265 * w32fns.c (Qbox): Make extern.
22266 (syms_of_w32fns): Remove initialization of Qbox.
22268 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
22270 * xfns.c (Fx_open_connection): Fix error message.
22272 2002-08-30 Kim F. Storm <storm@cua.dk>
22274 The following changes consolidates the handling of the cursor
22275 type in xdisp.c, moving duplicate code and functionality from
22276 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
22278 * frame.h (enum text_cursor_kinds): Consolidated here.
22279 Added DEFAULT_CURSOR value.
22280 (struct frame) <desired_cursor, cursor_width>
22281 <blink_off_cursor, blink_off_cursor_width>: New fields.
22282 Consolidated from output_x, output_w32 and output_mac structs.
22283 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22284 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
22286 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
22287 Variables consolidated here.
22288 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
22289 (Vcursor_in_non_selected_windows): Renamed from
22290 cursor_in_non_selected_windows and changed to Lisp_Object.
22291 (syms_of_xdisp): Define and staticpro new and moved variables.
22292 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
22293 consolidated here. Recognize Qhollow setting.
22294 (set_frame_cursor_types): New function to set frame cursor types
22295 based on the frame parameters.
22296 (get_window_cursor_type): New function to calculate new cursor
22297 type and width for the specified window. Based on duplicated
22298 code consolidated here.
22299 Enhancements: cursor-in-non-selected-windows may be a cursor type,
22300 check buffer-local alternate-cursor-type and blink-cursor-alist
22301 before using built-in blink off methods.
22303 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
22305 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
22306 (get_specified_cursor_type, get_window_cursor_type)
22307 (set_frame_cursor_types): Added prototypes.
22309 * macfns.c (x_specified_cursor_type): Removed.
22310 (x_set_cursor_type): Use set_frame_cursor_types.
22311 (Qbar, Qbox): Removed.
22312 (syms_of_macfns): Don't intern or staticpro them.
22314 * macterm.c (x_specified_cursor_type): Remove prototype.
22315 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22316 (x_display_and_set_cursor): Use get_window_cursor_type.
22317 Remove unused local variables cursor_non_selected, active_cursor.
22318 Redraw cursor if hbar cursor width changes.
22319 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
22321 * macterm.h (enum text_cursor_kinds): Removed.
22322 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
22323 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22324 (FRAME_DESIRED_CURSOR): Macro removed.
22326 * w32fns.c (Vblink_cursor_alist): Removed.
22327 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22328 (syms_of_w32fns): Don't intern, staticpro, or define them.
22329 (x_specified_cursor_type): Removed.
22330 (x_set_cursor_type): Use set_frame_cursor_types.
22332 * w32term.c (x_specified_cursor_type): Remove prototype.
22333 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22334 (x_display_and_set_cursor): Use get_window_cursor_type.
22335 Remove unused local variables cursor_off_state.
22336 Redraw cursor if hbar cursor width changes.
22337 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
22339 * w32term.h (enum text_cursor_kinds): Removed.
22340 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
22341 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22342 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22343 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22344 (struct w32_display_info) <x_highlight_frame>: Renamed member from
22345 w32_highlight_frame.
22347 * xfns.c (Vblink_cursor_alist): Removed.
22348 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22349 (syms_of_xfns): Don't intern, staticpro, or define them.
22350 (x_specified_cursor_type): Removed.
22351 (x_set_cursor_type): Use set_frame_cursor_types.
22353 * xterm.c (x_specified_cursor_type): Remove prototype.
22354 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22355 (x_display_and_set_cursor): Use get_window_cursor_type.
22356 Remove unused local variables cursor_off_state.
22357 Redraw cursor if hbar cursor width changes.
22359 * xterm.h (enum text_cursor_kinds): Removed.
22360 (struct output_x) <current_cursor, desired_cursor, cursor_width>
22361 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22362 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22363 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22364 (x_specified_cursor_type): Remove prototype.
22366 2002-08-28 Richard M. Stallman <rms@gnu.org>
22368 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22369 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22370 (Vblink_cursor_alist): New variable.
22371 (syms_of_w32fns): Initialize and defvar it.
22372 (x_specified_cursor_type): Recognize Qbox for filled box.
22373 Exceptions are hollow boxes.
22374 (Qbox, Qhollow): New variables.
22375 (syms_of_w32fns): Initialize and staticpro them.
22377 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22379 (struct w32_output): New fields blink_off_cursor,
22380 blink_off_cursor_width.
22381 (FRAME_CURSOR_WIDTH): New macro.
22383 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22384 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22386 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22389 * w32term.c (expose_overlaps): New function.
22390 (expose_window): Use it to fix the display of overlapping rows.
22392 2002-08-28 Simon Josefsson <jas@extundo.com>
22394 * xfns.c (Fx_open_connection): Improve help when X connection
22395 fails, xhost is insecure and xauth is better.
22397 2002-08-28 Juanma Barranquero <lektu@terra.es>
22399 * makefile.w32-in: Add missing dependencies on w32term.h and
22402 * emacs.c (USAGE1): Add missing newline.
22404 2002-08-27 Andrew Choi <akochoi@shaw.ca>
22406 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
22408 2002-08-27 Richard M. Stallman <rms@gnu.org>
22410 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22411 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22412 (Vblink_cursor_alist): New variable.
22413 (syms_of_xfns): Initialize and defvar it.
22414 (x_specified_cursor_type): Recognize Qbox for filled box.
22415 Exceptions are hollow boxes.
22416 (Qbox, Qhollow): New variables.
22417 (syms_of_xfns): Initialize and staticpro them.
22419 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22421 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
22423 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22424 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22426 * emacs.c (main): Handle --script.
22427 (USAGE1): Mention --script.
22428 (standard_args): Define sort order for --script.
22430 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
22432 * xdisp.c (redisplay_updating_p): Variable removed.
22433 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
22435 (init_iterator): Don't free realized faces if
22436 inhibit_free_realized_faces is set.
22437 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
22438 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
22439 initialize Qinhibit_free_realized_faces.
22441 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
22442 when iterator is adding glyphs to a glyph matrix.
22444 2002-08-27 Kenichi Handa <handa@etl.go.jp>
22446 * xdisp.c (get_next_display_element): In unibyte case, don't use
22447 octal form for such eight-bit characters that can be converted to
22450 2002-08-26 Kim F. Storm <storm@cua.dk>
22452 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
22453 foreground and background colors. From Joe Buehler.
22455 2002-08-26 Miles Bader <miles@gnu.org>
22457 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
22459 2002-08-25 Andrew Choi <akochoi@shaw.ca>
22461 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
22462 defined instead of MAC_OSX.
22464 * s/darwin.h (select): Define select to sys_select only if
22465 HAVE_CARBON is defined.
22466 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
22467 (DONT_REOPEN_PTY): #def it.
22469 * macterm.c (XTread_socket): Remove code to call
22470 SendEventToEventTarget for keys with command modifiers when
22471 mac_command_key_is_meta is nil.
22473 2002-08-24 Andreas Schwab <schwab@suse.de>
22475 * eval.c (Fdefvar): Fix last change.
22477 2002-08-23 Richard M. Stallman <rms@gnu.org>
22479 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
22480 Record variables in load history as (defvar . VAR).
22481 (Fdefvar): Don't record in load history if no initial value.
22482 (Qdefvar): New variable.
22483 (syms_of_eval): Init and staticpro it.
22485 * lread.c (syms_of_lread): Doc fix.
22486 (build_load_history): Use Fmember to see if a definition
22487 is already in the Vload_history element.
22489 * process.c (Fstart_process): Remove /: from program name.
22491 * emacs.c (decode_env_path): Don't add /: if file name handler
22492 has a `safe-magic' property.
22494 * callproc.c (Fcall_process): Remove /: from program name.
22496 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
22498 * regex.c (PATFETCH): Remove the translating fetch.
22499 (PATFETCH_RAW): Rename to PATFETCH.
22500 (set_image_of_range): New fun.
22501 (SET_RANGE_TABLE_WORK_AREA): Use it.
22502 (regex_compile): Don't translate the pattern chars so eagerly.
22503 Only do it when inserting an `exactn' bytecode or when handling
22505 (mutually_exclusive_p): Avoid empty statement.
22507 2002-08-22 Kim F. Storm <storm@cua.dk>
22509 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
22510 end up on a partially visible line; this reverts a specific part
22511 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
22512 display error which has been reported several times now.
22513 However it introduces the problem that changes was supposed to fix.
22514 See my comments in the source if you want to debug this further.
22516 2002-08-20 Kenichi Handa <handa@etl.go.jp>
22518 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22520 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
22522 * msdos.c (croak): Add `void' to definition.
22524 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
22525 Don't define them, they are defined in msdos.c.
22527 * mem-limits.h [MSDOS]: Declare etext.
22529 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
22530 `const' since CORRECT_DIR_SEPS modifies its target.
22532 2002-08-19 Kim F. Storm <storm@cua.dk>
22534 * keyboard.c (Fclear_this_command_keys): Add optional arg
22535 KEEP-RECORD to avoid clearing lossage when we just want to clear
22536 the current key sequence (kmacro needs this).
22538 2002-08-19 Kenichi Handa <handa@localhost>
22540 * composite.c (run_composition_function): Call FUNC if it is fboundp.
22542 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
22545 2002-08-17 Richard M. Stallman <rms@gnu.org>
22547 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
22549 * sysdep.c [!VMS]: Include sys/files.h.
22551 * editfns.c (save_restriction_restore): Defend from unchained marker.
22553 * buffer.c (overlays_at): Handle extending vec uniformly.
22554 (overlays_in): Handle extending vec from length 0 as in overlays_at.
22556 2002-08-15 Andrew Choi <akochoi@shaw.ca>
22558 * mac.c (init_mac_osx_environment): New function.
22560 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
22562 2002-08-14 Kim F. Storm <storm@cua.dk>
22564 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
22565 executing macro before appending to it (when used from Lisp).
22566 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
22567 which is called prior to each iteration of macro (for kmacro.el).
22568 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
22570 * lisp.h (Fexecute_kbd_macro): Update prototype.
22572 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
22574 2002-08-14 Kenichi Handa <handa@etl.go.jp>
22576 * xselect.c (QUTF8_STRING): New variable.
22577 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
22578 (x_atom_to_symbol): Likewise.
22579 (x_get_local_selection): New argument local_request. If it is
22580 nonzero, call handler_fn with the second arg nil.
22581 (x_handle_selection_request): Call x_get_local_selection with
22583 (lisp_data_to_selection_data): Don't encode the string here.
22584 (Fx_get_selection_internal): Call x_get_local_selection with
22586 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
22588 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
22590 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
22592 2002-08-13 Richard M. Stallman <rms@gnu.org>
22594 * minibuf.c (Fminibufferp): New function.
22595 (syms_of_minibuf): Defsubr it.
22596 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
22598 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
22600 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
22602 2002-08-12 Richard M. Stallman <rms@gnu.org>
22604 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
22605 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
22606 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
22609 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
22611 2002-08-11 Andrew Choi <akochoi@shaw.ca>
22613 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
22614 (Vmac_pass_command_to_system): New variable.
22615 (Vmac_pass_control_to_system): New variable.
22616 (do_mouse_moved): Check wp with is_emacs_window.
22617 (XTread_socket): Check window_ptr with is_emacs_window.
22618 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
22619 events back to Mac Toolbox for processing, depending on values of
22620 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
22621 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
22622 Vmac_pass_control_to_system.
22624 2002-08-10 Kenichi Handa <handa@etl.go.jp>
22626 * coding.c (unencodable_char_position): New function.
22627 (Funencodable_char_position): New function.
22628 (syms_of_coding): Defsubr Funencodable_char_position.
22630 2002-08-10 Andrew Choi <akochoi@shaw.ca>
22632 * mac.c (sys_select) [MAC_OSX]: New function.
22634 * macterm.c (MakeMeTheFrontProcess): New function.
22635 (mac_initialize): Call MakeMeTheFrontProcess.
22637 * s/darwin.h: Define select to sys_select.
22639 2002-08-09 Richard M. Stallman <rms@gnu.org>
22641 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
22643 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
22645 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
22648 2002-08-08 Ken Raeburn <raeburn@gnu.org>
22650 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
22652 * puresize.h (BASE_PURESIZE): Increase to 910000.
22654 2002-08-08 Kenichi Handa <handa@etl.go.jp>
22656 * coding.c (Ffind_operation_coding_system): For write-region, if
22657 VISIT is a filename, make it the target.
22659 2002-08-07 Richard M. Stallman <rms@gnu.org>
22661 * alloc.c (mark_object): Detect long lists for debugging.
22662 (mark_object_loop_halt): New variable.
22664 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
22666 * data.c (Fmake_variable_frame_local): Doc fix.
22668 2002-08-01 David Ponce <david@dponce.com>
22670 * w32menu.c (local_heap, local_alloc, local_free): New macros.
22671 (malloc_widget_value, free_widget_value)
22672 (w32_free_submenu_strings): Use them.
22674 (push_submenu_start, push_submenu_end, push_left_right_boundary)
22675 (push_menu_pane, push_menu_item, single_keymap_panes)
22676 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
22677 (single_submenu, set_frame_menubar)
22678 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
22680 (Fx_popup_menu): Don't show pop up menu until preceding one is
22681 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
22683 * w32menu.c: Changes adapted from xmenu.c
22684 (set_frame_menubar): First parse all submenus,
22685 then make widget_value trees from them.
22686 Don't allocate any widget_value objects
22687 until we are done with the parsing.
22688 (parse_single_submenu): New function.
22689 (digest_single_submenu): New function.
22690 (single_submenu): Function deleted, replaced by those two.
22692 2002-08-04 Andrew Choi <akochoi@shaw.ca>
22694 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
22695 returns a valid window pointer before proceeding for keyDown and
22698 2002-08-03 Andrew Choi <akochoi@shaw.ca>
22700 * macterm.c (USE_CARBON_EVENTS): New macro.
22701 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
22702 (x_iconify_frame): Call CollapseWindow.
22703 (Vmac_reverse_ctrl_meta): New variable.
22704 (Vmac_wheel_button_is_mouse_2): New variable.
22705 (init_mac_drag_n_drop): New function.
22706 (mac_do_receive_drag): New function.
22707 (mac_handle_service_event): New function.
22708 (init_service_handler): New function.
22709 (mac_to_emacs_modifiers): New function.
22710 (mac_event_to_emacs_modifiers): New function.
22711 (mac_get_mouse_btn): New function.
22712 (mac_convert_event_ref): New function.
22713 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
22714 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
22716 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
22718 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
22719 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
22720 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
22721 TOOL_BAR_EVENT for MAC_OS as well.
22722 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
22724 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
22726 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
22728 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
22730 * xdisp.c (forward_to_next_line_start): Fix a condition that
22731 lead to a newline being skipped.
22733 2002-08-02 Andrew Choi <akochoi@shaw.ca>
22735 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
22737 2002-08-01 Richard M. Stallman <rms@gnu.org>
22739 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
22741 2002-07-31 Andrew Choi <akochoi@shaw.ca>
22743 * macfns.c: #undef init_process before #define-ing it.
22745 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
22746 HAVE_CARBON is defined.
22748 2002-07-31 Richard M. Stallman <rms@gnu.org>
22750 * xmenu.c (set_frame_menubar): First parse all submenus,
22751 then make widget_value trees from them.
22752 Don't allocate any widget_value objects
22753 until we are done with the parsing.
22754 (parse_single_submenu): New function.
22755 (digest_single_submenu): New function.
22756 (single_submenu): Function deleted, replaced by those two.
22758 2002-07-30 Juanma Barranquero <lektu@terra.es>
22760 * w32proc.c (syms_of_ntproc): Fix docstring of
22761 `w32-get-true-file-attributes'.
22763 2002-07-28 Richard M. Stallman <rms@gnu.org>
22765 * s/hpux8.h (HPUX8): Define this before including hpux.h.
22766 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
22768 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
22770 * keyboard.c (make_lispy_event):
22771 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
22772 Explicitly clear up_modifier in event->modifiers.
22774 2002-07-27 Richard M. Stallman <rms@gnu.org>
22776 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
22778 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22781 2002-07-26 Kenichi Handa <handa@etl.go.jp>
22783 * coding.c (detect_coding_iso2022): While checking a byte sequence
22784 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
22785 it in the normal loop.
22787 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
22789 * xterm.c (expose_overlaps): New function.
22790 (expose_window): Use it to fix the display of overlapping rows.
22792 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
22794 2002-07-23 Ken Raeburn <raeburn@gnu.org>
22796 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
22797 since it only depends on XUINT.
22799 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
22800 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
22801 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
22804 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
22805 its value over other approaches.
22806 * sysdep.c (start_of_data): Don't define the function if a macro
22807 form has been defined.
22809 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
22811 * xdisp.c (redisplay_updating_p): New variable.
22812 (init_iterator): Don't free realized faces when
22813 redisplay_updating_p is set.
22814 (redisplay_internal): Set redisplay_updating_p while updating
22817 2002-07-23 Richard M. Stallman <rms@gnu.org>
22819 * editfns.c (Fmessage): Treat "" like nil.
22821 2002-07-23 Kenichi Handa <handa@etl.go.jp>
22823 * xdisp.c (face_before_or_after_it_pos):
22824 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22826 2002-07-22 Juanma Barranquero <lektu@terra.es>
22828 * callproc.c (init_callproc) [DOS_NT]:
22829 Initialize Vshared_game_score_directory to nil.
22830 (syms_of_callproc) [DOS_NT]: Likewise.
22832 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
22834 * xdisp.c (display_line): Replace an abort with xassert.
22836 2002-07-21 Richard M. Stallman <rms@gnu.org>
22838 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
22839 and END_UNCHANGED when setting buffer_unchanged_p.
22840 Use current_matrix_up_to_date_p to decide whether to use
22841 try_cursor_movement.
22843 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
22845 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
22847 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
22848 Set to nil if dir does not exist.
22849 (syms_of_callproc): Init unconditionally and simply.
22851 * buffer.c (Fbuffer_list): Doc fix.
22853 2002-07-21 Ken Raeburn <raeburn@gnu.org>
22855 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
22857 * buffer.c (mmap_realloc): When shrinking, make sure number of
22858 pages to unmap is rounded towards zero.
22860 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
22861 (XSETINT): Deleted.
22863 * m/att3b.h (XINT): Don't define.
22864 (VALBITS, VALMASK, XTYPE): Deleted.
22865 (DATA_SEG_BITS): Define.
22866 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
22867 ARRAY_MARK_FLAG): Deleted.
22868 (DATA_SEG_BITS): Define.
22869 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
22870 (DATA_SEG_BITS): Define.
22872 2002-07-20 Richard M. Stallman <rms@gnu.org>
22874 * print.c (print_error_message): New args CONTEXT and CALLER.
22877 * lisp.h (print_error_message): Declare new args.
22879 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
22880 and CONTEXT to print_error_message, don't print them here.
22881 For a Quit, don't use Vsignaling_function.
22882 Call message_log_maybe_newline.
22884 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
22886 2002-07-20 Kim F. Storm <storm@cua.dk>
22888 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
22890 2002-07-19 Ken Raeburn <raeburn@gnu.org>
22892 * bytecode.c (struct byte_stack): Pointers into byte string now
22894 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
22896 * charset.h (BCOPY_SHORT): Source pointer now points to const.
22897 * coding.c (encode_eol, detect_coding, detect_eol):
22898 (decode_coding, encode_coding, detect_coding_system):
22899 Source strings now treated as const.
22900 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
22901 modify Lisp string contents.
22902 * coding.h (decode_coding, encode_coding, detect_coding,
22903 detect_eol): Declarations updated.
22904 * composite.c (compose_chars_in_text): Treat Lisp string contents
22906 * dispnew.c (safe_bcopy): Source pointer now points to const.
22907 * lisp.h (STRING_COPYIN): New macro.
22908 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
22909 (internal_with_output_to_temp_buffer): Declarations updated.
22910 * print.c (temp_output_buffer_setup):
22911 (internal_with_output_to_temp_buffer): Buffer name argument is now
22913 * sound.c (struct sound_device): Function pointer field "write"
22914 buffer argument now points to const.
22915 (vox_write): Buffer argument points to const.
22916 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
22918 * sysdep.c (emacs_write): Buffer pointer now const.
22919 * term.c (encode_terminal_code): Buffer pointer now const.
22920 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
22921 (x_face_list_fonts, x_update_menu_appearance):
22922 (hash_string_case_insensitive): Treat Lisp string contents as const.
22924 2002-07-19 Juanma Barranquero <lektu@terra.es>
22926 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
22928 * fileio.c (syms_of_fileio): Likewise.
22929 (Ffile_name_as_directory): Fix argument name in docstring.
22930 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
22932 2002-07-18 Richard M. Stallman <rms@gnu.org>
22934 * data.c (Fdefalias): Doc fix.
22936 2002-07-17 Dave Love <fx@gnu.org>
22938 * intervals.h (text_property_stickiness): Use P_.
22940 * ccl.c: Remove `emacs' conditionals.
22941 (ccl_backtrace_table): Fix size spec.
22942 (ccl_driver): Fix type errors.
22944 2002-07-16 Ken Raeburn <raeburn@gnu.org>
22946 * alloc.c (xstrdup, make_string, make_unibyte_string)
22947 (make_multibyte_string, build_string): String pointer args now
22949 * charset.c (find_charset_in_text, c_string_width):
22950 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
22951 * fileio.c (report_file_error):
22952 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
22953 (count_combining_before, count_combining_after, insert_1_both):
22954 (insert, insert_and_inherit, insert_string):
22955 (insert_before_markers, insert_before_markers_and_inherit):
22956 * lread.c (intern, oblookup, hash_string):
22957 * minibuf.c (temp_echo_area_glyphs):
22958 * search.c (fast_c_string_match_ignore_case):
22959 * sysdep.c (emacs_open, set_file_times):
22960 * xfaces.c (xstricmp):
22961 * xdisp.c (store_frame_title, string_char_and_length):
22962 (message_dolog, message2, message2_nolog, set_message): Likewise.
22963 (set_message_1): Cast message string argument to const pointer.
22964 * editfns.c (general_insert_function): Insertion function now
22965 takes pointer to const for input data.
22966 * charset.h (find_charset_in_text, c_string_width):
22967 (parse_str_as_multibyte): Declarations updated.
22968 * dispextern.h (xstricmp): Declaration updated.
22969 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
22970 (count_size_as_multibyte, count_combining_before):
22971 (count_combining_after, insert_1, insert_1_both, message_dolog):
22972 (insert, insert_and_inherit, insert_before_markers)
22973 (insert_before_markers_and_inherit, set_message, message2):
22974 (message2_dolog, build_string, make_string, make_unibyte_string):
22975 (make_multibyte_string, intern, oblookup, report_file_error):
22976 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
22977 (emacs_open, xstrdup): Declarations updated.
22978 * systime.h (set_file_times): Declaration updated.
22980 * charset.c (find_charset_in_text, lisp_string_width): Use const
22981 for pointer to lisp string data.
22982 * charset.h (FETCH_STRING_CHAR_ADVANCE):
22983 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
22984 * coding.c (Ffind_coding_systems_region_interval):
22985 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
22986 (Fmake_directory_internal, Fdelete_directory):
22987 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
22988 * fontset.c (font_family_registry, fs_query_fontset):
22990 * frame.c (Fframe_parameter):
22991 * keyboard.c (cmd_error_internal):
22992 * keymap.c (Fdescribe_buffer_bindings):
22993 * lread.c (complete_filename_p, openp):
22994 * minibuf.c (Fminibuffer_complete_word):
22995 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22996 (face_before_or_after_it_pos, next_element_from_string):
22997 (get_overlay_arrow_glyph_row, display_mode_element):
22998 (decode_mode_spec_coding):
22999 * xterm.c (same_x_server): Likewise.
23001 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
23002 settings of non-existent fields.
23004 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
23007 * lread.c (Fintern_soft): Use string macros instead of
23008 Lisp_String fields.
23009 * keyboard.c (echo_char, parse_modifiers_uncached):
23010 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
23011 * textprop.c (validate_interval_range, interval_of): Likewise.
23013 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
23015 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23016 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
23017 XSTRING()->size_byte.
23019 * lisp.h (SDATA, SREF): Produce rvalue.
23021 * alloc.c (make_event_array): Use SSET for storing into a string.
23022 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
23024 * casefiddle.c (casify_object): Use SSET.
23025 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23026 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
23027 address of string contents.
23028 * data.c (Faref): Use SDATA.
23029 (Faset): Use SDATA, SSET.
23030 * dired.c (directory_files_internal): Use SSET.
23031 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
23032 (Fread_file_name): Use SREF, SSET.
23033 * fns.c (concat): Use SSET.
23034 (concat, Fdelete): Use SDATA.
23035 * insdel.c (insert_from_string_1): Use SDATA.
23036 * keyboard.c (Fevent_convert_list): Use SREF.
23037 * lread.c (Fload): Use SDATA, SSET.
23038 * macfns.c (validate_x_resource_name): Use SSET.
23039 * process.c (status_message): Use SSET.
23040 * search.c (wordify): Use SDATA.
23041 (Freplace_match): Use SREF.
23042 * w32fns.c (validate_x_resource_name): Use SSET.
23043 * xfns.c (validate_x_resource_name): Use SSET.
23044 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
23046 2002-07-16 Richard M. Stallman <rms@gnu.org>
23048 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
23050 * xdisp.c (reconsider_clip_changes):
23051 Don't test prevent_redisplay_optimizations_p.
23052 (redisplay_internal): Test prevent_redisplay_optimizations_p
23053 along with clip_changed in some cases.
23054 (try_window_id): Likewise.
23055 (redisplay_window): New local var buffer_unchanged_p.
23057 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
23059 * process.c (create_process): Test USG_SUBTTY_WORKS.
23060 (process_send_signal): Clean up handling of GID.
23061 Detect errors in ioctls meant to set GID.
23063 * window.c (temp_output_buffer_show):
23064 Don't set prevent_redisplay_optimizations_p.
23066 2002-07-15 Juanma Barranquero <lektu@terra.es>
23068 * eval.c (Fdefvaralias): Add docstring argument.
23070 2002-07-15 Ken Raeburn <raeburn@gnu.org>
23072 * lisp.h (STRING_INTERVALS): Produce rvalue.
23073 (STRING_SET_INTERVALS): New macro.
23074 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
23075 * fns.c (Fstring_as_multibyte): Likewise.
23076 * intervals.c (balance_possible_root_interval, delete_interval)
23077 (create_root_interval, copy_intervals_to_string): Likewise.
23078 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
23081 2002-07-14 Ken Raeburn <raeburn@gnu.org>
23083 * lisp.h (STRING_SET_CHARS): New macro.
23084 (SCHARS, SBYTES): Produce rvalues.
23085 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
23086 * fns.c (concat): Likewise.
23087 * lread.c (read_vector): Likewise.
23089 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
23090 (STRING_SET_UNIBYTE): New macro.
23091 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
23092 length of -1) changed to use STRING_SET_UNIBYTE.
23093 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23094 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
23095 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
23096 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
23097 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
23098 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
23099 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
23100 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
23101 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23102 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
23103 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
23104 STRING_BYTES or indirection changed to SCHARS, SBYTES,
23105 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
23108 2002-07-13 Kim F. Storm <storm@cua.dk>
23110 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
23112 2002-07-12 Richard M. Stallman <rms@gnu.org>
23114 * fileio.c (Fwrite_region): Doc fix.
23116 * print.c (print_error_message): Don't handle Vsignaling_function here.
23118 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
23119 (command_loop_1): Avoid certain actions after memory-full error.
23121 * eval.c (Fsignal): Don't call cancel_hourglass.
23122 For a memory-full error, don't call Vsignal_hook_function
23123 and don't set Vsignaling_function.
23125 * process.c (process_send_signal): Add abort call.
23127 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
23129 * keymap.c (Fkey_binding): Fix typo.
23131 2002-07-11 Richard M. Stallman <rms@gnu.org>
23133 * alloc.c (Vmemory_full): New variable.
23134 (Vmemory_signal_data): Rename from memory_signal_data.
23136 (syms_of_alloc): Defvar them.
23137 (memory_full, buffer_memory_full): Set Vmemory_full.
23139 * lisp.h (Vmemory_full): Add declaration.
23140 (current_column, indented_beyond_p): Change declaration.
23142 * indent.c (last_known_column): Declare as double, not float.
23143 (current_column, current_column_1, string_display_width)
23144 (position_indentation): Return `double'.
23145 (indented_beyond_p): Arg `column' is `double'. Callers changed.
23147 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
23148 (back_to_previous_visible_line_start)
23149 (reseat_at_next_visible_line_start, next_element_from_buffer):
23150 Use `double', not `float', when calling indented_beyond_p.
23152 * s/hpux11.h (BROKEN_SA_RESTART): Define.
23154 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
23156 2002-07-11 Juanma Barranquero <lektu@terra.es>
23158 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
23159 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
23160 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
23161 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
23162 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
23163 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
23165 2002-07-10 Juanma Barranquero <lektu@terra.es>
23167 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
23168 All callers changed.
23170 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
23172 * data.c (Fdefalias): Add an optional `docstring' argument.
23173 (set_internal, Fsetq_default): Use XCAR/XCDR.
23175 * composite.c (HASH_VALUE, HASH_KEY):
23176 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
23178 2002-07-09 Kenichi Handa <handa@etl.go.jp>
23180 * callproc.c (Fcall_process): Fix previous change.
23182 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
23184 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
23185 Add support for hash-tables.
23186 (Ftry_completion): Return t even if the string appears multiple times.
23188 * fns.c (Fnconc): Use XCDR.
23189 (Fprovide): Use CONSP and XCDR.
23190 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23191 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
23192 (Fmake_hash_table): Accept `:size nil'.
23193 (Fmakehash): Delete: moved to subr.el.
23194 (syms_of_fns): Don't defsubr makehash.
23196 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23197 (HASH_TABLE_SIZE): Move from fns.c.
23199 2002-07-07 Richard M. Stallman <rms@gnu.org>
23201 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
23202 Instead just return 0 when there is something to be done.
23203 (try_scrolling): If make_cursor_line_fully_visible returns 0,
23204 retry scrolling as if cursor were off the bottom.
23205 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
23206 return CURSOR_MOVEMENT_MUST_SCROLL.
23207 (redisplay_window): If make_cursor_line_fully_visible returns 0,
23208 go to try_to_scroll.
23210 * buffer.c (Fbuffer_local_value): Store current value into its binding
23211 so we get the up-to-date value for the binding that is loaded.
23213 * eval.c (Fdefmacro): Doc fix.
23215 2002-07-05 Dave Love <fx@gnu.org>
23217 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
23220 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
23221 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
23222 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
23223 CCL_LookupCharConstTbl.
23224 (syms_of_ccl): Defvar translation-hash-table-vector.
23226 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23228 * xdisp.c: Remove unused variable `face'.
23230 2002-07-04 Juanma Barranquero <lektu@terra.es>
23232 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
23233 obsolescence information.
23235 2002-07-03 Andrew Choi <akochoi@shaw.ca>
23237 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
23238 pattern. Search cache first.
23239 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
23241 (XLoadQueryFont): Use it.
23243 2002-07-02 Richard M. Stallman <rms@gnu.org>
23245 * keymap.c (Fdefine_key): Doc fix.
23247 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
23249 2002-07-02 Juanma Barranquero <lektu@terra.es>
23251 * keymap.c (syms_of_keymap): Fix typo.
23253 2002-07-01 Andrew Choi <akochoi@shaw.ca>
23255 * s/darwin.h: Define POSIX_SIGNALS.
23257 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
23258 and FSRefMakePath to convert FSSpec returned with Apple Event to
23260 (mac_initialize) [TARGET_API_MAC_CARBON]:
23261 Call init_required_apple_events and disable the `Quit' menu item
23262 provided automatically by the Carbon Toolbox.
23264 2002-07-01 Dave Love <fx@gnu.org>
23266 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23269 * xterm.c: Fix prototype for K&R.
23271 * term.c (costs_set): Declare static, non-initialized for pcc.
23273 2002-07-01 Richard M. Stallman <rms@gnu.org>
23275 * keyboard.c (timer_last_idleness_start_time): New variable.
23276 (timer_start_idle): Set that.
23277 (read_key_sequence): Use that to reset timer_idleness_start_time
23280 * window.c (Frecenter): With arg, set optional_new_start.
23282 * xdisp.c (redisplay_internal): Make optional_new_start really work.
23284 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
23285 buffer for completion.
23287 2002-06-29 Ken Raeburn <raeburn@gnu.org>
23289 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
23291 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23293 * keyboard.c (readable_filtered_events): New function that filters
23294 FOCUS_IN_EVENT depending on parameter.
23295 (readable_events): Calls readable_filtered_events, not filtering
23297 (get_filtered_input_pending): New function, filtering parameter passed
23298 to readable_filtered_events.
23299 (get_input_pending): Calls get_filtered_input_pending, not filtering
23301 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
23304 * xterm.h (struct x_output): Add focus_state.
23306 * xterm.c (x_focus_changed): New function.
23307 (x_detect_focus_change): New function.
23308 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
23309 EnterNotify and LeaveNotify to track X focus changes.
23311 2002-06-28 Andreas Schwab <schwab@suse.de>
23313 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
23315 2002-06-27 Kim F. Storm <storm@cua.dk>
23317 * xdisp.c (mode_line_string_list, mode_line_string_face)
23318 (mode_line_string_face_prop): New variables.
23319 (store_mode_line_string): New function.
23320 (display_mode_element): Use store_mode_line_string to
23321 add mode-line string elements to mode_line_string_list
23322 when mode_line_string_list is non-nil.
23323 (Fformat_mode_line): Now returns propertized string by
23324 default. New arg NO-PROPS to ignore properties.
23325 (decode_mode_spec): Only add two dashes for %- in propertized
23327 (syms_of_xdisp): Init and staticpro mode_line_string_list.
23329 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
23331 * minibuf.c (minibuffer_completion_contents): Add return type.
23333 2002-06-27 Juanma Barranquero <lektu@terra.es>
23335 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23337 2002-06-26 Juanma Barranquero <lektu@terra.es>
23339 * fileio.c (read_file_name_cleanup): Add missing return.
23341 2002-06-26 Richard M. Stallman <rms@gnu.org>
23343 * window.c (Frecenter): Don't set force_start flag.
23345 * minibuf.c (do_completion, Fminibuffer_complete_word)
23346 (Fminibuffer_completion_help): Complete just the text before point.
23347 (minibuffer_completion_contents): New function.
23349 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
23351 * frame.c (frames_bury_buffer): Function deleted.
23353 2002-06-25 Miles Bader <miles@gnu.org>
23355 * callint.c (Fcall_interactively): When checking to see if doprnt hit
23356 the end of callint_message, allow for a terminating '\0'.
23358 2002-06-24 Juanma Barranquero <lektu@terra.es>
23360 * w32select.c: Include composite.h.
23362 * w16select.c: Likewise.
23364 2002-06-24 Kenichi Handa <handa@etl.go.jp>
23366 * callproc.c (Fcall_process): If code detection is necessary,
23367 call detect_coding directly here.
23369 * coding.c (detect_eol): Preserve coding->cmp_data.
23371 * w16select.c (Fw16_get_clipboard_data):
23372 * w32fns.c (w32_to_x_font):
23373 * w32select.c (Fw32_get_clipboard_data):
23374 * xselect.c (selection_data_to_lisp_data):
23375 * xterm.c (XTread_socket): Disable composition handling.
23377 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
23379 * print.c (temp_output_buffer_setup): Kill all local variables.
23381 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
23383 * lread.c (Fread): Remove redundant and imprecise declaration.
23385 * xfns.c (check_x_display_info): Use check_x_frame.
23387 * .gdbinit (xprintsym): Use the new `xname' field.
23390 2002-06-22 Jason Rumney <jasonr@gnu.org>
23392 * w32fns.c (file_dialog_callback): New function.
23393 (Fx_file_dialog): Allow selecting directories as well as files.
23395 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23397 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
23398 OpenBSD. Add support for mipseb-*-netbsd* machines.
23400 2002-06-17 Andrew Choi <akochoi@shaw.ca>
23402 * macterm.c (mac_scroll_area): Set foreground and backcolor to
23403 black and white before scrolling. Restore frame background and
23404 foreground color after scrolling.
23405 (do_window_update): Call XClearWindow before calling expose_frame.
23406 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
23407 FRAME_FOREGROUND_PIXEL of frame.
23409 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23410 test Mac command key as <ALT> key.
23412 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
23414 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
23416 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
23417 Lookup keys in function-key-map immediately so that key-translation-map
23418 can be applied earlier.
23419 Remove function_key_possible and key_translation_possible, replaced
23420 by checking `keytran_start < t'.
23422 * .gdbinit (xsymbol): Use the new `xname' field.
23424 2002-06-17 Andrew Choi <akochoi@shaw.ca>
23426 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23427 test Mac command key as <ALT> key.
23429 * mac.c (do_applescript): Call initialize_applescript if necessary
23430 when first called. Dispose of result_desc only when there is no error.
23431 (Fdo_applescript): Use %d format specifier instead of %ld.
23433 2002-06-16 Andrew Choi <akochoi@shaw.ca>
23435 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
23436 of FrontWindow for cases keyDown and autoKey.
23438 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
23439 Vdefault_fontset to Monaco with mac-roman coding.
23441 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
23442 init_process before and after inclusion of Carbon/Carbon.h, resp.
23444 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
23446 (add_font_name_table_entry): New function.
23447 (init_font_name_table): Use add_font_name_table_entry; add italic,
23448 bold, and bold-italic entries for truetype fonts.
23450 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
23452 (try_font_list) [MAC_OS]: If no font matches given registry, try
23453 fonts with any registry matching face_family.
23454 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
23456 * s/darwin.h: If autoconf detects the Ncurses library, define
23457 LIBS_TERMCAP to -lncurses to use it.
23459 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
23461 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
23463 2002-06-15 Richard M. Stallman <rms@gnu.org>
23465 * window.c (Fset_window_configuration): Explicitly preserve
23466 the point value that new_current_buffer had at the start.
23468 2002-06-14 Juanma Barranquero <lektu@terra.es>
23470 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
23473 2002-06-14 Kim F. Storm <storm@cua.dk>
23475 * insdel.c (insert_1_both, insert_from_string_1)
23476 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
23477 insert happened in the end_unchanged region. Otherwise, the
23478 redisplay may be confused and duplicate the last line in the
23479 buffer [seen after save-buffer when require-final-newline==t].
23481 2002-06-13 Jason Rumney <jasonr@gnu.org>
23483 * w32.c (init_environment): Remove EMACSLOCKDIR.
23484 (stat): Swap _S_IFDIR and _S_IFREG.
23486 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23488 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
23489 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
23490 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
23491 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
23492 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
23493 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
23494 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
23495 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
23496 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
23497 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
23498 SELECTION_REQUEST_EVENT, selection_clear_event to
23499 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
23500 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
23501 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
23502 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
23503 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
23504 no_event to NO_EVENT.
23506 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23508 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
23510 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
23512 * intervals.c (textget): Don't forget to `return'.
23513 (lookup_char_property): Use XCAR/XCDR.
23515 2002-06-12 Juanma Barranquero <lektu@terra.es>
23517 * xdisp.c (Fformat_mode_line): Fix typo.
23519 2002-06-12 Kim F. Storm <storm@cua.dk>
23521 * xdisp.c (Fformat_mode_line): New function.
23522 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
23523 (store_frame_title_char, store_frame_title): Use unconditionally.
23524 (init_xdisp): Defsubr Fformat_mode_line.
23525 Initialize frame_title_buf etc. unconditionally.
23527 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
23529 * keyboard.c (read_key_sequence):
23530 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
23531 things through those maps after downcasing events.
23532 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
23533 applies after function-key-map.
23534 Make sure that keytran can be done in the middle in the sequence.
23535 Be careful not to throw away events past the one we downcase.
23537 * lread.c (read_integer): Remove unused var `tem'.
23538 (read1): Fix int/Lisp_Object mixup.
23540 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
23542 2002-06-11 Richard M. Stallman <rms@gnu.org>
23544 * keyboard.c (readable_events): Ignore any number of
23545 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
23547 2002-06-09 Miles Bader <miles@gnu.org>
23549 * xfaces.c (Ftty_supports_face_attributes_p): New function.
23550 (parse_rgb_list, tty_lookup_color): New functions.
23551 (tty_defined_color): Use `tty_lookup_color' to do all the work.
23552 (color_distance, Fcolor_distance): New functions.
23553 (TTY_SAME_COLOR_THRESHOLD): New macro.
23554 (Qtty_color_standard_values): New variable.
23555 (syms_of_xfaces): Initialize new vars & functions.
23557 2002-06-08 Colin Walters <walters@verbum.org>
23559 * textprop.c (Vchar_property_alias_alist): New variable.
23560 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
23562 * intervals.c (lookup_char_property): New function for looking up
23563 overlay and text properties, created from textget.
23566 * intervals.h (lookup_char_property): Declare.
23567 (Vchar_property_alias_alist): Declare.
23569 * buffer.c (Foverlay_get): Use lookup_char_property.
23571 2002-06-07 Sam Steingold <sds@gnu.org>
23573 * xselect.c (lisp_data_to_selection_data): Fix last change:
23574 *data_ret is not a Lisp string, while unibyte_string is.
23576 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
23578 * xselect.c (lisp_data_to_selection_data): Fix last change:
23581 2002-06-07 Andreas Schwab <schwab@suse.de>
23583 * m/amdx86-64.h: New file.
23585 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
23587 * fns.c (Fstring_make_unibyte): Doc fix.
23589 * xselect.c (lisp_data_to_selection_data): If the requested type
23590 is STRING, call string_make_unibyte to encode the selected text
23593 * window.c (Fset_window_hscroll): Doc fix.
23595 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23597 * fileio.c (choose_write_coding_system):
23598 Call select-safe-coding-system properly.
23600 2002-06-03 Richard M. Stallman <rms@gnu.org>
23602 * xdisp.c (message_with_string): Error if STRING is not a string.
23604 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
23606 * fileio.c (choose_write_coding_system): Pass FILE arg to
23607 Vselect_safe_coding_system_function.
23609 2002-06-03 Ken Raeburn <raeburn@gnu.org>
23611 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
23613 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
23615 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
23616 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
23617 * keymap.c (describe_command): Likewise.
23618 * minibuf.c (read_minibuf): Likewise.
23620 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
23621 Cast `current_column' return value to int.
23622 (back_to_previous_visible_line_start)
23623 (reseat_at_next_visible_line_start, next_element_from_buffer):
23624 Cast `indented_beyond_p' 3rd arg to float.
23626 * indent.c (last_known_column): Now a float.
23627 (current_column_1, position_indentation, current_column)
23628 (string_display_width): Return float.
23629 (Fcurrent_column): Cast `current_column' return value to int.
23630 (Fcurrent_indentation): Cast `position_indentation' retval to int.
23631 (indented_beyond_p): Third arg now a float.
23632 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
23634 * lisp.h (current_column): Now returns float.
23635 (indented_beyond_p): 3rd arg now a float.
23637 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
23639 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
23640 is Qcompound_text_with_extensions.
23642 * xselect.c (lisp_data_to_selection_data): Always set selection
23643 type as string if x_encode_text returns streingp non-NULL.
23645 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
23647 2002-05-30 Richard M. Stallman <rms@gnu.org>
23649 * window.c (Fset_window_configuration): Correct the handling
23650 of point in current buffer, to work with multiple windows.
23652 2002-05-29 Colin Walters <walters@verbum.org>
23654 * lread.c (Fread_from_string): Don't depend on order of evaluation
23655 for C function parameters.
23657 2002-05-28 Richard M. Stallman <rms@gnu.org>
23659 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
23660 way for blinked-off state and for a nonselected window.
23662 * window.c (window_scroll_pixel_based): Don't call Fbolp;
23663 instead, see if the new start pos is at beginning of line.
23665 * fileio.c (Fwrite_region): If START is a string, don't
23666 make any annotations.
23668 * eval.c (syms_of_eval): Doc fix.
23670 2002-05-28 Colin Walters <walters@debian.org>
23672 * emacs.c (USAGE1): Add --no-splash.
23673 (standard_args): Ditto.
23675 2002-05-28 Colin Walters <walters@gnu.org>
23677 * lread.c (readchar_count): New variable.
23678 (readchar): Increment it.
23679 (unreadchar): Decrement it.
23680 (read_multibyte): Decrement it.
23681 (Vread_with_symbol_positions): New variable.
23682 (Vread_symbol_positions_list): New variable.
23683 (read_internal_start): New function, created from Fread and
23684 Fread_from_string. Handle Vread_symbol_positions_list and
23685 Vread_with_symbol_positions.
23686 (readevalloop, Fread, Fread_from_string): Use it.
23687 (read1): Use readchar_count to add symbol positions to
23688 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
23689 (syms_of_lread): DEFVAR_LISP and initialize them.
23691 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
23692 (substitute_object_recurse, substitute_object_in_subtree)
23693 (substitute_in_interval): Prototype.
23694 (read_multibyte): Return c if it's less than zero.
23696 2002-05-28 Kim F. Storm <storm@cua.dk>
23698 * fileio.c (Fread_file_name_internal): Added brute-force
23699 speed up for using predicate file-directory-p.
23701 2002-05-28 Kim F. Storm <storm@cua.dk>
23703 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
23705 (syms_of_fileio): DEFVAR_LISP them.
23706 (read_file_name_cleanup): New unwind function.
23707 (Fread_file_name_internal): Only return completions satifying
23708 Vread_file_name_predicate. Temporarily unwind protect and rebind
23709 default-directory while checking completions against the predicate.
23710 (Fread_file_name): Added PREDICATE argument. Specbind it to
23711 Vread_file_name_predicate during completion.
23712 Call Vread_file_name_function to read the file name if non-nil.
23714 * lisp.h (Fread_file_name): Now has 6 args.
23716 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
23717 predicate for Fread_file_name when reading directory name.
23718 Supply Qnil for predicate in other calls to Fread_file_name.
23720 2002-05-26 Miles Bader <miles@gnu.org>
23722 * term.c (tty_capable_p): New function.
23723 * dispextern.h (tty_capable_p): New function declaration.
23724 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
23725 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
23727 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
23729 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
23730 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
23731 (Vwrite_region_annotate_functions): Docstring fix.
23733 2002-05-23 Kim F. Storm <storm@cua.dk>
23735 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
23736 phys_cursor's hpos is overwritten. This is still not completely
23737 correct, as it doesn't really make sense to use hpos at all to
23738 get the cursor glyph (as that is relative to the width of the
23739 characters on the line, which may have changed during the update).
23741 2002-05-22 Jason Rumney <jasonr@gnu.org>
23743 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
23745 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
23746 Use modified enumfont_t struct.
23748 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23750 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
23751 Handle the `hbar' cursor type.
23752 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23754 * w32fns.c (Qhbar): New variable.
23755 (x_specified_cursor_type): Use it.
23757 2002-05-21 Ken Raeburn <raeburn@gnu.org>
23759 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
23760 now, when the address is needed.
23762 2002-05-21 Colin Walters <walters@gnu.org>
23764 * Makefile.in (shortlisp): Add font-core.el.
23766 2002-05-20 Richard M. Stallman <rms@gnu.org>
23768 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
23770 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
23771 equivalent key bindings here.
23773 2002-05-20 Ken Raeburn <raeburn@gnu.org>
23775 Change symbol structure to contain a lisp object for the symbol
23777 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
23778 object field named "xname".
23779 (SYMBOL_NAME): New macro.
23780 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
23782 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
23783 (mark_object, gc_sweep): Use symbol xname field and XSTRING
23784 instead of name field.
23785 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
23786 SYMBOL_NAME instead of XSYMBOL and name field.
23787 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
23788 instead of XSYMBOL and name field.
23789 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
23790 and SYMBOL_NAME instead of XSYMBOL and name field.
23791 * coding.c (Fread_coding_system, code_convert_region1)
23792 (code_convert_string1, code_convert_string_norecord)
23793 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
23794 XSYMBOL and name field.
23795 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
23796 (Fmake_variable_buffer_local, Fmake_local_variable)
23797 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
23798 of XSYMBOL and name field.
23799 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
23800 XSYMBOL and name field.
23801 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
23802 instead of XSYMBOL and name field.
23803 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
23804 XSYMBOL and name field.
23805 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
23806 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23807 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
23808 instead of XSYMBOL and name field.
23809 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
23810 (parse_modifiers, apply_modifiers, Fevent_convert_list)
23811 (parse_solitary_modifier, Fexecute_extended_command):
23812 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23813 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
23814 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
23815 of XSYMBOL and name field.
23816 (describe_command, describe_translation): Use SYMBOL_NAME and
23817 assignment instead of XSYMBOL and name field and XSETSTRING.
23818 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
23819 instead of XSYMBOL and name field.
23820 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
23821 name field and XSETSTRING.
23822 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23823 of XSYMBOL and name field.
23824 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
23825 assignment instead of XSYMBOL and name field and XSETSTRING.
23826 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
23827 XSTRING instead of XSYMBOL and name field.
23828 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
23829 and XSTRING instead of XSYMBOL and name field.
23830 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
23831 and XSTRING instead of XSYMBOL and name field.
23832 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
23833 XSTRING instead of XSYMBOL and name field.
23834 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23835 of XSYMBOL and name field.
23836 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
23837 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23839 2002-05-19 Ken Raeburn <raeburn@gnu.org>
23841 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
23842 and XCDR real rvalues in most configurations.
23844 * buffer.c (fix_overlays_in_range, fix_overlays_before):
23845 Don't take the address of the cdr part of a cons cell; instead, track
23846 the parent cell and call XSETCDR, or set the variable for the head
23847 of the list if we haven't started down the list yet.
23849 2002-05-19 Richard M. Stallman <rms@gnu.org>
23851 * doc.c (reread_doc_file): Don't ask for confirmation.
23853 2002-05-18 Jason Rumney <jasonr@gnu.org>
23855 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
23856 (xbm_load_image): Use it.
23858 (xbm_read_bitmap_data): Reverted to xfns.c version.
23859 From David Ponce <david@dponce.com>.
23861 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
23863 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
23866 2002-05-16 Juanma Barranquero <lektu@terra.es>
23868 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
23870 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
23872 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
23874 (read_char_minibuf_menu_prompt): Fix typo.
23876 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
23878 * eval.c (Fcommandp): Doc fix.
23880 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
23882 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
23883 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
23884 (Fset_keymap_parent): Gcpro a bit more.
23885 (access_keymap): Gcpro around meta_map call and around the main loop.
23886 (get_keyelt): Gcpro when following indirect references.
23887 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
23888 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
23889 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
23890 Remove useless ad-hoc remap code.
23892 2002-05-13 Richard M. Stallman <rms@gnu.org>
23894 * search.c (search_buffer): Give up boyer moore search if inverse
23895 translation change charset_base.
23897 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
23899 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
23900 characters is carried over from the previous block of text, adjust
23901 coding->produced to account for the extra character.
23903 2002-05-11 Andreas Schwab <schwab@suse.de>
23905 * coding.c (intersection): Keep the elements of the returned list
23906 in the same order as in the first list.
23908 2002-05-11 Kim F. Storm <storm@cua.dk>
23910 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
23911 only update cmm_size if realloc actually succeeds.
23912 Testing with initial size of 2 elements revealed that using
23913 realloc on GNU/Linux would cause a random trap in xmalloc
23914 later on, so I rewrote the code to use malloc/bcopy/free instead
23917 2002-05-10 Jason Rumney <jasonr@gnu.org>
23919 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
23921 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
23923 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
23924 parens, to ensure correct evaluation order.
23926 2002-05-10 Kim F. Storm <storm@cua.dk>
23928 * keymap.c (Vemulation_mode_map_alists): New variable.
23929 (syms_of_keymap): DEFVAR_LISP it.
23930 (current_minor_maps): Process keymap alists in that list before
23931 minor-mode-overriding-map-alist and minor-mode-map-alist.
23933 2002-05-09 Richard M. Stallman <rms@gnu.org>
23935 * search.c (Freplace_match): Doc fix.
23937 2002-05-09 Kim F. Storm <storm@cua.dk>
23939 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23940 Enlarge cursor rectangle drawn around image with non-zero relief.
23942 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
23943 Enlarge cursor rectangle drawn around image with non-zero relief.
23945 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23946 Enlarge cursor rectangle drawn around image with non-zero relief.
23948 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
23950 * xselect.c (lisp_data_to_selection_data): Don't set selection
23951 type if comes from the Lisp object's car. If the selection
23952 contains a pure ASCII text, always return QSTRING as its type.
23954 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23956 * mac.c (mac-cut-function): Doc fix.
23958 2002-05-05 Richard M. Stallman <rms@gnu.org>
23960 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
23962 2002-05-04 Jason Rumney <jasonr@gnu.org>
23964 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
23965 for event-click-count.
23967 * process.c (init_process): Only add server subfeature if we can
23968 use non-blocking I/O.
23970 2002-05-04 Andrew Choi <akochoi@shaw.ca>
23972 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
23975 2002-05-03 Jason Rumney <jasonr@gnu.org>
23977 * process.c (Fmake_network_process): Only support server sockets
23978 when we can make them non-blocking.
23980 * s/ms-w32.h (HAVE_SELECT): Define.
23982 * w32.h (FILE_NDELAY): New flag.
23984 * w32.c (sys_getpeername, fcntl): New functions.
23985 (_sys_read_ahead): Temporarily block on non-blocking sockets.
23987 * w32proc.c: Include sys/file.h.
23989 2002-05-03 Colin Walters <walters@verbum.org>
23991 * callproc.c (Vgame_score_directory): Renamed to
23992 Vshared_game_score_directory.
23994 2002-04-30 Richard M. Stallman <rms@gnu.org>
23996 * s/gnu.h [emacs]: Include stdio.h.
23997 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23999 * eval.c (do_autoload): Error if called while preparing to dump.
24001 * fns.c (Frequire): Error if need to load while preparing to dump.
24003 2002-04-28 Colin Walters <walters@verbum.org>
24005 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
24006 Default to "~/.emacs.d/games".
24008 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
24010 * lread.c (openp): Change arg exec_only to predicate.
24011 (build_load_history): Use XCAR/XCDR.
24012 (Flocate_file_internal): New fun.
24013 (syms_of_lread): Defsubr it.
24014 (Fload): Update call to openp.
24016 * lisp.h (openp): Update prototype.
24018 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
24019 * w32proc.c (sys_spawnve):
24020 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
24021 * w32.c (check_windows_init_file):
24022 * sound.c (Fplay_sound_internal):
24023 * process.c (Fstart_process):
24024 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
24025 * mac.c (run_mac_command):
24026 * emacs.c (init_cmdargs):
24027 * callproc.c (Fcall_process): Update call to openp.
24029 * textprop.c (remove_properties): Don't use XCAR without CONSP.
24031 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
24033 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24035 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
24036 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
24038 2002-04-28 Richard M. Stallman <rms@gnu.org>
24040 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
24042 * eval.c (Fcommandp): New arg for_call_interactively.
24043 * lisp.h (Fcommandp): Declare new arg.
24045 2002-04-28 Jason Rumney <jasonr@gnu.org>
24047 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
24049 * w32.c (stat, fstat): Use file index information to generate
24050 inodes for directories where available.
24052 2002-04-26 Andrew Choi <akochoi@shaw.ca>
24054 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
24055 [HAVE_CARBON]: Include Mac object files.
24057 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
24058 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
24059 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
24060 MAC_OSX, and MAC_OS instead of macintosh.
24062 * editfns.c [MAC_OS8]: Include stdio.h.
24064 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
24066 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
24069 * process.c (QCfamily, QCfilte): Declare extern.
24070 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
24073 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
24075 * tparam.c [MAC_OSX]: Don't define BC and UP.
24077 * config.in [HAVE_CARBON]: Add.
24079 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
24080 Move here from mac/src and mac/inc.
24082 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
24084 2002-04-26 Gerd Moellmann <gerd@gnu.org>
24086 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
24087 Compute phys_cursor_width from the x position returned
24088 by x_draw_glyhs, which is cheaper.
24089 (x_display_and_set_cursor): Compute the buffer-local value
24090 of `cursor-in-non-selected-windows' only when needed.
24092 2002-04-25 Gerd Moellmann <gerd@gnu.org>
24094 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
24095 cursor on a stretch glyph has a width that depends on
24096 x_stretch_cursor_p.
24098 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24100 * abbrev.c (abbrev-start-location): Doc fix.
24102 * indent.c (Fvertical_motion): Fix last change.
24104 2002-04-25 Gerd Moellmann <gerd@gnu.org>
24106 * indent.c (Fvertical_motion): Move to the start of the line
24107 containing PT before moving up or down.
24109 2002-04-24 Gerd Moellmann <gerd@gnu.org>
24111 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
24112 case of writing a whole row, more or less analogous to the case of
24113 writing only parts of a row.
24115 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
24118 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
24120 2002-04-23 Colin Walters <walters@verbum.org>
24122 * buffer.c (syms_of_buffer): Doc fix.
24124 2002-04-23 Gerd Moellmann <gerd@gnu.org>
24126 * xterm.c (notice_overwritten_cursor): Handle the special case
24127 of the cursor being in the first blank non-text line at the
24130 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
24131 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
24132 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
24133 bar cursors only, to make phys_cursor_width contain what its name
24135 (notice_overwritten_cursor): Consider the cursor image erased if
24136 the output area intersects the cursor image in y-direction.
24138 2002-04-23 Simon Marshall <simon@gnu.org>
24140 * xfns.c (x_set_mouse_color): Change default for cross_cursor
24143 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24145 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
24147 2002-04-22 Kim F. Storm <storm@cua.dk>
24149 * textprop.c (remove_properties): Fixed trap for malformed plist.
24151 2002-04-22 Richard M. Stallman <rms@gnu.org>
24153 * cmds.c (Fend_of_line): Handle intangible text in mid line.
24155 * window.c (make_window): Initialize height_fixed_p,
24156 last_cursor_off_p, and p->cursor_off_p slots.
24158 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24160 * fns.c (use-dialog-box): Doc fix.
24162 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24164 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
24165 variables `row', `i' and `area'.
24166 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
24169 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
24171 * xfaces.c (clear_font_table): Don't free the default font of
24172 a frame even if it's on another display.
24173 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
24176 2002-04-19 Juanma Barranquero <lektu@terra.es>
24178 * indent.c (Fmove_to_column): Remove unused local variable
24179 `next_boundary_byte'.
24180 (current_column_1): Likewise.
24182 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
24184 * msdos.c (Qhbar): New variable.
24185 (syms_of_msdos): Intern and staticpro it.
24186 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
24189 2002-04-19 Dave Lambert <dlambert@acm.org>
24191 Theses change implement an underscore-like (`hbar') cursor.
24193 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24195 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
24196 Handle the `hbar' cursor type.
24197 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24199 * xfns.c (Qhbar): New variable.
24200 (syms_of_xfns): Intern and staticpro it.
24201 (x_specified_cursor_type): Handle `hbar' cursor.
24203 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
24206 2002-04-18 Richard M. Stallman <rms@gnu.org>
24208 * textprop.c (remove_properties): New arg LIST allows scanning
24209 either a list or a plist.
24210 (interval_has_some_properties_list): New function, like
24211 interval_has_some_properties using list instead of plist.
24212 All callers changed.
24213 (Fremove_list_of_text_properties): New function.
24214 (syms_of_textprop): Defsubr it.
24216 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24218 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
24220 2002-04-17 Juanma Barranquero <lektu@terra.es>
24222 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
24224 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24226 * window.c (coordinates_in_window): Don't report on margin area
24227 if its width is zero.
24229 2002-04-16 Jason Rumney <jasonr@gnu.org>
24231 * w32fns.c (Fx_file_dialog): Decode file name before using.
24233 * w32term.c (construct_drag_n_drop): Likewise.
24235 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
24237 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
24238 store load-history in pure space.
24240 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
24242 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
24244 * xterm.c (Qlatin_1, Qutf_8): New vars.
24245 (syms_of_xterm): Initialize them.
24246 (XTread_socket): Eliminate incorrect optimization that tried to avoid
24247 decoding the output of X*LookupString.
24248 Always use latin-1 to decode the output of XLookupString.
24249 Try Xutf8LookupString if XmbLookupString failed.
24251 * region-cache.c (new_region_cache): Use BEG.
24253 2002-04-16 Gerd Moellmann <gerd@gnu.org>
24255 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
24256 configuration files.
24257 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
24260 2002-04-15 Andreas Schwab <schwab@suse.de>
24262 * config.in: Regenerated using autoheader.
24264 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
24265 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
24266 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
24267 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
24268 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
24269 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
24270 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
24271 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
24272 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
24273 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
24274 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
24275 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
24276 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
24277 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
24278 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
24279 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
24280 STACK_DIRECTION, now set by autoconf.
24282 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24284 * dispnew.c (marginal_area_string): Sort arguments.
24286 * dispextern.h (marginal_area_string): Add prototype.
24288 2002-04-13 Richard M. Stallman <rms@gnu.org>
24290 * fileio.c (Finsert_file_contents):
24291 Don't call temp_output_buffer_setup--do just part, by hand.
24293 * coding.c (run_pre_post_conversion_on_str):
24294 Don't call temp_output_buffer_setup--do just part, by hand.
24296 * keyboard.c (command_loop_1): Don't call start_hourglass
24297 or cancel_hourglass when executing a macro.
24299 * marker.c (count_markers): New function.
24301 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
24302 grow without limit. Move recently used elements to the front.
24304 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
24306 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
24308 2002-04-12 Gerd Moellmann <gerd@gnu.org>
24310 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
24311 rows marginal areas.
24312 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
24313 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
24315 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
24317 2002-04-12 Dave Love <fx@gnu.org>
24319 * dispnew.c (marginal_area_string): New.
24321 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
24322 (Qleft_margin, Qright_margin): Declare.
24323 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
24325 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
24326 note_mode_line_highlight and extended.
24328 * keyboard.c (Qleft_margin, Qright_margin): Declare.
24329 (make_lispy_event): Deal with mouse events in margins.
24331 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
24333 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
24335 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
24336 than deactivating the mark if tmm is set to `lambda'.
24337 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
24338 Use a single event for HELP_EVENT.
24339 (Fexecute_extended_command): Save last_point_position.
24341 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24343 * lisp.h (Fpropertize): Add prototype.
24345 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
24347 2002-04-10 Colin Walters <walters@verbum.org>
24349 * config.in: Add HAVE_SHARED_GAME_DIR.
24351 * callproc.c (Vgame_score_directory): New variable.
24352 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
24354 2002-04-10 Richard M. Stallman <rms@gnu.org>
24356 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
24358 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
24360 * minibuf.c (read_minibuf): Use empty_string.
24361 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
24362 Short-circuit the search as soon as it "failed".
24363 (Fall_completions): Allow lambda forms and lists of strings for alist.
24364 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
24365 when require_match is nil.
24366 (Ftest_completion): Rename from `test_completion' and export to elisp.
24367 Call the predicate also when alist is a list.
24368 Obey Vcompletion_regexp_list.
24369 (do_completion, Fminibuffer_complete_and_exit): Use it.
24370 (Fassoc_string): Rename from `assoc_for_completion'.
24371 Allow list of strings as well and export to elisp.
24373 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
24375 * puresize.h (BASE_PURESIZE): Increase to 900KB.
24377 2002-04-08 Juanma Barranquero <lektu@terra.es>
24379 * w32.c (sys_accept): Don't hide variable `s'.
24381 2002-04-05 Gerd Moellmann <gerd@gnu.org>
24383 * callint.c (Fcall_interactively): Use INTEGERP instead of
24384 NUMBERP for checking Vhistory_length.
24386 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24388 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
24389 Doc fix to reflect it.
24391 2002-04-04 Richard M. Stallman <rms@gnu.org>
24393 * xdisp.c (display_mode_element): New arg RISKY.
24394 Disregard text props found or specified within a variable
24395 that isn't marked risky-local-variable.
24396 (Qrisky_local_variable): New variable.
24397 (syms_of_xdisp): Init and staticpro it.
24399 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
24401 * undo.c (record_point): New fun.
24402 (record_delete, record_insert): Use it.
24404 2002-04-03 Juanma Barranquero <lektu@terra.es>
24406 * doc.c (Fdocumentation): Add missing parentheses.
24407 (Fdocumentation_property): Likewise.
24409 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
24411 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
24412 data is 0, just return nil.
24414 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
24416 * msdos.c (syms_of_msdos): Fix last change with
24417 mouse_autoselect_window.
24419 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24421 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
24422 mouse_autoselect_window.
24424 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
24426 * keyboard.c (make_lispy_event): Handle unknown keysyms together
24427 with system-specific keysyms. Use it also for unknown function keys.
24429 * doc.c (reread_doc_file): Return whether reload was attempted.
24430 (Fdocumentation, Fdocumentation_property): Don't try to reload
24431 if the doc is 0 and only ask once.
24433 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
24435 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
24437 * keyboard.c (read_char): If the event was Qselect_window,
24438 restore timer_idleness_start_time to its previous value.
24440 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
24442 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
24444 * region-cache.c (new_region_cache): Use BEG.
24446 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
24447 Use BEG and BEG_BYTE.
24449 * doc.c (get_doc_string): Return nil if the location is wrong.
24450 (reread_doc_file): New fun.
24451 (Fdocumentation, Fdocumentation_property):
24452 Call it if get_doc_string fails.
24453 (Fsnarf_documentation): Make it work for a dumped Emacs.
24455 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
24456 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
24458 * charset.c (Fstring): Allow 0 arguments.
24460 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
24462 * process.c (DATAGRAM_CONN_P, list_processes_1)
24463 (Fprocess_datagram_address, Fset_process_datagram_address)
24464 (Fset_network_process_options, server_accept_connection):
24465 Fix some int/Lisp_Object confusions (thank you union types).
24467 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24469 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
24471 * w32term.c: Likewise.
24472 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
24474 * keyboard.c (Qselect_window): New symbol.
24475 (head_table): Use it.
24476 (keys_of_keyboard): Bound select-window event to handle-select-window.
24477 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
24479 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
24480 (last_window): New variable.
24481 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
24482 (note_mouse_movement): Remove reimplemented code in #if 0.
24483 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
24486 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
24488 2002-03-31 Gerd Moellmann <gerd@gnu.org>
24490 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
24493 2002-03-30 Richard M. Stallman <rms@gnu.org>
24495 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
24496 loop whenever it stops making progress.
24498 * widget.c (set_frame_size): Don't call change_frame_size.
24500 2002-03-30 Gerd Moellmann <gerd@gnu.org>
24502 * dispnew.c (direct_output_for_insert):
24503 Call mark_window_display_accurate.
24505 2002-03-29 Jason Rumney <jasonr@gnu.org>
24507 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
24509 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
24511 * Makefile.in (lread.o): Depend on coding.h.
24513 * lread.c (openp, Fload): Encode the file name before passing it
24514 to `stat', `access', and `emacs_open'.
24515 (openp): GCPRO the encoded file name. Don't recompute Lisp
24516 strings unnecessarily.
24518 2002-03-29 Kim F. Storm <storm@cua.dk>
24520 * fns.c (Flax_plist_put): Doc fix.
24522 2002-03-28 Miles Bader <miles@gnu.org>
24524 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
24526 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24528 * process.c (set-network-process-options): Add usage.
24529 (make-network-process): Doc fix.
24531 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
24533 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
24535 2002-03-26 Richard M. Stallman <rms@gnu.org>
24537 * fns.c (Fsubstring_no_properties): New function.
24538 (Flax_plist_get, Flax_plist_put): New functions.
24539 (syms_of_fns): defsubr them.
24541 * xdisp.c (update_menu_bar): Test only update_mode_lines;
24542 don't test or alter w->update_mode_line.
24544 * window.c (Fdisplay_buffer): Doc fix.
24546 2002-03-24 Richard M. Stallman <rms@gnu.org>
24548 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
24550 2002-03-24 Gerd Moellmann <gerd@gnu.org>
24552 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
24553 (Fdefmacro): Handle `(declare ...)'.
24554 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
24555 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
24557 2002-03-24 Jason Rumney <jasonr@gnu.org>
24559 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
24560 (xbm_file_p): Add prototypes.
24561 (xbm_format, xbm_image_p): Sync with xfns.c.
24562 (reflect_byte): New function.
24563 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
24564 (xbm_load_image): Create bitmaps with a depth of 1.
24565 (init_xfns): Enable XBM images.
24567 2002-03-23 Jason Rumney <jasonr@gnu.org>
24569 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
24570 correctly. Do not pass up_modifier to keyboard buffer.
24572 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
24574 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
24576 * Makefile.in (bootstrapclean): New target.
24577 (bootstrap-temacs, bootstrap-doc): Remove.
24578 (bootstrap-emacs): Use a bog-standard `temacs'.
24579 Don't bother to build a DOC file.
24581 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
24583 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
24584 in temacs even if !CANNOT_DUMP.
24585 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
24587 * alloc.c (check_pure_size): Only output a warning.
24589 2002-03-22 Jason Rumney <jasonr@gnu.org>
24591 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
24594 * w32term.c (zv_bits): Declare as short, for word alignment.
24595 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
24596 (syms_of_w32term): Define x-use-underline-position-properties.
24598 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
24599 (clear_image_cache): Block input, fix logic, clear matrices in
24600 all frames that share this cache.
24602 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
24604 * emacs.c (main): Update the Copyright year in the blurb printed
24605 by "emacs --version".
24607 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
24609 * xterm.c (XTread_socket): If XK_ISO_Lock and
24610 XK_ISO_Last_Group_Lock are defined, handle keysyms between
24611 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
24613 2002-03-21 Kim F. Storm <storm@cua.dk>
24615 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
24616 menu-bar bindings in keymap and local-map properties _are_ used.
24617 But try keymap property first in accordance with 2002-01-03 patch.
24618 Added comment describing why this is not always reliable.
24619 (tool_bar_items): Ditto for tool-bar.
24621 2002-03-21 Jason Rumney <jasonr@gnu.org>
24623 * w32fns.c (x_clear_image_1): Disable color table code.
24625 2002-03-21 Kim F. Storm <storm@cua.dk>
24627 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
24628 removed the wrong version of the DEFUN macro; fixed it.
24630 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
24631 Fmember rather than Fmemq).
24632 (Fprovide): Check that subfeatures is a list.
24634 * process.c (QCfeature, QCdatagram): Removed variables.
24635 (QCtype, Qdatagram): New variables.
24636 (network_process_featurep): Removed function.
24637 (Fmake_network_process): Removed :feature check.
24638 Use :type 'datagram instead of :datagram t to create a datagram
24639 socket. This allows us to add other connection types (e.g. raw
24640 sockets) later in a consistent manner.
24641 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
24642 supported subfeatures for feature make-network-process.
24643 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
24644 Intern and staticpro QCtype and Qdatagram.
24645 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
24647 * xfns.c (QCtype): Remove duplicate declaration and
24648 initialization (is now declared in process.c).
24650 * w32fns.c (QCtype): Remove duplicate declaration and
24651 initialization (is now declared in process.c).
24653 2002-03-21 Richard M. Stallman <rms@gnu.org>
24655 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
24656 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
24657 when jumping to `fail' to avoid undoing reg changes in the
24658 last iteration of the loop.
24659 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
24661 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
24662 Depend on process.h.
24664 2002-03-20 Jason Rumney <jasonr@gnu.org>
24666 Most of the following changes are still conditional on HAVE_IMAGES
24667 which is not set by default on Windows.
24669 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
24671 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
24672 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
24673 (four_corners_best, x_clear_image_1, x_clear_image)
24674 (x_alloc_image_color, postprocess_image)
24675 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
24676 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
24677 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
24679 * w32gui.h (struct XImage): Define.
24681 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
24682 extract mouse co-ordinates.
24684 2002-03-20 Jason Rumney <jasonr@gnu.org>
24686 * w32.c (init_winsock): Dynamically load new server and UDP
24688 (socket_to_fd): New function.
24689 (sys_socket): Use it.
24690 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
24691 (sys_recvfrom, sys_sendto): New wrapper functions.
24693 * process.c (QCfamily, QCfilter): Remove duplicate declaration
24694 and initialization.
24696 * makefile.w32-in (LIBS): Remove $(WSOCK32).
24698 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
24700 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
24701 Don't use "sun" as a variable, it's a predefined constant on Sun
24704 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24706 * bytecode.c (Fbyte_code): Revert last change.
24708 2002-03-19 Kim F. Storm <storm@cua.dk>
24710 * makefile.w32-in (LIBS): Add $(WSOCK32).
24711 From David Ponce <dponce@voila.fr>.
24713 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24715 * process.c (wait_reading_process_input): Move variables `pname'
24716 and `pnamelen' down where they are used.
24718 * bytecode.c (Fbyte_code): Discard unused computed value to
24719 prevent gcc warning.
24721 * lisp.h (Fplist_member): Add prototype.
24723 2002-03-18 Kim F. Storm <storm@cua.dk>
24725 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
24726 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
24728 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
24729 Remove explicit GNU_LINUX settings for datagram support.
24731 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24733 * process.c (Fmake_network_process): Remove unused variable `sa'.
24734 Doc fix. Add usage:.
24735 (set_socket_options): Remove unused variables `optnum' and `opttype'.
24737 2002-03-17 Richard M. Stallman <rms@gnu.org>
24739 * xdisp.c (cursor_type_changed): New variable.
24740 (redisplay_internal): Redisplay all windows if cursor_type_changed.
24741 Clear it when clearing windows_or_buffers_changed.
24742 (try_cursor_movement, redisplay_window, try_window_id)
24743 (try_window_reusing_current_matrix): Test cursor_type_changed
24744 along with windows_or_buffers_changed.
24746 * window.h (cursor_type_changed): New variable.
24748 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
24749 not update_mode_lines, and always set it to 1.
24751 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
24752 if no frames needed redrawing.
24754 2002-03-17 Kim F. Storm <storm@cua.dk>
24756 The following changes add support for network server processes,
24757 datagram connections, and local (unix) sockets.
24759 * process.h (struct Lisp_Process): New member log.
24760 Doc fix: Member command used to indicate stopped network process.
24761 Doc fix: Member childp contains plist for network process.
24762 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
24764 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
24765 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
24766 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
24768 (NETCONN1_P): New macro.
24769 (DATAGRAM_SOCKETS): New conditional symbol.
24770 (datagram_address): New array.
24771 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
24772 (status_message): Use concat3.
24773 (Fprocess_status): Add `listen' status to doc string. Return
24774 `stop' for a stopped network process.
24775 (Fset_process_buffer): Update contact plist for network process.
24776 (Fset_process_filter): Ditto. Don't enable input for stopped
24777 network processes. Server must listen, even if filter is t.
24778 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
24780 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
24781 (Fprocess_contact): Added KEY argument. Handle datagrams.
24782 (list_processes_1): Optionally show only processes with the query
24783 on exit flag set. Dynamically adjust column widths. Omit tty
24784 column if not needed. Report stopped network processes. Identify
24785 server and datagram network processes.
24786 (Flist_processes): New optional arg `query-only'.
24787 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
24788 (conv_lisp_to_sockaddr, set_socket_options)
24789 (network_process_featurep, unwind_request_sigio): New helper
24791 (Fprocess_datagram_address, Fset_process_datagram_address):
24792 (Fset_network_process_options): New lisp functions.
24793 (Fopen_network_stream): Removed. Now defined in simple.el.
24794 (Fmake_network_process): New lisp function. Code is based on
24795 previous Fopen_network_stream, but heavily reworked with new
24796 property list based argument list, support for datagrams, server
24797 processes, and local sockets in addition to old client-only
24799 (server_accept_connection): New function.
24800 (wait_reading_process_input): Use it to handle incoming connects.
24801 Do not enable input on a new connection if process is stopped.
24802 (read_process_output): Handle datagram sockets. Use 2k buffer for
24804 (send_process): Handle datagram sockets.
24805 (Fstop_process, Fcontinue_process): Apply to network processes. A
24806 stopped network process is indicated by setting command field to t.
24807 (Fprocess_send_eof): No-op if datagram connection.
24808 (Fstatus_notify): Don't read input for a stream server socket or a
24809 stopped network process.
24810 (init_process): Initialize datagram_address array.
24811 (syms_of_process): Intern and staticpro new variables, defsubr new
24814 2002-03-16 Jason Rumney <jasonr@gnu.org>
24816 * w32fns.c (w32_to_all_x_charsets): Return correct type in
24819 2002-03-16 Richard M. Stallman <rms@gnu.org>
24821 * xdisp.c (redisplay_internal, redisplay_windows):
24822 Use list_of_error to call internal_condition_case_1.
24823 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
24824 so as to catch all errors with no possibility of debugger redisplay.
24825 (list_of_error): New variable.
24826 (syms_of_xdisp): Init and staticpro it.
24828 * print.c (print_object): Delete `\ ' from printed rep of frame.
24830 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
24832 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
24833 until its implementation is fixed.
24835 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24837 * xfns.c (png_load): Remove unused variable `gamma_str'.
24839 2002-03-14 Richard M. Stallman <rms@gnu.org>
24841 * xfns.c (x_real_positions): Handle failure in XQueryTree.
24843 2002-03-14 Miles Bader <miles@gnu.org>
24845 * intervals.c (adjust_for_invis_intang): New function.
24846 (set_point_both): Use `adjust_for_invis_intang' to do most of the
24847 work for dealing with invisible+intangible regions. Do so before
24848 and after both forward and backward movements, to handle both
24849 front-sticky and rear-sticky cases.
24850 * textprop.c (text_property_stickiness): Function moved here from
24852 * intervals.h (text_property_stickiness): New declaration.
24853 * editfns.c (char_property_eq): Function removed.
24854 (text_property_stickiness): Function moved to `textprop.c'.
24856 2002-03-13 Jason Rumney <jasonr@gnu.org>
24858 * config.in: Add STRFTIME_NO_POSIX2.
24860 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
24861 and %OX when underlying strftime does not.
24863 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
24865 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
24866 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
24867 line) to avoid annoying flicker.
24868 (xm_scroll_callback): Get rid of the now unnecessary kludge.
24869 (XTread_socket): Mark it static.
24871 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
24873 2002-03-13 Kim F. Storm <storm@cua.dk>
24875 * puresize.h (BASE_PURESIZE): Increase to 775000.
24877 2002-03-12 Juanma Barranquero <lektu@terra.es>
24879 * editfns.c (syms_of_editfns): Fix typo.
24881 2002-03-12 Gerd Moellmann <gerd@gnu.org>
24883 * xsmfns.c: Include stdio.h because termhooks.h needs it.
24884 Include termopt.h for interrupt_input.
24886 2002-03-11 Andreas Schwab <schwab@suse.de>
24888 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
24890 2002-03-11 Gerd Moellmann <gerd@gnu.org>
24892 * xterm.c (note_mouse_movement): Put code for
24893 x_autoselect_window_p in #if 0.
24895 * lread.c (Fload): Don't assume that message_with_string uses the
24896 string it is given like a C string.
24898 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
24900 * xterm.h (x_session_check_input, x_session_initialize): Declare.
24902 * xterm.c (XTread_socket): Add call to x_session_check_input and
24903 x_session_have_connection.
24904 (x_initialize): Add call to x_session_initialize.
24906 * termhooks.h (enum event_kind): Add save_session_event.
24908 * keyboard.c: Add Emacs event save_session_event.
24910 * emacs.c (main): Add call to syms_of_xsmfns.
24912 * lisp.h (syms_of_xsmfns): Declare extern.
24914 * config.in: Add HAVE_X_SM.
24916 * Makefile.in (LIBXT): Add -lSM -lICE
24917 if HAVE_X_SM and not USE_X_TOOLKIT.
24918 (XOBJ): New file xsmfns.c added.
24920 * xsmfns.c: New file for X session management.
24922 2002-03-09 Jason Rumney <jasonr@gnu.org>
24924 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
24925 read-only when setting modified time.
24927 2002-03-08 Gerd Moellmann <gerd@gnu.org>
24929 * xdisp.c (move_it_vertically_backward): At the end of the function,
24930 when moving forward by lines, treat terminal frames specially.
24932 * keyboard.c (echo_char): Make sure to add a separator between
24933 keys even if echo_dash hasn't been called.
24935 * xdisp.c: Use new string macros.
24936 (update_echo_area): Pass number of bytes to message3 instead of
24938 (set_message_1): Don't access a string's size_byte directly.
24939 (decode_mode_spec_coding): Use number of bytes of eoltype string
24940 instead number of chars.
24942 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
24944 2002-03-08 Juanma Barranquero <lektu@terra.es>
24946 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24949 2002-03-06 Jason Rumney <jasonr@gnu.org>
24951 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
24953 2002-03-06 Gerd Moellmann <gerd@gnu.org>
24955 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
24956 (cancel_echoing, echo_length, echo_truncate): Changed to
24957 work with new kboard definition.
24958 (echo_now): Use message3_nolog instead of message2_nolog.
24960 * alloc.c (mark_kboards): Mark echo_string.
24962 * keyboard.h (ECHOBUFSIZE): Removed.
24963 (struct kboard): Member echoptr removed, member echobuf renamed
24966 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
24967 message3 instead of message2 to display the message using STRING's
24970 2002-03-05 Andreas Schwab <schwab@suse.de>
24972 * xdisp.c (hscroll_margin): Change to EMACS_INT.
24974 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
24976 * frame.c (default-frame-alist): Explain that setting it doesn't
24977 affect existing frames.
24979 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
24981 * indent.c (skip_invisible): Fix my brain fart.
24983 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
24985 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
24987 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
24988 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
24989 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
24990 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
24991 and variables to use EMACS_INT instead of just int.
24993 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
24995 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
24997 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24998 environment, pass it down with corrected value.
25000 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25002 * lread.c (read_filtered_event): Do not call start_hourglass
25005 2002-03-04 Juanma Barranquero <lektu@terra.es>
25007 * w32term.c (x_display_and_set_cursor): Fix typo.
25009 2002-03-03 Richard M. Stallman <rms@gnu.org>
25011 * fileio.c (Fmake_temp_name): Doc fix.
25013 2002-03-03 Gary Wong <gtw@gnu.org>
25015 * termcap.c [!emacs]: Replace ospeed for building standalone
25016 libtermcap, for binary compatibility.
25018 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
25020 2002-03-03 Richard M. Stallman <rms@gnu.org>
25022 * xrdb.c (file_p): Rename arg `path' to `filename'.
25024 * abbrev.c (Fexpand_abbrev): Increment plist as use count
25025 only if it is an integer.
25027 * xfns.c (png_load): Set screen_gamma based on f->gamma.
25028 If png_get_sRGB gives an answer, call png_set_gamma
25029 using the default image gamma value.
25031 * lread.c (read1): When reading from a file, default string to
25032 multibyte only if it has some multibyte characters.
25034 * print.c (print_object): Output multibyte chars 128...255
25035 using \x even if ! print_escape_multibyte.
25037 * xdisp.c (display_mode_element): Move the places where
25038 bytepos, charpos, this, and lisp_string are set.
25039 Use lisp_string to set bytepos.
25041 * xdisp.c (redisplay_internal):
25042 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
25044 * xdisp.c (display_mode_element): Merge properties specified with
25045 :propertize onto those that come with the string.
25047 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
25049 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
25050 automatic-hscrolling. Users changed.
25051 <hscroll-margin>: Renamed from automatic-hscroll-margin.
25053 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
25055 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
25057 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
25059 2002-03-02 Kim F. Storm <storm@cua.dk>
25061 * window.c (Fminibuffer_selected_window): New function.
25062 (syms_of_window): Defsubr it.
25064 2002-03-01 Kim F. Storm <storm@cua.dk>
25066 * window.h (struct window): New member phys_cursor_width.
25068 * window.c (make_window, replace_window): Init phys_cursor_width.
25070 * xterm.c (x_display_and_set_cursor): Blink box cursor using
25071 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25073 * w32term.c (x_display_and_set_cursor): Blink box cursor using
25074 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25076 * lisp.h (GCPRO6): New macro.
25078 * process.c (Fopen_network_stream): Use GCPRO6.
25080 2002-03-01 Kim F. Storm <storm@cua.dk>
25082 * process.c (Qconnect, Qfailed): New variables.
25083 (syms_of_process): Intern and staticpro them.
25084 (Fprocess_status): Document connect and failed return values.
25085 [NON_BLOCKING_CONNECT]: New conditional.
25086 (connect_wait_mask, num_pending_connects): New variables.
25087 (status_message): Convert Qfailed status.
25088 (Fopen_network_stream): Added support for non-blocking connect.
25089 New optional args: filter, sentinel, non_blocking. Doc updated.
25090 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
25091 (deactivate_process): Handle pending non-blocking connect.
25092 (wait_reading_process_input): Poll for status of non-blocking
25093 connects. Exec sentinel directly when connect succeeds.
25094 (status_notify): Don't read process output if not yet connected.
25096 2002-02-28 Kim F. Storm <storm@cua.dk>
25098 * window.c (minibuf_selected_window): Renamed from
25099 Vminibuf_selected_window. Users changed.
25100 (syms_of_window): Staticpro it.
25102 2002-02-26 Kim F. Storm <storm@cua.dk>
25104 The following changes add a new Vminibuf_selected_window variable
25105 which is similar to Vminibuf_scroll_window, but which is only set
25106 on entry to the minibuffer (from a non-minibuffer window):
25108 * window.c (Vminibuf_selected_window): New variable.
25109 (struct save_window_data): New member minibuf_selected_window.
25110 (Fset_window_configuration): Restore Vminibuf_selected_window.
25111 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
25112 Set minibuf_scroll_window member to nil if minibuf_level is 0.
25113 (compare_window_configurations): Compare minibuf_selected_window.
25115 * window.h (Vminibuf_selected_window): Declare extern.
25117 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
25118 entry to minibuffer or on entry from a non-minibuffer window.
25120 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
25121 Vminibuf_selected_window instead of Vminibuf_scroll_window.
25123 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
25124 instead of Vminibuf_scroll_window when deciding in which window
25125 the region should be highlighted. Consequently, the region remains
25126 highlighteded even when a completion buffer is also displayed.
25128 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
25130 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
25132 * xselect.c (Qcompound_text_with_extensions): Renamed from
25133 Qcompound_text_no_extensions.
25134 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
25136 2002-02-26 Juanma Barranquero <lektu@terra.es>
25138 * w32proc.c (syms_of_ntproc): Doc fix.
25140 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25142 * intervals.h: Include "dispextern.h" unconditionally.
25144 2002-02-24 Jason Rumney <jasonr@gnu.org>
25146 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
25147 and disp-table.elc.
25148 (lisp): Add emacs-lisp/backquote.elc.
25150 2002-02-24 Kim F. Storm <storm@cua.dk>
25152 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
25153 The validation of the event type was too strict as it didn't
25154 allow string events; buffer names are used in bindings for
25155 menu-bar-select-buffer (see `menu-bar-update-buffers').
25157 2002-02-23 Kim F. Storm <storm@cua.dk>
25159 The following changes rework my patch of 2002-02-06 which
25160 added command remapping by entering the commands directly into
25161 the keymaps. Now, command remapping uses an explicit `remap'
25162 prefix in the keymaps, i.e. [remap COMMAND].
25164 * keymap.c (Qremap, remap_command_vector): New variables.
25165 (is_command_symbol): Remove function.
25166 (Fdefine_key): No longer accept a symbol for KEY.
25167 Added validation of [remap COMMAND] argument for KEY.
25168 The DEF is no longer required to be a symbol when remapping a command.
25169 (Fremap_command): New function to remap command through keymaps.
25170 (Flookup_key): Perform command remapping initiated by
25171 Fremap_command directly for speed.
25172 (Fkey_binding): Use Fremap_command for command remapping.
25173 (where_is_internal): Handle new command remapping representation.
25174 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
25175 staticpro them. Defsubr Fremap_command.
25177 * keymap.h (Fremap_command): Declare extern.
25178 (is_command_symbol): Remove extern.
25180 * keyboard.c (command_loop_1): Use Fremap_command for command
25181 remapping; now try command remapping for all symbols.
25183 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25185 * coding.h (run_pre_post_conversion_on_str): Add prototype.
25187 2002-02-23 Jason Rumney <jasonr@gnu.org>
25189 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
25190 on the string before encoding it.
25191 (Fw32_get_clipboard_data): Run post-read-conversion on the string
25194 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
25196 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25198 * w32term.c (enter_timestamp): Remove unused static variable to
25201 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
25203 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25205 * w16select.c (Fw16_get_clipboard_data): Fix last change.
25207 * xselect.c (selection_data_to_lisp_data): Fix last change.
25209 2002-02-22 Jason Rumney <jasonr@gnu.org>
25211 * w32term.h (struct w32_output): New member menu_command_in_progress.
25213 * w32menu.c (menubar_selection_callback): Free the menu and
25214 clear the menu_command_in_progress flag.
25216 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
25217 (menu_free_timer): New variable.
25218 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
25219 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
25220 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
25221 menu command is in progress.
25222 <WM_COMMAND>: Set the menu_command_in_progress flag.
25223 Kill any menu_free_timer that is running.
25225 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
25226 Call ExtTextOutA rather than ExtTextOut.
25228 2002-02-22 Eli Zaretskii <eliz@gnu.org>
25230 * puresize.h (BASE_PURESIZE): Increase to 755000.
25232 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25234 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
25235 on the string before encoding it.
25236 (Fw16_get_clipboard_data): Run post-read-conversion on the string
25239 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25241 Support for ICCCM Extended Segments in X selections:
25243 * xselect.c <Qcompound_text_no_extensions>: New variable.
25244 (syms_of_xselect): Intern and staticpro it.
25245 (selection_data_to_lisp_data): Run post-read-conversion on decoded
25247 (lisp_data_to_selection_data): If next-selection-coding-system is
25248 compound-text-no-extensions, set the type of selection to be
25251 * xterm.h (x_encode_text): Update prototype.
25253 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
25254 callers changed. If SELECTIONP is non-zero, run the
25255 pre-write-conversion function before encoding the selection text.
25257 2002-02-21 Kim F. Storm <storm@cua.dk>
25259 * frame.c (syms_of_frame): Change mouse-highlight default to t.
25261 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
25262 Correct composing of language-change event.
25264 2002-02-20 Kim F. Storm <storm@cua.dk>
25266 * keyboard.c (menu_bar_items): Don't include keymap or local-map
25267 bindings at PT when building menu (the menu is not updated often
25268 enough for this to work reliable).
25269 (tool_bar_items): Likewise.
25270 (current_active_maps): Removed unused (and buggy) function.
25272 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25274 * xfns.c (gif_load): Use correct width and height for GIF images.
25276 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
25278 * floatfns.c (Fatan): Accept an optional second arg and call
25279 atan2 if passed 2 args.
25281 2002-02-18 Jason Rumney <jasonr@gnu.org>
25283 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
25285 2002-02-17 Jason Rumney <jasonr@gnu.org>
25287 * w32term.c (x_autoselect_window_p): New variable.
25288 (syms_of_w32term): DEFVAR_BOOL and initialize it.
25289 (note_mouse_movement): Use it.
25291 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
25293 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
25295 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25297 (syms_of_w32fns): Intern and staticpro them.
25298 (x_frame_parms) <"fullscreen">: New parameter.
25299 (x_fullscreen_move, x_set_fullscreen): New functions.
25300 (x_set_frame_parameters): Support Qfullscreen.
25301 (x_real_positions): Save x/y_pixels_diff frame params.
25302 (x_figure_window_size): Support full-screen frames.
25303 (Fx_create_frame): Default the fullscreen parameter.
25305 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
25306 (x_fullscreen_adjust): New functions.
25307 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
25308 fullscreen. Call x_check_fullscreen_move, and set the
25309 want_fullscreen member of output_data.w32
25310 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
25312 * w32term.h: New enum for FULLSCREEN_* constants.
25313 (struct w32_output): New members want_fullscreen, x_pixels_diff,
25314 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
25315 (x-fullscreen-adjust): New prototype.
25317 2002-02-17 Kim F. Storm <storm@cua.dk>
25319 * frame.c (Vmouse_highlight): New variable.
25320 (syms_of_frame): DEFVAR_LISP it.
25322 * frame.h (Vmouse_highlight): Declare extern.
25324 * xterm.h (struct x_display_info): Add mouse_face_hidden.
25326 * xterm.c (disable_mouse_highlight): Removed variable.
25327 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25328 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25329 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
25330 and on after keyboard input.
25331 (x_term_init): Initialize mouse_face_hidden.
25333 * msdos.h (struct display_info): Add mouse_face_hidden.
25335 * msdos.c (disable_mouse_highlight): Removed variable.
25336 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25337 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25338 (internal_terminal_init): Initialize mouse_face_hidden.
25339 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
25340 and on after keyboard input.
25342 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
25344 * w32term.c (disable_mouse_highlight): Removed variable.
25345 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
25346 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25347 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
25348 and on after keyboard input.
25349 (w32_initialize_display_info): Initialize mouse_face_hidden.
25351 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
25353 * msdos.c (last_mouse_window): New variable.
25354 (dos_rawgetc): Fix last change--if the mouse is in the same window
25355 as recorded in last_mouse_window, don't select this window.
25357 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
25359 * msdos.c (x_autoselect_window_p): New variable.
25360 (syms_of_msdos): Defvar it.
25361 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
25362 which the last mouse movement occured, unless it is already selected.
25364 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
25366 (syms_of_xdisp): DEVFAR them.
25367 (hscroll_window_tree): Use automatic_hscroll_margin and
25368 Vautomatic_hscroll_step to compute the amount of window scrolling.
25370 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25372 * xterm.c (x-autoselect-window): New variable.
25373 (note_mouse_movement): Use it.
25375 * keyboard.c: Do not include "systime.h" twice.
25377 2002-02-15 Andreas Schwab <schwab@suse.de>
25379 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
25381 * alloc.c (NSTATICS): Increase to 1280.
25383 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
25385 * alloc.c (NSTATICS): Bump to 1026.
25387 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
25388 (Vx_super_keysym): New variables.
25389 (syms_of_xterm): DEFVAR_LISP them.
25390 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
25391 variables to determine which keys to use for the various modifiers.
25393 2002-02-13 Kim F. Storm <storm@cua.dk>
25395 * window.c (Vmode_line_in_non_selected_windows): Removed.
25396 (mode_line_in_non_selected_windows): New variable.
25397 (syms_of_window): DEFVAR_BOOL it.
25399 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
25400 Use mode_line_in_non_selected_windows.
25401 (mode_line_in_non_selected_windows): Declare extern.
25402 (Vmode_line_in_non_selected_windows): Removed extern.
25404 2002-02-13 Richard M. Stallman <rms@gnu.org>
25406 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
25407 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
25408 (Fclear_this_command_keys): Doc fixes.
25410 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
25411 (update_face_from_frame_parameter): Increment face_change_count
25412 and windows_or_buffers_changed to force redisplay using changed faces.
25414 * xdisp.c (QCpropertize): New variable.
25415 (mode_line_proptrans_alist): New variable.
25416 (display_mode_element): New arg PROPS; all calls changed.
25417 Implement this, for strings.
25418 Handle literal output of strings by sharing the
25419 main-line code for strings, using local var `literal'.
25420 Handle :propertize feature.
25421 (syms_of_xdisp): Initialze and staticpro QCpropertize and
25422 mode_line_proptrans_alist.
25424 2002-02-11 Kim F. Storm <storm@cua.dk>
25426 * window.c (Vmode_line_in_non_selected_windows): New variable.
25427 (syms_of_window): DEFVAR_LISP it.
25429 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
25430 (CURRENT_MODE_LINE_FACE_ID): Use it.
25431 (Vmode_line_in_non_selected_windows): Declare extern.
25433 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
25434 to get mode line face.
25436 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
25438 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
25439 variables; cus-start.el doesn't need them anymore.
25441 2002-02-09 Kim F. Storm <storm@cua.dk>
25443 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
25444 reduction. This fixes a display problem where stray newlines were
25445 inserted in the window (corrected by C-l). Clarified code (IMHO).
25447 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
25449 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
25451 * xdisp.c (display_mode_lines): Fix last change.
25453 2002-02-09 Jason Rumney <jasonr@gnu.org>
25455 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
25457 (w32_load_system_font): Prevent Cleartype fonts from loading.
25458 (Fx_show_tip): Ensure tip frames are above other topmost windows.
25460 2002-02-09 Kim F. Storm <storm@cua.dk>
25462 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
25463 (CURRENT_MODE_LINE_HEIGHT): Use it.
25464 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
25466 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
25467 (pos_visible_p, handle_face_prop): Likewise.
25468 (display_mode_lines): Likewise, but for the real selected window.
25469 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
25471 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
25472 in non-selected windows.
25473 (realize_basic_faces): Realize it.
25474 (syms_of_term): Intern and staticpro it.
25476 2002-02-08 Kim F. Storm <storm@cua.dk>
25478 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
25479 Changed mail addresses to emacs-devel@gnu.org.
25481 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
25483 * fileio.c (Fsubstitute_in_file_name): If the file name includes
25484 ~user, and there's no such user, don't discard everything before ~user.
25486 * floatfns.c (Fround): Doc fix.
25488 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25490 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
25492 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
25494 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
25496 2002-02-07 Kim F. Storm <storm@cua.dk>
25498 * keymap.c (where_is_internal): Only check whether definition is
25499 remapped if it fulfills is_command_symbol.
25501 2002-02-07 Andreas Schwab <schwab@suse.de>
25503 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
25505 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
25507 2002-02-06 Kim F. Storm <storm@cua.dk>
25509 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
25510 defining command remapping. Doc updated.
25511 (Flookup_key): Remap command through keymap if KEY is a symbol.
25512 (is_command_symbol): New function.
25513 (Fkey_binding): Use it. New optional argument NO-REMAP.
25514 Doc updated. Callers changed. Perform command remapping via
25515 recursive call unless that arg is non-nil.
25516 (where_is_internal): New argument no_remap. Callers changed.
25517 Call recursively to find original key bindings for a remapped
25518 comand unless that arg is non-nil.
25519 (Fwhere_is_internal): New optional argument NO-REMAP.
25520 Doc updated. Callers changed. Pass arg to where_is_internal.
25522 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
25523 (is_command_symbol): Add prototype.
25525 * keyboard.c (Vthis_original_command): New variable.
25526 (syms_of_keyboard): DEFVAR_LISP it.
25527 (command_loop_1): Set it, and perform command remapping.
25529 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25531 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
25533 2002-02-06 Jason Rumney <jasonr@gnu.org>
25535 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
25537 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
25539 * charset.c (get_charset_id): Use if-else instead of ?:.
25541 2002-02-06 Richard M. Stallman <rms@gnu.org>
25543 * filelock.c (S_ISLNK): Define if not defined.
25545 2002-02-03 Richard M. Stallman <rms@gnu.org>
25547 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
25549 * lread.c (read1): Redesign strategy for force_multibyte and
25550 force_singlebyte. Now is_multibyte records whether read_buffer
25551 is multibyte. Encountering any multibyte character makes it so.
25553 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
25555 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
25556 with the same sequence, map that sequence to f10 rather than f0.
25558 2002-02-03 Andreas Schwab <schwab@suse.de>
25560 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
25561 latter never being defined on GNU/Linux.
25563 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
25565 * xfaces.c (realize_default_face): Don't set the weight and slant of
25566 the default face to Qnormal, unless these attributes are unspecified.
25568 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25570 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
25571 Call cancel_hourglass unconditionally.
25573 * eval.c (Fsignal): Remove duplicated declaration of
25574 the variable `display_hourglass_p'.
25576 2002-01-31 Richard M. Stallman <rms@gnu.org>
25578 * editfns.c (region_limit): Nicer error message.
25580 * coding.c (decode_composition_emacs_mule):
25581 Give up if NCOMPONENT gets too large to index `component'.
25583 * callint.c (check_mark): New arg to specify clearer error message.
25586 2002-01-27 Richard M. Stallman <rms@gnu.org>
25588 * minibuf.c (Fcompleting_read): Doc fix.
25590 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25592 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
25593 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
25596 2002-01-26 Richard M. Stallman <rms@gnu.org>
25598 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
25600 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
25601 and scroll_up_aggressively.
25603 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25605 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
25607 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
25609 * textprop.c (Fnext_property_change, Fnext_single_property_change)
25610 (Fprevious_property_change, Fprevious_single_property_change):
25611 Stay within the narrowed-buffer boundaries.
25613 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
25615 * term.c (Ftty_display_color_cells): New function.
25616 (syms_of_term): Defsubr it.
25617 (Ftty_display_color_cells, Ftty_display_color_p): Change the
25618 argument name to DISPLAY. Doc fix.
25620 * dispextern.h: Add prototype for set_tty_color_mode and
25623 2002-01-24 Jason Rumney <jasonr@gnu.org>
25625 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
25626 If region left to draw is not what was expected, mark the frame as
25629 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
25630 Combine the regions returned by BeginPaint and GetUpdateRect.
25632 2002-01-23 Jason Rumney <jasonr@gnu.org>
25634 * w32term.c (x_update_window_begin): Only hide caret if
25635 w32_use_visible_system_caret is set.
25636 (x_update_window_end): Only show caret if
25637 w32_use_visible_system_caret is set.
25638 (syms_of_w32term): Handle SystemParametersInfo call failing.
25640 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
25642 2002-01-22 Richard M. Stallman <rms@gnu.org>
25644 * unexelf.c (unexec): Define n so as to cause compilation error
25645 for the code where people have often written n instead of nn.
25647 * .gdbinit (hookpost-run): Defined.
25649 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
25651 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
25653 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
25655 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
25656 if fullscreen is being set.
25658 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25660 * minibuf.c (Fminibuffer_contents)
25661 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
25662 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
25664 2002-01-21 Richard M. Stallman <rms@gnu.org>
25666 * window.c (check_frame_size): Fix minimum height calculation.
25668 2002-01-20 Ken Raeburn <raeburn@gnu.org>
25670 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
25671 height before comparison.
25672 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
25674 2002-01-20 Jason Rumney <jasonr@gnu.org>
25676 * w32term.c (w32_system_caret_width): Remove.
25677 (w32_use_visible_system_caret): New user flag.
25678 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
25679 Windows reports a screen reader running.
25680 (x_update_window_begin): Hide the system caret.
25681 (x_update_window_end): Show the system caret.
25682 (x_display_and_set_cursor): Don't draw a cursor when
25683 w32_use_visible_system_caret is set. Do not adjust width.
25685 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
25686 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
25687 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
25688 the user requests it. Use system default width when creating.
25689 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
25691 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
25692 New window messages.
25694 2002-01-20 Richard M. Stallman <rms@gnu.org>
25696 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
25698 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25700 * doprnt.c (doprnt1): Fix typos in error call.
25702 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
25704 * unexelf.c (unexec) [__sgi]: Support the .got sections.
25706 2002-01-20 Jason Rumney <jasonr@gnu.org>
25708 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
25709 that Windows returns. If a double check fails, try to guess how
25710 ExtTextOut is going to act.
25712 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
25713 in place of stricmp.
25714 (w32_list_synthesized_fonts): Removed.
25715 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
25716 (struct enumfont_t): New element; list.
25717 (enum_font_cb2): List all style and charset variations of a font.
25718 (Fw32_select_font): New optional argument; include_proportional.
25719 Exclude vertical fonts. Exclude proportional fonts unless
25720 include_proportional is non-nil.
25721 (w32_enable_synthesized_fonts): Change to a boolean.
25722 (Fw32_send_sys_command): Doc fix.
25724 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25726 * dispnew.c (update_frame): Move the variable `tem' to the block
25729 2002-01-19 Jason Rumney <jasonr@gnu.org>
25731 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
25732 call to face-set-after-frame-default.
25734 2002-01-18 Richard M. Stallman <rms@gnu.org>
25736 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
25737 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
25739 2002-01-17 Richard M. Stallman <rms@gnu.org>
25741 * window.c (enlarge_window): When exceeding size of parent,
25742 directly delete all the siblings instead of trying to resize it.
25744 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25746 * term.c (set_tty_color_mode): Remove unused variable `tem'.
25748 2002-01-16 Henrik Enberg <henrik@enberg.org>
25750 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
25752 2002-01-16 Kim F. Storm <storm@cua.dk>
25754 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
25755 is invisible. This can happen if cursor is on top line of a
25756 window, and we switch to a buffer with a header line.
25758 * w32term.c (x_erase_phys_cursor): Ditto.
25760 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25762 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
25763 `dont_resize' only when used.
25765 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
25767 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
25769 * xdisp.c (display_mode_element): When computing charpos, depend
25770 on multibyteness of elt, not the text in field.
25772 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25774 * buffer.c (Fkill_all_local_variables):
25775 Increment `update_mode_lines' only once.
25777 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25779 * lisp.h (adjust_after_replace_noundo)
25780 (Fupdate_coding_systems_internal): Add prototypes.
25782 * sound.c (Fplay_sound): Initialize header_size also for :data case.
25784 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
25786 Support for the --color command-line argument and tty-color-mode
25789 * term.c (tty_default_color_capabilities, tty_setup_colors)
25790 (set_tty_color_mode): New functions.
25791 (term_init): Call tty_default_color_capabilities.
25792 (Qtty_color_mode_alist): New variable.
25793 (syms_of_term): Intern and staticpro it.
25795 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
25797 (do_switch_frame): For termcap frames, switch the tty
25798 color mode as specified by the frame's parameters.
25799 (Qtty_color_mode): New variable.
25800 (syms_of_frame): Intern and staticpro it.
25802 * emacs.c (USAGE2): Add the --color option.
25803 (standard_args): Ditto.
25805 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
25807 * xterm.h (struct x_output): New members want_fullscreen,
25808 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
25809 y_pixels_outer_diff.
25810 New enum for FULLSCREEN_* constants.
25811 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
25813 (x_fullscreen_adjust): Add prototype.
25815 * emacs.c (USAGE2): Add the new full-screen arguments.
25816 (standard_args): Ditto.
25818 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25820 (syms_of_xfns): Intern and staticpro them.
25821 (x_frame_parms) <"fullscreen">: New parameter.
25822 (x_fullscreen_move, x_set_fullscreen): New functions.
25823 (x_set_frame_parameters): Support for Qfullscreen.
25824 (x_real_positions): More accurate computation of the frame position.
25825 (x_figure_window_size): Support full-screen frames.
25826 (Fx_create_frame): Default the fullscreen parameter.
25828 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
25829 (XTread_socket) <Expose>: Call x_check_fullscreen.
25830 <ConfigureNotify>: Don't resize to fullscreen.
25831 Call x_check_fullscreen_move, and set the want_fullscreen member of
25834 2002-01-13 Jason Rumney <jasonr@gnu.org>
25836 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
25837 for mice with more than 3 buttons.
25839 * w32term.c (parse_button): New parameter xbutton. Callers changed.
25840 (w32_read_socket): Handle new "XBUTTON" messages.
25842 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
25843 (syms_of_w32fns): DEFVAR_BOOL it.
25844 (w32_wnd_proc): Handle new "XBUTTON" messages.
25846 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25848 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
25850 2002-01-13 Andreas Schwab <schwab@suse.de>
25852 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
25854 2002-01-12 Andreas Schwab <schwab@suse.de>
25856 * .gdbinit (xbuffer): Remove address operator since data is now a
25859 2002-01-11 Richard M. Stallman <rms@gnu.org>
25861 * insdel.c (adjust_after_replace_noundo): New function.
25863 * coding.c (code_convert_region): Don't copy old text if undo disabled.
25865 2002-01-09 Jason Rumney <jasonr@gnu.org>
25867 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
25868 when checking for multiple frames.
25870 2002-01-08 Richard M. Stallman <rms@gnu.org>
25872 * window.c (delete_window): Rewrite the code for changing the
25873 selected window to handle the case where WINDOW is not a leaf.
25875 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
25877 * process.c (send_process): Set src_multibyte to 1 after the call
25878 top setup_coding_system, not before the call.
25880 2002-01-07 Jason Rumney <jasonr@gnu.org>
25882 * xmenu.c (set_frame_menubar, xmenu_show):
25883 (xdialog_show): Initialize wv->help to Qnil.
25885 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
25886 (w32_dialog_show): Initialize wv->help to Qnil.
25888 2002-01-06 Jason Rumney <jasonr@gnu.org>
25890 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
25892 * w32menu.c (w32_menu_display_help): Revert last change.
25894 * xmenu.c (menu_highlight_callback): Revert last change.
25896 2002-01-06 Andreas Schwab <schwab@suse.de>
25898 * insdel.c (make_gap_larger): Make sure buffer size does not
25899 overflow range of int.
25901 2002-01-05 Jason Rumney <jasonr@gnu.org>
25903 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25906 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
25908 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
25909 to the left or to the right of the pointer, put it against
25910 the left screen edge.
25911 (x_frame_parms): Add missing braces around initializer.
25913 * w32term.c (x_setup_relief_colors): Don't compute an image's
25914 background color if it doesn't have a Pixmap.
25915 (notice_overwritten_cursor): Don't depend on
25916 output_cursor and updated_area. Compare pixel coordinates with
25917 window's cursor pixel coordinates.
25918 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25919 Call notice_overwritten_cursor with new arg list.
25920 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25922 (x_draw_image_relief): Use predefined macro instead of
25923 constant when the value of `tool_bar_button_relief' is negative.
25925 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
25927 2002-01-04 Richard M. Stallman <rms@gnu.org>
25929 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
25931 2002-01-03 Richard M. Stallman <rms@gnu.org>
25933 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
25934 (Fkey_binding): Try the `keymap' property map first.
25935 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
25936 minor mode bindings.
25938 2002-01-03 Kim F. Storm <storm@cua.dk>
25940 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
25942 2002-01-02 Richard M. Stallman <rms@gnu.org>
25944 * keyboard.c (read_key_sequence): Handle the keymap property
25945 before minor mode maps.
25947 * editfns.c (Fformat): Update thissize from field_width
25948 based on the actual width, in the string case.
25950 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25952 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
25953 when used as truth value to prevent gcc warnings.
25955 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
25956 * w32proc.c: Include <config.h>.
25958 2002-01-01 Andreas Schwab <schwab@suse.de>
25960 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
25961 not EMACS_INT, to make them compatible with DEFVAR_INT.
25962 * lisp.h (max_specpdl_size): Adjust declaration.
25964 2002-01-01 Richard M. Stallman <rms@gnu.org>
25966 * print.c (print_object): Test print_escape_nonascii only for
25968 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
25969 when outputting to a multibyte buffer.
25971 2001-12-29 Richard M. Stallman <rms@gnu.org>
25973 * print.c (print_object): In multibyte string, use hex escapes.
25974 Use octal only for unibyte strings.
25975 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
25977 * lread.c (read_escape): New arg BYTEREP for reporting whether
25978 escape forces unibyte or multibyte.
25979 (read1): When reading a string, take note of that info.
25981 2001-12-29 Ken Raeburn <raeburn@gnu.org>
25983 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
25984 comparison to test lisp value returned by Fget.
25986 2001-12-29 Richard M. Stallman <rms@gnu.org>
25988 * lisp.h (max_specpdl_size): Add declaration.
25990 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
25992 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
25993 Handle modifier bits. Correct typo in error message.
25995 2001-12-28 Richard M. Stallman <rms@gnu.org>
25997 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25998 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25999 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26000 Update calls to Fdefine_abbrev.
26001 (write_abbrev): Update for changed data format.
26002 Don't list "system" abbrevs.
26003 (Fexpand_abbrev): Update use count with new data format.
26004 (describe_abbrev): Update for changed data format.
26005 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
26007 * config.in (HAVE_MBSINIT): Add #undef.
26009 * strftime.c (mbsinit): Define as no-op if not available.
26011 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
26012 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
26014 * keymap.c (Flookup_key): Error message if key has wrong data type.
26015 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
26016 (exclude_key): New variable.
26018 2001-12-28 Gerd Moellmann <gerd@gnu.org>
26020 * xterm.c (x_setup_relief_colors): Don't compute an image's
26021 background color if it doesn't have a Pixmap.
26023 * xterm.c (notice_overwritten_cursor): Don't depend on
26024 output_cursor and updated_area. Compare pixel coordinates with
26025 window's cursor pixel coordinates.
26026 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26027 Call notice_overwritten_cursor with new arg list.
26028 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26031 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
26032 height of the cursor line to the amount to scroll.
26034 2001-12-27 Richard M. Stallman <rms@gnu.org>
26036 * intervals.c (set_point_both): The position after an invisible,
26037 intangible character is not an acceptable stopping point.
26039 2001-12-27 Ken Raeburn <raeburn@gnu.org>
26041 * window.c (enlarge_window): In new preserve_before code, convert
26042 CURBEG from lisp object to integer before doing arithmetic.
26044 2001-12-27 Richard M. Stallman <rms@gnu.org>
26046 * bytecode.c (Fbyte_code): Undo previous change.
26048 2001-12-26 Kim F. Storm <storm@cua.dk>
26050 * keyboard.c (record_char): Ignore duplicate help-echo events only
26051 separated by mouse-movement. When tracking mouse, only record
26052 first and last mouse-movement event in same window.
26053 Don't record mouse-movement events in keyboard macros.
26055 2001-12-25 Richard M. Stallman <rms@gnu.org>
26057 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
26058 (Fenlarge_window): New arg PRESERVE_BEFORE.
26060 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
26061 instead of Fstring_as_unibyte.
26063 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26065 The following changes remove mocklisp support:
26067 * mocklisp.h, mocklisp.c: Files removed.
26069 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
26070 `Qmocklisp' and `Qmocklisp_arguments'.
26071 Remove prototype of syms_of_mocklisp.
26073 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
26075 * callint.c: Do not include mocklisp.h.
26076 (Fcall_interactively): Do not test for mocklisp case.
26078 * eval.c: Remove variables `Qmocklisp_arguments',
26079 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
26080 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
26081 Do not test for mocklisp case.
26082 (Fwhile): Remove unused variable `tem'.
26083 (syms_of_eval): Remove variable `moclisp-arguments'.
26085 * data.c (wrong_type_argument): Remove mocklisp case.
26087 * doc.c (Fdocumentation): Remove mocklisp case.
26089 * emacs.c (main): Do not call syms_of_mocklisp.
26091 2001-12-21 Richard M. Stallman <rms@gnu.org>
26093 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
26094 to the left or to the right of the pointer, put it against
26095 the left screen edge.
26097 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
26099 * Makefile.in (distclean): Remove .gdbinit if we are building
26100 outside the source tree.
26102 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
26104 * w32.c (emacs_root_dir): New function.
26106 * msdos.c (emacs_root_dir): New function.
26108 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
26109 of the current drive as the fallback for default_directory.
26111 * dired.c (file_name_completion): Run the elements of
26112 completion-ignored-extensions through ENCODE_FILE.
26114 * lisp.h (scmp): Remove prototype, since it's now a static
26115 function private to dired.c.
26117 2001-12-18 Richard M. Stallman <rms@gnu.org>
26119 * dired.c (scmp): Function moved from minibuf.c.
26120 Delete multibyte handling--used only on encoded strings.
26122 * minibuf.c (scmp): Function moved to dired.c.
26124 * fns.c (merge): Add QUIT call.
26126 2001-12-18 Dave Love <fx@gnu.org>
26128 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
26129 language/georgian.el.
26131 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
26133 * Makefile.in (lisp, shortlisp): Synchronize with changes to
26134 lisp/Makefile.in:DONTCOMPILE.
26136 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26138 * xdisp.c (window_box_height): Do not return negative values.
26139 From Gerd Moellmann <gerd@gnu.org>.
26141 * keyboard.c (head_table): Add missing braces around initializer.
26143 * term.c (keys): Likewise.
26145 * xfns.c (x_frame_parms, visual_classes): Likewise.
26147 2001-12-17 Sam Steingold <sds@gnu.org>
26149 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
26150 patch (COMPOSING_P, not COMPOSING).
26152 2001-12-17 Richard M. Stallman <rms@gnu.org>
26154 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
26156 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
26157 before calling decode_coding.
26159 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
26161 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
26162 instead of only for COMPOSITION_DISABLED.
26164 2001-12-16 Richard M. Stallman <rms@gnu.org>
26166 * alloc.c (pure_alloc): After overflow, allocate just a small block.
26168 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
26170 * buffer.h (struct buffer): New field `display_error_modiff'.
26171 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
26173 * window.c (Frecenter): Clear display_error_modiff field.
26175 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
26176 Call redisplay_window, but not if display_error_modiff field says no.
26177 (redisplay_window_error): New function.
26178 (displayed_buffer): New variable.
26179 (redisplay_internal, redisplay_windows): Call the new functions
26180 instead of redisplay_window directly.
26182 2001-12-15 Richard M. Stallman <rms@gnu.org>
26184 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
26186 2001-12-14 Andrew Innes <andrewi@gnu.org>
26188 * makefile.w32-in (EMACSLOADPATH): Define.
26189 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
26190 (bootstrap-temacs): Remove dependency on bootstrap-clean.
26192 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
26194 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
26195 parameter have a numeric value all the time.
26197 * w32fns.c (x_report_frame_params): Likewise.
26199 2001-12-12 Richard M. Stallman <rms@gnu.org>
26201 * fileio.c (Fwrite_region): Doc fix.
26203 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
26204 (redisplay_internal): Call clear_image_cache only for window terminals.
26206 2001-12-12 Gerd Moellmann <gerd@gnu.org>
26208 * xdisp.c (move_it_vertically_backward): Change heuristic
26209 for the case that we didn't move far enough initially.
26211 * window.c (Frecenter): Simplify computation in the case of window
26212 system frames and ARG < 0; use window_box_height.
26214 2001-12-11 Richard M. Stallman <rms@gnu.org>
26216 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
26217 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
26219 2001-12-11 Andrew Innes <andrewi@gnu.org>
26221 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
26224 2001-12-11 Richard M. Stallman <rms@gnu.org>
26226 * m/hp800.h: Split the __hpux conditional into the parts
26227 that are right for GNU/Linux too and the parts that are not.
26228 Use the former if GNU_LINUX.
26229 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
26231 * s/gnu-linux.h (GNU_LINUX): Defined.
26233 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26235 * macros.c, msdos.c, w16select.c: Change doc-string comments to
26236 `new style' [w/`doc:' keyword].
26238 2001-12-10 Jason Rumney <jasonr@gnu.org>
26240 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
26243 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26245 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
26248 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
26250 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
26252 * s/hpux10.h (srand48): Don't undefine.
26254 2001-12-09 Jason Rumney <jasonr@gnu.org>
26256 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
26257 Add comment to explain where the struct came from.
26258 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
26259 (add_menu_item): Process pop-up menus first to avoid memory leak.
26260 (add_menu_item, w32_menu_display_help): Use `help' field as
26262 (w32_free_submenu_strings): Only free owner-drawn strings.
26264 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26266 * COPYING: Moved back.
26268 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
26269 Add parentheses around && within ||.
26271 * indent.c (compute_motion): Likewise.
26273 * intervals.c (merge_properties_sticky): Likewise.
26275 * coding.c (setup_coding_system, shrink_encoding_region)
26276 (Fdecode_sjis_char): Likewise.
26278 2001-12-07 Andreas Schwab <schwab@suse.de>
26280 * xdisp.c (display_mode_element): Don't read past end of string if
26283 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
26286 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
26287 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
26288 type changed to Lisp_Object.
26289 (syms_of_data): DEFVAR_LISP them.
26291 2001-12-07 Richard M. Stallman <rms@gnu.org>
26293 * callproc.c (init_callproc): Set Vdata_directory based on the source
26294 location whenever Emacs was run uninstalled.
26296 2001-12-06 Paul Eggert <eggert@twinsun.com>
26298 * config.in (HAVE_WORKING_VFORK): New #undefs.
26299 * process.c (create_process):
26300 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
26301 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
26302 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
26303 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
26304 * m/intel386.h (HAVE_VFORK): Likewise.
26305 * m/mips-siemens.h (HAVE_VFORK): Likewise.
26306 * m/mips.h (HAVE_VFORK): Likewise.
26307 * s/freebsd.h (vfork): Remove #define.
26308 * s/lynxos.h (HAVE_VFORK): Remove #undef.
26309 * s/usg5-4-2.h: Fix comment about vfork.
26311 2001-12-06 Richard M. Stallman <rms@gnu.org>
26313 * s/hpux10.h (random): Add undef.
26314 (HAVE_RANDOM): Define it just once.
26316 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
26318 * eval.c: Undo last change: the standard syntax is not wanted.
26320 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
26322 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
26323 scroll bars of the frame before deleting the frame itself. If the
26324 frame has a widget, delete the frame with XtDestroyWidget, and do
26325 not call XDestroyWindow before that.
26327 2001-12-06 Kim F. Storm <storm@cua.dk>
26329 * xfns.c (x_report_frame_params): Return actual fringe widths.
26331 * w32fns.c (x_report_frame_params): Return actual fringe widths.
26333 2001-12-05 Andrew Innes <andrewi@gnu.org>
26335 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
26338 * insdel.c (make_gap_larger): New function.
26339 (make_gap_smaller): New function.
26340 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
26341 Call make_gap_smaller if arg is negative.
26343 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
26345 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
26346 Pass a dummy argument when calling interrupt_signal.
26347 (parse_menu_item): Mark disabled items before checking for empty def.
26348 (read_char_minibuf_menu_prompt): Make safety more visible.
26349 (read_key_sequence): Add a `first_unbound' variable.
26350 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
26351 unbound prefix as soon as we can detect it.
26353 * doc.c (Fsnarf_documentation): Add prototype.
26354 (get_doc_string): Handle negative arguments.
26355 (Fdocumentation): Use AREF and ASIZE.
26356 Move the calls to get_doc_string to a single place.
26357 Don't confuse an interactive-spec for a docstring reference.
26358 (Fdocumentation_property): Take advantage of the fact that
26359 get_doc_string now ignores the sign of the docstring position.
26361 * eval.c: Use standard syntax for usage in docstrings.
26363 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26365 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
26367 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26369 * xterm.c (x_draw_image_relief): Use predefined macro instead of
26370 constant when the value of `tool_bar_button_relief' is negative.
26372 2001-12-02 Richard M. Stallman <rms@gnu.org>
26374 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
26375 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
26377 * fileio.c (read_non_regular): Delete Fsignal call.
26379 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
26381 * lisp.h (run_hook_list_with_args): Undo last change.
26383 2001-12-01 Gerd Moellmann <gerd@gnu.org>
26385 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
26387 2001-12-01 Jason Rumney <jasonr@gnu.org>
26389 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
26391 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
26392 [!WM_MOUSELEAVE]: Define.
26394 * w32menu.c (current_popup_menu, get_menu_item_info):
26395 (set_menu_item_info): New vars.
26396 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
26397 (w32_menu_show): Set current_popup_menu.
26398 (add_menu_item): Allocate new strings for owner-drawn menu items
26400 Use owner-draw for disabled menu items again.
26401 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
26402 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
26404 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
26405 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
26406 <WM_EXITMENULOOP>: Free menu strings.
26407 <WM_MOUSELEAVE>: Stop tracking mouse.
26408 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
26410 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
26413 2001-12-01 Kim F. Storm <storm@cua.dk>
26415 The following changes add left-fringe and right-fringe
26416 frame parameters to adjust fringe widths, or remove one or
26419 * frame.h (struct frame): Remove trunc_area_pixel_width and
26420 trunc_area_cols fields.
26421 (Qleft_fringe, Qright_fringe): Declare.
26422 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
26424 * frame.c (Qleft_fringe, Qright_fringe): New vars.
26425 (syms_of_frame): Initialize them.
26427 * window.c (coordinates_in_window): Handle separate left and right
26430 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
26431 and fringe_cols fields.
26432 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
26433 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
26434 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
26435 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
26436 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
26437 (x_compute_fringe_widths): Add prototype.
26439 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
26440 fill fringe evenly with small dashes.
26441 (x_draw_fringe_bitmap): Clear background if necessary. Align and
26442 clip the new ZV bitmap to avoid jitter between rows.
26443 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
26444 background. Don't draw fringe bitmaps if fringe width is zero.
26445 (x_compute_fringe_widths): New function.
26446 (x_new_font, x_set_window_size_1): Use it.
26448 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
26449 (x_set_frame_parameters): Process `font' parameter before other
26450 parameters as fringe widths depend on it.
26451 (x_set_fringe_width): New function.
26452 (x_figure_window_size): Use x_compute_fringe_widths.
26453 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
26456 * widget.c (set_frame_size): Use x_compute_fringe_widths.
26457 (EmacsFrameSetCharSize): Ditto.
26459 * w32term.h: Merged changes from xterm.h.
26460 * w32term.c: Merged changes from xterm.c.
26461 * w32fns.c: Merged changes from xfns.c.
26463 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26465 * COPYING: Removed.
26467 2001-11-29 Dave Love <fx@gnu.org>
26469 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
26471 (detect_coding_mask): Fix call of detect_coding_iso2022.
26473 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26475 * fileio.c (file-name-coding-system)
26476 (default-file-name-coding-system): Doc fix (links to referenced
26479 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
26481 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
26482 Add dummy uses of gcproN variables.
26484 * category.c (describe_category, describe_category_1)
26485 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
26486 (syms_of_category): Don't defsubr Sdescribe_categories.
26488 2001-11-28 Richard M. Stallman <rms@gnu.org>
26490 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
26492 * Makefile.in (lispdir): New variable, referring to build dir.
26493 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
26495 2001-11-28 Andrew Innes <andrewi@gnu.org>
26497 * w32menu.c (w32_menu_display_help): Actually add the new argument
26500 2001-11-28 Jason Rumney <jasonr@gnu.org>
26502 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
26503 menu items. From David Ponce <dponce@wanadoo.fr>.
26504 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
26506 (w32_menu_display_help): New argument OWNER. Rewritten to store a
26507 help event in the owner frame's keyboard buffer.
26509 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
26510 (Fx_show_tip): Don't subtract last width from row width.
26512 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
26513 (w32_read_socket): Use EQ to compare frames.
26515 2001-11-28 Gerd Moellmann <gerd@gnu.org>
26517 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26520 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26522 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
26523 `gcpro3' and `gcpro4'.
26525 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
26527 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
26529 * ccl.c: Use AREF and ASIZE.
26531 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
26533 * lisp.h (run_hook_list_with_args): Remove.
26534 (LIST_END_P): Fix call to wrong_type_argument.
26535 (make_fixnum_or_float): Use EMACS_INT rather than int.
26537 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
26539 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
26540 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
26542 * eval.c: Use AREF and ASIZE.
26543 (Ffetch_bytecode): Add the file name to the error message.
26545 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
26546 which match the end of the file-name.
26547 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
26548 is not a valid env var, but leave it as is instead.
26550 * keymap.c (access_keymap): Handle t bindings like nil bindings.
26551 Make nil bindings in char-tables transparent.
26552 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
26554 2001-11-26 Richard M. Stallman <rms@gnu.org>
26556 * textprop.c (set_text_properties_1): Allow START, END in either order.
26557 Do nothing if range is empty.
26559 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
26561 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
26564 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
26566 * textprop.c (set_text_properties_1): Clearly mark that the
26567 interval should not be empty.
26569 * intervals.c (graft_intervals_into_buffer):
26570 Don't call set_text_properties_1 on an empty interval.
26572 2001-11-25 Richard M. Stallman <rms@gnu.org>
26574 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
26576 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
26577 don't lose the data in it.
26579 2001-11-25 Juanma Barranquero <lektu@terra.es>
26581 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
26583 * buffer.c (Fkill_buffer): Likewise.
26585 * print.c (temp_output_buffer_setup): Likewise.
26587 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
26589 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
26591 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
26593 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
26594 Niemitalo <kon@iki.fi>.
26596 2001-11-25 Jason Rumney <jasonr@gnu.org>
26598 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
26600 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
26601 (Fx_show_tip): Block input during frame creation.
26602 (Fx_show_tip, Fx_hide_tip): Enable.
26604 2001-11-24 Richard M. Stallman <rms@gnu.org>
26606 * lread.c (Fload): Detect recursive load error for more than 3
26607 nestings of the same file.
26608 (Vrecursive_load_depth_limit): Variable deleted.
26609 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
26611 2001-11-24 Jason Rumney <jasonr@gnu.org>
26613 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
26614 mouse position if either left or top is not specified.
26616 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
26617 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
26618 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
26619 (my_create_tip_window): Assign tip_window.
26620 (x_create_tip_frame): Use same defaults as X.
26621 (compute_tip_xy): Remove unused variable. Use full screen width.
26622 (Fx_show_tip): Do not double height. Call ShowWindow directly.
26624 * w32term.c (x_after_update_window_line): Doc fix.
26625 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
26627 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
26629 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
26630 for all Windowed systems.
26632 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
26634 * msdos.c (IT_clear_screen): If the frame's faces are not yet
26635 realized, use the initial screen colors to clear the screen.
26637 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26639 * textprop.c (Fset_text_properties): Remove unused variables
26640 `unchanged', `prev_changed', `s' and `len'.
26642 * search.c (Freplace_match): Remove unused variable `inslen'.
26644 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
26646 2001-11-22 Jason Rumney <jasonr@gnu.org>
26648 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
26649 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
26650 (my_create_tip_window): New function.
26651 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
26652 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
26654 2001-11-20 Jason Rumney <jasonr@gnu.org>
26656 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
26657 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
26659 * w32fns.c (Vw32_system_coding_system): Remove.
26660 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
26662 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
26664 * fileio.c (Fwrite_region): Move choose_write_coding_system to
26665 after build_annotations.
26667 * syntax.c (describe_syntax): Add dummy arg.
26668 (describe_syntax_1): Update call to describe_vector.
26670 * category.c (describe_category): Add dummy arg.
26671 (describe_category_1): Update call to describe_vector.
26673 * keymap.c (Fdescribe_vector): Add `describer' parameter.
26674 (describe_command, describe_translation): Add dummy second param.
26675 (describe_map): Call elt_describer with two arguments.
26676 (describe_vector_princ): Add `fun' parameter.
26677 Call it instead of the hardcoded `princ'.
26678 (describe_vector): Add arg `args'.
26679 Pass it as a new second argument to elt_describer.
26681 * keymap.h (describe_vector): Update prototype.
26683 * frame.c: Don't include keymap.h any more.
26684 (keys_of_frame): Remove.
26686 * lisp.h (keys_of_frame): Remove declaration.
26688 * emacs.c (main): Don't call `keys_of_frame' any more.
26690 2001-11-14 Andreas Schwab <schwab@suse.de>
26692 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
26693 if defined, 0 otherwise.
26694 (MAP_FAILED): Define if not defined and use it to test mmap failure.
26695 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
26697 2001-11-19 Richard M. Stallman <rms@gnu.org>
26699 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
26701 2001-11-18 Jason Rumney <jasonr@gnu.org>
26703 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
26704 (x_draw_bar_cursor): If the background color of the glyph under
26705 the cursor equals the frame's cursor color, use the glyph's
26706 foreground color for drawing the bar cursor.
26707 (x_after_update_window_line): Clear internal border in different
26709 (w32_set_vertical_scroll_bar): Check for width and height > 0.
26710 (w32_draw_relief_rect): Correct relief by 1 pixel.
26711 (x_set_glyph_string_background_width):
26712 Set extends_to_end_of_line_p if the row's fill_line_p is set and
26713 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
26714 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
26715 if cursor_in_non_selected_windows is false.
26716 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
26717 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
26718 Notice if cursor gets overwritten.
26719 (notice_overwritten_cursor): Renamed from
26720 note_overwritten_text_cursor. Rewritten to take glyph widths
26721 into account, and to take X positions as parameters.
26722 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26723 around call to x_draw_glyphs.
26724 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26725 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26726 color to use for image glyph reliefs.
26727 (x_draw_image_relief): Accept zero tool_bar_button_relief.
26728 (glyph_rect): Remove unused variable `area'.
26730 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
26732 (x_set_internal_border_width): Set frame garbaged when window
26734 (Fx_create_frame): Accept zero tool_bar_button_relief.
26735 (x_clear_image_1, four_corners_best, image_background)
26736 (image_background_transparent): New functions.
26737 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
26738 (gs_format): Add `:background' entry.
26739 (lookup_image): Set IMG's background color if specified.
26740 (pbm_load, xbm_load_image, png_load): Set IMG's background field
26742 (x_clear_image_1): Reset `background_valid' and
26743 `background_transparent_valid' fields.
26744 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26745 calculating it here. Set IMG's background_transparent field.
26746 (enum xpm_keyword_index): Add XPM_BACKGROUND.
26747 (enum png_keyword_index): Add PNG_BACKGROUND.
26748 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26749 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26750 (enum gif_keyword_index): Add GIF_BACKGROUND.
26751 (enum gs_keyword_index): Add GS_BACKGROUND.
26752 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
26753 Pre-calculate image background color where necessary.
26754 (x_create_x_image_and_pixmap, xbm_load, gs_load):
26755 Use display info's n_cbits entry for screen depth.
26756 (Fx_show_tip): Remove unused variables `buffer', `top',
26757 `left', `max_width' and `max_height'.
26759 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
26761 2001-11-18 Gerd Moellmann <gerd@gnu.org>
26763 * puresize.h (BASE_PURESIZE): Increase to 750000.
26765 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26767 * frame.c (Fframe_live_p): Doc fix.
26769 2001-11-18 Richard M. Stallman <rms@gnu.org>
26771 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
26772 (message_dolog_marker3): New static variables hold three markers.
26773 (syms_of_xdisp): Initialize and staticpro them.
26774 (message_dolog): Use message_dolog_marker1..3 instead of
26775 allocating markers each time. Unchain them when done.
26777 2001-11-17 Richard M. Stallman <rms@gnu.org>
26779 * doc.c (Fsnarf_documentation): Doc fix.
26781 2001-11-17 Andreas Schwab <schwab@suse.de>
26783 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
26785 2001-11-17 Richard M. Stallman <rms@gnu.org>
26787 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
26789 2001-11-17 Jason Rumney <jasonr@gnu.org>
26791 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
26793 2001-11-17 Gerd Moellmann <gerd@gnu.org>
26795 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
26796 with invalid position.
26798 2001-11-16 Richard M. Stallman <rms@gnu.org>
26800 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
26802 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
26803 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
26804 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
26806 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
26808 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
26810 * fileio.c (build_annotations): Split off the tail.
26811 (build_annotations_2): New fun. Extracted from build_annotations.
26812 (Fwrite_region): Split the call to build_annotations into two
26813 calls to build_annotations and build_annotations_2.
26815 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26817 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
26818 clear_waiting_for_input with argument.
26820 * xterm.h (x_update_cursor): Remove duplicated prototype.
26822 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
26824 * xterm.c (waiting_for_input): Remove unnecessary declaration.
26826 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
26828 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
26830 * fileio.c (choose_write_coding_system): New fun, extracted
26831 from Fwrite_region.
26832 (Fwrite_region): Use it.
26834 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
26835 (funcall_lambda, run_hook_with_args): Make static and add prototype.
26836 (ml_apply, find_handler_clause): Add prototype.
26838 2001-11-16 Eli Zaretskii <eliz@gnu.org>
26840 * config.in: Add #undef HAVE_COFF_H.
26842 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
26843 Required for ISC 4.1.
26845 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
26847 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
26848 Andrew Wiseman <a.wiseman@btclick.com>.
26850 2001-11-16 Kim F. Storm <storm@cua.dk>
26852 The following changes are made to clean up the various internal
26853 references to the fringes to actually use the term `fringe' for
26854 them. Previously, they were called `flags areas', `bitmap areas',
26855 `left/right side of windows', or implicitly as `flags' or
26858 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
26859 Comments fixed. Use renamed symbols.
26861 * dispnew.c: Comment fix. Use renamed symbols.
26863 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
26864 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
26865 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
26867 * msdos.c: Comment fix.
26869 * w32fns.c: Use renamed symbols.
26871 * w32term.c: Comment fixes. Use renamed symbols.
26872 (fringe_bitmap_type): Renamed from bitmap_type.
26873 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26874 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
26875 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
26877 * w32term.h: Comment fixes. Use renamed symbols.
26878 (fringes_extra): Renamed from flags_areas_extra.
26879 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26880 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26881 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26882 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26883 (FRAME_X_LEFT_FRINGE_WIDTH):
26884 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26885 (FRAME_X_RIGHT_FRINGE_WIDTH):
26886 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26888 * widget.c: Use renamed symbols.
26890 * window.c: Comment fixes. Use renamed symbols.
26891 (coordinates-in-window-p): Doc fix.
26893 * xdisp.c: Comment fixes. Use renamed symbols.
26895 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
26897 * xfns.c: Use renamed symbols.
26899 * xterm.c: Comment fixes. Use renamed symbols.
26900 (fringe_bitmap_type): Renamed from bitmap_type.
26901 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26902 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
26903 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
26905 * xterm.h: Comment fixes. Use renamed symbols.
26906 (fringes_extra): Renamed from flags_areas_extra.
26907 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26908 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26909 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26910 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26911 (FRAME_X_LEFT_FRINGE_WIDTH):
26912 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26913 (FRAME_X_RIGHT_FRINGE_WIDTH):
26914 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26916 2001-11-15 Jason Rumney <jasonr@gnu.org>
26918 * w32menu.c (add-menu-item): Make help_echo and radio buttons
26919 work for most menu items. From David Ponce
26920 <david.ponce@wanadoo.fr>.
26922 2001-11-15 Gerd Moellmann <gerd@gnu.org>
26924 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
26925 Some x_set_* function expect to be called even if old and new
26928 * xdisp.c (build_desired_tool_bar_string): Accept zero
26929 tool_bar_button_relief.
26931 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
26933 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
26935 * xterm.c (x_draw_bar_cursor): If the background color of the
26936 glyph under the cursor equals the frame's cursor color, use
26937 the glyph's foreground color for drawing the bar cursor.
26939 * dispnew.c (direct_output_forward_char): Fix character/byte
26940 position comparison.
26942 2001-11-15 Miles Bader <miles@gnu.org>
26944 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
26945 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
26946 Update arguments to find_field.
26947 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
26948 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
26949 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
26950 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
26952 2001-11-14 Richard M. Stallman <rms@gnu.org>
26954 * editfns.c (Fpropertize): Allow call with 1 arg.
26956 * dispextern.h (image_background, image_background_transparent):
26957 Conditionalize on HAVE_X_WINDOWS.
26959 2001-11-13 Richard M. Stallman <rms@gnu.org>
26961 * print.c (Fprin1_to_string): Doc fix.
26963 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
26965 * floatfns.c (Fceiling, Ffloor): Doc fixes.
26967 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
26969 * fileio.c (Ffile_accessible_directory_p): Doc fix.
26971 * eval.c (syms_of_eval): Doc fix.
26973 * coding.c (syms_of_coding): Doc fix.
26975 * doc.c (Fsnarf_documentation): Doc fix.
26977 * dispnew.c (syms_of_display): Doc fix.
26979 * category.c (Fget_unused_category): Doc fix.
26981 * buffer.c (syms_of_buffer): Doc fixes.
26983 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
26985 * print.c (prin1, print): Doc fix.
26987 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26989 * fontset.h: Remove declarations of variables
26990 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
26992 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
26993 `Vclip_large_size_font'.
26995 2001-11-13 Jason Rumney <jasonr@gnu.org>
26997 * w32fns.c: Doc fix.
26999 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27001 * xfaces.c (Fface_attributes_as_vector): Doc fix.
27005 * emacs.c: Doc fix.
27007 * coding.c: Doc fix.
27009 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
27010 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
27011 `new style' [w/`doc:' keyword].
27013 2001-11-12 Richard M. Stallman <rms@gnu.org>
27015 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
27016 LeaveNotify events. Only FocusIn and FocusOut do that now.
27017 (x_display_and_set_cursor): Do display hollow cursors in active
27018 minibuffer windows when they are not selected.
27020 2001-11-12 Jason Rumney <jasonr@gnu.org>
27022 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
27023 * w32term.c: Change doc-string comments to `new style'
27024 [w/`doc:' keyword]. Doc fixes.
27026 * w32fns.c: Don't define max.
27027 (Fx_open_connection): Only execute once.
27029 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27031 * ccl.c: Change macros to use do-while block instead of if-else.
27032 Use braces to follow GNU Coding Standards.
27034 2001-11-11 Richard M. Stallman <rms@gnu.org>
27036 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
27038 * lread.c (read_escape): Use end_of_file_error for reporting eof.
27040 * insdel.c (replace_range): Use adjust_markers_for_replace
27041 instead of adjust_markers_for_delete and adjust_markers_for_insert.
27043 * intervals.h (set_text_properties, set_text_properties_1): Declare.
27045 * textprop.c (set_text_properties_1): New subroutine
27046 broken out of set_text_properties.
27047 (set_text_properties): Use set_text_properties_1.
27049 * intervals.c (graft_intervals_into_buffer):
27050 Use set_text_properties_1 to clear out properties.
27052 * search.c (Freplace_match): Use replace_range to insert
27053 and delete. Don't request property inheritance from
27056 2001-11-10 Jason Rumney <jasonr@gnu.org>
27058 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
27059 vertical fonts. Allow them if face name is explicitly specified.
27060 Do not give up if we find a font that cannot be converted to an xlfd.
27062 2001-11-10 Gerd Moellmann <gerd@gnu.org>
27064 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
27065 instead of malloc/free.
27067 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27069 * xfaces.c (merge_face_vectors): Use braces to follow GNU
27071 (Finternal_set_lisp_face_attribute): Likewise.
27073 * buffer.c (Fbury_buffer): Likewise.
27075 * indent.c (current_column_1): Remove unused variable `prev_col'.
27077 * coding.c (encode_coding): Use precomputed value of `src'.
27078 (encode_coding): Remove unused variable `src_end'.
27079 (code_convert_region): Remove unused variables `count'.
27081 2001-11-07 Jason Rumney <jasonr@gnu.org>
27083 * w32term.c (x_display_and_set_cursor): Do not move system caret
27084 if cursor_glyph is NULL.
27086 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27088 * keymap.c (access_keymap): Fix compilation error.
27090 2001-11-07 Miles Bader <miles@gnu.org>
27092 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
27094 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27096 * intervals.c (graft_intervals_into_buffer):
27097 Remove #ifdef'd-out code.
27098 (graft_intervals_into_buffer): Remove unused variable `middle'.
27100 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
27101 code (eval-current-buffer).
27102 Change doc-string comments to `new style' [w/`doc:' keyword].
27104 2001-11-06 Richard M. Stallman <rms@gnu.org>
27106 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
27108 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
27110 * lread.c (read1): Fix behavior with nested backquoting.
27112 * keyboard.c (make_lispy_event): Check integerness and fix
27113 Lisp_Object/int mixup.
27115 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27117 * fns.c (copy_hash_table): Remove unused variable `v'.
27119 * fontset.c (fontset_font_pattern): Remove unused variable
27122 * indent.c (current_column_1): Remove unused variable `prev_col'.
27124 2001-11-05 Richard M. Stallman <rms@gnu.org>
27126 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
27128 * buffer.c (Fkill_buffer): Don't delete auto save file
27129 if buffer is modified.
27131 2001-11-05 Andrew Innes <andrewi@gnu.org>
27133 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
27136 2001-11-05 Richard M. Stallman <rms@gnu.org>
27138 * unexelf.c (unexec): Minor changes; clean up comments.
27140 2001-11-05 Sam Steingold <sds@gnu.org>
27142 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
27144 2001-11-05 Andreas Schwab <schwab@suse.de>
27146 * sound.c (sound_perror): Save errno from being clobbered.
27148 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
27150 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
27151 the program image directly.
27153 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27155 * buffer.h (Fbuffer_local_value): Add prototype.
27157 2001-11-04 Richard M. Stallman <rms@gnu.org>
27159 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
27162 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
27163 (record_char): Likewise.
27165 * keyboard.c (make_lispy_event): Don't insist a drag event must
27166 move to a different buffer position. Instead, check for moving at
27167 least double_click_fuzz.
27169 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
27171 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
27173 * indent.c (current_column_1, Fmove_to_column): Separate the code
27174 for display-table glyphs from the code for buffer text, to fix
27175 bugs in the former.
27177 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
27179 * buffer.c (Fbuffer_local_value): New function.
27180 (syms_of_buffer): Defsubr it.
27182 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
27183 value of `cursor-in-non-selected-windows'.
27185 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
27186 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
27187 (syms_of_xdisp): Initialize it.
27189 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27191 * xfns.c (Fx_create_frame): Doc fix.
27193 * coding.c: Change doc-string comments to `new style' [w/`doc:'
27196 * eval.c (top_level_value, top_level_set): Remove commented and
27198 (Fdefvar): Fix usage in doc-string.
27200 2001-11-03 Richard M. Stallman <rms@gnu.org>
27202 * xfns.c: Include unistd.h, if it exists.
27204 * editfns.c: Move the include of ctype.h after unistd.h.
27206 * gmalloc.c: Test BROKEN_PROTOTYPES.
27208 2001-11-03 Ken Raeburn <raeburn@gnu.org>
27210 * lisp.h (CHECK_STRING_CAR): New macro.
27211 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
27212 treating XCAR and XCDR as lvalues.
27213 (openp): Use CHECK_STRING_CAR.
27214 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
27216 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
27218 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
27219 (SIGMASKTYPE): Define.
27221 * syssignal.h (sigunblock): Don't define if already defined.
27223 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27225 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
27226 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
27227 Fix typos in comments.
27229 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
27230 and #ifdef'd-out code.
27231 Fix and reindent comments.
27233 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
27235 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
27236 argument `i' in macros.
27238 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
27241 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
27242 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
27243 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
27244 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
27245 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
27246 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
27247 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
27248 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
27251 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
27252 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
27253 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
27254 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
27255 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
27256 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
27257 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
27258 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
27259 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
27260 (remove unused second argument).
27262 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
27264 * syntax.c (describe_syntax): New wrapper.
27265 (Finternal_describe_syntax_value): Rename from describe_syntax.
27266 Don't insert space at front and \n at the end.
27267 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
27269 * regex.c (re_wctype): Try to fix some warnings.
27270 (regcomp, regexec): Don't forget the __restrict.
27272 2001-11-02 Richard M. Stallman <rms@gnu.org>
27274 * textprop.c (Fget_char_property): Doc fix.
27276 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27278 * process.c (Fstart_process): Add usage to doc-string.
27280 * data.c (Fsetq_default): Ditto.
27282 * callint.c (Finteractive): Ditto.
27284 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
27286 * macros.c: Don't include keymap.h any more.
27288 2001-11-01 Richard M. Stallman <rms@gnu.org>
27290 * data.c (Fmake_local_variable): Doc fix.
27292 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
27293 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
27295 * keymap.c (Fdescribe_buffer_bindings): Print character property
27296 bindings along with or instead of the buffer local map.
27297 Make the overriding maps override what they should.
27299 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27301 * window.c (grow_mini_window): Fix typo in comment.
27303 2001-11-01 Gerd Moellmann <gerd@gnu.org>
27305 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
27306 (XTset_vertical_scroll_bar): Likewise.
27308 * xfns.c (x_build_heuristic_mask): Use four_corners_best
27309 instead of IMAGE_BACKGROUND.
27311 * xfns.c (four_corners_best): Reindent.
27313 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27314 Handle :box so that it is possible to specify sexprs.
27316 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
27318 * s/hpux11.h: New file.
27320 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27322 * emacs.c (USAGE1): Show command line option --no-window-system
27323 instead of --no-windows in usage.
27324 (standard_args): Rename --no-windows to --no-window-system.
27325 (bug_reporting_address): Follow Emacs coding conventions.
27327 * eval.c (Fcommandp): Doc fix.
27328 Change doc-string comments to `new style' [w/`doc:' keyword].
27330 * frame.c (Fframe_live_p): Doc fix.
27332 * buffer.c (selective-display-ellipses): Doc fix.
27334 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27336 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
27338 * xfaces.c (realize_x_face): If C is not a single-byte character,
27339 set the face's colors_copied_bitwise_p instead of the defaulted_p
27340 members which have a different meaning.
27341 (free_face_colors): Do nothing for a face whose colors have been
27344 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
27346 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27348 * marker.c, mocklisp.c: Change doc-string comments to `new style'
27349 [w/`doc:' keyword].
27351 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27353 * fns.c (require_unwind): Return Lisp_Object.
27355 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27357 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
27358 (last-input-char): Revert doc-string to be the same as the
27359 doc-string of `last-input-event'.
27361 * xdisp.c: Fix typos in comments.
27363 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27365 * window.c (grow_mini_window): Handle case that the root
27366 window is already smaller than the nominal mininum height.
27368 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
27370 * emacs.c (main): Don't call keys_of_macros any more.
27372 * lisp.h (keys_of_macros): Remove.
27374 * macros.c (keys_of_macros): Remove.
27376 * xfaces.c (Fface_attribute_relative_p): Declare args.
27378 2001-10-30 Jason Rumney <jasonr@gnu.org>
27380 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
27381 (enum_font_cb2): Ignore fonts with vertical orientation.
27383 2001-10-30 Richard M. Stallman <rms@gnu.org>
27385 * keyboard.c (Finput_pending_p): Doc fix.
27387 2001-10-30 Gerd Moellmann <gerd@gnu.org>
27389 * xterm.c (x_after_update_window_line): Don't run the code
27390 clearing in borders for rows whose visible height is 0.
27392 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
27393 resized_p flag is set. If not set, use the much less flickering
27394 method previously used.
27396 * dispnew.c (change_frame_size_1): Set frame's resized_p.
27398 * frame.h (struct frame) <resized_p>: New member.
27400 * lread.c (to_multibyte): Ensure read_buffer is at least twice
27401 as large as the number of bytes to convert.
27403 * lread.c (to_multibyte): New function.
27406 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
27408 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
27410 2001-10-30 Gerd Moellmann <gerd@gnu.org>
27412 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
27413 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
27414 if the row's fill_line_p is set and drawing the last glyph with
27415 DRAW_IMAGE_{RAISED,SUNKEN}.
27417 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
27419 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
27421 * xmenu.c: Include coding.h and charset.h.
27422 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
27423 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
27424 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
27425 Explicitly set wv->help. Use `TRUE' rather than `True'.
27426 (menu_help_callback): Use empty_string.
27428 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
27429 (Fx_popup_dialog): Explicitly init f.
27430 (w32_menu_display_help): Use empty_string.
27432 2001-10-29 Richard M. Stallman <rms@gnu.org>
27434 * fns.c (Frequire): Detect recursive try to require the same
27435 feature 3 or more levels deep, and get error.
27436 (require_unwind): New subroutine.
27437 (require_nesting_list): New variable.
27438 (syms_of_fns): Init and staticpro it.
27440 * print.c (print_object): Clarify indication of insertion type.
27442 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
27444 * coding.c (syms_of_coding): Document that locale-coding-system is
27445 used for decoding input on X.
27447 * window.c (Fscroll_left, Fscroll_right): Doc fix.
27449 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27451 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
27452 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
27454 2001-10-29 Gerd Moellmann <gerd@gnu.org>
27456 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
27457 use NO_CURSOR if cursor_in_non_selected_windows is false.
27459 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
27460 the slant attribute if FRAME is t.
27462 * xfns.c (x_set_internal_border_width): Set frame garbaged
27463 when X window doesn't exist yet.
27465 * xterm.c (x_after_update_window_line): Clear internal border
27466 in different circumstances.
27468 * xterm.c (XTread_socket) <KeyPress>: Don't use
27469 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
27472 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
27474 * m/ibms390.h: New file. From Adam Thornton
27475 <athornton@sinenomine.net>.
27477 2001-10-28 Gerd Moellmann <gerd@gnu.org>
27479 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
27481 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
27484 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27486 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
27488 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
27490 Fix typos in comments.
27492 * emacs.c (bug_reporting_address): New function.
27493 Use it when displaying usage message.
27495 * minibuf.c (read_minibuf): Remove unused external declaration of
27496 variable `Qread_only'.
27498 * keymap.c (access_keymap): Remove unused variable `charset'.
27500 2001-10-28 Miles Bader <miles@gnu.org>
27502 * xfaces.c (merge_face_heights): Handle TO being relative as well.
27503 Remove #ifdef'd-out code.
27504 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
27505 (syms_of_xfaces): Initialize them.
27507 2001-10-27 Jason Rumney <jasonr@gnu.org>
27509 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
27510 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
27511 position using the system caret.
27513 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
27514 (w32_system_caret_height, w32_system_caret_x)
27515 (w32_system_caret_y): New variables for tracking system caret.
27516 (w32_initialize): Initialize them.
27517 (x_display_and_set_cursor): Make system caret follow the active cursor.
27519 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
27520 New messages types.
27522 * w32term.c (note_mouse_highlight): Clear old help_echo.
27524 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27526 * xterm.c: Fix typo in a comment.
27528 * emacs.c: Fix typos in comments.
27529 Remove unnecessary spaces.
27530 Change doc-string comments to `new style' [w/`doc:' keyword].
27531 (USAGE2): Fix typos in usage string.
27533 * xterm.c: Fix typo in a comment.
27535 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
27538 2001-10-27 Gerd Moellmann <gerd@gnu.org>
27540 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
27541 instead of 1/2 line_height in the heuristic for skipping
27542 farther backward when target_y was not reached.
27544 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
27545 Display errno only if non-zero.
27546 (sound_warning): New function.
27547 (vox_configure): Don't treat failing to set sample rate as error.
27548 (various places): Improve error messages.
27550 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
27552 * fileio.c (Faccess_file): Run the argument filename through
27553 Fexpand_file_name, before using it.
27555 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
27556 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
27558 2001-10-26 Gerd Moellmann <gerd@gnu.org>
27560 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
27562 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27563 Fix clearing in the case of scroll bars on the right.
27565 2001-10-26 Juanma Barranquero <lektu@terra.es>
27567 * w32gui.h (XImage): Add a dummy typedef.
27569 2001-10-26 Gerd Moellmann <gerd@gnu.org>
27571 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
27573 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
27575 * frame.c (Fframe_parameter): Fix last change.
27577 * fileio.c: Revert last change (which removed old commented-out
27578 version of expand-file-name). Add a comment that explains why
27579 this old version should not be removed.
27581 2001-10-25 Gerd Moellmann <gerd@gnu.org>
27583 * frame.c (Fframe_parameter): Fix a bug whereby some
27584 ``artificial'' frame parameters, like `minibuffer' were not
27585 obtained by calling Fframe_parameters.
27587 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
27588 cursor differently.
27590 * xdisp.c (move_it_vertically_backward): Compute line height
27591 differently. Add heuristic to try to be more compatible to 20.x.
27593 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
27595 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
27597 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
27600 2001-10-25 Miles Bader <miles@gnu.org>
27602 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
27603 BG is a pointer to a structure, not a structure.
27604 (gif_format, png_format): Add missing commas.
27606 2001-10-24 Richard M. Stallman <rms@gnu.org>
27608 * xfaces.c (Fface_attributes_as_vector): New function.
27609 (syms_of_xfaces): Defsubr it.
27611 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27613 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
27616 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27618 * search.c (scan_newline): Remove unused variable `selective_display'.
27620 2001-10-25 Miles Bader <miles@gnu.org>
27622 * dispextern.h (struct image): Add `background',
27623 `background_valid', and `background_transparent' fields.
27624 (image_background, image_background_transparent): New declarations.
27625 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
27626 * xfns.c (image_background, image_background_transparent)
27627 (four_corners_best): New functions.
27628 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
27629 (gs_format): Add `:background' entry.
27630 (lookup_image): Set IMG's background color if specified.
27631 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27633 (x_clear_image_1): Reset `background_valid' and
27634 `background_transparent_valid' fields.
27635 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27636 calculating it here. Set IMG's background_transparent field.
27637 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27638 (enum png_keyword_index): Add PNG_BACKGROUND.
27639 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27640 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27641 (enum gif_keyword_index): Add GIF_BACKGROUND.
27642 (enum gs_keyword_index): Add GS_BACKGROUND.
27643 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
27644 Pre-calculate image background color where necessary.
27645 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27646 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27647 color to use for image glyph reliefs.
27649 2001-10-24 Gerd Moellmann <gerd@gnu.org>
27651 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
27652 in full-width rows.
27654 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27655 Fix clearing of area not covered by scroll bar.
27657 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27659 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
27661 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
27662 (glyph_rect): Remove unused variable `area'.
27664 2001-10-24 Gerd Moellmann <gerd@gnu.org>
27666 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
27668 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
27669 (row_containing_pos): Take additional argument DY.
27670 Treat rows ending in middle of char differently.
27671 (display_line): Handle tabs on window systems differently.
27673 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
27674 with additional argument.
27676 * dispextern.h (row_containing_pos): Adjust prototype.
27678 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
27679 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
27680 (try_window_id, try_window_reusing_current_matrix)
27681 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
27682 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
27684 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27686 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
27688 (HAVE_BOXES): Fix typo in comment.
27689 (push_menu_pane): Fix typo in comment.
27691 * xdisp.c (display_prop_string_p): Remove unused local declaration
27693 (single_display_prop_string_p): Remove unused local declarations
27694 of `Qwhen' and `Qmargin'.
27695 (string_buffer_position): Remove unused variable `around'.
27696 (store_frame_title): Remove unused variable `width'.
27698 * window.c: Don't define max.
27699 (coordinates_in_window): Remove unused variable `uy'.
27701 * widget.c: Don't define max.
27703 * process.c: Don't define max.
27704 (create_process): Remove unused variable `buffer'.
27706 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27708 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
27710 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
27712 * xfaces.c (Finternal_set_lisp_face_attribute)
27713 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
27714 frame is on a windowed display.
27716 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27718 * dispnew.c (sync_window_with_frame_matrix_rows):
27719 Fix handling of windows which aren't full-width, fix handling
27722 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
27724 2001-10-23 Andreas Schwab <schwab@suse.de>
27726 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
27727 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
27729 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27731 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
27732 REAL_END. Notice if cursor gets overwritten.
27733 (notice_overwritten_cursor): Take X positions as parameters.
27734 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27735 around call to x_draw_glyphs.
27737 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27739 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
27740 instead of C) and usage.
27742 * editfns.c (char-to-string): Fix argument names (use CHAR instead
27745 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
27746 `left', `max_width' and `max_height'.
27748 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27750 * xdisp.c (display_line): For a tab continued to the next line,
27751 set row's ends_in_middle_of_char_p.
27753 2001-10-22 Gerd Moellmann <gerd@gnu.org>
27755 * xdisp.c (display_line): Fix computation of continuation lines
27758 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27760 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
27763 * fileio.c: Remove unused code.
27765 2001-10-22 Miles Bader <miles@gnu.org>
27767 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
27768 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
27769 Remove `DOC_STRINGS_IN_COMMENTS' cases.
27771 2001-10-21 Jason Rumney <jasonr@gnu.org>
27773 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
27775 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
27777 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
27778 (Finsert_string): Avoid the multi-line string literals warning.
27780 2001-10-22 Miles Bader <miles@gnu.org>
27782 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
27783 (Fdocumentation): Don't use it.
27784 (syms_of_doc): Don't initialize it.
27786 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
27787 * print.c (Fwith_output_to_temp_buffer): Likewise.
27788 * window.c (Fsave_window_excursion): Likewise.
27789 * editfns.c (Fsave_excursion, Fsave_current_buffer)
27790 (Fsave_restriction): Likewise.
27791 * eval.c (Frun_hooks, Frun_hook_with_args)
27792 (Frun_hook_with_args_until_failure)
27793 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
27794 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
27795 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
27796 (Funwind_protect, Fcondition_case): Likewise.
27797 * coding.c (Ffind_operation_coding_system): Likewise.
27798 * keyboard.c (Ftrack_mouse): Likewise.
27800 2001-10-21 Miles Bader <miles@gnu.org>
27802 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
27803 (Fmake_hash_table): Add usage: string to doc string.
27804 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
27805 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
27806 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
27807 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
27808 (Fml_prefix_argument_loop): Likewise.
27810 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27812 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
27814 * sysdep.c (init_sys_modes): Change doc-string comments to `new
27815 style' [w/`doc:' keyword].
27817 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
27818 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
27819 comments to `new style' [w/`doc:' keyword].
27821 2001-10-21 Jason Rumney <jasonr@gnu.org>
27823 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
27825 * w32term.c (remember_mouse_glyph): New function.
27826 (w32_mouse_position): Use it.
27827 (note_mouse_movement): If the mouse moved off the glyph, remember
27830 * w32term.h (struct w32_output): Correct spelling of x_compatible.
27831 (w32_display_info): Add mouse_face_overlay.
27833 * w32term.c (notice_overwritten_cursor): Renamed from
27834 note_overwritten_text_cursor. Rewritten to take glyph widths into
27836 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
27837 (fast_find_string_pos): New function.
27838 (fast_find_position): Return the correct vpos. Add parameter
27839 STOP. In the final row, stop before glyphs having STOP as object.
27840 Don't consider glyphs that are not from a buffer.
27841 (fast_find_position) [0]: Add a presumably more correct version
27843 (expose_window_tree, expose_frame): Don't compute intersections here.
27844 (expose_window): Do it here instead.
27845 (expose_window_tree, expose_window, expose_line): Return 1 when
27846 overwriting mouse-face.
27847 (expose_window): If W is the window currently being updated, mark
27848 the frame garbaged.
27849 (expose_frame): If mouse-face was overwritten, redo it.
27850 (x_use_underline_position_properties): New variable.
27851 (syms_of_xterm): DEFVAR_BOOL it.
27852 (x_draw_glyph_string): Add comment to use it in future.
27853 (x_draw_glyph_string): Restore clipping after drawing box.
27854 Fix a computation of the underline position.
27855 (w32_get_glyph_string_clip_rect): Minor cleanup.
27856 (x_fill_stretch_glyph_string): Remove an assertion.
27857 (x_produce_glyphs): Don't convert multibyte characters
27858 to unibyte characters in unibyte buffers.
27859 (cursor_in_mouse_face_p): New function.
27860 (x_draw_stretch_glyph_string): Use it to choose a different GC
27861 when drawing a cursor within highlighted text. Don't draw
27862 background again if it has already been drawn.
27863 (x_draw_glyph_string_box): Don't draw a full-width
27864 box just because the glyph row's full_width_p flag is set.
27865 (x_draw_glyphs): Fix computation of rightmost x for
27867 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
27868 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
27869 change bottom shadow accordingly. Some cleanup.
27870 (x_update_window_end): Handle overwritten mouse face
27871 also for tool bar windows.
27872 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
27873 DRAW is DRAW_IMAGE_RAISED.
27874 (clear_mouse_face): Return 1 if text with mouse face was
27875 actually redrawn. Make the function static.
27876 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
27877 optimize away highlighting if we pass over that same overlay again.
27878 (note_mouse_highlight): Call mouse_face_overlay_overlaps
27879 to detect a case where we have to highlight a different region
27880 despite not having left the currently highlighted region.
27881 Set mouse_face_overlay in the x_display_info. Avoid changing the
27882 mouse pointer shape when show_mouse_face has already done it, or
27883 there is no need. Handle mouse-face and help-echo in strings.
27884 (glyph_rect): New function.
27885 (w32_mouse_position): Use it to raise the threshold for mouse
27886 movement event generation.
27887 (w32_initialize_display_info): Initialize the x_display_info's
27888 mouse_face_overlay.
27889 (w32_set_vertical_scroll_bar): Don't clear a zero height
27891 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
27892 a widget to zero height.
27894 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
27895 Protect unibyte strings created by replacing their multibyte
27896 equivalents in menu_items.
27897 (w32_menu_show): Don't overwrite an item's name with its key
27898 description in case the description is a multibyte string.
27899 (single_submenu): Some cleanup.
27901 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
27902 (postprocess_image): New function.
27903 (lookup_image): Call it for all image types except PostScript.
27904 (x_kill_gs_process): Call postprocess_image.
27905 (tiff_error_handler, tiff_warning_handler): New functions.
27906 (tiff_load): Install them as handlers.
27907 (x_kill_gs_process): Recognize if someone has cleared the image
27909 (valid_image_p): Protect better against invalid image
27910 specifications. Previous code could signal an error.
27911 (Fx_hide_tip, Fshow_tip): Doc fix.
27912 (Fv_max_tooltip_size): New variable.
27913 (syns_of_xfns): DEFVAR_LISP it.
27914 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
27915 window buffer to *tip* right after creating the frame. Set frame's
27916 window_width. Use a maximum tooltip size specified by
27917 Vx_max_tooltip_size, if that has valid contents.
27918 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
27919 Make sure the tooltip is completely visible.
27920 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
27921 (Fx_create_frame): Adjust the frame's height for presence
27922 of the tool bar before calling x_figure_window_size.
27923 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
27924 when the window gets smaller.
27925 (x_set_foreground_color): Set frame's cursor_pixel.
27926 (x_set_foreground_color, x_set_background_color): Cleaned up.
27927 (x_set_font): Handle case of x_new_fontset returning the same name
27928 as before, although there was a change in fontsets.
27930 2001-10-21 Miles Bader <miles@gnu.org>
27932 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
27933 (Flogxor): Add usage: string to doc string.
27934 * charset.c (Fstring): Likewise.
27935 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
27936 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
27938 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
27940 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
27942 * alloc.c: Reindent DEFUNs with doc: keywords.
27944 * abbrev.c (Finsert_abbrev_table_description): Reindent.
27946 * frame.c: Change doc-string comments to `new style' [w/`doc:'
27949 See ChangeLog.9 for earlier changes.
27951 ;; Local Variables:
27952 ;; coding: iso-2022-7bit
27953 ;; add-log-time-zone-rule: t
27956 Copyright (C) 2001, 2002, 2003, 2004, 2005,
27957 2006, 2007 Free Software Foundation, Inc.
27959 This file is part of GNU Emacs.
27961 GNU Emacs is free software; you can redistribute it and/or modify
27962 it under the terms of the GNU General Public License as published by
27963 the Free Software Foundation; either version 2, or (at your option)
27966 GNU Emacs is distributed in the hope that it will be useful,
27967 but WITHOUT ANY WARRANTY; without even the implied warranty of
27968 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27969 GNU General Public License for more details.
27971 You should have received a copy of the GNU General Public License
27972 along with GNU Emacs; see the file COPYING. If not, write to the
27973 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27974 Boston, MA 02110-1301, USA.
27976 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4