1 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
3 * window.c (Fwindow_end): Fix use of >= operator.
5 2007-01-03 Richard Stallman <rms@gnu.org>
7 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
9 2007-01-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
14 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
15 parent of the menu item. Get menu item widget from event.
16 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
17 unhighlight_id has been removed.
18 (create_menus): Connect enter/leave-notify-event to the menu instead
21 2006-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
24 xg_tool_bar_menu_proxy.
25 (xg_tool_bar_menu_proxy): New function.
26 (xg_tool_bar_proxy_callback): New function.
28 2006-12-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
30 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
31 (xg_tool_bar_callback): Remove check for button.
32 (update_frame_tool_bar): Put an event box in the tool bar and a button
33 in the event box. Attach enter/leave-notify-event to the event box.
35 2006-12-30 Richard Stallman <rms@gnu.org>
37 * keymap.c (Fdefine_key): Doc fix.
39 2006-12-29 Kim F. Storm <storm@cua.dk>
41 * frame.h (struct frame): New member minimize_tool_bar_window_p.
43 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
44 (Vauto_resize_tool_bars): ... this.
45 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
46 to describe new value `grow-only', and use of C-l.
47 (display_tool_bar_line): Only use default face for border below
48 toolbar if not grow-only (to get acceptable visual appearence).
49 Explicitly set visible_height for empty toolbar lines.
50 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
51 minimize_tool_bar_window_p flag.
53 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
54 when called without arg to redraw with minimum toolbar height.
57 2006-12-29 Jason Rumney <jasonr@gnu.org>
59 * s/ms-w32.h (tzname): Do not define in msvc8.
60 (utime): Do not define in msvc8.
62 * regex.c (regerror): Change parameter name err_code.
64 2006-12-26 Richard Stallman <rms@gnu.org>
66 * search.c (Fsearch_forward): Doc fix.
68 * callint.c (Finteractive): Doc fix.
70 2006-12-25 Kim F. Storm <storm@cua.dk>
72 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
74 2006-12-23 Eli Zaretskii <eliz@gnu.org>
76 * keyboard.c (some_mouse_moved): Fix last change.
78 2006-12-22 Eli Zaretskii <eliz@gnu.org>
80 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
82 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
84 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
85 * m/sh3el.h: New file.
87 2006-12-22 Eli Zaretskii <eliz@gnu.org>
89 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
91 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
92 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
93 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
94 (clean): Delete stamp_BLD.
96 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]: Call
99 mac_update_proxy_icon also when buffer modification flag changed.
100 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
101 but compare FSRef/FSSpec of resolved alias.
103 2006-12-21 Kim F. Storm <storm@cua.dk>
105 * w32.c (_sys_wait_accept): Fix handle leak.
107 2006-12-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
109 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
112 2006-12-20 Kim F. Storm <storm@cua.dk>
114 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
116 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
118 * keyboard.c (syms_of_keyboard) <double-click-time>:
119 * mac.c (Fmac_code_convert_string):
120 * search.c (Fsearch_forward): Doc fixes.
122 2006-12-19 Kim F. Storm <storm@cua.dk>
124 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
125 a sigusr1 event instead of [signal usr1] sequence, and signal events
126 are now supposed to be handled via special-event-map.
128 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
129 (make_lispy_event): Don't generate Qsignal prefix for code 0.
130 Abort if signal code is unknown.
131 (store_user_signal_events): Don't make Qsignal prefix (code 0).
132 (Qsignal): Move declaration back to process.c.
133 (syms_of_keyboard): Don't intern or staticpro it here.
135 * process.c (Qsignal): Declare here.
136 (syms_of_process): Intern or staticpro it.
138 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
140 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
142 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
144 * buffer.c (syms_of_buffer) <buffer-display-table>
145 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
147 2006-12-17 Richard Stallman <rms@gnu.org>
149 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
150 to Ffile_name_completion.
152 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
153 (Ffile_name_completion): New arg PREDICATE.
155 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
157 * buffer.c (Fkill_buffer): Doc fix.
158 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
160 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
162 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
164 2006-12-16 Eli Zaretskii <eliz@gnu.org>
166 * w32fns.c (w32-window-exists-p): New function.
167 (syms_of_w32fns): Defsubr it.
169 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
171 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
173 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
175 2006-12-15 Eli Zaretskii <eliz@gnu.org>
177 * emacs.c (USAGE3): Clarify documentation of --color.
179 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
181 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
183 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
184 [!MAC_OSX] (select): Use them.
185 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
186 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
188 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
189 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
190 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
192 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use
193 mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
195 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
196 ATSUGetGlyphBounds if not necessary.
197 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
198 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
199 (fm_get_style_from_font, atsu_find_font_from_family_name)
200 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
201 [USE_ATSUI]: New functions.
202 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
203 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
204 Don't get metrics for Latin-1 right half characters.
205 (mac_load_query_font): Don't load font if space width is not positive.
206 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): Use
207 mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
208 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
210 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
212 2006-12-15 Kim F. Storm <storm@cua.dk>
214 * keyboard.c (ignore_mouse_drag_p): New global var.
215 (some_mouse_moved): Return 0 if it is non-zero.
216 (make_lispy_event): Generate click event on mouse up if
217 ignore_mouse_drag_p is non-zero, even if mouse moved.
218 Clear ignore_mouse_drag_p on mouse down/up.
220 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
221 is resized to avoid generating a mouse drag event.
223 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
225 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
226 minimum tracking size. Remove non-working old hack to do the same.
228 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
230 * emacs.c (handle_user_signal): Move function to keyboard.c.
231 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
233 * keyboard.c (make_lispy_event): Use find_user_signal_name.
234 (read_avail_input): Store pending user signal events.
235 (struct user_signal_info): New struct.
236 (user_signals): New variable.
237 (add_user_signal, store_user_signal_events)
238 (find_user_signal_name): New functions.
239 (handle_user_signal): Move function from emacs.c. Don't store
240 USER_SIGNAL_EVENT here, but increment number of pending signals.
242 * keyboard.h (add_user_signals): Add extern.
244 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
246 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
247 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
248 <line-spacing, left-margin>: Doc fixes.
250 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
252 2006-12-10 Kim F. Storm <storm@cua.dk>
254 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
256 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
258 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
259 * buffer.c (syms_of_buffer) <default-major-mode>:
260 * keymap.c (Flookup_key):
261 * lread.c (Feval_buffer, Feval_region):
262 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
263 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
264 * marker.c (Fmarker_insertion_type):
265 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
266 * msdos.c (syms_of_msdos) <delete-exited-processes>:
267 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
268 <x-underline-at-descent-line>:
269 * xdisp.c (format-mode-line):
270 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
271 <x-underline-at-descent-line>: Doc fixes.
273 2006-12-10 Andreas Schwab <schwab@suse.de>
275 * systime.h (EMACS_GET_TIME): Remove check for
276 HAVE_STRUCT_TIMEZONE which is never defined.
278 2006-12-10 Alan Mackenzie <acm@muc.de>
280 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
281 result is now neither the last elt nor optional for OLDSTATE.
283 2006-12-09 Eli Zaretskii <eliz@gnu.org>
285 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
286 extract the process ID from a Lisp float.
288 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
290 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
292 2006-12-08 Eli Zaretskii <eliz@gnu.org>
294 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
295 platforms where long is 64-bit.
297 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
299 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
301 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
303 2006-12-08 Kenichi Handa <handa@m17n.org>
305 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
307 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
309 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
311 2006-12-07 Kim F. Storm <storm@cua.dk>
313 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
314 (Fsignal_process): Don't use strncasecmp.
316 2006-12-05 Glenn Morris <rgm@gnu.org>
318 * abbrev.c (Qforce): New Lisp_Object.
319 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
320 abbrevs, unless 'force is applied.
321 (syms_of_abbrev): Add Qforce.
323 2006-12-04 Kim F. Storm <storm@cua.dk>
325 * process.c (parse_signal): Rename macro from handle_signal.
326 (Fsignal_process): Also accept lower-case variants of signal
327 names (to align with signal names generated by Emacs itself).
329 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
330 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
331 first with code == 0 [signal] and one with code == sig number.
332 (main): Use it as handler for SIGUR1 and SIGUSR2.
334 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
335 if first event in [signal xxx] sequence.
336 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
337 (syms_of_keyboard): Don't intern and staticpro them.
338 (Qsignal): Declare here.
339 (syms_of_keyboard): Intern and staticpro it.
340 (make_lispy_event): Use it. Intern symbols on the fly for other
341 USER_SIGNAL_EVENTs events.
343 * process.c (Qsignal): Declare extern.
344 (syms_of_process): Don't intern/staticpro it here.
346 * process.c (read_process_output): Abort if carryover < 0.
348 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
350 * config.in: Regenerate.
352 * fileio.c [__NetBSD__]: Don't define `unix'.
353 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
356 2006-12-04 Glenn Morris <rgm@gnu.org>
358 * Makefile.in (version): New variable, set by configure.
359 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
361 2006-12-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
363 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
366 2006-12-01 Eli Zaretskii <eliz@gnu.org>
368 * w32fns.c (Fw32_shell_execute): Doc fix.
370 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
372 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
375 2006-11-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
377 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
379 (XTframe_raise_lower): ... to here.
381 2006-11-30 Kenichi Handa <handa@m17n.org>
383 * regex.c (regex_compile): Fix previous change.
385 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
387 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
389 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
391 * config.in: Regenerate.
393 2006-11-28 Kenichi Handa <handa@m17n.org>
395 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
398 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
400 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
402 2006-11-27 Kim F. Storm <storm@cua.dk>
404 * window.c (set_window_buffer): Refactor recent changes.
406 2006-11-27 Jason Rumney <jasonr@gnu.org>
408 * w32term.c (w32_msg_worker): Declare correctly.
409 (w32_initialize): Don't cast w32_msg_worker.
411 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
413 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
415 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
418 2006-11-25 Eli Zaretskii <eliz@gnu.org>
420 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
421 as per the calling sequence change on 2006-07-11.
423 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
425 * window.c (set_window_buffer): Use BLOCK_INPUT.
427 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
429 * fns.c (substring_both): Add missing address operator.
431 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
433 * fns.c: Use AREF/ASIZE macros.
434 (concat): Provide the full ANSI prototype.
436 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
438 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
440 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
442 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
444 2006-11-02 Alfred M. Szmidt <ams@gnu.org> (tiny change)
446 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
447 /usr/pkg/lib from the library search path.
448 (LD_SWITCH_X_DEFAULT): New macro.
450 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
452 * window.c (set_window_buffer): Clear mouse highlight if it is in
455 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
457 * xfaces.c (realize_default_face): Check if the default font name
458 exists on this display before trying to use it.
460 2006-11-21 Richard Stallman <rms@gnu.org>
462 * fileio.c: Break line before &&, not after.
464 2006-11-20 Eli Zaretskii <eliz@gnu.org>
466 * fns.c (concat) [!__GNUC__]: Add prototype.
468 2006-11-20 Kenichi Handa <handa@m17n.org>
470 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
471 check the tailing slash of a filename.
473 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
475 * indent.c (Fvertical_motion): Include composition in the case of
478 2006-11-19 Andreas Schwab <schwab@gnu.org>
480 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
482 * xmenu.c (Fx_popup_menu): Initialize selection.
484 2006-11-18 Andreas Schwab <schwab@suse.de>
486 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
488 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
490 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
491 to avoid gcc 2.96 error.
493 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
495 * search.c (simple_search): In the loop of backward searching,
496 check also the byte position against the limit.
498 2006-11-14 Romain Francoise <romain@orebokech.com>
500 * minibuf.c (Fcompleting_read): Fix typo in docstring.
502 2006-11-14 Kenichi Handa <handa@m17n.org>
504 * coding.c (code_convert_region): Initialize coding->heading_ascii.
505 (decode_coding_string, code_convert_region): Likewise.
507 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
509 * config.in: Regenerate.
511 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
512 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
513 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
514 CGDisplayScreenSize is available.
516 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
517 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
518 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
519 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
520 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
521 CancelMenuTracking is available.
523 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
524 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
525 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
526 CGContextShowGlyphsWithAdvances is available.
528 2006-11-13 Jason Rumney <jasonr@gnu.org>
530 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
532 2006-11-13 Nozomu Ando <nand@mac.com>
534 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
535 Fix address calculations for case END < START.
536 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
538 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
540 * coding.c (Fencode_sjis_char, Fencode_big5_char):
541 Improve argument/docstring consistency.
543 * editfns.c (Fmessage): Doc fixes.
545 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
547 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
549 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
551 2006-11-12 Romain Francoise <romain@orebokech.com>
553 * xselect.c (selection-coding-system): Fix docstring.
555 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
557 * category.c (Fchar_category_set): Improve arg/docstring consistency.
560 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
561 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
562 (Fstring_make_unibyte): Fix typos in docstrings.
564 2006-11-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
566 * xterm.h (struct x_display_info): Fix indentation.
568 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
569 (x_check_fullscreen): Call do_ewmh_fullscreen.
570 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
572 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
574 * term.c: Define fullscreen_hook.
575 (syms_of_term): Initialize fullscreen_hook to NULL.
577 * termhooks.h: Add fullscreen_hook.
579 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
581 * bytecode.c (Fbyte_code):
582 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
584 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
586 * lread.c (syms_of_lread):
587 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
589 2006-11-06 Martin Rudalics <rudalics@gmx.at>
591 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
593 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
594 Return nil if building without menus.
596 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
597 Return nil if building without menus.
599 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
601 * s/netbsd.h (POSIX_SIGNALS): Define.
603 2006-11-05 Martin Rudalics <rudalics@gmx.at>
605 * macmenu.c (Fmenu_or_popup_active_p): New function.
606 (syms_of_macmenu): Defsubr it.
608 * w32menu.c (Fmenu_or_popup_active_p): New function.
609 (syms_of_w32menu): Defsubr it.
610 (popup_activated_flag, popup_activated): Remove.
612 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
613 check popup_activated.
615 * xmenu.c (Fmenu_or_popup_active_p): New function.
616 (syms_of_xmenu): Defsubr it.
618 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
620 * unexmacosx.c (malloc_cookie): Remove unused variable.
621 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
622 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
623 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
624 (num_unexec_regions, unexec_regions): Make variables static.
625 (print_regions, find_emacs_zone_regions): Make static.
626 (unexec_region_info): New typedef.
627 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
629 (unexec_regions_recorder): Subtract size of trailing null pages from
630 filesize. Show filesize.
631 (unexec_regions_merge): Don't merge if null pages of preceding region
632 is not too small. Use long format in printf.
633 (copy_segment, copy_data_segment): Show filesize.
634 (copy_data_segment): Write filesize bytes of region data.
635 Adjust filesize in segment command accordingly.
636 (dump_it): Use long format in printf.
638 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
640 * dosfns.c (Finsert_startup_screen):
641 * fns.c (Ffeaturep, syms_of_fns):
642 * frame.c (syms_of_frame): Fix typos in docstrings.
644 * unexcw.c (unexec): Fix typo in output message.
646 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
648 * w32fns.c (w32_createwindow): Remove code for handling -geometry
649 command line option and `initial-frame-alist' which is superfluous
650 after the last change to `w32_createwindow'.
652 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
654 * w32proc.c (sys_wait): Only wait for processes with fd<0.
655 Others should be handled by sys_select instead. Fixes problems
656 with (progn (start-process "" nil "ls") (call-process "ls")).
658 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
660 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
661 avoid gcc 2.95 error.
663 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
665 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
666 wicon is null, insert an empty button.
668 2006-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
670 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
673 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
675 * emacs.c (Fkill_emacs): Fix typo in docstring.
677 2006-11-02 Nozomu Ando <nand@mac.com>
679 * unexmacosx.c (mach_header, segment_command, vm_region, section)
680 [_LP64]: New defines.
681 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
682 (MH_MAGIC) [_LP64]: Redefine.
683 (delta): Remove variable.
684 (curr_file_offset, pagesize): New variables.
685 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
686 (data_segment_old_fileoff): Initialize explicitly.
687 (print_region, unexec_regions_recorder, print_load_command_name)
688 (copy_segment, copy_data_segment): Use long format in printf.
689 (MAX_UNEXEC_REGIONS): Increase to 400.
690 (unexec_regions_recorder): Don't warn too many regions here.
691 (find_emacs_zone_regions): Warn too many regions here.
692 (print_load_command_name) [_LP64]: Show correct load command name.
693 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
694 Show starting virtual memory address. Don't show ending file offset.
695 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
696 (dump_it): Use new local variable `linkedit_delta' and pass to them.
697 Error if trying to handle multiple DATA segments.
698 (unexec): Initialize variable `pagesize'.
700 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
702 * eval.c (Fcatch): Doc fix.
704 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
706 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
707 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
708 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
709 (xpm_load_image): Add const qualifier to arguments.
710 [MAC_OS] (xpm_color_key_strings): Make static const.
712 * mac.c (create_apple_event_from_event_ref)
713 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
714 (parse_include_file, parse_binding, parse_component)
715 (parse_resource_name, parse_value, parse_resource_line)
716 (xrm_merge_string_database, xrm_get_resource)
717 (xrm_get_preference_database): Add const qualifier to arguments.
718 [MAC_OSX] (sys_select): Make variable `context' static const.
720 * macfns.c (mac_color_map): Make static const.
721 (mac_color_map_lookup): Add const qualifier to arguments.
723 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
725 (name_is_separator): Add const qualifier to arguments.
727 * macselect.c (init_service_handler): Make variable `specs' static
730 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
731 `swap_nibbles' static const.
732 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
733 `tags', `sizes', `values' static const.
734 (mac_draw_string_common): Make variables `context' static.
735 Make variables `tags', `sizes', and `values' static const.
736 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
737 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
738 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
739 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
740 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
741 qualifier to arguments.
742 (xlfd_scalable_fields, keycode_to_xkeysym_table)
743 (fn_keycode_to_keycode_table): Make static const.
744 (mac_load_query_font): Make variables `tags', `sizes', `values',
745 `types', and `selectors' static const.
746 (mac_handle_command_event, mac_handle_window_event):
747 Make variables `names' and `types' static const.
748 (init_command_handler, install_window_handler): Make variables
749 `specs*' static const.
750 (mac_handle_font_event, mac_handle_text_input_event)
751 (mac_store_service_event): Make variables `names' and `types'
752 const. Make variables `names_*' and `types_*' static const.
754 * macterm.h (create_apple_event_from_event_ref)
755 (create_apple_event_from_drag_ref, xrm_merge_string_database)
756 (xrm_get_resource, xrm_get_preference_database): Add const
757 qualifier to arguments in externs.
759 2006-10-31 Kenichi Handa <handa@m17n.org>
761 * xfns.c (xic_create_xfontset): Fix previous change.
763 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
765 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
766 /usr/pkg/lib to library search path.
768 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
770 * ralloc.c (relinquish): Use a long for excess space counter to
771 handle 64-bit case correctly.
773 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
775 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
777 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
779 * window.c (Fdisplay_buffer): Fix typo in docstring.
781 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
783 * w32term.c (x_draw_glyph_string_foreground): Set background mode
784 to TRANSPARENT before using overstrike to simulate bold faces.
786 * xfaces.c (best_matching_font): Fix logic to decide whether to
787 use overstriking to simulate bold-face (it was reversed).
789 2006-10-23 Kim F. Storm <storm@cua.dk>
791 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
794 * keyboard.c (read_char): Make an element (t . EVENT) in
795 unread-command-events add EVENT to the current command's key sequence.
796 (syms_of_keyboard) <unread-command-events>: Update doc.
798 2006-10-21 Richard Stallman <rms@gnu.org>
800 * minibuf.c (Vread_expression_map): Define here.
801 (Qread_expression_history): New variable.
802 (syms_of_minibuf): Initialize them.
803 (Feval_minibuffer): Use Vread_expression_map and
804 Qread_expression_history.
806 2006-10-21 Kenichi Handa <handa@m17n.org>
808 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
809 card, change it to "*".
810 (xic_create_xfontset): Call XCreateFontSet for each single
811 fontname in fontsetname.
813 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
815 * callint.c (callint_message): Convert to a Lisp string.
816 (syms_of_callint): Initialize it.
817 (callint_message_size): Var deleted.
818 (Fcall_interactively): Use Fformat instead of doprnt to construct
821 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
823 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
825 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
827 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
829 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
831 2006-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
833 * xselect.c (x_handle_selection_request): If the converted_selection
834 is nil or XCDR (converted_selection) is nil, decline the request.
836 2006-10-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
838 * gtkutil.c (get_utf8_string): Remove warnings with casts.
839 (xg_tool_bar_button_cb): Ditto.
840 (xg_tool_bar_callback): Ditto.
842 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
844 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
846 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
847 menu bar window matrices on non-X systems.
849 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
851 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
852 adjustment is needed.
853 (mac_load_query_font): Check if width and height are positive.
855 2006-10-14 Richard Stallman <rms@gnu.org>
857 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
859 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
861 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
864 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
866 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
869 2006-10-12 Romain Francoise <romain@orebokech.com>
871 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
873 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
875 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
877 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
879 * xterm.c (x_check_expected_move): Remove unused var `count'.
881 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
882 Fdefalias is not declared in any *.h file.
884 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
886 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
888 * keyboard.c (command_loop_1): Handle non-number values of
889 `minibuffer-message-timeout'.
890 (Fexecute_extended_command): Fix typo.
892 * minibuf.c (temp_echo_area_glyphs): Sit for
893 `minibuffer-message-timeout' seconds.
895 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
897 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
898 Add argument OVERSTRIKE_P.
899 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
901 (mac_draw_string, mac_draw_string_16): Remove functions.
902 (x_draw_glyph_string_foreground): Use overstrike when needed.
903 (x_draw_composite_glyph_string_foreground): Likewise.
904 Use mac_draw_image_string_16 instead of mac_draw_string_16.
905 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
906 F instead of DPY. All uses changed. Don't save/restore font.
908 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
910 * w32fns.c (w32_createwindow): Honour left and top positions if
913 2006-10-06 Kim F. Storm <storm@cua.dk>
915 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
917 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
919 * frame.c (Qinhibit_face_set_after_frame_default): New var.
920 (syms_of_frame): Initialize it.
921 (x_set_frame_parameters): Avoid resetting :font attributes to the
924 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
926 * lisp.h (clear_regexp_cache): Declare.
928 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
929 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
930 (clear_regexp_cache): Only flush those regexps which depend on
933 * regex.c (regex_compile): Set the new `used_syntax' bit.
935 * regex.h: Remove file local variables.
936 (struct re_pattern_buffer): New field `used_syntax'.
938 2006-10-03 Kim F. Storm <storm@cua.dk>
940 * process.c (list_processes_1): Run sentinels before removing dead
941 processes. Also remove `closed' network connections.
943 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
945 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
947 2006-09-30 Eli Zaretskii <eliz@gnu.org>
949 * config.in: Regenerated.
951 2006-09-29 Juri Linkov <juri@jurta.org>
953 * buffer.c (syms_of_buffer): Reorder coding systems in the
954 docstring of %z to the real order displayed in the modeline.
956 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
958 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
960 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
962 * indent.c (Fvertical_motion): Do move back if the Lisp string
963 being displayed contains newlines.
965 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
967 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
968 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
970 2006-09-26 Kenichi Handa <handa@m17n.org>
972 * keymap.c (Fsingle_key_description): For an invalid char, return
973 "Invalid char code NNNNN".
975 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
977 * callint.c (Fcall_interactively): Doc fix.
979 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
981 * macterm.c (x_underline_at_descent_line): New variable.
982 (syms_of_macterm): DEFVAR_BOOL it.
983 (x_draw_glyph_string): Use it.
984 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
986 2006-09-25 Kenichi Handa <handa@m17n.org>
988 * keymap.c (Fsingle_key_description): Return unique names for
991 2006-09-24 Richard Stallman <rms@gnu.org>
993 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
995 2006-09-24 Eli Zaretskii <eliz@gnu.org>
997 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
998 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
1000 * w32proc.c (nl_langinfo): New function.
1002 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1003 (w32-pass-lwindow-to-system, w32-enable-num-lock)
1004 (w32-enable-caps-lock, w32-scroll-lock-modifier)
1005 (w32-lwindow-modifier, w32-rwindow-modifier)
1006 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
1008 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
1010 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
1011 (Fdisplay_completion_list): Fix typos in docstrings.
1013 2006-09-23 Romain Francoise <romain@orebokech.com>
1015 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
1017 2006-09-23 Kenichi Handa <handa@m17n.org>
1019 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
1021 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
1023 * regex.c (analyse_first): For eight-bit-control chars, mark both the
1024 char's value and its leading byte in the fastmap.
1025 (re_search_2): When fast-scanning without translation, be careful to
1026 check that we only match the leading byte of a multibyte char.
1028 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
1030 (AT_CHAR_BOUNDARY): New macro.
1032 2006-09-22 Kenichi Handa <handa@m17n.org>
1034 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
1035 whose default value is non-nil.
1037 2006-09-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1039 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
1040 Gtk+ versions < 2.10.
1042 * xfns.c (syms_of_xfns): Fix typo in help text for
1043 x-gtk-file-dialog-help-text.
1045 2006-09-21 Kim F. Storm <storm@cua.dk>
1047 * fns.c (Fmemq): Refill doc string.
1048 (Fmemql): New defun, like memq but using eql.
1049 (syms_of_fns): Defsubr it.
1051 2006-09-20 Kim F. Storm <storm@cua.dk>
1053 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
1054 last visible glyph in window.
1056 * window.c (Fset_window_hscroll, Fwindow_line_height):
1057 Doc fix. Use "off-window" instead of "off-screen".
1058 (Fpos_visible_in_window_p): Likewise.
1059 If POS is t, return info for last visible glyph in window.
1061 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
1063 * search.c (struct regexp_cache): New entry syntax_table.
1064 (compile_pattern_1): Set it.
1065 (syms_of_search): Initialize it.
1066 (compile_pattern): Require the syntax_table entry of the cache
1067 element to match the current syntax table entry.
1069 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1071 * window.c (Fwindow_end): Fix recent change.
1073 2006-09-19 Kim F. Storm <storm@cua.dk>
1075 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
1076 Doc fix. Use "off-screen" instead of "invisible".
1077 (Fwindow_line_height): Make line numbers 0-based. Make line arg
1078 optional; if nil, use current cursor row. Handle text terminals
1079 properly. Return nil if non-interactive or pseudo-window.
1081 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1083 * keymap.c: Include alloca.h if available.
1084 (Fkey_binding): Only use AREF after checking it's a vector.
1085 Remove unused var `window'.
1087 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1089 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
1092 * mac.c [!MAC_OSX] (select): Fix argument name.
1094 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
1095 menu ID for Apple menu.
1096 (menubar_selection_callback): Remove function.
1097 (find_and_call_menu_selection): New function from xmenu.c.
1098 (x_activate_menubar): Use it.
1099 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
1101 * macterm.c (menubar_selection_callback): Remove extern.
1102 (M_APPLE): Change to 234.
1103 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
1104 (do_menu_choice): Remove function.
1106 * macterm.h (struct mac_output): Remove member menubar_active.
1107 (do_menu_choice): Remove extern.
1108 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
1110 2006-09-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1112 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
1113 x_gtk_file_dialog_help_text.
1115 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
1116 to x-gtk-use-old-file-dialog.
1117 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
1118 x_gtk_file_dialog_help_text.
1120 * xfns.c (syms_of_xfns): Ditto.
1122 2006-09-18 Kim F. Storm <storm@cua.dk>
1124 * window.c (Fwindow_line_visibility): Remove.
1125 (Fwindow_line_height): New defun replacing it.
1126 (syms_of_window): Defsubr it.
1128 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1130 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
1131 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
1133 2006-09-17 Jay Belanger <belanger@truman.edu>
1138 * strftime.c: Replace "GNU Library General Public License" by "GNU
1139 General Public License" throughout.
1141 2006-09-17 Kim F. Storm <storm@cua.dk>
1143 * dispnew.c (update_text_area): Undo 2000-07-18 change.
1144 Always redrawing whole row if line has mouse-face in it causes
1145 excessive flickering of the mode line.
1147 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
1149 * search.c (clear_regexp_cache): New function.
1151 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
1153 2006-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1155 * gtkutil.c (xg_get_file_with_chooser):
1156 Check x-gtk-show-chooser-help-text before adding the help text.
1158 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
1160 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
1161 will simply crash if we fail.
1163 2006-09-16 Richard Stallman <rms@gnu.org>
1165 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
1167 2006-09-15 Kim F. Storm <storm@cua.dk>
1169 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
1170 (syms_of_window): Defsubr it.
1171 (Fwindow_end): Use window's buffer rather than current buffer.
1173 2006-09-15 Jay Belanger <belanger@truman.edu>
1175 * COPYING: Replace "Library Public License" by "Lesser Public
1176 License" throughout.
1178 2006-09-15 David Kastrup <dak@gnu.org>
1180 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
1182 * keymap.c: include "window.h".
1183 (Fcommand_remapping): New optional POSITION argument.
1184 (Fkey_binding): New optional POSITION argument. Completely rework
1185 handling of mouse clicks to get the same order of keymaps as
1186 `read-key-sequence' and heed POSITION. Also temporarily switch
1187 buffers to location of mouse click and back.
1189 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
1190 for additional argument.
1191 (parse_menu_item): Adjust call of `Fkey_binding' for additional
1193 (read_key_sequence): If there are both `local-map' and `keymap'
1194 text properties at some buffer position, heed both.
1196 * keymap.h: Declare additional optional arguments of
1197 `Fcommand_remapping' and `Fkey_binding'.
1199 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
1201 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
1203 2006-09-14 Andreas Schwab <schwab@suse.de>
1205 * print.c: Whitespace fixup.
1207 2006-09-14 Kim F. Storm <storm@cua.dk>
1209 * xdisp.c (produce_image_glyph): Automatically crop wide images at
1210 right window edge so we can draw the cursor on the same row to
1211 avoid confusing redisplay by placing the cursor outside the visible
1214 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1216 * xterm.c (x_initialize): Don't install Xt event timer here.
1217 (x_timeout_atimer_activated_flag): New var.
1218 (x_activate_timeout_atimer): New function to install Xt timer.
1219 (x_send_scroll_bar_event, x_process_timeouts): Use it.
1221 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
1222 (create_and_show_popup_menu, create_and_show_dialog): Use it.
1224 * xterm.h (x_activate_timeout_atimer): Add prototype.
1226 2006-09-13 Richard Stallman <rms@gnu.org>
1228 * print.c (print_string): When printcharfun is t,
1229 copy string contents and call strout on the copy.
1231 * keyboard.c (read_char): If end_time specified, don't put the
1232 event into this_command_keys.
1233 (read_key_sequence): If Voverriding_terminal_local_map is specified,
1234 don't check Voverriding_local_map at all.
1236 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1238 * textprop.c (Fnext_property_change, Fnext_single_property_change)
1239 (Fprevious_property_change, Fprevious_single_property_change):
1240 Avoid changing limit, so we can correctly catch the case where the
1241 property is constant up to limit.
1243 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1245 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1246 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1247 Undo 2006-09-08 change.
1249 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
1251 * keymap.c (Fkey_binding): Use string position for string objects.
1253 2006-09-11 Kim F. Storm <storm@cua.dk>
1255 * keymap.c (Fkey_binding): Fix last change.
1257 * editfns.c (Fmessage): Recommend using (message "%s" ...).
1259 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
1261 * keymap.c (Fkey_binding): Check for local keymap for mouse click
1264 2006-09-10 Kim F. Storm <storm@cua.dk>
1266 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
1267 and Vunread_post_input_method_events.
1269 * dispnew.c (Fredisplay): Document return value.
1271 2006-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1273 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
1275 * gtkutil.c (xg_display_close): Always change default display if needed,
1276 check for < Gtk+ version 2.10 before calling gdk_display_close.
1278 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1280 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
1281 Make variable `ofds' static. Remove variable `maxfd'.
1283 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
1286 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
1287 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
1288 Apply 2006-09-08 change for xmenu.c.
1290 * xfns.c (Fx_file_dialog): Call check_x.
1292 2006-09-10 Kim F. Storm <storm@cua.dk>
1294 * xdisp.c (get_window_cursor_type): Use hollow cursor on
1295 non-transparent images.
1297 2006-09-09 Eli Zaretskii <eliz@gnu.org>
1299 * editfns.c (Fsystem_name): Mention "host" in the doc string.
1300 (syms_of_editfns) <system-name>: Likewise.
1302 2006-09-08 Martin Rudalics <rudalics@gmx.at>
1304 * xdisp.c (mouse_autoselect_window): Remove.
1305 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
1307 * dispextern.h (mouse_autoselect_window): Remove extern.
1308 (Vmouse_autoselect_window): Add extern.
1310 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
1311 instead of mouse_autoselect_window.
1313 * msdos.c (dos_rawgetc): Likewise.
1315 * w32term.c (w32_read_socket): Likewise.
1317 * xterm.c (handle_one_xevent): Likewise.
1319 2006-09-08 Richard Stallman <rms@gnu.org>
1321 * xdisp.c (Vmenu_updating_frame): Define here.
1322 (syms_of_xdisp): DEFVAR it here.
1323 (update_menu_bar): Always return hooks_run.
1324 Set Vmenu_updating_frame.
1326 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
1327 before calculating SELECTED_FRAME.
1329 * xmenu.c (Vmenu_updating_frame): Don't define here.
1330 (syms_of_xmenu): Don't DEFVAR it here.
1332 * xterm.c (x_error_quitter): For BadName error, just return.
1334 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
1336 * casetab.c (init_casetab_once): Call set_case_table.
1338 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
1340 * process.c (inhibit_sentinels): New variable.
1341 (exec_sentinel): Test inhibit_sentinels.
1342 (init_process): Initialize it.
1344 * process.h (inhibit_sentinels): Add decl.
1346 * search.c (looking_at_1, string_match_1, search_command):
1347 Make syntax table's canon table point to eqv table.
1349 2006-09-08 Andreas Schwab <schwab@suse.de>
1351 * print.c (strout): Fix whitespace.
1353 2006-09-08 Kim F. Storm <storm@cua.dk>
1355 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
1357 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1359 * mac.c [!MAC_OSX]: Don't include keyboard.h.
1360 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
1361 in the same BLOCK_INPUT block, in case that some input has already
1362 been read asynchronously. Pretend to be interrupted by a signal
1363 if some input is available.
1364 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1365 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
1366 Now used for ReceiveNextEvent timeout instead of select timeout.
1367 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
1368 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
1369 support. Quit event loop.
1370 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
1371 connect support. Reuse previously allocated CFRunLoopSource.
1372 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
1373 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1375 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1376 Specify kWindowAsyncDragAttribute.
1378 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
1379 (mac_get_ideal_size): New functions.
1380 (x_set_offset, x_set_window_size, x_make_frame_visible)
1381 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
1382 (install_window_handler, mac_handle_window_event)
1383 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
1384 kEventWindowBoundsChanged.
1385 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
1388 2006-09-07 Andreas Schwab <schwab@suse.de>
1390 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
1391 use lib64 instead of lib.
1393 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
1395 * Makefile.in: Avoid double quotes when possible.
1397 2006-09-06 Kenichi Handa <handa@m17n.org>
1399 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
1400 a Lisp string from the result of emacs_memftimeu call.
1402 2006-09-06 Kim F. Storm <storm@cua.dk>
1404 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
1405 so calculate heights even when pos-visible-in-window-p is called
1406 with partially = t. Don't overshoot last_visible_y in move_it_to.
1407 Return row height and row number in new rowh and vpos args.
1408 (cursor_row_fully_visible_p): First line is always "fully visible".
1409 (try_window): Don't clear matrix if vscrolled.
1411 * lisp.h (pos_visible_p): Update prototype.
1413 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
1414 Return row height and row number for partially visible rows.
1415 Modify return value to a 2 element list for fully visible rows and
1416 6 for partially visible row.
1417 (window_scroll_pixel_based): Use pos_visible_p directly instead of
1418 Fpos_visible_in_window_p. Fix auto vscrolling for partially
1419 visible lines. Only vscroll backwards if already vscrolled
1420 forwards. Unconditionally vscroll forwards if PT is first (and
1421 only) line. Set new window start instead of scrolling at
1422 start/end of tall line.
1424 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1426 * macterm.c (install_window_handler, mac_handle_window_event)
1427 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
1428 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
1429 ASCII keystroke event.
1431 2006-09-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1433 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
1434 the file chooser message. Only call gtk_file_chooser_set_current_name
1435 when action is SAVE.
1437 2006-09-04 Andreas Schwab <schwab@suse.de>
1439 * Makefile.in: Double all single and back quotes in C-style
1440 comments to help fontifier.
1442 2006-09-03 Jason Rumney <jasonr@gnu.org>
1444 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
1445 (globals_of_w32): Register it as a signal handler.
1447 2006-09-02 Juri Linkov <juri@jurta.org>
1449 * marker.c (Fmarker_position): Doc fix.
1451 2006-09-03 Eli Zaretskii <eliz@gnu.org>
1453 * window.c (syms_of_window) <split-height-threshold>:
1454 <window-min-height, window-min-width>: Doc fix.
1456 2006-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1458 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
1459 for writing files. Call gtk_file_chooser_set_current_name to keep
1462 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
1464 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
1466 * fns.c (concat) [__GNUC__]: Declare with
1467 `__attribute__((noinline))'.
1469 * eval.c (apply1, call2) [__GNUC__]: Declare with
1470 `__attribute__((noinline))'.
1472 2006-09-02 Stuart D. Herring <herring@lanl.gov>
1474 * minibuf.c (Finternal_complete_buffer): New function.
1475 (syms_of_minibuf): Defsubr it.
1476 (Fread_buffer): Use it, instead of Vbuffer_alist.
1478 2006-09-01 Martin Rudalics <rudalics@gmx.at>
1480 * buffer.h (struct buffer_text): New field chars_modiff.
1481 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
1482 * buffer.c (Fbuffer_chars_modified_tick): New function returning
1483 value of BUF_CHARS_MODIFF.
1484 (syms_of_buffer): Defsubr it.
1485 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
1486 * insdel.c (modify_region): New argument preserve_chars_modiff.
1487 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
1488 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
1489 (adjust_after_replace, adjust_after_replace_noundo)
1490 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
1491 * lisp.h (modify_region): Add fourth argument in extern.
1492 * casefiddle.c (casify_region): Call modify_region with fourth
1493 argument zero to assert that CHARS_MODIFF is updated.
1494 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1495 (Ftranspose_regions): Likewise.
1496 * textprop.c (Fadd_text_properties, Fset_text_properties)
1497 (Fremove_text_properties, Fremove_list_of_text_properties):
1498 Call modify_region with fourth argument 1 to avoid that
1499 CHARS_MODIFF is updated.
1501 2006-08-31 Richard Stallman <rms@gnu.org>
1503 * editfns.c (Fformat): Don't sign-extend for %o or %x.
1505 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
1507 * indent.c (Fvertical_motion): Don't move back if we were
1508 displaying a Lisp string, either.
1510 2006-08-28 Kim F. Storm <storm@cua.dk>
1512 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
1513 Don't attempt to replace cursor on image glyphs.
1515 2006-08-28 Kenichi Handa <handa@m17n.org>
1517 * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
1518 docstring about ISO-2022 control characters.
1520 2006-08-28 Kim F. Storm <storm@cua.dk>
1522 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
1523 with a hollow box cursor if image is larger than 32x32 (or the default
1524 frame font if that is bigger). Replace any other cursor on images
1525 with hollow box cursor, as redisplay doesn't support bar and hbar
1528 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1530 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
1531 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
1533 * dired.c (directory_files_internal_unwind, directory_files_internal)
1534 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
1536 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
1539 * keyboard.c (in_sighandler): Remove variable.
1540 (Fcurrent_idle_time): Add missing `doc:'.
1541 (input_available_signal, init_keyboard): Undo previous change.
1543 * keyboard.h (in_sighandler): Remove extern.
1545 * mac.c (create_apple_event_from_event_ref, select)
1546 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1547 (Fmac_set_file_type, cfstring_create_normalized)
1548 (mac_get_system_locale, select_and_poll_event, sys_select):
1549 Use OSStatus instead of OSErr.
1551 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
1552 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
1553 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
1555 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
1556 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
1557 (get_scrap_private_timestamp, get_scrap_target_type_list)
1558 (x_own_selection, x_get_foreign_selection)
1559 (Fx_disown_selection_internal, Fx_selection_owner_p)
1560 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
1562 * macterm.c (mac_draw_string_common, mac_query_char_extents)
1563 (x_iconify_frame, XLoadQueryFont, install_window_handler)
1564 (mac_handle_command_event, init_command_handler, init_menu_bar):
1565 Use OSStatus instead of OSErr.
1566 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
1568 (x_query_font): Apply 2006-08-04 change for xterm.c.
1569 (Qhi_command): Rename from Qhicommand. All uses changed.
1571 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
1573 (FRAME_FILE_NAME): Remove macro.
1574 (install_window_handler, create_apple_event_from_event_ref):
1575 Return OSStatus instead of OSErr.
1577 2006-08-26 Kim F. Storm <storm@cua.dk>
1579 * buffer.c (Fset_buffer_multibyte):
1580 * editfns.c (Fcurrent_time, Fget_internal_run_time):
1581 * macfns.c (Fxw_color_values):
1582 * w32fns.c (Fxw_color_values):
1583 * xfns.c (Fxw_color_values): Simplify; use list3.
1585 * fileio.c (Fmake_directory_internal, Fdelete_directory)
1586 (Fdelete_file): Simplify; use list1.
1587 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
1588 Simplify; remove NO_ARG_ARRAY stuff, use list2.
1590 2006-08-25 Richard Stallman <rms@gnu.org>
1592 * buffer.c (Fswitch_to_buffer): Fix previous change.
1594 2006-08-25 Kim F. Storm <storm@cua.dk>
1596 * keyboard.c (Fcurrent_idle_time): Simplify.
1598 2006-08-25 Richard Stallman <rms@gnu.org>
1600 * fns.c (sxhash_string): Rotate properly; don't lose bits.
1602 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
1604 * xdisp.c (overline_margin): New variable.
1605 (x_produce_glyphs): Use it.
1606 (syms_of_xdisp): DEFVAR_INT it.
1608 * xterm.c (x_underline_at_descent_line): New variable.
1609 (syms_of_xterm): DEFVAR_BOOL it.
1610 (x_draw_glyph_string): Use it.
1611 Draw underline and overline up to the end of line if the face
1612 extends to the end of line.
1614 * macterm.c: Likewise.
1616 * w32term.c: Likewise.
1618 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
1620 * buffer.c (Fswitch_to_buffer): Move buffer to front of
1621 buffer-alist if necessary.
1623 2006-08-22 Kim F. Storm <storm@cua.dk>
1625 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
1626 number of items changes.
1628 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1630 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
1632 2006-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1634 * keyboard.c: Clarify difference between in_sighandler and
1637 2006-08-21 Kim F. Storm <storm@cua.dk>
1639 * macterm.c (x_draw_stretch_glyph_string):
1640 * w32term.c (x_draw_stretch_glyph_string):
1641 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
1642 stretch glyph in left marginal areas on header and mode lines.
1644 2006-08-21 Kenichi Handa <handa@m17n.org>
1646 * keyboard.c (syms_of_keyboard): Docstring of
1647 Vunread_post_input_method_events and Vunread_input_method_events
1650 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
1652 * keyboard.c (show_help_echo): Preserve mouse movement flag if
1655 2006-08-20 Richard Stallman <rms@gnu.org>
1657 * xfaces.c (load_pixmap): Add quotes in error message.
1659 * keyboard.c (Fcurrent_idle_time): New function.
1660 (syms_of_keyboard): defsubr it.
1662 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
1664 * window.c (Fset_window_fringes): Do nothing on a tty.
1665 (Fwindow_fringes): Put ? operator after the line break.
1667 2006-08-16 Andreas Schwab <schwab@suse.de>
1669 * print.c (debug_output_compilation_hack): Fix return type.
1671 2006-08-16 Richard Stallman <rms@gnu.org>
1673 * print.c (debug_output_compilation_hack): New function.
1675 2006-08-16 Kenichi Handa <handa@m17n.org>
1677 * fileio.c (choose_write_coding_system): Use LF for end-of-line
1680 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
1682 * keyboard.c (read_char): Don't change idle timer state at all if
1683 end_time is supplied.
1685 2006-08-15 Kenichi Handa <handa@m17n.org>
1687 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
1688 is exhausted, return with RET.
1689 (detect_coding_emacs_mule, detect_coding_iso2022)
1690 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
1691 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
1694 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
1696 * keyboard.c (read_char): Don't reset idle timers if a time limit
1699 2006-08-14 Kim F. Storm <storm@cua.dk>
1701 * .gdbinit (pitx): Print iterator position.
1702 Limit stack dump in case iterator is not initialized.
1704 2006-08-12 Eli Zaretskii <eliz@gnu.org>
1706 * frame.c (Fmouse_position, Fmouse_pixel_position)
1707 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
1709 2006-08-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1711 * xselect.c (Fx_register_dnd_atom): New function.
1712 (syms_of_xselect): Defsubr it.
1713 (x_handle_dnd_message): Check that message_type is in
1714 dpyinfo->x_dnd_atoms before generating lisp event.
1716 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
1717 of drag and drop Atoms.
1719 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
1721 2006-08-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1723 * keyboard.c: Define in_sighandler.
1724 (input_available_signal): Set in_sighandler.
1725 (init_keyboard): Initialize in_sighandler.
1727 * keyboard.h: Declare in_sighandler.
1729 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
1730 to check if mutex should be locked or not.
1732 2006-08-09 Richard Stallman <rms@gnu.org>
1734 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
1735 (read_key_sequence): Always start fkey.start and fkey.end at 0,
1736 and likewise for keytran.
1738 2006-08-09 Kenichi Handa <handa@m17n.org>
1740 * coding.c (syms_of_coding): Improve the docstring
1741 file-coding-system-alist.
1743 2006-08-07 Andreas Schwab <schwab@suse.de>
1745 * puresize.h (BASE_PURESIZE): Increase to 1120000.
1747 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
1749 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
1750 (Fkill_all_local_variables): Use it.
1751 (syms_of_buffer): Defvar it.
1753 2006-08-05 Eli Zaretskii <eliz@gnu.org>
1755 * w32.c (w32_valid_pointer_p): New function.
1757 * w32.h: Add prototype for w32_valid_pointer_p.
1759 * alloc.c: Include w32.h.
1760 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
1763 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
1764 is exactly equal to end_time, not only when it is past that.
1766 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
1768 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
1770 * process.c: Reapply 2006-08-01 change.
1772 2006-08-04 Eli Zaretskii <eliz@gnu.org>
1774 * w32fns.c (w32_query_font): Fix last change: use stricmp.
1776 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1778 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
1779 the before-change-functions since they may have altered the buffer.
1781 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
1783 * w32fns.c (w32_createwindow): Handle -geometry command line option
1784 and the geometry settings in the Registry.
1786 2006-08-04 Kenichi Handa <handa@m17n.org>
1788 * w32fns.c (w32_query_font): Compare names by ignoring case.
1790 * xterm.c (x_query_font): Compare names by ignoring case.
1792 2006-08-03 Jason Rumney <jasonr@gnu.org>
1794 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
1795 when no option selected.
1797 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
1799 * process.c: Revert last change.
1801 2006-08-01 Kim F. Storm <storm@cua.dk>
1803 * process.c (wait_reading_process_output_unwind): New function.
1804 Restores waiting_for_user_input_p to saved value.
1805 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
1806 instead of save/restore old value on stack.
1808 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
1810 * editfns.c: Undo 2006-06-27 change.
1812 2006-07-29 Eli Zaretskii <eliz@gnu.org>
1814 * coding.c (Ffind_operation_coding_system): Revert the change from
1817 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
1819 2006-07-28 Richard Stallman <rms@gnu.org>
1821 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
1822 Add conditional aborts for clarity.
1824 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
1825 Used to avoid running the hooks over and over for each frame.
1826 (prepare_menu_bars): Pass value from update_menu_bar
1827 as HOOKS_RUN of next call.
1829 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
1831 2006-07-28 Kim F. Storm <storm@cua.dk>
1833 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
1834 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
1836 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
1838 * keyboard.c (read_char): New arg END_TIME specifying timeout.
1839 All callers changed. Turn off echoing if END_TIME is non-NULL.
1840 (kbd_buffer_get_event): New arg END_TIME.
1842 * lread.c (read_filtered_event): New arg SECONDS to wait until.
1843 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
1845 * lisp.h: Update read-char, read-event, and read_filtered_event
1848 * keyboard.h: Include systime.h. Update read_char prototype.
1850 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1852 * alloc.c (find_string_data_in_pure): New function.
1853 (make_pure_string): Use it to reuse existing string data if possible.
1855 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
1857 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1859 * keymap.c (Fdefine_key): If the key binding definition looks like an
1860 XEmacs-style key sequence, convert it to Emacs's format.
1862 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
1864 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
1865 parameters are bound to some values, use that instead of
1868 2006-07-21 Eli Zaretskii <eliz@gnu.org>
1870 * w32.c (convert_time): Use explicit long double constants to
1871 ensure long double arithmetics is used throughout.
1873 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1875 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
1876 (init_alloc_once): Initialize them.
1877 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
1880 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
1882 2006-07-18 Francis Litterio <franl@world.std.com>
1884 * w32term.c (x_calc_absolute_position): Fix frame positioning
1885 with negative X/Y coordinates.
1887 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
1889 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
1891 * textprop.c (text_read_only): Likewise.
1893 * lread.c (end_of_file_error): Likewise.
1895 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
1898 * eval.c (unwind_to_catch): Likewise.
1900 * buffer.h (buffer_slot_type_mismatch): Likewise.
1902 2006-07-18 Kim F. Storm <storm@cua.dk>
1904 Cleanup Fsignal calls that never returns; now only use it for Qquit.
1906 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
1907 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
1908 (signal_error): New no-return function (from xfaces.c).
1909 (Fthrow): Use xsignal2 instead of Fsignal + abort.
1910 (error): Use xsignal1 instead of Fsignal + abort.
1911 (FletX, Flet, grow_specpdl): Use signal_error.
1912 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
1914 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
1915 (list1): New function.
1917 * lisp.h (list1): Add EXFUN.
1918 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
1919 Add prototypes. Mark them as no-return.
1921 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
1924 * callint.c (check_mark): Use xsignal0.
1926 * casefiddle.c (casify_object): wrong_type_argument is no-return.
1928 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
1930 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
1931 (Fdefine_coding_system_internal): Use xsignal1.
1933 * data.c (circular_list_error): Use xsignal.
1934 (wrong_type_argument): Use xsignal2. Don't care about return value.
1935 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
1936 Remove loop around Fsignal.
1937 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
1938 (indirect_function, Findirect_function, Fstring_to_number)
1939 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
1940 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
1943 * doc.c (Fdocumentation): Use xsignal1.
1945 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
1947 * fileio.c (report_file_error): Use xsignal.
1948 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
1949 (Finsert_file_contents): Use xsignal2.
1950 (syms_of_fileio): Use list2, list3.
1952 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
1953 (range_error2, domain_error2): Use xsignal3.
1954 (rounding_driver, fmod_float): Use xsignal0.
1955 (float_error): Use xsignal1.
1956 (matherr): Use xsignal.
1958 * fns.c (Flength): wrong_type_argument is no-return.
1959 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
1960 (Fmd5): Use xsignal1.
1962 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
1964 * keyboard.c (recursive_edit_1): Use xsignal1.
1966 * keymap.c (Fmap_keymap): Use xsignal1.
1968 * lread.c (Fload): Use xsignal2, signal_error.
1969 (end_of_file_error): Use xsignal0, xsignal1.
1970 (read0): Use xsignal1.
1971 (invalid_syntax): New error function marked no-return.
1972 (read_integer, read1, read_list): Use it.
1974 * macselect.c (x_get_local_selection): Use signal_error.
1976 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
1978 * search.c (compile_pattern_1): Use xsignal1.
1979 (signal_failure): Remove (was only called once).
1980 (search_command): Use xsignal1 instead of signal_failure.
1982 * syntax.c (scan_lists): Use xsignal3.
1984 * textprop.c (text_read_only): Use xsignal0, xsignal1.
1986 * unexsol.c (unexec): Use xsignal.
1988 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1991 * xfaces.c (signal_error): Move to eval.c.
1992 (resolve_face_name): Use xsignal1.
1994 * xfns.c (x_decode_color): Use signal_error.
1996 * xselect.c (x_get_local_selection, copy_multiple_data)
1997 (x_get_window_property_as_lisp_data)
1998 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
1999 (Fx_get_cut_buffer_internal): Use signal_error.
2001 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2003 * macterm.c (XTread_socket): Undo previous change.
2005 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2007 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
2008 directly lookup keycode_to_xkeysym_table.
2009 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
2010 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
2011 (XTread_socket): Use character codes to construct keypad key events.
2012 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
2013 (x_delete_display): Apply 2006-07-04 change for xterm.c.
2015 2006-07-17 Richard Stallman <rms@gnu.org>
2017 * keyboard.c (Vcommand_error_function): New variable.
2018 (syms_of_keyboard): Defvar it.
2019 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
2021 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
2023 2006-07-17 Kim F. Storm <storm@cua.dk>
2025 * xdisp.c (handle_single_display_spec): Ensure the right value of
2026 it->position is saved by push_it.
2027 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
2028 (reseat_1): Don't setup it->object twice.
2029 (set_iterator_to_next): No need to set it->object after pop_it.
2030 (move_it_to): Explicitly check to see if last move reached to_charpos.
2032 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
2034 * xdisp.c (display_mode_line): Preserve match data.
2036 2006-07-14 Kim F. Storm <storm@cua.dk>
2038 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
2039 (init_winsock): Load them. Use ws2_32.dll.
2040 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
2041 (sys_accept): Undo last change. Instead, set child status to
2042 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
2043 sys_select will wakeup the reader thread.
2044 (_sys_wait_accept): New function used by reader thread to wait for
2045 an incoming connection on a server socket.
2047 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
2049 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
2050 server socket (FILE_LISTEN flag).
2052 2006-07-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2054 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
2056 2006-07-14 Kim F. Storm <storm@cua.dk>
2058 * w32.c: Fix high cpu load for server sockets.
2059 (pfn_WSAEventSelect): New function ptr.
2060 (init_winsock): Load it.
2061 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
2062 char_avail event object to FD_ACCEPT.
2063 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
2064 socket's char_avail event object to FD_READ|FD_CLOSE.
2066 * w32.h (FILE_LISTEN): New filedesc flag value.
2068 2006-07-13 Kim F. Storm <storm@cua.dk>
2070 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
2071 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
2072 Simplify loops and use CAR for Bnth and Belt.
2074 * data.c (Findirect_function): Optimize for no indirection.
2076 * eval.c (Fthrow): Remove loop around Fsignal.
2077 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
2078 Use original function name in all signaled errors.
2079 Simplify Fsignal calls (no return).
2080 (funcall_lambda): Simplify Fsignal calls (no return).
2082 2006-07-13 Andreas Schwab <schwab@suse.de>
2084 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
2087 2006-07-13 Kenichi Handa <handa@m17n.org>
2089 * editfns.c (Fformat): Fix calculation of text property positions
2092 2006-07-12 Kim F. Storm <storm@cua.dk>
2094 * lisp.h (CHECK_TYPE): New macro for generic type checking.
2095 (CAR_SAFE, CDR_SAFE): New macros.
2096 (ARRAYP, CHECK_ARRAY): New macros.
2097 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
2098 (CHECK_WINDOW_CONFIGURATION): New macro.
2099 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
2100 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2101 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
2102 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
2103 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
2104 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
2105 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2106 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
2108 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
2109 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
2111 * callint.c (Fcall_interactively):
2112 * casefiddle.c (casify_object):
2113 * editfns.c (general_insert_function):
2114 * fns.c (Flength, Felt, Ffillarray):
2115 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
2117 * data.c (wrong_type_argument): Remove loop around Fsignal.
2118 (Farrayp, Fsequencep): Use ARRAYP.
2120 (Fcar_safe): Use CAR_SAFE.
2122 (Fcdr_safe): Use CDR_SAFE.
2123 (Fsetcar, Fsetcdr): Use CHECK_CONS.
2124 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
2125 (Faset): Use CHECK_ARRAY.
2127 * fns.c (Felt): Use CHECK_ARRAY.
2128 (concat): Use CHECK_NUMBER.
2129 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
2130 (Fmemq): Use CHECK_LIST.
2131 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
2132 (assq_no_quit): Use CAR_SAFE.
2133 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
2134 Use CHECK_LIST_CONS.
2135 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
2137 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
2139 * casetab.c (check_case_table):
2140 * category.c (check_category_table):
2141 * marker.c (Fcopy_marker):
2142 * syntax.c (check_syntax_table):
2143 * xfaces.c (load_pixmap): Use CHECK_TYPE.
2145 * fns.c (Fcopy_sequence, concat):
2146 * fringe.c (Fdefine_fringe_bitmap):
2147 * lread.c (check_obarray): Cleanup wrong_type_argument use.
2149 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
2151 * keymap.c (Fdefine_key, Flookup_key):
2152 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
2154 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
2156 * search.c (Fset_match_data): Use CHECK_LIST.
2158 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
2160 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
2161 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
2163 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2165 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
2167 * dired.c: Include blockinput.h.
2168 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
2170 * editfns.c: Include blockinput.h.
2171 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
2174 * fileio.c: Include blockinput.h.
2175 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
2177 (search_embedded_absfilename): Remove spurious xfree.
2179 2006-07-11 Kim F. Storm <storm@cua.dk>
2181 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
2182 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
2183 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
2184 Signal error if TIMEOUT is not a number.
2185 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
2186 The rework of sit_for args also fixes several incorrect Qt args
2187 which should have been 1.
2188 (Fredisplay): Pass 1 instead of Qt to swallow_events and
2189 detect_input_pending_run_timers.
2191 * lisp.h (sit_for): Update prototype.
2192 (Fredisplay): Add EXFUN.
2194 * dispextern.h (sit_for): Remove prototype.
2196 * callint.c (Fcall_interactively):
2197 * minibuf.c (temp_echo_area_glyphs):
2198 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
2199 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
2201 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2203 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
2205 2006-07-11 Kim F. Storm <storm@cua.dk>
2207 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
2208 input is available. Fix test for redisplay_dont_pause non-nil.
2209 Specbind redisplay-dont-pause to t if FORCE non-nil.
2211 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
2213 * puresize.h (BASE_PURESIZE): Increment to 1211000.
2215 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
2216 (Fsit_for): Function deleted.
2218 * keyboard.c (command_loop_1, Fexecute_extended_command):
2219 Call sit_for instead of Fsit_for.
2221 * minibuf.c (temp_echo_area_glyphs): Likewise.
2223 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2225 * syntax.c (Fforward_comment): Revert the reversion.
2226 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2228 2006-07-09 John Paul Wallington <jpw@pobox.com>
2230 * syntax.c (Fforward_comment): Revert previous change.
2232 2006-07-09 Kim F. Storm <storm@cua.dk>
2234 * window.c (Fforce_window_update): Doc fix.
2236 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
2238 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
2239 directory unreadable for better user privacy.
2241 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
2243 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
2245 * lread.c (read_filtered_event): Remove `register' qualifier because it
2246 causes compilation problem with gcc-4.0.2-20051125 on amd64.
2247 (readevalloop): Remove unused var `bpos'.
2248 Yet another int/Lisp_Object mixup (YAILOM).
2250 2006-07-07 Eli Zaretskii <eliz@gnu.org>
2252 * keyboard.c (Fexecute_extended_command): Mention the argument
2253 PREFIXARG in the doc string.
2255 2006-07-07 Kim F. Storm <storm@cua.dk>
2257 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2259 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
2261 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
2262 clash detection using the base buffer.
2264 * puresize.h (BASE_PURESIZE): Increment to 1210500.
2266 2006-07-04 Kim F. Storm <storm@cua.dk>
2268 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
2270 2006-07-04 Kenichi Handa <handa@m17n.org>
2272 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
2273 to update Voverriding_fontspec_alist.
2275 2006-07-03 Richard Stallman <rms@gnu.org>
2277 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
2279 * xfaces.c (Fface_attribute_relative_p): Doc fix.
2281 * textprop.c (Fget_char_property_and_overlay): Doc fix.
2283 * eval.c (Fdefvaralias): Doc fix.
2285 2006-07-03 Kim F. Storm <storm@cua.dk>
2287 * dispnew.c (sit_for): Fix preempt condition.
2289 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
2291 * lread.c (read_filtered_event): Treat select-window just like
2294 2006-07-02 Kim F. Storm <storm@cua.dk>
2296 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
2297 to ever fit the tool-bar,
2298 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
2299 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
2300 (redisplay_tool_bar): Only clear desired matrix if we actually
2301 change the tool-bar window height. Only try to make the tool-bar
2302 window bigger if there is actually room for it.
2304 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
2306 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
2307 SPI_GETWORKAREA to find the dimensions of the screen work area,
2308 and adjust vertical position of the frame in order to avoid being
2309 covered by the task bar.
2311 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
2312 f->left_pos and SH_SHOW instead of f->top_pos in the call to
2313 CreateWindow. Record the actual position in f->left_pos and
2316 2006-06-30 John Paul Wallington <jpw@pobox.com>
2318 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
2319 Doc fix - default value has changed.
2321 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2323 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
2325 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
2327 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
2329 * macterm.c (Qeql): Add extern.
2330 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
2331 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
2332 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2333 Change keys of Vmac_atsu_font_table from strings to numbers.
2334 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
2335 (init_font_name_table) [USE_ATSUI]: Use it.
2336 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2337 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
2338 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
2339 only when saved_ts_script_language_on_focus coincides with
2340 Vmac_ts_script_language_on_focus.
2341 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
2342 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
2343 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
2344 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
2346 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
2348 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
2349 (Ffield_string_no_properties, Ffield_end): Mention
2350 args-out-of-range error condition in docstring.
2352 2006-06-27 Kim F. Storm <storm@cua.dk>
2354 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
2356 2006-06-25 Kim F. Storm <storm@cua.dk>
2358 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
2359 version 2.4 and later.
2361 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
2363 * xfns.c (Fx_create_frame): Set font parameter directly instead of
2364 using x_default_parameter, since x_get_args clears the parm alist.
2366 2006-06-24 Eli Zaretskii <eliz@gnu.org>
2368 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
2371 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
2373 * lread.c (read_escape): When an unknown Unicode code point is
2374 encountered as a string or character escape, signal an error.
2376 2006-06-23 Kim F. Storm <storm@cua.dk>
2378 * .gdbinit (pitx): Dump iterator stack.
2380 * xdisp.c (handle_composition_prop): Push iterator on stack.
2381 (set_iterator_to_next): Pop iterator at end of composition.
2383 2006-06-23 Martin Rudalics <rudalics@gmx.at>
2385 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
2386 itself on DOS_NT platforms, if the old and new names are identical
2387 but for the letter-case.
2389 2006-06-21 Kim F. Storm <storm@cua.dk>
2391 * dispextern.h (struct it): Add `position' member to iterator stack.
2392 Rename `pos' member to `current'. Rearrange and add comments.
2394 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
2395 if we get any overlays.
2396 (set_cursor_from_row): Don't clobber `end' if we rescan from
2398 (push_it, pop_it): Save it->position.
2400 2006-06-19 Richard Stallman <rms@gnu.org>
2402 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
2403 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
2404 for the case of a top-level window and the following minibuffer.
2405 Don't exit because of no `next' when there is a parent.
2406 Use the FIRST_ONLY feature when resizing following windows.
2408 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
2410 2006-06-17 Kim F. Storm <storm@cua.dk>
2412 * dispnew.c (update_frame): Check for input pending on entry.
2413 (update_window, update_frame_1): Break loop if input is detected.
2415 2006-06-16 Francis Litterio <flitterio@gmail.com>
2417 * xterm.c (x_check_expected_move, handle_one_xevent)
2418 (x_set_offset, x_check_fullscreen): Extensive changes to make
2419 frame positioning deterministic under X.
2421 * xterm.h (x_output): Add members left_before_move and
2422 top_before_move. Removed members expected_left and expected_top.
2424 2006-06-16 Kim F. Storm <storm@cua.dk>
2426 * dispextern.h (struct it): Add union to iterator stack to save
2427 image, composition, and stretch specific paramters.
2429 * xdisp.c (next_overlay_string): Fix assert.
2430 (push_it, pop_it): Handle composition and stretch specific values.
2431 Only handle it->slice in image (for now).
2432 (back_to_previous_visible_line_start): Continue search if newline is
2433 part of a compisition. Simplify.
2434 (reseat_1): Set it->object to buffer.
2435 (set_iterator_to_next): Set it->object to string or buffer, when
2436 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
2437 (next_element_from_composition): Set it->object to buffer if not
2439 (set_cursor_from_row): Only save start of string if not already
2440 done to handle multiple strings in a row.
2442 * .gdbinit (pitx): Show composition parameters.
2443 (pgx, pg): New commands to print a glyph structure.
2444 (pgi, pgn): New commands to print specific/next glyph.
2445 (pgrowx, pgrow): New commands to print all glyphs in a row.
2447 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2449 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
2450 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
2452 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
2453 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
2454 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
2455 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2456 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2457 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
2458 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
2459 Services functions to get size of main display in pixels.
2461 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
2463 * xdisp.c (back_to_previous_visible_line_start):
2464 Reset it->continuation_lines_width.
2466 2006-06-14 Richard Stallman <rms@gnu.org>
2468 * eval.c (Fdefconst): Mark variable as risky.
2470 * callproc.c (Fcall_process): Doc fix.
2472 * window.c (adjust_window_trailing_edge): Don't break out of the loop
2473 because there's no next window, if there are parallel windows.
2474 Do break out when WINDOW is nil.
2476 2006-06-14 Kim F. Storm <storm@cua.dk>
2478 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
2479 iterator stack (instead of hardcoded number). Increase from 2 to
2480 4 to make room for propertized overlay strings before and after a
2481 display string, image or composition.
2482 (struct it): Add image_id and method members to iterator stack.
2484 * xdisp.c (init_from_display_pos): Don't set it->method and
2485 overlay_string_index after pop_it. Add asserts.
2486 (handle_stop): Look for overlay strings around a display string,
2487 image, or composition. Handle properties on those strings.
2488 (next_overlay_string): Don't set string, pos or method after pop_it.
2489 (get_overlay_strings_1): Split from get_overlay_strings; don't
2490 modify it if no overlay strings are found.
2491 (get_overlay_strings): Use get_overlay_strings_1. Always set
2492 it->string and it->method.
2493 (push_it): Push it->image_id and it->method. Push it->object
2494 instead of it->string if method is GET_FROM_IMAGE.
2495 (pop_it): Pop it->image_id and it->method. Ppo it->object
2496 instead of it->string if method is GET_FROM_IMAGE.
2497 Reset it->current.string_pos if popped it->string is nil.
2498 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
2499 whether a given change was correct; but the change is correct.
2500 Clear it->string_from_display_prop_p.
2501 (set_iterator_to_next): Rely on it->method and it->image_id from
2502 iterator stack, instead of setting them explicitly after pop_it.
2504 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
2505 negative time forces redisplay even when input is available.
2506 (Fsit_for): Doc fix.
2508 2006-06-13 Kim F. Storm <storm@cua.dk>
2510 * dispnew.c: Modify preemptive redisplay to be based on periodic
2512 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
2513 (Vredisplay_preemption_period): New variable.
2514 (syms_of_display): DEFVAR_LISP and initialize it.
2515 (preemption_period, preemption_next_check): New variables.
2516 (update_frame, update_single_window): Initialize them based on
2517 Vredisplay_preemption_period if !force_p.
2518 (update_window, update_frame_1): Use them to determine when to
2521 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
2523 * lread.c (read_escape): Provide a Unicode character escape
2524 syntax; \u followed by exactly four or \U followed by exactly
2525 eight hex digits in a comment or string is read as a Unicode
2526 character with that code point.
2528 2006-06-09 Eli Zaretskii <eliz@gnu.org>
2530 * window.c (window_scroll_pixel_based): Signal "Beginning of
2531 buffer" when scroll-down at the beginning of an empty buffer.
2533 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2535 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2536 Exclude 0x7f from ASCII range.
2538 2006-06-05 Jason Rumney <jasonr@gnu.org>
2540 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
2541 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
2542 (x_scroll_bar_report_motion): Remove workarounds for
2543 versions of Windows NT < 3.51.
2545 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
2546 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
2548 2006-06-04 David Kastrup <dak@gnu.org>
2550 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
2553 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2555 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
2557 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
2559 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
2560 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
2561 [USE_MAC_TSM]: Likewise.
2562 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
2563 (Qbefore_string) [USE_MAC_TSM]: Add extern.
2564 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
2565 ActivateTSMDocument/DeactivateTSMDocument.
2566 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
2567 (mac_handle_window_event) [USE_MAC_TSM]: Handle
2568 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2569 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
2570 (install_window_handler) [USE_MAC_TSM]: Install it. Register
2571 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2572 (keycode_to_xkeysym_table): Add entry for f16.
2573 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
2574 before/after passing keystroke event to toolbox dispatcher.
2575 (init_tsm) [USE_MAC_TSM]: New function.
2576 (mac_initialize) [USE_MAC_TSM]: Call it.
2577 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
2579 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
2581 2006-06-02 John Paul Wallington <jpw@gnu.org>
2583 * xfns.c (x_set_name_internal): Set icon to `text', derived from
2584 name, when frame's icon_name isn't a string rather than only when
2587 2006-06-03 Eli Zaretskii <eliz@gnu.org>
2589 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
2592 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
2594 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
2597 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2599 * xdisp.c (next_element_from_composition): Set it->object to
2600 it->string if composition is coming from string.
2601 (set_cursor_from_row): Don't return 0 unless row displays a
2603 (dump_glyph): Dump composite glyph.
2605 2006-06-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2607 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
2609 2006-06-01 Richard Stallman <rms@gnu.org>
2611 * window.c (Fsplit_window): Doc fix.
2613 2006-06-01 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
2615 * process.c (deleted_pid_list): New variable to store the pids
2616 of deleted processes. Declare it only if SIGCHLD is defined.
2617 (init_process): Initialize it.
2618 (syms_of_process): Staticpro it.
2619 (Fdelete_process): Add pid of the deleted process to it. Check after
2620 the addition and before the kill if the process is already stopped,
2621 in which case it is deleted from the list and not killed.
2622 (sigchld_handler): Define it only if SIGCHLD is. Search the process
2623 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
2624 Original idea by Stefan Monnier.
2626 2006-06-01 Kim F. Storm <storm@cua.dk>
2628 * dispnew.c (sit_for): Perform redisplay even if input is pending
2629 when redisplay-dont-pause is non-nil.
2631 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2633 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
2634 (XTread_socket): Remove obsolete comment.
2636 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2638 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
2641 2006-06-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2643 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
2646 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
2648 2006-05-31 Juri Linkov <juri@jurta.org>
2650 * minibuf.c (Vhistory_add_new_input): New variable.
2651 (read_minibuf): Use it.
2652 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
2653 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
2655 2006-05-31 Kim F. Storm <storm@cua.dk>
2657 * process.c (select_wrapper): Add wrapper around select to work around
2658 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
2659 select called from wait_reading_process_output.
2661 2006-05-30 Andreas Schwab <schwab@suse.de>
2663 * xmenu.c (Fmenu_bar_start): Return a value.
2665 2006-05-30 Richard Stallman <rms@gnu.org>
2667 * coding.c (Ffind_operation_coding_system): Doc fix.
2669 2006-05-30 Eli Zaretskii <eliz@gnu.org>
2671 * w32term.c (x_draw_hollow_cursor): Fix last change.
2673 2006-05-29 Kim F. Storm <storm@cua.dk>
2675 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
2677 2006-05-29 Eli Zaretskii <eliz@gnu.org>
2679 * coding.c (Ffind_operation_coding_system): Doc fix.
2681 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2683 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
2684 Call mac_set_font_info_for_selection if font panel is made visible.
2686 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
2687 (mac_font_panel_visible_p, mac_show_hide_font_panel)
2688 [USE_MAC_FONT_PANEL]: New functions.
2689 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
2690 immediately if font panel is not visible.
2692 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
2695 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
2697 * search.c (matcher_overflow): Mark as NO_RETURN.
2699 * xterm.c (x_connection_closed): Likewise.
2701 * sysdep.c (croak): Likewise.
2703 * sound.c (sound_perror, alsa_sound_perror): Likewise.
2705 * lisp.h (die, nsberror): Likewise.
2707 2006-05-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2709 * sound.c (alsa_open, alsa_configure, alsa_write): Move
2710 assignment to err out of if-statement.
2712 * gtkutil.c (menu_nav_ended): New function.
2713 (create_menus): Connect menu_nav_ended to "selection-done" to fix
2716 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
2718 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
2720 * charset.h (invalid_character): Mark as NO_RETURN.
2722 2006-05-29 Kenichi Handa <handa@m17n.org>
2724 * coding.c (Ffind_operation_coding_system): Call a function by
2725 safe_call1 instead of call1.
2727 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2729 * window.c (struct saved_window): Add `dedicated'.
2730 (Fset_window_configuration, save_window_save): Save/restore the
2733 2006-05-28 Kim F. Storm <storm@cua.dk>
2735 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
2736 don't update w->cursor and return 0. Return 1 on success.
2737 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
2740 * dispextern.h (set_cursor_from_row): Update prototype.
2742 2006-05-28 Kim F. Storm <storm@cua.dk>
2744 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
2745 parameters. Adjust x and width in case cursor in on a partially
2746 visible stretch glyph on the left edge.
2747 (erase_phys_cursor): Don't erase into left fringe/margin in case
2748 previous cursor glyph is a partially visible stretch glyph on left.
2750 * dispextern.h (get_phys_cursor_geometry): Update prototype.
2752 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
2753 cursor and erasing cursor on partially visible stretch glyph on left.
2754 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
2756 * macterm.c: Likewise.
2758 * w32term.c: Likewise.
2760 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2762 * macselect.c (mac_handle_apple_event):
2763 Return errAEEventNotHandled if key binding is not found.
2765 2006-05-26 Eli Zaretskii <eliz@gnu.org>
2767 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
2768 [__MINGW32__]: MinGW-specific declaration of `etext'.
2770 * w32heap.c (etext, edata): Remove unused definitions.
2772 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
2774 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
2775 Incorporate the exclusive file-opening functionality into the behavior
2776 when OK-IF-ALREADY-EXISTS is nil.
2777 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
2779 2006-05-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2781 * sound.c (alsa_configure): Move get period/buffer_size after
2784 2006-05-26 Kenichi Handa <handa@m17n.org>
2786 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
2787 . BUFFER) in TARGET.
2789 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
2791 * image.c (png_load): Don't call fclose on NULL.
2793 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
2795 * fns.c (Fyes_or_no_p):
2796 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
2799 2006-05-25 Juri Linkov <juri@jurta.org>
2801 * lisp.h (Fread_from_minibuffer): Decrement number of args.
2803 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
2804 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
2806 * buffer.c (mode-line-format): Fix docstring.
2808 2006-05-25 Richard Stallman <rms@gnu.org>
2810 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
2812 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
2814 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2816 2006-05-24 Alan Mackenzie <acm@muc.de>
2818 * lread.c (Vload_history): Enhance doc-string to say that the file
2819 is the absolute truename of the loaded file.
2821 * lread.c (Vafter_load_alist): doc-string: state that an element
2822 now has a regexp to match file names, not a file name as such.
2824 * lread.c (readevalloop): Call file-truename on the name for
2825 load-history, except at preloading time.
2827 * lread.c (Fload): At preloading time, preserve the extension of
2828 the filename which goes into load-history. New var hist_file_name.
2830 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
2831 function do-after-load-evaluation.
2833 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2835 * mac.c (ae_attr_table): New variable.
2836 (syms_of_mac): Intern and staticpro its elements.
2837 (mac_aelist_to_lisp): Also convert Apple event attributes.
2838 (mac_ae_put_lisp): New function.
2839 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
2841 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
2843 * macselect.c (Qemacs_suspension_id): New variable.
2844 (syms_of_macselect): Intern and staticpro it.
2845 (struct suspended_ae_info): New struct.
2846 (deferred_apple_events, defer_apple_events)
2847 (Fmac_process_deferred_apple_events): Use it.
2848 (suspended_apple_events): New variable.
2849 (mac_handle_apple_event_1): New function.
2850 (mac_handle_apple_event): Use it. Don't process previously
2852 (cleanup_suspended_apple_events, get_suspension_id)
2853 (cleanup_all_suspended_apple_events): New functions.
2854 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
2856 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
2857 (Fmac_resume_apple_event): New defuns.
2858 (syms_of_macselect): Defsubr them.
2860 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
2861 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
2863 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
2864 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
2865 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
2866 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
2867 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
2869 (typeUTF8Text, kEventParamWindowMouseLocation)
2870 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
2871 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
2873 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2875 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
2876 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
2877 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
2878 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
2879 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
2880 resource to backtranslate key with modifiers.
2881 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
2883 2006-05-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2885 * xterm.c: Remove declarations already in xterm.h
2887 * xterm.h: Add extern declarations for x_clear_errors,
2888 x_fully_uncatch_errors, x_catching_errors and
2889 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
2891 2006-05-21 Richard Stallman <rms@gnu.org>
2893 * xfaces.c (best_matching_font): Abort for best == NULL
2894 before we start to use it.
2896 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
2898 2006-05-20 Kim F. Storm <storm@cua.dk>
2900 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
2902 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2904 * macterm.c (convert_fn_keycode): Fix last change.
2906 2006-05-19 Eli Zaretskii <eliz@gnu.org>
2908 * w32.c (init_environment): Perform the processing of environment
2909 variables on a copy of default variables and their values, not on
2910 the original. Simplify code that calls ExpandEnvironmentStrings
2911 and make buf1[] and buf2[] more visible for easier debugging.
2913 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2915 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
2917 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
2919 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
2921 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
2922 Forward keyUp events to toolbox_dispatcher.
2924 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
2926 2006-05-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2928 * config.in: Regenerated (HAVE_ALSA).
2930 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
2931 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
2932 (snd_error_quiet, alsa_init): New functions.
2933 (vox_init): Return 0 if unable to open device.
2934 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
2936 (struct sound_device): Add period_size.
2937 (wav_play, au_play): Use period_size if set.
2939 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
2940 (ALL_CFLAGS): Add CFLAGS_SOUND.
2942 2006-05-18 Kenichi Handa <handa@m17n.org>
2944 * callproc.c (Fcall_process): Reject encoding arguments by
2945 ascii-incompatible coding systems (e.g. utf-16).
2947 * coding.c (Qascii_incompatible): New variable.
2948 (syms_of_coding): Setup Qascii_incompatible.
2949 (setup_coding_system): Be sure to initialize coding->common_flags.
2950 Check `ascii-incompatible' property of the coding system.
2952 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
2954 2006-05-18 Kim F. Storm <storm@cua.dk>
2956 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
2957 geometry when backtracking in case last image doesn't fit on line.
2959 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
2961 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
2962 more than height of one frame default line.
2964 2006-05-17 Richard Stallman <rms@gnu.org>
2966 * xfaces.c (better_font_p): Any font beats no font.
2967 (best_matching_font): Simplify based on above change.
2969 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
2971 2006-05-16 Kim F. Storm <storm@cua.dk>
2973 * xterm.c (handle_one_xevent): Check that f is not NULL before
2974 calling x_kill_gs_process.
2976 2006-05-14 Richard Stallman <rms@gnu.org>
2978 * textprop.c (Fnext_single_char_property_change)
2979 (Fprevious_single_char_property_change): Don't allow returning
2980 value beyond LIMIT in any cases.
2981 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
2983 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
2985 2006-05-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2987 * xterm.c (handle_one_xevent): Check that f is not NULL before
2988 calling _XEditResCheckMessages.
2990 2006-05-14 Kim F. Storm <storm@cua.dk>
2992 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
2994 2006-05-13 Eli Zaretskii <eliz@gnu.org>
2996 * frame.c (x_set_border_width): Fix error message to say "frame",
2999 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3001 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
3003 * intervals.c (set_point_both): Fix mixup before before and after
3006 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
3007 while setting point temporarily.
3009 2006-05-11 Richard Stallman <rms@gnu.org>
3011 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
3013 2006-05-11 Kim F. Storm <storm@cua.dk>
3015 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
3017 2006-05-11 Kenichi Handa <handa@m17n.org>
3019 * fileio.c (Finsert_file_contents): Fix for the case of IO error
3020 while handling replace operation.
3022 2006-05-10 Kenichi Handa <handa@m17n.org>
3024 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
3025 chosen for the default face was different from the frame font,
3026 adjust the frame font.
3028 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3030 * image.c (Qduration) [MAC_OS]: Undo previous change.
3031 (syms_of_image) [MAC_OS]: Likewise.
3032 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
3034 * macfns.c (x_to_mac_color): Fix shift amount change.
3035 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
3036 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
3038 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
3039 Vmac_services_selection. All uses changed.
3040 (mac_store_service_event): Rename from mac_store_services_event in
3043 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
3045 [MAC_OSX] (mac_store_service_event): Rename from
3046 mac_store_services_event. All callers changed.
3047 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
3048 FACE_ID and C. All callers changed.
3049 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
3050 mac_set_font_info_for_selection when focus frame is destroyed.
3051 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
3053 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
3056 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
3058 * keymap.c (describe_map): Avoid generating duplicate entries if
3059 the shadowed binding has the same definition.
3061 2006-05-09 Kenichi Handa <handa@m17n.org>
3063 * keymap.c (push_key_description): Handle invalid character key.
3065 2006-05-08 Kenichi Handa <handa@m17n.org>
3067 * callproc.c (Fcall_process): Use system_eol_type for encoding
3068 arguments if eol_type is not yet decided.
3070 * coding.h (system_eol_type): Extern it.
3072 * coding.c (setup_coding_system): For invalid coding-system, set
3073 coding->eol_type to CODING_EOL_UNDECIDED.
3074 (encode_coding): Cancel previous change.
3075 (shrink_encoding_region): Likewise.
3076 (code_convert_region1): Likewise.
3077 (code_convert_string1): Likewise.
3078 (code_convert_string_norecord): Likewise.
3080 * fileio.c (choose_write_coding_system): Use system_eol_type for
3081 encoding if eol_type is not yet decided.
3083 * process.c (setup_process_coding_systems): Use system_eol_type
3084 for encoding if eol_type is not yet decided.
3085 (read_process_output): Likewise.
3086 (send_process): Likewise.
3088 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
3090 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
3092 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3094 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
3095 (syms_of_mac): Likewise for defsubr.
3097 * macfns.c (mac_set_font): New function.
3098 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
3099 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
3100 kWindowToolbarButtonAttribute when creating window.
3101 (Fmac_clear_font_name_table): Move from macfns.c.
3102 (syms_of_macfns): Likewise for defsubr.
3103 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
3104 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
3106 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
3107 and build is done on Mac OS X 10.2 and later.
3109 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
3110 (mac_store_services_event): Change return type in extern.
3112 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
3114 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
3115 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
3116 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
3117 (QWindow) [MAC_OSX]: Likewise.
3118 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
3119 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
3120 (syms_of_macterm) [USE_ATSUI]: Defvar it.
3121 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
3122 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
3123 (syms_of_macterm): Intern and staticpro them.
3124 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
3125 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
3127 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
3128 [MAC_OSX] (mac_store_services_event): Likewise.
3129 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
3130 kEventWindowToolbarSwitchMode event.
3131 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
3132 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
3133 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
3134 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
3135 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
3137 * macterm.h (mac_set_font_info_for_selection): Add extern.
3139 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3141 * image.c (Qduration) [MAC_OS]: New variable.
3142 (syms_of_image) [MAC_OS]: Intern and staticpro it.
3143 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
3144 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
3145 instead of cfstring_create_with_string.
3147 2006-05-06 Kim F. Storm <storm@cua.dk>
3149 * .gdbinit (xframe): Print frame name.
3150 (xlist): New command to print a list (max 10 elements).
3151 (xpr): Print lisp object of any type.
3152 (pitx): Print it->pixel_width.
3154 2006-05-05 Kenichi Handa <handa@m17n.org>
3156 * xdisp.c (handle_composition_prop): Fix for the case of empty
3157 composition component.
3159 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3161 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
3164 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
3167 * macterm.h (mac_make_lispy_event_code): Remove extern.
3168 (mac_post_mouse_moved_event): Add extern.
3169 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3170 `const AEDesc *' in externs.
3171 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
3173 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3175 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
3176 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
3177 Use xrealloc instead of repeated xmalloc/xfree.
3178 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
3181 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
3183 * macselect.c: Update copyright year.
3184 (mac_store_apple_event): Change return type to void in extern.
3185 (mac_handle_apple_event): Don't get return value from
3186 mac_store_apple_event.
3187 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
3188 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
3189 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
3190 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
3191 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
3192 implementation using create_apple_event_from_drag_ref.
3193 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3194 (mac_do_receive_dragUPP): Move variables from macterm.c.
3195 (install_drag_handler, remove_drag_handler): New functions.
3197 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
3198 path select also for proxy icon click.
3199 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
3200 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
3201 (xlfdpat_create): Remove unused label `error' and trailing sentences.
3202 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
3203 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
3205 (install_drag_handler, remove_drag_handler): Add extern.
3206 (mac_store_apple_event): Change return type to void. All uses changed.
3207 Create Lisp object from Apple event and store it into input event.
3208 (mac_make_lispy_event_code): Remove function.
3209 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
3210 (install_window_handler): Call install_drag_handler.
3211 (remove_window_handler): Call remove_drag_handler.
3213 2006-05-03 Richard Stallman <rms@gnu.org>
3215 * sound.c (Fplay_sound_internal): Dynamically allocate
3216 current_sound_device and current_sound.
3217 (sound_cleanup): Free them.
3219 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
3220 when inside a keyboard macro.
3222 2006-05-02 Andreas Schwab <schwab@suse.de>
3224 * xmenu.c (restore_menu_items): Return a value.
3226 2006-05-01 Martin Rudalics <rudalics@gmx.at>
3228 * syntax.c (Fforward_comment): Detect generic comment at beginning of
3229 buffer when moving backwards.
3231 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3233 * dispnew.c (update_window): Don't set changed_p when mode/header
3236 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
3237 (get_glyph_face_and_encoding, get_char_face_and_encoding):
3238 Don't distinguish known faces from others.
3240 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
3241 through typeFileURL failed.
3243 * macfns.c (mac_update_title_bar): New function.
3244 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
3245 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
3246 Call mac_prepare_for_quickdraw.
3248 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
3249 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
3250 (enum pcm_status): New enum.
3251 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
3252 (XCharStructRow): Remove. Now validity is represented by
3253 non-negativeness of sum of ascent and descent.
3254 (struct MacFontStruct): Change type of member `rows'.
3255 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
3257 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
3258 Adjust endpoints of strictly horizontal/vertical lines.
3259 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
3260 (pcm_init, pcm_get_status): New functions.
3261 (x_per_char_metric, XLoadQueryFont): Use them instead of
3262 XCharStructRow and related macros.
3263 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
3264 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
3265 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
3266 and window path pop-up menu on title bar.
3267 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
3269 * macterm.h (mac_update_title_bar): Add extern.
3270 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
3271 (FRAME_FILE_NAME): New macro.
3273 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
3275 2006-04-30 Richard Stallman <rms@gnu.org>
3277 * keymap.c (Fdefine_key): Improve error message
3278 when KEY begins with a non-prefix key.
3280 2006-04-30 Martin Rudalics <rudalics@gmx.at>
3282 * syntax.c (Fforward_comment): Don't forget to break out of the loop
3283 when we skipped backward over a generic comment.
3285 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
3287 * .gdbinit (pp1, pv1): Only print value as expression is now
3288 printed out by gud-print.
3289 (pv1): Correct doc string.
3291 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
3293 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
3294 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
3295 keymap.c:895: error: address of register variable `def' requested.
3297 2006-04-26 Jason Rumney <jasonr@gnu.org>
3299 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
3301 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
3302 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
3303 where we preempt mouse_button_timer.
3305 2006-04-25 Miles Bader <miles@gnu.org>
3307 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
3309 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
3311 * process.h: Include headers for pid_t.
3313 2006-04-24 Kim F. Storm <storm@cua.dk>
3315 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
3316 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
3317 (produce_stretch_glyph): Assume that face box height and width is
3318 already included in stretch glyph size so caller doesn't have to
3319 consider the extra space otherwise added (fixes problem in ses.el).
3321 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
3322 matrices to force recalculation of tool-bar height after font change.
3324 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
3325 Clear it when done, so we don't accidentally draw a second copy of
3326 the tool-bar after resetting f->n_tool_bar_rows.
3327 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
3328 we recalculate f->n_tool_bar_rows.
3330 2006-04-23 Lars Hansen <larsh@soem.dk>
3332 * editfns.c (find_field): Fix comment.
3333 (Ffield_beginning): Fix bug when POS is at field beginning.
3335 2006-04-22 Eli Zaretskii <eliz@gnu.org>
3337 * puresize.h (BASE_PURESIZE): Increase to 1205000.
3339 2006-04-21 Kim F. Storm <storm@cua.dk>
3341 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
3342 window start is at BEGV.
3344 * dispextern.h (struct image): New member `corners'.
3345 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
3347 * image.c (four_corners_best): New arg CORNERS specifies what pixels
3348 to look at in case image has margin.
3349 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
3350 (image_background, image_background_transparent)
3351 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
3352 (gif_load): Set img->corners according to image's margin spec.
3353 Use img->corners values directly where applicable.
3354 Save image extension data in img->data.lisp_val.
3355 (gif_clear_image): New function to free img->data.lisp_val.
3356 (gif_type): Use it instead of generic x_clear_image.
3357 (Fimage_extension_data): New defun.
3358 (syms_of_image): Defsubr it.
3360 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
3362 * window.c (Fdisplay_buffer): Doc fix.
3364 2006-04-21 Eli Zaretskii <eliz@gnu.org>
3366 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
3368 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3370 * image.c [MAC_OS] (xpm_load_image): Fill in background field
3371 while we have ximg handy.
3373 * macmenu.c (restore_menu_items, save_menu_items): New functions
3375 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
3376 changes for xmenu.c.
3378 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
3379 (add_mac_font_name): New function.
3380 (init_font_name_table): Use it. Adopt the first found font from
3381 those having the same family name.
3383 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
3385 * xdisp.c (note_mouse_highlight): Use build_string.
3387 2006-04-20 Lars Hansen <larsh@soem.dk>
3389 * textprop.c (Fremove_list_of_text_properties):
3390 Ensure modify_region is called only when buffer is modified and that
3391 signal_after_change is allways called in that case.
3393 * print.c (PRINTFINISH): Call signal_after_change.
3395 2006-04-20 Kim F. Storm <storm@cua.dk>
3397 * xdisp.c (redisplay_window): Fix last change.
3399 * xdisp.c (redisplay_window): If current window start is not at the
3400 beginning of a line, select a new window start if buffer is modified
3401 and window start is in the modified region, but the first change is
3402 before window start.
3404 2006-04-18 Richard Stallman <rms@gnu.org>
3406 * xmenu.c (restore_menu_items, save_menu_items): New fns.
3407 (set_frame_menubar): Use save_menu_items. Save updated vector in
3408 the frame before unwinding it. Don't use unuse_menu_items.
3409 Don't use discard_menu_items.
3410 (digest_single_submenu): Abort if an item is not in a pane.
3411 (init_menu_items): Put the error check at the top.
3413 * keymap.c (describe_map): Make "shadowed" warning more verbose.
3415 * window.c (adjust_window_trailing_edge): Correctly distinguish
3416 series vs parallel cases, even when window has no parent.
3418 * abbrev.c (record_symbol): New function.
3419 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
3421 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3423 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
3426 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3427 (create_apple_event_from_event_ref, xrm_get_preference_database)
3428 (cfstring_create_normalized): Don't check return value of xmalloc.
3430 * macselect.c (get_scrap_target_type_list, defer_apple_events)
3431 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
3432 return value of xmalloc/xrealloc.
3434 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
3435 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
3436 (XLoadQueryFont, mac_store_apple_event): Don't check return value
3439 2006-04-17 Kim F. Storm <storm@cua.dk>
3441 * window.c (coordinates_in_window): On the vertical border,
3442 calculate the row number measured from the top of the window, not
3443 the top of the frame.
3444 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
3445 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
3447 2006-04-16 Eli Zaretskii <eliz@gnu.org>
3449 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
3451 2006-04-16 Romain Francoise <romain@orebokech.com>
3453 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
3455 2006-04-16 Andreas Schwab <schwab@suse.de>
3457 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
3459 2006-04-15 Romain Francoise <romain@orebokech.com>
3461 * puresize.h (BASE_PURESIZE): Increment to 1210000.
3463 2006-04-13 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3465 * print.c (Fprin1_to_string): Mention in the `doc' that the
3466 behavior is modified by `print-level' and `print-length'.
3468 2006-04-13 Kenichi Handa <handa@m17n.org>
3470 * coding.c (setup_coding_system): If eol-type is not yet decided
3471 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
3472 If coding_system is nil, return 0.
3473 (code_convert_region1): Even if coding_system is nil, don't skip
3474 conversion if system_eol_type is not LF.
3475 (code_convert_string1): Likewise.
3476 (code_convert_string_norecord): Likewise.
3478 2006-04-13 Kenichi Handa <handa@m17n.org>
3480 * coding.c (setup_coding_system): Fix previous change.
3481 (encode_coding): If eol_type is not yet decided, use system_eol_type.
3482 (shrink_encoding_region): If eol_type is not yet decided and
3483 system_eol_type is not LF, don't shrink.
3485 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
3487 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
3490 2006-04-12 Richard Stallman <rms@gnu.org>
3492 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
3494 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
3495 (Fprocess_send_eof): Abort if fail to open null device.
3497 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3499 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
3501 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
3502 assignment used as truth value. Add explicit braces to avoid
3504 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
3506 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
3507 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
3508 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
3509 Put externs in #ifdef HAVE_X_WINDOWS.
3510 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
3511 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
3512 (init_mac_osx_environment) [MAC_OSX]: Add extern.
3514 * mac.c (init_process): Remove undef.
3515 (select) [MAC_OSX]: Undefine before including sysselect.h.
3516 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
3517 Remove functions and prototypes.
3518 (parse_value): Add parentheses around + inside shift.
3519 (path_from_vol_dir_name): Make static.
3520 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
3521 [!MAC_OSX] (get_path_to_system_folder): Likewise.
3522 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
3524 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
3525 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
3527 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
3528 (x_set_mouse_color): Remove unused variable `dpy'.
3529 (Fx_create_frame): Remove unused variable `x_frame_count'.
3530 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
3531 (x_sync): Move from macterm.c.
3532 (Fx_file_dialog): Remove unused variable `default_filter_index'.
3534 * macmenu.c (min_menu_id): Make element type explicit.
3536 * macselect.c (get_flavor_type_from_symbol): Remove unused
3538 (get_scrap_private_timestamp, x_get_foreign_selection)
3539 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
3540 (Fmac_process_deferred_apple_events): Remove unused variables
3541 `keyword', `reply', `apple_event', `count', and `err'.
3543 * macterm.c: Don't include gnu.h.
3544 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
3545 (x_sync): Move to macfns.c.
3546 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
3547 variable `mask_bits'.
3548 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
3549 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
3550 (x_mac_to_emacs_modifiers): Remove function.
3551 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
3552 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
3553 Add explicit braces to avoid ambiguous `else'.
3554 (x_make_frame_visible): Remove unused variables `type',
3555 `original_top', and `original_left'.
3556 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
3557 (x_load_font): Remove unused variables `full_name', and `value'.
3558 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
3560 (do_zoom_window): Reorganize variables with respect to conditionals.
3561 (init_command_handler): Remove unused variable `err'.
3562 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
3564 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
3565 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
3566 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
3567 (do_menu_choice, have_menus_p, x_real_positions)
3568 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
3569 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
3570 (free_frame_menubar): Add externs.
3572 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
3573 (malloc, realloc, free): Add undefs.
3574 (read_load_commands): Remove unused variable `n' and `j'.
3575 (copy_data_segment): Remove unused variable `r'.
3577 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
3578 within ||. Add explicit braces to avoid ambiguous `else'.
3579 (dump_glyph_row): Remove label for `inverse_p' from legend.
3581 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
3582 Add explicit braces to avoid ambiguous `else'.
3584 2006-04-11 Micha
\e,Ak
\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3586 * dispnew.c (init_display): Don't init X display if the user asked
3587 for a non-X display.
3589 2006-04-12 Kenichi Handa <handa@m17n.org>
3591 * coding.c (setup_coding_system): Use system_eol_type for default
3594 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3596 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
3598 * data.c (wrong_type_argument): Try to avoid compiler warnings due
3599 to the fact the function is now marked as NO_RETURN.
3601 2006-04-10 Eli Zaretskii <eliz@gnu.org>
3603 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
3605 2006-04-10 Romain Francoise <romain@orebokech.com>
3607 * xrdb.c (gethomedir): Use xstrdup.
3609 2006-04-10 Andreas Schwab <schwab@suse.de>
3611 * xrdb.c (gethomedir): Make sure to always return a pointer that
3612 can be passed to free.
3614 2006-04-09 Richard Stallman <rms@gnu.org>
3616 * lisp.h (Fkill_emacs): Undo previous change.
3618 2006-04-08 Richard Stallman <rms@gnu.org>
3620 * search.c (boyer_moore): Test ch >= 0400, not >.
3622 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
3624 * puresize.h (pure_write_error): Mark as NO_RETURN.
3626 * lisp.h (args_out_of_range, args_out_of_range_3)
3628 2006-04-08 Eli Zaretskii <eliz@gnu.org>
3630 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
3631 if a menu is active on this frame.
3633 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
3635 * lisp.h (report_file_error): Mark as NO_RETURN.
3637 2006-04-08 Eli Zaretskii <eliz@gnu.org>
3639 * alloc.c [STDC_HEADERS]: Include stddef.h.
3641 * lisp.h (PSEUDOVECSIZE): Fix last change.
3643 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3645 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
3646 `raw_status_high', and `raw_status_low' with plain integers, and move
3647 them to the end of the structure.
3649 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
3650 pseudovector's size field so only the Lisp_Object fields get GC'd.
3652 * process.c (update_status, make_process, Fdelete_process)
3653 (Fprocess_status, list_processes_1, start_process_unwind)
3654 (create_process, Fmake_network_process, server_accept_connection)
3655 (wait_reading_process_output, send_process, Fprocess_running_child_p)
3656 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
3657 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
3658 `pid' and `raw_status'.
3659 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
3660 representing PIDs that are larger than most-positive-fixnum.
3662 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
3664 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
3666 2006-04-08 Eli Zaretskii <eliz@gnu.org>
3668 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
3670 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
3672 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
3673 ../lib-src/b2m.c and ../lib-src/editfns.c.
3674 (Fcurrent_time_string): Use it.
3675 Document that the year might not consume 4 columns if it's outside
3676 the range 1000-9999.
3677 Check for asctime failure.
3678 Don't assume that the output string length is always exactly 24.
3680 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3682 * macterm.c (XTread_socket): Initialize variable `f' before its use.
3684 2006-04-03 Kenichi Handa <handa@m17n.org>
3686 * image.c: Include "charset.h" and "coding.h".
3687 (x_find_image_file): Return an encoded file name.
3689 2006-04-01 Eli Zaretskii <eliz@gnu.org>
3691 * configure: Regenerated.
3693 2006-03-31 Kenichi Handa <handa@m17n.org>
3695 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
3697 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3699 * xdisp.c (syms_of_xdisp): Fix variable name.
3701 2006-03-30 Kenichi Handa <handa@m17n.org>
3703 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
3705 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
3707 * keyboard.c (process_tool_bar_item): Reorder dummy args.
3709 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3711 * keyboard.c (tool_bar_items): Use map_keymap.
3712 (process_tool_bar_item): Add dummy args to fit the required interface.
3714 2006-03-25 Eli Zaretskii <eliz@gnu.org>
3716 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
3717 to zero before calling debug_print or safe_debug_print.
3719 * print.c (print_output_debug_flag): New global variable.
3720 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
3721 OutputDebugString if print_output_debug_flag is zero.
3723 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
3725 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
3726 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
3727 (Fdecode_time): Cast tm_year to EMACS_INT.
3728 (Fcurrent_time_string): Report an invalid time specification if
3729 the argument is invalid. Also, check for out-of-range time stamps.
3731 2006-03-24 Kim F. Storm <storm@cua.dk>
3733 * xterm.c (handle_one_xevent):
3734 * w32term.c (w32_read_socket):
3735 * macterm.c (XTread_socket): Don't let key-press clear mouse face
3736 on in toolbar window if mouse-highlight is an integer.
3738 * fns.c (sxhash_list): Include last non-nil CDR in hash.
3740 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3742 * macmenu.c (enum mac_menu_kind): New enum.
3743 (min_menu_id): New variable.
3744 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
3745 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
3746 min_menu_id and enumerators in enum mac_menu_kind.
3747 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
3748 All uses changed. Add range check for menu ID.
3749 (fill_menubar): Add range check for menu ID.
3750 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
3752 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
3755 2006-03-22 Kim F. Storm <storm@cua.dk>
3757 * xdisp.c: Undo 2006-03-21 change.
3759 * term.c: Define aliases for append_glyph and produce_stretch_glyph
3760 when `static' is defined to avoid name clash with those in xdisp.c.
3762 * process.c (Faccept_process_output): Fix to comply with lisp
3763 reference. Change arg "timeout" to "seconds" and allow both
3764 integer and float value. Change arg "timeout-msec" to "millisec"
3765 and interpret" as milliseconds rather than microseconds. Fix doc
3768 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
3770 * xdisp.c (store_next_glyph): Rename from append_glyph.
3771 (generate_stretch_glyph): Rename from produce_stretch_glyph.
3772 All callers changed accordingly.
3774 2006-03-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3776 * xterm.c: x_session_initialized new variable.
3777 (x_term_init): Use x_session_initialized to check if
3778 x_session_initialize should be called.
3779 (x_initialize): Initialize x_session_initialized.
3781 2006-03-21 Kim F. Storm <storm@cua.dk>
3783 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
3784 bitmap here, but ...
3785 (update_window_fringes): ... here, so we can test if it has changed.
3787 2006-03-20 Andreas Schwab <schwab@suse.de>
3789 * dispnew.c (init_display): Check DISPLAY here.
3791 * emacs.c (main): Don't check here.
3793 * xterm.c (x_display_ok): Don't use DISPLAY env var.
3795 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3797 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
3800 2006-03-20 Eli Zaretskii <eliz@gnu.org>
3802 * emacs.c (main): Fix last change.
3804 2006-03-20 Kenichi Handa <handa@m17n.org>
3806 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
3808 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
3810 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
3812 * xterm.c (x_term_init): Remove unnecessary GCPRO.
3814 2006-03-19 Kim F. Storm <storm@cua.dk>
3816 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
3817 so it doesn't associate overlay string with following glyph by default.
3818 Allow integer property value to specify explicit number of buffer
3819 positions associate with overlay string.
3821 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
3823 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
3825 2006-03-18 Nozomu Ando <nand@mac.com>
3827 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
3828 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
3829 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
3832 * m/mips.h: Don't use unexmips on NetBSD.
3833 (LIBS_MACHINE): Move definition lower, so it doesn't use
3834 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
3835 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
3837 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
3838 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
3839 option is broken (e.g., MIPS/NetBSD).
3841 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
3843 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
3844 Remove the HAVE_X_WINDOWS conditional.
3846 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
3848 * emacs.c (main): If user asks for a display that is unavailable,
3851 * xterm.c (x_display_ok): New function.
3853 * xterm.h: Add prototype for x_display_ok.
3855 2006-03-18 Eli Zaretskii <eliz@gnu.org>
3857 * w32fns.c (Fw32_select_font): Doc fix.
3859 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3861 * image.c [MAC_OS] (XPutPixel, XGetPixel)
3862 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
3863 version when depth is 32.
3864 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
3866 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
3867 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
3869 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
3870 Create GWorld in ARGB pixel format.
3871 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
3873 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
3874 instead of mac_copy_area/mac_copy_area_with_mask.
3876 2006-03-15 Kim F. Storm <storm@cua.dk>
3878 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
3879 empty row. Fixes memory corruption revealed by 2006-03-02 change.
3880 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
3881 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
3882 width is exactly the same as the window width. Don't count a final
3883 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
3885 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
3887 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
3888 conditional on HAVE_NTGUI, not WINDOWS_NT.
3890 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3892 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
3894 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
3896 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
3897 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
3898 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
3899 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
3900 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
3901 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
3902 instead of mac_draw_bitmap.
3903 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
3904 define_fringe_bitmap and destroy_fringe_bitmap.
3906 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
3908 * xterm.c (x_uncatch_errors): Block input for entire function.
3910 2006-03-12 Jason Rumney <jasonr@gnu.org>
3912 * w32fns.c (Fx_create_frame): Remove call to
3913 Qface_set_after_frame_default (from xfns.c 2003-05-26).
3915 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
3916 finished with the menu.
3918 * w32term.c: Sync 2005-10-24 xterm.c changes.
3919 (last_mouse_glyph_frame): New var.
3920 (note_mouse_movement): Say mouse moved if current frame differs
3921 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3922 (w32_mouse_position): Set last_mouse_glyph_frame.
3923 Remove OLD_REDISPLAY_CODE block.
3925 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3927 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
3929 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
3930 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
3932 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3934 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
3936 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
3937 (x_draw_composite_glyph_string_foreground)
3938 (x_draw_image_foreground): Undo previous changes.
3939 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
3940 argument of mac_draw_rectangle.
3941 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
3942 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
3943 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
3944 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
3945 [USE_CG_DRAWING]: New functions.
3946 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
3947 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
3948 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
3949 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
3950 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
3951 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
3952 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3954 2006-03-12 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
3956 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
3958 2006-03-11 Jason Rumney <jasonr@gnu.org>
3960 * w32fns.c (signal_user_input): New function.
3961 (post_character_message): Use it for keyboard input.
3962 (w32_msg_pump): Use it for mouse input.
3964 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
3966 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
3967 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
3969 2006-03-11 Eli Zaretskii <eliz@gnu.org>
3971 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
3972 if a menu is already active (the menubar_active flag is on).
3974 2006-03-11 David Ponce <david@dponce.com>
3976 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
3978 2006-03-11 Eli Zaretskii <eliz@gnu.org>
3980 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
3981 the list of unused display error handling functions.
3983 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
3985 (internal_condition_case, internal_condition_case_1)
3986 (internal_condition_case_2): Call x_catching_errors only if
3989 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
3990 Don't include sys/resource.h unless defined.
3992 2006-03-11 Richard Stallman <rms@gnu.org>
3994 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
3996 * vm-limit.c (get_lim_data, lim_data, data_space_start):
3997 Move from mem-limits.h.
3998 (enum warnlevel): New data type.
3999 (check_memory_limits): Rewrite the logic about warnings.
4000 Use standard `struct rlimit'. Check return values for nonsense.
4001 (memory_warnings): Always clear lim_data.
4003 * mem-limits.h (get_lim_data, lim_data, data_space_start):
4006 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
4008 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
4009 (internal_condition_case_1, internal_condition_case_2):
4010 Abort if within unclosed x_catch_errors.
4012 2006-03-11 Romain Francoise <romain@orebokech.com>
4014 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
4016 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4018 * lisp.h: Remove duplicate prototypes. Make the prototype of
4019 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
4021 2006-03-11 Eli Zaretskii <eliz@gnu.org>
4023 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
4024 argument of XDrawRectangle.
4026 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
4028 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
4029 (x_draw_glyph_string_foreground)
4030 (x_draw_composite_glyph_string_foreground)
4031 (x_draw_image_foreground): Don't subtract 1 from width and height
4032 arguments to mac_draw_rectangle.
4033 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
4035 2006-03-10 Kim F. Storm <storm@cua.dk>
4037 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
4039 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
4041 * alloc.c (USE_POSIX_MEMALIGN): New macro.
4042 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
4044 2006-03-09 Kenichi Handa <handa@m17n.org>
4046 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
4047 ASCII component of a composition.
4049 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
4051 * window.c: Declare preserve_y as a static global variable.
4052 (window_scroll_pixel_based): No longer declare preserve_y;
4054 (syms_of_window): Set preserve_y to -1.
4056 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4058 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
4060 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4063 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
4065 * xdisp.c (handle_invisible_prop): Don't update it->position with
4066 a buffer position if we're in a display string.
4068 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4070 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
4071 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
4073 * macfns.c (x_default_scroll_bar_color_parameter)
4074 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
4075 Remove unnecessary prototypes.
4076 (x_set_scroll_bar_default_width):
4077 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
4078 (mac_set_scroll_bar_width): New function.
4079 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
4081 * macterm.c (get_control_part_bounds): Fix type of return value.
4082 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4083 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
4084 scroll bar if it is not tall enough to display scroll bar thumb.
4085 [USE_CARBON_EVENTS] (mac_convert_event_ref)
4086 (mac_handle_command_event, mac_handle_window_event)
4087 (mac_handle_mouse_event): Check error code of GetEventParameter.
4088 (convert_fn_keycode) [MAC_OSX]: Likewise.
4090 2006-03-05 Andreas Schwab <schwab@suse.de>
4092 * xselect.c (x_catch_errors_unwind): Fix missing return value.
4094 2006-03-02 Kim F. Storm <storm@cua.dk>
4096 * frame.h (struct frame): New member n_tool_bar_rows.
4098 * xdisp.c: Minimize the unpleasent visual impact of the requirement
4099 that non-toolkit tool-bars must occupy an integral number of screen
4100 lines, by distributing the rows evenly over the tool-bar screen area.
4101 (Vtool_bar_border): New variable.
4102 (syms_of_xdisp): DEFVAR_LISP it.
4103 (display_tool_bar_line): Add HEIGHT arg for desired row height.
4104 Make tool-bar row the desired height. Use default face for border
4106 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
4107 actual tool-bar rows.
4108 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
4109 Adjust the height of the tool-bar rows to fill tool-bar screen area.
4110 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
4113 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
4115 * search.c (Fregexp_quote): Do not precede a literal `]' with two
4116 backslashes to try to make clear that it has a literal meaning; it
4117 does not do that. (It could close a character alternative
4118 containing a backslash.)
4120 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
4122 * xselect.c (x_catch_errors_unwind): New function.
4123 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
4124 (Fx_get_atom_name): Call x_uncatch_errors earlier.
4126 * window.c (Qscroll_up, Qscroll_down): New syms.
4127 (window_scroll_pixel_based): Make preserve_y static to avoid
4128 getting point stuck when scrolling 1 line.
4130 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
4132 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4134 * xterm.c (x_load_font, x_term_init, XTmouse_position)
4135 (handle_one_xevent, x_connection_closed, x_list_fonts):
4136 No arg for x_uncatch_errors.
4138 * xselect.c (x_own_selection, x_decline_selection_request)
4139 (x_reply_selection_request, x_get_foreign_selection)
4140 (Fx_get_atom_name, Fx_send_client_event): Likewise.
4142 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4145 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
4147 * lread.c: Declare Vload_file_rep_suffixes instead of
4148 deleted variable default_suffixes.
4149 (Fget_load_suffixes): New function.
4150 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
4151 No longer use deleted variable default_suffixes. Update docstring.
4152 (syms_of_lread): defsubr Sget_load_suffixes.
4153 Expand `load-suffixes' docstring.
4154 Delete default_suffixes and DEFVAR_LISP the new variable
4155 `load-file-rep-suffixes'.
4157 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
4160 * lisp.h: EXFUN Fget_load_suffixes.
4161 Extern Vload_file_rep_suffixes.
4163 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
4166 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
4168 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
4169 qualifier which was trying to avoid the bug that was fixed by
4170 yesterday's changes to xterm.c.
4172 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
4174 * xterm.h (x_catch_errors) Return value changed to void.
4175 (x_uncatch_errors): Delete unused count argument.
4177 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
4178 it can be called in a signal handler.
4179 (x_catch_errors_unwind): Function deleted.
4180 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
4181 (x_check_errors): Call x_uncatch_errors before signalling error.
4183 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
4184 (x_connection_closed, x_list_fonts): Use new versions of
4185 x_catch_errors and x_uncatch_errors.
4187 * xselect.c (x_own_selection, x_decline_selection_request)
4188 (x_reply_selection_request, x_get_foreign_selection)
4189 (Fx_get_atom_name, Fx_send_client_event): Likewise.
4191 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4194 * eval.c (record_unwind_protect): Add an assertion.
4196 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
4198 * process.c (Fmake_network_process): Init the process's mark.
4200 2006-02-25 Kim F. Storm <storm@cua.dk>
4202 * buffer.c (modify_overlay): Force redisplay if we modify an
4203 overlay at the end of the buffer.
4205 2006-02-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4207 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
4208 nil the image file has been removed, in that case use the (cached)
4211 2006-02-24 Kenichi Handa <handa@m17n.org>
4213 * fileio.c (Finsert_file_contents): When a text is replaced
4214 partially, be sure to set point before the inserted characters.
4216 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
4218 * xfns.c (Fx_file_dialog): Return a decoded file name.
4220 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4222 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
4223 glyph whose face is extended to the text area end.
4225 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
4226 values if control is not visible or values are not changed.
4228 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4230 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
4231 The default `window' should not be "on a different frame".
4233 2006-02-22 Kim F. Storm <storm@cua.dk>
4235 * indent.c (Fvertical_motion): Only try to move back if we can.
4237 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4239 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
4242 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
4245 * macterm.c (GC_CLIP_REGION): Remove macro.
4246 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
4247 All uses changed. Don't do clipping if n_clip_rects is zero.
4248 (mac_set_clip_rectangles): Use xassert instead of abort.
4249 Set n_clip_rects. Don't make clip_region empty when number of
4250 clipping rectangles is zero.
4251 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
4252 calling mac_set_clip_rectangles.
4253 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
4254 avoid multiple redraws.
4256 2006-02-22 Kim F. Storm <storm@cua.dk>
4258 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
4260 2006-02-21 Kim F. Storm <storm@cua.dk>
4262 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
4264 2006-02-21 Zhang Wei <brep@newsmth.org>
4266 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
4269 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4271 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
4272 (standard_bitmaps): Use it.
4274 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4276 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
4277 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
4278 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
4279 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
4280 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
4281 Draw background if BG_WIDTH is not zero. Use float constants as
4282 divisors instead of double. Use alloca instead of xmalloc/xfree.
4283 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4284 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
4285 mac_draw_image_string* functions.
4286 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
4287 some fonts when srcCopy text transfer mode might be used.
4288 (mac_begin_clip, mac_end_clip): Check if region is empty.
4289 (mac_set_clip_rectangles): When resetting clip region, make it
4290 empty instead of disposing of it.
4292 2006-02-20 Kim F. Storm <storm@cua.dk>
4294 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
4296 * buffer.h (struct buffer): New members fringe_indicator_alist and
4297 fringe_cursor_alist.
4299 * buffer.c (init_buffer_once): Set dummy default values for
4300 fringe-indicator-alist and fringe-cursor-alist. The proper
4301 default values are set by pre-loading fringe.el.
4302 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
4303 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
4304 corresponding default- variables.
4306 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
4308 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
4310 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
4311 (Qhollow_small): New variables.
4312 (syms_of_fringe): Intern and staticpro them.
4313 (question_mark_bits): Rename from unknown_bits.
4314 (left_curly_arrow_bits): Rename from continuation_bits.
4315 (right_curly_arrow_bits): Rename from continued_bits.
4316 (left_triangle_bits): Rename from ov_bits.
4317 (right_triangle_bits): Add.
4318 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
4319 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
4320 (filled_square_bits): Add.
4321 (vertical_bar_bits): Rename from bar_cursor_bits.
4322 (horizontal_bar_bits): Rename from hbar_cursor_bits.
4323 (empty_line_bits): Rename from zv_bits.
4324 (standard_bitmaps): Update to use new names.
4325 (draw_fringe_bitmap_1): Make static.
4326 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
4327 to map from logical cursors and indicators to physical bitmaps.
4328 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
4329 bitmaps using symbol names instead of bitmap numbers.
4330 (update_window_fringes): Use logical indicator symbol names
4331 instead of bitmap numbers for logical. Add bitmap cache.
4332 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
4334 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
4336 * regex.c: Revert 2006-02-19 change.
4337 (xmalloc, xrealloc): Define these when not linked to Emacs.
4338 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
4340 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
4342 * regex.c (extend_range_table_work_area): Fix typo.
4344 2006-02-19 Richard M. Stallman <rms@gnu.org>
4346 * xterm.c (x_catch_errors): Use xmalloc.
4348 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
4349 (regex_compile): Likewise.
4350 (regcomp): Use xmalloc.
4352 * gtkutil.c (malloc_widget_value): Use xmalloc.
4354 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
4355 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
4357 * xmenu.c (digest_single_submenu): When pane_string is empty,
4358 do initialize save_wv.
4360 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4362 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
4363 w->update_mode_line if arg F is not the selected frame.
4365 * macmenu.c (popup_activated_flag, submenu_id)
4366 (next_menubar_widget_id): Remove variables.
4367 (initialize_frame_menubar): Remove function.
4368 (pop_down_menu, mac_menu_show): Simplify save value.
4369 (dispose_menus): New function.
4370 (pop_down_menu, fill_menubar): Use it.
4371 (fill_submenu): Remove function. All uses changed to fill_menu.
4372 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
4373 POS. Don't call SetMenuItemHierarchicalID here.
4374 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
4375 used next. Call SetMenuItemHierarchicalID here.
4376 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
4377 objects if needed. Reuse existing menu bar titles if possible.
4378 (set_frame_menubar): Don't clean up menu objects here.
4380 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
4382 * window.c (window_min_size_1): Ensure room for the scroll bar and
4385 2006-02-17 Romain Francoise <romain@orebokech.com>
4387 * puresize.h (BASE_PURESIZE): Increment to 1200000.
4389 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
4391 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
4392 addition of the BLOCK_INPUTs.
4394 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
4396 * window.c (Fset_window_scroll_bars): Doc fix.
4398 2006-02-17 Kenichi Handa <handa@m17n.org>
4400 * xdisp.c (display_mode_element): Call display_string with correct
4401 PREC arg (which must be a number of characters, not column width).
4403 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4405 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
4407 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
4409 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
4411 2006-02-14 Richard M. Stallman <rms@gnu.org>
4413 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
4415 * m/ibms390x.h: New file.
4417 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4419 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
4420 value of x-gtk-whole-detached-tool-bar.
4421 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
4423 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
4425 2006-02-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4427 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
4429 * xterm.h: Declare x_x_to_emacs_modifiers.
4431 * gtkutil.c (xg_tool_bar_button_cb): New function.
4432 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
4433 store modifiers in event.
4434 (update_frame_tool_bar): Connect button-release-event to
4435 xg_tool_bar_button_cb.
4437 2006-02-13 Richard M. Stallman <rms@gnu.org>
4439 * .gdbinit (xwindow): Update the code to show the window box.
4441 2006-02-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4443 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
4445 2006-02-12 Richard M. Stallman <rms@gnu.org>
4447 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
4449 2006-02-11 Eli Zaretskii <eliz@gnu.org>
4451 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
4452 (syms_of_keyboard): DEVFAR_LISP and initialize it.
4453 (parse_tool_bar_item, parse_menu_item): If that variable is
4454 non-nil, don't disable menu items and tool-bar buttons.
4456 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
4458 * doc.c (Fsubstitute_command_keys): Doc fix.
4460 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
4462 * data.c (Findirect_function): Rewrite docstring.
4463 Fix omission bug: Declare new arg NOERROR.
4465 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4467 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
4468 if window_desc is not set yet.
4469 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
4470 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
4471 parameter `visibility' is `icon'.
4472 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
4473 instead of "fontset-mac".
4474 (Fx_focus_frame): New defun.
4475 (syms_of_macfns): Defsubr it.
4477 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
4478 for unfocused frame.
4479 (x_raise_frame): Call BringToFront instead of SelectWindow.
4480 (x_lower_frame): Use NULL instead of nil.
4481 (x_make_frame_visible): Don't call SelectWindow.
4482 (XTread_socket): Increment handling_signal at the start, decrement
4484 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
4485 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
4487 2006-02-10 Kim F. Storm <storm@cua.dk>
4489 * data.c (Findirect_function): Add NOERROR arg. All callers changed
4490 to pass Qnil for NOERROR.
4492 * keymap.c (current_minor_maps_error): Remove.
4493 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
4494 instead of using internal_condition_case_1+current_minor_maps_error.
4496 2006-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4498 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
4499 frames for GTK, in that case it is the tool bar. This is so that
4500 highlighted text get reset properly.
4502 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
4504 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
4506 2006-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4508 * window.c (adjust_window_trailing_edge): Check that shrinking
4509 does not set a window to size zero or less.
4511 2006-02-08 Miles Bader <miles@gnu.org>
4513 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
4514 of Fget_text_property (other field functions work with overlays as
4515 well as text-properties).
4517 2006-02-07 Kenichi Handa <handa@m17n.org>
4519 * dispextern.h (unibyte_display_via_language_environment): Extern it.
4521 * xterm.h (unibyte_display_via_language_environment):
4522 * w32term.h (unibyte_display_via_language_environment):
4523 * macterm.h (unibyte_display_via_language_environment): Delete extern.
4525 2006-02-07 Kenichi Handa <handa@m17n.org>
4527 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
4528 (produce_glyphs): Set the character to print in
4529 it->char_to_display. Handle unibyte-display-via-language-environment.
4530 (produce_stretch_glyph): Set character to print in it->char_to_display.
4532 2006-02-06 Kenichi Handa <handa@m17n.org>
4534 * lread.c (openp): Initialize encoded_fn before GCPRO it.
4536 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
4538 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
4540 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
4541 Cast bitfield value to EMACS_INT, to suppress gcc warning.
4543 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
4546 2006-02-03 Kim F. Storm <storm@cua.dk>
4548 * xdisp.c: Cache last merged escape glyph face.
4549 (last_escape_glyph_frame, last_escape_glyph_face_id)
4550 (last_escape_glyph_merged_face_id): New variables.
4551 (get_next_display_element): Use/update them.
4552 (redisplay_internal): Reset them before redisplay.
4554 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
4555 Only recheck faces after displaying ellipsis.
4557 2006-02-02 Kenichi Handa <handa@m17n.org>
4559 * coding.c (decode_composition_emacs_mule): Fix handling of
4560 incorrect format data.
4562 2006-01-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4564 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
4565 gtk_toolbar_insert() so we can have tool bars of different sizes.
4567 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
4569 * data.c (Flistp): Doc fix.
4571 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
4573 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
4574 Fix typos in docstrings.
4576 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
4578 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
4580 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
4582 * alloc.c (make_interval, allocate_string)
4583 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
4584 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
4587 2006-01-27 Eli Zaretskii <eliz@gnu.org>
4589 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
4590 the MSDOS definition.
4592 2006-01-26 Richard M. Stallman <rms@gnu.org>
4594 * alloc.c (check_pure_size): Make overflow message an "error message".
4596 * keymap.c (Fmap_keymap): Doc fix.
4598 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
4599 unless they were cleared out.
4601 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
4603 2006-01-26 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4605 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
4606 (find_field): Set before_field to after_field when pos is at BEGV.
4607 (Fline_beginning_position, Fline_end_position):
4608 Clarify confusing doc string.
4610 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
4613 2006-01-26 Kenichi Handa <handa@m17n.org>
4615 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
4616 current_dir, and error_file. On reporting an error, decode them
4619 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4621 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
4622 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
4623 Don't check for quit, since any loop will go through fail or jump.
4625 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
4627 * alloc.c (allocate_string_data): Update next_free immediately, to
4628 reduce risk of memory clobberage.
4630 2006-01-24 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
4632 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
4633 display when point moves across an ellipsis. If there are
4634 adjacent invisible texts, don't lose the second one's ellipsis.
4635 (x_produce_glyphs): Doc fix.
4637 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
4639 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
4641 2006-01-23 Kim F. Storm <storm@cua.dk>
4643 * xdisp.c (handle_single_display_spec): Fix handling of space
4644 property on char from string: set *position rather than
4646 (produce_stretch_glyph): Reduce width of stretch glyphs so they
4647 don't get wider than the window (unless truncate-lines is on).
4649 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
4651 * xterm.c: Avoid allocating Lisp data from a signal handler.
4652 (x_error_message): New var to replace x_error_message_string.
4653 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
4654 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
4655 (syms_of_xterm): Use it instead of x_error_message_string.
4657 * alloc.c (lisp_align_free): Add an assertion.
4658 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
4659 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
4662 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
4664 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
4666 2006-01-21 Romain Francoise <romain@orebokech.com>
4668 * xdisp.c (get_window_cursor_type): Fix last change.
4669 Update copyright year.
4671 2006-01-20 Eli Zaretskii <eliz@gnu.org>
4673 * lread.c (Fload): Don't leak the file descriptor returned by
4674 openp if we are going to signal an error.
4676 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
4678 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
4679 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
4681 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
4684 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
4687 2006-01-20 Kenichi Handa <handa@m17n.org>
4689 * puresize.h (BASE_PURESIZE): Increment to 1190000.
4691 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
4693 * xdisp.c (get_window_cursor_type): Use cursor type specified by
4694 the selected buffer for the echo area too.
4696 2006-01-19 Richard M. Stallman <rms@gnu.org>
4698 * keymap.c (Fmap_keymap): Doc fix.
4700 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
4702 * keyboard.c (echo_char): Don't omit the space between first two
4705 * minibuf.c (read_minibuf): Fix previous change.
4707 2006-01-19 Kenichi Handa <handa@m17n.org>
4709 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
4711 2006-01-17 Richard M. Stallman <rms@gnu.org>
4713 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
4714 value in f->param_alist.
4716 2006-01-15 Andreas Schwab <schwab@suse.de>
4718 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
4720 2006-01-13 Richard M. Stallman <rms@gnu.org>
4722 * Makefile.in: Define new macro WINDOW_SUPPORT.
4724 (SOME_MACHINE_LISP): Add conditionally loaded files.
4726 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4728 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
4729 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
4730 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
4733 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
4734 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
4735 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
4736 macro. Also try member ifr_addr when getting netmask.
4738 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
4740 * fileio.c (Fexpand_file_name): Remove redundant tests.
4741 Fix elimination of // so that it doesn't prevent elimination of an
4742 immediately following /. or /..
4744 2006-01-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4746 * gtkutil.c (xg_toggle_notify_cb): New function.
4747 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
4748 xg_toggle_notify_cb.
4749 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
4750 parameter value changes so the toggle button gets updated.
4752 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
4754 * .gdbinit: Fix typo.
4756 2006-01-05 Eli Zaretskii <eliz@gnu.org>
4758 * .gdbinit: Fix last change.
4760 2006-01-05 Kim F. Storm <storm@cua.dk>
4762 * process.c (Fmake_network_process): Use AF_INET instead of
4763 AF_UNSPEC when AF_INET6 is not defined.
4765 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4767 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
4768 Don't check that the other type is known file-related one.
4770 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
4771 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
4772 OS X 10.4 and later.
4774 2006-01-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4776 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
4777 let GTK do all image processing. Importing Emacs own pixmaps to GTK
4778 looks bad for inactive tool bar items with some Gnome themes.
4780 2006-01-04 Eli Zaretskii <eliz@gnu.org>
4782 * .gdbinit: Avoid a warning message when x_error_quitter is not
4785 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
4788 2006-01-04 Kim F. Storm <storm@cua.dk>
4790 * process.c: Add IPv6 support.
4791 (Qipv4, Qipv6): New vars.
4792 (syms_of_process): Intern and staticpro them.
4793 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
4794 with or without port number. Handle 4 element vector as IPv4 address
4795 without port number.
4796 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
4797 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
4798 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
4799 request that address family only. :family nil or omitted means to
4800 determine address family from the specified :host and :service.
4801 (ifflag_table): Add missing OpenBSD IFF_ flags.
4802 (server_accept_connection): Handle IPv6 addresses.
4803 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
4805 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
4806 determine which breakpoints to set.
4808 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
4810 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
4812 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
4814 2006-01-03 Romain Francoise <romain@orebokech.com>
4816 * emacs.c (main): Update copyright year.
4818 2006-01-03 Ken Raeburn <raeburn@gnu.org>
4820 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
4821 nil for the call to internal_delete_file.
4823 2006-01-01 Ken Raeburn <raeburn@gnu.org>
4825 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
4826 to nil for the call to Fwrite_region.
4828 2005-12-31 Richard M. Stallman <rms@gnu.org>
4830 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
4832 2005-12-31 Eli Zaretskii <eliz@gnu.org>
4834 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
4836 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
4838 * textprop.c (set_text_properties): Reword description of return value.
4839 Return Qnil if caller wants to remove all text properties from a
4840 string and the string already has no intervals.
4842 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
4844 * term.c (visible_cursor): New boolean var.
4845 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
4847 (syms_of_term): Export the new var as "visible-cursor".
4849 2005-12-30 Eli Zaretskii <eliz@gnu.org>
4851 * .gdbinit: Tell users not to worry about GDB warnings that some
4852 functions do not exist in the binary.
4854 2005-12-30 Andreas Schwab <schwab@suse.de>
4856 * process.c (Fnetwork_interface_info): Correctly terminate the
4857 loop over ifflag_table.
4859 2005-12-29 Richard M. Stallman <rms@gnu.org>
4861 * lread.c (readevalloop): Test for reading a whole buffer
4862 before actually reading anything. Handle all cases, including
4863 START = END = nil and an already-narrowed buffer.
4864 Convert END to a marker if it is a number.
4866 * keymap.c (describe_map): Put sparse map elements into an array,
4867 sort them, then output a sequence of identical bindings on one line.
4868 (struct describe_map_elt): New data type.
4869 (describe_map_compare): New function.
4871 2005-12-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4873 * gtkutil.c (xg_get_file_with_chooser): Change message shown
4876 2005-12-27 Richard M. Stallman <rms@gnu.org>
4878 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
4879 not the current one.
4881 * minibuf.c (Fminibuffer_message): Doc fix.
4882 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
4884 * eval.c (do_autoload): Ignore elements of Vautoload_queue
4885 where car is not symbol.
4887 2005-12-27 Kenichi Handa <handa@m17n.org>
4889 * charset.c (lisp_string_width): Check multibyteness of STRING.
4891 2005-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4893 * xfns.c (x_show_hidden_files): New variable.
4894 (syms_of_xfns): Defvar it.
4896 * gtkutil.c (xg_toggle_visibility_cb): New function.
4897 (xg_get_file_with_chooser): Add toggle hidden files and a message
4898 to the new file chooser dialog. Show hidden files if
4899 x_show_hidden_files is non-zero.
4901 2005-12-26 Richard M. Stallman <rms@gnu.org>
4903 * keyboard.h: Undo previous change.
4905 * Makefile.in (undo.o): Undo previous change.
4907 * undo.c: Undo previous change.
4909 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
4911 * keyboard.h: extern last_point_position_window.
4913 * undo.c: include keyboard.h.
4915 * Makefile.in (undo.o): Depend on keyboard.h.
4917 2005-12-26 Richard M. Stallman <rms@gnu.org>
4919 * commands.h (last_point_position_window): Declare.
4921 * undo.c: Depend on window.h.
4922 (record_point): Save old point from the correct window.
4924 * keyboard.c (last_point_position_window): New variable.
4925 (command_loop_1): Set last_point_position_window.
4926 (syms_of_keyboard): Init it.
4928 * Makefile.in (undo.o): Depend on window.h.
4930 2005-12-25 Richard M. Stallman <rms@gnu.org>
4932 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
4933 to undo a `provide'.
4935 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
4937 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
4939 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
4940 define for FreeBSD on this platform.
4942 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4944 * macterm.h (TYPE_FILE_NAME): New define.
4945 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
4947 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
4948 Add prototypes. Make static.
4949 (mac_aedesc_to_lisp): Initialize err to noErr.
4950 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4951 (init_coercion_handler): New functions.
4952 (Fmac_coerce_ae_data): Use coercion of Apple event data for
4953 translation from/to file names.
4955 * macterm.c: Don't include sys/param.h.
4956 (init_coercion_handler): Add extern.
4957 [MAC_OS8] (main): Call init_coercion_handler.
4958 (mac_initialize) [MAC_OSX]: Likewise.
4959 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
4960 Apple event data for translation from/to file names.
4962 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4964 * image.c [MAC_OS] (find_image_fsspec): Likewise.
4966 2005-12-23 Martin Rudalics <rudalics@gmx.at>
4968 * insdel.c (insert, insert_and_inherit, insert_before_markers)
4969 (insert_before_markers_and_inherit): Make sure FROM is correct
4970 when `after-change-functions' are called.
4972 2005-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
4974 * xfns.c (Fx_uses_old_gtk_dialog): New function.
4976 * gtkutil.c (xg_uses_old_file_dialog): New function.
4977 (xg_get_file_name): Use xg_uses_old_file_dialog.
4979 * gtkutil.h: Declare xg_uses_old_file_dialog.
4981 2005-12-22 Richard M. Stallman <rms@gnu.org>
4983 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
4985 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4987 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
4989 * macgui.h (XCharStruct): Remove member `valid_p'.
4990 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
4991 (XCharStructRow): New typedef.
4992 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
4994 (struct MacFontStruct): Add member `bounds'. Remove member
4995 `per_char'. All uses for QuichDraw Text fonts are changed to
4996 `bounds.per_char'. ATSUI font bounds are represented as an array
4997 `bounds.rows' of XCharStructRow's, each of which consists of a
4998 bitmap of valid entries and an array of char bounds.
5000 * macterm.c (mac_per_char_metric): Add prototype.
5001 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5002 (mac_query_char_extents): New function.
5003 (x_per_char_metric): Use it.
5004 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
5005 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
5006 Use mac_per_char_metric instead of x_per_char_metric.
5007 (mac_text_extents_16): New function.
5008 (mac_compute_glyph_string_overhangs): Use it.
5009 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
5011 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5013 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
5014 (Fminibuffer_completion_help): Remove duplicates before display.
5016 2005-12-21 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
5018 * print.c (print_preprocess): Don't lose print_depth levels while
5021 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5023 * macmenu.c (Qmac_apple_event): Add extern.
5024 (set_frame_menubar, mac_menu_show keymp_panes)
5025 (single_keymap_panes, list_of_panes, list_of_item)
5026 (single_menu_item): Add argument types to prototypes.
5027 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
5028 (struct skp): New struct (from xmenu.c).
5029 (single_keymap_panes, single_menu_item, list_of_panes)
5030 (list_of_item): Sync with xmenu.c.
5031 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
5032 POSITION if it is mac-apple-event event.
5033 (menubar_selection_callback): Don't use menu_command_in_progress.
5034 (set_frame_menubar): First parse all submenus, then make
5035 widget_value trees from them. Don't allocate any widget_value
5036 objects until we are done with the parsing.
5037 (parse_single_submenu, digest_single_submenu): New functions.
5038 (single_submenu): Function deleted, replaced by those two.
5039 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
5040 create or dispose of EventHandlerUPP. Install hander to all submenus.
5041 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
5042 instead of ENCODE_SYSTEM.
5043 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
5045 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
5046 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
5047 format menu item string. Don't use NULL for integer value.
5049 * macterm.h (struct mac_output): Remove unused member
5050 menu_command_in_progress.
5052 2005-12-20 Juri Linkov <juri@jurta.org>
5054 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
5055 position is non-nil, else set it to nil.
5057 * macmenu.c (Fx_popup_menu): Add `else' to set
5058 Vmenu_updating_frame to nil only if position is nil.
5060 * w32menu.c (Fx_popup_menu): Add `else' to set
5061 Vmenu_updating_frame to nil only if position is nil.
5063 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5065 * keyboard.c (make_lispy_event): Drag-and-drop items are now
5066 stored in member `args' of struct input_event.
5068 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
5070 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
5071 stored in member `args' of struct input_event.
5073 * w32term.c (construct_drag_n_drop): Likewise.
5075 * macterm.c (mac_do_receive_drag): Likewise.
5076 (x_use_underline_position_properties): Undo 2005-07-13 change.
5077 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
5078 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
5079 (mac_pass_command_to_system, mac_pass_control_to_system):
5080 New boolean variables renamed from Lisp_Object ones
5081 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
5082 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
5084 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
5085 Make them user options.
5086 (mac_handle_command_event, mac_store_services_event):
5087 Call create_apple_event_from_event_ref without 5th argument.
5088 (backtranslate_modified_keycode): Mask off modifier keys that are
5089 mapped to some Emacs modifiers before passing it to KeyTranslate.
5090 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
5091 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
5092 Fix docstrings of `mac-*-modifier'.
5094 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
5095 (do_applescript): Change argument types to Lisp_Object.
5098 * macterm.h (create_apple_event_from_event_ref): Remove 5th
5099 argument from extern.
5101 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5103 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
5104 the answer, return `lambda', not nil.
5106 2005-12-17 Eli Zaretskii <eliz@gnu.org>
5108 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
5109 enclosed in $(ARGQUOTE)s should not be split between two lines, as
5110 that will break with GNU Make >3.80, when sh.exe is used and
5111 arg quoting is with '..'.
5113 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
5115 * print.c (print_preprocess): Just signal an error if print_depth
5118 2005-12-17 Eli Zaretskii <eliz@gnu.org>
5120 * .gdbinit: Set a breakpoint on w32_abort.
5122 2005-12-16 Juri Linkov <juri@jurta.org>
5124 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
5125 created from minibuffer_completion_contents.
5126 (minibuffer_completion_contents): Remove.
5127 (do_completion, Fminibuffer_complete_word)
5128 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
5129 with Fminibuffer_completion_contents.
5130 (syms_of_minibuf): Add Sminibuffer_completion_contents.
5131 (Fdisplay_completion_list): Doc fix.
5132 (display_completion_list_1): Use `nil' for second arg of
5133 `Fdisplay_completion_list'.
5135 2005-12-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5137 * xfns.c (compute_tip_xy): Handle negative dx and dy.
5139 * w32fns.c (compute_tip_xy): Ditto.
5141 * macfns.c (compute_tip_xy): Ditto.
5143 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
5145 * print.c (print_preprocess): Go to a deeper print_depth to avoid
5148 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
5150 * coding.c (code_convert_region_unwind): GCPRO arg.
5152 2005-12-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5154 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
5155 i.e. dy is offset from top of frame instead of bottom.
5157 * macfns.c (compute_tip_xy): Ditto.
5159 * w32fns.c (compute_tip_xy): Ditto.
5161 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
5162 (xg_get_image_for_pixmap, xg_create_frame_widgets)
5163 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
5165 * xmenu.c (menubar_selection_callback): Do nothing if the callback
5166 is for an unselected radio menu item.
5168 2005-12-11 Richard M. Stallman <rms@gnu.org>
5170 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
5172 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
5174 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
5175 (Flookup_key): Doc fix.
5176 (syms_of_keymap) <function-key-map>: Doc fix.
5178 * fns.c (Frequire): Treat evaluating from a source file
5179 like loading the file.
5181 * floatfns.c (Flog): Doc fix.
5183 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
5184 when we change the buffer.
5186 2005-12-11 Juri Linkov <juri@jurta.org>
5188 * minibuf.c (display_completion_list_1):
5189 Call `minibuffer_completion_contents' instead of using `nil' as
5190 second arg of `Fdisplay_completion_list'.
5191 (keys_of_minibuf): Unbind SPC in
5192 Vminibuffer_local_filename_completion_map (see also related
5193 change on 2005-12-06).
5195 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5197 * emacs.c (main) [MAC_OS8]: Undo previous change.
5199 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
5200 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
5202 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5204 * Makefile.in (macselect.o): Depend on keymap.h.
5206 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
5209 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
5210 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
5212 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
5213 (syms_of_keyboard) [MAC_OS]: Initialize it.
5214 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
5216 * mac.c (Qundecoded_file_name): New variable.
5217 (syms_of_mac): Initialize it.
5218 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
5219 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
5220 (Fmac_coerce_ae_data): New defun.
5221 (syms_of_mac): Defsubr it.
5223 * macselect.c: Include keymap.h.
5224 (mac_ready_for_apple_events): New variable.
5225 (Vmac_apple_event_map, Qmac_apple_event_class)
5226 (Qmac_apple_event_id): New variables.
5227 (syms_of_macselect): Initialize them.
5228 (Qundefined, mac_store_apple_event): Add externs.
5229 (struct apple_event_binding): New struct.
5230 (find_event_binding_fun, find_event_binding)
5231 (mac_find_apple_event_spec, defer_apple_events)
5232 (mac_handle_apple_event, init_apple_event_handler)
5233 (copy_scrap_flavor_data): New functions.
5234 (Fmac_process_deferred_apple_events): New defun.
5235 (syms_of_macselect): Defsubr it.
5236 (mac_store_services_event): Fix extern.
5237 (mac_handle_service_event): Don't allocate Lisp objects during
5238 asynchronous input processing. Use mac_store_services_event
5239 instead of mac_store_application_menu_event.
5241 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
5242 (Qpreferences): Remove variables.
5243 (syms_of_macterm) : Don't initialize them.
5244 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
5245 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
5246 (init_required_apple_events, do_ae_open_application)
5247 (do_ae_print_documents, do_ae_open_documents)
5248 (do_ae_quit_application): Remove functions and prototypes.
5249 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
5250 (mac_find_apple_event_spec): Add externs.
5251 (mac_store_application_menu_event): Remove function.
5252 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
5253 (mac_handle_command_event): Create Apple event from Carbon event.
5254 Use mac_store_apple_event instead of mac_store_application_menu_event.
5255 [MAC_OSX] (mac_store_services_event): Likewise.
5256 (struct SelectionRange, SelectionRange): Remove struct and typedef.
5257 [MAC_OS8] (main): Call init_apple_event_handler instead of
5258 init_required_apple_events.
5259 (mac_initialize) [MAC_OSX]: Likewise.
5260 [!USE_CARBON_EVENTS] (mac_wait_next_event):
5261 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
5263 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
5265 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
5266 (Fmac_get_preference): Add EXFUN.
5268 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
5271 2005-12-09 Richard M. Stallman <rms@gnu.org>
5273 * xfns.c (Fx_create_frame): Reinstate previous change.
5275 2005-12-09 Eli Zaretskii <eliz@gnu.org>
5277 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
5278 GDB to the abort dialog.
5280 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
5282 * indent.c (Fvertical_motion): Force move if starting on
5285 2005-12-08 Richard M. Stallman <rms@gnu.org>
5287 * lread.c (read_escape) <\s>: Don't treat strings specially.
5289 * xfns.c (Fx_create_frame): Comment out previous change.
5291 2005-12-07 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
5293 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
5296 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
5298 * minibuf.c (keys_of_minibuf): Just unbind SPC in
5299 Vminibuffer_local_filename_completion_map rather than forcing it
5300 explicitly to the same binding as the global map.
5302 2005-12-06 Ken Raeburn <raeburn@gnu.org>
5304 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
5305 * bytecode.c (Fbyte_code): Likewise.
5306 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
5307 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
5308 * undo.c (truncate_undo_list): Likewise.
5310 2005-12-05 Richard M. Stallman <rms@gnu.org>
5312 * window.c (enlarge_window): Eliminate arg preserve_before.
5313 Assume it is 0. All callers changed.
5314 (Fenlarge_window, Fshrink_window): Likewise.
5316 2005-12-02 Eli Zaretskii <eliz@gnu.org>
5318 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
5321 2005-12-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5323 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
5325 * xfns.c (x_real_positions): int ign => unsigned int.
5326 (xg_set_icon_from_xpm_data): Remove unused variable err.
5327 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
5328 to remove compiler warning.
5329 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
5331 2005-12-02 David Reitter <david.reitter@gmail.com>
5333 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
5334 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
5335 and Vminibuffer_local_must_match_filename_map keymaps.
5336 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
5338 * keymap.c (Vminibuffer_local_filename_completion_map)
5339 (Vminibuffer_local_must_match_filename_map): New variables.
5340 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
5341 parent to be Vminibuffer_local_completion_map and
5342 Vminibuffer_local_must_match_map, respectively.
5344 * commands.h (Vminibuffer_local_filename_completion_map)
5345 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
5347 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
5349 * window.c (Fset_window_configuration): Don't accidentally copy the
5350 window-point of one window to another.
5352 2005-11-30 L
\e$,1 q
\e(Brentey K
\e,Aa
\e(Broly <lorentey@elte.hu>
5354 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
5356 2005-11-30 Kim F. Storm <storm@cua.dk>
5358 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
5359 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
5360 passing it to `emacs_write'.
5362 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
5364 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
5366 2005-11-27 Richard M. Stallman <rms@gnu.org>
5368 * window.c (adjust_window_trailing_edge): New function.
5369 (Fadjust_window_trailing_edge): New function.
5370 (syms_of_window): Defsubr it.
5371 (window_deletion_count): New variable.
5372 (delete_window): Update window_deletion_count.
5374 2005-11-26 Eli Zaretskii <eliz@gnu.org>
5376 * minibuf.c (syms_of_minibuf): Mention the extension of
5377 `completion-auto-help's meaning by complete.el.
5379 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
5381 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
5382 Handle :inherit property as a lisp expression.
5384 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5386 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
5387 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
5388 Qsuper, and Qmodifier_value.
5389 (Vmac_control_modifier, Vmac_option_modifier)
5390 (Vmac_command_modifier, Vmac_function_modifier)
5391 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
5392 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
5393 (Vmac_charset_info_alist): Doc fixes.
5395 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5397 * emacs.c (main) [MAC_OSX]: Change working directory to home
5398 directory if `-psn_*' option is specified.
5400 * mac.c (DECODE_UTF_8): Remove macro.
5401 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
5402 created from cfstring_to_lisp.
5403 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
5404 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
5406 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
5409 2005-11-21 Ken Raeburn <raeburn@gnu.org>
5411 * keymap.c (shadow_lookup): Use make_number to pass a number to
5414 2005-11-21 Juri Linkov <juri@jurta.org>
5416 * puresize.h (BASE_PURESIZE): Increment to 1180000.
5418 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
5420 * xfaces.c (Finternal_set_lisp_face_attribute):
5421 Use :ignore-defface for new frame defaults when `unspecified' is
5423 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
5424 (merge_face_vectors): Don't do :ignore-defface overwriting here.
5425 (Finternal_merge_in_global_face): Do it here.
5427 2005-11-20 Juri Linkov <juri@jurta.org>
5429 * charset.c (invalid_character): Use Lisp-readable syntax
5430 for octal and hex. Reorder decimal, octal and hex values.
5432 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
5434 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
5435 this type is recognised when debugging.
5437 2005-11-19 Andreas Schwab <schwab@suse.de>
5439 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
5440 Lisp_Cons and Lisp_Float.
5442 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5444 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
5446 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
5447 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
5448 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
5449 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
5451 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
5453 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
5455 * xfaces.c (Qignore_defface): New variable.
5456 (syms_of_xfaces): Provide `:ignore-defface'.
5457 (IGNORE_DEFFACE_P): New macro.
5458 (check_lface_attrs, lface_fully_specified_p)
5459 (Finternal_set_lisp_face_attribute)
5460 (Fface_attribute_relative_p, Fmerge_face_attribute):
5461 Handle Qignore_defface as a possible value.
5462 (merge_face_vectors): The merged face is `unspecified' if the
5463 mergee specifies `:ignore-defface'.
5465 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5467 * lread.c (readevalloop): Add missing GCPROs.
5469 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
5471 * xfns.c (xg_set_icon_from_xpm_data): New function.
5473 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
5474 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
5476 * xterm.c (x_bitmap_icon): Use the xpm if available.
5478 * image.c (x_create_bitmap_from_xpm_data): New function.
5479 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
5481 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
5483 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
5485 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
5487 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
5489 2005-11-15 Andreas Schwab <schwab@suse.de>
5491 * lisp.h (struct Lisp_Cons): Make cdr a union.
5492 (XCDR_AS_LVALUE): Adjust.
5493 (struct Lisp_Float): Make data a union.
5494 (XFLOAT_DATA): Adjust.
5496 * alloc.c (free_float): Make free list chaining aliasing-safe.
5497 (make_float): Likewise.
5498 (free_cons): Likewise.
5500 (check_cons_list): Likewise.
5501 (Fmake_symbol): Likewise.
5502 (allocate_misc): Likewise.
5503 (free_misc): Likewise.
5504 (gc_sweep): Likewise.
5506 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5508 * mac.c (HASHKEY_QUERY_CACHE): New define.
5509 (xrm_create_database, xrm_q_put_resource): Empty query cache.
5510 (xrm_get_resource): Use query cache.
5512 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
5513 inhibit_window_system is set.
5515 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5517 * macgui.h (USE_CG_TEXT_DRAWING): New define.
5518 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
5521 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
5522 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
5523 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
5524 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
5525 not used and font substitution never occurs for ASCII and Latin-1
5527 (XLoadQueryFont): Maximum and minimum metrics are now those among
5529 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
5530 height adjustments for Courier, Helvetica, and Times.
5532 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
5534 2005-11-11 David Reitter <david.reitter@gmail.com>
5536 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
5537 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
5538 Vmac_control_modifier / mac-control-modifier,
5539 Vmac_option_modifier / mac-option-modifier,
5540 Vmac_command_modifier / mac-command-modifier.
5541 (mac_to_emacs_modifiers): Use the new style modifier
5542 variables. Return UInt32 (modifiers are longs now.)
5543 (backtranslate_modified_keycode): New function (refactoring).
5544 (XTread_socket): Use new modifier variables and refactored function.
5545 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
5546 no dedicated meta key. Not in use anyway.)
5547 (convert_fn_keycode): Map Fn-keys to their original keycode
5548 using a table (english keyboard only).
5550 2005-11-11 Kim F. Storm <storm@cua.dk>
5552 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
5553 Add post hook to "backtrace" to always dump lisp call stack to
5554 increase chance of people sending it to us when reporting bugs.
5556 * doc.c (Fsubstitute_command_keys): Doc fix.
5558 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
5560 * xdisp.c (handle_stop): Skip overlay string handling if
5561 ignore_overlay_strings_at_pos_p is set.
5562 (set_iterator_to_next): At end of display vector, set
5563 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
5564 string, so we skip those overlay strings at current pos.
5566 2005-11-10 Lars Hansen <larsh@soem.dk>
5568 * fileio.c (file-regular-p): Doc fix.
5570 2005-11-10 Kim F. Storm <storm@cua.dk>
5572 * alloc.c (valid_lisp_object_p): New function to validate that
5573 an object is really a valid Lisp_Object.
5575 * lisp.h (valid_lisp_object_p): Add prototype.
5577 * print.c (safe_debug_print): New function to be called from gdb
5578 to print Lisp objects; use valid_lisp_object_p to avoid crashing
5579 if user tries to print something which is not a Lisp object.
5581 * .gdbinit (pp, pp1): Use safe_debug_print.
5582 (pv, pv1): New commands to print value of a lisp variable.
5584 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
5586 * .gdbinit (pp1): New user-defined function.
5588 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5590 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
5592 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
5593 related variables for dumped executable.
5595 * unexmacosx.c (unexec_write_zero): New function.
5596 (copy_data_segment): Clear uninitialized local variables in
5597 statically linked libraries.
5599 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
5601 2005-11-09 Juri Linkov <juri@jurta.org>
5603 * keymap.c (shadow_lookup): If Flookup_key returns a number,
5604 call it again with a sub-key-sequence, and if its return value
5605 is non-nil (sub-key is bound), return nil.
5607 2005-11-08 Kim F. Storm <storm@cua.dk>
5609 * process.c (Fsignal_process): Recognize signal names with and
5610 without SIG prefix, e.g. SIGHUP and HUP.
5612 * search.c (search_buffer): No need to initialize base_pat.
5614 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
5616 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
5617 Don't abuse the `mini' arg. Use the `obj' arg instead.
5619 2005-11-04 Kim F. Storm <storm@cua.dk>
5621 * xdisp.c (show_mouse_face): Clear mouse face to eol.
5623 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
5625 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
5626 font-lock.elc and jit-lock.elc.
5628 2005-11-03 Richard M. Stallman <rms@gnu.org>
5630 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
5631 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
5632 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
5634 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
5636 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
5638 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5640 * window.c (Fdisplay_buffer): Fix last change to not use
5643 2005-11-01 Kim F. Storm <storm@cua.dk>
5645 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
5646 Instead, rotate the bottom angle bitmap 180 degrees to indicate
5647 that the bottom row does not end in a newline.
5649 2005-11-01 Andreas Schwab <schwab@suse.de>
5651 * unexelf.c (unexec): Handle .plt section in BSS segment.
5653 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5655 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
5657 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
5658 determine whether to consider dedicated windows as well.
5659 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
5660 (Fdisplay_buffer): Do consider dedicated windows in those cases where
5661 we will split the window rather than reuse it.
5662 Don't try to use windows on other displays.
5664 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
5666 * puresize.h (BASE_PURESIZE): Increment to 1170000.
5668 2005-10-31 Romain Francoise <romain@orebokech.com>
5670 * macfns.c: Update copyright year.
5671 * m/gould.h: Likewise.
5673 2005-10-30 Kim F. Storm <storm@cua.dk>
5675 * xdisp.c (display_line): Restore it->current_x and call
5676 extend_face_to_end_of_line when last glyph doesn't fit on line.
5677 (set_glyph_string_background_width): Remove specific tests here
5678 to see if face background should extend to end of line. Simplify.
5680 2005-10-30 Richard M. Stallman <rms@gnu.org>
5682 * alloc.c (BYTES_USED): Use uordblks, not arena.
5683 (bytes_used_when_reconsidered): New variable.
5684 (emacs_blocked_free): Set that.
5686 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
5688 * alloc.c (emacs_blocked_free): Fix typo.
5690 2005-10-29 Richard M. Stallman <rms@gnu.org>
5692 * data.c (Fmake_variable_frame_local): Doc fix.
5694 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
5695 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
5696 controls whether to save and restore mode_line_proptrans_alist.
5698 (unwind_format_mode_line): Work with that feature.
5699 (redisplay_internal): Don't call prepare_menu_bars if memory full.
5700 (move_elt_to_front): New function.
5701 (display_mode_element): Use move_elt_to_front.
5702 Don't bother munging text props on a null string.
5703 Delete obsolete elts from mode_line_proptrans_alist.
5704 (decode_mode_spec): Test Vmemory_full, not spare_memory.
5705 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
5707 * lisp.h (memory_full_cons_threshold): Declare.
5708 (internal_lisp_condition_case): Declare.
5710 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
5711 (Fmemory_full_p): Function deleted.
5712 (syms_of_alloc): Don't defsubr it.
5713 (memory_full_cons_threshold): New variable.
5714 (spare_memory): Now a vector of 7 elts.
5715 (buffer_memory_full): Don't set Vmemory_full here.
5716 (xfree): Don't try to refill here.
5717 (emacs_blocked_free): Record BYTES_USED in local var.
5718 (memory_full): Now free all the slots in spare_memory.
5719 (refill_memory_reserve): Allocate each slot in spare_memory.
5720 (init_alloc_once): Call refill_memory_reserve.
5722 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
5724 * eval.c (internal_lisp_condition_case): New function.
5725 (Fcondition_case): Use internal_lisp_condition_case.
5726 (Feval): Test Vmemory_full and memory_full_cons_threshold.
5727 (Ffuncall): Likewise.
5729 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
5731 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
5733 * syntax.c (Fparse_partial_sexp): Fix docstring.
5735 2005-10-28 Romain Francoise <romain@orebokech.com>
5737 * puresize.h (BASE_PURESIZE): Increment to 1130000.
5739 2005-10-28 Richard M. Stallman <rms@gnu.org>
5741 * xfns.c (syms_of_xfns): Provide `x' as feature.
5743 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
5745 * editfns.c (Fformat): Don't include string padding
5746 between info[n].start and info[n].end.
5748 * alloc.c (spare_memory): No longer static.
5749 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
5751 * puresize.h (BASE_PURESIZE): Increment to 1120000.
5753 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
5755 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
5757 * fringe.c (update_window_fringes): Handle case where buffer ends
5760 2005-10-27 Kenichi Handa <handa@m17n.org>
5762 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
5764 2005-10-24 Kenichi Handa <handa@m17n.org>
5766 * charset.h (charset_mule_unicode_0100_24ff)
5767 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5770 * charset.c (charset_mule_unicode_0100_24ff)
5771 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5773 (Fsetup_special_charsets): Initialize them.
5775 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5776 supported Unicode characters.
5778 2005-10-25 Jason Rumney <jasonr@gnu.org>
5780 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
5782 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5784 * image.c [MAC_OS] (image_load_qt_1): Check image size.
5785 Use GraphicsImportGetImageDescription instead of
5786 GraphicsImportGetNaturalBounds.
5787 [MAC_OSX] (image_load_quartz2d): Check image size.
5788 [MAC_OS] (xpm_load_image): Likewise.
5790 * macterm.c (last_mouse_glyph_frame): New var.
5791 (note_mouse_movement): Say mouse moved if current frame differs
5792 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5793 (XTmouse_position): Set last_mouse_glyph_frame.
5794 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
5795 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
5797 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
5798 (x_per_char_metric, XLoadQueryFont)
5799 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
5801 (mac_to_x_fontname, mac_do_list_fonts)
5802 (mac_initialize_display_info): Change screen resolutions to 72dpi.
5804 2005-10-25 Masatake YAMATO <jet@gyve.org>
5806 * minibuf.c (Fdisplay_completion_list): Small doc fix.
5808 2005-10-24 Kim F. Storm <storm@cua.dk>
5810 * xterm.c: Undo 2005-10-23 change.
5811 (last_mouse_glyph_frame): New var.
5812 (note_mouse_movement): Say mouse moved if current frame differs
5813 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5814 (XTmouse_position): Set last_mouse_glyph_frame.
5815 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
5816 last_mouse_glyph] on mouse up/down event.
5818 * editfns.c (Fcompare_buffer_substrings): Fix last change.
5820 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5822 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
5824 2005-10-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
5826 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
5827 so tool tips don't interfere with press on tool bar button.
5829 2005-10-23 Richard M. Stallman <rms@gnu.org>
5831 * casetab.c (Fset_case_table): Doc fix.
5833 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
5834 (readevalloop): Compute ENTIRE properly.
5835 (syms_of_lread) <load-history>: Doc fix.
5837 2005-10-21 Richard M. Stallman <rms@gnu.org>
5839 * lread.c (Fload): Simplify gcpro structure.
5840 Gcpro FOUND as well as FILE, but not EFOUND.
5841 Unless preloading, record FOUND instead of FILE in Vload_history.
5842 Rename repeat local FILE to MSG_FILE.
5843 (syms_of_lread) <load-history>: Doc fix.
5845 2005-10-21 Kenichi Handa <handa@m17n.org>
5847 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
5849 2005-10-20 Kim F. Storm <storm@cua.dk>
5851 * buffer.c (clone_per_buffer_values): Remove unused var tem.
5852 (init_buffer): Remove unused vars dotstat, pwdstat.
5854 * ccl.c (check_ccl_update): Remove unused var vp.
5856 * fileio.c (auto_save_error): Call SAFE_FREE.
5858 * fns.c (Fchar_table_range): Remove unused var i.
5860 * minibuf.c (display_completion_list_1): New wrapper function
5861 for Fdisplay_completion_list.
5862 (Fminibuffer_completion_help): Use it.
5864 * term.c (encode_terminal_code): Remove unused var src_start.
5866 * window.c (Fwindow_tree): Remove unused var alist.
5868 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
5870 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
5872 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
5874 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
5876 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
5878 2005-10-20 Andreas Schwab <schwab@suse.de>
5880 * minibuf.c (Fdisplay_completion_list): Doc fix.
5882 2005-10-19 Kim F. Storm <storm@cua.dk>
5884 * image.c (check_image_size): Handle integer Vmax_image_size value
5885 directly as max pixel value. Use default frame size for null frame.
5886 (syms_of_image) <max-image-size>: Describe integer value.
5888 2005-10-19 Romain Francoise <romain@orebokech.com>
5890 * emacs.c (main): Update copyright year.
5892 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
5894 * image.c (Vmax_image_size): New variable.
5895 (check_image_size): New function.
5896 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
5897 (gif_load, gs_load): Use it.
5898 (lookup_image): Try loading again if previous load failed.
5899 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
5900 to display in, NULL if none.
5901 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
5904 2005-10-18 Richard M. Stallman <rms@gnu.org>
5906 * search.c (Fstring_match): Doc fix.
5908 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5910 * macterm.c (note_mouse_movement): Use PtInRect.
5911 (XTread_socket): Also ignore mouse motion just before a button
5912 release event. Don't process button release event when mouse is
5915 2005-10-16 Masatake YAMATO <jet@gyve.org>
5917 * minibuf.c (Fdisplay_completion_list): Add new optional
5918 argument COMMON_SUBSTRING. Bind `completion-common-substring'
5919 to the optional argument during running `completion-setup-hook'.
5921 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5923 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
5924 Allow nil as argument.
5925 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
5926 for encoding arguments as UTF-16 in native byte order, no BOM.
5928 * macfns.c (Fx_create_frame): Add debugging code.
5929 (Fx_show_tip): Set frame pixel width and height.
5931 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
5932 (FRAME_NORMAL_GC): New macro.
5933 (mac_draw_line, mac_clear_area, mac_clear_window)
5934 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
5935 (mac_draw_image_string, mac_draw_image_string_16): Rename from
5936 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
5937 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
5939 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
5940 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
5941 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
5942 (mac_draw_string_16, mac_draw_image_string)
5943 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
5944 (mac_scroll_area): Drawing functions now take frame as destination.
5946 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
5947 (x_draw_fringe_bitmap): Set clipping area in face->gc.
5949 * macterm.h (mac_clear_area): Add extern.
5951 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5953 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
5954 changes for xterm.c.
5956 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
5958 2005-10-14 Kenichi Handa <handa@m17n.org>
5960 * search.c (search_buffer): Give up BM search on case-fold-search
5961 if one of a target character has a case-equivalence of different
5962 charset even if that target charcter is an ASCII.
5964 * casefiddle.c (casify_object): Fix for the case that case
5965 conversion change the byte length.
5967 2005-10-14 Kim F. Storm <storm@cua.dk>
5969 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
5970 (handle_one_xevent): Only clear help_echo_string; restore it if
5971 note_mouse_movement didn't record any mouse movement.
5973 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
5974 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
5976 * keyboard.c (make_lispy_position): Adjust wx for left margin if
5978 (Fposn_at_x_y): Fix calculation of x coordinate.
5979 (Fposn_at_point): Return nil if point is hscrolled out of view.
5981 2005-10-13 Andreas Schwab <schwab@suse.de>
5983 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
5984 non-interactive mode.
5986 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5988 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
5990 2005-10-12 Kim F. Storm <storm@cua.dk>
5992 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
5994 2005-10-12 Romain Francoise <romain@orebokech.com>
5996 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
5998 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6000 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6001 get end of text rows. Obtain header-line/mode-line rows directly.
6003 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
6004 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
6006 2005-10-12 Kim F. Storm <storm@cua.dk>
6008 * xdisp.c (remember_mouse_glyph): New generic version based on
6009 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
6010 properly handle all different window areas.
6012 * dispextern.h (remember_mouse_glyph): Add prototype.
6014 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
6015 (note_mouse_movement, XTmouse_position): Use generic
6016 remember_mouse_glyph, add last_mouse_glyph arg.
6018 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
6019 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
6020 (note_mouse_movement, w32_mouse_position): Use generic
6021 remember_mouse_glyph, add last_mouse_glyph arg.
6023 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
6024 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
6025 (XTmouse_position): Adapt to use generic remember_mouse_glyph
6026 instead of pixel_to_glyph_coords.
6028 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
6029 Fix x position for ON_TEXT when left margin width > 0.
6031 2005-10-11 Kim F. Storm <storm@cua.dk>
6033 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
6035 * keyboard.c (make_lispy_position): Fix buffer calculations for
6036 mouse click or movement in right fringe and the margins.
6038 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
6040 * image.c (fn_jpeg_stdio_src): Don't define it.
6041 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
6042 (our_common_init_source): Rename from `our_init_source'.
6043 (our_common_term_source): Rename from `our_term_source'.
6044 (our_memory_fill_input_buffer): Rename from
6045 `our_fill_input_buffer'.
6046 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
6047 (jpeg_memory_src): Use the new names.
6048 (struct jpeg_stdio_mgr): New struct.
6049 (JPEG_STDIO_BUFFER_SIZE): New constant.
6050 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
6051 (jpeg_file_src): New functions.
6052 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
6054 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6056 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
6057 (fm_font_family_alist): New variable.
6058 (syms_of_macterm): Initialize and staticpro it.
6059 (decode_mac_font_name): Replace '-' in family name with '_' if it
6060 occurs just once. Lower family name.
6061 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
6062 All uses changed. Remove argument MF and code conversion for it.
6063 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
6064 to CHARSET. Parse font size. Lower family name. Return integer
6065 value for status of parsing.
6066 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
6067 Don't use Fdowncase because family name is already lowered by
6068 decode_mac_font_name.
6069 (init_font_name_table): Always call decode_mac_font_name.
6070 Add pair of family name and its reference to fm_font_family_alist.
6071 (mac_clear_font_name_table): Clear fm_font_family_alist.
6072 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
6073 Lookup fm_font_family_alist to get font family reference.
6074 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
6075 name is already lowered by parse_x_font_name.
6077 2005-10-11 Kim F. Storm <storm@cua.dk>
6079 * xterm.c (glyph_rect): Return 0 if position is outside text area.
6081 * keyboard.c (make_lispy_position): Fix buffer position calculation for
6082 mouse click or movement in fringe.
6084 2005-10-10 Jason Rumney <jasonr@gnu.org>
6086 * xterm.c (remember_mouse_glyph): New function.
6087 (note_mouse_movement): Use it to remember the current glyph if changed.
6088 (XTmouse_position): Fix calculation of fake glyph under mouse.
6089 Move code to calculate glyph under mouse into remember_mouse_glyph.
6091 2005-10-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6093 * emacs.c (USAGE3, standard_args): -nb => -nbi.
6095 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
6097 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
6098 (next_frame, prev_frame, set_term_frame_name): Make static.
6100 * window.c (Fwindow_tree): Fix spelling.
6102 2005-10-09 Romain Francoise <romain@orebokech.com>
6104 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
6106 2005-10-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6108 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
6109 Add options -nb, --no-bitmap-icon.
6111 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
6113 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6115 * macgui.h (MAX_CLIP_RECTS): New define.
6116 (struct _XGC): New member clip_region.
6117 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
6120 * macterm.c (GC_CLIP_REGION): New macro.
6121 (saved_port_clip_region): New variable.
6122 (mac_begin_clip, mac_end_clip): New functions.
6123 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
6124 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
6125 (mac_copy_area_with_mask, mac_scroll_area): Use them.
6126 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
6127 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6128 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
6129 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
6130 rectangles stored in gc.
6131 (XFreeGC): Dispose of clipping region.
6132 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
6133 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
6134 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
6135 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
6136 (x_draw_bar_cursor): Use them.
6137 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
6138 get multiple clipping rectangles.
6140 * macterm.h (mac_term_init): Add types to extern.
6141 (struct mac_output): Remove members mWP and pending_menu_activation.
6142 Put members scroll_bar_foreground_pixel and
6143 scroll_bar_background_pixel in #if 0.
6144 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
6146 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
6149 2005-10-08 Kim F. Storm <storm@cua.dk>
6151 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
6153 2005-10-07 Kim F. Storm <storm@cua.dk>
6155 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
6156 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
6157 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
6159 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6161 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
6162 to for_overlaps. Now occupy 3 bits.
6163 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
6164 (OVERLAPS_ERASED_CURSOR): New defines.
6165 (struct redisplay_interface): Add new OVERLAPS arg to member
6166 fix_overlapping_area.
6167 (x_fix_overlapping_area): Add new OVERLAPS arg.
6168 (get_glyph_string_clip_rects): Add extern.
6170 * dispnew.c (redraw_overlapping_rows):
6171 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
6173 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
6175 (get_glyph_string_clip_rects): New function created from
6176 get_glyph_string_clip_rect. Set clipping rectangles according to the
6177 value of for_overlaps. Enable to store multiple clipping rectangles.
6178 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
6179 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
6180 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
6181 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
6182 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
6183 calculating clipping rectangles later. Call x_fix_overlapping_area
6184 with new OVERLAPS arg to draw only erased cursor area.
6185 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
6186 to draw overlaps in both preceding and succeeding rows.
6188 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
6189 struct glyph_string to for_overlaps.
6191 2005-10-04 Richard M. Stallman <rms@gnu.org>
6193 * alloc.c (refill_memory_reserve): Conditionalize the body,
6194 not the function's existence.
6196 2005-10-04 Kim F. Storm <storm@cua.dk>
6198 * window.c (window_split_tree): New function.
6199 (Fwindow_split_tree): New defun.
6200 (syms_of_window): Defsubr it.
6202 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6204 * macterm.c (mac_invert_rectangle): New function.
6207 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
6209 * regex.h (re_char): Don't expose it in the interface.
6210 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
6212 * regex.c (re_char): Move it back here.
6213 (re_set_whitespace_regexp): Change the arg's type to not use it.
6215 * keyboard.c (make_lispy_event): If point has moved between down and up
6216 event, make it a drag, not a click, to mirror what
6217 mouse-drag-region expects.
6219 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6221 * lisp.h (fatal): Undo previous change.
6222 * term.c (fatal): Undo previous change.
6224 2005-10-01 Richard M. Stallman <rms@gnu.org>
6226 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
6228 2005-10-01 Kim F. Storm <storm@cua.dk>
6230 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
6232 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6234 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
6236 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
6237 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
6238 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
6239 Try ATSUI-compatible 12pt Monaco font first.
6241 * macgui.h (struct _XCharStruct): New member valid_p.
6242 (STORE_XCHARSTRUCT): Set valid_p.
6243 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
6245 * macterm.c (mac_draw_string_common, x_per_char_metric)
6246 (mac_compute_glyph_string_overhangs, init_font_name_table)
6247 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
6248 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
6249 (x_draw_glyph_string_background)
6250 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
6251 XDrawImageString. Always draw background and foreground separately.
6252 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
6253 functions for one-byte chars when using ATSUI-compatible fonts.
6254 (atsu_font_id_hash) [USE_ATSUI]: New variable.
6255 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
6256 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
6257 max_char_or_byte2 more in detail.
6258 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
6260 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
6262 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
6263 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
6265 * unexelf.c (fatal): Fix prototype.
6267 * term.c (fatal): Implement using varargs.
6269 * regex.c (re_char): Move typedef ...
6270 * regex.h (re_char): ... here.
6271 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
6273 * emacs.c (malloc_set_state): Fix return type.
6276 * lisp.h (fatal): Add argument types.
6278 * dispextern.h (fatal): Delete prototype.
6280 * systime.h (make_time): Prototype moved from ...
6281 * editfns.c (make_time): ... here.
6283 * editfns.c: Move systime.h include after lisp.h.
6286 * process.c: Likewise.
6288 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
6289 Add parameter types.
6290 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
6291 (emacs_blocked_free): Change definition to match __free_hook.
6292 (emacs_blocked_malloc): Change definition to match __malloc_hook.
6293 (emacs_blocked_realloc): Change definition to match __realloc_hook.
6295 2005-09-30 Romain Francoise <romain@orebokech.com>
6297 * minibuf.c (Fread_buffer): Follow convention for reading from the
6298 minibuffer with a default value. Doc fix.
6300 2005-09-29 Juri Linkov <juri@jurta.org>
6302 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
6303 Rename argument name `string' to `format-string'.
6306 2005-09-28 Kim F. Storm <storm@cua.dk>
6308 * image.c (gif_load): Fix size of allocated image buffer
6309 for images where a sub-image may be larger than the image's
6310 total height/width specifications.
6312 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6314 * macgui.h (struct _XCharStruct): Each member now takes short value.
6316 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
6318 * xfaces.c (lookup_derived_face): Add parameter type.
6320 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
6322 * marker.c (verify_bytepos): Add parameter type.
6324 * process.c (get_operating_system_release): Move prototype ...
6326 * systime.h (get_operating_system_release): ... here.
6328 * xterm.c (handle_one_xevent): Refer to union field to match the
6329 type required by the function definition.
6330 (set_vertical_scroll_bar): Move prototype ...
6332 * xterm.h: ... here.
6334 * fns.c (internal_equal, seed_random): Fix prototypes.
6335 (internal_equal): Add missing parameter.
6337 2005-09-25 Richard M. Stallman <rms@gnu.org>
6339 * keyboard.c (update_menu_bindings): Variable deleted.
6340 (syms_of_keyboard): Don't defvar it.
6341 (parse_menu_item): Don't test it.
6343 2005-09-23 Richard M. Stallman <rms@gnu.org>
6345 * editfns.c (Fformat): Explicitly test for end of format string
6346 and don't use `index'.
6348 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
6350 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
6351 Define BROKEN_GET_CURRENT_DIR_NAME.
6353 * sysdep.c (get_current_dir_name): Also define if
6354 BROKEN_GET_CURRENT_DIR_NAME.
6356 * m/ibmrs6000.h: Test for USG5, not USG5_4.
6358 2005-09-22 Kim F. Storm <storm@cua.dk>
6360 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
6361 (message2): Fix commentary. Ok to use alloca'ed memory.
6362 Still not ok to use Lisp string data (because of GC).
6363 (set_message): Add comment why GC cannot happen.
6365 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6367 * macterm.c (xlfdpat_block_match_1): Fix assertion.
6368 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
6369 variants for a scalable font multiple times.
6371 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6373 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
6374 Setup slave tty options before forking.
6376 2005-09-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6378 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
6379 positions have been set for the frame (as is done for frames in
6380 special-display-buffer-names).
6382 2005-09-19 Kim F. Storm <storm@cua.dk>
6384 * editfns.c (Fformat): Don't scan past end of format string that
6385 ends in %. Reported by: Johan Bockg
\e,Ae
\e(Brd.
6387 2005-09-18 Andreas Schwab <schwab@suse.de>
6389 * window.h (struct window): Remove height_fixed_p, no longer set.
6391 * window.c (make_window): Don't initialize height_fixed_p.
6392 (window_fixed_size_p): Don't use it.
6394 2005-09-18 John Paul Wallington <jpw@pobox.com>
6396 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
6398 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6400 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
6402 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6404 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
6407 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
6409 2005-09-17 Eli Zaretskii <eliz@gnu.org>
6411 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
6412 (obj): Use XMENU_OBJ, not a literal xmenu.o.
6414 2005-09-16 Romain Francoise <romain@orebokech.com>
6416 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
6418 2005-09-15 Richard M. Stallman <rms@gnu.org>
6420 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
6421 (display_mode_element): Instead of `lisp_string' and `this',
6422 record `offset' and increment that.
6423 `last_offset' replaces `last'.
6425 * Makefile.in (XMENU_OBJ): Variable deleted.
6426 (obj): Use xmenu.o unconditionally.
6427 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
6429 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
6431 2005-09-15 Kim F. Storm <storm@cua.dk>
6433 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
6434 (reseat_at_next_visible_line_start): Likewise (in xassert).
6436 2005-09-14 Romain Francoise <romain@orebokech.com>
6438 * fileio.c (write_region_inhibit_fsync): New variable.
6439 (Fwrite_region): Use it to skip call to fsync.
6440 (syms_of_fileio): Initialize it.
6442 2005-09-14 Kenichi Handa <handa@m17n.org>
6444 * coding.c (code_convert_region_unwind): Argument format changed.
6445 (run_pre_post_conversion_on_str): If pre-write-conversion function
6446 changed the current buffer, delete the new buffer.
6447 (run_pre_write_conversin_on_c_str): Likewise.
6449 * fileio.c (Fexpand_file_name): Check multibyteness of
6452 2005-09-13 Kenichi Handa <handa@m17n.org>
6454 * composite.c (compose_chars_in_text): Delete it.
6456 * composite.h (compose_chars_in_text): Delete extern.
6458 2005-09-13 Kim F. Storm <storm@cua.dk>
6460 * print.c (print_error_message): Fix last change.
6462 2005-09-12 Kim F. Storm <storm@cua.dk>
6464 * composite.c (compose_chars_in_text): Fix setup of `pend'.
6465 Unconditionally reload `ptr' and `pend' after eval.
6467 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
6469 * print.c (print_error_message): Pass copy of caller name to
6472 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
6474 2005-09-12 Kenichi Handa <handa@m17n.org>
6476 * xdisp.c (display_mode_element): Be sure to make variables THIS
6477 and LISP_STRING point into a string data of ELT.
6479 2005-09-12 Kim F. Storm <storm@cua.dk>
6481 * editfns.c (Ftranslate_region_internal): Reload `tt' after
6482 signal_after_change that may have GC'ed.
6483 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
6485 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
6486 after insert while runs signal_after_change.
6488 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
6489 declaration to where it is used.
6491 * w32.c (check_windows_init_file): Fix allocation of error buffer.
6493 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
6494 (x_set_name_internal): Call x_encode_text with new FREEP arg to
6495 know if xfree is needed instead of guessing.
6497 * xterm.h (x_encode_text): Remove prototype.
6499 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
6501 * w32term.c (x_bitmap_icon): Load small icons too.
6503 2005-09-10 Romain Francoise <romain@orebokech.com>
6505 * buffer.c (init_buffer): Grow buffer to add directory separator
6506 and terminal zero. Fix typos.
6508 2005-09-10 Eli Zaretskii <eliz@gnu.org>
6510 * buffer.c (init_buffer): Fix error message for failed call to
6511 get_current_dir_name.
6512 (get_current_dir_name): Remove prototype.
6514 * xsmfns.c (get_current_dir_name): Remove prototype.
6516 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
6519 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
6520 Don't #undef NULL after including blockinput.h.
6522 * config.in: Regenerated.
6524 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
6526 Remove the MAXPATHLEN limitations:
6528 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
6531 * buffer.c (init_buffer): Use it.
6533 * xsmfns.c (smc_save_yourself_CB): Ditto.
6535 2005-09-09 Kim F. Storm <storm@cua.dk>
6537 * doc.c (Fsubstitute_command_keys): Lookup key binding for
6538 commands that are remapped from some other command.
6540 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
6541 flag in disabled rows below the window.
6543 * frame.h (struct frame): New member updated_p.
6545 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
6546 member. Remove local `updated' array and associated variables.
6548 2005-09-07 Kim F. Storm <storm@cua.dk>
6550 * xdisp.c (handle_display_prop): Respect overlay window property.
6552 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
6553 Fixes crash reported by YAMAMOTO Mitsuharu.
6555 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6557 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
6558 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
6559 (xlfdpat_block_match_1, xlfdpat_match): New functions.
6560 (xlfdpat_block_match): New macro.
6561 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
6562 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
6563 (add_font_name_table_entry): Increase font_name_table_size more
6565 (mac_c_string_match): Remove function.
6566 (mac_do_list_fonts): Use XLFD pattern match instead of regular
6569 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
6571 2005-09-03 Richard M. Stallman <rms@gnu.org>
6573 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
6574 (move_it_in_display_line_to): Stop after last char on line even
6575 on a windowing terminal, if that's the specified stop position.
6577 * fns.c (Fsort): Doc fix.
6579 * editfns.c (Fpropertize): Don't insist that properties be symbols.
6581 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
6583 * dired.c (directory_files_internal_unwind, directory_files_internal)
6584 (file_name_completion): Use a Save_Value object rather than a cons of
6585 two 16bit ints to store the DIR*.
6586 (directory_files_internal, file_name_completion): Handle both EINTR and
6587 EAGAIN consistently after `readdir'.
6589 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
6591 * intervals.c (update_interval): Add position info in error.
6593 * dispnew.c (window_to_frame_hpos, update_window):
6594 Avoid gcc warning about unused variable `f'.
6596 2005-08-31 Jason Rumney <jasonr@gnu.org>
6598 * w32menu.c (add_menu_item): If unicode_append_menu returns an
6599 error, revert to using AppendMenu.
6601 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6603 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
6605 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
6607 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
6608 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
6609 Use posix_pathname_to_fsspec.
6610 [MAC_OS] (xpm_load_image): Fill in background_transparent field
6613 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
6615 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
6617 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6619 * syntax.c (update_syntax_table): Properly reproduce the special +1
6620 setting of e_property at the end of the buffer when bumping into the
6621 INTERVALS_AT_ONCE limit.
6623 2005-08-27 Eli Zaretskii <eliz@gnu.org>
6625 * emacs.c (USAGE1): Fix the description of the -Q option.
6627 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
6629 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
6631 2005-08-26 Kim F. Storm <storm@cua.dk>
6633 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
6634 Don't move PT to new window start.
6636 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6638 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
6639 ICONIFY/DEICONIFY_EVENT.
6641 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
6642 Restore background color.
6643 (mac_handle_visibility_change): New function.
6644 (x_make_frame_invisible, x_iconify_frame)
6645 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
6646 [USE_CARBON_EVENTS] (mac_handle_window_event)
6647 (install_window_handler): Handle visibility change events.
6648 (x_make_frame_visible): Don't reposition window if it is iconified
6649 or asked for visible before. Select and uncollapse window when it
6651 (x_make_frame_invisible): Don't reset x_highlight_frame.
6652 (x_iconify_frame): Likewise. Make invisible frame visible before
6654 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
6655 (do_window_update): Don't change visibility of invisible frame.
6657 2005-08-22 Juri Linkov <juri@jurta.org>
6659 * term.c (turn_on_face): Check for TS_set_foreground and
6660 TS_set_background depending on standout_mode. Simplify.
6662 2005-08-21 Kim F. Storm <storm@cua.dk>
6664 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
6665 bitmaps on fully visible rows.
6667 * fringe.c (update_window_fringes): Replace FORCE_P arg with
6668 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
6671 * xdisp.c (redisplay_window): Call update_window_fringes with
6672 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
6674 2005-08-20 Richard M. Stallman <rms@gnu.org>
6676 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
6677 (resize_mini_window): Set w->start, and PT, so as to display the tail
6678 end of the buffer, if it doesn't all fit.
6680 2005-08-18 Kim F. Storm <storm@cua.dk>
6682 * xdisp.c (calc_pixel_width_or_height): Use actual display
6683 resolution when available instead of Vdisplay_pixels_per_inch.
6685 2005-08-17 Kim F. Storm <storm@cua.dk>
6687 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
6689 * dispnew.c (buffer_posn_from_coords): Check that target row is
6692 2005-08-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6694 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
6695 xg_set_frame_icon and call it.
6697 * gtkutil.c (xg_set_frame_icon): New function.
6699 * gtkutil.h (xg_set_frame_icon): Declare it.
6701 2005-08-16 Kim F. Storm <storm@cua.dk>
6703 * dispnew.c (increment_row_positions): Skip non-enabled rows.
6705 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
6706 (Fcurrent_window_configuration): Use VECSIZE macro instead.
6708 2005-08-15 Richard M. Stallman <rms@gnu.org>
6710 * xdisp.c (message3_nolog): Clear echo_message_buffer.
6712 2005-08-15 Kim F. Storm <storm@cua.dk>
6714 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
6716 * process.c (deactivate_process, status_notify, read_process_output)
6717 (update_status, status_convert, decode_status, allocate_pty)
6718 (make_process, remove_process, list_processes_1)
6719 (create_process_1, unwind_request_sigio, read_process_output)
6720 (send_process, keyboard_bit_set): Declare static.
6721 (Fdelete_process): Simplify. Pass process to status_notify, so we
6722 don't try to read output from it.
6723 (status_notify): New arg deleting_process--don't try to read
6724 output from that process.
6726 * lisp.h (deactivate_process, status_notify, read_process_output):
6729 2005-08-14 Richard M. Stallman <rms@gnu.org>
6731 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
6734 2005-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6736 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
6737 (xg_get_image_for_pixmap): Move some code to
6738 xg_get_pixbuf_from_pix_and_mask, and call it.
6740 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
6742 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
6743 to get an GTK icon and set it with GTK functions to avoid having GTK
6744 override an icon set with just X functions.
6746 2005-08-11 Richard M. Stallman <rms@gnu.org>
6748 * image.c (syms_of_image): Init image_types here, and call
6750 (init_image): Not here.
6752 2005-08-09 Richard M. Stallman <rms@gnu.org>
6754 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
6756 * lisp.h (QUIT): Throw t to Vthrow_on_input.
6758 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
6760 * floatfns.c (Fexpt): Use floats for negative exponent.
6762 2005-08-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
6764 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
6765 should not be there, causing menu display errors with GTK 2.6.9.
6767 2005-08-07 Richard M. Stallman <rms@gnu.org>
6769 * floatfns.c (Fexpt): Undo previous change.
6771 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
6772 so it can be used with various state vectors.
6774 * emacs.c (endif): Convert -script into -scriptload.
6775 (standard_args): Add -scriptload. Allow -basic-display with one dash.
6777 * fns.c (syms_of_fns): Add `emacs' to features.
6779 * term.c (set_terminal_modes): If no TS_termcap_modes string,
6780 output newlines to scroll the old screen contents off the screen.
6782 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
6784 * floatfns.c (Fexpt): Use floats for negative exponent.
6787 2005-08-02 Richard M. Stallman <rms@gnu.org>
6789 * frame.c (Fframe_char_width): Doc fix.
6791 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
6793 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
6796 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
6798 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
6799 (my_create_window, my_create_tip_window): Make static.
6801 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
6802 (my_set_foreground_window, my_destroy_window): Make static.
6804 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
6806 Merge gnulib getopt implementation into Emacs.
6808 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
6809 now part of lib-src.
6811 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
6813 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
6815 2005-07-25 Jason Rumney <jasonr@gnu.org>
6817 * w32menu.c (w32_menu_display_help): Suppress tooltip when
6818 navigating menus with the keyboard.
6820 2005-07-23 Richard M. Stallman <rms@gnu.org>
6822 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
6824 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
6825 gc_relative_threshold, one by one.
6827 * keyboard.c (read_char): Test gc_cons_threshold.
6828 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
6830 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
6831 gc_relative_threshold, one by one.
6833 * alloc.c (gc_cons_threshold): Not static.
6834 (gc_cons_combined_threshold): Var deleted.
6835 (gc_relative_threshold): New variable.
6836 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
6837 instead of gc_cons_combined_threshold.
6839 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
6840 (gc_cons_combined_threshold): Declaration deleted.
6842 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6844 * mac.c: Don't include stdlib.h or string.h.
6845 (Fdo_applescript, Fmac_file_name_to_posix)
6846 (Fmac_file_name_to_posix): Doc fixes.
6847 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
6848 (Fmac_code_convert_string): Likewise.
6849 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
6850 if the executable is not contained in a bundle.
6852 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
6853 (gray_width, gray_height): Remove defines.
6854 (gray_bits, gray_bitmap_width, gray_bitmap_height)
6855 (gray_bitmap_bits): Remove variables.
6856 (lispy_function_keys): Remove extern.
6857 (free_frame_menubar): Add extern.
6858 (x_window_to_frame): Remove function.
6859 (unwind_create_tip_frame): Add declaration.
6860 (x_set_name_internal): New function.
6861 (x_set_name, x_set_title): Use it.
6862 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
6863 (Fx_display_pixel_height, Fx_display_planes)
6864 (Fx_display_color_cells, Fx_server_max_request_size)
6865 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6866 (Fx_display_mm_height, Fx_display_mm_width)
6867 (Fx_display_backing_store, Fx_display_visual_class)
6868 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
6870 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
6872 * macselect.c (Fx_own_selection_internal): Follow error conventions.
6873 (Fx_get_selection_internal, Fx_selection_owner_p)
6874 (Fx_selection_exists_p): Doc fixes.
6875 (syms_of_macselect) <selection-converter-alist>: Likewise.
6877 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
6879 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6881 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
6882 (Fccl_execute_on_string): Likewise; add usage info.
6884 * composite.c (Fcompose_region_internal)
6885 (Fcompose_string_internal):
6886 Improve argument/docstring consistency.
6888 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
6889 Fix typos in docstrings.
6891 * textprop.c (Fnext_char_property_change)
6892 (Fprevious_char_property_change): Doc fixes.
6894 * window.c (Fset_window_margins, Fset_window_fringes):
6895 Improve argument/docstring consistency.
6897 * xfaces.c (Finternal_lisp_face_p): Doc fix.
6899 2005-07-21 Andreas Schwab <schwab@suse.de>
6901 * eval.c (restore_stack_limits): Return a value.
6903 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
6905 * eval.c (Fdefvar): Doc fix.
6907 2005-07-20 Kim F. Storm <storm@cua.dk>
6909 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
6910 Use make_save_value to unwind protect stream.
6912 * lread.c (Fload, load_unwind):
6913 Use make_save_value to unwind protect stream.
6915 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
6917 * eval.c (Fprog2, Fcalled_interactively_p),
6918 (syms_of_eval) <debug-on-quit>: Doc fixes.
6919 (syms_of_eval) <max-specpdl-size>:
6920 (Finteractive_p): Fix typos in docstrings.
6922 2005-07-19 Kim F. Storm <storm@cua.dk>
6924 * w32fns.c (Vx_hand_shape): Variable removed.
6925 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
6927 2005-07-19 Kenichi Handa <handa@m17n.org>
6929 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
6931 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
6933 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
6935 2005-07-18 Kim F. Storm <storm@cua.dk>
6937 * frame.h (struct frame): New member already_hscrolled_p.
6939 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
6940 to avoid redisplay looping hscrolling back and forth ad infinitum.
6942 2005-07-18 Juri Linkov <juri@jurta.org>
6944 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
6945 * keymap.c (Fminor_mode_key_binding):
6946 * macterm.c (mac-emulate-three-button-mouse):
6947 Delete duplicate duplicate words.
6949 2005-07-18 Ken Raeburn <raeburn@gnu.org>
6951 * minibuf.c (Ftest_completion): Fix odd syntax in test.
6953 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6955 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
6957 * macgui.h (struct _XGC): New struct.
6959 (GCForeground, GCBackground, GCFont): Use X11 mask values.
6960 (XCreateGC, XParseGeometry): Move externs to macterm.h.
6962 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
6963 (XSetFont): Add declaration.
6964 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
6966 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
6968 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
6969 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
6970 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
6972 (mac_erase_rectangle): New function.
6973 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
6974 (x_draw_stretch_glyph_string): Use it.
6975 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
6976 (XSetBackground, XSetFont): Adjust for new GC implementation.
6977 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
6978 (XTset_vertical_scroll_bar): Clear area under scroll bar.
6980 * macterm.h (struct mac_display_info): Change types of
6981 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
6982 (XCreateGC, XParseGeometry): Move externs from macgui.h.
6984 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
6986 2005-07-16 Richard M. Stallman <rms@gnu.org>
6988 * buffer.c (Fmake_overlay): Doc fix.
6990 2005-07-16 Eli Zaretskii <eliz@gnu.org>
6992 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
6993 Vw32_valid_locale_ids, and Vw32_valid_codepages.
6995 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6997 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
6998 Use Fstring_as_unibyte instead of string_make_unibyte.
7000 2005-07-15 Richard M. Stallman <rms@gnu.org>
7002 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
7004 2005-07-15 Kim F. Storm <storm@cua.dk>
7006 * xdisp.c: Fix redisplay loop in last change.
7007 (IT_POS_VALID_AFTER_MOVE_P): New macro.
7008 (move_it_vertically_backward, move_it_by_lines): Use it.
7010 2005-07-14 Jason Rumney <jasonr@gnu.org>
7012 * w32.c (init_environment): Default HOME directory to user's
7013 appdata directory if possible.
7015 2005-07-14 Kim F. Storm <storm@cua.dk>
7017 * .gdbinit (pitx): Fix output format. Print string charpos.
7019 * lread.c (syms_of_lread): Initialize seen_list.
7021 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
7023 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
7024 Staticpro re_match_object.
7026 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7028 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
7031 * macterm.c (mac_window_to_frame): Remove duplicate define.
7033 2005-07-14 Kenichi Handa <handa@m17n.org>
7035 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
7036 (code_convert_region): Adjust for the above change.
7037 (set_conversion_work_buffer): If the work buffer is already in
7038 use, generate a new buffer and return it. Otherwise return Qnil.
7039 (run_pre_post_conversion_on_str): Adjust for the above change.
7040 (run_pre_write_conversin_on_c_str): Likewise.
7042 2005-07-13 Kim F. Storm <storm@cua.dk>
7044 * xdisp.c (start_display): Don't reseat to next visible line start
7045 if current start position is in a string or image.
7046 (move_it_vertically_backward): Be sure to move out of strings and
7047 images when moving it2 forward.
7048 (move_it_by_lines): When moving forward, move to next buffer
7049 position if we end up in a string or image. When moving backward,
7050 count rows moved over when moving to start of current row in case
7051 row starts in middle of a string or image. Also move further
7052 backward if we end up in a string or image.
7053 (try_cursor_movement): If overlay string spans multiple lines,
7054 move backward to set cursor on start of an overlay string.
7055 (cursor_row_p): Row is ok if cursor is at newline from string, but
7056 string starts on this line (so we always position cursor at start
7059 * indent.c (Fvertical_motion): If start position is on an image,
7060 don't move back if we move too far (that's almost certain to happen).
7062 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
7063 row in minibuffer windows.
7064 (try_window): Don't check margins in minibuffer windows.
7066 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7068 * macterm.c: Don't include stdlib.h or composite.h.
7069 (x_use_underline_position_properties, last_mouse_press_frame)
7070 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
7071 (syms_of_macterm, mac_initialize): Don't initialize them.
7072 (waiting_for_input, initial_argv, initial_argc)
7073 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
7074 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
7075 (extra_keyboard_modifiers): Fix type in extern.
7076 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
7077 (x_scroll_bar_report_motion): Add argument types to declaration.
7078 (mac_compute_glyph_string_overhangs): Add declaration.
7079 (disable_mouse_highlight): Remove unused variable.
7080 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
7081 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
7082 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
7083 All callers changed.
7084 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
7086 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
7087 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
7088 only when its width is less than the height.
7089 (XTredeem_scroll_bar): Sync with xterm.c.
7090 (font_name_table, font_name_table_size, font_name_count):
7092 (drag_and_drop_file_list): Remove variable. Previous use is now
7094 (do_ae_open_documents): Move DRAG_N_DROP event construction part
7096 (XTread_socket): Consolidate setting of event timestamp.
7097 Move DRAG_N_DROP event construction part to do_ae_open_documents.
7098 Support extra_keyboard_modifiers.
7100 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
7101 beginning with that for ASCII.
7103 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
7105 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
7106 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
7107 (syms_of_alloc): Declare gc-cons-percentage.
7109 * eval.c (Feval, Ffuncall):
7110 * keyboard.c (read_char):
7111 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
7113 * lisp.h (gc_cons_combined_threshold): Declare.
7115 2005-07-12 Kim F. Storm <storm@cua.dk>
7117 * coding.c (Qprocess_argument):
7118 * coding.h (Qprocess_argument): Remove unused var.
7120 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
7122 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7124 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
7126 [!MAC_OSX] (fchmod, fchown): New functions.
7127 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
7128 Use SBYTES and EndianU32_BtoN.
7129 (mac_get_object_from_code): Return 4 byte string even if argument
7130 is 0. Use make_unibyte_string and EndianU32_NtoB.
7131 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
7132 (Fmac_set_file_type): Fix documents and argument declarations.
7133 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
7135 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
7137 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
7139 2005-07-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7141 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
7142 Lucid if X_I18N, font otherwise.
7144 2005-07-10 Steven Tamm <steventamm@mac.com>
7146 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
7147 (Fmac_set_file_type, Fmac_set_file_creator): Add.
7148 (mac_get_object_from_code, mac_get_code_from_arg): Add.
7150 2005-07-10 Richard M. Stallman <rms@gnu.org>
7152 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
7153 (syms_of_lread): Set up eval-buffer-list.
7154 (Feval_buffer, Feval_region): Bind eval-buffer-list.
7156 2005-07-08 Richard M. Stallman <rms@gnu.org>
7158 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
7160 2005-07-08 Kim F. Storm <storm@cua.dk>
7162 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
7163 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
7165 2005-07-07 Kim F. Storm <storm@cua.dk>
7167 * window.c (Frecenter): Fix last change (set iarg before use).
7169 2005-07-06 Richard M. Stallman <rms@gnu.org>
7171 * window.c (Frecenter): When arg is inside the scroll margin,
7172 move it out of the margin.
7174 2005-07-06 Jason Rumney <jasonr@gnu.org>
7176 * w32console.c (initialize_w32_display): Detect when the console
7177 dimensions are insane, and default to 80x25 instead.
7178 (w32_use_full_screen_buffer): Default to nil.
7180 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7182 * macterm.c (mac_draw_vertical_window_border): Use foreground of
7183 VERTICAL_BORDER_FACE_ID for vertical border line.
7184 (mac_encode_char): Call check_ccl_update in advance.
7185 (mac_to_x_fontname, x_font_name_to_mac_font_name)
7186 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
7187 Don't assume that font family length is less than 32.
7188 (x_compute_min_glyph_bounds): Make static.
7189 (x_load_font): Never set fonts_changed_p to zero.
7191 2005-07-04 Lute Kamstra <lute@gnu.org>
7193 * Update FSF's address in GPL notices.
7195 2005-07-03 Richard M. Stallman <rms@gnu.org>
7197 * xdisp.c (try_window): Fix previous change in how it handles
7198 a partially-visible line or one only partly past the margin.
7200 * window.c (window_scroll_pixel_based): Take account
7201 of this_scroll_margin when finding point when scrolling up.
7203 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
7205 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7206 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
7207 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7209 2005-07-02 Juri Linkov <juri@jurta.org>
7211 * w32term.c (w32_draw_vertical_window_border): Use foreground of
7212 VERTICAL_BORDER_FACE_ID for vertical border line.
7214 2005-07-02 Eli Zaretskii <eliz@gnu.org>
7216 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
7217 fchmod so that chmod doesn't get called on MSDOS before the file
7220 2005-07-01 Jason Rumney <jasonr@gnu.org>
7222 * w32term.c (cleartype_active): New flag for enabling sub-pixel
7224 (w32_initialize): Initialize it.
7225 (w32_native_per_char_metric): Allow a couple of extra pixels when
7226 Cleartype is active.
7228 * w32term.c (w32_initialize): Move check for screen reader here
7229 from syms_of_w32term.
7231 2005-06-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7233 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
7236 2005-07-01 Masatake YAMATO <jet@gyve.org>
7238 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
7240 2005-06-30 Juri Linkov <juri@jurta.org>
7242 * xdisp.c (x_draw_vertical_border): If left fringe is not present
7243 decrease x coord of vertical border by 1 pixel to not occupy text
7244 area of the right window.
7246 * xterm.c (x_draw_vertical_window_border): Use foreground of
7247 VERTICAL_BORDER_FACE_ID for vertical border line.
7249 * term.c (turn_on_face): In standout mode apply specified
7250 fg to bg, and specified bg to fg (this makes the logic of
7251 inversion on terminal consistent with X).
7253 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
7255 * eval.c (user_variable_p_eh): New function.
7256 (Fuser_variable_p): Use it. Clarify docstring.
7257 Return t for aliases of user options, nil for alias loops.
7259 2005-06-27 Richard M. Stallman <rms@gnu.org>
7261 * eval.c (Fdefvar): Improve error message.
7263 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7265 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
7268 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
7270 * eval.c (Fdefvar): Don't try to set constant symbols.
7272 2005-06-25 Richard M. Stallman <rms@gnu.org>
7274 * macfns.c (Fx_show_tip): Pass new arg to try_window.
7276 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
7278 * xfns.c (Fx_show_tip): Pass new arg to try_window.
7280 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
7281 (redisplay_window): Handle try_window reporting point in scroll margin.
7283 * dispextern.h (try_window): Declare new arg.
7285 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
7286 Use fchmod to copy the file modes.
7287 (Frename_file): Don't copy UID and GID here;
7288 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
7290 * eval.c (call_debugger): Take full care of extending stack limits
7291 to make space for the debugger, and restore the change afterward.
7292 Bind debug-on-error to nil.
7293 (restore_stack_limits): New subroutine.
7294 (Fsignal): Extend specpdl bound along with eval depth bound,
7295 for calling edebug. Don't do either one, for calling debugger.
7296 (find_handler_clause): Don't bind debug-on-error here.
7297 Don't unbind anything either.
7298 Temporarily advance max_specpdl_size for calling
7299 internal_with_output_to_temp_buffer.
7300 (grow_specpdl): Don't alter max_specpdl_size before signaling
7302 (syms_of_eval) <max-specpdl-size>: Doc fix.
7304 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
7306 2005-06-24 Eli Zaretskii <eliz@gnu.org>
7308 * fileio.c (Frename_file): Undo last change: no need to ifdef away
7309 chown on DOS_NT platforms.
7311 * w32.c (sys_chown): New function.
7313 * s/ms-w32.h (chown): New; define to sys_chown.
7315 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
7317 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
7318 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
7320 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
7322 2005-06-23 Richard M. Stallman <rms@gnu.org>
7324 * xdisp.c (get_next_display_element): Finish reversing the tests of
7325 Vnobreak_char_display.
7327 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
7329 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
7330 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
7332 * fileio.c (Frename_file): Preserve owner and group, if possible,
7335 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
7337 * abbrev.c (Funexpand_abbrev):
7338 * category.c (Fmake_category_set):
7339 * dispnew.c (Fsleep_for, Fsit_for):
7340 * editfns.c (Fsubst_char_in_region):
7341 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
7342 * frame.c (make_frame_without_minibuffer):
7343 * lread.c (read_vector):
7344 * macfns.c (check_x_frame):
7345 * process.c (Fstop_process, Fcontinue_process):
7346 * search.c (Freplace_match):
7347 * syntax.c (Fstring_to_syntax):
7348 * w32fns.c (check_x_frame, check_x_display_info):
7349 * xfaces.c (x_supports_face_attributes_p):
7350 * xselect.c (Fx_own_selection_internal): Follow error conventions.
7352 * image.c (fn_png_init_io): Don't define it.
7353 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
7354 (png_read_from_file): New function, based on png_read_from_memory.
7355 (png_load): Use it, instead of fn_png_init_io.
7357 2005-06-23 Kim F. Storm <storm@cua.dk>
7359 * search.c (Fmatch_data): Remove evaporate option.
7360 (Fset_match_data): Do not mention evaporate option in doc string.
7361 Add commentary explaining evaporate arg (for internal use only).
7362 (unwind_set_match_data): Add comment on evaporate use.
7364 2005-06-22 Miles Bader <miles@gnu.org>
7366 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
7367 (realize_basic_faces, syms_of_xfaces): Update references to it.
7368 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
7369 to `VERTICAL_BORDER_FACE_ID'.
7370 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
7372 2005-06-21 Juri Linkov <juri@jurta.org>
7374 * dispextern.h: Add extern Qframe_set_background_mode.
7376 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
7377 Qframe_set_background_mode.
7379 * frame.c (Fmodify_frame_parameters):
7380 Call frame-set-background-mode after changing the background color
7381 on non-window non-dos branch.
7383 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
7385 * fns.c (Fchar_table_range):
7386 * process.c (Fmake_network_process): Fix spellings.
7388 2005-06-20 Kim F. Storm <storm@cua.dk>
7390 * fns.c (Fsort): Doc fix.
7392 2005-06-20 Miles Bader <miles@gnu.org>
7394 * xfaces.c (Qvertical_divider): New variable.
7395 (realize_basic_faces): Realize its face.
7396 (syms_of_xfaces): Initialize it.
7398 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
7400 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
7401 window-separator on ttys using `vertical-divider' face by default.
7403 2005-06-17 Richard M. Stallman <rms@gnu.org>
7405 * xdisp.c (get_next_display_element):
7406 Reverse test of Vshow_nonbreak_escape.
7408 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
7409 (Ftty_no_underline): New function.
7410 (syms_of_term): defsubr it.
7412 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
7414 * dispnew.c (spec_glyph_lookup_face): New function.
7415 (build_frame_matrix_from_leaf_window): Use it.
7417 * dispextern.h (spec_glyph_lookup_face): Add declaration.
7419 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7421 2005-06-12 Richard M. Stallman <rms@gnu.org>
7423 * keyboard.c (read_char): After catching a longjmp,
7424 call restore_getcjmp.
7426 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
7428 * xselect.c (lisp_data_to_selection_data): Fix spelling.
7430 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7432 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
7433 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
7434 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
7436 (XTread_socket): Don't pass keyboard events with the option
7437 modifier to the system when Vmac_command_key_is_meta is nil or
7438 Vmac_option_modifier is non-nil.
7439 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
7440 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
7441 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
7443 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
7444 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
7445 handler part to mac_handle_mouse_event.
7447 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
7449 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
7450 NEW-ALIAS and BASE-VARIABLE, respectively.
7452 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7454 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7455 (get_phys_cursor_geometry, format_mode_line_unwind_data)
7456 (get_line_height_property, x_produce_glyphs): Remove unused vars.
7458 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
7460 2005-06-13 Eli Zaretskii <eliz@gnu.org>
7462 * w32term.c (x_use_underline_position_properties): New variable.
7463 (x_draw_glyph_string): Remind in a comment to change doc string of
7464 x-use-underline-position-properties if/when underline positioning
7466 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
7467 and initialize it to nil.
7469 2005-06-12 Jason Rumney <jasonr@gnu.org>
7471 * w32fns.c (NEWOPENFILENAME): New struct.
7472 (Fx_file_dialog): Use it to trick the system into giving us up to
7473 date dialogs on systems that are documented to support it.
7474 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
7476 2005-06-12 Eli Zaretskii <eliz@gnu.org>
7478 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
7479 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
7481 2005-06-11 Eli Zaretskii <eliz@gnu.org>
7483 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
7484 to CreateDIBSection to avoid a compiler warning.
7485 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
7487 (png_load): Cast return values of fn_png_create_read_struct and
7488 fn_png_create_info_struct, to avoid compiler warnings on W32.
7489 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
7490 to avoid compiler warnings.
7491 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
7492 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
7493 avoid a compiler warning.
7494 (tiff_load): Cast return values of fn_TIFFOpen and
7495 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
7496 to IMAGE_BACKGROUND to avoid a compiler warning.
7497 (gif_load): Cast return values of fn_DGifOpenFileName and
7498 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
7499 IMAGE_BACKGROUND to avoid a compiler warning.
7500 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
7503 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
7504 the call to CreateDIBSection, to avoid a compiler warning.
7506 2005-06-11 Jason Rumney <jasonr@gnu.org>
7508 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
7510 * macfns.c (Fx_file_dialog): Likewise.
7512 2005-06-10 Eli Zaretskii <eliz@gnu.org>
7514 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
7516 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
7518 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
7519 * w32fns.c (syms_of_w32fns): Fix spellings.
7521 2005-06-10 Eli Zaretskii <eliz@gnu.org>
7523 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
7524 `verbose'; print diagnostic messages only if it is non-zero.
7525 All callers changed to pass a zero value unless DEBUG_DUMP is defined
7527 (copy_executable_and_dump_data): Print section names with %.8s.
7529 2005-06-10 Masatake YAMATO <jet@gyve.org>
7531 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
7532 when mouse_face is not given.
7534 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
7536 * window.c (Fselect_window): Adapt call to Fselect_frame.
7538 * lisp.h: Update EXFUN of Fselect_frame.
7540 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
7542 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
7544 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
7545 Adapt to above change.
7547 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
7549 * fns.c (Fmemq, Fmaphash): Doc fixes.
7551 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
7553 * xfaces.c (Fdisplay_supports_face_attributes_p):
7554 Fix typo in docstring.
7556 2005-06-08 Steven Tamm <steventamm@mac.com>
7558 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
7559 used by gcc4 on intel mac.
7561 2005-06-09 Kim F. Storm <storm@cua.dk>
7563 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
7564 in REUSE list if non-nil; free them if equal to evaporate.
7565 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
7566 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
7567 (restore_search_regs): Rename from restore_match_data. Uses changed.
7568 (unwind_set_match_data): New function.
7569 (record_unwind_save_match_data): New function like save-match-data.
7571 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
7572 (record_unwind_save_match_data): Add prototype.
7573 (restore_search_regs): Rename from restore_match_data.
7575 * composite.c (compose_chars_in_text):
7576 * eval.c (do_autoload):
7577 * macmenu.c (set_frame_menubar):
7578 * process.c (read_process_output, exec_sentinel):
7579 * xmenu.c (set_frame_menubar):
7580 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
7581 * w32menu.c (set_frame_menubar):
7582 Use record_unwind_save_match_data.
7584 2005-06-08 Richard M. Stallman <rms@gnu.org>
7586 * xdisp.c (get_next_display_element): Alter previous change:
7587 Distinguish Vshow_nonbreak_escape = t or not t.
7588 For t, use escape_glyph once again, as before previous change.
7589 Use space or hyphen for display, instead of the non-ASCII char.
7590 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
7592 * process.c (Fstart_process): Don't touch command_channel_p slot.
7594 * process.h (struct process): Delete command_channel_p.
7596 2005-06-07 Masatake YAMATO <jet@gyve.org>
7598 * xdisp.c (note_mode_line_or_margin_highlight):
7599 Check the overlapping of re-rendering area to avoid flickering.
7600 (note_mouse_highlight): Call clear_mouse_face if PART
7601 is not ON_MODE_LINE nor ON_HEADER_LINE.
7603 2005-06-07 Kim F. Storm <storm@cua.dk>
7605 * process.c: Improve commentary for adaptive read buffering.
7607 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
7609 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
7612 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7614 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
7615 New functions for popping down menus on C-g.
7616 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
7618 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
7621 * config.in: Add HAVE_CANCELMENUTRACKING.
7623 2005-06-06 Eli Zaretskii <eliz@gnu.org>
7625 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
7627 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
7629 * w32proc.c (RVA_TO_PTR): New macro.
7631 * w32heap.c (RVA_TO_PTR): No need to #undef now.
7633 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
7634 Depend on w32heap.h.
7636 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
7638 * keyboard.c (command_loop_1): Update Vthis_original_command.
7640 2005-06-06 Richard M. Stallman <rms@gnu.org>
7642 * xmenu.c (popup_get_selection): Undo previous change.
7644 2005-06-06 Juri Linkov <juri@jurta.org>
7646 * xdisp.c (Qno_break_space): New variable.
7647 (syms_of_xdisp): Initialize it.
7648 (get_next_display_element): Add no-break space and soft hypen
7649 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
7650 Use `no-break-space' face for no-break spaces.
7652 2005-06-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7654 * window.c (delete_window): Handle the case where a h/vchild has
7657 2005-06-05 Eli Zaretskii <eliz@gnu.org>
7659 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
7660 call to pfn_setsockopt, cast optval to `const char *'.
7662 2005-06-04 Eli Zaretskii <eliz@gnu.org>
7664 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
7665 (open_unc_volume): Cast return value of map_w32_filename, to avoid
7668 * s/ms-w32.h (fileno): Don't define if already defined.
7670 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
7672 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
7674 2005-06-04 Richard M. Stallman <rms@gnu.org>
7676 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
7678 2005-06-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
7680 * macmenu.c (cleanup_popup_menu): New function.
7681 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
7682 mac_menu_show Quit:s.
7683 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
7686 2005-06-04 Kim F. Storm <storm@cua.dk>
7688 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
7690 * callproc.c (Fcall_process): Don't use alloca to gradually
7691 increase size of buf, as it effectively uses twice the necessary
7692 space on the stack. Instead, pre-allocate buf of full size, and
7693 gradually increase the read size.
7695 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
7697 * eval.c (unbind_to): Preserve value of Vquit_flag.
7699 * xterm.c (handle_one_xevent): Also ignore mouse motion just
7700 before a button release event.
7702 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
7704 * xfaces.c (Finternal_lisp_face_equal_p): Really report
7705 on faces in a frame, if the argument FRAME is non-nil.
7706 Improve argument/docstring consistency.
7708 2005-06-02 Kim F. Storm <storm@cua.dk>
7710 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
7711 (x_consider_frame_title, Fformat_mode_line): Save offset into
7712 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
7714 2005-06-01 Kim F. Storm <storm@cua.dk>
7716 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
7718 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7720 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
7721 resolution fields for scalable fonts to 0.
7723 * xfaces.c (build_scalable_font_name): Round pixel size to the
7726 2005-06-01 Kim F. Storm <storm@cua.dk>
7728 * xdisp.c (display_mode_line): Support nested calls to redisplay
7729 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
7731 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7733 * fileio.c (Finsert_file_contents):
7734 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7736 2005-05-31 Kim F. Storm <storm@cua.dk>
7738 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
7739 (mode_line_noprop_ptr): Rename from frame_title_*.
7740 (store_mode_line_noprop_char): Rename from store_frame_title_char.
7741 (store_mode_line_noprop): Rename from store_frame_title.
7742 (mode_line_target): New enum to specify current output target
7743 for mode line formatting.
7744 (display_mode_element): Test it rather than frame_title_ptr and
7745 mode_line_string_list to determine where output should go.
7746 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
7747 (Vmode_line_unwind_vector): New variable.
7748 (format_mode_line_unwind_data, unwind_format_mode_line):
7749 New functions for unwind protection in mode line formatting.
7750 (x_consider_frame_title): Use them and new local var 'title_start'
7751 to support nested calls to format-mode-line and redisplay.
7752 Set mode_line_target to MODE_LINE_TITLE.
7753 (Fformat_mode_line): Use them and new local var 'string_start' to
7754 support nested calls to format-mode-line and redisplay.
7755 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
7756 Don't trim trailing dashes.
7757 (decode_mode_spec): Don't make infinite number of trailing dashes
7758 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
7759 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
7760 mode_line_string_face_prop, and Vmode_line_unwind_vector.
7761 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
7762 Initialize mode_line_target to MODE_LINE_DISPLAY.
7764 2005-05-29 Richard M. Stallman <rms@gnu.org>
7766 * buffer.c (Fbuffer_local_value): Call indirect_variable.
7768 2005-05-28 Masatake YAMATO <jet@gyve.org>
7770 * xdisp.c (note_mode_line_or_margin_highlight): Change the
7771 pointer to a hand cursor when hoovering over a mouse-face.
7773 2005-05-27 Kenichi Handa <handa@m17n.org>
7775 * xterm.c (x_encode_char): Call check_ccl_update in advance.
7777 * ccl.c: Now an element of Vccl_program_table is a vector of
7779 (ccl_get_compiled_code): New arg idx. Caller changed.
7780 Adjust for the change of Vccl_program_table.
7781 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7782 (check_ccl_update): New function.
7783 (Fregister_ccl_program): Use ASET to set an element of a vector.
7784 Adjusted for the change of Vccl_program_table.
7786 * ccl.h (struct ccl_program): New member idx.
7787 (check_ccl_update): Extern it.
7789 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
7791 * image.c (Vimage_library_alist): Move from image.el.
7792 (syms_of_image): Defvar it.
7793 (lookup_image_type): Use it.
7795 * buffer.c (Fbuffer_local_value): Make argument name match its use
7798 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
7800 * keyboard.c (Frecursive_edit): Fix typo in docstring.
7801 (Fposn_at_x_y): Make argument name match its use in docstring.
7803 2005-05-26 Lute Kamstra <lute@gnu.org>
7805 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
7807 2005-05-24 Masatake YAMATO <jet@gyve.org>
7809 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
7812 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
7814 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
7815 select frame title ("Question"/"Information").
7816 (xdialog_show): Use it.
7818 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
7820 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
7822 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
7823 a third argument (Qnil).
7825 * lisp.h: x-popup-dialog can have three arguments.
7827 * editfns.c (Fmessage_box): Use "Information" for frame title.
7829 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
7831 * termcap.c [VMS]: Include <starlet.h>.
7833 2005-05-23 Masatake YAMATO <jet@gyve.org>
7835 * xdisp.c (note_mode_line_or_margin_highlight): Add code
7836 for mouse-face. Change the type of the first argument from `window'
7838 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
7839 window instead of w.
7841 2005-05-22 Andreas Schwab <schwab@suse.de>
7843 * process.c (send_process): Move misplaced volatile.
7845 2005-05-21 Richard M. Stallman <rms@gnu.org>
7847 * xdisp.c (display_mode_element): If we're processing a list and
7848 padding is specified, put it after the last element.
7850 2005-05-21 Eli Zaretskii <eliz@gnu.org>
7852 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
7853 "superroot" on DOS_NT systems.
7855 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
7857 * process.c (send_process): Restore the SIGPIPE handler if we
7860 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
7862 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
7863 misleading comments).
7864 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
7866 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7868 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
7869 Correct the right value.
7871 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
7873 * keyboard.c (syms_of_keyboard): Remove Lisp variables
7874 post-command-idle-hook and post-command-idle-delay.
7875 (command_loop_1): Don't try to execute post-command-idle-hook.
7877 2005-05-16 Kim F. Storm <storm@cua.dk>
7879 * xdisp.c (handle_display_prop): Handle empty replacement.
7880 (handle_single_display_spec): Return -1 for empty replacement.
7882 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
7884 * .gdbinit (pitx): Print more info about iterator.
7886 2005-05-16 Andreas Schwab <schwab@suse.de>
7888 * unexmacosx.c (unexec_realloc): Move declarations before statements.
7890 2005-05-14 Richard M. Stallman <rms@gnu.org>
7892 * xdisp.c (message3): Call cancel_echoing.
7894 * alloc.c (Fmemory_full_p): New function.
7895 (syms_of_alloc): defsubr it.
7897 * process.c (send_process_trap): Unblock SIGPIPE.
7898 (send_process): Reset SIGPIPE handler before reporting error.
7900 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
7902 * emacs.c (syms_of_emacs): Fix doc string for system-type.
7904 2005-05-13 Richard M. Stallman <rms@gnu.org>
7906 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
7907 (Finsert_file_contents): If we read 0 bytes from a special file,
7908 unlock the visited file if we locked it.
7909 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
7910 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
7912 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7914 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
7916 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
7917 Regard toolkit scroll bar thumb drag events as squeezable and prevent
7918 redisplay from being paused by them.
7920 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
7921 [!MAC_OSX] (target_ticks): Remove variable.
7922 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
7923 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
7924 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
7925 event occurs before timeout, behave as if the function were interrupted.
7926 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
7927 handling using Time Manager routines.
7928 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
7930 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
7931 (setitimer): New functions.
7933 * macfns.c, macmenu.c: Don't include signal.h.
7935 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
7936 Rename from get_control_part_bound. All callers changed.
7937 (x_scroll_bar_clear): New function.
7938 (x_clear_frame): Use it.
7939 (XTset_vertical_scroll_bar): Don't call Draw1Control.
7940 (x_scroll_bar_handle_click): Change type of second argument from
7941 int to ControlPartCode.
7942 (check_alarm): Remove declaration.
7943 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
7944 (XTread_socket): Use ControlPartCode instead of SInt16.
7946 2005-05-13 Nozomu Ando <nand@mac.com>
7948 * unexmacosx.c: Include assert.h.
7949 (MACOSX_MALLOC_MULT16): New define.
7950 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
7951 ptr is in unexec regions by checking it is multiple of 16.
7952 (unexec_malloc_header_t): New typedef.
7953 (unexec_malloc, unexec_realloc, unexec_free): Store and use
7954 allocated size information in unexec_malloc_header.
7956 2005-05-10 Richard M. Stallman <rms@gnu.org>
7958 * xterm.c (noinclude): Add #undef.
7960 * image.c, xfns.c, xmenu.c: Don't include signal.h.
7962 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
7964 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
7965 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
7968 * dired.c (Ffile_name_completion): Make argument name
7969 match its use in docstring.
7971 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
7973 * eval.c (Fdefvaralias): Remove any pre-existing
7974 variable-documentation property of the alias.
7976 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
7978 * xfns.c (start_hourglass): Do nothing when running on a tty.
7980 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
7982 * fns.c (Fchar_table_range): Fix typos in docstring.
7984 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7986 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
7988 2005-05-06 Eli Zaretskii <eliz@gnu.org>
7990 * lread.c (Flocate_file_internal): Doc fix.
7992 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
7994 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7996 * macselect.c (x_own_selection): Accept Lisp string as result of
7997 selection converter function.
7998 (x_clear_frame_selections): Don't call x-lost-selection-functions
7999 if Emacs is not owner of the selection.
8000 (Vmac_services_selection): Put variable and initialization in
8002 (syms_of_macselect) [MAC_OSX]: Set default value of
8003 Vmac_services_selection to PRIMARY.
8005 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
8006 (mac_handle_tool_bar_click): Remove unused function and declaration.
8007 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
8008 (install_scroll_bar_timer, set_scroll_bar_timer)
8009 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
8010 (get_control_part_bound, x_scroll_bar_handle_press)
8011 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
8012 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
8013 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
8014 (scroll_bar_timer_event_posted_p): New variables.
8015 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
8016 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
8017 (x_scroll_bar_create): Set control reference with NewControl.
8018 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
8019 Initialize track_top and track_height to nil.
8020 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
8021 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
8022 (XTset_vertical_scroll_bar): Don't make space between scroll bar
8023 and associated window.
8024 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
8026 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8027 Set track_top and track_height to nil when scroll bar size is changed.
8028 Recalculate them if they are nil.
8029 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
8030 clicked control is a scroll bar.
8031 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
8032 event handler functions. Don't add modifiers to scroll bar click
8033 events. Call scroll bar release handler when window is deactivated.
8034 (mac_initialize): Remove unused code for X toolkit.
8035 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
8036 Initialize Vx_toolkit_scroll_bars to nil.
8038 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8039 New members track_top and track_height.
8041 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
8042 init_process when including sys/select.h.
8044 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
8046 * eval.c (Fdefvaralias): Doc fix.
8048 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8050 2005-05-05 Kim F. Storm <storm@cua.dk>
8052 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
8054 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
8055 Fix type of cursor-in-non-selected-windows.
8057 2005-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8059 * mac.c: #undef init_process so not to conflict with system headers.
8061 2005-05-02 Richard M. Stallman <rms@gnu.org>
8063 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
8065 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
8067 * xdisp.c (Vcursor_in_non_selected_windows)
8068 (Qcursor_in_non_selected_windows): Vars deleted.
8069 (syms_of_xdisp): Don't initialize them.
8070 (get_window_cursor_type): Use cursor_in_non_selected_windows
8073 2005-05-02 Kim F. Storm <storm@cua.dk>
8075 * macros.c (executing_kbd_macro_index): Rename from
8076 executing_macro_index. All uses changed.
8077 (executing_kbd_macro_iterations): Rename from
8078 executing_macro_iterations. All uses changed.
8079 (executing_kbd_macro): Rename from executing_macro.
8081 (syms_of_macros): Rename Lisp var executing-macro-index to
8082 executing-kbd-macro-index.
8084 * xdisp.c (move_it_in_display_line_to): Fix last change.
8086 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8088 * xmenu.c (Fx_popup_menu): Doc fix.
8090 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
8092 2005-05-02 Jason Rumney <jasonr@gnu.org>
8094 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
8096 2005-05-02 Nozomu Ando <nand@mac.com>
8098 * sysselect.h: Fix typo.
8100 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
8102 * charset.c (Fchars_in_region): Remove as obsolete.
8104 2005-05-01 Kim F. Storm <storm@cua.dk>
8106 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
8107 TO_CHARPOS. This may happen if last glyphs was an image or stretch
8110 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8112 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
8114 2005-05-01 Richard M. Stallman <rms@gnu.org>
8116 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
8117 If user cancels the menu, quit unless FOR_CLICK.
8119 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
8121 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
8122 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
8123 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
8124 * commands.h (Vexecuting_kbd_macro): Likewise.
8126 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
8128 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
8130 2005-04-30 Richard M. Stallman <rms@gnu.org>
8132 * fileio.c (Ffind_file_name_handler): Handle the `operations'
8133 property of the file name handler.
8134 (Qoperations): New variable.
8135 (syms_of_fileio): Initialize and staticpro it.
8137 * xdisp.c (set_message_1): Delete xassert.
8139 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8141 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
8143 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
8145 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
8146 before/after including Carbon.h if there is a working mktime.
8148 2005-04-28 Kim F. Storm <storm@cua.dk>
8150 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
8151 Fix cyclic alias check. If alias loop is detected, signal
8152 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
8154 2005-04-28 Lute Kamstra <lute@gnu.org>
8156 * eval.c (do_autoload): Record only autoloads in the autoload
8157 property of symbols.
8159 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
8161 * emacs.c (USAGE1): Add --basic-display and --quick options.
8163 2005-04-27 Kim F. Storm <storm@cua.dk>
8165 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
8167 2005-04-26 Richard M. Stallman <rms@gnu.org>
8169 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
8170 (syms_of_window): Doc fixes.
8172 * indent.c (Fvertical_motion): Undo previous change.
8174 2005-04-26 Kenichi Handa <handa@m17n.org>
8176 * fns.c (char_table_range): New function.
8177 (Fchar_table_range): Signal an error if characters in the range
8178 have inconsistent values. Don't check the parent.
8180 2005-04-25 Kenichi Handa <handa@m17n.org>
8182 * fontset.c (fontset_set): Fix previous change.
8184 2005-04-24 Richard M. Stallman <rms@gnu.org>
8186 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
8188 2005-04-24 Eli Zaretskii <eliz@gnu.org>
8190 * regex.c (re_search_2, re_match_2_internal): Convert second arg
8191 of RE_TRANSLATE to int, to shut up GCC warnings.
8193 * fileio.c (Fcopy_file): Doc fix.
8194 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
8197 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8199 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
8200 (SOME_MACHINE_OBJECTS): Likewise.
8201 (mac.o): Depend on ccl.h.
8202 (macselect.o): New target.
8204 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
8205 Call syms_of_macselect.
8207 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
8209 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
8210 (QCLIPBOARD): Remove variable.
8211 (syms_of_mac): Don't initialize it.
8212 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
8214 (syms_of_mac): Don't defsubr them.
8215 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
8216 (QHFS_plus_D, QHFS_plus_C): New variables.
8217 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8218 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
8219 (cfstring_create_normalized): New functions.
8220 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
8221 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
8223 * macterm.c (handling_window_update, terminate_flag):
8225 (do_window_update, do_ae_quit_application, XTread_socket):
8227 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
8228 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
8229 (init_service_handler): Move to macselect.c. Remove declarations.
8230 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
8231 (Qapplication, Qabout): New variables.
8232 (syms_of_mac): Initialize them.
8233 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
8234 (Qperform): New variables.
8235 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
8236 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
8237 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
8238 (mac_store_application_menu_event, init_menu_bar): New functions.
8239 [USE_CARBON_EVENTS] (mac_handle_command_event)
8240 (init_command_handler): New functions.
8241 (mac_handle_window_event): Return noErr on window update event.
8242 (do_ae_quit_application): Call mac_store_application_menu_event.
8243 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
8246 * macterm.h (x_clear_frame_selections): Add extern.
8248 * macselect.c: New file for selection processing on Mac OS.
8250 2005-04-23 Richard M. Stallman <rms@gnu.org>
8252 * fileio.c (Fcopy_file): New arg MUSTBENEW.
8253 (Frename_file): Pass new arg to Fcopy_file.
8255 * window.c (window_size_fixed): Variable deleted.
8256 (syms_of_window): Initialize window-size-fixed to nil.
8257 But don't DEFVAR window_size_fixed.
8259 2005-04-23 Andreas Schwab <schwab@suse.de>
8261 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
8262 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
8263 use lib64 instead of lib.
8264 (_LP64) [_ARCH_PPC64]: Define if not defined.
8266 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
8268 * s/ms-w32.h (HAVE_PWD_H): Define.
8270 2005-04-22 Kenichi Handa <handa@m17n.org>
8272 * fns.c (copy_sub_char_table): Explicitly copy the default value
8273 of the sub-chartable.
8275 * fontset.c (fontset_set): When a sub-chartable is created,
8276 explicitly sets the defalt value.
8278 2005-04-22 Kim F. Storm <storm@cua.dk>
8280 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
8281 (Fsafe_plist_get): Rename to Fplist_get.
8282 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
8283 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
8285 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
8287 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
8288 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8289 Use Fplist_get instead of Fsafe_plist_get.
8291 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
8293 2005-04-21 Miles Bader <miles@gnu.org>
8295 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
8297 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
8299 * sysdep.c: Remove reference to defunct vms-pwd.h.
8300 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
8301 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
8303 * config.in: Regenerate.
8305 2005-04-20 Kenichi Handa <handa@m17n.org>
8307 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
8308 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
8309 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
8311 * alloc.c (make_sub_char_table): Argument changed to initial
8314 * data.c (Faref): Handle special slots used as default values of
8315 ascii, eight-bit-control, eight-bit-control. Don't ignore a
8316 default value set for a group of characters.
8317 (Faset): Signal an error if IDXVAL is not a valid character code.
8318 Make a sub-chartable with correct initial value.
8320 * fns.c (Fset_char_table_range): Don't set slots used as default
8321 values for ascii, eight-bit-control, eight-bit-graphic.
8322 Don't call Faref with charset-id.
8323 (Fset_char_table_default): Document how to treat normal character
8324 argument. Handle special slots used as default values of ascii,
8325 eight-bit-control, eight-bit-control. Make a sub chartable if
8328 2005-04-20 Kenichi Handa <handa@m17n.org>
8330 * search.c (boyer_moore): Fix previous change.
8332 2005-04-19 Kim F. Storm <storm@cua.dk>
8334 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
8335 face unless last visible char and first invisible char have the
8336 same face. Also use default face if saved_face_id is undefined.
8338 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8340 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
8342 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
8343 mac_scriptcode member.
8345 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
8346 (syms_of_mac): Don't initialize them.
8347 (Vmac_charset_info_alist): New variable.
8348 (syms_of_mac): Defvar it.
8349 (create_text_encoding_info_alist): New function.
8350 (decode_mac_font_name, mac_to_x_fontname)
8351 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
8352 code the correspondence among XLFD charsets, Mac script codes, and
8353 Emacs coding systems. Use Vmac_charset_info_alist and result of
8354 create_text_encoding_info_alist instead.
8355 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
8356 routines also on Mac OS Classic.
8357 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
8358 Use add_font_name_table_entry.
8359 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
8360 specified. Derive unspecified scalable fields from specified one.
8361 (x_list_fonts): Consider Valternate_fontname_alist.
8362 (kDefaultFontSize): Change value from 9 to 12.
8363 (XLoadQueryFont): Get decoded font family, font face, and charset
8364 from x_font_name_to_mac_font_name. Set full name of loaded font.
8365 (mac_unload_font): Free `full_name' member.
8366 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
8367 NULL. Copy full_name member of struct MacFontStruct to that of
8370 2005-04-19 Kim F. Storm <storm@cua.dk>
8372 * xdisp.c (handle_stop): Set saved_face_id to current face if
8373 selective_display_ellipsis_p so ellipsis will be shown in same
8374 face as preceding text.
8375 (setup_for_ellipsis): Don't set saved_face_id here.
8376 (next_element_from_display_vector): Default to saved_face_id.
8378 * fns.c (Fsafe_get): New function.
8379 (syms_of_fns): Defsubr it.
8381 * lisp.h (Fsafe_get): EXFUN it.
8383 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
8384 loops in case of bad face property lists. Limit number of face
8385 alias lookups to 10 (in case of face alias loops).
8387 2005-04-18 Kim F. Storm <storm@cua.dk>
8389 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
8390 It replaces the corresponding member from struct window, as a
8391 window may now show multiple overlay arrows.
8392 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
8394 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
8395 Compare overlay_arrow_bitmap than overlay_arrow_p members.
8397 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
8398 rather than from window.
8399 (update_window_fringes): Compare overlay_arrow_bitmap rather than
8400 overlay_arrow_p members.
8401 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
8404 * window.h (struct window): Remove member overlay_arrow_bitmap.
8406 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
8408 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
8409 Calls changed. Don't check for overlay-arrow-bitmap property here.
8410 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
8411 fringe is present, return Lisp integer for bitmap (or -1 for default).
8412 Fix value of overlay-arrow-bitmap property to be a symbol, use
8413 lookup_fringe_bitmap to parse it.
8414 (display_line): Change call to overlay_arrow_at_row. Store integer
8415 return value as overlay bitmap in row rather than window.
8416 Only show overlay arrow if row displays text, or if no other overlay
8417 arrow is seen in window (if overlay marker is at point-max).
8419 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
8421 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
8423 2005-04-18 Lute Kamstra <lute@gnu.org>
8425 * lread.c (Vloads_in_progress): Static.
8426 * fns.c (Vloads_in_progress): Remove extern.
8427 (load_in_progress): Add extern.
8428 (Frequire): Use load_in_progress instead of Vloads_in_progress.
8430 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
8432 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
8434 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8436 * macterm.c (XTread_socket): Don't beep on keyboard input even if
8437 no frame is visible.
8439 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8441 * term.c (struct keys): Add support for shifted keys.
8443 2005-04-16 Richard M. Stallman <rms@gnu.org>
8445 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
8446 (set_message): Call with_echo_area_buffer with WHICH = 0.
8447 (set_message_1): Erase the echo area buffer first thing.
8448 (echo_area_display): Don't clear echo_message_buffer.
8450 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8452 * Makefile.in (mac.o): Depend on charset.h and coding.h.
8454 * mac.c: Include charset.h and coding.h.
8455 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
8456 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
8457 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
8459 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
8461 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
8463 * macterm.c (x_autoselect_window_p): Remove variable.
8464 (last_window): New variable.
8465 (XTreassert_line_highlight, x_change_line_highlight):
8466 Remove declarations.
8467 (mac_focus_changed, x_detect_focus_change): New functions and
8469 (XTextExtents16, front_emacs_window): Remove function.
8470 (mac_focus_frame): New function.
8471 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
8472 (mac_check_for_quit_char): Use it instead of front_emacs_window.
8473 (x_scroll_bar_report_motion): Obtain window from control owner.
8474 (x_make_frame_invisible): Set window manager size hint.
8475 (do_mouse_moved): Remove function.
8476 (XTread_socket): Move its contents here. Generate select-window
8477 event on mouse movement if needed. Use x_detect_focus_change on
8478 activate/deactivate events. Don't deiconify frame or invalidate
8479 window rectangle when dnd items are dropped.
8480 Don't activate/deactivate root control.
8481 (frame_highlight, frame_unhighlight): Activate/deactivate root
8483 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
8485 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
8488 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
8490 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
8492 (SOME_MACHINE_LISP): Add tooltip.
8494 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8496 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
8497 Don't include TextEncodingConverter.h.
8498 (mac_system_script_code, Vmac_system_locale): New variables.
8499 (syms_of_mac): Defvar them.
8500 (mac_get_system_locale): New function.
8502 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
8503 Use ENCODE_SYSTEM to encode title bar string.
8504 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
8505 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
8506 Use CFStringGetSystemEncoding to get system default string encoding.
8508 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
8509 TextEncodingConverter.h.
8511 2005-04-13 Steven Tamm <steventamm@mac.com>
8513 * macterm.c (syms_of_macterm): Remove redundant definition of
8514 mac-pass-control-to-system.
8516 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8518 * window.c (Fset_window_configuration): Be careful when you choose
8519 among several possible points for the new_current_buffer.
8521 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8523 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
8524 poll_for_input_1. Set interrupt_input_pending to 1 instead.
8525 (Qlanguage_change) [MAC_OS]: New variable.
8526 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
8527 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
8529 * macterm.c (mac_keyboard_text_encoding)
8530 (current_mac_keyboard_text_encoding): Remove variables.
8531 (XTread_socket): Store language-change event if keyboard script change
8532 is detected. Don't convert input to `mac_keyboard_text_encoding'.
8533 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
8535 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
8537 2005-04-10 Richard M. Stallman <rms@gnu.org>
8539 * emacs.c (standard_args): Rename --bare-bones to --quick.
8540 Add -D aka --basic-display.
8542 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
8544 2005-04-09 Richard M. Stallman <rms@gnu.org>
8546 * keymap.c (where_is_internal): Convert a string used as event type
8547 into "(any string)".
8549 * lread.c (Vloads_in_progress): Not static.
8550 * fns.c (Vloads_in_progress): Add extern.
8551 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
8553 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
8555 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
8557 2005-04-09 Lute Kamstra <lute@gnu.org>
8559 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
8560 within the accessible part of the buffer.
8562 2005-04-09 Kim F. Storm <storm@cua.dk>
8564 * lread.c (readevalloop): Add args START and END as region in
8565 current buffer to read. Callers changed.
8566 When specified, narrow to this region only when reading,
8567 not during eval. Track next point to read from during eval.
8568 Also restore point to "real" buffer position before eval.
8569 (Feval_region): Don't save excursion and restriction here, and
8570 don't narrow to region. Just pass region to readevalloop.
8571 Note: Point is now preserved even when PRINTFLAG is nil.
8573 2005-04-08 Kim F. Storm <storm@cua.dk>
8575 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
8577 2005-04-06 Kim F. Storm <storm@cua.dk>
8579 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
8581 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8583 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
8584 (Fmac_get_preference): Doc fix.
8586 * macfns.c (Fx_create_frame, x_create_tip_frame):
8587 Add "fontset-mac" to fallback font/fontsets.
8589 2005-04-04 Kim F. Storm <storm@cua.dk>
8591 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
8593 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
8594 Call it again after autoload.
8596 2005-04-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8598 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
8601 * ralloc.c (r_alloc_init): Ditto.
8603 2005-04-01 Kenichi Handa <handa@m17n.org>
8605 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
8606 (Vascii_eqv_table): Extern them.
8608 * casetab.c (set_case_table): If standard is nonzero, setup
8609 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
8611 * search.c (looking_at_1): Use current_buffer->case_canon_table,
8613 (string_match_1): Likewise.
8614 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
8615 Vascii_downcase_table.
8616 (fast_string_match_ignore_case): Likewise.
8617 (search_buffer): Fix checking of boyer-moore usability.
8618 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
8619 No need of tranlating characters in PAT. Fix calculation of
8622 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8624 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
8625 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
8626 Use XtNtopShadowPixel and XtNbottomShadowPixel.
8627 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
8628 really work and that breaks with some versions of Xaw3d.
8630 2005-03-31 Kenichi Handa <handa@m17n.org>
8632 * coding.c (syms_of_coding): Fix previous change.
8634 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
8636 * fileio.c (search_embedded_absfilename): Fix last change.
8638 2005-03-25 Kenichi Handa <handa@m17n.org>
8640 * coding.c (syms_of_coding): Suggest to use set-coding-category in
8641 the docstring of coding-category-list.
8643 2005-03-31 Kim F. Storm <storm@cua.dk>
8645 * keyboard.c (Qmouse_fixup_help_message): New var.
8646 (syms_of_keyboard): Intern and staticpro it.
8647 (show_help_echo): Apply mouse-fixup-help-message to help string.
8649 2005-03-30 Kim F. Storm <storm@cua.dk>
8651 * xdisp.c (display_line): Allow multiple overlay arrows in window.
8653 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8655 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
8656 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
8657 (Ffile_name_absolute_p): Use it.
8658 (search_embedded_absfilename): New fun, extracted from
8659 Fsubstitute_in_file_name. Use file_name_absolute_p.
8660 Free the pw data after use.
8661 (Fsubstitute_in_file_name): Use it.
8662 After cutting a prefix, re-check file-name-handler.
8664 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
8666 * w32term.h (x_output): Add focus_state.
8668 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
8669 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
8671 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8673 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
8674 Use Fexit_minibuffer.
8675 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
8677 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8679 * dired.c (Ffile_attributes): Add a missing gcpro.
8681 * alloc.c (make_number): The arg can be bigger than `int'.
8682 * lisp.h (make_number): Make prototype more precise.
8684 * process.c, dired.c (Vfile_name_coding_system)
8685 (Vdefault_file_name_coding_system):
8686 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
8687 (Vdefault_file_name_coding_system): Remove unused declarations.
8689 2005-03-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8691 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
8692 if it failed to pop up (Gnome "show pointer on ctrl" option makes
8693 menus fail to pop up).
8695 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8697 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
8698 Just prepend a backslash without replacing the NBSP by an SPC.
8700 2005-03-22 Kim F. Storm <storm@cua.dk>
8702 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
8703 * dispextern.h (lookup_derived_face): Fix prototype.
8704 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
8706 * xdisp.c (handle_single_display_spec): Derive left-fringe and
8707 right-fringe face from fringe face.
8709 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
8710 Derive face from fringe face.
8712 2005-03-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8714 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
8716 2005-03-22 David Kastrup <dak@gnu.org>
8718 * textprop.c (Fnext_char_property_change)
8719 (Fprevious_char_property_change): Allow marker as limit.
8720 (Fnext_single_char_property_change)
8721 (Fprevious_single_char_property_change): Check that limit is a
8723 (Fnext_single_char_property_change): Coerce position to integer.
8724 (Fprevious_single_char_property_change): Same here.
8726 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
8728 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
8730 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8732 * frame.c (Fignore_event): Remove.
8733 (syms_of_frame): Don't defsubr it.
8735 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
8736 redundant `ignore-event'.
8738 2005-03-19 Eli Zaretskii <eliz@gnu.org>
8740 * unexec.c (write_segment, unexec): Move these functions to avoid
8741 forward references (which cause errors with "gcc -gcoff").
8743 2005-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8745 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
8746 that it doesn't become "tooltip". The specbind is enough.
8748 * xrdb.c (x_load_resources): Use different char *helv when I18N
8751 2005-03-17 Kenichi Handa <handa@m17n.org>
8753 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
8755 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8757 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
8758 Use xic_create_fontsetname even for non-Motif menus.
8759 Don't forget to free the fontsetname.
8761 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
8763 2005-03-17 Richard M. Stallman <rms@gnu.org>
8765 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
8767 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
8768 (Fmake_symbolic_link): Use G to read the new file name.
8770 * callint.c (Finteractive): Document G option.
8771 (Fcall_interactively): Implement G option.
8773 * buffer.c (buffer_lisp_local_variables): New function,
8774 broken out from Fbuffer_local_variables.
8775 (clone_per_buffer_values): Use buffer_lisp_local_variables.
8777 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8779 * xfns.c (xic_create_fontsetname): Add `motif' argument.
8780 Always return a freshly allocated string.
8781 (xic_create_xfontset): Adjust call.
8783 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
8784 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
8785 (dump_realized_face): Fix warning.
8787 * emacs.c (Fkill_emacs): YAILOM.
8789 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
8791 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8793 * mac.c (HASHKEY_TERMINAL): Remove.
8794 (HASHKEY_MAX_NID): New macro.
8795 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
8797 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
8798 (xrm_create_database, xrm_q_put_resource)
8799 (xrm_merge_string_database, xrm_q_get_resource_1)
8800 (xrm_q_get_resource): Change resource database representation so
8801 that it may not use multiple hash tables for a single database.
8802 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
8804 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
8806 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
8808 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
8809 locale-coding-system, as was already done for WINDOWSNT.
8811 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
8812 translation for chars in the 0-255 range.
8814 2005-03-16 Lute Kamstra <lute@gnu.org>
8816 * floatfns.c (Ffloor): Doc fix.
8818 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8820 * mac.c: Include macterm.h instead of directly including Carbon.h.
8821 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
8822 (Qarray, Qdictionary): New variables.
8823 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8824 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
8825 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
8826 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
8827 in callback for CFDictionaryApplyFunction.
8828 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
8829 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
8830 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
8831 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
8832 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
8833 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
8834 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
8835 (skip_white_space, parse_comment, parse_include_file)
8836 (parse_binding, parse_component, parse_resource_name, parse_value)
8837 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
8838 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
8839 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
8842 * macfns.c (mac_get_rdb_resource): Remove function.
8843 (x_get_string_resource): Use xrm_get_resource.
8845 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
8847 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
8849 (mac_make_rdb): Create resource database from preferences and
8851 (mac_term_init): Save resource database to cddr part of
8854 * macterm.h (xrm_merge_string_database, xrm_get_resource)
8855 (xrm_get_preference_database): Add externs.
8856 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
8857 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
8858 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
8860 * process.c (init_process): Change `#ifdef DARWIN' to `#if
8861 defined (DARWIN) || defined (MAC_OSX)'
8863 * s/darwin.h (DARWIN): Don't define.
8865 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8867 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
8868 Remove unused variables.
8869 (syms_of_macfns): Don't initialize them. Likewise for
8870 Qface_set_after_frame_default. Defvar and initialize
8871 Vx_window_horizontal_drag_shape.
8872 (x_set_mouse_color): Change mouse pointer shape.
8873 (mac_window) [!MAC_OSX]: Create root control.
8874 (Fx_create_frame): Remove initializations of mouse pointer shapes.
8875 (hourglass_started): New function (from xfns.c).
8876 (start_hourglass, cancel_hourglass): Put function body in #ifdef
8878 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
8879 indicator for each non-tooltip frame if needed, and show it.
8880 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
8882 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
8883 Controls.h. Use ThemeCursor instead of CursHandle.
8885 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
8886 Remove functions and declarations.
8887 (mac_set_colors): Take argument for saving background color.
8888 All callers changed.
8889 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
8890 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
8892 (x_update_end, mac_do_track_drag): Don't reset background color.
8893 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
8895 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
8896 indicator control to the upper-right corner of the window.
8897 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
8898 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
8899 (do_window_update): Update controls after updating content area.
8900 (mac_handle_window_event): Remove unused extern.
8901 (XTread_socket): Check both control handle and control part code
8902 to determine whether a scroll bar is clicked. Activate/deactivate
8903 root control instead of contained scroll bar controls.
8904 (make_mac_terminal_frame): Use ThemeCursor constants.
8906 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
8907 New member hourglass_control.
8908 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
8909 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
8911 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8913 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
8914 coincides with that in Apple X11 except `clear', `enter' on
8915 laptops, and fn + `enter' on laptops.
8917 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8919 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
8920 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
8921 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
8923 * xfns.c (xic_defaut_fontset): New constant.
8924 (xic_create_fontsetname): New function.
8925 Extracted from create_frame_xic. Try to generate a slightly
8927 (xic_create_xfontset): Use it.
8928 (create_frame_xic): Simplify.
8930 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
8932 * fileio.c (Fmake_symbolic_link): Fix last change.
8934 2005-03-11 Richard M. Stallman <rms@gnu.org>
8936 * fileio.c (Frename_file, Fadd_name_to_file)
8937 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
8938 expand the basename of FILE relative to it.
8940 2005-03-11 Kenichi Handa <handa@m17n.org>
8942 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
8943 before calling setup_coding_system so that autoloading of a coding
8946 2005-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
8948 * xfns.c (hourglass_started): New function.
8950 * dispextern.h: Declare hourglass_started.
8952 * keyboard.c (Fexecute_extended_command): Restart hourglass
8953 after call to Fcompleting_read if already started.
8955 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
8956 GTK main loop is entered in xterm.c, thus doing the redraw.
8958 2005-03-10 Kim F. Storm <storm@cua.dk>
8960 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
8962 2005-03-08 Kenichi Handa <handa@m17n.org>
8964 * frame.c (x_set_font): Call set_default_ascii_font if an
8965 available font is found.
8967 * fontset.c (set_default_ascii_font): New function.
8968 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
8970 * fontset.h (set_default_ascii_font): Extern it.
8972 2005-03-07 Kim F. Storm <storm@cua.dk>
8974 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
8975 (clear_image_cache_count): New var.
8976 (redisplay_internal): Don't clear face and image caches in the
8977 middle of redisplay; do it afterwards.
8979 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
8981 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
8982 is valid. If not, clear phys_cursor_on_p and return.
8984 2005-03-07 Andreas Schwab <schwab@suse.de>
8986 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
8988 2005-03-06 Richard M. Stallman <rms@gnu.org>
8990 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
8992 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
8993 (Feval, Ffuncall): Use CHECK_CONS_LIST.
8995 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
8997 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
8998 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9000 2005-03-05 Juri Linkov <juri@jurta.org>
9002 * emacs.c (USAGE1): Replace Info node name "command arguments"
9003 with "emacs invocation".
9004 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
9005 allow arguments `--color' and `MODE' to be separated by space.
9006 Add --no-blinking-cursor, -nbc.
9007 (standard_args): Add -nbc, --no-blinking-cursor.
9009 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9011 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
9012 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
9013 * fileio.c (Fexpand_file_name) [VMS]:
9014 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
9015 * doc.c (munge_doc_file_name) [VMS]: Likewise.
9016 (Fsnarf_documentation): Call munge_doc_file_name.
9018 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9020 * s/vms.h (FILE_SYSTEM_CASE): New macro.
9021 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
9022 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
9024 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9026 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
9027 defined (MAC_OSX) && defined (HAVE_CARBON)'.
9029 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
9031 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9032 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
9033 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
9034 (mac_clear_font_name_table): Move extern to macterm.h.
9036 * macfns.c (install_window_handler): Move extern to macterm.h.
9037 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
9038 valid. Don't check !NILP (dir) because it is already checked with
9040 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
9041 specifying the default location and obtaining the selected filename.
9043 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9045 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
9046 are included via Carbon.h.
9048 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
9049 Define USE_CARBON_EVENTS to 1.
9050 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
9051 (x_free_frame_resources): Call remove_window_handler for
9052 non-tooltip windows.
9053 [TARGET_API_MAC_CARBON]: Don't include headers that are included
9055 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
9056 (mac_do_receive_dragUPP): New variables.
9057 (mac_handle_service_event, init_service_handler): Put declarations
9058 and definitions in #ifdef MAC_OSX.
9059 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
9060 drag-and-drop handler functions and register them.
9061 (remove_window_handler): New function.
9062 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
9063 Use fsspec_to_posix_pathname.
9064 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
9065 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
9066 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
9067 Set default cursors.
9068 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
9069 init_service_handler or init_quit_char_handler.
9070 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
9072 * macterm.h (install_window_handler, remove_window_handler)
9073 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
9074 (mac_clear_font_name_table): New externs.
9076 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9078 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
9079 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
9080 (Fexpand_file_name): Likewise.
9082 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9084 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
9085 no longer special-case VMS. Add bogus return value.
9087 2005-03-02 Kim F. Storm <storm@cua.dk>
9089 * dispextern.h (XASSERTS): Define to 0 if not already defined.
9090 (xassert) [!XASSERTS]: Define dummy version.
9092 2005-03-02 Kim F. Storm <storm@cua.dk>
9094 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
9095 Reported by David Kastrup.
9097 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
9099 * xdisp.c (get_next_display_element): Fix control and escape
9100 glyph from display vector.
9102 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
9104 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
9106 2005-02-27 Richard M. Stallman <rms@gnu.org>
9108 * xdisp.c (fast_find_position): Rename END to BEG.
9109 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
9111 2005-02-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9113 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
9114 gtk_window_resize and x_wm_set_size_hint.
9116 2005-02-25 Kim F. Storm <storm@cua.dk>
9118 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
9120 * xdisp.c (init_from_display_pos): Don't read past end of
9121 it->overlay_strings array.
9123 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
9125 * buffer.c (syms_of_buffer): Fix typo.
9127 2005-02-23 Lute Kamstra <lute@gnu.org>
9129 * buffer.c (Foverlay_buffer): Doc fix.
9131 2005-02-22 Kim F. Storm <storm@cua.dk>
9133 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
9134 and symbol keys in alists and hash tables.
9136 * xdisp.c (fast_find_position): Fix search for start of overlay.
9138 2005-02-21 Kim F. Storm <storm@cua.dk>
9140 * window.c (window_scroll_pixel_based): When scrolling backwards,
9141 handle partial visible line at end of window even when we hit PT.
9143 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9145 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
9147 2005-02-21 Kim F. Storm <storm@cua.dk>
9149 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
9150 I think those asserts are bogus if buffer contains invisible text
9153 2005-02-21 David Kastrup <dak@gnu.org>
9155 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
9157 2005-02-20 Kim F. Storm <storm@cua.dk>
9159 * xdisp.c (pos_visible_p): Be sure to move to the specified
9160 position. Always get the full ascent / descent of the
9161 corresponding row, to return reliable rtop and rbot values.
9162 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
9163 Must look one character back, as back_to_previous_line_start
9164 returns position after the newline.
9165 (move_it_vertically_backward): Fix heuristic for when to move further
9166 back in case line_height * 2/3 is larger than window height.
9167 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
9168 as it does not do anything anymore. Add arg current_matrix_p to
9169 use current matrix rather than desired matrix when set.
9170 (try_cursor_movement): Don't scroll to make cursor row fully
9171 visible if cursor didn't move. This avoids unexpected recentering
9172 in case of blinking cursor or accepting process output.
9173 Use current matrix to check cursor row visibility.
9174 (redisplay_window): Fix whether to recenter or move to top in case
9175 cursor line is taller than window height.
9176 (find_first_unchanged_at_end_row): Stop search if we reach a row
9177 which not enabled (instead of abort).
9179 2005-02-18 Kim F. Storm <storm@cua.dk>
9181 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
9182 to be nil in a :box attribute value list; customize prints that
9183 as lisp value when no box color is specified.
9185 * .gdbinit (pitx, pit): Pretty print display iterator.
9186 (prowx, prow): Pretty print glyph row.
9187 (pcursorx, pcursor): Pretty print a window cursor.
9188 (pwinx, pwin): Pretty print struct window.
9190 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9192 * alloc.c (BLOCK_BYTES): Harmless typo.
9194 2005-02-17 Andreas Schwab <schwab@suse.de>
9196 * xfns.c (hack_wm_protocols): Use correct type for last parameter
9197 of XGetWindowProperty to avoid aliasing issues.
9198 (Fx_window_property): Likewise.
9200 * xselect.c (Fx_disown_selection_internal): Use union of struct
9201 input_event and struct selection_input_event to avoid aliasing issues.
9203 * xterm.c (handle_one_xevent): Use union of struct input_event and
9204 struct selection_input_event to avoid aliasing issues.
9205 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
9207 2005-02-17 Kim F. Storm <storm@cua.dk>
9209 * dispextern.h (enum it_method): New enum.
9210 (GET_FROM_*): Its members.
9211 (struct it): Change member method from function pointer to enum.
9213 * xdisp.c (check_it, init_from_display_pos, handle_stop)
9214 (setup_for_ellipsis, handle_single_display_spec)
9215 (handle_composition_prop, next_overlay_string)
9216 (get_overlay_strings, reseat_1, reseat_to_string)
9217 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
9218 (in_display_vector_p, display_line, get_next_display_element):
9219 Change it->method from function pointer to enum.
9220 (get_next_element): New array to map it->method to function.
9221 (get_next_display_element): Use it.
9222 (set_iterator_to_next): Use switch instead of if/else chain.
9224 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9226 * w32select.c: Summary: Thorough rework to implement Unicode
9227 clipboard operations and delayed rendering.
9229 Drop last_clipboard_text and related code, keep track of
9230 ownership via clipboard_owner instead. Drop old #if0 sections.
9232 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
9233 (clipboard_owner, modifying_clipboard, cfg_coding_system)
9234 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
9235 (current_coding_system, current_requires_encoding)
9236 (current_num_nls, current_clipboard_type, current_lcid):
9237 New static variables.
9239 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
9240 (render, render_all, run_protected, lisp_error_handler)
9241 (owner_callback, create_owner, setup_config)
9242 (enum_locale_callback, cp_from_locale, coding_from_cp):
9243 New local functions.
9245 (term_w32select, globals_of_w32select): New global functions.
9247 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
9248 clipboard_owner instead. Use delayed rendering and provide
9249 all text formats. Provide CF_LOCALE if necessary.
9251 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
9252 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
9253 available. Force DOS line-ends for decoding.
9255 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
9257 (syms_of_w32select): Init and register new variables.
9259 * w32.h: Add prototypes for globals_of_w32select and
9260 term_w32select. Make the neighboring K&R declarations into
9263 * emacs.c: Include w32.h to get function prototypes.
9264 (main): Call globals_of_w32select.
9266 * w32.c (term_ntproc): Call term_w32select.
9268 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
9270 2005-02-16 Kim F. Storm <storm@cua.dk>
9272 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
9273 at end of display vector.
9275 2005-02-15 Richard M. Stallman <rms@gnu.org>
9277 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
9278 for mode and header lines.
9280 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
9282 * keymap.h (describe_map_tree): Change decl.
9284 * keyboard.c (command_loop_1): Always use safe_run_hooks
9285 to run Qdeferred_action_function.
9287 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
9288 (describe_map, describe_vector): Likewise. When it's 1,
9289 don't omit shadowed bindings, instead mark them as shadowed.
9291 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
9292 for describe_map_tree. Pass 1 for MENTION_SHADOW.
9294 * data.c (Fsetq_default): Allow no arg case.
9296 2005-02-14 Kenichi Handa <handa@m17n.org>
9298 * coding.c (encode_coding_string): Always return a unibyte string.
9299 If NOCOPY is nonzero and there's no need of encoding, make STR
9302 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
9303 multibyte string, signal an error instead of aborting.
9305 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
9307 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
9309 2005-02-12 Kim F. Storm <storm@cua.dk>
9311 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
9313 2005-02-10 Kim F. Storm <storm@cua.dk>
9315 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
9316 if it moves outside window or it doesn't display text.
9318 2005-02-09 Kim F. Storm <storm@cua.dk>
9320 * undo.c (Fprimitive_undo): Check that undo function does not
9323 2005-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9325 * xselect.c (selection_data_to_lisp_data): For the special case
9326 type == XA_ATOM, data contains array of int, not array of Atom.
9327 (x_property_data_to_lisp, selection_data_to_lisp_data):
9328 Comment update: data must be array of int for format == 32.
9330 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9332 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
9334 2005-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9336 * xfns.c (Fx_change_window_property): Use long array when format is 32.
9337 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
9338 convert long array returned from XGetWindowProperty to an int array.
9339 (x_set_tool_bar_lines): Check that width and height is greater than
9340 zero before clearing area.
9342 * xselect.c (x_reply_selection_request): Pass long array to
9343 XChangeProperty so that 64 bit longs are handeled correctly.
9344 (x_get_window_property): If format is 32 and long is bigger than 32
9345 bits convert data from XGetWindowProperty from long array to int array.
9346 (lisp_data_to_selection_data): When the input is a vector and the
9347 format is 32, allocate a long array even if long is bigger than 32 bits.
9348 (x_fill_property_data): Use char, short and long as the man page
9349 for XChangeProperty specifies. This way the data returned is OK for
9350 both 32 and 64 bit machines.
9351 (x_handle_dnd_message): Calculate size correctly even for 64 bit
9353 (Fx_send_client_event): Undo change from 2005-02-05,
9354 x_fill_property_data now handles that case.
9356 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
9357 reason for the approach in the code.
9359 2005-02-07 Kim F. Storm <storm@cua.dk>
9361 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
9363 2005-02-06 Richard M. Stallman <rms@gnu.org>
9365 * eval.c (Frun_hook_with_args)
9366 (Frun_hook_with_args_until_success)
9367 (Frun_hook_with_args_until_failure): Doc fixes.
9369 2005-02-05 Andreas Schwab <schwab@suse.de>
9371 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
9373 2005-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9375 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
9376 the longs in a XClientMessageEvent correctly when long is 64 bits.
9378 2005-02-05 Eli Zaretskii <eliz@gnu.org>
9380 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
9381 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
9383 2005-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9385 * xmenu.c (menubar_selection_callback): Force out GTK buffered
9386 events so the menu event comes after them. This is to prevent sit-for
9387 from exiting on buffered events directly after a menu selection,
9388 lisp code for Help => About Emacs uses sit-for.
9390 * gtkutil.c (create_menus): Connect selection-done event instead of
9391 the deactivate event to deactivate_cb. This will make the last
9392 leave event come before the call to deactivate_cb, so the leave
9393 event does not make sit-for exit after a menu selection.
9395 2005-02-03 Kim F. Storm <storm@cua.dk>
9397 * dispnew.c (build_frame_matrix_from_leaf_window)
9398 [!GLYPH_DEBUG]: Fix xassert.
9400 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
9402 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9404 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9406 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
9407 the compiling OS version.
9409 * macfns.c (x_create_tip_frame): Likewise.
9411 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
9413 2005-02-03 Richard M. Stallman <rms@gnu.org>
9415 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
9417 * xdisp.c (echo_area_display): Clear echo_message_buffer.
9419 * buffer.c (Fbury_buffer): Doc fix.
9421 2005-02-02 Steven Tamm <steventamm@mac.com>
9423 * macfns.c (unwind_create_frame): Fix compile error due to
9424 xassert being uncondition, but predicate is.
9425 * dispnew.c (update_window): Fix compile error due to
9426 xassert being uncondition, but predicate is.
9428 2005-02-02 Miles Bader <miles@gnu.org>
9430 * dispextern.h (xassert): Enable unconditionally.
9432 2005-02-02 Kim F. Storm <storm@cua.dk>
9434 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
9436 2005-02-02 Kenichi Handa <handa@m17n.org>
9438 * casefiddle.c (casify_object): Enable changing characters of
9439 different byte length.
9440 (casify_region): Fix loop condition, args to replace_range_2, and
9443 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
9445 2005-02-01 Kim F. Storm <storm@cua.dk>
9447 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
9448 stack before calling handle_display_prop.
9450 2005-01-31 Kim F. Storm <storm@cua.dk>
9452 * undo.c (Qapply): New lisp var.
9453 (syms_of_undo): Intern and staticpro it.
9454 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
9455 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
9457 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9459 2005-01-30 Jesper Harder <harder@phys.au.dk>
9461 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
9462 <mac-emulate-three-button-mouse>: Fix docstring indentation.
9464 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
9466 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
9467 Increase value to 3 Meg.
9469 2005-01-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9471 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
9472 button events are not received otherwise.
9474 2005-01-29 Richard M. Stallman <rms@gnu.org>
9476 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9478 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
9480 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9482 * keymap.c (access_keymap): YAILOM.
9484 2005-01-27 Kim F. Storm <storm@cua.dk>
9486 * xdisp.c (get_phys_cursor_geometry): New function to calculate
9487 phys cursor position and size for hollow cursor. Position is
9488 aligned with get_glyph_string_clip_rect and ensures that a hollow
9489 cursor is shown, even when the actual glyph is not visible.
9491 * dispextern.h (get_phys_cursor_geometry): Add prototype.
9493 * xterm.c (x_clip_to_row): Ensure y >= 0.
9494 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9496 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9498 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9500 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
9502 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
9504 2005-01-27 Kim F. Storm <storm@cua.dk>
9506 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
9507 glyph, even when row is only partially visible and actual cursor
9508 position is not visible.
9510 2005-01-24 Richard M. Stallman <rms@gnu.org>
9512 * xterm.c (x_error_quitter): No longer static, and moved after
9515 2005-01-24 Kim F. Storm <storm@cua.dk>
9517 * xdisp.c (move_it_by_lines): If we move forward after going too
9518 far back, cancel move if end position is same as start position.
9520 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9522 * dispextern.h (struct glyph_string): New members clip_head and
9525 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
9526 region to the area between clip_head and clip_tail.
9527 (draw_glyphs): Record the area that need to be actually redrawn to
9528 the new variables clip_head and clip_tail when there are
9529 overhangs. Set values of these variables to the corresponding
9530 members in struct glyph_string. Refine x coordinates for
9531 notice_overwritten_cursor using clip_head and clip_tail.
9533 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
9535 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
9537 (x_draw_glyph_string): Don't fill the background of the successor
9538 of a glyph with a right overhang if the successor will draw a cursor.
9539 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
9540 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
9542 2005-01-24 Kim F. Storm <storm@cua.dk>
9544 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
9545 direction if window height was smaller than next-screen-context-lines.
9546 Now always scroll at least one line in the requested direction.
9547 Ensure that we actually do scroll backwards when requested to do so.
9549 * xdisp.c (redisplay_window): Only try to make cursor line fully
9550 visible once (to avoid redisplay loop).
9552 2005-01-23 Kim F. Storm <storm@cua.dk>
9554 * window.c (Fpos_visible_in_window_p): Simplify return value for
9555 partially visible rows.
9556 (window_scroll_pixel_based): Adapt to that change.
9558 * window.c (window_scroll_pixel_based): Force moving to next line
9559 if scrolling doesn't move start point, e.g. if looking at tall image.
9561 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
9562 Clear last_height before calling line_bottom_y to get real height.
9563 Fix calculation of y.
9565 2005-01-22 Steven Tamm <steventamm@mac.com>
9567 * s/darwin.h: Removed PTY_ITERATION from here.
9570 * process.c (init_process): Default process-connection-type to
9571 nil on darwin 6 or less, t if it is 7 or higher. This way the
9572 broken pty behavior is still allowed on darwin 6 for interactive
9573 processes for people that know what they are doing.
9575 2005-01-22 Kim F. Storm <storm@cua.dk>
9577 * window.c (auto_window_vscroll_p): New boolean.
9578 (syms_of_window): DEFVAR_BOOL it.
9579 (Fpos_visible_in_window_p): Extend return value to include RTOP
9580 and RBOT values if FULLY is nil.
9581 (window_scroll_pixel_based): Adjust vscroll for partially visible
9582 rows if auto_window_vscroll_p is set.
9583 (Fset_window_vscroll): Do nothing if vscroll is not modified.
9585 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
9586 to return number of partially invisible pixels at top and bottom
9587 of the dislay row at POS.
9589 * lisp.h (pos_visible_p): Fix prototype.
9591 2005-01-21 Richard M. Stallman <rms@gnu.org>
9593 * fileio.c (Fcopy_file): Doc fix.
9595 2005-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9597 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
9598 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
9599 start of function for older compilers.
9601 2005-01-20 Richard M. Stallman <rms@gnu.org>
9603 * editfns.c (Fmessage): If arg is "", return "" (as before).
9605 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
9607 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
9610 2005-01-20 Steven Tamm <steventamm@mac.com>
9612 * editfns.c (Voperating_system_release): Add.
9613 (init_editfns): Assign new variable operating-system-release
9614 based on call to uname if available.
9615 (get_operating_system_release): Add function to
9616 allow c-level access to operating system release.
9618 * config.h: Regenerated.
9620 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
9621 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
9624 2005-01-20 Kim F. Storm <storm@cua.dk>
9626 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
9628 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
9629 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
9631 * macterm.c (x_draw_glyph_string_box): Likewise.
9633 * w32term.c (x_draw_glyph_string_box): Likewise.
9635 * indent.c (Fvertical_motion): Temporarily disable selective display.
9637 2005-01-19 Kim F. Storm <storm@cua.dk>
9639 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
9642 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
9644 2005-01-18 Kim F. Storm <storm@cua.dk>
9646 * xdisp.c (fast_find_position): Backtrack to find first row if
9647 charpos is inside a display overlay that spans multiple lines.
9649 2005-01-18 Kenichi Handa <handa@m17n.org>
9651 * coding.c (decode_coding_iso2022): Translate invalid codes if
9652 translation-table is specified.
9654 2005-01-18 Kim F. Storm <storm@cua.dk>
9656 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
9657 change. If handle_display_prop indicates newline is replaced by
9658 image or text, move back to start of relevant overlay or interval
9659 and continue scan from there. Simplify.
9661 2005-01-17 Kim F. Storm <storm@cua.dk>
9663 * dispnew.c (mode_line_string, marginal_area_string):
9664 Fix off-by-one error in search for glyph.
9666 2005-01-16 Kim F. Storm <storm@cua.dk>
9668 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
9670 2005-01-16 Steven Tamm <steventamm@mac.com>
9672 * macterm.c (mac_to_x_fontname): Remove spurious argument.
9674 2005-01-16 Andreas Schwab <schwab@suse.de>
9676 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
9678 2005-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9680 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
9681 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
9683 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9685 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
9686 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
9687 New flags for readable_events.
9688 (get_filtered_input_pending, readable_filtered_events): Remove.
9689 (tracking_off): Call readable_events and get_input_pending with
9690 flag READABLE_EVENTS_DO_TIMERS_NOW.
9691 (readable_events): Move code from old readable_filtered_events here,
9692 but check new READABLE_EVENTS_* in argument flags instead of previous
9693 two boolean arguments do_timers_now and filter_events.
9694 If we are doing mouse tracking and the mouse moved, return only if
9695 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
9696 (swallow_events): Call get_input_pending with flag
9697 READABLE_EVENTS_DO_TIMERS_NOW.
9698 (get_input_pending): Move code from old get_filtered_input_pending
9699 here. Replace boolean arguments do_timers_now, filter_events with
9700 flags, and pass flags to readable_events. Document new
9701 READABLE_EVENTS_* flags.
9702 (detect_input_pending_ignore_squeezables): New function.
9703 (detect_input_pending_run_timers): Call get_input_pending with flag
9704 READABLE_EVENTS_DO_TIMERS_NOW.
9705 (Finput_pending_p): Call get_input_pending with flags
9706 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
9708 * dispnew.c (update_window, update_frame_1): Replace calls to
9709 detect_input_pending with detect_input_pending_ignore_squeezables
9710 so that redisplay is not paused if the event queue contains only
9713 * lisp.h: Declare detect_input_pending_ignore_squeezables.
9715 2005-01-15 Steven Tamm <steventamm@mac.com>
9717 * macterm.c (Vmac_use_core_graphics): Declare variable for
9718 mac-allow-anti-aliasing.
9719 (syms_of_macterm): DEFVAR_LISP and initialize it.
9720 (mac_draw_string_common): Use core graphics text rendering if
9721 mac-allow-anti-aliasing is enabled.
9723 * macfns.c (Fx_file_dialog): Save As dialog includes only the
9724 file name in the text box.
9726 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9728 * macfns.c (x_set_foreground_color, x_set_background_color):
9730 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
9731 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
9732 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
9734 2005-01-14 Kim F. Storm <storm@cua.dk>
9736 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
9738 2005-01-13 Richard M. Stallman <rms@gnu.org>
9740 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
9741 if Voverriding_terminal_local_map is non-nil.
9743 * keyboard.c (syms_of_keyboard): Doc fix.
9745 2005-01-13 Kim F. Storm <storm@cua.dk>
9747 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
9748 (specify 0 for FACE instead). Reorder arg list. Doc fix.
9750 2005-01-12 Richard M. Stallman <rms@gnu.org>
9752 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
9753 face property for characters that don't specify one.
9755 * fns.c (Frequire): Record in load-history unconditionally.
9757 2005-01-10 Kim F. Storm <storm@cua.dk>
9759 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
9761 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
9763 Add support to merge with lisp face id too (if face_name is t).
9765 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9766 Don't lookup lface_id from display table glyphs here; instead use
9767 merge_faces to merge the lisp face id into current face.
9769 2005-01-09 Kim F. Storm <storm@cua.dk>
9771 * dispextern.h (struct it): New member dpvec_face_id.
9772 (merge_into_realized_face): Add prototype.
9774 * xfaces.c (merge_into_realized_face): New function. Used to
9775 merge escape-glyph face or face from display table into current face.
9777 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
9778 (syms_of_xdisp): DEFVAR_LISP it.
9779 (escape_glyph_face): Remove var.
9780 (redisplay_window): Don't initialize it.
9781 (setup_for_ellipsis, get_next_display_element):
9782 Set it->dpvec_face_id to -1.
9783 (get_next_display_element): Test Vshow_nonbreak_escape.
9784 Do not setup escape_glyph_face.
9785 Properly merge escape-glyph face or face from display table with
9786 current face for escape and control characters.
9787 Set it->dpvec_face_id to relevant face id instead of adding it to each
9788 element of display vector.
9789 (next_element_from_display_vector): If it->dpvec_face_id is set,
9790 use that instead of lface_id from glyph itself.
9792 2005-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9794 * xterm.h (struct x_output): New member, toolbar_detached.
9796 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
9798 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
9799 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
9800 (xg_create_tool_bar): Initialize toolbar_detached.
9801 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
9802 toolbar_detached is zero.
9804 2005-01-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9806 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
9807 gtk_menu_popup if not for_click, so callbacks for the menu are called.
9809 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
9810 (xg_tool_bar_callback, xg_tool_bar_help_callback)
9811 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
9813 * xselect.c (x_get_foreign_selection, x_fill_property_data)
9814 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
9815 XFLOAT_DATA to get extract number from Lisp object.
9817 2005-01-07 Kim F. Storm <storm@cua.dk>
9819 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
9820 Set stop_charpos to current charpos instead of 0.
9822 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
9824 * xdisp.c (Fformat_mode_line): First arg now required.
9826 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9828 * macterm.c (XLoadQueryFont): Correctly handle 0 size
9829 font widths that are returned from some Japanese fonts.
9831 2005-01-06 Kim F. Storm <storm@cua.dk>
9833 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
9834 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
9835 (destroy_fringe_bitmap): Set fringe_faces element to nil.
9836 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
9837 fringe_faces array and init elements to nil.
9838 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
9839 non-persistent face id.
9840 (mark_fringe_data): New function for GC.
9842 * alloc.c (mark_fringe_data): Declare extern.
9843 (Fgarbage_collect): Call mark_fringe_data.
9845 * alloc.c (overrun_check_free): Invalidate freed memory if
9846 XMALLOC_CLEAR_FREE_MEMORY is defined.
9848 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9850 * macfns.c: Include sys/param.h.
9851 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
9853 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
9854 of filename string. Set event callback function when creating
9855 dialog boxes. Add code conversions for filenames. Don't dispose
9856 of apple event descriptor record if failed to create it.
9858 * macterm.c: Include sys/param.h.
9859 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
9861 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
9862 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
9863 of FSSpec from apple event descriptor record.
9864 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
9865 size of filename string.
9866 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
9867 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
9868 file dialog is in action.
9869 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
9870 Reject only when there are no filename items. Set background color
9871 before (un)highlighting the window below the dragged items.
9872 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
9874 2005-01-05 Romain Francoise <romain@orebokech.com>
9876 * term.c (encode_terminal_code): Fix buffer size computation.
9878 2005-01-04 Richard M. Stallman <rms@gnu.org>
9880 * xdisp.c (Fformat_mode_line): Doc fix.
9882 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9884 * alloc.c (refill_memory_reserve): Move.
9885 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
9886 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
9888 2005-01-03 Richard M. Stallman <rms@gnu.org>
9890 * window.c (window_scroll_pixel_based): Don't correct preserve_y
9891 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
9893 2005-01-03 Jason Rumney <jasonr@gnu.org>
9895 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
9896 fontp->space_width to FONT_WIDTH so they are valid.
9898 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
9899 average width. Set fontp->average_width and fontp->space_width to
9900 their appropriate values.
9902 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
9903 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
9906 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9908 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
9909 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
9910 metrics for max and min bounds.
9911 (x_load_font): Correctly calculate average font width metrics.
9913 2005-01-02 Richard M. Stallman <rms@gnu.org>
9915 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
9917 2004-12-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
9919 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
9921 2004-12-31 Richard M. Stallman <rms@gnu.org>
9923 * xdisp.c (setup_for_ellipsis, get_next_display_element):
9924 Set it->ellipsis_p to 1 or 0.
9925 (display_line): Record whether row ends in mid-ellipsis.
9926 (set_cursor_from_row): If ends in ellipsis, find start of it.
9927 (cursor_row_p): If PT's at the end of the ellipsis the row
9928 ends within, don't display cursor on this row.
9930 * dispextern.h (struct it): New element ellipsis_p.
9931 (struct glyph_row): New element ends_in_ellipsis_p.
9933 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
9934 position if we're reading from something other than the buffer.
9936 * window.c (window_scroll_pixel_based): Only look at
9937 Vscroll_preserve_screen_position if the old PT can't be kept.
9938 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
9940 2004-12-30 Kim F. Storm <storm@cua.dk>
9942 * xdisp.c (get_line_height_property): New function extracted from
9943 original calc_line_height_property.
9944 (calc_line_height_property): Rework. Handle t and (nil . ratio).
9945 (x_produce_glyphs): Use them to handle line-height and
9946 line-spacing according to new height spec.
9948 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
9950 2004-12-30 Kenichi Handa <handa@m17n.org>
9952 * fileio.c (Finsert_file_contents): Don't use
9953 current_buffer->buffer_file_coding_system even if REPLACE is
9954 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
9956 * fontset.h (struct font_info): New members space_width and
9959 * frame.h (struct frame): New member space_width.
9960 (FRAME_SPACE_WIDTH): New macro.
9962 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
9964 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
9965 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
9967 (x_load_font): Calculate fontp->space_width and fontp->average_width.
9968 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
9970 * xdisp.c (x_produce_glyphs): Calculate tab width by
9971 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
9973 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
9975 * macterm.c (SelectionRange): Add Xcode position apple event struct.
9976 (do_ae_open_documents): Handle Xcode-style file position open events.
9978 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
9980 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
9982 2004-12-29 Richard M. Stallman <rms@gnu.org>
9984 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
9986 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9988 * macfns.c (install_window_handler): Modify extern to return OSErr
9990 (mac_window): Handle return value of install_window_handler.
9992 * macterm.c (reflect_byte): Remove function.
9993 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
9994 Lookup table instead.
9995 (mac_do_font_lists): Simplify calculation of the longest
9997 (init_mac_drag_n_drop): Remove function and declaration.
9998 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
9999 init_mac_drag_n_drop.
10000 (mac_do_track_drag): New function and declaration.
10001 (install_window_handler): Return OSErr value.
10002 (install_window_handler) [TARGET_API_MAC_CARBON]:
10003 Register handlers for tracking/receiving drag-and-drop items.
10004 (do_ae_open_documents): Generate unibyte strings for filenames.
10005 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
10006 Reject only non-filename items. Set event modifiers, and return value.
10008 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10010 * coding.c (decode_coding): Fix previous change.
10012 2004-12-28 Richard M. Stallman <rms@gnu.org>
10014 * xdisp.c (back_to_previous_visible_line_start):
10015 Don't call handle_display_prop.
10017 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10019 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
10020 (decode_coding_emacs_mule, encode_coding_emacs_mule)
10021 (decode_coding_iso2022, encode_designation_at_bol)
10022 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
10023 (decode_coding): Constify arguments and local vars.
10025 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10027 * xmenu.c (popup_get_selection): Only pop down dialogs
10029 (popup_get_selection): Remove parameter down_on_keypress.
10030 (create_and_show_popup_menu, create_and_show_dialog):
10031 Remove parameter down_on_keypress to popup_get_selection.
10033 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10035 * dispextern.h: Change HAVE_CARBON to MAC_OS.
10036 (struct glyph_string): Likewise.
10038 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
10041 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
10042 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
10044 * fns.c (vector): Change MAC_OSX to MAC_OS.
10046 * frame.c (x_set_frame_parameters, x_report_frame_params)
10047 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
10048 (x_set_border_width, Vdefault_frame_scroll_bars):
10049 Change HAVE_CARBON to MAC_OS.
10051 * image.c [MAC_OS]: Include sys/stat.h.
10052 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
10053 QuickTimeComponents.h.
10055 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
10056 [!MAC_OSX] (select): Use mac_wait_next_event.
10057 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
10058 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
10059 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10060 (mac_clear_font_name_table): Add extern.
10061 (Fmac_clear_font_name_table): New defun.
10062 (syms_of_mac): Defsubr it.
10063 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
10064 [MAC_OSX] (select_and_poll_event): New function.
10065 [MAC_OSX] (sys_select): Use it.
10066 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
10067 [MAC_OSX && SELECT_USE_CFSOCKET]
10068 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
10069 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
10070 RunLoop for simultaneously monitoring two kinds of inputs, window
10071 events and process outputs, without periodically polling.
10073 * macfns.c (mac_initialized): Remove extern.
10074 (stricmp): Put in #if 0. All callers changed to use xstricmp in
10076 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
10077 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
10078 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
10079 (mac_get_rdb_resource): New function (from w32reg.c).
10080 (x_get_string_resource): Use it.
10081 (install_window_handler): Add extern.
10082 (mac_window): New function.
10083 (Fx_create_frame): Use it instead of make_mac_frame.
10084 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
10085 (Fx_open_connection, Fx_close_connection): New defuns.
10086 (syms_of_macfns): Defsubr them.
10087 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
10088 Add kWindowNoUpdatesAttribute to the window attribute.
10089 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
10090 (x_create_tip_frame): Don't call ShowWindow.
10091 (Fx_show_tip): Call ShowWindow.
10092 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
10093 TARGET_API_MAC_CARBON'.
10094 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
10095 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
10097 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
10098 (Window): Typedef to WindowPtr and move outside `#if
10099 TARGET_API_MAC_CARBON'.
10100 (XSizeHints): New struct.
10102 * macterm.c (x_update_begin, x_update_end)
10103 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
10105 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10106 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
10107 (construct_mouse_click): Put in #if 0.
10108 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
10109 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
10110 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10111 (activate_scroll_bars, deactivate_scroll_bars)
10112 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
10113 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
10114 if the position is neither user-specified nor program-specified.
10115 (x_free_frame_resources): Free size_hints.
10116 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
10117 (mac_clear_font_name_table): New function.
10118 (mac_do_list_fonts): Initialize font_name_table if needed.
10119 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
10120 around mac_do_list_fonts.
10121 (mac_unload_font): New function.
10122 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
10123 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
10124 and definitions with #if TARGET_API_MAC_CARBON.
10125 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
10126 (install_window_handler): Add decl.
10127 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
10128 window. Use UpdateControls. Get the rectangle that should be
10129 updated and restrict the target of expose_frame to it.
10130 (do_grow_window): Set minimum height/width according to size_hints.
10131 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
10132 (do_zoom_window): Don't use x_set_window_size.
10133 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
10134 (install_window_handler): New function.
10135 [!USE_CARBON_EVENTS] (mouse_region): New variable.
10136 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
10137 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
10138 GetEventDispatcherTarget inside BLOCK_INPUT.
10139 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
10140 Update mouse_region when mouse is moved.
10141 (make_mac_frame): Remove.
10142 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
10143 Initialize mouse pointer shapes. Change values of f->left_pos and
10144 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
10145 Don't call ShowWindow.
10146 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
10147 Vinvocation_name and Vsystem_name.
10148 (mac_make_rdb): New function (from w32term.c).
10149 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
10150 already been opened. Don't pass argument to
10151 mac_initialize_display_info. Don't set dpyinfo->height/width.
10152 Add entries to x_display_list and x_display_name_list.
10153 (x_delete_display): New function.
10154 (mac_initialize): Don't call mac_initialize_display_info.
10155 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
10157 * macterm.h (check_mac): Add extern.
10158 (struct mac_output): New member size_hints.
10159 (FRAME_SIZE_HINTS): New macro.
10160 (mac_unload_font): Add extern.
10162 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
10164 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
10166 2004-12-27 Richard M. Stallman <rms@gnu.org>
10168 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
10169 (syms_of_buffer): Don't defsubr it.
10171 * process.c (list_processes_1): Set undo_list instead
10172 of calling Fbuffer_disable_undo.
10174 * xdisp.c (single_display_spec_string_p): Rename from
10175 single_display_prop_string_p.
10176 (single_display_spec_intangible_p): Rename from
10177 single_display_prop_intangible_p.
10178 (handle_single_display_spec): Rename from handle_single_display_prop.
10179 Rewritten to be easier to understand.
10181 Change in load-history format. Functions now get (defun . NAME),
10182 and variables get just NAME.
10184 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10186 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10187 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
10188 (Qdefvar): Var deleted.
10189 (syms_of_eval): Don't initialze it.
10191 * lread.c (syms_of_lread) <load-history>: Doc fix.
10193 2004-12-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10195 * xmenu.c (popup_get_selection): Pop down on C-g.
10196 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
10197 pops down menu on C-g.
10198 (xdialog_show): If dialog popped down and no button in the dialog was
10199 pushed, call Fsignal to quit.
10200 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
10203 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
10205 * gtkutil.c (xg_initialize): Install bindings for C-g so that
10206 dialogs and menus pop down.
10208 2004-12-27 Kenichi Handa <handa@m17n.org>
10210 * coding.c (code_convert_region): Fix calculation of `ratio'.
10212 2004-12-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10214 * gtkutil.c (update_frame_tool_bar): Make the value of
10215 tool-bar-button-margin control margins of images in tool bar.
10217 * alloc.c (check_depth): New variable.
10218 (overrun_check_malloc, overrun_check_realloc): Only add
10219 overhead and write check pattern if check_depth is 1 (to handle
10220 recursive calls). Increase/decrease check_depth in entry/exit.
10221 (overrun_check_free): Only check for overhead if check_depth is 1.
10222 Increase/decrease check_depth in entry/exit.
10224 2004-12-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10226 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
10227 before touching input_available_clear_time, to avoid accessing it
10228 from multiple threads.
10230 2004-12-23 Jason Rumney <jasonr@gnu.org>
10232 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
10235 2004-12-22 Richard M. Stallman <rms@gnu.org>
10237 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
10239 * lisp.h (Vundo_outer_limit): Fix decl.
10241 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
10243 (syms_of_undo): Initialize appropriately.
10244 (truncate_undo_list): If it's nil, there's no limit.
10246 2004-12-22 Kenichi Handa <handa@m17n.org>
10248 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
10250 2004-12-21 Richard M. Stallman <rms@gnu.org>
10252 * eval.c (unwind_to_catch): Clear immediate_quit.
10254 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
10255 specially as `\ ' and `\-'.
10257 * keyboard.c (kbd_buffer_store_event_hold):
10258 In the code for while-no-input, handle immediate_quit.
10260 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
10261 Call that at the very start.
10262 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
10263 (syms_of_alloc): Don't define undo-limit,
10264 undo-strong-limit and undo-outer-limit here.
10266 * undo.c (truncate_undo_list): Return void.
10267 Take just one argument, the buffer.
10268 Make it current, and inhibit recursive GC.
10269 Access and update the undo list directly; return void.
10270 Refer to the undo...limit variables directly.
10271 Test undo_outer_limit only after counting the whole current command.
10272 When it's exceeded, call the function in undo-outer-limit-function.
10273 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
10274 (Vundo_outer_limit_function): New variable.
10275 (syms_of_undo): Define undo-limit, undo-strong-limit
10276 and undo-outer-limit here, and undo-outer-limit-function.
10279 * lisp.h (truncate_undo_list): Update decl.
10281 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
10283 * fileio.c (Fread_file_name): Delete duplicates in
10284 file-name-history when history_delete_duplicates is true.
10286 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10288 * macterm.c (mac_do_list_fonts): Fix memory leak
10290 2004-12-20 Richard M. Stallman <rms@gnu.org>
10292 * regex.c (re_match_2_internal) <symend, wordend>:
10293 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
10295 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10297 * macterm.c (endif, x_font_name_to_mac_font_name):
10298 Use maccentraleurroman instead of maccentraleuropean
10299 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
10300 quickly finding a specific font without needing regexps.
10302 2004-12-15 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10304 * syssignal.h: Declare main_thread.
10305 (SIGNAL_THREAD_CHECK): New macro.
10307 * keyboard.c (input_available_signal): Move thread checking code
10308 to macro SIGNAL_THREAD_CHECK and call that macro.
10309 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
10311 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
10313 * emacs.c: Define main_thread.
10314 (main): Initialize main_thread.
10315 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
10316 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
10318 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
10320 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
10322 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
10324 * process.c (send_process_trap, sigchld_handler):
10325 Call SIGNAL_THREAD_CHECK.
10327 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
10329 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
10331 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
10332 returning when xg_ignore_gtk_scrollbar is true.
10334 2004-12-14 Kim F. Storm <storm@cua.dk>
10336 * keyboard.c (read_char): Save and restore echo_string when
10337 handling input method.
10339 2004-12-13 Richard M. Stallman <rms@gnu.org>
10341 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
10343 * keyboard.c (Vthrow_on_input): New variable.
10344 (syms_of_keyboard): Defvar and initialize it.
10345 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
10347 * lisp.h (QUIT): Check for Vthrow_on_input.
10348 (Vthrow_on_input): Declare it.
10350 2004-12-13 Kim F. Storm <storm@cua.dk>
10352 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
10355 2004-12-12 Richard M. Stallman <rms@gnu.org>
10357 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
10359 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
10360 (Ftry_completion): Really use outer `zero'; eliminate inner one.
10362 2004-12-12 Kenichi Handa <handa@m17n.org>
10364 * term.c (encode_terminal_code): Fix previous change.
10366 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
10368 * keyboard.c (handle_async_input): Remove pthread mutex handling.
10369 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
10371 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
10372 in macro arguments.
10374 * minibuf.c (Ftry_completion, Fall_completions): Don't use
10377 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
10379 2004-12-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10381 * w32term.c (x_calc_absolute_position): Remove calculation of
10382 difference between inner and outer window. Don't subtract difference
10383 for left and top calculations.
10385 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
10386 for left and top calculations. Remove call to x_real_positions.
10387 [Bug report by Drew Adams in November.]
10388 (x_check_expected_move): Do not set change_gravity to 1 when calling
10391 2004-12-08 Richard M. Stallman <rms@gnu.org>
10393 * xdisp.c (get_next_display_element): Use `escape-glyph' for
10394 control chars and escaped octal codes.
10395 (Qescape_glyph): New variable.
10396 (syms_of_xdisp): Initialize it.
10397 (escape_glyph_face): New variable.
10398 (redisplay_window): Initialize it.
10400 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
10402 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
10403 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
10405 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10407 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
10408 reset_malloc_hooks.
10410 * keyboard.c (handle_async_input, input_available_signal):
10411 Add ! defined (SYSTEM_MALLOC) around thread code.
10413 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
10415 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
10417 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
10419 * config.in: Regenerate.
10421 2004-12-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10423 * xmenu.c (Fx_popup_menu): Correct documentation about position.
10424 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
10425 if not given by a mouse click to correspond with x-popup-menu
10428 * config.in: Regenerate.
10430 * gtkutil.c: Include signal.h and syssignal.h.
10431 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
10433 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
10434 new variables main_thread and alloc_mutex,
10435 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
10436 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
10437 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
10438 as (UN)BLOCK_INPUT.
10439 (emacs_blocked_free, emacs_blocked_malloc)
10440 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
10441 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
10442 (reset_malloc_hooks): New function.
10444 * lisp.h: Declare reset_malloc_hooks.
10446 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
10448 * keyboard.c: Conditionally include pthread.h.
10449 (handle_async_input, input_available_signalt): If not in the main
10450 thread, block signal, send signal to main thread and return.
10452 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
10453 Set current folder in file chooser if default_filename is a directory.
10455 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
10457 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
10458 Remove redundant correctness checks.
10459 (regex_compile): Fix up error codes for \{..\} expressions.
10461 2004-12-05 Richard M. Stallman <rms@gnu.org>
10463 * regex.c (regex_compile): Fix end-of-pattern case for space.
10465 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10467 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
10468 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
10469 crashes with invalid characters.
10470 * macmenu.c (add_menu_item): Use it.
10471 * image.c (image_load_quartz2d): Likewise.
10472 * macfns.c (x_set_name, x_set_title): Likewise.
10473 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
10474 creating them each time for labels.
10476 2004-12-02 Richard M. Stallman <rms@gnu.org>
10478 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
10481 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
10482 (interactive_p): Skip Scalled_interactively_p frames
10483 like Sinteractive_p frames.
10484 (unwind_to_catch): Clear handling_signal.
10486 * data.c (Fmake_variable_buffer_local): Doc fix.
10487 (Fmake_local_variable): Doc fix.
10489 * insdel.c (insert_from_string_before_markers)
10490 (insert_from_string): Don't modify buffer on empty insertion.
10492 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
10494 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10496 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
10497 menu text as UTF8 fails.
10499 2004-12-01 Kim F. Storm <storm@cua.dk>
10501 * alloc.c: Add commentary for last change.
10502 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
10503 sizeof(size_t) != 4.
10504 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
10505 Use them. Also clear header and trailer of freed memory.
10506 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
10507 (string_overrun_cookie): Rename from string_overrun_pattern.
10508 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
10510 2004-12-01 Andreas Schwab <schwab@suse.de>
10512 * lisp.h: Declare string_to_multibyte.
10514 2004-12-01 Kenichi Handa <handa@m17n.org>
10516 * w32console.c (w32con_write_glyphs): Decide coding here.
10517 Adjusted for the change of encode_terminal_code.
10519 * term.c (encode_terminal_code): Don't make it "static".
10521 2004-11-30 Kenichi Handa <handa@m17n.org>
10523 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
10524 (encode_terminal_code): Argument changed. Encode all
10525 characters at once, and return a pointer to the result of encoding.
10526 (write_glyphs): Decide coding here. Adjusted for the above change.
10527 (insert_glyphs): Likewise.
10528 (term_init): Initialize encode_terminal_bufsize to 0.
10530 * coding.c (Vcode_conversion_workbuf_name): New variable.
10531 (syms_of_coding): Initialize and staticpro it.
10532 (set_conversion_work_buffer): New function.
10533 (run_pre_post_conversion_on_str): Use it.
10534 (run_pre_write_conversin_on_c_str): New function.
10536 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
10538 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10540 * keyboard.c: Don't undef SIGIO
10541 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
10542 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
10543 (macfns.o): Don't depend on ccl.h.
10544 * macfns.c (mac_frame_parm_handlers): Set handlers for
10545 Qleft_fringe and Qright_fringe.
10546 * macterm.c (mac_fill_rectangle_to_pixmap)
10547 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
10548 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
10550 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
10551 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
10552 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
10553 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10554 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
10555 XDrawImageString. Always draw background and foreground separately.
10556 (x_draw_image_foreground): Use clipping instead of computing the
10557 intersection rectangle.
10558 (x_draw_image_glyph_string): Don't draw an image with mask to a
10560 (x_redisplay_interface): Set flush_display_optional member to 0.
10561 (XTread_socket): Correctly reset the TEConverter
10564 2004-11-30 Kim F. Storm <storm@cua.dk>
10566 * lisp.h: New defines to enable buffer overrun checking.
10567 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
10568 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
10570 * alloc.c: Add more checks for buffer overruns.
10571 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
10572 xmalloc_overrun_check_trailer, overrun_check_malloc)
10573 overrun_check_realloc, overrun_check_free): Add.
10574 (GC_STRING_EXTRA, string_overrun_pattern): Add.
10575 (check_sblock, allocate_string_data, compact_small_strings):
10576 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
10577 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
10578 (check_string_free_list): Add.
10579 (allocate_string, sweep_strings): Call check_string_free_list.
10581 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
10582 XMALLOC_OVERRUN_CHECK to avoid crash during load.
10584 2004-11-29 Kim F. Storm <storm@cua.dk>
10586 * fns.c (concat): Use SAFE_ALLOCA.
10588 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
10590 * sysdep.c (emacs_write): Don't use QUIT.
10592 2004-11-29 Kenichi Handa <handa@m17n.org>
10594 * buffer.c (init_buffer): Set current_buffer->directory to a
10595 multibyte string made by string_to_multibyte.
10597 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
10599 2004-11-27 Andreas Schwab <schwab@suse.de>
10601 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
10603 * s/gnu-linux.h: Enable no-op gcpros on ia64.
10604 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
10606 * filelock.c (lock_file_1): Call get_boot_time early.
10607 Increase buffer size.
10609 2004-11-27 Eli Zaretskii <eliz@gnu.org>
10611 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
10614 2004-11-27 Kim F. Storm <storm@cua.dk>
10616 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
10617 marker out of doc string.
10619 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
10621 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
10622 which was not mentioned in the log.
10624 2004-11-26 Kim F. Storm <storm@cua.dk>
10626 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
10627 angle bitmaps at top/bottom line.
10629 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
10630 set it when it->method is set to next_element_from_display_vector.
10631 (setup_for_ellipsis): Add LEN argument. Callers changed.
10632 Set it->saved_face_id.
10633 (get_next_display_element): Use loop instead of recursion.
10634 Set it->saved_face_id. Combine duplicate code for ctr chars.
10635 (next_element_from_display_vector): Do not set it->saved_face_id.
10636 (next_element_from_ellipsis): Use setup_for_ellipsis.
10638 2004-11-26 Eli Zaretskii <eliz@gnu.org>
10640 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
10641 prevent compiler warnings.
10643 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
10645 * keyboard.c (command_loop_1): Print a message describing the key
10646 the user just pressed when this key has no binding.
10648 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
10649 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
10651 * lread.c (readchar): Check QUIT when `getc' is interrupted.
10653 2004-11-24 Richard M. Stallman <rms@gnu.org>
10655 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
10657 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
10659 2004-11-24 Kim F. Storm <storm@cua.dk>
10661 * xdisp.c (move_it_in_display_line_to, display_line):
10662 Restore saved_face_id also when truncate-lines or hscrolled.
10664 2004-11-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10666 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
10667 x-use-old-gtk-file-dialog.
10669 * xfns.c: Define x_use_old_gtk_file_dialog.
10670 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
10671 outside ifdef USE_GTK.
10673 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
10675 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
10676 Don't use XFASTINT blindly.
10678 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
10680 * indent.c (skip_invisible): Avoid non-idempotent side-effects
10681 in macro arguments.
10683 * keymap.c (Flookup_key): Check INTEGERP before XINT.
10685 * lread.c (oblookup): Don't use XFASTINT blindly.
10687 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
10688 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
10690 2004-11-23 Kim F. Storm <storm@cua.dk>
10692 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
10693 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
10695 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
10696 signal_p is zero and face name is unknown.
10697 (Fx_list_fonts): Don't signal error in lookup_named_face.
10698 (Fface_font): Signal error in lookup_named_face.
10699 (ascii_face_of_lisp_face): Likewise.
10701 * dispextern.h (lookup_named_face): Fix prototype.
10703 * xdisp.c (handle_single_display_prop): Don't signal error in
10704 lookup_named_face for unknown fringe face name.
10705 (highlight_trailing_whitespace): Don't signal error in
10706 lookup_named_face if trailing-whitespace face unknown.
10707 (calc_line_height_property): Don't signal error in
10708 lookup_named_face if specified face name is unknown.
10710 * fringe.c (update_window_fringes): Show top row indicator if
10711 window has header-line. Don't show arrow at bob and eob
10712 if the boundary indicators are not used.
10713 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
10715 * window.c (set_window_buffer): Clear display_error_modiff.
10717 2004-11-22 Kim F. Storm <storm@cua.dk>
10719 * fringe.c (update_window_fringes): Provide sensible fall-back
10720 value for non-nil indicate-buffer-boundaries setting.
10722 2004-11-22 Markus Rost <rost@ias.edu>
10724 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
10726 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10728 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
10730 2004-11-21 Kim F. Storm <storm@cua.dk>
10732 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
10734 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
10735 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10737 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
10738 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10740 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
10741 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10743 * xdisp.c (move_it_in_display_line_to, display_line):
10744 Restore saved_face_id if overflow-newline-into-fringe is enabled and
10745 line is continued before or in middle of element from display vector.
10747 * indent.c (Fvertical_motion): Fix last change. Use another
10748 method to detect if iterator moved too far ahead after reseat.
10750 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
10751 expand matrix width for overflow in zero-width area.
10752 (append_glyph, append_composite_glyph, produce_image_glyph)
10753 (append_stretch_glyph): Use it to avoid loop in redisplay.
10754 (note_mode_line_or_margin_highlight): Don't let help-echo from
10755 string override help-echo from image map.
10757 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
10759 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
10760 * callint.c (Fcall_interactively): Ditto.
10762 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
10764 * minibuf.c (Fminibuffer_complete_and_exit):
10765 Fixup the case of the completed value, for case-indep completion.
10767 2004-11-20 Richard M. Stallman <rms@gnu.org>
10769 * lisp.h (Fread_from_minibuffer): Add arg in decl.
10771 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
10772 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
10774 * search.c (Vsearch_spaces_regexp):
10775 Rename from Vsearch_whitespace_regexp. All uses changed.
10777 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
10779 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
10781 2004-11-19 Richard M. Stallman <rms@gnu.org>
10783 * search.c (Vsearch_whitespace_regexp): New variable.
10784 (syms_of_search): Defvar it.
10785 (compile_pattern_1): Call re_set_whitespace_regexp with it.
10786 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
10788 (struct regexp_cache): New element whitespace_regexp.
10789 (syms_of_search): Initialize whitespace_regexp elements.
10790 (compile_pattern): Compare whitespace_regexp elements.
10791 (compile_pattern_1): Set whitespace_regexp elements.
10793 * regex.c (regex_compile): Substitute whitespace_regexp
10794 for spaces, if it is nonzero.
10795 (whitespace_regexp): New variable.
10796 (re_set_whitespace_regexp): New function.
10798 2004-11-19 Kim F. Storm <storm@cua.dk>
10800 * indent.c (Fvertical_motion): Fix last change.
10802 2004-11-18 Kim F. Storm <storm@cua.dk>
10804 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
10805 Instead, move back again if reseating moves too far ahead.
10807 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
10809 * xdisp.c (message3): Call clear_message.
10811 2004-11-17 Kim F. Storm <storm@cua.dk>
10813 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
10815 2004-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10817 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
10819 * xmenu.c (x_menu_in_use): Remove.
10820 (x_menu_set_in_use): Also set popup_activated_flag.
10822 * xfns.c (Fx_file_dialog): Call popup_activated instead of
10823 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
10825 * xterm.h (x_menu_in_use): Remove.
10827 2004-11-16 Richard M. Stallman <rms@gnu.org>
10829 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
10830 Use map-keymap-internal to implement that.
10832 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
10834 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10836 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
10837 a window before using XWINDOW.
10839 * window.c (make_window, Fselect_window, make_dummy_parent)
10840 (save_window_save):
10841 * frame.c (make_frame):
10842 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
10844 * lisp.h (NILP): Use EQ rather than XFASTINT.
10846 2004-11-16 Kim F. Storm <storm@cua.dk>
10848 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
10850 * indent.c (Fvertical_motion): Fix last change. Only reseat when
10853 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
10855 * dispextern.h: Extern reseat_at_previous_visible_line_start.
10857 2004-11-16 Kenichi Handa <handa@m17n.org>
10859 * xdisp.c (display_mode_element): Fix previous change (calculate
10860 end position of substring to display correctly).
10862 2004-11-16 Kim F. Storm <storm@cua.dk>
10864 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
10865 Reported by Andrew M. Scott.
10867 2004-11-15 Kim F. Storm <storm@cua.dk>
10869 * fns.c (Fsafe_plist_get): New defun.
10870 (syms_of_fns): Defsubr it.
10872 * lisp.h (Fsafe_plist_get): Add EXFUN.
10874 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
10875 Use Fsafe_plist_get.
10876 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10877 Fix image map element parsing. Use Fsafe_plist_get.
10879 2004-11-15 Richard M. Stallman <rms@gnu.org>
10881 * xdisp.c (get_next_display_element): Fix previous change.
10883 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10885 * window.c (shrink_windows): Handle special case of one window left
10886 when trying to shrink the final reminder. Grow windows if
10887 total_removed is less than total_shrink.
10889 * xmenu.c (pop_down_menu): Remove global variable current_menu,
10890 extract pointer from arg with XSAVE_VALUE.
10891 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
10892 Construct arg to record_unwind_protect with make_save_value.
10894 2004-11-13 Richard M. Stallman <rms@gnu.org>
10896 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
10897 (get_next_display_element): Fix previous change to apply only to \n.
10899 * indent.c (Fvertical_motion): Scan to PT from start of line to
10900 make iterator consistent.
10902 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
10904 2004-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10906 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
10908 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
10909 Record unwind with clean_up_file_dialog.
10911 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
10914 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
10916 2004-11-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10918 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
10919 (xg_file_sel_destroy): Remove.
10920 (xg_file_response_cb, pop_down_file_dialog)
10921 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
10923 (xg_get_file_with_chooser, xg_get_file_with_selection):
10924 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
10925 Move common code to xg_get_file_name. Return widget created.
10926 (xg_get_file_name): Set name, transient for, modal and destroy
10927 with parent here. Connect response signal to xg_file_response_cb,
10928 connect delete-event to gtk_true. Record pop_down_file_dialog
10929 for unwind. Do event loop and call x_menu_wait_for_event in loop.
10930 (xg_create_widget): Make dialogs modal.
10932 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
10934 (popup_get_selection): Move unwind protect ...
10935 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
10936 Move destroy of widget to pop_down_menu.
10937 (popup_widget_loop): Move unwind protect ...
10938 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
10939 Move destroy of widget to pop_down_menu.
10940 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
10941 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
10942 x_mouse_leave and grabbed = 0 to pop_down_menu.
10944 2004-11-13 Kim F. Storm <storm@cua.dk>
10946 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
10947 (syms_of_xdisp): DEFVAR_BOOL it.
10948 (make_cursor_line_fully_visible, try_cursor_movement)
10949 (try_window_id): Use it.
10951 2004-11-12 Kim F. Storm <storm@cua.dk>
10953 * dispextern.h (struct glyph_row): New member extra_line_spacing.
10954 (struct it): New member max_extra_line_spacing.
10955 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
10956 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
10957 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
10958 part of last line is only extra line spacing (so the text on the
10959 line is fully visible). Use helper macros.
10960 Add W arg (to use them). All callers changed.
10961 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
10962 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
10964 * window.c (window_scroll_pixel_based, Frecenter):
10965 Use move_it_vertically_backward directly.
10966 (Frecenter): Fix calculation of new start pos for negative arg.
10967 Before, the new start pos was sometimes chosen too far back, so
10968 the last line became only partially visible, and thus would be
10969 either only semi-visible or automatically scrolled to the middle
10970 of the window by redisplay.
10972 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
10973 (move_it_vertically_backward): Don't recure to move further back.
10974 (move_it_vertically): Remove superfluous condition.
10975 (move_it_by_lines): Clear last_height when moved 0 lines.
10976 (resize_mini_window): Use it.max_extra_line_spacing.
10977 (display_tool_bar_line): Clear row->extra_line_spacing.
10978 (try_scrolling): Use move_it_vertically_backward directly.
10979 (redisplay_window): Likewise.
10980 (compute_line_metrics): Set row->extra_line_spacing.
10981 (display_line, display_string): Likewise.
10982 (x_produce_glyphs): Update it->max_extra_line_spacing.
10984 * xmenu.c (pop_down_menu): Return nil.
10986 2004-11-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
10988 * xmenu.c (x_menu_wait_for_event): New function.
10989 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
10991 (popup_widget_loop): Add argument do_timers.
10992 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
10993 do_timers to popup_widget_loop.
10994 (xmenu_show): Call XMenuActivateSetWaitFunction so that
10995 x_menu_wait_for_event is called by XMenuActivate.
10996 (create_and_show_popup_menu): Pass 1 for do_timers to
10997 popup_get_selection.
10998 (pop_down_menu): New function.
10999 (popup_get_selection, popup_widget_loop): Unwind protect to
11001 (popup_widget_loop): Add argument widget.
11002 (create_and_show_popup_menu, create_and_show_dialog): Pass new
11003 argument widget to popup_widget_loop.
11005 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11007 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
11009 2004-11-09 Kim F. Storm <storm@cua.dk>
11011 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
11012 Fix various comments referring to XEvents instead of input events.
11013 (x_queue_event): Fix format strings.
11014 (x_stop_queuing_selection_requests): Likewise.
11016 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
11017 (pint2hrstr): Add extra braces to silence compiler.
11019 * print.c (print_object): Fix format string.
11021 * lread.c (read1): Fix next_char matching.
11023 * lisp.h (Fdelete): Add EXFUN.
11024 (replace_range_2): Add prototype.
11026 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
11028 * intervals.h (NULL_INTERVAL_P): Add separate version when
11029 ENABLE_CHECKING is not defined to silence compiler.
11030 (compare_string_intervals): Add prototype.
11032 * fringe.c (destroy_fringe_bitmap): Fix return type.
11033 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
11035 * emacs.c (Fdump_emacs): Fix format string.
11037 * doc.c: Include <ctype.h>.
11038 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
11040 * data.c (store_symval_forwarding): Remove unused variables.
11042 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
11044 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11046 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
11049 2004-11-09 Kim F. Storm <storm@cua.dk>
11051 * process.c (Fmake_network_process): Remove kludge for interrupted
11052 connects on BSD. If connect is interrupted, just close socket and
11053 start over rather than sleeping and retry with same socket.
11055 2004-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11057 * .cvsignore: Add buildobj.lst.
11059 * doc.c: New variable Vbuild_files.
11060 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
11061 file names from buildobj.lst. Only attach docstrings from files
11062 that are in Vbuild_files.
11063 (syms_of_doc): Defvar Vbuild_files.
11065 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
11067 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
11068 (mostlyclean): Rm buildobj.lst
11070 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
11073 2004-11-09 Kim F. Storm <storm@cua.dk>
11075 * fringe.c (update_window_fringes): Update fringe bitmaps if
11076 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
11077 also update previous row to get rid of misc. artifacts.
11079 2004-11-08 Kim F. Storm <storm@cua.dk>
11081 * xdisp.c (fast_find_position): Fix start pos if header line present.
11082 (note_mouse_highlight): Clear mouse face if we move out of text area.
11084 2004-11-08 Eli Zaretskii <eliz@gnu.org>
11086 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
11087 Don't include <sys/time.h> explicitly.
11088 Include <stdio.h> unconditionally, not just on MacOS.
11090 2004-11-08 Kenichi Handa <handa@m17n.org>
11092 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
11093 don't pay attention to '\' before '*'.
11094 (fontset_pattern_regexp): Change the meaning of the second arg.
11095 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
11096 (check_fontset_name): Try NAME as literal at first, and if it
11097 failes, try NAME as pattern.
11099 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11101 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
11103 2004-11-07 Andreas Schwab <schwab@suse.de>
11105 * lisp.h (Fmsdos_downcase_filename): Declare.
11106 * dired.c (Fmsdos_downcase_filename): Don't declare here.
11107 * fileio.c: Likewise.
11109 2004-11-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11111 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
11112 comparisons with integers instead of Lisp_Object address.
11113 (Fmsdos_set_keyboard): Declare argument allkeys.
11115 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
11117 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
11118 int/Lisp_Object mixup.
11122 2004-11-06 Steven Tamm <steventamm@mac.com>
11124 * editfns.c: Need to include sys/time.h before resource.h on darwin.
11126 2004-11-06 Richard M. Stallman <rms@gnu.org>
11128 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
11130 * xfaces.c (merge_named_face): GCPRO the face_name in the
11131 named_merge_point struct that we make.
11132 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
11134 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
11135 before deciding whether to inactivate mark.
11137 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
11139 * config.in: Regenerate (add HAVE_GETRUSAGE).
11140 * editfns.c (Fget_internal_run_time): New function.
11141 (syms_of_data): Defsubr it.
11142 * fns.c (sxhash): As far as possible, merge calculation of
11143 hash code for symbols and strings.
11145 2004-11-06 Eli Zaretskii <eliz@gnu.org>
11147 * frame.c (syms_of_frame): Fix the example in the doc string.
11149 2004-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11151 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
11153 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
11154 (create_and_show_dialog): Revert change from 2004-10-31.
11156 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
11158 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
11160 2004-11-05 Kim F. Storm <storm@cua.dk>
11162 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
11164 * fileio.c (Ffile_modes): Doc fix.
11165 (auto_save_1): Check for Ffile_modes nil value.
11167 2004-11-05 Kim F. Storm <storm@cua.dk>
11169 * xselect.c (struct selection_event_queue, selection_queue)
11170 (x_queue_selection_requests, x_queue_event)
11171 (x_start_queuing_selection_requests)
11172 (x_stop_queuing_selection_requests): Add new queue for selection
11173 input events to replace previous XEvent queue in xterm.c.
11174 (queue_selection_requests_unwind): Adapt to new queue.
11175 (x_reply_selection_request): Adapt to new queue.
11176 Unexpect wait_object in case of x errors (memory leak).
11177 (x_handle_selection_request, x_handle_selection_clear): Make static.
11178 (x_handle_selection_event): New function. May queue selection events.
11179 (wait_for_property_change_unwind): Use save_value instead of cons.
11180 Clear property_change_reply_object.
11181 (wait_for_property_change): Abort if already waiting.
11182 Use save_value instead of cons for unwind data.
11183 (x_handle_property_notify): Skip events already arrived, but don't
11184 free them, as "arrived" field is checked by wait_for_property_change,
11185 and it will be freed by unwind or explicit unexpect_property_change.
11186 (x_get_foreign_selection): Add to new queue.
11187 (receive_incremental_selection): Don't unexpect wait_object when done
11188 as it has already been freed by previous wait_for_property_change.
11190 * xterm.h (x_start_queuing_selection_requests)
11191 (x_stop_queuing_selection_requests, x_handle_selection_request)
11192 (x_handle_selection_clear): Remove prototypes.
11193 (x_handle_selection_event): Add prototype.
11195 * xterm.c (handle_one_xevent): Don't queue X selection events
11196 here, it may be too late if we start queuing after we have already
11197 stored some selection events into the kbd buffer.
11198 (struct selection_event_queue, queue, x_queue_selection_requests)
11199 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
11200 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
11201 (x_catch_errors_unwind): Block input around final XSync.
11203 * keyboard.h (kbd_buffer_unget_event): Add prototype.
11205 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
11206 (kbd_buffer_unget_event): New function.
11207 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
11208 and use x_handle_selection_event.
11209 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
11211 2004-11-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11213 * xselect.c (TRACE3): New debug macro.
11214 (x_reply_selection_request): Use it.
11215 (receive_incremental_selection): In call to TRACE0, the name of
11216 a symbol is in xname.
11218 2004-11-05 Kim F. Storm <storm@cua.dk>
11220 * fontset.c (fontset_pattern_regexp): Use unsigned char.
11222 2004-11-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11224 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
11226 * gtkutil.h (use_old_gtk_file_dialog): Declare.
11228 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
11229 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
11230 * xfns.c (syms_of_xfns): ... to here.
11232 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
11233 it doesn't start with /.
11235 2004-11-04 Kenichi Handa <handa@m17n.org>
11237 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
11238 treat it as a literal character.
11240 2004-11-03 Kim F. Storm <storm@cua.dk>
11242 * .gdbinit (ppt): New function.
11244 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11246 * xterm.c (x_window_to_scroll_bar): Only call
11247 xg_get_scroll_id_for_window if toolkit scroll bars are used.
11249 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
11252 2004-11-02 Andreas Schwab <schwab@suse.de>
11254 * window.c (Fscroll_right): Fix last change.
11256 2004-11-02 Kim F. Storm <storm@cua.dk>
11258 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
11260 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11262 * callproc.c (Fcall_process): Block input around vfork.
11264 2004-11-02 Kim F. Storm <storm@cua.dk>
11266 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
11267 (syms_of_eval): Defsubr it.
11269 2004-11-02 Richard M. Stallman <rms@gnu.org>
11271 * insdel.c (replace_range_2): New function.
11273 * casefiddle.c (casify_region): Handle changes in byte-length
11274 using replace_range_2.
11276 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
11278 * xdisp.c (back_to_previous_visible_line_start):
11279 Subtract 1 from pos when checking previous newline for invisibility.
11281 * window.c (window_scroll_pixel_based): Update preserve_y
11282 for header line if any.
11283 (Fscroll_left, Fscroll_right): Don't call interactive_p;
11284 use a new second argument instead.
11286 * eval.c (Fcall_interactive_p): New function.
11287 (interactive_p): Don't test INTERACTIVE here.
11288 (Finteractive_p): Doc fix.
11290 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
11292 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11294 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
11295 comparing font names.
11297 2004-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11299 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
11300 Fx_file_dialog if only directories should be read.
11302 * lisp.h: Fx_file_dialog takes 5 parameters.
11304 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
11305 Add parameter only_dir_p.
11306 In Motif version, don't put DEFAULT_FILENAME in filter part of the
11307 dialog, just text field part. Do not add DEFAULT_FILENAME
11308 to list of files if it isn't there.
11309 In GTK version, pass only_dir_p parameter to xg_get_file_name.
11311 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
11312 Check only_dir_p instead of comparing prompt to "Dired". When using
11313 a save dialog, add option kNavDontConfirmReplacement, change title
11314 to "Enter name", change text for save button to "Ok".
11316 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
11317 Check only_dir_p instead of comparing prompt to "Dired".
11319 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
11320 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
11321 and HAVE_GTK_FILE_SELECTION_NEW respectively.
11322 (xg_get_file_name): Add parameter only_dir_p.
11323 Call xg_get_file_with_chooser or xg_get_file_with_selection
11324 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
11325 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
11327 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
11329 * config.in: Rebuild (added HAVE_GTK_FILE_*).
11331 2004-11-01 Kim F. Storm <storm@cua.dk>
11333 * process.c (connect_wait_mask, num_pending_connects):
11334 Only declare and use them if NON_BLOCKING_CONNECT is defined.
11335 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
11336 (IF_NON_BLOCKING_CONNECT): New helper macro.
11337 (wait_reading_process_output): Only declare and use local vars
11338 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
11340 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
11342 * w32term.c (x_scroll_run): Delete region objects after use.
11344 2004-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11346 * xmenu.c: Add prototypes for forward function declarations.
11347 (popup_get_selection): Remove parameter do_timers, remove call to
11349 (create_and_show_popup_menu, create_and_show_dialog):
11350 Remove parameter do_timers from call to popup_get_selection.
11352 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
11353 tool_bar_items and assign the result to f->tool_bar_items if
11354 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
11355 tool_bar_items to assignment of result.
11357 * atimer.c (alarm_signal_handler): Do not call set_alarm if
11358 pending_atimers is non-zero.
11360 2004-10-31 Kim F. Storm <storm@cua.dk>
11362 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
11364 2004-10-28 Will <will@glozer.net>
11366 * macterm.c: Allow user to assign key modifiers to the Mac Option
11367 key via a 'mac-option-modifier' variable.
11369 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11371 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
11372 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
11373 (x_handle_selection_request, x_handle_selection_clear)
11374 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
11376 2004-10-28 Richard M. Stallman <rms@gnu.org>
11378 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11380 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11382 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
11384 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
11385 comment-starter over a 1-char one.
11387 2004-10-27 Richard M. Stallman <rms@gnu.org>
11389 * xdisp.c (get_next_display_element): In mode lines,
11390 treat newline and tab like other control characters.
11392 * editfns.c (Fmessage): Doc fix.
11394 * indent.c (vmotion): When moving up, check the newline before.
11395 Make prevline an int, not a Lisp_Object.
11397 2004-10-27 Kim F. Storm <storm@cua.dk>
11399 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
11400 Only allocate info and discarded tables once.
11402 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
11403 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
11404 (SAFE_FREE): Test it to determine if we need to unwind to free.
11405 Remove size arg. All users changed.
11406 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
11408 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11410 * gtkutil.c: Put empty line between comment and function body.
11411 (xg_destroy_widgets): Rename from remove_from_container.
11412 Just destroy all widgets in list. Argument wcont removed.
11413 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
11414 instead of remove_from_container.
11415 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
11416 (free_frame_tool_bar): Add comment.
11418 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
11419 is not NULL before strcmp.
11421 2004-10-26 Kim F. Storm <storm@cua.dk>
11423 * callint.c (Fcall_interactively): Add 'U' code to get the
11424 up-event discarded by a previous 'k' or 'K' argument.
11426 2004-10-26 David Kastrup <dak@gnu.org>
11428 * buffer.c (syms_of_buffer): Fix a few typos.
11430 2004-10-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11432 * xsmfns.c: Put empty line between comment and function body.
11433 Use two spaces before comment end.
11435 2004-10-25 Kenichi Handa <handa@m17n.org>
11437 * fontset.c (fontset_pattern_regexp): Optimize for the case that
11438 PATTERN is full XLFD.
11440 2004-10-24 Kenichi Handa <handa@m17n.org>
11442 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
11444 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
11445 (regex_compile): Return REG_ERANGEX if appropriate.
11447 2004-10-22 Kenichi Handa <handa@m17n.org>
11449 * editfns.c (Ftranslate_region_internal): New function.
11450 (syms_of_editfns): Defsubr it.
11452 2004-10-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11454 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
11456 2004-10-21 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
11458 * xterm.h (x_output): New member `xic_base_fontname'.
11459 (FRAME_XIC_BASE_FONTNAME): New macro.
11460 (xic_free_xfontset): Declare.
11462 * xfns.c (xic_create_xfontset): Share fontsets between frames
11463 based on base_fontname.
11464 (xic_free_xfontset): New function.
11465 (free_frame_xic): Use it.
11466 (xic_set_xfontset): Ditto.
11468 * xterm.c (xim_destroy_callback): Ditto.
11470 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
11472 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
11474 2004-10-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11476 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
11479 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
11480 New variables and constant.
11481 (main): Calculate heap_bss_diff. If we are dumping and the
11482 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
11483 and exec ourself again.
11484 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
11487 * lastfile.c: Make my_endbss and my_endbss_static available on all
11490 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
11491 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
11493 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
11495 * data.c (Flocal_variable_if_set_p): Doc fix.
11497 2004-10-19 Jason Rumney <jasonr@gnu.org>
11499 * w32.c (init_environment): Set emacs_dir correctly when running
11500 emacs from the build directory.
11502 2004-10-19 Richard M. Stallman <rms@gnu.org>
11504 * editfns.c (Fdelete_and_extract_region):
11505 If region is empty, return null string.
11507 2004-10-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11509 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
11511 (xg_frame_cleared): Remove.
11513 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
11514 (xg_find_top_left_in_fixed): Remove.
11515 (xg_create_scroll_bar): Put an event box widget between
11516 the scroll bar widget and the edit widget.
11517 (xg_show_scroll_bar): Show the parent widget (the event box).
11518 (xg_remove_scroll_bar): Destroy parent (the event box) also.
11519 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
11520 Move the parent (the event box) widget inside the fixed widget.
11521 Move window clear to xterm.c.
11523 * gtkutil.h (xg_frame_cleared): Remove.
11525 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
11526 (x_scroll_bar_create, XTset_vertical_scroll_bar):
11527 Remove arguments left and width to xg_update_scrollbar_pos.
11528 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
11530 2004-10-19 Kenichi Handa <handa@m17n.org>
11532 * xdisp.c (display_mode_element): Fix display of wide chars.
11534 2004-10-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11536 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
11537 gdk_window_clear and move gdk_window_process_all_updates after
11538 clear so events are sent to the X server in correct order.
11540 2004-10-18 Kenichi Handa <handa@m17n.org>
11542 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
11543 comparing font names.
11544 (fs_query_fontset): Use fast_string_match for comparing fontset names.
11545 (list_fontsets): Likewise.
11547 * search.c (fast_string_match_ignore_case): New function.
11549 * lisp.h (fast_string_match_ignore_case): Extern it.
11551 2004-10-17 Kim F. Storm <storm@cua.dk>
11553 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
11554 than bitmap if there is not left fringe.
11555 (get_overlay_arrow_glyph_row): Also used on windows system.
11556 (display_line): Display overlay string if no left fringe.
11558 2004-10-16 Jason Rumney <jasonr@gnu.org>
11560 * w32fns.c (w32_font_match): Encode font name being matched.
11562 2004-10-16 Richard M. Stallman <rms@gnu.org>
11564 * window.c (Fspecial_display_p): Doc fix.
11566 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
11568 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
11569 Don't ignore menus, because where-is-internal already does it for us.
11571 2004-10-15 Kim F. Storm <storm@cua.dk>
11573 * xdisp.c (redisplay_window): Only update fringes and vertical
11574 border on window frames.
11576 2004-10-14 Andreas Schwab <schwab@suse.de>
11578 * m/ia64.h (DATA_SEG_BITS): Don't define.
11580 2004-10-14 Kim F. Storm <storm@cua.dk>
11582 * xterm.h: Include Xutil.h after keysym.h to work around bug
11583 in some X versions.
11585 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
11587 * fns.c (map_char_table): Add missing gcpros.
11589 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
11591 * keymap.c (get_keymap): An autoload form is not a keymap.
11593 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
11595 2004-10-13 Kim F. Storm <storm@cua.dk>
11597 * callproc.c (Fcall_process): Simplify handling of display arg.
11598 Resume `display_on_the_fly' once a coding system is determined.
11600 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
11602 2004-10-12 Kim F. Storm <storm@cua.dk>
11604 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
11605 caller, such as call-process, is not going to poll for input.
11606 (calc_line_height_property): Handle case where it->object is nil.
11608 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
11610 2004-10-12 Kenichi Handa <handa@m17n.org>
11612 * xdisp.c (get_next_display_element):
11613 If unibyte_display_via_language_environment is zero, display 8-bit
11614 chars in octal in unibyte buffer.
11616 2004-10-12 Kim F. Storm <storm@cua.dk>
11618 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
11619 are no ordinary bindings.
11621 2004-10-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11623 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
11625 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11627 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
11628 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
11629 (make_mac_frame): Add BLOCK_INPUT around the making of a
11631 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
11632 * macgui.h (mktime): Use emacs_mktime.
11633 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
11634 Make a cancel file-open dialog be like C-g.
11635 * mac.c (mktime): Use emacs_mktime.
11636 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
11637 (Fmac_paste_function): Add better error handling for carbon cut/paste.
11639 2004-10-10 Kim F. Storm <storm@cua.dk>
11641 * keyboard.c (timer_resume_idle): New function to resume idle
11642 timer without resetting timers on the idle list.
11643 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
11644 (timer_start_idle, timer_stop_idle): Declare static.
11645 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
11647 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
11649 2004-10-08 Steven Tamm <steventamm@mac.com>
11651 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
11652 * macterm.c (mac_check_for_quit_char): Remove warning for using
11653 NULL where 0 should be used.
11654 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
11656 * mac.c: Include time.h for Tiger compatibility.
11658 2004-10-07 Kim F. Storm <storm@cua.dk>
11660 * xdisp.c (redisplay_window): Fix flicker on vertical line between
11661 windows. Update vertical line after drawing window fringes, but
11662 only if actually drawing any bitmaps--or there is no fringe.
11664 * xterm.c (x_update_window_end): Likewise.
11665 * macterm.c (x_update_window_end): Likewise.
11666 * w32term.c (x_update_window_end): Likewise.
11668 * fringe.c (draw_window_fringes): Return value now indicates if
11669 any fringe bitmaps were redrawn (or there are no fringes).
11671 * dispextern.h (draw_window_fringes): Update prototype.
11673 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11675 * macfns.c (mac_get_window_bounds): Add extern.
11676 (x_real_positions): Use mac_get_window_bounds.
11678 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
11681 * macterm.c [!MAC_OSX]: Include Windows.h.
11682 (front_emacs_window): Rename from mac_front_window. All uses
11683 changed. Return the frontmost non-tooltip emacs window.
11684 (mac_get_window_bounds): New function.
11685 (x_calc_absolute_position): Use the difference of width and height
11686 between the inner and outer window.
11687 (x_set_offset): Specify window position by the coordinae of the
11688 outer window. Adjust the position if the title bar is completely
11689 outside the screen.
11690 (app_is_suspended, app_sleep_time): Remove unused variables.
11691 (do_app_resume, do_app_suspend): Remove their contents because
11692 window-activate/deactivate events will do the job.
11693 (do_zoom_window): Remove unused variables. Make compliant to the
11694 standard way of zooming. Set f->left_pos and f->top_pos.
11695 (XTread_socket): Don't use argument `expected'. Don't use
11696 FrontWindow to determine the clicked window. Exclude unprocessed
11697 mouseUp cases in the early stage. Add parentheses to fix operator
11699 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
11701 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11703 * config.in: Regenerate.
11705 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
11708 2004-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11710 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
11711 a row if Alt or Meta has been found for that row. Also stop scanning
11712 for Keysyms for that row.
11714 2004-10-04 Kim F. Storm <storm@cua.dk>
11716 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
11717 to list. Include overlay arrow bitmap in return value.
11719 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
11720 bars with fractional column width. If scroll bar separates two
11721 windows, move it towards the window it belongs to. Only update
11722 the padding area below the scroll bar widget when necessary,
11723 i.e. when scroll bar widget is created, moved, or resized.
11725 * xdisp.c (define_frame_cursor1): Do not change frame cursor
11726 while tracking/dragging mouse.
11727 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
11729 * window.c (coordinates_in_window): Relax check for cursor
11730 on vertial border between mode lines.
11731 (Fset_window_fringes): Do not allow negative widths.
11732 (Fset_window_scroll_bars): Likewise.
11734 * .gdbinit (pp): Shorthand for p ARG + pr.
11735 (ff): New command: flush frame updates (X only).
11737 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
11739 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
11741 2004-09-30 Kenichi Handa <handa@m17n.org>
11743 * process.c (send_process): Free composition data.
11745 * fileio.c (Finsert_file_contents): Free composition data.
11747 * coding.c (code_convert_region): Don't skip ASCIIs if there are
11748 compositions to encode.
11749 (encode_coding_string): Likewise. Free composition data.
11751 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
11753 * coding.c (code_convert_region): Free composition data.
11755 2004-09-29 Kim F. Storm <storm@cua.dk>
11757 * fringe.c: Remove limit on number of bitmaps.
11758 (fringe_bitmaps, fringe_faces): Change to pointers.
11759 (max_fringe_bitmaps): New var.
11760 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
11761 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
11763 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
11764 (struct glyph_row): Reorder fringe_bitmap related fields.
11765 (struct it): Likewise.
11767 * w32term.c (fringe_bmp): Change to pointer.
11768 (max_fringe_bmp): New var.
11769 (w32_define_fringe_bitmap): Expand fringe_bmp.
11770 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
11771 (w32_destroy_fringe_bitmap): Likewise.
11773 2004-09-29 Kim F. Storm <storm@cua.dk>
11775 * fringe.c: Simplify last change.
11776 (lookup_fringe_bitmap): New function.
11777 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
11778 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
11779 Keep standard bitmaps in Vfringe_bitmaps.
11780 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
11781 (Fset_fringe_bitmap_face): Likewise.
11783 * dispextern.h (lookup_fringe_bitmap): Add prototype.
11784 (valid_fringe_bitmap_p): Remove prototype.
11786 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
11788 2004-09-29 Kim F. Storm <storm@cua.dk>
11790 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
11791 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
11793 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
11795 * fringe.c (Vfringe_bitmaps): New variable.
11796 (syms_of_fringe): DEFVAR_LISP it.
11797 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
11798 Change arg to Lisp_Object and fail if not an integer.
11799 (get_fringe_bitmap_name, resolve_fringe_bitmap)
11800 (destroy_fringe_bitmap): New functions.
11801 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
11802 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
11803 clear its fringe property.
11804 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
11805 Fdestroy_fringe_bitmap.
11806 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
11807 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
11808 and set fringe property. Signal error if no free slots.
11809 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
11810 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
11812 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
11813 symbols with a fringe property.
11815 2004-09-27 Kim F. Storm <storm@cua.dk>
11817 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
11818 Doc fix. Format may now be a symbol or alist, not a cons.
11820 * fringe.c (update_window_fringes): Handle new formats of
11821 indicate-buffer-boundaries (symbol or alist). No longer
11822 allow a simple cons.
11823 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
11825 2004-09-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11827 * config.in: Rebuild.
11829 2004-09-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11831 * config.in: Rebuild.
11833 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
11835 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
11837 * xterm.c (x_term_init): Work around a bug in some X servers.
11839 2004-09-18 Richard M. Stallman <rms@gnu.org>
11841 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
11843 * xdisp.c (try_window_reusing_current_matrix):
11844 Handle the case where we reach the old displayed text,
11845 out of sync with the old line boundary.
11847 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
11849 * fileio.c (Finsert_file_contents): Fix case of replacement in a
11852 2004-09-14 Kim F. Storm <storm@cua.dk>
11854 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
11856 * xfaces.c (Qface_no_inherit): New var.
11857 (syms_of_xfaces): Intern and staticpro it.
11858 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
11859 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
11860 Don't increment face_change_count when face has non-nil
11861 face-no-inherit property.
11863 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
11865 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
11866 (Fbyte_code): Remove dead code after `wrong_type_argument'.
11868 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
11869 before doing the mark_stack_check_gcpros since they're not on the stack.
11871 2004-09-12 Kim F. Storm <storm@cua.dk>
11873 * editfns.c (Fformat): Handle format strings with multiple text
11874 properties. Reverse text property list from the format string,
11875 so the positions are in increasing order.
11877 2004-09-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
11879 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
11880 x_uncatch_errors so that possible protocol errors are delivered.
11882 2004-09-10 Eli Zaretskii <eliz@gnu.org>
11884 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
11886 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
11887 charset.h, and coding.h
11888 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
11889 (term.o): Depend on window.h and keymap.h.
11890 (abbrev.o): Depend on syntax.h.
11891 (callint.o): Depend on keymap.h.
11892 (casefiddle.o): Depend on charset.h and keymap.h.
11893 (category.o): Depend on keymap.h.
11894 (coding.o): Depend on dispextern.h.
11895 (cmds.o): Depend on keyboard.h and keymap.h.
11896 (dispnew.o): Depend on indent.h and intervals.h.
11897 (doc.o): Depend on keymap.h.
11898 (editfns.o): Depend on frame.h.
11899 (emacs.o): Depend on dispextern.h.
11900 (fileio.o): Don't depend on ccl.h.
11901 (filelock.o): Depend on charset.h and coding.h.
11902 (frame.o): Depend on w32term.h and macterm.h.
11903 (insdel.o): Depend on region-cache.h.
11904 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
11905 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
11906 (search.o): Depend on $(INTERVALS_SRC).
11907 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
11908 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
11909 xterm.h, w32term.h, and macterm.h.
11910 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
11911 w32term.h, and macterm.h.
11912 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
11913 region-cache.h, xterm.h, w32term.h, and macterm.h.
11914 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
11915 (data.o): Depend on frame.h.
11916 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
11917 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
11918 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
11919 (intervals.o): Depend on keymap.h.
11921 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
11922 Add debugging print-out to termscript.
11924 2004-09-09 Richard M. Stallman <rms@gnu.org>
11926 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
11928 2004-09-08 Richard M. Stallman <rms@gnu.org>
11930 * window.c (Fset_window_buffer): Doc fix.
11932 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
11934 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
11936 * minibuf.c (history_delete_duplicates): New variable.
11937 (read_minibuf): Use it.
11938 (syms_of_minibuf): Create the corresponding lisp variable.
11940 2004-09-08 Kim F. Storm <storm@cua.dk>
11942 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
11943 overlay just before point.
11945 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
11947 * buffer.h (struct buffer): Add auto_save_file_format field.
11948 * buffer.c (reset_buffer, init_buffer_once):
11949 Handle auto_save_file_format field.
11950 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
11951 `buffer-auto-save-file-format'.
11952 * fileio.c: Delete declaration for removed Vauto_save_file_format.
11953 (build_annotations): Adapt to replacement of
11954 `auto-save-file-format' with the new buffer-local variable
11955 `buffer-auto-save-file-format'.
11956 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
11958 2004-09-07 Jason Rumney <jasonr@gnu.org>
11960 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
11962 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
11963 Handle Unicode menu titles.
11965 2004-09-07 Kim F. Storm <storm@cua.dk>
11967 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
11968 property from text property or overlay strings at point.
11970 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11972 * xmenu.c (update_submenu_strings): YAILOM.
11973 (set_frame_menubar): Make sure last_i is initialized.
11975 2004-09-03 Jason Rumney <jasonr@gnu.org>
11977 * w32menu.c (_widget_value): Add lname and lkey.
11978 (digest_single_submenu): Set lname and lkey in widget_value
11979 instead of name and key.
11980 (update_submenu_strings): New function.
11981 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11982 call update_submenu_strings.
11984 * w32menu.c (globals_of_w32menu): Check for Unicode API.
11985 (digest_single_submenu, w32_menu_show): Encode menu strings as
11986 UTF-8 if Unicode API is available.
11987 (utf8to16): New function.
11988 (add_menu_item): Use it when calling Unicode API.
11990 2004-09-03 Kim F. Storm <storm@cua.dk>
11992 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
11993 in overlay or text-property strings; set cursor on corresponding
11994 glyph rather than at end of the string.
11996 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11998 * macfns.c (x_real_positions): Save the current window port and
11999 set a new one before obtaining the global coordinate.
12000 Use FRAME_MAC_WINDOW.
12001 (x_set_name, x_set_title): Encode title to UTF8.
12002 Use SetWindowTitleWithCFString.
12003 (Fx_server_version): Get correct OS version.
12005 * macmenu.c (add_menu_item): Remove unused variable `i'.
12006 Don't let separator items destroy refence constants of other menu items.
12008 * macterm.c (x_update_end): Move SetPortWindowPort to inside
12010 (x_set_offset): Use FRAME_MAC_WINDOW.
12012 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
12013 nontext_cursor if it is on a scroll bar.
12015 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
12017 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
12020 2004-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12022 * xfns.c (x_set_name_internal): New function. Check if we shall call
12023 xfree before ENCODE_UTF_8.
12024 (x_set_name, x_set_title): Call x_set_name_internal.
12026 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
12028 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
12031 2004-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12033 * macmenu.c (_widget_value): Add lname and lkey.
12034 (single_submenu): Set lname and lkey in widget_value
12035 instead of name and key.
12036 (update_submenu_strings): New function.
12037 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12038 call update_submenu_strings.
12040 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
12041 instead of name and key.
12042 (update_submenu_strings): New function.
12043 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12044 call update_submenu_strings.
12046 * gtkutil.h (_widget_value): Added lname and lkey.
12048 2004-08-30 Steven Tamm <steventamm@mac.com>
12050 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
12051 by using different names for inner loop variables.
12053 2004-08-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12055 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
12056 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
12058 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
12059 tool bar items is 0.
12061 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12063 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
12064 strings in menu items.
12065 (single_submenu): Use ENCODE_MENU_STRING
12066 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
12067 button release isn't passed to event loop
12068 (add_menu_item): Use SetMenuItemWithCFString
12070 2004-08-26 Steven Tamm <steventamm@mac.com>
12072 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
12073 tool-bar/menu click.
12074 * macfns.c (Fx_file_dialog): Implement using NavServices.
12076 2004-08-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12078 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
12080 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12081 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12082 (x_top_window_to_frame): Return 0 if wdesc is None.
12084 2004-08-22 Richard M. Stallman <rms@gnu.org>
12086 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
12087 HAVE_TERMIOS]: If there's no char for this signal, drop through
12088 and use system calls.
12090 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
12092 2004-08-20 Kim F. Storm <storm@cua.dk>
12094 * process.c (wait_reading_process_output): Rename from
12095 wait_reading_process_input. All uses changed.
12096 (wait_reading_process_output_1): Rename from
12097 wait_reading_process_input_1. All uses changed.
12099 * dispnew.c (Fsleep_for): Remove obsolete code.
12101 2004-08-20 Kenichi Handa <handa@m17n.org>
12103 * syntax.c (skip_chars): Fix for unibyte case.
12105 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12107 * syntax.c (char_quoted): Mixup byte/char pos.
12108 (back_comment): Fixup globals in all cases.
12110 2004-08-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12112 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
12113 passing it to gtk_window_set_title.
12115 2004-08-19 Kim F. Storm <storm@cua.dk>
12117 * process.c (wait_reading_process_input): Clean up.
12118 Add wait_for_cell, wait_proc, and just_wait_proc args
12119 to avoid overloading `read_kbd' and `do_display' args.
12120 Change read_kbd arg to int. All callers changed.
12122 * process.c (process_send_signal): Use CDISABLE.
12124 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
12126 2004-08-18 Kim F. Storm <storm@cua.dk>
12128 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
12129 forward to wait_reading_process_input via DO_DISPLAY arg.
12130 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
12131 object, only process output from that process; also inhibit
12132 running timers if DO_DISPLAY==-2.
12134 2004-08-17 Kim F. Storm <storm@cua.dk>
12136 * process.c (process_send_signal): Fix last change--use
12137 _POSIX_VDISABLE instead of CVDISABLE when available.
12139 2004-08-16 Richard M. Stallman <rms@gnu.org>
12141 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
12142 Set VQUIT and VINTR chars to the standard ones if they are unset.
12143 [AIX]: Don't do that here. And don't force VINTR to standard
12144 when SIGNALS_VIA_CHARACTERS.
12146 * process.c (process_send_signal)
12147 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
12148 Do nothing if the character is CVDISABLE.
12150 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
12152 * intervals.c (move_if_not_intangible):
12153 Force POSITION to be between BEGV and ZV.
12155 2004-08-14 John Paul Wallington <jpw@gnu.org>
12157 * buffer.c (Frestore_buffer_modified_p): Doc fix.
12159 * fileio.c (Fread_file_name): Doc fix.
12161 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12163 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
12165 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
12167 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
12169 * keyboard.c: Declare Qdisabled_command_function instead of
12170 Qdisabled_command_hook.
12171 (Fcommand_execute): Use Qdisabled_command_function instead of
12172 Qdisabled_command_hook.
12173 (syms_of_keyboard): Ditto.
12175 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
12177 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
12178 (syms_of_keymap) <key-translation-map>: Doc fixes.
12180 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
12182 * window.c (window_list_1): YAILOM.
12184 * fileio.c (make_temp_name): Handle multibyte prefixes.
12186 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
12188 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
12191 2004-08-03 Kenichi Handa <handa@m17n.org>
12193 * coding.c (decode_coding_string): Adjust coding->consumed, and
12194 etc. with shrinked_bytes.
12196 2004-08-03 Kim F. Storm <storm@cua.dk>
12198 * indent.c (compute_motion): Fix check for full width window
12199 in non-window case. Do not count left truncation glyph on
12202 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
12204 * data.c (Finteractive_form): Doc fix.
12206 2004-08-02 Kim F. Storm <storm@cua.dk>
12208 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
12209 properly accounting for continuation glyph on non-window systems.
12210 (Fcompute_motion): Use actual window width if WIDTH is nil, and
12211 actual window width/height if TOPOS is nil, properly accounting for
12212 continuation glyphs on non-window systems, and optional header lines.
12213 (vmotion): Let compute_motion calculate actual window width.
12215 * window.c (window_scroll_line_based): Let compute_motion
12216 calculate actual window width.
12218 2004-08-02 Kim F. Storm <storm@cua.dk>
12220 * process.c (read_process_output): Use whole read buffer.
12221 Don't trigger adaptive read buffering on errors.
12223 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
12225 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
12227 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
12229 * callint.c (Fcall_interactively): Doc fix.
12231 2004-07-30 Richard M. Stallman <rms@gnu.org>
12233 * abbrev.c (Fexpand_abbrev): Undo previous change.
12235 2004-07-30 Kim F. Storm <storm@cua.dk>
12237 * editfns.c (Fformat): Allocate extra (dummy) element in info.
12239 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
12241 * eval.c (Fdefvar, Fdefconst): Doc fixes.
12243 2004-07-27 Kim F. Storm <storm@cua.dk>
12245 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
12246 we have ensured that the glyph fits on the current line (or returned
12247 MOVE_LINE_CONTINUED otherwise).
12249 2004-07-26 Kim F. Storm <storm@cua.dk>
12251 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
12252 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
12253 if target position is at end of display line but char is not a newline.
12255 2004-07-25 Richard M. Stallman <rms@gnu.org>
12257 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
12258 instead of ON_VERTICAL_BORDER, when on scroll bar.
12259 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
12261 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
12263 * window.c (Fcoordinates_in_window_p):
12264 Take account of FRAME_INTERNAL_BORDER_WIDTH.
12266 * alloc.c (check_cons_list): New function (contents commented out).
12268 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
12270 * xfaces.c (Fcolor_supported_p): Doc fix.
12272 * frame.c (Fselect_frame, Fset_frame_selected_window)
12273 (Fframe_visible_p, Fraise_frame): Doc fixes.
12275 2004-07-24 Richard M. Stallman <rms@gnu.org>
12277 * keyboard.h (not_single_kboard_state): Declare.
12279 * fileio.c (Fwrite_region): Doc fix.
12281 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
12283 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
12284 only when a real abbrev is present.
12286 * xfns.c (x_icon_verify): New function.
12287 (Fx_create_frame): Use it.
12289 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
12291 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
12293 2004-07-21 Kim F. Storm <storm@cua.dk>
12295 * window.h (struct glyph_matrix): New members nrows_scale_factor
12296 and ncols_scale_factor.
12298 * window.c (make_window): Initialize nrows_scale_factor and
12299 ncols_scale_factor members.
12301 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
12302 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
12303 (required_matrix_height): Apply nrows_scale_factor.
12304 (required_matrix_width): Apply ncols_scale_factor.
12306 * xdisp.c (display_line): Increment nrows_scale_factor and set
12307 fonts_changed_p if past last allocated row.
12308 (append_glyph, append_composite_glyph, produce_image_glyph)
12309 (append_stretch_glyph): Increment ncols_scale_factor and set
12310 fonts_changed_p if current area is full.
12312 2004-07-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12314 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
12316 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
12318 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
12319 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
12320 (Fset_window_start, Fscroll_up, Fscroll_down)
12321 (Fother_window_for_scrolling, Fscroll_other_window)
12322 (Fsave_window_excursion, Fset_window_vscroll)
12323 (syms_of_window) <window-size-fixed>: Doc fixes.
12325 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12327 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
12328 ENCODE_SYSTEM for filenames.
12330 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12332 * mac.c (sys_select): Block input around call to
12333 ReceiveNextEvent to prevent breakage. Correctly handle
12334 blocking on event queue only by calling ReceiveNextEvent
12335 instead of select (since GUI events aren't on an fd).
12336 (sys_read): Remove function
12337 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
12339 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12341 * mac.c (sys_select): Redo sys_select to use alarm-based
12342 polling instead of 1 sec timeouts (like solaris).
12344 * macterm.c (x_make_frame_visible): Comment in polling on
12347 * keyboard.c: Undef SIGIO on Carbon
12349 * atimer.c (alarm_signal_handler): Call alarm handlers after
12352 * eval.c (Feval): Remove quit_char test
12354 * process.c (wait_reading_process_input): Remove clearing
12355 stdin for select call on process input.
12357 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
12359 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
12360 capitalization error in docstring.
12362 2004-07-17 Juanma Barranquero <lektu@terra.es>
12364 * keyboard.c (not_single_kboard_state): Do nothing unless
12365 MULTI_KBOARD is defined.
12367 2004-07-17 Richard M. Stallman <rms@gnu.org>
12369 * window.c (coordinates_in_window): Inside the window but outside
12370 its box to the L or R, return ON_VERTICAL_BORDER.
12371 (window_list_1): Rotate the list to start with WINDOW.
12373 * print.c (print_preprocess): Test for print_depth at limit
12374 before entering in being_printed.
12376 * keyboard.c (not_single_kboard_state): New function.
12377 (stuff_buffered_input): Now no-op only if no SIGTSTP.
12379 * frame.c (Fdelete_frame): If we're in single_bboard_state on
12380 this kboard, and we delete its last frame, go to any_kboard_state.
12382 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
12384 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12386 * w32fns.c (Fx_file_dialog): Encode strings in system coding
12387 system before passing them to OS functions for display.
12389 2004-07-15 David Kastrup <dak@gnu.org>
12391 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
12392 Apparently fixes an abort condition.
12394 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
12396 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
12399 2004-07-14 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
12401 * keyboard.c (echo_dash): Do nothing if there already is a dash
12402 at the end of the echo string.
12404 2004-07-12 Kim F. Storm <storm@cua.dk>
12406 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
12409 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
12411 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
12413 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
12414 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
12415 (Freplace_buffer_in_windows, Fset_window_buffer)
12416 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
12417 (syms_of_window): Expand docstring of `display-buffer-function'.
12419 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
12421 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
12422 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
12423 that time values of the type (HIGH . LOW) are considered obsolete.
12425 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
12427 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
12430 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
12432 2004-07-06 John Paul Wallington <jpw@gnu.org>
12434 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
12436 * fns.c (Fclear_string): Signal an error if STRING is not a string.
12438 2004-07-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12440 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
12441 instead of CGMainDisplayID (only in OSX 10.2 and later).
12443 2004-07-04 John Paul Wallington <jpw@gnu.org>
12445 * fileio.c (read_file_name_completion_ignore_case): New variable.
12446 (syms_of_fileio): Declare and initialise it.
12447 (Fread_file_name): Bind `completion-ignore-case' to respect it.
12449 2004-07-03 Eli Zaretskii <eliz@gnu.org>
12451 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
12452 for event.x and event.y.
12454 2004-07-01 Kenichi Handa <handa@m17n.org>
12456 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
12457 after getting a new string by pre-write-conversion.
12459 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
12461 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
12462 (x_calc_absolute_position): Remove unused var `child'.
12464 * xfaces.c (x_supports_face_attributes_p)
12465 (Fdisplay_supports_face_attributes_p): YAILOM.
12466 (tty_supports_face_attributes_p): Remove unused var `i'.
12468 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
12471 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
12473 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
12476 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
12478 2004-06-30 Andreas Schwab <schwab@suse.de>
12480 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
12481 (Finit_image_library): Pass LIBRARIES through to
12482 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
12483 (lookup_image_type): Pass Qnil as second argument to
12484 Finit_image_library.
12486 * lisp.h (Finit_image_library): Declare.
12488 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12490 * macterm.c (do_window_activate, do_window_deactivate): Remove.
12491 (XTread_socket): Send mouse button events to the toolbox
12492 dispatcher even when the mouse is grabbed. Don't process window
12493 activate events for non-Emacs windows. Replace function calls to
12494 do_window_activate and do_window_deactivate with their contents.
12495 Reset mouse grabbing status when a window is deactivated.
12497 2004-06-29 Steven Tamm <steventamm@mac.com>
12499 * macterm.c (mac_get_emulated_btn)
12500 (mac_event_to_emacs_modifiers): Fix emulated mouse button
12501 support to correctly mask out modifiers.
12503 2004-06-29 David Kastrup <dak@gnu.org>
12505 * search.c (Fset_match_data): Allow buffer before end of list
12506 which can happen if set-match-data is using a pre-consed list.
12508 2004-06-28 Steven Tamm <steventamm@mac.com>
12510 * macterm.c (XTread_socket): Correctly set the frame position
12511 after the window is moved.
12513 2004-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12515 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
12516 gpix and gmask just before return to avoid memory leak.
12517 (xg_get_image_for_pixmap): Add workaround for monochrome displays
12518 so insensitive and activated icons look ok.
12520 2004-06-27 Jason Rumney <jasonr@gnu.org>
12522 * w32fns.c (file_dialog_callback): Disable edit control if set
12523 to directories only on CDN_INITDONE message.
12524 (Fx_file_dialog): Default to directories only when prompt starts
12527 2004-06-25 Kim F. Storm <storm@cua.dk>
12529 * alloc.c (allocate_misc): Update total_free_markers.
12530 (free_misc): New function.
12531 (safe_alloca_unwind, free_marker): Use it.
12533 * lisp.h (free_misc): Add prototype.
12535 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
12537 2004-06-24 Richard M. Stallman <rms@gnu.org>
12539 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
12540 (syms_of_emacs): Lisp variables deleted.
12542 2004-06-23 David Kastrup <dak@gnu.org>
12544 * search.c (Freplace_match): Adjust the match-data more thoroughly
12545 when replacing strings in the buffer.
12546 (Fmatch_data): When INTEGERS is non-nil and the last match was in
12547 a buffer, add the buffer as last element to the match data.
12548 (Fset_match_data): If an additional element of the match-data is a
12549 buffer, restore it to last_thing_searched.
12550 (save_search_regs): Save last_thing_searched as part of the match data.
12551 (restore_match_data): Restore it again.
12553 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
12555 * keymap.c (Ftext_char_description): Doc fix.
12556 * doc.c (Fsnarf_documentation): Doc fix.
12558 2004-06-22 Kim F. Storm <storm@cua.dk>
12560 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
12562 * lisp.h (struct Lisp_Save_Value): New member dogc.
12563 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
12564 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
12565 (SAFE_FREE_LISP): New macro.
12567 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
12568 (make_save_value): Init new dogc member.
12569 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
12571 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
12572 SAFE_FREE_LISP macros.
12574 2004-06-22 Kim F. Storm <storm@cua.dk>
12576 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
12577 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
12578 in that memory area are unknown to GC. Add comments.
12580 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
12582 2004-06-21 Kim F. Storm <storm@cua.dk>
12584 * lisp.h (MAX_ALLOCA): Define here.
12585 (safe_alloca_unwind): Add prototype.
12586 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
12588 * alloc.c (safe_alloca_unwind): New function.
12590 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
12592 * charset.c (Fstring): Use SAFE_ALLOCA.
12594 * coding.c (MAX_ALLOCA): Remove define.
12596 * data.c (MAX_ALLOCA): Remove define.
12597 (Faset): Use SAFE_ALLOCA.
12599 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
12601 * fns.c (string_make_multibyte, string_to_multibyte)
12602 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
12603 (MAX_ALLOCA): Remove define.
12604 (Fbase64_encode_region, Fbase64_encode_string)
12605 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
12606 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
12607 memory leak if encoding fails.
12609 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
12611 2004-06-21 Eli Zaretskii <eliz@gnu.org>
12613 * print.c (Fwith_output_to_temp_buffer): Doc fix.
12615 2004-06-20 Richard M. Stallman <rms@gnu.org>
12617 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
12619 * search.c (match_limit): Cleaner err msg when no match data available.
12621 * window.c (syms_of_window): Doc fix.
12623 * keyboard.c (command_loop_1): Handle values `only' and `identity'
12624 for Vtransient_mark_mode.
12626 * buffer.c (syms_of_buffer): Doc fix.
12628 2004-06-21 David Kastrup <dak@gnu.org>
12630 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
12631 and unbinding of `case-fold-search' according to
12632 `completion-ignore-case' around calls of string-match and
12633 predicates, respectively. Should give satisfactory performance
12634 in all relevant cases.
12636 2004-06-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12638 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
12641 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
12643 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
12645 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
12648 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
12650 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
12652 2004-06-16 Kim F. Storm <storm@cua.dk>
12654 * dispextern.h (Vimage_types): Remove extern.
12656 2004-06-16 Miles Bader <miles@gnu.org>
12658 * image.c (lookup_image_type): Initialize image type if necessary.
12660 2004-06-15 Kim F. Storm <storm@cua.dk>
12662 * xdisp.c (try_cursor_movement): Exclude header line from scroll
12663 margin at top of window.
12664 (try_window_reusing_current_matrix): Calculate proper cursor position
12665 after scrolling up with non-zero scroll margin, as the old cursor
12666 position corresponds to value of PT before executing this command.
12667 (try_window_id): Consider scroll margin at bottom of window too;
12668 otherwise we fail to scroll when hl-line-mode is enabled.
12670 * syntax.c (skip_chars): Only recognize [:class:] when it has the
12671 proper format and class is a lower-case word.
12673 2004-06-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
12675 * gtkutil.c (xg_get_image_for_pixmap): New function.
12676 (xg_get_gdk_pixmap_and_mask): Remove.
12677 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
12678 xg_get_gdk_pixmap_and_mask.
12680 * xterm.h (struct x_display_info): Typo in comment fixed.
12682 2004-06-14 Juanma Barranquero <lektu@terra.es>
12684 * dispextern.h (Vimage_types): Make it conditional on
12685 HAVE_WINDOW_SYSTEM.
12687 * image.c (Vimage_types): Move from xdisp.c.
12688 (Vimage_type_cache): New variable.
12689 (define_image_type): New argument indicating whether an image
12690 library was loaded; cache loaded status and return t on success,
12692 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
12693 (w32_delayed_load): New function to load an image library from a
12694 list of possible filenames.
12695 (init_xpm_functions, init_png_functions, init_jpeg_functions)
12696 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
12697 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
12698 (Finit_image_library): New function, extracted from `init_image'.
12699 Try to initialize an image library on demand and cache whether we
12700 were successful or not.
12701 (syms_of_image): Initialize `Vimage_types' and
12702 `Vimage_type_cache'. Add recognized image types to Vimage_types.
12703 Export `init-image-library'.
12704 (init_image): Remove initialization of all image types, except xbm
12707 * xdisp.c (Vimage_types): Delete (moved to image.c).
12709 2004-06-14 Andreas Schwab <schwab@suse.de>
12711 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12712 Avoid calling specbind when completion-regexp-list is empty.
12714 2004-06-13 Richard M. Stallman <rms@gnu.org>
12716 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12717 (re_wctype, re_iswctype, re_wctype_to_bit):
12718 Non-function definitions moved here from regex.c.
12720 * regex.c (re_wctype, re_iswctype): Function defs longer static.
12721 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12722 (re_wctype, re_iswctype, re_wctype_to_bit):
12723 Non-function definitions moved to regex.h.
12725 * window.c (Fselect_window): Doc fix.
12727 * syntax.c: Include regex.h.
12728 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
12729 If requested, make a list of classes, then check the scanned
12730 chars for membership in them.
12731 (in_classes): New function.
12734 * keyboard.c (cmd_error): Don't call any_kboard_state
12735 if inside a recursive edit level.
12737 2004-06-13 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
12739 * keyboard.c (command_loop): Call any_kboard_state before
12740 command_loop_2 when at top level.
12742 2004-06-13 Andreas Schwab <schwab@suse.de>
12744 * print.c (print_object): Always use %ld for printing EMACS_INT.
12746 * keyboard.c (cancel_hourglass_unwind): Return a value.
12747 (modify_event_symbol): Always use %ld for printing EMACS_INT.
12748 (Fexecute_extended_command): Likewise.
12750 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
12752 (SYNTAX): Likewise.
12753 (SYNTAX_WITH_FLAGS): Likewise.
12754 (SYNTAX_MATCH): Likewise.
12756 * syntax.c (char_quoted): Avoid warning about undefined operation.
12757 (find_defun_start): Likewise.
12758 (scan_lists): Likewise.
12759 (INC_FROM): Likewise.
12760 (scan_sexps_forward): Likewise.
12762 * image.c: Include <ctype.h>.
12764 * xfaces.c (face_attr_equal_p): Declare parameters.
12766 2004-06-13 Kenichi Handa <handa@m17n.org>
12768 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
12770 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
12772 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
12774 2004-06-12 Kenichi Handa <handa@m17n.org>
12776 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
12777 ccl_prog_stack_struct and update it.
12778 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
12779 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
12780 ccl->eof_ic on EOF.
12781 (ccl_debug_hook): New function.
12782 (struct ccl_prog_stack): New member eof_ic.
12783 (ccl_driver): Handle EOF in subrountine call correctly.
12785 2004-06-11 Kenichi Handa <handa@m17n.org>
12787 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
12789 2004-06-11 Kim F. Storm <storm@cua.dk>
12791 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
12793 2004-06-11 Juanma Barranquero <lektu@terra.es>
12795 * keyboard.c (Fposn_at_point): Doc fix.
12797 2004-06-11 David Kastrup <dak@gnu.org>
12799 * search.c (match_limit): Don't flag an error if match-data
12800 exceeding the allocated search_regs.num_regs gets requested, just
12803 2004-06-08 Miles Bader <miles@gnu.org>
12805 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
12807 2004-06-07 Juanma Barranquero <lektu@terra.es>
12809 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
12810 (Fcurrent_time_string, Fcurrent_time_zone)
12811 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
12813 2004-06-07 Miles Bader <miles@gnu.org>
12815 * xfaces.c (struct named_merge_point): New type.
12816 (push_named_merge_point): New function.
12817 (merge_named_face): New function.
12818 (merge_face_ref, face_at_buffer_position, face_at_string_position):
12819 Use `merge_named_face'.
12820 (merge_face_inheritance): Function removed.
12821 (merge_face_ref): Rename from `merge_face_vector_with_property'.
12822 Add new `err_msgs' and `named_merge_points' args. Return error
12823 status. Only print error messages if ERR_MSGS is true. Don't try to
12824 do :inherit attribute validation.
12825 (merge_face_heights): Handle `unspecified' in both directions.
12826 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
12827 Call `merge_face_ref' instead of `merge_face_inheritance'.
12828 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
12829 (compute_char_face, face_at_buffer_position)
12830 (face_at_string_position): Call `merge_face_ref' instead of
12831 `merge_face_vector_with_property'.
12833 2004-06-07 Kenichi Handa <handa@m17n.org>
12835 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
12836 the necessary places.
12838 2004-06-07 Kim F. Storm <storm@cua.dk>
12840 * process.c (Fdelete_process): Undo 2004-05-28 change.
12841 Instead, call status_notify also for network process.
12842 (status_message): Use process instead of status as arg.
12843 Give messages "deleted" or "connection broken by remote peer" for
12844 an exited network process.
12845 (status_notify): Change call to status_message.
12846 (read_process_output): Increase readmax to 4096. Do not increase
12847 buffer size for datagram channels (default is now large enough).
12849 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
12851 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
12852 problem due to newly defined variable.
12854 2004-06-06 Miles Bader <miles@gnu.org>
12856 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
12857 immediately if non-interactive or not initialized.
12859 2004-06-05 Richard M. Stallman <rms@gnu.org>
12861 * minibuf.c (Fcompleting_read): Doc fix.
12863 2004-06-05 Andreas Schwab <schwab@suse.de>
12865 * macfns.c (x_create_tip_frame): Fix declaration after statement.
12867 2004-06-05 Juanma Barranquero <lektu@terra.es>
12869 * keymap.c (Fdescribe_vector): Fix docstring.
12870 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
12872 2004-06-05 Miles Bader <miles@gnu.org>
12874 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
12875 attributes have different values than the default face.
12877 2004-06-04 Eli Zaretskii <eliz@gnu.org>
12879 * xfaces.c (x_supports_face_attributes_p): Make this function
12880 conditional on HAVE_WINDOW_SYSTEM.
12881 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
12882 Don't call x_supports_face_attributes_p if it was not compiled in.
12884 2004-06-04 Miles Bader <miles@gnu.org>
12886 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
12887 from Ftty_supports_face_attributes_p.
12888 (x_supports_face_attributes_p): New function.
12889 (Ftty_supports_face_attributes_p): Function deleted.
12890 (Fdisplay_supports_face_attributes_p): New function.
12891 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
12892 (face_attr_equal_p): New function.
12893 (lface_equal_p): Use it.
12895 2004-06-03 Juanma Barranquero <lektu@terra.es>
12897 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
12898 (Vw32_color_map): Fix typo in docstring.
12899 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
12900 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
12901 Make argument names match their use in docstring.
12903 2004-06-02 Juanma Barranquero <lektu@terra.es>
12905 Work around bugs/problems with MinGW builds of graphics libraries
12906 called from MSVC builds of Emacs.
12908 * image.c (lookup_image): Make pointer to img static.
12909 (png_read_from_memory): Disable "global" optimization.
12911 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
12913 * eval.c (Fcondition_case): Fix usage. Simplify.
12915 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
12917 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12919 * macfns.c: Don't include ccl.h.
12920 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
12921 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
12923 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
12924 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
12925 display height/width.
12926 (compute_tip_xy, Vx_max_tooltip_size): Declare.
12927 (unwind_create_tip_frame, compute_tip_xy): New functions.
12928 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
12929 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
12930 and last_show_tip_args.
12932 * macgui.h [!MAC_OSX]: Include Gestalt.h.
12933 (Cursor, No_Cursor): New defines.
12934 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
12935 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
12937 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
12939 * macterm.c: Don't include Gestalt.h.
12940 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
12941 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
12942 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
12943 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
12944 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
12945 (construct_mouse_click, XTmouse_position)
12946 (x_scroll_bar_report_motion, x_calc_absolute_position)
12947 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
12948 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
12949 (note_mouse_movement): Clear the mouse face and reset the pointer
12950 shape when the pointer goes outside the frame without grabbing.
12951 (mac_front_window): New function.
12952 (mac_window_to_frame): New macro.
12953 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
12954 (do_window_activate, do_window_deactivate, do_app_resume)
12955 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
12956 (do_zoom_window, mac_do_receive_drag, XTread_socket)
12957 (mac_check_for_quit_char): Use mac_front_window and/or
12958 mac_window_to_frame.
12959 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
12960 scroll-bar click event.
12961 (mac_define_frame_cursor): Change the pointer shape.
12962 (x_free_frame_resources): Reset tip_window to NULL when it is
12964 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
12965 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
12966 (do_window_update): Don't do anything if the updated window is the
12968 (do_mouse_moved): Handle mouse movement events here (previously in
12969 XTread_socket). Clear the mouse face if
12970 dpyinfo->mouse_face_hidden is set.
12971 (do_os_event, do_events): Remove (now in XTread_socket).
12972 (XTread_socket): Immediately return if interrupt_input_blocked.
12973 Loop until all the events in the queue are processed.
12974 Rearrange codes for mouse grabbing. Add tooltip support. Include the
12975 contents of do_os_event and do_events. Remove mouse movement
12976 handling (now in do_mouse_moved). Add the case where
12977 Vmouse_highlight has an integer value.
12978 (NewMacWindow): Remove.
12979 (make_mac_frame): Do what NewMacWindow previously did. Don't do
12980 excess initializations.
12981 (make_mac_terminal_frame): Previous initializations in
12982 make_mac_frame are moved here.
12983 (mac_initialize_display_info):
12984 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
12986 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
12987 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
12989 2004-05-29 Richard M. Stallman <rms@gnu.org>
12991 * lisp.h (truncate_undo_list): Update decl.
12993 * alloc.c (undo_outer_limit): New variable.
12994 (syms_of_alloc): Defvar it.
12995 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
12997 * undo.c (truncate_undo_list): New arg LIMITSIZE.
12999 * alloc.c (lisp_align_malloc): Check for base == 0
13000 regardless of HAVE_POSIX_MEMALIGN.
13001 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13003 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13005 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
13006 (marker_blocks_pending_free): Remove.
13007 (Fgarbage_collect): Sweep after cleaning up undo-lists.
13008 Mark the undo lists after claning them up.
13009 Don't free block in marker_blocks_pending_free.
13010 (mark_buffer): Don't mark undo_list.
13011 (gc_sweep): Sweep hash-tables and strings first.
13012 Do free marker blocks that are empty.
13014 2004-05-28 Jim Blandy <jimb@redhat.com>
13016 * regex.c (print_partial_compiled_pattern): Add missing 'break'
13017 after 'case wordend'. For symbeg and symend, print to stderr,
13018 like the other cases.
13020 2004-05-28 Noah Friedman <friedman@splode.com>
13022 * process.c (Fdelete_process): Do not call remove_process.
13024 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13026 * alloc.c (struct backtrace): Remove.
13027 (Fgarbage_collect): Use the new mark_backtrace.
13029 * eval.c (mark_backtrace): New function.
13031 * minibuf.c (run_exit_minibuf_hook): New function.
13032 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
13033 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
13035 2004-05-27 Kim F. Storm <storm@cua.dk>
13037 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
13038 over display properties, e.g. images, that replace buffer text.
13040 2004-05-25 Kim F. Storm <storm@cua.dk>
13042 * alloc.c (marker_blocks_pending_free): New var.
13043 (gc_sweep): Store free marker blocks on that list.
13044 (Fgarbage_collect): Free them after undo-list cleanup.
13046 * process.c (wait_reading_process_input): Check connect_wait_mask
13047 before actually accepting connection in case it has already been
13048 accepted due to recursion.
13050 2004-05-23 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <lorentey@elte.hu>
13052 * coding.c (Fset_safe_terminal_coding_system_internal):
13053 Set suppress_error in safe_terminal_coding, not terminal_coding.
13055 2004-05-22 Richard M. Stallman <rms@gnu.org>
13057 * alloc.c (Fmake_string): Doc fix.
13059 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
13060 and the alist pairs too.
13062 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
13064 * emacs.c (main): Update copyright year.
13066 * fileio.c (Fread_file_name): Expand DIR if not absolute.
13068 * insdel.c (del_range_2, replace_range): Don't write an anchor
13069 if the gap is empty.
13071 * xdisp.c (try_scrolling): If scroll-up-aggressively or
13072 scroll-down-aggressively is small but positive, put point
13073 near the screen edge.
13075 2004-05-22 Juanma Barranquero <lektu@terra.es>
13077 * keymap.c (Fdefine_key): Doc fix.
13079 2004-05-22 Kim F. Storm <storm@cua.dk>
13081 * alloc.c (struct backtrace): Add debug_on_exit member.
13082 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
13083 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
13084 the removed cons cells.
13085 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
13086 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
13087 any cons cells pointing to unallocated stings.
13088 Do not lisp_free any marker blocks, as there may still be pointers
13089 to them from buffer undo lists at this stage of GC.
13091 * keyboard.c (struct backtrace): Add debug_on_exit member.
13092 (Fcommand_execute): Clear it.
13094 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
13096 * intervals.c (lookup_char_property): Do not prematurely return nil.
13098 2004-05-19 Jim Blandy <jimb@redhat.com>
13100 Add support for new '\_<' and '\_>' regexp operators, matching the
13101 beginning and end of symbols.
13103 * regex.c (enum syntaxcode): Add Ssymbol.
13104 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
13105 (re_opcode_t): New opcodes `symbeg' and `symend'.
13106 (print_partial_compiled_pattern): Print the new opcodes properly.
13107 (regex_compile): Parse the new operators.
13108 (analyse_first): Skip sym(beg|end) (they match only the empty string).
13109 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
13110 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
13111 (re_match_2_internal): Match symbeg and symend.
13113 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
13115 2004-05-19 Kim F. Storm <storm@cua.dk>
13117 * .gdbinit (xsymbol): Fix last change.
13119 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
13121 * .gdbinit (xprintstr): New fun.
13122 (xstring, xprintsym): Use it.
13124 * w32proc.c (create_child): Use INTMASK.
13126 * alloc.c (Fgarbage_collect): Do all the marking before flushing
13127 unmarked elements of the undo list.
13129 2004-05-18 David Ponce <david@dponce.com>
13131 * print.c (print): Reset print_depth before to call print_object.
13133 2004-05-18 Jason Rumney <jasonr@gnu.org>
13135 * w32console.c: Prefix RIF functions with w32con_ to avoid
13136 namespace clash with functions in term.c and w32term.c.
13138 * w32menu.c (add_menu_item, w32_menu_display_help)
13139 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
13141 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
13143 2004-05-18 Eli Zaretskii <eliz@gnu.org>
13145 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
13147 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
13149 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
13152 2004-05-18 Kim F. Storm <storm@cua.dk>
13154 * blockinput.h (INPUT_BLOCKED_P): New macros.
13156 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
13157 (Ftop_level): Unblock input if blocked.
13159 * buffer.h (GET_OVERLAYS_AT): New macro.
13160 * msdos.c (IT_note_mouse_highlight): Use it.
13161 * textprop.c (get_char_property_and_overlay): Use it.
13162 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
13163 * xfaces.c (face_at_buffer_position): Use it.
13165 * print.c (print_object): Increase buf size.
13167 2004-05-17 Jason Rumney <jasonr@gnu.org>
13169 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
13170 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
13171 Lisp_Object using i member.
13172 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
13173 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
13176 * w32proc.c (create_child): Use make_number instead of masking pid.
13178 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
13179 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
13180 Use EQ to compare Lisp_Objects.
13181 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
13183 * w32term.c (w32_num_mouse_buttons): Rename from
13184 Vw32_num_mouse_buttons and make it an int.
13186 * w32.c (init_environment): Use it.
13188 * w32fns.c (w32_wnd_proc): Likewise.
13190 * w32proc.c (w32_pipe_read_delay): Rename from
13191 Vw32_pipe_read_delay and make it an int.
13193 * w32.c (_sys_read_ahead): Use it.
13195 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
13197 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
13199 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
13200 (key_event): Don't mix Lisp_Object and int.
13202 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
13204 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
13205 modifiers in language change event.
13207 2004-05-17 Kim F. Storm <storm@cua.dk>
13209 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
13210 Such objects may be freed markers which still exist on an undo list.
13212 2004-05-16 Juanma Barranquero <lektu@terra.es>
13214 * data.c (Fset_default): Make argument names match their use in
13217 2004-05-15 Andreas Schwab <schwab@suse.de>
13219 * emacs.c (gdb_array_mark_flag): Define.
13220 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
13222 2004-05-15 Eli Zaretskii <eliz@gnu.org>
13224 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
13225 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
13226 defined for the MS-DOS build.
13228 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
13230 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
13232 2004-05-14 Kenichi Handa <handa@m17n.org>
13234 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
13236 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13238 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
13239 section to frame.c section.
13240 (Fxw_display_color_p, Fx_file_dialog): Declare if
13241 HAVE_WINDOW_SYSTEM defined.
13243 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
13245 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
13247 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
13248 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
13249 (XTread_socket): Fix int/Lisp_Object mixup.
13250 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
13252 * macterm.h (struct frame, struct face, struct image)
13253 (display_x_get_resource, Fx_display_color_p)
13254 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
13257 2004-05-14 Kim F. Storm <storm@cua.dk>
13259 * process.c (wait_reading_process_input): Make reentrant.
13260 Make Available and Connecting non-static. Save and restore value
13261 of waiting_for_user_input_p.
13263 2004-05-13 Kim F. Storm <storm@cua.dk>
13265 * keyboard.c (mark_kboards): Don't mark x and y members
13266 that are overloaded in selection request events.
13268 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13270 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
13272 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
13274 * window.c (Fdisplay_buffer, Fsplit_window)
13275 (split-height-threshold): Doc fix.
13277 2004-05-13 Juanma Barranquero <lektu@terra.es>
13279 * xfaces.c (Ftty_supports_face_attributes_p)
13280 (Finternal_copy_lisp_face): Fix typo in docstring.
13281 (Finternal_get_lisp_face_attribute): Fix docstring.
13283 2004-05-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13285 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
13287 2004-05-11 Steven Tamm <steventamm@mac.com>
13289 * macfns.c (Fx_create_frame): Default to using tool-bar by
13290 setting tool-bar-lines to 1 in default-frame-alist.
13292 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13294 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
13295 (xpm_get_color_table_v, xpm_make_color_table_h)
13296 (xpm_put_color_table_h, xpm_get_color_table_h)
13297 (xpm_str_to_color_key, xpm_load_image, xpm_load)
13298 (syms_of_image): Support XPM on Carbon Emacs. Does not
13299 depend on libXpm, but only supports XPM version 3 without extensions.
13301 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13303 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
13304 instead of FRAME_X_P
13306 2004-05-11 Kim F. Storm <storm@cua.dk>
13308 * process.c (read_process_output): Grow decoding_buf when needed;
13309 this could cause a crash in allocate_string and compact_small_strings.
13311 2004-04-29 Jim Blandy <jimb@redhat.com>
13313 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
13314 against proper opcode.
13316 2004-05-10 Juanma Barranquero <lektu@terra.es>
13318 * process.c (Fstart_process): Fix docstring.
13320 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
13321 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
13322 (Fsplit_char, Fchar_charset): Make argument names match their use
13325 2004-05-10 Richard M. Stallman <rms@gnu.org>
13327 * print.c (print_preprocess): Use being_printed, loop_count and
13328 halftail to detect overdeep nesting and cyclic cdr chains.
13330 2004-05-10 Andreas Schwab <schwab@suse.de>
13332 * lisp.h (Fmake_symbolic_link): Declare.
13334 * fileio.c (Frename_file): Remove extra argument in call to
13335 Fmake_symbolic_link.
13337 2004-05-10 Kim F. Storm <storm@cua.dk>
13339 * xdisp.c (calc_line_height_property): Use string position when
13340 object is a string.
13342 2004-05-10 Kenichi Handa <handa@m17n.org>
13344 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
13345 inhibit-modification-hooks to t temporarily before calling
13348 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
13349 inhibit-modification-hooks to t temporarily before calling
13352 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
13353 inhibit-modification-hooks to t temporarily before calling
13356 * fns.c (count_combining): Delete it.
13357 (concat): Don't check combining bytes.
13359 2004-05-09 Jason Rumney <jasonr@gnu.org>
13361 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
13362 (globals_of_w32fns): Set it.
13364 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
13366 * data.c (Fquo): Simplify.
13368 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
13370 * data.c (Fquo): If any argument is float, do the computation in
13373 2004-05-08 Juanma Barranquero <lektu@terra.es>
13375 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
13376 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
13377 Fix spelling of Emacs on docstring.
13378 (Fset_process_coding_system, Fprocess_coding_system)
13379 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
13380 Make argument names match their use in docstring.
13381 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
13384 * editfns.c (Finsert_buffer_substring): Make argument names match their
13387 * syntax.c (Fmodify_syntax_entry): Fix docstring.
13389 2004-05-07 Steven Tamm <steventamm@mac.com>
13391 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
13392 around call to ReceiveEvent to avoid certain crashes.
13394 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13396 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
13397 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
13398 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
13399 Save/restore the current graphics port and device handle when
13400 drawing into an offscreen graphics world.
13402 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
13403 (gif_load): Likewise.
13405 2004-05-07 Juanma Barranquero <lektu@terra.es>
13407 * window.c (Fset_window_buffer): Fix docstring.
13409 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
13411 * emacs.c (main) [VMS]: Fix var ref.
13413 2004-05-06 Romain Francoise <romain@orebokech.com>
13415 * data.c (Fsetq_default): Fix docstring.
13417 2004-05-06 Jason Rumney <jasonr@gnu.org>
13419 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
13420 to avoid name clash.
13422 2004-05-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13424 * fileio.c (barf_or_query_if_file_exists): Use lstat.
13425 (Frename_file): Handle renaming of symlinks across file systems.
13426 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
13428 2004-05-04 Kim F. Storm <storm@cua.dk>
13430 * xdisp.c (Qtotal): New var.
13431 (syms_of_xdisp): Intern and staticpro it.
13432 (calc_line_height_property): New arg total. Set it if
13433 line-spacing property has format (total . VALUE).
13434 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
13435 Handle total line-spacing property.
13437 2004-05-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13439 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
13440 "under" scroll bar when size/position changes.
13442 2004-05-03 Jason Rumney <jasonr@gnu.org>
13444 * makefile.nt: Remove.
13446 2004-05-02 Eli Zaretskii <eliz@gnu.org>
13448 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
13449 Avoid compiler warnings.
13451 * Makefile.in (region-cache.o): Depend on config.h.
13453 2004-05-02 Romain Francoise <romain@orebokech.com>
13455 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
13456 with continuation lines, too.
13458 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
13460 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
13462 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
13464 * xdisp.c (calc_line_height_property): YAILOM (yet another
13465 int/Lisp_Object mixup).
13467 2004-05-01 Eli Zaretskii <eliz@gnu.org>
13469 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
13470 undo bad effect of pack(4) in some versions of system headers.
13472 2004-05-01 Jason Rumney <jasonr@gnu.org>
13474 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
13476 2004-04-30 Kim F. Storm <storm@cua.dk>
13478 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
13479 (syms_of_buffer) <cursor-type>: Doc fix.
13481 * dispextern.h (struct it): Remove member use_default_face.
13482 Add members override_ascent, override_descent, override_boff.
13484 * xdisp.c (init_iterator): Handle line-spacing float value.
13485 Initialize override_ascent member.
13486 (append_space_for_newline): Reset override_ascent.
13487 Remove use_default_face.
13488 (calc_line_height_property): New function to calculate value of
13489 line-height and line-spacing properties. Look at overlays, too.
13490 Set override_ascent, override_descent, override_boff members when
13491 using another face than the current face. Float values are now
13492 relative to the frame default font, by default; accept a cons
13493 of ratio and face name to specify value relative to a specific face.
13494 (x_produce_glyphs): Use calc_line_height_property.
13495 Use override_ascent etc. when set to handle different face heights.
13496 A negative line-spacing property value is interpreted as a total
13497 line height, rather than inter-line spacing.
13498 (note_mouse_highlight): Allocate room for 40 overlays initially.
13500 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
13502 * data.c (Fsubr_name): New fun.
13503 (syms_of_data): Defsubr it.
13505 2004-04-29 Kim F. Storm <storm@cua.dk>
13507 * xdisp.c (null_glyph_slice): New var.
13508 (append_glyph, append_composite_glyph, append_stretch_glyph):
13509 Use it to initialize glyph slice.
13511 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
13513 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
13514 (on_hot_spot_p): Make sure we always return a value.
13515 (Flookup_image_map): Remove unused var ix and iy.
13516 (note_mode_line_or_margin_highlight): Remove unused var `image'.
13518 2004-04-27 Eli Zaretskii <eliz@gnu.org>
13520 * msdos.c (init_environment): If one of the TMP... environment
13521 variables is set to a drive letter without a trailing slash,
13524 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
13526 * editfns.c (lisp_time_argument): Provide externally.
13528 * fileio.c (Fset_file_times): New function.
13529 (syms_of_fileio): Intern and staticpro it.
13531 2004-04-27 Kim F. Storm <storm@cua.dk>
13533 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
13534 header line strings.
13536 * dispextern.h (struct it): New member use_default_face.
13538 * xdisp.c (Qline_height): New variable.
13539 (syms_of_xdisp): Intern and staticpro it.
13540 (append_space_for_newline): Partially undo 2004-04-25 change;
13541 add default_face_p arg, and restore callers.
13542 Clear it->use_default_face after use.
13543 (x_produce_glyphs): Set default font for ascii char if
13544 it->use_default_font is set. Change line-spacing property to set
13545 just extra line spacing. Handle new line-height property.
13547 2004-04-26 Andreas Schwab <schwab@suse.de>
13549 * print.c (print_object): Print non-ascii characters in bool
13550 vector representation as octal escapes.
13552 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
13553 * print.c (print_object): Use it instead of BITS_PER_CHAR for
13555 * lread.c (read1): Likewise.
13556 * alloc.c (Fmake_bool_vector): Likewise.
13557 * data.c (Faref, Faset): Likewise.
13558 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
13559 (mapcar1): Likewise.
13561 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13563 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
13565 2004-04-26 Miles Bader <miles@gnu.org>
13567 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
13569 2004-04-26 Juanma Barranquero <lektu@terra.es>
13571 * buffer.c (Fpop_to_buffer): Fix docstring.
13573 2004-04-26 Steven Tamm <steventamm@mac.com>
13575 * lread.c (init_lread): Don't display missing lisp directory
13576 warnings with Carbon Emacs because self-contained bundled Emacs
13577 may be built without correct installation path.
13579 2004-04-25 Kim F. Storm <storm@cua.dk>
13581 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13583 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13585 * xdisp.c (append_space_for_newline): Rename from append_space.
13586 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
13587 (x_produce_glyphs): Handle line-spacing property on newline char.
13588 If value is t, adjust ascent and descent to fit current row height.
13589 If value is an integer or float, set extra_line_spacing to integer
13590 value, or to float value x current line height.
13592 2004-04-23 Kenichi Handa <handa@m17n.org>
13594 * fontset.c (Finternal_char_font): If POSITION is nil, return
13595 font for displaying CH with the default face.
13597 2004-04-23 Juanma Barranquero <lektu@terra.es>
13599 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
13601 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13603 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
13604 Don't make assumptions about the relative place of i and val.
13605 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
13607 2004-04-21 Kim F. Storm <storm@cua.dk>
13609 * dispextern.h (struct glyph_slice): New struct.
13610 (struct glyph): New member slice.
13611 (GLYPH_SLICE_EQUAL_P): New macro.
13612 (GLYPH_EQUAL_P): Use it.
13613 (struct glyph_string): New member slice.
13614 (struct it_slice): New struct.
13615 (struct it): New member slice, add member to stack too.
13616 New member constrain_row_ascent_descent_p.
13617 (image_ascent): Add prototype.
13619 * dispnew.c (buffer_posn_from_coords): Return full image width
13620 and height even for image slices (posn is relative to full image).
13621 (marginal_area_string): Adjust x0,y0 for image slice.
13623 * image.c (image_ascent): Add slice arg; calculate ascent for
13624 image slice (or full image).
13626 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
13627 (syms_of_keyboard): Defsubr them.
13629 * lisp.h (pos_visible_p): Fix prototype.
13631 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
13632 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13633 (x_draw_image_foreground, x_draw_image_relief)
13634 (x_draw_image_foreground_1, x_draw_image_glyph_string):
13635 Draw sliced images.
13637 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
13638 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13639 (x_draw_image_foreground, x_draw_image_relief)
13640 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
13641 Draw sliced images.
13643 * w32term.h (image_ascent): Remove prototype.
13645 * window.c (Fpos_visible_in_window_p): Return pixel position if
13646 PARTIALLY arg is non-nil. Simplify. Doc fix.
13647 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
13648 to return/set vscroll in pixels.
13650 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
13652 * xdisp.c (Qslice): New variable.
13653 (syms_of_xdisp): Intern and staticpro it.
13654 (pos_visible_p): Return pixel position in new x and y args.
13655 (init_iterator): Reset it->slice info.
13656 (handle_display_prop): Parse (slice ...) property.
13657 (push_it, pop_it): Save/restore slice info.
13658 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
13659 force repositioning of tall row if window is vscrolled, as that
13660 would reset vscroll.
13661 (append_space): Set it->constrain_row_ascent_descent_p to avoid
13662 increasing row height if row is non-empty.
13663 (fill_image_glyph_string): Copy slice info.
13664 (take_vertical_position_into_account): Simplify.
13665 (produce_image_glyph): Handle iterator slice info, setup glyph
13666 slice info. Do not force minimum line height.
13667 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
13668 do not increase height (ascent/descent) of non-empty row when
13669 adding normal character glyph; instead reduce glyph ascent/descent
13670 appropriately; if row is higher than current glyph, adjust glyph
13671 descent/ascent to reposition glyph within the existing row.
13672 Likewise, when char is newline, only set ascent/descent if row is
13674 (note_mouse_highlight): Handle hotspots with sliced image.
13676 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
13677 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13678 (x_draw_image_foreground, x_draw_image_relief)
13679 (x_draw_image_foreground_1, x_draw_image_glyph_string):
13680 Draw sliced images.
13682 * xterm.h (image_ascent): Remove prototype.
13684 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
13686 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
13688 2004-04-20 John Paul Wallington <jpw@gnu.org>
13690 * fns.c (Fassoc, Feql): Fix indentation.
13692 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
13694 2004-04-19 John Paul Wallington <jpw@gnu.org>
13696 * fns.c (Feql): New function.
13697 (syms_of_fns): Defsubr it.
13699 2004-04-18 Jason Rumney <jasonr@gnu.org>
13701 * w32select.c (Fw32_set_clipboard_data): Get sequence number
13702 after closing the clipboard.
13704 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
13706 * buffer.c (Fbuffer_base_buffer): Doc fix.
13708 2004-04-17 Kim F. Storm <storm@cua.dk>
13710 * keymap.c (Fkey_description): Add optional PREFIX arg.
13711 Combine prefix with KEYS to make up the full key sequence to describe.
13712 Correlate meta_prefix_char and following (simple) key to describe
13713 as meta modifier. All callers changed.
13714 (describe_map): Rename arg `keys' to `prefix'. Remove local
13715 `elt_prefix' var. Use Fkey_description with prefix instead of
13716 elt_prefix combined with Fsingle_key_description.
13717 (describe_vector): Declare static. Replace arg `elt_prefix' with
13718 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
13719 if !KEYMAP_P. Use Fkey_description with prefix instead of
13720 Fsingle_key_description.
13722 * keymap.h (Fkey_description): Fix prototype.
13723 (describe_vector): Remove prototype.
13725 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
13727 * image.c (PNG_BG_COLOR_SHIFT): Remove.
13728 (png_load): Fix calculation of transparent background color on X
13731 2004-04-16 Juanma Barranquero <lektu@terra.es>
13733 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
13734 not too large before computing how much to scroll.
13736 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
13738 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
13740 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
13742 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
13743 Add hyperlink to Elisp manual to the docstring.
13745 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
13747 * callint.c (fix_command): Use XDCR.
13749 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
13751 * window.c (Fget_lru_window): Doc fix.
13753 2004-04-14 Kim F. Storm <storm@cua.dk>
13755 * editfns.c (Fformat): Fix allocation size of precision array.
13757 * dispnew.c (update_window): Only set changed_p if
13758 scrolling_window actually did scroll.
13759 (scrolling_window): Only return 1 if we actually did scroll.
13761 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
13762 height to glyph height when cursor row is not fully visible.
13763 (make_cursor_line_fully_visible): Add FORCE_P arg to return
13764 failure in case row is higher than window. Callers changed.
13765 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
13766 Try to scroll partially visible, higher-than-window cursor row.
13767 (redisplay_window): Always try to scroll partially visible,
13768 higher-than-window cursor row - both initially and again with
13769 centering_position = 0.
13770 Clear desired matrix before retrying with centering_position = 0.
13772 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13774 * syntax.c (scan_lists): Simplify backward string scan.
13775 Fix off-by-one boundary check for string and comment fences.
13777 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
13779 * sheap.c, unexcw.c: New files.
13781 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
13783 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
13784 base buffer has been killed. Correct the error message if the
13785 base buffer does not exist.
13787 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
13789 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
13790 Cygwin itself. Add support for Xaw3d scrollbars.
13792 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
13794 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
13796 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
13797 before Cygwin unexec.
13799 * Makefile.in: Link changes for Cygwin unexec() support.
13801 2004-04-12 Andreas Schwab <schwab@suse.de>
13803 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
13805 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
13807 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
13808 IGNORE argument equals NAME. Doc fix.
13810 2004-04-11 Masatake YAMATO <jet@gyve.org>
13812 * buffer.c (fix_start_end_in_overlays): Make overlays
13813 empty if they are backwards.
13815 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13817 * xfaces.c (face_color_supported_p): Fix compilation without X11.
13819 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
13821 * doc.c (Fsnarf_documentation): Ignore new file name entries.
13823 2004-04-06 Kim F. Storm <storm@cua.dk>
13825 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
13826 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
13828 * w32term.c (w32_read_socket): Set mouse_face_hidden after
13829 clearing highlight.
13831 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
13833 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
13834 clearing highlight.
13836 * indent.c (vmotion): Do not reserve one column for continuation
13837 marks on window frames.
13839 2004-04-04 Eli Zaretskii <eliz@gnu.org>
13841 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
13844 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13846 * .gdbinit-union: Remove.
13848 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
13849 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
13850 ($nonvalbits): Remove.
13851 ($valmask): Set it by calling xreload to avoid redundancy.
13853 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
13854 (gdb_emacs_intbits): Remove.
13856 2004-03-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13858 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
13860 2004-03-30 Kenichi Handa <handa@m17n.org>
13862 * editfns.c (Fformat): Fix initialization of the array info.
13864 2004-03-30 Kim F. Storm <storm@cua.dk>
13866 * xterm.c (x_mouse_click_focus_ignore_position): New var.
13867 (syms_of_xterm): DEFVAR_BOOL it.
13868 (ignore_next_mouse_click_timeout): New var.
13869 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
13870 Use it to filter mouse clicks following focus event.
13872 2004-03-29 David Ponce <david@dponce.com>
13874 * callint.c (Fcall_interactively): Fix last change.
13876 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13878 * eval.c (Fcommandp): Simplify.
13880 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
13881 Extend to handle all kinds of functions.
13883 * lisp.h (Finteractive_form): Declare.
13885 * callint.c (Fcall_interactively): Use it.
13887 2004-03-26 Kim F. Storm <storm@cua.dk>
13889 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
13890 to catch errors in calc_pixel_width_or_height during redisplay.
13892 2004-03-26 Masatake YAMATO <jet@gyve.org>
13894 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
13896 * lisp.h (fix_start_end_in_overlays): Likewise.
13898 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
13900 * editfns.c (Ftranspose_regions): Likewise.
13902 2004-03-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13904 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
13906 2004-03-19 Richard M. Stallman <rms@gnu.org>
13908 * s/sol2-6.h: Delete previous change.
13910 2004-03-19 Kim F. Storm <storm@cua.dk>
13912 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
13913 to_charpos corresponds to newline in right fringe. Use local
13914 BUFFER_POS_REACHED_P macro.
13916 2004-03-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
13918 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
13919 to compile on non-window system.
13921 2004-03-19 Kim F. Storm <storm@cua.dk>
13923 * dispextern.h (calc_pixel_width_or_height): Add prototype.
13925 * image.c (Qcenter): Move to xdisp.c.
13927 * xdisp.c (Qcenter): Declare here.
13928 (syms_of_xdisp): Intern and staticpro it.
13929 (handle_single_display_prop): Allow space display property on all
13931 (display_mode_line): Set mode_line_p before displaying line.
13932 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
13933 handling. Remove complex cases for fringes and scroll-bars.
13934 Add left, right, and center alignment positions. Add text (area)
13935 width/height. Return width or height for image specs.
13936 (produce_stretch_glyph): Improve handling of :align-to. Is now
13937 relative to left of text area by default, but other base offsets
13938 can be specified -- also for text lines.
13940 * term.c (produce_glyphs): Handle IT_STRETCH.
13941 (produce_stretch_glyph): New function to handle space width and
13942 align-to display properties on non-window systems.
13944 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13946 * fileio.c (Fread_file_name): Set completion-ignore-case for
13947 case-insensitive systems.
13949 2004-03-14 Masatake YAMATO <jet@gyve.org>
13951 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
13952 when keymap and cursor are setup.
13954 2004-03-14 Steven Tamm <steventamm@mac.com>
13956 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
13958 2004-03-14 Kim F. Storm <storm@cua.dk>
13960 * dispextern.h (x_find_image_file): Add prototype.
13962 * image.c (x_find_image_file): Make extern.
13964 * xfns.c (x_find_image_file): Remove prototype.
13966 2004-03-13 Eli Zaretskii <eliz@gnu.org>
13968 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
13970 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
13972 2004-03-12 Richard M. Stallman <rms@gnu.org>
13974 * fns.c (internal_equal): New arg PROPS controls comparing
13975 text properties. All callers changed.
13976 (Fequal_including_properties): New function.
13977 (syms_of_fns): defsubr it.
13979 2004-03-12 Kim F. Storm <storm@cua.dk>
13981 Fix image support on MAC. From YAMAMOTO Mitsuharu.
13983 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
13984 (image_background, image_background_transparent): Fix prototypes.
13986 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
13988 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
13989 (x_query_font, x_find_ccl_program, x_set_window_size)
13990 (x_make_frame_visible, mac_initialize, XCreatePixmap)
13991 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
13992 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
13994 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
13995 (x_query_font, x_find_ccl_program, x_set_window_size)
13996 (x_make_frame_visible, mac_initialize, XCreatePixmap)
13997 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
13998 (mac_draw_line_to_pixmap): Add prototypes.
14000 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14002 * macterm.c (XTread_socket): Fix mouse click on tool bar.
14004 2004-03-11 Kim F. Storm <storm@cua.dk>
14006 * dispextern.h: Move image related prototypes from xfns.c section
14007 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
14010 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
14011 Move gtkutil.o to new GTK_OBJ list.
14012 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
14013 (GTK_OBJ) [USE_GTK]: New declaration.
14014 (obj): Add $(GTK_OBJ) to list.
14016 2004-03-11 Steven Tamm <steventamm@mac.com>
14018 * image.c [MAC_OSX]: Include sys/stat.h.
14020 * macfns.c (syms_of_macfns): Remove definitions of things now
14021 defined in image.c.
14023 2004-03-11 Kim F. Storm <storm@cua.dk>
14025 The following changes consolidates the identical/similar image
14026 support code previously found in xfns.c, w32fns.c, and macfns.c
14027 into a new file image.c.
14029 * makefile.w32-in (OBJ1): Add image.o.
14030 ($(BLD)/image.$(O)): Add dependencies.
14032 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
14033 (image.o): Add dependencies.
14035 * image.c: New file with consolidated image support code.
14036 (COLOR_TABLE_SUPPORT): New define to control whether
14037 color table support is available (X only).
14038 (Bitmap_Record): Common name for x_bitmap_record,
14039 w32_bitmap_record, and mac_bitmap_record.
14040 (XImagePtr): Common name for pointer to XImage or equivalent.
14041 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
14042 to XImagePtr on X+MAC, and to HDC on W32.
14043 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
14044 (NO_PIXMAP): Common name for "None" or equivalent.
14045 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
14046 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
14047 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
14048 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
14049 Define with suitable equivalents on W32 and MAC for code sharing.
14050 (XDrawLine): Define on MAC for code sharing.
14051 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
14052 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
14053 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14054 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14055 (x_reference_bitmap, x_create_bitmap_from_data)
14056 (x_create_bitmap_from_file, x_destroy_bitmap)
14057 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14058 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14059 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14060 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14061 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14062 (define_image_type, lookup_image_type, valid_image_p)
14063 (image_error, enum image_value_type, struct image_keyword)
14064 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14065 (make_image, free_image, prepare_image_for_display, image_ascent)
14066 (four_corners_best, image_background, image_background_transparent)
14067 (x_clear_image_1, x_clear_image, x_alloc_image_color)
14068 (make_image_cache, free_image_cache, clear_image_cache)
14069 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14070 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14071 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14072 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14073 (init_image_func_pointer, image_load_quartz2d)
14074 (struct ct_color, init_color_table, free_color_table)
14075 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14076 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14077 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14078 (x_disable_image, x_build_heuristic_mask)
14079 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14080 (TIFF support, GIF support, Ghostscript support): Consolidate image
14081 code from xfns.c, w32fns.c, and macfns.c.
14082 (syms_of_image): Consolidate image related symbol setup here.
14083 (init_image): Consolidate image related initializations here.
14085 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
14086 and init_image. Remove call to init_xfns.
14088 * macterm.h (struct mac_bitmap_record): Add file member.
14089 Not currently used, but simplifies code sharing.
14091 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14092 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14093 (x_reference_bitmap, x_create_bitmap_from_data)
14094 (x_create_bitmap_from_file, x_destroy_bitmap)
14095 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14096 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14097 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14098 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14099 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14100 (define_image_type, lookup_image_type, valid_image_p)
14101 (image_error, enum image_value_type, struct image_keyword)
14102 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14103 (make_image, free_image, prepare_image_for_display, image_ascent)
14104 (four_corners_best, image_background, image_background_transparent)
14105 (x_clear_image_1, x_clear_image, x_alloc_image_color)
14106 (make_image_cache, free_image_cache, clear_image_cache)
14107 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14108 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14109 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14110 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14111 (init_image_func_pointer, image_load_quartz2d)
14112 (struct ct_color, init_color_table, free_color_table)
14113 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14114 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14115 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14116 (x_disable_image, x_build_heuristic_mask)
14117 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14118 (TIFF support, GIF support, Ghostscript support): Merge with image
14119 code from xfns.c and macfns.c into image.c.
14120 (syms_of_xfns): Move image related symbols to image.c.
14121 (init_external_image_libraries, init_xfns): Remove; initialization
14122 moved to init_image in image.c.
14124 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14125 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14126 (x_reference_bitmap, x_create_bitmap_from_data)
14127 (x_create_bitmap_from_file, x_destroy_bitmap)
14128 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14129 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14130 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14131 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14132 (define_image_type, lookup_image_type, valid_image_p)
14133 (image_error, enum image_value_type, struct image_keyword)
14134 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14135 (make_image, free_image, prepare_image_for_display, image_ascent)
14136 (four_corners_best, image_background, image_background_transparent)
14137 (x_clear_image_1, x_clear_image, x_alloc_image_color)
14138 (make_image_cache, free_image_cache, clear_image_cache)
14139 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14140 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14141 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14142 (struct ct_color, init_color_table, free_color_table)
14143 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14144 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14145 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14146 (x_disable_image, x_build_heuristic_mask)
14147 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14148 (TIFF support, GIF support, Ghostscript support): Merge with image
14149 code from xfns.c and macfns.c into image.c.
14150 (syms_of_xfns): Move image related symbols to image.c.
14151 (init_external_image_libraries, init_xfns): Remove; initialization
14152 moved to init_image in image.c.
14154 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14155 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14156 (x_reference_bitmap, x_create_bitmap_from_data)
14157 (x_create_bitmap_from_file, x_destroy_bitmap)
14158 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14159 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14160 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14161 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14162 (define_image_type, lookup_image_type, valid_image_p)
14163 (image_error, enum image_value_type, struct image_keyword)
14164 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14165 (make_image, free_image, prepare_image_for_display, image_ascent)
14166 (four_corners_best, image_background, image_background_transparent)
14167 (x_clear_image_1, x_clear_image, x_alloc_image_color)
14168 (make_image_cache, free_image_cache, clear_image_cache)
14169 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14170 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14171 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14172 (struct ct_color, init_color_table, free_color_table)
14173 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14174 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14175 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14176 (x_disable_image, x_build_heuristic_mask)
14177 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14178 (TIFF support, GIF support, Ghostscript support): Merge with
14179 w32fns.c and macfns.c image code into image.c.
14180 (syms_of_xfns): Move image related symbols to image.c.
14181 (init_xfns): Remove; initialization moved to init_image in image.c.
14183 * lisp.h (syms_of_image, init_image): Add protoypes.
14184 (init_xfns): Remove prototype.
14186 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14187 (x_reference_bitmap, x_create_bitmap_from_data)
14188 (x_create_bitmap_from_file, x_destroy_bitmap)
14189 (x_create_bitmap_mask): Move prototypes from dispextern.h.
14190 (gamma_correct) [MAC_OS]: Add prototype.
14192 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14193 (x_reference_bitmap, x_create_bitmap_from_data)
14194 (x_create_bitmap_from_file, x_destroy_bitmap)
14195 (x_create_bitmap_mask): Move prototypes to dispextern.h.
14197 2004-03-09 Kenichi Handa <handa@etlken2>
14199 * coding.c (decode_coding_emacs_mule): Handle insufficent source
14202 2004-03-04 Richard M. Stallman <rms@gnu.org>
14204 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
14206 * window.c (Fdisplay_buffer): Doc fix.
14208 * buffer.c (Fpop_to_buffer): Doc fix.
14210 2004-03-03 Kim F. Storm <storm@cua.dk>
14212 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
14214 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
14216 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
14218 2004-03-02 Richard M. Stallman <rms@gnu.org>
14220 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
14222 2004-03-02 Kenichi Handa <handa@m17n.org>
14224 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
14226 2004-03-02 Kim F. Storm <storm@cua.dk>
14228 * window.h (struct window): New member overlay_arrow_bitmap.
14230 * window.c (make_window): Initialize overlay_arrow_bitmap.
14232 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
14233 implement and integrate multiple overlay arrows with redisplay.
14234 (syms_of_xdisp): DEFVAR_LISP and initialize it.
14235 (last_arrow_position, last_arrow_string): Replace by properties.
14236 (Qlast_arrow_position, Qlast_arrow_string)
14237 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
14238 (syms_of_xdisp): Intern and staticpro them.
14239 (overlay_arrow_string_or_property, update_overlay_arrows)
14240 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
14241 (overlay_arrow_at_row): New functions for multiple overlay arrows.
14242 (redisplay_internal): Use them instead of directly accessing
14243 Voverlay_arrow_position etc. for multiple overlay arrows.
14244 (mark_window_display_accurate): Use update_overlay_arrows.
14245 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
14246 (try_window_id): Use overlay_arrows_changed_p.
14247 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
14248 (display_line): Use overlay_arrow_at_row to check multiple
14249 overlay arrows, and get relevant overlay-arrow-string and
14250 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
14251 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
14252 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
14254 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
14255 (update_window_fringes): Remove unused code.
14257 2004-03-01 Jason Rumney <jasonr@gnu.org>
14259 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
14261 2004-03-01 Juanma Barranquero <lektu@terra.es>
14263 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
14265 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
14267 2004-03-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14269 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
14270 how many colors can be displayed.
14272 2004-03-01 Kenichi Handa <handa@m17n.org>
14274 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
14277 2004-02-28 Kim F. Storm <storm@cua.dk>
14279 * dispnew.c (update_window): Update header line also if there are
14280 no other changes in window (move code after set_cursor label).
14282 * lisp.h (mark_window_display_accurate): Remove prototype.
14284 * window.c (window_loop, Fforce_window_update): Force mode line
14285 updates by setting prevent_redisplay_optimizations_p and
14288 2004-02-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14290 * xfns.c (x_window): Fix indentation.
14292 * xterm.c (x_calc_absolute_position): Call x_real_positions
14293 to get WM window sizes and use those to calculate position.
14294 (x_set_offset): Remove code commented out.
14296 2004-02-28 Miles Bader <miles@gnu.org>
14298 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
14300 2004-02-28 Kim F. Storm <storm@cua.dk>
14302 * keyboard.c (kbd_buffer_store_event_hold): New function to store
14303 an event into kbd fifo, but with special handling of quit event;
14304 a quit event is saved for later, and further events are discarded
14305 until the saved quit event has been processed.
14306 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
14307 (gen_help_event): Store help event in kbd fifo.
14308 (NREAD_INPUT_EVENTS): Remove.
14309 (read_avail_input): Adapt to new read_socket_hook interface.
14310 Remove allocation and initialization of local input_event buffer,
14311 as read_socket_hook stores events directly in fifo. Allocate and
14312 initialize local hold_quit event to handle postponed quit event
14313 (and store it if set by kbd_buffer_store_event_hold).
14315 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
14316 (gen_help_event): Fix prototype.
14318 * macterm.c (XTread_socket): Remove bufp_r and
14319 numcharsp args. Add hold_quit arg.
14320 Rework to use just one, local, inev input_event. Store inev
14321 directly in fifo using kbd_buffer_store_event_hold.
14323 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
14324 (read_input_waiting): Adapt to new read_socket_hook interface.
14325 Remove allocation and initialization of local input_event buffer,
14326 as read_socket_hook stores events directly in fifo. Allocate and
14327 initialize local hold_quit event to handle postponed quit event
14328 (and store it if set by kbd_buffer_store_event_hold).
14330 * term.c (read_socket_hook): Fix arg list.
14332 * termhooks.h (read_socket_hook): Fix prototype.
14334 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
14335 numcharsp args. Add hold_quit arg.
14336 Rework to use just one, local, inev input_event. Store inev
14337 directly in fifo using kbd_buffer_store_event_hold.
14339 * w32inevt.h (w32_console_mouse_position): Fix prototype.
14341 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
14342 Add hold_quit arg. Rework to use just one, local, inev
14343 input_event. Store inev directly in fifo using
14344 kbd_buffer_store_event_hold. Update count in one place.
14345 Postpone call to gen_help_event until inev is stored; use new
14346 local do_help for this.
14347 Remove local emacs_event in handing of ButtonPress event; just use
14348 inev instead (so no reason to copy it later).
14350 * xsmfns.c (x_session_check_input): Remove numchars arg.
14352 * xterm.c (x_focus_changed, x_detect_focus_change):
14353 Remove numchars arg. Always store event into bufp arg.
14354 Return nothing. Callers changed accordingly.
14355 (glyph_rect): Simplify.
14356 (STORE_KEYSYM_FOR_DEBUG): New macro.
14357 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
14358 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
14359 (current_hold_quit) [USE_GTK]: Add.
14360 (event_handler_gdk): Adapt to new handle_one_xevent.
14361 (handle_one_xevent): Remove bufp_r and numcharsp args.
14362 Add hold_quit arg. Rework to use just one, local, inev
14363 input_event. Store inev directly in fifo using
14364 kbd_buffer_store_event_hold. Update count in one place.
14365 Postpone call to gen_help_event until inev is stored; use new
14366 local do_help for this.
14367 Simplify handling of keysyms (consolidate common code). Fix bug
14368 where count was updated with nchars instead of nbytes.
14369 Remove local emacs_event in handing of ButtonPress event; just use
14370 inev instead (so no reason to copy it later).
14371 Remove `out' label. Rename label `ret' to `done'; add various
14372 `goto done' to clarify code flow in deeply nested blocks.
14373 (x_dispatch_event): Simplify as handle_one_xevent now calls
14374 kbd_buffer_store_event itself.
14375 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
14376 arg. Call handle_one_xevent with new arglist. Store event from
14377 x_session_check_input in fifo.
14378 [USE_GTK]: Setup current_hold_quit.
14379 Decrement handling_signal before unblocking input.
14380 (x_initialize) [USE_GTK]: Initialize current_count.
14382 * xterm.h (x_session_check_input): Fix prototype.
14384 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14386 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
14388 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
14391 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
14393 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
14394 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
14395 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
14396 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
14397 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
14398 (Bitmap): Remove typedef.
14399 (Pixmap): Change int to GWorldPtr.
14401 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14403 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14404 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
14405 New #define to extract 16-bit depth color components from unsigned
14406 long representation.
14407 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
14408 colors used for masks.
14409 (struct mac_display_info): Add color_p. Remove n_cbits.
14411 * macfns.c: Include sys/types.h and sys/stat.h.
14412 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
14413 Include QuickTime/QuickTime.h.
14414 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14415 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
14416 functions defined in macterm.c.
14417 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
14418 (ZPixmap): New #define for compatibility with xfns.c.
14419 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14420 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14421 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
14423 (four_corners_best, x_create_x_image_and_pixmap)
14424 (x_destroy_x_image, unwind_create_frame, x_disable_image)
14425 (x_edge_detection, init_color_table, colors_in_color_table)
14426 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
14427 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
14428 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
14429 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
14430 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
14432 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
14433 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
14434 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
14435 (x_set_cursor_type, Fxw_color_values, valid_image_p)
14436 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
14437 (x_alloc_image_color, clear_image_cache, lookup_image)
14438 (x_find_image_file, xbm_read_bitmap_file_data)
14439 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
14440 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
14441 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
14442 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
14443 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
14444 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
14445 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
14447 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
14448 #if 0. Free white_relief.gc and black_relief.gc.
14449 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
14450 New functions (from xfns.c).
14451 (Fx_create_frame): Record unwind_create_frame.
14452 (Fxw_display_color_p): Use dpyinfo->color_p.
14453 (Fx_display_grayscale_p, Fx_display_planes): Don't use
14455 (Fx_display_color_cells): Use dpyinfo->n_planes;
14456 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
14457 (Qheuristic, cross_disabled_images, emboss_matrix)
14458 (laplace_matrix): New variables (from xfns.c).
14459 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
14460 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
14461 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
14462 (image_background_transparent): New function (from xfns.c).
14463 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14464 (image_load_quicktime): Add declaration.
14465 [MAC_OSX] (image_load_quartz2d): Likewise.
14466 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
14467 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
14468 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
14469 (xbm_load_image_from_file, x_laplace_read_row)
14470 (x_laplace_write_row, pbm_read_file): Remove functions.
14471 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
14472 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
14473 (colors_in_color_table): Sync with xfns.c (although not used).
14474 (lookup_rgb_color): Don't lookup color table. Just do gamma
14476 (COLOR_INTENSITY): New #define (from xfns.c).
14477 (x_disable_image): New function (from xfns.c).
14478 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14479 (x_build_heuristic_mask): Sync with xfns.c.
14480 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14481 (HAVE_PBM): Remove #ifdef.
14482 (pbm_load): Sync with xfns.c. Set img->width and img->height
14483 before IMAGE_BACKGROUND.
14484 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
14485 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
14486 Don't enclose with #if HAVE_PNG.
14487 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
14488 symbol _CGImageCreateWithPNGDataProvider is defined.
14489 Otherwise use image_load_quicktime.
14490 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
14491 [HAVE_PNG] (png_load): Sync with xfns.c.
14492 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14493 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
14495 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
14496 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
14497 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
14498 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
14499 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
14500 (tiff_image_p, tiff_load): Don't enclose declarations with #if
14502 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
14503 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
14504 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
14505 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
14506 New functions (from xfns.c).
14507 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
14508 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
14509 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
14510 Don't enclose with #if HAVE_GIF.
14511 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
14512 animated gif. Otherwise use image_load_quicktime.
14513 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
14514 gif_DrawText to avoid conflict with QuickdrawText.h.
14515 [HAVE_GIF] (gif_load): Sync with xfns.c.
14516 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
14517 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
14518 Ghostscript is not supported yet).
14519 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
14520 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
14521 cross_disabled_images (from xfns.c). Remove #if 0 for supported
14522 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
14523 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
14524 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
14525 HAVE_PNG. Call EnterMovies to support animated gifs.
14526 Call init_image_func_pointer to bind a symbol
14527 _CGImageCreateWithPNGDataProvider if it is defined.
14529 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14530 (x_draw_bar_cursor): Sync declaration with xterm.c.
14531 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
14532 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
14534 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
14535 (mac_draw_line_to_pixmap, XCreatePixmap)
14536 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
14537 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
14539 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
14540 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
14541 Cast bits to char *.
14542 (reflect_byte): New function (from w32fns.c).
14543 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
14544 due to byte alignment.
14545 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
14546 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
14547 (XSetForeground): Remove static (now used in macfns.c).
14548 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
14549 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
14550 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
14551 (x_draw_glyph_string_box, x_draw_image_foreground)
14552 (x_draw_image_foreground_1, x_draw_image_glyph_string)
14553 (x_draw_stretch_glyph_string, x_draw_glyph_string)
14554 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
14556 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
14557 than the xterm.c version when a strictly horizontal or vertical
14559 (XTset_terminal_window): Add static.
14560 (x_make_frame_visible): Add UNBLOCK_INPUT.
14561 (x_free_frame_resources): New funcion (from xterm.c).
14562 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
14563 occurs in tool bar area.
14564 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
14565 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
14566 Initialize image cache.
14567 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
14568 Enclose unused functions with #if 0.
14569 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
14570 (decode_mac_font_name): New function to apply code conversions
14571 from a mac font name to an XLFD font name according to its script code.
14572 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
14573 font name to a mac font name according to REGISTRY and ENCODING fields.
14574 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
14575 whose name starts with `.'.
14576 (init_font_name_table): Use decode_mac_font_name. Add both
14577 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
14578 of a font is smJapanese.
14579 (mac_do_list_fonts): New function to list fonts that match a given
14581 (x_list_fonts, XLoadQueryFont): Use it.
14582 (XLoadQueryFont): Set rbearing field for each variable width
14583 character to avoid needless redraw.
14584 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
14586 2004-02-26 Kim F. Storm <storm@cua.dk>
14588 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
14589 as read_socket_hook handler on X aborts if buffer is too small
14590 and W32 handler doesn't always check buffer limit.
14592 * xdisp.c (handle_single_display_prop): Handle left-fringe and
14593 right-fringe similar to a display margin image. Specifically,
14594 the characters having the fringe prop are no longer shown, and
14595 we use IT_IMAGE/next_element_from_image with image_id = -1 to
14596 do this. Set fringe bitmap face_id in it->face_id.
14597 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
14598 still realize it->face (i.e. the fringe bitmap face).
14600 2004-02-25 Miles Bader <miles@gnu.org>
14602 * xdisp.c (check_it): Check string/string_pos consistency.
14603 (init_iterator): Initialize string-related fields properly.
14605 2004-02-11 Miles Bader <miles@gnu.org>
14607 * xdisp.c (produce_image_glyph): Force negative descents to zero.
14609 2004-02-10 Miles Bader <miles@gnu.org>
14611 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
14612 BLOCK_INPUT can be nested, so it doesn't make much sense.
14614 2004-02-24 Michael Mauger <mmaug@yahoo.com>
14616 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
14617 (xbm_read_bitmap_data): Use unsigned char for image data.
14619 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
14621 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
14623 2004-02-22 Jason Rumney <jasonr@gnu.org>
14625 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
14626 correctly over other bitmaps.
14628 2004-02-21 Eli Zaretskii <eliz@gnu.org>
14630 * emacs.c (USAGE1): Split into two halves.
14631 (USAGE2): Second half of the old USAGE1.
14632 (USAGE3): Rename from USAGE2.
14633 (USAGE4): Rename from USAGE3.
14635 2004-02-21 Juri Linkov <juri@jurta.org>
14637 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
14638 Fix --multibyte. Move --help, --version to USAGE2. Add alias
14639 --file. Fix -f, -l. Sort options. Untabify.
14640 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
14642 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
14644 * category.c (Fdefine_category, Fcategory_docstring)
14645 (Fget_unused_category, Fset_category_table)
14646 (Fcategory_set_mnemonics): Doc fixes.
14648 2004-02-20 Kim F. Storm <storm@cua.dk>
14650 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
14651 The following changes are relative to the 2004-01-21 revision.
14652 (NREAD_INPUT_EVENTS): Define as max number of input events to read
14653 in one call to read_socket_hook. Value is 8.
14654 (read_avail_input): Separate and rework handling of read_socket_hook
14655 and non-read_socket_hook cases. Use smaller input_event buffer
14656 in read_socket_hook case, and repeat if full buffer is read.
14657 Use new local variable 'discard' to skip input after C-g.
14658 In non-read_socket_hook case, just use a single input_event, and
14659 call kbd_buffer_store_event on the fly for each character.
14661 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14663 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
14664 Remove unused `gu' alternative.
14666 2004-02-19 Andreas Schwab <schwab@suse.de>
14668 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
14671 2004-02-18 Kim F. Storm <storm@cua.dk>
14673 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
14676 2004-02-17 Kim F. Storm <storm@cua.dk>
14678 * xdisp.c (fast_find_position): Fix return value of new version;
14679 it was inverted compared to the 21.1 version.
14680 (get_window_cursor_type): Don't look at glyph if NULL.
14681 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
14683 * keyboard.c: Rework previous change; it didn't consider that the
14684 buf array was allocated on the stack.
14685 (prev_read): Remove variable.
14686 (read_avail_input_buf): New static event buffer array.
14687 (in_read_avail_input): New static variable to handle re-entrancy.
14688 (read_avail_input): Change buf to pinter to read_avail_input_buf.
14689 Use in_read_avail_input to handle re-entrance; when re-entered,
14690 fully initialize and use tmp_buf array instead of read_avail_input_buf.
14691 Do not initialize read_avail_input_buf in full here; instead assume it
14692 is always cleared on entry. To ensure that, we clear (just) the
14693 entries that were used before we return.
14694 (init_keyboard): Initialize read_avail_input_buf here.
14696 2004-02-16 Jesper Harder <harder@ifa.au.dk>
14698 * cmds.c (Fend_of_line): Doc fix.
14700 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
14702 * keyboard.c (prev_read): New static variable.
14703 (read_avail_input): Use it to zero out only those slots in buf[]
14704 that were used last time we were called.
14706 2004-02-16 Eli Zaretskii <eliz@gnu.org>
14708 * Makefile.in (obj): Move fringe.o from here...
14709 (XOBJ, MAC_OBJ): ...to here.
14711 2004-02-16 Stephen Eglen <stephen@gnu.org>
14713 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
14715 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
14717 * data.c (Fbyteorder):
14718 * fringe.c (Fdefine_fringe_bitmap):
14719 * xdisp.c (handle_single_display_prop):
14720 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
14722 2004-02-16 Jason Rumney <jasonr@gnu.org>
14724 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
14726 2004-02-15 Steven Tamm <steventamm@mac.com>
14728 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
14729 controlling emulation of a three button mouse with option and
14731 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
14732 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
14734 2004-02-15 Kim F. Storm <storm@cua.dk>
14736 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
14738 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
14739 Perform byte-swapping.
14741 2004-02-14 Kim F. Storm <storm@cua.dk>
14743 * dispextern.h (struct draw_fringe_bitmap_params): Change member
14744 bits from char to short to facilitate wider bitmaps.
14745 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
14748 * fringe.c (struct fringe_bitmap): Change member bits from char to
14749 short to facilitate 16 bits wide bitmaps. Modify all standard
14750 bitmaps accordingly.
14751 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
14752 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
14753 (draw_fringe_bitmap): Ditto.
14754 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
14755 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
14756 handle up to 16 bits wide bitmaps.
14757 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
14758 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
14760 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
14761 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
14762 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
14764 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
14765 so it is no longer necessary to expand them here.
14767 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
14769 2004-02-12 Kim F. Storm <storm@cua.dk>
14771 * window.c (Fwindow_fringes): Doc fix.
14773 2004-02-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14775 * xselect.c (x_get_foreign_selection): Add new optional parameter
14777 (Fx_get_selection_internal): Ditto, pass time_stamp to
14778 x_get_foreign_selection.
14780 * data.c (Fbyteorder): New function.
14782 2004-02-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14784 * atimer.c: Move include stdio.h to same place as in other files.
14786 * region-cache.c: Ditto.
14792 2004-02-09 Sam Steingold <sds@gnu.org>
14794 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
14796 2004-02-09 Kim F. Storm <storm@cua.dk>
14798 * fringe.c: New file. Move original fringe related declarations
14799 and code from dispextern.h and xdisp.c here.
14800 Rework code to support user defined fringe bitmaps, redefining
14801 standard bitmaps, ability to overlay user defined bitmap with
14802 overlay arrow bitmap, and add faces to bitmaps.
14803 (Voverflow_newline_into_fringe): Declare here.
14804 (enum fringe_bitmap_align): New enum.
14805 (..._bits): All bitmaps are now defined without bitswapping; that
14806 is now done in init_fringe_once (if necessary).
14807 (standard_bitmaps): New array with specifications for the
14808 standard fringe bitmaps.
14809 (fringe_faces): New array.
14810 (valid_fringe_bitmap_id_p): New function.
14811 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
14812 (draw_fringe_bitmap): New function which draws fringe bitmap,
14813 possibly overlaying bitmap with cursor in right fringe or the
14814 overlay arrow in the left fringe.
14815 (update_window_fringes): Do not handle overlay arrow here.
14816 Compare and copy fringe bitmap faces.
14817 (init_fringe_bitmap): New function.
14818 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
14819 define and destroy user defined fringe bitmaps.
14820 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
14821 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
14822 (syms_of_fringe): New function. Defsubr new DEFUNs.
14823 DEFVAR_LISP Voverflow_newline_into_fringe.
14824 (init_fringe_once, init_fringe): New functions.
14825 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
14827 * Makefile.in (obj): Add fringe.o.
14828 (fringe.o): New dependencies.
14830 * dispextern.h (FRINGE_ID_BITS): New definition for number of
14831 bits allocated to hold a fringe number. Increase number of bits
14832 from 4 to 8 to allow user defined fringe bitmaps.
14833 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
14834 left_user_fringe_face_id, right_user_fringe_bitmap,
14835 right_user_fringe_face_id.
14836 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
14837 Move to new file fringe.c.
14838 (MAX_FRINGE_BITMAPS): Define here.
14839 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
14840 and overlay_p. Change member which to int.
14841 (struct redisplay_interface): New members define_fringe_bitmap
14842 and destroy_fringe_bitmap.
14843 (valid_fringe_bitmap_id_p): Add prototype.
14844 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
14846 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
14848 (update_frame): Do flush_display if force_flush_display_p to
14849 ensure display (specifically fringes) are updated in a timely
14850 manner when resizing the frame by dragging the mouse.
14851 (update_window_line): Update row if overlay arrow changed.
14852 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
14853 or overlay arrow changed.
14855 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
14856 syms_of_fringe, and init_fringe.
14858 * frame.h (struct frame): New member force_flush_display_p.
14860 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
14863 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
14864 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
14865 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
14866 Use cursor color for displaying cursor in fringe.
14867 (x_redisplay_interface): Add null handlers for
14868 define_fringe_bitmap and destroy_fringe_bitmap functions.
14870 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
14871 xterm.c to handle overlayed fringe bitmaps and to use cursor color
14872 for displaying cursor in fringe.
14873 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
14874 specific functions to define and destroy fringe bitmaps in fringe_bmp.
14875 (w32_redisplay_interface): Add them to redisplay_interface.
14876 (w32_term_init): Call w32_init_fringe instead of explicitly
14877 defining fringe bitmaps in fringe_bmp array.
14878 (x_delete_display): Call w32_reset_fringes instead of explicitly
14879 destroying fringe bitmaps in fringe_bmp array.
14881 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
14882 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
14883 (continued_bits, continuation_bits, ov_bits, first_line_bits)
14884 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
14885 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
14886 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
14887 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
14888 Move fringe handling vars and code to new file fringe.c.
14889 (handle_display_prop): Handle left-fringe and right-fringe
14890 display properties; store user fringe bitmaps in iterator.
14891 (move_it_in_display_line_to): Handle cursor in fringe at eob.
14892 (clear_garbaged_frames): Set force_flush_display_p if resized.
14893 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
14894 (display_line): Handle cursor in fringe at eob.
14895 (display_line): Set row user fringe bitmaps from iterator.
14897 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
14898 Use cursor color for displaying cursor in fringe.
14899 (x_redisplay_interface): Add null handlers for
14900 define_fringe_bitmap and destroy_fringe_bitmap functions.
14902 2004-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14904 * macfns.c (Fx_change_window_property): Make doc string and
14905 parameters same as for X version.
14907 * w32fns.c (Fx_change_window_property): Ditto.
14909 2004-02-07 Kim F. Storm <storm@cua.dk>
14911 * xdisp.c (hscroll_window_tree): Position cursor near to right
14912 margin in hscrolled window when jumping to end of line (rather
14913 than centering cursor).
14915 * process.c (wait_reading_process_input): Don't do adaptive read
14916 buffering if waiting for a specific process.
14918 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
14920 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
14921 (Fread_minibuffer, Feval_minibuffer)
14922 (Fread_string, Fread_no_blanks_input)
14923 (Fcompleting_read): Doc fixes.
14924 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
14925 completion-regexp-list. Define Qcase_fold_search and staticpro it.
14926 (read_minibuf): Fix initial comment.
14927 (Ftry_completion, Fall_completions, Ftest_completion): Bind
14928 case-fold-search to the value of completion-ignore-case when
14929 checking completion-regexp-list.
14930 (Fdisplay_completion_list): Make it handle arguments that are
14933 2004-02-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14935 * xterm.h: Add declaration of free_frame_menubar.
14937 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
14938 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
14939 (Fx_change_window_property): Add declaration of parameters type and
14940 format. Remove unused variable cons.
14942 * xselect.c: Include stdio.h.
14944 2004-02-05 Kenichi Handa <handa@m17n.org>
14946 * fns.c (Fset_char_table_range): Fix previous change.
14948 * buffer.c (Fset_buffer_multibyte): Fix docstring.
14950 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
14952 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
14954 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
14956 * keymap.c (Vmouse_events): Rename from Vmenu_events.
14957 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
14959 2004-02-04 Kenichi Handa <handa@m17n.org>
14961 * fns.c (Fset_char_table_range): Handle charsets ascii,
14962 eight-bit-control, and eight-bit-graphic correctly.
14964 2004-02-03 Jason Rumney <jasonr@gnu.org>
14966 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
14968 * w32fns.c (x_to_w32_font): Likewise.
14970 2004-02-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
14972 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
14973 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
14975 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
14978 * xselect.c: Include termhooks.h and X11/Xproto.h.
14979 (x_check_property_data, x_fill_property_data)
14980 (x_property_data_to_lisp, mouse_position_for_drop)
14981 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
14982 (Fx_send_client_event): Move here from xfns.c.
14983 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
14985 * xfns.c (x-send-client-message): Move to xselect.c.
14986 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
14988 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
14989 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
14990 if vector_ret_p is true.
14991 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
14993 2004-02-02 Eli Zaretskii <eliz@gnu.org>
14995 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
14996 basename of FILE relative to it, not FILE itself.
14998 2004-02-02 Kenichi Handa <handa@m17n.org>
15000 * coding.c (coding_restore_composition): Check invalid
15001 composition data more rigidly.
15003 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
15005 * fileio.c (Fread_file_name_internal): Correctly handle the case
15006 where insert-default-directory is nil.
15007 (Fread_file_name): Always return an empty string if the user exits
15008 with an empty minibuffer. Adapt the docstring accordingly.
15009 (syms_of_fileio): Adapt the docstring of insert-default-directory
15010 to the change in Fread_file_name.
15012 2004-01-29 Eli Zaretskii <eliz@gnu.org>
15014 * alloca.c [!alloca]: Fix the prototype for xfree.
15016 2004-01-29 Kenichi Handa <handa@m17n.org>
15018 * fns.c (string_char_to_byte): Optimize for ASCII only string.
15019 (string_byte_to_char): Likewise.
15021 2004-01-28 Peter Runestig <peter@runestig.com>
15023 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
15025 2004-01-27 Steven Tamm <steventamm@mac.com>
15027 * unexmacosx.c (unexec_copy): Do not copy more than was
15028 requested to prevent overwriting during unexec.
15030 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15032 * process.c (sigchld_handler): Add comment about not calling malloc.
15034 * process.h: Add extern to synch_process_termsig.
15036 2004-01-27 Steven Tamm <steventamm@mac.com>
15038 * macterm.c (make_mac_frame, make_mac_terminal_frame):
15039 Move setting of scroll bars from make_mac_frame to
15040 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
15042 2004-01-26 Richard M. Stallman <rms@gnu.org>
15044 * search.c (Freplace_match): Handle nonexistent
15045 back-references properly.
15047 2004-01-03 Richard M. Stallman <rms@gnu.org>
15049 * window.c (decode_any_window): New function.
15050 (Fwindow_height, Fwindow_width, Fwindow_edges)
15051 (Fwindow_pixel_edges, Fwindow_inside_edges)
15052 (Fwindow_inside_pixel_edges): Use decode_any_window.
15054 2004-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15056 * process.h: synch_process_termsig new variable.
15058 * callproc.c: Define synch_process_termsig.
15059 (Fcall_process): Initiate synch_process_termsig to zero and
15060 check if non-zero and get signal name after subprocess has ended.
15062 * process.c (sigchld_handler): Set synch_process_termsig
15063 if terminated by a signal. synch_process_death setting removed.
15065 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
15067 2004-01-26 Andreas Schwab <schwab@suse.de>
15069 * print.c (print_preprocess): Declare size as EMACS_INT to not
15071 (print_object): Likewise.
15072 * alloc.c (Fpurecopy): Likewise.
15074 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
15076 * window.c (Fwindow_minibuffer_p): Doc fix.
15078 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
15080 * editfns.c (Fformat): Make both passes accept the same set of flags.
15082 2004-01-23 Kenichi Handa <handa@m17n.org>
15084 * fns.c (Fmd5): If OBJECT is a buffer different from the current
15085 one, set buffer to OBJECT temporarily.
15087 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15089 * keyboard.c (kbd_buffer_gcpro): Remove.
15090 (kbd_buffer_store_event, clear_event, Fdiscard_input)
15091 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
15092 Don't initialize and/or maintain the variable any more. It was made
15093 redundant by my commit of 2003-06-15.
15095 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
15097 2004-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15099 * lisp.h: Add undef DECL_ALIGN.
15101 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15103 * process.c (wait_reading_process_input) [SYNC_INPUT]:
15104 Check interrupt_input_pending explicitly.
15106 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
15108 * keyboard.c (handle_async_input): New fun,
15109 extracted from input_available_signal.
15110 (input_available_signal, reinvoke_input_signal): Use it.
15112 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
15114 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
15116 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
15117 manipulation macros for when tags are in the lower bits.
15118 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
15119 (DECL_ALIGN): New macro.
15122 * lisp.h [ENABLE_CHECKING]: Don't force union type.
15124 * s/darwin.h (__attribute__): Remove outdated workaround.
15126 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
15128 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
15129 Don't check range of malloc address.
15130 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
15132 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
15134 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
15136 2004-01-19 Kenichi Handa <handa@m17n.org>
15138 * fontset.c (fontset_font_pattern): Fix previous change.
15140 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
15142 * xdisp.c (Voverflow_newline_into_fringe)
15143 (move_it_in_display_line_to, redisplay_internal)
15144 (update_window_fringes, redisplay_window, display_line, window):
15145 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
15146 that it compiles without a window-system.
15147 * dispnew.c (direct_output_for_insert, update_window): Likewise.
15149 2004-01-16 Kim F. Storm <storm@cua.dk>
15151 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
15153 * buffer.c (init_buffer_once): Set buffer_defaults and
15154 buffer_local_flags for indicate_buffer_boundaries.
15155 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
15156 default- variable for it.
15158 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
15159 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
15160 New members exact_window_width_line_p and cursor_in_fringe_p for
15161 overflowing newlines into right fringe.
15162 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
15163 and indicate_bottom_line_p for buffer boundaries and scrolling.
15164 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
15165 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
15166 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
15167 and HOLLOW_SQUARE_BITMAP.
15168 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
15171 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
15172 instead of related indicator fields.
15173 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
15174 (direct_output_for_insert): Handle exact width lines like
15175 contined lines. Call update_window_fringes.
15176 (update_window): Call update_window_fringes.
15177 (scrolling_window): Don't skip desired rows with changed bitmaps.
15178 Check if fringe bitmaps changes when assigning scrolled rows.
15180 * xdisp.c (Voverflow_newline_into_fringe): New variable.
15181 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
15182 (move_it_in_display_line_to): Overflow newline into fringe for
15183 rows that are exactly as wide as the window.
15184 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
15185 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
15186 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
15187 (fringe_bitmaps): Add new bitmaps.
15188 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
15189 Select proper bitmap for cursor in fringe when appropriate.
15190 Handle alignment of bitmap to top or bottom of row.
15191 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
15192 done by update_window_fringes.
15193 (update_window_fringes, draw_window_fringes): New functions.
15194 (redisplay_internal): Call update_window_fringes in case only
15195 cursor row is updated.
15196 (redisplay_window): Call update_window_fringes.
15197 Explicitly call draw_window_fringes if redisplay was done using
15198 the current matrix or the overlay arrow is in the window.
15199 (try_window_reusing_current_matrix): Mark scrolled rows for
15200 fringe update (to update buffer-boundaries / scrolling icons).
15201 (find_last_unchanged_at_beg_row): Handle exact width lines line
15203 (display_line): Overflow newline into fringe for rows that are
15204 exactly as wide as the window. Don't append space for newline
15206 (notice_overwritten_cursor): Explicitly clear cursor bitmap
15207 in fringe as if it had been overwritten.
15208 (erase_phys_cursor): Erase cursor bitmap in fringe.
15209 (syms_of_xdisp): Mark show-trailing-whitespace and
15210 void-text-area-pointer as user options.
15211 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
15213 * xterm.c (x_update_window_end): Call draw_window_fringes.
15214 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15215 in row instead of actually drawing fringe bitmaps.
15216 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15217 (x_draw_window_cursor): Draw cursor in fringe.
15219 * w32term.c (x_update_window_end): Call draw_window_fringes.
15220 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15221 in row instead of actually drawing fringe bitmaps.
15222 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15223 (w32_draw_window_cursor): Draw cursor in fringe.
15225 * macterm.c (x_update_window_end): Call draw_window_fringes.
15226 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15227 in row instead of actually drawing fringe bitmaps.
15228 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15229 (mac_draw_window_cursor): Draw cursor in fringe.
15231 2004-01-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15233 * xterm.c (handle_one_xevent): Don't handle characters that are part
15234 of an old style (XLookupString) compose sequence.
15236 2004-01-15 Kenichi Handa <handa@m17n.org>
15238 * search.c (Freplace_match): Use make_multibyte_string or
15239 make_unibyte_string according to the buffer multibyteness.
15241 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
15243 * alloc.c (struct interval_block, struct string_block)
15244 (struct symbol_block, struct marker_block, live_string_p)
15245 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
15246 Better preserve alignment for objects in blocks.
15247 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
15249 * lread.c (defvar_per_buffer): Remove dead declaration.
15251 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
15254 2004-01-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15256 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
15257 if a key press should pop down. Only pop down if a key is pressed
15258 outside the menu/dialog.
15259 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
15260 popup_get_selection.
15261 (create_and_show_dialog): Pass 1 for down_on_keypress to
15262 popup_get_selection.
15264 2004-01-11 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15266 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
15267 BLOCK/UNBLOCK_INPUT.
15269 2004-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15271 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
15274 2004-01-08 Kenichi Handa <handa@m17n.org>
15276 * editfns.c (Fformat): Fix '&' to '&&'.
15278 2004-01-08 Andreas Schwab <schwab@suse.de>
15280 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
15281 size if PSEUDOVECTOR_FLAG is set.
15283 2004-01-07 Kenichi Handa <handa@m17n.org>
15285 * charset.c (Fdeclare_equiv_charset): Fix docstring.
15287 * fontset.c (fontset_ref_via_base): Fix previous change.
15289 2004-01-07 Kim F. Storm <storm@cua.dk>
15291 * process.c (read_process_output): Only activate adaptive
15292 buffering if we read less than 256 bytes at a time.
15294 2004-01-06 Kim F. Storm <storm@cua.dk>
15296 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
15297 object and image object. Return glyph width and height.
15298 (mode_line_string, marginal_area_string): Ditto.
15300 * dispextern.h (buffer_posn_from_coords, mode_line_string)
15301 (marginal_area_string): Fix prototypes.
15303 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
15304 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
15305 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
15307 * keyboard.c (make_lispy_position): Use modified mode_line_string,
15308 buffer_posn_from_coords, and marginal_area_string functions to
15309 include both string object and image object in the lispy position.
15310 Also add actual glyph width and height to position.
15311 (read_key_sequence): Use real buffer position from mouse
15312 event to find keymap property even when click is in marginal area.
15314 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
15315 mode_line_string and marginal_area_string functions to handle
15316 both string object and image object properties.
15318 2004-01-06 Andreas Schwab <schwab@suse.de>
15320 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
15323 2004-01-02 Andreas Schwab <schwab@suse.de>
15325 * macterm.c (emacs_options, x_initialized, same_x_server):
15326 Remove unused (and duplicated) definitions.
15328 2004-01-02 Kim F. Storm <storm@cua.dk>
15330 * process.h (struct Lisp_Process): New members for adaptive read
15331 buffering: adaptive_read_buffering, read_output_delay, and
15334 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
15335 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
15336 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
15337 (process_output_delay_count, process_output_skip): New vars.
15338 (Vprocess_adaptive_read_buffering): New variable.
15339 (make_process): Initialize adaptive read buffering members.
15340 (Fstart_process): Set adaptive_read_buffering member.
15341 (deactivate_process): Cleanup adaptive read buffering.
15342 (wait_reading_process_input): Temporarily omit delayed
15343 subprocesses from the set of file descriptors to read from;
15344 adjust the select timeout if we skipped any subprocesses.
15345 (read_process_output): Increase adaptive read buffering delay if
15346 we read less than a full buffer; reduce delay when we read a
15348 (send_process): Simplify using local Lisp_Process var.
15349 Reset adaptive read buffering delay after write.
15350 (init_process): Initialize process_output_delay_count and
15351 process_output_skip.
15352 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
15354 2004-01-01 Jason Rumney <jasonr@gnu.org>
15356 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
15358 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
15360 * print.c (Ferror_message_string): Add hyperlink in the docstring
15361 to the definition of `signal' in the Elisp manual.
15362 * eval.c (Fsignal): Ditto.
15364 2003-12-29 James Clark <jjc@jclark.com>
15366 * fns.c (internal_equal): Return t for two NaN arguments.
15368 2003-12-29 Richard M. Stallman <rms@gnu.org>
15370 * data.c (store_symval_forwarding): Handle setting
15371 default-fill-column, etc., by changing the value in
15372 buffers that use the default.
15374 * minibuf.c (Fset_minibuffer_window): Doc fix.
15376 * fileio.c (choose_write_coding_system): Ignore auto_saving
15377 if using the visited file for auto saves.
15378 (Fwrite_region): Don't update SAVE_MODIFF
15379 if auto-saving in visited file.
15381 2003-12-29 Kenichi Handa <handa@m17n.org>
15383 * dispextern.h (face_font_available_p): Extern it.
15385 * fontset.c (Voverriding_fontspec_alist): New variable.
15386 (lookup_overriding_fontspec): New function.
15387 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
15388 (fontset_font_pattern): Likewise.
15389 (regulalize_fontname): New function.
15390 (Fset_fontset_font): Call regulalize_fontname.
15391 (Fset_overriding_fontspec_internal): New function.
15392 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
15393 Defsubr Sset_overriding_fontspec_internal.
15395 * xfaces.c (face_font_available_p): New function.
15397 2003-12-28 Richard M. Stallman <rms@gnu.org>
15399 * buffer.c (Fother_buffer): Don't crash if BUF is nil
15400 or if its name is nil.
15402 * buffer.c (Fkill_buffer): Don't delete auto-save file
15403 if it's the same as the visited file.
15405 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
15407 * coding.c (Fcheck_coding_system): Doc fix.
15409 2003-12-28 Kim F. Storm <storm@cua.dk>
15411 * Makefile.in (eval.o): Depend on dispextern.h.
15413 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
15414 image glyph using image's ascent.
15415 (mode_line_string): Return image glyph as object clicked on.
15416 Adjust y0 for image glyph using image's ascent.
15418 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
15419 (struct glyph): New members, ascent and descent. Used to save
15420 this glyph's ascent and descent, instead of having.
15421 (struct glyph): Declare member face_id using FACE_ID_BITS.
15422 (find_hot_spot): Add prototype.
15424 * keyboard.c (Qimage): Remove extern (now in lisp.h).
15425 (QCmap): Declare extern.
15426 (make_lispy_position): When position is inside image hot-spot,
15427 use hot-spot element's id as posn element.
15429 * lisp.h (IMAGEP): New macro to test for image object type.
15430 (Qimage): Declare extern.
15432 * macfns.c (Qimage): Remove extern (now in lisp.h).
15433 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15435 * macterm.c (Qface, Qmouse_face): Remove unused externs.
15437 * w32fns.c (Qimage): Remove extern (now in lisp.h).
15438 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15440 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
15442 * w32term.c (Qface, Qmouse_face): Remove unused externs.
15444 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
15446 (Qrelative_width, Qalign_to): Remove unused variables.
15447 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
15448 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
15450 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
15451 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
15453 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
15454 than row's ascent and height, to get sensible height on tall rows.
15455 (build_desired_tool_bar_string): Remove Qimage extern.
15456 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
15457 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
15458 image glyph is alone on the last line.
15459 (append_glyph, append_composite_glyph, produce_image_glyph)
15460 (append_stretch_glyph): Set glyph's ascent and descent.
15461 (on_hot_spot_p): New function to check if position is inside an
15462 rectangular, circular, or polygon-shaped image hot-spot,
15463 (find_hot_spot): New function to search for image hot-spot.
15464 (Flookup_image_map): New defun to search for image hot-spot.
15465 (define_frame_cursor1): New aux function to determine frame
15467 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
15468 `pointer' text property and :pointer image property to control
15469 frame pointer shape. Detect image hot-spots for pointer and
15470 help_echo properties. Use define_frame_cursor1.
15471 (note_mouse_highlight): Use Vvoid_text_area_pointer.
15472 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
15473 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
15474 Vshow_text_cursor_in_void.
15476 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
15478 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
15479 (Qimage): Remove extern (now in lisp.h).
15480 (valid_image_p, parse_image_spec): Use IMAGEP macro.
15482 * xmenu.c (show_help_event): Remove unused code.
15484 * xterm.c (Qface, Qmouse_face): Remove unused externs.
15485 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
15486 row's ascent and descent, to get a sensible height on tall rows.
15488 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
15490 * minibuf.c (Fcompleting_read): Undo previous change.
15492 2003-12-25 Lars Hansen <larsh@math.ku.dk>
15494 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
15495 Arguments GCPRO'ed in call to file name handler.
15497 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
15499 * termcap.c (tgetst1): Scan for "%pN"; if all
15500 N are continuous in [1,9], remove all "%pN".
15502 2003-12-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15504 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
15506 * xfaces.c (lface_fully_specified_p): Take into account that
15507 MAC OS always have unspecified stipple.
15509 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
15511 * tparam.c (tparam1): Add handling for `%pN', which
15512 means use param N for the next substitution.
15514 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
15516 * xfaces.c (Fcolor_gray_p): Fix omission bug:
15517 In case `frame' is nil, consult the selected frame.
15518 (Fcolor_supported_p): Likewise.
15520 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
15522 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
15525 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
15526 and an integer. Adapt the introductory comment accordingly.
15527 (Fread_from_minibuffer): Delete code moved into read_minibuf.
15529 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
15531 (Fcompleting_read): Delete code moved into read_minibuf.
15532 (Ftest_completion): Make it handle obarrays and hash tables correctly.
15534 2003-12-03 Kenichi Handa <handa@m17n.org>
15536 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
15539 2003-12-01 Kenichi Handa <handa@m17n.org>
15541 * composite.c (syms_of_composite): Don't make the compostion hash
15544 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
15546 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
15547 * textprop.c (Fget_char_property_and_overlay): New function.
15548 (syms_of_textprop): Defsubr it.
15550 2003-11-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15552 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
15553 to compile on terminal configuration.
15555 * fileio.c (Fread_file_name): Check use_file_dialog also before
15556 calling Fx_file_dialog.
15558 * fns.c (use_file_dialog): New variable.
15559 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
15561 2003-11-29 Kim F. Storm <storm@cua.dk>
15563 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
15564 (syms_of_msdos): Don't intern and staticpro them.
15566 2003-11-27 Kim F. Storm <storm@cua.dk>
15568 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
15569 coordinates relative to glyph at posn. If glyph is an image,
15570 return that as object at posn. Callers changed.
15571 (mode_line_string, marginal_area_string): Calculate and return
15572 pixel coordinates relative to glyph. Callers changed.
15574 * dispextern.h (buffer_posn_from_coords, mode_line_string)
15575 (marginal_area_string): Fix prototypes.
15576 (window_box_left_offset, window_box_right_offset): Add prototypes.
15578 * frame.h (get_specified_cursor_type, get_window_cursor_type):
15581 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
15583 * keyboard.c (make_lispy_position): Add x and y coordinates
15584 relative to the current glyph as 7th element of position.
15585 If glyph is an image, return it in the object element.
15586 (read_key_sequence): Skip checks for keymap property in cases
15587 where POSN_STRING is not a string (e.g. an image).
15589 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
15590 (Vshow_text_cursor_in_void): New variable.
15591 (glyph_to_pixel_coords): Don't use negative hpos.
15592 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
15593 (append_stretch_glyph): Change ascent arg to be actual value
15594 in pixels rather than ratio to height. Callers changed.
15595 (calc_pixel_width_or_height): New aux function, implementing
15596 pixel based artihmetic for glyph widths and heights.
15597 (produce_stretch_glyph): Use calc_pixel_width_or_height for
15598 :width, :height, :align-to, and :ascent, thus allowing these to
15599 be specified in pixels as well as multiples of characters.
15600 Don't produce stretch glyphs with zero width or height.
15601 (get_specified_cursor_type): Declare static.
15602 (get_window_cursor_type): Declare static. Add glyph arg to be
15603 able to know when cursor is on an image; always substitute
15604 hollow-box cursor for filled-box cursor on images, to avoid
15605 negative images and flicker when blinking the cursor.
15606 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
15607 (note_mode_line_or_margin_highlight): Use non-text cursor rather
15608 than vertical scroll-bar cursor in display margins.
15609 (note_mouse_highlight): Use non-text cursor rather than text
15610 cursor in fringes and over images in the text area.
15611 Use non-text cursor when mouse pointer is outside editable text,
15612 i.e. in the void after end-of-line or end-of-buffer; this was
15613 already done for W32, but is now standard for all systems --
15614 user can toggle show-text-cursor-in-void to get old behaviour.
15615 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
15616 Vdisplay_pixels_per_inch.
15618 2003-11-25 Andreas Schwab <schwab@suse.de>
15620 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
15621 EMACS_INT to not lose bits.
15622 (Ffillarray): Don't set bits beyond the size of a bool vector.
15624 2003-11-25 Kim F. Storm <storm@cua.dk>
15626 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
15627 define this defun on systems that cannot use stderr as lvalue.
15629 2003-11-24 Gerd Moellmann <gerd@gnu.org>
15631 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
15632 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
15633 ld's default is incompatible with unexec.
15635 2003-11-23 Kim F. Storm <storm@cua.dk>
15637 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
15638 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
15639 (Fforce_window_update): New defun.
15640 (syms_of_window): Defsubr it.
15641 (Fset_window_margins, Fset_window_fringes): Doc fix.
15643 * print.c (Fredirect_debugging_output): New defun.
15644 (syms_of_print): Defsubr it.
15646 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
15648 * fns.c (Fset_char_table_parent): Doc fix.
15650 2003-11-22 Kim F. Storm <storm@cua.dk>
15652 * dispnew.c (buffer_posn_from_coords): Return actual row/column
15653 for glyph clicked on, rather than (unused) pixel positions.
15654 (mode_line_string, marginal_area_string): Change X and Y args to
15655 pointers for returning actual row/column for glyph clicked on.
15656 Simplify and optimize loops.
15658 * dispextern.h (mode_line_string, marginal_area_string):
15661 * keyboard.c (make_lispy_position): New function for generating
15662 mouse click positions from frame and pixel coordinates.
15663 Enhanced to return buffer position and actual row/column for
15664 events outside the text area using updated mode_line_string and
15665 marginal_area_string functions.
15666 Return left-fringe and right-fringe clicks as such, rather than
15667 clicks in text area.
15668 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
15669 pixel_to_glyph_coords, as we never use the results.
15670 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
15671 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
15672 Eliminate unused code in WHEEL_EVENT handling.
15673 (make_lispy_movement): Use make_lispy_position.
15675 * window.c (coordinates_in_window): Remove redundant tests.
15676 Fix returned X pixel value for left-margin.
15678 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
15679 mode_line_string and marginal_area_string parameters.
15681 2003-11-22 Lars Hansen <larsh@math.ku.dk>
15683 * w32.c (struct the_group, getgrgid): Add.
15684 * mac.c (struct my_group, getgrgid): Add.
15686 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
15688 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
15690 2003-11-21 Lars Hansen <larsh@math.ku.dk>
15692 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
15693 include in call to file name handler. Optionally translate numeric
15694 UID and GID to strings. Update docstring.
15695 (directory_files_internal): Add parameter ID-FORMAT.
15696 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
15697 include in call to file name handler and call to
15698 directory_files_internal. Update Docstring.
15699 (Fdirectory_files): Add dummy parameter in call to
15700 directory_files_internal.
15701 * lisp.h (Qinteger): Add.
15702 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
15703 (Ffile_attributes): Add parameter.
15704 * data.c (Qinteger): Export.
15706 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
15708 * fns.c (Freverse, Fnreverse): Doc fixes.
15710 2003-11-19 Kim F. Storm <storm@cua.dk>
15712 * xdisp.c (init_iterator): Initialize it->start to position
15713 before reseating (in case start position is invisible).
15714 (init_to_row_start): Set it->start to row-start.
15715 (redisplay_window): Accept optional_new_start if start position
15716 is invisible (in which case IT_CHARPOS overshoots PT).
15717 (display_line): Setup row->start from it->start (rather than
15718 it->current which is wrong if first char on line is invisible).
15719 When done, reseat it->start to it->current (= start of next row).
15720 (expose_area): Fix exposure of text area when first char (e.g. TAB)
15721 is only partially visible.
15723 * dispextern.h (struct it): New member start.
15725 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
15727 * alloc.c (make_float, Fcons): Clear the markbit at init time.
15728 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
15729 of block_index outside of the macro call.
15730 (Fgarbage_collect): Remove null code.
15732 * m/amdx86-64.h: Don't redefine XPNTR.
15734 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
15737 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
15738 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
15739 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
15741 * lisp.h (VALMASK): Only define for non-union type.
15743 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
15744 (XTYPE): Define unconditionally.
15745 (XSETTYPE): Remove one more remnant.
15746 (EQ): Define differently for the union and non-union cases.
15747 (INTMASK): New bit mask.
15748 (struct Lisp_Marker): Move down to prepare for upcoming patch.
15749 (GC_EQ): Delegate to EQ.
15751 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
15753 2003-11-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15755 * xterm.c (x_window_to_scroll_bar): Move check of display to
15756 where window_id is compared.
15758 2003-11-17 Kim F. Storm <storm@cua.dk>
15760 * dispextern.h (struct it): New member first_vpos.
15762 * xdisp.c (start_display): Set it->first_vpos.
15763 (try_window_id): Use first_vpos to start display in first _text_
15764 line if no reusable lines at start of window with header line.
15766 2003-11-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15768 * w32fns.c (XPutPixel):
15769 * w32bdf.c (w32_init_bdf_font):
15770 * sunfns.c (sel_read):
15771 * process.c (Fmake_network_process):
15772 * frame.c (store_frame_param):
15773 * fontset.c (Fset_fontset_font):
15774 * emacs.c (shut_down_emacs):
15775 * ccl.c (ccl_driver): Remove period at end of error message.
15777 * config.in: Regenerate.
15779 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15780 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15781 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
15782 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
15783 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
15785 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
15787 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
15788 (XTmouse_position, handle_one_xevent): Pass Display* to
15789 x_window_to_scroll_bar.
15790 (x_window_to_scroll_bar): Take a Display* argument.
15791 Check that display for frame is equal to Display* argument.
15792 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
15793 x_display_info_for_display instead. Use Display in xev instead
15795 (x_dispatch_event): Call x_display_info_for_display.
15796 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
15797 (x_connection_closed): Call xg_display_close for GTK.
15798 (x_term_init): Call xg_display_open for additional displays.
15799 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
15802 * xmenu.c (single_menu_item, mouse_position_for_popup)
15803 (x_activate_menubar): Formatting adjustments.
15805 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
15808 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
15809 (xg_display_close, xg_create_default_cursor)
15810 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
15812 (xg_left_ptr_cursor): Remove.
15813 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
15815 (xg_win_to_widget): Take Display* argument, call
15816 gdk_xid_table_lookup_for_display.
15817 (xg_create_frame_widgets, xg_get_file_name, create_menus)
15818 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
15819 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
15820 in FRAME_X_DISPLAY_INFO.
15821 (xg_get_scroll_id_for_window): Take Display* argument.
15822 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
15823 (xg_initialize): Remove xg_left_ptr_cursor.
15825 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
15827 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
15829 2003-11-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15831 * xterm.c (x_detect_focus_change): Do not change focus frame for
15832 Enter/LeaveNotify if the current focus frame has explicit focus.
15834 2003-11-14 Kim F. Storm <storm@cua.dk>
15836 * dispnew.c (update_text_area): Fix redisplay error when hscroll
15837 is active and first glyph is only partially visible.
15839 2003-11-13 Kenichi Handa <handa@m17n.org>
15841 * xdisp.c (select_frame_for_redisplay): New function.
15842 (redisplay_internal): Record also selected_frame for
15843 unwind_redisplay. Call select_frame_for_redisplay before
15844 redrawing each frame.
15845 (unwind_redisplay): Argument changed to a cons.
15847 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
15849 * fns.c (Fstring_to_multibyte): Doc fix.
15851 2003-11-11 Kenichi Handa <handa@m17n.org>
15853 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15855 2003-11-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15857 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
15858 program specified positions.
15860 2003-11-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15862 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
15864 2003-11-08 Kenichi Handa <handa@m17n.org>
15866 * Makefile.in (lisp): Add kannada.el.
15867 (shortlisp): Likewise.
15869 2003-11-07 Kenichi Handa <handa@m17n.org>
15871 * coding.c (coding_allocate_composition_data):
15872 Reset coding->composing to COMPOSITION_NO.
15873 (coding_restore_composition): Detect invalid composition data.
15874 Give Fstring and Fvector a Lispy integer, not C int.
15876 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
15878 * floatfns.c (Flogb): Don't use VALMASK.
15880 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
15881 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
15883 * lisp.h (XINT): Move the cast to clarify what is going on.
15884 (GCTYPEMASK, XSETTYPE): Remove.
15885 (XGCTYPE): Make it an alias of XTYPE.
15887 2003-11-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15889 * xterm.c (x_term_init): Fix formatting.
15891 2003-11-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15893 * gtkutil.h (xg_have_tear_offs): Declare.
15894 (xg_keep_popup, xg_did_tearoff): Remove.
15896 * gtkutil.c: Remove variable xg_did_tearoff.
15897 (xg_have_tear_offs): New function.
15898 (tearoff_remove): Just decrease xg_detached_menus.
15899 (tearoff_activate): Increase xg_detached_menus and call
15900 tearoff_remove when tearoff is removed.
15901 (xg_keep_popup): Remove function.
15902 (create_menus): Give add_tearoff_p as argument to recursive
15903 call to create_menus.
15904 (xg_create_widget): Use variables instead of multiple
15905 strcmp. Tell create_menus to create tear off only for
15907 (xg_update_menubar): Change title for a detached menu also.
15908 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
15910 (xg_initialize): Initialize xg_detached_menus, remove
15911 initialization of xg_did_tearoff.
15913 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
15914 xg_have_tear_offs returns non-zero.
15915 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
15916 call to xg_keep_popup.
15918 2003-11-01 Andrew Choi <akochoi@shaw.ca>
15920 * macterm.c (XTread_socket): Handle menubar selection and grow
15921 window only for mouseDown events.
15923 2003-10-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15925 * xterm.c (x_term_init): For GTK part, increase x_initialized
15926 to check for more than one display. Use error instead of return 0.
15928 2003-10-31 Andrew Choi <akochoi@shaw.ca>
15930 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
15931 (copy_dysymtab): Call it.
15933 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
15935 * eval.c (Fdefvaralias): Doc fix.
15937 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
15939 * data.c (Fsetplist): Doc fix.
15941 2003-10-14 Lute Kamstra <lute@gnu.org>
15943 * window.c (Fset_window_fringes): Clarify docstring.
15945 2003-10-14 Kim F. Storm <storm@cua.dk>
15947 * window.c (Fset_window_margins): Simplify arg checking.
15949 2003-10-13 Richard M. Stallman <rms@gnu.org>
15951 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
15952 (print_partial_compiled_pattern): Replace assert with a printout.
15953 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
15955 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
15957 * window.c (Fset_window_margins): Allow only integers as args.
15958 (syms_of_window) <special-display-buffer-names,
15959 special-display-regexps>: Doc fixes.
15961 2003-10-13 Lute Kamstra <lute@gnu.org>
15963 * window.c (Fset_window_fringes): Elaborate docstring.
15965 2003-10-12 Andrew Choi <akochoi@shaw.ca>
15967 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
15969 * s/darwin.h (GC_MARK_STACK): Define.
15971 2003-10-12 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15973 * window.c (shrink_windows): New function.
15974 (size_window): Call shrink_windows to calculate window sizes when
15975 shrinking frame with more than one window.
15977 2003-10-12 Kim F. Storm <storm@cua.dk>
15979 * xdisp.c (compute_fringe_widths): Doc fix.
15981 2003-10-08 Kenichi Handa <handa@m17n.org>
15983 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
15985 2003-10-07 Kenichi Handa <handa@m17n.org>
15987 * coding.c (Qcoding_system_define_form): New variable.
15988 (syms_of_coding): Intern and staticpro it.
15989 (Fcheck_coding_system): Try to autoload the definition of
15992 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
15994 * fns.c (Frequire): Doc fix.
15996 2003-10-05 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
15998 * xfns.c (Fx_send_client_event): New function as a base for
15999 manipulating extended window manager hints.
16000 (Fx_send_client_event): Remove unused variable s.
16002 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16003 that function is removed.
16005 * xterm.c (x_set_offset): Use move_offset_left/top instead of
16006 x/y_pixels_outer_diff.
16007 (x_check_expected_move): Calculate move_offset_left/top.
16009 * xterm.h (struct x_output): New members: move_offset_top/left.
16011 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
16012 call x_set_offset directly.
16014 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
16016 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
16018 * xterm.c (x_delete_display): Free font names and font_encoder
16019 in dpyinfo->font_table.
16021 * xfns.c (Fx_close_connection): Only call XFreeFont here.
16022 Move xfree of font names to x_delete_display.
16024 * xterm.h (struct x_display_info): New member, wm_type.
16025 (struct x_output): New members, expected_top/left and
16026 check_expected_move.
16028 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
16030 (handle_one_xevent): Rename x_check_expected_move from
16031 x_check_fullscreen_move.
16032 (x_set_offset): Only add WM decoration sizes to modified_top/left
16033 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
16034 (x_check_expected_move): Rename from x_check_fullscreen_move.
16035 Removed fullscreen specific code. Use check_expected_move,
16036 expected_left/top instead. Also, set wm_type.
16037 (x_term_init): Initialize wm_type to unknown.
16039 * frame.c (x_fullscreen_move): Remove addition of WM decoration
16042 2003-10-03 Kenichi Handa <handa@m17n.org>
16044 * macterm.c (x_load_font): Clear all members of FONTP before start
16047 2003-10-02 Kenichi Handa <handa@m17n.org>
16049 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
16050 before calling find_ccl_program_func. Call find_ccl_program_func
16051 only when fontp->font_encoder is not NULL.
16053 * xterm.c (x_load_font): Clear all members of FONTP before start
16056 2003-10-03 John Paul Wallington <jpw@gnu.org>
16058 * keymap.c (map_keymap): Don't abort when binding is a vector.
16060 2003-10-02 Jason Rumney <jasonr@gnu.org>
16062 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
16063 Sync dependencies with Makefile.in.
16064 (alloca.o): Remove.
16066 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
16069 * w32bdf.c (w32_load_bdf_font): Likewise.
16071 2003-09-30 Richard M. Stallman <rms@gnu.org>
16073 * term.c (set_tty_color_mode): Calculate current_mode_spec
16074 regardless of value of VAL.
16076 * intervals.c (graft_intervals_into_buffer):
16077 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
16078 Handle over_used when splitting UNDER.
16080 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16082 * regex.c (regex_compile): Free the stack when returning from function.
16084 2003-09-28 Kenichi Handa <handa@m17n.org>
16086 * fontset.c (Finternal_char_font): Change return value to
16087 cons (FONT-NAME . GLYPH-CODE).
16089 2003-09-28 Eli Zaretskii <eliz@gnu.org>
16091 * term.c (tty_setup_colors): Treat any negative argument as -1.
16093 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
16095 * process.c (send_process): Delete unused temp_buf.
16097 2003-09-26 Dave Love <fx@gnu.org>
16099 * xterm.c (x_bitmap_mask): Declare.
16101 2003-09-25 Dave Love <fx@gnu.org>
16103 * Makefile.in (fns.o): Depend on md5.h.
16105 2003-09-25 Kim F. Storm <storm@cua.dk>
16107 * window.c (set_window_buffer): Fix redisplay problems when
16108 switching between buffers with different display margin widths.
16110 2003-09-23 Kim F. Storm <storm@cua.dk>
16112 * process.c (set_socket_option): Fix :bindtodevice option.
16113 (Fset_network_process_option): Update process contact list when
16114 setting option succeeds.
16115 (Fmake_network_process): Doc fix.
16117 2003-09-23 Dave Love <fx@gnu.org>
16119 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
16121 2003-09-22 Eli Zaretskii <eliz@gnu.org>
16123 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
16124 color mode is an integer number (it could be -1).
16126 2003-09-22 Richard M. Stallman <rms@gnu.org>
16128 * intervals.c (graft_intervals_into_buffer): Correct the main loop
16129 in the case where OVER is longer than UNDER.
16131 2003-09-22 Masatake YAMATO <jet@gyve.org>
16133 * window.c (Fset_window_scroll_bars): Validate the value of
16136 2003-09-21 Kim F. Storm <storm@cua.dk>
16138 * frame.c (Vdefault_frame_scroll_bars): New variable.
16139 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
16140 (syms_of_frame): DEFVAR_LISP it, and initialize according to
16141 window-system default scroll bar position.
16143 * window.c (Fwindow_scroll_bars): Doc fix.
16145 2003-09-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16147 * xterm.c (x_set_offset): Take window manager decorations into account.
16149 2003-09-19 Richard M. Stallman <rms@gnu.org>
16151 * atimer.h: Don't include lisp.h.
16152 (P_): Define it here (as well as elsewhere).
16154 * print.c (Fprin1_to_string): Move the PRINTPREPARE
16155 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
16157 * data.c (Fvariable_binding_locus): New function.
16158 (syms_of_data): defsubr it.
16159 (Flocal_variable_p): Delete duplicate call to indirect_variable.
16161 2003-09-18 Dave Love <fx@gnu.org>
16163 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
16165 * process.c (Fnetwork_interface_info): Fix type error.
16166 (Fnetwork_interface_list): Doc fix.
16167 (read_process_output, read_process_output): Delete unused var.
16169 2003-09-17 Kim F. Storm <storm@cua.dk>
16171 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
16172 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
16173 (Fnetwork_interface_info): Check that ifreq struct has required
16174 fields before accessing them; this requires that those fields are
16175 defined as macros, which may be too restrictive on some platforms,
16176 but it is better than failing on other platforms.
16177 (syms_of_process): Only defsubr above fns when included.
16179 2003-09-17 Dave Love <fx@gnu.org>
16181 * unexalpha.c: Don't include varargs.h.
16183 2003-09-17 Kim F. Storm <storm@cua.dk>
16185 * process.c (Fset_process_sentinel): Add sentinel to childp plist
16186 for network process.
16187 (socket_options): Add `:' prefix to option names. Add optbit field.
16188 (set_socket_option): Remove no_error arg and special handling of s < 0.
16189 Return 1<<optbit for known option, 0 for unknown.
16190 Do not interpret 0 as false for boolean option (only nil).
16191 Pass failed option and value to report_file_error.
16192 (Fset_network_process_options): Replace by Fset_network_process_option.
16193 (Fset_network_process_option): New function to set just one option.
16194 (Fmake_network_process): Allow :coding arg to be a cons.
16195 Allow :server arg to be an integer specifying backlog size.
16196 Remove :options arg, and allow options to be specified directly
16197 as :KEY, VALUE pairs. Parse these options before binding socket.
16198 As before, :reuseaddr t is default for a server process, but this
16199 can now be disabled by specifying :reuseaddr nil.
16200 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
16201 (init_process): Availability of network options is now checked with
16202 simpler syntax (featurep 'make-network-process :OPTION); use loop to
16204 (syms_of_process): Fix defsubr's for the replaced functions.
16206 2003-09-16 Dave Love <fx@gnu.org>
16208 * Makefile.in: Depend on coding.h.
16210 2003-09-14 Kim F. Storm <storm@cua.dk>
16212 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
16213 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
16214 (syms_of_process): Defsubr them.
16216 * config.in: Regenerate.
16218 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16220 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
16221 * m/news-r6.h (XUNMARK): Remove.
16222 * m/mips.h (XUNMARK): Remove.
16223 * m/mips-siemens.h (XUNMARK): Remove.
16224 * m/iris4d.h (XUNMARK): Remove.
16225 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
16227 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16229 * lisp.h (VALBITS): Don't remove 1 for the markbit.
16230 (union Lisp_Object): Use unsigned int for types. Remove markbit.
16231 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
16232 (XTYPE): Use unsigned right-shift.
16233 (XMARKBIT, XMARK, XUNMARK): Remove.
16235 * alloc.c (init_intervals, init_symbol, init_marker):
16236 Don't preallocate anything.
16237 (Fgarbage_collect, mark_object): Ignore the markbit.
16239 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
16241 2003-09-08 Lute Kamstra <lute@gnu.org>
16243 * xdisp.c (pint2hrstr): New function.
16244 (decode_mode_spec): Add `%i' and `%I' specs.
16245 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
16246 for `mode-line-format'.
16248 2003-09-07 Andreas Schwab <schwab@suse.de>
16250 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
16253 2003-09-07 Eli Zaretskii <eliz@gnu.org>
16255 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
16257 2003-09-03 Kim F. Storm <storm@cua.dk>
16259 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
16260 change (superseded by 2002-08-30 change); the default blink-off
16261 cursor is now again "no cursor".
16263 2003-09-01 Jason Rumney <jasonr@gnu.org>
16265 * makefile.w32-in (alloca.o): Remove.
16266 (coding.o): Depend on intervals.h
16267 (emacs.o, bytecode.o): Depend on window.h
16269 2003-09-01 Dave Love <fx@gnu.org>
16271 * Makefile.in (alloca.o): Remove commands.
16272 (coding.o): Depend on intervals.h composite.h window.h.
16273 (emacs.o): Depend on window.h keyboard.h keymap.h.
16274 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
16275 (bytecode.o): Depend on window.h.
16277 2003-08-31 Jason Rumney <jasonr@gnu.org>
16279 * w32term.c (w32_per_char_metric): Allow cached metrics to be
16280 returned even when font_type is unknown.
16282 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
16284 2003-08-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16286 * xterm.c (x_term_init): Initialize new fields in x_display_info.
16288 * xterm.h (struct x_display_info): Add red/green/blue_bits and
16291 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
16292 calculate pixel value.
16294 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
16296 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
16297 Don't tell redisplay display is accurate when it's actually been
16298 paused for pending input.
16300 2003-08-29 Richard M. Stallman <rms@gnu.org>
16302 * dispnew.c (adjust_glyph_matrix): Call window_box
16303 whenever W is nonzero.
16305 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16306 (Fkill_local_variable, Fmake_variable_frame_local)
16307 (Flocal_variable_p, Flocal_variable_if_set_p):
16308 Use indirect_variable to trace thru variable aliases.
16310 * config.in: Updated.
16312 * callint.c (Fcall_interactively): Save and restore
16313 Vthis_command, Vthis_original_command, real_this_command,
16314 and current_kboard->Vlast_command.
16316 * abbrev.c (Fexpand_abbrev): Insert before deleting.
16318 2003-08-29 Gerd Moellmann <gerd@gnu.org>
16320 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
16322 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
16324 * coding.c (decode_coding_iso2022): Initialize local variable c2.
16325 (decode_coding_sjis_big5): Likewise.
16327 2003-08-27 Jason Rumney <jasonr@gnu.org>
16329 * w32.c (sys_pipe): Protect against file descriptor overflow.
16331 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
16333 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
16335 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
16337 * xfns.c (Vgtk_version_string): New variable.
16338 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
16340 2003-08-24 Eli Zaretskii <eliz@gnu.org>
16342 * term.c (term_init): Remove `const' from buffer_size's declaration.
16344 * Makefile.in (msdos.o): Depend on intervals.h.
16346 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
16348 2003-08-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16350 * xterm.h (struct x_display_info): New fields: client_leader_window
16351 and Xatom_wm_client_leader.
16353 * xterm.c (x_initialize): Move call to x_session_initialize to ...
16354 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
16356 * xsmfns.c (create_client_leader_window): New function.
16357 (x_session_initialize): Call create_client_leader_window, take
16358 dpyinfo as argument.
16360 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
16362 * Makefile.in (xsmfns.o): Add more depenedencies.
16364 2003-08-21 Dave Love <fx@gnu.org>
16366 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
16368 2003-08-21 Kenichi Handa <handa@m17n.org>
16370 * term.c (term_init): Fix previous change; don't rely on the
16371 length of `buffer' if TERMINFO is defined.
16373 2003-08-20 Dave Love <fx@gnu.org>
16375 * atimer.h: Include lisp.h.
16377 * lisp.h (EMACS_LISP_H): New.
16378 (popup_activated_flag): Don't declare.
16380 * alloca.c: Some merging with gnulib. Change logic and doc
16381 concerning (x)malloc/(x)free -- no longer Emacs-specific.
16382 [DO_BLOCK_INPUT]: Don't include lisp.h.
16383 (xmalloc, xfree): Declare.
16384 (malloc): Don't declare.
16386 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
16387 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
16388 atimer.h, blockinput.h.
16390 * alloc.c (lisp_align_malloc): Change type of `aligned'.
16392 * alloca.s: Remove.
16394 2003-08-19 Gerd Moellmann <gerd@gnu.org>
16396 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
16399 * term.c (term_init): Use a buffer of size 4096 for tgetent since
16400 FreeBSD returns something longer than 2044. Abort if the end of
16401 the buffer is overwritten.
16403 2003-08-19 Miles Bader <miles@gnu.org>
16405 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
16407 2003-08-19 Gerd Moellmann <gerd@gnu.org>
16409 * alloc.c (lisp_align_malloc): Check for memory full when
16410 allocating ablocks, which also avoids freeing a pointer into an
16413 * puresize.h (BASE_PURESIZE): Increase to 1100000.
16415 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
16417 2003-08-16 Richard M. Stallman <rms@gnu.org>
16419 * editfns.c (Fencode_time): Doc fix.
16421 2003-08-16 David Ponce <david@dponce.com>
16423 * fileio.c (Fwrite_region): Fix conditional expression to issue
16426 2003-08-16 Juri Linkov <juri@jurta.org>
16428 * syntax.c (Fforward_word): Argument changed to optional.
16429 Set default value to 1.
16431 2003-08-15 Kenichi Handa <handa@m17n.org>
16433 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
16435 (best_matching_font): Once we find a better scalable font, set
16436 non_scalable_has_exact_height_p to 1.
16437 (try_font_list): Call try_alternative_families to try any family
16438 with the given registry.
16440 2003-08-09 Andreas Schwab <schwab@suse.de>
16442 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
16444 * print.c (print_string): Fix printing of multibyte string with
16445 nontrivial printcharfun.
16447 2003-07-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16449 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
16451 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
16453 2003-07-31 Kenichi Handa <handa@m17n.org>
16455 * process.c (read_process_output): Return the actually read bytes
16456 instead of the result of decoding.
16458 2003-07-31 Kenichi Handa <handa@m17n.org>
16460 * xterm.h (struct x_bitmap_record): New member have_mask.
16462 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
16464 (x_create_bitmap_from_file): Likewise.
16465 (x_destroy_bitmap): Check have_mask member before freeing a mask.
16466 (x_destroy_all_bitmaps): Likewise.
16467 (x_create_bitmap_mask): Set have_mask member to 1.
16469 2003-07-30 Richard M. Stallman <rms@gnu.org>
16471 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
16473 2003-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16475 * gtkutil.c (xg_mark_data): Update calls to mark_object.
16477 2003-07-29 Richard M. Stallman <rms@gnu.org>
16479 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
16480 Conditionalize XIM code on HAVE_XIM.
16482 * fns.c (Fclear_string): New function.
16483 (syms_of_fns): defsubr it.
16485 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
16487 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
16489 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
16491 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
16493 * buffer.c (delete_all_overlays): New function.
16494 * buffer.h (delete_all_overlays): Declare.
16495 * coding.c (run_pre_post_conversion_on_str):
16496 * print.c (temp_output_buffer_setup):
16497 * fileio.c (Finsert_file_contents):
16498 * minibuf.c (get_minibuffer): Use it.
16500 2003-07-22 Andrew Choi <akochoi@shaw.ca>
16502 * unexmacosx.c (unexec_regions_sort_compare):
16503 (unexec_regions_merge): New functions. Sort and merge unexec
16504 regions before dumping them.
16506 2003-07-22 Dave Love <fx@gnu.org>
16508 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
16510 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
16512 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
16513 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
16514 MARKBIT as the gcmarkbit for strings.
16516 2003-07-21 Richard M. Stallman <rms@gnu.org>
16518 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
16520 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
16521 (syms_of_fns): Corresponding change.
16523 * alloc.c (syms_of_alloc): Doc fixes.
16525 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
16527 * s/netbsd.h: Use -Wl syntax.
16529 2003-07-17 Richard M. Stallman <rms@gnu.org>
16531 * xterm.c (xim_initialize): Redo 6/24 change.
16533 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
16535 * buffer.c (copy_overlays): Use EMACS_INT for positions.
16536 (Fswitch_to_buffer): Don't signal an error when switching to the same
16537 buffer in a dedicated window.
16539 * alloc.c: Use bitmaps for cons, as was done for floats.
16540 (init_float, init_cons): Let the normal code allocate the first block.
16541 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
16542 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
16544 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
16545 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
16546 (live_cons_p): Check the pointer is not past the `conses' array.
16547 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
16548 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
16549 (survives_gc_p): Use CONS_MARKED_P and simplify.
16550 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
16552 2003-07-13 Paul Eggert <eggert@twinsun.com>
16554 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
16555 puts it into BSS instead, at least on Solaris 8 and 9.
16556 This is a valid optimization, and it may occur on other platforms,
16557 so Emacs should not assume that initializing a static variable to
16558 zero puts it into data.
16559 * alloc.c (pure, staticvec):
16560 Initialize these arrays to nonzero, so that they're not
16561 put into BSS by that optimization.
16563 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
16565 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
16566 (lisp_align_malloc): Use posix_memalign is available.
16567 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
16568 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
16569 for consistency. Update users.
16571 2003-07-13 Richard M. Stallman <rms@gnu.org>
16573 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
16575 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
16577 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
16578 and use the Gtk+ function gtk_window_icon_from_file if available.
16580 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
16581 handle mask of bitmaps.
16582 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
16584 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
16586 * xterm.h (xg_set_icon): New function.
16588 2003-07-12 Paul Eggert <eggert@twinsun.com>
16590 * unexelf.c (unexec): Consider a section to precede the .bss
16591 section if its addresses overlap that of .bss.
16593 2003-07-12 Richard M. Stallman <rms@gnu.org>
16595 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
16597 * config.in (HAVE_CRTIN): Add #undef.
16598 (INLINE): Really inline only if OPTIMIZE is defined.
16600 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
16602 (START_FILES_1, END_FILES_1): New macros (conditional).
16603 (LD_SWITCH_SYSTEM_TEMACS): Define.
16605 * s/openbsd.h: Don't include bsd4-3.h.
16606 (TERMINFO): Define.
16607 (LIBS_TERMCAP): Define.
16608 (LD_SWITCH_SYSTEM): Define (two definitions).
16610 * xfns.c: Include libpng/png.h instead of png.h.
16612 2003-07-11 Andreas Schwab <schwab@suse.de>
16614 * buffer.c (modify_overlay): Update prototype.
16615 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
16618 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
16620 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
16621 (struct interval): Move to intervals.h.
16622 (struct Lisp_Marker): Use EMACS_INT for position info.
16623 (forward_point): Remove prototype of defunct function.
16624 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
16625 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
16626 (syms_of_textprop, set_text_properties): Remove prototypes that are
16627 already in intervals.h.
16629 * intervals.h (struct interval): Move from lisp.h.
16630 Use EMACS_INT for position and size info.
16632 * coding.c: Include intervals.h for Fset_text_properties.
16634 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
16635 position and length information.
16637 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
16639 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
16640 position and length information.
16642 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
16644 Change overlays_after and overlays_before so the overlays themselves
16645 are linked into lists, rather than using cons cells. After all each
16646 Lisp_Misc already occupies 5 words, so we can add a `next' field to
16647 Lisp_Overlay for free and save up one cons cell per overlay (not
16648 to mention one indirection when traversing the list of overlay).
16650 * lisp.h (struct Lisp_Overlay): New field `next'.
16652 * buffer.h (struct buffer): Change overlays_before and overlays_after
16653 from Lisp lists of overlays to pointers to overlays.
16655 * buffer.c (overlay_strings, recenter_overlay_lists):
16656 Fix typo in eassert in last commit.
16657 (unchain_overlay): New function.
16658 (add_overlay_mod_hooklist): Use AREF.
16659 (copy_overlays, reset_buffer, overlays_at, overlays_in)
16660 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
16661 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
16662 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
16663 (report_overlay_modification, evaporate_overlays, init_buffer_once):
16664 Adjust to new type of overlays_(before|after).
16666 * alloc.c (mark_object): Mark the new `next' field of overlays.
16667 (mark_buffer): Manually mark the overlays_(after|before) fields.
16669 * coding.c (run_pre_post_conversion_on_str):
16670 * editfns.c (overlays_around):
16671 * xdisp.c (load_overlay_strings):
16672 * fileio.c (Finsert_file_contents):
16673 * indent.c (current_column):
16674 * insdel.c (signal_before_change, signal_after_change):
16675 * intervals.c (set_point_both):
16676 * print.c (temp_output_buffer_setup): Use new type for
16677 overlays_(before|after).
16679 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
16681 * buffer.c (report_overlay_modification): Don't run hooks while
16682 traversing the list of overlays.
16684 * buffer.h (struct buffer): Use an int for overlay_center.
16685 (overlays_at, evaporate_overlays, recenter_overlay_lists)
16686 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16688 * buffer.c (reset_buffer, recenter_overlay_lists)
16689 (adjust_overlays_for_insert, adjust_overlays_for_delete)
16690 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
16691 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
16692 (overlays_at, evaporate_overlays, recenter_overlay_lists)
16693 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16695 * xdisp.c (fast_find_position): Remove unused var.
16697 * cmds.c (Qexpand_abbrev): New sym.
16698 (syms_of_cmds): Initialize it.
16699 (internal_self_insert): Use it to call expand-abbrev.
16701 2003-07-09 Kim F. Storm <storm@cua.dk>
16703 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
16704 was configured with --without-xim.
16705 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
16707 2003-07-07 Richard M. Stallman <rms@gnu.org>
16709 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
16711 * alloc.c (Fgarbage_collect): Doc fix.
16713 2003-07-07 Nozomu Ando <nand@mac.com>
16715 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
16717 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
16719 * minibuf.c (read_minibuf): UNGCPRO before returning.
16720 (Ftry_completion, Fall_completions): Doc fix.
16722 * alloc.c (live_float_p): Check that p is not past the `floats' array,
16723 now that `floats' is not the last element of the struct any more.
16725 2003-07-06 Jason Rumney <jasonr@gnu.org>
16727 * w32term.h (ClipboardSequence_Proc): New type.
16729 * w32fns.c (clipboard_sequence_fn): New variable.
16730 (globals_of_w32fns): Initialize it.
16732 * w32select.c (last_clipboard_sequence_number): New variable.
16733 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
16734 number if possible.
16736 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
16738 * m/amdx86-64.h (MARKBIT):
16739 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
16740 MARKBIT and ARRAY_MARK_FLAG any more.
16742 * m/hp800.h (XSETMARKBIT):
16743 * m/sr2k.h (XSETMARKBIT):
16744 * lisp.h (XSETMARKBIT): Remove unused macro.
16746 * lisp.h (mark_object): Change prototype.
16748 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
16749 (last_marked): Change accordingly.
16750 (mark_interval, mark_maybe_object, mark_maybe_pointer)
16751 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
16752 (mark_buffer): Update calls to mark_object.
16754 * bytecode.c (mark_byte_stack):
16755 * fns.c (sweep_weak_table):
16756 * keyboard.c (mark_kboards): Update calls to mark_object.
16758 2003-07-06 Jason Rumney <jasonr@gnu.org>
16760 * alloc.c (struct ablock): Only include padding when there is some.
16762 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
16764 * alloc.c (ALIGN): Add casts to simplify usage.
16765 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
16766 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
16767 (struct ablock, struct ablocks): New types.
16768 (free_ablock): New global var.
16769 (lisp_align_malloc, lisp_align_free): New functions.
16770 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
16771 (struct float_block): Reorder and add gcmarkbits.
16772 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
16773 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
16774 (init_float, make_float): Use lisp_align_malloc.
16775 (free_float, live_float_p): Don't use `type' any more.
16776 (make_float): Use FLOAT_UNMARK to access to mark bit.
16777 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
16778 Use FLOAT_MARKED_P to access the mark bit.
16779 (pure_alloc): Simplify use of ALIGN.
16780 (mark_object): Use FLOAT_MARK to access the mark bit.
16781 (gc_sweep): Use new macros to access the float's mark bit.
16782 (init_alloc_once): Init free_ablock.
16784 * lisp.h (struct Lisp_Float): Remove unused field `type'.
16786 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
16788 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
16789 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
16790 (allocate_buffer): Move.
16791 (string_bytes): Don't mask markbit of `size_byte'.
16792 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
16793 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
16794 Use the `size' field of buffers (rather than the `name' field) for
16795 the mark bit, as is done for all other vectorlike objects.
16796 Use the new macros to access the mark bit of vectorlike objects.
16798 2003-06-26 Richard M. Stallman <rms@gnu.org>
16800 * puresize.h (BASE_PURESIZE): Increment base size.
16802 * xdisp.c (fast_find_position): Enable Gerd's new definition.
16804 * xterm.c (xim_initialize): Undo previous change.
16806 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
16808 * alloc.c (survives_gc_p): Simplify.
16810 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
16812 * window.c (Fset_window_dedicated_p): Simplify.
16813 (display_buffer_1): Don't raise the win from which minibuf was entered.
16814 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
16815 (Fminibuffer_selected_window): Simplify.
16817 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
16819 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
16820 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
16822 * insdel.c (check_markers, adjust_markers_for_delete)
16823 (adjust_markers_for_insert, adjust_markers_for_replace)
16824 (prepare_to_modify_buffer, RESTORE_VALUE):
16825 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
16826 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
16827 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
16828 * alloc.c (Fmake_marker, free_marker, gc_sweep):
16829 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
16830 * editfns.c (save_excursion_restore, transpose_markers):
16831 * window.c (delete_window):
16832 * xdisp.c (message_dolog): Update for new types.
16834 2003-06-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
16836 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
16837 (realize_default_face): Use default_face_done_p for the force_p
16838 argument to set_lface_from_font_name. Set default_face_done_p to one.
16840 * frame.c (make_frame): Initialize default_face_done_p.
16842 * frame.h (struct frame): Add default_face_done_p.
16844 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
16847 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
16849 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
16850 Initialize the new field `gcmarkbit'.
16851 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
16852 (mark_interval_tree): Don't mark the tree separately from the nodes.
16853 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
16854 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
16855 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
16857 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
16858 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
16859 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
16860 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
16861 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
16863 2003-06-24 Dave Love <fx@gnu.org>
16865 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
16867 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
16870 2003-06-21 Richard M. Stallman <rms@gnu.org>
16872 * fileio.c (Fwrite_region): Alternate messages
16873 for append and partial write.
16875 * keyboard.c (read_key_sequence): When converting upcase fn key to
16876 downcase, update fkey and keytran so `backspace' gets translated.
16878 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
16880 * process.c (wait_reading_process_input): Don't signal SIGIO
16883 2003-06-17 Kenichi Handa <handa@m17n.org>
16885 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
16888 * xselect.c: Don't include charset.h, coding.h, composite.h.
16889 (Qforeign_selection): New variable.
16890 (syms_of_xselect): Intern and static it.
16891 (selection_data_to_lisp_data): Return a unibyte string made from
16892 data with `foreign-selection' text property.
16894 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
16896 * termhooks.h (EVENT_INIT): New macro.
16898 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
16900 * alloc.c (mark_kboards): Move to keyboard.c.
16902 * keyboard.c (record_asynch_buffer_change, read_avail_input):
16903 * xterm.c (x_dispatch_event):
16904 * xmenu.c (find_and_call_menu_selection):
16905 * xdisp.c (handle_tool_bar_click):
16906 * w32menu.c (menubar_selection_callback):
16907 * sysdep.c (kbd_input_ast, read_input_waiting):
16908 * msdos.c (dos_rawgetc):
16909 * macterm.c (mac_check_for_quit_char):
16910 * macmenu.c (menubar_selection_callback):
16911 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
16912 data to kbd_buffer_store_event.
16914 2003-06-15 Kim F. Storm <storm@cua.dk>
16916 * xdisp.c (x_fix_overlapping_area): Always use area relative X
16917 to fix redisplay problem with tall characters (such as
\e,AC
\e(B).
16919 2003-06-13 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
16921 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
16923 2003-06-12 Kenichi Handa <handa@m17n.org>
16925 * fileio.c (Fwrite_region): Save and restore restriction.
16927 2003-06-12 Dave Love <fx@gnu.org>
16929 * alloca.c (alloca): Declare arg as size_t.
16931 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
16932 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
16934 2003-06-11 Dave Love <fx@gnu.org>
16936 * search.c (shrink_regexp_cache): Use xrealloc.
16937 (syms_of_search): Use xmalloc.
16939 2003-06-10 Kim F. Storm <storm@cua.dk>
16941 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
16942 Adjust phys_cursor.x to be relative to window box, rather than
16943 text area before checking -- to ensure cursor is redrawn when
16945 Note: This also fixes a similar (older) bug if display margins
16948 2003-06-06 Kenichi Handa <handa@m17n.org>
16950 * coding.c (encoding_buffer_size): If coding->type is
16951 coding_type_ccl, double magnification on CRLF encoding.
16953 2003-06-06 Jason Rumney <jasonr@gnu.org>
16955 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
16956 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
16958 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
16961 2003-06-05 Dave Love <fx@gnu.org>
16963 * strftime.c: Merge changes from gnulib.
16965 * mktime.c (__mktime_internal): Merge changes from gnulib
16966 involving year 69 and dst2.
16968 Changes to merge with gnulib version and be consistent with the
16971 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
16972 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
16973 [HAVE_LOCALE_H]: Include locale.h.
16974 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
16976 2003-06-05 Kim F. Storm <storm@cua.dk>
16978 * window.c (coordinates_in_window): Convert X and Y to window
16979 relative coordinates inside mode-line and header-line parts.
16980 Convert X and Y to margin area relative coordinates inside left
16981 and right display margin parts.
16983 2003-06-05 Jason Rumney <jasonr@gnu.org>
16985 * w32fns.c (add_system_logical_colors_to_map): New function.
16986 (Fx_open_connection): Use it.
16988 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
16990 * process.c (allocate_pty): Revert part of the previous patch.
16991 (Faccept_process_output): Simplify.
16993 2003-06-04 Jason Rumney <jasonr@gnu.org>
16995 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
16997 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
16998 (lispy_mouse_wheel_names): Remove.
16999 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17000 Always define drag_and_drop_syms.
17002 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17003 WHEEL_EVENT events.
17005 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
17007 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
17009 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
17011 2003-06-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17013 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
17016 2003-06-03 Richard M. Stallman <rms@gnu.org>
17018 * window.c (Fwindow_edges): Doc fix.
17019 (Fwindow_pixel_edges, Fwindow_inside_edges)
17020 (Fwindow_inside_pixel_edges): New functions.
17021 (syms_of_window): defsubr them.
17023 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
17024 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
17026 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
17028 * dispnew.c (Fsit_for): Don't lie about the number of args.
17030 2003-06-02 Dave Love <fx@gnu.org>
17032 * callproc.c: Use HAVE_FCNTL_H, not USG5.
17033 (syms_of_callproc) <process-environment>: Doc fix.
17035 * doc.c: Use HAVE_FCNTL_H, not USG5.
17037 * xfaces.c (font_rescale_ratio): Fix for K&R.
17039 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
17041 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
17043 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
17045 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
17046 (xg_create_frame_widgets): Use ENCODE_UTF_8.
17048 * xterm.c (Qutf_8): Move to coding.c
17050 * xmenu.c (ENCODE_MENU_STRING): New.
17051 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
17054 * coding.h (ENCODE_UTF_8): New.
17057 * coding.c (Qutf_8): New.
17058 (syms_of_coding): Intern it.
17060 * fns.c: Doc fixes.
17062 2003-06-02 Kenichi Handa <handa@m17n.org>
17064 * buffer.c (Fset_buffer_multibyte): Fix previous change.
17066 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
17068 * lread.c (openp): Make sure STR is a string.
17070 2003-06-01 David Ponce <david@dponce.com>
17072 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
17073 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
17075 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
17076 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
17077 (discard_mouse_events): Discard WHEEL_EVENT events too.
17078 (lispy_wheel_names, wheel_syms): New.
17079 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
17080 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
17081 (make_lispy_event): Add WHEEL_EVENT handler.
17083 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
17084 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17085 WHEEL_EVENT events.
17087 2003-05-31 John Paul Wallington <jpw@gnu.org>
17089 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
17090 timer are in lisp/emacs-lisp.
17092 2003-05-31 Kenichi Handa <handa@m17n.org>
17094 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
17095 region when a buffer is changed to unibyte.
17097 * charset.h (VALID_LEADING_CODE_P): New macro.
17098 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
17100 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
17101 is nonzero, accept multibyte form of eight-bit-control chars.
17102 (decode_composition_emacs_mule): Likewise.
17103 (decode_coding_emacs_mule): Likewise.
17104 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
17105 multibyte form of eight-bit-control chars.
17107 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
17108 (Finsert_file_contents): If coding-system-for-read is bound to
17109 Qauto_save_coding, use the coding system emacs-mule with special
17110 setting for recovering a file.
17111 (choose_write_coding_system): On auto saving, use the coding
17112 system emacs-mule with special setting for auto saving.
17113 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
17115 2003-05-30 Kenichi Handa <handa@m17n.org>
17117 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
17118 properly before calling ccl_driver.
17120 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
17122 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
17123 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
17124 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
17126 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
17128 * xfaces.c (realize_default_face): Do not abort if lface is
17129 non-existent - reverts change from 2003-05-19.
17131 2003-05-29 Kenichi Handa <handa@m17n.org>
17133 * coding.c (decode_coding_iso2022): Pay attention to the byte
17134 sequence of CTEXT extended segment, and retain those bytes as is.
17136 2003-05-28 Kenichi Handa <handa@m17n.org>
17138 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
17139 of CODING_REPLACEMENT_CHARACTER.
17140 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
17141 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
17142 check this flag on encoding.
17143 (encode_coding_sjis_big5):
17144 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
17145 (Fset_terminal_coding_system_internal):
17146 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
17147 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
17149 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
17150 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17151 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
17153 2003-05-28 Richard M. Stallman <rms@gnu.org>
17155 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
17157 * eval.c (unbind_to): Move init of this_binding to separate statement.
17159 2003-05-28 Kim F. Storm <storm@cua.dk>
17161 * xdisp.c (expose_window): Fix error in calculation of
17162 window relative coordinates of area to redisplay.
17164 2003-05-27 Jason Rumney <jasonr@gnu.org>
17166 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
17168 2003-05-27 David Ponce <david@dponce.com>
17170 Handle W32 mouse wheel events as mouse click events, like in X.
17172 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
17173 MOUSE_WHEEL_EVENT anymore.
17175 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
17176 Scrolling down/up the mouse wheel is respectively mapped to mouse
17178 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17179 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
17180 WM_MOUSEWHEEL events.
17182 2003-05-27 Andreas Schwab <schwab@suse.de>
17184 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
17186 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
17187 partially visible line.
17189 * alloc.c (Fgarbage_collect): Fix last change.
17191 2003-05-26 John Paul Wallington <jpw@gnu.org>
17193 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
17195 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
17197 * window.c (Fset_window_buffer): Add type of `keep_margins'.
17198 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
17200 * window.h (window_box_text_cols): Declare.
17202 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
17203 (x_draw_vertical_border): Remove unused var `f'.
17205 * xfaces.c (build_scalable_font_name): Remove `unused var
17206 pixel_size' warning.
17208 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
17210 * unexelf.c (unexec): Remove `unused var n' warning.
17212 * strftime.c (my_strftime_localtime_r): Remove `defined but
17215 * process.c (allocate_pty): Remove `unused var stb' and
17216 `cp might be used uninitialized' warnings.
17218 * dispnew.c (mode_line_string): Remove unused var `f'.
17220 * coding.c (find_safe_codings): Remove unused var `i'.
17222 * bytecode.c (Fbyte_code): Remove `unused val' warning.
17224 * buffer.c (Fkill_buffer): Remove unused var `list'.
17226 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
17228 2003-05-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
17230 * frame.c (make_frame): Condition want_fullscreen with
17231 HAVE_WINDOW_SYSTEM.
17233 2003-05-25 Juanma Barranquero <lektu@terra.es>
17235 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
17236 (Fwindow_scroll_bars): Fix typo in docstring.
17238 2003-05-24 Kim F. Storm <storm@cua.dk>
17240 The following changes serve several purposes:
17242 1) Swap the position of fringes and display margins in windows, i.e.
17243 the fringes are now displayed between the margins and the text area
17246 2) Allow fringe and scroll bar parameters to be set per-buffer and
17247 per-window (like display margins). Such settings are now stored
17248 in window configurations, preserved when frames are resized, and
17249 copied when windows are split vertically or horizontally.
17250 Several bugs related to display margins have been fixed.
17252 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
17254 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
17255 rather than FRAME_WIDTH (FRAME_FONT (f)).
17257 5) Introduce a consistent naming of variables, members and macros
17258 depending on whether their value is measured in pixels or in
17259 canonical columns/lines. Pixel dimensions are named *_width and
17260 *_height, while canonical columns/lines are named *_cols and
17261 *_lines. Pixel positions are named *_x and *_y, while column/line
17262 positions are named *_col and *_line.
17264 6) Consolidate more of the X, W32, and MAC gui code by moving
17265 common data into struct frame, and generalize it for the non-gui
17266 case by using suitable defaults.
17268 7) Cleanup and consolidate the macros controlling frame and window
17269 layout into frame.h and window.h, and generalize the use of the
17270 various window_box_* functions (enhanced to handle the new fringe
17271 position and the per-window fringe and scroll bar settings).
17273 * frame.h (struct frame): Rename members height to text_lines,
17274 width to text_cols, window_height to total_lines, window_width to
17275 total_cols, new_height to new_text_lines, new_width to
17276 new_text_cols. All uses changed.
17277 (struct frame): New members which consolidate common members of
17278 x_output, w32_output, and mac_output structures: left_pos,
17279 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
17280 win_gravity, size_hint_flags, border_width, internal_border_width,
17281 line_height, fringe_cols, left_fringe_width, right_fringe_width,
17282 want_fullscreen. All uses changed.
17283 (struct frame): New member column_width contaning the canonical
17284 column width, analogue to line_height. All uses changed.
17285 (struct frame): Rename members scroll_bar_pixel_width to
17286 config_scroll_bar_width, and scroll_bar_cols to
17287 config_scroll_bar_cols. All uses changed.
17288 (struct frame): New member scroll_bar_actual_width which
17289 consolidates and renames the vertical_scroll_bar_extra member of
17290 x_output, w32_output, and mac_output structures. All uses changed.
17291 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
17292 from x/w32/macterm.h files. All uses changed. Also change code
17293 which referred to f->output_data...->pixel_height.
17294 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
17295 from x/w32/macterm.h files. All uses changed. Also change code
17296 which referred to f->output_data...->pixel_width.
17297 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
17298 Also change code which referred to f->height.
17299 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
17300 Also change code which referred to f->width.
17301 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
17302 to update new_text_lines and new_text_cols members directly.
17303 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
17304 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
17305 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
17306 FRAME_SCROLL_BAR_COLS. All uses changed.
17307 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
17308 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
17309 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
17310 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
17311 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
17312 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
17313 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
17314 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
17315 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
17316 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
17317 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
17318 Unconditionally return line_height member (it now has proper value
17319 also for non-window frames).
17320 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
17321 return new column_width member (rather than the default font width).
17322 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
17323 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
17324 from x/w32/macterm.h files. Unconditionally return corresponding
17325 member of frame structure (they now have proper values also for
17326 non-window frames).
17327 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
17328 Calculate return value from left and right widths.
17329 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
17330 internal_border_width member (has proper value for non-window frame).
17331 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
17332 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
17333 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
17334 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
17335 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
17336 consolidated from xterm.h, macterm.h, and w32term.h.
17337 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
17338 consolidated from xterm.h, macterm.h, and w32term.h.
17339 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
17340 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
17341 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
17342 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
17343 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
17344 consolidated from x/mac/w32term.h.
17345 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
17346 consolidated from x/mac/w32term.h.
17347 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
17348 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
17349 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
17350 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
17352 * window.h (struct window): Rename members left to left_col,
17353 top to top_line, height to total_lines, width to total_cols,
17354 left_margin_width to left_margin_cols, right_margin_width to
17355 right_margin_cols, orig_height to orig_total_lines, orig_top to
17356 orig_top_line. All uses changed.
17357 (struct window): New members left_fringe_width, right_fringe_width,
17358 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
17359 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
17360 New macros primarily used to simplify other macros.
17361 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
17362 referred to XINT (w->width).
17363 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
17364 referred to XINT (w->height).
17365 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
17366 referred to XINT (w->width) * canon_x_unit.
17367 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
17368 referred to XINT (w->height) * canon_y_unit.
17369 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
17370 referred to XINT (w->left).
17371 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
17372 all uses and code that referred to XINT (w->left) + XINT (w->width).
17373 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
17374 referred to XINT (w->top).
17375 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
17376 referred to XINT (w->top) + XINT (w->height).
17377 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
17378 referred to XINT (w->left) * canon_x_unit.
17379 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
17380 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
17381 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
17382 referred to XINT (w->top) * canon_y_unit.
17383 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
17384 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
17385 (WINDOW_LEFTMOST_P): New macro.
17386 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
17388 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
17390 (WINDOW_BOX_LEFT_EDGE_X): Rename from
17391 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
17392 Do not exclude left fringe width.
17393 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
17394 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
17395 Do not exclude fringe widths.
17396 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
17397 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
17398 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
17399 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
17400 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
17401 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
17402 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
17403 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
17404 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
17405 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
17406 New macros. Change code which referenced corresponding
17407 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
17408 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
17409 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
17410 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
17411 allow per-window scroll-bar settings.
17412 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
17413 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
17414 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
17415 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
17416 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
17417 FRAME_SCROLL_BAR_WIDTH.
17418 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
17419 (WINDOW_SCROLL_BAR_AREA_X): New macros.
17420 (WINDOW_HEADER_LINE_HEIGHT): Rename from
17421 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
17422 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
17423 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
17424 (WINDOW_BOX_TEXT_HEIGHT): Rename from
17425 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
17426 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17427 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
17428 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
17429 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
17430 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
17431 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
17432 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
17433 (window_from_coordinates): Update prototype.
17434 (Fset_window_buffer): Update EXFUN.
17435 (set_window_buffer): Update prototype.
17437 * dispextern.h (struct glyph_matrix): Rename members window_left_x
17438 to window_left_col, window_top_y to window_top_line. All uses
17440 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
17441 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
17442 internal_border_width is now set to 0 for non-window frames.
17443 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
17444 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
17445 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
17446 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
17447 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
17448 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17449 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
17450 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
17451 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
17452 Move to window.h and renamed [see window.h changes].
17453 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
17454 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
17455 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
17456 Use WINDOW_TOTAL_LINES.
17457 (frame_update_line_height): Remove prototype.
17459 * buffer.h (struct buffer): Rename members measured in columns:
17460 left_margin_width to left_margin_cols, right_margin_width to
17461 right_margin_cols. All uses changed.
17462 New members left_fringe_width, right_fringe_width,
17463 fringes_outside_margins for per-buffer fringe settings.
17464 New members scroll_bar_width and vertical_scroll_bar_type for
17465 per-buffer scroll bar settings.
17467 * buffer.c (init_buffer_once): Set buffer_defaults and
17468 buffer_local_flags for new buffer-local variables
17469 left_fringe_width, right_fringe_width, fringes_outside_margins,
17470 scroll_bar_width, and vertical_scroll_bar_type.
17471 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
17472 default-* variables for them.
17474 * dispnew.c: Make (many) trivial substitutions for renamed and
17475 new macros in dispextern.h, frame.h and window.h.
17476 (mode_line_string): No need to adjust width for mode lines, as it
17477 is already adjusted by the caller.
17478 (marginal_area_string): Handle fringes inside/outside margins.
17480 * frame.c: Make (many) trivial substitutions for renamed and
17481 new macros in dispextern.h, frame.h and window.h.
17482 (make_frame): Initialize left_fringe_width, right_fringe_width,
17483 fringe_cols, scroll_bar_actual_width, border_width,
17484 internal_border_width, column_width, line_height, x_pixels_diff,
17485 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
17486 members with values suitable for a non-window frames.
17488 * gtkutil.c: Make (many) trivial substitutions for renamed and
17489 new macros in dispextern.h, frame.h and window.h.
17491 * indent.c: Make (few) trivial substitutions for renamed and
17492 new macros in dispextern.h, frame.h and window.h.
17494 * keyboard.c: Make (many) trivial substitutions for renamed and
17495 new macros in dispextern.h, frame.h and window.h.
17496 (make_lispy_event): Use window positions returned from
17497 window_from_coordinates when constructing the lisp event for
17498 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
17499 (incorrect) values locally.
17500 (make_lispy_movement): Use window positions returned from
17501 window_from_coordinates when constructing the lisp event, rather
17502 than calculating (incorrect) values locally.
17504 * scroll.c: Make (some) trivial substitutions for renamed and
17505 new macros in dispextern.h, frame.h and window.h.
17507 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
17510 * sysdep.c: Make (few) trivial substitutions for renamed and
17511 new macros in dispextern.h, frame.h and window.h.
17513 * term.c: Make (some) trivial substitutions for renamed and
17514 new macros in dispextern.h, frame.h and window.h.
17516 * widget.c: Make (few) trivial substitutions for renamed and
17517 new macros in dispextern.h, frame.h and window.h.
17519 * window.c: Make (many) trivial substitutions for renamed and
17520 new macros in dispextern.h, frame.h and window.h.
17521 (make_window): Initialize new members
17522 left_margin_cols, right_margin_cols, left_fringe_width,
17523 right_fringe_width, fringes_outside_margins, scroll_bar_width,
17524 and vertical_scroll_bar_type.
17525 (coordinates_in_window): Adapt to new fringe/margin positions
17526 and per-window fringes and scroll-bars.
17527 Fix bug related to incorrectly adjusting coordinates by
17528 frame's internal_border_width (the effect normally negible since
17529 the internal_border_width is typically 0 or 1 pixel, but very
17530 noticeable for an internal_border_width of e.g. 25 pixels).
17531 Upon successful return (other than ON_NOTHING), the coordinates
17532 are now always properly converted to window relative for the
17533 given display element.
17534 (window_from_coordinates): Add new parameters wx and wy to
17535 return the window relative x and y position in the returned
17536 window and part. A null arg means, don't return the position.
17537 All callers changed.
17538 (adjust_window_margins): New function which may reduce the width
17539 of the display margins if a window's text area is too small after
17540 resizing or splitting windows.
17541 (size_window): Fix bug that did not account for display margin
17542 widths when checking the minimum width of a window; use
17543 adjust_window_margins.
17544 (set_window_buffer): Call Fset_window_fringes and
17545 Fset_window_scroll_bars to setup per-window elements.
17546 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
17547 existing display margin, fringe widths, and scroll bar settings
17548 (e.g. after splitting a window or resizing the frame).
17549 All callers changed.
17550 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
17551 (Fsplit_window): Duplicate original window's display margin,
17552 fringe, and scroll-bar settings; then call Fset_window_buffer with
17553 KEEP_MARGINS non-nil. This fixes a bug which caused a split
17554 window to only preserve the display margins in one of the windows.
17555 When splitting horizontally, call adjust_window_margins on both
17556 windows to ensure that the text area of the new windows is non too
17557 narrow. This fixes a bug which could cause Emacs to trap if the
17558 width of the split window was less than the width of the display
17560 (window_box_text_cols): Rename from window_internal_width.
17561 All uses changed. Adapt to per-window fringes and scroll bars.
17562 Fix bug that caused vertical separator to be subtracted also on
17563 window frames. Fix another bug that did not reduce the returned
17564 value by the columns used for display margins.
17565 (window_scroll_line_based): Fix bug related to scrolling too much
17566 when display margins are present (implicitly fixed by the fix to
17567 window_box_text_cols).
17568 (scroll_left, scroll_right): Fix bug related to scrolling too far
17569 by default when display margins are present (implicitly fixed by
17570 the fix to window_box_text_cols).
17571 (struct saved_window): Rename members left to left_col, top to
17572 top_line, width to total_cols, height to total_lines, orig_top to
17573 orig_top_line, orig_height to orig_total_lines. All uses changed.
17574 New members left_margin_cols, right_margin_cols,
17575 left_fringe_width, right_fringe_width, fringes_outside_margins,
17576 scroll_bar_width, and vertical_scroll_bar_type for saving
17577 per-window display elements.
17578 (Fset_window_configuration): Restore display margins, fringes,
17579 and scroll bar settings. This fixes a bug which caused display
17580 margins to be discarded when saving and restoring a window
17582 (save_window_save): Save display margins, fringes, and scroll bar
17583 settings. This fixes a bug which caused display margins to be
17584 discarded when saving and restoring a window configuration.
17585 (Fset_window_margins): Do nothing if display margins are not
17586 really changed. Otherwise, call adjust_window_margins to ensure
17587 the text area doesn't get too narrow. This fixes a bug which
17588 could cause Emacs to trap if setting display margins wider than
17589 the width of the window.
17590 (Fset_window_fringes): New defun to allow user to specifically set
17591 this window's fringe widths and position vs. display margins.
17592 (Fwindow_fringes): New defun to return window's actual fringe settings.
17593 (Fset_window_scroll_bars): New defun to allow user to specifically
17594 set this window's scroll bar width and position.
17595 (Fwindow_scroll_bars): New defun to return window's actual scroll
17597 (compare_window_configurations): Also compare display margins,
17598 fringes, and scroll bar settings.
17599 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
17601 * xdisp.c: Make (many) trivial substitutions for renamed and
17602 new macros in dispextern.h, frame.h and window.h.
17603 (window_box_width): Adapt to per-window fringes and scroll bars,
17604 and new fringe vs. display margin position. Note that returned
17605 value is no longer guaranteed to be a whole multiple of the frame
17606 column width, since per-window fringes may now be any width.
17607 (window_box_left_offset): New function like window_box_left, but
17608 value is relative to left border of window (rather than frame).
17609 (window_box_right_offset): New function like window_box_right,
17610 but value is relative to left border of window.
17611 (window_box_left): Adapt to per-window fringes and scroll bars,
17612 and new fringe vs. display margin position. Simplify by using
17613 WINDOW_LEFT_EDGE_X and window_box_left_offset.
17614 (window_box): Allow null args for unnecessary return values;
17615 change/simplify relevant callers.
17616 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
17617 and new fringe vs. display margin position.
17618 Use window_box_left_offset and window_box_right_offset
17619 (get_glyph_string_clip_rect): Adapt to per-window fringes and
17620 scroll bars, and new fringe vs. display margin position.
17621 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
17622 (draw_fringe_bitmap): Rework to handle per-window fringes and new
17623 fringe vs. display margin position.
17624 (hscroll_window_tree): Use window_box_width instead of window_box.
17625 (redisplay_window): Adapt to per-window scroll bars.
17626 (draw_glyphs): Rework to handle per-window fringes and scroll
17627 bars, and new fringe vs. display margin position.
17628 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
17629 (x_clear_end_of_line): Adapt to per-window fringes and scroll
17630 bars, and new fringe vs. display margin position. Fix bug which
17631 increased total width of full_width rows by width of scroll bars
17632 although window's total width already includes that.
17633 (x_fix_overlapping_area): Simplify using window_box_left_offset.
17634 (expose_area): Simplify using window_box_left_offset.
17635 (x_draw_vertical_border): Handle per-window scroll bar settings,
17636 mixing windows with left, right and no scroll bars.
17638 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
17639 where it's used in x_list_fonts (for clarity).
17640 (frame_update_line_height): Remove unused function; functionality
17641 is now done directly when setting the default font in x_set_font.
17643 * xfns.c: Make (many) trivial substitutions for renamed and
17644 new macros in dispextern.h, frame.h and window.h.
17646 * xmenu.c: Make (some) trivial substitutions for renamed and
17647 new macros in dispextern.h, frame.h and window.h.
17649 * xterm.h (struct x_output): Move members left_pos, top_pos,
17650 border_width, pixel_height, pixel_width, line_height,
17651 internal_border_width, vertical_scroll_bar_extra,
17652 left_fringe_width, right_fringe_width, fringe_cols,
17653 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17654 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17655 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17656 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17657 (PIXEL_WIDTH, PIXEL_HEIGHT)
17658 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
17659 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
17660 frame.h and renamed [see frame.h changes].
17661 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17662 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
17663 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
17664 and renamed [see frame.h changes].
17666 * xterm.c: Make (several) trivial substitutions for renamed and
17667 new macros in dispextern.h, frame.h and window.h.
17668 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
17669 (scroll_run): Adapt to new fringe position.
17670 (glyph_rect): Use window coordinates returned from
17671 window_from_coordinates rather than frame_to_window_pixel_xy.
17672 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17674 (handle_one_xevent): Simplify a USE_GTK conditional.
17675 (x_clip_to_row): Remove superfluous whole_line_p arg and code
17676 (fringes are now inside margins, i.e. always in the clipping area).
17677 All callers changed.
17678 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17679 directly, then call compute_fringe_widths. Don't call
17680 frame_update_line_height.
17682 * w32term.h (struct w32_output): Move members left_pos, top_pos,
17683 border_width, pixel_height, pixel_width, line_height,
17684 internal_border_width, vertical_scroll_bar_extra,
17685 left_fringe_width, right_fringe_width, fringe_cols,
17686 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17687 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17688 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17689 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17690 (PIXEL_WIDTH, PIXEL_HEIGHT)
17691 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
17692 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
17693 frame.h and renamed [see frame.h changes].
17694 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17695 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
17696 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
17697 and renamed [see frame.h changes].
17699 * w32term.c: Make (several) trivial substitutions for renamed and
17700 new macros in dispextern.h, frame.h and window.h.
17701 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
17702 (glyph_rect): Use window coordinates returned from
17703 window_from_coordinates rather than frame_to_window_pixel_xy.
17704 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17706 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
17707 (fringes are now inside margins, i.e. always in the clipping area).
17708 All callers changed.
17709 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17710 directly, then call compute_fringe_widths. Don't call
17711 frame_update_line_height.
17713 * w32console.c: Make (few) trivial substitutions for renamed and
17714 new macros in dispextern.h, frame.h and window.h.
17716 * w32fns.c: Make (many) trivial substitutions for renamed and
17717 new macros in dispextern.h, frame.h and window.h.
17719 * w32menu.c: Make (few) trivial substitutions for renamed and
17720 new macros in dispextern.h, frame.h and window.h.
17722 * macterm.h (struct mac_output): Move members left_pos, top_pos,
17723 border_width, pixel_height, pixel_width, line_height,
17724 internal_border_width, vertical_scroll_bar_extra,
17725 left_fringe_width, right_fringe_width, fringe_cols,
17726 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17727 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
17728 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17729 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17730 (PIXEL_WIDTH, PIXEL_HEIGHT)
17731 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
17732 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
17733 frame.h and renamed [see frame.h changes].
17734 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17735 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
17736 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
17737 and renamed [see frame.h changes].
17739 * macterm.c: Make (several) trivial substitutions for renamed and
17740 new macros in dispextern.h, frame.h and window.h.
17741 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
17742 (glyph_rect): Use window coordinates returned from
17743 window_from_coordinates rather than frame_to_window_pixel_xy.
17744 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17746 (x_clip_to_row): Remove superfluous whole_line_p arg and code
17747 (fringes are now inside margins, i.e. always in the clipping area).
17748 All callers changed.
17749 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17750 directly, then call compute_fringe_widths. Don't call
17751 frame_update_line_height.
17753 * macfns.c: Make (several) trivial substitutions for renamed and
17754 new macros in dispextern.h, frame.h and window.h.
17755 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
17757 * macmenu.c: Make (few) trivial substitutions for renamed and
17758 new macros in dispextern.h, frame.h and window.h.
17760 * msdos.h (struct x_output): Remove members left_pos, top_pos,
17761 and line_height, and use corresponding new members in struct
17762 frame. All uses changed.
17763 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
17764 superseeded by corresponding macros in frame.h.
17766 * msdos.c: Make (several) trivial substitutions for renamed and
17767 new macros in dispextern.h, frame.h and window.h.
17768 (IT_note_mouse_highlight): Use updated window coordinates returned
17769 by window_from_coordinates, rather than adjusting them locally.
17770 (internal_terminal_init): No need to initialize line_height here;
17771 it now defaults to 1.
17773 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
17775 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
17776 dropping `down' events.
17778 2003-05-24 Andreas Schwab <schwab@suse.de>
17780 * coding.c (find_safe_codings): Fix last change.
17782 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
17784 * xfns.c (x_window): Fix typo from 2003-05-21 change.
17786 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
17788 * xdisp.c (display_mode_element): Increase max depth.
17789 Simplify the error handling code. Use a different error string
17790 for the case where we hit the depth limit.
17792 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
17794 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
17796 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
17798 * intervals.c (get_local_map): Don't get char-property of previous
17799 point any more: get_pos_property already does it and better.
17801 2003-05-21 Dave Love <fx@gnu.org>
17803 [Merged from unicode branch.]
17805 * xfns.c (x_window, x_window): Use use_xim.
17807 * xterm.c (use_xim): Initialize.
17808 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17809 (x_term_init): Maybe set use_xim.
17811 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17813 2003-05-21 Jason Rumney <jasonr@gnu.org>
17815 * unexw32.c (_start): Remove _fmode initialization.
17817 * emacs.c (main) [WINDOWSNT]: Move it here.
17819 2003-05-20 Dave Love <fx@gnu.org>
17821 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
17823 2003-05-19 Richard M. Stallman <rms@gnu.org>
17825 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
17826 as value for QCfont attribute.
17827 (realize_default_face): lface should already exist; crash if not.
17828 Specify 0 for FORCE_P when calling set_lface_from_font_name.
17830 * frame.c (Fignore_event): Doc fix.
17832 2003-05-19 Kenichi Handa <handa@m17n.org>
17834 * coding.c (decode_coding_string): Handle post-read-conversion
17835 even if the coding doesn't require decoding.
17837 2003-05-18 Richard M. Stallman <rms@gnu.org>
17839 * callproc.c (Fcall_process_region): Doc fix.
17841 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
17843 * lread.c (Fload): Print a message if package is obsolete.
17845 * window.c (Fselect_window): Add optional `norecord' arg.
17846 (select_window_1): Fold into Fselect_window.
17847 (select_window_norecord): New function.
17848 (temp_output_buffer_show): Use it. Preserve current buffer.
17850 * window.h (Fselect_window): Update declaration.
17852 * window.c (delete_window, Fother_window, Fset_window_configuration):
17853 * minibuf.c (read_minibuf):
17854 * macterm.c (x_new_focus_frame):
17855 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
17856 * callint.c (Fcall_interactively):
17857 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
17859 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
17861 2003-05-17 David Kastrup <dak@gnu.org>
17863 * process.c (read_process_output): Back out change from 2003-03-09.
17865 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
17867 * editfns.c (get_pos_property): Don't assume that `object' = nil.
17869 * textprop.c (text_property_stickiness): New arg `buffer'.
17871 * intervals.h (text_property_stickiness): New arg `buffer'.
17872 (get_pos_property): Declare.
17874 * intervals.c (get_local_map): Use get_pos_property, to obey
17875 stickiness and empty overlays.
17876 (create_root_interval, graft_intervals_into_buffer): Use BEG.
17877 (merge_properties, intervals_equal, merge_properties_sticky):
17879 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
17881 2003-05-17 Richard M. Stallman <rms@gnu.org>
17883 * minibuf.c (read_minibuf): If buffer is empty, record the default
17885 (Fminibuffer_complete_word): When deleting the overlap, take account
17886 of its real position.
17888 * fns.c (map_char_table): Fix previous change.
17890 * syntax.c (find_defun_start):
17891 When open_paren_in_column_0_is_defun_start,
17892 return beginning of buffer.
17894 * lisp.h (map_char_table): Declare added arg.
17896 * fns.c (map_char_table): New arg TABLE gets the master table.
17898 Process default and inheritance, resorting to Faref if necessary.
17900 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17901 (Faccessible_keymaps): Pass new arg to map_char_table.
17903 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
17905 * casetab.c (set_case_table): Pass new arg to map_char_table.
17907 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
17909 * lisp.h (specbinding_func): New typedef.
17910 (struct specbinding): Use specbinding_func, to put the `volatile'
17911 in the right place.
17913 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
17914 to avoid GCC warning.
17916 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
17918 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
17920 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
17922 * keyboard.c (apply_modifiers): Don't fill the other cache.
17924 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
17926 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
17928 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
17929 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
17930 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
17931 (Fset_window_configuration, Fcurrent_window_configuration)
17932 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
17933 (Fpos_visible_in_window_p, mark_window_cursors_off)
17934 (window_internal_height, window_internal_width, Frecenter)
17935 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
17936 (replace_buffer_in_all_windows, init_window_once, init_window)
17937 (syms_of_window, keys_of_window): Move from lisp.h.
17938 * lisp.h: Move window.c declarations to window.h.
17940 * bytecode.c: Include window.h.
17941 * emacs.c: Include window.h.
17943 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
17944 (keyremap): Add `parent' field.
17945 (keyremap_step): Use it. Remove `parent' argument.
17946 (read_key_sequence): Setup and use the new `parent' field.
17948 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
17950 * keyboard.c (adjust_point_for_property): Ensure termination.
17952 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
17954 * keyboard.c (follow_key): Remove dead variable `did_meta'.
17955 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
17956 duplicated handling of function-key-map and key-translation-map
17957 in read_key_sequence.
17958 (read_key_sequence): Use them.
17960 * keyboard.c (adjust_point_for_property): Try harder to move point
17961 to the non-sticky end of an invisible property.
17963 * xdisp.c (single_display_prop_intangible_p): Make `space' display
17964 property intangible as well.
17966 2003-05-10 Andreas Schwab <schwab@suse.de>
17968 * xmenu.c (single_menu_item): Change last parameter to void* to
17971 2003-05-09 Richard M. Stallman <rms@gnu.org>
17973 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
17974 Bind Qinhibit_modification_hooks to t so there will be no GC.
17975 Rename local `tem' to `save_deactivate_mark'.
17977 * eval.c (specpdl_ptr): Declare volatile.
17978 (unbind_to): Copy the whole binding and decrement specpdl_ptr
17979 before doing the work of unbinding it.
17981 * lisp.h (struct specbinding): Declare elements volatile.
17982 (specpdl_ptr): Declare volatile.
17984 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
17986 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
17987 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
17989 2003-05-08 Dave Love <fx@gnu.org>
17991 * coding.c (Vlast_coding_system_used): Doc fix.
17993 2003-05-07 Jason Rumney <jasonr@gnu.org>
17995 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
17996 when system does not support them.
17998 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
18000 * fileio.c (Qwrite_region_annotate_functions): New var.
18001 (build_annotations): Use it to process the global part of the hook.
18002 (syms_of_fileio): Init and staticpro it.
18004 * keyboard.c (safe_run_hooks_error): Display a message instead of
18005 silently ignoring the error.
18007 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
18009 * keyboard.c (input_available_signal): Mark static.
18010 (menu_bar_items): Use map_keymap.
18011 (menu_bar_one_keymap): Remove.
18012 (menu_bar_item): Adjust arglist (for use in map_keymap).
18013 Properly hide a second binding when not both are keymaps.
18015 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
18016 (single_keymap_panes): Use it and map_keymap.
18017 (single_menu_item): Use skp as well.
18019 * keymap.h (map_keymap_function_t): New type.
18020 (map_keymap): Declare.
18022 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
18023 (map_keymap_call, Fmap_keymap): New functions.
18024 (syms_of_keymap): Defsubr map-keymap.
18026 2003-05-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18028 * gtkutil.c (create_dialog, make_widget_for_menu_item)
18029 (make_menu_item, create_menus, xg_update_menu_item): Don't call
18030 ..._with_mnemonic functions for menu items.
18032 2003-05-01 Kenichi Handa <handa@m17n.org>
18034 * coding.c (coding_system_accept_latin_extra_p): Delete this
18036 (find_safe_codings): Pay attention to
18037 the property tranlsation-table-for-encode of each codings.
18038 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
18040 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
18042 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
18044 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
18046 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
18048 * lisp.h (CHECK): Wrap args in parenthesis.
18049 (specbind): Fix doc: symbol = Qnil is not supported any more.
18051 * bytecode.c (Fbyte_code) <unwind-protect>:
18052 Use Fprogn rather than 0 and Qnil.
18054 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
18055 `double', and `triple' modifiers as well.
18057 2003-04-30 Richard M. Stallman <rms@gnu.org>
18059 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
18061 * alloc.c (abort_on_gc): New variable.
18062 (Fgarbage_collect): Abort if abort_on_gc is set.
18064 * lisp.h (abort_on_gc): Add decl.
18066 * eval.c (Fsignal): Clear abort_on_gc.
18068 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
18069 Reinit FORMAT_START and END before second scan.
18071 * xdisp.c (move_it_vertically_backward): Do the final big else
18072 even if nlines is 0.
18074 * xdisp.c (redisplay_internal): Finish the per-frame loop
18075 even if redisplay is suspended by input.
18077 2003-04-24 Andrew Choi <akochoi@shaw.ca>
18079 * macterm.c (x_list_fonts): Return all fonts that match if
18082 2003-04-25 Kenichi Handa <handa@m17n.org>
18084 * syntax.c (skip_chars): Fix previous change.
18086 2003-04-24 Kenichi Handa <handa@m17n.org>
18088 * syntax.c (skip_chars): Make the code faster by using the common
18089 technique of *p, *stop, and *endp.
18091 2003-04-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18093 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
18094 tool_bar_items so GTK tool bar expose callback does not access items
18097 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
18099 * eval.c (Fapply): Undo last change and add a comment about why.
18101 2003-04-18 Miles Bader <miles@gnu.org>
18103 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
18104 pickier PARSE_MULTIBYTE_SEQ.
18106 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
18108 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
18109 Use XCDR, XCAR, CONSP.
18110 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
18111 (Fapply): Remove unnecessary GCPRO.
18113 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
18115 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
18117 * buffer.h: Don't hardcode BEG==1.
18119 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
18121 2003-04-16 Richard M. Stallman <rms@gnu.org>
18123 * xdisp.c (try_window, try_window_reusing_current_matrix):
18124 When at end of window, set window_end_pos to Z-ZV.
18126 * buffer.c (Foverlay_recenter): Doc fix.
18128 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
18130 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
18132 2003-04-14 Andrew Choi <akochoi@shaw.ca>
18134 * macterm.c (mac_check_for_quit_char): Don't check more often than
18137 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
18139 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
18140 specially, so that they can't hide an implicit switch-frame event.
18141 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
18142 (head_table): Use switch-frame as event_kind for select-window.
18143 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
18145 * editfns.c (Fformat): Lisp_Object/int mixup.
18146 (format2): Remove unused var numargs.
18148 2003-04-11 Kenichi Handa <handa@m17n.org>
18150 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
18151 (Qafter_insert_file_set_coding): New variable.
18152 (syms_of_fileio): Initialize and staticpro it. Delete declaration
18153 for after-insert-file-adjust-coding-function.
18154 (Finsert_file_contents): Call Qafter_insert_file_set_coding
18155 instead of Vafter_insert_file_adjust_coding_function.
18157 2003-04-11 Kenichi Handa <handa@m17n.org>
18159 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
18161 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
18162 string. Callers changed.
18164 2003-04-10 Kenichi Handa <handa@m17n.org>
18166 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
18167 (syms_of_fileio): Declare it as a lisp variable.
18168 (Finsert_file_contents):
18169 Call Vafter_insert_file_adjust_coding_function before calling
18172 2003-04-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18174 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
18175 get GtkAdjustment as widget now is a GtkRange.
18177 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
18178 GtkRange to avoid memory leak.
18180 2003-04-09 Kenichi Handa <handa@m17n.org>
18182 * xfaces.c (Vface_font_rescale_alist): New variable.
18183 (struct font_name): New member rescale_ratio.
18184 (font_rescale_ratio): New function.
18185 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
18186 (better_font_p): On comparing point sized, pay attention to
18187 recale_ratio member of fonts.
18188 (build_scalable_font_name): Reflect font->rescale_ratio in the
18190 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18192 * lread.c (read1): Before calling index, check if the 2nd
18193 arguemnt is in ASCII range.
18195 2003-04-08 Richard M. Stallman <rms@gnu.org>
18197 * fileio.c (Ffile_symlink_p): Doc fix.
18199 * editfns.c (Fformat): Translate positions of text properties
18200 in the format string to apply them to the result.
18202 * fileio.c (Finsert_file_contents): Doc fix.
18203 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18205 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
18207 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
18209 2003-04-08 Steven Tamm <steventamm@mac.com>
18211 * mac.c (init_mac_osx_environment): Switch libexec and bin so
18212 that self-contained application finds libexec files.
18214 2003-04-08 Kenichi Handa <handa@m17n.org>
18216 * coding.c (code_convert_region_unwind):
18217 Set Vlast_coding_system_used to the argument.
18218 (code_convert_region): If post-read-conversion function changed
18219 the value of last-coding-sytem, keep the new value in
18220 coding->symbol so that it won't be overridden.
18221 (run_pre_post_conversion_on_str): Likewise.
18222 (coding_system_accept_latin_extra_p): New function.
18223 (find_safe_codings): Pay attention to characters registered in
18224 latin-extra-code-table.
18226 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
18228 * Makefile.in (md5.o): Add missing dependency info.
18230 2003-04-06 Richard M. Stallman <rms@gnu.org>
18232 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
18234 * marker.c (verify_bytepos): New function.
18236 * intervals.c (set_intervals_multibyte_1): When becoming
18237 multibyte, adjust right and left child sizes to a whole set of
18238 characters. If an interval gets zero total-length, delete it.
18239 If an interval consists of just its children, delete one of them.
18241 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
18242 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
18244 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
18246 (lisp_malloc): Do the work here directly.
18248 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
18250 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
18253 2003-04-04 Kenichi Handa <handa@m17n.org>
18255 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
18256 destructively change "%S" to "%s".
18258 2003-04-03 Miles Bader <miles@gnu.org>
18260 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
18263 2003-04-01 Dave Love <fx@gnu.org>
18265 * xfns.c (xpm_lookup_color): Grok "opaque".
18267 2003-03-31 Andrew Choi <akochoi@shaw.ca>
18269 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
18272 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
18274 * macterm.h (struct mac_output): Define x_pixels_diff and
18277 2003-03-31 Juanma Barranquero <lektu@terra.es>
18279 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
18280 blockinput.h and files included from it.
18282 2003-03-31 Kim F. Storm <storm@cua.dk>
18284 The following changes consolidates the common code related to
18285 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
18286 files into frame.c.
18288 * frame.c: Include blockinput.h.
18289 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
18290 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
18291 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
18293 (struct frame_parm_table, frame_parms): New table for describing
18294 frame parameters and their associated Q-variable.
18295 The order of the parameters corresponds to the sequence of the
18296 frame_parm_handlers table in redisplay_interface.
18297 (x_fullscreen_move, x_set_frame_parameters)
18298 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
18299 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
18300 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18301 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
18302 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
18303 Generic functions for processing of frame parameters.
18304 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
18305 (display_x_get_resource, x_get_resource_string): Functions for
18306 generic access to X resources.
18307 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18308 (x_default_parameter, Fx_parse_geometry): Functions for generic
18309 access to frame parameters.
18310 (x_figure_window_size): Generic calculation of frame size.
18311 Fixed to add space needed for tool bar. Also setup size_hint_flags.
18312 (syms_of_frame): Intern and staticpro frame parameter variables.
18313 Defvar_lisp Vx_resource_class and Vx_resource_name here.
18314 Defsubr Sx_get_resource and Sx_parse_geometry.
18316 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
18317 parameter related vars defined in frame.c.
18318 (EMACS_CLASS): Define here.
18319 (enum FULLSCREEN_*): Define here.
18320 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
18321 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
18322 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
18323 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
18324 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
18325 (x_set_visibility, x_set_autoraise, x_set_autolower)
18326 (x_set_unsplittable, x_set_vertical_scroll_bars)
18327 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
18328 (x_figure_window_size): Add prototypes.
18330 * dispextern.h (frame_parm_handler): New typedef.
18331 (struct redisplay_interface): New member frame_parm_handlers.
18332 (enum resource_types): Move declaration here.
18333 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18334 (x_default_parameter): Add prototypes.
18336 * window.c: Remove extern decl for frame parameter vars.
18337 (change_window_heights): New generic function;
18338 replaces x_change_window_heights. All users changed.
18340 * window.h (change_window_heights): Add prototype.
18342 * xfaces.c: Remove extern decl for frame parameter vars.
18344 * xterm.h (EMACS_CLASS): Remove. Use generic define.
18345 (struct w32_display_info): Fix type of xrdb member.
18346 (enum FULLSCREEN_*): Remove.
18347 Remove prototypes for generic functions (in frame.h).
18349 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18350 parameters now defined in frame.h and frame.c.
18351 (Vx_resource_name): Remove. Use generic var.
18352 (enum x_frame_parms): Remove (bogus, unused enum).
18353 (check_x_display_info): Make non-static (for frame.c).
18354 (struct x_frame_parm_table, x_frame_parms): Remove.
18355 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18356 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18357 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18358 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18359 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18360 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18361 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18362 Remove. Use generic functions instead.
18363 (enum resource_types): Remove.
18364 (x_set_scroll_bar_default_width): New global function (for frame.c).
18365 (Fx_create_frame): Depend on x_figure_window_size to add space for
18366 toolbar and setup size_hint_flags.
18367 (x_frame_parm_handlers): New table for redisplay_interface.
18368 (syms_of_xfns): Don't intern/staticpro removed vars.
18370 * xterm.c: Remove unnecessary extern declarations.
18371 (x_fullscreen_adjust): Remove. Use generic instead.
18372 (x_redisplay_interface): Add x_frame_parm_handlers member.
18374 * w32gui.h (XrmDatabase): New (dummy) typedef.
18376 * w32term.h (EMACS_CLASS): Remove. Use generic define.
18377 (struct w32_display_info): Fix type of xrdb member.
18378 (enum FULLSCREEN_*): Remove.
18379 (x_fullscreen_adjust): Remove prototype.
18381 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18382 parameters now defined in frame.h and frame.c.
18383 (Vx_resource_name): Remove. Use generic var.
18384 (enum x_frame_parms): Remove (bogus, unused enum).
18385 (check_x_display_info): Make non-static (for frame.c).
18386 (struct x_frame_parm_table, x_frame_parms): Remove.
18387 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18388 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18389 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18390 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18391 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18392 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18393 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18394 Remove. Use generic functions instead.
18395 (enum resource_types): Remove.
18396 (x_set_scroll_bar_default_width): New global function (for frame.c).
18397 (Fx_create_frame): Depend on x_figure_window_size to add space for
18398 toolbar and setup size_hint_flags.
18399 (w32_frame_parm_handlers): New table for redisplay_interface.
18400 (syms_of_w32fns): Don't intern/staticpro removed vars.
18402 * w32term.c: Remove unnecessary extern declarations.
18403 (x_fullscreen_adjust): Remove. Use generic instead.
18404 (x_redisplay_interface): Add w32_frame_parm_handlers member.
18406 * w32reg.c (x_get_string_resource): Use XrmDatabase.
18408 * macgui.h (XrmDatabase): New (dummy) typedef.
18410 * macterm.h (EMACS_CLASS): Remove.
18411 (struct mac_display_info): Add xrdb member.
18412 (struct mac_output): Add want_fullscreen member.
18414 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18415 parameters now defined in frame.h and frame.c.
18416 (Vx_resource_name): Remove. Use generic var.
18417 (check_x_display_info): Make non-static (for frame.c).
18418 (struct x_frame_parm_table, x_frame_parms): Remove.
18419 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18420 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18421 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18422 (x_change_window_heights, x_set_autoraise, x_set_autolower)
18423 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18424 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18425 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18426 Remove. Use generic functions instead.
18427 (enum resource_types): Remove.
18428 (x_set_scroll_bar_default_width): New global function (for frame.c).
18429 (mac_frame_parm_handlers): New table for redisplay_interface.
18430 (syms_of_macfns): Don't intern/staticpro removed vars.
18432 * macterm.c: Remove unnecessary extern declarations.
18433 (x_redisplay_interface): Add mac_frame_parm_handlers member.
18435 * Makefile.in (frame.o): Add dependency on blockinput.h and files
18436 included from it (atimer.h and systime.h).
18438 2003-03-30 Andreas Schwab <schwab@suse.de>
18440 * xdisp.c (x_insert_glyphs): Fix swapped width and height
18441 parameters for shift_glyphs_for_insert.
18443 * macterm.c (x_redisplay_interface): Add missing entry for
18444 draw_vertical_window_border.
18446 2003-03-29 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@gmx.net>
18448 * fileio.c (Fexpand_file_name): In the no-handler case, after
18449 expanding, look again for a handler and invoke it. This is needed
18450 for filenames like "/foo/../user@host:/bar/../baz" -- the first
18451 expansion produces "/user@host:/bar/../baz" which needs to be
18452 expanded again for the finame result "/user@host:/baz".
18454 2003-03-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18456 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
18457 of area to be redrawn for better performance.
18459 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
18461 * xterm.c (take_vertical_position_into_account): Remove.
18462 (xt_action_hook): Call set_vertical_scroll_bar if needed.
18463 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
18464 (xm_scroll_callback, x_create_toolkit_scroll_bar)
18465 (x_set_toolkit_scroll_bar_thumb): Simplify.
18466 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
18467 (XTread_socket): Remove unused var.
18468 (x_make_frame_invisible): Replace goto with else.
18470 * xdisp.c (set_vertical_scroll_bar): New fun.
18471 (redisplay_window): Use it.
18473 2003-03-26 Richard M. Stallman <rms@gnu.org>
18475 * xdisp.c (update_tool_bar): Recompute tool bar if
18476 update_mode_lines is set. Set w->update_mode_line
18477 only if the tool bar contents actually change.
18478 (update_menu_bar): Undo previous change.
18480 2003-03-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18482 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
18483 (xg_frame_set_char_size): Calculate scroll bar width before frame
18484 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
18485 (xg_separator_p): Check for all documented separator types.
18486 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
18487 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
18489 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
18490 so tool bar gets updated.
18492 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
18494 * data.c (store_symval_forwarding): Re-instate part of the code
18495 that was deleted with too much enthusiasm.
18497 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
18499 * data.c (store_symval_forwarding): Delete special read-only
18500 hack for type == -1, since we now use ->constant instead.
18501 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
18503 * buffer.c (overlays_in): Declare static.
18504 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
18505 `constant' field rather than the variable's `type' field.
18507 2003-03-24 Andrew Choi <akochoi@shaw.ca>
18509 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
18511 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
18513 * fns.c [MAC_OSX]: Do not redefine vector.
18515 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
18517 * macgui.h: Remove definition of No_Cursor.
18519 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
18521 * xdisp.c: Define No_Cursor.
18522 (x_write_glyphs, notice_overwritten_cursor)
18523 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
18524 (note_mouse_highlight): Remove Mac-specific code.
18525 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
18527 2003-03-24 John Paul Wallington <jpw@gnu.org>
18529 * xdisp.c (redisplay_window): If mini window's buffer is not
18530 empty, then redisplay it like other windows.
18532 2003-03-23 Kim F. Storm <storm@cua.dk>
18534 * w32term.c (w32_draw_window_cursor): Fix last change.
18536 2003-03-23 Kenichi Handa <handa@m17n.org>
18538 * alloc.c (make_string_from_bytes, make_specified_string):
18539 Add `const' for the arg CONTENTS.
18541 * lisp.h (make_string_from_bytes, make_specified_string):
18542 Prototypes adjusted.
18544 2003-03-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18546 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
18548 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
18549 (XG_SB_RANGE): New define.
18551 * gtkutil.c (xg_fixed_handle_expose): New function.
18552 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
18554 (xg_update_scrollbar_pos): Take two more arguments, left and width
18555 of scroll bar including borders.
18556 Clear left and right part outside scroll bar separately as some
18557 themes have bars that are not an even number of pixels.
18558 Don't set reallocate_redraws, don't call
18559 gdk_window_process_all_updates.
18560 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
18561 so no need to change it. Calculate size and value with XG_SB_RANGE.
18563 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
18564 Pass left and width of scroll bar including borders to
18565 xg_update_scrollbar_pos.
18567 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
18569 * Makefile.in: Make sure space precedes end-of-line backslashes.
18571 2003-03-22 Kim F. Storm <storm@cua.dk>
18573 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
18574 Add generic versions here. Remove system specific versions
18577 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
18580 * xterm.h (STORE_NATIVE_RECT): New macro.
18582 2003-03-21 Kim F. Storm <storm@cua.dk>
18584 * xdisp.c (get_glyph_string_clip_rect):
18585 Use FRAME_INTERNAL_BORDER_WIDTH.
18587 * dispextern.h (struct redisplay_interface): Add active_p
18588 argument to draw_window_cursor member. All uses changed.
18590 2003-03-21 Kim F. Storm <storm@cua.dk>
18592 The following changes consolidate code related to writing and
18593 inserting glyphs, exposing frame, the tool bar, the mouse face,
18594 the output cursor, and help echo from xterm.c, w32term.c and
18595 macterm.c into xdisp.c. It also generalizes the use of the
18596 window_part enum instead of using numeric values throughout.
18598 * xdisp.c: Consolidate gui-independent code here.
18600 (Qhelp_echo): Import.
18601 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
18602 (help_echo_string, help_echo_window, help_echo_object)
18603 (previous_help_echo_string, help_echo_pos): Declare here.
18604 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
18605 (estimate_mode_line_height): Define here. Handle windowing
18606 systems directly (without using estimate_mode_line_height_hook).
18607 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
18608 (update_window_cursor, update_cursor_in_window_tree)
18609 (fast_find_position, fast_find_string_pos)
18610 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
18611 (expose_area, expose_line, expose_overlaps, expose_window)
18612 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
18613 declared static as they are only used locally in xdisp.c.
18614 (draw_glyphs): Rename from x_draw_glyphs and make static.
18615 (tool_bar_item_info, notice_overwritten_cursor): Make static.
18616 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
18617 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
18618 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
18619 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
18620 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
18621 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
18622 (note_mouse_highlight, x_clear_window_mouse_face)
18623 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
18624 (x_intersect_rectangles): New generic functions for use by xdisp.c
18625 and GUI front-ends.
18626 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
18627 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
18629 * dispextern.h (Display_Info): Generic typedef for *_display_info.
18630 (NativeRectangle): Generic typedef for rectangle type.
18631 (enum window_part): Move here from window.c.
18632 (struct redisplay_interface): New members flush_display_optional,
18633 define_frame_cursor, clear_frame_area, draw_window_cursor,
18634 draw_vertical_window_border, shift_glyphs_for_insert.
18635 Rename member clear_mouse_face to clear_window_mouse_face.
18636 (estimate_mode_line_height_hook): Remove hook.
18637 (auto_raise_tool_bar_buttons_p): Don't declare extern.
18638 (tool_bar_item_info): Remove prototype.
18639 (help_echo_string, help_echo_window, help_echo_object)
18640 (previous_help_echo_string, help_echo_pos)
18641 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
18642 (x_stretch_cursor_p, output_cursor): Declare extern.
18643 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
18644 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
18645 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
18646 (display_and_set_cursor, set_output_cursor, x_cursor_to)
18647 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
18648 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
18649 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
18650 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
18651 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
18653 (mode_line_string, marginal_area_string): Fix prototypes.
18655 * window.c (enum window_part): Move to dispextern.h.
18656 (coordinates_in_window): Use enum window_part member names
18657 instead of numbers to describe return value.
18658 (struct check_window_data): Change part member to window_part.
18659 (check_window_containing): Return window_part unaltered.
18660 (window_from_coordinates): Change part arg from int to enum
18661 window_part. Allow part arg to be null. All users changed.
18663 * window.h (window_from_coordinates): Fix prototype.
18665 * term.c (estimate_mode_line_height): Move to xdisp.c.
18667 * keyboard.c (make_lispy_event): Use enum window_part.
18669 * dispnew.c (mode_line_string, marginal_area_string): Use enum
18670 window_part instead of int in arg list. Users changed.
18672 * xterm.h (No_Cursor): Declare as None for X.
18673 (struct mac_output): Replace member cross_cursor by hand_cursor.
18675 * xterm.c: Remove consolidated defines and code.
18676 (BETWEEN): Remove unused macro.
18677 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
18678 (x_define_frame_cursor, x_clear_frame_area)
18679 (x_draw_window_cursor): New X-specific functions for RIF.
18680 (x_redisplay_interface): Add new members.
18682 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
18684 * w32term.h (struct w32_output): Remove cross_cursor member.
18686 * w32term.c: Remove consolidated defines and code.
18687 (BETWEEN): Remove unused macro.
18688 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
18689 (w32_define_frame_cursor, w32_clear_frame_area)
18690 (w32_draw_window_cursor): New W32-specific functions for RIF.
18691 (w32_redisplay_interface): Add new members.
18693 * w32gui.h (No_Cursor): Define as 0 for W32.
18694 (XRectangle): Add X compatible rectangle type.
18695 (NativeRectangle): Declare as RECT for W32.
18696 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18698 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
18700 * w32console.c: Remove consolidated defines and code.
18702 * msdos.h (Display_Info): Add generic typedef.
18704 * msdos.c: Remove consolidated defines and code.
18705 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
18707 * macterm.h (struct mac_output): Replace member cross_cursor by
18709 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
18711 * macterm.c: Remove consolidated defines and code.
18712 (BETWEEN): Remove unused macro.
18713 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
18714 (mac_define_frame_cursor, mac_clear_frame_area)
18715 (mac_draw_window_cursor): New Mac-specific functions for RIF.
18716 (x_redisplay_interface): Add new members.
18718 * macgui.h (No_Cursor): Define as 0 for Mac.
18719 (XRectangle): Add X compatible rectangle type.
18720 (NativeRectangle): Declare as Rect for Mac.
18721 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18723 * macfns.c (x_set_mouse_color): Setup hand_cursor.
18724 (x_set_cursor_color): Use x_display_and_set_cursor.
18726 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
18727 included from it. Add dependency on keymap.h.
18729 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
18731 2003-03-21 Kenichi Handa <handa@m17n.org>
18733 * fileio.c (Fexpand_file_name): Fix previous change.
18735 2003-03-19 Kenichi Handa <handa@m17n.org>
18737 * fileio.c (Ffile_name_directory): Reconstruct file name by
18738 make_specified_string.
18739 (Ffile_name_nondirectory, Ffile_name_as_directory)
18740 (Fdirectory_file_name, Fexpand_file_name)
18741 (Fsubstitute_in_file_name): Likewise.
18742 (Fread_file_name): Compare decoded homedir with DIR and
18745 * alloc.c (make_specified_string): If NCHARS is negative, count
18746 the number of characters.
18748 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18750 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
18753 * gtkutil.h: Removed xg_ignore_next_thumb.
18755 2003-03-18 Kenichi Handa <handa@m17n.org>
18757 * coding.c (Vchar_coding_system_table): Remove this variable.
18758 (Vcoding_system_safe_chars): New variable.
18759 (intersection): Remove this function.
18760 (find_safe_codings): Don't use Vchar_coding_system_table, but try
18761 all codings in SAFE_CODINGS.
18762 (Ffind_coding_systems_region_internal): Adjust for the change of
18763 find_safe_codings. Get generic coding systems from
18764 Vcoding_system_safe_chars.
18765 (Fdefine_coding_system_internal): New function.
18766 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
18767 Initialize and staticpro Vcoding_system_safe_chars.
18769 2003-03-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18771 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
18772 equal old values before updating.
18774 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
18776 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
18778 2003-03-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18780 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
18781 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
18782 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
18783 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
18784 (xg_create_scroll_bar): Pass bar to button event callback.
18785 (xg_find_top_left_in_fixed): New function.
18786 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
18787 whole scroll bar area. Get old position with
18788 xg_find_top_left_in_fixed, calculate and only clear needed areas.
18789 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
18790 dragging is in progress. Calculate whole as for Motif.
18791 Remove code that saved last values. Call gtk_range functions to
18792 set scroll bar sizes.
18794 * gtkutil.h: Removed xg_ignore_next_thumb.
18796 2003-03-17 Juanma Barranquero <lektu@terra.es>
18798 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
18799 and files included from it.
18801 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
18803 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
18804 multiple occurrences of the same keymap under different prefixes.
18805 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
18807 2003-03-16 Jason Rumney <jasonr@gnu.org>
18809 * w32gui.h: Use HDC for Display.
18811 * w32term.c (w32_encode_char): Prevent double-byte chars from
18814 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
18817 2003-03-16 Juanma Barranquero <lektu@terra.es>
18819 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
18821 2003-03-16 Kim F. Storm <storm@cua.dk>
18823 The following changes consolidate some of the gui-independent
18824 parts of the processing and drawing of "glyph strings" from
18825 xterm.c, w32term.c, and macterm.c into xdisp.c.
18827 * dispextern.h (struct glyph): Reduce face_id member from 22 to
18828 21 bits (this reduces number of faces from 4M to 2M).
18829 Replace W32 specific w32_font_type member (2 bits) by generic
18830 font_type member (3 bits) for portability.
18831 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
18832 (enum draw_glyphs_face): Define here.
18833 (struct glyph_string): Define here. Merge W32 and X versions.
18834 (struct redisplay_interface): New members per_char_metric,
18835 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
18836 (VCENTER_BASELINE_OFFSET): Define here.
18837 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
18838 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
18840 * xdisp.c: Consolidate gui-independent "glyph string" code here.
18841 (dump_glyph_string): Moved here.
18842 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
18843 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
18844 (fill_composite_glyph_string, fill_glyph_string)
18845 (fill_image_glyph_string, fill_stretch_glyph_string)
18846 (left_overwritten, left_overwriting, right_overwritten)
18847 (right_overwriting, get_char_face_and_encoding)
18848 (set_glyph_string_background_width, compute_overhangs_and_x)
18849 (append_glyph, append_composite_glyph, produce_image_glyph)
18850 (take_vertical_position_into_account, append_stretch_glyph)
18851 (produce_stretch_glyph): New generic functions (based on X version).
18852 Call platform specific functions through rif.
18853 (INIT_GLYPH_STRING): New macro, hides W32 details.
18854 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
18855 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
18856 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
18857 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
18858 (notice_overwritten_cursor):
18859 Generic functions exported to platform modules. Users changed.
18861 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
18862 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
18863 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
18864 New macros for consolidated code.
18866 * xterm.c: Remove consolidated defines and code.
18867 (x_per_char_metric, x_encode_char)
18868 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
18869 (x_redisplay_interface): Add new members.
18871 * w32gui.h (Display): Add dummy typedef for consolidation.
18872 (XChar2b): Define alias for wchar_t for consolidation.
18873 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
18875 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
18876 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
18877 New macros for consolidation.
18879 * w32term.c: Remove consolidated defines and code.
18880 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
18881 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
18882 (w32_per_char_metric): Change font_type arg to int for RIF.
18883 (w32_encode_char): Return int according to RIF requirements.
18884 (w32_compute_glyph_string_overhangs): Adapt to RIF.
18885 (w32_get_glyph_overhangs): New function for RIF. Uses generic
18886 x_get_glyph_overhangs.
18887 (w32_redisplay_interface): Add new members.
18889 * macgui.h (XChar2b): Move typedef here for consolidation.
18890 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
18892 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
18893 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
18896 * macterm.c: Remove consolidated defines and code.
18897 (mac_per_char_metric): New function for RIF.
18898 (mac_encode_char): Adapt to new RIF requirements.
18899 (mac_compute_glyph_string_overhangs): Adapt for RIF.
18900 (x_redisplay_interface): Add new members.
18902 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
18904 * keymap.c (Vmenu_events): New var.
18905 (syms_of_keymap): Initialize it.
18906 (where_is_internal): Check more carefully what is a menu event.
18908 2003-03-14 Richard M. Stallman <rms@gnu.org>
18910 * lread.c (read1): After #!, exit loop on eof.
18912 2003-03-14 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18914 * gtkutil.h: Add declaration for xg_frame_cleared.
18916 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
18918 * gtkutil.c (struct xg_last_sb_pos): New structure.
18919 (handle_fixed_child): New function.
18920 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
18921 and force a redraw on them.
18922 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
18923 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
18924 so we can avoid unneeded redraws.
18925 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
18926 and force a redraw on the scroll bar.
18927 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
18928 if xg_last_sb_pos shows the positions are up to date.
18929 (xg_frame_cleared): New function.
18931 2003-03-13 Kenichi Handa <handa@m17n.org>
18933 * coding.c (Fdetect_coding_region): Fix docstring.
18934 (Fdetect_coding_string): Fix docstring.
18936 2003-03-13 Andreas Schwab <schwab@suse.de>
18938 * gtkutil.c: Add prototype for create_menus.
18940 * data.c (long_to_cons): Fix type of top.
18942 * xselect.c (selection_data_to_lisp_data): Use int instead of
18943 long for an integer of size 4.
18945 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
18946 (xg_tool_bar_help_callback): Likewise.
18948 2003-03-12 Andreas Schwab <schwab@suse.de>
18950 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
18952 2003-03-12 Kim F. Storm <storm@cua.dk>
18954 The following changes consolidate the fringe handling from
18955 xterm.c, w32term.c, and macterm.c into xdisp.c.
18957 * xdisp.c: Consolidate fringe handling code here.
18958 (left_bits, right_bits, continued_bits, continuation_bits)
18959 (ov_bits, zv_bits): Define fringe bitmaps.
18960 (fringe_bitmaps): New array holding fringe bitmaps.
18961 (draw_fringe_bitmap): Draw a specific bitmap; call display
18962 specific drawing routine via rif->draw_fringe_bitmap.
18963 (draw_row_fringe_bitmaps): Generic replacement for
18964 x_draw_row_fringe_bitmaps; all callers changed.
18965 (compute_fringe_widths): Generic replacement for
18966 x_compute_fringe_widths; all callers changed.
18968 * dispextern.h (enum fringe_bitmap_type): Define here.
18969 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
18970 (fringe_bitmaps): Declare extern.
18971 (struct redisplay_interface): New member draw_fringe_bitmap.
18972 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
18974 * xterm.c: Remove generic fringe code.
18975 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
18976 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
18978 * w32term.c: Remove generic fringe code.
18979 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
18980 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
18982 * macterm.c: Remove generic fringe code.
18983 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
18984 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
18986 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
18988 * print.c (Fprin1_to_string): Return unibyte string if possible.
18990 2003-03-09 David Kastrup <dak@gnu.org>
18992 * process.c (read_process_output): We have allocated enough space
18993 for readmax and carryover, so actually use the alloted space.
18995 2003-03-09 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
18997 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
18998 toolkit scrollbar click.
19000 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19002 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
19004 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
19005 scrollbar and control is pressed, call x_scroll_bar_handle_click.
19007 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
19009 * gtkutil.c (xg_get_scroll_id_for_window): New function.
19010 (xg_tool_bar_item_expose_callback): New function.
19011 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
19012 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
19013 on the tool bar widget.
19014 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
19015 to expose on the tool bar item widgets.
19017 2003-03-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19019 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
19020 struct image* when deciding to update (struct image* may have been
19021 deleted from the image cache).
19023 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
19024 the event isn't for a frame (i.e. for dialogs).
19026 2003-03-07 Kenichi Handa <handa@m17n.org>
19028 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
19029 composition components reaches the limit, terminate composing.
19030 (COMPOSITION_OK): New macro.
19031 (detect_coding_iso2022): Use it if an escape sequence for
19032 composition is found.
19033 (coding_restore_composition): Adjust the number of composition
19034 components if it is not sane.
19036 2003-03-06 Juanma Barranquero <lektu@terra.es>
19038 * w32term.h (struct w32_display_info): Add xrdb member to support
19039 passing resources via -xrm on Windows.
19041 * w32term.c (w32_make_rdb): New function.
19042 (w32_term_init): Use it to initialize xrdb member of w32_display_info
19043 struct. Delete leftover code.
19045 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
19046 for resources passed on the command line.
19048 * w32reg.c (w32_get_rdb_resource): New function.
19049 (x_get_string_resource): Use it, so resources passed with -xrm
19050 supercede the ones in the registry.
19052 2003-03-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19054 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
19055 instead of x_top_window_to_frame.
19057 2003-03-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19059 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
19060 when restarting Emacs.
19062 2003-03-03 Richard M. Stallman <rms@gnu.org>
19064 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
19065 to run kill-buffer-query-functions.
19066 (Qkill_buffer_query_functions): New var.
19067 (syms_of_buffer): Init and staticpro it.
19069 2003-03-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19071 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
19073 2003-02-25 Kim F. Storm <storm@cua.dk>
19075 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
19076 If centering point failed to make whole line visible and vscroll
19077 is non-zero, disable vscroll and try centering point again.
19079 * lread.c (read1): Accept `single space' syntax like (? x).
19081 2003-02-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19083 * keyboard.c (cancel_hourglass_unwind): Surround with
19084 #ifdef HAVE_X_WINDOWS.
19086 2003-02-25 Kenichi Handa <handa@m17n.org>
19088 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
19089 process only when "subprocesses" is defined.
19091 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
19093 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
19095 2003-02-24 Juanma Barranquero <lektu@terra.es>
19097 * callint.c (fix_command): Declare as static void and move before
19098 Fcall_interactively.
19100 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
19101 (syms_of_xdisp): Don't initialize Qwhen.
19103 2003-02-23 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19105 * keyboard.c (cancel_hourglass_unwind): New function.
19106 (command_loop_1): Cancel hourglass with unwind-protect.
19108 2003-02-23 Richard M. Stallman <rms@gnu.org>
19110 * callint.c (fix_command): New subroutine, from Fcall_interactively.
19111 Detect (when ... (region-beginning)) etc.
19112 (Fcall_interactively): Call fix_command.
19113 (Qif, Qwhen): New variables.
19114 (syms_of_callint): Init and staticpro them.
19116 * regex.c (print_partial_compiled_pattern): Output to stderr.
19118 2003-02-23 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19120 * dired.c (directory_files_internal): Don't expand directory.
19121 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
19122 instead. From Lars Hansen <larsh@math.ku.dk>.
19124 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
19126 * fns.c (string_to_multibyte): Remove unused var i.
19127 (Flanginfo): Fix int/Lisp_Object mixup.
19128 (void_call2): New fun.
19129 (Fmap_char_table): Use it in place of call2.
19131 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
19133 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
19135 * keymap.c (copy_keymap_1): Make it static.
19137 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
19139 2003-02-22 David Ponce <david@dponce.com>
19141 * lread.c (Fload): Don't check STRING_MULTIBYTE.
19143 2003-02-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19145 * process.h: Removed subtty field from struct Lisp_Process.
19147 * process.c (create_process): Remove setting of subtty.
19148 (emacs_get_tty_pgrp): New function.
19149 (Fprocess_running_child_p, process_send_signal):
19150 Call emacs_get_tty_pgrp instead of ioctl.
19151 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
19153 2003-02-21 Kai Gro
\e,A_
\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19155 * keymap.c (Fdefine_key): Doc fix.
19157 2003-02-21 Juanma Barranquero <lektu@terra.es>
19159 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
19161 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
19162 POLLING_PROBLEM_IN_SELECT.
19164 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
19165 Delete #undef of POLLING_PROBLEM_IN_SELECT.
19167 * s/hpux10-20.h: New file.
19169 * process.c (wait_reading_process_input):
19170 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
19172 2003-02-20 Kenichi Handa <handa@m17n.org>
19174 * fontset.c (check_fontset_name): If NAME is nil, return the
19176 (override_font_info): New function.
19177 (Fset_fontset_font): Document that NAME nil means the default fontset.
19178 (Ffontset_info): If FONTSET is not the default fontset, merge
19179 FONTSET onto the copy of the default fontset, and work on that
19180 copy. Document that NAME nil means the default fontset.
19181 (Ffontset_font): Document that NAME nil means the default fontset.
19183 * process.c (setup_process_coding_systems): If the process's
19184 in/out descriptor is -1, do nothing.
19186 2003-02-19 Andreas Schwab <schwab@suse.de>
19188 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
19191 2003-02-19 Kenichi Handa <handa@m17n.org>
19193 * xfaces.c (try_alternative_families): Try all scalable fonts if
19194 Vscalable_fonts_allowed is not Qt.
19196 2003-02-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19198 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
19200 2003-02-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19202 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
19205 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
19206 (sorted_font_list): Move allocation of struct font_name to
19208 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
19209 (Fx_list_fonts): Set maxnames to -1 to get all font names.
19211 2003-02-18 Kim F. Storm <storm@cua.dk>
19213 * lread.c (read1): Fix last change.
19214 "`" is not always special. Allow "?" after a character constant.
19216 2003-02-18 Andrew Choi <akochoi@shaw.ca>
19218 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
19220 2003-02-18 Andreas Schwab <schwab@suse.de>
19222 * window.c (window_scroll_pixel_based): Move outside a
19223 multi-glyph character before setting new window start.
19225 * xdisp.c (in_display_vector_p): New function.
19226 * dispextern.h (in_display_vector_p): Declare.
19228 2003-02-18 Kim F. Storm <storm@cua.dk>
19230 * lread.c (read1): Fix and relax read syntax.
19231 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
19232 Only recognize "," after dotted-pair dot if inside backquote.
19233 Never include "`" or "," (inside backquote) in a symbol.
19234 Allow dotted-pair dot after a character constant.
19235 Allow "`" and "," (inside backquote) after a character constant.
19237 2003-02-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19239 * gtkutil.c (xg_tool_bar_expose_callback): New function.
19240 (xg_create_tool_bar): Force style of tool bar to be horizontal with
19241 icons. Set name of tool bar to emacs-toolbar.
19242 (update_frame_tool_bar): Connect expose event to
19243 xg_tool_bar_expose_callback.
19245 2003-02-17 Richard M. Stallman <rms@gnu.org>
19247 * keyboard.c (this_command_key_count_reset): New variable.
19248 Initiatize to 0 where this_command_key_count is set.
19249 (read_char): Save and restore this_command_key_count_reset
19250 around input method code.
19251 (read_char): If this_command_key_count_reset, echo reread commands.
19252 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
19254 2003-02-17 Kenichi Handa <handa@m17n.org>
19256 * fns.c (string_to_multibyte): Always return a multibyte string.
19258 2003-02-16 Jason Rumney <jasonr@gnu.org>
19260 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
19261 Negative max_fonts parameter means list all.
19263 2003-02-14 Dave Love <fx@gnu.org>
19265 * fns.c (Flanginfo): Doc fix.
19267 2003-02-13 Kim F. Storm <storm@cua.dk>
19269 * lread.c (read_escape): Interpret \s as a SPACE character, except
19270 for \s-X in a character constant which still is the super modifier.
19271 (read1): Signal an `invalid read syntax' error if a character
19272 constant is immediately followed by a digit or symbol character.
19274 * search.c (Fmatch_data): Doc fix. Explicitly state that
19275 match-data is undefined if last search failed.
19277 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
19280 2003-02-12 Juanma Barranquero <lektu@terra.es>
19282 * eval.c (Fdefmacro): Fix typo.
19284 2003-02-12 Kim F. Storm <storm@cua.dk>
19286 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
19287 macro is a string, convert meta modifiers in string when copying
19288 the string into a vector.
19290 2003-02-11 Kim F. Storm <storm@cua.dk>
19292 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
19294 2003-02-11 Kenichi Handa <handa@m17n.org>
19296 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
19298 2003-02-10 Kim F. Storm <storm@cua.dk>
19300 * process.c: Doc fixes.
19301 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
19303 2003-02-10 Kenichi Handa <handa@m17n.org>
19305 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
19307 * process.c (QCfilter_multibyte): New variable.
19308 (setup_process_coding_systems): New function.
19309 (Fset_process_buffer, Fset_process_filter):
19310 Call setup_process_coding_systems.
19311 (Fstart_process): Initialize the member `filter_multibyte' of
19312 struct Lisp_Process.
19313 (create_process): Call setup_process_coding_systems.
19314 (Fmake_network_process): New keyward `:filter-multibyte'.
19315 Initialize the member `filter_multibyte' of struct Lisp_Process.
19316 Call setup_process_coding_systems.
19317 (server_accept_connection): Call setup_process_coding_systems.
19318 (read_process_output): If the process has a filter, decide the
19319 multibyteness of a string to given to the filter by
19320 `filter_multibyte' member of the process. If the process doesn't
19321 have a filter and the result of conversion is unibyte, use
19322 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
19324 (Fset_process_coding_system): Call setup_process_coding_systems.
19325 (Fset_process_filter_multibyte): New function.
19326 (Fprocess_filter_multibyte_p): New function.
19327 (syms_of_process): Intern and staticpro QCfilter_multibyte.
19328 Defsubr Sset_process_filter_multibyte and
19329 Sprocess_filter_multibyte_p.
19331 * process.h (struct Lisp_Process): New member filter_multibyte.
19333 * lisp.h (setup_process_coding_systems): Add prototype.
19335 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
19336 process, update coding systems for the process.
19338 2003-02-09 Kenichi Handa <handa@m17n.org>
19340 * fns.c (string_to_multibyte): New function.
19341 (Fstring_to_multibyte): New function.
19342 (syms_of_fns): Defsubr it.
19344 2003-02-08 Andreas Schwab <schwab@suse.de>
19346 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
19347 instead of the substitution.
19349 2003-02-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19351 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
19353 * xmenu.c (menu_position_func): Adjust menu popup position so that
19354 the menu is fully visible.
19356 2003-02-07 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19358 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
19359 (x_make_frame_invisible, x_wm_set_icon_position):
19360 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
19362 * xfns.c (x_set_name, x_set_title): Ditto.
19364 2003-02-04 Richard M. Stallman <rms@gnu.org>
19366 * keyboard.c (echo_now): Update before_command_echo_length.
19367 (Freset_this_command_lengths): Reset this_command_key_count etc.
19368 immediately rather than arranging to do it later.
19369 (before_command_key_count_1, before_command_echo_length_1)
19370 (before_command_restore_flag): Vars deleted.
19371 (add_command_key): Don't handle before_command_restore_flag.
19372 (read_char, record_menu_key): Don't update before_command_key_count or
19373 before_command_echo_length.
19374 (read_char): Don't handle before_command_restore_flag.
19376 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
19377 in direct-output clauses if it wouldn't be called in the ordinary case.
19379 2003-02-04 Kim F. Storm <storm@cua.dk>
19381 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
19383 2003-02-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19385 * gtkutil.c (remove_from_container): Copying list is not needed.
19386 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
19387 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
19388 on list returned from gtk_container_get_children to avoid memory leak.
19390 2003-02-01 Jason Rumney <jasonr@gnu.org>
19392 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
19394 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
19395 definitions in xpm.h.
19396 (init_xpm_functions): New function.
19397 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
19398 (init_external_image_libraries): Try to load libXpm.dll.
19400 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
19403 2003-01-31 Dave Love <fx@gnu.org>
19405 * syntax.c (Fskip_chars_forward)
19406 (open-paren-in-column-0-is-defun-start): Doc fix.
19408 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
19410 * fileio.c: Support // at start of name for Cygwin (just added proper
19411 preprocessor tests).
19413 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
19415 * Makefile.in: Use @EXEEXT@ for Cygwin.
19417 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
19419 * s/cygwin.h: Added for Cygwin port.
19421 2003-01-31 Juanma Barranquero <lektu@terra.es>
19423 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
19424 when including gif_lib.h.
19425 (init_gif_functions, init_tiff_functions): New functions.
19426 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
19427 Windows. Disable color table lookups. Call library functions
19428 through pointers determined at runtime.
19429 (init_external_image_libraries): Try to load libungif.dll and
19432 2003-01-31 Kenichi Handa <handa@m17n.org>
19434 * xdisp.c (SKIP_GLYPHS): New macro.
19435 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
19437 2003-01-30 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19439 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
19441 2003-01-30 Dave Love <fx@gnu.org>
19443 * alloc.c (Vgc_elapsed, gcs_done): New variables.
19444 (Fgarbage_collect): Use them.
19445 (init_alloc, syms_of_alloc): Set them up.
19447 2003-01-30 Juanma Barranquero <lektu@terra.es>
19449 * w32fns.c (init_external_image_libraries): Add missing operator.
19451 2003-01-29 Jason Rumney <jasonr@gnu.org>
19453 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
19454 an alternative name for jpeg.dll.
19456 2003-01-29 Kenichi Handa <handa@m17n.org>
19458 * xdisp.c (set_cursor_from_row): Pay attention to string display
19461 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
19463 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
19465 (keycode_to_xkeysym_table): Reformat and add more comments.
19466 (XTread_socket): Drop special case for backspace.
19468 2003-01-28 Andrew Choi <akochoi@shaw.ca>
19470 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
19471 values in old-style RGB specs.
19473 2003-01-27 Juanma Barranquero <lektu@terra.es>
19475 * w32fns.c (init_external_image_libraries): Try alternate names for the
19478 2003-01-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19480 * gtkutil.c (create_dialog, xg_separator_p)
19481 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
19482 before calling strcmp or strlen.
19484 2003-01-26 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19486 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
19487 and handle image load failure.
19489 2003-01-26 Jason Rumney <jasonr@gnu.org>
19491 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
19493 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
19494 Disable color table lookups. Call jpeg library functions
19495 through pointers determined at runtime.
19496 (init_external_image_libraries): Try to load jpeg.dll.
19498 2003-01-25 Richard M. Stallman <rms@gnu.org>
19500 * lisp.h: Declare format2 instead of format1.
19502 * fileio.c (barf_or_query_if_file_exists):
19503 Call format2 instead of format1.
19505 * editfns.c (format2): New function, replaces format1
19506 but takes exactly two Lisp Objects as format args.
19508 * buffer.c (Fkill_buffer): Call format2 instead of format1.
19510 2003-01-25 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19512 * xterm.h: Change to return value of x_dispatch_event to int.
19514 * xterm.c (x_filter_event): New function.
19515 (event_handler_gdk, XTread_socket): Call x_filter_event.
19516 (x_dispatch_event): Change to return value of finish.
19517 (event_handler_gdk): Use return value from x_dispatch_event.
19519 * xfns.c (x_window): Call create_frame_xic for GTK version to
19520 initialize input methods.
19522 * gtkutil.h: Add (void) prototypes.
19524 * gtkutil.c (create_menus): Remove code that puts the help menu to
19527 2003-01-25 Jason Rumney <jasonr@gnu.org>
19529 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
19530 [HAVE_PNG]: Sync with xfns.c version.
19531 (png_load): Adjust colors for Windows. Use Windows
19532 bitmaps. Disable color table lookups.
19533 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
19534 (init_png_functions): New function.
19535 (png_read_from_memory, png_load): Call png library functions
19536 through pointers determined at runtime.
19537 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
19538 (init_external_image_libraries): New function.
19539 (init_xfns): Call it.
19541 2003-01-24 Andreas Schwab <schwab@suse.de>
19543 * minibuf.c (Fminibuffer_message): Verify type of parameter.
19545 2003-01-24 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19547 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
19548 of static initializer.
19550 2003-01-24 Dave Love <fx@gnu.org>
19552 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
19555 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
19558 2003-01-24 Kenichi Handa <handa@m17n.org>
19560 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
19561 It it is nonzero, don't pretend that an invisible area doesn't exist.
19562 (command_loop_1): Call adjust_point_for_property with proper
19565 2003-01-22 Jason Rumney <jasonr@gnu.org>
19567 Sync changes with xterm.c and xfns.c.
19569 * w32term.c (x_draw_glyph_string_foreground)
19570 (x_draw_composite_glyph_string_foreground): Implement overstriking.
19572 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
19573 phys_cursor's hpos is overwritten. This is still not completely
19574 correct, as it doesn't really make sense to use hpos at all to
19575 get the cursor glyph (as that is relative to the width of the
19576 characters on the line, which may have changed during the update).
19578 * w32term.c (notice_overwritten_cursor): Handle the special case
19579 of the cursor being in the first blank non-text line at the
19582 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19583 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19584 Compute from the x position returned by x_draw_glyphs.
19586 (x_display_and_set_cursor): Don't set phys_cursor_width here,
19587 except for NO_CURSOR and system caret, to make phys_cursor_width
19588 contain what its name suggests.
19589 (notice_overwritten_cursor): Consider the cursor image erased if
19590 the output area intersects the cursor image in y-direction.
19592 * w32term.c (note_mode_line_or_margin_highlight): Rename from
19593 note_mode_line_highlight and extend.
19595 * w32term.c (last_window): New variable.
19596 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
19597 (note_mouse_movement): Remove reimplemented code in #if 0.
19599 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
19600 not update_mode_lines, and always set it to 1.
19602 2003-01-21 Jason Rumney <jasonr@gnu.org>
19604 * w32fns.c (IDC_HAND): Define it if system headers don't.
19606 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
19608 * w32term.h (struct w32_output): New member hand_cursor.
19609 (WM_EMACS_SETCURSOR): New message definition.
19611 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
19612 function w32_define_cursor.
19613 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
19614 position, change member name output_data.x to output_data.w32 and
19615 add function w32_define_cursor.
19616 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
19617 and change member name output_data.x to output_data.w32.
19618 (w32_initialize_display_info):
19619 Setup dpyinfo->vertical_scroll_bar_cursor.
19621 * w32fns.c (Vx_hand_shape): New variable.
19622 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
19623 WM_EMACS_SETCURSOR.
19624 (x-create-frame): Setup Cursor types.
19626 2003-01-21 David Ponce <david@dponce.com>
19628 * w32term.c (w32_encode_char): For DIM=1 charset, set
19629 ccl->reg[2] to -1 before calling ccl_driver.
19630 (Sync. with xterm.c x_encode_char change by Kenichi Handa
19631 <handa@m17n.org> on 2002-09-30.)
19632 (w32_draw_relief_rect): Declare all args.
19633 (w32_define_cursor): New.
19635 * w32fns.c (w32_load_cursor): New function.
19636 (w32_init_class): Use it.
19637 (x_put_x_image): Declare all args.
19639 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
19641 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
19643 2003-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19645 * gtkutil.c: Must include stdio.h before termhooks.h.
19647 2003-01-21 Dave Love <fx@gnu.org>
19649 * alloc.c (Fgc_status): Print zombie list.
19650 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
19651 Fix assignment of zombies.
19652 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
19653 Don't take car of non-cons.
19655 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19657 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19659 2003-01-20 David Ponce <david@dponce.com>
19661 * w32menu.c (digest_single_submenu): Declare all args.
19663 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
19664 changes in xmenu.c:
19666 (parse_single_submenu): Use individual keymap's prompt
19667 string as pane name, if there is one.
19668 (set_frame_menubar): Save menu_items_n_panes from each call to
19669 parse_single_submenu and use it when calling digest_single_submenu.
19671 2003-01-20 Steven Tamm <steventamm@mac.com>
19673 * macterm.c (XTread_socket): Check for valid, visible window
19674 before sending a scroll-wheel event.
19676 2003-01-20 Richard M. Stallman <rms@gnu.org>
19678 * xdisp.c (redisplay_window): If mini window's buffer is not
19679 a minibuffer, then redisplay it like other windows.
19681 2003-01-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19683 * gtkutil.c (xg_create_frame_widgets): Check if there is an
19684 external tool bar before setting tool bar height.
19686 2003-01-19 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19688 * xterm.c (handle_one_xevent): Surround popup_activated
19689 with #ifdef:s for non-toolkit version.
19691 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
19692 (gtkutil.o): New file.
19693 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
19694 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
19696 * gtkutil.c: New file for GTK version.
19698 * gtkutil.h: New file for GTK version.
19700 * xterm.h: Add xt_or_gtk_widget.
19701 Include gtk files for USE_GTK.
19702 (struct x_output): Add toolbar_height.
19703 (struct x_output): Add GTK widgets and Gdk size_hints.
19704 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
19705 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
19706 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
19708 * xterm.c: Include gtkutil.h for USE_GTK.
19709 (free_frame_menubar): Declare extern void for USE_GTK.
19710 (note_mouse_highlight): Check popup_activated for USE_GTK.
19711 (xt_action_hook): Don't compile if USE_GTK.
19712 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
19713 (xg_scroll_callback): New function.
19714 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
19715 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
19717 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
19718 xg_show_scroll_bar for USE_GTK.
19719 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
19720 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
19721 (event_handler_gdk): New function for USE_GTK.
19722 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
19723 (handle_one_xevent): Make sure widget is mapped before
19724 calling x_real_positions for USE_GTK.
19725 (XTread_socket): Add GTK event loop for USE_GTK.
19726 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
19727 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
19728 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
19729 (x_iconify_frame): Add code for USE_GTK.
19730 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
19731 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
19733 (x_term_init): Add initialization for GTK.
19734 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
19736 * xmenu.c: Include gtkutil.h for USE_GTK.
19737 (Fx_popup_menu): Use current position if x and y are nil.
19738 (single_menu_item, single_menu_item, Fx_popup_dialog):
19740 (popup_widget_loop): New function for USE_GTK.
19741 (x_activate_menubar): Add code for USE_GTK.
19742 (popup_activate_callback, popup_deactivate_callback)
19743 (menu_highlight_callback, menubar_selection_callback):
19744 Add USE_GTK versions.
19745 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
19746 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
19747 (free_frame_menubar): Only compile if not USE_GTK. GTK version
19749 (popup_selection_callback): New version for USE_GTK.
19750 (create_and_show_popup_menu): New fuction, one USE_GTK version and
19751 one USE_X_TOOLKIT version.
19752 (xmenu_show): Call create_and_show_popup_menu.
19753 (dialog_selection_callback): New version for USE_GTK.
19754 (create_and_show_dialog): New fuction, one USE_GTK version and
19755 one USE_X_TOOLKIT version.
19756 (xdialog_show): Call create_and_show_dialog.
19758 * xfns.c: Include gtkutil for USE_GTK.
19759 (x_window_to_frame, x_any_window_to_frame)
19760 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
19761 (x_top_window_to_frame): Add code for USE_GTK.
19762 (x_set_background_color): Call xg_set_background_color for GTK.
19763 (x_set_menu_bar_lines): Check for USE_GTK.
19764 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
19765 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
19766 (x_window): Call xg_create_frame_widgets for USE_GTK.
19767 (Fx_create_frame): Check for USE_GTK.
19768 (Fx_file_dialog): New implementation for USE_GTK.
19770 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
19771 (update_menu_bar): Add check for USE_GTK.
19772 (update_tool_bar): Add check for USE_GTK and external tool bar.
19773 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
19774 (redisplay_internal): Add check for USE_GTK and popup_activated.
19775 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
19776 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
19777 (display_menu_bar): Add check for USE_GTK
19779 * lisp.h (Vx_resource_name): Declare extern.
19781 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
19783 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
19785 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
19786 (FRAME_EXTERNAL_TOOL_BAR): New macro.
19787 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
19789 * fileio.c (Fread_file_name): Add check for USE_GTK.
19791 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
19792 Add check for USE_GTK.
19794 * config.in: Added HAVE_GTK.
19796 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
19798 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
19800 * charset.h (Funibyte_char_to_multibyte): Export.
19802 2003-01-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19804 * xmenu.c (mouse_position_for_popup): New function.
19805 (Fx_popup_menu): Call mouse_position_for_popup for X and
19806 mouse_position_hook for others.
19808 2003-01-17 Kim F. Storm <storm@cua.dk>
19810 * editfns.c (Finsert): Mention `string-make-multibyte' and
19811 `string-as-multibyte' in doc string.
19813 2003-01-17 Kenichi Handa <handa@m17n.org>
19815 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
19817 * editfns.c (Fformat): Convert an unibyte char argument that is
19818 formatted by "%c" to multibyte if the total result must be a
19821 2003-01-16 Kim F. Storm <storm@cua.dk>
19823 * process.c (set-process-filter): Document unibyte/multibyte-ness
19824 of string argument.
19826 2003-01-16 Kenichi Handa <handa@m17n.org>
19828 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
19830 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
19831 (re_search_2): Likewise.
19833 2003-01-15 Kenichi Handa <handa@m17n.org>
19835 * xdisp.c (message_dolog): Fix bug of the case that *Message*
19838 2003-01-15 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
19840 * fns.c (Fsubstring): Clarify doc string.
19842 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
19843 (Fprevious_char_property_change)
19844 (Fnext_single_char_property_change)
19845 (Fprevious_single_char_property_change, Fnext_property_change)
19846 (Fnext_single_property_change, Fprevious_property_change)
19847 (Fprevious_single_property_change, Fadd_text_properties)
19848 (Fput_text_property, Fset_text_properties)
19849 (Fremove_text_properties, Fremove_list_of_text_properties)
19850 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
19852 2003-01-14 Kim F. Storm <storm@cua.dk>
19854 * process.h (struct Lisp_Process): New member plist replaces old
19855 member private_vars. All uses changed.
19857 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
19858 (QCplist): Rename from QCvars. Change all uses.
19859 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
19860 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
19861 (syms_of_process): Intern, staticpro, defsubr these.
19862 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
19864 2003-01-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
19866 * m/delta.h: Remove (obsolete).
19868 2003-01-13 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
19870 * fileio.c (Fdelete_directory, Fdelete_file): Document the
19871 behaviour in front of symlinks.
19872 (Fdelete_file): Raise an error on directories.
19874 2003-01-13 Dave Love <fx@gnu.org>
19876 * fns.c (Freverse): Use QUIT.
19878 2003-01-13 Richard M. Stallman <rms@gnu.org>
19880 * minibuf.c (minibuffer_completion_contents):
19881 Error if point is inside prompt.
19883 * keyboard.c (command_loop_1): Don't redisplay directly
19884 if there's a post-command-hook.
19886 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
19887 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
19889 2003-01-12 Kim F. Storm <storm@cua.dk>
19891 * process.h (struct Lisp_Process): New member private_vars.
19893 * process.c (QCvars): New variable.
19894 (syms_of_process): Intern and staticpro it.
19895 (Fset_process_contact): Removed function.
19896 (Fprocess_variable, Fset_process_variable): New functions.
19897 (syms_of_process): Defsubr them.
19898 (Fstart_process): Initialize private_vars plist to nil.
19899 (Fmake_network_process): New arg :vars to setup the private
19900 variables for new network process.
19901 (server_accept_connection): Copy server's private variables to
19904 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
19905 crashes). Code rewritten and simplified. Now directly aligns the
19906 pointer and recalculates pure_bytes_used, rather than aligning the
19907 size and adjusting the pointer.
19909 2003-01-11 Kim F. Storm <storm@cua.dk>
19911 * process.c (Fset_process_contact): New function.
19912 (syms_of_process): defsubr it.
19913 (make-network-process): Update doc.
19915 2003-01-10 Andreas Schwab <schwab@suse.de>
19917 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
19918 Reported by Berthold Gunreben <b.gunreben@web.de>.
19920 2003-01-10 Dave Love <fx@gnu.org>
19922 * composite.c (syms_of_composite): Make composition_hash_table weak.
19924 2003-01-09 Kim F. Storm <storm@cua.dk>
19926 * process.c (Fmake_network_process): Convert new port number
19927 to host byte order for `:service t' case. From Mario Lang.
19929 2003-01-08 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
19931 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
19932 instead of XtAppProcessEvent.
19934 * xterm.c (handle_one_xevent): New function.
19935 (x_dispatch_event): New function.
19936 (XTread_socket): Call handle_one_xevent.
19938 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
19940 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
19941 call XQueryPointer to get coordinates.
19942 (popup_get_selection): Do not set popup_activated_flag to zero,
19943 let popup_deactivate_callback do that. Needed for Motif.
19944 Call x_dispatch_event instead of XtDispatchEvent.
19945 (xmenu_show): Calculate root coordinate from frame top/left position.
19947 2003-01-08 Kim F. Storm <storm@cua.dk>
19949 * process.c (server_accept_connection): Fix recording of new
19950 connection's local address in :local property of contact info.
19951 (Fmake_network_process): Record local network address for new
19952 client processes in :local property of contact info.
19953 (format-network-address): Add arg OMIT-PORT. Change callers.
19955 2003-01-07 Dave Love <fx@gnu.org>
19957 * Makefile.in (fns.o): Depend on coding.h.
19959 2003-01-06 Dave Love <fx@gnu.org>
19961 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
19962 (Vlocale_coding_system): Declare.
19963 (Qcodeset, Qdays, Qmonths, Qpaper): New.
19965 (syms_of_fns): Initialize new stuff.
19967 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
19969 * minibuf.c (Fread_variable): Doc fix.
19971 * eval.c (Fuser_variable_p): Doc change. For custom variables,
19972 use the same test as for custom-variable-p.
19974 2003-01-05 Richard M. Stallman <rms@gnu.org>
19976 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
19977 Count LAST_LINE_MISFIT in scroll margin for end of window.
19978 Move label too_near_end before setting SCROLL_MARGIN_POS.
19979 Set LAST_LINE_MISFIT before jumping there.
19981 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
19982 scroll_conservatively case. If scrolling that much doesn't change
19983 STARTP, move it down one line.
19985 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
19986 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
19988 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
19991 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
19992 (syms_of_keymap): Staticpro them.
19993 (Fapropos_internal): Initialize them and clear them out.
19996 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
19998 * lisp.h: New misc type Lisp_Save_Value.
19999 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20000 (XSAVE_VALUE): New macro.
20001 (struct Lisp_Save_Value): New data type.
20002 (union Lisp_Misc): Add u_save_value alternative.
20003 (make_save_value): Declare.
20005 * alloc.c (make_save_value): New function.
20007 * xterm.c (x_catch_errors): Save dpy using make_save_value.
20008 (x_catch_errors_unwind): Call XSync.
20010 2003-01-01 Richard M. Stallman <rms@gnu.org>
20012 * window.c (window_scroll_pixel_based): Partially undo last change.
20014 * keyboard.c (command_loop_1): Call adjust_point_for_property
20015 in direct action cases for Qforward_char and Qbackward_char.
20016 Set already_adjusted so it won't be done twice.
20018 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
20020 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
20021 type definition of size_t.
20023 2003-01-02 Steven Tamm <steventamm@mac.com>
20025 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
20026 distinguish Carbon GUI builds from X11 builds on darwin.
20028 2002-12-30 Steven Tamm <steventamm@mac.com>
20030 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
20033 2002-12-29 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20035 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
20037 2002-12-28 Steven Tamm <steventamm@mac.com>
20039 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
20040 allow building in a different directory than source. Uses some
20041 GNU Make extensions, but there is no other make on Mac OS X.
20043 2002-12-26 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20045 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
20046 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
20047 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
20048 (Fstring_to_number): Mention the returned value in the doc strings.
20050 2002-12-23 Richard M. Stallman <rms@gnu.org>
20052 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
20053 <scroll-down-aggressively>: Doc fix.
20055 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
20056 string as pane name, if there is one.
20057 (set_frame_menubar): Save menu_items_n_panes from each call to
20058 parse_single_submenu and use it when calling digest_single_submenu.
20060 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
20061 Don't try to make last line fully visible if it is past end of window.
20063 2002-12-22 Steven Tamm <steventamm@mac.com>
20065 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
20066 (mac_menu_show): Add support for hierarchical popup menus.
20067 (add_menu_item): Remove indentation support.
20068 (fill_submenu, fill_menu): Create hierarchical menus
20069 instead of using indentation.
20071 2002-12-22 Richard M. Stallman <rms@gnu.org>
20073 * xdisp.c (try_cursor_movement): Don't call try_window here.
20074 (redisplay_window): Never redisplay minibuffer when inactive.
20076 * window.c (select_window_1): Undo 9/21 change.
20078 2002-12-22 Steven Tamm <steventamm@mac.com>
20080 * macterm.c (XTread_socket): Call KeyTranslate for control and
20081 meta to deal correctly shifted non-alpha characters, like C-S-5
20082 being treated like C-%. Do not look for shift key to deal
20083 with masking off control-key with mac-reverse-ctrl-meta.
20085 2002-12-21 Richard M. Stallman <rms@gnu.org>
20087 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
20088 If it is non-nil, run timers. Use an unwind-protect to requeue
20089 the events that were read ahead.
20090 (popup_get_selection_unwind): New subroutine.
20091 (popup_get_selection_queue): File-scope variable now holds that queue.
20092 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
20093 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
20094 Use an unwind-protect to pop down the dialog box.
20095 (xdialog_show_unwind): New subroutine implements that.
20097 * xdisp.c (row_containing_pos): Change exit test using last_y.
20098 (try_window_id): Abort if row_containing_pos returns null.
20100 * lread.c (load_error_handler): New function.
20101 (Fload): Handle errors in Fsubstitute_in_file_name.
20102 Don't expect Fsignal to return.
20104 * eval.c: Errors and throws work right with interrupt blocking.
20105 (struct catchtag): New elt interrupt_input_blocked.
20106 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
20107 (internal_catch, Fcondition_case, internal_condition_case)
20108 (internal_condition_case_1, internal_condition_case_2): Save it.
20109 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
20111 * editfns.c (Fformat): Add parens.
20113 * dired.c (file_name_completion): Fix that change.
20114 Delete special quit-handling code; just use QUIT.
20116 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
20118 * dired.c (file_name_completion): Close directory on error
20119 just as in directory_files_internal.
20121 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
20123 * window.c (Fset_window_configuration): Set old_point to correct
20124 value when new_current_buffer == current_buffer.
20126 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
20128 Revisited my earlier fix for the following entry in etc/PROBLEMS:
20129 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20130 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
20132 These changes were in part based upon suggestions made by Peter
20133 'Luna' Runestig [peter@runestig.com].
20135 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
20136 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
20137 (g_b_init_get_sid_identifier_authority ): Add several static
20140 * w32.c (globals_of_w32): New function. Used to initialize those
20141 global variables that must always be initialized on startup even
20142 when the global variable initialized is non zero. Its primary
20143 purpose at this time is to set the global variables
20144 g_b_init_is_windows_9x, g_b_init_open_process_token,
20145 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
20146 g_b_init_get_sid_identifier_authority to 0 on startup.
20149 * w32.c (is_windows_9x): Perform initialization only if
20150 g_b_init_is_windows_9x is equal to 0. On initialization set
20151 g_b_init_is_windows_9x equal to 1.
20153 * w32.c (open_process_token): Perform initialization only if
20154 g_b_init_open_process_token is equal to 0. On initialization set
20155 g_b_init_open_process_token equal to 1.
20157 * w32.c (get_token_information): Perform initialization only if
20158 g_b_init_get_token_information is equal to 0. On initialization
20159 set g_b_init_get_token_information equal to 1.
20161 * w32.c (lookup_account_sid): Perform initialization only if
20162 g_b_init_lookup_account_sid is equal to 0. On initialization
20163 set g_b_init_lookup_account_sid equal to 1.
20165 * w32.c (get_sid_identifier_authority): Perform initialization
20166 only if g_b_init_get_sid_identifier_authority is equal to 0.
20167 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
20169 * w32fns.c (globals_of_w32fns): New function. Used to initialize
20170 those global variables that must always be initialized on startup
20171 even when the global variable initialized is non zero.
20172 Its primary purpose at this time is to initialize the global variable
20173 track_mouse_event_fn.
20175 * w32fns.c (w32_wnd_proc): Remove initialization of
20176 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
20178 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
20180 * w32menu.c (globals_of_w32menu): New function. Used to
20181 initialize those global variables that must always be initialized
20182 on startup even when the global variable initialized is non zero.
20183 Its primary purpose at this time is to initialize the global
20184 variables get_menu_item_info and set_menu_item_info.
20186 * w32menu.c (initialize_frame_menubar): Remove initialization of
20187 get_menu_item_info and set_menu_item_info.
20189 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
20191 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
20194 * emacs.c (main): Call globals_of_w32 prior to calling
20195 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
20196 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
20199 * w32term.c (x_update_window_begin): Fix Windows API error
20200 detected by BoundsChecker. Test to determine if
20201 w32_system_caret_hwnd is NULL prior to attempting to use
20202 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
20204 * w32term.c (x_update_window_end): Fix Windows API error
20205 detected by BoundsChecker. Test to determine if
20206 w32_system_caret_hwnd is NULL prior to attempting to use
20207 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
20209 2002-12-17 Kenichi Handa <handa@m17n.org>
20211 * coding.c (coding_system_require_warning): New variable.
20212 (syms_of_coding): DEFVAR it.
20214 * coding.h (coding_system_require_warning): Extern it.
20216 * fileio.c (choose_write_coding_system): Even if
20217 Vcoding_system_for_write is non-nil, if
20218 coding_system_require_warning is nonzero, call
20219 Vselect_safe_coding_system_function.
20221 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
20223 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
20224 (lisp): Add font-core.
20226 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
20228 * textprop.c (text_read_only): New arg `propval'.
20229 (get_char_property_and_overlay): Remove unused var `next_overlay'.
20230 (verify_interval_modification): Use text_read_only's new arg.
20232 2002-12-13 Kenichi Handa <handa@m17n.org>
20234 * coding.c (Funencodable_char_position): Set pend correctly.
20236 2002-12-12 Jason Rumney <jasonr@gnu.org>
20238 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
20239 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
20240 Be more careful about when help_events are generated.
20242 2002-12-12 Steven Tamm <steventamm@mac.com>
20244 * macterm.c (mac_check_for_quit_char): Correctly set the
20245 modifiers of the event to 0.
20246 * mac.c (sys_select): Duplicate rfds before calling select to
20247 ensure that rfds survive the while loop.
20249 2002-12-11 Kim F. Storm <storm@cua.dk>
20251 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
20252 row_containing_pos returned NULL.
20254 2002-12-10 Steven Tamm <steventamm@mac.com>
20256 * mac.c (sys_read): Fix sys_read to not call select if IO is
20258 (sys_select): Fix sys_select to not use a timeout larger than
20261 2002-12-10 Juanma Barranquero <lektu@terra.es>
20263 * editfns.c (Fformat): Use alloca, not _alloca.
20265 2002-12-09 Richard M. Stallman <rms@gnu.org>
20267 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
20270 2002-12-09 Dave Love <fx@gnu.org>
20272 * s/sol2-8.h: Removed. (Not necessary.)
20274 2002-12-09 Matthew Swift <swift@alum.mit.edu>
20276 * editfns.c (Fformat): Handle precision in string conversion
20277 specifiers like libc functions do (ie, print at most that many
20280 2002-12-08 Richard M. Stallman <rms@gnu.org>
20282 * xdisp.c (row_containing_pos): Check more carefully
20283 whether charpos is really in the row before returning it.
20285 2002-12-07 Steven Tamm <steventamm@mac.com>
20287 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
20289 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
20290 each stack frame. This may change as it could be time consuming.
20292 * macterm.c (mac_check_for_quit_char, quit_char_comp)
20293 (init_quit_char_handler, mac_determine_quit_char_modifiers)
20294 (mac_initialize): Add code to check for pressing of quit_char
20295 in the OS event queue.
20297 * mac.c (sys_select): Call mac_check_for_quit_char every second
20298 while blocking on select.
20300 * mac.c (sys_read): Use sys_select to test for input first
20301 before calling read, to allow C-g to break.
20303 2002-12-07 Richard M. Stallman <rms@gnu.org>
20305 * minibuf.c (Fcompleting_read): Doc fix.
20307 * lread.c (syms_of_lread) <load-history>: Doc fix.
20309 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
20311 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
20314 * data.c (Fdefalias): Record in load-history redefining an autoload.
20316 * alloca.c: Undo ifdef change accidentally made on 12-04.
20318 2002-12-06 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20320 * xfns.c (png_load): Avoid double gamma correction for PNG images.
20322 2002-12-04 Richard M. Stallman <rms@gnu.org>
20324 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
20326 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
20328 * alloca.c: Don't use #error.
20330 2002-12-03 Dave Love <fx@gnu.org>
20332 * buffer.c (Qucs_set_table_for_input): New.
20333 (Fget_buffer_create): Use it.
20334 (Qset_buffer_major_mode_hook): Deleted.
20335 (Fset_buffer_major_mode): Revert previous change.
20336 (init_buffer_once): Intern ucs-set-table-for-input.
20337 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
20338 Add &Qucs_set_table_for_input.
20340 2002-12-03 Andreas Schwab <schwab@suse.de>
20342 * callint.c (Fcall_interactively): Use next_event only if less
20345 2002-12-02 Andrew Choi <akochoi@shaw.ca>
20347 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
20348 names to 255 characters.
20350 * macterm.c (XTread_socket): If all frames have been collapsed,
20351 expand the first one before handling drag-and-drop events.
20353 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
20354 which is detected by autoconf.
20356 2002-12-01 Steven Tamm <steventamm@mac.com>
20358 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
20359 offset in two hints table to allow prebinding to be redone and
20360 allow the executable to be stripped.
20362 2002-11-29 Dave Love <fx@gnu.org>
20364 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
20367 2002-11-29 Richard M. Stallman <rms@gnu.org>
20369 * xdisp.c (start_display): Check more intelligently for
20370 whether the line is continued.
20371 (move_it_vertically_backward): Clear it->continuation_lines_width.
20373 2002-11-28 Dave Love <fx@gnu.org>
20375 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
20376 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
20378 2002-11-27 Steven Tamm <steventamm@mac.com>
20380 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
20381 more descriptive error output from lread.c:Fload upon most require
20382 cycles during boostrapping.
20384 2002-11-27 Jason Rumney <jasonr@gnu.org>
20386 * fileio.c (Finsert_file_contents): Give a more appropriate error
20387 for files bigger than 2Gb when off_t is 32 bit.
20389 * dired.c (Ffile_attributes): Don't return negative file sizes for
20390 files bigger than 2Gb when off_t is 32 bit.
20392 2002-11-27 Dave Love <fx@gnu.org>
20394 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20396 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
20397 Test GETPGRP_VOID instead.
20398 [BSD_TERMIOS]: Remove definitions (never used).
20400 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
20402 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20404 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
20406 2002-11-25 Jason Rumney <jasonr@gnu.org>
20408 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
20411 2002-11-25 Dave Love <fx@gnu.org>
20413 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
20415 * Makefile.in (TEMACS_LDFLAGS): Update last change.
20417 2002-11-25 Andreas Schwab <schwab@suse.de>
20419 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
20421 2002-11-24 Steven Tamm <steventamm@mac.com>
20423 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
20424 determine the size of pointers alloced in unexed space instead
20425 of using possibly invalid emacs_zone pointers. This fixes the
20426 binary incompatibility problems caused by updates to libSystem.B.
20428 2002-11-24 Richard M. Stallman <rms@gnu.org>
20430 * search.c (Fstring_match): Doc fix.
20432 * callint.c (Fcall_interactively): If a command fails because
20433 `*' detects a read-only buffer, but RECORD_FLAG is set,
20434 record it anyway if the args don't actually do tty input.
20436 2002-11-22 Dave Love <fx@gnu.org>
20438 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
20440 * keyboard.c (interrupt_signal): Provide forward declaration.
20441 (kbd_buffer_store_event): Don't declare interrupt_signal.
20443 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
20445 2002-11-21 Richard M. Stallman <rms@gnu.org>
20447 * eval.c (interactive_p): Skip any number of bytecode
20448 and special form frames, in any order.
20450 2002-11-20 Jason Rumney <jasonr@gnu.org>
20452 * w32fns.c (convert_mono_to_color_image): New function.
20453 (xbm_load, xbm_load_image): Use it when foreground or background
20456 2002-11-19 Dave Love <fx@gnu.org>
20458 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
20460 2002-11-18 Jason Rumney <jasonr@gnu.org>
20462 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
20463 (XPutPixel): Swap blue and red.
20464 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
20465 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
20466 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
20467 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
20469 2002-11-18 Dave Love <fx@gnu.org>
20471 * m/orion105.h (HAVE_ALLOCA): Don't define.
20473 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
20475 * m/intel386.h: Don't include alloca.h or define alloca.
20477 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
20478 malloc, realloc, calloc.
20480 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
20481 (bcmp): Don't define.
20483 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
20485 * m/amdahl.h: Don't define LIB_STANDARD.
20487 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
20489 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
20491 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
20492 Don't include alloca.h.
20494 * s/aix3-2.h (HAVE_FSYNC): Don't define.
20496 * regex.c (_GNU_SOURCE): Don't define.
20498 * process.c (_GNU_SOURCE): Don't define.
20500 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
20502 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
20504 * s/sol2-8.h: Include sol2-6.h.
20506 2002-11-18 Miles Bader <miles@gnu.org>
20508 * dispextern.h (struct face): Add `overstrike' field.
20509 * xterm.c (x_draw_glyph_string_foreground)
20510 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20511 * xfaces.c (load_face_font): Set `face->overstrike' based on
20512 result from choose_face_font.
20513 (best_matching_font, choose_face_font): Add `needs_overstrike'
20514 argument, and use it to return whether overstriking is desirable
20515 for this face/font combo.
20516 (set_font_frame_param: Pass new argument to choose_face_font.
20518 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
20520 This change is my fix for the following entry in etc/PROBLEMS:
20521 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20522 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
20524 * w32.c: Added wrapper functions around the win32 API functions
20525 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
20526 GetSidIdentifierAuthority. These wrapper functions serve two
20528 1. They ensure that the wrapped function can never be called
20529 when Emacs is running on an operating system on which they are
20530 not supported (Microsoft Windows 95 / 98 / ME).
20531 2. They call the wrapped functions via function pointers rather
20532 than calling them directly. This avoids taking advantage of the
20533 undocumented fact that although these functions are not supported
20534 in the 9x branch of Microsoft Windows, the functions do exist in
20535 the version of advapi32.dll that is found in the 9x branch of
20538 * w32.c (init_user_info): Replace the calls to the win32 API
20539 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
20540 and GetSidIdentifierAuthority with calls to the newly added
20543 * w32.h: Added extern declarations for the following functions:
20544 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
20545 syms_of_w32menu, and void syms_of_fontset.
20547 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
20548 function pointer track_mouse_event_fn in the handler for the
20549 WM_SETFOCUS message.
20551 * w32menu.c (initialize_frame_menubar): Add code to
20552 reinitialize the function pointers set_menu_item_info and
20553 get_menu_item_info.
20555 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
20557 * sound.c: Added a partial implementation of play-sound-internal
20558 for Microsoft Windows. Added various #ifdef / #else / #endif
20559 code blocks to separate the code that will compile under
20560 Microsoft Windows from the code that is specific to GNU/Linux.
20561 Moved several blocks of code around to make this separation of code
20562 into Windows compatible and GNU/Linux compatible code blocks easier.
20564 * makefile.w32-in: Include sound.c and link with WinMM.lib.
20566 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
20567 added support for play-sound-internal under Windows would be
20568 included in the build of Emacs.
20570 2002-11-16 Jason Rumney <jasonr@gnu.org>
20572 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
20574 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
20576 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
20578 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
20579 (adjust_point_for_property): Move out of display and invisible even if
20580 we were already inside before (in case a property was added while
20581 we weren't looking). Be more careful when handling invisible props.
20582 Skip invisible text as if it really wasn't there at all.
20584 2002-11-15 Jason Rumney <jasonr@gnu.org>
20586 * w32term.c (x_draw_image_foreground)
20587 (w32_draw_image_foreground_1): Use standard copy and invert
20588 operations to draw images.
20590 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
20592 (xbm_read_bitmap_data): Invert bits as xbm is read in.
20593 (XPutPixel): Don't invert bits here.
20595 2002-11-15 Jason Rumney <jasonr@gnu.org>
20597 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
20598 (w32_draw_image_foreground_1): Handle image masks.
20599 (x_draw_image_glyph_string): Don't BitBlt transparently.
20601 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
20602 (x_from_xcolors): Adjust RGB values for W32.
20603 (image_background, image_background_transparent)
20604 (postprocess_image, x_to_xcolors, x_disable_image)
20605 (x_build_heuristic_mask): Adapt for W32 and enable.
20606 (x_create_x_image_and_pixmap): Mark images with palettes as such.
20607 (xbm_load): Remove unused variable.
20609 2002-11-14 Richard M. Stallman <rms@gnu.org>
20611 * buffer.c (syms_of_buffer): Doc fix.
20613 2002-11-14 Dave Love <fx@gnu.org>
20615 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
20617 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
20618 * xmenu.c (unuse_menu_items, digest_single_submenu):
20619 * xfns.c (x_put_x_image):
20620 * xdisp.c (message2_nolog, set_message):
20621 * undo.c (record_point):
20622 * terminfo.c (tparam):
20623 * syntax.c (scan_sexps_forward):
20624 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20625 * composite.c (update_compositions):
20626 * cm.c (calccost, cmgoto):
20627 * charset.c (c_string_width): Declare all args (per C99).
20629 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
20631 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
20634 * emacs.c (main) [!VMS]: Avoid third arg.
20636 * fns.c (Fcopy_sequence): Doc fix.
20637 (Fmap_char_table): Cast `call2'.
20639 2002-11-14 Francesco Potort
\e,Al
\e(B <pot@gnu.org>
20641 * s/sol2-8.h: New file.
20643 2002-11-14 Kim F. Storm <storm@cua.dk>
20645 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
20646 dependency on `risky-local-variable' and the :propertize form.
20648 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
20650 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
20652 * syntax.c (scan_sexps_forward): Undo last patch.
20653 Use a more obvious fix: check eob before updating the syntax table.
20655 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
20657 * syntax.c (scan_sexps_forward): Update syntax table before reading
20658 a char rather than after so we don't update the table past eob.
20660 2002-11-09 Dave Love <fx@gnu.org>
20662 * buffer.c (Fset_buffer_major_mode): Fix last change.
20664 * regex.c (regexec): Fix pmatch declaration.
20666 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
20668 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
20669 to self-inserting characters.
20670 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
20672 * coding.c (Vtranslation_table_for_input): New.
20673 (syms_of_coding): DEFVAR it.
20675 2002-11-08 Juanma Barranquero <lektu@terra.es>
20677 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
20680 2002-11-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
20682 * process.c (Fformat_network_address): Remove unused locals p,
20685 2002-11-06 Dave Love <fx@gnu.org>
20687 * buffer.c (Qset_buffer_major_mode_hook): New.
20688 (Fset_buffer_major_mode): Use it.
20690 2002-11-06 Richard M. Stallman <rms@gnu.org>
20692 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
20695 * process.c (wait_reading_process_input):
20696 Test POLLING_PROBLEM_IN_SELECT, not hpux.
20697 Avoid initialization for auto Lisp_Object var.
20699 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
20701 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
20703 2002-11-05 Richard M. Stallman <rms@gnu.org>
20705 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
20707 * callint.c (Fcall_interactively): New local filter_specs.
20708 (Fcall_interactively): Check for progn as well as let.
20710 (Qprogn): New variable.
20711 (syms_of_callint): Staticpro and init Qprogn.
20713 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
20715 * lread.c (Feval_buffer): Doc fix.
20717 2002-11-04 Dave Love <fx@gnu.org>
20719 * keyboard.c (read_char): Always translate iff
20720 Vkeyboard_translate_table is a char table and c is valid.
20722 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20725 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
20727 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
20729 * editfns.c (get_pos_property): Don't hardcode Qfield.
20731 * keyboard.c (adjust_point_for_property): Handle `display' prop on
20732 overlays. Also handle `invisible' prop.
20734 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
20736 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
20737 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
20739 2002-11-01 Andreas Schwab <schwab@suse.de>
20741 * editfns.c (Fmessage): Revert last change to properly handle %%.
20743 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
20745 * xmenu.c (unuse_menu_items): New fun.
20746 (menu_items_inuse): New var.
20747 (syms_of_xmenu): Initialize it.
20748 (init_menu_items): Use it to detect re-entrance.
20749 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
20750 (Fx_popup_menu): Remove spurious XSETFRAME.
20752 * editfns.c (find_field): Make an exception for nil fields.
20754 2002-11-01 Dave Love <fx@gnu.org>
20756 * m/gec63.h: Deleted.
20758 2002-10-31 Dave Love <fx@gnu.org>
20760 * xterm.c (XTread_socket): Fix last change.
20761 (xaw_scroll_callback): Cast call_data to long to avoid warning.
20763 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
20765 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
20767 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
20769 * editfns.c (overlays_around, get_pos_property): New funs.
20770 (find_field): Use them.
20771 Also be careful not to modify POS before its last use.
20772 (Fmessage): Don't Fformat if there's nothing to format.
20774 2002-10-30 Dave Love <fx@gnu.org>
20776 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
20777 [HAVE_PTY_H]; Include pty.h.
20779 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
20781 * xterm.c (Qeql): Declare.
20782 (Vx_keysym_table): New.
20783 (syms_of_xterm): Initialize it.
20784 (XTread_socket): Use it. Deal with ASCII keysyms.
20785 (XSetIMValues) [HAVE_X11R6]: Prototype.
20787 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
20788 (lispy_kana_keys): Comment out.
20789 (make_lispy_event) [XK_kana_A]: Comment out.
20790 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
20793 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
20795 (TERMINFO, LIBS_TERMCAP): Define.
20797 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
20798 (bcmp): Define conditional on HAVE_BCMP.
20799 (NO_SIOCTL_H): Don't define.
20800 (TIOCSIGSEND): Don't make conditional on IRIX6.
20802 * s/sol2-5.h: Don't include strings.h.
20803 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
20805 * s/irix6-0.h (IRIX6): Don't define.
20806 (bcopy, bcmp, bzero): Don't undef.
20808 * s/irix6-5.h: Don't include strings.h.
20809 (IRIX6): Don't define.
20810 (bcopy, bcmp, bzero): Don't undef.
20812 * syntax.c (Fforward_comment): Doc fix.
20814 2002-10-29 Kim F. Storm <storm@cua.dk>
20816 * process.c (Fsignal_process): Allow PROCESS to be specified by
20817 name in addition to pid (as integer or string).
20819 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
20821 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
20824 2002-10-27 Kim F. Storm <storm@cua.dk>
20826 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
20828 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
20830 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
20832 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
20834 2002-10-26 Richard M. Stallman <rms@gnu.org>
20836 * editfns.c (Fformat): Detect invalid format letters for floats.
20838 2002-10-25 Kenichi Handa <handa@m17n.org>
20840 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
20841 (x_set_title): Likewise.
20843 2002-10-25 Juanma Barranquero <lektu@terra.es>
20846 * w32gui.h: Remove definition of XColor.
20848 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
20850 2002-10-24 Kim F. Storm <storm@cua.dk>
20852 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
20853 Callers changed (supply dummy arg).
20855 * lisp.h (get_window_cursor_type): Update prototype.
20857 * w32term.c (x_display_and_set_cursor): Get active_cursor from
20858 get_window_cursor_type to track system caret.
20860 2002-10-24 Kim F. Storm <storm@cua.dk>
20862 * process.c (Fformat_network_address): New function.
20863 (syms_of_process): Defsubr it.
20864 (list_processes_1): Use it to format :local/:remote address if
20865 service/host is not set; before Emacs would crash in that case.
20866 (Fmake_network_process): Don't use Ffind_operation_coding_system
20867 to setup coding system if host or service is not set.
20869 2002-10-23 Juanma Barranquero <lektu@terra.es>
20871 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
20873 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
20877 * w32gui.h: Add definition of XColor.
20881 * xfaces.c: Remove definition of XColor.
20883 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
20885 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
20887 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
20888 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
20889 window if it is dedicated.
20890 (Fshrink_window): Add preserve_before as was done for enlarge_window.
20891 (Vspecial_display_function): Update docstring.
20893 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
20894 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
20895 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
20897 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
20899 * casefiddle.c (casify_region): Don't treat a prefix char as part
20900 of a word when at the beginning.
20902 2002-10-17 Juanma Barranquero <lektu@terra.es>
20904 * lread.c (syms_of_lread): Fix typos.
20906 2002-10-17 Dave Love <fx@gnu.org>
20908 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
20910 2002-10-16 Richard M. Stallman <rms@gnu.org>
20912 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
20914 2002-10-14 Juanma Barranquero <lektu@terra.es>
20916 * w16select.c (syms_of_win16select): Fix docstring for
20917 `selection-coding-system'.
20919 * w32select.c (syms_of_w32select): Likewise.
20921 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
20923 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
20924 a backslash-quoted char.
20925 (scan_lists, scan_sexps_forward): Pacify the compiler.
20927 2002-10-13 Richard M. Stallman <rms@gnu.org>
20929 * window.c (window_scroll): Set immediate_quit.
20931 * print.c (print): When backquote form is the car of a list,
20932 output in old style. Use old_backquote_output to output all
20933 comma forms inside it in old style too.
20935 * buffer.h (struct buffer): Move `undo_list' down below `name'.
20937 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
20939 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
20942 * lread.c (Fload): Doc fix (load-suffixes).
20944 2002-10-10 Steven Tamm <steventamm@mac.com>
20946 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
20947 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
20948 Also switch the default to Qnil from Qt.
20950 2002-10-08 Kenichi Handa <handa@m17n.org>
20952 * coding.c (code_convert_region): When we need more GAP for
20953 conversion, pay attention to the case that coding->produced is not
20954 greater than coding->consumed.
20956 2002-10-07 Richard M. Stallman <rms@gnu.org>
20958 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
20960 2002-10-06 Andrew Choi <akochoi@shaw.ca>
20962 * macmenu.c (mac_menu_show): Add j to count menu items; match
20963 menu_item_selection to it to find selected item.
20965 2002-10-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20967 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
20968 cases. The correct fix is to pass ReparentNotify to Xt.
20969 The shell widget interprets ConfigureNotify differently depending
20970 on if it has been reparented or not.
20972 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
20974 * editfns.c (Fformat_time_string): Doc fix.
20976 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
20978 * fns.c (Flength): Doc fix.
20980 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
20982 * keyboard.c (keyremap): New struct.
20983 (read_key_sequence): Use it: globally replace keytran_foo with
20984 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
20985 keytran_next and fkey_next to just `next'.
20987 2002-10-04 Steven Tamm <steventamm@mac.com>
20989 * macterm.c (keycode_to_xkeysym_table): Change return to be
20990 treated like an X keysym.
20992 2002-10-03 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
20994 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
20995 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
20996 This is to also handle x/y changes that occur because of a resize.
20998 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
21000 * frame.c (Vdelete_frame_functions): New variable.
21001 (syms_of_frame): Initialize and defvar it.
21002 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
21003 it when frame's `tooltip' parameter is non-nil.
21005 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
21007 * w32fns.c (x_create_tip_frame): Likewise.
21009 * macfns.c (x_create_tip_frame): Likewise.
21011 2002-09-30 Kenichi Handa <handa@m17n.org>
21013 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
21014 -1 before calling ccl_driver.
21016 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
21017 Only when it is non-nil, handle composition sequence.
21018 (setup_coding_system) <0>: Don't force composition handling.
21020 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
21022 2002-09-29 Richard M. Stallman <rms@gnu.org>
21024 * search.c (Freplace_match): Adjust match data for the substitution
21025 just made in the buffer.
21027 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
21028 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
21030 2002-09-27 Richard M. Stallman <rms@gnu.org>
21032 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
21033 (read_char): Use them. Do all exits thru the end of the function.
21035 2002-09-27 Kenichi Handa <handa@etl.go.jp>
21037 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
21040 2002-09-26 Richard M. Stallman <rms@gnu.org>
21042 * regex.h (__restrict_arr): Don't define if already defined.
21044 * coding.c (run_pre_post_conversion_on_str):
21045 Save and restore Vdeactivate_mark.
21047 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
21049 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
21051 2002-09-26 Kenichi Handa <handa@etl.go.jp>
21053 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
21054 nonzero, try face's family at first. Otherwise try FAMILY at first.
21055 (choose_face_font): If C is a single byte char or latin-1, call
21056 try_font_list with PREFER_FACE_FAMILY 1.
21058 2002-09-21 Richard M. Stallman <rms@gnu.org>
21060 * window.c (select_window_1): Don't select frame.
21061 Set frame's selected window only when frame itself is selected.
21062 (Fselect_window): Doc fix.
21064 2002-09-18 Kim F. Storm <storm@cua.dk>
21066 * process.c (make-network-process): Doc fix (there is no
21067 network-server-log-function hook).
21069 2002-09-18 Richard M. Stallman <rms@gnu.org>
21071 * print.c (print): Clear out the unused parts of Vprint_number_table.
21072 (syms_of_print): Doc fix for `print-number-table'.
21074 * unexelf.c (unexec): Undo previous change.
21076 2002-09-17 Andreas Schwab <schwab@suse.de>
21078 * m/alpha.h [LINUX]: Don't define DATA_START.
21080 2002-09-16 Dave Love <fx@gnu.org>
21082 * unexelf.c (unexec): Deal with .got, reinstating change from
21085 2002-09-13 Richard M. Stallman <rms@gnu.org>
21087 * s/sol2-6.h (UNEXEC): Comment out definition.
21089 * unexsol.c (unexec): Don't downcase first letter of error msg.
21091 * xfaces.c (Fcolor_supported_p): Just one arg is required.
21093 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
21095 * unexsol.c: Include buffer.h, charset.h, coding.h.
21097 2002-09-11 Richard M. Stallman <rms@gnu.org>
21099 * unexsol.c: Don't use report_file_error; do it by hand
21102 * process.c (wait_reading_process_input, both versions):
21103 Before calling turn_on_atimers, call stop_polling.
21105 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
21107 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
21108 we go to too_near_end, call clear_glyph_matrix.
21109 (redisplay_window): After make_cursor_line_fully_visible,
21110 call clear_glyph_matrix and bypass `goto done'.
21112 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
21113 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
21115 2002-09-10 Richard M. Stallman <rms@gnu.org>
21117 * fileio.c (Fdo_auto_save): Catch error making directory.
21118 Only call push_message if we need to.
21119 At the same time, make an unwind-protect to pop it.
21120 Rename local message_p to old_message_p.
21121 (do_auto_save_make_dir, do_auto_save_eh): New functions.
21122 (do_auto_save_unwind): Don't call pop_message.
21124 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
21126 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
21128 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
21130 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
21132 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
21134 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
21135 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
21136 (re_match_2_internal): Be more careful with infinite loops.
21138 2002-09-10 Kim F. Storm <storm@cua.dk>
21140 * macros.c (end_kbd_macro): New function.
21141 (Fend_kbd_macro): Use it.
21143 * macros.h (end_kbd_macro): Declare extern.
21145 * keyboard.c (Fdiscard_input): If defining keyboard macro,
21146 end and save it instead of discarding it.
21148 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
21150 * s/sol2-6.h: Fix typo. Add comment.
21152 2002-09-09 Richard M. Stallman <rms@gnu.org>
21154 * regex.c (regnum_t): Use signed int, not unsigned int.
21156 * s/sol2-6.h: New file.
21158 * s/sol2-5.h (UNEXEC): Definition deleted.
21160 2002-09-08 Kim F. Storm <storm@cua.dk>
21162 * macros.c (executing_macro_index): Change type to EMACS_INT.
21163 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
21165 * macros.h (executing_macro_index): Change type to EMACS_INT.
21167 2002-09-06 Richard M. Stallman <rms@gnu.org>
21169 * casetab.c (set_case_table): Make canon table point to eqv table.
21171 2002-09-06 Juanma Barranquero <lektu@terra.es>
21173 * coding.c (syms_of_coding): Fix spacing.
21175 * composite.c (Fcompose_region_internal)
21176 (Fcompose_string_internal): Likewise.
21178 * data.c (Flsh): Likewise.
21180 * fontset.c (Fset_fontset_font): Likewise.
21182 * macfns.c (Fx_server_max_request_size): Likewise.
21184 * w16select.c (syms_of_win16select): Likewise.
21186 * w32select.c (syms_of_w32select): Likewise.
21188 * xselect.c (syms_of_xselect): Likewise.
21190 2002-09-05 Richard M. Stallman <rms@gnu.org>
21192 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
21193 call EXTEND_RANGE_TABLE and return a proper value.
21194 (set_image_of_range): Don't call set_image_of_range_1
21195 if no TRANSLATE or if range includes all of Latin-1.
21196 Only call it for the Latin-1 part of the range.
21197 For other cases, make two separate ranges,
21198 one for the original specified characters and one for
21199 their case-conversions.
21201 2002-09-04 Richard M. Stallman <rms@gnu.org>
21203 * s/sol2-5.h (UNEXEC): Use unexsol.o.
21205 * window.c (displayed_window_lines): Correct for one-off bug
21206 in HEIGHT on non-window displays.
21208 * regex.c (set_image_of_range_1): New function.
21209 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
21210 Return a value to indicate running out of memory.
21211 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
21212 (extend_range_table_work_area): New subroutine.
21213 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
21214 Different calling conventions, and used from set_image_of_range{,_1}.
21215 (IMMEDIATE_QUIT_CHECK): Definitions moved.
21217 2002-09-04 Juanma Barranquero <lektu@terra.es>
21219 * makefile.w32-in: All dependencies updated.
21221 2002-09-01 Richard M. Stallman <rms@gnu.org>
21223 * unexsol.c: New file.
21225 * xfns.c (Qbox): Declare external, don't define.
21227 * xdisp.c (redisplay_window) <force-start case>:
21228 If point is on semi-visible last line, reposition
21229 it at previous line.
21231 * alloc.c (display_malloc_warning): Use display-warning.
21232 (malloc_warning_1): Function deleted.
21234 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
21236 * lread.c (read1): Handle #! by skipping the line.
21238 2002-08-31 Richard M. Stallman <rms@gnu.org>
21240 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
21241 Don't include LDFLAGS.
21242 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
21244 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
21246 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
21247 member of x_display_info unless we compile for some window system.
21249 2002-08-31 Kim F. Storm <storm@cua.dk>
21251 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
21252 (get_window_cursor_type): Don't use them.
21253 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
21255 2002-08-30 Kenichi Handa <handa@etl.go.jp>
21257 * xdisp.c (get_next_display_element): Fix previous change.
21259 2002-08-30 Andrew Choi <akochoi@shaw.ca>
21261 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
21262 (expose_window): Use it to fix the display of overlapping
21263 rows (merge code from xterm.c).
21265 * macfns.c (Qbox): Add extern declaration.
21267 2002-08-30 Juanma Barranquero <lektu@terra.es>
21269 * w32fns.c (Qbox): Make extern.
21270 (syms_of_w32fns): Remove initialization of Qbox.
21272 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
21274 * xfns.c (Fx_open_connection): Fix error message.
21276 2002-08-30 Kim F. Storm <storm@cua.dk>
21278 The following changes consolidates the handling of the cursor
21279 type in xdisp.c, moving duplicate code and functionality from
21280 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
21282 * frame.h (enum text_cursor_kinds): Consolidated here.
21283 Added DEFAULT_CURSOR value.
21284 (struct frame) <desired_cursor, cursor_width>
21285 <blink_off_cursor, blink_off_cursor_width>: New fields.
21286 Consolidated from output_x, output_w32 and output_mac structs.
21287 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21288 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
21290 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
21291 Variables consolidated here.
21292 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
21293 (Vcursor_in_non_selected_windows): Renamed from
21294 cursor_in_non_selected_windows and changed to Lisp_Object.
21295 (syms_of_xdisp): Define and staticpro new and moved variables.
21296 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
21297 consolidated here. Recognize Qhollow setting.
21298 (set_frame_cursor_types): New function to set frame cursor types
21299 based on the frame parameters.
21300 (get_window_cursor_type): New function to calculate new cursor
21301 type and width for the specified window. Based on duplicated
21302 code consolidated here.
21303 Enhancements: cursor-in-non-selected-windows may be a cursor type,
21304 check buffer-local alternate-cursor-type and blink-cursor-alist
21305 before using built-in blink off methods.
21307 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
21309 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
21310 (get_specified_cursor_type, get_window_cursor_type)
21311 (set_frame_cursor_types): Added prototypes.
21313 * macfns.c (x_specified_cursor_type): Removed.
21314 (x_set_cursor_type): Use set_frame_cursor_types.
21315 (Qbar, Qbox): Removed.
21316 (syms_of_macfns): Don't intern or staticpro them.
21318 * macterm.c (x_specified_cursor_type): Remove prototype.
21319 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21320 (x_display_and_set_cursor): Use get_window_cursor_type.
21321 Remove unused local variables cursor_non_selected, active_cursor.
21322 Redraw cursor if hbar cursor width changes.
21323 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
21325 * macterm.h (enum text_cursor_kinds): Removed.
21326 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
21327 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21328 (FRAME_DESIRED_CURSOR): Macro removed.
21330 * w32fns.c (Vblink_cursor_alist): Removed.
21331 (Qbar, Qhbar, Qbox, Qhollow): Removed.
21332 (syms_of_w32fns): Don't intern, staticpro, or define them.
21333 (x_specified_cursor_type): Removed.
21334 (x_set_cursor_type): Use set_frame_cursor_types.
21336 * w32term.c (x_specified_cursor_type): Remove prototype.
21337 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21338 (x_display_and_set_cursor): Use get_window_cursor_type.
21339 Remove unused local variables cursor_off_state.
21340 Redraw cursor if hbar cursor width changes.
21341 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
21343 * w32term.h (enum text_cursor_kinds): Removed.
21344 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
21345 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21346 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21347 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21348 (struct w32_display_info) <x_highlight_frame>: Renamed member from
21349 w32_highlight_frame.
21351 * xfns.c (Vblink_cursor_alist): Removed.
21352 (Qbar, Qhbar, Qbox, Qhollow): Removed.
21353 (syms_of_xfns): Don't intern, staticpro, or define them.
21354 (x_specified_cursor_type): Removed.
21355 (x_set_cursor_type): Use set_frame_cursor_types.
21357 * xterm.c (x_specified_cursor_type): Remove prototype.
21358 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21359 (x_display_and_set_cursor): Use get_window_cursor_type.
21360 Remove unused local variables cursor_off_state.
21361 Redraw cursor if hbar cursor width changes.
21363 * xterm.h (enum text_cursor_kinds): Removed.
21364 (struct output_x) <current_cursor, desired_cursor, cursor_width>
21365 <blink_off_cursor, blink_off_cursor_width>: Members removed.
21366 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21367 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21368 (x_specified_cursor_type): Remove prototype.
21370 2002-08-28 Richard M. Stallman <rms@gnu.org>
21372 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21373 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21374 (Vblink_cursor_alist): New variable.
21375 (syms_of_w32fns): Initialize and defvar it.
21376 (x_specified_cursor_type): Recognize Qbox for filled box.
21377 Exceptions are hollow boxes.
21378 (Qbox, Qhollow): New variables.
21379 (syms_of_w32fns): Initialize and staticpro them.
21381 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21383 (struct w32_output): New fields blink_off_cursor,
21384 blink_off_cursor_width.
21385 (FRAME_CURSOR_WIDTH): New macro.
21387 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21388 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21390 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21393 * w32term.c (expose_overlaps): New function.
21394 (expose_window): Use it to fix the display of overlapping rows.
21396 2002-08-28 Simon Josefsson <jas@extundo.com>
21398 * xfns.c (Fx_open_connection): Improve help when X connection
21399 fails, xhost is insecure and xauth is better.
21401 2002-08-28 Juanma Barranquero <lektu@terra.es>
21403 * makefile.w32-in: Add missing dependencies on w32term.h and
21406 * emacs.c (USAGE1): Add missing newline.
21408 2002-08-27 Andrew Choi <akochoi@shaw.ca>
21410 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
21412 2002-08-27 Richard M. Stallman <rms@gnu.org>
21414 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21415 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21416 (Vblink_cursor_alist): New variable.
21417 (syms_of_xfns): Initialize and defvar it.
21418 (x_specified_cursor_type): Recognize Qbox for filled box.
21419 Exceptions are hollow boxes.
21420 (Qbox, Qhollow): New variables.
21421 (syms_of_xfns): Initialize and staticpro them.
21423 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21425 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
21427 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21428 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21430 * emacs.c (main): Handle --script.
21431 (USAGE1): Mention --script.
21432 (standard_args): Define sort order for --script.
21434 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
21436 * xdisp.c (redisplay_updating_p): Variable removed.
21437 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
21439 (init_iterator): Don't free realized faces if
21440 inhibit_free_realized_faces is set.
21441 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
21442 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
21443 initialize Qinhibit_free_realized_faces.
21445 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
21446 when iterator is adding glyphs to a glyph matrix.
21448 2002-08-27 Kenichi Handa <handa@etl.go.jp>
21450 * xdisp.c (get_next_display_element): In unibyte case, don't use
21451 octal form for such eight-bit characters that can be converted to
21454 2002-08-26 Kim F. Storm <storm@cua.dk>
21456 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
21457 foreground and background colors. From Joe Buehler.
21459 2002-08-26 Miles Bader <miles@gnu.org>
21461 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
21463 2002-08-25 Andrew Choi <akochoi@shaw.ca>
21465 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
21466 defined instead of MAC_OSX.
21468 * s/darwin.h (select): Define select to sys_select only if
21469 HAVE_CARBON is defined.
21470 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
21471 (DONT_REOPEN_PTY): #def it.
21473 * macterm.c (XTread_socket): Remove code to call
21474 SendEventToEventTarget for keys with command modifiers when
21475 mac_command_key_is_meta is nil.
21477 2002-08-24 Andreas Schwab <schwab@suse.de>
21479 * eval.c (Fdefvar): Fix last change.
21481 2002-08-23 Richard M. Stallman <rms@gnu.org>
21483 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
21484 Record variables in load history as (defvar . VAR).
21485 (Fdefvar): Don't record in load history if no initial value.
21486 (Qdefvar): New variable.
21487 (syms_of_eval): Init and staticpro it.
21489 * lread.c (syms_of_lread): Doc fix.
21490 (build_load_history): Use Fmember to see if a definition
21491 is already in the Vload_history element.
21493 * process.c (Fstart_process): Remove /: from program name.
21495 * emacs.c (decode_env_path): Don't add /: if file name handler
21496 has a `safe-magic' property.
21498 * callproc.c (Fcall_process): Remove /: from program name.
21500 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
21502 * regex.c (PATFETCH): Remove the translating fetch.
21503 (PATFETCH_RAW): Rename to PATFETCH.
21504 (set_image_of_range): New fun.
21505 (SET_RANGE_TABLE_WORK_AREA): Use it.
21506 (regex_compile): Don't translate the pattern chars so eagerly.
21507 Only do it when inserting an `exactn' bytecode or when handling
21509 (mutually_exclusive_p): Avoid empty statement.
21511 2002-08-22 Kim F. Storm <storm@cua.dk>
21513 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
21514 end up on a partially visible line; this reverts a specific part
21515 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
21516 display error which has been reported several times now.
21517 However it introduces the problem that changes was supposed to fix.
21518 See my comments in the source if you want to debug this further.
21520 2002-08-20 Kenichi Handa <handa@etl.go.jp>
21522 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21524 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
21526 * msdos.c (croak): Add `void' to definition.
21528 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
21529 Don't define them, they are defined in msdos.c.
21531 * mem-limits.h [MSDOS]: Declare etext.
21533 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
21534 `const' since CORRECT_DIR_SEPS modifies its target.
21536 2002-08-19 Kim F. Storm <storm@cua.dk>
21538 * keyboard.c (Fclear_this_command_keys): Add optional arg
21539 KEEP-RECORD to avoid clearing lossage when we just want to clear
21540 the current key sequence (kmacro needs this).
21542 2002-08-19 Kenichi Handa <handa@localhost>
21544 * composite.c (run_composition_function): Call FUNC if it is fboundp.
21546 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
21549 2002-08-17 Richard M. Stallman <rms@gnu.org>
21551 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
21553 * sysdep.c [!VMS]: Include sys/files.h.
21555 * editfns.c (save_restriction_restore): Defend from unchained marker.
21557 * buffer.c (overlays_at): Handle extending vec uniformly.
21558 (overlays_in): Handle extending vec from length 0 as in overlays_at.
21560 2002-08-15 Andrew Choi <akochoi@shaw.ca>
21562 * mac.c (init_mac_osx_environment): New function.
21564 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
21566 2002-08-14 Kim F. Storm <storm@cua.dk>
21568 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
21569 executing macro before appending to it (when used from Lisp).
21570 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
21571 which is called prior to each iteration of macro (for kmacro.el).
21572 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
21574 * lisp.h (Fexecute_kbd_macro): Update prototype.
21576 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
21578 2002-08-14 Kenichi Handa <handa@etl.go.jp>
21580 * xselect.c (QUTF8_STRING): New variable.
21581 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
21582 (x_atom_to_symbol): Likewise.
21583 (x_get_local_selection): New argument local_request. If it is
21584 nonzero, call handler_fn with the second arg nil.
21585 (x_handle_selection_request): Call x_get_local_selection with
21587 (lisp_data_to_selection_data): Don't encode the string here.
21588 (Fx_get_selection_internal): Call x_get_local_selection with
21590 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
21592 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
21594 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
21596 2002-08-13 Richard M. Stallman <rms@gnu.org>
21598 * minibuf.c (Fminibufferp): New function.
21599 (syms_of_minibuf): Defsubr it.
21600 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
21602 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
21604 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
21606 2002-08-12 Richard M. Stallman <rms@gnu.org>
21608 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
21609 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
21610 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
21613 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
21615 2002-08-11 Andrew Choi <akochoi@shaw.ca>
21617 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
21618 (Vmac_pass_command_to_system): New variable.
21619 (Vmac_pass_control_to_system): New variable.
21620 (do_mouse_moved): Check wp with is_emacs_window.
21621 (XTread_socket): Check window_ptr with is_emacs_window.
21622 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
21623 events back to Mac Toolbox for processing, depending on values of
21624 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
21625 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
21626 Vmac_pass_control_to_system.
21628 2002-08-10 Kenichi Handa <handa@etl.go.jp>
21630 * coding.c (unencodable_char_position): New function.
21631 (Funencodable_char_position): New function.
21632 (syms_of_coding): Defsubr Funencodable_char_position.
21634 2002-08-10 Andrew Choi <akochoi@shaw.ca>
21636 * mac.c (sys_select) [MAC_OSX]: New function.
21638 * macterm.c (MakeMeTheFrontProcess): New function.
21639 (mac_initialize): Call MakeMeTheFrontProcess.
21641 * s/darwin.h: Define select to sys_select.
21643 2002-08-09 Richard M. Stallman <rms@gnu.org>
21645 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
21647 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
21649 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
21652 2002-08-08 Ken Raeburn <raeburn@gnu.org>
21654 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
21656 * puresize.h (BASE_PURESIZE): Increase to 910000.
21658 2002-08-08 Kenichi Handa <handa@etl.go.jp>
21660 * coding.c (Ffind_operation_coding_system): For write-region, if
21661 VISIT is a filename, make it the target.
21663 2002-08-07 Richard M. Stallman <rms@gnu.org>
21665 * alloc.c (mark_object): Detect long lists for debugging.
21666 (mark_object_loop_halt): New variable.
21668 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
21670 * data.c (Fmake_variable_frame_local): Doc fix.
21672 2002-08-01 David Ponce <david@dponce.com>
21674 * w32menu.c (local_heap, local_alloc, local_free): New macros.
21675 (malloc_widget_value, free_widget_value)
21676 (w32_free_submenu_strings): Use them.
21678 (push_submenu_start, push_submenu_end, push_left_right_boundary)
21679 (push_menu_pane, push_menu_item, single_keymap_panes)
21680 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
21681 (single_submenu, set_frame_menubar)
21682 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
21684 (Fx_popup_menu): Don't show pop up menu until preceding one is
21685 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
21687 * w32menu.c: Changes adapted from xmenu.c
21688 (set_frame_menubar): First parse all submenus,
21689 then make widget_value trees from them.
21690 Don't allocate any widget_value objects
21691 until we are done with the parsing.
21692 (parse_single_submenu): New function.
21693 (digest_single_submenu): New function.
21694 (single_submenu): Function deleted, replaced by those two.
21696 2002-08-04 Andrew Choi <akochoi@shaw.ca>
21698 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
21699 returns a valid window pointer before proceeding for keyDown and
21702 2002-08-03 Andrew Choi <akochoi@shaw.ca>
21704 * macterm.c (USE_CARBON_EVENTS): New macro.
21705 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
21706 (x_iconify_frame): Call CollapseWindow.
21707 (Vmac_reverse_ctrl_meta): New variable.
21708 (Vmac_wheel_button_is_mouse_2): New variable.
21709 (init_mac_drag_n_drop): New function.
21710 (mac_do_receive_drag): New function.
21711 (mac_handle_service_event): New function.
21712 (init_service_handler): New function.
21713 (mac_to_emacs_modifiers): New function.
21714 (mac_event_to_emacs_modifiers): New function.
21715 (mac_get_mouse_btn): New function.
21716 (mac_convert_event_ref): New function.
21717 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
21718 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
21720 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
21722 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
21723 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
21724 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
21725 TOOL_BAR_EVENT for MAC_OS as well.
21726 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
21728 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
21730 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
21732 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
21734 * xdisp.c (forward_to_next_line_start): Fix a condition that
21735 lead to a newline being skipped.
21737 2002-08-02 Andrew Choi <akochoi@shaw.ca>
21739 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
21741 2002-08-01 Richard M. Stallman <rms@gnu.org>
21743 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
21745 2002-07-31 Andrew Choi <akochoi@shaw.ca>
21747 * macfns.c: #undef init_process before #define-ing it.
21749 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
21750 HAVE_CARBON is defined.
21752 2002-07-31 Richard M. Stallman <rms@gnu.org>
21754 * xmenu.c (set_frame_menubar): First parse all submenus,
21755 then make widget_value trees from them.
21756 Don't allocate any widget_value objects
21757 until we are done with the parsing.
21758 (parse_single_submenu): New function.
21759 (digest_single_submenu): New function.
21760 (single_submenu): Function deleted, replaced by those two.
21762 2002-07-30 Juanma Barranquero <lektu@terra.es>
21764 * w32proc.c (syms_of_ntproc): Fix docstring of
21765 `w32-get-true-file-attributes'.
21767 2002-07-28 Richard M. Stallman <rms@gnu.org>
21769 * s/hpux8.h (HPUX8): Define this before including hpux.h.
21770 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
21772 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
21774 * keyboard.c (make_lispy_event):
21775 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
21776 Explicitly clear up_modifier in event->modifiers.
21778 2002-07-27 Richard M. Stallman <rms@gnu.org>
21780 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
21782 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21785 2002-07-26 Kenichi Handa <handa@etl.go.jp>
21787 * coding.c (detect_coding_iso2022): While checking a byte sequence
21788 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
21789 it in the normal loop.
21791 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
21793 * xterm.c (expose_overlaps): New function.
21794 (expose_window): Use it to fix the display of overlapping rows.
21796 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
21798 2002-07-23 Ken Raeburn <raeburn@gnu.org>
21800 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
21801 since it only depends on XUINT.
21803 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
21804 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
21805 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
21808 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
21809 its value over other approaches.
21810 * sysdep.c (start_of_data): Don't define the function if a macro
21811 form has been defined.
21813 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
21815 * xdisp.c (redisplay_updating_p): New variable.
21816 (init_iterator): Don't free realized faces when
21817 redisplay_updating_p is set.
21818 (redisplay_internal): Set redisplay_updating_p while updating
21821 2002-07-23 Richard M. Stallman <rms@gnu.org>
21823 * editfns.c (Fmessage): Treat "" like nil.
21825 2002-07-23 Kenichi Handa <handa@etl.go.jp>
21827 * xdisp.c (face_before_or_after_it_pos):
21828 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21830 2002-07-22 Juanma Barranquero <lektu@terra.es>
21832 * callproc.c (init_callproc) [DOS_NT]:
21833 Initialize Vshared_game_score_directory to nil.
21834 (syms_of_callproc) [DOS_NT]: Likewise.
21836 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
21838 * xdisp.c (display_line): Replace an abort with xassert.
21840 2002-07-21 Richard M. Stallman <rms@gnu.org>
21842 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
21843 and END_UNCHANGED when setting buffer_unchanged_p.
21844 Use current_matrix_up_to_date_p to decide whether to use
21845 try_cursor_movement.
21847 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
21849 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
21851 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
21852 Set to nil if dir does not exist.
21853 (syms_of_callproc): Init unconditionally and simply.
21855 * buffer.c (Fbuffer_list): Doc fix.
21857 2002-07-21 Ken Raeburn <raeburn@gnu.org>
21859 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
21861 * buffer.c (mmap_realloc): When shrinking, make sure number of
21862 pages to unmap is rounded towards zero.
21864 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
21865 (XSETINT): Deleted.
21867 * m/att3b.h (XINT): Don't define.
21868 (VALBITS, VALMASK, XTYPE): Deleted.
21869 (DATA_SEG_BITS): Define.
21870 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
21871 ARRAY_MARK_FLAG): Deleted.
21872 (DATA_SEG_BITS): Define.
21873 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
21874 (DATA_SEG_BITS): Define.
21876 2002-07-20 Richard M. Stallman <rms@gnu.org>
21878 * print.c (print_error_message): New args CONTEXT and CALLER.
21881 * lisp.h (print_error_message): Declare new args.
21883 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
21884 and CONTEXT to print_error_message, don't print them here.
21885 For a Quit, don't use Vsignaling_function.
21886 Call message_log_maybe_newline.
21888 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
21890 2002-07-20 Kim F. Storm <storm@cua.dk>
21892 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
21894 2002-07-19 Ken Raeburn <raeburn@gnu.org>
21896 * bytecode.c (struct byte_stack): Pointers into byte string now
21898 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
21900 * charset.h (BCOPY_SHORT): Source pointer now points to const.
21901 * coding.c (encode_eol, detect_coding, detect_eol):
21902 (decode_coding, encode_coding, detect_coding_system):
21903 Source strings now treated as const.
21904 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
21905 modify Lisp string contents.
21906 * coding.h (decode_coding, encode_coding, detect_coding,
21907 detect_eol): Declarations updated.
21908 * composite.c (compose_chars_in_text): Treat Lisp string contents
21910 * dispnew.c (safe_bcopy): Source pointer now points to const.
21911 * lisp.h (STRING_COPYIN): New macro.
21912 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
21913 (internal_with_output_to_temp_buffer): Declarations updated.
21914 * print.c (temp_output_buffer_setup):
21915 (internal_with_output_to_temp_buffer): Buffer name argument is now
21917 * sound.c (struct sound_device): Function pointer field "write"
21918 buffer argument now points to const.
21919 (vox_write): Buffer argument points to const.
21920 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
21922 * sysdep.c (emacs_write): Buffer pointer now const.
21923 * term.c (encode_terminal_code): Buffer pointer now const.
21924 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
21925 (x_face_list_fonts, x_update_menu_appearance):
21926 (hash_string_case_insensitive): Treat Lisp string contents as const.
21928 2002-07-19 Juanma Barranquero <lektu@terra.es>
21930 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
21932 * fileio.c (syms_of_fileio): Likewise.
21933 (Ffile_name_as_directory): Fix argument name in docstring.
21934 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
21936 2002-07-18 Richard M. Stallman <rms@gnu.org>
21938 * data.c (Fdefalias): Doc fix.
21940 2002-07-17 Dave Love <fx@gnu.org>
21942 * intervals.h (text_property_stickiness): Use P_.
21944 * ccl.c: Remove `emacs' conditionals.
21945 (ccl_backtrace_table): Fix size spec.
21946 (ccl_driver): Fix type errors.
21948 2002-07-16 Ken Raeburn <raeburn@gnu.org>
21950 * alloc.c (xstrdup, make_string, make_unibyte_string)
21951 (make_multibyte_string, build_string): String pointer args now
21953 * charset.c (find_charset_in_text, c_string_width):
21954 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
21955 * fileio.c (report_file_error):
21956 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
21957 (count_combining_before, count_combining_after, insert_1_both):
21958 (insert, insert_and_inherit, insert_string):
21959 (insert_before_markers, insert_before_markers_and_inherit):
21960 * lread.c (intern, oblookup, hash_string):
21961 * minibuf.c (temp_echo_area_glyphs):
21962 * search.c (fast_c_string_match_ignore_case):
21963 * sysdep.c (emacs_open, set_file_times):
21964 * xfaces.c (xstricmp):
21965 * xdisp.c (store_frame_title, string_char_and_length):
21966 (message_dolog, message2, message2_nolog, set_message): Likewise.
21967 (set_message_1): Cast message string argument to const pointer.
21968 * editfns.c (general_insert_function): Insertion function now
21969 takes pointer to const for input data.
21970 * charset.h (find_charset_in_text, c_string_width):
21971 (parse_str_as_multibyte): Declarations updated.
21972 * dispextern.h (xstricmp): Declaration updated.
21973 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
21974 (count_size_as_multibyte, count_combining_before):
21975 (count_combining_after, insert_1, insert_1_both, message_dolog):
21976 (insert, insert_and_inherit, insert_before_markers)
21977 (insert_before_markers_and_inherit, set_message, message2):
21978 (message2_dolog, build_string, make_string, make_unibyte_string):
21979 (make_multibyte_string, intern, oblookup, report_file_error):
21980 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
21981 (emacs_open, xstrdup): Declarations updated.
21982 * systime.h (set_file_times): Declaration updated.
21984 * charset.c (find_charset_in_text, lisp_string_width): Use const
21985 for pointer to lisp string data.
21986 * charset.h (FETCH_STRING_CHAR_ADVANCE):
21987 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
21988 * coding.c (Ffind_coding_systems_region_interval):
21989 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
21990 (Fmake_directory_internal, Fdelete_directory):
21991 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
21992 * fontset.c (font_family_registry, fs_query_fontset):
21994 * frame.c (Fframe_parameter):
21995 * keyboard.c (cmd_error_internal):
21996 * keymap.c (Fdescribe_buffer_bindings):
21997 * lread.c (complete_filename_p, openp):
21998 * minibuf.c (Fminibuffer_complete_word):
21999 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22000 (face_before_or_after_it_pos, next_element_from_string):
22001 (get_overlay_arrow_glyph_row, display_mode_element):
22002 (decode_mode_spec_coding):
22003 * xterm.c (same_x_server): Likewise.
22005 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
22006 settings of non-existent fields.
22008 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
22011 * lread.c (Fintern_soft): Use string macros instead of
22012 Lisp_String fields.
22013 * keyboard.c (echo_char, parse_modifiers_uncached):
22014 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
22015 * textprop.c (validate_interval_range, interval_of): Likewise.
22017 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
22019 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22020 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
22021 XSTRING()->size_byte.
22023 * lisp.h (SDATA, SREF): Produce rvalue.
22025 * alloc.c (make_event_array): Use SSET for storing into a string.
22026 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
22028 * casefiddle.c (casify_object): Use SSET.
22029 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22030 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
22031 address of string contents.
22032 * data.c (Faref): Use SDATA.
22033 (Faset): Use SDATA, SSET.
22034 * dired.c (directory_files_internal): Use SSET.
22035 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
22036 (Fread_file_name): Use SREF, SSET.
22037 * fns.c (concat): Use SSET.
22038 (concat, Fdelete): Use SDATA.
22039 * insdel.c (insert_from_string_1): Use SDATA.
22040 * keyboard.c (Fevent_convert_list): Use SREF.
22041 * lread.c (Fload): Use SDATA, SSET.
22042 * macfns.c (validate_x_resource_name): Use SSET.
22043 * process.c (status_message): Use SSET.
22044 * search.c (wordify): Use SDATA.
22045 (Freplace_match): Use SREF.
22046 * w32fns.c (validate_x_resource_name): Use SSET.
22047 * xfns.c (validate_x_resource_name): Use SSET.
22048 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
22050 2002-07-16 Richard M. Stallman <rms@gnu.org>
22052 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
22054 * xdisp.c (reconsider_clip_changes):
22055 Don't test prevent_redisplay_optimizations_p.
22056 (redisplay_internal): Test prevent_redisplay_optimizations_p
22057 along with clip_changed in some cases.
22058 (try_window_id): Likewise.
22059 (redisplay_window): New local var buffer_unchanged_p.
22061 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
22063 * process.c (create_process): Test USG_SUBTTY_WORKS.
22064 (process_send_signal): Clean up handling of GID.
22065 Detect errors in ioctls meant to set GID.
22067 * window.c (temp_output_buffer_show):
22068 Don't set prevent_redisplay_optimizations_p.
22070 2002-07-15 Juanma Barranquero <lektu@terra.es>
22072 * eval.c (Fdefvaralias): Add docstring argument.
22074 2002-07-15 Ken Raeburn <raeburn@gnu.org>
22076 * lisp.h (STRING_INTERVALS): Produce rvalue.
22077 (STRING_SET_INTERVALS): New macro.
22078 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
22079 * fns.c (Fstring_as_multibyte): Likewise.
22080 * intervals.c (balance_possible_root_interval, delete_interval)
22081 (create_root_interval, copy_intervals_to_string): Likewise.
22082 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
22085 2002-07-14 Ken Raeburn <raeburn@gnu.org>
22087 * lisp.h (STRING_SET_CHARS): New macro.
22088 (SCHARS, SBYTES): Produce rvalues.
22089 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
22090 * fns.c (concat): Likewise.
22091 * lread.c (read_vector): Likewise.
22093 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
22094 (STRING_SET_UNIBYTE): New macro.
22095 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
22096 length of -1) changed to use STRING_SET_UNIBYTE.
22097 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22098 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
22099 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
22100 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
22101 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
22102 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
22103 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
22104 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
22105 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22106 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
22107 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
22108 STRING_BYTES or indirection changed to SCHARS, SBYTES,
22109 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
22112 2002-07-13 Kim F. Storm <storm@cua.dk>
22114 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
22116 2002-07-12 Richard M. Stallman <rms@gnu.org>
22118 * fileio.c (Fwrite_region): Doc fix.
22120 * print.c (print_error_message): Don't handle Vsignaling_function here.
22122 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
22123 (command_loop_1): Avoid certain actions after memory-full error.
22125 * eval.c (Fsignal): Don't call cancel_hourglass.
22126 For a memory-full error, don't call Vsignal_hook_function
22127 and don't set Vsignaling_function.
22129 * process.c (process_send_signal): Add abort call.
22131 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
22133 * keymap.c (Fkey_binding): Fix typo.
22135 2002-07-11 Richard M. Stallman <rms@gnu.org>
22137 * alloc.c (Vmemory_full): New variable.
22138 (Vmemory_signal_data): Rename from memory_signal_data.
22140 (syms_of_alloc): Defvar them.
22141 (memory_full, buffer_memory_full): Set Vmemory_full.
22143 * lisp.h (Vmemory_full): Add declaration.
22144 (current_column, indented_beyond_p): Change declaration.
22146 * indent.c (last_known_column): Declare as double, not float.
22147 (current_column, current_column_1, string_display_width)
22148 (position_indentation): Return `double'.
22149 (indented_beyond_p): Arg `column' is `double'. Callers changed.
22151 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
22152 (back_to_previous_visible_line_start)
22153 (reseat_at_next_visible_line_start, next_element_from_buffer):
22154 Use `double', not `float', when calling indented_beyond_p.
22156 * s/hpux11.h (BROKEN_SA_RESTART): Define.
22158 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
22160 2002-07-11 Juanma Barranquero <lektu@terra.es>
22162 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
22163 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
22164 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
22165 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
22166 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
22167 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
22169 2002-07-10 Juanma Barranquero <lektu@terra.es>
22171 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
22172 All callers changed.
22174 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
22176 * data.c (Fdefalias): Add an optional `docstring' argument.
22177 (set_internal, Fsetq_default): Use XCAR/XCDR.
22179 * composite.c (HASH_VALUE, HASH_KEY):
22180 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
22182 2002-07-09 Kenichi Handa <handa@etl.go.jp>
22184 * callproc.c (Fcall_process): Fix previous change.
22186 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
22188 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
22189 Add support for hash-tables.
22190 (Ftry_completion): Return t even if the string appears multiple times.
22192 * fns.c (Fnconc): Use XCDR.
22193 (Fprovide): Use CONSP and XCDR.
22194 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22195 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
22196 (Fmake_hash_table): Accept `:size nil'.
22197 (Fmakehash): Delete: moved to subr.el.
22198 (syms_of_fns): Don't defsubr makehash.
22200 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22201 (HASH_TABLE_SIZE): Move from fns.c.
22203 2002-07-07 Richard M. Stallman <rms@gnu.org>
22205 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
22206 Instead just return 0 when there is something to be done.
22207 (try_scrolling): If make_cursor_line_fully_visible returns 0,
22208 retry scrolling as if cursor were off the bottom.
22209 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
22210 return CURSOR_MOVEMENT_MUST_SCROLL.
22211 (redisplay_window): If make_cursor_line_fully_visible returns 0,
22212 go to try_to_scroll.
22214 * buffer.c (Fbuffer_local_value): Store current value into its binding
22215 so we get the up-to-date value for the binding that is loaded.
22217 * eval.c (Fdefmacro): Doc fix.
22219 2002-07-05 Dave Love <fx@gnu.org>
22221 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
22224 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
22225 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
22226 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
22227 CCL_LookupCharConstTbl.
22228 (syms_of_ccl): Defvar translation-hash-table-vector.
22230 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22232 * xdisp.c: Remove unused variable `face'.
22234 2002-07-04 Juanma Barranquero <lektu@terra.es>
22236 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
22237 obsolescence information.
22239 2002-07-03 Andrew Choi <akochoi@shaw.ca>
22241 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
22242 pattern. Search cache first.
22243 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
22245 (XLoadQueryFont): Use it.
22247 2002-07-02 Richard M. Stallman <rms@gnu.org>
22249 * keymap.c (Fdefine_key): Doc fix.
22251 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
22253 2002-07-02 Juanma Barranquero <lektu@terra.es>
22255 * keymap.c (syms_of_keymap): Fix typo.
22257 2002-07-01 Andrew Choi <akochoi@shaw.ca>
22259 * s/darwin.h: Define POSIX_SIGNALS.
22261 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
22262 and FSRefMakePath to convert FSSpec returned with Apple Event to
22264 (mac_initialize) [TARGET_API_MAC_CARBON]:
22265 Call init_required_apple_events and disable the `Quit' menu item
22266 provided automatically by the Carbon Toolbox.
22268 2002-07-01 Dave Love <fx@gnu.org>
22270 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22273 * xterm.c: Fix prototype for K&R.
22275 * term.c (costs_set): Declare static, non-initialized for pcc.
22277 2002-07-01 Richard M. Stallman <rms@gnu.org>
22279 * keyboard.c (timer_last_idleness_start_time): New variable.
22280 (timer_start_idle): Set that.
22281 (read_key_sequence): Use that to reset timer_idleness_start_time
22284 * window.c (Frecenter): With arg, set optional_new_start.
22286 * xdisp.c (redisplay_internal): Make optional_new_start really work.
22288 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
22289 buffer for completion.
22291 2002-06-29 Ken Raeburn <raeburn@gnu.org>
22293 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
22295 2002-06-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
22297 * keyboard.c (readable_filtered_events): New function that filters
22298 FOCUS_IN_EVENT depending on parameter.
22299 (readable_events): Calls readable_filtered_events, not filtering
22301 (get_filtered_input_pending): New function, filtering parameter passed
22302 to readable_filtered_events.
22303 (get_input_pending): Calls get_filtered_input_pending, not filtering
22305 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
22308 * xterm.h (struct x_output): Add focus_state.
22310 * xterm.c (x_focus_changed): New function.
22311 (x_detect_focus_change): New function.
22312 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
22313 EnterNotify and LeaveNotify to track X focus changes.
22315 2002-06-28 Andreas Schwab <schwab@suse.de>
22317 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
22319 2002-06-27 Kim F. Storm <storm@cua.dk>
22321 * xdisp.c (mode_line_string_list, mode_line_string_face)
22322 (mode_line_string_face_prop): New variables.
22323 (store_mode_line_string): New function.
22324 (display_mode_element): Use store_mode_line_string to
22325 add mode-line string elements to mode_line_string_list
22326 when mode_line_string_list is non-nil.
22327 (Fformat_mode_line): Now returns propertized string by
22328 default. New arg NO-PROPS to ignore properties.
22329 (decode_mode_spec): Only add two dashes for %- in propertized
22331 (syms_of_xdisp): Init and staticpro mode_line_string_list.
22333 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
22335 * minibuf.c (minibuffer_completion_contents): Add return type.
22337 2002-06-27 Juanma Barranquero <lektu@terra.es>
22339 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
22341 2002-06-26 Juanma Barranquero <lektu@terra.es>
22343 * fileio.c (read_file_name_cleanup): Add missing return.
22345 2002-06-26 Richard M. Stallman <rms@gnu.org>
22347 * window.c (Frecenter): Don't set force_start flag.
22349 * minibuf.c (do_completion, Fminibuffer_complete_word)
22350 (Fminibuffer_completion_help): Complete just the text before point.
22351 (minibuffer_completion_contents): New function.
22353 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
22355 * frame.c (frames_bury_buffer): Function deleted.
22357 2002-06-25 Miles Bader <miles@gnu.org>
22359 * callint.c (Fcall_interactively): When checking to see if doprnt hit
22360 the end of callint_message, allow for a terminating '\0'.
22362 2002-06-24 Juanma Barranquero <lektu@terra.es>
22364 * w32select.c: Include composite.h.
22366 * w16select.c: Likewise.
22368 2002-06-24 Kenichi Handa <handa@etl.go.jp>
22370 * callproc.c (Fcall_process): If code detection is necessary,
22371 call detect_coding directly here.
22373 * coding.c (detect_eol): Preserve coding->cmp_data.
22375 * w16select.c (Fw16_get_clipboard_data):
22376 * w32fns.c (w32_to_x_font):
22377 * w32select.c (Fw32_get_clipboard_data):
22378 * xselect.c (selection_data_to_lisp_data):
22379 * xterm.c (XTread_socket): Disable composition handling.
22381 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
22383 * print.c (temp_output_buffer_setup): Kill all local variables.
22385 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
22387 * lread.c (Fread): Remove redundant and imprecise declaration.
22389 * xfns.c (check_x_display_info): Use check_x_frame.
22391 * .gdbinit (xprintsym): Use the new `xname' field.
22394 2002-06-22 Jason Rumney <jasonr@gnu.org>
22396 * w32fns.c (file_dialog_callback): New function.
22397 (Fx_file_dialog): Allow selecting directories as well as files.
22399 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22401 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
22402 OpenBSD. Add support for mipseb-*-netbsd* machines.
22404 2002-06-17 Andrew Choi <akochoi@shaw.ca>
22406 * macterm.c (mac_scroll_area): Set foreground and backcolor to
22407 black and white before scrolling. Restore frame background and
22408 foreground color after scrolling.
22409 (do_window_update): Call XClearWindow before calling expose_frame.
22410 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
22411 FRAME_FOREGROUND_PIXEL of frame.
22413 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22414 test Mac command key as <ALT> key.
22416 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
22418 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
22420 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
22421 Lookup keys in function-key-map immediately so that key-translation-map
22422 can be applied earlier.
22423 Remove function_key_possible and key_translation_possible, replaced
22424 by checking `keytran_start < t'.
22426 * .gdbinit (xsymbol): Use the new `xname' field.
22428 2002-06-17 Andrew Choi <akochoi@shaw.ca>
22430 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22431 test Mac command key as <ALT> key.
22433 * mac.c (do_applescript): Call initialize_applescript if necessary
22434 when first called. Dispose of result_desc only when there is no error.
22435 (Fdo_applescript): Use %d format specifier instead of %ld.
22437 2002-06-16 Andrew Choi <akochoi@shaw.ca>
22439 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
22440 of FrontWindow for cases keyDown and autoKey.
22442 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
22443 Vdefault_fontset to Monaco with mac-roman coding.
22445 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
22446 init_process before and after inclusion of Carbon/Carbon.h, resp.
22448 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
22450 (add_font_name_table_entry): New function.
22451 (init_font_name_table): Use add_font_name_table_entry; add italic,
22452 bold, and bold-italic entries for truetype fonts.
22454 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
22456 (try_font_list) [MAC_OS]: If no font matches given registry, try
22457 fonts with any registry matching face_family.
22458 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
22460 * s/darwin.h: If autoconf detects the Ncurses library, define
22461 LIBS_TERMCAP to -lncurses to use it.
22463 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
22465 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
22467 2002-06-15 Richard M. Stallman <rms@gnu.org>
22469 * window.c (Fset_window_configuration): Explicitly preserve
22470 the point value that new_current_buffer had at the start.
22472 2002-06-14 Juanma Barranquero <lektu@terra.es>
22474 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
22477 2002-06-14 Kim F. Storm <storm@cua.dk>
22479 * insdel.c (insert_1_both, insert_from_string_1)
22480 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
22481 insert happened in the end_unchanged region. Otherwise, the
22482 redisplay may be confused and duplicate the last line in the
22483 buffer [seen after save-buffer when require-final-newline==t].
22485 2002-06-13 Jason Rumney <jasonr@gnu.org>
22487 * w32.c (init_environment): Remove EMACSLOCKDIR.
22488 (stat): Swap _S_IFDIR and _S_IFREG.
22490 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22492 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
22493 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
22494 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
22495 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
22496 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
22497 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
22498 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
22499 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
22500 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
22501 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
22502 SELECTION_REQUEST_EVENT, selection_clear_event to
22503 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
22504 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
22505 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
22506 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
22507 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
22508 no_event to NO_EVENT.
22510 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22512 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
22514 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
22516 * intervals.c (textget): Don't forget to `return'.
22517 (lookup_char_property): Use XCAR/XCDR.
22519 2002-06-12 Juanma Barranquero <lektu@terra.es>
22521 * xdisp.c (Fformat_mode_line): Fix typo.
22523 2002-06-12 Kim F. Storm <storm@cua.dk>
22525 * xdisp.c (Fformat_mode_line): New function.
22526 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
22527 (store_frame_title_char, store_frame_title): Use unconditionally.
22528 (init_xdisp): Defsubr Fformat_mode_line.
22529 Initialize frame_title_buf etc. unconditionally.
22531 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
22533 * keyboard.c (read_key_sequence):
22534 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
22535 things through those maps after downcasing events.
22536 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
22537 applies after function-key-map.
22538 Make sure that keytran can be done in the middle in the sequence.
22539 Be careful not to throw away events past the one we downcase.
22541 * lread.c (read_integer): Remove unused var `tem'.
22542 (read1): Fix int/Lisp_Object mixup.
22544 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
22546 2002-06-11 Richard M. Stallman <rms@gnu.org>
22548 * keyboard.c (readable_events): Ignore any number of
22549 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
22551 2002-06-09 Miles Bader <miles@gnu.org>
22553 * xfaces.c (Ftty_supports_face_attributes_p): New function.
22554 (parse_rgb_list, tty_lookup_color): New functions.
22555 (tty_defined_color): Use `tty_lookup_color' to do all the work.
22556 (color_distance, Fcolor_distance): New functions.
22557 (TTY_SAME_COLOR_THRESHOLD): New macro.
22558 (Qtty_color_standard_values): New variable.
22559 (syms_of_xfaces): Initialize new vars & functions.
22561 2002-06-08 Colin Walters <walters@verbum.org>
22563 * textprop.c (Vchar_property_alias_alist): New variable.
22564 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
22566 * intervals.c (lookup_char_property): New function for looking up
22567 overlay and text properties, created from textget.
22570 * intervals.h (lookup_char_property): Declare.
22571 (Vchar_property_alias_alist): Declare.
22573 * buffer.c (Foverlay_get): Use lookup_char_property.
22575 2002-06-07 Sam Steingold <sds@gnu.org>
22577 * xselect.c (lisp_data_to_selection_data): Fix last change:
22578 *data_ret is not a Lisp string, while unibyte_string is.
22580 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
22582 * xselect.c (lisp_data_to_selection_data): Fix last change:
22585 2002-06-07 Andreas Schwab <schwab@suse.de>
22587 * m/amdx86-64.h: New file.
22589 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
22591 * fns.c (Fstring_make_unibyte): Doc fix.
22593 * xselect.c (lisp_data_to_selection_data): If the requested type
22594 is STRING, call string_make_unibyte to encode the selected text
22597 * window.c (Fset_window_hscroll): Doc fix.
22599 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22601 * fileio.c (choose_write_coding_system):
22602 Call select-safe-coding-system properly.
22604 2002-06-03 Richard M. Stallman <rms@gnu.org>
22606 * xdisp.c (message_with_string): Error if STRING is not a string.
22608 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
22610 * fileio.c (choose_write_coding_system): Pass FILE arg to
22611 Vselect_safe_coding_system_function.
22613 2002-06-03 Ken Raeburn <raeburn@gnu.org>
22615 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
22617 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
22619 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
22620 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
22621 * keymap.c (describe_command): Likewise.
22622 * minibuf.c (read_minibuf): Likewise.
22624 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
22625 Cast `current_column' return value to int.
22626 (back_to_previous_visible_line_start)
22627 (reseat_at_next_visible_line_start, next_element_from_buffer):
22628 Cast `indented_beyond_p' 3rd arg to float.
22630 * indent.c (last_known_column): Now a float.
22631 (current_column_1, position_indentation, current_column)
22632 (string_display_width): Return float.
22633 (Fcurrent_column): Cast `current_column' return value to int.
22634 (Fcurrent_indentation): Cast `position_indentation' retval to int.
22635 (indented_beyond_p): Third arg now a float.
22636 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
22638 * lisp.h (current_column): Now returns float.
22639 (indented_beyond_p): 3rd arg now a float.
22641 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
22643 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
22644 is Qcompound_text_with_extensions.
22646 * xselect.c (lisp_data_to_selection_data): Always set selection
22647 type as string if x_encode_text returns streingp non-NULL.
22649 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
22651 2002-05-30 Richard M. Stallman <rms@gnu.org>
22653 * window.c (Fset_window_configuration): Correct the handling
22654 of point in current buffer, to work with multiple windows.
22656 2002-05-29 Colin Walters <walters@verbum.org>
22658 * lread.c (Fread_from_string): Don't depend on order of evaluation
22659 for C function parameters.
22661 2002-05-28 Richard M. Stallman <rms@gnu.org>
22663 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
22664 way for blinked-off state and for a nonselected window.
22666 * window.c (window_scroll_pixel_based): Don't call Fbolp;
22667 instead, see if the new start pos is at beginning of line.
22669 * fileio.c (Fwrite_region): If START is a string, don't
22670 make any annotations.
22672 * eval.c (syms_of_eval): Doc fix.
22674 2002-05-28 Colin Walters <walters@debian.org>
22676 * emacs.c (USAGE1): Add --no-splash.
22677 (standard_args): Ditto.
22679 2002-05-28 Colin Walters <walters@gnu.org>
22681 * lread.c (readchar_count): New variable.
22682 (readchar): Increment it.
22683 (unreadchar): Decrement it.
22684 (read_multibyte): Decrement it.
22685 (Vread_with_symbol_positions): New variable.
22686 (Vread_symbol_positions_list): New variable.
22687 (read_internal_start): New function, created from Fread and
22688 Fread_from_string. Handle Vread_symbol_positions_list and
22689 Vread_with_symbol_positions.
22690 (readevalloop, Fread, Fread_from_string): Use it.
22691 (read1): Use readchar_count to add symbol positions to
22692 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
22693 (syms_of_lread): DEFVAR_LISP and initialize them.
22695 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
22696 (substitute_object_recurse, substitute_object_in_subtree)
22697 (substitute_in_interval): Prototype.
22698 (read_multibyte): Return c if it's less than zero.
22700 2002-05-28 Kim F. Storm <storm@cua.dk>
22702 * fileio.c (Fread_file_name_internal): Added brute-force
22703 speed up for using predicate file-directory-p.
22705 2002-05-28 Kim F. Storm <storm@cua.dk>
22707 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
22709 (syms_of_fileio): DEFVAR_LISP them.
22710 (read_file_name_cleanup): New unwind function.
22711 (Fread_file_name_internal): Only return completions satifying
22712 Vread_file_name_predicate. Temporarily unwind protect and rebind
22713 default-directory while checking completions against the predicate.
22714 (Fread_file_name): Added PREDICATE argument. Specbind it to
22715 Vread_file_name_predicate during completion.
22716 Call Vread_file_name_function to read the file name if non-nil.
22718 * lisp.h (Fread_file_name): Now has 6 args.
22720 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
22721 predicate for Fread_file_name when reading directory name.
22722 Supply Qnil for predicate in other calls to Fread_file_name.
22724 2002-05-26 Miles Bader <miles@gnu.org>
22726 * term.c (tty_capable_p): New function.
22727 * dispextern.h (tty_capable_p): New function declaration.
22728 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
22729 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
22731 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
22733 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
22734 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
22735 (Vwrite_region_annotate_functions): Docstring fix.
22737 2002-05-23 Kim F. Storm <storm@cua.dk>
22739 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
22740 phys_cursor's hpos is overwritten. This is still not completely
22741 correct, as it doesn't really make sense to use hpos at all to
22742 get the cursor glyph (as that is relative to the width of the
22743 characters on the line, which may have changed during the update).
22745 2002-05-22 Jason Rumney <jasonr@gnu.org>
22747 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
22749 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
22750 Use modified enumfont_t struct.
22752 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22754 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
22755 Handle the `hbar' cursor type.
22756 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22758 * w32fns.c (Qhbar): New variable.
22759 (x_specified_cursor_type): Use it.
22761 2002-05-21 Ken Raeburn <raeburn@gnu.org>
22763 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
22764 now, when the address is needed.
22766 2002-05-21 Colin Walters <walters@gnu.org>
22768 * Makefile.in (shortlisp): Add font-core.el.
22770 2002-05-20 Richard M. Stallman <rms@gnu.org>
22772 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
22774 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
22775 equivalent key bindings here.
22777 2002-05-20 Ken Raeburn <raeburn@gnu.org>
22779 Change symbol structure to contain a lisp object for the symbol
22781 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
22782 object field named "xname".
22783 (SYMBOL_NAME): New macro.
22784 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
22786 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
22787 (mark_object, gc_sweep): Use symbol xname field and XSTRING
22788 instead of name field.
22789 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
22790 SYMBOL_NAME instead of XSYMBOL and name field.
22791 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
22792 instead of XSYMBOL and name field.
22793 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
22794 and SYMBOL_NAME instead of XSYMBOL and name field.
22795 * coding.c (Fread_coding_system, code_convert_region1)
22796 (code_convert_string1, code_convert_string_norecord)
22797 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
22798 XSYMBOL and name field.
22799 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
22800 (Fmake_variable_buffer_local, Fmake_local_variable)
22801 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
22802 of XSYMBOL and name field.
22803 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
22804 XSYMBOL and name field.
22805 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
22806 instead of XSYMBOL and name field.
22807 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
22808 XSYMBOL and name field.
22809 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
22810 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22811 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
22812 instead of XSYMBOL and name field.
22813 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
22814 (parse_modifiers, apply_modifiers, Fevent_convert_list)
22815 (parse_solitary_modifier, Fexecute_extended_command):
22816 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22817 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
22818 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
22819 of XSYMBOL and name field.
22820 (describe_command, describe_translation): Use SYMBOL_NAME and
22821 assignment instead of XSYMBOL and name field and XSETSTRING.
22822 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
22823 instead of XSYMBOL and name field.
22824 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
22825 name field and XSETSTRING.
22826 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
22827 of XSYMBOL and name field.
22828 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
22829 assignment instead of XSYMBOL and name field and XSETSTRING.
22830 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
22831 XSTRING instead of XSYMBOL and name field.
22832 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
22833 and XSTRING instead of XSYMBOL and name field.
22834 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
22835 and XSTRING instead of XSYMBOL and name field.
22836 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
22837 XSTRING instead of XSYMBOL and name field.
22838 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
22839 of XSYMBOL and name field.
22840 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
22841 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22843 2002-05-19 Ken Raeburn <raeburn@gnu.org>
22845 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
22846 and XCDR real rvalues in most configurations.
22848 * buffer.c (fix_overlays_in_range, fix_overlays_before):
22849 Don't take the address of the cdr part of a cons cell; instead, track
22850 the parent cell and call XSETCDR, or set the variable for the head
22851 of the list if we haven't started down the list yet.
22853 2002-05-19 Richard M. Stallman <rms@gnu.org>
22855 * doc.c (reread_doc_file): Don't ask for confirmation.
22857 2002-05-18 Jason Rumney <jasonr@gnu.org>
22859 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
22860 (xbm_load_image): Use it.
22862 (xbm_read_bitmap_data): Reverted to xfns.c version.
22863 From David Ponce <david@dponce.com>.
22865 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
22867 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
22870 2002-05-16 Juanma Barranquero <lektu@terra.es>
22872 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
22874 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
22876 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
22878 (read_char_minibuf_menu_prompt): Fix typo.
22880 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
22882 * eval.c (Fcommandp): Doc fix.
22884 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
22886 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
22887 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
22888 (Fset_keymap_parent): Gcpro a bit more.
22889 (access_keymap): Gcpro around meta_map call and around the main loop.
22890 (get_keyelt): Gcpro when following indirect references.
22891 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
22892 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
22893 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
22894 Remove useless ad-hoc remap code.
22896 2002-05-13 Richard M. Stallman <rms@gnu.org>
22898 * search.c (search_buffer): Give up boyer moore search if inverse
22899 translation change charset_base.
22901 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
22903 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
22904 characters is carried over from the previous block of text, adjust
22905 coding->produced to account for the extra character.
22907 2002-05-11 Andreas Schwab <schwab@suse.de>
22909 * coding.c (intersection): Keep the elements of the returned list
22910 in the same order as in the first list.
22912 2002-05-11 Kim F. Storm <storm@cua.dk>
22914 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
22915 only update cmm_size if realloc actually succeeds.
22916 Testing with initial size of 2 elements revealed that using
22917 realloc on GNU/Linux would cause a random trap in xmalloc
22918 later on, so I rewrote the code to use malloc/bcopy/free instead
22921 2002-05-10 Jason Rumney <jasonr@gnu.org>
22923 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
22925 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
22927 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
22928 parens, to ensure correct evaluation order.
22930 2002-05-10 Kim F. Storm <storm@cua.dk>
22932 * keymap.c (Vemulation_mode_map_alists): New variable.
22933 (syms_of_keymap): DEFVAR_LISP it.
22934 (current_minor_maps): Process keymap alists in that list before
22935 minor-mode-overriding-map-alist and minor-mode-map-alist.
22937 2002-05-09 Richard M. Stallman <rms@gnu.org>
22939 * search.c (Freplace_match): Doc fix.
22941 2002-05-09 Kim F. Storm <storm@cua.dk>
22943 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
22944 Enlarge cursor rectangle drawn around image with non-zero relief.
22946 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
22947 Enlarge cursor rectangle drawn around image with non-zero relief.
22949 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
22950 Enlarge cursor rectangle drawn around image with non-zero relief.
22952 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
22954 * xselect.c (lisp_data_to_selection_data): Don't set selection
22955 type if comes from the Lisp object's car. If the selection
22956 contains a pure ASCII text, always return QSTRING as its type.
22958 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
22960 * mac.c (mac-cut-function): Doc fix.
22962 2002-05-05 Richard M. Stallman <rms@gnu.org>
22964 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
22966 2002-05-04 Jason Rumney <jasonr@gnu.org>
22968 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
22969 for event-click-count.
22971 * process.c (init_process): Only add server subfeature if we can
22972 use non-blocking I/O.
22974 2002-05-04 Andrew Choi <akochoi@shaw.ca>
22976 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
22979 2002-05-03 Jason Rumney <jasonr@gnu.org>
22981 * process.c (Fmake_network_process): Only support server sockets
22982 when we can make them non-blocking.
22984 * s/ms-w32.h (HAVE_SELECT): Define.
22986 * w32.h (FILE_NDELAY): New flag.
22988 * w32.c (sys_getpeername, fcntl): New functions.
22989 (_sys_read_ahead): Temporarily block on non-blocking sockets.
22991 * w32proc.c: Include sys/file.h.
22993 2002-05-03 Colin Walters <walters@verbum.org>
22995 * callproc.c (Vgame_score_directory): Renamed to
22996 Vshared_game_score_directory.
22998 2002-04-30 Richard M. Stallman <rms@gnu.org>
23000 * s/gnu.h [emacs]: Include stdio.h.
23001 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23003 * eval.c (do_autoload): Error if called while preparing to dump.
23005 * fns.c (Frequire): Error if need to load while preparing to dump.
23007 2002-04-28 Colin Walters <walters@verbum.org>
23009 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
23010 Default to "~/.emacs.d/games".
23012 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
23014 * lread.c (openp): Change arg exec_only to predicate.
23015 (build_load_history): Use XCAR/XCDR.
23016 (Flocate_file_internal): New fun.
23017 (syms_of_lread): Defsubr it.
23018 (Fload): Update call to openp.
23020 * lisp.h (openp): Update prototype.
23022 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
23023 * w32proc.c (sys_spawnve):
23024 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
23025 * w32.c (check_windows_init_file):
23026 * sound.c (Fplay_sound_internal):
23027 * process.c (Fstart_process):
23028 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
23029 * mac.c (run_mac_command):
23030 * emacs.c (init_cmdargs):
23031 * callproc.c (Fcall_process): Update call to openp.
23033 * textprop.c (remove_properties): Don't use XCAR without CONSP.
23035 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
23037 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23039 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
23040 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
23042 2002-04-28 Richard M. Stallman <rms@gnu.org>
23044 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
23046 * eval.c (Fcommandp): New arg for_call_interactively.
23047 * lisp.h (Fcommandp): Declare new arg.
23049 2002-04-28 Jason Rumney <jasonr@gnu.org>
23051 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
23053 * w32.c (stat, fstat): Use file index information to generate
23054 inodes for directories where available.
23056 2002-04-26 Andrew Choi <akochoi@shaw.ca>
23058 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
23059 [HAVE_CARBON]: Include Mac object files.
23061 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
23062 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
23063 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
23064 MAC_OSX, and MAC_OS instead of macintosh.
23066 * editfns.c [MAC_OS8]: Include stdio.h.
23068 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
23070 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
23073 * process.c (QCfamily, QCfilte): Declare extern.
23074 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
23077 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
23079 * tparam.c [MAC_OSX]: Don't define BC and UP.
23081 * config.in [HAVE_CARBON]: Add.
23083 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
23084 Move here from mac/src and mac/inc.
23086 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
23088 2002-04-26 Gerd Moellmann <gerd@gnu.org>
23090 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
23091 Compute phys_cursor_width from the x position returned
23092 by x_draw_glyhs, which is cheaper.
23093 (x_display_and_set_cursor): Compute the buffer-local value
23094 of `cursor-in-non-selected-windows' only when needed.
23096 2002-04-25 Gerd Moellmann <gerd@gnu.org>
23098 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
23099 cursor on a stretch glyph has a width that depends on
23100 x_stretch_cursor_p.
23102 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23104 * abbrev.c (abbrev-start-location): Doc fix.
23106 * indent.c (Fvertical_motion): Fix last change.
23108 2002-04-25 Gerd Moellmann <gerd@gnu.org>
23110 * indent.c (Fvertical_motion): Move to the start of the line
23111 containing PT before moving up or down.
23113 2002-04-24 Gerd Moellmann <gerd@gnu.org>
23115 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
23116 case of writing a whole row, more or less analogous to the case of
23117 writing only parts of a row.
23119 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
23122 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
23124 2002-04-23 Colin Walters <walters@verbum.org>
23126 * buffer.c (syms_of_buffer): Doc fix.
23128 2002-04-23 Gerd Moellmann <gerd@gnu.org>
23130 * xterm.c (notice_overwritten_cursor): Handle the special case
23131 of the cursor being in the first blank non-text line at the
23134 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
23135 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
23136 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
23137 bar cursors only, to make phys_cursor_width contain what its name
23139 (notice_overwritten_cursor): Consider the cursor image erased if
23140 the output area intersects the cursor image in y-direction.
23142 2002-04-23 Simon Marshall <simon@gnu.org>
23144 * xfns.c (x_set_mouse_color): Change default for cross_cursor
23147 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23149 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
23151 2002-04-22 Kim F. Storm <storm@cua.dk>
23153 * textprop.c (remove_properties): Fixed trap for malformed plist.
23155 2002-04-22 Richard M. Stallman <rms@gnu.org>
23157 * cmds.c (Fend_of_line): Handle intangible text in mid line.
23159 * window.c (make_window): Initialize height_fixed_p,
23160 last_cursor_off_p, and p->cursor_off_p slots.
23162 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23164 * fns.c (use-dialog-box): Doc fix.
23166 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23168 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
23169 variables `row', `i' and `area'.
23170 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
23173 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
23175 * xfaces.c (clear_font_table): Don't free the default font of
23176 a frame even if it's on another display.
23177 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
23180 2002-04-19 Juanma Barranquero <lektu@terra.es>
23182 * indent.c (Fmove_to_column): Remove unused local variable
23183 `next_boundary_byte'.
23184 (current_column_1): Likewise.
23186 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
23188 * msdos.c (Qhbar): New variable.
23189 (syms_of_msdos): Intern and staticpro it.
23190 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
23193 2002-04-19 Dave Lambert <dlambert@acm.org>
23195 Theses change implement an underscore-like (`hbar') cursor.
23197 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23199 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
23200 Handle the `hbar' cursor type.
23201 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23203 * xfns.c (Qhbar): New variable.
23204 (syms_of_xfns): Intern and staticpro it.
23205 (x_specified_cursor_type): Handle `hbar' cursor.
23207 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
23210 2002-04-18 Richard M. Stallman <rms@gnu.org>
23212 * textprop.c (remove_properties): New arg LIST allows scanning
23213 either a list or a plist.
23214 (interval_has_some_properties_list): New function, like
23215 interval_has_some_properties using list instead of plist.
23216 All callers changed.
23217 (Fremove_list_of_text_properties): New function.
23218 (syms_of_textprop): Defsubr it.
23220 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
23222 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
23224 2002-04-17 Juanma Barranquero <lektu@terra.es>
23226 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
23228 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
23230 * window.c (coordinates_in_window): Don't report on margin area
23231 if its width is zero.
23233 2002-04-16 Jason Rumney <jasonr@gnu.org>
23235 * w32fns.c (Fx_file_dialog): Decode file name before using.
23237 * w32term.c (construct_drag_n_drop): Likewise.
23239 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
23241 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
23242 store load-history in pure space.
23244 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
23246 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
23248 * xterm.c (Qlatin_1, Qutf_8): New vars.
23249 (syms_of_xterm): Initialize them.
23250 (XTread_socket): Eliminate incorrect optimization that tried to avoid
23251 decoding the output of X*LookupString.
23252 Always use latin-1 to decode the output of XLookupString.
23253 Try Xutf8LookupString if XmbLookupString failed.
23255 * region-cache.c (new_region_cache): Use BEG.
23257 2002-04-16 Gerd Moellmann <gerd@gnu.org>
23259 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
23260 configuration files.
23261 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
23264 2002-04-15 Andreas Schwab <schwab@suse.de>
23266 * config.in: Regenerated using autoheader.
23268 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
23269 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
23270 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
23271 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
23272 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
23273 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
23274 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
23275 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
23276 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
23277 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
23278 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
23279 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
23280 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
23281 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
23282 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
23283 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
23284 STACK_DIRECTION, now set by autoconf.
23286 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23288 * dispnew.c (marginal_area_string): Sort arguments.
23290 * dispextern.h (marginal_area_string): Add prototype.
23292 2002-04-13 Richard M. Stallman <rms@gnu.org>
23294 * fileio.c (Finsert_file_contents):
23295 Don't call temp_output_buffer_setup--do just part, by hand.
23297 * coding.c (run_pre_post_conversion_on_str):
23298 Don't call temp_output_buffer_setup--do just part, by hand.
23300 * keyboard.c (command_loop_1): Don't call start_hourglass
23301 or cancel_hourglass when executing a macro.
23303 * marker.c (count_markers): New function.
23305 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
23306 grow without limit. Move recently used elements to the front.
23308 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
23310 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
23312 2002-04-12 Gerd Moellmann <gerd@gnu.org>
23314 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
23315 rows marginal areas.
23316 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
23317 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
23319 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
23321 2002-04-12 Dave Love <fx@gnu.org>
23323 * dispnew.c (marginal_area_string): New.
23325 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
23326 (Qleft_margin, Qright_margin): Declare.
23327 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
23329 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
23330 note_mode_line_highlight and extended.
23332 * keyboard.c (Qleft_margin, Qright_margin): Declare.
23333 (make_lispy_event): Deal with mouse events in margins.
23335 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
23337 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
23339 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
23340 than deactivating the mark if tmm is set to `lambda'.
23341 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
23342 Use a single event for HELP_EVENT.
23343 (Fexecute_extended_command): Save last_point_position.
23345 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23347 * lisp.h (Fpropertize): Add prototype.
23349 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
23351 2002-04-10 Colin Walters <walters@verbum.org>
23353 * config.in: Add HAVE_SHARED_GAME_DIR.
23355 * callproc.c (Vgame_score_directory): New variable.
23356 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
23358 2002-04-10 Richard M. Stallman <rms@gnu.org>
23360 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
23362 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
23364 * minibuf.c (read_minibuf): Use empty_string.
23365 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
23366 Short-circuit the search as soon as it "failed".
23367 (Fall_completions): Allow lambda forms and lists of strings for alist.
23368 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
23369 when require_match is nil.
23370 (Ftest_completion): Rename from `test_completion' and export to elisp.
23371 Call the predicate also when alist is a list.
23372 Obey Vcompletion_regexp_list.
23373 (do_completion, Fminibuffer_complete_and_exit): Use it.
23374 (Fassoc_string): Rename from `assoc_for_completion'.
23375 Allow list of strings as well and export to elisp.
23377 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
23379 * puresize.h (BASE_PURESIZE): Increase to 900KB.
23381 2002-04-08 Juanma Barranquero <lektu@terra.es>
23383 * w32.c (sys_accept): Don't hide variable `s'.
23385 2002-04-05 Gerd Moellmann <gerd@gnu.org>
23387 * callint.c (Fcall_interactively): Use INTEGERP instead of
23388 NUMBERP for checking Vhistory_length.
23390 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23392 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
23393 Doc fix to reflect it.
23395 2002-04-04 Richard M. Stallman <rms@gnu.org>
23397 * xdisp.c (display_mode_element): New arg RISKY.
23398 Disregard text props found or specified within a variable
23399 that isn't marked risky-local-variable.
23400 (Qrisky_local_variable): New variable.
23401 (syms_of_xdisp): Init and staticpro it.
23403 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
23405 * undo.c (record_point): New fun.
23406 (record_delete, record_insert): Use it.
23408 2002-04-03 Juanma Barranquero <lektu@terra.es>
23410 * doc.c (Fdocumentation): Add missing parentheses.
23411 (Fdocumentation_property): Likewise.
23413 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
23415 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
23416 data is 0, just return nil.
23418 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
23420 * msdos.c (syms_of_msdos): Fix last change with
23421 mouse_autoselect_window.
23423 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23425 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
23426 mouse_autoselect_window.
23428 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
23430 * keyboard.c (make_lispy_event): Handle unknown keysyms together
23431 with system-specific keysyms. Use it also for unknown function keys.
23433 * doc.c (reread_doc_file): Return whether reload was attempted.
23434 (Fdocumentation, Fdocumentation_property): Don't try to reload
23435 if the doc is 0 and only ask once.
23437 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
23439 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
23441 * keyboard.c (read_char): If the event was Qselect_window,
23442 restore timer_idleness_start_time to its previous value.
23444 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
23446 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
23448 * region-cache.c (new_region_cache): Use BEG.
23450 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
23451 Use BEG and BEG_BYTE.
23453 * doc.c (get_doc_string): Return nil if the location is wrong.
23454 (reread_doc_file): New fun.
23455 (Fdocumentation, Fdocumentation_property):
23456 Call it if get_doc_string fails.
23457 (Fsnarf_documentation): Make it work for a dumped Emacs.
23459 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
23460 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
23462 * charset.c (Fstring): Allow 0 arguments.
23464 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
23466 * process.c (DATAGRAM_CONN_P, list_processes_1)
23467 (Fprocess_datagram_address, Fset_process_datagram_address)
23468 (Fset_network_process_options, server_accept_connection):
23469 Fix some int/Lisp_Object confusions (thank you union types).
23471 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23473 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
23475 * w32term.c: Likewise.
23476 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
23478 * keyboard.c (Qselect_window): New symbol.
23479 (head_table): Use it.
23480 (keys_of_keyboard): Bound select-window event to handle-select-window.
23481 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
23483 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
23484 (last_window): New variable.
23485 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
23486 (note_mouse_movement): Remove reimplemented code in #if 0.
23487 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
23490 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
23492 2002-03-31 Gerd Moellmann <gerd@gnu.org>
23494 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
23497 2002-03-30 Richard M. Stallman <rms@gnu.org>
23499 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
23500 loop whenever it stops making progress.
23502 * widget.c (set_frame_size): Don't call change_frame_size.
23504 2002-03-30 Gerd Moellmann <gerd@gnu.org>
23506 * dispnew.c (direct_output_for_insert):
23507 Call mark_window_display_accurate.
23509 2002-03-29 Jason Rumney <jasonr@gnu.org>
23511 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
23513 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
23515 * Makefile.in (lread.o): Depend on coding.h.
23517 * lread.c (openp, Fload): Encode the file name before passing it
23518 to `stat', `access', and `emacs_open'.
23519 (openp): GCPRO the encoded file name. Don't recompute Lisp
23520 strings unnecessarily.
23522 2002-03-29 Kim F. Storm <storm@cua.dk>
23524 * fns.c (Flax_plist_put): Doc fix.
23526 2002-03-28 Miles Bader <miles@gnu.org>
23528 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
23530 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23532 * process.c (set-network-process-options): Add usage.
23533 (make-network-process): Doc fix.
23535 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
23537 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
23539 2002-03-26 Richard M. Stallman <rms@gnu.org>
23541 * fns.c (Fsubstring_no_properties): New function.
23542 (Flax_plist_get, Flax_plist_put): New functions.
23543 (syms_of_fns): defsubr them.
23545 * xdisp.c (update_menu_bar): Test only update_mode_lines;
23546 don't test or alter w->update_mode_line.
23548 * window.c (Fdisplay_buffer): Doc fix.
23550 2002-03-24 Richard M. Stallman <rms@gnu.org>
23552 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
23554 2002-03-24 Gerd Moellmann <gerd@gnu.org>
23556 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
23557 (Fdefmacro): Handle `(declare ...)'.
23558 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
23559 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
23561 2002-03-24 Jason Rumney <jasonr@gnu.org>
23563 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
23564 (xbm_file_p): Add prototypes.
23565 (xbm_format, xbm_image_p): Sync with xfns.c.
23566 (reflect_byte): New function.
23567 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
23568 (xbm_load_image): Create bitmaps with a depth of 1.
23569 (init_xfns): Enable XBM images.
23571 2002-03-23 Jason Rumney <jasonr@gnu.org>
23573 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
23574 correctly. Do not pass up_modifier to keyboard buffer.
23576 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
23578 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
23580 * Makefile.in (bootstrapclean): New target.
23581 (bootstrap-temacs, bootstrap-doc): Remove.
23582 (bootstrap-emacs): Use a bog-standard `temacs'.
23583 Don't bother to build a DOC file.
23585 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
23587 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
23588 in temacs even if !CANNOT_DUMP.
23589 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
23591 * alloc.c (check_pure_size): Only output a warning.
23593 2002-03-22 Jason Rumney <jasonr@gnu.org>
23595 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
23598 * w32term.c (zv_bits): Declare as short, for word alignment.
23599 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
23600 (syms_of_w32term): Define x-use-underline-position-properties.
23602 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
23603 (clear_image_cache): Block input, fix logic, clear matrices in
23604 all frames that share this cache.
23606 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
23608 * emacs.c (main): Update the Copyright year in the blurb printed
23609 by "emacs --version".
23611 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
23613 * xterm.c (XTread_socket): If XK_ISO_Lock and
23614 XK_ISO_Last_Group_Lock are defined, handle keysyms between
23615 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
23617 2002-03-21 Kim F. Storm <storm@cua.dk>
23619 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
23620 menu-bar bindings in keymap and local-map properties _are_ used.
23621 But try keymap property first in accordance with 2002-01-03 patch.
23622 Added comment describing why this is not always reliable.
23623 (tool_bar_items): Ditto for tool-bar.
23625 2002-03-21 Jason Rumney <jasonr@gnu.org>
23627 * w32fns.c (x_clear_image_1): Disable color table code.
23629 2002-03-21 Kim F. Storm <storm@cua.dk>
23631 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
23632 removed the wrong version of the DEFUN macro; fixed it.
23634 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
23635 Fmember rather than Fmemq).
23636 (Fprovide): Check that subfeatures is a list.
23638 * process.c (QCfeature, QCdatagram): Removed variables.
23639 (QCtype, Qdatagram): New variables.
23640 (network_process_featurep): Removed function.
23641 (Fmake_network_process): Removed :feature check.
23642 Use :type 'datagram instead of :datagram t to create a datagram
23643 socket. This allows us to add other connection types (e.g. raw
23644 sockets) later in a consistent manner.
23645 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
23646 supported subfeatures for feature make-network-process.
23647 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
23648 Intern and staticpro QCtype and Qdatagram.
23649 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
23651 * xfns.c (QCtype): Remove duplicate declaration and
23652 initialization (is now declared in process.c).
23654 * w32fns.c (QCtype): Remove duplicate declaration and
23655 initialization (is now declared in process.c).
23657 2002-03-21 Richard M. Stallman <rms@gnu.org>
23659 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
23660 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
23661 when jumping to `fail' to avoid undoing reg changes in the
23662 last iteration of the loop.
23663 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
23665 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
23666 Depend on process.h.
23668 2002-03-20 Jason Rumney <jasonr@gnu.org>
23670 Most of the following changes are still conditional on HAVE_IMAGES
23671 which is not set by default on Windows.
23673 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
23675 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
23676 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
23677 (four_corners_best, x_clear_image_1, x_clear_image)
23678 (x_alloc_image_color, postprocess_image)
23679 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
23680 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
23681 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
23683 * w32gui.h (struct XImage): Define.
23685 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
23686 extract mouse co-ordinates.
23688 2002-03-20 Jason Rumney <jasonr@gnu.org>
23690 * w32.c (init_winsock): Dynamically load new server and UDP
23692 (socket_to_fd): New function.
23693 (sys_socket): Use it.
23694 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
23695 (sys_recvfrom, sys_sendto): New wrapper functions.
23697 * process.c (QCfamily, QCfilter): Remove duplicate declaration
23698 and initialization.
23700 * makefile.w32-in (LIBS): Remove $(WSOCK32).
23702 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
23704 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
23705 Don't use "sun" as a variable, it's a predefined constant on Sun
23708 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23710 * bytecode.c (Fbyte_code): Revert last change.
23712 2002-03-19 Kim F. Storm <storm@cua.dk>
23714 * makefile.w32-in (LIBS): Add $(WSOCK32).
23715 From David Ponce <dponce@voila.fr>.
23717 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23719 * process.c (wait_reading_process_input): Move variables `pname'
23720 and `pnamelen' down where they are used.
23722 * bytecode.c (Fbyte_code): Discard unused computed value to
23723 prevent gcc warning.
23725 * lisp.h (Fplist_member): Add prototype.
23727 2002-03-18 Kim F. Storm <storm@cua.dk>
23729 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
23730 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
23732 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
23733 Remove explicit GNU_LINUX settings for datagram support.
23735 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23737 * process.c (Fmake_network_process): Remove unused variable `sa'.
23738 Doc fix. Add usage:.
23739 (set_socket_options): Remove unused variables `optnum' and `opttype'.
23741 2002-03-17 Richard M. Stallman <rms@gnu.org>
23743 * xdisp.c (cursor_type_changed): New variable.
23744 (redisplay_internal): Redisplay all windows if cursor_type_changed.
23745 Clear it when clearing windows_or_buffers_changed.
23746 (try_cursor_movement, redisplay_window, try_window_id)
23747 (try_window_reusing_current_matrix): Test cursor_type_changed
23748 along with windows_or_buffers_changed.
23750 * window.h (cursor_type_changed): New variable.
23752 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
23753 not update_mode_lines, and always set it to 1.
23755 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
23756 if no frames needed redrawing.
23758 2002-03-17 Kim F. Storm <storm@cua.dk>
23760 The following changes add support for network server processes,
23761 datagram connections, and local (unix) sockets.
23763 * process.h (struct Lisp_Process): New member log.
23764 Doc fix: Member command used to indicate stopped network process.
23765 Doc fix: Member childp contains plist for network process.
23766 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
23768 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
23769 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
23770 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
23772 (NETCONN1_P): New macro.
23773 (DATAGRAM_SOCKETS): New conditional symbol.
23774 (datagram_address): New array.
23775 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
23776 (status_message): Use concat3.
23777 (Fprocess_status): Add `listen' status to doc string. Return
23778 `stop' for a stopped network process.
23779 (Fset_process_buffer): Update contact plist for network process.
23780 (Fset_process_filter): Ditto. Don't enable input for stopped
23781 network processes. Server must listen, even if filter is t.
23782 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
23784 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
23785 (Fprocess_contact): Added KEY argument. Handle datagrams.
23786 (list_processes_1): Optionally show only processes with the query
23787 on exit flag set. Dynamically adjust column widths. Omit tty
23788 column if not needed. Report stopped network processes. Identify
23789 server and datagram network processes.
23790 (Flist_processes): New optional arg `query-only'.
23791 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
23792 (conv_lisp_to_sockaddr, set_socket_options)
23793 (network_process_featurep, unwind_request_sigio): New helper
23795 (Fprocess_datagram_address, Fset_process_datagram_address):
23796 (Fset_network_process_options): New lisp functions.
23797 (Fopen_network_stream): Removed. Now defined in simple.el.
23798 (Fmake_network_process): New lisp function. Code is based on
23799 previous Fopen_network_stream, but heavily reworked with new
23800 property list based argument list, support for datagrams, server
23801 processes, and local sockets in addition to old client-only
23803 (server_accept_connection): New function.
23804 (wait_reading_process_input): Use it to handle incoming connects.
23805 Do not enable input on a new connection if process is stopped.
23806 (read_process_output): Handle datagram sockets. Use 2k buffer for
23808 (send_process): Handle datagram sockets.
23809 (Fstop_process, Fcontinue_process): Apply to network processes. A
23810 stopped network process is indicated by setting command field to t.
23811 (Fprocess_send_eof): No-op if datagram connection.
23812 (Fstatus_notify): Don't read input for a stream server socket or a
23813 stopped network process.
23814 (init_process): Initialize datagram_address array.
23815 (syms_of_process): Intern and staticpro new variables, defsubr new
23818 2002-03-16 Jason Rumney <jasonr@gnu.org>
23820 * w32fns.c (w32_to_all_x_charsets): Return correct type in
23823 2002-03-16 Richard M. Stallman <rms@gnu.org>
23825 * xdisp.c (redisplay_internal, redisplay_windows):
23826 Use list_of_error to call internal_condition_case_1.
23827 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
23828 so as to catch all errors with no possibility of debugger redisplay.
23829 (list_of_error): New variable.
23830 (syms_of_xdisp): Init and staticpro it.
23832 * print.c (print_object): Delete `\ ' from printed rep of frame.
23834 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
23836 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
23837 until its implementation is fixed.
23839 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
23841 * xfns.c (png_load): Remove unused variable `gamma_str'.
23843 2002-03-14 Richard M. Stallman <rms@gnu.org>
23845 * xfns.c (x_real_positions): Handle failure in XQueryTree.
23847 2002-03-14 Miles Bader <miles@gnu.org>
23849 * intervals.c (adjust_for_invis_intang): New function.
23850 (set_point_both): Use `adjust_for_invis_intang' to do most of the
23851 work for dealing with invisible+intangible regions. Do so before
23852 and after both forward and backward movements, to handle both
23853 front-sticky and rear-sticky cases.
23854 * textprop.c (text_property_stickiness): Function moved here from
23856 * intervals.h (text_property_stickiness): New declaration.
23857 * editfns.c (char_property_eq): Function removed.
23858 (text_property_stickiness): Function moved to `textprop.c'.
23860 2002-03-13 Jason Rumney <jasonr@gnu.org>
23862 * config.in: Add STRFTIME_NO_POSIX2.
23864 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
23865 and %OX when underlying strftime does not.
23867 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
23869 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
23870 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
23871 line) to avoid annoying flicker.
23872 (xm_scroll_callback): Get rid of the now unnecessary kludge.
23873 (XTread_socket): Mark it static.
23875 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
23877 2002-03-13 Kim F. Storm <storm@cua.dk>
23879 * puresize.h (BASE_PURESIZE): Increase to 775000.
23881 2002-03-12 Juanma Barranquero <lektu@terra.es>
23883 * editfns.c (syms_of_editfns): Fix typo.
23885 2002-03-12 Gerd Moellmann <gerd@gnu.org>
23887 * xsmfns.c: Include stdio.h because termhooks.h needs it.
23888 Include termopt.h for interrupt_input.
23890 2002-03-11 Andreas Schwab <schwab@suse.de>
23892 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
23894 2002-03-11 Gerd Moellmann <gerd@gnu.org>
23896 * xterm.c (note_mouse_movement): Put code for
23897 x_autoselect_window_p in #if 0.
23899 * lread.c (Fload): Don't assume that message_with_string uses the
23900 string it is given like a C string.
23902 2002-03-10 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
23904 * xterm.h (x_session_check_input, x_session_initialize): Declare.
23906 * xterm.c (XTread_socket): Add call to x_session_check_input and
23907 x_session_have_connection.
23908 (x_initialize): Add call to x_session_initialize.
23910 * termhooks.h (enum event_kind): Add save_session_event.
23912 * keyboard.c: Add Emacs event save_session_event.
23914 * emacs.c (main): Add call to syms_of_xsmfns.
23916 * lisp.h (syms_of_xsmfns): Declare extern.
23918 * config.in: Add HAVE_X_SM.
23920 * Makefile.in (LIBXT): Add -lSM -lICE
23921 if HAVE_X_SM and not USE_X_TOOLKIT.
23922 (XOBJ): New file xsmfns.c added.
23924 * xsmfns.c: New file for X session management.
23926 2002-03-09 Jason Rumney <jasonr@gnu.org>
23928 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
23929 read-only when setting modified time.
23931 2002-03-08 Gerd Moellmann <gerd@gnu.org>
23933 * xdisp.c (move_it_vertically_backward): At the end of the function,
23934 when moving forward by lines, treat terminal frames specially.
23936 * keyboard.c (echo_char): Make sure to add a separator between
23937 keys even if echo_dash hasn't been called.
23939 * xdisp.c: Use new string macros.
23940 (update_echo_area): Pass number of bytes to message3 instead of
23942 (set_message_1): Don't access a string's size_byte directly.
23943 (decode_mode_spec_coding): Use number of bytes of eoltype string
23944 instead number of chars.
23946 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
23948 2002-03-08 Juanma Barranquero <lektu@terra.es>
23950 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
23953 2002-03-06 Jason Rumney <jasonr@gnu.org>
23955 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
23957 2002-03-06 Gerd Moellmann <gerd@gnu.org>
23959 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
23960 (cancel_echoing, echo_length, echo_truncate): Changed to
23961 work with new kboard definition.
23962 (echo_now): Use message3_nolog instead of message2_nolog.
23964 * alloc.c (mark_kboards): Mark echo_string.
23966 * keyboard.h (ECHOBUFSIZE): Removed.
23967 (struct kboard): Member echoptr removed, member echobuf renamed
23970 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
23971 message3 instead of message2 to display the message using STRING's
23974 2002-03-05 Andreas Schwab <schwab@suse.de>
23976 * xdisp.c (hscroll_margin): Change to EMACS_INT.
23978 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
23980 * frame.c (default-frame-alist): Explain that setting it doesn't
23981 affect existing frames.
23983 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
23985 * indent.c (skip_invisible): Fix my brain fart.
23987 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
23989 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
23991 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
23992 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
23993 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
23994 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
23995 and variables to use EMACS_INT instead of just int.
23997 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
23999 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
24001 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24002 environment, pass it down with corrected value.
24004 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24006 * lread.c (read_filtered_event): Do not call start_hourglass
24009 2002-03-04 Juanma Barranquero <lektu@terra.es>
24011 * w32term.c (x_display_and_set_cursor): Fix typo.
24013 2002-03-03 Richard M. Stallman <rms@gnu.org>
24015 * fileio.c (Fmake_temp_name): Doc fix.
24017 2002-03-03 Gary Wong <gtw@gnu.org>
24019 * termcap.c [!emacs]: Replace ospeed for building standalone
24020 libtermcap, for binary compatibility.
24022 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
24024 2002-03-03 Richard M. Stallman <rms@gnu.org>
24026 * xrdb.c (file_p): Rename arg `path' to `filename'.
24028 * abbrev.c (Fexpand_abbrev): Increment plist as use count
24029 only if it is an integer.
24031 * xfns.c (png_load): Set screen_gamma based on f->gamma.
24032 If png_get_sRGB gives an answer, call png_set_gamma
24033 using the default image gamma value.
24035 * lread.c (read1): When reading from a file, default string to
24036 multibyte only if it has some multibyte characters.
24038 * print.c (print_object): Output multibyte chars 128...255
24039 using \x even if ! print_escape_multibyte.
24041 * xdisp.c (display_mode_element): Move the places where
24042 bytepos, charpos, this, and lisp_string are set.
24043 Use lisp_string to set bytepos.
24045 * xdisp.c (redisplay_internal):
24046 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
24048 * xdisp.c (display_mode_element): Merge properties specified with
24049 :propertize onto those that come with the string.
24051 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
24053 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
24054 automatic-hscrolling. Users changed.
24055 <hscroll-margin>: Renamed from automatic-hscroll-margin.
24057 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
24059 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
24061 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
24063 2002-03-02 Kim F. Storm <storm@cua.dk>
24065 * window.c (Fminibuffer_selected_window): New function.
24066 (syms_of_window): Defsubr it.
24068 2002-03-01 Kim F. Storm <storm@cua.dk>
24070 * window.h (struct window): New member phys_cursor_width.
24072 * window.c (make_window, replace_window): Init phys_cursor_width.
24074 * xterm.c (x_display_and_set_cursor): Blink box cursor using
24075 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24077 * w32term.c (x_display_and_set_cursor): Blink box cursor using
24078 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24080 * lisp.h (GCPRO6): New macro.
24082 * process.c (Fopen_network_stream): Use GCPRO6.
24084 2002-03-01 Kim F. Storm <storm@cua.dk>
24086 * process.c (Qconnect, Qfailed): New variables.
24087 (syms_of_process): Intern and staticpro them.
24088 (Fprocess_status): Document connect and failed return values.
24089 [NON_BLOCKING_CONNECT]: New conditional.
24090 (connect_wait_mask, num_pending_connects): New variables.
24091 (status_message): Convert Qfailed status.
24092 (Fopen_network_stream): Added support for non-blocking connect.
24093 New optional args: filter, sentinel, non_blocking. Doc updated.
24094 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
24095 (deactivate_process): Handle pending non-blocking connect.
24096 (wait_reading_process_input): Poll for status of non-blocking
24097 connects. Exec sentinel directly when connect succeeds.
24098 (status_notify): Don't read process output if not yet connected.
24100 2002-02-28 Kim F. Storm <storm@cua.dk>
24102 * window.c (minibuf_selected_window): Renamed from
24103 Vminibuf_selected_window. Users changed.
24104 (syms_of_window): Staticpro it.
24106 2002-02-26 Kim F. Storm <storm@cua.dk>
24108 The following changes add a new Vminibuf_selected_window variable
24109 which is similar to Vminibuf_scroll_window, but which is only set
24110 on entry to the minibuffer (from a non-minibuffer window):
24112 * window.c (Vminibuf_selected_window): New variable.
24113 (struct save_window_data): New member minibuf_selected_window.
24114 (Fset_window_configuration): Restore Vminibuf_selected_window.
24115 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
24116 Set minibuf_scroll_window member to nil if minibuf_level is 0.
24117 (compare_window_configurations): Compare minibuf_selected_window.
24119 * window.h (Vminibuf_selected_window): Declare extern.
24121 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
24122 entry to minibuffer or on entry from a non-minibuffer window.
24124 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
24125 Vminibuf_selected_window instead of Vminibuf_scroll_window.
24127 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
24128 instead of Vminibuf_scroll_window when deciding in which window
24129 the region should be highlighted. Consequently, the region remains
24130 highlighteded even when a completion buffer is also displayed.
24132 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
24134 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
24136 * xselect.c (Qcompound_text_with_extensions): Renamed from
24137 Qcompound_text_no_extensions.
24138 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
24140 2002-02-26 Juanma Barranquero <lektu@terra.es>
24142 * w32proc.c (syms_of_ntproc): Doc fix.
24144 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24146 * intervals.h: Include "dispextern.h" unconditionally.
24148 2002-02-24 Jason Rumney <jasonr@gnu.org>
24150 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
24151 and disp-table.elc.
24152 (lisp): Add emacs-lisp/backquote.elc.
24154 2002-02-24 Kim F. Storm <storm@cua.dk>
24156 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
24157 The validation of the event type was too strict as it didn't
24158 allow string events; buffer names are used in bindings for
24159 menu-bar-select-buffer (see `menu-bar-update-buffers').
24161 2002-02-23 Kim F. Storm <storm@cua.dk>
24163 The following changes rework my patch of 2002-02-06 which
24164 added command remapping by entering the commands directly into
24165 the keymaps. Now, command remapping uses an explicit `remap'
24166 prefix in the keymaps, i.e. [remap COMMAND].
24168 * keymap.c (Qremap, remap_command_vector): New variables.
24169 (is_command_symbol): Remove function.
24170 (Fdefine_key): No longer accept a symbol for KEY.
24171 Added validation of [remap COMMAND] argument for KEY.
24172 The DEF is no longer required to be a symbol when remapping a command.
24173 (Fremap_command): New function to remap command through keymaps.
24174 (Flookup_key): Perform command remapping initiated by
24175 Fremap_command directly for speed.
24176 (Fkey_binding): Use Fremap_command for command remapping.
24177 (where_is_internal): Handle new command remapping representation.
24178 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
24179 staticpro them. Defsubr Fremap_command.
24181 * keymap.h (Fremap_command): Declare extern.
24182 (is_command_symbol): Remove extern.
24184 * keyboard.c (command_loop_1): Use Fremap_command for command
24185 remapping; now try command remapping for all symbols.
24187 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
24189 * coding.h (run_pre_post_conversion_on_str): Add prototype.
24191 2002-02-23 Jason Rumney <jasonr@gnu.org>
24193 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
24194 on the string before encoding it.
24195 (Fw32_get_clipboard_data): Run post-read-conversion on the string
24198 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
24200 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24202 * w32term.c (enter_timestamp): Remove unused static variable to
24205 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
24207 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
24209 * w16select.c (Fw16_get_clipboard_data): Fix last change.
24211 * xselect.c (selection_data_to_lisp_data): Fix last change.
24213 2002-02-22 Jason Rumney <jasonr@gnu.org>
24215 * w32term.h (struct w32_output): New member menu_command_in_progress.
24217 * w32menu.c (menubar_selection_callback): Free the menu and
24218 clear the menu_command_in_progress flag.
24220 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
24221 (menu_free_timer): New variable.
24222 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
24223 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
24224 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
24225 menu command is in progress.
24226 <WM_COMMAND>: Set the menu_command_in_progress flag.
24227 Kill any menu_free_timer that is running.
24229 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
24230 Call ExtTextOutA rather than ExtTextOut.
24232 2002-02-22 Eli Zaretskii <eliz@gnu.org>
24234 * puresize.h (BASE_PURESIZE): Increase to 755000.
24236 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
24238 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
24239 on the string before encoding it.
24240 (Fw16_get_clipboard_data): Run post-read-conversion on the string
24243 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
24245 Support for ICCCM Extended Segments in X selections:
24247 * xselect.c <Qcompound_text_no_extensions>: New variable.
24248 (syms_of_xselect): Intern and staticpro it.
24249 (selection_data_to_lisp_data): Run post-read-conversion on decoded
24251 (lisp_data_to_selection_data): If next-selection-coding-system is
24252 compound-text-no-extensions, set the type of selection to be
24255 * xterm.h (x_encode_text): Update prototype.
24257 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
24258 callers changed. If SELECTIONP is non-zero, run the
24259 pre-write-conversion function before encoding the selection text.
24261 2002-02-21 Kim F. Storm <storm@cua.dk>
24263 * frame.c (syms_of_frame): Change mouse-highlight default to t.
24265 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
24266 Correct composing of language-change event.
24268 2002-02-20 Kim F. Storm <storm@cua.dk>
24270 * keyboard.c (menu_bar_items): Don't include keymap or local-map
24271 bindings at PT when building menu (the menu is not updated often
24272 enough for this to work reliable).
24273 (tool_bar_items): Likewise.
24274 (current_active_maps): Removed unused (and buggy) function.
24276 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24278 * xfns.c (gif_load): Use correct width and height for GIF images.
24280 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
24282 * floatfns.c (Fatan): Accept an optional second arg and call
24283 atan2 if passed 2 args.
24285 2002-02-18 Jason Rumney <jasonr@gnu.org>
24287 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
24289 2002-02-17 Jason Rumney <jasonr@gnu.org>
24291 * w32term.c (x_autoselect_window_p): New variable.
24292 (syms_of_w32term): DEFVAR_BOOL and initialize it.
24293 (note_mouse_movement): Use it.
24295 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
24297 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
24299 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24301 (syms_of_w32fns): Intern and staticpro them.
24302 (x_frame_parms) <"fullscreen">: New parameter.
24303 (x_fullscreen_move, x_set_fullscreen): New functions.
24304 (x_set_frame_parameters): Support Qfullscreen.
24305 (x_real_positions): Save x/y_pixels_diff frame params.
24306 (x_figure_window_size): Support full-screen frames.
24307 (Fx_create_frame): Default the fullscreen parameter.
24309 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
24310 (x_fullscreen_adjust): New functions.
24311 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
24312 fullscreen. Call x_check_fullscreen_move, and set the
24313 want_fullscreen member of output_data.w32
24314 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
24316 * w32term.h: New enum for FULLSCREEN_* constants.
24317 (struct w32_output): New members want_fullscreen, x_pixels_diff,
24318 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
24319 (x-fullscreen-adjust): New prototype.
24321 2002-02-17 Kim F. Storm <storm@cua.dk>
24323 * frame.c (Vmouse_highlight): New variable.
24324 (syms_of_frame): DEFVAR_LISP it.
24326 * frame.h (Vmouse_highlight): Declare extern.
24328 * xterm.h (struct x_display_info): Add mouse_face_hidden.
24330 * xterm.c (disable_mouse_highlight): Removed variable.
24331 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24332 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24333 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
24334 and on after keyboard input.
24335 (x_term_init): Initialize mouse_face_hidden.
24337 * msdos.h (struct display_info): Add mouse_face_hidden.
24339 * msdos.c (disable_mouse_highlight): Removed variable.
24340 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24341 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24342 (internal_terminal_init): Initialize mouse_face_hidden.
24343 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
24344 and on after keyboard input.
24346 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
24348 * w32term.c (disable_mouse_highlight): Removed variable.
24349 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
24350 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24351 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
24352 and on after keyboard input.
24353 (w32_initialize_display_info): Initialize mouse_face_hidden.
24355 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
24357 * msdos.c (last_mouse_window): New variable.
24358 (dos_rawgetc): Fix last change--if the mouse is in the same window
24359 as recorded in last_mouse_window, don't select this window.
24361 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
24363 * msdos.c (x_autoselect_window_p): New variable.
24364 (syms_of_msdos): Defvar it.
24365 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
24366 which the last mouse movement occured, unless it is already selected.
24368 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
24370 (syms_of_xdisp): DEVFAR them.
24371 (hscroll_window_tree): Use automatic_hscroll_margin and
24372 Vautomatic_hscroll_step to compute the amount of window scrolling.
24374 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24376 * xterm.c (x-autoselect-window): New variable.
24377 (note_mouse_movement): Use it.
24379 * keyboard.c: Do not include "systime.h" twice.
24381 2002-02-15 Andreas Schwab <schwab@suse.de>
24383 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
24385 * alloc.c (NSTATICS): Increase to 1280.
24387 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
24389 * alloc.c (NSTATICS): Bump to 1026.
24391 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
24392 (Vx_super_keysym): New variables.
24393 (syms_of_xterm): DEFVAR_LISP them.
24394 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
24395 variables to determine which keys to use for the various modifiers.
24397 2002-02-13 Kim F. Storm <storm@cua.dk>
24399 * window.c (Vmode_line_in_non_selected_windows): Removed.
24400 (mode_line_in_non_selected_windows): New variable.
24401 (syms_of_window): DEFVAR_BOOL it.
24403 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
24404 Use mode_line_in_non_selected_windows.
24405 (mode_line_in_non_selected_windows): Declare extern.
24406 (Vmode_line_in_non_selected_windows): Removed extern.
24408 2002-02-13 Richard M. Stallman <rms@gnu.org>
24410 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
24411 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
24412 (Fclear_this_command_keys): Doc fixes.
24414 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
24415 (update_face_from_frame_parameter): Increment face_change_count
24416 and windows_or_buffers_changed to force redisplay using changed faces.
24418 * xdisp.c (QCpropertize): New variable.
24419 (mode_line_proptrans_alist): New variable.
24420 (display_mode_element): New arg PROPS; all calls changed.
24421 Implement this, for strings.
24422 Handle literal output of strings by sharing the
24423 main-line code for strings, using local var `literal'.
24424 Handle :propertize feature.
24425 (syms_of_xdisp): Initialze and staticpro QCpropertize and
24426 mode_line_proptrans_alist.
24428 2002-02-11 Kim F. Storm <storm@cua.dk>
24430 * window.c (Vmode_line_in_non_selected_windows): New variable.
24431 (syms_of_window): DEFVAR_LISP it.
24433 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
24434 (CURRENT_MODE_LINE_FACE_ID): Use it.
24435 (Vmode_line_in_non_selected_windows): Declare extern.
24437 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
24438 to get mode line face.
24440 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
24442 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
24443 variables; cus-start.el doesn't need them anymore.
24445 2002-02-09 Kim F. Storm <storm@cua.dk>
24447 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
24448 reduction. This fixes a display problem where stray newlines were
24449 inserted in the window (corrected by C-l). Clarified code (IMHO).
24451 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
24453 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
24455 * xdisp.c (display_mode_lines): Fix last change.
24457 2002-02-09 Jason Rumney <jasonr@gnu.org>
24459 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
24461 (w32_load_system_font): Prevent Cleartype fonts from loading.
24462 (Fx_show_tip): Ensure tip frames are above other topmost windows.
24464 2002-02-09 Kim F. Storm <storm@cua.dk>
24466 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
24467 (CURRENT_MODE_LINE_HEIGHT): Use it.
24468 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
24470 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
24471 (pos_visible_p, handle_face_prop): Likewise.
24472 (display_mode_lines): Likewise, but for the real selected window.
24473 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
24475 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
24476 in non-selected windows.
24477 (realize_basic_faces): Realize it.
24478 (syms_of_term): Intern and staticpro it.
24480 2002-02-08 Kim F. Storm <storm@cua.dk>
24482 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
24483 Changed mail addresses to emacs-devel@gnu.org.
24485 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
24487 * fileio.c (Fsubstitute_in_file_name): If the file name includes
24488 ~user, and there's no such user, don't discard everything before ~user.
24490 * floatfns.c (Fround): Doc fix.
24492 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24494 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
24496 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
24498 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
24500 2002-02-07 Kim F. Storm <storm@cua.dk>
24502 * keymap.c (where_is_internal): Only check whether definition is
24503 remapped if it fulfills is_command_symbol.
24505 2002-02-07 Andreas Schwab <schwab@suse.de>
24507 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
24509 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
24511 2002-02-06 Kim F. Storm <storm@cua.dk>
24513 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
24514 defining command remapping. Doc updated.
24515 (Flookup_key): Remap command through keymap if KEY is a symbol.
24516 (is_command_symbol): New function.
24517 (Fkey_binding): Use it. New optional argument NO-REMAP.
24518 Doc updated. Callers changed. Perform command remapping via
24519 recursive call unless that arg is non-nil.
24520 (where_is_internal): New argument no_remap. Callers changed.
24521 Call recursively to find original key bindings for a remapped
24522 comand unless that arg is non-nil.
24523 (Fwhere_is_internal): New optional argument NO-REMAP.
24524 Doc updated. Callers changed. Pass arg to where_is_internal.
24526 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
24527 (is_command_symbol): Add prototype.
24529 * keyboard.c (Vthis_original_command): New variable.
24530 (syms_of_keyboard): DEFVAR_LISP it.
24531 (command_loop_1): Set it, and perform command remapping.
24533 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24535 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
24537 2002-02-06 Jason Rumney <jasonr@gnu.org>
24539 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
24541 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
24543 * charset.c (get_charset_id): Use if-else instead of ?:.
24545 2002-02-06 Richard M. Stallman <rms@gnu.org>
24547 * filelock.c (S_ISLNK): Define if not defined.
24549 2002-02-03 Richard M. Stallman <rms@gnu.org>
24551 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
24553 * lread.c (read1): Redesign strategy for force_multibyte and
24554 force_singlebyte. Now is_multibyte records whether read_buffer
24555 is multibyte. Encountering any multibyte character makes it so.
24557 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
24559 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
24560 with the same sequence, map that sequence to f10 rather than f0.
24562 2002-02-03 Andreas Schwab <schwab@suse.de>
24564 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
24565 latter never being defined on GNU/Linux.
24567 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
24569 * xfaces.c (realize_default_face): Don't set the weight and slant of
24570 the default face to Qnormal, unless these attributes are unspecified.
24572 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24574 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
24575 Call cancel_hourglass unconditionally.
24577 * eval.c (Fsignal): Remove duplicated declaration of
24578 the variable `display_hourglass_p'.
24580 2002-01-31 Richard M. Stallman <rms@gnu.org>
24582 * editfns.c (region_limit): Nicer error message.
24584 * coding.c (decode_composition_emacs_mule):
24585 Give up if NCOMPONENT gets too large to index `component'.
24587 * callint.c (check_mark): New arg to specify clearer error message.
24590 2002-01-27 Richard M. Stallman <rms@gnu.org>
24592 * minibuf.c (Fcompleting_read): Doc fix.
24594 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24596 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
24597 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
24600 2002-01-26 Richard M. Stallman <rms@gnu.org>
24602 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
24604 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
24605 and scroll_up_aggressively.
24607 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24609 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
24611 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
24613 * textprop.c (Fnext_property_change, Fnext_single_property_change)
24614 (Fprevious_property_change, Fprevious_single_property_change):
24615 Stay within the narrowed-buffer boundaries.
24617 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
24619 * term.c (Ftty_display_color_cells): New function.
24620 (syms_of_term): Defsubr it.
24621 (Ftty_display_color_cells, Ftty_display_color_p): Change the
24622 argument name to DISPLAY. Doc fix.
24624 * dispextern.h: Add prototype for set_tty_color_mode and
24627 2002-01-24 Jason Rumney <jasonr@gnu.org>
24629 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
24630 If region left to draw is not what was expected, mark the frame as
24633 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
24634 Combine the regions returned by BeginPaint and GetUpdateRect.
24636 2002-01-23 Jason Rumney <jasonr@gnu.org>
24638 * w32term.c (x_update_window_begin): Only hide caret if
24639 w32_use_visible_system_caret is set.
24640 (x_update_window_end): Only show caret if
24641 w32_use_visible_system_caret is set.
24642 (syms_of_w32term): Handle SystemParametersInfo call failing.
24644 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
24646 2002-01-22 Richard M. Stallman <rms@gnu.org>
24648 * unexelf.c (unexec): Define n so as to cause compilation error
24649 for the code where people have often written n instead of nn.
24651 * .gdbinit (hookpost-run): Defined.
24653 2002-01-22 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
24655 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
24657 2002-01-21 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
24659 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
24660 if fullscreen is being set.
24662 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24664 * minibuf.c (Fminibuffer_contents)
24665 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
24666 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
24668 2002-01-21 Richard M. Stallman <rms@gnu.org>
24670 * window.c (check_frame_size): Fix minimum height calculation.
24672 2002-01-20 Ken Raeburn <raeburn@gnu.org>
24674 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
24675 height before comparison.
24676 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
24678 2002-01-20 Jason Rumney <jasonr@gnu.org>
24680 * w32term.c (w32_system_caret_width): Remove.
24681 (w32_use_visible_system_caret): New user flag.
24682 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
24683 Windows reports a screen reader running.
24684 (x_update_window_begin): Hide the system caret.
24685 (x_update_window_end): Show the system caret.
24686 (x_display_and_set_cursor): Don't draw a cursor when
24687 w32_use_visible_system_caret is set. Do not adjust width.
24689 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
24690 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
24691 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
24692 the user requests it. Use system default width when creating.
24693 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
24695 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
24696 New window messages.
24698 2002-01-20 Richard M. Stallman <rms@gnu.org>
24700 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
24702 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24704 * doprnt.c (doprnt1): Fix typos in error call.
24706 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
24708 * unexelf.c (unexec) [__sgi]: Support the .got sections.
24710 2002-01-20 Jason Rumney <jasonr@gnu.org>
24712 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
24713 that Windows returns. If a double check fails, try to guess how
24714 ExtTextOut is going to act.
24716 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
24717 in place of stricmp.
24718 (w32_list_synthesized_fonts): Removed.
24719 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
24720 (struct enumfont_t): New element; list.
24721 (enum_font_cb2): List all style and charset variations of a font.
24722 (Fw32_select_font): New optional argument; include_proportional.
24723 Exclude vertical fonts. Exclude proportional fonts unless
24724 include_proportional is non-nil.
24725 (w32_enable_synthesized_fonts): Change to a boolean.
24726 (Fw32_send_sys_command): Doc fix.
24728 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24730 * dispnew.c (update_frame): Move the variable `tem' to the block
24733 2002-01-19 Jason Rumney <jasonr@gnu.org>
24735 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
24736 call to face-set-after-frame-default.
24738 2002-01-18 Richard M. Stallman <rms@gnu.org>
24740 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
24741 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
24743 2002-01-17 Richard M. Stallman <rms@gnu.org>
24745 * window.c (enlarge_window): When exceeding size of parent,
24746 directly delete all the siblings instead of trying to resize it.
24748 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24750 * term.c (set_tty_color_mode): Remove unused variable `tem'.
24752 2002-01-16 Henrik Enberg <henrik@enberg.org>
24754 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
24756 2002-01-16 Kim F. Storm <storm@cua.dk>
24758 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
24759 is invisible. This can happen if cursor is on top line of a
24760 window, and we switch to a buffer with a header line.
24762 * w32term.c (x_erase_phys_cursor): Ditto.
24764 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24766 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
24767 `dont_resize' only when used.
24769 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
24771 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
24773 * xdisp.c (display_mode_element): When computing charpos, depend
24774 on multibyteness of elt, not the text in field.
24776 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24778 * buffer.c (Fkill_all_local_variables):
24779 Increment `update_mode_lines' only once.
24781 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24783 * lisp.h (adjust_after_replace_noundo)
24784 (Fupdate_coding_systems_internal): Add prototypes.
24786 * sound.c (Fplay_sound): Initialize header_size also for :data case.
24788 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
24790 Support for the --color command-line argument and tty-color-mode
24793 * term.c (tty_default_color_capabilities, tty_setup_colors)
24794 (set_tty_color_mode): New functions.
24795 (term_init): Call tty_default_color_capabilities.
24796 (Qtty_color_mode_alist): New variable.
24797 (syms_of_term): Intern and staticpro it.
24799 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
24801 (do_switch_frame): For termcap frames, switch the tty
24802 color mode as specified by the frame's parameters.
24803 (Qtty_color_mode): New variable.
24804 (syms_of_frame): Intern and staticpro it.
24806 * emacs.c (USAGE2): Add the --color option.
24807 (standard_args): Ditto.
24809 2002-01-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
24811 * xterm.h (struct x_output): New members want_fullscreen,
24812 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
24813 y_pixels_outer_diff.
24814 New enum for FULLSCREEN_* constants.
24815 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
24817 (x_fullscreen_adjust): Add prototype.
24819 * emacs.c (USAGE2): Add the new full-screen arguments.
24820 (standard_args): Ditto.
24822 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24824 (syms_of_xfns): Intern and staticpro them.
24825 (x_frame_parms) <"fullscreen">: New parameter.
24826 (x_fullscreen_move, x_set_fullscreen): New functions.
24827 (x_set_frame_parameters): Support for Qfullscreen.
24828 (x_real_positions): More accurate computation of the frame position.
24829 (x_figure_window_size): Support full-screen frames.
24830 (Fx_create_frame): Default the fullscreen parameter.
24832 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
24833 (XTread_socket) <Expose>: Call x_check_fullscreen.
24834 <ConfigureNotify>: Don't resize to fullscreen.
24835 Call x_check_fullscreen_move, and set the want_fullscreen member of
24838 2002-01-13 Jason Rumney <jasonr@gnu.org>
24840 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
24841 for mice with more than 3 buttons.
24843 * w32term.c (parse_button): New parameter xbutton. Callers changed.
24844 (w32_read_socket): Handle new "XBUTTON" messages.
24846 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
24847 (syms_of_w32fns): DEFVAR_BOOL it.
24848 (w32_wnd_proc): Handle new "XBUTTON" messages.
24850 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24852 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
24854 2002-01-13 Andreas Schwab <schwab@suse.de>
24856 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
24858 2002-01-12 Andreas Schwab <schwab@suse.de>
24860 * .gdbinit (xbuffer): Remove address operator since data is now a
24863 2002-01-11 Richard M. Stallman <rms@gnu.org>
24865 * insdel.c (adjust_after_replace_noundo): New function.
24867 * coding.c (code_convert_region): Don't copy old text if undo disabled.
24869 2002-01-09 Jason Rumney <jasonr@gnu.org>
24871 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
24872 when checking for multiple frames.
24874 2002-01-08 Richard M. Stallman <rms@gnu.org>
24876 * window.c (delete_window): Rewrite the code for changing the
24877 selected window to handle the case where WINDOW is not a leaf.
24879 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
24881 * process.c (send_process): Set src_multibyte to 1 after the call
24882 top setup_coding_system, not before the call.
24884 2002-01-07 Jason Rumney <jasonr@gnu.org>
24886 * xmenu.c (set_frame_menubar, xmenu_show):
24887 (xdialog_show): Initialize wv->help to Qnil.
24889 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
24890 (w32_dialog_show): Initialize wv->help to Qnil.
24892 2002-01-06 Jason Rumney <jasonr@gnu.org>
24894 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
24896 * w32menu.c (w32_menu_display_help): Revert last change.
24898 * xmenu.c (menu_highlight_callback): Revert last change.
24900 2002-01-06 Andreas Schwab <schwab@suse.de>
24902 * insdel.c (make_gap_larger): Make sure buffer size does not
24903 overflow range of int.
24905 2002-01-05 Jason Rumney <jasonr@gnu.org>
24907 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
24910 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
24912 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
24913 to the left or to the right of the pointer, put it against
24914 the left screen edge.
24915 (x_frame_parms): Add missing braces around initializer.
24917 * w32term.c (x_setup_relief_colors): Don't compute an image's
24918 background color if it doesn't have a Pixmap.
24919 (notice_overwritten_cursor): Don't depend on
24920 output_cursor and updated_area. Compare pixel coordinates with
24921 window's cursor pixel coordinates.
24922 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
24923 Call notice_overwritten_cursor with new arg list.
24924 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
24926 (x_draw_image_relief): Use predefined macro instead of
24927 constant when the value of `tool_bar_button_relief' is negative.
24929 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
24931 2002-01-04 Richard M. Stallman <rms@gnu.org>
24933 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
24935 2002-01-03 Richard M. Stallman <rms@gnu.org>
24937 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
24938 (Fkey_binding): Try the `keymap' property map first.
24939 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
24940 minor mode bindings.
24942 2002-01-03 Kim F. Storm <storm@cua.dk>
24944 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
24946 2002-01-02 Richard M. Stallman <rms@gnu.org>
24948 * keyboard.c (read_key_sequence): Handle the keymap property
24949 before minor mode maps.
24951 * editfns.c (Fformat): Update thissize from field_width
24952 based on the actual width, in the string case.
24954 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
24956 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
24957 when used as truth value to prevent gcc warnings.
24959 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
24960 * w32proc.c: Include <config.h>.
24962 2002-01-01 Andreas Schwab <schwab@suse.de>
24964 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
24965 not EMACS_INT, to make them compatible with DEFVAR_INT.
24966 * lisp.h (max_specpdl_size): Adjust declaration.
24968 2002-01-01 Richard M. Stallman <rms@gnu.org>
24970 * print.c (print_object): Test print_escape_nonascii only for
24972 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
24973 when outputting to a multibyte buffer.
24975 2001-12-29 Richard M. Stallman <rms@gnu.org>
24977 * print.c (print_object): In multibyte string, use hex escapes.
24978 Use octal only for unibyte strings.
24979 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
24981 * lread.c (read_escape): New arg BYTEREP for reporting whether
24982 escape forces unibyte or multibyte.
24983 (read1): When reading a string, take note of that info.
24985 2001-12-29 Ken Raeburn <raeburn@gnu.org>
24987 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
24988 comparison to test lisp value returned by Fget.
24990 2001-12-29 Richard M. Stallman <rms@gnu.org>
24992 * lisp.h (max_specpdl_size): Add declaration.
24994 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
24996 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
24997 Handle modifier bits. Correct typo in error message.
24999 2001-12-28 Richard M. Stallman <rms@gnu.org>
25001 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25002 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25003 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25004 Update calls to Fdefine_abbrev.
25005 (write_abbrev): Update for changed data format.
25006 Don't list "system" abbrevs.
25007 (Fexpand_abbrev): Update use count with new data format.
25008 (describe_abbrev): Update for changed data format.
25009 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
25011 * config.in (HAVE_MBSINIT): Add #undef.
25013 * strftime.c (mbsinit): Define as no-op if not available.
25015 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
25016 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
25018 * keymap.c (Flookup_key): Error message if key has wrong data type.
25019 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
25020 (exclude_key): New variable.
25022 2001-12-28 Gerd Moellmann <gerd@gnu.org>
25024 * xterm.c (x_setup_relief_colors): Don't compute an image's
25025 background color if it doesn't have a Pixmap.
25027 * xterm.c (notice_overwritten_cursor): Don't depend on
25028 output_cursor and updated_area. Compare pixel coordinates with
25029 window's cursor pixel coordinates.
25030 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25031 Call notice_overwritten_cursor with new arg list.
25032 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25035 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
25036 height of the cursor line to the amount to scroll.
25038 2001-12-27 Richard M. Stallman <rms@gnu.org>
25040 * intervals.c (set_point_both): The position after an invisible,
25041 intangible character is not an acceptable stopping point.
25043 2001-12-27 Ken Raeburn <raeburn@gnu.org>
25045 * window.c (enlarge_window): In new preserve_before code, convert
25046 CURBEG from lisp object to integer before doing arithmetic.
25048 2001-12-27 Richard M. Stallman <rms@gnu.org>
25050 * bytecode.c (Fbyte_code): Undo previous change.
25052 2001-12-26 Kim F. Storm <storm@cua.dk>
25054 * keyboard.c (record_char): Ignore duplicate help-echo events only
25055 separated by mouse-movement. When tracking mouse, only record
25056 first and last mouse-movement event in same window.
25057 Don't record mouse-movement events in keyboard macros.
25059 2001-12-25 Richard M. Stallman <rms@gnu.org>
25061 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
25062 (Fenlarge_window): New arg PRESERVE_BEFORE.
25064 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
25065 instead of Fstring_as_unibyte.
25067 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25069 The following changes remove mocklisp support:
25071 * mocklisp.h, mocklisp.c: Files removed.
25073 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
25074 `Qmocklisp' and `Qmocklisp_arguments'.
25075 Remove prototype of syms_of_mocklisp.
25077 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
25079 * callint.c: Do not include mocklisp.h.
25080 (Fcall_interactively): Do not test for mocklisp case.
25082 * eval.c: Remove variables `Qmocklisp_arguments',
25083 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
25084 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
25085 Do not test for mocklisp case.
25086 (Fwhile): Remove unused variable `tem'.
25087 (syms_of_eval): Remove variable `moclisp-arguments'.
25089 * data.c (wrong_type_argument): Remove mocklisp case.
25091 * doc.c (Fdocumentation): Remove mocklisp case.
25093 * emacs.c (main): Do not call syms_of_mocklisp.
25095 2001-12-21 Richard M. Stallman <rms@gnu.org>
25097 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
25098 to the left or to the right of the pointer, put it against
25099 the left screen edge.
25101 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
25103 * Makefile.in (distclean): Remove .gdbinit if we are building
25104 outside the source tree.
25106 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
25108 * w32.c (emacs_root_dir): New function.
25110 * msdos.c (emacs_root_dir): New function.
25112 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
25113 of the current drive as the fallback for default_directory.
25115 * dired.c (file_name_completion): Run the elements of
25116 completion-ignored-extensions through ENCODE_FILE.
25118 * lisp.h (scmp): Remove prototype, since it's now a static
25119 function private to dired.c.
25121 2001-12-18 Richard M. Stallman <rms@gnu.org>
25123 * dired.c (scmp): Function moved from minibuf.c.
25124 Delete multibyte handling--used only on encoded strings.
25126 * minibuf.c (scmp): Function moved to dired.c.
25128 * fns.c (merge): Add QUIT call.
25130 2001-12-18 Dave Love <fx@gnu.org>
25132 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
25133 language/georgian.el.
25135 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
25137 * Makefile.in (lisp, shortlisp): Synchronize with changes to
25138 lisp/Makefile.in:DONTCOMPILE.
25140 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25142 * xdisp.c (window_box_height): Do not return negative values.
25143 From Gerd Moellmann <gerd@gnu.org>.
25145 * keyboard.c (head_table): Add missing braces around initializer.
25147 * term.c (keys): Likewise.
25149 * xfns.c (x_frame_parms, visual_classes): Likewise.
25151 2001-12-17 Sam Steingold <sds@gnu.org>
25153 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
25154 patch (COMPOSING_P, not COMPOSING).
25156 2001-12-17 Richard M. Stallman <rms@gnu.org>
25158 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
25160 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
25161 before calling decode_coding.
25163 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
25165 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
25166 instead of only for COMPOSITION_DISABLED.
25168 2001-12-16 Richard M. Stallman <rms@gnu.org>
25170 * alloc.c (pure_alloc): After overflow, allocate just a small block.
25172 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
25174 * buffer.h (struct buffer): New field `display_error_modiff'.
25175 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
25177 * window.c (Frecenter): Clear display_error_modiff field.
25179 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
25180 Call redisplay_window, but not if display_error_modiff field says no.
25181 (redisplay_window_error): New function.
25182 (displayed_buffer): New variable.
25183 (redisplay_internal, redisplay_windows): Call the new functions
25184 instead of redisplay_window directly.
25186 2001-12-15 Richard M. Stallman <rms@gnu.org>
25188 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
25190 2001-12-14 Andrew Innes <andrewi@gnu.org>
25192 * makefile.w32-in (EMACSLOADPATH): Define.
25193 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
25194 (bootstrap-temacs): Remove dependency on bootstrap-clean.
25196 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
25198 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
25199 parameter have a numeric value all the time.
25201 * w32fns.c (x_report_frame_params): Likewise.
25203 2001-12-12 Richard M. Stallman <rms@gnu.org>
25205 * fileio.c (Fwrite_region): Doc fix.
25207 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
25208 (redisplay_internal): Call clear_image_cache only for window terminals.
25210 2001-12-12 Gerd Moellmann <gerd@gnu.org>
25212 * xdisp.c (move_it_vertically_backward): Change heuristic
25213 for the case that we didn't move far enough initially.
25215 * window.c (Frecenter): Simplify computation in the case of window
25216 system frames and ARG < 0; use window_box_height.
25218 2001-12-11 Richard M. Stallman <rms@gnu.org>
25220 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
25221 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
25223 2001-12-11 Andrew Innes <andrewi@gnu.org>
25225 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
25228 2001-12-11 Richard M. Stallman <rms@gnu.org>
25230 * m/hp800.h: Split the __hpux conditional into the parts
25231 that are right for GNU/Linux too and the parts that are not.
25232 Use the former if GNU_LINUX.
25233 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
25235 * s/gnu-linux.h (GNU_LINUX): Defined.
25237 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25239 * macros.c, msdos.c, w16select.c: Change doc-string comments to
25240 `new style' [w/`doc:' keyword].
25242 2001-12-10 Jason Rumney <jasonr@gnu.org>
25244 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
25247 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25249 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
25252 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
25254 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
25256 * s/hpux10.h (srand48): Don't undefine.
25258 2001-12-09 Jason Rumney <jasonr@gnu.org>
25260 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
25261 Add comment to explain where the struct came from.
25262 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
25263 (add_menu_item): Process pop-up menus first to avoid memory leak.
25264 (add_menu_item, w32_menu_display_help): Use `help' field as
25266 (w32_free_submenu_strings): Only free owner-drawn strings.
25268 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25270 * COPYING: Moved back.
25272 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
25273 Add parentheses around && within ||.
25275 * indent.c (compute_motion): Likewise.
25277 * intervals.c (merge_properties_sticky): Likewise.
25279 * coding.c (setup_coding_system, shrink_encoding_region)
25280 (Fdecode_sjis_char): Likewise.
25282 2001-12-07 Andreas Schwab <schwab@suse.de>
25284 * xdisp.c (display_mode_element): Don't read past end of string if
25287 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
25290 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
25291 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
25292 type changed to Lisp_Object.
25293 (syms_of_data): DEFVAR_LISP them.
25295 2001-12-07 Richard M. Stallman <rms@gnu.org>
25297 * callproc.c (init_callproc): Set Vdata_directory based on the source
25298 location whenever Emacs was run uninstalled.
25300 2001-12-06 Paul Eggert <eggert@twinsun.com>
25302 * config.in (HAVE_WORKING_VFORK): New #undefs.
25303 * process.c (create_process):
25304 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
25305 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
25306 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
25307 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
25308 * m/intel386.h (HAVE_VFORK): Likewise.
25309 * m/mips-siemens.h (HAVE_VFORK): Likewise.
25310 * m/mips.h (HAVE_VFORK): Likewise.
25311 * s/freebsd.h (vfork): Remove #define.
25312 * s/lynxos.h (HAVE_VFORK): Remove #undef.
25313 * s/usg5-4-2.h: Fix comment about vfork.
25315 2001-12-06 Richard M. Stallman <rms@gnu.org>
25317 * s/hpux10.h (random): Add undef.
25318 (HAVE_RANDOM): Define it just once.
25320 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
25322 * eval.c: Undo last change: the standard syntax is not wanted.
25324 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
25326 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
25327 scroll bars of the frame before deleting the frame itself. If the
25328 frame has a widget, delete the frame with XtDestroyWidget, and do
25329 not call XDestroyWindow before that.
25331 2001-12-06 Kim F. Storm <storm@cua.dk>
25333 * xfns.c (x_report_frame_params): Return actual fringe widths.
25335 * w32fns.c (x_report_frame_params): Return actual fringe widths.
25337 2001-12-05 Andrew Innes <andrewi@gnu.org>
25339 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
25342 * insdel.c (make_gap_larger): New function.
25343 (make_gap_smaller): New function.
25344 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
25345 Call make_gap_smaller if arg is negative.
25347 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
25349 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
25350 Pass a dummy argument when calling interrupt_signal.
25351 (parse_menu_item): Mark disabled items before checking for empty def.
25352 (read_char_minibuf_menu_prompt): Make safety more visible.
25353 (read_key_sequence): Add a `first_unbound' variable.
25354 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
25355 unbound prefix as soon as we can detect it.
25357 * doc.c (Fsnarf_documentation): Add prototype.
25358 (get_doc_string): Handle negative arguments.
25359 (Fdocumentation): Use AREF and ASIZE.
25360 Move the calls to get_doc_string to a single place.
25361 Don't confuse an interactive-spec for a docstring reference.
25362 (Fdocumentation_property): Take advantage of the fact that
25363 get_doc_string now ignores the sign of the docstring position.
25365 * eval.c: Use standard syntax for usage in docstrings.
25367 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25369 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
25371 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25373 * xterm.c (x_draw_image_relief): Use predefined macro instead of
25374 constant when the value of `tool_bar_button_relief' is negative.
25376 2001-12-02 Richard M. Stallman <rms@gnu.org>
25378 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
25379 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
25381 * fileio.c (read_non_regular): Delete Fsignal call.
25383 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
25385 * lisp.h (run_hook_list_with_args): Undo last change.
25387 2001-12-01 Gerd Moellmann <gerd@gnu.org>
25389 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
25391 2001-12-01 Jason Rumney <jasonr@gnu.org>
25393 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
25395 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
25396 [!WM_MOUSELEAVE]: Define.
25398 * w32menu.c (current_popup_menu, get_menu_item_info):
25399 (set_menu_item_info): New vars.
25400 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
25401 (w32_menu_show): Set current_popup_menu.
25402 (add_menu_item): Allocate new strings for owner-drawn menu items
25404 Use owner-draw for disabled menu items again.
25405 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
25406 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
25408 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
25409 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
25410 <WM_EXITMENULOOP>: Free menu strings.
25411 <WM_MOUSELEAVE>: Stop tracking mouse.
25412 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
25414 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
25417 2001-12-01 Kim F. Storm <storm@cua.dk>
25419 The following changes add left-fringe and right-fringe
25420 frame parameters to adjust fringe widths, or remove one or
25423 * frame.h (struct frame): Remove trunc_area_pixel_width and
25424 trunc_area_cols fields.
25425 (Qleft_fringe, Qright_fringe): Declare.
25426 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
25428 * frame.c (Qleft_fringe, Qright_fringe): New vars.
25429 (syms_of_frame): Initialize them.
25431 * window.c (coordinates_in_window): Handle separate left and right
25434 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
25435 and fringe_cols fields.
25436 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
25437 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
25438 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
25439 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
25440 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
25441 (x_compute_fringe_widths): Add prototype.
25443 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
25444 fill fringe evenly with small dashes.
25445 (x_draw_fringe_bitmap): Clear background if necessary. Align and
25446 clip the new ZV bitmap to avoid jitter between rows.
25447 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
25448 background. Don't draw fringe bitmaps if fringe width is zero.
25449 (x_compute_fringe_widths): New function.
25450 (x_new_font, x_set_window_size_1): Use it.
25452 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
25453 (x_set_frame_parameters): Process `font' parameter before other
25454 parameters as fringe widths depend on it.
25455 (x_set_fringe_width): New function.
25456 (x_figure_window_size): Use x_compute_fringe_widths.
25457 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
25460 * widget.c (set_frame_size): Use x_compute_fringe_widths.
25461 (EmacsFrameSetCharSize): Ditto.
25463 * w32term.h: Merged changes from xterm.h.
25464 * w32term.c: Merged changes from xterm.c.
25465 * w32fns.c: Merged changes from xfns.c.
25467 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25469 * COPYING: Removed.
25471 2001-11-29 Dave Love <fx@gnu.org>
25473 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
25475 (detect_coding_mask): Fix call of detect_coding_iso2022.
25477 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25479 * fileio.c (file-name-coding-system)
25480 (default-file-name-coding-system): Doc fix (links to referenced
25483 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
25485 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
25486 Add dummy uses of gcproN variables.
25488 * category.c (describe_category, describe_category_1)
25489 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
25490 (syms_of_category): Don't defsubr Sdescribe_categories.
25492 2001-11-28 Richard M. Stallman <rms@gnu.org>
25494 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
25496 * Makefile.in (lispdir): New variable, referring to build dir.
25497 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
25499 2001-11-28 Andrew Innes <andrewi@gnu.org>
25501 * w32menu.c (w32_menu_display_help): Actually add the new argument
25504 2001-11-28 Jason Rumney <jasonr@gnu.org>
25506 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
25507 menu items. From David Ponce <dponce@wanadoo.fr>.
25508 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
25510 (w32_menu_display_help): New argument OWNER. Rewritten to store a
25511 help event in the owner frame's keyboard buffer.
25513 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
25514 (Fx_show_tip): Don't subtract last width from row width.
25516 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
25517 (w32_read_socket): Use EQ to compare frames.
25519 2001-11-28 Gerd Moellmann <gerd@gnu.org>
25521 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25524 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25526 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
25527 `gcpro3' and `gcpro4'.
25529 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
25531 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
25533 * ccl.c: Use AREF and ASIZE.
25535 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
25537 * lisp.h (run_hook_list_with_args): Remove.
25538 (LIST_END_P): Fix call to wrong_type_argument.
25539 (make_fixnum_or_float): Use EMACS_INT rather than int.
25541 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
25543 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
25544 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
25546 * eval.c: Use AREF and ASIZE.
25547 (Ffetch_bytecode): Add the file name to the error message.
25549 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
25550 which match the end of the file-name.
25551 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
25552 is not a valid env var, but leave it as is instead.
25554 * keymap.c (access_keymap): Handle t bindings like nil bindings.
25555 Make nil bindings in char-tables transparent.
25556 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
25558 2001-11-26 Richard M. Stallman <rms@gnu.org>
25560 * textprop.c (set_text_properties_1): Allow START, END in either order.
25561 Do nothing if range is empty.
25563 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
25565 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
25568 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
25570 * textprop.c (set_text_properties_1): Clearly mark that the
25571 interval should not be empty.
25573 * intervals.c (graft_intervals_into_buffer):
25574 Don't call set_text_properties_1 on an empty interval.
25576 2001-11-25 Richard M. Stallman <rms@gnu.org>
25578 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
25580 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
25581 don't lose the data in it.
25583 2001-11-25 Juanma Barranquero <lektu@terra.es>
25585 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
25587 * buffer.c (Fkill_buffer): Likewise.
25589 * print.c (temp_output_buffer_setup): Likewise.
25591 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
25593 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
25595 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
25597 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
25598 Niemitalo <kon@iki.fi>.
25600 2001-11-25 Jason Rumney <jasonr@gnu.org>
25602 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
25604 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
25605 (Fx_show_tip): Block input during frame creation.
25606 (Fx_show_tip, Fx_hide_tip): Enable.
25608 2001-11-24 Richard M. Stallman <rms@gnu.org>
25610 * lread.c (Fload): Detect recursive load error for more than 3
25611 nestings of the same file.
25612 (Vrecursive_load_depth_limit): Variable deleted.
25613 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
25615 2001-11-24 Jason Rumney <jasonr@gnu.org>
25617 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
25618 mouse position if either left or top is not specified.
25620 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
25621 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
25622 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
25623 (my_create_tip_window): Assign tip_window.
25624 (x_create_tip_frame): Use same defaults as X.
25625 (compute_tip_xy): Remove unused variable. Use full screen width.
25626 (Fx_show_tip): Do not double height. Call ShowWindow directly.
25628 * w32term.c (x_after_update_window_line): Doc fix.
25629 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
25631 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
25633 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
25634 for all Windowed systems.
25636 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
25638 * msdos.c (IT_clear_screen): If the frame's faces are not yet
25639 realized, use the initial screen colors to clear the screen.
25641 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25643 * textprop.c (Fset_text_properties): Remove unused variables
25644 `unchanged', `prev_changed', `s' and `len'.
25646 * search.c (Freplace_match): Remove unused variable `inslen'.
25648 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
25650 2001-11-22 Jason Rumney <jasonr@gnu.org>
25652 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
25653 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
25654 (my_create_tip_window): New function.
25655 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
25656 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
25658 2001-11-20 Jason Rumney <jasonr@gnu.org>
25660 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
25661 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
25663 * w32fns.c (Vw32_system_coding_system): Remove.
25664 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
25666 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
25668 * fileio.c (Fwrite_region): Move choose_write_coding_system to
25669 after build_annotations.
25671 * syntax.c (describe_syntax): Add dummy arg.
25672 (describe_syntax_1): Update call to describe_vector.
25674 * category.c (describe_category): Add dummy arg.
25675 (describe_category_1): Update call to describe_vector.
25677 * keymap.c (Fdescribe_vector): Add `describer' parameter.
25678 (describe_command, describe_translation): Add dummy second param.
25679 (describe_map): Call elt_describer with two arguments.
25680 (describe_vector_princ): Add `fun' parameter.
25681 Call it instead of the hardcoded `princ'.
25682 (describe_vector): Add arg `args'.
25683 Pass it as a new second argument to elt_describer.
25685 * keymap.h (describe_vector): Update prototype.
25687 * frame.c: Don't include keymap.h any more.
25688 (keys_of_frame): Remove.
25690 * lisp.h (keys_of_frame): Remove declaration.
25692 * emacs.c (main): Don't call `keys_of_frame' any more.
25694 2001-11-14 Andreas Schwab <schwab@suse.de>
25696 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
25697 if defined, 0 otherwise.
25698 (MAP_FAILED): Define if not defined and use it to test mmap failure.
25699 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
25701 2001-11-19 Richard M. Stallman <rms@gnu.org>
25703 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
25705 2001-11-18 Jason Rumney <jasonr@gnu.org>
25707 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
25708 (x_draw_bar_cursor): If the background color of the glyph under
25709 the cursor equals the frame's cursor color, use the glyph's
25710 foreground color for drawing the bar cursor.
25711 (x_after_update_window_line): Clear internal border in different
25713 (w32_set_vertical_scroll_bar): Check for width and height > 0.
25714 (w32_draw_relief_rect): Correct relief by 1 pixel.
25715 (x_set_glyph_string_background_width):
25716 Set extends_to_end_of_line_p if the row's fill_line_p is set and
25717 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
25718 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
25719 if cursor_in_non_selected_windows is false.
25720 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
25721 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
25722 Notice if cursor gets overwritten.
25723 (notice_overwritten_cursor): Renamed from
25724 note_overwritten_text_cursor. Rewritten to take glyph widths
25725 into account, and to take X positions as parameters.
25726 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25727 around call to x_draw_glyphs.
25728 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25729 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25730 color to use for image glyph reliefs.
25731 (x_draw_image_relief): Accept zero tool_bar_button_relief.
25732 (glyph_rect): Remove unused variable `area'.
25734 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
25736 (x_set_internal_border_width): Set frame garbaged when window
25738 (Fx_create_frame): Accept zero tool_bar_button_relief.
25739 (x_clear_image_1, four_corners_best, image_background)
25740 (image_background_transparent): New functions.
25741 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25742 (gs_format): Add `:background' entry.
25743 (lookup_image): Set IMG's background color if specified.
25744 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25746 (x_clear_image_1): Reset `background_valid' and
25747 `background_transparent_valid' fields.
25748 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25749 calculating it here. Set IMG's background_transparent field.
25750 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25751 (enum png_keyword_index): Add PNG_BACKGROUND.
25752 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25753 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25754 (enum gif_keyword_index): Add GIF_BACKGROUND.
25755 (enum gs_keyword_index): Add GS_BACKGROUND.
25756 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25757 Pre-calculate image background color where necessary.
25758 (x_create_x_image_and_pixmap, xbm_load, gs_load):
25759 Use display info's n_cbits entry for screen depth.
25760 (Fx_show_tip): Remove unused variables `buffer', `top',
25761 `left', `max_width' and `max_height'.
25763 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
25765 2001-11-18 Gerd Moellmann <gerd@gnu.org>
25767 * puresize.h (BASE_PURESIZE): Increase to 750000.
25769 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25771 * frame.c (Fframe_live_p): Doc fix.
25773 2001-11-18 Richard M. Stallman <rms@gnu.org>
25775 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
25776 (message_dolog_marker3): New static variables hold three markers.
25777 (syms_of_xdisp): Initialize and staticpro them.
25778 (message_dolog): Use message_dolog_marker1..3 instead of
25779 allocating markers each time. Unchain them when done.
25781 2001-11-17 Richard M. Stallman <rms@gnu.org>
25783 * doc.c (Fsnarf_documentation): Doc fix.
25785 2001-11-17 Andreas Schwab <schwab@suse.de>
25787 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
25789 2001-11-17 Richard M. Stallman <rms@gnu.org>
25791 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
25793 2001-11-17 Jason Rumney <jasonr@gnu.org>
25795 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
25797 2001-11-17 Gerd Moellmann <gerd@gnu.org>
25799 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
25800 with invalid position.
25802 2001-11-16 Richard M. Stallman <rms@gnu.org>
25804 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
25806 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
25807 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
25808 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
25810 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
25812 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
25814 * fileio.c (build_annotations): Split off the tail.
25815 (build_annotations_2): New fun. Extracted from build_annotations.
25816 (Fwrite_region): Split the call to build_annotations into two
25817 calls to build_annotations and build_annotations_2.
25819 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25821 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
25822 clear_waiting_for_input with argument.
25824 * xterm.h (x_update_cursor): Remove duplicated prototype.
25826 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
25828 * xterm.c (waiting_for_input): Remove unnecessary declaration.
25830 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
25832 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
25834 * fileio.c (choose_write_coding_system): New fun, extracted
25835 from Fwrite_region.
25836 (Fwrite_region): Use it.
25838 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
25839 (funcall_lambda, run_hook_with_args): Make static and add prototype.
25840 (ml_apply, find_handler_clause): Add prototype.
25842 2001-11-16 Eli Zaretskii <eliz@gnu.org>
25844 * config.in: Add #undef HAVE_COFF_H.
25846 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
25847 Required for ISC 4.1.
25849 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
25851 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
25852 Andrew Wiseman <a.wiseman@btclick.com>.
25854 2001-11-16 Kim F. Storm <storm@cua.dk>
25856 The following changes are made to clean up the various internal
25857 references to the fringes to actually use the term `fringe' for
25858 them. Previously, they were called `flags areas', `bitmap areas',
25859 `left/right side of windows', or implicitly as `flags' or
25862 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
25863 Comments fixed. Use renamed symbols.
25865 * dispnew.c: Comment fix. Use renamed symbols.
25867 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
25868 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
25869 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
25871 * msdos.c: Comment fix.
25873 * w32fns.c: Use renamed symbols.
25875 * w32term.c: Comment fixes. Use renamed symbols.
25876 (fringe_bitmap_type): Renamed from bitmap_type.
25877 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
25878 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
25879 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
25881 * w32term.h: Comment fixes. Use renamed symbols.
25882 (fringes_extra): Renamed from flags_areas_extra.
25883 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
25884 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
25885 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
25886 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
25887 (FRAME_X_LEFT_FRINGE_WIDTH):
25888 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
25889 (FRAME_X_RIGHT_FRINGE_WIDTH):
25890 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
25892 * widget.c: Use renamed symbols.
25894 * window.c: Comment fixes. Use renamed symbols.
25895 (coordinates-in-window-p): Doc fix.
25897 * xdisp.c: Comment fixes. Use renamed symbols.
25899 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
25901 * xfns.c: Use renamed symbols.
25903 * xterm.c: Comment fixes. Use renamed symbols.
25904 (fringe_bitmap_type): Renamed from bitmap_type.
25905 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
25906 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
25907 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
25909 * xterm.h: Comment fixes. Use renamed symbols.
25910 (fringes_extra): Renamed from flags_areas_extra.
25911 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
25912 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
25913 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
25914 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
25915 (FRAME_X_LEFT_FRINGE_WIDTH):
25916 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
25917 (FRAME_X_RIGHT_FRINGE_WIDTH):
25918 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
25920 2001-11-15 Jason Rumney <jasonr@gnu.org>
25922 * w32menu.c (add-menu-item): Make help_echo and radio buttons
25923 work for most menu items. From David Ponce
25924 <david.ponce@wanadoo.fr>.
25926 2001-11-15 Gerd Moellmann <gerd@gnu.org>
25928 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
25929 Some x_set_* function expect to be called even if old and new
25932 * xdisp.c (build_desired_tool_bar_string): Accept zero
25933 tool_bar_button_relief.
25935 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
25937 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
25939 * xterm.c (x_draw_bar_cursor): If the background color of the
25940 glyph under the cursor equals the frame's cursor color, use
25941 the glyph's foreground color for drawing the bar cursor.
25943 * dispnew.c (direct_output_forward_char): Fix character/byte
25944 position comparison.
25946 2001-11-15 Miles Bader <miles@gnu.org>
25948 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
25949 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
25950 Update arguments to find_field.
25951 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
25952 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
25953 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
25954 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
25956 2001-11-14 Richard M. Stallman <rms@gnu.org>
25958 * editfns.c (Fpropertize): Allow call with 1 arg.
25960 * dispextern.h (image_background, image_background_transparent):
25961 Conditionalize on HAVE_X_WINDOWS.
25963 2001-11-13 Richard M. Stallman <rms@gnu.org>
25965 * print.c (Fprin1_to_string): Doc fix.
25967 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
25969 * floatfns.c (Fceiling, Ffloor): Doc fixes.
25971 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
25973 * fileio.c (Ffile_accessible_directory_p): Doc fix.
25975 * eval.c (syms_of_eval): Doc fix.
25977 * coding.c (syms_of_coding): Doc fix.
25979 * doc.c (Fsnarf_documentation): Doc fix.
25981 * dispnew.c (syms_of_display): Doc fix.
25983 * category.c (Fget_unused_category): Doc fix.
25985 * buffer.c (syms_of_buffer): Doc fixes.
25987 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
25989 * print.c (prin1, print): Doc fix.
25991 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
25993 * fontset.h: Remove declarations of variables
25994 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
25996 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
25997 `Vclip_large_size_font'.
25999 2001-11-13 Jason Rumney <jasonr@gnu.org>
26001 * w32fns.c: Doc fix.
26003 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26005 * xfaces.c (Fface_attributes_as_vector): Doc fix.
26009 * emacs.c: Doc fix.
26011 * coding.c: Doc fix.
26013 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
26014 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
26015 `new style' [w/`doc:' keyword].
26017 2001-11-12 Richard M. Stallman <rms@gnu.org>
26019 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
26020 LeaveNotify events. Only FocusIn and FocusOut do that now.
26021 (x_display_and_set_cursor): Do display hollow cursors in active
26022 minibuffer windows when they are not selected.
26024 2001-11-12 Jason Rumney <jasonr@gnu.org>
26026 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
26027 * w32term.c: Change doc-string comments to `new style'
26028 [w/`doc:' keyword]. Doc fixes.
26030 * w32fns.c: Don't define max.
26031 (Fx_open_connection): Only execute once.
26033 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26035 * ccl.c: Change macros to use do-while block instead of if-else.
26036 Use braces to follow GNU Coding Standards.
26038 2001-11-11 Richard M. Stallman <rms@gnu.org>
26040 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
26042 * lread.c (read_escape): Use end_of_file_error for reporting eof.
26044 * insdel.c (replace_range): Use adjust_markers_for_replace
26045 instead of adjust_markers_for_delete and adjust_markers_for_insert.
26047 * intervals.h (set_text_properties, set_text_properties_1): Declare.
26049 * textprop.c (set_text_properties_1): New subroutine
26050 broken out of set_text_properties.
26051 (set_text_properties): Use set_text_properties_1.
26053 * intervals.c (graft_intervals_into_buffer):
26054 Use set_text_properties_1 to clear out properties.
26056 * search.c (Freplace_match): Use replace_range to insert
26057 and delete. Don't request property inheritance from
26060 2001-11-10 Jason Rumney <jasonr@gnu.org>
26062 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
26063 vertical fonts. Allow them if face name is explicitly specified.
26064 Do not give up if we find a font that cannot be converted to an xlfd.
26066 2001-11-10 Gerd Moellmann <gerd@gnu.org>
26068 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
26069 instead of malloc/free.
26071 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26073 * xfaces.c (merge_face_vectors): Use braces to follow GNU
26075 (Finternal_set_lisp_face_attribute): Likewise.
26077 * buffer.c (Fbury_buffer): Likewise.
26079 * indent.c (current_column_1): Remove unused variable `prev_col'.
26081 * coding.c (encode_coding): Use precomputed value of `src'.
26082 (encode_coding): Remove unused variable `src_end'.
26083 (code_convert_region): Remove unused variables `count'.
26085 2001-11-07 Jason Rumney <jasonr@gnu.org>
26087 * w32term.c (x_display_and_set_cursor): Do not move system caret
26088 if cursor_glyph is NULL.
26090 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26092 * keymap.c (access_keymap): Fix compilation error.
26094 2001-11-07 Miles Bader <miles@gnu.org>
26096 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
26098 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26100 * intervals.c (graft_intervals_into_buffer):
26101 Remove #ifdef'd-out code.
26102 (graft_intervals_into_buffer): Remove unused variable `middle'.
26104 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
26105 code (eval-current-buffer).
26106 Change doc-string comments to `new style' [w/`doc:' keyword].
26108 2001-11-06 Richard M. Stallman <rms@gnu.org>
26110 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
26112 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
26114 * lread.c (read1): Fix behavior with nested backquoting.
26116 * keyboard.c (make_lispy_event): Check integerness and fix
26117 Lisp_Object/int mixup.
26119 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26121 * fns.c (copy_hash_table): Remove unused variable `v'.
26123 * fontset.c (fontset_font_pattern): Remove unused variable
26126 * indent.c (current_column_1): Remove unused variable `prev_col'.
26128 2001-11-05 Richard M. Stallman <rms@gnu.org>
26130 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
26132 * buffer.c (Fkill_buffer): Don't delete auto save file
26133 if buffer is modified.
26135 2001-11-05 Andrew Innes <andrewi@gnu.org>
26137 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
26140 2001-11-05 Richard M. Stallman <rms@gnu.org>
26142 * unexelf.c (unexec): Minor changes; clean up comments.
26144 2001-11-05 Sam Steingold <sds@gnu.org>
26146 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
26148 2001-11-05 Andreas Schwab <schwab@suse.de>
26150 * sound.c (sound_perror): Save errno from being clobbered.
26152 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
26154 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
26155 the program image directly.
26157 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26159 * buffer.h (Fbuffer_local_value): Add prototype.
26161 2001-11-04 Richard M. Stallman <rms@gnu.org>
26163 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
26166 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
26167 (record_char): Likewise.
26169 * keyboard.c (make_lispy_event): Don't insist a drag event must
26170 move to a different buffer position. Instead, check for moving at
26171 least double_click_fuzz.
26173 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
26175 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
26177 * indent.c (current_column_1, Fmove_to_column): Separate the code
26178 for display-table glyphs from the code for buffer text, to fix
26179 bugs in the former.
26181 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
26183 * buffer.c (Fbuffer_local_value): New function.
26184 (syms_of_buffer): Defsubr it.
26186 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
26187 value of `cursor-in-non-selected-windows'.
26189 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
26190 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
26191 (syms_of_xdisp): Initialize it.
26193 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26195 * xfns.c (Fx_create_frame): Doc fix.
26197 * coding.c: Change doc-string comments to `new style' [w/`doc:'
26200 * eval.c (top_level_value, top_level_set): Remove commented and
26202 (Fdefvar): Fix usage in doc-string.
26204 2001-11-03 Richard M. Stallman <rms@gnu.org>
26206 * xfns.c: Include unistd.h, if it exists.
26208 * editfns.c: Move the include of ctype.h after unistd.h.
26210 * gmalloc.c: Test BROKEN_PROTOTYPES.
26212 2001-11-03 Ken Raeburn <raeburn@gnu.org>
26214 * lisp.h (CHECK_STRING_CAR): New macro.
26215 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
26216 treating XCAR and XCDR as lvalues.
26217 (openp): Use CHECK_STRING_CAR.
26218 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
26220 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
26222 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
26223 (SIGMASKTYPE): Define.
26225 * syssignal.h (sigunblock): Don't define if already defined.
26227 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26229 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
26230 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
26231 Fix typos in comments.
26233 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
26234 and #ifdef'd-out code.
26235 Fix and reindent comments.
26237 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
26239 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
26240 argument `i' in macros.
26242 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
26245 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
26246 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
26247 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
26248 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
26249 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
26250 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
26251 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
26252 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
26255 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
26256 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
26257 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
26258 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
26259 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
26260 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
26261 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
26262 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
26263 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
26264 (remove unused second argument).
26266 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
26268 * syntax.c (describe_syntax): New wrapper.
26269 (Finternal_describe_syntax_value): Rename from describe_syntax.
26270 Don't insert space at front and \n at the end.
26271 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
26273 * regex.c (re_wctype): Try to fix some warnings.
26274 (regcomp, regexec): Don't forget the __restrict.
26276 2001-11-02 Richard M. Stallman <rms@gnu.org>
26278 * textprop.c (Fget_char_property): Doc fix.
26280 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26282 * process.c (Fstart_process): Add usage to doc-string.
26284 * data.c (Fsetq_default): Ditto.
26286 * callint.c (Finteractive): Ditto.
26288 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
26290 * macros.c: Don't include keymap.h any more.
26292 2001-11-01 Richard M. Stallman <rms@gnu.org>
26294 * data.c (Fmake_local_variable): Doc fix.
26296 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
26297 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
26299 * keymap.c (Fdescribe_buffer_bindings): Print character property
26300 bindings along with or instead of the buffer local map.
26301 Make the overriding maps override what they should.
26303 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26305 * window.c (grow_mini_window): Fix typo in comment.
26307 2001-11-01 Gerd Moellmann <gerd@gnu.org>
26309 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
26310 (XTset_vertical_scroll_bar): Likewise.
26312 * xfns.c (x_build_heuristic_mask): Use four_corners_best
26313 instead of IMAGE_BACKGROUND.
26315 * xfns.c (four_corners_best): Reindent.
26317 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
26318 Handle :box so that it is possible to specify sexprs.
26320 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
26322 * s/hpux11.h: New file.
26324 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26326 * emacs.c (USAGE1): Show command line option --no-window-system
26327 instead of --no-windows in usage.
26328 (standard_args): Rename --no-windows to --no-window-system.
26329 (bug_reporting_address): Follow Emacs coding conventions.
26331 * eval.c (Fcommandp): Doc fix.
26332 Change doc-string comments to `new style' [w/`doc:' keyword].
26334 * frame.c (Fframe_live_p): Doc fix.
26336 * buffer.c (selective-display-ellipses): Doc fix.
26338 2001-10-31 Gerd Moellmann <gerd@gnu.org>
26340 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
26342 * xfaces.c (realize_x_face): If C is not a single-byte character,
26343 set the face's colors_copied_bitwise_p instead of the defaulted_p
26344 members which have a different meaning.
26345 (free_face_colors): Do nothing for a face whose colors have been
26348 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
26350 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26352 * marker.c, mocklisp.c: Change doc-string comments to `new style'
26353 [w/`doc:' keyword].
26355 2001-10-31 Gerd Moellmann <gerd@gnu.org>
26357 * fns.c (require_unwind): Return Lisp_Object.
26359 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26361 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
26362 (last-input-char): Revert doc-string to be the same as the
26363 doc-string of `last-input-event'.
26365 * xdisp.c: Fix typos in comments.
26367 2001-10-31 Gerd Moellmann <gerd@gnu.org>
26369 * window.c (grow_mini_window): Handle case that the root
26370 window is already smaller than the nominal mininum height.
26372 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
26374 * emacs.c (main): Don't call keys_of_macros any more.
26376 * lisp.h (keys_of_macros): Remove.
26378 * macros.c (keys_of_macros): Remove.
26380 * xfaces.c (Fface_attribute_relative_p): Declare args.
26382 2001-10-30 Jason Rumney <jasonr@gnu.org>
26384 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
26385 (enum_font_cb2): Ignore fonts with vertical orientation.
26387 2001-10-30 Richard M. Stallman <rms@gnu.org>
26389 * keyboard.c (Finput_pending_p): Doc fix.
26391 2001-10-30 Gerd Moellmann <gerd@gnu.org>
26393 * xterm.c (x_after_update_window_line): Don't run the code
26394 clearing in borders for rows whose visible height is 0.
26396 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
26397 resized_p flag is set. If not set, use the much less flickering
26398 method previously used.
26400 * dispnew.c (change_frame_size_1): Set frame's resized_p.
26402 * frame.h (struct frame) <resized_p>: New member.
26404 * lread.c (to_multibyte): Ensure read_buffer is at least twice
26405 as large as the number of bytes to convert.
26407 * lread.c (to_multibyte): New function.
26410 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
26412 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
26414 2001-10-30 Gerd Moellmann <gerd@gnu.org>
26416 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
26417 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
26418 if the row's fill_line_p is set and drawing the last glyph with
26419 DRAW_IMAGE_{RAISED,SUNKEN}.
26421 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
26423 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
26425 * xmenu.c: Include coding.h and charset.h.
26426 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
26427 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
26428 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
26429 Explicitly set wv->help. Use `TRUE' rather than `True'.
26430 (menu_help_callback): Use empty_string.
26432 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
26433 (Fx_popup_dialog): Explicitly init f.
26434 (w32_menu_display_help): Use empty_string.
26436 2001-10-29 Richard M. Stallman <rms@gnu.org>
26438 * fns.c (Frequire): Detect recursive try to require the same
26439 feature 3 or more levels deep, and get error.
26440 (require_unwind): New subroutine.
26441 (require_nesting_list): New variable.
26442 (syms_of_fns): Init and staticpro it.
26444 * print.c (print_object): Clarify indication of insertion type.
26446 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
26448 * coding.c (syms_of_coding): Document that locale-coding-system is
26449 used for decoding input on X.
26451 * window.c (Fscroll_left, Fscroll_right): Doc fix.
26453 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26455 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
26456 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
26458 2001-10-29 Gerd Moellmann <gerd@gnu.org>
26460 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
26461 use NO_CURSOR if cursor_in_non_selected_windows is false.
26463 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
26464 the slant attribute if FRAME is t.
26466 * xfns.c (x_set_internal_border_width): Set frame garbaged
26467 when X window doesn't exist yet.
26469 * xterm.c (x_after_update_window_line): Clear internal border
26470 in different circumstances.
26472 * xterm.c (XTread_socket) <KeyPress>: Don't use
26473 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
26476 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
26478 * m/ibms390.h: New file. From Adam Thornton
26479 <athornton@sinenomine.net>.
26481 2001-10-28 Gerd Moellmann <gerd@gnu.org>
26483 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
26485 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
26488 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26490 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
26492 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
26494 Fix typos in comments.
26496 * emacs.c (bug_reporting_address): New function.
26497 Use it when displaying usage message.
26499 * minibuf.c (read_minibuf): Remove unused external declaration of
26500 variable `Qread_only'.
26502 * keymap.c (access_keymap): Remove unused variable `charset'.
26504 2001-10-28 Miles Bader <miles@gnu.org>
26506 * xfaces.c (merge_face_heights): Handle TO being relative as well.
26507 Remove #ifdef'd-out code.
26508 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
26509 (syms_of_xfaces): Initialize them.
26511 2001-10-27 Jason Rumney <jasonr@gnu.org>
26513 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
26514 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
26515 position using the system caret.
26517 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
26518 (w32_system_caret_height, w32_system_caret_x)
26519 (w32_system_caret_y): New variables for tracking system caret.
26520 (w32_initialize): Initialize them.
26521 (x_display_and_set_cursor): Make system caret follow the active cursor.
26523 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
26524 New messages types.
26526 * w32term.c (note_mouse_highlight): Clear old help_echo.
26528 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26530 * xterm.c: Fix typo in a comment.
26532 * emacs.c: Fix typos in comments.
26533 Remove unnecessary spaces.
26534 Change doc-string comments to `new style' [w/`doc:' keyword].
26535 (USAGE2): Fix typos in usage string.
26537 * xterm.c: Fix typo in a comment.
26539 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
26542 2001-10-27 Gerd Moellmann <gerd@gnu.org>
26544 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
26545 instead of 1/2 line_height in the heuristic for skipping
26546 farther backward when target_y was not reached.
26548 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
26549 Display errno only if non-zero.
26550 (sound_warning): New function.
26551 (vox_configure): Don't treat failing to set sample rate as error.
26552 (various places): Improve error messages.
26554 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
26556 * fileio.c (Faccess_file): Run the argument filename through
26557 Fexpand_file_name, before using it.
26559 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
26560 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
26562 2001-10-26 Gerd Moellmann <gerd@gnu.org>
26564 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
26566 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26567 Fix clearing in the case of scroll bars on the right.
26569 2001-10-26 Juanma Barranquero <lektu@terra.es>
26571 * w32gui.h (XImage): Add a dummy typedef.
26573 2001-10-26 Gerd Moellmann <gerd@gnu.org>
26575 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
26577 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
26579 * frame.c (Fframe_parameter): Fix last change.
26581 * fileio.c: Revert last change (which removed old commented-out
26582 version of expand-file-name). Add a comment that explains why
26583 this old version should not be removed.
26585 2001-10-25 Gerd Moellmann <gerd@gnu.org>
26587 * frame.c (Fframe_parameter): Fix a bug whereby some
26588 ``artificial'' frame parameters, like `minibuffer' were not
26589 obtained by calling Fframe_parameters.
26591 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
26592 cursor differently.
26594 * xdisp.c (move_it_vertically_backward): Compute line height
26595 differently. Add heuristic to try to be more compatible to 20.x.
26597 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
26599 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
26601 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
26604 2001-10-25 Miles Bader <miles@gnu.org>
26606 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
26607 BG is a pointer to a structure, not a structure.
26608 (gif_format, png_format): Add missing commas.
26610 2001-10-24 Richard M. Stallman <rms@gnu.org>
26612 * xfaces.c (Fface_attributes_as_vector): New function.
26613 (syms_of_xfaces): Defsubr it.
26615 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26617 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
26620 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26622 * search.c (scan_newline): Remove unused variable `selective_display'.
26624 2001-10-25 Miles Bader <miles@gnu.org>
26626 * dispextern.h (struct image): Add `background',
26627 `background_valid', and `background_transparent' fields.
26628 (image_background, image_background_transparent): New declarations.
26629 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
26630 * xfns.c (image_background, image_background_transparent)
26631 (four_corners_best): New functions.
26632 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
26633 (gs_format): Add `:background' entry.
26634 (lookup_image): Set IMG's background color if specified.
26635 (pbm_load, xbm_load_image, png_load): Set IMG's background field
26637 (x_clear_image_1): Reset `background_valid' and
26638 `background_transparent_valid' fields.
26639 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26640 calculating it here. Set IMG's background_transparent field.
26641 (enum xpm_keyword_index): Add XPM_BACKGROUND.
26642 (enum png_keyword_index): Add PNG_BACKGROUND.
26643 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26644 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26645 (enum gif_keyword_index): Add GIF_BACKGROUND.
26646 (enum gs_keyword_index): Add GS_BACKGROUND.
26647 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
26648 Pre-calculate image background color where necessary.
26649 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26650 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26651 color to use for image glyph reliefs.
26653 2001-10-24 Gerd Moellmann <gerd@gnu.org>
26655 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
26656 in full-width rows.
26658 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26659 Fix clearing of area not covered by scroll bar.
26661 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26663 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
26665 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
26666 (glyph_rect): Remove unused variable `area'.
26668 2001-10-24 Gerd Moellmann <gerd@gnu.org>
26670 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
26672 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
26673 (row_containing_pos): Take additional argument DY.
26674 Treat rows ending in middle of char differently.
26675 (display_line): Handle tabs on window systems differently.
26677 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
26678 with additional argument.
26680 * dispextern.h (row_containing_pos): Adjust prototype.
26682 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
26683 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
26684 (try_window_id, try_window_reusing_current_matrix)
26685 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
26686 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
26688 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26690 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
26692 (HAVE_BOXES): Fix typo in comment.
26693 (push_menu_pane): Fix typo in comment.
26695 * xdisp.c (display_prop_string_p): Remove unused local declaration
26697 (single_display_prop_string_p): Remove unused local declarations
26698 of `Qwhen' and `Qmargin'.
26699 (string_buffer_position): Remove unused variable `around'.
26700 (store_frame_title): Remove unused variable `width'.
26702 * window.c: Don't define max.
26703 (coordinates_in_window): Remove unused variable `uy'.
26705 * widget.c: Don't define max.
26707 * process.c: Don't define max.
26708 (create_process): Remove unused variable `buffer'.
26710 2001-10-23 Gerd Moellmann <gerd@gnu.org>
26712 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
26714 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
26716 * xfaces.c (Finternal_set_lisp_face_attribute)
26717 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
26718 frame is on a windowed display.
26720 2001-10-23 Gerd Moellmann <gerd@gnu.org>
26722 * dispnew.c (sync_window_with_frame_matrix_rows):
26723 Fix handling of windows which aren't full-width, fix handling
26726 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
26728 2001-10-23 Andreas Schwab <schwab@suse.de>
26730 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
26731 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
26733 2001-10-23 Gerd Moellmann <gerd@gnu.org>
26735 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
26736 REAL_END. Notice if cursor gets overwritten.
26737 (notice_overwritten_cursor): Take X positions as parameters.
26738 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26739 around call to x_draw_glyphs.
26741 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26743 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
26744 instead of C) and usage.
26746 * editfns.c (char-to-string): Fix argument names (use CHAR instead
26749 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
26750 `left', `max_width' and `max_height'.
26752 2001-10-23 Gerd Moellmann <gerd@gnu.org>
26754 * xdisp.c (display_line): For a tab continued to the next line,
26755 set row's ends_in_middle_of_char_p.
26757 2001-10-22 Gerd Moellmann <gerd@gnu.org>
26759 * xdisp.c (display_line): Fix computation of continuation lines
26762 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26764 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
26767 * fileio.c: Remove unused code.
26769 2001-10-22 Miles Bader <miles@gnu.org>
26771 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
26772 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
26773 Remove `DOC_STRINGS_IN_COMMENTS' cases.
26775 2001-10-21 Jason Rumney <jasonr@gnu.org>
26777 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
26779 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
26781 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
26782 (Finsert_string): Avoid the multi-line string literals warning.
26784 2001-10-22 Miles Bader <miles@gnu.org>
26786 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
26787 (Fdocumentation): Don't use it.
26788 (syms_of_doc): Don't initialize it.
26790 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
26791 * print.c (Fwith_output_to_temp_buffer): Likewise.
26792 * window.c (Fsave_window_excursion): Likewise.
26793 * editfns.c (Fsave_excursion, Fsave_current_buffer)
26794 (Fsave_restriction): Likewise.
26795 * eval.c (Frun_hooks, Frun_hook_with_args)
26796 (Frun_hook_with_args_until_failure)
26797 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
26798 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
26799 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
26800 (Funwind_protect, Fcondition_case): Likewise.
26801 * coding.c (Ffind_operation_coding_system): Likewise.
26802 * keyboard.c (Ftrack_mouse): Likewise.
26804 2001-10-21 Miles Bader <miles@gnu.org>
26806 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
26807 (Fmake_hash_table): Add usage: string to doc string.
26808 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
26809 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
26810 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
26811 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
26812 (Fml_prefix_argument_loop): Likewise.
26814 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26816 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
26818 * sysdep.c (init_sys_modes): Change doc-string comments to `new
26819 style' [w/`doc:' keyword].
26821 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
26822 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
26823 comments to `new style' [w/`doc:' keyword].
26825 2001-10-21 Jason Rumney <jasonr@gnu.org>
26827 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
26829 * w32term.c (remember_mouse_glyph): New function.
26830 (w32_mouse_position): Use it.
26831 (note_mouse_movement): If the mouse moved off the glyph, remember
26834 * w32term.h (struct w32_output): Correct spelling of x_compatible.
26835 (w32_display_info): Add mouse_face_overlay.
26837 * w32term.c (notice_overwritten_cursor): Renamed from
26838 note_overwritten_text_cursor. Rewritten to take glyph widths into
26840 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
26841 (fast_find_string_pos): New function.
26842 (fast_find_position): Return the correct vpos. Add parameter
26843 STOP. In the final row, stop before glyphs having STOP as object.
26844 Don't consider glyphs that are not from a buffer.
26845 (fast_find_position) [0]: Add a presumably more correct version
26847 (expose_window_tree, expose_frame): Don't compute intersections here.
26848 (expose_window): Do it here instead.
26849 (expose_window_tree, expose_window, expose_line): Return 1 when
26850 overwriting mouse-face.
26851 (expose_window): If W is the window currently being updated, mark
26852 the frame garbaged.
26853 (expose_frame): If mouse-face was overwritten, redo it.
26854 (x_use_underline_position_properties): New variable.
26855 (syms_of_xterm): DEFVAR_BOOL it.
26856 (x_draw_glyph_string): Add comment to use it in future.
26857 (x_draw_glyph_string): Restore clipping after drawing box.
26858 Fix a computation of the underline position.
26859 (w32_get_glyph_string_clip_rect): Minor cleanup.
26860 (x_fill_stretch_glyph_string): Remove an assertion.
26861 (x_produce_glyphs): Don't convert multibyte characters
26862 to unibyte characters in unibyte buffers.
26863 (cursor_in_mouse_face_p): New function.
26864 (x_draw_stretch_glyph_string): Use it to choose a different GC
26865 when drawing a cursor within highlighted text. Don't draw
26866 background again if it has already been drawn.
26867 (x_draw_glyph_string_box): Don't draw a full-width
26868 box just because the glyph row's full_width_p flag is set.
26869 (x_draw_glyphs): Fix computation of rightmost x for
26871 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
26872 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
26873 change bottom shadow accordingly. Some cleanup.
26874 (x_update_window_end): Handle overwritten mouse face
26875 also for tool bar windows.
26876 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
26877 DRAW is DRAW_IMAGE_RAISED.
26878 (clear_mouse_face): Return 1 if text with mouse face was
26879 actually redrawn. Make the function static.
26880 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
26881 optimize away highlighting if we pass over that same overlay again.
26882 (note_mouse_highlight): Call mouse_face_overlay_overlaps
26883 to detect a case where we have to highlight a different region
26884 despite not having left the currently highlighted region.
26885 Set mouse_face_overlay in the x_display_info. Avoid changing the
26886 mouse pointer shape when show_mouse_face has already done it, or
26887 there is no need. Handle mouse-face and help-echo in strings.
26888 (glyph_rect): New function.
26889 (w32_mouse_position): Use it to raise the threshold for mouse
26890 movement event generation.
26891 (w32_initialize_display_info): Initialize the x_display_info's
26892 mouse_face_overlay.
26893 (w32_set_vertical_scroll_bar): Don't clear a zero height
26895 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
26896 a widget to zero height.
26898 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
26899 Protect unibyte strings created by replacing their multibyte
26900 equivalents in menu_items.
26901 (w32_menu_show): Don't overwrite an item's name with its key
26902 description in case the description is a multibyte string.
26903 (single_submenu): Some cleanup.
26905 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
26906 (postprocess_image): New function.
26907 (lookup_image): Call it for all image types except PostScript.
26908 (x_kill_gs_process): Call postprocess_image.
26909 (tiff_error_handler, tiff_warning_handler): New functions.
26910 (tiff_load): Install them as handlers.
26911 (x_kill_gs_process): Recognize if someone has cleared the image
26913 (valid_image_p): Protect better against invalid image
26914 specifications. Previous code could signal an error.
26915 (Fx_hide_tip, Fshow_tip): Doc fix.
26916 (Fv_max_tooltip_size): New variable.
26917 (syns_of_xfns): DEFVAR_LISP it.
26918 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
26919 window buffer to *tip* right after creating the frame. Set frame's
26920 window_width. Use a maximum tooltip size specified by
26921 Vx_max_tooltip_size, if that has valid contents.
26922 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
26923 Make sure the tooltip is completely visible.
26924 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
26925 (Fx_create_frame): Adjust the frame's height for presence
26926 of the tool bar before calling x_figure_window_size.
26927 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
26928 when the window gets smaller.
26929 (x_set_foreground_color): Set frame's cursor_pixel.
26930 (x_set_foreground_color, x_set_background_color): Cleaned up.
26931 (x_set_font): Handle case of x_new_fontset returning the same name
26932 as before, although there was a change in fontsets.
26934 2001-10-21 Miles Bader <miles@gnu.org>
26936 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
26937 (Flogxor): Add usage: string to doc string.
26938 * charset.c (Fstring): Likewise.
26939 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
26940 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
26942 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
26944 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
26946 * alloc.c: Reindent DEFUNs with doc: keywords.
26948 * abbrev.c (Finsert_abbrev_table_description): Reindent.
26950 * frame.c: Change doc-string comments to `new style' [w/`doc:'
26953 See ChangeLog.9 for earlier changes.
26955 ;; Local Variables:
26956 ;; coding: iso-2022-7bit
26957 ;; add-log-time-zone-rule: t
26960 Copyright (C) 2001, 2002, 2003, 2004, 2005,
26961 2006 Free Software Foundation, Inc.
26962 Copying and distribution of this file, with or without modification,
26963 are permitted provided the copyright notice and this notice are preserved.
26965 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4