(savehist-mode): Don't bother with `custom-set-minor-mode.
[emacs.git] / src / ChangeLog
blob07ebb7a9e3fb1fa0845d660cd6d56cd7c9c0a231
1 2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3         * macgui.h (USE_CG_TEXT_DRAWING): New define.
4         (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
5         and cg_glyphs.
7         * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
8         (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
9         (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
10         cg_glyphs in struct MacFontStruct if synthesized bold or italic is
11         not used and font substitution never occurs for ASCII and Latin-1
12         characters.
13         (XLoadQueryFont): Maximum and minimum metrics are now those among
14         ASCII characters.
15         (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
16         height adjustments for Courier, Helvetica, and Times.
18         * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
20 2005-11-11  David Reitter <david.reitter@gmail.com>
22         * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
23         macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
24         Vmac_control_modifier / mac-control-modifier,
25         Vmac_option_modifier / mac-option-modifier,
26         Vmac_command_modifier / mac-command-modifier.
27         (mac_to_emacs_modifiers): Use the new style modifier
28         variables. Return UInt32 (modifiers are longs now.)
29         (backtranslate_modified_keycode): new function (refactoring)
30         (XTread_socket): use new modifier variables and refactored
31         function
32         (mac_determine_quit_char_modifiers): remove macMetaKey (there is
33         no dedicated meta key. Not in use anyway.)
34         (convert_fn_keycode): Map Fn-keys to their original keycode
35         using a table (english keyboard only).
37 2005-11-11  Kim F. Storm  <storm@cua.dk>
39         * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
40         Add post hook to "backtrace" to always dump lisp call stack to
41         increase chance of people sending it to us when reporting bugs.
43         * doc.c (Fsubstitute_command_keys): Doc fix.
45         * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
47         * xdisp.c (handle_stop): Skip overlay string handling if
48         ignore_overlay_strings_at_pos_p is set.
49         (set_iterator_to_next): At end of display vector, set
50         ignore_overlay_strings_at_pos_p if dpvec came from an overlay
51         string, so we skip those overlay strings at current pos.
53 2005-11-10  Lars Hansen <larsh@soem.dk>
55         * fileio.c (file-regular-p): Doc fix.
57 2005-11-10  Kim F. Storm  <storm@cua.dk>
59         * alloc.c (valid_lisp_object_p): New function to validate that
60         an object is really a valid Lisp_Object.
62         * lisp.h (valid_lisp_object_p): Add prototype.
64         * print.c (safe_debug_print): New function to be called from gdb
65         to print Lisp objects; use valid_lisp_object_p to avoid crashing
66         if user tries to print something which is not a Lisp object.
68         * .gdbinit (pp, pp1): Use safe_debug_print.
69         (pv, pv1): New commands to print value of a lisp variable.
71 2005-11-10  Nick Roberts  <nickrob@snap.net.nz>
73         * .gdbinit (pp1): New user-defined function.
75 2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
77         * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
79         * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
80         related variables for dumped executable.
82         * unexmacosx.c (unexec_write_zero): New function.
83         (copy_data_segment): Clear uninitialized local variables in
84         statically linked libraries.
86         * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
88 2005-11-09  Juri Linkov  <juri@jurta.org>
90         * keymap.c (shadow_lookup): If Flookup_key returns a number,
91         call it again with a sub-key-sequence, and if its return value
92         is non-nil (sub-key is bound), return nil.
94 2005-11-08  Kim F. Storm  <storm@cua.dk>
96         * process.c (Fsignal_process): Recognize signal names with and
97         without SIG prefix, e.g. SIGHUP and HUP.
99         * search.c (search_buffer): No need to initialize base_pat.
101 2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
103         * window.c (Fget_lru_window, Fget_largest_window, window_loop):
104         Don't abuse the `mini' arg.  Use the `obj' arg instead.
106 2005-11-04  Kim F. Storm  <storm@cua.dk>
108         * xdisp.c (show_mouse_face): Clear mouse face to eol.
110 2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>
112         * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
113         font-lock.elc and jit-lock.elc.
115 2005-11-03  Richard M. Stallman  <rms@gnu.org>
117         * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
118         (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
119         (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
121         * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
123         * alloc.c (refill_memory_reserve): Move decl out of conditionals.
125 2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
127         * window.c (Fdisplay_buffer): Fix last change to not use
128         a dedicated window.
130 2005-11-01  Kim F. Storm  <storm@cua.dk>
132         * fringe.c (update_window_fringes): Undo 2005-10-27 change.
133         Instead, rotate the bottom angle bitmap 180 degrees to indicate
134         that the bottom row does not end in a newline.
136 2005-11-01  Andreas Schwab  <schwab@suse.de>
138         * unexelf.c (unexec): Handle .plt section in BSS segment.
140 2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
142         * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
144         * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
145         determine whether to consider dedicated windows as well.
146         (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
147         (Fdisplay_buffer): Do consider dedicated windows in those cases where
148         we will split the window rather than reuse it.
149         Don't try to use windows on other displays.
151 2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
153         * puresize.h (BASE_PURESIZE): Increment to 1170000.
155 2005-10-31  Romain Francoise  <romain@orebokech.com>
157         * macfns.c: Update copyright year.
158         * m/gould.h: Likewise.
160 2005-10-30  Kim F. Storm  <storm@cua.dk>
162         * xdisp.c (display_line): Restore it->current_x and call
163         extend_face_to_end_of_line when last glyph doesn't fit on line.
164         (set_glyph_string_background_width): Remove specific tests  here
165         to see if face background should extend to end of line.  Simplify.
167 2005-10-30  Richard M. Stallman  <rms@gnu.org>
169         * alloc.c (BYTES_USED): Use uordblks, not arena.
170         (bytes_used_when_reconsidered): New variable.
171         (emacs_blocked_free): Set that.
173 2005-10-29  Chong Yidong  <cyd@stupidchicken.com>
175         * alloc.c (emacs_blocked_free): Fix typo.
177 2005-10-29  Richard M. Stallman  <rms@gnu.org>
179         * data.c (Fmake_variable_frame_local): Doc fix.
181         * xdisp.c (handle_fontified_prop): Do nothing if memory full.
182         (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
183         controls whether to save and restore mode_line_proptrans_alist.
184         Callers changed.
185         (unwind_format_mode_line): Work with that feature.
186         (redisplay_internal): Don't call prepare_menu_bars if memory full.
187         (move_elt_to_front): New function.
188         (display_mode_element): Use move_elt_to_front.
189         Don't bother munging text props on a null string.
190         Delete obsolete elts from mode_line_proptrans_alist.
191         (decode_mode_spec): Test Vmemory_full, not spare_memory.
192         (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
194         * lisp.h (memory_full_cons_threshold): Declare.
195         (internal_lisp_condition_case): Declare.
197         * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
198         (Fmemory_full_p): Function deleted.
199         (syms_of_alloc): Don't defsubr it.
200         (memory_full_cons_threshold): New variable.
201         (spare_memory): Now a vector of 7 elts.
202         (buffer_memory_full): Don't set Vmemory_full here.
203         (xfree): Don't try to refill here.
204         (emacs_blocked_free): Record BYTES_USED in local var.
205         (memory_full): Now free all the slots in spare_memory.
206         (refill_memory_reserve): Allocate each slot in spare_memory.
207         (init_alloc_once): Call refill_memory_reserve.
209         * keyboard.c (command_loop_1): Don't set Vmemory_full here.
211         * eval.c (internal_lisp_condition_case): New function.
212         (Fcondition_case): Use internal_lisp_condition_case.
213         (Feval): Test Vmemory_full and memory_full_cons_threshold.
214         (Ffuncall): Likewise.
216         * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
218 2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
220         * syntax.c (Fparse_partial_sexp): Fix docstring.
222 2005-10-28  Romain Francoise  <romain@orebokech.com>
224         * puresize.h (BASE_PURESIZE): Increment to 1130000.
226 2005-10-28  Richard M. Stallman  <rms@gnu.org>
228         * xfns.c (syms_of_xfns): Provide `x' as feature.
230         * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
232         * editfns.c (Fformat): Don't include string padding
233         between info[n].start and info[n].end.
235         * alloc.c (spare_memory): No longer static.
236         (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
238         * puresize.h (BASE_PURESIZE): Increment to 1120000.
240 2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
242         * data.c (Fmake_variable_frame_local): Add clarification to docstring.
244         * fringe.c (update_window_fringes): Handle case where buffer ends
245         with a newline.
247 2005-10-27  Kenichi Handa  <handa@m17n.org>
249         * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
251 2005-10-24  Kenichi Handa  <handa@m17n.org>
253         * charset.h (charset_mule_unicode_0100_24ff)
254         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
255         Extern them.
257         * charset.c (charset_mule_unicode_0100_24ff)
258         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
259         New variables.
260         (Fsetup_special_charsets): Initialize them.
262         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
263         supported Unicode characters.
265 2005-10-25  Jason Rumney  <jasonr@gnu.org>
267         * w32fns.c (w32_to_x_font): Avoid forcing font widths.
269 2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
271         * image.c [MAC_OS] (image_load_qt_1): Check image size.
272         Use GraphicsImportGetImageDescription instead of
273         GraphicsImportGetNaturalBounds.
274         [MAC_OSX] (image_load_quartz2d): Check image size.
275         [MAC_OS] (xpm_load_image): Likewise.
277         * macterm.c (last_mouse_glyph_frame): New var.
278         (note_mouse_movement): Say mouse moved if current frame differs
279         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
280         (XTmouse_position): Set last_mouse_glyph_frame.
281         (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
282         (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
283         Use EndianU16_BtoN.
284         (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
285         (x_per_char_metric, XLoadQueryFont)
286         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
287         glyph bounds.
288         (mac_to_x_fontname, mac_do_list_fonts)
289         (mac_initialize_display_info): Change screen resolutions to 72dpi.
291 2005-10-25  Masatake YAMATO  <jet@gyve.org>
293         * minibuf.c (Fdisplay_completion_list): Small doc fix.
295 2005-10-24  Kim F. Storm  <storm@cua.dk>
297         * xterm.c: Undo 2005-10-23 change.
298         (last_mouse_glyph_frame): New var.
299         (note_mouse_movement): Say mouse moved if current frame differs
300         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
301         (XTmouse_position): Set last_mouse_glyph_frame.
302         (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
303         last_mouse_glyph] on mouse up/down event.
305         * editfns.c (Fcompare_buffer_substrings): Fix last change.
307 2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
309         * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
311 2005-10-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
313         * xterm.c (note_mouse_movement): Always call note_mouse_highlight
314         so tool tips don't interfere with press on tool bar button.
316 2005-10-23  Richard M. Stallman  <rms@gnu.org>
318         * casetab.c (Fset_case_table): Doc fix.
320         * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
321         (readevalloop): Compute ENTIRE properly.
322         (syms_of_lread) <load-history>: Doc fix.
324 2005-10-21  Richard M. Stallman  <rms@gnu.org>
326         * lread.c (Fload): Simplify gcpro structure.
327         Gcpro FOUND as well as FILE, but not EFOUND.
328         Unless preloading, record FOUND instead of FILE in Vload_history.
329         Rename repeat local FILE to MSG_FILE.
330         (syms_of_lread) <load-history>: Doc fix.
332 2005-10-21  Kenichi Handa  <handa@m17n.org>
334         * search.c (boyer_moore): Add parens to fix and/or precedence bug.
336 2005-10-20  Kim F. Storm  <storm@cua.dk>
338         * buffer.c (clone_per_buffer_values): Remove unused var tem.
339         (init_buffer): Remove unused vars dotstat, pwdstat.
341         * ccl.c (check_ccl_update): Remove unused var vp.
343         * fileio.c (auto_save_error): Call SAFE_FREE.
345         * fns.c (Fchar_table_range): Remove unused var i.
347         * minibuf.c (display_completion_list_1): New wrapper function
348         for Fdisplay_completion_list.
349         (Fminibuffer_completion_help): Use it.
351         * term.c (encode_terminal_code): Remove unused var src_start.
353         * window.c (Fwindow_tree): Remove unused var alist.
355         * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
357 2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)
359         * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
361 2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)
363         * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
365 2005-10-20  Andreas Schwab  <schwab@suse.de>
367         * minibuf.c (Fdisplay_completion_list): Doc fix.
369 2005-10-19  Kim F. Storm  <storm@cua.dk>
371         * image.c (check_image_size): Handle integer Vmax_image_size value
372         directly as max pixel value.  Use default frame size for null frame.
373         (syms_of_image) <max-image-size>: Describe integer value.
375 2005-10-19  Romain Francoise  <romain@orebokech.com>
377         * emacs.c (main): Update copyright year.
379 2005-10-18  Chong Yidong  <cyd@stupidchicken.com>
381         * image.c (Vmax_image_size): New variable.
382         (check_image_size): New function.
383         (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
384         (gif_load, gs_load): Use it.
385         (lookup_image): Try loading again if previous load failed.
386         (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
387         to display in, NULL if none.
388         (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
389         argument.
391 2005-10-18  Richard M. Stallman  <rms@gnu.org>
393         * search.c (Fstring_match): Doc fix.
395 2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
397         * macterm.c (note_mouse_movement): Use PtInRect.
398         (XTread_socket): Also ignore mouse motion just before a button
399         release event.  Don't process button release event when mouse is
400         not grabbed.
402 2005-10-16  Masatake YAMATO  <jet@gyve.org>
404         * minibuf.c (Fdisplay_completion_list): Add new optional
405         argument COMMON_SUBSTRING.  Bind `completion-common-substring'
406         to the optional argument during running `completion-setup-hook'.
408 2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
410         * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
411         Allow nil as argument.
412          [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
413         for encoding arguments as UTF-16 in native byte order, no BOM.
415         * macfns.c (Fx_create_frame): Add debugging code.
416         (Fx_show_tip): Set frame pixel width and height.
418         * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
419         (FRAME_NORMAL_GC): New macro.
420         (mac_draw_line, mac_clear_area, mac_clear_window)
421         (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
422         (mac_draw_image_string, mac_draw_image_string_16): Rename from
423         XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
424         XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
425         All uses changed.
426         (mac_draw_line, mac_erase_rectangle, mac_clear_area)
427         (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
428         (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
429         (mac_draw_string_16, mac_draw_image_string)
430         (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
431         (mac_scroll_area): Drawing functions now take frame as destination.
432         All uses changed.
433         (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
434         (x_draw_fringe_bitmap): Set clipping area in face->gc.
436         * macterm.h (mac_clear_area): Add extern.
438 2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
440         * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
441         changes for xterm.c.
443         * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
445 2005-10-14  Kenichi Handa  <handa@m17n.org>
447         * search.c (search_buffer): Give up BM search on case-fold-search
448         if one of a target character has a case-equivalence of different
449         charset even if that target charcter is an ASCII.
451         * casefiddle.c (casify_object): Fix for the case that case
452         conversion change the byte length.
454 2005-10-14  Kim F. Storm  <storm@cua.dk>
456         * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
457         (handle_one_xevent): Only clear help_echo_string; restore it if
458         note_mouse_movement didn't record any mouse movement.
460         * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
461         (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
463         * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
464         (Fposn_at_x_y): Fix calculation of x coordinate.
465         (Fposn_at_point): Return nil if point is hscrolled out of view.
467 2005-10-13  Andreas Schwab  <schwab@suse.de>
469         * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
470         non-interactive mode.
472 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
474         * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
476 2005-10-12  Kim F. Storm  <storm@cua.dk>
478         * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
480 2005-10-12  Romain Francoise  <romain@orebokech.com>
482         * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
484 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
486         * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
487         get end of text rows.  Obtain header-line/mode-line rows directly.
489         * xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore
490         help_echo_string if mouse is moved inside last_mouse_glyph.
492 2005-10-12  Kim F. Storm  <storm@cua.dk>
494         * xdisp.c (remember_mouse_glyph): New generic version based on
495         glyph_rect and remember_mouse_glyph from xterm.c enhanced to
496         properly handle all different window areas.
498         * dispextern.h (remember_mouse_glyph): Add prototype.
500         * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
501         (note_mouse_movement, XTmouse_position): Use generic
502         remember_mouse_glyph, add last_mouse_glyph arg.
504         * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
505         (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
506         (note_mouse_movement, w32_mouse_position): Use generic
507         remember_mouse_glyph, add last_mouse_glyph arg.
509         * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
510         (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
511         (XTmouse_position): Adapt to use generic remember_mouse_glyph
512         instead of pixel_to_glyph_coords.
514         * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
515         Fix x position for ON_TEXT when left margin width > 0.
517 2005-10-11  Kim F. Storm  <storm@cua.dk>
519         * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
521         * keyboard.c (make_lispy_position): Fix buffer calculations for
522         mouse click or movement in right fringe and the margins.
524 2005-10-11  Juanma Barranquero  <lekktu@gmail.com>
526         * image.c (fn_jpeg_stdio_src): Don't define it.
527         (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
528         (our_common_init_source): Rename from `our_init_source'.
529         (our_common_term_source): Rename from `our_term_source'.
530         (our_memory_fill_input_buffer): Rename from
531         `our_fill_input_buffer'.
532         (our_memory_skip_input_data): Rename from `our_skip_input_data'.
533         (jpeg_memory_src): Use the new names.
534         (struct jpeg_stdio_mgr): New struct.
535         (JPEG_STDIO_BUFFER_SIZE): New constant.
536         (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
537         (jpeg_file_src): New functions.
538         (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
540 2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
542         * macterm.c (PER_CHAR_METRIC): Remove unused macro.
543         (fm_font_family_alist): New variable.
544         (syms_of_macterm): Initialize and staticpro it.
545         (decode_mac_font_name): Replace '-' in family name with '_' if it
546         occurs just once.  Lower family name.
547         (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
548         All uses changed.  Remove argument MF and code conversion for it.
549         Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
550         to CHARSET.  Parse font size.  Lower family name.  Return integer
551         value for status of parsing.
552         (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
553         Don't use Fdowncase because family name is already lowered by
554         decode_mac_font_name.
555         (init_font_name_table): Always call decode_mac_font_name.  Add
556         pair of family name and its reference to fm_font_family_alist.
557         (mac_clear_font_name_table): Clear fm_font_family_alist.
558         (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
559         Lookup fm_font_family_alist to get font family reference.
560         (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
561         name is already lowered by parse_x_font_name.
563 2005-10-11  Kim F. Storm  <storm@cua.dk>
565         * xterm.c (glyph_rect): Return 0 if position is outside text area.
567         * keyboard.c (make_lispy_position): Fix buffer position calculation for
568         mouse click or movement in fringe.
570 2005-10-10  Jason Rumney  <jasonr@gnu.org>
572         * xterm.c (remember_mouse_glyph): New function.
573         (note_mouse_movement): Use it to remember the current glyph if changed.
574         (XTmouse_position): Fix calculation of fake glyph under mouse.
575         Move code to calculate glyph under mouse into remember_mouse_glyph.
577 2005-10-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
579         * emacs.c (USAGE3, standard_args): -nb => -nbi.
581 2005-10-10  Juanma Barranquero  <lekktu@gmail.com>
583         * frame.c (Fredirect_frame_focus): Fix typos in docstring.
584         (next_frame, prev_frame, set_term_frame_name): Make static.
586         * window.c (Fwindow_tree): Fix spelling.
588 2005-10-09  Romain Francoise  <romain@orebokech.com>
590         * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
592 2005-10-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
594         * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
595         Add options -nb, --no-bitmap-icon.
597         * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
599 2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
601         * macgui.h (MAX_CLIP_RECTS): New define.
602         (struct _XGC): New member clip_region.
603         (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
604         clip_rects.
606         * macterm.c (GC_CLIP_REGION): New macro.
607         (saved_port_clip_region): New variable.
608         (mac_begin_clip, mac_end_clip): New functions.
609         (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
610         (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
611         (mac_copy_area_with_mask, mac_scroll_area): Use them.
612         (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
613         [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
614         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
615         (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
616         rectangles stored in gc.
617         (XFreeGC): Dispose of clipping region.
618         (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
619         (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
620         (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
621         (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
622         (x_draw_bar_cursor): Use them.
623         (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
624         get multiple clipping rectangles.
626         * macterm.h (mac_term_init): Add types to extern.
627         (struct mac_output): Remove members mWP and pending_menu_activation.
628         Put members scroll_bar_foreground_pixel and
629         scroll_bar_background_pixel in #if 0.
630         (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
632         * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
633         Add debugging code.
635 2005-10-08  Kim F. Storm  <storm@cua.dk>
637         * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
639 2005-10-07  Kim F. Storm  <storm@cua.dk>
641         * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
642         [!HAVE_WINDOW_SYSTEM]: Don't declare them...
643         (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
645 2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
647         * dispextern.h (struct glyph_string): Rename member for_overlaps_p
648         to for_overlaps.  Now occupy 3 bits.
649         (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
650         (OVERLAPS_ERASED_CURSOR): New defines.
651         (struct redisplay_interface): Add new OVERLAPS arg to member
652         fix_overlapping_area.
653         (x_fix_overlapping_area): Add new OVERLAPS arg.
654         (get_glyph_string_clip_rects): Add extern.
656         * dispnew.c (redraw_overlapping_rows): Call
657         rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
659         * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
660         for_overlaps.
661         (get_glyph_string_clip_rects): New function created from
662         get_glyph_string_clip_rect.  Set clipping rectangles according to the
663         value of for_overlaps.  Enable to store multiple clipping rectangles.
664         (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
665         (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
666         Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
667         (x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
668         (draw_phys_cursor_glyph): Set width of erased cursor to use it for
669         calculating clipping rectangles later.  Call x_fix_overlapping_area
670         with new OVERLAPS arg to draw only erased cursor area.
671         (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
672         to draw overlaps in both preceding and succeeding rows.
674         * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
675         struct glyph_string to for_overlaps.
677 2005-10-04  Richard M. Stallman  <rms@gnu.org>
679         * alloc.c (refill_memory_reserve): Conditionalize the body,
680         not the function's existence.
682 2005-10-04  Kim F. Storm  <storm@cua.dk>
684         * window.c (window_split_tree): New function.
685         (Fwindow_split_tree): New defun.
686         (syms_of_window): Defsubr it.
688 2005-10-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
690         * macterm.c (mac_invert_rectangle): New function.
691         (XTflash): Use it.
693 2005-10-04  Stefan Monnier  <monnier@iro.umontreal.ca>
695         * regex.h (re_char): Don't expose it in the interface.
696         (re_set_whitespace_regexp): Adjust the arg's type to not use it.
698         * regex.c (re_char): Move it back here.
699         (re_set_whitespace_regexp): Change the arg's type to not use it.
701         * keyboard.c (make_lispy_event): If point has moved between down and up
702         event, make it a drag, not a click, to mirror what
703         mouse-drag-region expects.
705 2005-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
707         * lisp.h (fatal): Undo previous change.
708         * term.c (fatal): Undo previous change.
710 2005-10-01  Richard M. Stallman  <rms@gnu.org>
712         * xfaces.c (face_color_gray_p): Colors close to black count as gray.
714 2005-10-01  Kim F. Storm  <storm@cua.dk>
716         * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
718 2005-10-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
720         * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
722         * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
723         (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
724         (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
725         Try ATSUI-compatible 12pt Monaco font first.
727         * macgui.h (struct _XCharStruct): New member valid_p.
728         (STORE_XCHARSTRUCT): Set valid_p.
729         (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
731         * macterm.c (mac_draw_string_common, x_per_char_metric)
732         (mac_compute_glyph_string_overhangs, init_font_name_table)
733         (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
734         (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
735         (x_draw_glyph_string_background)
736         (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
737         XDrawImageString.  Always draw background and foreground separately.
738         (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
739         functions for one-byte chars when using ATSUI-compatible fonts.
740         (atsu_font_id_hash) [USE_ATSUI]: New variable.
741         (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
742         (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
743         max_char_or_byte2 more in detail.
744         (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
746 2005-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
748         * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
749         * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
751         * unexelf.c (fatal): Fix prototype.
753         * term.c (fatal): Implement using varargs.
755         * regex.c (re_char): Move typedef ...
756         * regex.h (re_char): ... here.
757         (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
759         * emacs.c (malloc_set_state): Fix return type.
760         (endif): Fix type.
762         * lisp.h (fatal): Add argument types.
764         * dispextern.h (fatal): Delete prototype.
766         * systime.h: (make_time): Prototype moved from ...
767         * editfns.c (make_time): ... here.
769         * editfns.c: Move systime.h include after lisp.h.
770         * dired.c:
771         * xsmfns.c:
772         * process.c: Likewise.
774         * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
775         Add parameter types.
776         (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
777         (emacs_blocked_free): Change definition to match __free_hook.
778         (emacs_blocked_malloc): Change definition to match __malloc_hook.
779         (emacs_blocked_realloc): Change definition to match __realloc_hook.
781 2005-09-30  Romain Francoise  <romain@orebokech.com>
783         * minibuf.c (Fread_buffer): Follow convention for reading from the
784         minibuffer with a default value.  Doc fix.
786 2005-09-29  Juri Linkov  <juri@jurta.org>
788         * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
789         Rename argument name `string' to `format-string'.
790         (Fformat): Doc fix.
792 2005-09-28  Kim F. Storm  <storm@cua.dk>
794         * image.c (gif_load): Fix size of allocated image buffer
795         for images where a sub-image may be larger than the image's
796         total height/width specifications.
798 2005-09-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
800         * macgui.h (struct _XCharStruct): Each member now takes short value.
802 2005-09-27  Dan Nicolaescu  <dann@ics.uci.edu>
804         * xfaces.c (lookup_derived_face): Add parameter type.
806         * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
808         * marker.c (verify_bytepos): Add parameter type.
810         * process.c (get_operating_system_release): Move prototype ...
812         * systime.h (get_operating_system_release): ... here.
814         * xterm.c (handle_one_xevent): Refer to union field to match the
815         type required by the function definition.
816         (set_vertical_scroll_bar): Move prototype ...
818         * xterm.h: ... here.
820         * fns.c (internal_equal, seed_random): Fix prototypes.
821         (internal_equal): Add missing parameter.
823 2005-09-25  Richard M. Stallman  <rms@gnu.org>
825         * keyboard.c (update_menu_bindings): Variable deleted.
826         (syms_of_keyboard): Don't defvar it.
827         (parse_menu_item): Don't test it.
829 2005-09-23  Richard M. Stallman  <rms@gnu.org>
831         * editfns.c (Fformat): Explicitly test for end of format string
832         and don't use `index'.
834 2005-09-23  Dan Nicolaescu  <dann@ics.uci.edu>
836         * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
837         Define BROKEN_GET_CURRENT_DIR_NAME.
839         * sysdep.c (get_current_dir_name): Also define if
840         BROKEN_GET_CURRENT_DIR_NAME.
842         * m/ibmrs6000.h: Test for USG5, not USG5_4.
844 2005-09-22  Kim F. Storm  <storm@cua.dk>
846         * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
847         (message2): Fix commentary.  Ok to use alloca'ed memory.
848         Still not ok to use Lisp string data (because of GC).
849         (set_message): Add comment why GC cannot happen.
851 2005-09-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
853         * macterm.c (xlfdpat_block_match_1): Fix assertion.
854         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
855         variants for a scalable font multiple times.
857 2005-09-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
859         * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
860         Setup slave tty options before forking.
862 2005-09-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
864         * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
865         positions have been set for the frame (as is done for frames in
866         special-display-buffer-names).
868 2005-09-19  Kim F. Storm  <storm@cua.dk>
870         * editfns.c (Fformat): Don't scan past end of format string that
871         ends in %.  Reported by: Johan Bockg\e,Ae\e(Brd.
873 2005-09-18  Andreas Schwab  <schwab@suse.de>
875         * window.h (struct window): Remove height_fixed_p, no longer set.
877         * window.c (make_window): Don't initialize height_fixed_p.
878         (window_fixed_size_p): Don't use it.
880 2005-09-18  John Paul Wallington  <jpw@pobox.com>
882         * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
884 2005-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
886         * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
888         * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
889         New variables.
890         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
891         file selection.
893         * sysdep.c [MAC_OS8]: Don't include stdlib.h.  Include sys/param.h.
895 2005-09-17  Eli Zaretskii  <eliz@gnu.org>
897         * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
898         (obj): Use XMENU_OBJ, not a literal xmenu.o.
900 2005-09-16  Romain Francoise  <romain@orebokech.com>
902         * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
904 2005-09-15  Richard M. Stallman  <rms@gnu.org>
906         * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
907         (display_mode_element): Instead of `lisp_string' and `this',
908         record `offset' and increment that.
909         `last_offset' replaces `last'.
911         * Makefile.in (XMENU_OBJ): Variable deleted.
912         (obj): Use xmenu.o unconditionally.
913         (SOME_MACHINE_OBJECTS): Delete xmenu.o.
915         * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
917 2005-09-15  Kim F. Storm  <storm@cua.dk>
919         * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
920         (reseat_at_next_visible_line_start): Likewise (in xassert).
922 2005-09-14  Romain Francoise  <romain@orebokech.com>
924         * fileio.c (write_region_inhibit_fsync): New variable.
925         (Fwrite_region): Use it to skip call to fsync.
926         (syms_of_fileio): Initialize it.
928 2005-09-14  Kenichi Handa  <handa@m17n.org>
930         * coding.c (code_convert_region_unwind): Argument format changed.
931         (run_pre_post_conversion_on_str): If pre-write-conversion function
932         changed the current buffer, delete the new buffer.
933         (run_pre_write_conversin_on_c_str): Likewise.
935         * fileio.c (Fexpand_file_name): Check multibyteness of
936         default_directory.
938 2005-09-13  Kenichi Handa  <handa@m17n.org>
940         * composite.c (compose_chars_in_text): Delete it.
942         * composite.h (compose_chars_in_text): Delete extern.
944 2005-09-13  Kim F. Storm  <storm@cua.dk>
946         * print.c (print_error_message): Fix last change.
948 2005-09-12  Kim F. Storm  <storm@cua.dk>
950         * composite.c (compose_chars_in_text): Fix setup of `pend'.
951         Unconditionally reload `ptr' and `pend' after eval.
953         * xdisp.c (message3): Pass copy of lisp string to message_dolog.
955         * print.c (print_error_message): Pass copy of caller name to
956         message_dolog.
958         * fileio.c (auto_save_error): Pass copy of lisp string to message2.
960 2005-09-12  Kenichi Handa  <handa@m17n.org>
962         * xdisp.c (display_mode_element): Be sure to make variables THIS
963         and LISP_STRING point into a string data of ELT.
965 2005-09-12  Kim F. Storm  <storm@cua.dk>
967         * editfns.c (Ftranslate_region_internal): Reload `tt' after
968         signal_after_change that may have GC'ed.
969         (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
971         * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
972         after insert while runs signal_after_change.
974         * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
975         declaration to where it is used.
977         * w32.c (check_windows_init_file): Fix allocation of error buffer.
979         * xfns.c (x_encode_text): Declare static.  Add FREEP arg.
980         (x_set_name_internal): Call x_encode_text with new FREEP arg to
981         know if xfree is needed instead of guessing.
983         * xterm.h (x_encode_text): Remove prototype.
985 2005-09-11  Chris Prince  <cprince@gmail.com>  (tiny change)
987         * w32term.c (x_bitmap_icon): Load small icons too.
989 2005-09-10  Romain Francoise  <romain@orebokech.com>
991         * buffer.c (init_buffer): Grow buffer to add directory separator
992         and terminal zero.  Fix typos.
994 2005-09-10  Eli Zaretskii  <eliz@gnu.org>
996         * buffer.c (init_buffer): Fix error message for failed call to
997         get_current_dir_name.
998         (get_current_dir_name): Remove prototype.
1000         * xsmfns.c: (get_current_dir_name): Remove prototype.
1002         * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
1003         prototype.
1005         * sysdep.c [WINDOWSNT]: Add prototype for getwd.
1006         Don't #undef NULL after including blockinput.h.
1008         * config.in: Regenerated.
1010 2005-09-10  Giuseppe Scrivano  <gscrivano@gmail.com>
1012         Remove the MAXPATHLEN limitations:
1014         * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1015         New function.
1017         * buffer.c (init_buffer): Use it.
1019         * xsmfns.c (smc_save_yourself_CB): Ditto.
1021 2005-09-09  Kim F. Storm  <storm@cua.dk>
1023         * doc.c (Fsubstitute_command_keys): Lookup key binding for
1024         commands that are remapped from some other command.
1026         * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
1027         flag in disabled rows below the window.
1029         * frame.h (struct frame): New member updated_p.
1031         * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
1032         member.  Remove local `updated' array and associated variables.
1034 2005-09-07  Kim F. Storm  <storm@cua.dk>
1036         * xdisp.c (handle_display_prop): Respect overlay window property.
1038         * xdisp.c (try_window): Remove superfluous cursor_height calculation.
1039         Fixes crash reported by YAMAMOTO Mitsuharu.
1041 2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1043         * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
1044         (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
1045         (xlfdpat_block_match_1, xlfdpat_match): New functions.
1046         (xlfdpat_block_match): New macro.
1047         (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
1048         (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
1049         (add_font_name_table_entry): Increase font_name_table_size more
1050         rapidly.
1051         (mac_c_string_match): Remove function.
1052         (mac_do_list_fonts): Use XLFD pattern match instead of regular
1053         expression match.
1055         * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
1057 2005-09-03  Richard M. Stallman  <rms@gnu.org>
1059         * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
1060         (move_it_in_display_line_to): Stop after last char on line even
1061         on a windowing terminal, if that's the specified stop position.
1063         * fns.c (Fsort): Doc fix.
1065         * editfns.c (Fpropertize): Don't insist that properties be symbols.
1067 2005-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
1069         * dired.c (directory_files_internal_unwind, directory_files_internal)
1070         (file_name_completion): Use a Save_Value object rather than a cons of
1071         two 16bit ints to store the DIR*.
1072         (directory_files_internal, file_name_completion): Handle both EINTR and
1073         EAGAIN consistently after `readdir'.
1075 2005-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
1077         * intervals.c (update_interval): Add position info in error.
1079         * dispnew.c (window_to_frame_hpos, update_window):
1080         Avoid gcc warning about unused variable `f'.
1082 2005-08-31  Jason Rumney  <jasonr@gnu.org>
1084         * w32menu.c (add_menu_item): If unicode_append_menu returns an
1085         error, revert to using AppendMenu.
1087 2005-08-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1089         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
1090         All uses changed.
1091         [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
1092         cases.
1093         (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
1094         [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
1095         Use posix_pathname_to_fsspec.
1096         [MAC_OS] (xpm_load_image): Fill in background_transparent field
1097         while we have mask.
1099         * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
1101         * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
1103 2005-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1105         * syntax.c (update_syntax_table): Properly reproduce the special +1
1106         setting of e_property at the end of the buffer when bumping into the
1107         INTERVALS_AT_ONCE limit.
1109 2005-08-27  Eli Zaretskii  <eliz@gnu.org>
1111         * emacs.c (USAGE1): Fix the description of the -Q option.
1113 2005-08-26  Stefan Monnier  <monnier@iro.umontreal.ca>
1115         * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
1117 2005-08-26  Kim F. Storm  <storm@cua.dk>
1119         * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
1120         Don't move PT to new window start.
1122 2005-08-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1124         * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
1125         ICONIFY/DEICONIFY_EVENT.
1127         * macterm.c (mac_copy_area, mac_copy_area_with_mask):
1128         Restore background color.
1129         (mac_handle_visibility_change): New function.
1130         (x_make_frame_invisible, x_iconify_frame)
1131         (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
1132         [USE_CARBON_EVENTS] (mac_handle_window_event)
1133         (install_window_handler): Handle visibility change events.
1134         (x_make_frame_visible): Don't reposition window if it is iconified
1135         or asked for visible before.  Select and uncollapse window when it
1136         is made visible.
1137         (x_make_frame_invisible): Don't reset x_highlight_frame.
1138         (x_iconify_frame): Likewise.  Make invisible frame visible before
1139         it is iconified.
1140         (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
1141         (do_window_update): Don't change visibility of invisible frame.
1143 2005-08-22  Juri Linkov  <juri@jurta.org>
1145         * term.c (turn_on_face): Check for TS_set_foreground and
1146         TS_set_background depending on standout_mode.  Simplify.
1148 2005-08-21  Kim F. Storm  <storm@cua.dk>
1150         * fringe.c (update_window_fringes): Only put TOP and BOTTOM
1151         bitmaps on fully visible rows.
1153         * fringe.c (update_window_fringes): Replace FORCE_P arg with
1154         KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
1155         and return 0.
1157         * xdisp.c (redisplay_window): Call update_window_fringes with
1158         KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
1160 2005-08-20  Richard M. Stallman  <rms@gnu.org>
1162         * xdisp.c (display_echo_area_1): Get display start pos from w->start.
1163         (resize_mini_window): Set w->start, and PT, so as to display the tail
1164         end of the buffer, if it doesn't all fit.
1166 2005-08-18  Kim F. Storm  <storm@cua.dk>
1168         * xdisp.c (calc_pixel_width_or_height): Use actual display
1169         resolution when available instead of Vdisplay_pixels_per_inch.
1171 2005-08-17  Kim F. Storm  <storm@cua.dk>
1173         * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
1175         * dispnew.c (buffer_posn_from_coords): Check that target row is
1176         within matrix.
1178 2005-08-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1180         * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
1181         xg_set_frame_icon and call it.
1183         * gtkutil.c (xg_set_frame_icon): New function.
1185         * gtkutil.h (xg_set_frame_icon): Declare it.
1187 2005-08-16  Kim F. Storm  <storm@cua.dk>
1189         * dispnew.c (increment_row_positions): Skip non-enabled rows.
1191         * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
1192         (Fcurrent_window_configuration): Use VECSIZE macro instead.
1194 2005-08-15  Richard M. Stallman  <rms@gnu.org>
1196         * xdisp.c (message3_nolog): Clear echo_message_buffer.
1198 2005-08-15  Kim F. Storm  <storm@cua.dk>
1200         * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
1202         * process.c (deactivate_process, status_notify, read_process_output)
1203         (update_status, status_convert, decode_status, allocate_pty)
1204         (make_process, remove_process, list_processes_1)
1205         (create_process_1, unwind_request_sigio, read_process_output)
1206         (send_process, keyboard_bit_set): Declare static.
1207         (Fdelete_process): Simplify.  Pass process to status_notify, so we
1208         don't try to read output from it.
1209         (status_notify): New arg deleting_process--don't try to read
1210         output from that process.
1212         * lisp.h (deactivate_process, status_notify, read_process_output):
1213         Remove prototypes.
1215 2005-08-14  Richard M. Stallman  <rms@gnu.org>
1217         * image.c (syms_of_image): Init Qxbm, Qpbm before calling
1218         define_image_type.
1220 2005-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1222         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
1223         (xg_get_image_for_pixmap): Move some code to
1224         xg_get_pixbuf_from_pix_and_mask, and call it.
1226         * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
1228         * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
1229         to get an GTK icon and set it with GTK functions to avoid having GTK
1230         override an icon set with just X functions.
1232 2005-08-11  Richard M. Stallman  <rms@gnu.org>
1234         * image.c (syms_of_image): Init image_types here, and call
1235         define_image_type.
1236         (init_image): Not here.
1238 2005-08-09  Richard M. Stallman  <rms@gnu.org>
1240         * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
1242         * lisp.h (QUIT): Throw t to Vthrow_on_input.
1244 2005-08-09  Thien-Thi Nguyen  <ttn@gnu.org>
1246         * floatfns.c (Fexpt): Use floats for negative exponent.
1248 2005-08-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1250         * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
1251         should not be there, causing menu display errors with GTK 2.6.9.
1253 2005-08-07  Richard M. Stallman  <rms@gnu.org>
1255         * floatfns.c (Fexpt): Undo previous change.
1257         * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
1258         so it can be used with various state vectors.
1260         * emacs.c (endif): Convert -script into -scriptload.
1261         (standard_args): Add -scriptload.  Allow -basic-display with one dash.
1263         * fns.c (syms_of_fns): Add `emacs' to features.
1265         * term.c (set_terminal_modes): If no TS_termcap_modes string,
1266         output newlines to scroll the old screen contents off the screen.
1268 2005-08-06  Thien-Thi Nguyen  <ttn@gnu.org>
1270         * floatfns.c (Fexpt): Use floats for negative exponent.
1271         Reported by D Goel.
1273 2005-08-02  Richard M. Stallman  <rms@gnu.org>
1275         * frame.c (Fframe_char_width): Doc fix.
1277 2005-07-30  Juanma Barranquero  <lekktu@gmail.com>
1279         * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
1280         Defvar it.
1282 2005-07-28  Juanma Barranquero  <lekktu@gmail.com>
1284         * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
1285         (my_create_window, my_create_tip_window): Make static.
1287         * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
1288         (my_set_foreground_window, my_destroy_window): Make static.
1290 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1292         Merge gnulib getopt implementation into Emacs.
1294         * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
1295         now part of lib-src.
1297 2005-07-26  Stefan Monnier  <monnier@iro.umontreal.ca>
1299         * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
1301 2005-07-25  Jason Rumney  <jasonr@gnu.org>
1303         * w32menu.c (w32_menu_display_help): Suppress tooltip when
1304         navigating menus with the keyboard.
1306 2005-07-23  Richard M. Stallman  <rms@gnu.org>
1308         * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1310         * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1311         gc_relative_threshold, one by one.
1313         * keyboard.c (read_char): Test gc_cons_threshold.
1314         (syms_of_keyboard): staticpro Qecho_area_clear_hook.
1316         * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
1317         gc_relative_threshold, one by one.
1319         * alloc.c (gc_cons_threshold): Not static.
1320         (gc_cons_combined_threshold): Var deleted.
1321         (gc_relative_threshold): New variable.
1322         (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
1323         instead of gc_cons_combined_threshold.
1325         * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
1326         (gc_cons_combined_threshold): Declaration deleted.
1328 2005-07-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1330         * mac.c: Don't include stdlib.h or string.h.
1331         (Fdo_applescript, Fmac_file_name_to_posix)
1332         (Fmac_file_name_to_posix): Doc fixes.
1333         [TARGET_API_MAC_CARBON] (Fmac_get_preference)
1334         (Fmac_code_convert_string): Likewise.
1335         [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
1336         if the executable is not contained in a bundle.
1338         * macfns.c: Don't include stdlib.h or string.h.  Include atimer.h.
1339         (gray_width, gray_height): Remove defines.
1340         (gray_bits, gray_bitmap_width, gray_bitmap_height)
1341         (gray_bitmap_bits): Remove variables.
1342         (lispy_function_keys): Remove extern.
1343         (free_frame_menubar): Add extern.
1344         (x_window_to_frame): Remove function.
1345         (unwind_create_tip_frame): Add declaration.
1346         (x_set_name_internal): New function.
1347         (x_set_name, x_set_title): Use it.
1348         (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
1349         (Fx_display_pixel_height, Fx_display_planes)
1350         (Fx_display_color_cells, Fx_server_max_request_size)
1351         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1352         (Fx_display_mm_height, Fx_display_mm_width)
1353         (Fx_display_backing_store, Fx_display_visual_class)
1354         (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
1356         * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
1358         * macselect.c (Fx_own_selection_internal): Follow error conventions.
1359         (Fx_get_selection_internal, Fx_selection_owner_p)
1360         (Fx_selection_exists_p): Doc fixes.
1361         (syms_of_macselect) <selection-converter-alist>: Likewise.
1363 2005-07-21  Juanma Barranquero  <lekktu@gmail.com>
1365         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1367         * ccl.c (Fregister_ccl_program): Fix typos in docstring.
1368         (Fccl_execute_on_string): Likewise; add usage info.
1370         * composite.c (Fcompose_region_internal)
1371         (Fcompose_string_internal):
1372         Improve argument/docstring consistency.
1374         * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
1375         Fix typos in docstrings.
1377         * textprop.c (Fnext_char_property_change)
1378         (Fprevious_char_property_change): Doc fixes.
1380         * window.c (Fset_window_margins, Fset_window_fringes):
1381         Improve argument/docstring consistency.
1383         * xfaces.c (Finternal_lisp_face_p): Doc fix.
1385 2005-07-21  Andreas Schwab  <schwab@suse.de>
1387         * eval.c (restore_stack_limits): Return a value.
1389 2005-07-20  Juanma Barranquero  <lekktu@gmail.com>
1391         * eval.c (Fdefvar): Doc fix.
1393 2005-07-20  Kim F. Storm  <storm@cua.dk>
1395         * fileio.c (Fdo_auto_save, do_auto_save_unwind):
1396         Use make_save_value to unwind protect stream.
1398         * lread.c (Fload, load_unwind):
1399         Use make_save_value to unwind protect stream.
1401 2005-07-19  Juanma Barranquero  <lekktu@gmail.com>
1403         * eval.c (Fprog2, Fcalled_interactively_p),
1404         (syms_of_eval) <debug-on-quit>: Doc fixes.
1405         (syms_of_eval) <max-specpdl-size>:
1406         (Finteractive_p): Fix typos in docstrings.
1408 2005-07-19  Kim F. Storm  <storm@cua.dk>
1410         * w32fns.c (Vx_hand_shape): Variable removed.
1411         (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
1413 2005-07-19  Kenichi Handa  <handa@m17n.org>
1415         * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
1417 2005-07-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1419         * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
1421 2005-07-18  Kim F. Storm  <storm@cua.dk>
1423         * frame.h (struct frame): New member already_hscrolled_p.
1425         * xdisp.c (redisplay_internal): Only try to hscroll each frame once
1426         to avoid redisplay looping hscrolling back and forth ad infinitum.
1428 2005-07-18  Juri Linkov  <juri@jurta.org>
1430         * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
1431         * keymap.c (Fminor_mode_key_binding):
1432         * macterm.c (mac-emulate-three-button-mouse):
1433         Delete duplicate duplicate words.
1435 2005-07-18  Ken Raeburn  <raeburn@gnu.org>
1437         * minibuf.c (Ftest_completion): Fix odd syntax in test.
1439 2005-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1441         * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
1443         * macgui.h (struct _XGC): New struct.
1444         (GC): Use it.
1445         (GCForeground, GCBackground, GCFont): Use X11 mask values.
1446         (XCreateGC, XParseGeometry): Move externs to macterm.h.
1448         * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
1449         (XSetFont): Add declaration.
1450         (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
1451         Remove functions.
1452         (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
1453         New defines.
1454         (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
1455         (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
1456         (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
1457         Use them.
1458         (mac_erase_rectangle): New function.
1459         (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
1460         (x_draw_stretch_glyph_string): Use it.
1461         (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
1462         (XSetBackground, XSetFont): Adjust for new GC implementation.
1463         (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
1464         (XTset_vertical_scroll_bar): Clear area under scroll bar.
1466         * macterm.h (struct mac_display_info): Change types of
1467         scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
1468         (XCreateGC, XParseGeometry): Move externs from macgui.h.
1470         * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
1472 2005-07-16  Richard M. Stallman  <rms@gnu.org>
1474         * buffer.c (Fmake_overlay): Doc fix.
1476 2005-07-16  Eli Zaretskii  <eliz@gnu.org>
1478         * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
1479         Vw32_valid_locale_ids, and Vw32_valid_codepages.
1481 2005-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1483         * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
1484         Use Fstring_as_unibyte instead of string_make_unibyte.
1486 2005-07-15  Richard M. Stallman  <rms@gnu.org>
1488         * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
1490 2005-07-15  Kim F. Storm  <storm@cua.dk>
1492         * xdisp.c: Fix redisplay loop in last change.
1493         (IT_POS_VALID_AFTER_MOVE_P): New macro.
1494         (move_it_vertically_backward, move_it_by_lines): Use it.
1496 2005-07-14  Jason Rumney  <jasonr@gnu.org>
1498         * w32.c (init_environment): Default HOME directory to user's
1499         appdata directory if possible.
1501 2005-07-14  Kim F. Storm  <storm@cua.dk>
1503         * .gdbinit (pitx): Fix output format.  Print string charpos.
1505         * lread.c (syms_of_lread): Initialize seen_list.
1507         * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
1509         * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
1510         Staticpro re_match_object.
1512 2005-07-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1514         * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
1515         dereference.
1517         * macterm.c (mac_window_to_frame): Remove duplicate define.
1519 2005-07-14  Kenichi Handa  <handa@m17n.org>
1521         * coding.c (code_convert_region_unwind): ARG is changed to a cons.
1522         (code_convert_region): Adjust for the above change.
1523         (set_conversion_work_buffer): If the work buffer is already in
1524         use, generate a new buffer and return it.  Otherwise return Qnil.
1525         (run_pre_post_conversion_on_str): Adjust for the above change.
1526         (run_pre_write_conversin_on_c_str): Likewise.
1528 2005-07-13  Kim F. Storm  <storm@cua.dk>
1530         * xdisp.c (start_display): Don't reseat to next visible line start
1531         if current start position is in a string or image.
1532         (move_it_vertically_backward): Be sure to move out of strings and
1533         images when moving it2 forward.
1534         (move_it_by_lines): When moving forward, move to next buffer
1535         position if we end up in a string or image.  When moving backward,
1536         count rows moved over when moving to start of current row in case
1537         row starts in middle of a string or image.  Also move further
1538         backward if we end up in a string or image.
1539         (try_cursor_movement): If overlay string spans multiple lines,
1540         move backward to set cursor on start of an overlay string.
1541         (cursor_row_p): Row is ok if cursor is at newline from string, but
1542         string starts on this line (so we always position cursor at start
1543         of string).
1545         * indent.c (Fvertical_motion): If start position is on an image,
1546         don't move back if we move too far (that's almost certain to happen).
1548         * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
1549         row in minibuffer windows.
1550         (try_window): Don't check margins in minibuffer windows.
1552 2005-07-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1554         * macterm.c: Don't include stdlib.h or composite.h.
1555         (x_use_underline_position_properties, last_mouse_press_frame)
1556         (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
1557         (syms_of_macterm, mac_initialize): Don't initialize them.
1558         (waiting_for_input, initial_argv, initial_argc)
1559         (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
1560         (set_frame_menubar, path_from_vol_dir_name): Remove externs.
1561         (extra_keyboard_modifiers): Fix type in extern.
1562         (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
1563         (x_scroll_bar_report_motion): Add argument types to declaration.
1564         (mac_compute_glyph_string_overhangs): Add declaration.
1565         (disable_mouse_highlight): Remove unused variable.
1566         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
1567         (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
1568         (x_scroll_bar_handle_drag): Remove argument `timestamp'.
1569         All callers changed.
1570         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
1571         timestamp.
1572         [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
1573         (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
1574         only when its width is less than the height.
1575         (XTredeem_scroll_bar): Sync with xterm.c.
1576         (font_name_table, font_name_table_size, font_name_count):
1577         Make static.
1578         (drag_and_drop_file_list): Remove variable.  Previous use is now
1579         local to function.
1580         (do_ae_open_documents): Move DRAG_N_DROP event construction part
1581         from XTread_socket.
1582         (XTread_socket): Consolidate setting of event timestamp.
1583         Move DRAG_N_DROP event construction part to do_ae_open_documents.
1584         Support extra_keyboard_modifiers.
1586         * xfaces.c (try_font_list) [MAC_OS]: Try font family name
1587         beginning with that for ASCII.
1589 2005-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1591         * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
1592         (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
1593         (syms_of_alloc): Declare gc-cons-percentage.
1595         * eval.c (Feval, Ffuncall):
1596         * keyboard.c (read_char):
1597         * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
1599         * lisp.h (gc_cons_combined_threshold): Declare.
1601 2005-07-12  Kim F. Storm  <storm@cua.dk>
1603         * coding.c (Qprocess_argument):
1604         * coding.h (Qprocess_argument): Remove unused var.
1606         * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
1608 2005-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1610         * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
1611         Endian.h.
1612         [!MAC_OSX] (fchmod, fchown): New functions.
1613         (mac_get_code_from_arg): Don't accept Lisp integer as argument.
1614         Use SBYTES and EndianU32_BtoN.
1615         (mac_get_object_from_code): Return 4 byte string even if argument
1616         is 0.  Use make_unibyte_string and EndianU32_NtoB.
1617         (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1618         (Fmac_set_file_type): Fix documents and argument declarations.
1619         Don't specify kFSCatInfoNodeFlags.  Support Mac OS Classic.
1621 2005-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1623         * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
1625 2005-07-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1627         * xfaces.c (x_update_menu_appearance): Use fontSet resource for
1628         Lucid if X_I18N, font otherwise.
1630 2005-07-10  Steven Tamm  <steventamm@mac.com>
1632         * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
1633         (Fmac_set_file_type, Fmac_set_file_creator): Add.
1634         (mac_get_object_from_code, mac_get_code_from_arg): Add.
1636 2005-07-10  Richard M. Stallman  <rms@gnu.org>
1638         * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
1639         (syms_of_lread): Set up eval-buffer-list.
1640         (Feval_buffer, Feval_region): Bind eval-buffer-list.
1642 2005-07-08  Richard M. Stallman  <rms@gnu.org>
1644         * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
1646 2005-07-08  Kim F. Storm  <storm@cua.dk>
1648         * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
1649         (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
1651 2005-07-07  Kim F. Storm  <storm@cua.dk>
1653         * window.c (Frecenter): Fix last change (set iarg before use).
1655 2005-07-06  Richard M. Stallman  <rms@gnu.org>
1657         * window.c (Frecenter): When arg is inside the scroll margin,
1658         move it out of the margin.
1660 2005-07-06  Jason Rumney  <jasonr@gnu.org>
1662         * w32console.c (initialize_w32_display): Detect when the console
1663         dimensions are insane, and default to 80x25 instead.
1664         (w32_use_full_screen_buffer): Default to NIL.
1666 2005-07-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1668         * macterm.c (mac_draw_vertical_window_border): Use foreground of
1669         VERTICAL_BORDER_FACE_ID for vertical border line.
1670         (mac_encode_char): Call check_ccl_update in advance.
1671         (mac_to_x_fontname, x_font_name_to_mac_font_name)
1672         (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
1673         Don't assume that font family length is less than 32.
1674         (x_compute_min_glyph_bounds): Make static.
1675         (x_load_font): Never set fonts_changed_p to zero.
1677 2005-07-04  Lute Kamstra  <lute@gnu.org>
1679         * Update FSF's address in GPL notices.
1681 2005-07-03  Richard M. Stallman  <rms@gnu.org>
1683         * xdisp.c (try_window): Fix previous change in how it handles
1684         a partially-visible line or one only partly past the margin.
1686         * window.c (window_scroll_pixel_based): Take account
1687         of this_scroll_margin when finding point when scrolling up.
1689 2005-06-29  Ralf Angeli  <angeli@iwi.uni-sb.de>
1691         * window.c (window_scroll_pixel_based, window_scroll_line_based):
1692         Handle `scroll-preserve-screen-position' non-nil, non-t specially.
1693         (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
1695 2005-07-02  Juri Linkov  <juri@jurta.org>
1697         * w32term.c (w32_draw_vertical_window_border): Use foreground of
1698         VERTICAL_BORDER_FACE_ID for vertical border line.
1700 2005-07-02  Eli Zaretskii  <eliz@gnu.org>
1702         * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
1703         fchmod so that chmod doesn't get called on MSDOS before the file
1704         is closed.
1706 2005-07-01  Jason Rumney  <jasonr@gnu.org>
1708         * w32term.c (cleartype_active): New flag for enabling sub-pixel
1709         workaround.
1710         (w32_initialize): Initialize it.
1711         (w32_native_per_char_metric): Allow a couple of extra pixels when
1712         Cleartype is active.
1714         * w32term.c (w32_initialize): Move check for screen reader here
1715         from syms_of_w32term.
1717 2005-06-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1719         * xterm.c (handle_one_xevent): bzero compose_status when nbytes
1720         is not zero.
1722 2005-07-01  Masatake YAMATO  <jet@gyve.org>
1724         * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
1726 2005-06-30  Juri Linkov  <juri@jurta.org>
1728         * xdisp.c (x_draw_vertical_border): If left fringe is not present
1729         decrease x coord of vertical border by 1 pixel to not occupy text
1730         area of the right window.
1732         * xterm.c (x_draw_vertical_window_border): Use foreground of
1733         VERTICAL_BORDER_FACE_ID for vertical border line.
1735         * term.c (turn_on_face): In standout mode apply specified
1736         fg to bg, and specified bg to fg (this makes the logic of
1737         inversion on terminal consistent with X).
1739 2005-06-29  Juanma Barranquero  <lekktu@gmail.com>
1741         * eval.c (user_variable_p_eh): New function.
1742         (Fuser_variable_p): Use it.  Clarify docstring.
1743         Return t for aliases of user options, nil for alias loops.
1745 2005-06-27  Richard M. Stallman  <rms@gnu.org>
1747         * eval.c (Fdefvar): Improve error message.
1749 2005-06-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1751         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
1752         change.
1754 2005-06-27  Juanma Barranquero  <lekktu@gmail.com>
1756         * eval.c (Fdefvar): Don't try to set constant symbols.
1758 2005-06-25  Richard M. Stallman  <rms@gnu.org>
1760         * macfns.c (Fx_show_tip): Pass new arg to try_window.
1762         * w32fns.c (Fx_show_tip): Pass new arg to try_window.
1764         * xfns.c (Fx_show_tip): Pass new arg to try_window.
1766         * xdisp.c (try_window): New arg CHECK_MARGINS.  Calls changed.
1767         (redisplay_window): Handle try_window reporting point in scroll margin.
1769         * dispextern.h (try_window): Declare new arg.
1771         * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
1772         Use fchmod to copy the file modes.
1773         (Frename_file): Don't copy UID and GID here;
1774         instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
1776         * eval.c (call_debugger): Take full care of extending stack limits
1777         to make space for the debugger, and restore the change afterward.
1778         Bind debug-on-error to nil.
1779         (restore_stack_limits): New subroutine.
1780         (Fsignal): Extend specpdl bound along with eval depth bound,
1781         for calling edebug.  Don't do either one, for calling debugger.
1782         (find_handler_clause): Don't bind debug-on-error here.
1783         Don't unbind anything either.
1784         Temporarily advance max_specpdl_size for calling
1785         internal_with_output_to_temp_buffer.
1786         (grow_specpdl): Don't alter max_specpdl_size before signaling
1787         an error.
1788         (syms_of_eval) <max-specpdl-size>: Doc fix.
1790         * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
1792 2005-06-24  Eli Zaretskii  <eliz@gnu.org>
1794         * fileio.c (Frename_file): Undo last change: no need to ifdef away
1795         chown on DOS_NT platforms.
1797         * w32.c (sys_chown): New function.
1799         * s/ms-w32.h (chown): New; define to sys_chown.
1801 2005-06-24  Juanma Barranquero  <lekktu@gmail.com>
1803         * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
1804         (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
1806         * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
1808 2005-06-23  Richard M. Stallman  <rms@gnu.org>
1810         * xdisp.c (get_next_display_element): Finish reversing the tests of
1811         Vnobreak_char_display.
1813         * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
1814         All uses changed.
1815         (Qnobreak_space): Rename from Qno_break_space.  All uses changed.
1816         (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
1818         * fileio.c (Frename_file): Preserve owner and group, if possible,
1819         when copying.
1821 2005-06-23  Juanma Barranquero  <lekktu@gmail.com>
1823         * abbrev.c (Funexpand_abbrev):
1824         * category.c (Fmake_category_set):
1825         * dispnew.c (Fsleep_for, Fsit_for):
1826         * editfns.c (Fsubst_char_in_region):
1827         * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
1828         * frame.c (make_frame_without_minibuffer):
1829         * lread.c (read_vector):
1830         * macfns.c (check_x_frame):
1831         * process.c (Fstop_process, Fcontinue_process):
1832         * search.c (Freplace_match):
1833         * syntax.c (Fstring_to_syntax):
1834         * w32fns.c (check_x_frame, check_x_display_info):
1835         * xfaces.c (x_supports_face_attributes_p):
1836         * xselect.c (Fx_own_selection_internal): Follow error conventions.
1838         * image.c (fn_png_init_io): Don't define it.
1839         (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
1840         (png_read_from_file): New function, based on png_read_from_memory.
1841         (png_load): Use it, instead of fn_png_init_io.
1843 2005-06-23  Kim F. Storm  <storm@cua.dk>
1845         * search.c (Fmatch_data): Remove evaporate option.
1846         (Fset_match_data): Do not mention evaporate option in doc string.
1847         Add commentary explaining evaporate arg (for internal use only).
1848         (unwind_set_match_data): Add comment on evaporate use.
1850 2005-06-22  Miles Bader  <miles@gnu.org>
1852         * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
1853         (realize_basic_faces, syms_of_xfaces): Update references to it.
1854         * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
1855         to `VERTICAL_BORDER_FACE_ID'.
1856         * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
1858 2005-06-21  Juri Linkov  <juri@jurta.org>
1860         * dispextern.h: Add extern Qframe_set_background_mode.
1862         * xfaces.c: Rename obsolete function Qframe_update_face_colors to
1863         Qframe_set_background_mode.
1865         * frame.c (Fmodify_frame_parameters):
1866         Call frame-set-background-mode after changing the background color
1867         on non-window non-dos branch.
1869 2005-06-21  Juanma Barranquero  <lekktu@gmail.com>
1871         * fns.c (Fchar_table_range):
1872         * process.c (Fmake_network_process): Fix spellings.
1874 2005-06-20  Kim F. Storm  <storm@cua.dk>
1876         * fns.c (Fsort): Doc fix.
1878 2005-06-20  Miles Bader  <miles@gnu.org>
1880         * xfaces.c (Qvertical_divider): New variable.
1881         (realize_basic_faces): Realize its face.
1882         (syms_of_xfaces): Initialize it.
1884         * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
1886         * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
1887         window-separator on ttys using `vertical-divider' face by default.
1889 2005-06-17  Richard M. Stallman  <rms@gnu.org>
1891         * xdisp.c (get_next_display_element):
1892         Reverse test of Vshow_nonbreak_escape.
1894         * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
1895         (Ftty_no_underline): New function.
1896         (syms_of_term): defsubr it.
1898         * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
1900         * dispnew.c (spec_glyph_lookup_face): New function.
1901         (build_frame_matrix_from_leaf_window): Use it.
1903         * dispextern.h (spec_glyph_lookup_face): Add declaration.
1905         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1907 2005-06-12  Richard M. Stallman  <rms@gnu.org>
1909         * keyboard.c (read_char): After catching a longjmp,
1910         call restore_getcjmp.
1912 2005-06-17  Juanma Barranquero  <lekktu@gmail.com>
1914         * xselect.c (lisp_data_to_selection_data): Fix spelling.
1916 2005-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1918         * macterm.c (mac_compute_glyph_string_overhangs): Don't set
1919         overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
1920         [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
1921         events.
1922         (XTread_socket): Don't pass keyboard events with the option
1923         modifier to the system when Vmac_command_key_is_meta is nil or
1924         Vmac_option_modifier is non-nil.
1925         [USE_CARBON_EVENTS] (read_socket_inev): New variable.
1926         [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
1927         [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
1928         handler function.
1929         (install_window_handler) [USE_CARBON_EVENTS]: Install it.
1930         (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
1931         handler part to mac_handle_mouse_event.
1933 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
1935         * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
1936         NEW-ALIAS and BASE-VARIABLE, respectively.
1938 2005-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1940         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1941         (get_phys_cursor_geometry, format_mode_line_unwind_data)
1942         (get_line_height_property, x_produce_glyphs): Remove unused vars.
1944         * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
1946 2005-06-13  Eli Zaretskii  <eliz@gnu.org>
1948         * w32term.c (x_use_underline_position_properties): New variable.
1949         (x_draw_glyph_string): Remind in a comment to change doc string of
1950         x-use-underline-position-properties if/when underline positioning
1951         is implemented.
1952         (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
1953         and initialize it to nil.
1955 2005-06-12  Jason Rumney  <jasonr@gnu.org>
1957         * w32fns.c (NEWOPENFILENAME): New struct.
1958         (Fx_file_dialog): Use it to trick the system into giving us up to
1959         date dialogs on systems that are documented to support it.
1960         Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
1962 2005-06-12  Eli Zaretskii  <eliz@gnu.org>
1964         * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
1965         MB_ABORTRETRYIGNORE.  Never return, even if DebugBreak does.
1967 2005-06-11  Eli Zaretskii  <eliz@gnu.org>
1969         * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
1970         to CreateDIBSection to avoid a compiler warning.
1971         (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
1972         warning.
1973         (png_load): Cast return values of fn_png_create_read_struct and
1974         fn_png_create_info_struct, to avoid compiler warnings on W32.
1975         Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
1976         to avoid compiler warnings.
1977         (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
1978         compiler warning on W32.  Cast 3rd arg to IMAGE_BACKGROUND to
1979         avoid a compiler warning.
1980         (tiff_load): Cast return values of fn_TIFFOpen and
1981         fn_TIFFClientOpen to avoid compiler warning on W32.  Cast 3rd arg
1982         to IMAGE_BACKGROUND to avoid a compiler warning.
1983         (gif_load): Cast return values of fn_DGifOpenFileName and
1984         fn_DGifOpen to avoid compiler warnings on W32.  Cast 3rd arg to
1985         IMAGE_BACKGROUND to avoid a compiler warning.
1986         (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
1987         before redefining.
1989         * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
1990         the call to CreateDIBSection, to avoid a compiler warning.
1992 2005-06-11  Jason Rumney  <jasonr@gnu.org>
1994         * w32fns.c (Fx_file_dialog): Unblock input before falling back to
1995         minibuffer.
1996         * macfns.c (Fx_file_dialog): Likewise.
1998 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
2000         * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
2002 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
2004         * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
2005         * w32fns.c (syms_of_w32fns): Fix spellings.
2007 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
2009         * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
2010         `verbose'; print diagnostic messages only if it is non-zero.
2011         All callers changed to pass a zero value unless DEBUG_DUMP is defined
2012         in the environment.
2013         (copy_executable_and_dump_data): Print section names with %.8s.
2015 2005-06-10  Masatake YAMATO  <jet@gyve.org>
2017         * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
2018         when mouse_face is not given.
2020 2005-06-09  Luc Teirlinck  <teirllm@auburn.edu>
2022         * window.c (Fselect_window): Adapt call to Fselect_frame.
2024         * lisp.h: Update EXFUN of Fselect_frame.
2026         * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
2028         * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
2029         no_enter.
2030         (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
2031         Adapt to above change.
2033 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
2035         * fns.c (Fmemq, Fmaphash): Doc fixes.
2037 2005-06-09  Juanma Barranquero  <lekktu@gmail.com>
2039         * xfaces.c (Fdisplay_supports_face_attributes_p):
2040         Fix typo in docstring.
2042 2005-06-08  Steven Tamm  <steventamm@mac.com>
2044         * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
2045         used by gcc4 on intel mac.
2047 2005-06-09  Kim F. Storm  <storm@cua.dk>
2049         * search.c (Fmatch_data): Add optional RESEAT arg.  Unchain markers
2050         in REUSE list if non-nil; free them if equal to evaporate.
2051         (Fset_match_data): Add optional RESEAT arg.  Unchain markers in LIST
2052         if non-nil; free them if equal to evaporate.  Use XCAR/XCDR.
2053         (restore_search_regs): Rename from restore_match_data.  Uses changed.
2054         (unwind_set_match_data): New function.
2055         (record_unwind_save_match_data): New function like save-match-data.
2057         * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
2058         (record_unwind_save_match_data): Add prototype.
2059         (restore_search_regs): Rename from restore_match_data.
2061         * composite.c (compose_chars_in_text):
2062         * eval.c (do_autoload):
2063         * macmenu.c (set_frame_menubar):
2064         * process.c (read_process_output, exec_sentinel):
2065         * xmenu.c (set_frame_menubar):
2066         * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
2067         * w32menu.c (set_frame_menubar):
2068         Use record_unwind_save_match_data.
2070 2005-06-08  Richard M. Stallman  <rms@gnu.org>
2072         * xdisp.c (get_next_display_element): Alter previous change:
2073         Distinguish Vshow_nonbreak_escape = t or not t.
2074         For t, use escape_glyph once again, as before previous change.
2075         Use space or hyphen for display, instead of the non-ASCII char.
2076         (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
2078         * process.c (Fstart_process): Don't touch command_channel_p slot.
2080         * process.h (struct process): Delete command_channel_p.
2082 2005-06-07  Masatake YAMATO  <jet@gyve.org>
2084         * xdisp.c (note_mode_line_or_margin_highlight):
2085         Check the overlapping of re-rendering area to avoid flickering.
2086         (note_mouse_highlight): Call clear_mouse_face if PART
2087         is not ON_MODE_LINE nor ON_HEADER_LINE.
2089 2005-06-07  Kim F. Storm  <storm@cua.dk>
2091         * process.c: Improve commentary for adaptive read buffering.
2093 2005-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
2095         * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
2096         if available.
2098 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2100         * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2101         New functions for popping down menus on C-g.
2102         (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2104         * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
2105         non-static.
2107         * config.in: Add HAVE_CANCELMENUTRACKING.
2109 2005-06-06  Eli Zaretskii  <eliz@gnu.org>
2111         * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
2113         * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
2115         * w32proc.c (RVA_TO_PTR): New macro.
2117         * w32heap.c (RVA_TO_PTR): No need to #undef now.
2119         * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
2120         Depend on w32heap.h.
2122 2005-06-06  Luc Teirlinck  <teirllm@auburn.edu>
2124         * keyboard.c (command_loop_1): Update Vthis_original_command.
2126 2005-06-06  Richard M. Stallman  <rms@gnu.org>
2128         * xmenu.c (popup_get_selection): Undo previous change.
2130 2005-06-06  Juri Linkov  <juri@jurta.org>
2132         * xdisp.c (Qno_break_space): New variable.
2133         (syms_of_xdisp): Initialize it.
2134         (get_next_display_element): Add no-break space and soft hypen
2135         codes for iso8859-2 and iso8859-5.  Don't add `\' for them.
2136         Use `no-break-space' face for no-break spaces.
2138 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2140         * window.c (delete_window): Handle the case where a h/vchild has
2141         a h/vchild.
2143 2005-06-05  Eli Zaretskii  <eliz@gnu.org>
2145         * w32.c (sys_setsockopt): Change arg 4 to `const void *'.  In the
2146         call to pfn_setsockopt, cast optval to `const char *'.
2148 2005-06-04  Eli Zaretskii  <eliz@gnu.org>
2150         * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
2151         (open_unc_volume): Cast return value of map_w32_filename, to avoid
2152         compiler warnings.
2154         * s/ms-w32.h (fileno): Don't define if already defined.
2156         * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
2158         * makefile.w32-in (DOC): Define to point to the generated DOC-X.
2160 2005-06-04  Richard M. Stallman  <rms@gnu.org>
2162         * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
2164 2005-06-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2166         * macmenu.c (cleanup_popup_menu): New function.
2167         (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
2168         mac_menu_show Quit:s.
2169         (mac_menu_show): Quit on cancel if not popped up on click (i.e.
2170         a dialog).
2172 2005-06-04  Kim F. Storm  <storm@cua.dk>
2174         * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
2176         * callproc.c (Fcall_process): Don't use alloca to gradually
2177         increase size of buf, as it effectively uses twice the necessary
2178         space on the stack.  Instead, pre-allocate buf of full size, and
2179         gradually increase the read size.
2181         * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
2183         * eval.c (unbind_to): Preserve value of Vquit_flag.
2185         * xterm.c (handle_one_xevent): Also ignore mouse motion just
2186         before a button release event.
2188 2005-06-03  Juanma Barranquero  <lekktu@gmail.com>
2190         * xfaces.c (Finternal_lisp_face_equal_p): Really report
2191         on faces in a frame, if the argument FRAME is non-nil.
2192         Improve argument/docstring consistency.
2194 2005-06-02  Kim F. Storm  <storm@cua.dk>
2196         * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
2197         (x_consider_frame_title, Fformat_mode_line): Save offset into
2198         mode_line_noprop_buf rather than pointer, in case buffer is relocated.
2200 2005-06-01  Kim F. Storm  <storm@cua.dk>
2202         * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
2204 2005-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2206         * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
2207         resolution fields for scalable fonts to 0.
2209         * xfaces.c (build_scalable_font_name): Round pixel size to the
2210         nearest integer.
2212 2005-06-01  Kim F. Storm  <storm@cua.dk>
2214         * xdisp.c (display_mode_line): Support nested calls to redisplay
2215         and format-mode-line.  Set mode_line_target to MODE_LINE_DISPLAY.
2217 2005-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
2219         * fileio.c (Finsert_file_contents):
2220         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2222 2005-05-31  Kim F. Storm  <storm@cua.dk>
2224         * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
2225         (mode_line_noprop_ptr): Rename from frame_title_*.
2226         (store_mode_line_noprop_char): Rename from store_frame_title_char.
2227         (store_mode_line_noprop): Rename from store_frame_title.
2228         (mode_line_target): New enum to specify current output target
2229         for mode line formatting.
2230         (display_mode_element): Test it rather than frame_title_ptr and
2231         mode_line_string_list to determine where output should go.
2232         (mode_line_proptrans_alist, mode_line_string_alist): Make static.
2233         (Vmode_line_unwind_vector): New variable.
2234         (format_mode_line_unwind_data, unwind_format_mode_line):
2235         New functions for unwind protection in mode line formatting.
2236         (x_consider_frame_title): Use them and new local var 'title_start'
2237         to support nested calls to format-mode-line and redisplay.
2238         Set mode_line_target to MODE_LINE_TITLE.
2239         (Fformat_mode_line): Use them and new local var 'string_start' to
2240         support nested calls to format-mode-line and redisplay.
2241         Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
2242         Don't trim trailing dashes.
2243         (decode_mode_spec): Don't make infinite number of trailing dashes
2244         for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
2245         (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
2246         mode_line_string_face_prop, and Vmode_line_unwind_vector.
2247         (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
2248         Initialize mode_line_target to MODE_LINE_DISPLAY.
2250 2005-05-29  Richard M. Stallman  <rms@gnu.org>
2252         * buffer.c (Fbuffer_local_value): Call indirect_variable.
2254 2005-05-28  Masatake YAMATO  <jet@gyve.org>
2256         * xdisp.c (note_mode_line_or_margin_highlight): Change the
2257         pointer to a hand cursor when hoovering over a mouse-face.
2259 2005-05-27  Kenichi Handa  <handa@m17n.org>
2261         * xterm.c (x_encode_char): Call check_ccl_update in advance.
2263         * ccl.c: Now an element of Vccl_program_table is a vector of
2264         length 4, not 3.
2265         (ccl_get_compiled_code): New arg idx.  Caller changed.
2266         Adjust for the change of Vccl_program_table.
2267         (setup_ccl_program): Adjust for the change of Vccl_program_table.
2268         (check_ccl_update): New function.
2269         (Fregister_ccl_program): Use ASET to set an element of a vector.
2270         Adjusted for the change of Vccl_program_table.
2272         * ccl.h (struct ccl_program): New member idx.
2273         (check_ccl_update): Extern it.
2275 2005-05-27  Juanma Barranquero  <lekktu@gmail.com>
2277         * image.c (Vimage_library_alist): Move from image.el.
2278         (syms_of_image): Defvar it.
2279         (lookup_image_type): Use it.
2281         * buffer.c (Fbuffer_local_value): Make argument name match its use
2282         in docstring.
2284 2005-05-26  Juanma Barranquero  <lekktu@gmail.com>
2286         * keyboard.c (Frecursive_edit): Fix typo in docstring.
2287         (Fposn_at_x_y): Make argument name match its use in docstring.
2289 2005-05-26  Lute Kamstra  <lute@gnu.org>
2291         * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
2293 2005-05-24  Masatake YAMATO  <jet@gyve.org>
2295         * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
2296         as loop sentinels.
2298 2005-05-24  Nick Roberts  <nickrob@snap.net.nz>
2300         * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
2301         select frame title ("Question"/"Information").
2302         (xdialog_show): Use it.
2304         * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
2306         * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
2308         * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2309         a third argument (Qnil).
2311         * lisp.h: x-popup-dialog can have three arguments.
2313         * editfns.c (Fmessage_box): Use "Information" for frame title.
2315 2005-05-23  Thien-Thi Nguyen  <ttn@gnu.org>
2317         * termcap.c [VMS]: Include <starlet.h>.
2319 2005-05-23  Masatake YAMATO  <jet@gyve.org>
2321         * xdisp.c (note_mode_line_or_margin_highlight): Add code
2322         for mouse-face.  Change the type of the first argument from `window'
2323         to `Lisp_Object'.
2324         (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
2325         window instead of w.
2327 2005-05-22  Andreas Schwab  <schwab@suse.de>
2329         * process.c (send_process): Move misplaced volatile.
2331 2005-05-21  Richard M. Stallman  <rms@gnu.org>
2333         * xdisp.c (display_mode_element): If we're processing a list and
2334         padding is specified, put it after the last element.
2336 2005-05-21  Eli Zaretskii  <eliz@gnu.org>
2338         * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
2339         "superroot" on DOS_NT systems.
2341 2005-05-21  David Hunter  <hunterd42@comcast.net>  (tiny change)
2343         * process.c (send_process): Restore the SIGPIPE handler if we
2344         catch a SIGPIPE.
2346 2005-05-20  Juanma Barranquero  <lekktu@gmail.com>
2348         * image.c (lookup_image, png_read_from_memory): Remove hacks (and
2349         misleading comments).
2350         (DEF_IMGLIB_FN): Use C calling convention for image libraries.
2352 2005-05-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
2354         * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
2355         Correct the right value.
2357 2005-05-19  Nick Roberts  <nickrob@snap.net.nz>
2359         * keyboard.c (syms_of_keyboard): Remove Lisp variables
2360         post-command-idle-hook and post-command-idle-delay.
2361         (command_loop_1): Don't try to execute post-command-idle-hook.
2363 2005-05-16  Kim F. Storm  <storm@cua.dk>
2365         * xdisp.c (handle_display_prop): Handle empty replacement.
2366         (handle_single_display_spec): Return -1 for empty replacement.
2368         * keyboard.c (adjust_point_for_property): Skip empty overlay string.
2370         * .gdbinit (pitx): Print more info about iterator.
2372 2005-05-16  Andreas Schwab  <schwab@suse.de>
2374         * unexmacosx.c (unexec_realloc): Move declarations before statements.
2376 2005-05-14  Richard M. Stallman  <rms@gnu.org>
2378         * xdisp.c (message3): Call cancel_echoing.
2380         * alloc.c (Fmemory_full_p): New function.
2381         (syms_of_alloc): defsubr it.
2383         * process.c (send_process_trap): Unblock SIGPIPE.
2384         (send_process): Reset SIGPIPE handler before reporting error.
2386 2005-05-14  Nick Roberts  <nickrob@snap.net.nz>
2388         * emacs.c (syms_of_emacs): Fix doc string for system-type.
2390 2005-05-13  Richard M. Stallman  <rms@gnu.org>
2392         * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
2393         (Finsert_file_contents): If we read 0 bytes from a special file,
2394         unlock the visited file if we locked it.
2395         (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
2396         (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
2398 2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2400         * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
2402         * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
2403         Regard toolkit scroll bar thumb drag events as squeezable and prevent
2404         redisplay from being paused by them.
2406         * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
2407         [!MAC_OSX] (target_ticks): Remove variable.
2408         [!MAC_OSX] (check_alarm, pause, index): Remove functions.
2409         [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
2410         [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
2411         event occurs before timeout, behave as if the function were interrupted.
2412         [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
2413         handling using Time Manager routines.
2414         [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
2415         New variables.
2416         [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
2417         (setitimer): New functions.
2419         * macfns.c, macmenu.c: Don't include signal.h.
2421         * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
2422         Rename from get_control_part_bound.  All callers changed.
2423         (x_scroll_bar_clear): New function.
2424         (x_clear_frame): Use it.
2425         (XTset_vertical_scroll_bar): Don't call Draw1Control.
2426         (x_scroll_bar_handle_click): Change type of second argument from
2427         int to ControlPartCode.
2428         (check_alarm): Remove declaration.
2429         (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
2430         (XTread_socket): Use ControlPartCode instead of SInt16.
2432 2005-05-13  Nozomu Ando  <nand@mac.com>
2434         * unexmacosx.c: Include assert.h.
2435         (MACOSX_MALLOC_MULT16): New define.
2436         [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
2437         ptr is in unexec regions by checking it is multiple of 16.
2438         (unexec_malloc_header_t): New typedef.
2439         (unexec_malloc, unexec_realloc, unexec_free): Store and use
2440         allocated size information in unexec_malloc_header.
2442 2005-05-10  Richard M. Stallman  <rms@gnu.org>
2444         * xterm.c (noinclude): Add #undef.
2446         * image.c, xfns.c, xmenu.c: Don't include signal.h.
2448 2005-05-09  Juanma Barranquero  <lekktu@gmail.com>
2450         * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
2451         (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
2452         Doc fixes.
2454         * dired.c (Ffile_name_completion): Make argument name
2455         match its use in docstring.
2457 2005-05-08  Luc Teirlinck  <teirllm@auburn.edu>
2459         * eval.c (Fdefvaralias): Remove any pre-existing
2460         variable-documentation property of the alias.
2462 2005-05-07  Thien-Thi Nguyen  <ttn@gnu.org>
2464         * xfns.c (start_hourglass): Do nothing when running on a tty.
2466 2005-05-07  Juanma Barranquero  <lekktu@gmail.com>
2468         * fns.c (Fchar_table_range): Fix typos in docstring.
2470 2005-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
2472         * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
2474 2005-05-06  Eli Zaretskii  <eliz@gnu.org>
2476         * lread.c (Flocate_file_internal): Doc fix.
2478         * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
2480 2005-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2482         * macselect.c (x_own_selection): Accept Lisp string as result of
2483         selection converter function.
2484         (x_clear_frame_selections): Don't call x-lost-selection-functions
2485         if Emacs is not owner of the selection.
2486         (Vmac_services_selection): Put variable and initialization in
2487         #ifdef MAC_OSX.
2488         (syms_of_macselect) [MAC_OSX]: Set default value of
2489         Vmac_services_selection to PRIMARY.
2491         * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
2492         (mac_handle_tool_bar_click): Remove unused function and declaration.
2493         [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
2494         (install_scroll_bar_timer, set_scroll_bar_timer)
2495         (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
2496         (get_control_part_bound, x_scroll_bar_handle_press)
2497         (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
2498         (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
2499         [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
2500         (scroll_bar_timer_event_posted_p): New variables.
2501         [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
2502         (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
2503         (x_scroll_bar_create): Set control reference with NewControl.
2504         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2505         Initialize track_top and track_height to nil.
2506         (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
2507         Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
2508         (XTset_vertical_scroll_bar): Don't make space between scroll bar
2509         and associated window.
2510         (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
2511         from window config.
2512         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2513         Set track_top and track_height to nil when scroll bar size is changed.
2514         Recalculate them if they are nil.
2515         (XTread_socket) [MAC_OSX]: Use control kind to determine if the
2516         clicked control is a scroll bar.
2517         (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
2518         event handler functions.  Don't add modifiers to scroll bar click
2519         events.  Call scroll bar release handler when window is deactivated.
2520         (mac_initialize): Remove unused code for X toolkit.
2521         (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
2522         Initialize Vx_toolkit_scroll_bars to nil.
2524         * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2525         New members track_top and track_height.
2527         * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
2528         init_process when including sys/select.h.
2530 2005-05-05  Luc Teirlinck  <teirllm@auburn.edu>
2532         * eval.c (Fdefvaralias): Doc fix.
2534         * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2536 2005-05-05  Kim F. Storm  <storm@cua.dk>
2538         * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
2539         default value.
2540         (syms_of_buffer): Add default-cursor-in-non-selected-windows.
2541         Fix type of cursor-in-non-selected-windows.
2543 2005-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2545         * mac.c: #undef init_process so not to conflict with system headers.
2547 2005-05-02  Richard M. Stallman  <rms@gnu.org>
2549         * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
2551         * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
2553         * xdisp.c (Vcursor_in_non_selected_windows)
2554         (Qcursor_in_non_selected_windows): Vars deleted.
2555         (syms_of_xdisp): Don't initialize them.
2556         (get_window_cursor_type): Use cursor_in_non_selected_windows
2557         buffer slot.
2559 2005-05-02  Kim F. Storm  <storm@cua.dk>
2561         * macros.c (executing_kbd_macro_index): Rename from
2562         executing_macro_index.  All uses changed.
2563         (executing_kbd_macro_iterations): Rename from
2564         executing_macro_iterations.  All uses changed.
2565         (executing_kbd_macro): Rename from executing_macro.
2566         All uses changed.
2567         (syms_of_macros): Rename Lisp var executing-macro-index to
2568         executing-kbd-macro-index.
2570         * xdisp.c (move_it_in_display_line_to): Fix last change.
2572 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
2574         * xmenu.c (Fx_popup_menu): Doc fix.
2576         * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
2578 2005-05-02  Jason Rumney  <jasonr@gnu.org>
2580         * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
2582 2005-05-02  Nozomu Ando  <nand@mac.com>
2584         * sysselect.h: Fix typo.
2586 2005-05-02  Nick Roberts  <nickrob@snap.net.nz>
2588         * charset.c (Fchars_in_region): Remove as obsolete.
2590 2005-05-01  Kim F. Storm  <storm@cua.dk>
2592         * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
2593         TO_CHARPOS.  This may happen if last glyphs was an image or stretch
2594         glyph.
2596 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
2598         * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
2600 2005-05-01  Richard M. Stallman  <rms@gnu.org>
2602         * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
2603         If user cancels the menu, quit unless FOR_CLICK.
2605         * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
2606         All uses changed.
2607         (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
2608         * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
2609         * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
2610         * commands.h (Vexecuting_kbd_macro): Likewise.
2612 2005-05-01  Thien-Thi Nguyen  <ttn@gnu.org>
2614         * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
2616 2005-04-30  Richard M. Stallman  <rms@gnu.org>
2618         * fileio.c (Ffind_file_name_handler): Handle the `operations'
2619         property of the file name handler.
2620         (Qoperations): New variable.
2621         (syms_of_fileio): Initialize and staticpro it.
2623         * xdisp.c (set_message_1): Delete xassert.
2625 2005-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2627         * mac.c: Don't include time.h.  Include sysselect.h after systime.h.
2629         * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
2631         * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
2632         before/after including Carbon.h if there is a working mktime.
2634 2005-04-28  Kim F. Storm  <storm@cua.dk>
2636         * xfaces.c (resolve_face_name): Add arg SIGNAL_P.  Calls changed.
2637         Fix cyclic alias check.  If alias loop is detected, signal
2638         circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
2640 2005-04-28  Lute Kamstra  <lute@gnu.org>
2642         * eval.c (do_autoload): Record only autoloads in the autoload
2643         property of symbols.
2645 2005-04-28  Nick Roberts  <nickrob@snap.net.nz>
2647         * emacs.c (USAGE1): Add --basic-display and --quick options.
2649 2005-04-27  Kim F. Storm  <storm@cua.dk>
2651         * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
2653 2005-04-26  Richard M. Stallman  <rms@gnu.org>
2655         * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
2656         (syms_of_window): Doc fixes.
2658         * indent.c (Fvertical_motion): Undo previous change.
2660 2005-04-26  Kenichi Handa  <handa@m17n.org>
2662         * fns.c (char_table_range): New function.
2663         (Fchar_table_range): Signal an error if characters in the range
2664         have inconsistent values.  Don't check the parent.
2666 2005-04-25  Kenichi Handa  <handa@m17n.org>
2668         * fontset.c (fontset_set): Fix previous change.
2670 2005-04-24  Richard M. Stallman  <rms@gnu.org>
2672         * indent.c (Fvertical_motion): Bind fontification-functions to nil.
2674 2005-04-24  Eli Zaretskii  <eliz@gnu.org>
2676         * regex.c (re_search_2, re_match_2_internal): Convert second arg
2677         of RE_TRANSLATE to int, to shut up GCC warnings.
2679         * fileio.c (Fcopy_file): Doc fix.
2680         [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
2681         not needed.
2683 2005-04-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2685         * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
2686         (SOME_MACHINE_OBJECTS): Likewise.
2687         (mac.o): Depend on ccl.h.
2688         (macselect.o): New target.
2690         * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
2691         Call syms_of_macselect.
2693         * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
2695         * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
2696         (QCLIPBOARD): Remove variable.
2697         (syms_of_mac): Don't initialize it.
2698         (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
2699         Remove functions.
2700         (syms_of_mac): Don't defsubr them.
2701         [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
2702         (QHFS_plus_D, QHFS_plus_C): New variables.
2703         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2704         [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
2705         (cfstring_create_normalized): New functions.
2706         [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
2707         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2709         * macterm.c (handling_window_update, terminate_flag):
2710         Remove variables.
2711         (do_window_update, do_ae_quit_application, XTread_socket):
2712         Don't use them.
2713         (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
2714         [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
2715         (init_service_handler): Move to macselect.c.  Remove declarations.
2716         [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
2717         (Qapplication, Qabout): New variables.
2718         (syms_of_mac): Initialize them.
2719         [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
2720         (Qperform): New variables.
2721         (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
2722         (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
2723         (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
2724         (mac_store_application_menu_event, init_menu_bar): New functions.
2725         [USE_CARBON_EVENTS] (mac_handle_command_event)
2726         (init_command_handler): New functions.
2727         (mac_handle_window_event): Return noErr on window update event.
2728         (do_ae_quit_application): Call mac_store_application_menu_event.
2729         (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
2730         and init_menu_bar.
2732         * macterm.h (x_clear_frame_selections): Add extern.
2734         * macselect.c: New file for selection processing on Mac OS.
2736 2005-04-23  Richard M. Stallman  <rms@gnu.org>
2738         * fileio.c (Fcopy_file): New arg MUSTBENEW.
2739         (Frename_file): Pass new arg to Fcopy_file.
2741         * window.c (window_size_fixed): Variable deleted.
2742         (syms_of_window): Initialize window-size-fixed to nil.
2743         But don't DEFVAR window_size_fixed.
2745 2005-04-23  Andreas Schwab  <schwab@suse.de>
2747         * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
2748         (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
2749         use lib64 instead of lib.
2750         (_LP64) [_ARCH_PPC64]: Define if not defined.
2752 2005-04-23  David Hunter  <hunterd42@comcast.net>  (tiny change)
2754         * s/ms-w32.h (HAVE_PWD_H): Define.
2756 2005-04-22  Kenichi Handa  <handa@m17n.org>
2758         * fns.c (copy_sub_char_table): Explicitly copy the default value
2759         of the sub-chartable.
2761         * fontset.c (fontset_set): When a sub-chartable is created,
2762         explicitly sets the defalt value.
2764 2005-04-22  Kim F. Storm  <storm@cua.dk>
2766         * fns.c (Fplist_get): Replace by Fsafe_plist_get.
2767         (Fsafe_plist_get): Rename to Fplist_get.
2768         (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
2769         (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
2771         * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
2773         * xdisp.c (store_mode_line_string, produce_stretch_glyph)
2774         (note_mode_line_or_margin_highlight, note_mouse_highlight):
2775         Use Fplist_get instead of Fsafe_plist_get.
2777         * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
2779 2005-04-21  Miles Bader  <miles@gnu.org>
2781         * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
2783 2005-04-20  Thien-Thi Nguyen  <ttn@gnu.org>
2785         * sysdep.c: Remove reference to defunct vms-pwd.h.
2786         * dired.c: Likewise.  Also, for pwd.h, use HAVE_PWD_H, not !VMS.
2787         * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
2789         * config.in: Regenerate.
2791 2005-04-20  Kenichi Handa  <handa@m17n.org>
2793         * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
2794         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
2795         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
2797         * alloc.c (make_sub_char_table): Argument changed to initial
2798         value of the slots.
2800         * data.c (Faref): Handle special slots used as default values of
2801         ascii, eight-bit-control, eight-bit-control.  Don't ignore a
2802         default value set for a group of characters.
2803         (Faset): Signal an error if IDXVAL is not a valid character code.
2804         Make a sub-chartable with correct initial value.
2806         * fns.c (Fset_char_table_range): Don't set slots used as default
2807         values for ascii, eight-bit-control, eight-bit-graphic.
2808         Don't call Faref with charset-id.
2809         (Fset_char_table_default): Document how to treat normal character
2810         argument.  Handle special slots used as default values of ascii,
2811         eight-bit-control, eight-bit-control.  Make a sub chartable if
2812         necessary.
2814 2005-04-20  Kenichi Handa  <handa@m17n.org>
2816         * search.c (boyer_moore): Fix previous change.
2818 2005-04-19  Kim F. Storm  <storm@cua.dk>
2820         * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
2821         face unless last visible char and first invisible char have the
2822         same face.  Also use default face if saved_face_id is undefined.
2824 2005-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2826         * macgui.h (MacFontStruct): Remove member `fontname'.  Add member
2827         `full_name'.
2828         [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
2829         mac_scriptcode member.
2831         * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
2832         (syms_of_mac): Don't initialize them.
2833         (Vmac_charset_info_alist): New variable.
2834         (syms_of_mac): Defvar it.
2835         (create_text_encoding_info_alist): New function.
2836         (decode_mac_font_name, mac_to_x_fontname)
2837         (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
2838         code the correspondence among XLFD charsets, Mac script codes, and
2839         Emacs coding systems.  Use Vmac_charset_info_alist and result of
2840         create_text_encoding_info_alist instead.
2841         (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
2842         routines also on Mac OS Classic.
2843         (init_font_name_table) [!TARGET_API_MAC_CARBON]:
2844         Use add_font_name_table_entry.
2845         (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
2846         specified.  Derive unspecified scalable fields from specified one.
2847         (x_list_fonts): Consider Valternate_fontname_alist.
2848         (kDefaultFontSize): Change value from 9 to 12.
2849         (XLoadQueryFont): Get decoded font family, font face, and charset
2850         from x_font_name_to_mac_font_name.  Set full name of loaded font.
2851         (mac_unload_font): Free `full_name' member.
2852         (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
2853         NULL.  Copy full_name member of struct MacFontStruct to that of
2854         struct font_info.
2856 2005-04-19  Kim F. Storm  <storm@cua.dk>
2858         * xdisp.c (handle_stop): Set saved_face_id to current face if
2859         selective_display_ellipsis_p so ellipsis will be shown in same
2860         face as preceding text.
2861         (setup_for_ellipsis): Don't set saved_face_id here.
2862         (next_element_from_display_vector): Default to saved_face_id.
2864         * fns.c (Fsafe_get): New function.
2865         (syms_of_fns): Defsubr it.
2867         * lisp.h (Fsafe_get): EXFUN it.
2869         * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
2870         loops in case of bad face property lists.  Limit number of face
2871         alias lookups to 10 (in case of face alias loops).
2873 2005-04-18  Kim F. Storm  <storm@cua.dk>
2875         * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
2876         It replaces the corresponding member from struct window, as a
2877         window may now show multiple overlay arrows.
2878         Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
2880         * dispnew.c (row_equal_p, update_window_line, scrolling_window):
2881         Compare overlay_arrow_bitmap than overlay_arrow_p members.
2883         * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
2884         rather than from window.
2885         (update_window_fringes): Compare overlay_arrow_bitmap rather than
2886         overlay_arrow_p members.
2887         (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
2888         if not default.
2890         * window.h (struct window): Remove member overlay_arrow_bitmap.
2892         * window.c (make_window): Don't initialize overlay_arrow_bitmap.
2894         * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
2895         Calls changed.  Don't check for overlay-arrow-bitmap property here.
2896         (overlay_arrow_at_row): Remove PBITMAP arg.  Instead, if left
2897         fringe is present, return Lisp integer for bitmap (or -1 for default).
2898         Fix value of overlay-arrow-bitmap property to be a symbol, use
2899         lookup_fringe_bitmap to parse it.
2900         (display_line): Change call to overlay_arrow_at_row.  Store integer
2901         return value as overlay bitmap in row rather than window.
2902         Only show overlay arrow if row displays text, or if no other overlay
2903         arrow is seen in window (if overlay marker is at point-max).
2905 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
2907         * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
2909 2005-04-18  Lute Kamstra  <lute@gnu.org>
2911         * lread.c (Vloads_in_progress): Static.
2912         * fns.c (Vloads_in_progress): Remove extern.
2913         (load_in_progress): Add extern.
2914         (Frequire): Use load_in_progress instead of Vloads_in_progress.
2916 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
2918         * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
2920 2005-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2922         * macterm.c (XTread_socket): Don't beep on keyboard input even if
2923         no frame is visible.
2925 2005-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
2927         * term.c (struct keys): Add support for shifted keys.
2929 2005-04-16  Richard M. Stallman  <rms@gnu.org>
2931         * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
2932         (set_message): Call with_echo_area_buffer with WHICH = 0.
2933         (set_message_1): Erase the echo area buffer first thing.
2934         (echo_area_display): Don't clear echo_message_buffer.
2936 2005-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2938         * Makefile.in (mac.o): Depend on charset.h and coding.h.
2940         * mac.c: Include charset.h and coding.h.
2941         [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
2942         [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
2943         [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
2945         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2947         * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
2949         * macterm.c (x_autoselect_window_p): Remove variable.
2950         (last_window): New variable.
2951         (XTreassert_line_highlight, x_change_line_highlight):
2952         Remove declarations.
2953         (mac_focus_changed, x_detect_focus_change): New functions and
2954         declarations.
2955         (XTextExtents16, front_emacs_window): Remove function.
2956         (mac_focus_frame): New function.
2957         (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
2958         (mac_check_for_quit_char): Use it instead of front_emacs_window.
2959         (x_scroll_bar_report_motion): Obtain window from control owner.
2960         (x_make_frame_invisible): Set window manager size hint.
2961         (do_mouse_moved): Remove function.
2962         (XTread_socket): Move its contents here.  Generate select-window
2963         event on mouse movement if needed.  Use x_detect_focus_change on
2964         activate/deactivate events.  Don't deiconify frame or invalidate
2965         window rectangle when dnd items are dropped.
2966         Don't activate/deactivate root control.
2967         (frame_highlight, frame_unhighlight): Activate/deactivate root
2968         control here.
2969         (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
2971         * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
2972         New extern.
2974 2005-04-15  Luc Teirlinck  <teirllm@auburn.edu>
2976         * Makefile.in: Define new macro TOOLTIP_SUPPORT.
2977         (lisp): Use it.
2978         (SOME_MACHINE_LISP): Add tooltip.
2980 2005-04-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2982         * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
2983         Don't include TextEncodingConverter.h.
2984         (mac_system_script_code, Vmac_system_locale): New variables.
2985         (syms_of_mac): Defvar them.
2986         (mac_get_system_locale): New function.
2988         * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
2989         Use ENCODE_SYSTEM to encode title bar string.
2990         (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
2991         (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
2992         Use CFStringGetSystemEncoding to get system default string encoding.
2994         * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
2995         TextEncodingConverter.h.
2997 2005-04-13  Steven Tamm  <steventamm@mac.com>
2999         * macterm.c (syms_of_macterm): Remove redundant definition of
3000         mac-pass-control-to-system.
3002 2005-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3004         * window.c (Fset_window_configuration): Be careful when you choose
3005         among several possible points for the new_current_buffer.
3007 2005-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3009         * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
3010         poll_for_input_1.  Set interrupt_input_pending to 1 instead.
3011         (Qlanguage_change) [MAC_OS]: New variable.
3012         (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
3013         (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
3015         * macterm.c (mac_keyboard_text_encoding)
3016         (current_mac_keyboard_text_encoding): Remove variables.
3017         (XTread_socket): Store language-change event if keyboard script change
3018         is detected.  Don't convert input to `mac_keyboard_text_encoding'.
3019         (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
3021         * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
3023 2005-04-10  Richard M. Stallman  <rms@gnu.org>
3025         * emacs.c (standard_args): Rename --bare-bones to --quick.
3026         Add -D aka --basic-display.
3028         * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
3030 2005-04-09  Richard M. Stallman  <rms@gnu.org>
3032         * keymap.c (where_is_internal): Convert a string used as event type
3033         into "(any string)".
3035         * lread.c (Vloads_in_progress): Not static.
3036         * fns.c (Vloads_in_progress): Add extern.
3037         (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
3039 2005-04-09  Thien-Thi Nguyen  <ttn@surf.glug.org>
3041         * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
3043 2005-04-09  Lute Kamstra  <lute@gnu.org>
3045         * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
3046         within the accessible part of the buffer.
3048 2005-04-09  Kim F. Storm  <storm@cua.dk>
3050         * lread.c (readevalloop): Add args START and END as region in
3051         current buffer to read.  Callers changed.
3052         When specified, narrow to this region only when reading,
3053         not during eval.  Track next point to read from during eval.
3054         Also restore point to "real" buffer position before eval.
3055         (Feval_region): Don't save excursion and restriction here, and
3056         don't narrow to region.  Just pass region to readevalloop.
3057         Note: Point is now preserved even when PRINTFLAG is nil.
3059 2005-04-08  Kim F. Storm  <storm@cua.dk>
3061         * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
3063 2005-04-06  Kim F. Storm  <storm@cua.dk>
3065         * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
3067 2005-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3069         * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
3070         (Fmac_get_preference): Doc fix.
3072         * macfns.c (Fx_create_frame, x_create_tip_frame):
3073         Add "fontset-mac" to fallback font/fontsets.
3075 2005-04-04  Kim F. Storm  <storm@cua.dk>
3077         * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
3079         * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
3080         Call it again after autoload.
3082 2005-04-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3084         * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
3085         mallopt.
3087         * ralloc.c (r_alloc_init): Ditto.
3089 2005-04-01  Kenichi Handa  <handa@m17n.org>
3091         * lisp.h (Vascii_upcase_table, Vascii_canon_table)
3092         (Vascii_eqv_table): Extern them.
3094         * casetab.c (set_case_table): If standard is nonzero, setup
3095         Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
3097         * search.c (looking_at_1): Use current_buffer->case_canon_table,
3098         not DOWNCASE_TABLE.
3099         (string_match_1): Likewise.
3100         (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
3101         Vascii_downcase_table.
3102         (fast_string_match_ignore_case): Likewise.
3103         (search_buffer): Fix checking of boyer-moore usability.
3104         (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
3105         No need of tranlating characters in PAT.  Fix calculation of
3106         simple_translate.
3108 2005-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
3110         * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
3111         (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
3112         Use XtNtopShadowPixel and XtNbottomShadowPixel.
3113         (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
3114         really work and that breaks with some versions of Xaw3d.
3116 2005-03-31  Kenichi Handa  <handa@m17n.org>
3118         * coding.c (syms_of_coding): Fix previous change.
3120 2005-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
3122         * fileio.c (search_embedded_absfilename): Fix last change.
3124 2005-03-25  Kenichi Handa  <handa@m17n.org>
3126         * coding.c (syms_of_coding): Suggest to use set-coding-category in
3127         the docstring of coding-category-list.
3129 2005-03-31  Kim F. Storm  <storm@cua.dk>
3131         * keyboard.c (Qmouse_fixup_help_message): New var.
3132         (syms_of_keyboard): Intern and staticpro it.
3133         (show_help_echo): Apply mouse-fixup-help-message to help string.
3135 2005-03-30  Kim F. Storm  <storm@cua.dk>
3137         * xdisp.c (display_line): Allow multiple overlay arrows in window.
3139 2005-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3141         * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
3142         (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
3143         (Ffile_name_absolute_p): Use it.
3144         (search_embedded_absfilename): New fun, extracted from
3145         Fsubstitute_in_file_name.  Use file_name_absolute_p.
3146         Free the pw data after use.
3147         (Fsubstitute_in_file_name): Use it.
3148         After cutting a prefix, re-check file-name-handler.
3150 2005-03-26  Lennart Borgman  <lennart.borgman.073@student.lu.se>
3152         * w32term.h (x_output): Add focus_state.
3154         * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
3155         (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
3157 2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
3159         * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
3160         Use Fexit_minibuffer.
3161         (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
3163 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
3165         * dired.c (Ffile_attributes): Add a missing gcpro.
3167         * alloc.c (make_number): The arg can be bigger than `int'.
3168         * lisp.h (make_number): Make prototype more precise.
3170         * process.c, dired.c (Vfile_name_coding_system)
3171         (Vdefault_file_name_coding_system):
3172         * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
3173         (Vdefault_file_name_coding_system): Remove unused declarations.
3175 2005-03-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3177         * xmenu.c (create_and_show_popup_menu): Just remove menu and return
3178         if it failed to pop up (Gnome "show pointer on ctrl" option makes
3179         menus fail to pop up).
3181 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
3183         * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
3184         Just prepend a backslash without replacing the NBSP by an SPC.
3186 2005-03-22  Kim F. Storm  <storm@cua.dk>
3188         * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
3189         * dispextern.h (lookup_derived_face): Fix prototype.
3190         * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
3192         * xdisp.c (handle_single_display_spec): Derive left-fringe and
3193         right-fringe face from fringe face.
3195         * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
3196         Derive face from fringe face.
3198 2005-03-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3200         * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
3202 2005-03-22  David Kastrup  <dak@gnu.org>
3204         * textprop.c (Fnext_char_property_change)
3205         (Fprevious_char_property_change): Allow marker as limit.
3206         (Fnext_single_char_property_change)
3207         (Fprevious_single_char_property_change): Check that limit is a
3208         number in strings.
3209         (Fnext_single_char_property_change): Coerce position to integer.
3210         (Fprevious_single_char_property_change): Same here.
3212 2005-03-21  Thien-Thi Nguyen  <ttn@gnu.org>
3214         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
3216 2005-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3218         * frame.c (Fignore_event): Remove.
3219         (syms_of_frame): Don't defsubr it.
3221         * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
3222         redundant `ignore-event'.
3224 2005-03-19  Eli Zaretskii  <eliz@gnu.org>
3226         * unexec.c (write_segment, unexec): Move these functions to avoid
3227         forward references (which cause errors with "gcc -gcoff").
3229 2005-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3231         * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
3232         that it doesn't become "tooltip".  The specbind is enough.
3234         * xrdb.c (x_load_resources): Use different char *helv when I18N
3235         is present.
3237 2005-03-17  Kenichi Handa  <handa@m17n.org>
3239         * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
3241 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
3243         * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
3244         Use xic_create_fontsetname even for non-Motif menus.
3245         Don't forget to free the fontsetname.
3247         * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
3249 2005-03-17  Richard M. Stallman  <rms@gnu.org>
3251         * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
3253         * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
3254         (Fmake_symbolic_link): Use G to read the new file name.
3256         * callint.c (Finteractive): Document G option.
3257         (Fcall_interactively): Implement G option.
3259         * buffer.c (buffer_lisp_local_variables): New function,
3260         broken out from Fbuffer_local_variables.
3261         (clone_per_buffer_values): Use buffer_lisp_local_variables.
3263 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
3265         * xfns.c (xic_create_fontsetname): Add `motif' argument.
3266         Always return a freshly allocated string.
3267         (xic_create_xfontset): Adjust call.
3269         * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
3270         Use xic_create_fontsetname to create a fontset so utf-8 locales work.
3271         (dump_realized_face): Fix warning.
3273         * emacs.c (Fkill_emacs): YAILOM.
3275         * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
3277 2005-03-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3279         * mac.c (HASHKEY_TERMINAL): Remove.
3280         (HASHKEY_MAX_NID): New macro.
3281         (xrm_q_get_resource_1): Rename from xrm_q_get_resource.  Add extra
3282         argument.
3283         (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
3284         (xrm_create_database, xrm_q_put_resource)
3285         (xrm_merge_string_database, xrm_q_get_resource_1)
3286         (xrm_q_get_resource): Change resource database representation so
3287         that it may not use multiple hash tables for a single database.
3288         [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
3290 2005-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
3292         * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
3294         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
3295         locale-coding-system, as was already done for WINDOWSNT.
3297         * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
3298         translation for chars in the 0-255 range.
3300 2005-03-16  Lute Kamstra  <lute@gnu.org>
3302         * floatfns.c (Ffloor): Doc fix.
3304 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3306         * mac.c: Include macterm.h instead of directly including Carbon.h.
3307         [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
3308         (Qarray, Qdictionary): New variables.
3309         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3310         [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3311         [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
3312         [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
3313         in callback for CFDictionaryApplyFunction.
3314         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3315         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3316         (cfobject_desc_to_lisp, cfdictionary_add_to_list)
3317         (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
3318         [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
3319         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3320         (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3321         (skip_white_space, parse_comment, parse_include_file)
3322         (parse_binding, parse_component, parse_resource_name, parse_value)
3323         (parse_resource_line, xrm_create_database, xrm_q_put_resource)
3324         (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
3325         (xrm_cfproperty_list_to_value, xrm_get_preference_database):
3326         New functions.
3328         * macfns.c (mac_get_rdb_resource): Remove function.
3329         (x_get_string_resource): Use xrm_get_resource.
3331         * macgui.h (XrmDatabase): Typedef to Lisp_Object.
3333         * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
3334         name_list_element.
3335         (mac_make_rdb): Create resource database from preferences and
3336         argument string.
3337         (mac_term_init): Save resource database to cddr part of
3338         name_list_element.
3340         * macterm.h (xrm_merge_string_database, xrm_get_resource)
3341         (xrm_get_preference_database): Add externs.
3342         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3343         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3344         (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
3346         * process.c (init_process): Change `#ifdef DARWIN' to `#if
3347         defined (DARWIN) || defined (MAC_OSX)'
3349         * s/darwin.h (DARWIN): Don't define.
3351 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3353         * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
3354         Remove unused variables.
3355         (syms_of_macfns): Don't initialize them.  Likewise for
3356         Qface_set_after_frame_default.  Defvar and initialize
3357         Vx_window_horizontal_drag_shape.
3358         (x_set_mouse_color): Change mouse pointer shape.
3359         (mac_window) [!MAC_OSX]: Create root control.
3360         (Fx_create_frame): Remove initializations of mouse pointer shapes.
3361         (hourglass_started): New function (from xfns.c).
3362         (start_hourglass, cancel_hourglass): Put function body in #ifdef
3363         MAC_OSX.
3364         (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
3365         indicator for each non-tooltip frame if needed, and show it.
3366         (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
3368         * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
3369         Controls.h.  Use ThemeCursor instead of CursHandle.
3371         * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
3372         Remove functions and declarations.
3373         (mac_set_colors): Take argument for saving background color.
3374         All callers changed.
3375         (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
3376         (mac_draw_rectangle, mac_draw_string_common): Save and Restore
3377         background color.
3378         (x_update_end, mac_do_track_drag): Don't reset background color.
3379         (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
3380         Use SetThemeCursor.
3381         (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
3382         indicator control to the upper-right corner of the window.
3383         (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
3384         (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
3385         (do_window_update): Update controls after updating content area.
3386         (mac_handle_window_event): Remove unused extern.
3387         (XTread_socket): Check both control handle and control part code
3388         to determine whether a scroll bar is clicked.  Activate/deactivate
3389         root control instead of contained scroll bar controls.
3390         (make_mac_terminal_frame): Use ThemeCursor constants.
3392         * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
3393         New member hourglass_control.
3394         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
3395         (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
3397 2005-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3399         * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
3400         coincides with that in Apple X11 except `clear', `enter' on
3401         laptops, and fn + `enter' on laptops.
3403 2005-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3405         * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
3406         (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
3407         (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
3409         * xfns.c (xic_defaut_fontset): New constant.
3410         (xic_create_fontsetname): New function.
3411         Extracted from create_frame_xic.  Try to generate a slightly
3412         better fontset.
3413         (xic_create_xfontset): Use it.
3414         (create_frame_xic): Simplify.
3416 2005-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
3418         * fileio.c (Fmake_symbolic_link): Fix last change.
3420 2005-03-11  Richard M. Stallman  <rms@gnu.org>
3422         * fileio.c (Frename_file, Fadd_name_to_file)
3423         (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
3424         expand the basename of FILE relative to it.
3426 2005-03-11  Kenichi Handa  <handa@m17n.org>
3428         * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
3429         before calling setup_coding_system so that autoloading of a coding
3430         system work.
3432 2005-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3434         * xfns.c (hourglass_started): New function.
3436         * dispextern.h: Declare hourglass_started.
3438         * keyboard.c (Fexecute_extended_command): Restart hourglass
3439         after call to Fcompleting_read if already started.
3441         * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
3442         GTK main loop is entered in xterm.c, thus doing the redraw.
3444 2005-03-10  Kim F. Storm  <storm@cua.dk>
3446         * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
3448 2005-03-08  Kenichi Handa  <handa@m17n.org>
3450         * frame.c (x_set_font): Call set_default_ascii_font if an
3451         available font is found.
3453         * fontset.c (set_default_ascii_font): New function.
3454         (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
3456         * fontset.h (set_default_ascii_font): Extern it.
3458 2005-03-07  Kim F. Storm  <storm@cua.dk>
3460         * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
3461         (clear_image_cache_count): New var.
3462         (redisplay_internal): Don't clear face and image caches in the
3463         middle of redisplay; do it afterwards.
3465         * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
3467         * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
3468         is valid.  If not, clear phys_cursor_on_p and return.
3470 2005-03-07  Andreas Schwab  <schwab@suse.de>
3472         * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
3474 2005-03-06  Richard M. Stallman  <rms@gnu.org>
3476         * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
3478         * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
3479         (Feval, Ffuncall): Use CHECK_CONS_LIST.
3481         * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
3483         * blockinput.h (UNBLOCK_INPUT_TO): New macro.
3484         (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
3486 2005-03-05  Juri Linkov  <juri@jurta.org>
3488         * emacs.c (USAGE1): Replace Info node name "command arguments"
3489         with "emacs invocation".
3490         (USAGE3): Fix usage of `--color=MODE' which actually doesn't
3491         allow arguments `--color' and `MODE' to be separated by space.
3492         Add --no-blinking-cursor, -nbc.
3493         (standard_args): Add -nbc, --no-blinking-cursor.
3495 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
3497         * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
3498         * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
3499         * fileio.c (Fexpand_file_name) [VMS]:
3500         Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
3501         * doc.c (munge_doc_file_name) [VMS]: Likewise.
3502         (Fsnarf_documentation): Call munge_doc_file_name.
3504 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
3506         * s/vms.h (FILE_SYSTEM_CASE): New macro.
3507         * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
3508         "manually"; this is now handled generally via FILE_SYSTEM_CASE.
3510 2005-03-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3512         * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
3513         defined (MAC_OSX) && defined (HAVE_CARBON)'.
3515         * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
3517         * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3518         [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
3519         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
3520         (mac_clear_font_name_table): Move extern to macterm.h.
3522         * macfns.c (install_window_handler): Move extern to macterm.h.
3523         (Fx_file_dialog): Check STRINGP (default_filename) to see it is
3524         valid.  Don't check !NILP (dir) because it is already checked with
3525         CHECK_STRING.
3526         (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
3527         specifying the default location and obtaining the selected filename.
3529         * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3531         * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
3532         are included via Carbon.h.
3534         * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
3535         Define USE_CARBON_EVENTS to 1.
3536         (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
3537         (x_free_frame_resources): Call remove_window_handler for
3538         non-tooltip windows.
3539         [TARGET_API_MAC_CARBON]: Don't include headers that are included
3540         via Carbon.h.
3541         [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3542         (mac_do_receive_dragUPP): New variables.
3543         (mac_handle_service_event, init_service_handler): Put declarations
3544         and definitions in #ifdef MAC_OSX.
3545         (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
3546         drag-and-drop handler functions and register them.
3547         (remove_window_handler): New function.
3548         (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
3549         Use fsspec_to_posix_pathname.
3550         (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
3551         (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
3552         [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
3553         Set default cursors.
3554         (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
3555         init_service_handler or init_quit_char_handler.
3556         (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
3558         * macterm.h (install_window_handler, remove_window_handler)
3559         (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
3560         (mac_clear_font_name_table): New externs.
3562 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
3564         * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
3565         (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
3566         (Fexpand_file_name): Likewise.
3568 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
3570         * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
3571         no longer special-case VMS.  Add bogus return value.
3573 2005-03-02  Kim F. Storm  <storm@cua.dk>
3575         * dispextern.h (XASSERTS): Define to 0 if not already defined.
3576         (xassert) [!XASSERTS]: Define dummy version.
3578 2005-03-02  Kim F. Storm  <storm@cua.dk>
3580         * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
3581         Reported by David Kastrup.
3583 2005-03-01  Ehud Karni  <ehud@unix.mvs.co.il>
3585         * xdisp.c (get_next_display_element): Fix control and escape
3586         glyph from display vector.
3588 2005-03-01  Stefan Monnier  <monnier@iro.umontreal.ca>
3590         * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
3592 2005-02-27  Richard M. Stallman  <rms@gnu.org>
3594         * xdisp.c (fast_find_position): Rename END to BEG.
3595         (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
3597 2005-02-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3599         * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
3600         gtk_window_resize and x_wm_set_size_hint.
3602 2005-02-25  Kim F. Storm  <storm@cua.dk>
3604         * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
3606         * xdisp.c (init_from_display_pos): Don't read past end of
3607         it->overlay_strings array.
3609 2005-02-25  Stephan Stahl  <stahl@eos.franken.de>  (tiny change)
3611         * buffer.c (syms_of_buffer): Fix typo.
3613 2005-02-23  Lute Kamstra  <lute@gnu.org>
3615         * buffer.c (Foverlay_buffer): Doc fix.
3617 2005-02-22  Kim F. Storm  <storm@cua.dk>
3619         * minibuf.c (Ftry_completion, Fall_completions): Allow both string
3620         and symbol keys in alists and hash tables.
3622         * xdisp.c (fast_find_position): Fix search for start of overlay.
3624 2005-02-21  Kim F. Storm  <storm@cua.dk>
3626         * window.c (window_scroll_pixel_based): When scrolling backwards,
3627         handle partial visible line at end of window even when we hit PT.
3629 2005-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
3631         * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
3633 2005-02-21  Kim F. Storm  <storm@cua.dk>
3635         * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
3636         I think those asserts are bogus if buffer contains invisible text
3637         or images.
3639 2005-02-21  David Kastrup  <dak@gnu.org>
3641         * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
3643 2005-02-20  Kim F. Storm  <storm@cua.dk>
3645         * xdisp.c (pos_visible_p): Be sure to move to the specified
3646         position.  Always get the full ascent / descent of the
3647         corresponding row, to return reliable rtop and rbot values.
3648         (back_to_previous_visible_line_start): Fix 2005-01-18 change.
3649         Must look one character back, as back_to_previous_line_start
3650         returns position after the newline.
3651         (move_it_vertically_backward): Fix heuristic for when to move further
3652         back in case line_height * 2/3 is larger than window height.
3653         (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
3654         as it does not do anything anymore.  Add arg current_matrix_p to
3655         use current matrix rather than desired matrix when set.
3656         (try_cursor_movement): Don't scroll to make cursor row fully
3657         visible if cursor didn't move.  This avoids unexpected recentering
3658         in case of blinking cursor or accepting process output.
3659         Use current matrix to check cursor row visibility.
3660         (redisplay_window): Fix whether to recenter or move to top in case
3661         cursor line is taller than window height.
3662         (find_first_unchanged_at_end_row): Stop search if we reach a row
3663         which not enabled (instead of abort).
3665 2005-02-18  Kim F. Storm  <storm@cua.dk>
3667         * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
3668         to be nil in a :box attribute value list; customize prints that
3669         as lisp value when no box color is specified.
3671         * .gdbinit (pitx, pit): Pretty print display iterator.
3672         (prowx, prow): Pretty print glyph row.
3673         (pcursorx, pcursor): Pretty print a window cursor.
3674         (pwinx, pwin): Pretty print struct window.
3676 2005-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
3678         * alloc.c (BLOCK_BYTES): Harmless typo.
3680 2005-02-17  Andreas Schwab  <schwab@suse.de>
3682         * xfns.c (hack_wm_protocols): Use correct type for last parameter
3683         of XGetWindowProperty to avoid aliasing issues.
3684         (Fx_window_property): Likewise.
3686         * xselect.c (Fx_disown_selection_internal): Use union of struct
3687         input_event and struct selection_input_event to avoid aliasing issues.
3689         * xterm.c (handle_one_xevent): Use union of struct input_event and
3690         struct selection_input_event to avoid aliasing issues.
3691         (SET_SAVED_MENU_EVENT): Adapt reference to inev.
3693 2005-02-17  Kim F. Storm  <storm@cua.dk>
3695         * dispextern.h (enum it_method): New enum.
3696         (GET_FROM_*): Its members.
3697         (struct it): Change member method from function pointer to enum.
3699         * xdisp.c (check_it, init_from_display_pos, handle_stop)
3700         (setup_for_ellipsis, handle_single_display_spec)
3701         (handle_composition_prop, next_overlay_string)
3702         (get_overlay_strings, reseat_1, reseat_to_string)
3703         (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
3704         (in_display_vector_p, display_line, get_next_display_element):
3705         Change it->method from function pointer to enum.
3706         (get_next_element): New array to map it->method to function.
3707         (get_next_display_element): Use it.
3708         (set_iterator_to_next): Use switch instead of if/else chain.
3710 2005-02-15  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
3712         * w32select.c: Summary: Thorough rework to implement Unicode
3713         clipboard operations and delayed rendering.
3715         Drop last_clipboard_text and related code, keep track of
3716         ownership via clipboard_owner instead.  Drop old #if0 sections.
3718         (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
3719         (clipboard_owner, modifying_clipboard, cfg_coding_system)
3720         (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
3721         (current_coding_system, current_requires_encoding)
3722         (current_num_nls, current_clipboard_type, current_lcid):
3723         New static variables.
3725         (convert_to_handle_as_ascii, convert_to_handle_as_coded)
3726         (render, render_all, run_protected, lisp_error_handler)
3727         (owner_callback, create_owner, setup_config)
3728         (enum_locale_callback, cp_from_locale, coding_from_cp):
3729         New local functions.
3731         (term_w32select, globals_of_w32select): New global functions.
3733         (Fw32_set_clipboard_data): Ignore parameter FRAME, use
3734         clipboard_owner instead.  Use delayed rendering and provide
3735         all text formats.  Provide CF_LOCALE if necessary.
3737         (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
3738         CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
3739         available.  Force DOS line-ends for decoding.
3741         (Fx_selection_exists_p): Handle CF_UNICODETEXT.
3743         (syms_of_w32select): Init and register new variables.
3745         * w32.h: Add prototypes for globals_of_w32select and
3746         term_w32select.  Make the neighboring K&R declarations into
3747         prototypes, too.
3749         * emacs.c: Include w32.h to get function prototypes.
3750         (main): Call globals_of_w32select.
3752         * w32.c (term_ntproc): Call term_w32select.
3754         * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
3756 2005-02-16  Kim F. Storm  <storm@cua.dk>
3758         * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
3759         at end of display vector.
3761 2005-02-15  Richard M. Stallman  <rms@gnu.org>
3763         * xdisp.c (get_next_display_element): Fix escape-glyph criterion
3764         for mode and header lines.
3766         * lread.c (syms_of_lread) <user-init-file>: Doc fix.
3768         * keymap.h (describe_map_tree): Change decl.
3770         * keyboard.c (command_loop_1): Always use safe_run_hooks
3771         to run Qdeferred_action_function.
3773         * keymap.c (describe_map_tree): New arg MENTION_SHADOW.  Calls changed.
3774         (describe_map, describe_vector): Likewise.  When it's 1,
3775         don't omit shadowed bindings, instead mark them as shadowed.
3777         * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
3778         for describe_map_tree.  Pass 1 for MENTION_SHADOW.
3780         * data.c (Fsetq_default): Allow no arg case.
3782 2005-02-14  Kenichi Handa  <handa@m17n.org>
3784         * coding.c (encode_coding_string): Always return a unibyte string.
3785         If NOCOPY is nonzero and there's no need of encoding, make STR
3786         unibyte directly.
3788         * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
3789         multibyte string, signal an error instead of aborting.
3791 2005-02-12  Dan Nicolaescu  <dann@ics.uci.edu>
3793         * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
3795 2005-02-12  Kim F. Storm  <storm@cua.dk>
3797         * xdisp.c (expose_window): Don't fix overlaps for mode lines.
3799 2005-02-10  Kim F. Storm  <storm@cua.dk>
3801         * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
3802         if it moves outside window or it doesn't display text.
3804 2005-02-09  Kim F. Storm  <storm@cua.dk>
3806         * undo.c (Fprimitive_undo): Check that undo function does not
3807         switch buffer.
3809 2005-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3811         * xselect.c (selection_data_to_lisp_data): For the special case
3812         type == XA_ATOM, data contains array of int, not array of Atom.
3813         (x_property_data_to_lisp, selection_data_to_lisp_data):
3814         Comment update: data must be array of int for format == 32.
3816 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
3818         * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
3820 2005-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3822         * xfns.c (Fx_change_window_property): Use long array when format is 32.
3823         (Fx_window_property): If format is 32 and long is bigger than 32 bits,
3824         convert long array returned from XGetWindowProperty to an int array.
3825         (x_set_tool_bar_lines): Check that width and height is greater than
3826         zero before clearing area.
3828         * xselect.c (x_reply_selection_request): Pass long array to
3829         XChangeProperty so that 64 bit longs are handeled correctly.
3830         (x_get_window_property): If format is 32 and long is bigger than 32
3831         bits convert data from XGetWindowProperty from long array to int array.
3832         (lisp_data_to_selection_data): When the input is a vector and the
3833         format is 32, allocate a long array even if long is bigger than 32 bits.
3834         (x_fill_property_data): Use char, short and long as the man page
3835         for XChangeProperty specifies.  This way the data returned is OK for
3836         both 32 and 64 bit machines.
3837         (x_handle_dnd_message): Calculate size correctly even for 64 bit
3838         machines.
3839         (Fx_send_client_event): Undo change from 2005-02-05,
3840         x_fill_property_data now handles that case.
3842         * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3843         reason for the approach in the code.
3845 2005-02-07  Kim F. Storm  <storm@cua.dk>
3847         * undo.c (Fprimitive_undo): Record max one dummmy apply element.
3849 2005-02-06  Richard M. Stallman  <rms@gnu.org>
3851         * eval.c (Frun_hook_with_args)
3852         (Frun_hook_with_args_until_success)
3853         (Frun_hook_with_args_until_failure): Doc fixes.
3855 2005-02-05  Andreas Schwab  <schwab@suse.de>
3857         * sysdep.c (sys_subshell): Properly terminate execlp argument list.
3859 2005-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3861         * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
3862         the longs in a XClientMessageEvent correctly when long is 64 bits.
3864 2005-02-05  Eli Zaretskii  <eliz@gnu.org>
3866         * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
3867         instead of HAVE_X_WINDOWS, for non-X windowed sessions.
3869 2005-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3871         * xmenu.c (menubar_selection_callback): Force out GTK buffered
3872         events so the menu event comes after them.  This is to prevent sit-for
3873         from exiting on buffered events directly after a menu selection,
3874         lisp code for Help => About Emacs uses sit-for.
3876         * gtkutil.c (create_menus): Connect selection-done event instead of
3877         the deactivate event to deactivate_cb.  This will make the last
3878         leave event come before the call to deactivate_cb, so the leave
3879         event does not make sit-for exit after a menu selection.
3881 2005-02-03  Kim F. Storm  <storm@cua.dk>
3883         * dispnew.c (build_frame_matrix_from_leaf_window)
3884          [!GLYPH_DEBUG]: Fix xassert.
3886         * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
3888         * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3890 2005-02-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3892         * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
3893         the compiling OS version.
3895         * macfns.c (x_create_tip_frame): Likewise.
3897         * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
3899 2005-02-03  Richard M. Stallman  <rms@gnu.org>
3901         * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
3903         * xdisp.c (echo_area_display): Clear echo_message_buffer.
3905         * buffer.c (Fbury_buffer): Doc fix.
3907 2005-02-02  Steven Tamm  <steventamm@mac.com>
3909         * macfns.c (unwind_create_frame): Fix compile error due to
3910         xassert being uncondition, but predicate is.
3911         * dispnew.c (update_window): Fix compile error due to
3912         xassert being uncondition, but predicate is.
3914 2005-02-02  Miles Bader  <miles@gnu.org>
3916         * dispextern.h (xassert): Enable unconditionally.
3918 2005-02-02  Kim F. Storm  <storm@cua.dk>
3920         * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
3922 2005-02-02  Kenichi Handa  <handa@m17n.org>
3924         * casefiddle.c (casify_object): Enable changing characters of
3925         different byte length.
3926         (casify_region): Fix loop condition, args to replace_range_2, and
3927         update opoint_byte.
3929         * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
3931 2005-02-01  Kim F. Storm  <storm@cua.dk>
3933         * xdisp.c (back_to_previous_visible_line_start): Reset iterator
3934         stack before calling handle_display_prop.
3936 2005-01-31  Kim F. Storm  <storm@cua.dk>
3938         * undo.c (Qapply): New lisp var.
3939         (syms_of_undo): Intern and staticpro it.
3940         (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
3941         (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
3943         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3945 2005-01-30  Jesper Harder  <harder@phys.au.dk>
3947         * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
3948         <mac-emulate-three-button-mouse>: Fix docstring indentation.
3950 2005-01-29  Luc Teirlinck  <teirllm@auburn.edu>
3952         * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
3953         Increase value to 3 Meg.
3955 2005-01-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3957         * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
3958         button events are not received otherwise.
3960 2005-01-29  Richard M. Stallman  <rms@gnu.org>
3962         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3964         * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
3966 2005-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3968         * keymap.c (access_keymap): YAILOM.
3970 2005-01-27  Kim F. Storm  <storm@cua.dk>
3972         * xdisp.c (get_phys_cursor_geometry): New function to calculate
3973         phys cursor position and size for hollow cursor.  Position is
3974         aligned with get_glyph_string_clip_rect and ensures that a hollow
3975         cursor is shown, even when the actual glyph is not visible.
3977         * dispextern.h (get_phys_cursor_geometry): Add prototype.
3979         * xterm.c (x_clip_to_row): Ensure y >= 0.
3980         (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3982         * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3984         * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3986 2005-01-27  Stefan Monnier  <monnier@iro.umontreal.ca>
3988         * xterm.c (x_error_quitter): Add a prototype.  Make it static again.
3990 2005-01-27  Kim F. Storm  <storm@cua.dk>
3992         * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
3993         glyph, even when row is only partially visible and actual cursor
3994         position is not visible.
3996 2005-01-24  Richard M. Stallman  <rms@gnu.org>
3998         * xterm.c (x_error_quitter): No longer static, and moved after
3999         x_error_handler.
4001 2005-01-24  Kim F. Storm  <storm@cua.dk>
4003         * xdisp.c (move_it_by_lines): If we move forward after going too
4004         far back, cancel move if end position is same as start position.
4006 2005-01-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4008         * dispextern.h (struct glyph_string): New members clip_head and
4009         clip_tail.
4011         * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
4012         region to the area between clip_head and clip_tail.
4013         (draw_glyphs): Record the area that need to be actually redrawn to
4014         the new variables clip_head and clip_tail when there are
4015         overhangs.  Set values of these variables to the corresponding
4016         members in struct glyph_string.  Refine x coordinates for
4017         notice_overwritten_cursor using clip_head and clip_tail.
4019         * macgui.h (STORE_XCHARSETSTRUCT): New macro.
4021         * macterm.c (mac_compute_glyph_string_overhangs): Implement with
4022         QDTextBounds.
4023         (x_draw_glyph_string): Don't fill the background of the successor
4024         of a glyph with a right overhang if the successor will draw a cursor.
4025         (XLoadQueryFont): Obtain font metrics using QDTextBounds.
4026         (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4028 2005-01-24  Kim F. Storm  <storm@cua.dk>
4030         * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
4031         direction if window height was smaller than next-screen-context-lines.
4032         Now always scroll at least one line in the requested direction.
4033         Ensure that we actually do scroll backwards when requested to do so.
4035         * xdisp.c (redisplay_window): Only try to make cursor line fully
4036         visible once (to avoid redisplay loop).
4038 2005-01-23  Kim F. Storm  <storm@cua.dk>
4040         * window.c (Fpos_visible_in_window_p): Simplify return value for
4041         partially visible rows.
4042         (window_scroll_pixel_based): Adapt to that change.
4044         * window.c (window_scroll_pixel_based): Force moving to next line
4045         if scrolling doesn't move start point, e.g. if looking at tall image.
4047         * xdisp.c (pos_visible_p): Return 0 if non-interactive.
4048         Clear last_height before calling line_bottom_y to get real height.
4049         Fix calculation of y.
4051 2005-01-22  Steven Tamm  <steventamm@mac.com>
4053         * s/darwin.h: Removed PTY_ITERATION from here.
4054         (DARWIN): Define.
4056         * process.c (init_process): Default process-connection-type to
4057         nil on darwin 6 or less, t if it is 7 or higher.  This way the
4058         broken pty behavior is still allowed on darwin 6 for interactive
4059         processes for people that know what they are doing.
4061 2005-01-22  Kim F. Storm  <storm@cua.dk>
4063         * window.c (auto_window_vscroll_p): New boolean.
4064         (syms_of_window): DEFVAR_BOOL it.
4065         (Fpos_visible_in_window_p): Extend return value to include RTOP
4066         and RBOT values if FULLY is nil.
4067         (window_scroll_pixel_based): Adjust vscroll for partially visible
4068         rows if auto_window_vscroll_p is set.
4069         (Fset_window_vscroll): Do nothing if vscroll is not modified.
4071         * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
4072         to return number of partially invisible pixels at top and bottom
4073         of the dislay row at POS.
4075         * lisp.h (pos_visible_p): Fix prototype.
4077 2005-01-21  Richard M. Stallman  <rms@gnu.org>
4079         * fileio.c (Fcopy_file): Doc fix.
4081 2005-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4083         * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
4084         (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
4085         start of function for older compilers.
4087 2005-01-20  Richard M. Stallman  <rms@gnu.org>
4089         * editfns.c (Fmessage): If arg is "", return "" (as before).
4091         * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
4093         * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
4094         variable.
4096 2005-01-20  Steven Tamm  <steventamm@mac.com>
4098         * editfns.c (Voperating_system_release): Add.
4099         (init_editfns): Assign new variable operating-system-release
4100         based on call to uname if available.
4101         (get_operating_system_release): Add function to
4102         allow c-level access to operating system release.
4104         * config.h: Regenerated.
4106         * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
4107         (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
4108         using ptys as '7'.
4110 2005-01-20  Kim F. Storm  <storm@cua.dk>
4112         * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
4114         * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
4115         Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
4117         * macterm.c (x_draw_glyph_string_box): Likewise.
4119         * w32term.c (x_draw_glyph_string_box): Likewise.
4121         * indent.c (Fvertical_motion): Temporarily disable selective display.
4123 2005-01-19  Kim F. Storm  <storm@cua.dk>
4125         * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
4126         image property.
4128         * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
4130 2005-01-18  Kim F. Storm  <storm@cua.dk>
4132         * xdisp.c (fast_find_position): Backtrack to find first row if
4133         charpos is inside a display overlay that spans multiple lines.
4135 2005-01-18  Kenichi Handa  <handa@m17n.org>
4137         * coding.c (decode_coding_iso2022): Translate invalid codes if
4138         translation-table is specified.
4140 2005-01-18  Kim F. Storm  <storm@cua.dk>
4142         * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
4143         change.  If handle_display_prop indicates newline is replaced by
4144         image or text, move back to start of relevant overlay or interval
4145         and continue scan from there.  Simplify.
4147 2005-01-17  Kim F. Storm  <storm@cua.dk>
4149         * dispnew.c (mode_line_string, marginal_area_string):
4150         Fix off-by-one error in search for glyph.
4152 2005-01-16  Kim F. Storm  <storm@cua.dk>
4154         * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
4156 2005-01-16  Steven Tamm  <steventamm@mac.com>
4158         * macterm.c (mac_to_x_fontname): Remove spurious argument.
4160 2005-01-16  Andreas Schwab  <schwab@suse.de>
4162         * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
4164 2005-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4166         * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
4167         fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
4169 2005-01-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4171         * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
4172         (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
4173         New flags for readable_events.
4174         (get_filtered_input_pending, readable_filtered_events): Remove.
4175         (tracking_off): Call readable_events and get_input_pending with
4176         flag READABLE_EVENTS_DO_TIMERS_NOW.
4177         (readable_events): Move code from old readable_filtered_events here,
4178         but check new READABLE_EVENTS_* in argument flags instead of previous
4179         two boolean arguments do_timers_now and filter_events.
4180         If we are doing mouse tracking and the mouse moved, return only if
4181         READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
4182         (swallow_events): Call get_input_pending with flag
4183         READABLE_EVENTS_DO_TIMERS_NOW.
4184         (get_input_pending): Move code from old get_filtered_input_pending
4185         here.  Replace boolean arguments do_timers_now, filter_events with
4186         flags, and pass flags to readable_events.  Document new
4187         READABLE_EVENTS_* flags.
4188         (detect_input_pending_ignore_squeezables): New function.
4189         (detect_input_pending_run_timers): Call get_input_pending with flag
4190         READABLE_EVENTS_DO_TIMERS_NOW.
4191         (Finput_pending_p): Call get_input_pending with flags
4192         READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
4194         * dispnew.c (update_window, update_frame_1): Replace calls to
4195         detect_input_pending with detect_input_pending_ignore_squeezables
4196         so that redisplay is not paused if the event queue contains only
4197         mouse movements.
4199         * lisp.h: Declare detect_input_pending_ignore_squeezables.
4201 2005-01-15  Steven Tamm  <steventamm@mac.com>
4203         * macterm.c (Vmac_use_core_graphics): Declare variable for
4204         mac-allow-anti-aliasing.
4205         (syms_of_macterm): DEFVAR_LISP and initialize it.
4206         (mac_draw_string_common): Use core graphics text rendering if
4207         mac-allow-anti-aliasing is enabled.
4209         * macfns.c (Fx_file_dialog): Save As dialog includes only the
4210         file name in the text box.
4212 2005-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4214         * macfns.c (x_set_foreground_color, x_set_background_color):
4215         Sync with xfns.c.
4216         (mac_window, x_create_tip_frame): Use XSetWindowBackground.
4217         * macterm.c (XSetBackground, XSetWindowBackground): New functions.
4218         * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
4220 2005-01-14  Kim F. Storm  <storm@cua.dk>
4222         * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
4224 2005-01-13  Richard M. Stallman  <rms@gnu.org>
4226         * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
4227         if Voverriding_terminal_local_map is non-nil.
4229         * keyboard.c (syms_of_keyboard): Doc fix.
4231 2005-01-13  Kim F. Storm  <storm@cua.dk>
4233         * xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
4234         (specify 0 for FACE instead).  Reorder arg list.  Doc fix.
4236 2005-01-12  Richard M. Stallman  <rms@gnu.org>
4238         * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
4239         face property for characters that don't specify one.
4241         * fns.c (Frequire): Record in load-history unconditionally.
4243 2005-01-10  Kim F. Storm  <storm@cua.dk>
4245         * dispextern.h (merge_faces): Rename from merge_into_realized_face.
4247         * xfaces.c (merge_faces): Rename from merge_into_realized_face.
4248         Callers changed.
4249         Add support to merge with lisp face id too (if face_name is t).
4251         * xdisp.c (get_next_display_element, next_element_from_display_vector):
4252         Don't lookup lface_id from display table glyphs here; instead use
4253         merge_faces to merge the lisp face id into current face.
4255 2005-01-09  Kim F. Storm  <storm@cua.dk>
4257         * dispextern.h (struct it): New member dpvec_face_id.
4258         (merge_into_realized_face): Add prototype.
4260         * xfaces.c (merge_into_realized_face): New function.  Used to
4261         merge escape-glyph face or face from display table into current face.
4263         * xdisp.c (Vshow_nonbreak_escape): New lisp var.
4264         (syms_of_xdisp): DEFVAR_LISP it.
4265         (escape_glyph_face): Remove var.
4266         (redisplay_window): Don't initialize it.
4267         (setup_for_ellipsis, get_next_display_element):
4268         Set it->dpvec_face_id to -1.
4269         (get_next_display_element): Test Vshow_nonbreak_escape.
4270         Do not setup escape_glyph_face.
4271         Properly merge escape-glyph face or face from display table with
4272         current face for escape and control characters.
4273         Set it->dpvec_face_id to relevant face id instead of adding it to each
4274         element of display vector.
4275         (next_element_from_display_vector): If it->dpvec_face_id is set,
4276         use that instead of lface_id from glyph itself.
4278 2005-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4280         * xterm.h (struct x_output): New member, toolbar_detached.
4282         * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
4283         38.
4284         (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
4285         (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
4286         (xg_create_tool_bar): Initialize toolbar_detached.
4287         (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
4288         toolbar_detached is zero.
4290 2005-01-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4292         * xmenu.c (create_and_show_popup_menu): Pass zero as button to
4293         gtk_menu_popup if not for_click, so callbacks for the menu are called.
4295         * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
4296         (xg_tool_bar_callback, xg_tool_bar_help_callback)
4297         (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
4299         * xselect.c (x_get_foreign_selection, x_fill_property_data)
4300         (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
4301         XFLOAT_DATA to get extract number from Lisp object.
4303 2005-01-07  Kim F. Storm  <storm@cua.dk>
4305         * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
4306         Set stop_charpos to current charpos instead of 0.
4308 2005-01-06  Nick Roberts  <nickrob@snap.net.nz>
4310         * xdisp.c (Fformat_mode_line): First arg now required.
4312 2005-01-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4314         * macterm.c (XLoadQueryFont): Correctly handle 0 size
4315         font widths that are returned from some Japanese fonts.
4317 2005-01-06  Kim F. Storm  <storm@cua.dk>
4319         * fringe.c (fringe_faces): Change to Lisp_Object pointer.
4320         (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
4321         (destroy_fringe_bitmap): Set fringe_faces element to nil.
4322         (Fdefine_fringe_bitmap, init_fringe): Change allocation of
4323         fringe_faces array and init elements to nil.
4324         (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
4325         non-persistent face id.
4326         (mark_fringe_data): New function for GC.
4328         * alloc.c (mark_fringe_data): Declare extern.
4329         (Fgarbage_collect): Call mark_fringe_data.
4331         * alloc.c (overrun_check_free): Invalidate freed memory if
4332         XMALLOC_CLEAR_FREE_MEMORY is defined.
4334 2005-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4336         * macfns.c: Include sys/param.h.
4337         [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
4338         and function.
4339         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
4340         of filename string.  Set event callback function when creating
4341         dialog boxes.  Add code conversions for filenames.  Don't dispose
4342         of apple event descriptor record if failed to create it.
4344         * macterm.c: Include sys/param.h.
4345         [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
4346         kEventWindowUpdate.
4347         (install_window_handler) [USE_CARBON_EVENTS]: Register it.
4348         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
4349         of FSSpec from apple event descriptor record.
4350         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
4351         size of filename string.
4352         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
4353         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
4354         file dialog is in action.
4355         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
4356         Reject only when there are no filename items.  Set background color
4357         before (un)highlighting the window below the dragged items.
4358         (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
4360 2005-01-05  Romain Francoise  <romain@orebokech.com>
4362         * term.c (encode_terminal_code): Fix buffer size computation.
4364 2005-01-04  Richard M. Stallman  <rms@gnu.org>
4366         * xdisp.c (Fformat_mode_line): Doc fix.
4368 2005-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
4370         * alloc.c (refill_memory_reserve): Move.
4371         (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
4372         (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
4374 2005-01-03  Richard M. Stallman  <rms@gnu.org>
4376         * window.c (window_scroll_pixel_based): Don't correct preserve_y
4377         for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
4379 2005-01-03  Jason Rumney  <jasonr@gnu.org>
4381         * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
4382         fontp->space_width to FONT_WIDTH so they are valid.
4384         * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
4385         average width.  Set fontp->average_width and fontp->space_width to
4386         their appropriate values.
4388         * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4389         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
4390         fontp->space_width.
4392 2005-01-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4394         * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
4395         (x_font_min_bounds, XLoadQueryFont): Use the correct font width
4396         metrics for max and min bounds.
4397         (x_load_font): Correctly calculate average font width metrics.
4399 2005-01-02  Richard M. Stallman  <rms@gnu.org>
4401         * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
4403 2004-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4405         * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
4407 2004-12-31  Richard M. Stallman  <rms@gnu.org>
4409         * xdisp.c (setup_for_ellipsis, get_next_display_element):
4410         Set it->ellipsis_p to 1 or 0.
4411         (display_line): Record whether row ends in mid-ellipsis.
4412         (set_cursor_from_row): If ends in ellipsis, find start of it.
4413         (cursor_row_p): If PT's at the end of the ellipsis the row
4414         ends within, don't display cursor on this row.
4416         * dispextern.h (struct it): New element ellipsis_p.
4417         (struct glyph_row): New element ends_in_ellipsis_p.
4419         * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
4420         position if we're reading from something other than the buffer.
4422         * window.c (window_scroll_pixel_based): Only look at
4423         Vscroll_preserve_screen_position if the old PT can't be kept.
4424         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4426 2004-12-30  Kim F. Storm  <storm@cua.dk>
4428         * xdisp.c (get_line_height_property): New function extracted from
4429         original calc_line_height_property.
4430         (calc_line_height_property): Rework.  Handle t and (nil . ratio).
4431         (x_produce_glyphs): Use them to handle line-height and
4432         line-spacing according to new height spec.
4433         (Qtotal): Remove.
4434         (syms_of_xdisp): Remove intern and staticpro for Qtotal.
4436 2004-12-30  Kenichi Handa  <handa@m17n.org>
4438         * fileio.c (Finsert_file_contents): Don't use
4439         current_buffer->buffer_file_coding_system even if REPLACE is
4440         non-nil.  Call Qafter_insert_file_set_coding with the second arg VISIT.
4442         * fontset.h (struct font_info): New members space_width and
4443         average_width.
4445         * frame.h (struct frame): New member space_width.
4446         (FRAME_SPACE_WIDTH): New macro.
4448         * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
4450         * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4451         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
4452         fontp->space_width.
4453         (x_load_font): Calculate fontp->space_width and fontp->average_width.
4454         (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
4456         * xdisp.c (x_produce_glyphs): Calculate tab width by
4457         FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
4459 2004-12-29  Sanghyuk Suh  <han9kin@mac.com>
4461         * macterm.c (SelectionRange): Add Xcode position apple event struct.
4462         (do_ae_open_documents): Handle Xcode-style file position open events.
4464 2004-12-29  Luc Teirlinck  <teirllm@auburn.edu>
4466         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
4468 2004-12-29  Richard M. Stallman  <rms@gnu.org>
4470         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
4472 2004-12-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4474         * macfns.c (install_window_handler): Modify extern to return OSErr
4475         value.
4476         (mac_window): Handle return value of install_window_handler.
4478         * macterm.c (reflect_byte): Remove function.
4479         (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
4480         Lookup table instead.
4481         (mac_do_font_lists): Simplify calculation of the longest
4482         nonspecial string.
4483         (init_mac_drag_n_drop): Remove function and declaration.
4484         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
4485         init_mac_drag_n_drop.
4486         (mac_do_track_drag): New function and declaration.
4487         (install_window_handler): Return OSErr value.
4488         (install_window_handler) [TARGET_API_MAC_CARBON]:
4489         Register handlers for tracking/receiving drag-and-drop items.
4490         (do_ae_open_documents): Generate unibyte strings for filenames.
4491         (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
4492         Reject only non-filename items.  Set event modifiers, and return value.
4494 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
4496         * coding.c (decode_coding): Fix previous change.
4498 2004-12-28  Richard M. Stallman  <rms@gnu.org>
4500         * xdisp.c (back_to_previous_visible_line_start):
4501         Don't call handle_display_prop.
4503 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
4505         * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
4506         (decode_coding_emacs_mule, encode_coding_emacs_mule)
4507         (decode_coding_iso2022, encode_designation_at_bol)
4508         (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
4509         (decode_coding): Constify arguments and local vars.
4511 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4513         * xmenu.c (popup_get_selection): Only pop down dialogs
4514         on C-g and Escape.
4515         (popup_get_selection): Remove parameter down_on_keypress.
4516         (create_and_show_popup_menu, create_and_show_dialog):
4517         Remove parameter down_on_keypress to popup_get_selection.
4519 2004-12-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4521         * dispextern.h: Change HAVE_CARBON to MAC_OS.
4522         (struct glyph_string): Likewise.
4524         * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
4525         mac_initialize.
4527         * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
4528         Change TARGET_API_MAC_CARBON to HAVE_CARBON.
4530         * fns.c (vector): Change MAC_OSX to MAC_OS.
4532         * frame.c (x_set_frame_parameters, x_report_frame_params)
4533         (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
4534         (x_set_border_width, Vdefault_frame_scroll_bars):
4535         Change HAVE_CARBON to MAC_OS.
4537         * image.c [MAC_OS]: Include sys/stat.h.
4538         [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
4539         QuickTimeComponents.h.
4541         * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
4542         [!MAC_OSX] (select): Use mac_wait_next_event.
4543         [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
4544         [!MAC_OSX] (select, run_mac_command): Change `#ifdef
4545         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4546         (mac_clear_font_name_table): Add extern.
4547         (Fmac_clear_font_name_table): New defun.
4548         (syms_of_mac): Defsubr it.
4549         [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
4550         [MAC_OSX] (select_and_poll_event): New function.
4551         [MAC_OSX] (sys_select): Use it.
4552         [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
4553         [MAC_OSX && SELECT_USE_CFSOCKET]
4554         (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
4555         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
4556         RunLoop for simultaneously monitoring two kinds of inputs, window
4557         events and process outputs, without periodically polling.
4559         * macfns.c (mac_initialized): Remove extern.
4560         (stricmp): Put in #if 0.  All callers changed to use xstricmp in
4561         xfaces.c.
4562         (strnicmp): Decrement `n' at the end of each loop, not the beginning.
4563         (check_mac): Use the term "Mac native windows" instead of "Mac OS".
4564         (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
4565         (mac_get_rdb_resource): New function (from w32reg.c).
4566         (x_get_string_resource): Use it.
4567         (install_window_handler): Add extern.
4568         (mac_window): New function.
4569         (Fx_create_frame): Use it instead of make_mac_frame.
4570         Set parameter for Qfullscreen.  Call x_wm_set_size_hint.
4571         (Fx_open_connection, Fx_close_connection): New defuns.
4572         (syms_of_macfns): Defsubr them.
4573         (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
4574         Add kWindowNoUpdatesAttribute to the window attribute.
4575         (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
4576         (x_create_tip_frame): Don't call ShowWindow.
4577         (Fx_show_tip): Call ShowWindow.
4578         (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
4579         TARGET_API_MAC_CARBON'.
4580         (mac_frame_parm_handlers): Set handlers for Qfullscreen.
4581         (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
4583         * macgui.h [!MAC_OSX]: Don't include Controls.h.  Include Windows.h.
4584         (Window): Typedef to WindowPtr and move outside `#if
4585         TARGET_API_MAC_CARBON'.
4586         (XSizeHints): New struct.
4588         * macterm.c (x_update_begin, x_update_end)
4589         [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
4590         frame.
4591         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4592         [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
4593         (construct_mouse_click): Put in #if 0.
4594         (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
4595         (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
4596         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4597         (activate_scroll_bars, deactivate_scroll_bars)
4598         [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
4599         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
4600         if the position is neither user-specified nor program-specified.
4601         (x_free_frame_resources): Free size_hints.
4602         (x_wm_set_size_hint): Allocate size_hints if needed.  Set size_hints.
4603         (mac_clear_font_name_table): New function.
4604         (mac_do_list_fonts): Initialize font_name_table if needed.
4605         (x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
4606         around mac_do_list_fonts.
4607         (mac_unload_font): New function.
4608         (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
4609         (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
4610         and definitions with #if TARGET_API_MAC_CARBON.
4611         [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
4612         (install_window_handler): Add decl.
4613         (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
4614         window.  Use UpdateControls.  Get the rectangle that should be
4615         updated and restrict the target of expose_frame to it.
4616         (do_grow_window): Set minimum height/width according to size_hints.
4617         (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
4618         (do_zoom_window): Don't use x_set_window_size.
4619         [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
4620         (install_window_handler): New function.
4621         [!USE_CARBON_EVENTS] (mouse_region): New variable.
4622         [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
4623         (XTread_socket) [USE_CARBON_EVENTS]: Move call to
4624         GetEventDispatcherTarget inside BLOCK_INPUT.
4625         (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
4626         Update mouse_region when mouse is moved.
4627         (make_mac_frame): Remove.
4628         (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
4629         Initialize mouse pointer shapes.  Change values of f->left_pos and
4630         f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.
4631         Don't call ShowWindow.
4632         (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
4633         Vinvocation_name and Vsystem_name.
4634         (mac_make_rdb): New function (from w32term.c).
4635         (mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
4636         already been opened.  Don't pass argument to
4637         mac_initialize_display_info.  Don't set dpyinfo->height/width.
4638         Add entries to x_display_list and x_display_name_list.
4639         (x_delete_display): New function.
4640         (mac_initialize): Don't call mac_initialize_display_info.
4641         (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
4643         * macterm.h (check_mac): Add extern.
4644         (struct mac_output): New member size_hints.
4645         (FRAME_SIZE_HINTS): New macro.
4646         (mac_unload_font): Add extern.
4648         * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
4650         * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
4652 2004-12-27  Richard M. Stallman  <rms@gnu.org>
4654         * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
4655         (syms_of_buffer): Don't defsubr it.
4657         * process.c (list_processes_1): Set undo_list instead
4658         of calling Fbuffer_disable_undo.
4660         * xdisp.c (single_display_spec_string_p): Rename from
4661         single_display_prop_string_p.
4662         (single_display_spec_intangible_p): Rename from
4663         single_display_prop_intangible_p.
4664         (handle_single_display_spec): Rename from handle_single_display_prop.
4665         Rewritten to be easier to understand.
4667         Change in load-history format.  Functions now get (defun . NAME),
4668         and variables get just NAME.
4670         * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4672         * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4673         (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
4674         (Qdefvar): Var deleted.
4675         (syms_of_eval): Don't initialze it.
4677         * lread.c (syms_of_lread) <load-history>: Doc fix.
4679 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4681         * xmenu.c (popup_get_selection): Pop down on C-g.
4682         (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
4683         pops down menu on C-g.
4684         (xdialog_show): If dialog popped down and no button in the dialog was
4685         pushed, call Fsignal to quit.
4686         (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
4687         Fsignal to quit.
4689         * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
4691         * gtkutil.c (xg_initialize): Install bindings for C-g so that
4692         dialogs and menus pop down.
4694 2004-12-27  Kenichi Handa  <handa@m17n.org>
4696         * coding.c (code_convert_region): Fix calculation of `ratio'.
4698 2004-12-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4700         * gtkutil.c (update_frame_tool_bar): Make the value of
4701         tool-bar-button-margin control margins of images in tool bar.
4703         * alloc.c (check_depth): New variable.
4704         (overrun_check_malloc, overrun_check_realloc): Only add
4705         overhead and write check pattern if check_depth is 1 (to handle
4706         recursive calls).  Increase/decrease check_depth in entry/exit.
4707         (overrun_check_free): Only check for overhead if check_depth is 1.
4708         Increase/decrease check_depth in entry/exit.
4710 2004-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4712         * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
4713         before touching input_available_clear_time, to avoid accessing it
4714         from multiple threads.
4716 2004-12-23  Jason Rumney  <jasonr@gnu.org>
4718         * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
4719         of JPEG library.
4721 2004-12-22  Richard M. Stallman  <rms@gnu.org>
4723         * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
4725         * lisp.h (Vundo_outer_limit): Fix decl.
4727         * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
4728         Uses changed.
4729         (syms_of_undo): Initialize appropriately.
4730         (truncate_undo_list): If it's nil, there's no limit.
4732 2004-12-22  Kenichi Handa  <handa@m17n.org>
4734         * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
4736 2004-12-21  Richard M. Stallman  <rms@gnu.org>
4738         * eval.c (unwind_to_catch): Clear immediate_quit.
4740         * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
4741         specially as `\ ' and `\-'.
4743         * keyboard.c (kbd_buffer_store_event_hold):
4744         In the code for while-no-input, handle immediate_quit.
4746         * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
4747         Call that at the very start.
4748         (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
4749         (syms_of_alloc): Don't define undo-limit,
4750         undo-strong-limit and undo-outer-limit here.
4752         * undo.c (truncate_undo_list): Return void.
4753         Take just one argument, the buffer.
4754         Make it current, and inhibit recursive GC.
4755         Access and update the undo list directly; return void.
4756         Refer to the undo...limit variables directly.
4757         Test undo_outer_limit only after counting the whole current command.
4758         When it's exceeded, call the function in undo-outer-limit-function.
4759         (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
4760         (Vundo_outer_limit_function): New variable.
4761         (syms_of_undo): Define undo-limit, undo-strong-limit
4762         and undo-outer-limit here, and undo-outer-limit-function.
4763         Doc fixes.
4765         * lisp.h (truncate_undo_list): Update decl.
4767 2004-12-21  Piet van Oostrum  <piet@cs.uu.nl>
4769         * fileio.c (Fread_file_name): Delete duplicates in
4770         file-name-history when history_delete_duplicates is true.
4772 2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4774         * macterm.c (mac_do_list_fonts): Fix memory leak
4776 2004-12-20  Richard M. Stallman  <rms@gnu.org>
4778         * regex.c (re_match_2_internal) <symend, wordend>:
4779         Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
4781 2004-12-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4783         * macterm.c (endif, x_font_name_to_mac_font_name):
4784         Use maccentraleurroman instead of maccentraleuropean
4785         (mac_c_string_match, mac_do_list_fonts): Speed up font search by
4786         quickly finding a specific font without needing regexps.
4788 2004-12-15  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4790         * syssignal.h: Declare main_thread.
4791         (SIGNAL_THREAD_CHECK): New macro.
4793         * keyboard.c (input_available_signal): Move thread checking code
4794         to macro SIGNAL_THREAD_CHECK and call that macro.
4795         (interrupt_signal): Call SIGNAL_THREAD_CHECK.
4797         * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
4799         * emacs.c: Define main_thread.
4800         (main): Initialize main_thread.
4801         (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
4802         (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
4804         * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
4806         * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
4808         * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
4810         * process.c (send_process_trap, sigchld_handler):
4811         Call SIGNAL_THREAD_CHECK.
4813         * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
4815         * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
4817         * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
4818         returning when xg_ignore_gtk_scrollbar is true.
4820 2004-12-14  Kim F. Storm  <storm@cua.dk>
4822         * keyboard.c (read_char): Save and restore echo_string when
4823         handling input method.
4825 2004-12-13  Richard M. Stallman  <rms@gnu.org>
4827         * eval.c (syms_of_eval) <quit-flag>: Doc fix.
4829         * keyboard.c (Vthrow_on_input): New variable.
4830         (syms_of_keyboard): Defvar and initialize it.
4831         (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
4833         * lisp.h (QUIT): Check for Vthrow_on_input.
4834         (Vthrow_on_input): Declare it.
4836 2004-12-13  Kim F. Storm  <storm@cua.dk>
4838         * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
4839         vector.
4841 2004-12-12  Richard M. Stallman  <rms@gnu.org>
4843         * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
4845         * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
4846         (Ftry_completion): Really use outer `zero'; eliminate inner one.
4848 2004-12-12  Kenichi Handa  <handa@m17n.org>
4850         * term.c (encode_terminal_code): Fix previous change.
4852 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
4854         * keyboard.c (handle_async_input): Remove pthread mutex handling.
4855         (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
4857         * syntax.c (Fforward_word): Avoid non-idempotent side-effects
4858         in macro arguments.
4860         * minibuf.c (Ftry_completion, Fall_completions): Don't use
4861         XFASTINT blindly.
4863         * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
4865 2004-12-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4867         * w32term.c (x_calc_absolute_position): Remove calculation of
4868         difference between inner and outer window.  Don't subtract difference
4869         for left and top calculations.
4871         * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
4872         for left and top calculations.  Remove call to x_real_positions.
4873         [Bug report by Drew Adams in November]
4874         (x_check_expected_move): Do not set change_gravity to 1 when calling
4875         x_set_offset.
4877 2004-12-08  Richard M. Stallman  <rms@gnu.org>
4879         * xdisp.c (get_next_display_element): Use `escape-glyph' for
4880         control chars and escaped octal codes.
4881         (Qescape_glyph): New variable.
4882         (syms_of_xdisp): Initialize it.
4883         (escape_glyph_face): New variable.
4884         (redisplay_window): Initialize it.
4886 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
4888         * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
4889         (init_image): Use 1 rather than TRUE.  TRUE's not always defined.
4891 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4893         * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
4894         reset_malloc_hooks.
4896         * keyboard.c (handle_async_input, input_available_signal):
4897         Add ! defined (SYSTEM_MALLOC) around thread code.
4899         * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
4901 2004-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
4903         * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
4905         * config.in: Regenerate.
4907 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4909         * xmenu.c (Fx_popup_menu): Correct documentation about position.
4910         (xmenu_show): Do not call XTranslateCoordinates.  Adjust position
4911         if not given by a mouse click to correspond with x-popup-menu
4912         documentation.
4914         * config.in: Regenerate.
4916         * gtkutil.c: Include signal.h and syssignal.h.
4917         (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
4919         * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
4920         new variables main_thread and alloc_mutex,
4921         define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
4922         emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
4923         If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
4924         (UN)BLOCK_INPUT.
4925         (emacs_blocked_free, emacs_blocked_malloc)
4926         (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
4927         (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
4928         (reset_malloc_hooks): New function.
4930         * lisp.h: Declare reset_malloc_hooks.
4932         * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
4934         * keyboard.c: Conditionally include pthread.h
4935         (handle_async_input, input_available_signalt): If not in the main
4936         thread, block signal, send signal to main thread and return.
4938         * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
4939         Set current folder in file chooser if default_filename is a directory.
4941 2004-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
4943         * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
4944         Remove redundant correctness checks.
4945         (regex_compile): Fix up error codes for \{..\} expressions.
4947 2004-12-05  Richard M. Stallman  <rms@gnu.org>
4949         * regex.c (regex_compile): Fix end-of-pattern case for space.
4951 2004-12-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4953         * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
4954         * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
4955         crashes with invalid characters.
4956         * macmenu.c (add_menu_item): Use it.
4957         * image.c (image_load_quartz2d): Likewise.
4958         * macfns.c (x_set_name, x_set_title): Likewise.
4959         (Fx_file_dialog): Likewise.  Use constant CFRefs instead of
4960         creating them each time for labels.
4962 2004-12-02  Richard M. Stallman  <rms@gnu.org>
4964         * config.in (RE_TRANSLATE_P): If make_number is not a macro,
4965         don't use it here.
4967         * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
4968         (interactive_p): Skip Scalled_interactively_p frames
4969         like Sinteractive_p frames.
4970         (unwind_to_catch): Clear handling_signal.
4972         * data.c (Fmake_variable_buffer_local): Doc fix.
4973         (Fmake_local_variable): Doc fix.
4975         * insdel.c (insert_from_string_before_markers)
4976         (insert_from_string): Don't modify buffer on empty insertion.
4978         * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
4980 2004-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4982         * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
4983         menu text as UTF8 fails.
4985 2004-12-01  Kim F. Storm  <storm@cua.dk>
4987         * alloc.c: Add commentary for last change.
4988         (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
4989         sizeof(size_t) != 4.
4990         (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
4991         Use them.  Also clear header and trailer of freed memory.
4992         (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
4993         (string_overrun_cookie): Rename from string_overrun_pattern.
4994         (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
4996 2004-12-01  Andreas Schwab  <schwab@suse.de>
4998         * lisp.h: Declare string_to_multibyte.
5000 2004-12-01  Kenichi Handa  <handa@m17n.org>
5002         * w32console.c (w32con_write_glyphs): Decide coding here.
5003         Adjusted for the change of encode_terminal_code.
5005         * term.c (encode_terminal_code): Don't make it "static".
5007 2004-11-30  Kenichi Handa  <handa@m17n.org>
5009         * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
5010         (encode_terminal_code): Argument changed.  Encode all
5011         characters at once, and return a pointer to the result of encoding.
5012         (write_glyphs): Decide coding here.  Adjusted for the above change.
5013         (insert_glyphs): Likewise.
5014         (term_init): Initialize encode_terminal_bufsize to 0.
5016         * coding.c (Vcode_conversion_workbuf_name): New variable.
5017         (syms_of_coding): Initialize and staticpro it.
5018         (set_conversion_work_buffer): New function.
5019         (run_pre_post_conversion_on_str): Use it.
5020         (run_pre_write_conversin_on_c_str): New function.
5022         * coding.h (run_pre_write_conversin_on_c_str): Extern it.
5024 2004-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5026         * keyboard.c: Don't undef SIGIO
5027         * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
5028         * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
5029         (macfns.o): Don't depend on ccl.h.
5030         * macfns.c (mac_frame_parm_handlers): Set handlers for
5031         Qleft_fringe and Qright_fringe.
5032         * macterm.c (mac_fill_rectangle_to_pixmap)
5033         (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
5034         (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
5035         Put in #if 0.
5036         (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
5037         (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
5038         (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
5039         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5040         [!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
5041         XDrawImageString.  Always draw background and foreground separately.
5042         (x_draw_image_foreground): Use clipping instead of computing the
5043         intersection rectangle.
5044         (x_draw_image_glyph_string): Don't draw an image with mask to a
5045         pixmap.
5046         (x_redisplay_interface): Set flush_display_optional member to 0.
5047         (XTread_socket): Correctly reset the TEConverter
5048         object.
5050 2004-11-30  Kim F. Storm  <storm@cua.dk>
5052         * lisp.h: New defines to enable buffer overrun checking.
5053         (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
5054         (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
5056         * alloc.c: Add more checks for buffer overruns.
5057         (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
5058         xmalloc_overrun_check_trailer, overrun_check_malloc)
5059         overrun_check_realloc, overrun_check_free): Add.
5060         (GC_STRING_EXTRA, string_overrun_pattern): Add.
5061         (check_sblock, allocate_string_data, compact_small_strings):
5062         Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
5063         (check_cons_list): Condition on GC_CHECK_CONS_LIST.
5064         (check_string_free_list): Add.
5065         (allocate_string, sweep_strings): Call check_string_free_list.
5067         * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
5068         XMALLOC_OVERRUN_CHECK to avoid crash during load.
5070 2004-11-29  Kim F. Storm  <storm@cua.dk>
5072         * fns.c (concat): Use SAFE_ALLOCA.
5074 2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
5076         * sysdep.c (emacs_write): Don't use QUIT.
5078 2004-11-29  Kenichi Handa  <handa@m17n.org>
5080         * buffer.c (init_buffer): Set current_buffer->directory to a
5081         multibyte string made by string_to_multibyte.
5083         * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
5085 2004-11-27  Andreas Schwab  <schwab@suse.de>
5087         * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
5089         * s/gnu-linux.h: Enable no-op gcpros on ia64.
5090         (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
5092         * filelock.c (lock_file_1): Call get_boot_time early.
5093         Increase buffer size.
5095 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
5097         * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
5098         is not defined.
5100 2004-11-27  Kim F. Storm  <storm@cua.dk>
5102         * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
5103         marker out of doc string.
5105 2004-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
5107         * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
5108         which was not mentioned in the log.
5110 2004-11-26  Kim F. Storm  <storm@cua.dk>
5112         * fringe.c (update_window_fringes): Prefer truncation bitmaps over
5113         angle bitmaps at top/bottom line.
5115         * xdisp.c: Undo recent changes for restoring saved_face_id.  Instead,
5116         set it when it->method is set to next_element_from_display_vector.
5117         (setup_for_ellipsis): Add LEN argument.  Callers changed.
5118         Set it->saved_face_id.
5119         (get_next_display_element): Use loop instead of recursion.
5120         Set it->saved_face_id.  Combine duplicate code for ctr chars.
5121         (next_element_from_display_vector): Do not set it->saved_face_id.
5122         (next_element_from_ellipsis): Use setup_for_ellipsis.
5124 2004-11-26  Eli Zaretskii  <eliz@gnu.org>
5126         * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
5127         prevent compiler warnings.
5129 2004-11-25  Stefan Monnier  <monnier@iro.umontreal.ca>
5131         * keyboard.c (command_loop_1): Print a message describing the key
5132         the user just pressed when this key has no binding.
5134         * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
5135         (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
5137         * lread.c (readchar): Check QUIT when `getc' is interrupted.
5139 2004-11-24  Richard M. Stallman  <rms@gnu.org>
5141         * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
5143         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
5145 2004-11-24  Kim F. Storm  <storm@cua.dk>
5147         * xdisp.c (move_it_in_display_line_to, display_line):
5148         Restore saved_face_id also when truncate-lines or hscrolled.
5150 2004-11-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5152         * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
5153         x-use-old-gtk-file-dialog.
5155         * xfns.c: Define x_use_old_gtk_file_dialog.
5156         (syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
5157         outside ifdef USE_GTK.
5159 2004-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
5161         * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
5162         Don't use XFASTINT blindly.
5164         * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
5166         * indent.c (skip_invisible): Avoid non-idempotent side-effects
5167         in macro arguments.
5169         * keymap.c (Flookup_key): Check INTEGERP before XINT.
5171         * lread.c (oblookup): Don't use XFASTINT blindly.
5173         * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
5174         (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
5176 2004-11-23  Kim F. Storm  <storm@cua.dk>
5178         * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
5179         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
5181         * xfaces.c (lookup_named_face): Add signal_p arg.  Return -1 if
5182         signal_p is zero and face name is unknown.
5183         (Fx_list_fonts): Don't signal error in lookup_named_face.
5184         (Fface_font): Signal error in lookup_named_face.
5185         (ascii_face_of_lisp_face): Likewise.
5187         * dispextern.h (lookup_named_face): Fix prototype.
5189         * xdisp.c (handle_single_display_prop): Don't signal error in
5190         lookup_named_face for unknown fringe face name.
5191         (highlight_trailing_whitespace): Don't signal error in
5192         lookup_named_face if trailing-whitespace face unknown.
5193         (calc_line_height_property): Don't signal error in
5194         lookup_named_face if specified face name is unknown.
5196         * fringe.c (update_window_fringes): Show top row indicator if
5197         window has header-line.  Don't show arrow at bob and eob
5198         if the boundary indicators are not used.
5199         (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
5201         * window.c (set_window_buffer): Clear display_error_modiff.
5203 2004-11-22  Kim F. Storm  <storm@cua.dk>
5205         * fringe.c (update_window_fringes): Provide sensible fall-back
5206         value for non-nil indicate-buffer-boundaries setting.
5208 2004-11-22  Markus Rost  <rost@ias.edu>
5210         * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
5212 2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
5214         * eval.c (Fdefvar): Warn when var is let-bound but globally void.
5216 2004-11-21  Kim F. Storm  <storm@cua.dk>
5218         * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
5220         * xterm.c (x_clip_to_row): Add area arg.  Callers changed.
5221         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5223         * w32term.c (w32_clip_to_row): Add area arg.  Callers changed.
5224         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5226         * macterm.c (x_clip_to_row): Add area arg.  Callers changed.
5227         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5229         * xdisp.c (move_it_in_display_line_to, display_line):
5230         Restore saved_face_id if overflow-newline-into-fringe is enabled and
5231         line is continued before or in middle of element from display vector.
5233         * indent.c (Fvertical_motion): Fix last change.  Use another
5234         method to detect if iterator moved too far ahead after reseat.
5236         * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro.  Do not
5237         expand matrix width for overflow in zero-width area.
5238         (append_glyph, append_composite_glyph, produce_image_glyph)
5239         (append_stretch_glyph): Use it to avoid loop in redisplay.
5240         (note_mode_line_or_margin_highlight): Don't let help-echo from
5241         string override help-echo from image map.
5243 2004-11-20  Luc Teirlinck  <teirllm@auburn.edu>
5245         * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
5246         * callint.c (Fcall_interactively): Ditto.
5248 2004-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
5250         * minibuf.c (Fminibuffer_complete_and_exit):
5251         Fixup the case of the completed value, for case-indep completion.
5253 2004-11-20  Richard M. Stallman  <rms@gnu.org>
5255         * lisp.h (Fread_from_minibuffer): Add arg in decl.
5257         * minibuf.c (read_minibuf): New arg KEEP_ALL.  Callers changed.
5258         (Fread_from_minibuffer): New arg KEEP_ALL.  Callers changed.
5260         * search.c (Vsearch_spaces_regexp):
5261         Rename from Vsearch_whitespace_regexp.  All uses changed.
5263 2004-11-20  Thien-Thi Nguyen  <ttn@gnu.org>
5265         * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
5267 2004-11-19  Richard M. Stallman  <rms@gnu.org>
5269         * search.c (Vsearch_whitespace_regexp): New variable.
5270         (syms_of_search): Defvar it.
5271         (compile_pattern_1): Call re_set_whitespace_regexp with it.
5272         (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
5273         is non-nil.
5274         (struct regexp_cache): New element whitespace_regexp.
5275         (syms_of_search): Initialize whitespace_regexp elements.
5276         (compile_pattern): Compare whitespace_regexp elements.
5277         (compile_pattern_1): Set whitespace_regexp elements.
5279         * regex.c (regex_compile): Substitute whitespace_regexp
5280         for spaces, if it is nonzero.
5281         (whitespace_regexp): New variable.
5282         (re_set_whitespace_regexp): New function.
5284 2004-11-19  Kim F. Storm  <storm@cua.dk>
5286         * indent.c (Fvertical_motion): Fix last change.
5288 2004-11-18  Kim F. Storm  <storm@cua.dk>
5290         * indent.c (Fvertical_motion): Undo 2004-11-16 change.
5291         Instead, move back again if reseating moves too far ahead.
5293 2004-11-17  Luc Teirlinck  <teirllm@auburn.edu>
5295         * xdisp.c (message3): Call clear_message.
5297 2004-11-17  Kim F. Storm  <storm@cua.dk>
5299         * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
5301 2004-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5303         * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
5305         * xmenu.c (x_menu_in_use): Remove.
5306         (x_menu_set_in_use): Also set popup_activated_flag.
5308         * xfns.c (Fx_file_dialog): Call popup_activated instead of
5309         x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
5311         * xterm.h (x_menu_in_use): Remove.
5313 2004-11-16  Richard M. Stallman  <rms@gnu.org>
5315         * keymap.c (Fmap_keymap): New arg SORT-FIRST.
5316         Use map-keymap-internal to implement that.
5318         * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
5320 2004-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
5322         * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
5323         a window before using XWINDOW.
5325         * window.c (make_window, Fselect_window, make_dummy_parent)
5326         (save_window_save):
5327         * frame.c (make_frame):
5328         * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
5330         * lisp.h (NILP): Use EQ rather than XFASTINT.
5332 2004-11-16  Kim F. Storm  <storm@cua.dk>
5334         * fringe.c (Fdefine_fringe_bitmap): Always set 'h'.  Simplify.
5336         * indent.c (Fvertical_motion): Fix last change.  Only reseat when
5337         moving backwards.
5339 2004-11-16  Luc Teirlinck  <teirllm@auburn.edu>
5341         * dispextern.h: Extern reseat_at_previous_visible_line_start.
5343 2004-11-16  Kenichi Handa  <handa@m17n.org>
5345         * xdisp.c (display_mode_element): Fix previous change (calculate
5346         end position of substring to display correctly).
5348 2004-11-16  Kim F. Storm  <storm@cua.dk>
5350         * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
5351         Reported by Andrew M. Scott.
5353 2004-11-15  Kim F. Storm  <storm@cua.dk>
5355         * fns.c (Fsafe_plist_get): New defun.
5356         (syms_of_fns): Defsubr it.
5358         * lisp.h (Fsafe_plist_get): Add EXFUN.
5360         * xdisp.c (store_mode_line_string, produce_stretch_glyph):
5361         Use Fsafe_plist_get.
5362         (note_mode_line_or_margin_highlight, note_mouse_highlight):
5363         Fix image map element parsing.  Use Fsafe_plist_get.
5365 2004-11-15  Richard M. Stallman  <rms@gnu.org>
5367         * xdisp.c (get_next_display_element): Fix previous change.
5369 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5371         * window.c (shrink_windows): Handle special case of one window left
5372         when trying to shrink the final reminder.  Grow windows if
5373         total_removed is less than total_shrink.
5375         * xmenu.c (pop_down_menu): Remove global variable current_menu,
5376         extract pointer from arg with XSAVE_VALUE.
5377         (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
5378         Construct arg to record_unwind_protect with make_save_value.
5380 2004-11-13  Richard M. Stallman  <rms@gnu.org>
5382         * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
5383         (get_next_display_element): Fix previous change to apply only to \n.
5385         * indent.c (Fvertical_motion): Scan to PT from start of line to
5386         make iterator consistent.
5388         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5390 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5392         * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
5394         * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
5395         Record unwind with clean_up_file_dialog.
5397         * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
5398         Declare.
5400         * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
5402 2004-11-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5404         * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
5405         (xg_file_sel_destroy): Remove.
5406         (xg_file_response_cb, pop_down_file_dialog)
5407         (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
5408         New functions.
5409         (xg_get_file_with_chooser, xg_get_file_with_selection):
5410         Take new arg func, set it to xg_get_file_name_from_chooser/selector.
5411         Move common code to xg_get_file_name.  Return widget created.
5412         (xg_get_file_name): Set name, transient for, modal and destroy
5413         with parent here.  Connect response signal to xg_file_response_cb,
5414         connect delete-event to gtk_true.  Record pop_down_file_dialog
5415         for unwind.  Do event loop and call x_menu_wait_for_event in loop.
5416         (xg_create_widget): Make dialogs modal.
5418         * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
5419         Lisp_Object.
5420         (popup_get_selection): Move unwind protect ...
5421         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5422         Move destroy of widget to pop_down_menu.
5423         (popup_widget_loop): Move unwind protect ...
5424         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5425         Move destroy of widget to pop_down_menu.
5426         (pop_down_menu): BLOCK_INPUT and destroy widget/window.
5427         (xmenu_show): Record unwind pop_down_menu.  Move XMenuDestroy,
5428         x_mouse_leave and grabbed = 0 to pop_down_menu.
5430 2004-11-13  Kim F. Storm  <storm@cua.dk>
5432         * xdisp.c (make_cursor_line_fully_visible_p): New variable.
5433         (syms_of_xdisp): DEFVAR_BOOL it.
5434         (make_cursor_line_fully_visible, try_cursor_movement)
5435         (try_window_id): Use it.
5437 2004-11-12  Kim F. Storm  <storm@cua.dk>
5439         * dispextern.h (struct glyph_row): New member extra_line_spacing.
5440         (struct it): New member max_extra_line_spacing.
5441         (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
5442         (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
5443         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
5444         part of last line is only extra line spacing (so the text on the
5445         line is fully visible).  Use helper macros.
5446         Add W arg (to use them).  All callers changed.
5447         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
5448         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
5450         * window.c (window_scroll_pixel_based, Frecenter):
5451         Use move_it_vertically_backward directly.
5452         (Frecenter): Fix calculation of new start pos for negative arg.
5453         Before, the new start pos was sometimes chosen too far back, so
5454         the last line became only partially visible, and thus would be
5455         either only semi-visible or automatically scrolled to the middle
5456         of the window by redisplay.
5458         * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
5459         (move_it_vertically_backward): Don't recure to move further back.
5460         (move_it_vertically): Remove superfluous condition.
5461         (move_it_by_lines): Clear last_height when moved 0 lines.
5462         (resize_mini_window): Use it.max_extra_line_spacing.
5463         (display_tool_bar_line): Clear row->extra_line_spacing.
5464         (try_scrolling): Use move_it_vertically_backward directly.
5465         (redisplay_window): Likewise.
5466         (compute_line_metrics): Set row->extra_line_spacing.
5467         (display_line, display_string): Likewise.
5468         (x_produce_glyphs): Update it->max_extra_line_spacing.
5470         * xmenu.c (pop_down_menu): Return nil.
5472 2004-11-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5474         * xmenu.c (x_menu_wait_for_event): New function.
5475         (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
5476         to handle timers.
5477         (popup_widget_loop): Add argument do_timers.
5478         (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
5479         do_timers to popup_widget_loop.
5480         (xmenu_show): Call XMenuActivateSetWaitFunction so that
5481         x_menu_wait_for_event is called by XMenuActivate.
5482         (create_and_show_popup_menu): Pass 1 for do_timers to
5483         popup_get_selection.
5484         (pop_down_menu): New function.
5485         (popup_get_selection, popup_widget_loop): Unwind protect to
5486         pop_down_menu.
5487         (popup_widget_loop): Add argument widget.
5488         (create_and_show_popup_menu, create_and_show_dialog): Pass new
5489         argument widget to popup_widget_loop.
5491 2004-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
5493         * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
5495 2004-11-09  Kim F. Storm  <storm@cua.dk>
5497         * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
5498         Fix various comments referring to XEvents instead of input events.
5499         (x_queue_event): Fix format strings.
5500         (x_stop_queuing_selection_requests): Likewise.
5502         * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
5503         (pint2hrstr): Add extra braces to silence compiler.
5505         * print.c (print_object): Fix format string.
5507         * lread.c (read1): Fix next_char matching.
5509         * lisp.h (Fdelete): Add EXFUN.
5510         (replace_range_2): Add prototype.
5512         * keyboard.c (read_avail_input): Remove unused variable 'discard'.
5514         * intervals.h (NULL_INTERVAL_P): Add separate version when
5515         ENABLE_CHECKING is not defined to silence compiler.
5516         (compare_string_intervals): Add prototype.
5518         * fringe.c (destroy_fringe_bitmap): Fix return type.
5519         (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
5521         * emacs.c (Fdump_emacs): Fix format string.
5523         * doc.c: Include <ctype.h>.
5524         (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
5526         * data.c (store_symval_forwarding): Remove unused variables.
5528         * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
5530 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5532         * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
5533         to ${OLDXMENU}.
5535 2004-11-09  Kim F. Storm  <storm@cua.dk>
5537         * process.c (Fmake_network_process): Remove kludge for interrupted
5538         connects on BSD.  If connect is interrupted, just close socket and
5539         start over rather than sleeping and retry with same socket.
5541 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5543         * .cvsignore: Add buildobj.lst.
5545         * doc.c: New variable Vbuild_files.
5546         (Fsnarf_documentation): If Vbuild_files is nil, populate it with
5547         file names from buildobj.lst.  Only attach docstrings from files
5548         that are in Vbuild_files.
5549         (syms_of_doc): Defvar Vbuild_files.
5551         * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
5552         and w32*.o.
5553         (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
5554         (mostlyclean): Rm buildobj.lst
5556         * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
5557         is linked.
5559 2004-11-09  Kim F. Storm  <storm@cua.dk>
5561         * fringe.c (update_window_fringes): Update fringe bitmaps if
5562         cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
5563         also update previous row to get rid of misc. artifacts.
5565 2004-11-08  Kim F. Storm  <storm@cua.dk>
5567         * xdisp.c (fast_find_position): Fix start pos if header line present.
5568         (note_mouse_highlight): Clear mouse face if we move out of text area.
5570 2004-11-08  Eli Zaretskii  <eliz@gnu.org>
5572         * editfns.c: Move #include "systime.h" before <sys/resource.h>.
5573         Don't include <sys/time.h> explicitly.
5574         Include <stdio.h> unconditionally, not just on MacOS.
5576 2004-11-08  Kenichi Handa  <handa@m17n.org>
5578         * fontset.c (fontset_pattern_regexp): Cancel my previous change;
5579         don't pay attention to '\' before '*'.
5580         (fontset_pattern_regexp): Change the meaning of the second arg.
5581         (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
5582         (check_fontset_name): Try NAME as literal at first, and if it
5583         failes, try NAME as pattern.
5585 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5587         * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
5589 2004-11-07  Andreas Schwab  <schwab@suse.de>
5591         * lisp.h (Fmsdos_downcase_filename): Declare.
5592         * dired.c (Fmsdos_downcase_filename): Don't declare here.
5593         * fileio.c: Likewise.
5595 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5597         * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
5598         comparisons with integers instead of Lisp_Object address.
5599         (Fmsdos_set_keyboard): Declare argument allkeys.
5601         * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
5603         * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
5604         int/Lisp_Object mixup.
5606         * fileio.c: Ditto.
5608 2004-11-06  Steven Tamm  <steventamm@mac.com>
5610         * editfns.c: Need to include sys/time.h before resource.h on darwin.
5612 2004-11-06  Richard M. Stallman  <rms@gnu.org>
5614         * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
5616         * xfaces.c (merge_named_face): GCPRO the face_name in the
5617         named_merge_point struct that we make.
5618         (merge_face_heights): Eliminate GCPRO arg.  All callers changed.
5620         * keyboard.c (command_loop_1): Change Vtransient_mark_mode
5621         before deciding whether to inactivate mark.
5623 2004-11-06  Lars Brinkhoff  <lars@nocrew.org>
5625         * config.in: Regenerate (add HAVE_GETRUSAGE).
5626         * editfns.c (Fget_internal_run_time): New function.
5627         (syms_of_data): Defsubr it.
5628         * fns.c (sxhash): As far as possible, merge calculation of
5629         hash code for symbols and strings.
5631 2004-11-06  Eli Zaretskii  <eliz@gnu.org>
5633         * frame.c (syms_of_frame): Fix the example in the doc string.
5635 2004-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5637         * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
5639         * xmenu.c (popup_get_selection, create_and_show_popup_menu)
5640         (create_and_show_dialog): Revert change from 2004-10-31.
5642 2004-11-05  Luc Teirlinck  <teirllm@auburn.edu>
5644         * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
5646 2004-11-05  Kim F. Storm  <storm@cua.dk>
5648         * print.c (print_object): Print Lisp_Misc_Save_Value objects.
5650         * fileio.c (Ffile_modes): Doc fix.
5651         (auto_save_1): Check for Ffile_modes nil value.
5653 2004-11-05  Kim F. Storm  <storm@cua.dk>
5655         * xselect.c (struct selection_event_queue, selection_queue)
5656         (x_queue_selection_requests, x_queue_event)
5657         (x_start_queuing_selection_requests)
5658         (x_stop_queuing_selection_requests): Add new queue for selection
5659         input events to replace previous XEvent queue in xterm.c.
5660         (queue_selection_requests_unwind): Adapt to new queue.
5661         (x_reply_selection_request): Adapt to new queue.
5662         Unexpect wait_object in case of x errors (memory leak).
5663         (x_handle_selection_request, x_handle_selection_clear): Make static.
5664         (x_handle_selection_event): New function.  May queue selection events.
5665         (wait_for_property_change_unwind): Use save_value instead of cons.
5666         Clear property_change_reply_object.
5667         (wait_for_property_change): Abort if already waiting.
5668         Use save_value instead of cons for unwind data.
5669         (x_handle_property_notify): Skip events already arrived, but don't
5670         free them, as "arrived" field is checked by wait_for_property_change,
5671         and it will be freed by unwind or explicit unexpect_property_change.
5672         (x_get_foreign_selection): Add to new queue.
5673         (receive_incremental_selection): Don't unexpect wait_object when done
5674         as it has already been freed by previous wait_for_property_change.
5676         * xterm.h (x_start_queuing_selection_requests)
5677         (x_stop_queuing_selection_requests, x_handle_selection_request)
5678         (x_handle_selection_clear): Remove prototypes.
5679         (x_handle_selection_event): Add prototype.
5681         * xterm.c (handle_one_xevent): Don't queue X selection events
5682         here, it may be too late if we start queuing after we have already
5683         stored some selection events into the kbd buffer.
5684         (struct selection_event_queue, queue, x_queue_selection_requests)
5685         (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
5686         (x_stop_queuing_selection_requests): Remove/move to xselect.c.
5687         (x_catch_errors_unwind): Block input around final XSync.
5689         * keyboard.h (kbd_buffer_unget_event): Add prototype.
5691         * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
5692         (kbd_buffer_unget_event): New function.
5693         (kbd_buffer_get_event, swallow_events): Combine SELECTION events
5694         and use x_handle_selection_event.
5695         (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
5697 2004-11-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5699         * xselect.c (TRACE3): New debug macro.
5700         (x_reply_selection_request): Use it.
5701         (receive_incremental_selection): In call to TRACE0, the name of
5702         a symbol is in xname.
5704 2004-11-05  Kim F. Storm  <storm@cua.dk>
5706         * fontset.c (fontset_pattern_regexp): Use unsigned char.
5708 2004-11-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5710         * fileio.c (Fnext_read_file_uses_dialog_p): New function.
5712         * gtkutil.h (use_old_gtk_file_dialog): Declare.
5714         * gtkutil.c: Make use_old_gtk_file_dialog non-static.
5715         (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
5716         * xfns.c (syms_of_xfns): ... to here.
5718         * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
5719         it doesn't start with /.
5721 2004-11-04  Kenichi Handa  <handa@m17n.org>
5723         * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
5724         treat it as a literal character.
5726 2004-11-03  Kim F. Storm  <storm@cua.dk>
5728         * .gdbinit (ppt): New function.
5730 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5732         * xterm.c (x_window_to_scroll_bar): Only call
5733         xg_get_scroll_id_for_window if toolkit scroll bars are used.
5735         * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
5736         of save.
5738 2004-11-02  Andreas Schwab  <schwab@suse.de>
5740         * window.c (Fscroll_right): Fix last change.
5742 2004-11-02  Kim F. Storm  <storm@cua.dk>
5744         * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
5746 2004-11-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5748         * callproc.c (Fcall_process): Block input around vfork.
5750 2004-11-02  Kim F. Storm  <storm@cua.dk>
5752         * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
5753         (syms_of_eval): Defsubr it.
5755 2004-11-02  Richard M. Stallman  <rms@gnu.org>
5757         * insdel.c (replace_range_2): New function.
5759         * casefiddle.c (casify_region): Handle changes in byte-length
5760         using replace_range_2.
5762         * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
5764         * xdisp.c (back_to_previous_visible_line_start):
5765         Subtract 1 from pos when checking previous newline for invisibility.
5767         * window.c (window_scroll_pixel_based): Update preserve_y
5768         for header line if any.
5769         (Fscroll_left, Fscroll_right): Don't call interactive_p;
5770         use a new second argument instead.
5772         * eval.c (Fcall_interactive_p): New function.
5773         (interactive_p): Don't test INTERACTIVE here.
5774         (Finteractive_p): Doc fix.
5776         * eval.c (Feval): Abort if INPUT_BLOCKED_P.
5778 2004-11-02  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
5780         * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
5781         comparing font names.
5783 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5785         * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
5786         Fx_file_dialog if only directories should be read.
5788         * lisp.h: Fx_file_dialog takes 5 parameters.
5790         * xfns.c (Fx_file_dialog): Both Motif and GTK version:
5791         Add parameter only_dir_p.
5792         In Motif version, don't put DEFAULT_FILENAME in filter part of the
5793         dialog, just text field part.  Do not add DEFAULT_FILENAME
5794         to list of files if it isn't there.
5795         In GTK version, pass only_dir_p parameter to xg_get_file_name.
5797         * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
5798         Check only_dir_p instead of comparing prompt to "Dired".  When using
5799         a save dialog, add option kNavDontConfirmReplacement, change title
5800         to "Enter name", change text for save button to "Ok".
5802         * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
5803         Check only_dir_p instead of comparing prompt to "Dired".
5805         * gtkutil.c (xg_get_file_with_chooser)
5806         (xg_get_file_with_selection): New functions, only defined ifdef
5807         HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
5808         respectively.
5809         (xg_get_file_name): Add parameter only_dir_p.
5810         Call xg_get_file_with_chooser or xg_get_file_with_selection
5811         depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
5812         (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
5814         * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
5816         * config.in: Rebuild (added HAVE_GTK_FILE_*).
5818 2004-11-01  Kim F. Storm  <storm@cua.dk>
5820         * process.c (connect_wait_mask, num_pending_connects):
5821         Only declare and use them if NON_BLOCKING_CONNECT is defined.
5822         (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
5823         (IF_NON_BLOCKING_CONNECT): New helper macro.
5824         (wait_reading_process_output): Only declare and use local vars
5825         Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
5827 2004-11-01  Andy Petrusenco  <Igrek@star-sw.com>  (tiny change)
5829         * w32term.c (x_scroll_run): Delete region objects after use.
5831 2004-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5833         * xmenu.c: Add prototypes for forward function declarations.
5834         (popup_get_selection): Remove parameter do_timers, remove call to
5835         timer_check.
5836         (create_and_show_popup_menu, create_and_show_dialog):
5837         Remove parameter do_timers from call to popup_get_selection.
5839         * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
5840         tool_bar_items and assign the result to f->tool_bar_items if
5841         not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
5842         tool_bar_items to assignment of result.
5844         * atimer.c (alarm_signal_handler): Do not call set_alarm if
5845         pending_atmers is non-zero.
5847 2004-10-31  Kim F. Storm  <storm@cua.dk>
5849         * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
5851 2004-10-28  Will  <will@glozer.net>
5853         * macterm.c: Allow user to assign key modifiers to the Mac Option
5854         key via a 'mac-option-modifier' variable.
5856 2004-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
5858         * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
5859         Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
5860         (x_handle_selection_request, x_handle_selection_clear)
5861         (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
5863 2004-10-28  Richard M. Stallman  <rms@gnu.org>
5865         * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5867         * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5869 2004-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
5871         * syntax.c (scan_sexps_forward): Give precedence to a 2-char
5872         comment-starter over a 1-char one.
5874 2004-10-27  Richard M. Stallman  <rms@gnu.org>
5876         * xdisp.c (get_next_display_element): In mode lines,
5877         treat newline and tab like other control characters.
5879         * editfns.c (Fmessage): Doc fix.
5881         * indent.c (vmotion): When moving up, check the newline before.
5882         Make prevline an int, not a Lisp_Object.
5884 2004-10-27  Kim F. Storm  <storm@cua.dk>
5886         * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
5887         Only allocate info and discarded tables once.
5889         * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
5890         (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
5891         (SAFE_FREE): Test it to determine if we need to unwind to free.
5892         Remove size arg.  All users changed.
5893         (SAFE_FREE_LISP) Remove.  All users changed to use SAFE_FREE.
5895 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5897         * gtkutil.c: Put empty line between comment and function body.
5898         (xg_destroy_widgets): Rename from remove_from_container.
5899         Just destroy all widgets in list.  Argument wcont removed.
5900         (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
5901         instead of remove_from_container.
5902         (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
5903         (free_frame_tool_bar): Add comment.
5905         * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
5906         is not NULL before strcmp.
5908 2004-10-26  Kim F. Storm  <storm@cua.dk>
5910         * callint.c (Fcall_interactively): Add 'U' code to get the
5911         up-event discarded by a previous 'k' or 'K' argument.
5913 2004-10-26  David Kastrup  <dak@gnu.org>
5915         * buffer.c (syms_of_buffer): Fix a few typos.
5917 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5919         * xsmfns.c: Put empty line between comment and function body.
5920         Use two spaces before comment end.
5922 2004-10-25  Kenichi Handa  <handa@m17n.org>
5924         * fontset.c (fontset_pattern_regexp): Optimize for the case that
5925         PATTERN is full XLFD.
5927 2004-10-24  Kenichi Handa  <handa@m17n.org>
5929         * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
5931         * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
5932         (regex_compile): Return REG_ERANGEX if appropriate.
5934 2004-10-22  Kenichi Handa  <handa@m17n.org>
5936         * editfns.c (Ftranslate_region_internal): New function.
5937         (syms_of_editfns): Defsubr it.
5939 2004-10-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5941         * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
5943 2004-10-21  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
5945         * xterm.h (x_output): New member `xic_base_fontname'.
5946         (FRAME_XIC_BASE_FONTNAME): New macro.
5947         (xic_free_xfontset): Declare.
5949         * xfns.c (xic_create_xfontset): Share fontsets between frames
5950         based on base_fontname.
5951         (xic_free_xfontset): New function.
5952         (free_frame_xic): Use it.
5953         (xic_set_xfontset): Ditto.
5955         * xterm.c (xim_destroy_callback): Ditto.
5958 2004-10-20  B. Anyos  <banyos@freemail.hu>  (tiny change)
5960         * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
5962 2004-10-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5964         * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
5965         XSync.
5967         * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
5968         New variables and constant.
5969         (main): Calculate heap_bss_diff.  If we are dumping and the
5970         heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
5971         and exec ourself again.
5972         (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
5973         print a warning.
5975         * lastfile.c: Make my_endbss and my_endbss_static available on all
5976         platforms.
5978         * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
5979         * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
5981 2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>
5983         * data.c (Flocal_variable_if_set_p): Doc fix.
5985 2004-10-19  Jason Rumney  <jasonr@gnu.org>
5987         * w32.c (init_environment): Set emacs_dir correctly when running
5988         emacs from the build directory.
5990 2004-10-19  Richard M. Stallman  <rms@gnu.org>
5992         * editfns.c (Fdelete_and_extract_region):
5993         If region is empty, return null string.
5995 2004-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5997         * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
5998         and canon_width.
5999         (xg_frame_cleared): Remove.
6001         * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
6002         (xg_find_top_left_in_fixed): Remove.
6003         (xg_create_scroll_bar): Put an event box widget between
6004         the scroll bar widget and the edit widget.
6005         (xg_show_scroll_bar): Show the parent widget (the event box).
6006         (xg_remove_scroll_bar): Destroy parent (the event box) also.
6007         (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
6008         Move the parent (the event box) widget inside the fixed widget.
6009         Move window clear to xterm.c.
6011         * gtkutil.h (xg_frame_cleared): Remove.
6013         * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
6014         (x_scroll_bar_create, XTset_vertical_scroll_bar):
6015         Remove arguments left and width to xg_update_scrollbar_pos.
6016         (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
6018 2004-10-19  Kenichi Handa  <handa@m17n.org>
6020         * xdisp.c (display_mode_element): Fix display of wide chars.
6022 2004-10-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6024         * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
6025         gdk_window_clear and move gdk_window_process_all_updates after
6026         clear so events are sent to the X server in correct order.
6028 2004-10-18  Kenichi Handa  <handa@m17n.org>
6030         * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
6031         comparing font names.
6032         (fs_query_fontset): Use fast_string_match for comparing fontset names.
6033         (list_fontsets): Likewise.
6035         * search.c (fast_string_match_ignore_case): New function.
6037         * lisp.h (fast_string_match_ignore_case): Extern it.
6039 2004-10-17  Kim F. Storm  <storm@cua.dk>
6041         * xdisp.c (overlay_arrow_at_row): Return overlay string rather
6042         than bitmap if there is not left fringe.
6043         (get_overlay_arrow_glyph_row): Also used on windows system.
6044         (display_line): Display overlay string if no left fringe.
6046 2004-10-16  Jason Rumney  <jasonr@gnu.org>
6048         * w32fns.c (w32_font_match): Encode font name being matched.
6050 2004-10-16  Richard M. Stallman  <rms@gnu.org>
6052         * window.c (Fspecial_display_p): Doc fix.
6054 2004-10-15  Stefan Monnier  <monnier@iro.umontreal.ca>
6056         * doc.c (Fsubstitute_command_keys): Fix remap-handling.
6057         Don't ignore menus, because where-is-internal already does it for us.
6059 2004-10-15  Kim F. Storm  <storm@cua.dk>
6061         * xdisp.c (redisplay_window): Only update fringes and vertical
6062         border on window frames.
6064 2004-10-14  Andreas Schwab  <schwab@suse.de>
6066         * m/ia64.h (DATA_SEG_BITS): Don't define.
6068 2004-10-14  Kim F. Storm  <storm@cua.dk>
6070         * xterm.h: Include Xutil.h after keysym.h to work around bug
6071         in some X versions.
6073 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6075         * fns.c (map_char_table): Add missing gcpros.
6077 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6079         * keymap.c (get_keymap): An autoload form is not a keymap.
6081         * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
6083 2004-10-13  Kim F. Storm  <storm@cua.dk>
6085         * callproc.c (Fcall_process): Simplify handling of display arg.
6086         Resume `display_on_the_fly' once a coding system is determined.
6088         * xdisp.c (redisplay_preserve_echo_area): Fix last change.
6090 2004-10-12  Kim F. Storm  <storm@cua.dk>
6092         * xdisp.c (redisplay_preserve_echo_area): Flush display in case
6093         caller, such as call-process, is not going to poll for input.
6094         (calc_line_height_property): Handle case where it->object is nil.
6096         * xterm.c (x_redisplay_interface): Fix flush_display_optional.
6098 2004-10-12  Kenichi Handa  <handa@m17n.org>
6100         * xdisp.c (get_next_display_element):
6101         If unibyte_display_via_language_environment is zero, display 8-bit
6102         chars in octal in unibyte buffer.
6104 2004-10-12  Kim F. Storm  <storm@cua.dk>
6106         * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
6107         are no ordinary bindings.
6109 2004-10-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6111         * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
6113 2004-10-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6115         * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
6116         (x_lower_frame): Add BLOCK_INPUT around SendBehind.
6117         (make_mac_frame): Add BLOCK_INPUT around the making of a
6118         terminal frame.
6119         (mac_initialize): Add BLOCK_INPUT around carbon initialization.
6120         * macgui.h (mktime): Use emacs_mktime.
6121         * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
6122         Make a cancel file-open dialog be like C-g.
6123         * mac.c (mktime): Use emacs_mktime.
6124         (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
6125         (Fmac_paste_function): Add better error handling for carbon cut/paste.
6127 2004-10-10  Kim F. Storm  <storm@cua.dk>
6129         * keyboard.c (timer_resume_idle): New function to resume idle
6130         timer without resetting timers on the idle list.
6131         (read_char): Use timer_resume_idle.  Remove local var last_idle_start.
6132         (timer_start_idle, timer_stop_idle): Declare static.
6133         (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
6135         * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
6137 2004-10-08  Steven Tamm  <steventamm@mac.com>
6139         * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
6140         * macterm.c (mac_check_for_quit_char): Remove warning for using
6141         NULL where 0 should be used.
6142         * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
6143         objc/malloc.h
6144         * mac.c: Include time.h for Tiger compatibility.
6146 2004-10-07  Kim F. Storm  <storm@cua.dk>
6148         * xdisp.c (redisplay_window): Fix flicker on vertical line between
6149         windows.  Update vertical line after drawing window fringes, but
6150         only if actually drawing any bitmaps--or there is no fringe.
6152         * xterm.c (x_update_window_end): Likewise.
6153         * macterm.c (x_update_window_end): Likewise.
6154         * w32term.c (x_update_window_end): Likewise.
6156         * fringe.c (draw_window_fringes): Return value now indicates if
6157         any fringe bitmaps were redrawn (or there are no fringes).
6159         * dispextern.h (draw_window_fringes): Update prototype.
6161 2004-10-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6163         * macfns.c (mac_get_window_bounds): Add extern.
6164         (x_real_positions): Use mac_get_window_bounds.
6166         * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
6167         xmenu.c (YAILOM).
6169         * macterm.c [!MAC_OSX]: Include Windows.h.
6170         (front_emacs_window): Rename from mac_front_window.  All uses
6171         changed.  Return the frontmost non-tooltip emacs window.
6172         (mac_get_window_bounds): New function.
6173         (x_calc_absolute_position): Use the difference of width and height
6174         between the inner and outer window.
6175         (x_set_offset): Specify window position by the coordinae of the
6176         outer window.  Adjust the position if the title bar is completely
6177         outside the screen.
6178         (app_is_suspended, app_sleep_time): Remove unused variables.
6179         (do_app_resume, do_app_suspend): Remove their contents because
6180         window-activate/deactivate events will do the job.
6181         (do_zoom_window): Remove unused variables.  Make compliant to the
6182         standard way of zooming.  Set f->left_pos and f->top_pos.
6183         (XTread_socket): Don't use argument `expected'.  Don't use
6184         FrontWindow to determine the clicked window.  Exclude unprocessed
6185         mouseUp cases in the early stage.  Add parentheses to fix operator
6186         precedence.
6187         (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
6189 2004-10-05  Jan Dj\e,Ad\e(Brv.  <jan.h.d@swipnet.se>
6191         * config.in: Regenerate.
6193         * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
6194         HAVE_EXECSHIELD.
6196 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6198         * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
6199         a row if Alt or Meta has been found for that row.  Also stop scanning
6200         for Keysyms for that row.
6202 2004-10-04  Kim F. Storm  <storm@cua.dk>
6204         * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
6205         to list.  Include overlay arrow bitmap in return value.
6207         * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
6208         bars with fractional column width.  If scroll bar separates two
6209         windows, move it towards the window it belongs to.  Only update
6210         the padding area below the scroll bar widget when necessary,
6211         i.e. when scroll bar widget is created, moved, or resized.
6213         * xdisp.c (define_frame_cursor1): Do not change frame cursor
6214         while tracking/dragging mouse.
6215         (x_draw_vertical_border): Do not draw line if frame has scroll bars.
6217         * window.c (coordinates_in_window): Relax check for cursor
6218         on vertial border between mode lines.
6219         (Fset_window_fringes): Do not allow negative widths.
6220         (Fset_window_scroll_bars): Likewise.
6222         * .gdbinit (pp): Shorthand for p ARG + pr.
6223         (ff): New command: flush frame updates (X only).
6225 2004-10-03  Michael Albinus  <michael.albinus@gmx.de>
6227         * fileio.c (auto_save_1) Call Ffile_modes for remote files.
6229 2004-09-30  Kenichi Handa  <handa@m17n.org>
6231         * process.c (send_process): Free composition data.
6233         * fileio.c (Finsert_file_contents): Free composition data.
6235         * coding.c (code_convert_region): Don't skip ASCIIs if there are
6236         compositions to encode.
6237         (encode_coding_string): Likewise.  Free composition data.
6239 2004-09-30  Florian Weimer  <fw@deneb.enyo.de>
6241         * coding.c (code_convert_region): Free composition data.
6243 2004-09-29  Kim F. Storm  <storm@cua.dk>
6245         * fringe.c: Remove limit on number of bitmaps.
6246         (fringe_bitmaps, fringe_faces): Change to pointers.
6247         (max_fringe_bitmaps): New var.
6248         (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
6249         (init_fringe): Allocate fringe_bitmaps and fringe_faces.
6251         * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
6252         (struct glyph_row): Reorder fringe_bitmap related fields.
6253         (struct it): Likewise.
6255         * w32term.c (fringe_bmp): Change to pointer.
6256         (max_fringe_bmp): New var.
6257         (w32_define_fringe_bitmap): Expand fringe_bmp.
6258         (w32_draw_fringe_bitmap): Check max_fringe_bmp.
6259         (w32_destroy_fringe_bitmap): Likewise.
6261 2004-09-29  Kim F. Storm  <storm@cua.dk>
6263         * fringe.c: Simplify last change.
6264         (lookup_fringe_bitmap): New function.
6265         (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
6266         (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
6267         Keep standard bitmaps in Vfringe_bitmaps.
6268         (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
6269         (Fset_fringe_bitmap_face): Likewise.
6271         * dispextern.h (lookup_fringe_bitmap): Add prototype.
6272         (valid_fringe_bitmap_p): Remove prototype.
6274         * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
6276 2004-09-29  Kim F. Storm  <storm@cua.dk>
6278         * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
6279         (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
6281         * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
6283         * fringe.c (Vfringe_bitmaps): New variable.
6284         (syms_of_fringe): DEFVAR_LISP it.
6285         (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
6286         Change arg to Lisp_Object and fail if not an integer.
6287         (get_fringe_bitmap_name, resolve_fringe_bitmap)
6288         (destroy_fringe_bitmap): New functions.
6289         (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
6290         Use destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
6291         clear its fringe property.
6292         (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
6293         Fdestroy_fringe_bitmap.
6294         (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
6295         bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
6296         and set fringe property.  Signal error if no free slots.
6297         (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
6298         (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
6300         * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
6301         symbols with a fringe property.
6303 2004-09-27  Kim F. Storm  <storm@cua.dk>
6305         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
6306         Doc fix.  Format may now be a symbol or alist, not a cons.
6308         * fringe.c (update_window_fringes): Handle new formats of
6309         indicate-buffer-boundaries (symbol or alist).  No longer
6310         allow a simple cons.
6311         (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
6313 2004-09-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6315         * config.in: Rebuild.
6317 2004-09-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6319         * config.in: Rebuild.
6321         * Makefile.in: Run setarch i386 ./temacs if exec-shield  is present.
6323 2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
6325         * xterm.c (x_term_init): Work around a bug in some X servers.
6327 2004-09-18  Richard M. Stallman  <rms@gnu.org>
6329         * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
6331         * xdisp.c (try_window_reusing_current_matrix):
6332         Handle the case where we reach the old displayed text,
6333         out of sync with the old line boundary.
6335 2004-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
6337         * fileio.c (Finsert_file_contents): Fix case of replacement in a
6338         narrowed buffer.
6340 2004-09-14  Kim F. Storm  <storm@cua.dk>
6342         * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
6344         * xfaces.c (Qface_no_inherit): New var.
6345         (syms_of_xfaces): Intern and staticpro it.
6346         (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
6347         (Finternal_copy_lisp_face, update_face_from_frame_parameter):
6348         Don't increment face_change_count when face has non-nil
6349         face-no-inherit property.
6351 2004-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6353         * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
6354         (Fbyte_code): Remove dead code after `wrong_type_argument'.
6356         * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
6357         before doing the mark_stack_check_gcpros since they're not on the stack.
6359 2004-09-12  Kim F. Storm  <storm@cua.dk>
6361         * editfns.c (Fformat): Handle format strings with multiple text
6362         properties.  Reverse text property list from the format string,
6363         so the positions are in increasing order.
6365 2004-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6367         * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
6368         x_uncatch_errors so that possible protocol errors are delivered.
6370 2004-09-10  Eli Zaretskii  <eliz@gnu.org>
6372         * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
6373         blockinput.h.
6374         (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
6375         charset.h, and coding.h
6376         (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
6377         (term.o): Depend on window.h and keymap.h.
6378         (abbrev.o): Depend on syntax.h.
6379         (callint.o): Depend on keymap.h.
6380         (casefiddle.o): Depend on charset.h and keymap.h.
6381         (category.o): Depend on keymap.h.
6382         (coding.o): Depend on dispextern.h.
6383         (cmds.o): Depend on keyboard.h and keymap.h.
6384         (dispnew.o): Depend on indent.h and intervals.h.
6385         (doc.o): Depend on keymap.h.
6386         (editfns.o): Depend on frame.h.
6387         (emacs.o): Depend on dispextern.h.
6388         (fileio.o): Don't depend on ccl.h.
6389         (filelock.o): Depend on charset.h and coding.h.
6390         (frame.o): Depend on w32term.h and macterm.h.
6391         (insdel.o): Depend on region-cache.h.
6392         (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
6393         (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
6394         (search.o): Depend on $(INTERVALS_SRC).
6395         (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
6396         (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
6397         xterm.h, w32term.h, and macterm.h.
6398         (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
6399         w32term.h, and macterm.h.
6400         (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
6401         region-cache.h, xterm.h, w32term.h, and macterm.h.
6402         (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
6403         (data.o): Depend on frame.h.
6404         (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
6405         (print.o): Depend on termchar.h and $(INTERVALS_SRC).
6406         (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
6407         (intervals.o): Depend on keymap.h.
6409         * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
6410         Add debugging print-out to termscript.
6412 2004-09-09  Richard M. Stallman  <rms@gnu.org>
6414         * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
6416 2004-09-08  Richard M. Stallman  <rms@gnu.org>
6418         * window.c (Fset_window_buffer): Doc fix.
6420         * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
6422 2004-09-08  Dan Nicolaescu  <dann@ics.uci.edu>
6424         * minibuf.c (history_delete_duplicates): New variable.
6425         (read_minibuf): Use it.
6426         (syms_of_minibuf): Create the corresponding lisp variable.
6428 2004-09-08  Kim F. Storm  <storm@cua.dk>
6430         * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
6431         overlay just before point.
6433 2004-09-07  Luc Teirlinck  <teirllm@auburn.edu>
6435         * buffer.h (struct buffer): Add auto_save_file_format field.
6436         * buffer.c (reset_buffer, init_buffer_once):
6437         Handle auto_save_file_format field.
6438         (syms_of_buffer): Add DEFVAR_PER_BUFFER for
6439         `buffer-auto-save-file-format'.
6440         * fileio.c: Delete declaration for removed Vauto_save_file_format.
6441         (build_annotations): Adapt to replacement of
6442         `auto-save-file-format' with the new buffer-local variable
6443         `buffer-auto-save-file-format'.
6444         (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
6446 2004-09-07  Jason Rumney  <jasonr@gnu.org>
6448         * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
6450         * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
6451         Handle Unicode menu titles.
6453 2004-09-07  Kim F. Storm  <storm@cua.dk>
6455         * xdisp.c (set_cursor_from_row): Fix last change.  Only use 'cursor'
6456         property from text property or overlay strings at point.
6458 2004-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
6460         * xmenu.c (update_submenu_strings): YAILOM.
6461         (set_frame_menubar): Make sure last_i is initialized.
6463 2004-09-03  Jason Rumney  <jasonr@gnu.org>
6465         * w32menu.c (_widget_value): Add lname and lkey.
6466         (digest_single_submenu): Set lname and lkey in widget_value
6467         instead of name and key.
6468         (update_submenu_strings): New function.
6469         (set_frame_menubar): Remove call to inhibit_garbage_collection,
6470         call update_submenu_strings.
6472         * w32menu.c (globals_of_w32menu): Check for Unicode API.
6473         (digest_single_submenu, w32_menu_show): Encode menu strings as
6474         UTF-8 if Unicode API is available.
6475         (utf8to16): New function.
6476         (add_menu_item): Use it when calling Unicode API.
6478 2004-09-03  Kim F. Storm  <storm@cua.dk>
6480         * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
6481         in overlay or text-property strings; set cursor on corresponding
6482         glyph rather than at end of the string.
6484 2004-09-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6486         * macfns.c (x_real_positions): Save the current window port and
6487         set a new one before obtaining the global coordinate.
6488         Use FRAME_MAC_WINDOW.
6489         (x_set_name, x_set_title): Encode title to UTF8.
6490         Use SetWindowTitleWithCFString.
6491         (Fx_server_version): Get correct OS version.
6493         * macmenu.c (add_menu_item): Remove unused variable `i'.
6494         Don't let separator items destroy refence constants of other menu items.
6496         * macterm.c (x_update_end): Move SetPortWindowPort to inside
6497         BLOCK_INPUT.
6498         (x_set_offset): Use FRAME_MAC_WINDOW.
6500         * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
6501         nontext_cursor if it is on a scroll bar.
6503         * s/darwin.h (LIBS_CARBON): New define to specify libraries for
6504         Carbon support.
6505         (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
6506         Use LIBS_CARBON.
6508 2004-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6510         * xfns.c (x_set_name_internal): New function.  Check if we shall call
6511         xfree before ENCODE_UTF_8.
6512         (x_set_name, x_set_title): Call x_set_name_internal.
6514 2004-08-31  NAKAMURA Toshikazu  <nr-tkz@nifty.com>  (tiny change)
6516         * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
6517         reload it.
6519 2004-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6521         * macmenu.c (_widget_value): Add lname and lkey.
6522         (single_submenu): Set lname and lkey in widget_value
6523         instead of name and key.
6524         (update_submenu_strings): New function.
6525         (set_frame_menubar): Remove call to inhibit_garbage_collection,
6526         call update_submenu_strings.
6528         * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
6529         instead of name and key.
6530         (update_submenu_strings): New function.
6531         (set_frame_menubar): Remove call to inhibit_garbage_collection,
6532         call update_submenu_strings.
6534         * gtkutil.h (_widget_value): Added lname and lkey.
6536 2004-08-30  Steven Tamm  <steventamm@mac.com>
6538         * macmenu.c (mac_menu_show): Remove shadowing of menu variable
6539         by using different names for inner loop variables.
6541 2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6543         * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
6544         from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
6546         * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
6547         tool bar items is 0.
6549 2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6551         * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
6552         strings in menu items.
6553         (single_submenu): Use ENCODE_MENU_STRING
6554         (mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
6555         button release isn't passed to event loop
6556         (add_menu_item): Use SetMenuItemWithCFString
6558 2004-08-26  Steven Tamm  <steventamm@mac.com>
6560         * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
6561         tool-bar/menu click.
6562         * macfns.c (Fx_file_dialog): Implement using NavServices.
6564 2004-08-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6566         * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
6568         * xfns.c (x_window_to_frame, x_any_window_to_frame)
6569         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6570         (x_top_window_to_frame): Return 0 if wdesc is None.
6572 2004-08-22  Richard M. Stallman  <rms@gnu.org>
6574         * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
6575         HAVE_TERMIOS]: If there's no char for this signal, drop through
6576         and use system calls.
6578         * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
6580 2004-08-20  Kim F. Storm  <storm@cua.dk>
6582         * process.c (wait_reading_process_output): Rename from
6583         wait_reading_process_input.  All uses changed.
6584         (wait_reading_process_output_1): Rename from
6585         wait_reading_process_input_1.  All uses changed.
6587         * dispnew.c (Fsleep_for): Remove obsolete code.
6589 2004-08-20  Kenichi Handa  <handa@m17n.org>
6591         * syntax.c (skip_chars): Fix for unibyte case.
6593 2004-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
6595         * syntax.c (char_quoted): Mixup byte/char pos.
6596         (back_comment): Fixup globals in all cases.
6598 2004-08-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6600         * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
6601         passing it to gtk_window_set_title.
6603 2004-08-19  Kim F. Storm  <storm@cua.dk>
6605         * process.c (wait_reading_process_input): Clean up.
6606         Add wait_for_cell, wait_proc, and just_wait_proc args
6607         to avoid overloading `read_kbd' and `do_display' args.
6608         Change read_kbd arg to int.  All callers changed.
6610         * process.c (process_send_signal): Use CDISABLE.
6612         * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
6614 2004-08-18  Kim F. Storm  <storm@cua.dk>
6616         * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
6617         forward to wait_reading_process_input via DO_DISPLAY arg.
6618         (wait_reading_process_input): If DO_DISPLAY < 0 for a process
6619         object, only process output from that process; also inhibit
6620         running timers if DO_DISPLAY==-2.
6622 2004-08-17  Kim F. Storm  <storm@cua.dk>
6624         * process.c (process_send_signal): Fix last change--use
6625         _POSIX_VDISABLE instead of CVDISABLE when available.
6627 2004-08-16  Richard M. Stallman  <rms@gnu.org>
6629         * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
6630         Set VQUIT and VINTR chars to the standard ones if they are unset.
6631         [AIX]: Don't do that here.  And don't force VINTR to standard
6632         when SIGNALS_VIA_CHARACTERS.
6634         * process.c (process_send_signal)
6635         [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
6636         Do nothing if the character is CVDISABLE.
6638         * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
6640         * intervals.c (move_if_not_intangible):
6641         Force POSITION to be between BEGV and ZV.
6643 2004-08-14  John Paul Wallington  <jpw@gnu.org>
6645         * buffer.c (Frestore_buffer_modified_p): Doc fix.
6647         * fileio.c (Fread_file_name): Doc fix.
6649         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6651 2004-08-09  Luc Teirlinck  <teirllm@auburn.edu>
6653         * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
6655 2004-08-08  Luc Teirlinck  <teirllm@auburn.edu>
6657         * keyboard.c: Declare Qdisabled_command_function instead of
6658         Qdisabled_command_hook.
6659         (Fcommand_execute): Use Qdisabled_command_function instead of
6660         Qdisabled_command_hook.
6661         (syms_of_keyboard): Ditto.
6663 2004-08-07  Luc Teirlinck  <teirllm@auburn.edu>
6665         * keymap.c (Flocal_key_binding, Fglobal_key_binding)
6666         (syms_of_keymap) <key-translation-map>: Doc fixes.
6668 2004-08-07  Stefan Monnier  <monnier@iro.umontreal.ca>
6670         * window.c (window_list_1): YAILOM.
6672         * fileio.c (make_temp_name): Handle multibyte prefixes.
6674 2004-08-06  Luc Teirlinck  <teirllm@auburn.edu>
6676         * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6677         Doc fix.
6679 2004-08-03  Kenichi Handa  <handa@m17n.org>
6681         * coding.c (decode_coding_string): Adjust coding->consumed, and
6682         etc. with shrinked_bytes.
6684 2004-08-03  Kim F. Storm  <storm@cua.dk>
6686         * indent.c (compute_motion): Fix check for full width window
6687         in non-window case.  Do not count left truncation glyph on
6688         window systems.
6690 2004-08-02  Luc Teirlinck  <teirllm@auburn.edu>
6692         * data.c (Finteractive_form): Doc fix.
6694 2004-08-02  Kim F. Storm  <storm@cua.dk>
6696         * indent.c (compute_motion): Use actual window width if WIDTH is -1,
6697         properly accounting for continuation glyph on non-window systems.
6698         (Fcompute_motion): Use actual window width if WIDTH is nil, and
6699         actual window width/height if TOPOS is nil, properly accounting for
6700         continuation glyphs on non-window systems, and optional header lines.
6701         (vmotion): Let compute_motion calculate actual window width.
6703         * window.c (window_scroll_line_based): Let compute_motion
6704         calculate actual window width.
6706 2004-08-02  Kim F. Storm  <storm@cua.dk>
6708         * process.c (read_process_output): Use whole read buffer.
6709         Don't trigger adaptive read buffering on errors.
6711 2004-07-31  Luc Teirlinck  <teirllm@auburn.edu>
6713         * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
6715         * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
6717         * callint.c (Fcall_interactively): Doc fix.
6719 2004-07-30  Richard M. Stallman  <rms@gnu.org>
6721         * abbrev.c (Fexpand_abbrev): Undo previous change.
6723 2004-07-30  Kim F. Storm  <storm@cua.dk>
6725         * editfns.c (Fformat): Allocate extra (dummy) element in info.
6727 2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>
6729         * eval.c (Fdefvar, Fdefconst): Doc fixes.
6731 2004-07-27  Kim F. Storm  <storm@cua.dk>
6733         * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
6734         we have ensured that the glyph fits on the current line (or returned
6735         MOVE_LINE_CONTINUED otherwise).
6737 2004-07-26  Kim F. Storm  <storm@cua.dk>
6739         * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
6740         is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
6741         if target position is at end of display line but char is not a newline.
6743 2004-07-25  Richard M. Stallman  <rms@gnu.org>
6745         * window.c (coordinates_in_window): Return ON_SCROLL_BAR
6746         instead of ON_VERTICAL_BORDER, when on scroll bar.
6747         (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
6749         * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
6751         * window.c (Fcoordinates_in_window_p):
6752         Take account of FRAME_INTERNAL_BORDER_WIDTH.
6754         * alloc.c (check_cons_list): New function (contents commented out).
6756 2004-07-24  Luc Teirlinck  <teirllm@auburn.edu>
6758         * xfaces.c (Fcolor_supported_p): Doc fix.
6760         * frame.c (Fselect_frame, Fset_frame_selected_window)
6761         (Fframe_visible_p, Fraise_frame): Doc fixes.
6763 2004-07-24  Richard M. Stallman  <rms@gnu.org>
6765         * keyboard.h (not_single_kboard_state): Declare.
6767         * fileio.c (Fwrite_region): Doc fix.
6769         * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
6771         * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
6772         only when a real abbrev is present.
6774         * xfns.c (x_icon_verify): New function.
6775         (Fx_create_frame): Use it.
6777 2004-07-22  Barry Fishman  <barry_fishman@att.net>  (tiny change)
6779         * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
6781 2004-07-21  Kim F. Storm  <storm@cua.dk>
6783         * window.h (struct glyph_matrix): New members nrows_scale_factor
6784         and ncols_scale_factor.
6786         * window.c (make_window): Initialize nrows_scale_factor and
6787         ncols_scale_factor members.
6789         * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
6790         (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
6791         (required_matrix_height): Apply nrows_scale_factor.
6792         (required_matrix_width): Apply ncols_scale_factor.
6794         * xdisp.c (display_line): Increment nrows_scale_factor and set
6795         fonts_changed_p if past last allocated row.
6796         (append_glyph, append_composite_glyph, produce_image_glyph)
6797         (append_stretch_glyph): Increment ncols_scale_factor and set
6798         fonts_changed_p if current area is full.
6800 2004-07-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6802         * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
6804 2004-07-19  Luc Teirlinck  <teirllm@auburn.edu>
6806         * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
6807         (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
6808         (Fset_window_start, Fscroll_up, Fscroll_down)
6809         (Fother_window_for_scrolling, Fscroll_other_window)
6810         (Fsave_window_excursion, Fset_window_vscroll)
6811         (syms_of_window) <window-size-fixed>: Doc fixes.
6813 2004-07-19  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
6815         * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
6816         ENCODE_SYSTEM for filenames.
6818 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6820         * mac.c (sys_select): Block input around call to
6821         ReceiveNextEvent to prevent breakage.  Correctly handle
6822         blocking on event queue only by calling ReceiveNextEvent
6823         instead of select (since GUI events aren't on an fd).
6824         (sys_read): Remove function
6825         * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
6827 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6829         * mac.c (sys_select): Redo sys_select to use alarm-based
6830         polling instead of 1 sec timeouts (like solaris).
6832         * macterm.c (x_make_frame_visible): Comment in polling on
6833         frame creation.
6835         * keyboard.c: Undef SIGIO on Carbon
6837         * atimer.c (alarm_signal_handler): Call alarm handlers after
6838         scheduling.
6840         * eval.c (Feval): Remove quit_char test
6842         * process.c (wait_reading_process_input): Remove clearing
6843         stdin for select call on process input.
6845 2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>
6847         * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
6848         capitalization error in docstring.
6850 2004-07-17  Juanma Barranquero  <lektu@terra.es>
6852         * keyboard.c (not_single_kboard_state): Do nothing unless
6853         MULTI_KBOARD is defined.
6855 2004-07-17  Richard M. Stallman  <rms@gnu.org>
6857         * window.c (coordinates_in_window): Inside the window but outside
6858         its box to the L or R, return ON_VERTICAL_BORDER.
6859         (window_list_1): Rotate the list to start with WINDOW.
6861         * print.c (print_preprocess): Test for print_depth at limit
6862         before entering in being_printed.
6864         * keyboard.c (not_single_kboard_state): New function.
6865         (stuff_buffered_input): Now no-op only if no SIGTSTP.
6867         * frame.c (Fdelete_frame): If we're in single_bboard_state on
6868         this kboard, and we delete its last frame, go to any_kboard_state.
6870         * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
6872 2004-07-15  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
6874         * w32fns.c (Fx_file_dialog): Encode strings in system coding
6875         system before passing them to OS functions for display.
6877 2004-07-15  David Kastrup  <dak@gnu.org>
6879         * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
6880         Apparently fixes an abort condition.
6882 2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>
6884         * fileio.c (Fvisited_file_modtime): Return a list of two integers,
6885         instead of a cons.
6887 2004-07-14  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
6889         * keyboard.c (echo_dash): Do nothing if there already is a dash
6890         at the end of the echo string.
6892 2004-07-12  Kim F. Storm  <storm@cua.dk>
6894         * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
6895         if GC_MARK_STACK.
6897 2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>
6899         * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
6901         * window.c (Fwindow_buffer, Fother_window,  Fget_lru_window)
6902         (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
6903         (Freplace_buffer_in_windows, Fset_window_buffer)
6904         (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
6905         (syms_of_window): Expand docstring of `display-buffer-function'.
6907 2004-07-09  Luc Teirlinck  <teirllm@auburn.edu>
6909         * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
6910         (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
6911         that time values of the type (HIGH . LOW) are considered obsolete.
6913 2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>
6915         * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
6916         docstring.
6918         * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
6920 2004-07-06  John Paul Wallington  <jpw@gnu.org>
6922         * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
6924         * fns.c (Fclear_string): Signal an error if STRING is not a string.
6926 2004-07-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6928         * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
6929         instead of CGMainDisplayID (only in OSX 10.2 and later).
6931 2004-07-04  John Paul Wallington  <jpw@gnu.org>
6933         * fileio.c (read_file_name_completion_ignore_case): New variable.
6934         (syms_of_fileio): Declare and initialise it.
6935         (Fread_file_name): Bind `completion-ignore-case' to respect it.
6937 2004-07-03  Eli Zaretskii  <eliz@gnu.org>
6939         * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
6940         for event.x and event.y.
6942 2004-07-01  Kenichi Handa  <handa@m17n.org>
6944         * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
6945         after getting a new string by pre-write-conversion.
6947 2004-06-30  Stefan Monnier  <monnier@iro.umontreal.ca>
6949         * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
6950         (x_calc_absolute_position): Remove unused var `child'.
6952         * xfaces.c (x_supports_face_attributes_p)
6953         (Fdisplay_supports_face_attributes_p): YAILOM.
6954         (tty_supports_face_attributes_p): Remove unused var `i'.
6956         * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
6957         back_unibyte_ok.
6959         * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
6961         * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
6963         * Makefile.in (${etc}DOC): Fix file name of make-docfile.
6965 2004-06-30  Andreas Schwab  <schwab@suse.de>
6967         * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
6968         (Finit_image_library): Pass LIBRARIES through to
6969         CHECK_LIB_AVAILABLE.  Declare parameters.  Doc fix.
6970         (lookup_image_type): Pass Qnil as second argument to
6971         Finit_image_library.
6973         * lisp.h (Finit_image_library): Declare.
6975 2004-06-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6977         * macterm.c (do_window_activate, do_window_deactivate): Remove.
6978         (XTread_socket): Send mouse button events to the toolbox
6979         dispatcher even when the mouse is grabbed.  Don't process window
6980         activate events for non-Emacs windows.  Replace function calls to
6981         do_window_activate and do_window_deactivate with their contents.
6982         Reset mouse grabbing status when a window is deactivated.
6984 2004-06-29  Steven Tamm  <steventamm@mac.com>
6986         * macterm.c (mac_get_emulated_btn)
6987         (mac_event_to_emacs_modifiers): Fix emulated mouse button
6988         support to correctly mask out modifiers.
6990 2004-06-29  David Kastrup  <dak@gnu.org>
6992         * search.c (Fset_match_data): Allow buffer before end of list
6993         which can happen if set-match-data is using a pre-consed list.
6995 2004-06-28  Steven Tamm  <steventamm@mac.com>
6997         * macterm.c (XTread_socket): Correctly set the frame position
6998         after the window is moved.
7000 2004-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7002         * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
7003         gpix and gmask just before return to avoid memory leak.
7004         (xg_get_image_for_pixmap): Add workaround for monochrome displays
7005         so insensitive and activated icons look ok.
7007 2004-06-27  Jason Rumney  <jasonr@gnu.org>
7009         * w32fns.c (file_dialog_callback): Disable edit control if set
7010         to directories only on CDN_INITDONE message.
7011         (Fx_file_dialog): Default to directories only when prompt starts
7012         with "Dired".
7014 2004-06-25  Kim F. Storm  <storm@cua.dk>
7016         * alloc.c (allocate_misc): Update total_free_markers.
7017         (free_misc): New function.
7018         (safe_alloca_unwind, free_marker): Use it.
7020         * lisp.h (free_misc): Add prototype.
7022         * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
7024 2004-06-24  Richard M. Stallman  <rms@gnu.org>
7026         * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
7027         (syms_of_emacs): Lisp variables deleted.
7029 2004-06-23  David Kastrup  <dak@gnu.org>
7031         * search.c (Freplace_match): Adjust the match-data more thoroughly
7032         when replacing strings in the buffer.
7033         (Fmatch_data): When INTEGERS is non-nil and the last match was in
7034         a buffer, add the buffer as last element to the match data.
7035         (Fset_match_data): If an additional element of the match-data is a
7036         buffer, restore it to last_thing_searched.
7037         (save_search_regs): Save last_thing_searched as part of the match data.
7038         (restore_match_data): Restore it again.
7040 2004-06-23  Luc Teirlinck  <teirllm@auburn.edu>
7042         * keymap.c (Ftext_char_description): Doc fix.
7043         * doc.c (Fsnarf_documentation): Doc fix.
7045 2004-06-22  Kim F. Storm  <storm@cua.dk>
7047         * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
7049         * lisp.h (struct Lisp_Save_Value): New member dogc.
7050         (SAFE_ALLOCA_LISP): Change second arg to number of elements.
7051         Set dogc member in Lisp_Save_Value object so it will be GC'ed.
7052         (SAFE_FREE_LISP): New macro.
7054         * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
7055         (make_save_value): Init new dogc member.
7056         (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
7058         * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
7059         SAFE_FREE_LISP macros.
7061 2004-06-22  Kim F. Storm  <storm@cua.dk>
7063         * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
7064         Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
7065         in that memory area are unknown to GC.  Add comments.
7067         * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
7069 2004-06-21  Kim F. Storm  <storm@cua.dk>
7071         * lisp.h (MAX_ALLOCA): Define here.
7072         (safe_alloca_unwind): Add prototype.
7073         (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
7075         * alloc.c (safe_alloca_unwind): New function.
7077         * casefiddle.c (casify_object): Use SAFE_ALLOCA.
7079         * charset.c (Fstring): Use SAFE_ALLOCA.
7081         * coding.c (MAX_ALLOCA): Remove define.
7083         * data.c (MAX_ALLOCA): Remove define.
7084         (Faset): Use SAFE_ALLOCA.
7086         * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
7088         * fns.c (string_make_multibyte, string_to_multibyte)
7089         (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
7090         (MAX_ALLOCA): Remove define.
7091         (Fbase64_encode_region, Fbase64_encode_string)
7092         (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
7093         (Fbase64_encode_region, Fbase64_encode_string): Fix potential
7094         memory leak if encoding fails.
7096         * xdisp.c (add_to_log): Use SAFE_ALLOCA.
7098 2004-06-21  Eli Zaretskii  <eliz@gnu.org>
7100         * print.c (Fwith_output_to_temp_buffer): Doc fix.
7102 2004-06-20  Richard M. Stallman  <rms@gnu.org>
7104         * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
7106         * search.c (match_limit): Cleaner err msg when no match data available.
7108         * window.c (syms_of_window): Doc fix.
7110         * keyboard.c (command_loop_1): Handle values `only' and `identity'
7111         for Vtransient_mark_mode.
7113         * buffer.c (syms_of_buffer): Doc fix.
7115 2004-06-21  David Kastrup  <dak@gnu.org>
7117         * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
7118         and unbinding of `case-fold-search' according to
7119         `completion-ignore-case' around calls of string-match and
7120         predicates, respectively.  Should give satisfactory performance
7121         in all relevant cases.
7123 2004-06-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7125         * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
7126         clip_x/y_origin.
7128         * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
7130         * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
7132         * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
7133         on Mac OSX.
7135 2004-06-16  Luc Teirlinck  <teirllm@auburn.edu>
7137         * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
7139 2004-06-16  Kim F. Storm  <storm@cua.dk>
7141         * dispextern.h (Vimage_types): Remove extern.
7143 2004-06-16  Miles Bader  <miles@gnu.org>
7145         * image.c (lookup_image_type): Initialize image type if necessary.
7147 2004-06-15  Kim F. Storm  <storm@cua.dk>
7149         * xdisp.c (try_cursor_movement): Exclude header line from scroll
7150         margin at top of window.
7151         (try_window_reusing_current_matrix): Calculate proper cursor position
7152         after scrolling up with non-zero scroll margin, as the old cursor
7153         position corresponds to value of PT before executing this command.
7154         (try_window_id): Consider scroll margin at bottom of window too;
7155         otherwise we fail to scroll when hl-line-mode is enabled.
7157         * syntax.c (skip_chars): Only recognize [:class:] when it has the
7158         proper format and class is a lower-case word.
7160 2004-06-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7162         * gtkutil.c (xg_get_image_for_pixmap): New function.
7163         (xg_get_gdk_pixmap_and_mask): Remove.
7164         (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
7165         xg_get_gdk_pixmap_and_mask.
7167         * xterm.h (struct x_display_info): Typo in comment fixed.
7169 2004-06-14  Juanma Barranquero  <lektu@terra.es>
7171         * dispextern.h (Vimage_types): Make it conditional on
7172         HAVE_WINDOW_SYSTEM.
7174         * image.c (Vimage_types): Move from xdisp.c.
7175         (Vimage_type_cache): New variable.
7176         (define_image_type): New argument indicating whether an image
7177         library was loaded; cache loaded status and return t on success,
7178         nil otherwise.
7179         (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
7180         (w32_delayed_load): New function to load an image library from a
7181         list of possible filenames.
7182         (init_xpm_functions, init_png_functions, init_jpeg_functions)
7183         (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
7184         (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
7185         (Finit_image_library): New function, extracted from `init_image'.
7186         Try to initialize an image library on demand and cache whether we
7187         were successful or not.
7188         (syms_of_image): Initialize `Vimage_types' and
7189         `Vimage_type_cache'.  Add recognized image types to Vimage_types.
7190         Export `init-image-library'.
7191         (init_image): Remove initialization of all image types, except xbm
7192         and pbm.
7194         * xdisp.c (Vimage_types): Delete (moved to image.c).
7196 2004-06-14  Andreas Schwab  <schwab@suse.de>
7198         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
7199         Avoid calling specbind when completion-regexp-list is empty.
7201 2004-06-13  Richard M. Stallman  <rms@gnu.org>
7203         * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7204         (re_wctype, re_iswctype, re_wctype_to_bit):
7205         Non-function definitions moved here from regex.c.
7207         * regex.c (re_wctype, re_iswctype): Function defs longer static.
7208         (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7209         (re_wctype, re_iswctype, re_wctype_to_bit):
7210         Non-function definitions moved to regex.h.
7212         * window.c (Fselect_window): Doc fix.
7214         * syntax.c: Include regex.h.
7215         (skip_chars): New arg HANDLE_ISO_CLASSES.  Callers changed.
7216         If requested, make a list of classes, then check the scanned
7217         chars for membership in them.
7218         (in_classes): New function.
7219         Doc fix.
7221         * keyboard.c (cmd_error): Don't call any_kboard_state
7222         if inside a recursive edit level.
7224 2004-06-13  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
7226         * keyboard.c (command_loop): Call any_kboard_state before
7227         command_loop_2 when at top level.
7229 2004-06-13  Andreas Schwab  <schwab@suse.de>
7231         * print.c (print_object): Always use %ld for printing EMACS_INT.
7233         * keyboard.c (cancel_hourglass_unwind): Return a value.
7234         (modify_event_symbol): Always use %ld for printing EMACS_INT.
7235         (Fexecute_extended_command): Likewise.
7237         * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
7238         avoid clashes.
7239         (SYNTAX): Likewise.
7240         (SYNTAX_WITH_FLAGS): Likewise.
7241         (SYNTAX_MATCH): Likewise.
7243         * syntax.c (char_quoted): Avoid warning about undefined operation.
7244         (find_defun_start): Likewise.
7245         (scan_lists): Likewise.
7246         (INC_FROM): Likewise.
7247         (scan_sexps_forward): Likewise.
7249         * image.c: Include <ctype.h>.
7251         * xfaces.c (face_attr_equal_p): Declare parameters.
7253 2004-06-13  Kenichi Handa  <handa@m17n.org>
7255         * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
7257 2004-06-12  Matthew Mundell  <matt@mundell.ukfsn.org>
7259         * eval.c (Fdefun): Signal an error if NAME is not a symbol.
7261 2004-06-12  Kenichi Handa  <handa@m17n.org>
7263         * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
7264         ccl_prog_stack_struct and update it.
7265         (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
7266         (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
7267         ccl->eof_ic on EOF.
7268         (ccl_debug_hook): New function.
7269         (struct ccl_prog_stack): New member eof_ic.
7270         (ccl_driver): Handle EOF in subrountine call correctly.
7272 2004-06-11  Kenichi Handa  <handa@m17n.org>
7274         * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
7276 2004-06-11  Kim F. Storm  <storm@cua.dk>
7278         * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
7280 2004-06-11  Juanma Barranquero  <lektu@terra.es>
7282         * keyboard.c (Fposn_at_point): Doc fix.
7284 2004-06-11  David Kastrup  <dak@gnu.org>
7286         * search.c (match_limit): Don't flag an error if match-data
7287         exceeding the allocated search_regs.num_regs gets requested, just
7288         return Qnil.
7290 2004-06-08  Miles Bader  <miles@gnu.org>
7292         * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
7294 2004-06-07  Juanma Barranquero  <lektu@terra.es>
7296         * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
7297         (Fcurrent_time_string, Fcurrent_time_zone)
7298         (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
7300 2004-06-07  Miles Bader  <miles@gnu.org>
7302         * xfaces.c (struct named_merge_point): New type.
7303         (push_named_merge_point): New function.
7304         (merge_named_face): New function.
7305         (merge_face_ref, face_at_buffer_position, face_at_string_position):
7306         Use `merge_named_face'.
7307         (merge_face_inheritance): Function removed.
7308         (merge_face_ref): Rename from `merge_face_vector_with_property'.
7309         Add new `err_msgs' and `named_merge_points' args.  Return error
7310         status.  Only print error messages if ERR_MSGS is true.  Don't try to
7311         do :inherit attribute validation.
7312         (merge_face_heights): Handle `unspecified' in both directions.
7313         (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
7314         Call `merge_face_ref' instead of `merge_face_inheritance'.
7315         (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
7316         (compute_char_face, face_at_buffer_position)
7317         (face_at_string_position): Call `merge_face_ref' instead of
7318         `merge_face_vector_with_property'.
7320 2004-06-07  Kenichi Handa  <handa@m17n.org>
7322         * coding.c (find_safe_codings): Check NILP (safe_codings) only at
7323         the necessary places.
7325 2004-06-07  Kim F. Storm  <storm@cua.dk>
7327         * process.c (Fdelete_process): Undo 2004-05-28 change.
7328         Instead, call status_notify also for network process.
7329         (status_message): Use process instead of status as arg.
7330         Give messages "deleted" or "connection broken by remote peer" for
7331         an exited network process.
7332         (status_notify): Change call to status_message.
7333         (read_process_output): Increase readmax to 4096.  Do not increase
7334         buffer size for datagram channels (default is now large enough).
7336 2004-06-06  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
7338         * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
7339         problem due to newly defined variable.
7341 2004-06-06  Miles Bader  <miles@gnu.org>
7343         * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
7344         immediately if non-interactive or not initialized.
7346 2004-06-05  Richard M. Stallman  <rms@gnu.org>
7348         * minibuf.c (Fcompleting_read): Doc fix.
7350 2004-06-05  Andreas Schwab  <schwab@suse.de>
7352         * macfns.c (x_create_tip_frame): Fix declaration after statement.
7354 2004-06-05  Juanma Barranquero  <lektu@terra.es>
7356         * keymap.c (Fdescribe_vector): Fix docstring.
7357         (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
7359 2004-06-05  Miles Bader  <miles@gnu.org>
7361         * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
7362         attributes have different values than the default face.
7364 2004-06-04  Eli Zaretskii  <eliz@gnu.org>
7366         * xfaces.c (x_supports_face_attributes_p): Make this function
7367         conditional on HAVE_WINDOW_SYSTEM.
7368         (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
7369         Don't call x_supports_face_attributes_p if it was not compiled in.
7371 2004-06-04  Miles Bader  <miles@gnu.org>
7373         * xfaces.c (tty_supports_face_attributes_p): New function, mostly
7374         from Ftty_supports_face_attributes_p.
7375         (x_supports_face_attributes_p): New function.
7376         (Ftty_supports_face_attributes_p): Function deleted.
7377         (Fdisplay_supports_face_attributes_p): New function.
7378         (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
7379         (face_attr_equal_p): New function.
7380         (lface_equal_p): Use it.
7382 2004-06-03  Juanma Barranquero  <lektu@terra.es>
7384         * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
7385         (Vw32_color_map): Fix typo in docstring.
7386         (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
7387         (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
7388         Make argument names match their use in docstring.
7390 2004-06-02  Juanma Barranquero  <lektu@terra.es>
7392         Work around bugs/problems with MinGW builds of graphics libraries
7393         called from MSVC builds of Emacs.
7395         * image.c (lookup_image): Make pointer to img static.
7396         (png_read_from_memory): Disable "global" optimization.
7398 2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
7400         * eval.c (Fcondition_case): Fix usage.  Simplify.
7402         * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
7404 2004-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7406         * macfns.c: Don't include ccl.h.
7407         [MAC_OSX]: Don't include QuickTime/QuickTime.h.
7408         [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
7409         TextUtils.h.
7410         (Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
7411         (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
7412         display height/width.
7413         (compute_tip_xy, Vx_max_tooltip_size): Declare.
7414         (unwind_create_tip_frame, compute_tip_xy): New functions.
7415         (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
7416         (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
7417         and last_show_tip_args.
7419         * macgui.h [!MAC_OSX]: Include Gestalt.h.
7420         (Cursor, No_Cursor): New defines.
7421         [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
7422         [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
7424         * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
7426         * macterm.c: Don't include Gestalt.h.
7427         (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
7428         (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
7429         (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
7430         (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
7431         (mac_copy_area, mac_copy_area_with_mask, x_update_end)
7432         (construct_mouse_click, XTmouse_position)
7433         (x_scroll_bar_report_motion, x_calc_absolute_position)
7434         (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
7435         (XTread_socket, make_mac_frame): Use SetPortWindowPort.
7436         (note_mouse_movement): Clear the mouse face and reset the pointer
7437         shape when the pointer goes outside the frame without grabbing.
7438         (mac_front_window): New function.
7439         (mac_window_to_frame): New macro.
7440         (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
7441         (do_window_activate, do_window_deactivate, do_app_resume)
7442         (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
7443         (do_zoom_window, mac_do_receive_drag, XTread_socket)
7444         (mac_check_for_quit_char): Use mac_front_window and/or
7445         mac_window_to_frame.
7446         (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
7447         scroll-bar click event.
7448         (mac_define_frame_cursor): Change the pointer shape.
7449         (x_free_frame_resources): Reset tip_window to NULL when it is
7450         disposed of.
7451         [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
7452         [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
7453         (do_window_update): Don't do anything if the updated window is the
7454         tooltip window.
7455         (do_mouse_moved): Handle mouse movement events here (previously in
7456         XTread_socket).  Clear the mouse face if
7457         dpyinfo->mouse_face_hidden is set.
7458         (do_os_event, do_events): Remove (now in XTread_socket).
7459         (XTread_socket): Immediately return if interrupt_input_blocked.
7460         Loop until all the events in the queue are processed.
7461         Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
7462         contents of do_os_event and do_events.  Remove mouse movement
7463         handling (now in do_mouse_moved).  Add the case where
7464         Vmouse_highlight has an integer value.
7465         (NewMacWindow): Remove.
7466         (make_mac_frame): Do what NewMacWindow previously did.  Don't do
7467         excess initializations.
7468         (make_mac_terminal_frame): Previous initializations in
7469         make_mac_frame are moved here.
7470         (mac_initialize_display_info):
7471         Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
7473         * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
7474         (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
7476 2004-05-29  Richard M. Stallman  <rms@gnu.org>
7478         * lisp.h (truncate_undo_list): Update decl.
7480         * alloc.c (undo_outer_limit): New variable.
7481         (syms_of_alloc): Defvar it.
7482         (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
7484         * undo.c (truncate_undo_list): New arg LIMITSIZE.
7486         * alloc.c (lisp_align_malloc): Check for base == 0
7487         regardless of HAVE_POSIX_MEMALIGN.
7488         Clean up HAVE_POSIX_MEMALIGN handling of `err'.
7490 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
7492         * alloc.c: Undo Kim's recent changes and fix the same bug differently.
7493         (marker_blocks_pending_free): Remove.
7494         (Fgarbage_collect): Sweep after cleaning up undo-lists.
7495         Mark the undo lists after claning them up.
7496         Don't free block in marker_blocks_pending_free.
7497         (mark_buffer): Don't mark undo_list.
7498         (gc_sweep): Sweep hash-tables and strings first.
7499         Do free marker blocks that are empty.
7501 2004-05-28  Jim Blandy  <jimb@redhat.com>
7503         * regex.c (print_partial_compiled_pattern): Add missing 'break'
7504         after 'case wordend'.  For symbeg and symend, print to stderr,
7505         like the other cases.
7507 2004-05-28  Noah Friedman  <friedman@splode.com>
7509         * process.c (Fdelete_process): Do not call remove_process.
7511 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
7513         * alloc.c (struct backtrace): Remove.
7514         (Fgarbage_collect): Use the new mark_backtrace.
7516         * eval.c (mark_backtrace): New function.
7518         * minibuf.c (run_exit_minibuf_hook): New function.
7519         (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
7520         (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
7522 2004-05-27  Kim F. Storm  <storm@cua.dk>
7524         * xdisp.c (back_to_previous_visible_line_start): Skip backwards
7525         over display properties, e.g. images, that replace buffer text.
7527 2004-05-25  Kim F. Storm  <storm@cua.dk>
7529         * alloc.c (marker_blocks_pending_free): New var.
7530         (gc_sweep): Store free marker blocks on that list.
7531         (Fgarbage_collect): Free them after undo-list cleanup.
7533         * process.c (wait_reading_process_input): Check connect_wait_mask
7534         before actually accepting connection in case it has already been
7535         accepted due to recursion.
7537 2004-05-23  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
7539         * coding.c (Fset_safe_terminal_coding_system_internal):
7540         Set suppress_error in safe_terminal_coding, not terminal_coding.
7542 2004-05-22  Richard M. Stallman  <rms@gnu.org>
7544         * alloc.c (Fmake_string): Doc fix.
7546         * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
7547         and the alist pairs too.
7549         * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
7551         * emacs.c (main): Update copyright year.
7553         * fileio.c (Fread_file_name): Expand DIR if not absolute.
7555         * insdel.c (del_range_2, replace_range): Don't write an anchor
7556         if the gap is empty.
7558         * xdisp.c (try_scrolling): If scroll-up-aggressively or
7559         scroll-down-aggressively is small but positive, put point
7560         near the screen edge.
7562 2004-05-22  Juanma Barranquero  <lektu@terra.es>
7564         * keymap.c (Fdefine_key): Doc fix.
7566 2004-05-22  Kim F. Storm  <storm@cua.dk>
7568         * alloc.c (struct backtrace): Add debug_on_exit member.
7569         (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
7570         Identify those markers as Lisp_Misc_Free objects.  Clear car and cdr of
7571         the removed cons cells.
7572         (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
7573         (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
7574         any cons cells pointing to unallocated stings.
7575         Do not lisp_free any marker blocks, as there may still be pointers
7576         to them from buffer undo lists at this stage of GC.
7578         * keyboard.c (struct backtrace): Add debug_on_exit member.
7579         (Fcommand_execute): Clear it.
7581 2004-05-20  Luc Teirlinck  <teirllm@auburn.edu>
7583         * intervals.c (lookup_char_property): Do not prematurely return nil.
7585 2004-05-19  Jim Blandy  <jimb@redhat.com>
7587         Add support for new '\_<' and '\_>' regexp operators, matching the
7588         beginning and end of symbols.
7590         * regex.c (enum syntaxcode): Add Ssymbol.
7591         (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
7592         (re_opcode_t): New opcodes `symbeg' and `symend'.
7593         (print_partial_compiled_pattern): Print the new opcodes properly.
7594         (regex_compile): Parse the new operators.
7595         (analyse_first): Skip sym(beg|end) (they match only the empty string).
7596         (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
7597         \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
7598         (re_match_2_internal): Match symbeg and symend.
7600         * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
7602 2004-05-19  Kim F. Storm  <storm@cua.dk>
7604         * .gdbinit (xsymbol): Fix last change.
7606 2004-05-18  Stefan Monnier  <monnier@iro.umontreal.ca>
7608         * .gdbinit (xprintstr): New fun.
7609         (xstring, xprintsym): Use it.
7611         * w32proc.c (create_child): Use INTMASK.
7613         * alloc.c (Fgarbage_collect): Do all the marking before flushing
7614         unmarked elements of the undo list.
7616 2004-05-18  David Ponce  <david@dponce.com>
7618         * print.c (print): Reset print_depth before to call print_object.
7620 2004-05-18  Jason Rumney  <jasonr@gnu.org>
7622         * w32console.c: Prefix RIF functions with w32con_ to avoid
7623         namespace clash with functions in term.c and w32term.c.
7625         * w32menu.c (add_menu_item, w32_menu_display_help)
7626         [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
7628         * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
7630 2004-05-18  Eli Zaretskii  <eliz@gnu.org>
7632         * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
7634         * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
7635         with make_number.
7636         (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
7637         with XINT.
7639 2004-05-18  Kim F. Storm  <storm@cua.dk>
7641         * blockinput.h (INPUT_BLOCKED_P): New macros.
7643         * keyboard.c (Frecursive_edit): Return immediately if input blocked.
7644         (Ftop_level): Unblock input if blocked.
7646         * buffer.h (GET_OVERLAYS_AT): New macro.
7647         * msdos.c (IT_note_mouse_highlight): Use it.
7648         * textprop.c (get_char_property_and_overlay): Use it.
7649         * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
7650         * xfaces.c (face_at_buffer_position): Use it.
7652         * print.c (print_object): Increase buf size.
7654 2004-05-17  Jason Rumney  <jasonr@gnu.org>
7656         * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
7657         (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
7658         Lisp_Object using i member.
7659         (w32_quit_key): Rename from Vw32_quit_key, and make an int.
7660         (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
7661         consistently.
7663         * w32proc.c (create_child): Use make_number instead of masking pid.
7665         * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
7666         (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
7667         Use EQ to compare Lisp_Objects.
7668         (w32_parse_hot_key): Use int for lisp_modifiers consistently.
7670         * w32term.c (w32_num_mouse_buttons): Rename from
7671         Vw32_num_mouse_buttons and make it an int.
7673         * w32.c (init_environment): Use it.
7675         * w32fns.c (w32_wnd_proc): Likewise.
7677         * w32proc.c (w32_pipe_read_delay): Rename from
7678         Vw32_pipe_read_delay and make it an int.
7680         * w32.c (_sys_read_ahead): Use it.
7682         * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
7684         * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
7686         * w32inevt.c (w32_console_mouse_position, do_mouse_event)
7687         (key_event): Don't mix Lisp_Object and int.
7689         * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
7691         * keyboard.c (kbd_buffer_get_event): Don't use event->code and
7692         modifiers in language change event.
7694 2004-05-17  Kim F. Storm  <storm@cua.dk>
7696         * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
7697         Such objects may be freed markers which still exist on an undo list.
7699 2004-05-16  Juanma Barranquero  <lektu@terra.es>
7701         * data.c (Fset_default): Make argument names match their use in
7702         docstring.
7704 2004-05-15  Andreas Schwab  <schwab@suse.de>
7706         * emacs.c (gdb_array_mark_flag): Define.
7707         * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
7709 2004-05-15  Eli Zaretskii  <eliz@gnu.org>
7711         * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
7712         __attribute__((__aligned__)), so that USE_LSB_TAG would not become
7713         defined for the MS-DOS build.
7715 2004-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
7717         * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
7719 2004-05-14  Kenichi Handa  <handa@m17n.org>
7721         * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
7723 2004-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7725         * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
7726         section to frame.c section.
7727         (Fxw_display_color_p, Fx_file_dialog): Declare if
7728         HAVE_WINDOW_SYSTEM defined.
7730         * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
7732         * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
7734         * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
7735         (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
7736         (XTread_socket): Fix int/Lisp_Object mixup.
7737         (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
7739         * macterm.h (struct frame, struct face, struct image)
7740         (display_x_get_resource, Fx_display_color_p)
7741         (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
7742         Add prototypes.
7744 2004-05-14  Kim F. Storm  <storm@cua.dk>
7746         * process.c (wait_reading_process_input): Make reentrant.
7747         Make Available and Connecting non-static.  Save and restore value
7748         of waiting_for_user_input_p.
7750 2004-05-13  Kim F. Storm  <storm@cua.dk>
7752         * keyboard.c (mark_kboards): Don't mark x and y members
7753         that are overloaded in selection request events.
7755 2004-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7757         * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
7759 2004-05-13  Glenn Morris  <gmorris@ast.cam.ac.uk>
7761         * window.c (Fdisplay_buffer, Fsplit_window)
7762         (split-height-threshold): Doc fix.
7764 2004-05-13  Juanma Barranquero  <lektu@terra.es>
7766         * xfaces.c (Ftty_supports_face_attributes_p)
7767         (Finternal_copy_lisp_face): Fix typo in docstring.
7768         (Finternal_get_lisp_face_attribute): Fix docstring.
7770 2004-05-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7772         * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
7774 2004-05-11  Steven Tamm  <steventamm@mac.com>
7776         * macfns.c (Fx_create_frame): Default to using tool-bar by
7777         setting tool-bar-lines to 1 in default-frame-alist.
7779 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7781         * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
7782         (xpm_get_color_table_v, xpm_make_color_table_h)
7783         (xpm_put_color_table_h, xpm_get_color_table_h)
7784         (xpm_str_to_color_key, xpm_load_image, xpm_load)
7785         (syms_of_image): Support XPM on Carbon Emacs.  Does not
7786         depend on libXpm, but only supports XPM version 3 without extensions.
7788 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7790         * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
7791         instead of FRAME_X_P
7793 2004-05-11  Kim F. Storm  <storm@cua.dk>
7795         * process.c (read_process_output): Grow decoding_buf when needed;
7796         this could cause a crash in allocate_string and compact_small_strings.
7798 2004-04-29  Jim Blandy  <jimb@redhat.com>
7800         * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
7801         against proper opcode.
7803 2004-05-10  Juanma Barranquero  <lektu@terra.es>
7805         * process.c (Fstart_process): Fix docstring.
7807         * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
7808         (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
7809         (Fsplit_char, Fchar_charset): Make argument names match their use
7810         in docstring.
7812 2004-05-10  Richard M. Stallman  <rms@gnu.org>
7814         * print.c (print_preprocess): Use being_printed, loop_count and
7815         halftail to detect overdeep nesting and cyclic cdr chains.
7817 2004-05-10  Andreas Schwab  <schwab@suse.de>
7819         * lisp.h (Fmake_symbolic_link): Declare.
7821         * fileio.c (Frename_file): Remove extra argument in call to
7822         Fmake_symbolic_link.
7824 2004-05-10  Kim F. Storm  <storm@cua.dk>
7826         * xdisp.c (calc_line_height_property): Use string position when
7827         object is a string.
7829 2004-05-10  Kenichi Handa  <handa@m17n.org>
7831         * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
7832         inhibit-modification-hooks to t temporarily before calling
7833         Ferase_buffer.
7835         * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
7836         inhibit-modification-hooks to t temporarily before calling
7837         Ferase_buffer.
7839         * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
7840         inhibit-modification-hooks to t temporarily before calling
7841         Ferase_buffer.
7843         * fns.c (count_combining): Delete it.
7844         (concat): Don't check combining bytes.
7846 2004-05-09  Jason Rumney  <jasonr@gnu.org>
7848         * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
7849         (globals_of_w32fns): Set it.
7851 2004-05-09  Piet van Oostrum  <piet@cs.uu.nl>
7853         * data.c (Fquo): Simplify.
7855 2004-05-08  Peter Whaite  <emacs@whaite.ca>  (tiny change)
7857         * data.c (Fquo): If any argument is float, do the computation in
7858         floating point.
7860 2004-05-08  Juanma Barranquero  <lektu@terra.es>
7862         * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
7863         (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
7864         Fix spelling of Emacs on docstring.
7865         (Fset_process_coding_system, Fprocess_coding_system)
7866         (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
7867         Make argument names match their use in docstring.
7868         (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
7869         Fix docstring.
7871         * editfns.c (Finsert_buffer_substring): Make argument names match their
7872         use in docstring.
7874         * syntax.c (Fmodify_syntax_entry): Fix docstring.
7876 2004-05-07  Steven Tamm  <steventamm@mac.com>
7878         * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
7879         around call to ReceiveEvent to avoid certain crashes.
7881 2004-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7883         * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
7884         (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
7885         (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
7886         Save/restore the current graphics port and device handle when
7887         drawing into an offscreen graphics world.
7889         * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
7890         (gif_load): Likewise.
7892 2004-05-07  Juanma Barranquero  <lektu@terra.es>
7894         * window.c (Fset_window_buffer): Fix docstring.
7896 2004-05-06  Thien-Thi Nguyen  <ttn@gnu.org>
7898         * emacs.c (main) [VMS]: Fix var ref.
7900 2004-05-06  Romain Francoise  <romain@orebokech.com>
7902         * data.c (Fsetq_default): Fix docstring.
7904 2004-05-06  Jason Rumney  <jasonr@gnu.org>
7906         * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
7907         to avoid name clash.
7909 2004-05-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7911         * fileio.c (barf_or_query_if_file_exists): Use lstat.
7912         (Frename_file): Handle renaming of symlinks across file systems.
7913         (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
7915 2004-05-04  Kim F. Storm  <storm@cua.dk>
7917         * xdisp.c (Qtotal): New var.
7918         (syms_of_xdisp): Intern and staticpro it.
7919         (calc_line_height_property): New arg total.  Set it if
7920         line-spacing property has format (total . VALUE).
7921         (x_produce_glyphs): Ignore line-spacing if line-height is 0.
7922         Handle total line-spacing property.
7924 2004-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7926         * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
7927         "under" scroll bar when size/position changes.
7929 2004-05-03  Jason Rumney  <jasonr@gnu.org>
7931         * makefile.nt: Remove.
7933 2004-05-02  Eli Zaretskii  <eliz@gnu.org>
7935         * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
7936         Avoid compiler warnings.
7938         * Makefile.in (region-cache.o): Depend on config.h.
7940 2004-05-02  Romain Francoise  <romain@orebokech.com>
7942         * indent.c (compute_motion): Save vpos in prev_vpos when dealing
7943         with continuation lines, too.
7945 2004-05-02  Thien-Thi Nguyen  <ttn@gnu.org>
7947         * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
7949 2004-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
7951         * xdisp.c (calc_line_height_property): YAILOM (yet another
7952         int/Lisp_Object mixup).
7954 2004-05-01  Eli Zaretskii  <eliz@gnu.org>
7956         * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
7957         undo bad effect of pack(4) in some versions of system headers.
7959 2004-05-01  Jason Rumney  <jasonr@gnu.org>
7961         * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
7963 2004-04-30  Kim F. Storm  <storm@cua.dk>
7965         * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
7966         (syms_of_buffer) <cursor-type>: Doc fix.
7968         * dispextern.h (struct it): Remove member use_default_face.
7969         Add members override_ascent, override_descent, override_boff.
7971         * xdisp.c (init_iterator): Handle line-spacing float value.
7972         Initialize override_ascent member.
7973         (append_space_for_newline): Reset override_ascent.
7974         Remove use_default_face.
7975         (calc_line_height_property): New function to calculate value of
7976         line-height and line-spacing properties.  Look at overlays, too.
7977         Set override_ascent, override_descent, override_boff members when
7978         using another face than the current face.  Float values are now
7979         relative to the frame default font, by default; accept a cons
7980         of ratio and face name to specify value relative to a specific face.
7981         (x_produce_glyphs): Use calc_line_height_property.
7982         Use override_ascent etc. when set to handle different face heights.
7983         A negative line-spacing property value is interpreted as a total
7984         line height, rather than inter-line spacing.
7985         (note_mouse_highlight): Allocate room for 40 overlays initially.
7987 2004-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
7989         * data.c (Fsubr_name): New fun.
7990         (syms_of_data): Defsubr it.
7992 2004-04-29  Kim F. Storm  <storm@cua.dk>
7994         * xdisp.c (null_glyph_slice): New var.
7995         (append_glyph, append_composite_glyph, append_stretch_glyph):
7996         Use it to initialize glyph slice.
7998 2004-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>
8000         * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
8001         (on_hot_spot_p): Make sure we always return a value.
8002         (Flookup_image_map): Remove unused var ix and iy.
8003         (note_mode_line_or_margin_highlight): Remove unused var `image'.
8005 2004-04-27  Eli Zaretskii  <eliz@gnu.org>
8007         * msdos.c (init_environment): If one of the TMP... environment
8008         variables is set to a drive letter without a trailing slash,
8009         append a slash.
8011 2004-04-27  Matthew Mundell  <matt@mundell.ukfsn.org>
8013         * editfns.c (lisp_time_argument): Provide externally.
8015         * fileio.c (Fset_file_times): New function.
8016         (syms_of_fileio): Intern and staticpro it.
8018 2004-04-27  Kim F. Storm  <storm@cua.dk>
8020         * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
8021         header line strings.
8023         * dispextern.h (struct it): New member use_default_face.
8025         * xdisp.c (Qline_height): New variable.
8026         (syms_of_xdisp): Intern and staticpro it.
8027         (append_space_for_newline): Partially undo 2004-04-25 change;
8028         add default_face_p arg, and restore callers.
8029         Clear it->use_default_face after use.
8030         (x_produce_glyphs): Set default font for ascii char if
8031         it->use_default_font is set.  Change line-spacing property to set
8032         just extra line spacing.  Handle new line-height property.
8034 2004-04-26  Andreas Schwab  <schwab@suse.de>
8036         * print.c (print_object): Print non-ascii characters in bool
8037         vector representation as octal escapes.
8039         * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
8040         * print.c (print_object): Use it instead of BITS_PER_CHAR for
8041         bool vectors.
8042         * lread.c (read1): Likewise.
8043         * alloc.c (Fmake_bool_vector): Likewise.
8044         * data.c (Faref, Faset): Likewise.
8045         * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
8046         (mapcar1): Likewise.
8048 2004-04-26  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
8050         * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
8052 2004-04-26  Miles Bader  <miles@gnu.org>
8054         * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
8056 2004-04-26  Juanma Barranquero  <lektu@terra.es>
8058         * buffer.c (Fpop_to_buffer): Fix docstring.
8060 2004-04-26  Steven Tamm  <steventamm@mac.com>
8062         * lread.c (init_lread): Don't display missing lisp directory
8063         warnings with Carbon Emacs because self-contained bundled Emacs
8064         may be built without correct installation path.
8066 2004-04-25  Kim F. Storm  <storm@cua.dk>
8068         * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8070         * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8072         * xdisp.c (append_space_for_newline): Rename from append_space.
8073         Remove DEFAULT_FACE_P arg; always use current face.  Callers changed.
8074         (x_produce_glyphs): Handle line-spacing property on newline char.
8075         If value is t, adjust ascent and descent to fit current row height.
8076         If value is an integer or float, set extra_line_spacing to integer
8077         value, or to float value x current line height.
8079 2004-04-23  Kenichi Handa  <handa@m17n.org>
8081         * fontset.c (Finternal_char_font): If POSITION is nil, return
8082         font for displaying CH with the default face.
8084 2004-04-23  Juanma Barranquero  <lektu@terra.es>
8086         * makefile.w32-in: Add "-*- makefile -*-" mode tag.
8088 2004-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
8090         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
8091         Don't make assumptions about the relative place of i and val.
8092         (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
8094 2004-04-21  Kim F. Storm  <storm@cua.dk>
8096         * dispextern.h (struct glyph_slice): New struct.
8097         (struct glyph): New member slice.
8098         (GLYPH_SLICE_EQUAL_P): New macro.
8099         (GLYPH_EQUAL_P): Use it.
8100         (struct glyph_string): New member slice.
8101         (struct it_slice): New struct.
8102         (struct it): New member slice, add member to stack too.
8103         New member constrain_row_ascent_descent_p.
8104         (image_ascent): Add prototype.
8106         * dispnew.c (buffer_posn_from_coords): Return full image width
8107         and height even for image slices (posn is relative to full image).
8108         (marginal_area_string): Adjust x0,y0 for image slice.
8110         * image.c (image_ascent): Add slice arg; calculate ascent for
8111         image slice (or full image).
8113         * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
8114         (syms_of_keyboard): Defsubr them.
8116         * lisp.h (pos_visible_p): Fix prototype.
8118         * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8119         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8120         (x_draw_image_foreground, x_draw_image_relief)
8121         (x_draw_image_foreground_1, x_draw_image_glyph_string):
8122         Draw sliced images.
8124         * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
8125         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8126         (x_draw_image_foreground, x_draw_image_relief)
8127         (w32_draw_image_foreground_1, x_draw_image_glyph_string):
8128         Draw sliced images.
8130         * w32term.h (image_ascent): Remove prototype.
8132         * window.c (Fpos_visible_in_window_p): Return pixel position if
8133         PARTIALLY arg is non-nil.  Simplify.  Doc fix.
8134         (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
8135         to return/set vscroll in pixels.
8137         * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
8139         * xdisp.c (Qslice): New variable.
8140         (syms_of_xdisp): Intern and staticpro it.
8141         (pos_visible_p): Return pixel position in new x and y args.
8142         (init_iterator): Reset it->slice info.
8143         (handle_display_prop): Parse (slice ...) property.
8144         (push_it, pop_it): Save/restore slice info.
8145         (make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
8146         force repositioning of tall row if window is vscrolled, as that
8147         would reset vscroll.
8148         (append_space): Set it->constrain_row_ascent_descent_p to avoid
8149         increasing row height if row is non-empty.
8150         (fill_image_glyph_string): Copy slice info.
8151         (take_vertical_position_into_account): Simplify.
8152         (produce_image_glyph): Handle iterator slice info, setup glyph
8153         slice info.  Do not force minimum line height.
8154         (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
8155         do not increase height (ascent/descent) of non-empty row when
8156         adding normal character glyph; instead reduce glyph ascent/descent
8157         appropriately; if row is higher than current glyph, adjust glyph
8158         descent/ascent to reposition glyph within the existing row.
8159         Likewise, when char is newline, only set ascent/descent if row is
8160         currently empty.
8161         (note_mouse_highlight): Handle hotspots with sliced image.
8163         * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8164         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8165         (x_draw_image_foreground, x_draw_image_relief)
8166         (x_draw_image_foreground_1, x_draw_image_glyph_string):
8167         Draw sliced images.
8169         * xterm.h (image_ascent): Remove prototype.
8171 2004-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
8173         * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
8175 2004-04-20  John Paul Wallington  <jpw@gnu.org>
8177         * fns.c (Fassoc, Feql): Fix indentation.
8179         * fontset.c (regularize_fontname): Rename from regulalize_fontname.
8181 2004-04-19  John Paul Wallington  <jpw@gnu.org>
8183         * fns.c (Feql): New function.
8184         (syms_of_fns): Defsubr it.
8186 2004-04-18  Jason Rumney  <jasonr@gnu.org>
8188         * w32select.c (Fw32_set_clipboard_data): Get sequence number
8189         after closing the clipboard.
8191 2004-04-16  Luc Teirlinck  <teirllm@auburn.edu>
8193         * buffer.c (Fbuffer_base_buffer): Doc fix.
8195 2004-04-17  Kim F. Storm  <storm@cua.dk>
8197         * keymap.c (Fkey_description): Add optional PREFIX arg.
8198         Combine prefix with KEYS to make up the full key sequence to describe.
8199         Correlate meta_prefix_char and following (simple) key to describe
8200         as meta modifier.  All callers changed.
8201         (describe_map): Rename arg `keys' to `prefix'.  Remove local
8202         `elt_prefix' var.  Use Fkey_description with prefix instead of
8203         elt_prefix combined with Fsingle_key_description.
8204         (describe_vector): Declare static.  Replace arg `elt_prefix' with
8205         `prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
8206         if !KEYMAP_P.  Use Fkey_description with prefix instead of
8207         Fsingle_key_description.
8209         * keymap.h (Fkey_description): Fix prototype.
8210         (describe_vector): Remove prototype.
8212         * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
8214         * image.c (PNG_BG_COLOR_SHIFT): Remove.
8215         (png_load): Fix calculation of transparent background color on X
8216         and W32 platforms.
8218 2004-04-16  Juanma Barranquero  <lektu@terra.es>
8220         * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
8221         not too large before computing how much to scroll.
8223 2004-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
8225         * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
8227 2004-04-14  Luc Teirlinck  <teirllm@auburn.edu>
8229         * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
8230         Add hyperlink to Elisp manual to the docstring.
8232 2004-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
8234         * callint.c (fix_command): Use XDCR.
8236 2004-04-14  Nick Roberts  <nick@nick.uklinux.net>
8238         * window.c (Fget_lru_window): Doc fix.
8240 2004-04-14  Kim F. Storm  <storm@cua.dk>
8242         * editfns.c (Fformat): Fix allocation size of precision array.
8244         * dispnew.c (update_window): Only set changed_p if
8245         scrolling_window actually did scroll.
8246         (scrolling_window): Only return 1 if we actually did scroll.
8248         * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
8249         height to glyph height when cursor row is not fully visible.
8250         (make_cursor_line_fully_visible): Add FORCE_P arg to return
8251         failure in case row is higher than window.  Callers changed.
8252         (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
8253         Try to scroll partially visible, higher-than-window cursor row.
8254         (redisplay_window): Always try to scroll partially visible,
8255         higher-than-window cursor row - both initially and again with
8256         centering_position = 0.
8257         Clear desired matrix before retrying with centering_position = 0.
8259 2004-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
8261         * syntax.c (scan_lists): Simplify backward string scan.
8262         Fix off-by-one boundary check for string and comment fences.
8264 2004-04-13  Joe Buehler  <jbuehler@hekimian.com>
8266         * sheap.c, unexcw.c: New files.
8268 2004-04-12  Luc Teirlinck  <teirllm@auburn.edu>
8270         * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
8271         base buffer has been killed.  Correct the error message if the
8272         base buffer does not exist.
8274 2004-04-12  Joe Buehler  <jbuehler@hekimian.com>
8276         * s/cygwin.h: Changes for Cygwin unexec() support, changes in
8277         Cygwin itself.  Add support for Xaw3d scrollbars.
8279         * puresize.h: Set up PURE_P() for Cygwin unexec() support.
8281         * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
8283         * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
8284         before Cygwin unexec.
8286         * Makefile.in: Link changes for Cygwin unexec() support.
8288 2004-04-12  Andreas Schwab  <schwab@suse.de>
8290         * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
8292 2004-04-11  Luc Teirlinck  <teirllm@auburn.edu>
8294         * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
8295         IGNORE argument equals NAME.  Doc fix.
8297 2004-04-11  Masatake YAMATO  <jet@gyve.org>
8299         * buffer.c (fix_start_end_in_overlays): Make overlays
8300         empty if they are backwards.
8302 2004-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
8304         * xfaces.c (face_color_supported_p): Fix compilation without X11.
8306 2004-04-07  Stefan Monnier  <monnier@iro.umontreal.ca>
8308         * doc.c (Fsnarf_documentation): Ignore new file name entries.
8310 2004-04-06  Kim F. Storm  <storm@cua.dk>
8312         * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8313         (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
8315         * w32term.c (w32_read_socket): Set mouse_face_hidden after
8316         clearing highlight.
8318         * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8320         * xterm.c (handle_one_xevent): Set mouse_face_hidden after
8321         clearing highlight.
8323         * indent.c (vmotion): Do not reserve one column for continuation
8324         marks on window frames.
8326 2004-04-04  Eli Zaretskii  <eliz@gnu.org>
8328         * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
8329         from GCC.
8331 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8333         * .gdbinit-union: Remove.
8335         * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
8336         (xgetptr, xgetint, xgettype): New funs.  Use them everywhere.
8337         ($nonvalbits): Remove.
8338         ($valmask): Set it by calling xreload to avoid redundancy.
8340         * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
8341         (gdb_emacs_intbits): Remove.
8343 2004-03-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8345         * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
8347 2004-03-30  Kenichi Handa  <handa@m17n.org>
8349         * editfns.c (Fformat): Fix initialization of the array info.
8351 2004-03-30  Kim F. Storm  <storm@cua.dk>
8353         * xterm.c (x_mouse_click_focus_ignore_position): New var.
8354         (syms_of_xterm): DEFVAR_BOOL it.
8355         (ignore_next_mouse_click_timeout): New var.
8356         (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
8357         Use it to filter mouse clicks following focus event.
8359 2004-03-29  David Ponce  <david@dponce.com>
8361         * callint.c (Fcall_interactively): Fix last change.
8363 2004-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
8365         * eval.c (Fcommandp): Simplify.
8367         * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
8368         Extend to handle all kinds of functions.
8370         * lisp.h (Finteractive_form): Declare.
8372         * callint.c (Fcall_interactively): Use it.
8374 2004-03-26  Kim F. Storm  <storm@cua.dk>
8376         * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
8377         to catch errors in calc_pixel_width_or_height during redisplay.
8379 2004-03-26  Masatake YAMATO  <jet@gyve.org>
8381         * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
8383         * lisp.h (fix_start_end_in_overlays): Likewise.
8385         * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
8387         * editfns.c (Ftranspose_regions): Likewise.
8389 2004-03-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8391         * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
8393 2004-03-19  Richard M. Stallman  <rms@gnu.org>
8395         * s/sol2-6.h: Delete previous change.
8397 2004-03-19  Kim F. Storm  <storm@cua.dk>
8399         * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
8400         to_charpos corresponds to newline in right fringe.  Use local
8401         BUFFER_POS_REACHED_P macro.
8403 2004-03-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8405         * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
8406         to compile on non-window system.
8408 2004-03-19  Kim F. Storm  <storm@cua.dk>
8410         * dispextern.h (calc_pixel_width_or_height): Add prototype.
8412         * image.c (Qcenter): Move to xdisp.c.
8414         * xdisp.c (Qcenter): Declare here.
8415         (syms_of_xdisp): Intern and staticpro it.
8416         (handle_single_display_prop): Allow space display property on all
8417         platforms.
8418         (display_mode_line): Set mode_line_p before displaying line.
8419         (calc_pixel_width_or_height): Declare extern.  Add separate :align-to
8420         handling.  Remove complex cases for fringes and scroll-bars.
8421         Add left, right, and center alignment positions.  Add text (area)
8422         width/height.  Return width or height for image specs.
8423         (produce_stretch_glyph): Improve handling of :align-to.  Is now
8424         relative to left of text area by default, but other base offsets
8425         can be specified -- also for text lines.
8427         * term.c (produce_glyphs): Handle IT_STRETCH.
8428         (produce_stretch_glyph): New function to handle space width and
8429         align-to display properties on non-window systems.
8431 2004-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
8433         * fileio.c (Fread_file_name): Set completion-ignore-case for
8434         case-insensitive systems.
8436 2004-03-14  Masatake YAMATO  <jet@gyve.org>
8438         * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
8439         when keymap and cursor are setup.
8441 2004-03-14  Steven Tamm  <steventamm@mac.com>
8443         * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
8445 2004-03-14  Kim F. Storm  <storm@cua.dk>
8447         * dispextern.h (x_find_image_file): Add prototype.
8449         * image.c (x_find_image_file): Make extern.
8451         * xfns.c (x_find_image_file): Remove prototype.
8453 2004-03-13  Eli Zaretskii  <eliz@gnu.org>
8455         * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
8457         * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
8459 2004-03-12  Richard M. Stallman  <rms@gnu.org>
8461         * fns.c (internal_equal): New arg PROPS controls comparing
8462         text properties.  All callers changed.
8463         (Fequal_including_properties): New function.
8464         (syms_of_fns): defsubr it.
8466 2004-03-12  Kim F. Storm  <storm@cua.dk>
8468         Fix image support on MAC.  From YAMAMOTO Mitsuharu.
8470         * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
8471         (image_background, image_background_transparent): Fix prototypes.
8473         * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
8475         * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
8476         (x_query_font, x_find_ccl_program, x_set_window_size)
8477         (x_make_frame_visible, mac_initialize, XCreatePixmap)
8478         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8479         (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
8481         * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
8482         (x_query_font, x_find_ccl_program, x_set_window_size)
8483         (x_make_frame_visible, mac_initialize, XCreatePixmap)
8484         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8485         (mac_draw_line_to_pixmap): Add prototypes.
8487 2004-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8489         * macterm.c (XTread_socket): Fix mouse click on tool bar.
8491 2004-03-11  Kim F. Storm  <storm@cua.dk>
8493         * dispextern.h: Move image related prototypes from xfns.c section
8494         to image.c.  Condition them by HAVE_WINDOW_SYSTEM rather than
8495         HAVE_X_WINDOWS.
8497         * Makefile.in (XOBJ): Consolidate into one list.  Add image.o.
8498         Move gtkutil.o to new GTK_OBJ list.
8499         (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
8500         (GTK_OBJ) [USE_GTK]: New declaration.
8501         (obj): Add $(GTK_OBJ) to list.
8503 2004-03-11  Steven Tamm  <steventamm@mac.com>
8505         * image.c [MAC_OSX]: Include sys/stat.h.
8507         * macfns.c (syms_of_macfns): Remove definitions of things now
8508         defined in image.c.
8510 2004-03-11  Kim F. Storm  <storm@cua.dk>
8512         The following changes consolidates the identical/similar image
8513         support code previously found in xfns.c, w32fns.c, and macfns.c
8514         into a new file image.c.
8516         * makefile.w32-in (OBJ1): Add image.o.
8517         ($(BLD)/image.$(O)): Add dependencies.
8519         * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
8520         (image.o): Add dependencies.
8522         * image.c: New file with consolidated image support code.
8523         (COLOR_TABLE_SUPPORT): New define to control whether
8524         color table support is available (X only).
8525         (Bitmap_Record): Common name for x_bitmap_record,
8526         w32_bitmap_record, and mac_bitmap_record.
8527         (XImagePtr): Common name for pointer to XImage or equivalent.
8528         (XImagePtr_or_DC): New type to simplify code sharing; equivalent
8529         to XImagePtr on X+MAC, and to HDC on W32.
8530         (GET_PIXEL): Wrapper for XGetPixel or equivalent.
8531         (NO_PIXMAP): Common name for "None" or equivalent.
8532         (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
8533         (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
8534         (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
8535         (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
8536         Define with suitable equivalents on W32 and MAC for code sharing.
8537         (XDrawLine): Define on MAC for code sharing.
8538         (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
8539         (IF_LIB_AVAILABLE): Macro to simplify code sharing.
8540         (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8541         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8542         (x_reference_bitmap, x_create_bitmap_from_data)
8543         (x_create_bitmap_from_file, x_destroy_bitmap)
8544         (x_destroy_all_bitmaps, x_create_bitmap_mask)
8545         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8546         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8547         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8548         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8549         (define_image_type, lookup_image_type, valid_image_p)
8550         (image_error, enum image_value_type, struct image_keyword)
8551         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8552         (make_image, free_image, prepare_image_for_display, image_ascent)
8553         (four_corners_best, image_background, image_background_transparent)
8554         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
8555         (make_image_cache, free_image_cache, clear_image_cache)
8556         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8557         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8558         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8559         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8560         (init_image_func_pointer, image_load_quartz2d)
8561         (struct ct_color, init_color_table, free_color_table)
8562         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8563         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8564         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8565         (x_disable_image, x_build_heuristic_mask)
8566         (XBM support, XPM support, PBM support, PNG support, JPEG support)
8567         (TIFF support, GIF support, Ghostscript support): Consolidate image
8568         code from xfns.c, w32fns.c, and macfns.c.
8569         (syms_of_image): Consolidate image related symbol setup here.
8570         (init_image): Consolidate image related initializations here.
8572         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
8573         and init_image.  Remove call to init_xfns.
8575         * macterm.h (struct mac_bitmap_record): Add file member.
8576         Not currently used, but simplifies code sharing.
8578         * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8579         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8580         (x_reference_bitmap, x_create_bitmap_from_data)
8581         (x_create_bitmap_from_file, x_destroy_bitmap)
8582         (x_destroy_all_bitmaps, x_create_bitmap_mask)
8583         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8584         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8585         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8586         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8587         (define_image_type, lookup_image_type, valid_image_p)
8588         (image_error, enum image_value_type, struct image_keyword)
8589         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8590         (make_image, free_image, prepare_image_for_display, image_ascent)
8591         (four_corners_best, image_background, image_background_transparent)
8592         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
8593         (make_image_cache, free_image_cache, clear_image_cache)
8594         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8595         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8596         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8597         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8598         (init_image_func_pointer, image_load_quartz2d)
8599         (struct ct_color, init_color_table, free_color_table)
8600         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8601         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8602         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8603         (x_disable_image, x_build_heuristic_mask)
8604         (XBM support, XPM support, PBM support, PNG support, JPEG support)
8605         (TIFF support, GIF support, Ghostscript support): Merge with image
8606         code from xfns.c and macfns.c into image.c.
8607         (syms_of_xfns): Move image related symbols to image.c.
8608         (init_external_image_libraries, init_xfns): Remove; initialization
8609         moved to init_image in image.c.
8611         * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8612         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8613         (x_reference_bitmap, x_create_bitmap_from_data)
8614         (x_create_bitmap_from_file, x_destroy_bitmap)
8615         (x_destroy_all_bitmaps, x_create_bitmap_mask)
8616         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8617         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8618         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8619         (define_image_type, lookup_image_type, valid_image_p)
8620         (image_error, enum image_value_type, struct image_keyword)
8621         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8622         (make_image, free_image, prepare_image_for_display, image_ascent)
8623         (four_corners_best, image_background, image_background_transparent)
8624         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
8625         (make_image_cache, free_image_cache, clear_image_cache)
8626         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8627         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8628         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8629         (struct ct_color, init_color_table, free_color_table)
8630         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8631         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8632         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8633         (x_disable_image, x_build_heuristic_mask)
8634         (XBM support, XPM support, PBM support, PNG support, JPEG support)
8635         (TIFF support, GIF support, Ghostscript support): Merge with image
8636         code from xfns.c and macfns.c into image.c.
8637         (syms_of_xfns): Move image related symbols to image.c.
8638         (init_external_image_libraries, init_xfns): Remove; initialization
8639         moved to init_image in image.c.
8641         * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8642         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8643         (x_reference_bitmap, x_create_bitmap_from_data)
8644         (x_create_bitmap_from_file, x_destroy_bitmap)
8645         (x_destroy_all_bitmaps, x_create_bitmap_mask)
8646         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8647         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8648         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8649         (define_image_type, lookup_image_type, valid_image_p)
8650         (image_error, enum image_value_type, struct image_keyword)
8651         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8652         (make_image, free_image, prepare_image_for_display, image_ascent)
8653         (four_corners_best, image_background, image_background_transparent)
8654         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
8655         (make_image_cache, free_image_cache, clear_image_cache)
8656         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8657         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8658         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8659         (struct ct_color, init_color_table, free_color_table)
8660         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8661         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8662         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8663         (x_disable_image, x_build_heuristic_mask)
8664         (XBM support, XPM support, PBM support, PNG support, JPEG support)
8665         (TIFF support, GIF support, Ghostscript support): Merge with
8666         w32fns.c and macfns.c image code into image.c.
8667         (syms_of_xfns): Move image related symbols to image.c.
8668         (init_xfns): Remove; initialization moved to init_image in image.c.
8670         * lisp.h (syms_of_image, init_image): Add protoypes.
8671         (init_xfns): Remove prototype.
8673         * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8674         (x_reference_bitmap, x_create_bitmap_from_data)
8675         (x_create_bitmap_from_file, x_destroy_bitmap)
8676         (x_create_bitmap_mask): Move prototypes from dispextern.h.
8677         (gamma_correct) [MAC_OS]: Add prototype.
8679         * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8680         (x_reference_bitmap, x_create_bitmap_from_data)
8681         (x_create_bitmap_from_file, x_destroy_bitmap)
8682         (x_create_bitmap_mask): Move prototypes to dispextern.h.
8684 2004-03-09  Kenichi Handa  <handa@etlken2>
8686         * coding.c (decode_coding_emacs_mule): Handle insufficent source
8687         correctly.
8689 2004-03-04  Richard M. Stallman  <rms@gnu.org>
8691         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
8693         * window.c (Fdisplay_buffer): Doc fix.
8695         * buffer.c (Fpop_to_buffer): Doc fix.
8697 2004-03-03  Kim F. Storm  <storm@cua.dk>
8699         * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
8701 2004-03-02  Stefan Monnier  <monnier@iro.umontreal.ca>
8703         * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
8705 2004-03-02  Richard M. Stallman  <rms@gnu.org>
8707         * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
8709 2004-03-02  Kenichi Handa  <handa@m17n.org>
8711         * doc.c (Fsubstitute_command_keys): Fix counding bytes.
8713 2004-03-02  Kim F. Storm  <storm@cua.dk>
8715         * window.h (struct window): New member overlay_arrow_bitmap.
8717         * window.c (make_window): Initialize overlay_arrow_bitmap.
8719         * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
8720         implement and integrate multiple overlay arrows with redisplay.
8721         (syms_of_xdisp): DEFVAR_LISP and initialize it.
8722         (last_arrow_position, last_arrow_string): Replace by properties.
8723         (Qlast_arrow_position, Qlast_arrow_string)
8724         (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
8725         (syms_of_xdisp): Intern and staticpro them.
8726         (overlay_arrow_string_or_property, update_overlay_arrows)
8727         (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
8728         (overlay_arrow_at_row): New functions for multiple overlay arrows.
8729         (redisplay_internal): Use them instead of directly accessing
8730         Voverlay_arrow_position etc. for multiple overlay arrows.
8731         (mark_window_display_accurate): Use update_overlay_arrows.
8732         (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
8733         (try_window_id): Use overlay_arrows_changed_p.
8734         (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
8735         (display_line): Use overlay_arrow_at_row to check multiple
8736         overlay arrows, and get relevant overlay-arrow-string and
8737         overlay-arrow-bitmap.  Set w->overlay_arrow_bitmap accordingly.
8738         (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
8739         (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
8741         * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
8742         (update_window_fringes): Remove unused code.
8744 2004-03-01  Jason Rumney  <jasonr@gnu.org>
8746         * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
8748 2004-03-01  Juanma Barranquero  <lektu@terra.es>
8750         * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
8752         * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
8754 2004-03-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8756         * xfns.c (Fx_display_color_cells): Use number of planes to calculate
8757         how many colors can be displayed.
8759 2004-03-01  Kenichi Handa  <handa@m17n.org>
8761         * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
8762         correctly.
8764 2004-02-28  Kim F. Storm  <storm@cua.dk>
8766         * dispnew.c (update_window): Update header line also if there are
8767         no other changes in window (move code after set_cursor label).
8769         * lisp.h (mark_window_display_accurate): Remove prototype.
8771         * window.c (window_loop, Fforce_window_update): Force mode line
8772         updates by setting prevent_redisplay_optimizations_p and
8773         update_mode_lines.
8775 2004-02-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8777         * xfns.c (x_window): Fix indentation.
8779         * xterm.c (x_calc_absolute_position): Call x_real_positions
8780         to get WM window sizes and use those to calculate position.
8781         (x_set_offset): Remove code commented out.
8783 2004-02-28  Miles Bader  <miles@gnu.org>
8785         * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
8787 2004-02-28  Kim F. Storm  <storm@cua.dk>
8789         * keyboard.c (kbd_buffer_store_event_hold): New function to store
8790         an event into kbd fifo, but with special handling of quit event;
8791         a quit event is saved for later, and further events are discarded
8792         until the saved quit event has been processed.
8793         (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
8794         (gen_help_event): Store help event in kbd fifo.
8795         (NREAD_INPUT_EVENTS): Remove.
8796         (read_avail_input): Adapt to new read_socket_hook interface.
8797         Remove allocation and initialization of local input_event buffer,
8798         as read_socket_hook stores events directly in fifo.  Allocate and
8799         initialize local hold_quit event to handle postponed quit event
8800         (and store it if set by kbd_buffer_store_event_hold).
8802         * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
8803         (gen_help_event): Fix prototype.
8805         * macterm.c (XTread_socket): Remove bufp_r and
8806         numcharsp args.  Add hold_quit arg.
8807         Rework to use just one, local, inev input_event.  Store inev
8808         directly in fifo using kbd_buffer_store_event_hold.
8810         * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
8811         (read_input_waiting): Adapt to new read_socket_hook interface.
8812         Remove allocation and initialization of local input_event buffer,
8813         as read_socket_hook stores events directly in fifo.  Allocate and
8814         initialize local hold_quit event to handle postponed quit event
8815         (and store it if set by kbd_buffer_store_event_hold).
8817         * term.c (read_socket_hook): Fix arg list.
8819         * termhooks.h (read_socket_hook): Fix prototype.
8821         * w32inevt.c (w32_console_read_socket): Remove bufp_r and
8822         numcharsp args.  Add hold_quit arg.
8823         Rework to use just one, local, inev input_event.  Store inev
8824         directly in fifo using kbd_buffer_store_event_hold.
8826         * w32inevt.h (w32_console_mouse_position): Fix prototype.
8828         * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
8829         Add hold_quit arg.  Rework to use just one, local, inev
8830         input_event.  Store inev directly in fifo using
8831         kbd_buffer_store_event_hold.  Update count in one place.
8832         Postpone call to gen_help_event until inev is stored; use new
8833         local do_help for this.
8834         Remove local emacs_event in handing of ButtonPress event; just use
8835         inev instead (so no reason to copy it later).
8837         * xsmfns.c (x_session_check_input): Remove numchars arg.
8839         * xterm.c (x_focus_changed, x_detect_focus_change):
8840         Remove numchars arg.  Always store event into bufp arg.
8841         Return nothing.  Callers changed accordingly.
8842         (glyph_rect): Simplify.
8843         (STORE_KEYSYM_FOR_DEBUG): New macro.
8844         (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
8845         (current_bufp, current_numcharsp) [USE_GTK]: Remove.
8846         (current_hold_quit) [USE_GTK]: Add.
8847         (event_handler_gdk): Adapt to new handle_one_xevent.
8848         (handle_one_xevent): Remove bufp_r and numcharsp args.
8849         Add hold_quit arg.  Rework to use just one, local, inev
8850         input_event.  Store inev directly in fifo using
8851         kbd_buffer_store_event_hold.  Update count in one place.
8852         Postpone call to gen_help_event until inev is stored; use new
8853         local do_help for this.
8854         Simplify handling of keysyms (consolidate common code).  Fix bug
8855         where count was updated with nchars instead of nbytes.
8856         Remove local emacs_event in handing of ButtonPress event; just use
8857         inev instead (so no reason to copy it later).
8858         Remove `out' label.  Rename label `ret' to `done'; add various
8859         `goto done' to clarify code flow in deeply nested blocks.
8860         (x_dispatch_event): Simplify as handle_one_xevent now calls
8861         kbd_buffer_store_event itself.
8862         (XTread_socket): Remove bufp_r and numcharsp args.  Add hold_quit
8863         arg.  Call handle_one_xevent with new arglist.  Store event from
8864         x_session_check_input in fifo.
8865         [USE_GTK]: Setup current_hold_quit.
8866         Decrement handling_signal before unblocking input.
8867         (x_initialize) [USE_GTK]: Initialize current_count.
8869         * xterm.h (x_session_check_input): Fix prototype.
8871 2004-02-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8873         * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
8875         * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
8876         macgui.h).
8878         * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
8880         * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
8881         (mktime, DEBUG, Z, free, malloc, realloc, max, min)
8882         (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
8883         [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
8884         (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
8885         (Bitmap): Remove typedef.
8886         (Pixmap): Change int to GWorldPtr.
8888         * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
8890         * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
8891         (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
8892         New #define to extract 16-bit depth color components from unsigned
8893         long representation.
8894         (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
8895         colors used for masks.
8896         (struct mac_display_info): Add color_p.  Remove n_cbits.
8898         * macfns.c: Include sys/types.h and sys/stat.h.
8899         [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
8900         Include QuickTime/QuickTime.h.
8901         (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8902         (XSetForeground, mac_draw_line_to_pixmap): Add externs for
8903         functions defined in macterm.c.
8904         (XImagePtr): New typedef.  Corresponds to XImage * in xfns.c.
8905         (ZPixmap): New #define for compatibility with xfns.c.
8906         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8907         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8908         (find_image_fsspec, image_load_qt_1, image_load_quicktime):
8909         New functions.
8910         (four_corners_best, x_create_x_image_and_pixmap)
8911         (x_destroy_x_image, unwind_create_frame, x_disable_image)
8912         (x_edge_detection, init_color_table, colors_in_color_table)
8913         (lookup_rgb_color, lookup_pixel_color, postprocess_image)
8914         (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
8915         (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
8916         (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
8917         (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
8918         long mixup.
8919         (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
8920         (x_decode_color): Don't use n_cbits (in struct mac_display_info).
8921         (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
8922         (x_set_cursor_type, Fxw_color_values, valid_image_p)
8923         (image_value_type, parse_image_spec, image_ascent, x_clear_image)
8924         (x_alloc_image_color, clear_image_cache, lookup_image)
8925         (x_find_image_file, xbm_read_bitmap_file_data)
8926         (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
8927         (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
8928         (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
8929         (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
8930         (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
8931         (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
8932         (x_make_gc): Sync with xfns.c.  Enclose unused `border_tile' with
8933         #if 0.
8934         (x_free_gcs): Sync with xfns.c.  Enclose unused `border_tile' with
8935         #if 0.  Free white_relief.gc and black_relief.gc.
8936         (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
8937         New functions (from xfns.c).
8938         (Fx_create_frame): Record unwind_create_frame.
8939         (Fxw_display_color_p): Use dpyinfo->color_p.
8940         (Fx_display_grayscale_p, Fx_display_planes): Don't use
8941         dpyinfo->n_cbits.
8942         (Fx_display_color_cells): Use dpyinfo->n_planes;
8943         (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
8944         (Qheuristic, cross_disabled_images, emboss_matrix)
8945         (laplace_matrix): New variables (from xfns.c).
8946         (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
8947         (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
8948         (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
8949         (image_background_transparent): New function (from xfns.c).
8950         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8951         (image_load_quicktime): Add declaration.
8952         [MAC_OSX] (image_load_quartz2d): Likewise.
8953         [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
8954         [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
8955         [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
8956         (xbm_load_image_from_file, x_laplace_read_row)
8957         (x_laplace_write_row, pbm_read_file): Remove functions.
8958         [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
8959         (xpm_load): Sync with xfns.c (although XPM is not supported yet).
8960         (colors_in_color_table): Sync with xfns.c (although not used).
8961         (lookup_rgb_color): Don't lookup color table.  Just do gamma
8962         correction.
8963         (COLOR_INTENSITY): New #define (from xfns.c).
8964         (x_disable_image): New function (from xfns.c).
8965         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8966         (x_build_heuristic_mask): Sync with xfns.c.
8967         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8968         (HAVE_PBM): Remove #ifdef.
8969         (pbm_load): Sync with xfns.c.  Set img->width and img->height
8970         before IMAGE_BACKGROUND.
8971         (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
8972         (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
8973         Don't enclose with #if HAVE_PNG.
8974         [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
8975         symbol _CGImageCreateWithPNGDataProvider is defined.
8976         Otherwise use image_load_quicktime.
8977         [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
8978         [HAVE_PNG] (png_load): Sync with xfns.c.
8979         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8980         (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
8981         HAVE_JPEG.
8982         (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
8983         (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
8984         [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
8985         [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
8986         [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
8987         (tiff_image_p, tiff_load): Don't enclose declarations with #if
8988         HAVE_TIFF.
8989         (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
8990         (tiff_image_p): Don't enclose with #if HAVE_TIFF.
8991         [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
8992         [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
8993         New functions (from xfns.c).
8994         [HAVE_TIFF] (tiff_load): Sync with xfns.c.
8995         (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
8996         (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
8997         Don't enclose with #if HAVE_GIF.
8998         [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
8999         animated gif.  Otherwise use image_load_quicktime.
9000         [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
9001         gif_DrawText to avoid conflict with QuickdrawText.h.
9002         [HAVE_GIF] (gif_load): Sync with xfns.c.
9003         (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
9004         [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
9005         Ghostscript is not supported yet).
9006         (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
9007         QCmatrix, QCcolor_adjustment, and QCmask.  Add DEFVAR_BOOL
9008         cross_disabled_images (from xfns.c).  Remove #if 0 for supported
9009         image types.  Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9010         HAVE_PNG.  Add defsubr for Simage_size and Simage_mask_p.
9011         (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9012         HAVE_PNG.  Call EnterMovies to support animated gifs.
9013         Call init_image_func_pointer to bind a symbol
9014         _CGImageCreateWithPNGDataProvider if it is defined.
9016         * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9017         (x_draw_bar_cursor): Sync declaration with xterm.c.
9018         (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
9019         (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
9020         graphics).
9021         (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
9022         (mac_draw_line_to_pixmap, XCreatePixmap)
9023         (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
9024         (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
9025         New functions.
9026         (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
9027         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9028         Cast bits to char *.
9029         (reflect_byte): New function (from w32fns.c).
9030         (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
9031         due to byte alignment.
9032         (mac_scroll_area) [TARGET_API_MAC_CARBON]:
9033         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9034         (XSetForeground): Remove static (now used in macfns.c).
9035         (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
9036         (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
9037         (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
9038         (x_draw_glyph_string_box, x_draw_image_foreground)
9039         (x_draw_image_foreground_1, x_draw_image_glyph_string)
9040         (x_draw_stretch_glyph_string, x_draw_glyph_string)
9041         (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
9042         Sync with xterm.c.
9043         (x_draw_relief_rect): Sync with xterm.c.  Make 1 pixel shorter
9044         than the xterm.c version when a strictly horizontal or vertical
9045         line is drawn.
9046         (XTset_terminal_window): Add static.
9047         (x_make_frame_visible): Add UNBLOCK_INPUT.
9048         (x_free_frame_resources): New funcion (from xterm.c).
9049         (XTread_socket): Call handle_tool_bar_click if mouse up/down event
9050         occurs in tool bar area.
9051         (mac_initialize_display_info): Remove dpyinfo->n_cbits.
9052         Set dpyinfo->color_p.  Determine dpyinfo->n_planes using HasDepth.
9053         Initialize image cache.
9054         (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
9055         Enclose unused functions with #if 0.
9056         (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
9057         (decode_mac_font_name): New function to apply code conversions
9058         from a mac font name to an XLFD font name according to its script code.
9059         (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
9060         font name to a mac font name according to REGISTRY and ENCODING fields.
9061         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
9062         whose name starts with `.'.
9063         (init_font_name_table): Use decode_mac_font_name.  Add both
9064         jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
9065         of a font is smJapanese.
9066         (mac_do_list_fonts): New function to list fonts that match a given
9067         pattern.
9068         (x_list_fonts, XLoadQueryFont): Use it.
9069         (XLoadQueryFont): Set rbearing field for each variable width
9070         character to avoid needless redraw.
9071         (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
9073 2004-02-26  Kim F. Storm  <storm@cua.dk>
9075         * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
9076         as read_socket_hook handler on X aborts if buffer is too small
9077         and W32 handler doesn't always check buffer limit.
9079         * xdisp.c (handle_single_display_prop): Handle left-fringe and
9080         right-fringe similar to a display margin image.  Specifically,
9081         the characters having the fringe prop are no longer shown, and
9082         we use IT_IMAGE/next_element_from_image with image_id = -1 to
9083         do this.  Set fringe bitmap face_id in it->face_id.
9084         (produce_image_glyph): Handle image_id < 0 as "no image" case, but
9085         still realize it->face (i.e. the fringe bitmap face).
9087 2004-02-25  Miles Bader  <miles@gnu.org>
9089         * xdisp.c (check_it): Check string/string_pos consistency.
9090         (init_iterator): Initialize string-related fields properly.
9092 2004-02-11  Miles Bader  <miles@gnu.org>
9094         * xdisp.c (produce_image_glyph): Force negative descents to zero.
9096 2004-02-10  Miles Bader  <miles@gnu.org>
9098         * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
9099         BLOCK_INPUT can be nested, so it doesn't make much sense.
9101 2004-02-24  Michael Mauger  <mmaug@yahoo.com>
9103         * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
9104         (xbm_read_bitmap_data): Use unsigned char for image data.
9106 2004-02-23  Luc Teirlinck  <teirllm@auburn.edu>
9108         * abbrev.c (Finsert_abbrev_table_description): Doc fix.
9110 2004-02-22  Jason Rumney  <jasonr@gnu.org>
9112         * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
9113         correctly over other bitmaps.
9115 2004-02-21  Eli Zaretskii  <eliz@gnu.org>
9117         * emacs.c (USAGE1): Split into two halves.
9118         (USAGE2): Second half of the old USAGE1.
9119         (USAGE3): Rename from USAGE2.
9120         (USAGE4): Rename from USAGE3.
9122 2004-02-21  Juri Linkov  <juri@jurta.org>
9124         * emacs.c (USAGE1): Add --no-desktop.  Move --display from USAGE2.
9125         Fix --multibyte.  Move --help, --version to USAGE2.  Add alias
9126         --file.  Fix -f, -l.  Sort options.  Untabify.
9127         (USAGE2): Add -hb.  Fix --name, --title.  Sort options.  Untabify.
9129 2004-02-19  Luc Teirlinck  <teirllm@auburn.edu>
9131         * category.c (Fdefine_category, Fcategory_docstring)
9132         (Fget_unused_category, Fset_category_table)
9133         (Fcategory_set_mnemonics): Doc fixes.
9135 2004-02-20  Kim F. Storm  <storm@cua.dk>
9137         * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
9138         The following changes are relative to the 2004-01-21 revision.
9139         (NREAD_INPUT_EVENTS): Define as max number of input events to read
9140         in one call to read_socket_hook.  Value is 8.
9141         (read_avail_input): Separate and rework handling of read_socket_hook
9142         and non-read_socket_hook cases.  Use smaller input_event buffer
9143         in read_socket_hook case, and repeat if full buffer is read.
9144         Use new local variable 'discard' to skip input after C-g.
9145         In non-read_socket_hook case, just use a single input_event, and
9146         call kbd_buffer_store_event on the fly for each character.
9148 2004-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9150         * lisp.h (union Lisp_Object): Give a more precise type for `type'.
9151         Remove unused `gu' alternative.
9153 2004-02-19  Andreas Schwab  <schwab@suse.de>
9155         * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
9156         warning.
9158 2004-02-18  Kim F. Storm  <storm@cua.dk>
9160         * xdisp.c (get_window_cursor_type, display_and_set_cursor):
9161         Fix last change.
9163 2004-02-17  Kim F. Storm  <storm@cua.dk>
9165         * xdisp.c (fast_find_position): Fix return value of new version;
9166         it was inverted compared to the 21.1 version.
9167         (get_window_cursor_type): Don't look at glyph if NULL.
9168         (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
9170         * keyboard.c: Rework previous change; it didn't consider that the
9171         buf array was allocated on the stack.
9172         (prev_read): Remove variable.
9173         (read_avail_input_buf): New static event buffer array.
9174         (in_read_avail_input): New static variable to handle re-entrancy.
9175         (read_avail_input): Change buf to pinter to read_avail_input_buf.
9176         Use in_read_avail_input to handle re-entrance; when re-entered,
9177         fully initialize and use tmp_buf array instead of read_avail_input_buf.
9178         Do not initialize read_avail_input_buf in full here; instead assume it
9179         is always cleared on entry.  To ensure that, we clear (just) the
9180         entries that were used before we return.
9181         (init_keyboard): Initialize read_avail_input_buf here.
9183 2004-02-16  Jesper Harder  <harder@ifa.au.dk>
9185         * cmds.c (Fend_of_line): Doc fix.
9187 2004-02-16  Dmitry Antipov  <dmitry.antipov@mail.ru>  (tiny change)
9189         * keyboard.c (prev_read): New static variable.
9190         (read_avail_input): Use it to zero out only those slots in buf[]
9191         that were used last time we were called.
9193 2004-02-16  Eli Zaretskii  <eliz@gnu.org>
9195         * Makefile.in (obj): Move fringe.o from here...
9196         (XOBJ, MAC_OBJ): ...to here.
9198 2004-02-16  Stephen Eglen  <stephen@gnu.org>
9200         * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
9202 2004-02-15  Stefan Monnier  <monnier@iro.umontreal.ca>
9204         * data.c (Fbyteorder):
9205         * fringe.c (Fdefine_fringe_bitmap):
9206         * xdisp.c (handle_single_display_prop):
9207         * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
9209 2004-02-16  Jason Rumney  <jasonr@gnu.org>
9211         * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
9213 2004-02-15  Steven Tamm  <steventamm@mac.com>
9215         * macterm.c (Vmac_emulate_three_button_mouse): New variable for
9216         controlling emulation of a three button mouse with option and
9217         command keys.
9218         (Qreverse, mac_get_enumlated_btn): Handle the emulation.
9219         (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
9221 2004-02-15  Kim F. Storm  <storm@cua.dk>
9223         * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
9225         * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
9226         Perform byte-swapping.
9228 2004-02-14  Kim F. Storm  <storm@cua.dk>
9230         * dispextern.h (struct draw_fringe_bitmap_params): Change member
9231         bits from char to short to facilitate wider bitmaps.
9232         (struct redisplay_interface): Fix prototype of define_fringe_bitmap
9233         member.
9235         * fringe.c (struct fringe_bitmap): Change member bits from char to
9236         short to facilitate 16 bits wide bitmaps.  Modify all standard
9237         bitmaps accordingly.
9238         (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
9239         (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
9240         (draw_fringe_bitmap): Ditto.
9241         (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
9242         (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
9243         handle up to 16 bits wide bitmaps.
9244         (Fdefine_fringe_bitmap): Doc fix.  Handle wider bitmaps.
9245         (Ffringe_bitmaps_at_pos): Add missing arg declarations.
9247         * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
9248         (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
9249         need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
9251         * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
9252         so it is no longer necessary to expand them here.
9254         * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
9256 2004-02-12  Kim F. Storm  <storm@cua.dk>
9258         * window.c (Fwindow_fringes): Doc fix.
9260 2004-02-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9262         * xselect.c (x_get_foreign_selection): Add new optional parameter
9263         time_stamp.
9264         (Fx_get_selection_internal): Ditto, pass time_stamp to
9265         x_get_foreign_selection.
9267         * data.c (Fbyteorder): New function.
9269 2004-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9271         * atimer.c: Move include stdio.h to same place as in other files.
9273         * region-cache.c: Ditto.
9275         * sysdep.c: Ditto.
9277         * xfaces.c: Ditto.
9279 2004-02-09  Sam Steingold  <sds@gnu.org>
9281         * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
9283 2004-02-09  Kim F. Storm  <storm@cua.dk>
9285         * fringe.c: New file.  Move original fringe related declarations
9286         and code from dispextern.h and xdisp.c here.
9287         Rework code to support user defined fringe bitmaps, redefining
9288         standard bitmaps, ability to overlay user defined bitmap with
9289         overlay arrow bitmap, and add faces to bitmaps.
9290         (Voverflow_newline_into_fringe): Declare here.
9291         (enum fringe_bitmap_align): New enum.
9292         (..._bits): All bitmaps are now defined without bitswapping; that
9293         is now done in init_fringe_once (if necessary).
9294         (standard_bitmaps): New array with specifications for the
9295         standard fringe bitmaps.
9296         (fringe_faces): New array.
9297         (valid_fringe_bitmap_id_p): New function.
9298         (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
9299         (draw_fringe_bitmap): New function which draws fringe bitmap,
9300         possibly overlaying bitmap with cursor in right fringe or the
9301         overlay arrow in the left fringe.
9302         (update_window_fringes): Do not handle overlay arrow here.
9303         Compare and copy fringe bitmap faces.
9304         (init_fringe_bitmap): New function.
9305         (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
9306         define and destroy user defined fringe bitmaps.
9307         (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
9308         (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9309         (syms_of_fringe): New function.  Defsubr new DEFUNs.
9310         DEFVAR_LISP Voverflow_newline_into_fringe.
9311         (init_fringe_once, init_fringe): New functions.
9312         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
9314         * Makefile.in (obj): Add fringe.o.
9315         (fringe.o): New dependencies.
9317         * dispextern.h (FRINGE_ID_BITS): New definition for number of
9318         bits allocated to hold a fringe number.  Increase number of bits
9319         from 4 to 8 to allow user defined fringe bitmaps.
9320         (struct glyph_row, struct it): New members left_user_fringe_bitmap,
9321         left_user_fringe_face_id, right_user_fringe_bitmap,
9322         right_user_fringe_face_id.
9323         (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
9324         Move to new file fringe.c.
9325         (MAX_FRINGE_BITMAPS): Define here.
9326         (struct draw_fringe_bitmap_params): New members bits, cursor_p,
9327         and overlay_p.  Change member which to int.
9328         (struct redisplay_interface): New members define_fringe_bitmap
9329         and destroy_fringe_bitmap.
9330         (valid_fringe_bitmap_id_p): Add prototype.
9331         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
9333         * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
9334         arrows.
9335         (update_frame): Do flush_display if force_flush_display_p to
9336         ensure display (specifically fringes) are updated in a timely
9337         manner when resizing the frame by dragging the mouse.
9338         (update_window_line): Update row if overlay arrow changed.
9339         (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
9340         or overlay arrow changed.
9342         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
9343         syms_of_fringe, and init_fringe.
9345         * frame.h (struct frame): New member force_flush_display_p.
9347         * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
9348         Add prototypes.
9350         * macterm.c (mac_draw_bitmap): Add overlay_p arg.
9351         (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
9352         thanks to YAMAMOTO Mitsuharu for advice on how to do this.
9353         Use cursor color for displaying cursor in fringe.
9354         (x_redisplay_interface): Add null handlers for
9355         define_fringe_bitmap and destroy_fringe_bitmap functions.
9357         * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
9358         xterm.c to handle overlayed fringe bitmaps and to use cursor color
9359         for displaying cursor in fringe.
9360         (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
9361         specific functions to define and destroy fringe bitmaps in fringe_bmp.
9362         (w32_redisplay_interface): Add them to redisplay_interface.
9363         (w32_term_init): Call w32_init_fringe instead of explicitly
9364         defining fringe bitmaps in fringe_bmp array.
9365         (x_delete_display): Call w32_reset_fringes instead of explicitly
9366         destroying fringe bitmaps in fringe_bmp array.
9368         * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
9369         (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
9370         (continued_bits, continuation_bits, ov_bits, first_line_bits)
9371         (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
9372         (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
9373         (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
9374         (draw_window_fringes, compute_fringe_widths, update_window_fringes):
9375         Move fringe handling vars and code to new file fringe.c.
9376         (handle_display_prop): Handle left-fringe and right-fringe
9377         display properties; store user fringe bitmaps in iterator.
9378         (move_it_in_display_line_to): Handle cursor in fringe at eob.
9379         (clear_garbaged_frames): Set force_flush_display_p if resized.
9380         (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
9381         (display_line): Handle cursor in fringe at eob.
9382         (display_line): Set row user fringe bitmaps from iterator.
9384         * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
9385         Use cursor color for displaying cursor in fringe.
9386         (x_redisplay_interface): Add null handlers for
9387         define_fringe_bitmap and destroy_fringe_bitmap functions.
9389 2004-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9391         * macfns.c (Fx_change_window_property): Make doc string and
9392         parameters same as for X version.
9394         * w32fns.c (Fx_change_window_property): Ditto.
9396 2004-02-07  Kim F. Storm  <storm@cua.dk>
9398         * xdisp.c (hscroll_window_tree): Position cursor near to right
9399         margin in hscrolled window when jumping to end of line (rather
9400         than centering cursor).
9402         * process.c (wait_reading_process_input): Don't do adaptive read
9403         buffering if waiting for a specific process.
9405 2004-02-05  Luc Teirlinck  <teirllm@auburn.edu>
9407         * minibuf.c (Fminibufferp, Fread_from_minibuffer)
9408         (Fread_minibuffer, Feval_minibuffer)
9409         (Fread_string, Fread_no_blanks_input)
9410         (Fcompleting_read): Doc fixes.
9411         (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
9412         completion-regexp-list.  Define Qcase_fold_search and staticpro it.
9413         (read_minibuf): Fix initial comment.
9414         (Ftry_completion, Fall_completions, Ftest_completion): Bind
9415         case-fold-search to the value of completion-ignore-case when
9416         checking completion-regexp-list.
9417         (Fdisplay_completion_list): Make it handle arguments that are
9418         symbols.  Doc fix.
9420 2004-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9422         * xterm.h: Add declaration of free_frame_menubar.
9424         * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
9425         (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
9426         (Fx_change_window_property): Add declaration of parameters type and
9427         format.  Remove unused variable cons.
9429         * xselect.c: Include stdio,h.
9431 2004-02-05  Kenichi Handa  <handa@m17n.org>
9433         * fns.c (Fset_char_table_range): Fix previous change.
9435         * buffer.c (Fset_buffer_multibyte): Fix docstring.
9437 2004-02-04  Luc Teirlinck  <teirllm@auburn.edu>
9439         * editfns.c (Fchar_after, Fchar_before): Doc fixes.
9441 2004-02-04  Stefan Monnier  <monnier@iro.umontreal.ca>
9443         * keymap.c (Vmouse_events): Rename from Vmenu_events.
9444         (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
9446 2004-02-04  Kenichi Handa  <handa@m17n.org>
9448         * fns.c (Fset_char_table_range): Handle charsets ascii,
9449         eight-bit-control, and eight-bit-graphic correctly.
9451 2004-02-03  Jason Rumney  <jasonr@gnu.org>
9453         * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
9455         * w32fns.c (x_to_w32_font): Likewise.
9457 2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9459         * xterm.h: Add x_handle_dnd_message, x_check_property_data,
9460         x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
9462         * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
9463         ClientMessages.
9465         * xselect.c: Include termhooks.h and X11/Xproto.h
9466         (x_check_property_data, x_fill_property_data)
9467         (x_property_data_to_lisp, mouse_position_for_drop)
9468         (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
9469         (Fx_send_client_event): Move here from xfns.c.
9470         (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
9472         * xfns.c (x-send-client-message): Move to xselect.c
9473         (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
9474         OUTER_P.
9475         (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
9476         VECTOR_RET_P.  Handle AnyPropertyType.  Call x_property_data_to_lisp
9477         if vector_ret_p is true.
9478         (syms_of_xfns): Sx_send_client_message moved to xselect.c.
9480 2004-02-02  Eli Zaretskii  <eliz@gnu.org>
9482         * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
9483         basename of FILE relative to it, not FILE itself.
9485 2004-02-02  Kenichi Handa  <handa@m17n.org>
9487         * coding.c (coding_restore_composition): Check invalid
9488         composition data more rigidly.
9490 2004-01-30  Luc Teirlinck  <teirllm@auburn.edu>
9492         * fileio.c (Fread_file_name_internal): Correctly handle the case
9493         where insert-default-directory is nil.
9494         (Fread_file_name): Always return an empty string if the user exits
9495         with an empty minibuffer.  Adapt the docstring accordingly.
9496         (syms_of_fileio): Adapt the docstring of insert-default-directory
9497         to the change in Fread_file_name.
9499 2004-01-29  Eli Zaretskii  <eliz@gnu.org>
9501         * alloca.c [!alloca]: Fix the prototype for xfree.
9503 2004-01-29  Kenichi Handa  <handa@m17n.org>
9505         * fns.c (string_char_to_byte): Optimize for ASCII only string.
9506         (string_byte_to_char): Likewise.
9508 2004-01-28  Peter Runestig  <peter@runestig.com>
9510         * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
9512 2004-01-27  Steven Tamm  <steventamm@mac.com>
9514         * unexmacosx.c (unexec_copy): Do not copy more than was
9515         requested to prevent overwriting during unexec.
9517 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9519         * process.c (sigchld_handler): Add comment about not calling malloc.
9521         * process.h: Add extern to synch_process_termsig.
9523 2004-01-27  Steven Tamm  <steventamm@mac.com>
9525         * macterm.c (make_mac_frame, make_mac_terminal_frame):
9526         Move setting of scroll bars from make_mac_frame to
9527         make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
9529 2004-01-26  Richard M. Stallman  <rms@gnu.org>
9531         * search.c (Freplace_match): Handle nonexistent
9532         back-references properly.
9534 2004-01-03  Richard M. Stallman  <rms@gnu.org>
9536         * window.c (decode_any_window): New function.
9537         (Fwindow_height, Fwindow_width, Fwindow_edges)
9538         (Fwindow_pixel_edges, Fwindow_inside_edges)
9539         (Fwindow_inside_pixel_edges): Use decode_any_window.
9541 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9543         * process.h: synch_process_termsig new variable.
9545         * callproc.c: Define synch_process_termsig.
9546         (Fcall_process): Initiate synch_process_termsig to zero and
9547         check if non-zero and get signal name after subprocess has ended.
9549         * process.c (sigchld_handler): Set synch_process_termsig
9550         if terminated by a signal.  synch_process_death setting removed.
9552         * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
9554 2004-01-26  Andreas Schwab  <schwab@suse.de>
9556         * print.c (print_preprocess): Declare size as EMACS_INT to not
9557         lose bits.
9558         (print_object): Likewise.
9559         * alloc.c (Fpurecopy): Likewise.
9561 2004-01-25  Luc Teirlinck  <teirllm@auburn.edu>
9563         * window.c (Fwindow_minibuffer_p): Doc fix.
9565 2004-01-24  Jonathan Yavner  <jyavner@member.fsf.org>
9567         * editfns.c (Fformat): Make both passes accept the same set of flags.
9569 2004-01-23  Kenichi Handa  <handa@m17n.org>
9571         * fns.c (Fmd5): If OBJECT is a buffer different from the current
9572         one, set buffer to OBJECT temporarily.
9574 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9576         * keyboard.c (kbd_buffer_gcpro): Remove.
9577         (kbd_buffer_store_event, clear_event, Fdiscard_input)
9578         (stuff_buffered_input, init_keyboard, syms_of_keyboard):
9579         Don't initialize and/or maintain the variable any more.  It was made
9580         redundant by my commit of 2003-06-15.
9582         * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
9584 2004-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9586         * lisp.h: Add undef DECL_ALIGN.
9588 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9590         * process.c (wait_reading_process_input) [SYNC_INPUT]:
9591         Check interrupt_input_pending explicitly.
9593         * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
9595         * keyboard.c (handle_async_input): New fun,
9596         extracted from input_available_signal.
9597         (input_available_signal, reinvoke_input_signal): Use it.
9599 2004-01-20  Stefan Monnier  <monnier@iro.umontreal.ca>
9601         * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
9603         * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
9604         manipulation macros for when tags are in the lower bits.
9605         (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
9606         (DECL_ALIGN): New macro.
9607         (DEFUN): Use it.
9609         * lisp.h [ENABLE_CHECKING]: Don't force union type.
9611         * s/darwin.h (__attribute__): Remove outdated workaround.
9613         * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
9615         * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
9616         Don't check range of malloc address.
9617         (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
9619         * process.c (wait_reading_process_input): Lisp_Object/int mixup.
9621         * dired.c (Ffile_attributes): Lisp_Object/int mixup.
9623 2004-01-19  Kenichi Handa  <handa@m17n.org>
9625         * fontset.c (fontset_font_pattern): Fix previous change.
9627 2004-01-16  Miles Bader  <miles@gnu.ai.mit.edu>
9629         * xdisp.c (Voverflow_newline_into_fringe)
9630         (move_it_in_display_line_to, redisplay_internal)
9631         (update_window_fringes, redisplay_window, display_line, window):
9632         Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
9633         that it compiles without a window-system.
9634         * dispnew.c (direct_output_for_insert, update_window): Likewise.
9636 2004-01-16  Kim F. Storm  <storm@cua.dk>
9638         * buffer.h (struct buffer): New member indicate_buffer_boundaries.
9640         * buffer.c (init_buffer_once): Set buffer_defaults and
9641         buffer_local_flags for indicate_buffer_boundaries.
9642         (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
9643         default- variable for it.
9645         * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
9646         right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
9647         New members exact_window_width_line_p and cursor_in_fringe_p for
9648         overflowing newlines into right fringe.
9649         New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
9650         and indicate_bottom_line_p for buffer boundaries and scrolling.
9651         (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
9652         FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
9653         HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
9654         and HOLLOW_SQUARE_BITMAP.
9655         (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
9656         Add prototypes.
9658         * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
9659         instead of related indicator fields.
9660         Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
9661         (direct_output_for_insert): Handle exact width lines like
9662         contined lines.  Call update_window_fringes.
9663         (update_window): Call update_window_fringes.
9664         (scrolling_window): Don't skip desired rows with changed bitmaps.
9665         Check if fringe bitmaps changes when assigning scrolled rows.
9667         * xdisp.c (Voverflow_newline_into_fringe): New variable.
9668         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
9669         (move_it_in_display_line_to): Overflow newline into fringe for
9670         rows that are exactly as wide as the window.
9671         (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
9672         (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
9673         (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
9674         (fringe_bitmaps): Add new bitmaps.
9675         (draw_fringe_bitmap): Make extern.  Remove WHICH arg.
9676         Select proper bitmap for cursor in fringe when appropriate.
9677         Handle alignment of bitmap to top or bottom of row.
9678         (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
9679         done by update_window_fringes.
9680         (update_window_fringes, draw_window_fringes): New functions.
9681         (redisplay_internal): Call update_window_fringes in case only
9682         cursor row is updated.
9683         (redisplay_window): Call update_window_fringes.
9684         Explicitly call draw_window_fringes if redisplay was done using
9685         the current matrix or the overlay arrow is in the window.
9686         (try_window_reusing_current_matrix): Mark scrolled rows for
9687         fringe update (to update buffer-boundaries / scrolling icons).
9688         (find_last_unchanged_at_beg_row): Handle exact width lines line
9689         continued lines.
9690         (display_line): Overflow newline into fringe for rows that are
9691         exactly as wide as the window.  Don't append space for newline
9692         in this case.
9693         (notice_overwritten_cursor): Explicitly clear cursor bitmap
9694         in fringe as if it had been overwritten.
9695         (erase_phys_cursor): Erase cursor bitmap in fringe.
9696         (syms_of_xdisp): Mark show-trailing-whitespace and
9697         void-text-area-pointer as user options.
9698         DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
9700         * xterm.c (x_update_window_end): Call draw_window_fringes.
9701         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9702         in row instead of actually drawing fringe bitmaps.
9703         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9704         (x_draw_window_cursor): Draw cursor in fringe.
9706         * w32term.c (x_update_window_end): Call draw_window_fringes.
9707         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9708         in row instead of actually drawing fringe bitmaps.
9709         (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9710         (w32_draw_window_cursor): Draw cursor in fringe.
9712         * macterm.c (x_update_window_end): Call draw_window_fringes.
9713         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9714         in row instead of actually drawing fringe bitmaps.
9715         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9716         (mac_draw_window_cursor): Draw cursor in fringe.
9718 2004-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9720         * xterm.c (handle_one_xevent): Don't handle characters that are part
9721         of an old style (XLookupString) compose sequence.
9723 2004-01-15  Kenichi Handa  <handa@m17n.org>
9725         * search.c (Freplace_match): Use make_multibyte_string or
9726         make_unibyte_string according to the buffer multibyteness.
9728 2004-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
9730         * alloc.c (struct interval_block, struct string_block)
9731         (struct symbol_block, struct marker_block, live_string_p)
9732         (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
9733         Better preserve alignment for objects in blocks.
9734         (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
9736         * lread.c (defvar_per_buffer): Remove dead declaration.
9738         * macterm.c (do_check_ram_size): Don't hardcode the lisp address
9739         space size.
9741 2004-01-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9743         * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
9744         if a key press should pop down.  Only pop down if a key is pressed
9745         outside the menu/dialog.
9746         (create_and_show_popup_menu): Pass 0 for down_on_keypress to
9747         popup_get_selection.
9748         (create_and_show_dialog): Pass 1 for down_on_keypress to
9749         popup_get_selection.
9751 2004-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9753         * alloc.c (allocate_vectorlike): Surround calls to mallopt with
9754         BLOCK/UNBLOCK_INPUT.
9756 2004-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9758         * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
9759         specified.
9761 2004-01-08  Kenichi Handa  <handa@m17n.org>
9763         * editfns.c (Fformat): Fix '&' to '&&'.
9765 2004-01-08  Andreas Schwab  <schwab@suse.de>
9767         * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
9768         size if PSEUDOVECTOR_FLAG is set.
9770 2004-01-07  Kenichi Handa  <handa@m17n.org>
9772         * charset.c (Fdeclare_equiv_charset): Fix docstring.
9774         * fontset.c (fontset_ref_via_base): Fix previous change.
9776 2004-01-07  Kim F. Storm  <storm@cua.dk>
9778         * process.c (read_process_output): Only activate adaptive
9779         buffering if we read less than 256 bytes at a time.
9781 2004-01-06  Kim F. Storm  <storm@cua.dk>
9783         * dispnew.c (buffer_posn_from_coords): Return both buffer/string
9784         object and image object.  Return glyph width and height.
9785         (mode_line_string, marginal_area_string): Ditto.
9787         * dispextern.h (buffer_posn_from_coords, mode_line_string)
9788         (marginal_area_string): Fix prototypes.
9790         * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
9791         POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN.  All uses changed.
9792         (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
9794         * keyboard.c (make_lispy_position): Use modified mode_line_string,
9795         buffer_posn_from_coords, and marginal_area_string functions to
9796         include both string object and image object in the lispy position.
9797         Also add actual glyph width and height to position.
9798         (read_key_sequence): Use real buffer position from mouse
9799         event to find keymap property even when click is in marginal area.
9801         * xdisp.c (note_mode_line_or_margin_highlight): Use modified
9802         mode_line_string and marginal_area_string functions to handle
9803         both string object and image object properties.
9805 2004-01-06  Andreas Schwab  <schwab@suse.de>
9807         * syntax.c (skip_chars): Treat '-' at end of string as ordinary
9808         character.
9810 2004-01-02  Andreas Schwab  <schwab@suse.de>
9812         * macterm.c (emacs_options, x_initialized, same_x_server):
9813         Remove unused (and duplicated) definitions.
9815 2004-01-02  Kim F. Storm  <storm@cua.dk>
9817         * process.h (struct Lisp_Process): New members for adaptive read
9818         buffering: adaptive_read_buffering, read_output_delay, and
9819         read_output_skip.
9821         * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
9822         (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
9823         (READ_OUTPUT_DELAY_MAX_MAX): New constants.
9824         (process_output_delay_count, process_output_skip): New vars.
9825         (Vprocess_adaptive_read_buffering): New variable.
9826         (make_process): Initialize adaptive read buffering members.
9827         (Fstart_process): Set adaptive_read_buffering member.
9828         (deactivate_process): Cleanup adaptive read buffering.
9829         (wait_reading_process_input): Temporarily omit delayed
9830         subprocesses from the set of file descriptors to read from;
9831         adjust the select timeout if we skipped any subprocesses.
9832         (read_process_output): Increase adaptive read buffering delay if
9833         we read less than a full buffer; reduce delay when we read a
9834         full buffer.
9835         (send_process): Simplify using local Lisp_Process var.
9836         Reset adaptive read buffering delay after write.
9837         (init_process): Initialize process_output_delay_count and
9838         process_output_skip.
9839         (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
9841 2004-01-01  Jason Rumney  <jasonr@gnu.org>
9843         * w32term.c (w32_text_out): Use s->font, for consistency with callers.
9845 2003-12-30  Luc Teirlinck  <teirllm@auburn.edu>
9847         * print.c (Ferror_message_string): Add hyperlink in the docstring
9848         to the definition of `signal' in the Elisp manual.
9849         * eval.c (Fsignal): Ditto.
9851 2003-12-29  James Clark  <jjc@jclark.com>
9853         * fns.c (internal_equal): Return t for two NaN arguments.
9855 2003-12-29  Richard M. Stallman  <rms@gnu.org>
9857         * data.c (store_symval_forwarding): Handle setting
9858         default-fill-column, etc., by changing the value in
9859         buffers that use the default.
9861         * minibuf.c (Fset_minibuffer_window): Doc fix.
9863         * fileio.c (choose_write_coding_system): Ignore auto_saving
9864         if using the visited file for auto saves.
9865         (Fwrite_region): Don't update SAVE_MODIFF
9866         if auto-saving in visited file.
9868 2003-12-29  Kenichi Handa  <handa@m17n.org>
9870         * dispextern.h (face_font_available_p): Extern it.
9872         * fontset.c (Voverriding_fontspec_alist): New variable.
9873         (lookup_overriding_fontspec): New function.
9874         (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
9875         (fontset_font_pattern): Likewise.
9876         (regulalize_fontname): New function.
9877         (Fset_fontset_font): Call regulalize_fontname.
9878         (Fset_overriding_fontspec_internal): New function.
9879         (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
9880         Defsubr Sset_overriding_fontspec_internal.
9882         * xfaces.c (face_font_available_p): New function.
9884 2003-12-28  Richard M. Stallman  <rms@gnu.org>
9886         * buffer.c (Fother_buffer): Don't crash if BUF is nil
9887         or if its name is nil.
9889         * buffer.c (Fkill_buffer): Don't delete auto-save file
9890         if it's the same as the visited file.
9892 2003-12-28  Luc Teirlinck  <teirllm@auburn.edu>
9894         * coding.c (Fcheck_coding_system): Doc fix.
9896 2003-12-28  Kim F. Storm  <storm@cua.dk>
9898         * Makefile.in (eval.o): Depend on dispextern.h.
9900         * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
9901         image glyph using image's ascent.
9902         (mode_line_string): Return image glyph as object clicked on.
9903         Adjust y0 for image glyph using image's ascent.
9905         * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
9906         (struct glyph): New members, ascent and descent.  Used to save
9907         this glyph's ascent and descent, instead of having.
9908         (struct glyph): Declare member face_id using FACE_ID_BITS.
9909         (find_hot_spot): Add prototype.
9911         * keyboard.c (Qimage): Remove extern (now in lisp.h).
9912         (QCmap): Declare extern.
9913         (make_lispy_position): When position is inside image hot-spot,
9914         use hot-spot element's id as posn element.
9916         * lisp.h (IMAGEP): New macro to test for image object type.
9917         (Qimage): Declare extern.
9919         * macfns.c (Qimage): Remove extern (now in lisp.h).
9920         (valid_image_p, parse_image_spec): Use IMAGEP macro.
9922         * macterm.c (Qface, Qmouse_face): Remove unused externs.
9924         * w32fns.c (Qimage): Remove extern (now in lisp.h).
9925         (valid_image_p, parse_image_spec): Use IMAGEP macro.
9927         * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
9929         * w32term.c (Qface, Qmouse_face): Remove unused externs.
9931         * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
9932         pointer types.
9933         (Qrelative_width, Qalign_to): Remove unused variables.
9934         (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
9935         (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
9936         image maps.
9937         (x_y_to_hpos_vpos): Return glyph relative coordinates through
9938         new dx and dy args.
9939         Remove buffer_only_p arg (always 0).  Simplify code accordingly.
9940         (get_glyph_string_clip_rect): Draw cursor using glyph's rather
9941         than row's ascent and height, to get sensible height on tall rows.
9942         (build_desired_tool_bar_string): Remove Qimage extern.
9943         (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
9944         (produce_image_glyph): Adjust it.ascent to minimum row ascent if
9945         image glyph is alone on the last line.
9946         (append_glyph, append_composite_glyph, produce_image_glyph)
9947         (append_stretch_glyph): Set glyph's ascent and descent.
9948         (on_hot_spot_p): New function to check if position is inside an
9949         rectangular, circular, or polygon-shaped image hot-spot,
9950         (find_hot_spot): New function to search for image hot-spot.
9951         (Flookup_image_map): New defun to search for image hot-spot.
9952         (define_frame_cursor1): New aux function to determine frame pointer.
9953         (note_mode_line_or_margin_highlight, note_mouse_highlight):
9954         Handle `pointer' text property and :pointer image property to
9955         control frame pointer shape.  Detect image hot-spots for pointer
9956         and help_echo properties.  Use define_frame_cursor1.
9957         (note_mouse_highlight): Use Vvoid_text_area_pointer.
9958         (syms_of_xdisp): Defsubr new defun.  Intern and staticpro new variables.
9959         DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
9961         * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
9963         * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
9964         (Qimage): Remove extern (now in lisp.h).
9965         (valid_image_p, parse_image_spec): Use IMAGEP macro.
9967         * xmenu.c (show_help_event): Remove unused code.
9969         * xterm.c (Qface, Qmouse_face): Remove unused externs.
9970         (x_draw_hollow_cursor): Draw cursor using glyph's rather than
9971         row's ascent and descent, to get a sensible height on tall rows.
9973 2003-12-25  Luc Teirlinck  <teirllm@auburn.edu>
9975         * minibuf.c (Fcompleting_read): Undo previous change.
9977 2003-12-25  Lars Hansen  <larsh@math.ku.dk>
9979         * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
9980         Arguments GCPRO'ed in call to file name handler.
9982 2003-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
9984         * termcap.c (tgetst1): Scan for "%pN"; if all
9985         N are continuous in [1,9], remove all "%pN".
9987 2003-12-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9989         * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
9991         * xfaces.c (lface_fully_specified_p): Take into account that
9992         MAC OS always have unspecified stipple.
9994 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
9996         * tparam.c (tparam1): Add handling for `%pN', which
9997         means use param N for the next substitution.
9999 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
10001         * xfaces.c (Fcolor_gray_p): Fix omission bug:
10002         In case `frame' is nil, consult the selected frame.
10003         (Fcolor_supported_p): Likewise.
10005 2003-12-23  Luc Teirlinck  <teirllm@auburn.edu>
10007         * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
10008         Doc fixes.
10010         * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
10011         and an integer.  Adapt the introductory comment accordingly.
10012         (Fread_from_minibuffer): Delete code moved into read_minibuf.
10013         Doc fix.
10014         (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
10015         read_minibuf.
10016         (Fcompleting_read): Delete code moved into read_minibuf.
10017         (Ftest_completion): Make it handle obarrays and hash tables correctly.
10019 2003-12-03  Kenichi Handa  <handa@m17n.org>
10021         * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
10022         encoding sequence.
10024 2003-12-01  Kenichi Handa  <handa@m17n.org>
10026         * composite.c (syms_of_composite): Don't make the compostion hash
10027         table week.
10029 2003-11-30  Luc Teirlinck  <teirllm@auburn.edu>
10031         * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
10032         * textprop.c (Fget_char_property_and_overlay): New function.
10033         (syms_of_textprop): Defsubr it.
10035 2003-11-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10037         * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
10038         to compile on terminal configuration.
10040         * fileio.c (Fread_file_name): Check use_file_dialog also before
10041         calling Fx_file_dialog.
10043         * fns.c (use_file_dialog): New variable.
10044         (syms_of_fns): DEFVAR_BOOL use-file-dialog.
10046 2003-11-29  Kim F. Storm  <storm@cua.dk>
10048         * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
10049         (syms_of_msdos): Don't intern and staticpro them.
10051 2003-11-27  Kim F. Storm  <storm@cua.dk>
10053         * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
10054         coordinates relative to glyph at posn.  If glyph is an image,
10055         return that as object at posn.  Callers changed.
10056         (mode_line_string, marginal_area_string): Calculate and return
10057         pixel coordinates relative to glyph.  Callers changed.
10059         * dispextern.h (buffer_posn_from_coords, mode_line_string)
10060         (marginal_area_string): Fix prototypes.
10061         (window_box_left_offset, window_box_right_offset): Add prototypes.
10063         * frame.h (get_specified_cursor_type, get_window_cursor_type):
10064         Remove prototypes.
10066         * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
10068         * keyboard.c (make_lispy_position): Add x and y coordinates
10069         relative to the current glyph as 7th element of position.
10070         If glyph is an image, return it in the object element.
10071         (read_key_sequence): Skip checks for keymap property in cases
10072         where POSN_STRING is not a string (e.g. an image).
10074         * xdisp.c (Vdisplay_pixels_per_inch): New variable.
10075         (Vshow_text_cursor_in_void): New variable.
10076         (glyph_to_pixel_coords): Don't use negative hpos.
10077         (x_y_to_hpos_vpos): Fix for partially visible first glyph.
10078         (append_stretch_glyph): Change ascent arg to be actual value
10079         in pixels rather than ratio to height.  Callers changed.
10080         (calc_pixel_width_or_height): New aux function, implementing
10081         pixel based artihmetic for glyph widths and heights.
10082         (produce_stretch_glyph): Use calc_pixel_width_or_height for
10083         :width, :height, :align-to, and :ascent, thus allowing these to
10084         be specified in pixels as well as multiples of characters.
10085         Don't produce stretch glyphs with zero width or height.
10086         (get_specified_cursor_type): Declare static.
10087         (get_window_cursor_type): Declare static.  Add glyph arg to be
10088         able to know when cursor is on an image; always substitute
10089         hollow-box cursor for filled-box cursor on images, to avoid
10090         negative images and flicker when blinking the cursor.
10091         (display_and_set_cursor): Pass glyph to get_window_cursor_type.
10092         (note_mode_line_or_margin_highlight): Use non-text cursor rather
10093         than vertical scroll-bar cursor in display margins.
10094         (note_mouse_highlight): Use non-text cursor rather than text
10095         cursor in fringes and over images in the text area.
10096         Use non-text cursor when mouse pointer is outside editable text,
10097         i.e. in the void after end-of-line or end-of-buffer; this was
10098         already done for W32, but is now standard for all systems --
10099         user can toggle show-text-cursor-in-void to get old behaviour.
10100         (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
10101         Vdisplay_pixels_per_inch.
10103 2003-11-25  Andreas Schwab  <schwab@suse.de>
10105         * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
10106         EMACS_INT to not lose bits.
10107         (Ffillarray): Don't set bits beyond the size of a bool vector.
10109 2003-11-25  Kim F. Storm  <storm@cua.dk>
10111         * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
10112         define this defun on systems that cannot use stderr as lvalue.
10114 2003-11-24  Gerd Moellmann  <gerd@gnu.org>
10116         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
10117         [__FreeBSD_version >= 500042]: Define as -znocombreloc because
10118         ld's default is incompatible with unexec.
10120 2003-11-23  Kim F. Storm  <storm@cua.dk>
10122         * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
10123         (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
10124         (Fforce_window_update): New defun.
10125         (syms_of_window): Defsubr it.
10126         (Fset_window_margins, Fset_window_fringes): Doc fix.
10128         * print.c (Fredirect_debugging_output): New defun.
10129         (syms_of_print): Defsubr it.
10131 2003-11-22  Luc Teirlinck  <teirllm@auburn.edu>
10133         * fns.c (Fset_char_table_parent): Doc fix.
10135 2003-11-22  Kim F. Storm  <storm@cua.dk>
10137         * dispnew.c (buffer_posn_from_coords): Return actual row/column
10138         for glyph clicked on, rather than (unused) pixel positions.
10139         (mode_line_string, marginal_area_string): Change X and Y args to
10140         pointers for returning actual row/column for glyph clicked on.
10141         Simplify and optimize loops.
10143         * dispextern.h (mode_line_string, marginal_area_string):
10144         Update prototypes.
10146         * keyboard.c (make_lispy_position): New function for generating
10147         mouse click positions from frame and pixel coordinates.
10148         Enhanced to return buffer position and actual row/column for
10149         events outside the text area using updated mode_line_string and
10150         marginal_area_string functions.
10151         Return left-fringe and right-fringe clicks as such, rather than
10152         clicks in text area.
10153         (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
10154         pixel_to_glyph_coords, as we never use the results.
10155         (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
10156         WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
10157         Eliminate unused code in WHEEL_EVENT handling.
10158         (make_lispy_movement): Use make_lispy_position.
10160         * window.c (coordinates_in_window): Remove redundant tests.
10161         Fix returned X pixel value for left-margin.
10163         * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
10164         mode_line_string and marginal_area_string parameters.
10166 2003-11-22  Lars Hansen  <larsh@math.ku.dk>
10168         * w32.c (struct the_group, getgrgid): Add.
10169         * mac.c (struct my_group, getgrgid): Add.
10171 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
10173         * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
10175 2003-11-21  Lars Hansen  <larsh@math.ku.dk>
10177         * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
10178         include in call to file name handler.  Optionally translate numeric
10179         UID and GID to strings.  Update docstring.
10180         (directory_files_internal): Add parameter ID-FORMAT.
10181         (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
10182         include in call to file name handler and call to
10183         directory_files_internal.  Update Docstring.
10184         (Fdirectory_files): Add dummy parameter in call to
10185         directory_files_internal.
10186         * lisp.h (Qinteger): Add.
10187         (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
10188         (Ffile_attributes): Add parameter.
10189         * data.c (Qinteger): Export.
10191 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
10193         * fns.c (Freverse, Fnreverse): Doc fixes.
10195 2003-11-19  Kim F. Storm  <storm@cua.dk>
10197         * xdisp.c (init_iterator): Initialize it->start to position
10198         before reseating (in case start position is invisible).
10199         (init_to_row_start): Set it->start to row-start.
10200         (redisplay_window): Accept optional_new_start if start position
10201         is invisible (in which case IT_CHARPOS overshoots PT).
10202         (display_line): Setup row->start from it->start (rather than
10203         it->current which is wrong if first char on line is invisible).
10204         When done, reseat it->start to it->current (= start of next row).
10205         (expose_area): Fix exposure of text area when first char (e.g. TAB)
10206         is only partially visible.
10208         * dispextern.h (struct it): New member start.
10210 2003-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
10212         * alloc.c (make_float, Fcons): Clear the markbit at init time.
10213         (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
10214         of block_index outside of the macro call.
10215         (Fgarbage_collect): Remove null code.
10217         * m/amdx86-64.h: Don't redefine XPNTR.
10219         * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
10220         of VALMASK.
10222         * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
10223         (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
10224         (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
10226         * lisp.h (VALMASK): Only define for non-union type.
10227         (MARKBIT): Remove.
10228         (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
10229         (XTYPE): Define unconditionally.
10230         (XSETTYPE): Remove one more remnant.
10231         (EQ): Define differently for the union and non-union cases.
10232         (INTMASK): New bit mask.
10233         (struct Lisp_Marker): Move down to prepare for upcoming patch.
10234         (GC_EQ): Delegate to EQ.
10236         * coding.c (coding_restore_composition): Lisp_Object/int mixup.
10238 2003-11-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10240         * xterm.c (x_window_to_scroll_bar): Move check of display to
10241         where window_id is compared.
10243 2003-11-17  Kim F. Storm  <storm@cua.dk>
10245         * dispextern.h (struct it): New member first_vpos.
10247         * xdisp.c (start_display): Set it->first_vpos.
10248         (try_window_id): Use first_vpos to start display in first _text_
10249         line if no reusable lines at start of window with header line.
10251 2003-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10253         * w32fns.c (XPutPixel):
10254         * w32bdf.c (w32_init_bdf_font):
10255         * sunfns.c (sel_read):
10256         * process.c (Fmake_network_process):
10257         * frame.c (store_frame_param):
10258         * fontset.c (Fset_fontset_font):
10259         * emacs.c (shut_down_emacs):
10260         * ccl.c (ccl_driver): Remove period at end of error message.
10262         * config.in: Regenerate.
10264         * xfns.c (x_window_to_frame, x_any_window_to_frame)
10265         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10266         (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
10267         (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
10268         (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10270         * xterm.h (struct x_display_info): New field xg_cursor for GTK.
10272         * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
10273         (XTmouse_position, handle_one_xevent): Pass Display* to
10274         x_window_to_scroll_bar.
10275         (x_window_to_scroll_bar): Take a Display* argument.
10276         Check that display for frame is equal to Display* argument.
10277         (event_handler_gdk): Remove current_dpyinfo.  Get dpyinfo from
10278         x_display_info_for_display instead.  Use Display in xev instead
10279         of GDK_DISPLAY.
10280         (x_dispatch_event): Call x_display_info_for_display.
10281         (XTread_socket): Move GTK part out of loop.  current_dpyinfo removed.
10282         (x_connection_closed): Call xg_display_close for GTK.
10283         (x_term_init): Call xg_display_open for additional displays.
10284         Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
10285         for GTK.
10287         * xmenu.c (single_menu_item, mouse_position_for_popup)
10288         (x_activate_menubar): Formatting adjustments.
10290         * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
10291         adjustments.
10293         * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
10294         (xg_display_close, xg_create_default_cursor)
10295         (xg_get_gdk_pixmap_and_mask): New functions for multiple display
10296         handling.
10297         (xg_left_ptr_cursor): Remove.
10298         (xg_set_cursor): Change cursor to GdkCursor*.  Do not create
10299         cursor here.
10300         (xg_win_to_widget): Take Display* argument, call
10301         gdk_xid_table_lookup_for_display.
10302         (xg_create_frame_widgets, xg_get_file_name, create_menus)
10303         (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
10304         (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
10305         in FRAME_X_DISPLAY_INFO.
10306         (xg_get_scroll_id_for_window): Take Display* argument.
10307         (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
10308         (xg_initialize): Remove xg_left_ptr_cursor.
10310         * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10311         Display* argument.
10312         (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
10314 2003-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10316         * xterm.c (x_detect_focus_change): Do not change focus frame for
10317         Enter/LeaveNotify if the current focus frame has explicit focus.
10319 2003-11-14  Kim F. Storm  <storm@cua.dk>
10321         * dispnew.c (update_text_area): Fix redisplay error when hscroll
10322         is active and first glyph is only partially visible.
10324 2003-11-13  Kenichi Handa  <handa@m17n.org>
10326         * xdisp.c (select_frame_for_redisplay): New function.
10327         (redisplay_internal): Record also selected_frame for
10328         unwind_redisplay.  Call select_frame_for_redisplay before
10329         redrawing each frame.
10330         (unwind_redisplay): Argument changed to a cons.
10332 2003-11-12  Luc Teirlinck  <teirllm@auburn.edu>
10334         * fns.c (Fstring_to_multibyte): Doc fix.
10336 2003-11-11  Kenichi Handa  <handa@m17n.org>
10338         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10340 2003-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10342         * xfns.c (x_window): Set XtNx and XtNy in shell widget for
10343         program specified positions.
10345 2003-11-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10347         * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
10349 2003-11-08  Kenichi Handa  <handa@m17n.org>
10351         * Makefile.in (lisp): Add kannada.el.
10352         (shortlisp): Likewise.
10354 2003-11-07  Kenichi Handa  <handa@m17n.org>
10356         * coding.c (coding_allocate_composition_data):
10357         Reset coding->composing to COMPOSITION_NO.
10358         (coding_restore_composition): Detect invalid composition data.
10359         Give Fstring and Fvector a Lispy integer, not C int.
10361 2003-11-05  Stefan Monnier  <monnier@iro.umontreal.ca>
10363         * floatfns.c (Flogb): Don't use VALMASK.
10365         * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
10366         * m/ia64.h (VALBITS, XINT, XUINT): Remove.
10368         * lisp.h (XINT): Move the cast to clarify what is going on.
10369         (GCTYPEMASK, XSETTYPE): Remove.
10370         (XGCTYPE): Make it an alias of XTYPE.
10372 2003-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10374         * xterm.c (x_term_init): Fix formatting.
10376 2003-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10378         * gtkutil.h (xg_have_tear_offs): Declare.
10379         (xg_keep_popup, xg_did_tearoff): Remove.
10381         * gtkutil.c: Remove variable xg_did_tearoff.
10382         (xg_have_tear_offs): New function.
10383         (tearoff_remove): Just decrease xg_detached_menus.
10384         (tearoff_activate): Increase xg_detached_menus and call
10385         tearoff_remove when tearoff is removed.
10386         (xg_keep_popup): Remove function.
10387         (create_menus): Give add_tearoff_p as argument to recursive
10388         call to create_menus.
10389         (xg_create_widget): Use variables instead of multiple
10390         strcmp.  Tell create_menus to create tear off only for
10391         menu bar menus.
10392         (xg_update_menubar): Change title for a detached menu also.
10393         (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
10394         of deep_p.
10395         (xg_initialize): Initialize xg_detached_menus, remove
10396         initialization of xg_did_tearoff.
10398         * xmenu.c (set_frame_menubar): For GTK, set deep_p if
10399         xg_have_tear_offs returns non-zero.
10400         (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
10401         call to xg_keep_popup.
10403 2003-11-01  Andrew Choi  <akochoi@shaw.ca>
10405         * macterm.c (XTread_socket): Handle menubar selection and grow
10406         window only for mouseDown events.
10408 2003-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10410         * xterm.c (x_term_init): For GTK part, increase x_initialized
10411         to check for more than one display.  Use error instead of return 0.
10413 2003-10-31  Andrew Choi  <akochoi@shaw.ca>
10415         * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
10416         (copy_dysymtab): Call it.
10418 2003-10-31  Luc Teirlinck  <teirllm@auburn.edu>
10420         * eval.c (Fdefvaralias): Doc fix.
10422 2003-10-26  Luc Teirlinck  <teirllm@auburn.edu>
10424         * data.c (Fsetplist): Doc fix.
10426 2003-10-14  Lute Kamstra  <lute@gnu.org>
10428         * window.c (Fset_window_fringes): Clarify docstring.
10430 2003-10-14  Kim F. Storm  <storm@cua.dk>
10432         * window.c (Fset_window_margins): Simplify arg checking.
10434 2003-10-13  Richard M. Stallman  <rms@gnu.org>
10436         * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
10437         (print_partial_compiled_pattern): Replace assert with a printout.
10438         (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
10440         * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
10442         * window.c (Fset_window_margins): Allow only integers as args.
10443         (syms_of_window) <special-display-buffer-names, special-display-regexps>:
10444         Doc fixes.
10446 2003-10-13  Lute Kamstra  <lute@gnu.org>
10448         * window.c (Fset_window_fringes): Elaborate docstring.
10450 2003-10-12  Andrew Choi  <akochoi@shaw.ca>
10452         * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
10454         * s/darwin.h (GC_MARK_STACK): Define.
10456 2003-10-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10458         * window.c (shrink_windows): New function.
10459         (size_window): Call shrink_windows to calculate window sizes when
10460         shrinking frame with more than one window.
10462 2003-10-12  Kim F. Storm  <storm@cua.dk>
10464         * xdisp.c (compute_fringe_widths): Doc fix.
10466 2003-10-08  Kenichi Handa  <handa@m17n.org>
10468         * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
10470 2003-10-07  Kenichi Handa  <handa@m17n.org>
10472         * coding.c (Qcoding_system_define_form): New variable.
10473         (syms_of_coding): Intern and staticpro it.
10474         (Fcheck_coding_system): Try to autoload the definition of
10475         CODING-SYSTEM.
10477 2003-10-05  Luc Teirlinck  <teirllm@auburn.edu>
10479         * fns.c (Frequire): Doc fix.
10481 2003-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10483         * xfns.c (Fx_send_client_event): New function as a base for
10484         manipulating extended window manager hints.
10485         (Fx_send_client_event): Remove unused variable s.
10487         * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
10488         that function is removed.
10490         * xterm.c (x_set_offset): Use move_offset_left/top instead of
10491         x/y_pixels_outer_diff.
10492         (x_check_expected_move): Calculate move_offset_left/top.
10494         * xterm.h (struct x_output): New members: move_offset_top/left.
10496         * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
10497         call x_set_offset directly.
10499         * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
10501         * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
10503         * xterm.c (x_delete_display): Free font names and font_encoder
10504         in dpyinfo->font_table.
10506         * xfns.c (Fx_close_connection): Only call XFreeFont here.
10507         Move xfree of font names to x_delete_display.
10509         * xterm.h (struct x_display_info): New member, wm_type.
10510         (struct x_output): New members, expected_top/left and
10511         check_expected_move.
10513         * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
10514         is received.
10515         (handle_one_xevent): Rename x_check_expected_move from
10516         x_check_fullscreen_move.
10517         (x_set_offset): Only add WM decoration sizes to modified_top/left
10518         for X_WMTYPE_A.  Set check_expected_move when WM type is unknown.
10519         (x_check_expected_move): Rename from x_check_fullscreen_move.
10520         Removed fullscreen specific code.  Use check_expected_move,
10521         expected_left/top instead.  Also, set wm_type.
10522         (x_term_init): Initialize wm_type to unknown.
10524         * frame.c (x_fullscreen_move): Remove addition of WM decoration
10525         sizes to move_x/y.
10527 2003-10-03  Kenichi Handa  <handa@m17n.org>
10529         * macterm.c (x_load_font): Clear all members of FONTP before start
10530         filling them.
10532 2003-10-02  Kenichi Handa  <handa@m17n.org>
10534         * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
10535         before calling find_ccl_program_func.  Call find_ccl_program_func
10536         only when fontp->font_encoder is not NULL.
10538         * xterm.c (x_load_font): Clear all members of FONTP before start
10539         filling them.
10541 2003-10-03  John Paul Wallington  <jpw@gnu.org>
10543         * keymap.c (map_keymap): Don't abort when binding is a vector.
10545 2003-10-02  Jason Rumney  <jasonr@gnu.org>
10547         * makefile.w32-in (emacs.o, coding.o, bytecode.o):
10548         Sync dependencies with Makefile.in.
10549         (alloca.o): Remove.
10551         * w32fns.c (w32_load_system_font): Clear all members of FONTP before
10552         filling them.
10554         * w32bdf.c (w32_load_bdf_font): Likewise.
10556 2003-09-30  Richard M. Stallman  <rms@gnu.org>
10558         * term.c (set_tty_color_mode): Calculate current_mode_spec
10559         regardless of value of VAL.
10561         * intervals.c (graft_intervals_into_buffer):
10562         Set BUF_INTERVALS (buffer)->up_obj when appropriate.
10563         Handle over_used when splitting UNDER.
10565 2003-09-30  YAMAMOTO  Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10567         * regex.c (regex_compile): Free the stack when returning from function.
10569 2003-09-28  Kenichi Handa  <handa@m17n.org>
10571         * fontset.c (Finternal_char_font): Change return value to
10572         cons (FONT-NAME . GLYPH-CODE).
10574 2003-09-28  Eli Zaretskii  <eliz@gnu.org>
10576         * term.c (tty_setup_colors): Treat any negative argument as -1.
10578 2003-09-27  Gaute B Strokkenes  <biggaute@uwc.net>  (tiny change)
10580         * process.c (send_process): Delete unused temp_buf.
10582 2003-09-26  Dave Love  <fx@gnu.org>
10584         * xterm.c (x_bitmap_mask): Declare.
10586 2003-09-25  Dave Love  <fx@gnu.org>
10588         * Makefile.in (fns.o): Depend on md5.h.
10590 2003-09-25  Kim F. Storm  <storm@cua.dk>
10592         * window.c (set_window_buffer): Fix redisplay problems when
10593         switching between buffers with different display margin widths.
10595 2003-09-23  Kim F. Storm  <storm@cua.dk>
10597         * process.c (set_socket_option): Fix :bindtodevice option.
10598         (Fset_network_process_option): Update process contact list when
10599         setting option succeeds.
10600         (Fmake_network_process): Doc fix.
10602 2003-09-23  Dave Love  <fx@gnu.org>
10604         * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
10606 2003-09-22  Eli Zaretskii  <eliz@gnu.org>
10608         * term.c (set_tty_color_mode): Use INTEGERP to test whether a
10609         color mode is an integer number (it could be -1).
10611 2003-09-22  Richard M. Stallman  <rms@gnu.org>
10613         * intervals.c (graft_intervals_into_buffer): Correct the main loop
10614         in the case where OVER is longer than UNDER.
10616 2003-09-22  Masatake YAMATO  <jet@gyve.org>
10618         * window.c (Fset_window_scroll_bars): Validate the value of
10619         `vertical_type'.
10621 2003-09-21  Kim F. Storm  <storm@cua.dk>
10623         * frame.c (Vdefault_frame_scroll_bars): New variable.
10624         (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
10625         (syms_of_frame): DEFVAR_LISP it, and initialize according to
10626         window-system default scroll bar position.
10628         * window.c (Fwindow_scroll_bars): Doc fix.
10630 2003-09-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10632         * xterm.c (x_set_offset): Take window manager decorations into account.
10634 2003-09-19  Richard M. Stallman  <rms@gnu.org>
10636         * atimer.h: Don't include lisp.h.
10637         (P_): Define it here (as well as elsewhere).
10639         * print.c (Fprin1_to_string): Move the PRINTPREPARE
10640         later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
10642         * data.c (Fvariable_binding_locus): New function.
10643         (syms_of_data): defsubr it.
10644         (Flocal_variable_p): Delete duplicate call to indirect_variable.
10646 2003-09-18  Dave Love  <fx@gnu.org>
10648         * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
10650         * process.c (Fnetwork_interface_info): Fix type error.
10651         (Fnetwork_interface_list): Doc fix.
10652         (read_process_output, read_process_output): Delete unused var.
10654 2003-09-17  Kim F. Storm  <storm@cua.dk>
10656         * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
10657         Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
10658         (Fnetwork_interface_info): Check that ifreq struct has required
10659         fields before accessing them; this requires that those fields are
10660         defined as macros, which may be too restrictive on some platforms,
10661         but it is better than failing on other platforms.
10662         (syms_of_process): Only defsubr above fns when included.
10664 2003-09-17  Dave Love  <fx@gnu.org>
10666         * unexalpha.c: Don't include varargs.h.
10668 2003-09-17  Kim F. Storm  <storm@cua.dk>
10670         * process.c (Fset_process_sentinel): Add sentinel to childp plist
10671         for network process.
10672         (socket_options): Add `:' prefix to option names.  Add optbit field.
10673         (set_socket_option): Remove no_error arg and special handling of s < 0.
10674         Return 1<<optbit for known option, 0 for unknown.
10675         Do not interpret 0 as false for boolean option (only nil).
10676         Pass failed option and value to report_file_error.
10677         (Fset_network_process_options): Replace by Fset_network_process_option.
10678         (Fset_network_process_option): New function to set just one option.
10679         (Fmake_network_process): Allow :coding arg to be a cons.
10680         Allow :server arg to be an integer specifying backlog size.
10681         Remove :options arg, and allow options to be specified directly
10682         as :KEY, VALUE pairs.  Parse these options before binding socket.
10683         As before, :reuseaddr t is default for a server process, but this
10684         can now be disabled by specifying :reuseaddr nil.
10685         (Fnetwork_interface_info): Rename from Fget_network_interface_info.
10686         (init_process): Availability of network options is now checked with
10687         simpler syntax (featurep 'make-network-process :OPTION); use loop to
10688         setup features.
10689         (syms_of_process): Fix defsubr's for the replaced functions.
10691 2003-09-16  Dave Love  <fx@gnu.org>
10693         * Makefile.in: Depend on coding.h.
10695 2003-09-14  Kim F. Storm  <storm@cua.dk>
10697         * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
10698         (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
10699         (syms_of_process): Defsubr them.
10701         * config.in: Regenerate.
10703 2003-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10705         * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
10706         * m/news-r6.h (XUNMARK): Remove.
10707         * m/mips.h (XUNMARK): Remove.
10708         * m/mips-siemens.h (XUNMARK): Remove.
10709         * m/iris4d.h (XUNMARK): Remove.
10710         * m/hp800.h (XMARKBIT, XUNMARK): Remove.
10712 2003-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10714         * lisp.h (VALBITS): Don't remove 1 for the markbit.
10715         (union Lisp_Object): Use unsigned int for types.  Remove markbit.
10716         (MARKBIT): Remove 1 from VALBITS so we still use same old val.
10717         (XTYPE): Use unsigned right-shift.
10718         (XMARKBIT, XMARK, XUNMARK): Remove.
10720         * alloc.c (init_intervals, init_symbol, init_marker):
10721         Don't preallocate anything.
10722         (Fgarbage_collect, mark_object): Ignore the markbit.
10724         * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
10726 2003-09-08  Lute Kamstra  <lute@gnu.org>
10728         * xdisp.c (pint2hrstr): New function.
10729         (decode_mode_spec): Add `%i' and `%I' specs.
10730         * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
10731         for `mode-line-format'.
10733 2003-09-07  Andreas Schwab  <schwab@suse.de>
10735         * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
10736         avoid warning.
10738 2003-09-07  Eli Zaretskii  <eliz@gnu.org>
10740         * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
10742 2003-09-03  Kim F. Storm  <storm@cua.dk>
10744         * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
10745         change (superseded by 2002-08-30 change); the default blink-off
10746         cursor is now again "no cursor".
10748 2003-09-01  Jason Rumney  <jasonr@gnu.org>
10750         * makefile.w32-in (alloca.o): Remove.
10751         (coding.o): Depend on intervals.h
10752         (emacs.o, bytecode.o): Depend on window.h
10754 2003-09-01  Dave Love  <fx@gnu.org>
10756         * Makefile.in (alloca.o): Remove commands.
10757         (coding.o): Depend on intervals.h composite.h window.h.
10758         (emacs.o): Depend on window.h keyboard.h keymap.h.
10759         (gtkutil.o): Depend on keyboard.h charset.h coding.h.
10760         (bytecode.o): Depend on window.h.
10762 2003-08-31  Jason Rumney  <jasonr@gnu.org>
10764         * w32term.c (w32_per_char_metric): Allow cached metrics to be
10765         returned even when font_type is unknown.
10767         * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
10769 2003-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10771         * xterm.c (x_term_init): Initialize new fields in x_display_info.
10773         * xterm.h (struct x_display_info): Add red/green/blue_bits and
10774         *_offset.
10776         * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
10777         calculate pixel value.
10779 2003-08-29  Gerd Moellmann  <gerd.moellmann@t-online.de>
10781         * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
10782         Don't tell redisplay display is accurate when it's actually been
10783         paused for pending input.
10785 2003-08-29  Richard M. Stallman  <rms@gnu.org>
10787         * dispnew.c (adjust_glyph_matrix): Call window_box
10788         whenever W is nonzero.
10790         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10791         (Fkill_local_variable, Fmake_variable_frame_local)
10792         (Flocal_variable_p, Flocal_variable_if_set_p):
10793         Use indirect_variable to trace thru variable aliases.
10795         * config.in: Updated.
10797         * callint.c (Fcall_interactively): Save and restore
10798         Vthis_command, Vthis_original_command, real_this_command,
10799         and current_kboard->Vlast_command.
10801         * abbrev.c (Fexpand_abbrev): Insert before deleting.
10803 2003-08-29  Gerd Moellmann  <gerd@gnu.org>
10805         * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
10807 2003-08-28  David Abrahams  <dave@boost-consulting.com>  (tiny change)
10809         * coding.c (decode_coding_iso2022): Initialize local variable c2.
10810         (decode_coding_sjis_big5): Likewise.
10812 2003-08-27  Jason Rumney  <jasonr@gnu.org>
10814         * w32.c (sys_pipe): Protect against file descriptor overflow.
10816         * w32fns.c (syms_of_w32fns): Remove non-existent functions.
10818         * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
10820 2003-08-26  Terje Rosten  <terjeros@phys.ntnu.no>
10822         * xfns.c (Vgtk_version_string): New variable.
10823         (syms_of_xfns): DEFVAR_LISP it.  Provide gtk.
10825 2003-08-24  Eli Zaretskii  <eliz@gnu.org>
10827         * term.c (term_init): Remove `const' from buffer_size's declaration.
10829         * Makefile.in (msdos.o): Depend on intervals.h.
10831         * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
10833 2003-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10835         * xterm.h (struct x_display_info): New fields: client_leader_window
10836         and Xatom_wm_client_leader.
10838         * xterm.c (x_initialize): Move call to x_session_initialize to ...
10839         (x_term_init): ... here.  Initialize client_leader fields in dpyinfo.
10841         * xsmfns.c (create_client_leader_window): New function.
10842         (x_session_initialize): Call create_client_leader_window, take
10843         dpyinfo as argument.
10845         * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
10847         * Makefile.in (xsmfns.o): Add more depenedencies.
10849 2003-08-21  Dave Love  <fx@gnu.org>
10851         * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
10853 2003-08-21  Kenichi Handa  <handa@m17n.org>
10855         * term.c (term_init): Fix previous change; don't rely on the
10856         length of `buffer' if TERMINFO is defined.
10858 2003-08-20  Dave Love  <fx@gnu.org>
10860         * atimer.h: Include lisp.h.
10862         * lisp.h (EMACS_LISP_H): New.
10863         (popup_activated_flag): Don't declare.
10865         * alloca.c: Some merging with gnulib.  Change logic and doc
10866         concerning (x)malloc/(x)free -- no longer Emacs-specific.
10867         [DO_BLOCK_INPUT]: Don't include lisp.h.
10868         (xmalloc, xfree): Declare.
10869         (malloc): Don't declare.
10871         * Makefile.in (LWLIB_OPTIONS): Remove (unused).
10872         (alloca.o): Remove obsolete stuff concerning alloca.s.  Depend on
10873         atimer.h, blockinput.h.
10875         * alloc.c (lisp_align_malloc): Change type of `aligned'.
10877         * alloca.s: Remove.
10879 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
10881         * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
10882         use -lncurses.
10884         * term.c (term_init): Use a buffer of size 4096 for tgetent since
10885         FreeBSD returns something longer than 2044.  Abort if the end of
10886         the buffer is overwritten.
10888 2003-08-19  Miles Bader  <miles@gnu.org>
10890         * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
10892 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
10894         * alloc.c (lisp_align_malloc): Check for memory full when
10895         allocating ablocks, which also avoids freeing a pointer into an
10896         ablocks structure.
10898         * puresize.h (BASE_PURESIZE): Increase to 1100000.
10900         * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
10902 2003-08-16  Richard M. Stallman  <rms@gnu.org>
10904         * editfns.c (Fencode_time): Doc fix.
10906 2003-08-16  David Ponce  <david@dponce.com>
10908         * fileio.c (Fwrite_region): Fix conditional expression to issue
10909         the right message.
10911 2003-08-16  Juri Linkov  <juri@jurta.org>
10913         * syntax.c (Fforward_word): Argument changed to optional.
10914         Set default value to 1.
10916 2003-08-15  Kenichi Handa  <handa@m17n.org>
10918         * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
10919         what autoscaled.
10920         (best_matching_font): Once we find a better scalable font, set
10921         non_scalable_has_exact_height_p to 1.
10922         (try_font_list): Call try_alternative_families to try any family
10923         with the given registry.
10925 2003-08-09  Andreas Schwab  <schwab@suse.de>
10927         * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
10929         * print.c (print_string): Fix printing of multibyte string with
10930         nontrivial printcharfun.
10932 2003-07-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10934         * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
10936         * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
10938 2003-07-31  Kenichi Handa  <handa@m17n.org>
10940         * process.c (read_process_output): Return the actually read bytes
10941         instead of the result of decoding.
10943 2003-07-31  Kenichi Handa  <handa@m17n.org>
10945         * xterm.h (struct x_bitmap_record): New member have_mask.
10947         * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
10948         to 0.
10949         (x_create_bitmap_from_file): Likewise.
10950         (x_destroy_bitmap): Check have_mask member before freeing a mask.
10951         (x_destroy_all_bitmaps): Likewise.
10952         (x_create_bitmap_mask): Set have_mask member to 1.
10954 2003-07-30  Richard M. Stallman  <rms@gnu.org>
10956         * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
10958 2003-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10960         * gtkutil.c (xg_mark_data): Update calls to mark_object.
10962 2003-07-29  Richard M. Stallman  <rms@gnu.org>
10964         * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
10965         Conditionalize XIM code on HAVE_XIM.
10967         * fns.c (Fclear_string): New function.
10968         (syms_of_fns): defsubr it.
10970 2003-07-28  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
10972         * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
10974 2003-07-22  Stefan Monnier  <monnier@cs.yale.edu>
10976         * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
10978         * buffer.c (delete_all_overlays): New function.
10979         * buffer.h (delete_all_overlays): Declare.
10980         * coding.c (run_pre_post_conversion_on_str):
10981         * print.c (temp_output_buffer_setup):
10982         * fileio.c (Finsert_file_contents):
10983         * minibuf.c (get_minibuffer): Use it.
10985 2003-07-22  Andrew Choi  <akochoi@shaw.ca>
10987         * unexmacosx.c (unexec_regions_sort_compare):
10988         (unexec_regions_merge): New functions.  Sort and merge unexec
10989         regions before dumping them.
10991 2003-07-22  Dave Love  <fx@gnu.org>
10993         * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
10995 2003-07-21  Stefan Monnier  <monnier@cs.yale.edu>
10997         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
10998         (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
10999         MARKBIT as the gcmarkbit for strings.
11001 2003-07-21  Richard M. Stallman  <rms@gnu.org>
11003         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
11005         * fns.c (Flocale_info): Rename from Flanginfo.  Doc fixes.
11006         (syms_of_fns): Corresponding change.
11008         * alloc.c (syms_of_alloc): Doc fixes.
11010 2003-07-20  Han Boetes  <han@mijncomputer.nl>  (tiny change)
11012         * s/netbsd.h: Use -Wl syntax.
11014 2003-07-17  Richard M. Stallman  <rms@gnu.org>
11016         * xterm.c (xim_initialize): Redo 6/24 change.
11018 2003-07-15  Stefan Monnier  <monnier@cs.yale.edu>
11020         * buffer.c (copy_overlays): Use EMACS_INT for positions.
11021         (Fswitch_to_buffer): Don't signal an error when switching to the same
11022         buffer in a dedicated window.
11024         * alloc.c: Use bitmaps for cons, as was done for floats.
11025         (init_float, init_cons): Let the normal code allocate the first block.
11026         (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
11027         (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
11028         New macros.
11029         (struct cons_block): Move conses to the beginning.  Add gcmarkbits.
11030         (Fcons): Use lisp_align_malloc and CONS_UNMARK.
11031         (live_cons_p): Check the pointer is not past the `conses' array.
11032         (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
11033         (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
11034         (survives_gc_p): Use CONS_MARKED_P and simplify.
11035         (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
11037 2003-07-13  Paul Eggert  <eggert@twinsun.com>
11039         GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
11040         puts it into BSS instead, at least on Solaris 8 and 9.
11041         This is a valid optimization, and it may occur on other platforms,
11042         so Emacs should not assume that initializing a static variable to
11043         zero puts it into data.
11044         * alloc.c (pure, staticvec):
11045         Initialize these arrays to nonzero, so that they're not
11046         put into BSS by that optimization.
11048 2003-07-13  Stefan Monnier  <monnier@cs.yale.edu>
11050         * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING.  Update users.
11051         (lisp_align_malloc): Use posix_memalign is available.
11052         (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
11053         (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
11054         for consistency.  Update users.
11056 2003-07-13  Richard M. Stallman  <rms@gnu.org>
11058         * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
11060 2003-07-13  Terje Rosten  <terjeros@phys.ntnu.no>
11062         * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
11063         and use the Gtk+ function gtk_window_icon_from_file if available.
11065         * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
11066         handle mask of bitmaps.
11067         (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
11068         mask property.
11069         (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
11071         * xterm.h (xg_set_icon): New function.
11073 2003-07-12  Paul Eggert  <eggert@twinsun.com>
11075         * unexelf.c (unexec): Consider a section to precede the .bss
11076         section if its addresses overlap that of .bss.
11078 2003-07-12  Richard M. Stallman  <rms@gnu.org>
11080         * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
11082         * config.in (HAVE_CRTIN): Add #undef.
11083         (INLINE): Really inline only if OPTIMIZE is defined.
11085         * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
11086         END_FILES_1.
11087         (START_FILES_1, END_FILES_1): New macros (conditional).
11088         (LD_SWITCH_SYSTEM_TEMACS): Define.
11090         * s/openbsd.h: Don't include bsd4-3.h.
11091         (TERMINFO): Define.
11092         (LIBS_TERMCAP): Define.
11093         (LD_SWITCH_SYSTEM): Define (two definitions).
11095         * xfns.c: Include libpng/png.h instead of png.h.
11097 2003-07-11  Andreas Schwab  <schwab@suse.de>
11099         * buffer.c (modify_overlay): Update prototype.
11100         * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
11101         Likewise.
11103 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
11105         * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
11106         (struct interval): Move to intervals.h.
11107         (struct Lisp_Marker): Use EMACS_INT for position info.
11108         (forward_point): Remove prototype of defunct function.
11109         (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
11110         (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
11111         (syms_of_textprop, set_text_properties): Remove prototypes that are
11112         already in intervals.h.
11114         * intervals.h (struct interval): Move from lisp.h.
11115         Use EMACS_INT for position and size info.
11117         * coding.c: Include intervals.h for Fset_text_properties.
11119         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11120         position and length information.
11122 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
11124         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11125         position and length information.
11127 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
11129         Change overlays_after and overlays_before so the overlays themselves
11130         are linked into lists, rather than using cons cells.  After all each
11131         Lisp_Misc already occupies 5 words, so we can add a `next' field to
11132         Lisp_Overlay for free and save up one cons cell per overlay (not
11133         to mention one indirection when traversing the list of overlay).
11135         * lisp.h (struct Lisp_Overlay): New field `next'.
11137         * buffer.h (struct buffer): Change overlays_before and overlays_after
11138         from Lisp lists of overlays to pointers to overlays.
11140         * buffer.c (overlay_strings, recenter_overlay_lists):
11141         Fix typo in eassert in last commit.
11142         (unchain_overlay): New function.
11143         (add_overlay_mod_hooklist): Use AREF.
11144         (copy_overlays, reset_buffer, overlays_at, overlays_in)
11145         (overlay_touches_p, overlay_strings, recenter_overlay_lists)
11146         (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
11147         (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
11148         (report_overlay_modification, evaporate_overlays, init_buffer_once):
11149         Adjust to new type of overlays_(before|after).
11151         * alloc.c (mark_object): Mark the new `next' field of overlays.
11152         (mark_buffer): Manually mark the overlays_(after|before) fields.
11154         * coding.c (run_pre_post_conversion_on_str):
11155         * editfns.c (overlays_around):
11156         * xdisp.c (load_overlay_strings):
11157         * fileio.c (Finsert_file_contents):
11158         * indent.c (current_column):
11159         * insdel.c (signal_before_change, signal_after_change):
11160         * intervals.c (set_point_both):
11161         * print.c (temp_output_buffer_setup): Use new type for
11162         overlays_(before|after).
11164 2003-07-08  Stefan Monnier  <monnier@cs.yale.edu>
11166         * buffer.c (report_overlay_modification): Don't run hooks while
11167         traversing the list of overlays.
11169         * buffer.h (struct buffer): Use an int for overlay_center.
11170         (overlays_at, evaporate_overlays, recenter_overlay_lists)
11171         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11173         * buffer.c (reset_buffer, recenter_overlay_lists)
11174         (adjust_overlays_for_insert, adjust_overlays_for_delete)
11175         (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
11176         (evaporate_overlays, init_buffer_once): Update use of overlay_center.
11177         (overlays_at, evaporate_overlays, recenter_overlay_lists)
11178         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11180         * xdisp.c (fast_find_position): Remove unused var.
11182         * cmds.c (Qexpand_abbrev): New sym.
11183         (syms_of_cmds): Initialize it.
11184         (internal_self_insert): Use it to call expand-abbrev.
11186 2003-07-09  Kim F. Storm  <storm@cua.dk>
11188         * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
11189         was configured with --without-xim.
11190         (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
11192 2003-07-07  Richard M. Stallman  <rms@gnu.org>
11194         * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
11196         * alloc.c (Fgarbage_collect): Doc fix.
11198 2003-07-07  Nozomu Ando  <nand@mac.com>
11200         * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
11202 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
11204         * minibuf.c (read_minibuf): UNGCPRO before returning.
11205         (Ftry_completion, Fall_completions): Doc fix.
11207         * alloc.c (live_float_p): Check that p is not past the `floats' array,
11208         now that `floats' is not the last element of the struct any more.
11210 2003-07-06  Jason Rumney  <jasonr@gnu.org>
11212         * w32term.h (ClipboardSequence_Proc): New type.
11214         * w32fns.c (clipboard_sequence_fn): New variable.
11215         (globals_of_w32fns): Initialize it.
11217         * w32select.c (last_clipboard_sequence_number): New variable.
11218         (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
11219         number if possible.
11221 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
11223         * m/amdx86-64.h (MARKBIT):
11224         * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
11225         MARKBIT and ARRAY_MARK_FLAG any more.
11227         * m/hp800.h (XSETMARKBIT):
11228         * m/sr2k.h (XSETMARKBIT):
11229         * lisp.h (XSETMARKBIT): Remove unused macro.
11231         * lisp.h (mark_object): Change prototype.
11233         * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
11234         (last_marked): Change accordingly.
11235         (mark_interval, mark_maybe_object, mark_maybe_pointer)
11236         (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
11237         (mark_buffer): Update calls to mark_object.
11239         * bytecode.c (mark_byte_stack):
11240         * fns.c (sweep_weak_table):
11241         * keyboard.c (mark_kboards): Update calls to mark_object.
11243 2003-07-06  Jason Rumney  <jasonr@gnu.org>
11245         * alloc.c (struct ablock): Only include padding when there is some.
11247 2003-07-04  Stefan Monnier  <monnier@cs.yale.edu>
11249         * alloc.c (ALIGN): Add casts to simplify usage.
11250         (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
11251         (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
11252         (struct ablock, struct ablocks): New types.
11253         (free_ablock): New global var.
11254         (lisp_align_malloc, lisp_align_free): New functions.
11255         (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
11256         (struct float_block): Reorder and add gcmarkbits.
11257         (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
11258         (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
11259         (init_float, make_float): Use lisp_align_malloc.
11260         (free_float, live_float_p): Don't use `type' any more.
11261         (make_float): Use FLOAT_UNMARK to access to mark bit.
11262         (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
11263         Use FLOAT_MARKED_P to access the mark bit.
11264         (pure_alloc): Simplify use of ALIGN.
11265         (mark_object): Use FLOAT_MARK to access the mark bit.
11266         (gc_sweep): Use new macros to access the float's mark bit.
11267         (init_alloc_once): Init free_ablock.
11269         * lisp.h (struct Lisp_Float): Remove unused field `type'.
11271 2003-06-27  Stefan Monnier  <monnier@cs.yale.edu>
11273         * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
11274         (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
11275         (allocate_buffer): Move.
11276         (string_bytes): Don't mask markbit of `size_byte'.
11277         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11278         (mark_object, mark_buffer, survives_gc_p, gc_sweep):
11279         Use the `size' field of buffers (rather than the `name' field) for
11280         the mark bit, as is done for all other vectorlike objects.
11281         Use the new macros to access the mark bit of vectorlike objects.
11283 2003-06-26  Richard M. Stallman  <rms@gnu.org>
11285         * puresize.h (BASE_PURESIZE): Increment base size.
11287         * xdisp.c (fast_find_position): Enable Gerd's new definition.
11289         * xterm.c (xim_initialize): Undo previous change.
11291 2003-06-26  Stefan Monnier  <monnier@cs.yale.edu>
11293         * alloc.c (survives_gc_p): Simplify.
11295         * buffer.c (set_buffer_internal_1): Test CONSP for lists.
11297         * window.c (Fset_window_dedicated_p): Simplify.
11298         (display_buffer_1): Don't raise the win from which minibuf was entered.
11299         (temp_output_buffer_show): Don't assume BEG == 1.  Simplify.
11300         (Fminibuffer_selected_window): Simplify.
11302         * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
11304         * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
11305         (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
11307         * insdel.c (check_markers, adjust_markers_for_delete)
11308         (adjust_markers_for_insert, adjust_markers_for_replace)
11309         (prepare_to_modify_buffer, RESTORE_VALUE):
11310         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11311         (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
11312         (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
11313         * alloc.c (Fmake_marker, free_marker, gc_sweep):
11314         * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
11315         * editfns.c (save_excursion_restore, transpose_markers):
11316         * window.c (delete_window):
11317         * xdisp.c (message_dolog): Update for new types.
11319 2003-06-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11321         * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
11322         (realize_default_face): Use default_face_done_p for the force_p
11323         argument to set_lface_from_font_name.  Set default_face_done_p to one.
11325         * frame.c (make_frame): Initialize default_face_done_p.
11327         * frame.h (struct frame): Add default_face_done_p.
11329         * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
11330         will be defined.
11332 2003-06-25  Stefan Monnier  <monnier@cs.yale.edu>
11334         * alloc.c (make_interval, Fmake_symbol, allocate_misc):
11335         Initialize the new field `gcmarkbit'.
11336         (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
11337         (mark_interval_tree): Don't mark the tree separately from the nodes.
11338         (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
11339         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11340         (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
11342         * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
11343         (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
11344         (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
11345         (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
11346         (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
11348 2003-06-24  Dave Love  <fx@gnu.org>
11350         * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
11352         * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux.  Merge changes
11353         from gnulib.
11355 2003-06-21  Richard M. Stallman  <rms@gnu.org>
11357         * fileio.c (Fwrite_region): Alternate messages
11358         for append and partial write.
11360         * keyboard.c (read_key_sequence): When converting upcase fn key to
11361         downcase, update fkey and keytran so `backspace' gets translated.
11363         * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
11365         * process.c (wait_reading_process_input): Don't signal SIGIO
11366         in batch mode.
11368 2003-06-17  Kenichi Handa  <handa@m17n.org>
11370         * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
11371         composite.h.
11373         * xselect.c: Don't include charset.h, coding.h, composite.h.
11374         (Qforeign_selection): New variable.
11375         (syms_of_xselect): Intern and static it.
11376         (selection_data_to_lisp_data): Return a unibyte string made from
11377         data with `foreign-selection' text property.
11379 2003-06-15  Stefan Monnier  <monnier@cs.yale.edu>
11381         * termhooks.h (EVENT_INIT): New macro.
11383         * keyboard.c (mark_kboards): Move from alloc.c.  Mark kbd_buffer.
11385         * alloc.c (mark_kboards): Move to keyboard.c.
11387         * keyboard.c (record_asynch_buffer_change, read_avail_input):
11388         * xterm.c (x_dispatch_event):
11389         * xmenu.c (find_and_call_menu_selection):
11390         * xdisp.c (handle_tool_bar_click):
11391         * w32menu.c (menubar_selection_callback):
11392         * sysdep.c (kbd_input_ast, read_input_waiting):
11393         * msdos.c (dos_rawgetc):
11394         * macterm.c (mac_check_for_quit_char):
11395         * macmenu.c (menubar_selection_callback):
11396         * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
11397         data to kbd_buffer_store_event.
11399 2003-06-15  Kim F. Storm  <storm@cua.dk>
11401         * xdisp.c (x_fix_overlapping_area): Always use area relative X
11402         to fix redisplay problem with tall characters (such as \e,AC\e(B).
11404 2003-06-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
11406         * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
11408 2003-06-12  Kenichi Handa  <handa@m17n.org>
11410         * fileio.c (Fwrite_region): Save and restore restriction.
11412 2003-06-12  Dave Love  <fx@gnu.org>
11414         * alloca.c (alloca): Declare arg as size_t.
11416         * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
11417         Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
11419 2003-06-11  Dave Love  <fx@gnu.org>
11421         * search.c (shrink_regexp_cache): Use xrealloc.
11422         (syms_of_search): Use xmalloc.
11424 2003-06-10  Kim F. Storm  <storm@cua.dk>
11426         * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
11427         Adjust phys_cursor.x to be relative to window box, rather than
11428         text area before checking -- to ensure cursor is redrawn when
11429         exposing window.
11430         Note: This also fixes a similar (older) bug if display margins
11431         are present.
11433 2003-06-06  Kenichi Handa  <handa@m17n.org>
11435         * coding.c (encoding_buffer_size): If coding->type is
11436         coding_type_ccl, double magnification on CRLF encoding.
11438 2003-06-06  Jason Rumney  <jasonr@gnu.org>
11440         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
11441         (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
11443         * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
11444         Mac too.
11446 2003-06-05  Dave Love  <fx@gnu.org>
11448         * strftime.c: Merge changes from gnulib.
11450         * mktime.c (__mktime_internal): Merge changes from gnulib
11451         involving year 69 and dst2.
11453         Changes to merge with gnulib version and be consistent with the
11454         autoconf test:
11456         * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
11457         Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
11458         [HAVE_LOCALE_H]: Include locale.h.
11459         (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
11461 2003-06-05  Kim F. Storm  <storm@cua.dk>
11463         * window.c (coordinates_in_window): Convert X and Y to window
11464         relative coordinates inside mode-line and header-line parts.
11465         Convert X and Y to margin area relative coordinates inside left
11466         and right display margin parts.
11468 2003-06-05  Jason Rumney  <jasonr@gnu.org>
11470         * w32fns.c (add_system_logical_colors_to_map): New function.
11471         (Fx_open_connection): Use it.
11473 2003-06-04  Stefan Monnier  <monnier@cs.yale.edu>
11475         * process.c (allocate_pty): Revert part of the previous patch.
11476         (Faccept_process_output): Simplify.
11478 2003-06-04  Jason Rumney  <jasonr@gnu.org>
11480         * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
11482         * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
11483         (lispy_mouse_wheel_names): Remove.
11484         (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
11485         Always define drag_and_drop_syms.
11487         * macterm.c (XTread_socket): Map mouse wheel events to Emacs
11488         WHEEL_EVENT events.
11490 2003-06-03  Stefan Monnier  <monnier@cs.yale.edu>
11492         * xdisp.c (update_tool_bar): Add missing UNGCPRO.
11494         * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
11496 2003-06-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11498         * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
11499         menu item label.
11501 2003-06-03  Richard M. Stallman  <rms@gnu.org>
11503         * window.c (Fwindow_edges): Doc fix.
11504         (Fwindow_pixel_edges, Fwindow_inside_edges)
11505         (Fwindow_inside_pixel_edges): New functions.
11506         (syms_of_window): defsubr them.
11508         * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
11509         (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
11511 2003-06-02  Stefan Monnier  <monnier@cs.yale.edu>
11513         * dispnew.c (Fsit_for): Don't lie about the number of args.
11515 2003-06-02  Dave Love  <fx@gnu.org>
11517         * callproc.c: Use HAVE_FCNTL_H, not USG5.
11518         (syms_of_callproc) <process-environment>: Doc fix.
11520         * doc.c: Use HAVE_FCNTL_H, not USG5.
11522         * xfaces.c (font_rescale_ratio): Fix for K&R.
11524         * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
11526         * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
11528         * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
11530         * gtkutil.c: Include keyboard.h, charset.h, coding.h.
11531         (xg_create_frame_widgets): Use ENCODE_UTF_8.
11533         * xterm.c (Qutf_8): Move to coding.c
11535         * xmenu.c (ENCODE_MENU_STRING): New.
11536         (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
11537         Use it.
11539         * coding.h (ENCODE_UTF_8): New.
11540         (Qutf_8): Declare.
11542         * coding.c (Qutf_8): New.
11543         (syms_of_coding): Intern it.
11545         * fns.c: Doc fixes.
11547 2003-06-02  Kenichi Handa  <handa@m17n.org>
11549         * buffer.c (Fset_buffer_multibyte): Fix previous change.
11551 2003-06-01  Stefan Monnier  <monnier@cs.yale.edu>
11553         * lread.c (openp): Make sure STR is a string.
11555 2003-06-01  David Ponce  <david@dponce.com>
11557         * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
11558         Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
11560         * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
11561         (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
11562         (discard_mouse_events): Discard WHEEL_EVENT events too.
11563         (lispy_wheel_names, wheel_syms): New.
11564         (syms_of_keyboard): Init and staticpro `wheel_syms'.  Init and
11565         staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
11566         (make_lispy_event): Add WHEEL_EVENT handler.
11568         * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
11569         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11570         WHEEL_EVENT events.
11572 2003-05-31  John Paul Wallington  <jpw@gnu.org>
11574         * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
11575         timer are in lisp/emacs-lisp.
11577 2003-05-31  Kenichi Handa  <handa@m17n.org>
11579         * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
11580         region when a buffer is changed to unibyte.
11582         * charset.h (VALID_LEADING_CODE_P): New macro.
11583         (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
11585         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
11586         is nonzero, accept multibyte form of eight-bit-control chars.
11587         (decode_composition_emacs_mule): Likewise.
11588         (decode_coding_emacs_mule): Likewise.
11589         (encode_coding_emacs_mule): If coding->flags is nonzero, produce
11590         multibyte form of eight-bit-control chars.
11592         * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
11593         (Finsert_file_contents): If coding-system-for-read is bound to
11594         Qauto_save_coding, use the coding system emacs-mule with special
11595         setting for recovering a file.
11596         (choose_write_coding_system): On auto saving, use the coding
11597         system emacs-mule with special setting for auto saving.
11598         (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
11600 2003-05-30  Kenichi Handa  <handa@m17n.org>
11602         * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
11603         properly before calling ccl_driver.
11605         * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
11607         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
11608         (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
11609         (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
11611 2003-05-29  Glenn Morris  <gmorris@ast.cam.ac.uk>
11613         * xfaces.c (realize_default_face): Do not abort if lface is
11614         non-existent - reverts change from 2003-05-19.
11616 2003-05-29  Kenichi Handa  <handa@m17n.org>
11618         * coding.c (decode_coding_iso2022): Pay attention to the byte
11619         sequence of CTEXT extended segment, and retain those bytes as is.
11621 2003-05-28  Kenichi Handa  <handa@m17n.org>
11623         * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
11624         of CODING_REPLACEMENT_CHARACTER.
11625         (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
11626         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
11627         check this flag on encoding.
11628         (encode_coding_sjis_big5):
11629         Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
11630         (Fset_terminal_coding_system_internal):
11631         Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
11632         instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
11634         * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
11635         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11636         (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
11638 2003-05-28  Richard M. Stallman  <rms@gnu.org>
11640         * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
11642         * eval.c (unbind_to): Move init of this_binding to separate statement.
11644 2003-05-28  Kim F. Storm  <storm@cua.dk>
11646         * xdisp.c (expose_window): Fix error in calculation of
11647         window relative coordinates of area to redisplay.
11649 2003-05-27  Jason Rumney  <jasonr@gnu.org>
11651         * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
11653 2003-05-27  David Ponce  <david@dponce.com>
11655         Handle W32 mouse wheel events as mouse click events, like in X.
11657         * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
11658         MOUSE_WHEEL_EVENT anymore.
11660         * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
11661         Scrolling down/up the mouse wheel is respectively mapped to mouse
11662         button 4 and 5.
11663         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11664         MOUSE_CLICK_EVENT events.  Forward w32 MSH_MOUSEWHEEL events as
11665         WM_MOUSEWHEEL events.
11667 2003-05-27  Andreas Schwab  <schwab@suse.de>
11669         * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
11671         * xdisp.c (try_window_id): Avoid aborting if PT is inside a
11672         partially visible line.
11674         * alloc.c (Fgarbage_collect): Fix last change.
11676 2003-05-26  John Paul Wallington  <jpw@gnu.org>
11678         * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
11680 2003-05-25  Stefan Monnier  <monnier@cs.yale.edu>
11682         * window.c (Fset_window_buffer): Add type of `keep_margins'.
11683         (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
11685         * window.h (window_box_text_cols): Declare.
11687         * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
11688         (x_draw_vertical_border): Remove unused var `f'.
11690         * xfaces.c (build_scalable_font_name): Remove `unused var
11691         pixel_size' warning.
11693         * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
11695         * unexelf.c (unexec): Remove `unused var n' warning.
11697         * strftime.c (my_strftime_localtime_r): Remove `defined but
11698         unused' warning.
11700         * process.c (allocate_pty): Remove `unused var stb' and
11701         `cp might be used uninitialized' warnings.
11703         * dispnew.c (mode_line_string): Remove unused var `f'.
11705         * coding.c (find_safe_codings): Remove unused var `i'.
11707         * bytecode.c (Fbyte_code): Remove `unused val' warning.
11709         * buffer.c (Fkill_buffer): Remove unused var `list'.
11711         * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
11713 2003-05-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11715         * frame.c (make_frame): Condition want_fullscreen with
11716         HAVE_WINDOW_SYSTEM.
11718 2003-05-25  Juanma Barranquero  <lektu@terra.es>
11720         * window.c (Fset_window_scroll_bars): Fix typo in argument name.
11721         (Fwindow_scroll_bars): Fix typo in docstring.
11723 2003-05-24  Kim F. Storm  <storm@cua.dk>
11725         The following changes serve several purposes:
11727         1) Swap the position of fringes and display margins in windows, i.e.
11728         the fringes are now displayed between the margins and the text area
11729         (by default).
11731         2) Allow fringe and scroll bar parameters to be set per-buffer and
11732         per-window (like display margins).  Such settings are now stored
11733         in window configurations, preserved when frames are resized, and
11734         copied when windows are split vertically or horizontally.
11735         Several bugs related to display margins have been fixed.
11737         3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
11739         4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
11740         rather than FRAME_WIDTH (FRAME_FONT (f)).
11742         5) Introduce a consistent naming of variables, members and macros
11743         depending on whether their value is measured in pixels or in
11744         canonical columns/lines.  Pixel dimensions are named *_width and
11745         *_height, while canonical columns/lines are named *_cols and
11746         *_lines.  Pixel positions are named *_x and *_y, while column/line
11747         positions are named *_col and *_line.
11749         6) Consolidate more of the X, W32, and MAC gui code by moving
11750         common data into struct frame, and generalize it for the non-gui
11751         case by using suitable defaults.
11753         7) Cleanup and consolidate the macros controlling frame and window
11754         layout into frame.h and window.h, and generalize the use of the
11755         various window_box_* functions (enhanced to handle the new fringe
11756         position and the per-window fringe and scroll bar settings).
11758         * frame.h (struct frame): Rename members height to text_lines,
11759         width to text_cols, window_height to total_lines, window_width to
11760         total_cols, new_height to new_text_lines, new_width to
11761         new_text_cols.  All uses changed.
11762         (struct frame): New members which consolidate common members of
11763         x_output, w32_output, and mac_output structures: left_pos,
11764         top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
11765         win_gravity, size_hint_flags, border_width, internal_border_width,
11766         line_height, fringe_cols, left_fringe_width, right_fringe_width,
11767         want_fullscreen.  All uses changed.
11768         (struct frame): New member column_width contaning the canonical
11769         column width, analogue to line_height.  All uses changed.
11770         (struct frame): Rename members scroll_bar_pixel_width to
11771         config_scroll_bar_width, and scroll_bar_cols to
11772         config_scroll_bar_cols.  All uses changed.
11773         (struct frame): New member scroll_bar_actual_width which
11774         consolidates and renames the vertical_scroll_bar_extra member of
11775         x_output, w32_output, and mac_output structures.  All uses changed.
11776         (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
11777         from x/w32/macterm.h files.  All uses changed.  Also change code
11778         which referred to f->output_data...->pixel_height.
11779         (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
11780         from x/w32/macterm.h files.  All uses changed.  Also change code
11781         which referred to f->output_data...->pixel_width.
11782         (FRAME_LINES): Rename from FRAME_HEIGHT.  All uses changed.
11783         Also change code which referred to f->height.
11784         (FRAME_COLS): Rename from FRAME_WIDTH.  All uses changed.
11785         Also change code which referred to f->width.
11786         (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
11787         to update new_text_lines and new_text_cols members directly.
11788         (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
11789         FRAME_SCROLL_BAR_PIXEL_WIDTH.  All uses changed.
11790         (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
11791         FRAME_SCROLL_BAR_COLS.  All uses changed.
11792         (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
11793         Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
11794         FRAME_RIGHT_SCROLL_BAR_WIDTH, resp.  All uses changed.
11795         (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
11796         (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
11797         (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
11798         (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
11799         (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
11800         (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
11801         (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
11802         (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
11803         Unconditionally return line_height member (it now has proper value
11804         also for non-window frames).
11805         (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT.  Unconditionally
11806         return new column_width member (rather than the default font width).
11807         (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
11808         (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
11809         from x/w32/macterm.h files.  Unconditionally return corresponding
11810         member of frame structure (they now have proper values also for
11811         non-window frames).
11812         (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
11813         Calculate return value from left and right widths.
11814         (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
11815         internal_border_width member (has proper value for non-window frame).
11816         (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
11817         (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
11818         (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
11819         (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
11820         (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
11821         consolidated from xterm.h, macterm.h, and w32term.h.
11822         (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
11823         consolidated from xterm.h, macterm.h, and w32term.h.
11824         (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
11825         CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
11826         (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
11827         CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
11828         (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
11829         consolidated from x/mac/w32term.h.
11830         (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
11831         consolidated from x/mac/w32term.h.
11832         (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
11833         PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
11834         (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
11835         PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
11837         * window.h (struct window): Rename members left to left_col,
11838         top to top_line, height to total_lines, width to total_cols,
11839         left_margin_width to left_margin_cols, right_margin_width to
11840         right_margin_cols, orig_height to orig_total_lines, orig_top to
11841         orig_top_line.  All uses changed.
11842         (struct window): New members left_fringe_width, right_fringe_width,
11843         fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
11844         (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
11845         New macros primarily used to simplify other macros.
11846         (WINDOW_TOTAL_COLS): New macro.  Change relevant code that
11847         referred to XINT (w->width).
11848         (WINDOW_TOTAL_LINES): New macro.  Change relevant code that
11849         referred to XINT (w->height).
11850         (WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
11851         referred to XINT (w->width) * canon_x_unit.
11852         (WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
11853         referred to XINT (w->height) * canon_y_unit.
11854         (WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
11855         referred to XINT (w->left).
11856         (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE.  Change
11857         all uses and code that referred to XINT (w->left) + XINT (w->width).
11858         (WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
11859         referred to XINT (w->top).
11860         (WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
11861         referred to XINT (w->top) + XINT (w->height).
11862         (WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
11863         referred to XINT (w->left) * canon_x_unit.
11864         (WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
11865         referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
11866         (WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
11867         referred to XINT (w->top) * canon_y_unit.
11868         (WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
11869         referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
11870         (WINDOW_LEFTMOST_P): New macro.
11871         (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
11872         All uses changed.
11873         (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
11874         All uses changed.
11875         (WINDOW_BOX_LEFT_EDGE_X): Rename from
11876         WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
11877         Do not exclude left fringe width.
11878         (WINDOW_BOX_RIGHT_EDGE_X): Rename from
11879         WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
11880         Do not exclude fringe widths.
11881         (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
11882         (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
11883         Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
11884         FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
11885         FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
11886         (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
11887         (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
11888         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
11889         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
11890         (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
11891         New macros.  Change code which referenced corresponding
11892         FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
11893         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
11894         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
11895         FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
11896         allow per-window scroll-bar settings.
11897         (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
11898         (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
11899         referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
11900         (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
11901         that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
11902         FRAME_SCROLL_BAR_WIDTH.
11903         (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
11904         (WINDOW_SCROLL_BAR_AREA_X): New macros.
11905         (WINDOW_HEADER_LINE_HEIGHT): Rename from
11906         WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
11907         (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
11908         WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
11909         (WINDOW_BOX_TEXT_HEIGHT): Rename from
11910         WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
11911         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11912         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
11913         (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
11914         (WINDOW_LEFT_MARGIN_WIDTH): Rename from
11915         WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
11916         (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
11917         WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
11918         (window_from_coordinates): Update prototype.
11919         (Fset_window_buffer): Update EXFUN.
11920         (set_window_buffer): Update prototype.
11922         * dispextern.h (struct glyph_matrix): Rename members window_left_x
11923         to window_left_col, window_top_y to window_top_line.  All uses
11924         changed.
11925         (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
11926         use FRAME_INTERNAL_BORDER_WIDTH macro instead as
11927         internal_border_width is now set to 0 for non-window frames.
11928         (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
11929         (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
11930         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
11931         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
11932         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
11933         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11934         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
11935         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
11936         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
11937         Move to window.h and renamed [see window.h changes].
11938         (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
11939         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
11940         (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
11941         Use WINDOW_TOTAL_LINES.
11942         (frame_update_line_height): Remove prototype.
11944         * buffer.h (struct buffer): Rename members measured in columns:
11945         left_margin_width to left_margin_cols, right_margin_width to
11946         right_margin_cols.  All uses changed.
11947         New members left_fringe_width, right_fringe_width,
11948         fringes_outside_margins for per-buffer fringe settings.
11949         New members scroll_bar_width and vertical_scroll_bar_type for
11950         per-buffer scroll bar settings.
11952         * buffer.c (init_buffer_once): Set buffer_defaults and
11953         buffer_local_flags for new buffer-local variables
11954         left_fringe_width, right_fringe_width, fringes_outside_margins,
11955         scroll_bar_width, and vertical_scroll_bar_type.
11956         (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
11957         default-* variables for them.
11959         * dispnew.c: Make (many) trivial substitutions for renamed and
11960         new macros in dispextern.h, frame.h and window.h.
11961         (mode_line_string): No need to adjust width for mode lines, as it
11962         is already adjusted by the caller.
11963         (marginal_area_string): Handle fringes inside/outside margins.
11965         * frame.c: Make (many) trivial substitutions for renamed and
11966         new macros in dispextern.h, frame.h and window.h.
11967         (make_frame): Initialize left_fringe_width, right_fringe_width,
11968         fringe_cols, scroll_bar_actual_width, border_width,
11969         internal_border_width, column_width, line_height, x_pixels_diff,
11970         y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
11971         members with values suitable for a non-window frames.
11973         * gtkutil.c: Make (many) trivial substitutions for renamed and
11974         new macros in dispextern.h, frame.h and window.h.
11976         * indent.c: Make (few) trivial substitutions for renamed and
11977         new macros in dispextern.h, frame.h and window.h.
11979         * keyboard.c: Make (many) trivial substitutions for renamed and
11980         new macros in dispextern.h, frame.h and window.h.
11981         (make_lispy_event): Use window positions returned from
11982         window_from_coordinates when constructing the lisp event for
11983         MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
11984         (incorrect) values locally.
11985         (make_lispy_movement): Use window positions returned from
11986         window_from_coordinates when constructing the lisp event, rather
11987         than calculating (incorrect) values locally.
11989         * scroll.c: Make (some) trivial substitutions for renamed and
11990         new macros in dispextern.h, frame.h and window.h.
11992         * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
11993         scroll-bars.
11995         * sysdep.c: Make (few) trivial substitutions for renamed and
11996         new macros in dispextern.h, frame.h and window.h.
11998         * term.c: Make (some) trivial substitutions for renamed and
11999         new macros in dispextern.h, frame.h and window.h.
12001         * widget.c: Make (few) trivial substitutions for renamed and
12002         new macros in dispextern.h, frame.h and window.h.
12004         * window.c: Make (many) trivial substitutions for renamed and
12005         new macros in dispextern.h, frame.h and window.h.
12006         (make_window): Initialize new members
12007         left_margin_cols, right_margin_cols, left_fringe_width,
12008         right_fringe_width, fringes_outside_margins, scroll_bar_width,
12009         and vertical_scroll_bar_type.
12010         (coordinates_in_window): Adapt to new fringe/margin positions
12011         and per-window fringes and scroll-bars.
12012         Fix bug related to incorrectly adjusting coordinates by
12013         frame's internal_border_width (the effect normally negible since
12014         the internal_border_width is typically 0 or 1 pixel, but very
12015         noticeable for an internal_border_width of e.g. 25 pixels).
12016         Upon successful return (other than ON_NOTHING), the coordinates
12017         are now always properly converted to window relative for the
12018         given display element.
12019         (window_from_coordinates): Add new parameters wx and wy to
12020         return the window relative x and y position in the returned
12021         window and part.  A null arg means, don't return the position.
12022         All callers changed.
12023         (adjust_window_margins): New function which may reduce the width
12024         of the display margins if a window's text area is too small after
12025         resizing or splitting windows.
12026         (size_window): Fix bug that did not account for display margin
12027         widths when checking the minimum width of a window; use
12028         adjust_window_margins.
12029         (set_window_buffer): Call Fset_window_fringes and
12030         Fset_window_scroll_bars to setup per-window elements.
12031         Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
12032         existing display margin, fringe widths, and scroll bar settings
12033         (e.g. after splitting a window or resizing the frame).
12034         All callers changed.
12035         (Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
12036         (Fsplit_window): Duplicate original window's display margin,
12037         fringe, and scroll-bar settings; then call Fset_window_buffer with
12038         KEEP_MARGINS non-nil.  This fixes a bug which caused a split
12039         window to only preserve the display margins in one of the windows.
12040         When splitting horizontally, call adjust_window_margins on both
12041         windows to ensure that the text area of the new windows is non too
12042         narrow.  This fixes a bug which could cause Emacs to trap if the
12043         width of the split window was less than the width of the display
12044         margins.
12045         (window_box_text_cols): Rename from window_internal_width.
12046         All uses changed.  Adapt to per-window fringes and scroll bars.
12047         Fix bug that caused vertical separator to be subtracted also on
12048         window frames.  Fix another bug that did not reduce the returned
12049         value by the columns used for display margins.
12050         (window_scroll_line_based): Fix bug related to scrolling too much
12051         when display margins are present (implicitly fixed by the fix to
12052         window_box_text_cols).
12053         (scroll_left, scroll_right): Fix bug related to scrolling too far
12054         by default when display margins are present (implicitly fixed by
12055         the fix to window_box_text_cols).
12056         (struct saved_window): Rename members left to left_col, top to
12057         top_line, width to total_cols, height to total_lines, orig_top to
12058         orig_top_line, orig_height to orig_total_lines.  All uses changed.
12059         New members left_margin_cols, right_margin_cols,
12060         left_fringe_width, right_fringe_width, fringes_outside_margins,
12061         scroll_bar_width, and vertical_scroll_bar_type for saving
12062         per-window display elements.
12063         (Fset_window_configuration): Restore display margins, fringes,
12064         and scroll bar settings.  This fixes a bug which caused display
12065         margins to be discarded when saving and restoring a window
12066         configuration.
12067         (save_window_save): Save display margins, fringes, and scroll bar
12068         settings.  This fixes a bug which caused display margins to be
12069         discarded when saving and restoring a window configuration.
12070         (Fset_window_margins): Do nothing if display margins are not
12071         really changed.  Otherwise, call adjust_window_margins to ensure
12072         the text area doesn't get too narrow.  This fixes a bug which
12073         could cause Emacs to trap if setting display margins wider than
12074         the width of the window.
12075         (Fset_window_fringes): New defun to allow user to specifically set
12076         this window's fringe widths and position vs. display margins.
12077         (Fwindow_fringes): New defun to return window's actual fringe settings.
12078         (Fset_window_scroll_bars): New defun to allow user to specifically
12079         set this window's scroll bar width and position.
12080         (Fwindow_scroll_bars): New defun to return window's actual scroll
12081         bar settings.
12082         (compare_window_configurations): Also compare display margins,
12083         fringes, and scroll bar settings.
12084         (syms_of_window): Defsubr new defuns for fringe and scroll bars.
12086         * xdisp.c: Make (many) trivial substitutions for renamed and
12087         new macros in dispextern.h, frame.h and window.h.
12088         (window_box_width): Adapt to per-window fringes and scroll bars,
12089         and new fringe vs. display margin position.  Note that returned
12090         value is no longer guaranteed to be a whole multiple of the frame
12091         column width, since per-window fringes may now be any width.
12092         (window_box_left_offset): New function like window_box_left, but
12093         value is relative to left border of window (rather than frame).
12094         (window_box_right_offset): New function like window_box_right,
12095         but value is relative to left border of window.
12096         (window_box_left): Adapt to per-window fringes and scroll bars,
12097         and new fringe vs. display margin position.  Simplify by using
12098         WINDOW_LEFT_EDGE_X and window_box_left_offset.
12099         (window_box): Allow null args for unnecessary return values;
12100         change/simplify relevant callers.
12101         (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
12102         and new fringe vs. display margin position.
12103         Use window_box_left_offset and window_box_right_offset
12104         (get_glyph_string_clip_rect): Adapt to per-window fringes and
12105         scroll bars, and new fringe vs. display margin position.
12106         Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
12107         (draw_fringe_bitmap): Rework to handle per-window fringes and new
12108         fringe vs. display margin position.
12109         (hscroll_window_tree): Use window_box_width instead of window_box.
12110         (redisplay_window): Adapt to per-window scroll bars.
12111         (draw_glyphs): Rework to handle per-window fringes and scroll
12112         bars, and new fringe vs. display margin position.
12113         Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
12114         (x_clear_end_of_line): Adapt to per-window fringes and scroll
12115         bars, and new fringe vs. display margin position.  Fix bug which
12116         increased total width of full_width rows by width of scroll bars
12117         although window's total width already includes that.
12118         (x_fix_overlapping_area): Simplify using window_box_left_offset.
12119         (expose_area): Simplify using window_box_left_offset.
12120         (x_draw_vertical_border): Handle per-window scroll bar settings,
12121         mixing windows with left, right and no scroll bars.
12123         * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
12124         where it's used in x_list_fonts (for clarity).
12125         (frame_update_line_height): Remove unused function; functionality
12126         is now done directly when setting the default font in x_set_font.
12128         * xfns.c: Make (many) trivial substitutions for renamed and
12129         new macros in dispextern.h, frame.h and window.h.
12131         * xmenu.c: Make (some) trivial substitutions for renamed and
12132         new macros in dispextern.h, frame.h and window.h.
12134         * xterm.h (struct x_output): Move members left_pos, top_pos,
12135         border_width, pixel_height, pixel_width, line_height,
12136         internal_border_width, vertical_scroll_bar_extra,
12137         left_fringe_width, right_fringe_width, fringe_cols,
12138         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12139         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12140         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12141         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12142         (PIXEL_WIDTH, PIXEL_HEIGHT)
12143         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
12144         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
12145         frame.h and renamed [see frame.h changes].
12146         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12147         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
12148         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
12149         and renamed [see frame.h changes].
12151         * xterm.c: Make (several) trivial substitutions for renamed and
12152         new macros in dispextern.h, frame.h and window.h.
12153         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
12154         (scroll_run): Adapt to new fringe position.
12155         (glyph_rect): Use window coordinates returned from
12156         window_from_coordinates rather than frame_to_window_pixel_xy.
12157         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12158         scroll-bars.
12159         (handle_one_xevent): Simplify a USE_GTK conditional.
12160         (x_clip_to_row): Remove superfluous whole_line_p arg and code
12161         (fringes are now inside margins, i.e. always in the clipping area).
12162         All callers changed.
12163         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12164         directly, then call compute_fringe_widths.  Don't call
12165         frame_update_line_height.
12167         * w32term.h (struct w32_output): Move members left_pos, top_pos,
12168         border_width, pixel_height, pixel_width, line_height,
12169         internal_border_width, vertical_scroll_bar_extra,
12170         left_fringe_width, right_fringe_width, fringe_cols,
12171         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12172         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12173         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12174         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12175         (PIXEL_WIDTH, PIXEL_HEIGHT)
12176         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
12177         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
12178         frame.h and renamed [see frame.h changes].
12179         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12180         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
12181         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
12182         and renamed [see frame.h changes].
12184         * w32term.c: Make (several) trivial substitutions for renamed and
12185         new macros in dispextern.h, frame.h and window.h.
12186         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
12187         (glyph_rect): Use window coordinates returned from
12188         window_from_coordinates rather than frame_to_window_pixel_xy.
12189         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12190         scroll-bars.
12191         (w32_clip_to_row): Remove superfluous whole_line_p arg and code
12192         (fringes are now inside margins, i.e. always in the clipping area).
12193         All callers changed.
12194         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12195         directly, then call compute_fringe_widths.  Don't call
12196         frame_update_line_height.
12198         * w32console.c: Make (few) trivial substitutions for renamed and
12199         new macros in dispextern.h, frame.h and window.h.
12201         * w32fns.c: Make (many) trivial substitutions for renamed and
12202         new macros in dispextern.h, frame.h and window.h.
12204         * w32menu.c: Make (few) trivial substitutions for renamed and
12205         new macros in dispextern.h, frame.h and window.h.
12207         * macterm.h (struct mac_output): Move members left_pos, top_pos,
12208         border_width, pixel_height, pixel_width, line_height,
12209         internal_border_width, vertical_scroll_bar_extra,
12210         left_fringe_width, right_fringe_width, fringe_cols,
12211         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12212         x_pixels_diff, y_pixels_diff to struct frame (frame.h).
12213         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12214         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12215         (PIXEL_WIDTH, PIXEL_HEIGHT)
12216         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
12217         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
12218         frame.h and renamed [see frame.h changes].
12219         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12220         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
12221         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
12222         and renamed [see frame.h changes].
12224         * macterm.c: Make (several) trivial substitutions for renamed and
12225         new macros in dispextern.h, frame.h and window.h.
12226         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
12227         (glyph_rect): Use window coordinates returned from
12228         window_from_coordinates rather than frame_to_window_pixel_xy.
12229         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12230         scroll-bars.
12231         (x_clip_to_row): Remove superfluous whole_line_p arg and code
12232         (fringes are now inside margins, i.e. always in the clipping area).
12233         All callers changed.
12234         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12235         directly, then call compute_fringe_widths.  Don't call
12236         frame_update_line_height.
12238         * macfns.c: Make (several) trivial substitutions for renamed and
12239         new macros in dispextern.h, frame.h and window.h.
12240         (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
12242         * macmenu.c: Make (few) trivial substitutions for renamed and
12243         new macros in dispextern.h, frame.h and window.h.
12245         * msdos.h (struct x_output): Remove members left_pos, top_pos,
12246         and line_height, and use corresponding new members in struct
12247         frame.  All uses changed.
12248         (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
12249         superseeded by corresponding macros in frame.h.
12251         * msdos.c: Make (several) trivial substitutions for renamed and
12252         new macros in dispextern.h, frame.h and window.h.
12253         (IT_note_mouse_highlight): Use updated window coordinates returned
12254         by window_from_coordinates, rather than adjusting them locally.
12255         (internal_terminal_init): No need to initialize line_height here;
12256         it now defaults to 1.
12258 2003-05-24  Stefan Monnier  <monnier@cs.yale.edu>
12260         * keyboard.c (read_key_sequence): Adjust fkey and keytran when
12261         dropping `down' events.
12263 2003-05-24  Andreas Schwab  <schwab@suse.de>
12265         * coding.c (find_safe_codings): Fix last change.
12267 2003-05-24  Istvan Marko  <mi@imarko.dhs.org>  (tiny change)
12269         * xfns.c (x_window): Fix typo from 2003-05-21 change.
12271 2003-05-23  Stefan Monnier  <monnier@cs.yale.edu>
12273         * xdisp.c (display_mode_element): Increase max depth.
12274         Simplify the error handling code.  Use a different error string
12275         for the case where we hit the depth limit.
12277         * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
12279         * buffer.c (reset_buffer_local_variables): Remove redundant setting.
12281 2003-05-21  Stefan Monnier  <monnier@cs.yale.edu>
12283         * intervals.c (get_local_map): Don't get char-property of previous
12284         point any more: get_pos_property already does it and better.
12286 2003-05-21  Dave Love  <fx@gnu.org>
12288         [Merged from unicode branch.]
12290         * xfns.c (x_window, x_window): Use use_xim.
12292         * xterm.c (use_xim): Initialize.
12293         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12294         (x_term_init): Maybe set use_xim.
12296         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12298 2003-05-21  Jason Rumney  <jasonr@gnu.org>
12300         * unexw32.c (_start): Remove _fmode initialization.
12302         * emacs.c (main) [WINDOWSNT]: Move it here.
12304 2003-05-20  Dave Love  <fx@gnu.org>
12306         * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
12308 2003-05-19  Richard M. Stallman  <rms@gnu.org>
12310         * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12311         as value for QCfont attribute.
12312         (realize_default_face): lface should already exist; crash if not.
12313         Specify 0 for FORCE_P when calling set_lface_from_font_name.
12315         * frame.c (Fignore_event): Doc fix.
12317 2003-05-19  Kenichi Handa  <handa@m17n.org>
12319         * coding.c (decode_coding_string): Handle post-read-conversion
12320         even if the coding doesn't require decoding.
12322 2003-05-18  Richard M. Stallman  <rms@gnu.org>
12324         * callproc.c (Fcall_process_region): Doc fix.
12326 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
12328         * lread.c (Fload): Print a message if package is obsolete.
12330         * window.c (Fselect_window): Add optional `norecord' arg.
12331         (select_window_1): Fold into Fselect_window.
12332         (select_window_norecord): New function.
12333         (temp_output_buffer_show): Use it.  Preserve current buffer.
12335         * window.h (Fselect_window): Update declaration.
12337         * window.c (delete_window, Fother_window, Fset_window_configuration):
12338         * minibuf.c (read_minibuf):
12339         * macterm.c (x_new_focus_frame):
12340         * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
12341         * callint.c (Fcall_interactively):
12342         * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
12344         * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
12346 2003-05-17  David Kastrup  <dak@gnu.org>
12348         * process.c (read_process_output): Back out change from 2003-03-09.
12350 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
12352         * editfns.c (get_pos_property): Don't assume that `object' = nil.
12354         * textprop.c (text_property_stickiness): New arg `buffer'.
12356         * intervals.h (text_property_stickiness): New arg `buffer'.
12357         (get_pos_property): Declare.
12359         * intervals.c (get_local_map): Use get_pos_property, to obey
12360         stickiness and empty overlays.
12361         (create_root_interval, graft_intervals_into_buffer): Use BEG.
12362         (merge_properties, intervals_equal, merge_properties_sticky):
12363         Use XCAR, XCDR.
12364         (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
12366 2003-05-17  Richard M. Stallman  <rms@gnu.org>
12368         * minibuf.c (read_minibuf): If buffer is empty, record the default
12369         in the history.
12370         (Fminibuffer_complete_word): When deleting the overlap, take account
12371         of its real position.
12373         * fns.c (map_char_table): Fix previous change.
12375         * syntax.c (find_defun_start):
12376         When open_paren_in_column_0_is_defun_start,
12377         return beginning of buffer.
12379         * lisp.h (map_char_table): Declare added arg.
12381         * fns.c (map_char_table): New arg TABLE gets the master table.
12382         All calls changed.
12383         Process default and inheritance, resorting to Faref if necessary.
12385         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12386         (Faccessible_keymaps): Pass new arg to map_char_table.
12388         * fontset.c (Ffontset_info): Pass new arg to map_char_table.
12390         * casetab.c (set_case_table): Pass new arg to map_char_table.
12392         * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
12394         * lisp.h (specbinding_func): New typedef.
12395         (struct specbinding): Use specbinding_func, to put the `volatile'
12396         in the right place.
12398         * alloc.c (Fgarbage_collect): Cast pointers into specpdl
12399         to avoid GCC warning.
12401 2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>
12403         * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
12405 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
12407         * keyboard.c (apply_modifiers): Don't fill the other cache.
12409 2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
12411         * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
12413         * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
12414         (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
12415         (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
12416         (Fset_window_configuration, Fcurrent_window_configuration)
12417         (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
12418         (Fpos_visible_in_window_p, mark_window_cursors_off)
12419         (window_internal_height, window_internal_width, Frecenter)
12420         (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
12421         (replace_buffer_in_all_windows, init_window_once, init_window)
12422         (syms_of_window, keys_of_window): Move from lisp.h.
12423         * lisp.h: Move window.c declarations to window.h.
12425         * bytecode.c: Include window.h.
12426         * emacs.c: Include window.h.
12428         * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
12429         (keyremap): Add `parent' field.
12430         (keyremap_step): Use it.  Remove `parent' argument.
12431         (read_key_sequence): Setup and use the new `parent' field.
12433 2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
12435         * keyboard.c (adjust_point_for_property): Ensure termination.
12437 2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
12439         * keyboard.c (follow_key): Remove dead variable `did_meta'.
12440         (access_keymap_keyremap, keyremap_step): New funs, extracted from the
12441         duplicated handling of function-key-map and key-translation-map
12442         in read_key_sequence.
12443         (read_key_sequence): Use them.
12445         * keyboard.c (adjust_point_for_property): Try harder to move point
12446         to the non-sticky end of an invisible property.
12448         * xdisp.c (single_display_prop_intangible_p): Make `space' display
12449         property intangible as well.
12451 2003-05-10  Andreas Schwab  <schwab@suse.de>
12453         * xmenu.c (single_menu_item): Change last parameter to void* to
12454         avoid warning.
12456 2003-05-09  Richard M. Stallman  <rms@gnu.org>
12458         * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
12459         Bind Qinhibit_modification_hooks to t so there will be no GC.
12460         Rename local `tem' to `save_deactivate_mark'.
12462         * eval.c (specpdl_ptr): Declare volatile.
12463         (unbind_to): Copy the whole binding and decrement specpdl_ptr
12464         before doing the work of unbinding it.
12466         * lisp.h (struct specbinding): Declare elements volatile.
12467         (specpdl_ptr): Declare volatile.
12469         * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
12471         * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
12472         for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
12474 2003-05-08  Dave Love  <fx@gnu.org>
12476         * coding.c (Vlast_coding_system_used): Doc fix.
12478 2003-05-07  Jason Rumney  <jasonr@gnu.org>
12480         * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
12481         when system does not support them.
12483 2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
12485         * fileio.c (Qwrite_region_annotate_functions): New var.
12486         (build_annotations): Use it to process the global part of the hook.
12487         (syms_of_fileio): Init and staticpro it.
12489         * keyboard.c (safe_run_hooks_error): Display a message instead of
12490         silently ignoring the error.
12492 2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
12494         * keyboard.c (input_available_signal): Mark static.
12495         (menu_bar_items): Use map_keymap.
12496         (menu_bar_one_keymap): Remove.
12497         (menu_bar_item): Adjust arglist (for use in map_keymap).
12498         Properly hide a second binding when not both are keymaps.
12500         * xmenu.c (struct skp): New struct, to pass args through map_keymap.
12501         (single_keymap_panes): Use it and map_keymap.
12502         (single_menu_item): Use skp as well.
12504         * keymap.h (map_keymap_function_t): New type.
12505         (map_keymap): Declare.
12507         * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
12508         (map_keymap_call, Fmap_keymap): New functions.
12509         (syms_of_keymap): Defsubr map-keymap.
12511 2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12513         * gtkutil.c (create_dialog, make_widget_for_menu_item)
12514         (make_menu_item, create_menus, xg_update_menu_item): Don't call
12515         ..._with_mnemonic functions for menu items.
12517 2003-05-01  Kenichi Handa  <handa@m17n.org>
12519         * coding.c (coding_system_accept_latin_extra_p): Delete this
12520         function.
12521         (find_safe_codings): Pay attention to
12522         the property tranlsation-table-for-encode of each codings.
12523         (syms_of_coding): Give Qtranslation_table the extra slot number 2.
12525 2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
12527         * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
12529 2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
12531         * eval.c (unbind_to): Don't handle symbol = Qnil any more.
12533         * lisp.h (CHECK): Wrap args in parenthesis.
12534         (specbind): Fix doc: symbol = Qnil is not supported any more.
12536         * bytecode.c (Fbyte_code) <unwind-protect>:
12537         Use Fprogn rather than 0 and Qnil.
12539         * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
12540         `double', and `triple' modifiers as well.
12542 2003-04-30  Richard M. Stallman  <rms@gnu.org>
12544         * keyboard.c (echo_char): Don't clear out a dash that follows a space.
12546         * alloc.c (abort_on_gc): New variable.
12547         (Fgarbage_collect): Abort if abort_on_gc is set.
12549         * lisp.h (abort_on_gc): Add decl.
12551         * eval.c (Fsignal): Clear abort_on_gc.
12553         * editfns.c (Fformat): Set abort_on_gc during first scan of format.
12554         Reinit FORMAT_START and END before second scan.
12556         * xdisp.c (move_it_vertically_backward): Do the final big else
12557         even if nlines is 0.
12559         * xdisp.c (redisplay_internal): Finish the per-frame loop
12560         even if redisplay is suspended by input.
12562 2003-04-24  Andrew Choi  <akochoi@shaw.ca>
12564         * macterm.c (x_list_fonts): Return all fonts that match if
12565         maxnames = -1.
12567 2003-04-25  Kenichi Handa  <handa@m17n.org>
12569         * syntax.c (skip_chars): Fix previous change.
12571 2003-04-24  Kenichi Handa  <handa@m17n.org>
12573         * syntax.c (skip_chars): Make the code faster by using the common
12574         technique of *p, *stop, and *endp.
12576 2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12578         * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
12579         tool_bar_items so GTK tool bar expose callback does not access items
12580         being updated.
12582 2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
12584         * eval.c (Fapply): Undo last change and add a comment about why.
12586 2003-04-18  Miles Bader  <miles@gnu.org>
12588         * data.c (Faset): Calculate nbytes earlier, to satisfy the now
12589         pickier PARSE_MULTIBYTE_SEQ.
12591 2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
12593         * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
12594         Use XCDR, XCAR, CONSP.
12595         (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
12596         (Fapply): Remove unnecessary GCPRO.
12598         * doc.c (Fsubstitute_command_keys): Remove spurious casts.
12600         * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
12602         * buffer.h: Don't hardcode BEG==1.
12604         * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
12606 2003-04-16  Richard M. Stallman  <rms@gnu.org>
12608         * xdisp.c (try_window, try_window_reusing_current_matrix):
12609         When at end of window, set window_end_pos to Z-ZV.
12611         * buffer.c (Foverlay_recenter): Doc fix.
12613 2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
12615         * dispnew.c (Fsit_For): Support XEmacs-style arg list.
12617 2003-04-14  Andrew Choi  <akochoi@shaw.ca>
12619         * macterm.c (mac_check_for_quit_char): Don't check more often than
12620         once a second.
12622 2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
12624         * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
12625         specially, so that they can't hide an implicit switch-frame event.
12626         (make_lispy_event): Handle SELECT_WINDOW_EVENT.
12627         (head_table): Use switch-frame as event_kind for select-window.
12628         (keys_of_keyboard): Don't bind [select-window] in special-event-map.
12630         * editfns.c (Fformat): Lisp_Object/int mixup.
12631         (format2): Remove unused var numargs.
12633 2003-04-11  Kenichi Handa  <handa@m17n.org>
12635         * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
12636         (Qafter_insert_file_set_coding): New variable.
12637         (syms_of_fileio): Initialize and staticpro it.  Delete declaration
12638         for after-insert-file-adjust-coding-function.
12639         (Finsert_file_contents): Call Qafter_insert_file_set_coding
12640         instead of Vafter_insert_file_adjust_coding_function.
12642 2003-04-11  Kenichi Handa  <handa@m17n.org>
12644         * lisp.h (temp_echo_area_glyphs): Adjust prototype.
12646         * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
12647         string.  Callers changed.
12649 2003-04-10  Kenichi Handa  <handa@m17n.org>
12651         * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
12652         (syms_of_fileio): Declare it as a lisp variable.
12653         (Finsert_file_contents):
12654         Call Vafter_insert_file_adjust_coding_function before calling
12655         decode-format.
12657 2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12659         * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
12660         get GtkAdjustment as widget now is a GtkRange.
12662         * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
12663         GtkRange to avoid memory leak.
12665 2003-04-09  Kenichi Handa  <handa@m17n.org>
12667         * xfaces.c (Vface_font_rescale_alist): New variable.
12668         (struct font_name): New member rescale_ratio.
12669         (font_rescale_ratio): New function.
12670         (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
12671         (better_font_p): On comparing point sized, pay attention to
12672         recale_ratio member of fonts.
12673         (build_scalable_font_name): Reflect font->rescale_ratio in the
12674         font name.
12675         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12677         * lread.c (read1): Before calling index, check if the 2nd
12678         arguemnt is in ASCII range.
12680 2003-04-08  Richard M. Stallman  <rms@gnu.org>
12682         * fileio.c (Ffile_symlink_p): Doc fix.
12684         * editfns.c (Fformat): Translate positions of text properties
12685         in the format string to apply them to the result.
12687         * fileio.c (Finsert_file_contents): Doc fix.
12688         (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12690 2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
12692         * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
12694 2003-04-08  Steven Tamm  <steventamm@mac.com>
12696         * mac.c (init_mac_osx_environment): Switch libexec and bin so
12697         that self-contained application finds libexec files.
12699 2003-04-08  Kenichi Handa  <handa@m17n.org>
12701         * coding.c (code_convert_region_unwind):
12702         Set Vlast_coding_system_used to the argument.
12703         (code_convert_region): If post-read-conversion function changed
12704         the value of last-coding-sytem, keep the new value in
12705         coding->symbol so that it won't be overridden.
12706         (run_pre_post_conversion_on_str): Likewise.
12707         (coding_system_accept_latin_extra_p): New function.
12708         (find_safe_codings): Pay attention to characters registered in
12709         latin-extra-code-table.
12711 2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
12713         * Makefile.in (md5.o): Add missing dependency info.
12715 2003-04-06  Richard M. Stallman  <rms@gnu.org>
12717         * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
12719         * marker.c (verify_bytepos): New function.
12721         * intervals.c (set_intervals_multibyte_1): When becoming
12722         multibyte, adjust right and left child sizes to a whole set of
12723         characters.  If an interval gets zero total-length, delete it.
12724         If an interval consists of just its children, delete one of them.
12726         * intervals.h (CHECK_TOTAL_LENGTH): New macro.
12727         * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
12729         * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
12730         All calls deleted.
12731         (lisp_malloc): Do the work here directly.
12733 2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
12735         * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
12736         char tables.
12738 2003-04-04  Kenichi Handa  <handa@m17n.org>
12740         * editfns.c (Fformat): Use a copy of FORMAT string so that we can
12741         destructively change "%S" to "%s".
12743 2003-04-03  Miles Bader  <miles@gnu.org>
12745         * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
12746         always set.
12748 2003-04-01  Dave Love  <fx@gnu.org>
12750         * xfns.c (xpm_lookup_color): Grok "opaque".
12752 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
12754         * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
12755         parent window ID.
12757         * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
12759         * macterm.h (struct mac_output): Define x_pixels_diff and
12760         y_pixels_diff.
12762 2003-03-31  Juanma Barranquero  <lektu@terra.es>
12764         * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
12765         blockinput.h and files included from it.
12767 2003-03-31  Kim F. Storm  <storm@cua.dk>
12769         The following changes consolidates the common code related to
12770         frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
12771         files into frame.c.
12773         * frame.c: Include blockinput.h.
12774         (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
12775         (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
12776         (Qauto_raise, Qauto_lower, ...): Define all frame parameter
12777         related vars here.
12778         (struct frame_parm_table, frame_parms): New table for describing
12779         frame parameters and their associated Q-variable.
12780         The order of the parameters corresponds to the sequence of the
12781         frame_parm_handlers table in redisplay_interface.
12782         (x_fullscreen_move, x_set_frame_parameters)
12783         (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
12784         (x_set_screen_gamma, x_set_font, x_set_fringe_width)
12785         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12786         (x_set_autoraise, x_set_autolower, x_set_unsplittable)
12787         (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
12788         Generic functions for processing of frame parameters.
12789         (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
12790         (display_x_get_resource, x_get_resource_string): Functions for
12791         generic access to X resources.
12792         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12793         (x_default_parameter, Fx_parse_geometry): Functions for generic
12794         access to frame parameters.
12795         (x_figure_window_size): Generic calculation of frame size.
12796         Fixed to add space needed for tool bar.  Also setup size_hint_flags.
12797         (syms_of_frame): Intern and staticpro frame parameter variables.
12798         Defvar_lisp Vx_resource_class and Vx_resource_name here.
12799         Defsubr Sx_get_resource and Sx_parse_geometry.
12801         * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
12802         parameter related vars defined in frame.c.
12803         (EMACS_CLASS): Define here.
12804         (enum FULLSCREEN_*): Define here.
12805         (x_set_scroll_bar_default_width, x_wm_set_icon_position)
12806         (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
12807         (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
12808         (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
12809         (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
12810         (x_set_visibility, x_set_autoraise, x_set_autolower)
12811         (x_set_unsplittable, x_set_vertical_scroll_bars)
12812         (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
12813         (x_figure_window_size): Add prototypes.
12815         * dispextern.h (frame_parm_handler): New typedef.
12816         (struct redisplay_interface): New member frame_parm_handlers.
12817         (enum resource_types): Move declaration here.
12818         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12819         (x_default_parameter): Add prototypes.
12821         * window.c: Remove extern decl for frame parameter vars.
12822         (change_window_heights): New generic function;
12823         replaces x_change_window_heights.  All users changed.
12825         * window.h (change_window_heights): Add prototype.
12827         * xfaces.c: Remove extern decl for frame parameter vars.
12829         * xterm.h (EMACS_CLASS): Remove.  Use generic define.
12830         (struct w32_display_info): Fix type of xrdb member.
12831         (enum FULLSCREEN_*): Remove.
12832         Remove prototypes for generic functions (in frame.h).
12834         * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12835         parameters now defined in frame.h and frame.c.
12836         (Vx_resource_name): Remove.  Use generic var.
12837         (enum x_frame_parms): Remove (bogus, unused enum).
12838         (check_x_display_info): Make non-static (for frame.c).
12839         (struct x_frame_parm_table, x_frame_parms): Remove.
12840         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12841         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12842         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12843         (x_change_window_heights, x_set_autoraise, x_set_autolower)
12844         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12845         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12846         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12847         Remove.  Use generic functions instead.
12848         (enum resource_types): Remove.
12849         (x_set_scroll_bar_default_width): New global function (for frame.c).
12850         (Fx_create_frame): Depend on x_figure_window_size to add space for
12851         toolbar and setup size_hint_flags.
12852         (x_frame_parm_handlers): New table for redisplay_interface.
12853         (syms_of_xfns): Don't intern/staticpro removed vars.
12855         * xterm.c: Remove unnecessary extern declarations.
12856         (x_fullscreen_adjust): Remove.  Use generic instead.
12857         (x_redisplay_interface): Add x_frame_parm_handlers member.
12859         * w32gui.h (XrmDatabase): New (dummy) typedef.
12861         * w32term.h (EMACS_CLASS): Remove.  Use generic define.
12862         (struct w32_display_info): Fix type of xrdb member.
12863         (enum FULLSCREEN_*): Remove.
12864         (x_fullscreen_adjust): Remove prototype.
12866         * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12867         parameters now defined in frame.h and frame.c.
12868         (Vx_resource_name): Remove.  Use generic var.
12869         (enum x_frame_parms): Remove (bogus, unused enum).
12870         (check_x_display_info): Make non-static (for frame.c).
12871         (struct x_frame_parm_table, x_frame_parms): Remove.
12872         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12873         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12874         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12875         (x_change_window_heights, x_set_autoraise, x_set_autolower)
12876         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12877         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12878         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12879         Remove.  Use generic functions instead.
12880         (enum resource_types): Remove.
12881         (x_set_scroll_bar_default_width): New global function (for frame.c).
12882         (Fx_create_frame): Depend on x_figure_window_size to add space for
12883         toolbar and setup size_hint_flags.
12884         (w32_frame_parm_handlers): New table for redisplay_interface.
12885         (syms_of_w32fns): Don't intern/staticpro removed vars.
12887         * w32term.c: Remove unnecessary extern declarations.
12888         (x_fullscreen_adjust): Remove.  Use generic instead.
12889         (x_redisplay_interface): Add w32_frame_parm_handlers member.
12891         * w32reg.c (x_get_string_resource): Use XrmDatabase.
12893         * macgui.h (XrmDatabase): New (dummy) typedef.
12895         * macterm.h (EMACS_CLASS): Remove.
12896         (struct mac_display_info): Add xrdb member.
12897         (struct mac_output): Add want_fullscreen member.
12899         * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12900         parameters now defined in frame.h and frame.c.
12901         (Vx_resource_name): Remove.  Use generic var.
12902         (check_x_display_info): Make non-static (for frame.c).
12903         (struct x_frame_parm_table, x_frame_parms): Remove.
12904         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12905         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12906         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12907         (x_change_window_heights, x_set_autoraise, x_set_autolower)
12908         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12909         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12910         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12911         Remove.  Use generic functions instead.
12912         (enum resource_types): Remove.
12913         (x_set_scroll_bar_default_width): New global function (for frame.c).
12914         (mac_frame_parm_handlers): New table for redisplay_interface.
12915         (syms_of_macfns): Don't intern/staticpro removed vars.
12917         * macterm.c: Remove unnecessary extern declarations.
12918         (x_redisplay_interface): Add mac_frame_parm_handlers member.
12920         * Makefile.in (frame.o): Add dependency on blockinput.h and files
12921         included from it (atimer.h and systime.h).
12923 2003-03-30  Andreas Schwab  <schwab@suse.de>
12925         * xdisp.c (x_insert_glyphs): Fix swapped width and height
12926         parameters for shift_glyphs_for_insert.
12928         * macterm.c (x_redisplay_interface): Add missing entry for
12929         draw_vertical_window_border.
12931 2003-03-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
12933         * fileio.c (Fexpand_file_name): In the no-handler case, after
12934         expanding, look again for a handler and invoke it.  This is needed
12935         for filenames like "/foo/../user@host:/bar/../baz" -- the first
12936         expansion produces "/user@host:/bar/../baz" which needs to be
12937         expanded again for the finame result "/user@host:/baz".
12939 2003-03-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12941         * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
12942         of area to be redrawn for better performance.
12944 2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>
12946         * xterm.c (take_vertical_position_into_account): Remove.
12947         (xt_action_hook): Call set_vertical_scroll_bar if needed.
12948         (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
12949         (xm_scroll_callback, x_create_toolkit_scroll_bar)
12950         (x_set_toolkit_scroll_bar_thumb): Simplify.
12951         (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
12952         (XTread_socket): Remove unused var.
12953         (x_make_frame_invisible): Replace goto with else.
12955         * xdisp.c (set_vertical_scroll_bar): New fun.
12956         (redisplay_window): Use it.
12958 2003-03-26  Richard M. Stallman  <rms@gnu.org>
12960         * xdisp.c (update_tool_bar): Recompute tool bar if
12961         update_mode_lines is set.  Set w->update_mode_line
12962         only if the tool bar contents actually change.
12963         (update_menu_bar): Undo previous change.
12965 2003-03-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12967         * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
12968         (xg_frame_set_char_size): Calculate scroll bar width before frame
12969         width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
12970         (xg_separator_p): Check for all documented separator types.
12971         (xg_update_scrollbar_pos): Variable gheight not needed, use height.
12972         (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
12974         * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
12975         so tool bar gets updated.
12977 2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>
12979         * data.c (store_symval_forwarding): Re-instate part of the code
12980         that was deleted with too much enthusiasm.
12982 2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>
12984         * data.c (store_symval_forwarding): Delete special read-only
12985         hack for type == -1, since we now use ->constant instead.
12986         (Fkill_local_variable): Don't use XBUFFER if it can be nil.
12988         * buffer.c (overlays_in): Declare static.
12989         (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
12990         `constant' field rather than the variable's `type' field.
12992 2003-03-24  Andrew Choi  <akochoi@shaw.ca>
12994         * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
12996         * dispextern.h [HAVE_CARBON]: Include Carbon.h.
12998         * fns.c [MAC_OSX]: Do not redefine vector.
13000         * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
13002         * macgui.h: Remove definition of No_Cursor.
13004         * macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
13006         * xdisp.c: Define No_Cursor.
13007         (x_write_glyphs, notice_overwritten_cursor)
13008         (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
13009         (note_mouse_highlight): Remove Mac-specific code.
13010         (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
13012 2003-03-24  John Paul Wallington  <jpw@gnu.org>
13014         * xdisp.c (redisplay_window): If mini window's buffer is not
13015         empty, then redisplay it like other windows.
13017 2003-03-23  Kim F. Storm  <storm@cua.dk>
13019         * w32term.c (w32_draw_window_cursor): Fix last change.
13021 2003-03-23  Kenichi Handa  <handa@m17n.org>
13023         * alloc.c (make_string_from_bytes, make_specified_string):
13024         Add `const' for the arg CONTENTS.
13026         * lisp.h (make_string_from_bytes, make_specified_string):
13027         Prototypes adjusted.
13029 2003-03-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13031         * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
13033         * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
13034         (XG_SB_RANGE): New define.
13036         * gtkutil.c (xg_fixed_handle_expose): New function.
13037         (xg_create_frame_widgets): Call xg_fixed_handle_expose for
13038         expose events.
13039         (xg_update_scrollbar_pos): Take two more arguments, left and width
13040         of scroll bar including borders.
13041         Clear left and right part outside scroll bar separately as some
13042         themes have bars that are not an even number of pixels.
13043         Don't set reallocate_redraws, don't call
13044         gdk_window_process_all_updates.
13045         (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
13046         so no need to change it.  Calculate size and value with XG_SB_RANGE.
13048         * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
13049         Pass left and width of scroll bar including borders to
13050         xg_update_scrollbar_pos.
13052 2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>
13054         * Makefile.in: Make sure space precedes end-of-line backslashes.
13056 2003-03-22  Kim F. Storm  <storm@cua.dk>
13058         * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
13059         Add generic versions here.  Remove system specific versions
13060         defined elsewhere.
13062         * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
13063         Add prototypes.
13065         * xterm.h (STORE_NATIVE_RECT): New macro.
13067 2003-03-21  Kim F. Storm  <storm@cua.dk>
13069         * xdisp.c (get_glyph_string_clip_rect):
13070         Use FRAME_INTERNAL_BORDER_WIDTH.
13072         * dispextern.h (struct redisplay_interface): Add active_p
13073         argument to draw_window_cursor member.  All uses changed.
13075 2003-03-21  Kim F. Storm  <storm@cua.dk>
13077         The following changes consolidate code related to writing and
13078         inserting glyphs, exposing frame, the tool bar, the mouse face,
13079         the output cursor, and help echo from xterm.c, w32term.c and
13080         macterm.c into xdisp.c.  It also generalizes the use of the
13081         window_part enum instead of using numeric values throughout.
13083         * xdisp.c: Consolidate gui-independent code here.
13084         Include keymap.h.
13085         (Qhelp_echo): Import.
13086         (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
13087         (help_echo_string, help_echo_window, help_echo_object)
13088         (previous_help_echo_string, help_echo_pos): Declare here.
13089         (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
13090         (estimate_mode_line_height): Define here.  Handle windowing
13091         systems directly (without using estimate_mode_line_height_hook).
13092         (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
13093         (update_window_cursor, update_cursor_in_window_tree)
13094         (fast_find_position, fast_find_string_pos)
13095         (note_mode_line_highlight, note_mode_line_or_margin_highlight)
13096         (expose_area, expose_line, expose_overlaps, expose_window)
13097         (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
13098         declared static as they are only used locally in xdisp.c.
13099         (draw_glyphs): Rename from x_draw_glyphs and make static.
13100         (tool_bar_item_info, notice_overwritten_cursor): Make static.
13101         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13102         (set_output_cursor, x_cursor_to, handle_tool_bar_click)
13103         (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
13104         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13105         (display_and_set_cursor, x_update_cursor, x_clear_cursor)
13106         (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
13107         (note_mouse_highlight, x_clear_window_mouse_face)
13108         (cancel_mouse_face, x_draw_vertical_border, expose_frame)
13109         (x_intersect_rectangles): New generic functions for use by xdisp.c
13110         and GUI front-ends.
13111         (syms_of_xdisp): Initialize and staticpro help_echo* variables.
13112         Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
13114         * dispextern.h (Display_Info): Generic typedef for *_display_info.
13115         (NativeRectangle): Generic typedef for rectangle type.
13116         (enum window_part): Move here from window.c.
13117         (struct redisplay_interface): New members flush_display_optional,
13118         define_frame_cursor, clear_frame_area, draw_window_cursor,
13119         draw_vertical_window_border, shift_glyphs_for_insert.
13120         Rename member clear_mouse_face to clear_window_mouse_face.
13121         (estimate_mode_line_height_hook): Remove hook.
13122         (auto_raise_tool_bar_buttons_p): Don't declare extern.
13123         (tool_bar_item_info): Remove prototype.
13124         (help_echo_string, help_echo_window, help_echo_object)
13125         (previous_help_echo_string, help_echo_pos)
13126         (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
13127         (x_stretch_cursor_p, output_cursor): Declare extern.
13128         (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
13129         (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
13130         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13131         (display_and_set_cursor, set_output_cursor, x_cursor_to)
13132         (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
13133         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13134         (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
13135         (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
13136         (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
13137         Add prototypes.
13138         (mode_line_string, marginal_area_string): Fix prototypes.
13140         * window.c (enum window_part): Move to dispextern.h.
13141         (coordinates_in_window): Use enum window_part member names
13142         instead of numbers to describe return value.
13143         (struct check_window_data): Change part member to window_part.
13144         (check_window_containing): Return window_part unaltered.
13145         (window_from_coordinates): Change part arg from int to enum
13146         window_part.  Allow part arg to be null.  All users changed.
13148         * window.h (window_from_coordinates): Fix prototype.
13150         * term.c (estimate_mode_line_height): Move to xdisp.c.
13152         * keyboard.c (make_lispy_event): Use enum window_part.
13154         * dispnew.c (mode_line_string, marginal_area_string): Use enum
13155         window_part instead of int in arg list.  Users changed.
13157         * xterm.h (No_Cursor): Declare as None for X.
13158         (struct mac_output): Replace member cross_cursor by hand_cursor.
13160         * xterm.c: Remove consolidated defines and code.
13161         (BETWEEN): Remove unused macro.
13162         (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
13163         (x_define_frame_cursor, x_clear_frame_area)
13164         (x_draw_window_cursor): New X-specific functions for RIF.
13165         (x_redisplay_interface): Add new members.
13167         * xfns.c: Setup and use hand_cursor instead of cross_cursor.
13169         * w32term.h (struct w32_output): Remove cross_cursor member.
13171         * w32term.c: Remove consolidated defines and code.
13172         (BETWEEN): Remove unused macro.
13173         (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
13174         (w32_define_frame_cursor, w32_clear_frame_area)
13175         (w32_draw_window_cursor): New W32-specific functions for RIF.
13176         (w32_redisplay_interface): Add new members.
13178         * w32gui.h (No_Cursor): Define as 0 for W32.
13179         (XRectangle): Add X compatible rectangle type.
13180         (NativeRectangle): Declare as RECT for W32.
13181         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13183         * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
13185         * w32console.c: Remove consolidated defines and code.
13187         * msdos.h (Display_Info): Add generic typedef.
13189         * msdos.c: Remove consolidated defines and code.
13190         (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
13192         * macterm.h (struct mac_output): Replace member cross_cursor by
13193         hand_cursor.
13194         (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
13196         * macterm.c: Remove consolidated defines and code.
13197         (BETWEEN): Remove unused macro.
13198         (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
13199         (mac_define_frame_cursor, mac_clear_frame_area)
13200         (mac_draw_window_cursor): New Mac-specific functions for RIF.
13201         (x_redisplay_interface): Add new members.
13203         * macgui.h (No_Cursor): Define as 0 for Mac.
13204         (XRectangle): Add X compatible rectangle type.
13205         (NativeRectangle): Declare as Rect for Mac.
13206         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13208         * macfns.c (x_set_mouse_color): Setup hand_cursor.
13209         (x_set_cursor_color): Use x_display_and_set_cursor.
13211         * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
13212         included from it.  Add dependency on keymap.h.
13214         * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
13216 2003-03-21  Kenichi Handa  <handa@m17n.org>
13218         * fileio.c (Fexpand_file_name): Fix previous change.
13220 2003-03-19  Kenichi Handa  <handa@m17n.org>
13222         * fileio.c (Ffile_name_directory): Reconstruct file name by
13223         make_specified_string.
13224         (Ffile_name_nondirectory, Ffile_name_as_directory)
13225         (Fdirectory_file_name, Fexpand_file_name)
13226         (Fsubstitute_in_file_name): Likewise.
13227         (Fread_file_name): Compare decoded homedir with DIR and
13228         DEFAULT_FILENAME.
13230         * alloc.c (make_specified_string): If NCHARS is negative, count
13231         the number of characters.
13233 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13235         * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
13236         all widgets.
13238         * gtkutil.h: Removed xg_ignore_next_thumb.
13240 2003-03-18  Kenichi Handa  <handa@m17n.org>
13242         * coding.c (Vchar_coding_system_table): Remove this variable.
13243         (Vcoding_system_safe_chars): New variable.
13244         (intersection): Remove this function.
13245         (find_safe_codings): Don't use Vchar_coding_system_table, but try
13246         all codings in SAFE_CODINGS.
13247         (Ffind_coding_systems_region_internal): Adjust for the change of
13248         find_safe_codings.  Get generic coding systems from
13249         Vcoding_system_safe_chars.
13250         (Fdefine_coding_system_internal): New function.
13251         (syms_of_coding): Defsubr Sdefine_coding_system_internal.
13252         Initialize and staticpro Vcoding_system_safe_chars.
13254 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13256         * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
13257         equal old values before updating.
13259         * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
13261         * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
13263 2003-03-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13265         * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
13266         (xg_resize_widgets): Don't call foreach(handle_fixed_child).
13267         (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
13268         (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
13269         (xg_create_scroll_bar): Pass bar to button event callback.
13270         (xg_find_top_left_in_fixed): New function.
13271         (xg_update_scrollbar_pos): Don't call gdk_window_clear on
13272         whole scroll bar area.  Get old position with
13273         xg_find_top_left_in_fixed, calculate and only clear needed areas.
13274         (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
13275         dragging is in progress.  Calculate whole as for Motif.
13276         Remove code that saved last values.  Call gtk_range functions to
13277         set scroll bar sizes.
13279         * gtkutil.h: Removed xg_ignore_next_thumb.
13281 2003-03-17  Juanma Barranquero  <lektu@terra.es>
13283         * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
13284         and files included from it.
13286 2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>
13288         * keymap.c (accessible_keymaps_1): Break cycles but without preventing
13289         multiple occurrences of the same keymap under different prefixes.
13290         (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
13292 2003-03-16  Jason Rumney  <jasonr@gnu.org>
13294         * w32gui.h: Use HDC for Display.
13296         * w32term.c (w32_encode_char): Prevent double-byte chars from
13297         crashing Emacs.
13299         * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
13300         as binary.
13302 2003-03-16  Juanma Barranquero  <lektu@terra.es>
13304         * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
13306 2003-03-16  Kim F. Storm  <storm@cua.dk>
13308         The following changes consolidate some of the gui-independent
13309         parts of the processing and drawing of "glyph strings" from
13310         xterm.c, w32term.c, and macterm.c into xdisp.c.
13312         * dispextern.h (struct glyph): Reduce face_id member from 22 to
13313         21 bits (this reduces number of faces from 4M to 2M).
13314         Replace W32 specific w32_font_type member (2 bits) by generic
13315         font_type member (3 bits) for portability.
13316         (FONT_TYPE_UNKNOWN): New define, default for font_type member.
13317         (enum draw_glyphs_face): Define here.
13318         (struct glyph_string): Define here.  Merge W32 and X versions.
13319         (struct redisplay_interface): New members per_char_metric,
13320         encode_char, compute_glyph_string_overhangs, draw_glyph_string.
13321         (VCENTER_BASELINE_OFFSET): Define here.
13322         (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
13323         (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
13325         * xdisp.c: Consolidate gui-independent "glyph string" code here.
13326         (dump_glyph_string): Moved here.
13327         (init_glyph_string, append_glyph_string_lists, append_glyph_string)
13328         (prepend_glyph_string_lists, get_glyph_face_and_encoding)
13329         (fill_composite_glyph_string, fill_glyph_string)
13330         (fill_image_glyph_string, fill_stretch_glyph_string)
13331         (left_overwritten, left_overwriting, right_overwritten)
13332         (right_overwriting, get_char_face_and_encoding)
13333         (set_glyph_string_background_width, compute_overhangs_and_x)
13334         (append_glyph, append_composite_glyph, produce_image_glyph)
13335         (take_vertical_position_into_account, append_stretch_glyph)
13336         (produce_stretch_glyph): New generic functions (based on X version).
13337         Call platform specific functions through rif.
13338         (INIT_GLYPH_STRING): New macro, hides W32 details.
13339         (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
13340         (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
13341         (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
13342         (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
13343         (notice_overwritten_cursor):
13344         Generic functions exported to platform modules.  Users changed.
13346         * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
13347         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
13348         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
13349         New macros for consolidated code.
13351         * xterm.c: Remove consolidated defines and code.
13352         (x_per_char_metric, x_encode_char)
13353         (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
13354         (x_redisplay_interface): Add new members.
13356         * w32gui.h (Display): Add dummy typedef for consolidation.
13357         (XChar2b): Define alias for wchar_t for consolidation.
13358         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13360         * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
13361         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
13362         New macros for consolidation.
13364         * w32term.c: Remove consolidated defines and code.
13365         (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
13366         to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
13367         (w32_per_char_metric): Change font_type arg to int for RIF.
13368         (w32_encode_char): Return int according to RIF requirements.
13369         (w32_compute_glyph_string_overhangs): Adapt to RIF.
13370         (w32_get_glyph_overhangs): New function for RIF.  Uses generic
13371         x_get_glyph_overhangs.
13372         (w32_redisplay_interface): Add new members.
13374         * macgui.h (XChar2b): Move typedef here for consolidation.
13375         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13377         * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
13378         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
13379         consolidation.
13381         * macterm.c: Remove consolidated defines and code.
13382         (mac_per_char_metric): New function for RIF.
13383         (mac_encode_char): Adapt to new RIF requirements.
13384         (mac_compute_glyph_string_overhangs): Adapt for RIF.
13385         (x_redisplay_interface): Add new members.
13387 2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>
13389         * keymap.c (Vmenu_events): New var.
13390         (syms_of_keymap): Initialize it.
13391         (where_is_internal): Check more carefully what is a menu event.
13393 2003-03-14  Richard M. Stallman  <rms@gnu.org>
13395         * lread.c (read1): After #!, exit loop on eof.
13397 2003-03-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13399         * gtkutil.h: Add declaration for xg_frame_cleared.
13401         * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
13403         * gtkutil.c (struct xg_last_sb_pos): New structure.
13404         (handle_fixed_child): New function.
13405         (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
13406         and force a redraw on them.
13407         (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
13408         (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
13409         so we can avoid unneeded redraws.
13410         (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
13411         and force a redraw on the scroll bar.
13412         (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
13413         if xg_last_sb_pos shows the positions are up to date.
13414         (xg_frame_cleared): New function.
13416 2003-03-13  Kenichi Handa  <handa@m17n.org>
13418         * coding.c (Fdetect_coding_region): Fix docstring.
13419         (Fdetect_coding_string): Fix docstring.
13421 2003-03-13  Andreas Schwab  <schwab@suse.de>
13423         * gtkutil.c: Add prototype for create_menus.
13425         * data.c (long_to_cons): Fix type of top.
13427         * xselect.c (selection_data_to_lisp_data): Use int instead of
13428         long for an integer of size 4.
13430         * gtkutil.c (xg_update_frame_menubar): Add missing return value.
13431         (xg_tool_bar_help_callback): Likewise.
13433 2003-03-12  Andreas Schwab  <schwab@suse.de>
13435         * xterm.c (x_term_init) [USE_GTK]: Fix typo.
13437 2003-03-12  Kim F. Storm  <storm@cua.dk>
13439         The following changes consolidate the fringe handling from
13440         xterm.c, w32term.c, and macterm.c into xdisp.c.
13442         * xdisp.c: Consolidate fringe handling code here.
13443         (left_bits, right_bits, continued_bits, continuation_bits)
13444         (ov_bits, zv_bits): Define fringe bitmaps.
13445         (fringe_bitmaps): New array holding fringe bitmaps.
13446         (draw_fringe_bitmap): Draw a specific bitmap; call display
13447         specific drawing routine via rif->draw_fringe_bitmap.
13448         (draw_row_fringe_bitmaps): Generic replacement for
13449         x_draw_row_fringe_bitmaps; all callers changed.
13450         (compute_fringe_widths): Generic replacement for
13451         x_compute_fringe_widths; all callers changed.
13453         * dispextern.h (enum fringe_bitmap_type): Define here.
13454         (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
13455         (fringe_bitmaps): Declare extern.
13456         (struct redisplay_interface): New member draw_fringe_bitmap.
13457         (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
13459         * xterm.c: Remove generic fringe code.
13460         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13461         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13463         * w32term.c: Remove generic fringe code.
13464         (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
13465         (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
13467         * macterm.c: Remove generic fringe code.
13468         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13469         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13471 2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>
13473         * print.c (Fprin1_to_string): Return unibyte string if possible.
13475 2003-03-09  David Kastrup  <dak@gnu.org>
13477         * process.c (read_process_output): We have allocated enough space
13478         for readmax and carryover, so actually use the alloted space.
13480 2003-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13482         * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
13483         toolkit scrollbar click.
13485         * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
13486         for USE_GTK.
13487         (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
13488         also.
13489         (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
13490         scrollbar and control is pressed, call x_scroll_bar_handle_click.
13492         * gtkutil.h (xg_get_scroll_id_for_window): Declare.
13494         * gtkutil.c (xg_get_scroll_id_for_window): New function.
13495         (xg_tool_bar_item_expose_callback): New function.
13496         (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
13497         (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
13498         on the tool bar widget.
13499         (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
13500         to expose on the tool bar item widgets.
13502 2003-03-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13504         * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
13505         struct image* when deciding to update (struct image* may have been
13506         deleted from the image cache).
13508         * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
13509         the event isn't for a frame (i.e. for dialogs).
13511 2003-03-07  Kenichi Handa  <handa@m17n.org>
13513         * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
13514         composition components reaches the limit, terminate composing.
13515         (COMPOSITION_OK): New macro.
13516         (detect_coding_iso2022): Use it if an escape sequence for
13517         composition is found.
13518         (coding_restore_composition): Adjust the number of composition
13519         components if it is not sane.
13521 2003-03-06  Juanma Barranquero  <lektu@terra.es>
13523         * w32term.h (struct w32_display_info): Add xrdb member to support
13524         passing resources via -xrm on Windows.
13526         * w32term.c (w32_make_rdb): New function.
13527         (w32_term_init): Use it to initialize xrdb member of w32_display_info
13528         struct.  Delete leftover code.
13530         * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
13531         for resources passed on the command line.
13533         * w32reg.c (w32_get_rdb_resource): New function.
13534         (x_get_string_resource): Use it, so resources passed with -xrm
13535         supercede the ones in the registry.
13537 2003-03-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13539         * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
13540         instead of x_top_window_to_frame.
13542 2003-03-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13544         * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
13545         when restarting Emacs.
13547 2003-03-03  Richard M. Stallman  <rms@gnu.org>
13549         * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
13550         to run kill-buffer-query-functions.
13551         (Qkill_buffer_query_functions): New var.
13552         (syms_of_buffer): Init and staticpro it.
13554 2003-03-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13556         * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
13558 2003-02-25  Kim F. Storm  <storm@cua.dk>
13560         * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
13561         If centering point failed to make whole line visible and vscroll
13562         is non-zero, disable vscroll and try centering point again.
13564         * lread.c (read1): Accept `single space' syntax like (? x).
13566 2003-02-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13568         * keyboard.c (cancel_hourglass_unwind): Surround with
13569         #ifdef HAVE_X_WINDOWS
13571 2003-02-25  Kenichi Handa  <handa@m17n.org>
13573         * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
13574         process only when "subprocesses" is defined.
13576 2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>
13578         * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
13580 2003-02-24  Juanma Barranquero  <lektu@terra.es>
13582         * callint.c (fix_command): Declare as static void and move before
13583         Fcall_interactively.
13585         * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
13586         (syms_of_xdisp): Don't initialize Qwhen.
13588 2003-02-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13590         * keyboard.c (cancel_hourglass_unwind): New function.
13591         (command_loop_1): Cancel hourglass with unwind-protect.
13593 2003-02-23  Richard M. Stallman  <rms@gnu.org>
13595         * callint.c (fix_command): New subroutine, from Fcall_interactively.
13596         Detect (when ... (region-beginning)) etc.
13597         (Fcall_interactively): Call fix_command.
13598         (Qif, Qwhen): New variables.
13599         (syms_of_callint): Init and staticpro them.
13601         * regex.c (print_partial_compiled_pattern): Output to stderr.
13603 2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
13605         * dired.c (directory_files_internal): Don't expand directory.
13606         (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
13607         instead.  From Lars Hansen <larsh@math.ku.dk>.
13609 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
13611         * fns.c (string_to_multibyte): Remove unused var i.
13612         (Flanginfo): Fix int/Lisp_Object mixup.
13613         (void_call2): New fun.
13614         (Fmap_char_table): Use it in place of call2.
13616         * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
13618         * macros.c (Fstart_kbd_macro): Remove redundant assignment.
13620         * keymap.c (copy_keymap_1): Make it static.
13622         * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
13624 2003-02-22  David Ponce  <david@dponce.com>
13626         * lread.c (Fload): Don't check STRING_MULTIBYTE.
13628 2003-02-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13630         * process.h: Removed subtty field from struct Lisp_Process.
13632         * process.c (create_process): Remove setting of subtty.
13633         (emacs_get_tty_pgrp): New function.
13634         (Fprocess_running_child_p, process_send_signal):
13635         Call emacs_get_tty_pgrp instead of ioctl.
13636         (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
13638 2003-02-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
13640         * keymap.c (Fdefine_key): Doc fix.
13642 2003-02-21  Juanma Barranquero  <lektu@terra.es>
13644         Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
13646         * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
13647         POLLING_PROBLEM_IN_SELECT.
13649         * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
13650         Delete #undef of POLLING_PROBLEM_IN_SELECT.
13652         * s/hpux10-20.h: New file.
13654         * process.c (wait_reading_process_input):
13655         Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
13657 2003-02-20  Kenichi Handa  <handa@m17n.org>
13659         * fontset.c (check_fontset_name): If NAME is nil, return the
13660         default fontset.
13661         (override_font_info): New function.
13662         (Fset_fontset_font): Document that NAME nil means the default fontset.
13663         (Ffontset_info): If FONTSET is not the default fontset, merge
13664         FONTSET onto the copy of the default fontset, and work on that
13665         copy.  Document that NAME nil means the default fontset.
13666         (Ffontset_font): Document that NAME nil means the default fontset.
13668         * process.c (setup_process_coding_systems): If the process's
13669         in/out descriptor is -1, do nothing.
13671 2003-02-19  Andreas Schwab  <schwab@suse.de>
13673         * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
13674         Add prototypes.
13676 2003-02-19  Kenichi Handa  <handa@m17n.org>
13678         * xfaces.c (try_alternative_families): Try all scalable fonts if
13679         Vscalable_fonts_allowed is not Qt.
13681 2003-02-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13683         * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
13685 2003-02-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13687         * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
13688         names.
13690         * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
13691         (sorted_font_list): Move allocation of struct font_name to
13692         x_face_list_fonts.
13693         (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
13694         (Fx_list_fonts): Set maxnames to -1 to get all font names.
13696 2003-02-18  Kim F. Storm  <storm@cua.dk>
13698         * lread.c (read1): Fix last change.
13699         "`" is not always special.  Allow "?" after a character constant.
13701 2003-02-18  Andrew Choi  <akochoi@shaw.ca>
13703         * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
13705 2003-02-18  Andreas Schwab  <schwab@suse.de>
13707         * window.c (window_scroll_pixel_based): Move outside a
13708         multi-glyph character before setting new window start.
13710         * xdisp.c (in_display_vector_p): New function.
13711         * dispextern.h (in_display_vector_p): Declare.
13713 2003-02-18  Kim F. Storm  <storm@cua.dk>
13715         * lread.c (read1): Fix and relax read syntax.
13716         Recognize "[", ";", "#", and "?" after a dotted-pair dot.
13717         Only recognize "," after dotted-pair dot if inside backquote.
13718         Never include "`" or "," (inside backquote) in a symbol.
13719         Allow dotted-pair dot after a character constant.
13720         Allow "`" and "," (inside backquote) after a character constant.
13722 2003-02-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13724         * gtkutil.c (xg_tool_bar_expose_callback): New function.
13725         (xg_create_tool_bar): Force style of tool bar to be horizontal with
13726         icons.  Set name of tool bar to emacs-toolbar.
13727         (update_frame_tool_bar): Connect expose event to
13728         xg_tool_bar_expose_callback.
13730 2003-02-17  Richard M. Stallman  <rms@gnu.org>
13732         * keyboard.c (this_command_key_count_reset): New variable.
13733         Initiatize to 0 where this_command_key_count is set.
13734         (read_char): Save and restore this_command_key_count_reset
13735         around input method code.
13736         (read_char): If this_command_key_count_reset, echo reread commands.
13737         (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
13739 2003-02-17  Kenichi Handa  <handa@m17n.org>
13741         * fns.c (string_to_multibyte): Always return a multibyte string.
13743 2003-02-16  Jason Rumney  <jasonr@gnu.org>
13745         * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
13746         Negative max_fonts parameter means list all.
13748 2003-02-14  Dave Love  <fx@gnu.org>
13750         * fns.c (Flanginfo): Doc fix.
13752 2003-02-13  Kim F. Storm  <storm@cua.dk>
13754         * lread.c (read_escape): Interpret \s as a SPACE character, except
13755         for \s-X in a character constant which still is the super modifier.
13756         (read1): Signal an `invalid read syntax' error if a character
13757         constant is immediately followed by a digit or symbol character.
13759         * search.c (Fmatch_data): Doc fix.  Explicitly state that
13760         match-data is undefined if last search failed.
13762         * keymap.c (Fcommand_remapping): Rename from Fremap_command.
13763         All uses changed.
13765 2003-02-12  Juanma Barranquero  <lektu@terra.es>
13767         * eval.c (Fdefmacro): Fix typo.
13769 2003-02-12  Kim F. Storm  <storm@cua.dk>
13771         * macros.c (Fstart_kbd_macro): If appending, and last keyboard
13772         macro is a string, convert meta modifiers in string when copying
13773         the string into a vector.
13775 2003-02-11  Kim F. Storm  <storm@cua.dk>
13777         * keymap.c (Fremap_command): Return nil if arg is not a symbol.
13779 2003-02-11  Kenichi Handa  <handa@m17n.org>
13781         * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
13783 2003-02-10  Kim F. Storm  <storm@cua.dk>
13785         * process.c: Doc fixes.
13786         (syms_of_process): Add `:' prefix to QCfilter_multibyte.
13788 2003-02-10  Kenichi Handa  <handa@m17n.org>
13790         * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
13792         * process.c (QCfilter_multibyte): New variable.
13793         (setup_process_coding_systems): New function.
13794         (Fset_process_buffer, Fset_process_filter):
13795         Call setup_process_coding_systems.
13796         (Fstart_process): Initialize the member `filter_multibyte' of
13797         struct Lisp_Process.
13798         (create_process): Call setup_process_coding_systems.
13799         (Fmake_network_process): New keyward `:filter-multibyte'.
13800         Initialize the member `filter_multibyte' of struct Lisp_Process.
13801         Call setup_process_coding_systems.
13802         (server_accept_connection): Call setup_process_coding_systems.
13803         (read_process_output): If the process has a filter, decide the
13804         multibyteness of a string to given to the filter by
13805         `filter_multibyte' member of the process.  If the process doesn't
13806         have a filter and the result of conversion is unibyte, use
13807         Fstring_to_multibyte (not Fstring_make_multibyte) to get the
13808         multibyte form.
13809         (Fset_process_coding_system): Call setup_process_coding_systems.
13810         (Fset_process_filter_multibyte): New function.
13811         (Fprocess_filter_multibyte_p): New function.
13812         (syms_of_process): Intern and staticpro QCfilter_multibyte.
13813         Defsubr Sset_process_filter_multibyte and
13814         Sprocess_filter_multibyte_p.
13816         * process.h (struct Lisp_Process): New member filter_multibyte.
13818         * lisp.h (setup_process_coding_systems): Add prototype.
13820         * buffer.c (Fset_buffer_multibyte): If the current buffer has a
13821         process, update coding systems for the process.
13823 2003-02-09  Kenichi Handa  <handa@m17n.org>
13825         * fns.c (string_to_multibyte): New function.
13826         (Fstring_to_multibyte): New function.
13827         (syms_of_fns): Defsubr it.
13829 2003-02-08  Andreas Schwab  <schwab@suse.de>
13831         * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
13832         instead of the substitution.
13834 2003-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13836         * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
13838         * xmenu.c (menu_position_func): Adjust menu popup position so that
13839         the menu is fully visible.
13841 2003-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13843         * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
13844         (x_make_frame_invisible, x_wm_set_icon_position):
13845         Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
13847         * xfns.c (x_set_name, x_set_title): Ditto.
13849 2003-02-04  Richard M. Stallman  <rms@gnu.org>
13851         * keyboard.c (echo_now): Update before_command_echo_length.
13852         (Freset_this_command_lengths): Reset this_command_key_count etc.
13853         immediately rather than arranging to do it later.
13854         (before_command_key_count_1, before_command_echo_length_1)
13855         (before_command_restore_flag): Vars deleted.
13856         (add_command_key): Don't handle before_command_restore_flag.
13857         (read_char, record_menu_key): Don't update before_command_key_count or
13858         before_command_echo_length.
13859         (read_char): Don't handle before_command_restore_flag.
13861         * keyboard.c (command_loop_1): Don't call adjust_point_for_property
13862         in direct-output clauses if it wouldn't be called in the ordinary case.
13864 2003-02-04  Kim F. Storm  <storm@cua.dk>
13866         * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
13868 2003-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13870         * gtkutil.c (remove_from_container): Copying list is not needed.
13871         (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
13872         (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
13873         on list returned from gtk_container_get_children to avoid memory leak.
13875 2003-02-01  Jason Rumney  <jasonr@gnu.org>
13877         * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
13878         local malloc.
13879         [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
13880         definitions in xpm.h.
13881         (init_xpm_functions): New function.
13882         (xpm_load): Sync with xfns.c.  Adapt for Windows version of libXpm.
13883         (init_external_image_libraries): Try to load libXpm.dll.
13885         * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
13886         timestamp.
13888 2003-01-31  Dave Love  <fx@gnu.org>
13890         * syntax.c (Fskip_chars_forward)
13891         (open-paren-in-column-0-is-defun-start): Doc fix.
13893 2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>
13895         * fileio.c: Support // at start of name for Cygwin (just added proper
13896         preprocessor tests).
13898         * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
13900         * Makefile.in: Use @EXEEXT@ for Cygwin.
13902         * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
13904         * s/cygwin.h: Added for Cygwin port.
13906 2003-01-31  Juanma Barranquero  <lektu@terra.es>
13908         * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
13909         when including gif_lib.h.
13910         (init_gif_functions, init_tiff_functions): New functions.
13911         (gif_load, tiff_load): Sync with xfns.c version.  Adjust colors for
13912         Windows.  Disable color table lookups.  Call library functions
13913         through pointers determined at runtime.
13914         (init_external_image_libraries): Try to load libungif.dll and
13915         libtiff.dll.
13917 2003-01-31  Kenichi Handa  <handa@m17n.org>
13919         * xdisp.c (SKIP_GLYPHS): New macro.
13920         (set_cursor_from_row): Skip all glyphs that comes from overlay string.
13922 2003-01-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13924         * gtkutil.c (free_frame_tool_bar): Remove debug printf.
13926 2003-01-30  Dave Love  <fx@gnu.org>
13928         * alloc.c (Vgc_elapsed, gcs_done): New variables.
13929         (Fgarbage_collect): Use them.
13930         (init_alloc, syms_of_alloc): Set them up.
13932 2003-01-30  Juanma Barranquero  <lektu@terra.es>
13934         * w32fns.c (init_external_image_libraries): Add missing operator.
13936 2003-01-29  Jason Rumney  <jasonr@gnu.org>
13938         * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
13939         an alternative name for jpeg.dll.
13941 2003-01-29  Kenichi Handa  <handa@m17n.org>
13943         * xdisp.c (set_cursor_from_row): Pay attention to string display
13944         properties.
13946 2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
13948         * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
13949         <escape>.
13950         (keycode_to_xkeysym_table): Reformat and add more comments.
13951         (XTread_socket): Drop special case for backspace.
13953 2003-01-28  Andrew Choi  <akochoi@shaw.ca>
13955         * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
13956         values in old-style RGB specs.
13958 2003-01-27  Juanma Barranquero  <lektu@terra.es>
13960         * w32fns.c (init_external_image_libraries): Try alternate names for the
13961         jpeg dll.
13963 2003-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13965         * gtkutil.c (create_dialog, xg_separator_p)
13966         (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
13967         before calling strcmp or strlen.
13969 2003-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13971         * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
13972         and handle image load failure.
13974 2003-01-26  Jason Rumney  <jasonr@gnu.org>
13976         * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
13977         New functions.
13978         (jpeg_load): Sync with xfns.c version.  Adjust colors for Windows.
13979         Disable color table lookups.  Call jpeg library functions
13980         through pointers determined at runtime.
13981         (init_external_image_libraries): Try to load jpeg.dll.
13983 2003-01-25  Richard M. Stallman  <rms@gnu.org>
13985         * lisp.h: Declare format2 instead of format1.
13987         * fileio.c (barf_or_query_if_file_exists):
13988         Call format2 instead of format1.
13990         * editfns.c (format2): New function, replaces format1
13991         but takes exactly two Lisp Objects as format args.
13993         * buffer.c (Fkill_buffer): Call format2 instead of format1.
13995 2003-01-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13997         * xterm.h: Change to return value of x_dispatch_event to int.
13999         * xterm.c (x_filter_event): New function.
14000         (event_handler_gdk, XTread_socket): Call x_filter_event.
14001         (x_dispatch_event): Change to return value of finish.
14002         (event_handler_gdk): Use return value from x_dispatch_event.
14004         * xfns.c (x_window): Call create_frame_xic for GTK version to
14005         initialize input methods.
14007         * gtkutil.h: Add (void) prototypes.
14009         * gtkutil.c (create_menus): Remove code that puts the help menu to
14010         the right.
14012 2003-01-25  Jason Rumney  <jasonr@gnu.org>
14014         * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
14015         [HAVE_PNG]: Sync with xfns.c version.
14016         (png_load): Adjust colors for Windows.  Use Windows
14017         bitmaps.  Disable color table lookups.
14018         (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
14019         (init_png_functions): New function.
14020         (png_read_from_memory, png_load): Call png library functions
14021         through pointers determined at runtime.
14022         (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
14023         (init_external_image_libraries): New function.
14024         (init_xfns): Call it.
14026 2003-01-24  Andreas Schwab  <schwab@suse.de>
14028         * minibuf.c (Fminibuffer_message): Verify type of parameter.
14030 2003-01-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14032         * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
14033         of static initializer.
14035 2003-01-24  Dave Love  <fx@gnu.org>
14037         * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
14038         architectures.
14040         * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
14041         Use __alignof__.
14043 2003-01-24  Kenichi Handa  <handa@m17n.org>
14045         * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
14046         It it is nonzero, don't pretend that an invisible area doesn't exist.
14047         (command_loop_1): Call adjust_point_for_property with proper
14048         second arg.
14050 2003-01-22  Jason Rumney  <jasonr@gnu.org>
14052         Sync changes with xterm.c and xfns.c.
14054         * w32term.c (x_draw_glyph_string_foreground)
14055         (x_draw_composite_glyph_string_foreground): Implement overstriking.
14057         * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
14058         phys_cursor's hpos is overwritten.  This is still not completely
14059         correct, as it doesn't really make sense to use hpos at all to
14060         get the cursor glyph (as that is relative to the width of the
14061         characters on the line, which may have changed during the update).
14063         * w32term.c (notice_overwritten_cursor): Handle the special case
14064         of the cursor being in the first blank non-text line at the
14065         end of a window.
14067         * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14068         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14069         Compute from the x position returned by x_draw_glyphs.
14071         (x_display_and_set_cursor): Don't set phys_cursor_width here,
14072         except for NO_CURSOR and system caret, to make phys_cursor_width
14073         contain what its name suggests.
14074         (notice_overwritten_cursor): Consider the cursor image erased if
14075         the output area intersects the cursor image in y-direction.
14077         * w32term.c (note_mode_line_or_margin_highlight): Rename from
14078         note_mode_line_highlight and extend.
14080         * w32term.c (last_window): New variable.
14081         (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
14082         (note_mouse_movement): Remove reimplemented code in #if 0.
14084         * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
14085         not update_mode_lines, and always set it to 1.
14087 2003-01-21  Jason Rumney  <jasonr@gnu.org>
14089         * w32fns.c (IDC_HAND): Define it if system headers don't.
14091 2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
14093         * w32term.h (struct w32_output): New member hand_cursor.
14094         (WM_EMACS_SETCURSOR): New message definition.
14096         * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
14097         function w32_define_cursor.
14098         (note_mouse_highlight): Initialize, setup cursor accoding to mouse
14099         position, change member name output_data.x to output_data.w32 and
14100         add function w32_define_cursor.
14101         (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
14102         and change member name output_data.x to output_data.w32.
14103         (w32_initialize_display_info):
14104         Setup dpyinfo->vertical_scroll_bar_cursor.
14106         * w32fns.c (Vx_hand_shape): New variable.
14107         (w32_wnd_proc): Add message entries for WM_SETCURSOR and
14108         WM_EMACS_SETCURSOR.
14109         (x-create-frame): Setup Cursor types.
14111 2003-01-21  David Ponce  <david@dponce.com>
14113         * w32term.c (w32_encode_char): For DIM=1 charset, set
14114         ccl->reg[2] to -1 before calling ccl_driver.
14115         (Sync. with xterm.c x_encode_char change by Kenichi Handa
14116         <handa@m17n.org> on 2002-09-30.)
14117         (w32_draw_relief_rect): Declare all args.
14118         (w32_define_cursor): New.
14120         * w32fns.c (w32_load_cursor): New function.
14121         (w32_init_class): Use it.
14122         (x_put_x_image): Declare all args.
14124 2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>
14126         * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
14128 2003-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14130         * gtkutil.c: Must include stdio.h before termhooks.h
14132 2003-01-21  Dave Love  <fx@gnu.org>
14134         * alloc.c (Fgc_status): Print zombie list.
14135         (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14136         Fix assignment of zombies.
14137         (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14138         Don't take car of non-cons.
14140         * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14142         * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14144 2003-01-20  David Ponce  <david@dponce.com>
14146         * w32menu.c (digest_single_submenu): Declare all args.
14148         Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
14149         changes in xmenu.c:
14151         (parse_single_submenu): Use individual keymap's prompt
14152         string as pane name, if there is one.
14153         (set_frame_menubar): Save menu_items_n_panes from each call to
14154         parse_single_submenu and use it when calling digest_single_submenu.
14156 2003-01-20  Steven Tamm  <steventamm@mac.com>
14158         * macterm.c (XTread_socket): Check for valid, visible window
14159         before sending a scroll-wheel event.
14161 2003-01-20  Richard M. Stallman  <rms@gnu.org>
14163         * xdisp.c (redisplay_window): If mini window's buffer is not
14164         a minibuffer, then redisplay it like other windows.
14166 2003-01-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14168         * gtkutil.c (xg_create_frame_widgets): Check if there is an
14169         external tool bar before setting tool bar height.
14171 2003-01-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14173         * xterm.c (handle_one_xevent): Surround popup_activated
14174         with #ifdef:s for non-toolkit version.
14176         * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
14177         (gtkutil.o): New file.
14178         (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
14179         (LIBW): Set to @GTK_LIBS@ if USE_GTK.
14181         * gtkutil.c: New file for GTK version.
14183         * gtkutil.h: New file for GTK version.
14185         * xterm.h: Add xt_or_gtk_widget.
14186         Include gtk files for USE_GTK.
14187         (struct x_output): Add toolbar_height.
14188         (struct x_output): Add GTK widgets and Gdk size_hints.
14189         (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
14190         (FRAME_OUTER_WINDOW): New macros for USE_GTK.
14191         (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
14193         * xterm.c: Include gtkutil.h for USE_GTK.
14194         (free_frame_menubar): Declare extern void for USE_GTK.
14195         (note_mouse_highlight): Check popup_activated for USE_GTK.
14196         (xt_action_hook): Don't compile if USE_GTK.
14197         (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
14198         (xg_scroll_callback): New function.
14199         (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
14200         (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
14201         for USE_GTK.
14202         (x_scroll_bar_create): Call xg_update_scrollbar_pos and
14203         xg_show_scroll_bar for USE_GTK.
14204         (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
14205         (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
14206         (event_handler_gdk): New function for USE_GTK.
14207         (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
14208         (handle_one_xevent): Make sure widget is mapped before
14209         calling x_real_positions for USE_GTK.
14210         (XTread_socket): Add GTK event loop for USE_GTK.
14211         (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
14212         (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
14213         (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
14214         (x_iconify_frame): Add code for USE_GTK.
14215         (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
14216         (x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
14217         is in gtkutil.c.
14218         (x_term_init): Add initialization for GTK.
14219         (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
14221         * xmenu.c: Include gtkutil.h for USE_GTK.
14222         (Fx_popup_menu): Use current position if x and y is NIL.
14223         (single_menu_item, single_menu_item, Fx_popup_dialog):
14224         Check for USE_GTK.
14225         (popup_widget_loop): New function for USE_GTK.
14226         (x_activate_menubar): Add code for USE_GTK.
14227         (popup_activate_callback, popup_deactivate_callback)
14228         (menu_highlight_callback, menubar_selection_callback):
14229         Add USE_GTK versions.
14230         (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
14231         (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
14232         (free_frame_menubar): Only compile if not USE_GTK.  GTK version
14233         is in gtkutil.c.
14234         (popup_selection_callback): New version for USE_GTK.
14235         (create_and_show_popup_menu): New fuction, one USE_GTK version and
14236         one USE_X_TOOLKIT version.
14237         (xmenu_show): Call create_and_show_popup_menu.
14238         (dialog_selection_callback): New version for USE_GTK.
14239         (create_and_show_dialog): New fuction, one USE_GTK version and
14240         one USE_X_TOOLKIT version.
14241         (xdialog_show): Call create_and_show_dialog.
14243         * xfns.c: Include gtkutil for USE_GTK.
14244         (x_window_to_frame, x_any_window_to_frame)
14245         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14246         (x_top_window_to_frame): Add code for USE_GTK.
14247         (x_set_background_color): Call xg_set_background_color for GTK.
14248         (x_set_menu_bar_lines): Check for USE_GTK.
14249         (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
14250         (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
14251         (x_window): Call xg_create_frame_widgets for USE_GTK.
14252         (Fx_create_frame): Check for USE_GTK
14253         (Fx_file_dialog): New implementation for USE_GTK.
14255         * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
14256         (update_menu_bar): Add check for USE_GTK.
14257         (update_tool_bar): Add check for USE_GTK and external tool bar.
14258         (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
14259         (redisplay_internal): Add check for USE_GTK and popup_activated.
14260         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
14261         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
14262         (display_menu_bar): Add check for USE_GTK
14264         * lisp.h (Vx_resource_name): Declare extern.
14266         * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
14267         for USE_GTK.
14268         (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
14270         * frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
14271         (FRAME_EXTERNAL_TOOL_BAR): New macro.
14272         (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
14274         * fileio.c (Fread_file_name): Add check for USE_GTK.
14276         * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
14277         Add check for USE_GTK.
14279         * config.in: Added HAVE_GTK
14281         * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
14283 2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>
14285         * charset.h (Funibyte_char_to_multibyte): Export.
14287 2003-01-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14289         * xmenu.c (mouse_position_for_popup): New function.
14290         (Fx_popup_menu): Call mouse_position_for_popup for X and
14291         mouse_position_hook for others.
14293 2003-01-17  Kim F. Storm  <storm@cua.dk>
14295         * editfns.c (Finsert): Mention `string-make-multibyte' and
14296         `string-as-multibyte' in doc string.
14298 2003-01-17  Kenichi Handa  <handa@m17n.org>
14300         * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
14302         * editfns.c (Fformat): Convert an unibyte char argument that is
14303         formatted by "%c" to multibyte if the total result must be a
14304         multibyte string.
14306 2003-01-16  Kim F. Storm  <storm@cua.dk>
14308         * process.c (set-process-filter): Document unibyte/multibyte-ness
14309         of string argument.
14311 2003-01-16  Kenichi Handa  <handa@m17n.org>
14313         * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
14315         * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
14316         (re_search_2): Likewise.
14318 2003-01-15  Kenichi Handa  <handa@m17n.org>
14320         * xdisp.c (message_dolog): Fix bug of the case that *Message*
14321         buffer is unibyte.
14323 2003-01-15  Francesco Potort\e,Al\e(B  <pot@gnu.org>
14325         * fns.c (Fsubstring): Clarify doc string.
14327         * textprop.c (Ftext_properties_at, Fnext_char_property_change)
14328         (Fprevious_char_property_change)
14329         (Fnext_single_char_property_change)
14330         (Fprevious_single_char_property_change, Fnext_property_change)
14331         (Fnext_single_property_change, Fprevious_property_change)
14332         (Fprevious_single_property_change, Fadd_text_properties)
14333         (Fput_text_property, Fset_text_properties)
14334         (Fremove_text_properties, Fremove_list_of_text_properties)
14335         (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
14337 2003-01-14  Kim F. Storm  <storm@cua.dk>
14339         * process.h (struct Lisp_Process): New member plist replaces old
14340         member private_vars.  All uses changed.
14342         * process.c: Reworked 2003-01-12 change -- call a plist a plist!
14343         (QCplist): Rename from QCvars.  Change all uses.
14344         (Fprocess_plist): Replaces Fprocess_variable.  Simplified.
14345         (Fset_process_plist): Replaces Fset_process_variable.  Simplify.
14346         (syms_of_process): Intern, staticpro, defsubr these.
14347         (Fmake_network_process): Describe :plist arg.  Remove :vars arg.
14349 2003-01-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
14351         * m/delta.h: Remove (obsolete).
14353 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
14355         * fileio.c (Fdelete_directory, Fdelete_file): Document the
14356         behaviour in front of symlinks.
14357         (Fdelete_file): Raise an error on directories.
14359 2003-01-13  Dave Love  <fx@gnu.org>
14361         * fns.c (Freverse): Use QUIT.
14363 2003-01-13  Richard M. Stallman  <rms@gnu.org>
14365         * minibuf.c (minibuffer_completion_contents):
14366         Error if point is inside prompt.
14368         * keyboard.c (command_loop_1): Don't redisplay directly
14369         if there's a post-command-hook.
14371         * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
14372         (Fdo_auto_save): Add gcpros around Ffile_name_directory.
14374 2003-01-12  Kim F. Storm  <storm@cua.dk>
14376         * process.h (struct Lisp_Process): New member private_vars.
14378         * process.c (QCvars): New variable.
14379         (syms_of_process): Intern and staticpro it.
14380         (Fset_process_contact): Removed function.
14381         (Fprocess_variable, Fset_process_variable): New functions.
14382         (syms_of_process): Defsubr them.
14383         (Fstart_process): Initialize private_vars plist to nil.
14384         (Fmake_network_process): New arg :vars to setup the private
14385         variables for new network process.
14386         (server_accept_connection): Copy server's private variables to
14387         client process.
14389         * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
14390         crashes).  Code rewritten and simplified.  Now directly aligns the
14391         pointer and recalculates pure_bytes_used, rather than aligning the
14392         size and adjusting the pointer.
14394 2003-01-11  Kim F. Storm  <storm@cua.dk>
14396         * process.c (Fset_process_contact): New function.
14397         (syms_of_process): defsubr it.
14398         (make-network-process): Update doc.
14400 2003-01-10  Andreas Schwab  <schwab@suse.de>
14402         * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
14403         Reported by Berthold Gunreben <b.gunreben@web.de>.
14405 2003-01-10  Dave Love  <fx@gnu.org>
14407         * composite.c (syms_of_composite): Make composition_hash_table weak.
14409 2003-01-09  Kim F. Storm  <storm@cua.dk>
14411         * process.c (Fmake_network_process): Convert new port number
14412         to host byte order for `:service t' case.  From Mario Lang.
14414 2003-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14416         * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
14417         instead of XtAppProcessEvent.
14419         * xterm.c (handle_one_xevent): New function.
14420         (x_dispatch_event): New function.
14421         (XTread_socket): Call handle_one_xevent.
14423         * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
14425         * xmenu.c (Fx_popup_menu): If popping up at mouse position,
14426         call XQueryPointer to get coordinates.
14427         (popup_get_selection): Do not set popup_activated_flag to zero,
14428         let popup_deactivate_callback do that.  Needed for Motif.
14429         Call x_dispatch_event instead of XtDispatchEvent.
14430         (xmenu_show): Calculate root coordinate from frame top/left position.
14432 2003-01-08  Kim F. Storm  <storm@cua.dk>
14434         * process.c (server_accept_connection): Fix recording of new
14435         connection's local address in :local property of contact info.
14436         (Fmake_network_process): Record local network address for new
14437         client processes in :local property of contact info.
14438         (format-network-address): Add arg OMIT-PORT.  Change callers.
14440 2003-01-07  Dave Love  <fx@gnu.org>
14442         * Makefile.in (fns.o): Depend on coding.h.
14444 2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
14446         * minibuf.c (Fread_variable): Doc fix.
14448         * eval.c (Fuser_variable_p): Doc change.  For custom variables,
14449         use the same test as for custom-variable-p.
14451 2003-01-05  Richard M. Stallman  <rms@gnu.org>
14453         * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
14454         Count LAST_LINE_MISFIT in scroll margin for end of window.
14455         Move label too_near_end before setting SCROLL_MARGIN_POS.
14456         Set LAST_LINE_MISFIT before jumping there.
14458         * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
14459         scroll_conservatively case.  If scrolling that much doesn't change
14460         STARTP, move it down one line.
14462         * xdisp.c (redisplay_window): Pass last_line_misfit arg to
14463         try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
14465         * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
14466         selected frame.
14468         * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
14469         (syms_of_keymap): Staticpro them.
14470         (Fapropos_internal): Initialize them and clear them out.
14471         Don't GCPRO them.
14473         * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
14474         Doc fixes.
14476         * lisp.h: New misc type Lisp_Save_Value.
14477         (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
14478         (XSAVE_VALUE): New macro.
14479         (struct Lisp_Save_Value): New data type.
14480         (union Lisp_Misc): Add u_save_value alternative.
14481         (make_save_value): Declare.
14483         * alloc.c (make_save_value): New function.
14485         * xterm.c (x_catch_errors): Save dpy using make_save_value.
14486         (x_catch_errors_unwind): Call XSync.
14488 2003-01-01  Richard M. Stallman  <rms@gnu.org>
14490         * window.c (window_scroll_pixel_based): Partially undo last change.
14492         * keyboard.c (command_loop_1): Call adjust_point_for_property
14493         in direct action cases for Qforward_char and Qbackward_char.
14494         Set already_adjusted so it won't be done twice.
14496 2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>
14498         * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
14499         type definition of size_t.
14501 2003-01-02  Steven Tamm  <steventamm@mac.com>
14503         * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
14504         distinguish Carbon GUI builds from X11 builds on darwin.
14506 2002-12-30  Steven Tamm  <steventamm@mac.com>
14508         * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
14509         to default to t.
14511 2002-12-29  Francesco Potort\e,Al\e(B  <pot@gnu.org>
14513         * data.c (Fstring_to_number, Fminus): Better English in doc strings.
14515 2002-12-28  Steven Tamm  <steventamm@mac.com>
14517         * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
14518         allow building in a different directory than source.  Uses some
14519         GNU Make extensions, but there is no other make on Mac OS X.
14521 2002-12-26  Francesco Potort\e,Al\e(B  <pot@gnu.org>
14523         * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
14524         (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
14525         (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
14526         (Fstring_to_number): Mention the returned value in the doc strings.
14528 2002-12-23  Richard M. Stallman  <rms@gnu.org>
14530         * buffer.c (syms_of_buffer) <scroll-up-aggressively>
14531         <scroll-down-aggressively>: Doc fix.
14533         * xmenu.c (parse_single_submenu): Use individual keymap's prompt
14534         string as pane name, if there is one.
14535         (set_frame_menubar): Save menu_items_n_panes from each call to
14536         parse_single_submenu and use it when calling digest_single_submenu.
14538         * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
14539         Don't try to make last line fully visible if it is past end of window.
14541 2002-12-22  Steven Tamm  <steventamm@mac.com>
14543         * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
14544         (mac_menu_show): Add support for hierarchical popup menus.
14545         (add_menu_item): Remove indentation support.
14546         (fill_submenu, fill_menu): Create hierarchical menus
14547         instead of using indentation.
14549 2002-12-22  Richard M. Stallman  <rms@gnu.org>
14551         * xdisp.c (try_cursor_movement): Don't call try_window here.
14552         (redisplay_window): Never redisplay minibuffer when inactive.
14554         * window.c (select_window_1): Undo 9/21 change.
14556 2002-12-22  Steven Tamm  <steventamm@mac.com>
14558         * macterm.c (XTread_socket): Call KeyTranslate for control and
14559         meta to deal correctly shifted non-alpha characters, like C-S-5
14560         being treated like C-%.  Do not look for shift key to deal
14561         with masking off control-key with mac-reverse-ctrl-meta.
14563 2002-12-21  Richard M. Stallman  <rms@gnu.org>
14565         * xmenu.c (popup_get_selection): Now static.  New arg DO_TIMERS.
14566         If it is non-nil, run timers.  Use an unwind-protect to requeue
14567         the events that were read ahead.
14568         (popup_get_selection_unwind): New subroutine.
14569         (popup_get_selection_queue): File-scope variable now holds that queue.
14570         (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
14571         (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
14572         Use an unwind-protect to pop down the dialog box.
14573         (xdialog_show_unwind): New subroutine implements that.
14575         * xdisp.c (row_containing_pos): Change exit test using last_y.
14576         (try_window_id): Abort if row_containing_pos returns null.
14578         * lread.c (load_error_handler): New function.
14579         (Fload): Handle errors in Fsubstitute_in_file_name.
14580         Don't expect Fsignal to return.
14582         * eval.c: Errors and throws work right with interrupt blocking.
14583         (struct catchtag): New elt interrupt_input_blocked.
14584         (unwind_to_catch): Restore interrupt_input_blocked from saved value.
14585         (internal_catch, Fcondition_case, internal_condition_case)
14586         (internal_condition_case_1, internal_condition_case_2): Save it.
14587         (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
14589         * editfns.c (Fformat): Add parens.
14591         * dired.c (file_name_completion): Fix that change.
14592         Delete special quit-handling code; just use QUIT.
14594 2002-12-21  Tak Ota  <Takaaki.Ota@am.sony.com>
14596         * dired.c (file_name_completion): Close directory on error
14597         just as in directory_files_internal.
14599 2002-12-19  David Kastrup  <David.Kastrup@t-online.de>
14601         * window.c (Fset_window_configuration): Set old_point to correct
14602         value when new_current_buffer == current_buffer.
14604 2002-12-17  Ben Key  <bkey1@tampabay.rr.com>
14606         Revisited my earlier fix for the following entry in etc/PROBLEMS:
14607         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14608         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
14610         These changes were in part based upon suggestions made by Peter
14611         'Luna' Runestig [peter@runestig.com].
14613         * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
14614         (g_b_init_get_token_information, g_b_init_lookup_account_sid)
14615         (g_b_init_get_sid_identifier_authority ): Add several static
14616         global variables.
14618         * w32.c (globals_of_w32): New function.  Used to initialize those
14619         global variables that must always be initialized on startup even
14620         when the global variable initialized is non zero.  Its primary
14621         purpose at this time is to set the global variables
14622         g_b_init_is_windows_9x, g_b_init_open_process_token,
14623         g_b_init_get_token_information, g_b_init_lookup_account_sid, and
14624         g_b_init_get_sid_identifier_authority to 0 on startup.
14625         Called from main.
14627         * w32.c (is_windows_9x): Perform initialization only if
14628         g_b_init_is_windows_9x is equal to 0.  On initialization set
14629         g_b_init_is_windows_9x equal to 1.
14631         * w32.c (open_process_token): Perform initialization only if
14632         g_b_init_open_process_token is equal to 0.  On initialization set
14633         g_b_init_open_process_token equal to 1.
14635         * w32.c (get_token_information): Perform initialization only if
14636         g_b_init_get_token_information is equal to 0.  On initialization
14637         set g_b_init_get_token_information equal to 1.
14639         * w32.c (lookup_account_sid): Perform initialization only if
14640         g_b_init_lookup_account_sid is equal to 0.  On initialization
14641         set g_b_init_lookup_account_sid equal to 1.
14643         * w32.c (get_sid_identifier_authority): Perform initialization
14644         only if g_b_init_get_sid_identifier_authority is equal to 0.
14645         On initialization set g_b_init_get_sid_identifier_authority equal to 1.
14647         * w32fns.c (globals_of_w32fns): New function.  Used to initialize
14648         those global variables that must always be initialized on startup
14649         even when the global variable initialized is non zero.
14650         Its primary purpose at this time is to initialize the global variable
14651         track_mouse_event_fn.
14653         * w32fns.c (w32_wnd_proc): Remove initialization of
14654         track_mouse_event_fn from the handler for the WM_SETFOCUS message.
14656         * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
14658         * w32menu.c (globals_of_w32menu): New function.  Used to
14659         initialize those global variables that must always be initialized
14660         on startup even when the global variable initialized is non zero.
14661         Its primary purpose at this time is to initialize the global
14662         variables get_menu_item_info and set_menu_item_info.
14664         * w32menu.c (initialize_frame_menubar): Remove initialization of
14665         get_menu_item_info and set_menu_item_info.
14667         * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
14669         * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
14670         Declare them.
14672         * emacs.c (main): Call globals_of_w32 prior to calling
14673         init_environment if WINDOWSNT is defined.  Call globals_of_w32fns
14674         and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
14675         is defined.
14677         * w32term.c (x_update_window_begin): Fix Windows API error
14678         detected by BoundsChecker.  Test to determine if
14679         w32_system_caret_hwnd is NULL prior to attempting to use
14680         SendMessage to send the WM_EMACS_HIDE_CARET message to it.
14682         * w32term.c (x_update_window_end): Fix Windows API error
14683         detected by BoundsChecker.  Test to determine if
14684         w32_system_caret_hwnd is NULL prior to attempting to use
14685         SendMessage to send the WM_EMACS_SHOW_CARET message to it.
14687 2002-12-17  Kenichi Handa  <handa@m17n.org>
14689         * coding.c (coding_system_require_warning): New variable.
14690         (syms_of_coding): DEFVAR it.
14692         * coding.h (coding_system_require_warning): Extern it.
14694         * fileio.c (choose_write_coding_system): Even if
14695         Vcoding_system_for_write is non-nil, if
14696         coding_system_require_warning is nonzero, call
14697         Vselect_safe_coding_system_function.
14699 2002-12-17  Markus Rost  <rost@math.ohio-state.edu>
14701         * Makefile.in (lisp, shortlisp): Add cus-face and timer.
14702         (lisp): Add font-core.
14704 2002-12-13  Stefan Monnier  <monnier@cs.yale.edu>
14706         * textprop.c (text_read_only): New arg `propval'.
14707         (get_char_property_and_overlay): Remove unused var `next_overlay'.
14708         (verify_interval_modification): Use text_read_only's new arg.
14710 2002-12-13  Kenichi Handa  <handa@m17n.org>
14712         * coding.c (Funencodable_char_position): Set pend correctly.
14714 2002-12-12  Jason Rumney  <jasonr@gnu.org>
14716         * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
14717         (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
14718         Be more careful about when help_events are generated.
14720 2002-12-12  Steven Tamm  <steventamm@mac.com>
14722         * macterm.c (mac_check_for_quit_char): Correctly set the
14723         modifiers of the event to 0.
14724         * mac.c (sys_select): Duplicate rfds before calling select to
14725         ensure that rfds survive the while loop.
14727 2002-12-11  Kim F. Storm  <storm@cua.dk>
14729         * xdisp.c (try_window_id): Don't call set_cursor_from_row if
14730         row_containing_pos returned NULL.
14732 2002-12-10  Steven Tamm  <steventamm@mac.com>
14734         * mac.c (sys_read): Fix sys_read to not call select if IO is
14735         non-blocking.
14736         (sys_select): Fix sys_select to not use a timeout larger than
14737         the one given.
14739 2002-12-10  Juanma Barranquero  <lektu@terra.es>
14741         * editfns.c (Fformat): Use alloca, not _alloca.
14743 2002-12-09  Richard M. Stallman  <rms@gnu.org>
14745         * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
14746         as the last thing.
14748 2002-12-09  Dave Love  <fx@gnu.org>
14750         * s/sol2-8.h: Removed.  (Not necessary.)
14752 2002-12-09  Matthew Swift  <swift@alum.mit.edu>
14754         * editfns.c (Fformat): Handle precision in string conversion
14755         specifiers like libc functions do (ie, print at most that many
14756         characters).
14758 2002-12-08  Richard M. Stallman  <rms@gnu.org>
14760         * xdisp.c (row_containing_pos): Check more carefully
14761         whether charpos is really in the row before returning it.
14763 2002-12-07  Steven Tamm  <steventamm@mac.com>
14765         * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
14767         * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
14768         each stack frame.  This may change as it could be time consuming.
14770         * macterm.c (mac_check_for_quit_char, quit_char_comp)
14771         (init_quit_char_handler, mac_determine_quit_char_modifiers)
14772         (mac_initialize): Add code to check for pressing of quit_char
14773         in the OS event queue.
14775         * mac.c (sys_select): Call mac_check_for_quit_char every second
14776         while blocking on select.
14778         * mac.c (sys_read): Use sys_select to test for input first
14779         before calling read, to allow C-g to break.
14781 2002-12-07  Richard M. Stallman  <rms@gnu.org>
14783         * minibuf.c (Fcompleting_read): Doc fix.
14785         * lread.c (syms_of_lread) <load-history>: Doc fix.
14787         * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
14789         * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
14790         autoload.
14792         * data.c (Fdefalias): Record in load-history redefining an autoload.
14794         * alloca.c: Undo ifdef change accidentally made on 12-04.
14796 2002-12-06  Francesco Potorti`  <pot@gnu.org>
14798         * xfns.c (png_load): Avoid double gamma correction for PNG images.
14800 2002-12-04  Richard M. Stallman  <rms@gnu.org>
14802         * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
14804         * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
14806         * alloca.c: Don't use #error.
14808 2002-12-03  Dave Love  <fx@gnu.org>
14810         * buffer.c (Qucs_set_table_for_input): New.
14811         (Fget_buffer_create): Use it.
14812         (Qset_buffer_major_mode_hook): Deleted.
14813         (Fset_buffer_major_mode): Revert previous change.
14814         (init_buffer_once): Intern ucs-set-table-for-input.
14815         (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
14816         Add &Qucs_set_table_for_input.
14818 2002-12-03  Andreas Schwab  <schwab@suse.de>
14820         * callint.c (Fcall_interactively): Use next_event only if less
14821         than key_count.
14823 2002-12-02  Andrew Choi  <akochoi@shaw.ca>
14825         * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
14826         names to 255 characters.
14828         * macterm.c (XTread_socket): If all frames have been collapsed,
14829         expand the first one before handling drag-and-drop events.
14831         * s/darwin.h (GETPGRP_NO_ARG): Delete.  Replaced by GETPGRP_VOID,
14832         which is detected by autoconf.
14834 2002-12-01  Steven Tamm  <steventamm@mac.com>
14836         * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
14837         offset in two hints table to allow prebinding to be redone and
14838         allow the executable to be stripped.
14840 2002-11-29  Dave Love  <fx@gnu.org>
14842         * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
14843         already provided.
14845 2002-11-29  Richard M. Stallman  <rms@gnu.org>
14847         * xdisp.c (start_display): Check more intelligently for
14848         whether the line is continued.
14849         (move_it_vertically_backward): Clear it->continuation_lines_width.
14851 2002-11-28  Dave Love  <fx@gnu.org>
14853         * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
14854         * s/alliant.h, s/altos.h: Deleted.  (Unused/empty.)
14856 2002-11-27  Steven Tamm  <steventamm@mac.com>
14858         * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
14859         more descriptive error output from lread.c:Fload upon most require
14860         cycles during boostrapping.
14862 2002-11-27  Jason Rumney  <jasonr@gnu.org>
14864         * fileio.c (Finsert_file_contents): Give a more appropriate error
14865         for files bigger than 2Gb when off_t is 32 bit.
14867         * dired.c (Ffile_attributes): Don't return negative file sizes for
14868         files bigger than 2Gb when off_t is 32 bit.
14870 2002-11-27  Dave Love  <fx@gnu.org>
14872         * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14874         * systty.h: Don't conditionally define GETPGRP_NO_ARG.
14875         Test GETPGRP_VOID instead.
14876         [BSD_TERMIOS]: Remove definitions (never used).
14878         * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
14879         Don't define.
14880         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14882         * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
14884 2002-11-25  Jason Rumney  <jasonr@gnu.org>
14886         * w32.c (sys_write): Avoid non-blocking mode, which is not fully
14887         supported.
14889 2002-11-25  Dave Love  <fx@gnu.org>
14891         * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
14893         * Makefile.in (TEMACS_LDFLAGS): Update last change.
14895 2002-11-25  Andreas Schwab  <schwab@suse.de>
14897         * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
14899 2002-11-24  Steven Tamm  <steventamm@mac.com>
14901         * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
14902         determine the size of pointers alloced in unexed space instead
14903         of using possibly invalid emacs_zone pointers.  This fixes the
14904         binary incompatibility problems caused by updates to libSystem.B.
14906 2002-11-24  Richard M. Stallman  <rms@gnu.org>
14908         * search.c (Fstring_match): Doc fix.
14910         * callint.c (Fcall_interactively): If a command fails because
14911         `*' detects a read-only buffer, but RECORD_FLAG is set,
14912         record it anyway if the args don't actually do tty input.
14914 2002-11-22  Dave Love  <fx@gnu.org>
14916         * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
14918         * keyboard.c (interrupt_signal): Provide forward declaration.
14919         (kbd_buffer_store_event): Don't declare interrupt_signal.
14921         * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
14923 2002-11-21  Richard M. Stallman  <rms@gnu.org>
14925         * eval.c (interactive_p): Skip any number of bytecode
14926         and special form frames, in any order.
14928 2002-11-20  Jason Rumney  <jasonr@gnu.org>
14930         * w32fns.c (convert_mono_to_color_image): New function.
14931         (xbm_load, xbm_load_image): Use it when foreground or background
14932         is explicitly set.
14934 2002-11-19  Dave Love  <fx@gnu.org>
14936         * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
14938 2002-11-18  Jason Rumney  <jasonr@gnu.org>
14940         * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
14941         (XPutPixel): Swap blue and red.
14942         (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
14943         (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14944         (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
14945         (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
14947 2002-11-18  Dave Love  <fx@gnu.org>
14949         * m/orion105.h (HAVE_ALLOCA): Don't define.
14951         * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
14953         * m/intel386.h: Don't include alloca.h or define alloca.
14955         * m/ia64.h: Don't include alloca.h, stdlib.h.  Don't declare
14956         malloc, realloc, calloc.
14958         * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
14959         (bcmp): Don't define.
14961         * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
14963         * m/amdahl.h: Don't define LIB_STANDARD.
14965         * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
14967         * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
14969         * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
14970         Don't include alloca.h.
14972         * s/aix3-2.h (HAVE_FSYNC): Don't define.
14974         * regex.c (_GNU_SOURCE): Don't define.
14976         * process.c (_GNU_SOURCE): Don't define.
14978         * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
14980 2002-11-18  Markus Rost  <rost@math.ohio-state.edu>
14982         * s/sol2-8.h: Include sol2-6.h.
14984 2002-11-18  Miles Bader  <miles@gnu.org>
14986         * dispextern.h (struct face): Add `overstrike' field.
14987         * xterm.c (x_draw_glyph_string_foreground)
14988         (x_draw_composite_glyph_string_foreground): Implement overstriking.
14989         * xfaces.c (load_face_font): Set `face->overstrike' based on
14990         result from choose_face_font.
14991         (best_matching_font, choose_face_font): Add `needs_overstrike'
14992         argument, and use it to return whether overstriking is desirable
14993         for this face/font combo.
14994         (set_font_frame_param: Pass new argument to choose_face_font.
14996 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
14998         This change is my fix for the following entry in etc/PROBLEMS:
14999         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15000         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
15002         * w32.c: Added wrapper functions around the win32 API functions
15003         OpenProcessToken, GetTokenInformation, LookupAccountSid, and
15004         GetSidIdentifierAuthority.  These wrapper functions serve two
15005         purposes:
15006         1.  They ensure that the wrapped function can never be called
15007         when Emacs is running on an operating system on which they are
15008         not supported (Microsoft Windows 95 / 98 / ME).
15009         2.  They call the wrapped functions via function pointers rather
15010         than calling them directly.  This avoids taking advantage of the
15011         undocumented fact that although these functions are not supported
15012         in the 9x branch of Microsoft Windows, the functions do exist in
15013         the version of advapi32.dll that is found in the 9x branch of
15014         Microsoft Windows.
15016         * w32.c (init_user_info): Replace the calls to the win32 API
15017         functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
15018         and GetSidIdentifierAuthority with calls to the newly added
15019         wrapper functions.
15021         * w32.h: Added extern declarations for the following functions:
15022         syms_of_w32term, syms_of_w32fns, syms_of_w32select,
15023         syms_of_w32menu, and void syms_of_fontset.
15025         * w32fns.c (w32_wnd_proc): Add code to reinitialize the
15026         function pointer track_mouse_event_fn in the handler for the
15027         WM_SETFOCUS message.
15029         * w32menu.c (initialize_frame_menubar): Add code to
15030         reinitialize the function pointers set_menu_item_info and
15031         get_menu_item_info.
15033 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
15035         * sound.c: Added a partial implementation of play-sound-internal
15036         for Microsoft Windows.  Added various #ifdef / #else / #endif
15037         code blocks to separate the code that will compile under
15038         Microsoft Windows from the code that is specific to GNU/Linux.
15039         Moved several blocks of code around to make this separation of code
15040         into Windows compatible and GNU/Linux compatible code blocks easier.
15042         * makefile.w32-in: Include sound.c and link with WinMM.lib.
15044         * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
15045         added support for play-sound-internal under Windows would be
15046         included in the build of Emacs.
15048 2002-11-16  Jason Rumney  <jasonr@gnu.org>
15050         * w32fns.c (w32_load_system_font): Don't disable Cleartype.
15052         * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
15054 2002-11-15  Stefan Monnier  <monnier@cs.yale.edu>
15056         * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
15057         (adjust_point_for_property): Move out of display and invisible even if
15058         we were already inside before (in case a property was added while
15059         we weren't looking).  Be more careful when handling invisible props.
15060         Skip invisible text as if it really wasn't there at all.
15062 2002-11-15  Jason Rumney  <jasonr@gnu.org>
15064         * w32term.c (x_draw_image_foreground)
15065         (w32_draw_image_foreground_1): Use standard copy and invert
15066         operations to draw images.
15068         * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
15069         depth of 1.
15070         (xbm_read_bitmap_data): Invert bits as xbm is read in.
15071         (XPutPixel): Don't invert bits here.
15073 2002-11-15  Jason Rumney  <jasonr@gnu.org>
15075         * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
15076         (w32_draw_image_foreground_1): Handle image masks.
15077         (x_draw_image_glyph_string): Don't BitBlt transparently.
15079         * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
15080         (x_from_xcolors): Adjust RGB values for W32.
15081         (image_background, image_background_transparent)
15082         (postprocess_image, x_to_xcolors, x_disable_image)
15083         (x_build_heuristic_mask): Adapt for W32 and enable.
15084         (x_create_x_image_and_pixmap): Mark images with palettes as such.
15085         (xbm_load): Remove unused variable.
15087 2002-11-14  Richard M. Stallman  <rms@gnu.org>
15089         * buffer.c (syms_of_buffer): Doc fix.
15091 2002-11-14  Dave Love  <fx@gnu.org>
15093         * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
15095         * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
15096         * xmenu.c (unuse_menu_items, digest_single_submenu):
15097         * xfns.c (x_put_x_image):
15098         * xdisp.c (message2_nolog, set_message):
15099         * undo.c (record_point):
15100         * terminfo.c (tparam):
15101         * syntax.c (scan_sexps_forward):
15102         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15103         * composite.c (update_compositions):
15104         * cm.c (calccost, cmgoto):
15105         * charset.c (c_string_width): Declare all args (per C99).
15107         * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
15109         * lisp.h (get_specified_cursor_type, get_window_cursor_type):
15110         Don't declare.
15112         * emacs.c (main) [!VMS]: Avoid third arg.
15114         * fns.c (Fcopy_sequence): Doc fix.
15115         (Fmap_char_table): Cast `call2'.
15117 2002-11-14  Francesco Potorti`  <pot@gnu.org>
15119         * s/sol2-8.h: New file.
15121 2002-11-14  Kim F. Storm  <storm@cua.dk>
15123         * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
15124         dependency on `risky-local-variable' and the :propertize form.
15126 2002-11-12  Stefan Monnier  <monnier@cs.yale.edu>
15128         * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
15130         * syntax.c (scan_sexps_forward): Undo last patch.
15131         Use a more obvious fix: check eob before updating the syntax table.
15133 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
15135         * syntax.c (scan_sexps_forward): Update syntax table before reading
15136         a char rather than after so we don't update the table past eob.
15138 2002-11-09  Dave Love  <fx@gnu.org>
15140         * buffer.c (Fset_buffer_major_mode): Fix last change.
15142         * regex.c (regexec): Fix pmatch declaration.
15144         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
15146         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
15147         to self-inserting characters.
15148         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
15150         * coding.c (Vtranslation_table_for_input): New.
15151         (syms_of_coding): DEFVAR it.
15153 2002-11-08  Juanma Barranquero  <lektu@terra.es>
15155         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
15156         window.
15158 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15160         * process.c (Fformat_network_address): Remove unused locals p,
15161         cp, and i.
15163 2002-11-06  Dave Love  <fx@gnu.org>
15165         * buffer.c (Qset_buffer_major_mode_hook): New.
15166         (Fset_buffer_major_mode): Use it.
15168 2002-11-06  Richard M. Stallman  <rms@gnu.org>
15170         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
15171         and stop_polling.
15173         * process.c (wait_reading_process_input):
15174         Test POLLING_PROBLEM_IN_SELECT, not hpux.
15175         Avoid initialization for auto Lisp_Object var.
15177         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
15179         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
15181 2002-11-05  Richard M. Stallman  <rms@gnu.org>
15183         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
15185         * callint.c (Fcall_interactively): New local filter_specs.
15186         (Fcall_interactively): Check for progn as well as let.
15187         Add a gcpro.
15188         (Qprogn): New variable.
15189         (syms_of_callint): Staticpro and init Qprogn.
15191 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
15193         * lread.c (Feval_buffer): Doc fix.
15195 2002-11-04  Dave Love  <fx@gnu.org>
15197         * keyboard.c (read_char): Always translate iff
15198         Vkeyboard_translate_table is a char table and c is valid.
15200         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15201         and fix C types.
15203 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
15205         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
15207         * editfns.c (get_pos_property): Don't hardcode Qfield.
15209         * keyboard.c (adjust_point_for_property): Handle `display' prop on
15210         overlays.  Also handle `invisible' prop.
15212 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
15214         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
15215         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
15217 2002-11-01  Andreas Schwab  <schwab@suse.de>
15219         * editfns.c (Fmessage): Revert last change to properly handle %%.
15221 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
15223         * xmenu.c (unuse_menu_items): New fun.
15224         (menu_items_inuse): New var.
15225         (syms_of_xmenu): Initialize it.
15226         (init_menu_items): Use it to detect re-entrance.
15227         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
15228         (Fx_popup_menu): Remove spurious XSETFRAME.
15230         * editfns.c (find_field): Make an exception for nil fields.
15232 2002-11-01  Dave Love  <fx@gnu.org>
15234         * m/gec63.h: Deleted.
15236 2002-10-31  Dave Love  <fx@gnu.org>
15238         * xterm.c (XTread_socket): Fix last change.
15239         (xaw_scroll_callback): Cast call_data to long to avoid warning.
15241 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
15243         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
15245 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
15247         * editfns.c (overlays_around, get_pos_property): New funs.
15248         (find_field): Use them.
15249         Also be careful not to modify POS before its last use.
15250         (Fmessage): Don't Fformat if there's nothing to format.
15252 2002-10-30  Dave Love  <fx@gnu.org>
15254         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
15255         [HAVE_PTY_H]; Include pty.h.
15257         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
15259         * xterm.c (Qeql): Declare.
15260         (Vx_keysym_table): New.
15261         (syms_of_xterm): Initialize it.
15262         (XTread_socket): Use it.  Deal with ASCII keysyms.
15263         (XSetIMValues) [HAVE_X11R6]: Prototype.
15265         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
15266         (lispy_kana_keys): Comment out.
15267         (make_lispy_event) [XK_kana_A]: Comment out.
15268         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
15269         Fix sprintf call.
15271         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
15272         regexp.h change).
15273         (TERMINFO, LIBS_TERMCAP): Define.
15275         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
15276         (bcmp): Define conditional on HAVE_BCMP.
15277         (NO_SIOCTL_H): Don't define.
15278         (TIOCSIGSEND): Don't make conditional on IRIX6.
15280         * s/sol2-5.h: Don't include strings.h.
15281         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
15283         * s/irix6-0.h (IRIX6): Don't define.
15284         (bcopy, bcmp, bzero): Don't undef.
15286         * s/irix6-5.h: Don't include strings.h.
15287         (IRIX6): Don't define.
15288         (bcopy, bcmp, bzero): Don't undef.
15290         * syntax.c (Fforward_comment): Doc fix.
15292 2002-10-29  Kim F. Storm  <storm@cua.dk>
15294         * process.c (Fsignal_process): Allow PROCESS to be specified by
15295         name in addition to pid (as integer or string).
15297 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
15299         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
15300         environments.
15302 2002-10-27  Kim F. Storm  <storm@cua.dk>
15304         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15306         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
15308         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15310         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15312 2002-10-26  Richard M. Stallman  <rms@gnu.org>
15314         * editfns.c (Fformat): Detect invalid format letters for floats.
15316 2002-10-25  Kenichi Handa  <handa@m17n.org>
15318         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
15319         (x_set_title): Likewise.
15321 2002-10-25  Juanma Barranquero  <lektu@terra.es>
15323         * macgui.h:
15324         * w32gui.h: Remove definition of XColor.
15326         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
15328 2002-10-24  Kim F. Storm  <storm@cua.dk>
15330         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
15331         Callers changed (supply dummy arg).
15333         * lisp.h (get_window_cursor_type): Update prototype.
15335         * w32term.c (x_display_and_set_cursor): Get active_cursor from
15336         get_window_cursor_type to track system caret.
15338 2002-10-24  Kim F. Storm  <storm@cua.dk>
15340         * process.c (Fformat_network_address): New function.
15341         (syms_of_process): Defsubr it.
15342         (list_processes_1): Use it to format :local/:remote address if
15343         service/host is not set; before Emacs would crash in that case.
15344         (Fmake_network_process): Don't use Ffind_operation_coding_system
15345         to setup coding system if host or service is not set.
15347 2002-10-23  Juanma Barranquero  <lektu@terra.es>
15349         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
15351         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
15352         COLORREF.
15354         * macgui.h:
15355         * w32gui.h: Add definition of XColor.
15357         * macfns.c:
15358         * w32fns.c:
15359         * xfaces.c: Remove definition of XColor.
15361 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
15363         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
15365         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
15366         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
15367         window if it is dedicated.
15368         (Fshrink_window): Add preserve_before as was done for enlarge_window.
15369         (Vspecial_display_function): Update docstring.
15371         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
15372         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
15373         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
15375 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
15377         * casefiddle.c (casify_region): Don't treat a prefix char as part
15378         of a word when at the beginning.
15380 2002-10-17  Juanma Barranquero  <lektu@terra.es>
15382         * lread.c (syms_of_lread): Fix typos.
15384 2002-10-17  Dave Love  <fx@gnu.org>
15386         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
15388 2002-10-16  Richard M. Stallman  <rms@gnu.org>
15390         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
15392 2002-10-14  Juanma Barranquero  <lektu@terra.es>
15394         * w16select.c (syms_of_win16select): Fix docstring for
15395         `selection-coding-system'.
15397         * w32select.c (syms_of_w32select): Likewise.
15399 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
15401         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
15402         a backslash-quoted char.
15403         (scan_lists, scan_sexps_forward): Pacify the compiler.
15405 2002-10-13  Richard M. Stallman  <rms@gnu.org>
15407         * window.c (window_scroll): Set immediate_quit.
15409         * print.c (print): When backquote form is the car of a list,
15410         output in old style.  Use old_backquote_output to output all
15411         comma forms inside it in old style too.
15413         * buffer.h (struct buffer): Move `undo_list' down below `name'.
15415 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
15417         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
15418         batch mode).
15420         * lread.c (Fload): Doc fix (load-suffixes).
15422 2002-10-10  Steven Tamm  <steventamm@mac.com>
15424         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
15425         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
15426         Also switch the default to Qnil from Qt.
15428 2002-10-08  Kenichi Handa  <handa@m17n.org>
15430         * coding.c (code_convert_region): When we need more GAP for
15431         conversion, pay attention to the case that coding->produced is not
15432         greater than coding->consumed.
15434 2002-10-07  Richard M. Stallman  <rms@gnu.org>
15436         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
15438 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
15440         * macmenu.c (mac_menu_show): Add j to count menu items; match
15441         menu_item_selection to it to find selected item.
15443 2002-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15445         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
15446         cases.  The correct fix is to pass ReparentNotify to Xt.
15447         The shell widget interprets ConfigureNotify differently depending
15448         on if it has been reparented or not.
15450 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
15452         * editfns.c (Fformat_time_string): Doc fix.
15454 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
15456         * fns.c (Flength): Doc fix.
15458 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
15460         * keyboard.c (keyremap): New struct.
15461         (read_key_sequence): Use it: globally replace keytran_foo with
15462         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
15463         keytran_next and fkey_next to just `next'.
15465 2002-10-04  Steven Tamm  <steventamm@mac.com>
15467         * macterm.c (keycode_to_xkeysym_table): Change return to be
15468         treated like an X keysym.
15470 2002-10-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15472         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
15473         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
15474         This is to also handle x/y changes that occur because of a resize.
15476 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
15478         * frame.c (Vdelete_frame_functions): New variable.
15479         (syms_of_frame): Initialize and defvar it.
15480         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
15481         it when frame's `tooltip' parameter is non-nil.
15483         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
15485         * w32fns.c (x_create_tip_frame): Likewise.
15487         * macfns.c (x_create_tip_frame): Likewise.
15489 2002-09-30  Kenichi Handa  <handa@m17n.org>
15491         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
15492         -1 before calling ccl_driver.
15494         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
15495         Only when it is non-nil, handle composition sequence.
15496         (setup_coding_system) <0>: Don't force composition handling.
15498         * Makefile.in (lisp, shortlisp): Add utf-16.elc
15500 2002-09-29  Richard M. Stallman  <rms@gnu.org>
15502         * search.c (Freplace_match): Adjust match data for the substitution
15503         just made in the buffer.
15505         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
15506         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
15508 2002-09-27  Richard M. Stallman  <rms@gnu.org>
15510         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
15511         (read_char): Use them.  Do all exits thru the end of the function.
15513 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
15515         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
15516         is nil.
15518 2002-09-26  Richard M. Stallman  <rms@gnu.org>
15520         * regex.h (__restrict_arr): Don't define if already defined.
15522         * coding.c (run_pre_post_conversion_on_str):
15523         Save and restore Vdeactivate_mark.
15525 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
15527         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
15529 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
15531         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
15532         nonzero, try face's family at first.  Otherwise try FAMILY at first.
15533         (choose_face_font): If C is a single byte char or latin-1, call
15534         try_font_list with PREFER_FACE_FAMILY 1.
15536 2002-09-21  Richard M. Stallman  <rms@gnu.org>
15538         * window.c (select_window_1): Don't select frame.
15539         Set frame's selected window only when frame itself is selected.
15540         (Fselect_window): Doc fix.
15542 2002-09-18  Kim F. Storm  <storm@cua.dk>
15544         * process.c (make-network-process): Doc fix (there is no
15545         network-server-log-function hook).
15547 2002-09-18  Richard M. Stallman  <rms@gnu.org>
15549         * print.c (print): Clear out the unused parts of Vprint_number_table.
15550         (syms_of_print): Doc fix for `print-number-table'.
15552         * unexelf.c (unexec): Undo previous change.
15554 2002-09-17  Andreas Schwab  <schwab@suse.de>
15556         * m/alpha.h [LINUX]: Don't define DATA_START.
15558 2002-09-16  Dave Love  <fx@gnu.org>
15560         * unexelf.c (unexec): Deal with .got, reinstating change from
15561         25-08-1999.
15563 2002-09-13  Richard M. Stallman  <rms@gnu.org>
15565         * s/sol2-6.h (UNEXEC): Comment out definition.
15567         * unexsol.c (unexec): Don't downcase first letter of error msg.
15569         * xfaces.c (Fcolor_supported_p): Just one arg is required.
15571 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
15573         * unexsol.c: Include buffer.h, charset.h, coding.h.
15575 2002-09-11  Richard M. Stallman  <rms@gnu.org>
15577         * unexsol.c: Don't use report_file_error; do it by hand
15578         using dlerror.
15580         * process.c (wait_reading_process_input, both versions):
15581         Before calling turn_on_atimers, call stop_polling.
15583         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
15585         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
15586         we go to too_near_end, call clear_glyph_matrix.
15587         (redisplay_window): After make_cursor_line_fully_visible,
15588         call clear_glyph_matrix and bypass `goto done'.
15590         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
15591         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
15593 2002-09-10  Richard M. Stallman  <rms@gnu.org>
15595         * fileio.c (Fdo_auto_save): Catch error making directory.
15596         Only call push_message if we need to.
15597         At the same time, make an unwind-protect to pop it.
15598         Rename local message_p to old_message_p.
15599         (do_auto_save_make_dir, do_auto_save_eh): New functions.
15600         (do_auto_save_unwind): Don't call pop_message.
15602         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
15604         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
15606         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
15608         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
15610 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
15612         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
15613         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
15614         (re_match_2_internal): Be more careful with infinite loops.
15616 2002-09-10  Kim F. Storm  <storm@cua.dk>
15618         * macros.c (end_kbd_macro): New function.
15619         (Fend_kbd_macro): Use it.
15621         * macros.h (end_kbd_macro): Declare extern.
15623         * keyboard.c (Fdiscard_input): If defining keyboard macro,
15624         end and save it instead of discarding it.
15626 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
15628         * s/sol2-6.h: Fix typo.  Add comment.
15630 2002-09-09  Richard M. Stallman  <rms@gnu.org>
15632         * regex.c (regnum_t): Use signed int, not unsigned int.
15634         * s/sol2-6.h: New file.
15636         * s/sol2-5.h (UNEXEC): Definition deleted.
15638 2002-09-08  Kim F. Storm  <storm@cua.dk>
15640         * macros.c (executing_macro_index): Change type to EMACS_INT.
15641         (syms_of_macros): DEFVAR_INT it  (needed by kmacro).
15643         * macros.h (executing_macro_index): Change type to EMACS_INT.
15645 2002-09-06  Richard M. Stallman  <rms@gnu.org>
15647         * casetab.c (set_case_table): Make canon table point to eqv table.
15649 2002-09-06  Juanma Barranquero  <lektu@terra.es>
15651         * coding.c (syms_of_coding): Fix spacing.
15653         * composite.c (Fcompose_region_internal)
15654         (Fcompose_string_internal): Likewise.
15656         * data.c (Flsh): Likewise.
15658         * fontset.c (Fset_fontset_font): Likewise.
15660         * macfns.c (Fx_server_max_request_size): Likewise.
15662         * w16select.c (syms_of_win16select): Likewise.
15664         * w32select.c (syms_of_w32select): Likewise.
15666         * xselect.c (syms_of_xselect): Likewise.
15668 2002-09-05  Richard M. Stallman  <rms@gnu.org>
15670         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
15671         call EXTEND_RANGE_TABLE and return a proper value.
15672         (set_image_of_range): Don't call set_image_of_range_1
15673         if no TRANSLATE or if range includes all of Latin-1.
15674         Only call it for the Latin-1 part of the range.
15675         For other cases, make two separate ranges,
15676         one for the original specified characters and one for
15677         their case-conversions.
15679 2002-09-04  Richard M. Stallman  <rms@gnu.org>
15681         * s/sol2-5.h (UNEXEC): Use unexsol.o.
15683         * window.c (displayed_window_lines): Correct for one-off bug
15684         in HEIGHT on non-window displays.
15686         * regex.c (set_image_of_range_1): New function.
15687         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
15688         Return a value to indicate running out of memory.
15689         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
15690         (extend_range_table_work_area): New subroutine.
15691         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
15692         Different calling conventions, and used from set_image_of_range{,_1}.
15693         (IMMEDIATE_QUIT_CHECK): Definitions moved.
15695 2002-09-04  Juanma Barranquero  <lektu@terra.es>
15697         * makefile.w32-in: All dependencies updated.
15699 2002-09-01  Richard M. Stallman  <rms@gnu.org>
15701         * unexsol.c: New file.
15703         * xfns.c (Qbox): Declare external, don't define.
15705         * xdisp.c (redisplay_window) <force-start case>:
15706         If point is on semi-visible last line, reposition
15707         it at previous line.
15709         * alloc.c (display_malloc_warning): Use display-warning.
15710         (malloc_warning_1): Function deleted.
15712         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
15714         * lread.c (read1): Handle #! by skipping the line.
15716 2002-08-31  Richard M. Stallman  <rms@gnu.org>
15718         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
15719         Don't include LDFLAGS.
15720         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
15722 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
15724         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
15725         member of x_display_info unless we compile for some window system.
15727 2002-08-31  Kim F. Storm  <storm@cua.dk>
15729         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
15730         (get_window_cursor_type): Don't use them.
15731         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
15733 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
15735         * xdisp.c (get_next_display_element): Fix previous change.
15737 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
15739         * macterm.c (expose_overlaps): New function (merge code from xterm.c).
15740         (expose_window): Use it to fix the display of overlapping
15741         rows (merge code from xterm.c).
15743         * macfns.c (Qbox): Add extern declaration.
15745 2002-08-30  Juanma Barranquero  <lektu@terra.es>
15747         * w32fns.c (Qbox): Make extern.
15748         (syms_of_w32fns): Remove initialization of Qbox.
15750 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
15752         * xfns.c (Fx_open_connection): Fix error message.
15754 2002-08-30  Kim F. Storm  <storm@cua.dk>
15756         The following changes consolidates the handling of the cursor
15757         type in xdisp.c, moving duplicate code and functionality from
15758         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
15760         * frame.h (enum text_cursor_kinds): Consolidated here.
15761         Added DEFAULT_CURSOR value.
15762         (struct frame) <desired_cursor, cursor_width>
15763         <blink_off_cursor, blink_off_cursor_width>: New fields.
15764         Consolidated from output_x, output_w32 and output_mac structs.
15765         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15766         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
15768         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
15769         Variables consolidated here.
15770         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
15771         (Vcursor_in_non_selected_windows): Renamed from
15772         cursor_in_non_selected_windows and changed to Lisp_Object.
15773         (syms_of_xdisp): Define and staticpro new and moved variables.
15774         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
15775         consolidated here.  Recognize Qhollow setting.
15776         (set_frame_cursor_types): New function to set frame cursor types
15777         based on the frame parameters.
15778         (get_window_cursor_type): New function to calculate new cursor
15779         type and width for the specified window.  Based on duplicated
15780         code consolidated here.
15781         Enhancements: cursor-in-non-selected-windows may be a cursor type,
15782         check buffer-local alternate-cursor-type and blink-cursor-alist
15783         before using built-in blink off methods.
15785         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
15787         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
15788         (get_specified_cursor_type, get_window_cursor_type)
15789         (set_frame_cursor_types): Added prototypes.
15791         * macfns.c (x_specified_cursor_type): Removed.
15792         (x_set_cursor_type): Use set_frame_cursor_types.
15793         (Qbar, Qbox): Removed.
15794         (syms_of_macfns): Don't intern or staticpro them.
15796         * macterm.c (x_specified_cursor_type): Remove prototype.
15797         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15798         (x_display_and_set_cursor): Use get_window_cursor_type.
15799         Remove unused local variables cursor_non_selected, active_cursor.
15800         Redraw cursor if hbar cursor width changes.
15801         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
15803         * macterm.h (enum text_cursor_kinds): Removed.
15804         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
15805         <blink_off_cursor, blink_off_cursor_width>: Members removed.
15806         (FRAME_DESIRED_CURSOR): Macro removed.
15808         * w32fns.c (Vblink_cursor_alist): Removed.
15809         (Qbar, Qhbar, Qbox, Qhollow): Removed.
15810         (syms_of_w32fns): Don't intern, staticpro, or define them.
15811         (x_specified_cursor_type): Removed.
15812         (x_set_cursor_type): Use set_frame_cursor_types.
15814         * w32term.c (x_specified_cursor_type): Remove prototype.
15815         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15816         (x_display_and_set_cursor): Use get_window_cursor_type.
15817         Remove unused local variables cursor_off_state.
15818         Redraw cursor if hbar cursor width changes.
15819         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
15821         * w32term.h (enum text_cursor_kinds): Removed.
15822         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
15823         <blink_off_cursor, blink_off_cursor_width>: Members removed.
15824         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15825         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15826         (struct w32_display_info) <x_highlight_frame>: Renamed member from
15827         w32_highlight_frame.
15829         * xfns.c (Vblink_cursor_alist): Removed.
15830         (Qbar, Qhbar, Qbox, Qhollow): Removed.
15831         (syms_of_xfns): Don't intern, staticpro, or define them.
15832         (x_specified_cursor_type): Removed.
15833         (x_set_cursor_type): Use set_frame_cursor_types.
15835         * xterm.c (x_specified_cursor_type): Remove prototype.
15836         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15837         (x_display_and_set_cursor): Use get_window_cursor_type.
15838         Remove unused local variables cursor_off_state.
15839         Redraw cursor if hbar cursor width changes.
15841         * xterm.h (enum text_cursor_kinds): Removed.
15842         (struct output_x) <current_cursor, desired_cursor, cursor_width>
15843         <blink_off_cursor, blink_off_cursor_width>: Members removed.
15844         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15845         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15846         (x_specified_cursor_type): Remove prototype.
15848 2002-08-28  Richard M. Stallman  <rms@gnu.org>
15850         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15851         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15852         (Vblink_cursor_alist): New variable.
15853         (syms_of_w32fns): Initialize and defvar it.
15854         (x_specified_cursor_type): Recognize Qbox for filled box.
15855         Exceptions are hollow boxes.
15856         (Qbox, Qhollow): New variables.
15857         (syms_of_w32fns): Initialize and staticpro them.
15859         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15860         New macros.
15861         (struct w32_output): New fields blink_off_cursor,
15862         blink_off_cursor_width.
15863         (FRAME_CURSOR_WIDTH): New macro.
15865         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15866         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15868         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15869         for bar cursor.
15871         * w32term.c (expose_overlaps): New function.
15872         (expose_window): Use it to fix the display of overlapping rows.
15874 2002-08-28  Simon Josefsson  <jas@extundo.com>
15876         * xfns.c (Fx_open_connection): Improve help when X connection
15877         fails, xhost is insecure and xauth is better.
15879 2002-08-28  Juanma Barranquero  <lektu@terra.es>
15881         * makefile.w32-in: Add missing dependencies on w32term.h and
15882         composite.h.
15884         * emacs.c (USAGE1): Add missing newline.
15886 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
15888         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
15890 2002-08-27  Richard M. Stallman  <rms@gnu.org>
15892         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15893         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15894         (Vblink_cursor_alist): New variable.
15895         (syms_of_xfns): Initialize and defvar it.
15896         (x_specified_cursor_type): Recognize Qbox for filled box.
15897         Exceptions are hollow boxes.
15898         (Qbox, Qhollow): New variables.
15899         (syms_of_xfns): Initialize and staticpro them.
15901         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15902         New macros.
15903         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
15905         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15906         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15908         * emacs.c (main): Handle --script.
15909         (USAGE1): Mention --script.
15910         (standard_args): Define sort order for --script.
15912 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
15914         * xdisp.c (redisplay_updating_p): Variable removed.
15915         (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
15916         New variables.
15917         (init_iterator): Don't free realized faces if
15918         inhibit_free_realized_faces is set.
15919         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
15920         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
15921         initialize Qinhibit_free_realized_faces.
15923         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
15924         when iterator is adding glyphs to a glyph matrix.
15926 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
15928         * xdisp.c (get_next_display_element): In unibyte case, don't use
15929         octal form for such eight-bit characters that can be converted to
15930         multibyte char.
15932 2002-08-26  Kim F. Storm  <storm@cua.dk>
15934         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
15935         foreground and background colors.  From Joe Buehler.
15937 2002-08-26  Miles Bader  <miles@gnu.org>
15939         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
15941 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
15943         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
15944         defined instead of MAC_OSX.
15946         * s/darwin.h (select): Define select to sys_select only if
15947         HAVE_CARBON is defined.
15948         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
15949         (DONT_REOPEN_PTY): #def it.
15951         * macterm.c (XTread_socket): Remove code to call
15952         SendEventToEventTarget for keys with command modifiers when
15953         mac_command_key_is_meta is nil.
15955 2002-08-24  Andreas Schwab  <schwab@suse.de>
15957         * eval.c (Fdefvar): Fix last change.
15959 2002-08-23  Richard M. Stallman  <rms@gnu.org>
15961         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
15962         Record variables in load history as (defvar . VAR).
15963         (Fdefvar): Don't record in load history if no initial value.
15964         (Qdefvar): New variable.
15965         (syms_of_eval): Init and staticpro it.
15967         * lread.c (syms_of_lread): Doc fix.
15968         (build_load_history): Use Fmember to see if a definition
15969         is already in the Vload_history element.
15971         * process.c (Fstart_process): Remove /: from program name.
15973         * emacs.c (decode_env_path): Don't add /: if file name handler
15974         has a `safe-magic' property.
15976         * callproc.c (Fcall_process): Remove /: from program name.
15978 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
15980         * regex.c (PATFETCH): Remove the translating fetch.
15981         (PATFETCH_RAW): Rename to PATFETCH.
15982         (set_image_of_range): New fun.
15983         (SET_RANGE_TABLE_WORK_AREA): Use it.
15984         (regex_compile): Don't translate the pattern chars so eagerly.
15985         Only do it when inserting an `exactn' bytecode or when handling
15986         a char-range.
15987         (mutually_exclusive_p): Avoid empty statement.
15989 2002-08-22  Kim F. Storm  <storm@cua.dk>
15991         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
15992         end up on a partially visible line; this reverts a specific part
15993         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
15994         display error which has been reported several times now.
15995         However it introduces the problem that changes was supposed to fix.
15996         See my comments in the source if you want to debug this further.
15998 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
16000         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16002 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
16004         * msdos.c (croak): Add `void' to definition.
16006         * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
16007         Don't define them, they are defined in msdos.c.
16009         * mem-limits.h [MSDOS]: Declare etext.
16011         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
16012         `const' since CORRECT_DIR_SEPS modifies its target.
16014 2002-08-19  Kim F. Storm  <storm@cua.dk>
16016         * keyboard.c (Fclear_this_command_keys): Add optional arg
16017         KEEP-RECORD to avoid clearing lossage when we just want to clear
16018         the current key sequence (kmacro needs this).
16020 2002-08-19  Kenichi Handa  <handa@localhost>
16022         * composite.c (run_composition_function): Call FUNC if it is fboundp.
16024         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
16025         cons, return Qnil.
16027 2002-08-17  Richard M. Stallman  <rms@gnu.org>
16029         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
16031         * sysdep.c [!VMS]: Include sys/files.h.
16033         * editfns.c (save_restriction_restore): Defend from unchained marker.
16035         * buffer.c (overlays_at): Handle extending vec uniformly.
16036         (overlays_in): Handle extending vec from length 0 as in overlays_at.
16038 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
16040         * mac.c (init_mac_osx_environment): New function.
16042         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
16044 2002-08-14  Kim F. Storm  <storm@cua.dk>
16046         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
16047         executing macro before appending to it (when used from Lisp).
16048         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
16049         which is called prior to each iteration of macro (for kmacro.el).
16050         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
16052         * lisp.h (Fexecute_kbd_macro): Update prototype.
16054         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
16056 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
16058         * xselect.c (QUTF8_STRING): New variable.
16059         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
16060         (x_atom_to_symbol): Likewise.
16061         (x_get_local_selection): New argument local_request.  If it is
16062         nonzero, call handler_fn with the second arg nil.
16063         (x_handle_selection_request): Call x_get_local_selection with
16064         local_request 0.
16065         (lisp_data_to_selection_data): Don't encode the string here.
16066         (Fx_get_selection_internal): Call x_get_local_selection with
16067         local_request 1.
16068         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
16070         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
16072         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
16074 2002-08-13  Richard M. Stallman  <rms@gnu.org>
16076         * minibuf.c (Fminibufferp): New function.
16077         (syms_of_minibuf): Defsubr it.
16078         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
16080 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
16082         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
16084 2002-08-12  Richard M. Stallman  <rms@gnu.org>
16086         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
16087         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
16088         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
16089         already.
16091         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
16093 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
16095         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
16096         (Vmac_pass_command_to_system): New variable.
16097         (Vmac_pass_control_to_system): New variable.
16098         (do_mouse_moved): Check wp with is_emacs_window.
16099         (XTread_socket): Check window_ptr with is_emacs_window.
16100         Call FrontNonFloatingWindow instead of FrontWindow.  Send keydown
16101         events back to Mac Toolbox for processing, depending on values of
16102         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
16103         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
16104         Vmac_pass_control_to_system.
16106 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
16108         * coding.c (unencodable_char_position): New function.
16109         (Funencodable_char_position): New function.
16110         (syms_of_coding): Defsubr Funencodable_char_position.
16112 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
16114         * mac.c (sys_select) [MAC_OSX]: New function.
16116         * macterm.c (MakeMeTheFrontProcess): New function.
16117         (mac_initialize): Call MakeMeTheFrontProcess.
16119         * s/darwin.h: Define select to sys_select.
16121 2002-08-09  Richard M. Stallman  <rms@gnu.org>
16123         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
16125 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
16127         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
16128         end of the buffer.
16130 2002-08-08  Ken Raeburn  <raeburn@mit.edu>
16132         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
16134         * puresize.h (BASE_PURESIZE): Increase to 910000.
16136 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
16138         * coding.c (Ffind_operation_coding_system): For write-region, if
16139         VISIT is a filename, make it the target.
16141 2002-08-07  Richard M. Stallman  <rms@gnu.org>
16143         * alloc.c (mark_object): Detect long lists for debugging.
16144         (mark_object_loop_halt): New variable.
16146         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
16148         * data.c (Fmake_variable_frame_local): Doc fix.
16150 2002-08-01  David Ponce  <david@dponce.com>
16152         * w32menu.c (local_heap, local_alloc, local_free): New macros.
16153         (malloc_widget_value, free_widget_value)
16154         (w32_free_submenu_strings): Use them.
16156         (push_submenu_start, push_submenu_end, push_left_right_boundary)
16157         (push_menu_pane, push_menu_item, single_keymap_panes)
16158         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
16159         (single_submenu, set_frame_menubar)
16160         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
16162         (Fx_popup_menu): Don't show pop up menu until preceding one is
16163         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
16165         * w32menu.c: Changes adapted from xmenu.c
16166         (set_frame_menubar): First parse all submenus,
16167         then make widget_value trees from them.
16168         Don't allocate any widget_value objects
16169         until we are done with the parsing.
16170         (parse_single_submenu): New function.
16171         (digest_single_submenu): New function.
16172         (single_submenu): Function deleted, replaced by those two.
16174 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
16176         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
16177         returns a valid window pointer before proceeding for keyDown and
16178         autoKey events.
16180 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
16182         * macterm.c (USE_CARBON_EVENTS): New macro.
16183         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
16184         (x_iconify_frame): Call CollapseWindow.
16185         (Vmac_reverse_ctrl_meta): New variable.
16186         (Vmac_wheel_button_is_mouse_2): New variable.
16187         (init_mac_drag_n_drop): New function.
16188         (mac_do_receive_drag): New function.
16189         (mac_handle_service_event): New function.
16190         (init_service_handler): New function.
16191         (mac_to_emacs_modifiers): New function.
16192         (mac_event_to_emacs_modifiers): New function.
16193         (mac_get_mouse_btn): New function.
16194         (mac_convert_event_ref): New function.
16195         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
16196         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
16197         mac_get_mouse_btn.
16198         (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
16200         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
16201         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
16202         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
16203         TOOL_BAR_EVENT for MAC_OS as well.
16204         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
16205         as for WINDOWS_NT.
16206         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
16208         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
16210 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
16212         * xdisp.c (forward_to_next_line_start): Fix a condition that
16213         lead to a newline being skipped.
16215 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
16217         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
16219 2002-08-01  Richard M. Stallman  <rms@gnu.org>
16221         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
16223 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
16225         * macfns.c: #undef init_process before #define-ing it.
16227         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
16228         HAVE_CARBON is defined.
16230 2002-07-31  Richard M. Stallman  <rms@gnu.org>
16232         * xmenu.c (set_frame_menubar): First parse all submenus,
16233         then make widget_value trees from them.
16234         Don't allocate any widget_value objects
16235         until we are done with the parsing.
16236         (parse_single_submenu): New function.
16237         (digest_single_submenu): New function.
16238         (single_submenu): Function deleted, replaced by those two.
16240 2002-07-30  Juanma Barranquero  <lektu@terra.es>
16242         * w32proc.c (syms_of_ntproc): Fix docstring of
16243         `w32-get-true-file-attributes'.
16245 2002-07-28  Richard M. Stallman  <rms@gnu.org>
16247         * s/hpux8.h (HPUX8): Define this before including hpux.h.
16248         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
16250         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
16252         * keyboard.c (make_lispy_event):
16253         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
16254         Explicitly clear up_modifier in event->modifiers.
16256 2002-07-27  Richard M. Stallman  <rms@gnu.org>
16258         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
16260         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16261         for bar cursor.
16263 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
16265         * coding.c (detect_coding_iso2022): While checking a byte sequence
16266         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
16267         it in the normal loop.
16269 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
16271         * xterm.c (expose_overlaps): New function.
16272         (expose_window): Use it to fix the display of overlapping rows.
16274         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
16276 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
16278         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
16279         since it only depends on XUINT.
16281         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
16282         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
16283         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
16284         Macros deleted.
16286         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
16287         its value over other approaches.
16288         * sysdep.c (start_of_data): Don't define the function if a macro
16289         form has been defined.
16291 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
16293         * xdisp.c (redisplay_updating_p): New variable.
16294         (init_iterator): Don't free realized faces when
16295         redisplay_updating_p is set.
16296         (redisplay_internal): Set redisplay_updating_p while updating
16297         the display.
16299 2002-07-23  Richard M. Stallman  <rms@gnu.org>
16301         * editfns.c (Fmessage): Treat "" like nil.
16303 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
16305         * xdisp.c (face_before_or_after_it_pos):
16306         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16308 2002-07-22  Juanma Barranquero  <lektu@terra.es>
16310         * callproc.c (init_callproc) [DOS_NT]:
16311         Initialize Vshared_game_score_directory to nil.
16312         (syms_of_callproc) [DOS_NT]: Likewise.
16314 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
16316         * xdisp.c (display_line): Replace an abort with xassert.
16318 2002-07-21  Richard M. Stallman  <rms@gnu.org>
16320         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
16321         and END_UNCHANGED when setting buffer_unchanged_p.
16322         Use current_matrix_up_to_date_p to decide whether to use
16323         try_cursor_movement.
16325         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
16327         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
16329         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
16330         Set to nil if dir does not exist.
16331         (syms_of_callproc): Init unconditionally and simply.
16333         * buffer.c (Fbuffer_list): Doc fix.
16335 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
16337         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
16339         * buffer.c (mmap_realloc): When shrinking, make sure number of
16340         pages to unmap is rounded towards zero.
16342         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
16343         (XSETINT): Deleted.
16345         * m/att3b.h (XINT): Don't define.
16346         (VALBITS, VALMASK, XTYPE): Deleted.
16347         (DATA_SEG_BITS): Define.
16348         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
16349         ARRAY_MARK_FLAG): Deleted.
16350         (DATA_SEG_BITS): Define.
16351         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
16352         (DATA_SEG_BITS): Define.
16354 2002-07-20  Richard M. Stallman  <rms@gnu.org>
16356         * print.c (print_error_message): New args CONTEXT and CALLER.
16357         Calls changed.
16359         * lisp.h (print_error_message): Declare new args.
16361         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
16362         and CONTEXT to print_error_message, don't print them here.
16363         For a Quit, don't use Vsignaling_function.
16364         Call message_log_maybe_newline.
16366         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
16368 2002-07-20  Kim F. Storm  <storm@cua.dk>
16370         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
16372 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
16374         * bytecode.c (struct byte_stack): Pointers into byte string now
16375         point to const.
16376         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
16377         const.
16378         * charset.h (BCOPY_SHORT): Source pointer now points to const.
16379         * coding.c (encode_eol, detect_coding, detect_eol):
16380         (decode_coding, encode_coding, detect_coding_system):
16381         Source strings now treated as const.
16382         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
16383         modify Lisp string contents.
16384         * coding.h (decode_coding, encode_coding, detect_coding,
16385         detect_eol): Declarations updated.
16386         * composite.c (compose_chars_in_text): Treat Lisp string contents
16387         as const.
16388         * dispnew.c (safe_bcopy): Source pointer now points to const.
16389         * lisp.h (STRING_COPYIN): New macro.
16390         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
16391         (internal_with_output_to_temp_buffer): Declarations updated.
16392         * print.c (temp_output_buffer_setup):
16393         (internal_with_output_to_temp_buffer): Buffer name argument is now
16394         pointer to const.
16395         * sound.c (struct sound_device): Function pointer field "write"
16396         buffer argument now points to const.
16397         (vox_write): Buffer argument points to const.
16398         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
16399         contents as const.
16400         * sysdep.c (emacs_write): Buffer pointer now const.
16401         * term.c (encode_terminal_code): Buffer pointer now const.
16402         * xfaces.c (may_use_scalable_font_p): Argument now points to const.
16403         (x_face_list_fonts, x_update_menu_appearance):
16404         (hash_string_case_insensitive): Treat Lisp string contents as const.
16406 2002-07-19  Juanma Barranquero  <lektu@terra.es>
16408         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
16410         * fileio.c (syms_of_fileio): Likewise.
16411         (Ffile_name_as_directory): Fix argument name in docstring.
16412         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
16414 2002-07-18  Richard M. Stallman  <rms@gnu.org>
16416         * data.c (Fdefalias): Doc fix.
16418 2002-07-17  Dave Love  <fx@gnu.org>
16420         * intervals.h (text_property_stickiness): Use P_.
16422         * ccl.c: Remove `emacs' conditionals.
16423         (ccl_backtrace_table): Fix size spec.
16424         (ccl_driver): Fix type errors.
16426 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
16428         * alloc.c (xstrdup, make_string, make_unibyte_string)
16429         (make_multibyte_string, build_string): String pointer args now
16430         point to const.
16431         * charset.c (find_charset_in_text, c_string_width):
16432         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
16433         * fileio.c (report_file_error):
16434         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
16435         (count_combining_before, count_combining_after, insert_1_both):
16436         (insert, insert_and_inherit, insert_string):
16437         (insert_before_markers, insert_before_markers_and_inherit):
16438         * lread.c (intern, oblookup, hash_string):
16439         * minibuf.c (temp_echo_area_glyphs):
16440         * search.c (fast_c_string_match_ignore_case):
16441         * sysdep.c (emacs_open, set_file_times):
16442         * xfaces.c (xstricmp):
16443         * xdisp.c (store_frame_title, string_char_and_length):
16444         (message_dolog, message2, message2_nolog, set_message): Likewise.
16445         (set_message_1): Cast message string argument to const pointer.
16446         * editfns.c (general_insert_function): Insertion function now
16447         takes pointer to const for input data.
16448         * charset.h (find_charset_in_text, c_string_width):
16449         (parse_str_as_multibyte): Declarations updated.
16450         * dispextern.h (xstricmp): Declaration updated.
16451         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
16452         (count_size_as_multibyte, count_combining_before):
16453         (count_combining_after, insert_1, insert_1_both, message_dolog):
16454         (insert, insert_and_inherit, insert_before_markers)
16455         (insert_before_markers_and_inherit, set_message, message2):
16456         (message2_dolog, build_string, make_string, make_unibyte_string):
16457         (make_multibyte_string, intern, oblookup, report_file_error):
16458         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
16459         (emacs_open, xstrdup): Declarations updated.
16460         * systime.h (set_file_times): Declaration updated.
16462         * charset.c (find_charset_in_text, lisp_string_width): Use const
16463         for pointer to lisp string data.
16464         * charset.h (FETCH_STRING_CHAR_ADVANCE):
16465         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
16466         * coding.c (Ffind_coding_systems_region_interval):
16467         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
16468         (Fmake_directory_internal, Fdelete_directory):
16469         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
16470         * fontset.c (font_family_registry, fs_query_fontset):
16471         (list_fontsets):
16472         * frame.c (Fframe_parameter):
16473         * keyboard.c (cmd_error_internal):
16474         * keymap.c (Fdescribe_buffer_bindings):
16475         * lread.c (complete_filename_p, openp):
16476         * minibuf.c (Fminibuffer_complete_word):
16477         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
16478         (face_before_or_after_it_pos, next_element_from_string):
16479         (get_overlay_arrow_glyph_row, display_mode_element):
16480         (decode_mode_spec_coding):
16481         * xterm.c (same_x_server): Likewise.
16483         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
16484         settings of non-existent fields.
16486         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
16487         copy a lisp value.
16489         * lread.c (Fintern_soft): Use string macros instead of
16490         Lisp_String fields.
16491         * keyboard.c (echo_char, parse_modifiers_uncached):
16492         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
16493         * textprop.c (validate_interval_range, interval_of): Likewise.
16495         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
16497         * charset.h (FETCH_STRING_CHAR_ADVANCE)
16498         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
16499         XSTRING()->size_byte.
16501         * lisp.h (SDATA, SREF): Produce rvalue.
16502         (SSET): New macro.
16503         * alloc.c (make_event_array): Use SSET for storing into a string.
16504         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
16505         a string.
16506         * casefiddle.c (casify_object): Use SSET.
16507         * charset.h (FETCH_STRING_CHAR_ADVANCE)
16508         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
16509         address of string contents.
16510         * data.c (Faref): Use SDATA.
16511         (Faset): Use SDATA, SSET.
16512         * dired.c (directory_files_internal): Use SSET.
16513         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
16514         (Fread_file_name): Use SREF, SSET.
16515         * fns.c (concat): Use SSET.
16516         (concat, Fdelete): Use SDATA.
16517         * insdel.c (insert_from_string_1): Use SDATA.
16518         * keyboard.c (Fevent_convert_list): Use SREF.
16519         * lread.c (Fload): Use SDATA, SSET.
16520         * macfns.c (validate_x_resource_name): Use SSET.
16521         * process.c (status_message): Use SSET.
16522         * search.c (wordify): Use SDATA.
16523         (Freplace_match): Use SREF.
16524         * w32fns.c (validate_x_resource_name): Use SSET.
16525         * xfns.c (validate_x_resource_name): Use SSET.
16526         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
16528 2002-07-16  Richard M. Stallman  <rms@gnu.org>
16530         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
16532         * xdisp.c (reconsider_clip_changes):
16533         Don't test prevent_redisplay_optimizations_p.
16534         (redisplay_internal): Test prevent_redisplay_optimizations_p
16535         along with clip_changed in some cases.
16536         (try_window_id): Likewise.
16537         (redisplay_window): New local var buffer_unchanged_p.
16539         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
16541         * process.c (create_process): Test USG_SUBTTY_WORKS.
16542         (process_send_signal): Clean up handling of GID.
16543         Detect errors in ioctls meant to set GID.
16545         * window.c (temp_output_buffer_show):
16546         Don't set prevent_redisplay_optimizations_p.
16548 2002-07-15  Juanma Barranquero  <lektu@terra.es>
16550         * eval.c (Fdefvaralias): Add docstring argument.
16552 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
16554         * lisp.h (STRING_INTERVALS): Produce rvalue.
16555         (STRING_SET_INTERVALS): New macro.
16556         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
16557         * fns.c (Fstring_as_multibyte): Likewise.
16558         * intervals.c (balance_possible_root_interval, delete_interval)
16559         (create_root_interval, copy_intervals_to_string): Likewise.
16560         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
16561         instead of 0.
16563 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
16565         * lisp.h (STRING_SET_CHARS): New macro.
16566         (SCHARS, SBYTES): Produce rvalues.
16567         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
16568         * fns.c (concat): Likewise.
16569         * lread.c (read_vector): Likewise.
16571         * lisp.h (SMBP): Delete.  All uses changed to STRING_MULTIBYTE.
16572         (STRING_SET_UNIBYTE): New macro.
16573         (SET_STRING_BYTES): Delete.  Callers (all of which supplied a
16574         length of -1) changed to use STRING_SET_UNIBYTE.
16575         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16576         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
16577         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
16578         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
16579         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
16580         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
16581         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
16582         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
16583         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16584         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
16585         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
16586         STRING_BYTES or indirection changed to SCHARS, SBYTES,
16587         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
16588         unchanged for now.
16590 2002-07-13  Kim F. Storm  <storm@cua.dk>
16592         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
16594 2002-07-12  Richard M. Stallman  <rms@gnu.org>
16596         * fileio.c (Fwrite_region): Doc fix.
16598         * print.c (print_error_message): Don't handle Vsignaling_function here.
16600         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
16601         (command_loop_1): Avoid certain actions after memory-full error.
16603         * eval.c (Fsignal): Don't call cancel_hourglass.
16604         For a memory-full error, don't call Vsignal_hook_function
16605         and don't set Vsignaling_function.
16607         * process.c (process_send_signal): Add abort call.
16609 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
16611         * keymap.c (Fkey_binding): Fix typo.
16613 2002-07-11  Richard M. Stallman  <rms@gnu.org>
16615         * alloc.c (Vmemory_full): New variable.
16616         (Vmemory_signal_data): Rename from memory_signal_data.
16617         Uses changed.
16618         (syms_of_alloc): Defvar them.
16619         (memory_full, buffer_memory_full): Set Vmemory_full.
16621         * lisp.h (Vmemory_full): Add declaration.
16622         (current_column, indented_beyond_p): Change declaration.
16624         * indent.c (last_known_column): Declare as double, not float.
16625         (current_column, current_column_1, string_display_width)
16626         (position_indentation): Return `double'.
16627         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
16629         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
16630         (back_to_previous_visible_line_start)
16631         (reseat_at_next_visible_line_start, next_element_from_buffer):
16632         Use `double', not `float', when calling indented_beyond_p.
16634         * s/hpux11.h (BROKEN_SA_RESTART): Define.
16636         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
16638 2002-07-11  Juanma Barranquero  <lektu@terra.es>
16640         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
16641         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
16642         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
16643         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
16644         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
16645         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
16647 2002-07-10  Juanma Barranquero  <lektu@terra.es>
16649         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
16650         All callers changed.
16652 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
16654         * data.c (Fdefalias): Add an optional `docstring' argument.
16655         (set_internal, Fsetq_default): Use XCAR/XCDR.
16657         * composite.c (HASH_VALUE, HASH_KEY):
16658         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
16660 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
16662         * callproc.c (Fcall_process): Fix previous change.
16664 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
16666         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
16667         Add support for hash-tables.
16668         (Ftry_completion): Return t even if the string appears multiple times.
16670         * fns.c (Fnconc): Use XCDR.
16671         (Fprovide): Use CONSP and XCDR.
16672         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16673         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
16674         (Fmake_hash_table): Accept `:size nil'.
16675         (Fmakehash): Delete: moved to subr.el.
16676         (syms_of_fns): Don't defsubr makehash.
16678         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16679         (HASH_TABLE_SIZE): Move from fns.c.
16681 2002-07-07  Richard M. Stallman  <rms@gnu.org>
16683         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
16684         Instead just return 0 when there is something to be done.
16685         (try_scrolling): If make_cursor_line_fully_visible returns 0,
16686         retry scrolling as if cursor were off the bottom.
16687         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
16688         return CURSOR_MOVEMENT_MUST_SCROLL.
16689         (redisplay_window): If make_cursor_line_fully_visible returns 0,
16690         go to try_to_scroll.
16692         * buffer.c (Fbuffer_local_value): Store current value into its binding
16693         so we get the up-to-date value for the binding that is loaded.
16695         * eval.c (Fdefmacro): Doc fix.
16697 2002-07-05  Dave Love  <fx@gnu.org>
16699         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
16700         correctly.
16702         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
16703         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
16704         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
16705         CCL_LookupCharConstTbl.
16706         (syms_of_ccl): Defvar translation-hash-table-vector.
16708 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16710         * xdisp.c: Remove unused variable `face'.
16712 2002-07-04  Juanma Barranquero  <lektu@terra.es>
16714         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
16715         obsolescence information.
16717 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
16719         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
16720         pattern.  Search cache first.
16721         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
16722         for Japanese font.
16723         (XLoadQueryFont): Use it.
16725 2002-07-02  Richard M. Stallman  <rms@gnu.org>
16727         * keymap.c (Fdefine_key): Doc fix.
16729         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
16731 2002-07-02  Juanma Barranquero  <lektu@terra.es>
16733         * keymap.c (syms_of_keymap): Fix typo.
16735 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
16737         * s/darwin.h: Define POSIX_SIGNALS.
16739         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
16740         and FSRefMakePath to convert FSSpec returned with Apple Event to
16741         Posix pathname.
16742         (mac_initialize) [TARGET_API_MAC_CARBON]:
16743         Call init_required_apple_events and disable the `Quit' menu item
16744         provided automatically by the Carbon Toolbox.
16746 2002-07-01  Dave Love  <fx@gnu.org>
16748         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16749         for K&R.
16751         * xterm.c: Fix prototype for K&R.
16753         * term.c (costs_set): Declare static, non-initialized for pcc.
16755 2002-07-01  Richard M. Stallman  <rms@gnu.org>
16757         * keyboard.c (timer_last_idleness_start_time): New variable.
16758         (timer_start_idle): Set that.
16759         (read_key_sequence): Use that to reset timer_idleness_start_time
16760         to previous value.
16762         * window.c (Frecenter): With arg, set optional_new_start.
16764         * xdisp.c (redisplay_internal): Make optional_new_start really work.
16766         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
16767         buffer for completion.
16769 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
16771         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
16773 2002-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16775         * keyboard.c (readable_filtered_events): New function that filters
16776         FOCUS_IN_EVENT depending on parameter.
16777         (readable_events): Calls readable_filtered_events, not filtering
16778         FOCUS_IN_EVENT.
16779         (get_filtered_input_pending): New function, filtering parameter passed
16780         to readable_filtered_events.
16781         (get_input_pending): Calls get_filtered_input_pending, not filtering
16782         FOCUS_IN_EVENT.
16783         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
16784         FOCUS_IN_EVENT.
16786         * xterm.h (struct x_output): Add focus_state.
16788         * xterm.c (x_focus_changed): New function.
16789         (x_detect_focus_change): New function.
16790         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
16791         EnterNotify and LeaveNotify to track X focus changes.
16793 2002-06-28  Andreas Schwab  <schwab@suse.de>
16795         * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
16797 2002-06-27  Kim F. Storm  <storm@cua.dk>
16799         * xdisp.c (mode_line_string_list, mode_line_string_face)
16800         (mode_line_string_face_prop): New variables.
16801         (store_mode_line_string): New function.
16802         (display_mode_element): Use store_mode_line_string to
16803         add mode-line string elements to mode_line_string_list
16804         when mode_line_string_list is non-nil.
16805         (Fformat_mode_line): Now returns propertized string by
16806         default.  New arg NO-PROPS to ignore properties.
16807         (decode_mode_spec): Only add two dashes for %- in propertized
16808         mode-line string.
16809         (syms_of_xdisp): Init and staticpro mode_line_string_list.
16811 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
16813         * minibuf.c (minibuffer_completion_contents): Add return type.
16815 2002-06-27  Juanma Barranquero  <lektu@terra.es>
16817         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
16819 2002-06-26  Juanma Barranquero  <lektu@terra.es>
16821         * fileio.c (read_file_name_cleanup): Add missing return.
16823 2002-06-26  Richard M. Stallman  <rms@gnu.org>
16825         * window.c (Frecenter): Don't set force_start flag.
16827         * minibuf.c (do_completion, Fminibuffer_complete_word)
16828         (Fminibuffer_completion_help): Complete just the text before point.
16829         (minibuffer_completion_contents): New function.
16831         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
16833         * frame.c (frames_bury_buffer): Function deleted.
16835 2002-06-25  Miles Bader  <miles@gnu.org>
16837         * callint.c (Fcall_interactively): When checking to see if doprnt hit
16838         the end of callint_message, allow for a terminating '\0'.
16840 2002-06-24  Juanma Barranquero  <lektu@terra.es>
16842         * w32select.c: Include composite.h.
16844         * w16select.c: Likewise.
16846 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
16848         * callproc.c (Fcall_process): If code detection is necessary,
16849         call detect_coding directly here.
16851         * coding.c (detect_eol): Preserve coding->cmp_data.
16853         * w16select.c (Fw16_get_clipboard_data):
16854         * w32fns.c (w32_to_x_font):
16855         * w32select.c (Fw32_get_clipboard_data):
16856         * xselect.c (selection_data_to_lisp_data):
16857         * xterm.c (XTread_socket): Disable composition handling.
16859 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
16861         * print.c (temp_output_buffer_setup): Kill all local variables.
16863 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
16865         * lread.c (Fread): Remove redundant and imprecise declaration.
16867         * xfns.c (check_x_display_info): Use check_x_frame.
16869         * .gdbinit (xprintsym): Use the new `xname' field.
16870         (xsymbol): Use it.
16872 2002-06-22  Jason Rumney  <jasonr@gnu.org>
16874         * w32fns.c (file_dialog_callback): New function.
16875         (Fx_file_dialog): Allow selecting directories as well as files.
16877 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16879         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
16880         OpenBSD.  Add support for mipseb-*-netbsd* machines.
16882 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
16884         * macterm.c (mac_scroll_area): Set foreground and backcolor to
16885         black and white before scrolling.  Restore frame background and
16886         foreground color after scrolling.
16887         (do_window_update): Call XClearWindow before calling expose_frame.
16888         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
16889         FRAME_FOREGROUND_PIXEL of frame.
16891         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16892         test Mac command key as <ALT> key.
16894 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
16896         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
16898         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
16899         Lookup keys in function-key-map immediately so that key-translation-map
16900         can be applied earlier.
16901         Remove function_key_possible and key_translation_possible, replaced
16902         by checking `keytran_start < t'.
16904         * .gdbinit (xsymbol): Use the new `xname' field.
16906 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
16908         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16909         test Mac command key as <ALT> key.
16911         * mac.c (do_applescript): Call initialize_applescript if necessary
16912         when first called.  Dispose of result_desc only when there is no error.
16913         (Fdo_applescript): Use %d format specifier instead of %ld.
16915 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
16917         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
16918         of FrontWindow for cases keyDown and autoKey.
16920         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
16921         Vdefault_fontset to Monaco with mac-roman coding.
16923         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
16924         init_process before and after inclusion of Carbon/Carbon.h, resp.
16926         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
16927         cursor_gc.
16928         (add_font_name_table_entry): New function.
16929         (init_font_name_table): Use add_font_name_table_entry; add italic,
16930         bold, and bold-italic entries for truetype fonts.
16932         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
16933         for Mac too.
16934         (try_font_list) [MAC_OS]: If no font matches given registry, try
16935         fonts with any registry matching face_family.
16936         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
16938         * s/darwin.h: If autoconf detects the Ncurses library, define
16939         LIBS_TERMCAP to -lncurses to use it.
16941 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
16943         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
16945 2002-06-15  Richard M. Stallman  <rms@gnu.org>
16947         * window.c (Fset_window_configuration): Explicitly preserve
16948         the point value that new_current_buffer had at the start.
16950 2002-06-14  Juanma Barranquero  <lektu@terra.es>
16952         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
16953         Fix typos.
16955 2002-06-14  Kim F. Storm  <storm@cua.dk>
16957         * insdel.c (insert_1_both, insert_from_string_1)
16958         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
16959         insert happened in the end_unchanged region.  Otherwise, the
16960         redisplay may be confused and duplicate the last line in the
16961         buffer [seen after save-buffer when require-final-newline==t].
16963 2002-06-13  Jason Rumney  <jasonr@gnu.org>
16965         * w32.c (init_environment): Remove EMACSLOCKDIR.
16966         (stat): Swap _S_IFDIR and _S_IFREG.
16968 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16970         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
16971         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
16972         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
16973         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
16974         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
16975         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
16976         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
16977         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
16978         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
16979         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
16980         SELECTION_REQUEST_EVENT, selection_clear_event to
16981         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
16982         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
16983         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
16984         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
16985         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
16986         no_event to NO_EVENT.
16988 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16990         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
16992 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
16994         * intervals.c (textget): Don't forget to `return'.
16995         (lookup_char_property): Use XCAR/XCDR.
16997 2002-06-12  Juanma Barranquero  <lektu@terra.es>
16999         * xdisp.c (Fformat_mode_line): Fix typo.
17001 2002-06-12  Kim F. Storm  <storm@cua.dk>
17003         * xdisp.c (Fformat_mode_line): New function.
17004         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
17005         (store_frame_title_char, store_frame_title): Use unconditionally.
17006         (init_xdisp): Defsubr Fformat_mode_line.
17007         Initialize frame_title_buf etc. unconditionally.
17009 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
17011         * keyboard.c (read_key_sequence):
17012         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
17013         things through those maps after downcasing events.
17014         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
17015         applies after function-key-map.
17016         Make sure that keytran can be done in the middle in the sequence.
17017         Be careful not to throw away events past the one we downcase.
17019         * lread.c (read_integer): Remove unused var `tem'.
17020         (read1): Fix int/Lisp_Object mixup.
17022         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
17024 2002-06-11  Richard M. Stallman  <rms@gnu.org>
17026         * keyboard.c (readable_events): Ignore any number of
17027         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
17029 2002-06-09  Miles Bader  <miles@gnu.org>
17031         * xfaces.c (Ftty_supports_face_attributes_p): New function.
17032         (parse_rgb_list, tty_lookup_color): New functions.
17033         (tty_defined_color): Use `tty_lookup_color' to do all the work.
17034         (color_distance, Fcolor_distance): New functions.
17035         (TTY_SAME_COLOR_THRESHOLD): New macro.
17036         (Qtty_color_standard_values): New variable.
17037         (syms_of_xfaces): Initialize new vars & functions.
17039 2002-06-08  Colin Walters  <walters@verbum.org>
17041         * textprop.c (Vchar_property_alias_alist): New variable.
17042         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
17044         * intervals.c (lookup_char_property): New function for looking up
17045         overlay and text properties, created from textget.
17046         (textget): Use it.
17048         * intervals.h (lookup_char_property): Declare.
17049         (Vchar_property_alias_alist): Declare.
17051         * buffer.c (Foverlay_get): Use lookup_char_property.
17053 2002-06-07  Sam Steingold  <sds@gnu.org>
17055         * xselect.c (lisp_data_to_selection_data): Fix last change:
17056         *data_ret is not a Lisp string, while unibyte_string is.
17058 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
17060         * xselect.c (lisp_data_to_selection_data): Fix last change:
17061         set size_ret.
17063 2002-06-07  Andreas Schwab  <schwab@suse.de>
17065         * m/amdx86-64.h: New file.
17067 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
17069         * fns.c (Fstring_make_unibyte): Doc fix.
17071         * xselect.c (lisp_data_to_selection_data): If the requested type
17072          is STRING, call string_make_unibyte to encode the selected text
17073          as a string.
17075         * window.c (Fset_window_hscroll): Doc fix.
17077 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17079         * fileio.c (choose_write_coding_system):
17080         Call select-safe-coding-system properly.
17082 2002-06-03  Richard M. Stallman  <rms@gnu.org>
17084         * xdisp.c (message_with_string): Error if STRING is not a string.
17086         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
17088         * fileio.c (choose_write_coding_system): Pass FILE arg to
17089         Vselect_safe_coding_system_function.
17091 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
17093         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
17095 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
17097         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
17098         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
17099         * keymap.c (describe_command): Likewise.
17100         * minibuf.c (read_minibuf): Likewise.
17102         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
17103         Cast `current_column' return value to int.
17104         (back_to_previous_visible_line_start)
17105         (reseat_at_next_visible_line_start, next_element_from_buffer):
17106         Cast `indented_beyond_p' 3rd arg to float.
17108         * indent.c (last_known_column): Now a float.
17109         (current_column_1, position_indentation, current_column)
17110         (string_display_width): Return float.
17111         (Fcurrent_column): Cast `current_column' return value to int.
17112         (Fcurrent_indentation): Cast `position_indentation' retval to int.
17113         (indented_beyond_p): Third arg now a float.
17114         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
17116         * lisp.h (current_column): Now returns float.
17117         (indented_beyond_p): 3rd arg now a float.
17119 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
17121         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
17122         is Qcompound_text_with_extensions.
17124         * xselect.c (lisp_data_to_selection_data): Always set selection
17125         type as string if x_encode_text returns streingp non-NULL.
17127         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
17129 2002-05-30  Richard M. Stallman  <rms@gnu.org>
17131         * window.c (Fset_window_configuration): Correct the handling
17132         of point in current buffer, to work with multiple windows.
17134 2002-05-29  Colin Walters  <walters@verbum.org>
17136         * lread.c (Fread_from_string): Don't depend on order of evaluation
17137         for C function parameters.
17139 2002-05-28  Richard M. Stallman  <rms@gnu.org>
17141         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
17142         way for blinked-off state and for a nonselected window.
17144         * window.c (window_scroll_pixel_based): Don't call Fbolp;
17145         instead, see if the new start pos is at beginning of line.
17147         * fileio.c (Fwrite_region): If START is a string, don't
17148         make any annotations.
17150         * eval.c (syms_of_eval): Doc fix.
17152 2002-05-28  Colin Walters  <walters@debian.org>
17154         * emacs.c (USAGE1): Add --no-splash.
17155         (standard_args): Ditto.
17157 2002-05-28  Colin Walters  <walters@gnu.org>
17159         * lread.c (readchar_count): New variable.
17160         (readchar): Increment it.
17161         (unreadchar): Decrement it.
17162         (read_multibyte): Decrement it.
17163         (Vread_with_symbol_positions): New variable.
17164         (Vread_symbol_positions_list): New variable.
17165         (read_internal_start): New function, created from Fread and
17166         Fread_from_string.  Handle Vread_symbol_positions_list and
17167         Vread_with_symbol_positions.
17168         (readevalloop, Fread, Fread_from_string): Use it.
17169         (read1): Use readchar_count to add symbol positions to
17170         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
17171         (syms_of_lread): DEFVAR_LISP and initialize them.
17173         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
17174         (substitute_object_recurse, substitute_object_in_subtree)
17175         (substitute_in_interval): Prototype.
17176         (read_multibyte): Return c if it's less than zero.
17178 2002-05-28  Kim F. Storm  <storm@cua.dk>
17180         * fileio.c (Fread_file_name_internal): Added brute-force
17181         speed up for using predicate file-directory-p.
17183 2002-05-28  Kim F. Storm  <storm@cua.dk>
17185         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
17186         New variables.
17187         (syms_of_fileio): DEFVAR_LISP them.
17188         (read_file_name_cleanup): New unwind function.
17189         (Fread_file_name_internal): Only return completions satifying
17190         Vread_file_name_predicate.  Temporarily unwind protect and rebind
17191         default-directory while checking completions against the predicate.
17192         (Fread_file_name): Added PREDICATE argument.  Specbind it to
17193         Vread_file_name_predicate during completion.
17194         Call Vread_file_name_function to read the file name if non-nil.
17196         * lisp.h (Fread_file_name): Now has 6 args.
17198         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
17199         predicate for Fread_file_name when reading directory name.
17200         Supply Qnil for predicate in other calls to Fread_file_name.
17202 2002-05-26  Miles Bader  <miles@gnu.org>
17204         * term.c (tty_capable_p): New function.
17205         * dispextern.h (tty_capable_p): New function declaration.
17206         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
17207         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
17209 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
17211         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
17212         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
17213         (Vwrite_region_annotate_functions): Docstring fix.
17215 2002-05-23  Kim F. Storm  <storm@cua.dk>
17217         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
17218         phys_cursor's hpos is overwritten.  This is still not completely
17219         correct, as it doesn't really make sense to use hpos at all to
17220         get the cursor glyph (as that is relative to the width of the
17221         characters on the line, which may have changed during the update).
17223 2002-05-22  Jason Rumney  <jasonr@gnu.org>
17225         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
17226         Lisp_Object.
17227         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
17228         Use modified enumfont_t struct.
17230         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17232         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
17233         Handle the `hbar' cursor type.
17234         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17236         * w32fns.c (Qhbar): New variable.
17237         (x_specified_cursor_type): Use it.
17239 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
17241         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
17242         now, when the address is needed.
17244 2002-05-21  Colin Walters  <walters@gnu.org>
17246         * Makefile.in (shortlisp): Add font-core.el.
17248 2002-05-20  Richard M. Stallman  <rms@gnu.org>
17250         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
17252         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
17253         equivalent key bindings here.
17255 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
17257         Change symbol structure to contain a lisp object for the symbol
17258         name:
17259         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
17260         object field named "xname".
17261         (SYMBOL_NAME): New macro.
17262         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
17263         name field.
17264         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
17265         (mark_object, gc_sweep): Use symbol xname field and XSTRING
17266         instead of name field.
17267         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
17268         SYMBOL_NAME instead of XSYMBOL and name field.
17269         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
17270         instead of XSYMBOL and name field.
17271         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
17272         and SYMBOL_NAME instead of XSYMBOL and name field.
17273         * coding.c (Fread_coding_system, code_convert_region1)
17274         (code_convert_string1, code_convert_string_norecord)
17275         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
17276         XSYMBOL and name field.
17277         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
17278         (Fmake_variable_buffer_local, Fmake_local_variable)
17279         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
17280         of XSYMBOL and name field.
17281         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
17282         XSYMBOL and name field.
17283         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
17284         instead of XSYMBOL and name field.
17285         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
17286         XSYMBOL and name field.
17287         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
17288         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17289         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
17290         instead of XSYMBOL and name field.
17291         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
17292         (parse_modifiers, apply_modifiers, Fevent_convert_list)
17293         (parse_solitary_modifier, Fexecute_extended_command):
17294         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17295         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
17296         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
17297         of XSYMBOL and name field.
17298         (describe_command, describe_translation): Use SYMBOL_NAME and
17299         assignment instead of XSYMBOL and name field and XSETSTRING.
17300         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
17301         instead of XSYMBOL and name field.
17302         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
17303         name field and XSETSTRING.
17304         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17305         of XSYMBOL and name field.
17306         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
17307         assignment instead of XSYMBOL and name field and XSETSTRING.
17308         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17309         XSTRING instead of XSYMBOL and name field.
17310         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17311         and XSTRING instead of XSYMBOL and name field.
17312         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
17313         and XSTRING instead of XSYMBOL and name field.
17314         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
17315         XSTRING instead of XSYMBOL and name field.
17316         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17317         of XSYMBOL and name field.
17318         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
17319         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17321 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
17323         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
17324         and XCDR real rvalues in most configurations.
17326         * buffer.c (fix_overlays_in_range, fix_overlays_before):
17327         Don't take the address of the cdr part of a cons cell; instead, track
17328         the parent cell and call XSETCDR, or set the variable for the head
17329         of the list if we haven't started down the list yet.
17331 2002-05-19  Richard M. Stallman  <rms@gnu.org>
17333         * doc.c (reread_doc_file): Don't ask for confirmation.
17335 2002-05-18  Jason Rumney  <jasonr@gnu.org>
17337         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
17338         (xbm_load_image): Use it.
17339         (xbm_load): Ditto.
17340         (xbm_read_bitmap_data): Reverted to xfns.c version.
17341         From David Ponce <david@dponce.com>.
17343 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
17345         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
17346         2.02 and later.
17348 2002-05-16  Juanma Barranquero  <lektu@terra.es>
17350         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
17352 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
17354         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
17355         meaningful test.
17356         (read_char_minibuf_menu_prompt): Fix typo.
17358 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
17360         * eval.c (Fcommandp): Doc fix.
17362 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
17364         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
17365         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
17366         (Fset_keymap_parent): Gcpro a bit more.
17367         (access_keymap): Gcpro around meta_map call and around the main loop.
17368         (get_keyelt): Gcpro when following indirect references.
17369         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
17370         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
17371         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
17372         Remove useless ad-hoc remap code.
17374 2002-05-13  Richard M. Stallman  <rms@gnu.org>
17376         * search.c (search_buffer): Give up boyer moore search if inverse
17377         translation change charset_base.
17379 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
17381         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
17382         characters is carried over from the previous block of text, adjust
17383         coding->produced to account for the extra character.
17385 2002-05-11  Andreas Schwab  <schwab@suse.de>
17387         * coding.c (intersection): Keep the elements of the returned list
17388         in the same order as in the first list.
17390 2002-05-11  Kim F. Storm  <storm@cua.dk>
17392         * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
17393         only update cmm_size if realloc actually succeeds.
17394         Testing with initial size of 2 elements revealed that using
17395         realloc on GNU/Linux would cause a random trap in xmalloc
17396         later on, so I rewrote the code to use malloc/bcopy/free instead
17397         of realloc.
17399 2002-05-10  Jason Rumney  <jasonr@gnu.org>
17401         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
17403 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
17405         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
17406         parens, to ensure correct evaluation order.
17408 2002-05-10  Kim F. Storm  <storm@cua.dk>
17410         * keymap.c (Vemulation_mode_map_alists): New variable.
17411         (syms_of_keymap): DEFVAR_LISP it.
17412         (current_minor_maps): Process keymap alists in that list before
17413         minor-mode-overriding-map-alist and minor-mode-map-alist.
17415 2002-05-09  Richard M. Stallman  <rms@gnu.org>
17417         * search.c (Freplace_match): Doc fix.
17419 2002-05-09  Kim F. Storm  <storm@cua.dk>
17421         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17422         Enlarge cursor rectangle drawn around image with non-zero relief.
17424         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
17425         Enlarge cursor rectangle drawn around image with non-zero relief.
17427         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17428         Enlarge cursor rectangle drawn around image with non-zero relief.
17430 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
17432         * xselect.c (lisp_data_to_selection_data): Don't set selection
17433         type if comes from the Lisp object's car.  If the selection
17434         contains a pure ASCII text, always return QSTRING as its type.
17436 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17438         * mac.c (mac-cut-function): Doc fix.
17440 2002-05-05  Richard M. Stallman  <rms@gnu.org>
17442         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17444 2002-05-04  Jason Rumney  <jasonr@gnu.org>
17446         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
17447         for event-click-count.
17449         * process.c (init_process): Only add server subfeature if we can
17450         use non-blocking I/O.
17452 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
17454         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
17455         repeatedly.
17457 2002-05-03  Jason Rumney  <jasonr@gnu.org>
17459         * process.c (Fmake_network_process): Only support server sockets
17460         when we can make them non-blocking.
17462         * s/ms-w32.h (HAVE_SELECT): Define.
17464         * w32.h (FILE_NDELAY): New flag.
17466         * w32.c (sys_getpeername, fcntl): New functions.
17467         (_sys_read_ahead): Temporarily block on non-blocking sockets.
17469         * w32proc.c: Include sys/file.h.
17471 2002-05-03  Colin Walters  <walters@verbum.org>
17473         * callproc.c (Vgame_score_directory): Renamed to
17474         Vshared_game_score_directory.
17476 2002-04-30  Richard M. Stallman  <rms@gnu.org>
17478         * s/gnu.h [emacs]: Include stdio.h.
17479         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
17481         * eval.c (do_autoload): Error if called while preparing to dump.
17483         * fns.c (Frequire): Error if need to load while preparing to dump.
17485 2002-04-28  Colin Walters  <walters@verbum.org>
17487         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
17488         Default to "~/.emacs.d/games".
17490 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
17492         * lread.c (openp): Change arg exec_only to predicate.
17493         (build_load_history): Use XCAR/XCDR.
17494         (Flocate_file_internal): New fun.
17495         (syms_of_lread): Defsubr it.
17496         (Fload): Update call to openp.
17498         * lisp.h (openp): Update prototype.
17500         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
17501         * w32proc.c (sys_spawnve):
17502         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
17503         * w32.c (check_windows_init_file):
17504         * sound.c (Fplay_sound_internal):
17505         * process.c (Fstart_process):
17506         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
17507         * mac.c (run_mac_command):
17508         * emacs.c (init_cmdargs):
17509         * callproc.c (Fcall_process): Update call to openp.
17511         * textprop.c (remove_properties): Don't use XCAR without CONSP.
17513         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
17515 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17517         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
17518         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
17520 2002-04-28  Richard M. Stallman  <rms@gnu.org>
17522         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
17524         * eval.c (Fcommandp): New arg for_call_interactively.
17525         * lisp.h (Fcommandp): Declare new arg.
17527 2002-04-28  Jason Rumney  <jasonr@gnu.org>
17529         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
17531         * w32.c (stat, fstat): Use file index information to generate
17532         inodes for directories where available.
17534 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
17536         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
17537         [HAVE_CARBON]: Include Mac object files.
17539         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
17540         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
17541         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
17542         MAC_OSX, and MAC_OS instead of macintosh.
17544         * editfns.c [MAC_OS8]: Include stdio.h.
17546         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
17548         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
17549         Apple Monaco.
17551         * process.c (QCfamily, QCfilte): Declare extern.
17552         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
17553         calling select.
17555         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
17557         * tparam.c [MAC_OSX]: Don't define BC and UP.
17559         * config.in [HAVE_CARBON]: Add.
17561         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
17562         Move here from mac/src and mac/inc.
17564         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
17566 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
17568         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
17569         Compute phys_cursor_width from the x position returned
17570         by x_draw_glyhs, which is cheaper.
17571         (x_display_and_set_cursor): Compute the buffer-local value
17572         of `cursor-in-non-selected-windows' only when needed.
17574 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
17576         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
17577         cursor on a stretch glyph has a width that depends on
17578         x_stretch_cursor_p.
17580 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17582         * abbrev.c (abbrev-start-location): Doc fix.
17584         * indent.c (Fvertical_motion): Fix last change.
17586 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
17588         * indent.c (Fvertical_motion): Move to the start of the line
17589         containing PT before moving up or down.
17591 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
17593         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
17594         case of writing a whole row, more or less analogous to the case of
17595         writing only parts of a row.
17597         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
17598         0 for NO_CURSOR.
17600         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
17602 2002-04-23  Colin Walters  <walters@verbum.org>
17604         * buffer.c (syms_of_buffer): Doc fix.
17606 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
17608         * xterm.c (notice_overwritten_cursor): Handle the special case
17609         of the cursor being in the first blank non-text line at the
17610         end of a window.
17612         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17613         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17614         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
17615         bar cursors only, to make phys_cursor_width contain what its name
17616         suggests.
17617         (notice_overwritten_cursor): Consider the cursor image erased if
17618         the output area intersects the cursor image in y-direction.
17620 2002-04-23  Simon Marshall  <simon@gnu.org>
17622         * xfns.c (x_set_mouse_color): Change default for cross_cursor
17623         to XC_hand2.
17625 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17627         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
17629 2002-04-22  Kim F. Storm  <storm@cua.dk>
17631         * textprop.c (remove_properties): Fixed trap for malformed plist.
17633 2002-04-22  Richard M. Stallman  <rms@gnu.org>
17635         * cmds.c (Fend_of_line): Handle intangible text in mid line.
17637         * window.c (make_window): Initialize height_fixed_p,
17638         last_cursor_off_p, and p->cursor_off_p slots.
17640 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17642         * fns.c (use-dialog-box): Doc fix.
17644 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17646         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
17647         variables `row', `i' and `area'.
17648         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
17649         toolkit library.
17651 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
17653         * xfaces.c (clear_font_table): Don't free the default font of
17654         a frame even if it's on another display.
17655         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
17656         that could be Qt.
17658 2002-04-19  Juanma Barranquero  <lektu@terra.es>
17660         * indent.c (Fmove_to_column): Remove unused local variable
17661         `next_boundary_byte'.
17662         (current_column_1): Likewise.
17664 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
17666         * msdos.c (Qhbar): New variable.
17667         (syms_of_msdos): Intern and staticpro it.
17668         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
17669         cursor type.
17671 2002-04-19  Dave Lambert  <dlambert@acm.org>
17673         Theses change implement an underscore-like (`hbar') cursor.
17675         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17677         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
17678         Handle the `hbar' cursor type.
17679         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17681         * xfns.c (Qhbar): New variable.
17682         (syms_of_xfns): Intern and staticpro it.
17683         (x_specified_cursor_type): Handle `hbar' cursor.
17685         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
17686         not defined.
17688 2002-04-18  Richard M. Stallman  <rms@gnu.org>
17690         * textprop.c (remove_properties): New arg LIST allows scanning
17691         either a list or a plist.
17692         (interval_has_some_properties_list): New function, like
17693         interval_has_some_properties using list instead of plist.
17694         All callers changed.
17695         (Fremove_list_of_text_properties): New function.
17696         (syms_of_textprop): Defsubr it.
17698 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
17700         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
17702 2002-04-17  Juanma Barranquero  <lektu@terra.es>
17704         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
17706 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
17708         * window.c (coordinates_in_window): Don't report on margin area
17709         if its width is zero.
17711 2002-04-16  Jason Rumney  <jasonr@gnu.org>
17713         * w32fns.c (Fx_file_dialog): Decode file name before using.
17715         * w32term.c (construct_drag_n_drop): Likewise.
17717 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
17719         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
17720         store load-history in pure space.
17722         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
17724 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
17726         * xterm.c (Qlatin_1, Qutf_8): New vars.
17727         (syms_of_xterm): Initialize them.
17728         (XTread_socket): Eliminate incorrect optimization that tried to avoid
17729         decoding the output of X*LookupString.
17730         Always use latin-1 to decode the output of XLookupString.
17731         Try Xutf8LookupString if XmbLookupString failed.
17733         * region-cache.c (new_region_cache): Use BEG.
17735 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
17737         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
17738         configuration files.
17739         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
17740         returns 0.
17742 2002-04-15  Andreas Schwab  <schwab@suse.de>
17744         * config.in: Regenerated using autoheader.
17746         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
17747         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
17748         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
17749         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
17750         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
17751         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
17752         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
17753         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
17754         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
17755         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
17756         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
17757         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
17758         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
17759         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
17760         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
17761         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
17762         STACK_DIRECTION, now set by autoconf.
17764 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17766         * dispnew.c (marginal_area_string): Sort arguments.
17768         * dispextern.h (marginal_area_string): Add prototype.
17770 2002-04-13  Richard M. Stallman  <rms@gnu.org>
17772         * fileio.c (Finsert_file_contents):
17773         Don't call temp_output_buffer_setup--do just part, by hand.
17775         * coding.c (run_pre_post_conversion_on_str):
17776         Don't call temp_output_buffer_setup--do just part, by hand.
17778         * keyboard.c (command_loop_1): Don't call start_hourglass
17779         or cancel_hourglass when executing a macro.
17781         * marker.c (count_markers): New function.
17783         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
17784         grow without limit.  Move recently used elements to the front.
17786 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
17788         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
17790 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
17792         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
17793         rows marginal areas.
17794         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
17795         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
17797         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
17799 2002-04-12  Dave Love  <fx@gnu.org>
17801         * dispnew.c (marginal_area_string): New.
17803         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
17804         (Qleft_margin, Qright_margin): Declare.
17805         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
17807         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
17808         note_mode_line_highlight and extended.
17810         * keyboard.c (Qleft_margin, Qright_margin): Declare.
17811         (make_lispy_event): Deal with mouse events in margins.
17813 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
17815         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
17817         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
17818         than deactivating the mark if tmm is set to `lambda'.
17819         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
17820         Use a single event for HELP_EVENT.
17821         (Fexecute_extended_command): Save last_point_position.
17823 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17825         * lisp.h (Fpropertize): Add prototype.
17827         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
17829 2002-04-10  Colin Walters  <walters@verbum.org>
17831         * config.in: Add HAVE_SHARED_GAME_DIR.
17833         * callproc.c (Vgame_score_directory): New variable.
17834         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
17836 2002-04-10  Richard M. Stallman  <rms@gnu.org>
17838         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
17840 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
17842         * minibuf.c (read_minibuf): Use empty_string.
17843         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
17844         Short-circuit the search as soon as it "failed".
17845         (Fall_completions): Allow lambda forms and lists of strings for alist.
17846         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
17847         when require_match is nil.
17848         (Ftest_completion): Rename from `test_completion' and export to elisp.
17849         Call the predicate also when alist is a list.
17850         Obey Vcompletion_regexp_list.
17851         (do_completion, Fminibuffer_complete_and_exit): Use it.
17852         (Fassoc_string): Rename from `assoc_for_completion'.
17853         Allow list of strings as well and export to elisp.
17855 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
17857         * puresize.h (BASE_PURESIZE): Increase to 900KB.
17859 2002-04-08  Juanma Barranquero  <lektu@terra.es>
17861         * w32.c (sys_accept): Don't hide variable `s'.
17863 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
17865         * callint.c (Fcall_interactively): Use INTEGERP instead of
17866         NUMBERP for checking Vhistory_length.
17868 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17870         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
17871         Doc fix to reflect it.
17873 2002-04-04  Richard M. Stallman  <rms@gnu.org>
17875         * xdisp.c (display_mode_element): New arg RISKY.
17876         Disregard text props found or specified within a variable
17877         that isn't marked risky-local-variable.
17878         (Qrisky_local_variable): New variable.
17879         (syms_of_xdisp): Init and staticpro it.
17881 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
17883         * undo.c (record_point): New fun.
17884         (record_delete, record_insert): Use it.
17886 2002-04-03  Juanma Barranquero  <lektu@terra.es>
17888         * doc.c (Fdocumentation): Add missing parentheses.
17889         (Fdocumentation_property): Likewise.
17891 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
17893         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
17894         data is 0, just return nil.
17896 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
17898         * msdos.c (syms_of_msdos): Fix last change with
17899         mouse_autoselect_window.
17901 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17903         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
17904         mouse_autoselect_window.
17906 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
17908         * keyboard.c (make_lispy_event): Handle unknown keysyms together
17909         with system-specific keysyms.  Use it also for unknown function keys.
17911         * doc.c (reread_doc_file): Return whether reload was attempted.
17912         (Fdocumentation, Fdocumentation_property): Don't try to reload
17913         if the doc is 0 and only ask once.
17915         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
17917 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
17919         * keyboard.c (read_char): If the event was Qselect_window,
17920         restore timer_idleness_start_time to its previous value.
17922         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
17924 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
17926         * region-cache.c (new_region_cache): Use BEG.
17928         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
17929         Use BEG and BEG_BYTE.
17931         * doc.c (get_doc_string): Return nil if the location is wrong.
17932         (reread_doc_file): New fun.
17933         (Fdocumentation, Fdocumentation_property):
17934         Call it if get_doc_string fails.
17935         (Fsnarf_documentation): Make it work for a dumped Emacs.
17937         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
17938         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
17940         * charset.c (Fstring): Allow 0 arguments.
17942         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
17944         * process.c (DATAGRAM_CONN_P, list_processes_1)
17945         (Fprocess_datagram_address, Fset_process_datagram_address)
17946         (Fset_network_process_options, server_accept_connection):
17947         Fix some int/Lisp_Object confusions (thank you union types).
17949 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17951         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
17953         * w32term.c: Likewise.
17954         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
17956         * keyboard.c (Qselect_window): New symbol.
17957         (head_table): Use it.
17958         (keys_of_keyboard): Bound select-window event to handle-select-window.
17959         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
17961         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
17962         (last_window): New variable.
17963         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
17964         (note_mouse_movement): Remove reimplemented code in #if 0.
17965         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
17966         Emacs windows.
17968         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
17970 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
17972         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
17973         Callers changed.
17975 2002-03-30  Richard M. Stallman  <rms@gnu.org>
17977         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
17978         loop whenever it stops making progress.
17980         * widget.c (set_frame_size): Don't call change_frame_size.
17982 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
17984         * dispnew.c (direct_output_for_insert):
17985         Call mark_window_display_accurate.
17987 2002-03-29  Jason Rumney  <jasonr@gnu.org>
17989         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
17991 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
17993         * Makefile.in (lread.o): Depend on coding.h.
17995         * lread.c (openp, Fload): Encode the file name before passing it
17996         to `stat', `access', and `emacs_open'.
17997         (openp): GCPRO the encoded file name.  Don't recompute Lisp
17998         strings unnecessarily.
18000 2002-03-29  Kim F. Storm  <storm@cua.dk>
18002         * fns.c (Flax_plist_put): Doc fix.
18004 2002-03-28  Miles Bader  <miles@gnu.org>
18006         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
18008 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18010         * process.c (set-network-process-options): Add usage.
18011         (make-network-process): Doc fix.
18013 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
18015         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
18017 2002-03-26  Richard M. Stallman  <rms@gnu.org>
18019         * fns.c (Fsubstring_no_properties): New function.
18020         (Flax_plist_get, Flax_plist_put): New functions.
18021         (syms_of_fns): defsubr them.
18023         * xdisp.c (update_menu_bar): Test only update_mode_lines;
18024         don't test or alter w->update_mode_line.
18026         * window.c (Fdisplay_buffer): Doc fix.
18028 2002-03-24  Richard M. Stallman  <rms@gnu.org>
18030         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
18032 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
18034         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
18035         (Fdefmacro): Handle `(declare ...)'.
18036         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
18037         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
18039 2002-03-24  Jason Rumney  <jasonr@gnu.org>
18041         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
18042         (xbm_file_p): Add prototypes.
18043         (xbm_format, xbm_image_p): Sync with xfns.c.
18044         (reflect_byte): New function.
18045         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
18046         (xbm_load_image): Create bitmaps with a depth of 1.
18047         (init_xfns): Enable XBM images.
18049 2002-03-23  Jason Rumney  <jasonr@gnu.org>
18051         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
18052         correctly.  Do not pass up_modifier to keyboard buffer.
18054         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
18056 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
18058         * Makefile.in (bootstrapclean): New target.
18059         (bootstrap-temacs, bootstrap-doc): Remove.
18060         (bootstrap-emacs): Use a bog-standard `temacs'.
18061         Don't bother to build a DOC file.
18063         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
18065         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
18066         in temacs even if !CANNOT_DUMP.
18067         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
18069         * alloc.c (check_pure_size): Only output a warning.
18071 2002-03-22  Jason Rumney  <jasonr@gnu.org>
18073         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
18074         supported.
18076         * w32term.c (zv_bits): Declare as short, for word alignment.
18077         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
18078         (syms_of_w32term): Define x-use-underline-position-properties.
18080         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
18081         (clear_image_cache): Block input, fix logic, clear matrices in
18082         all frames that share this cache.
18084 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
18086         * emacs.c (main): Update the Copyright year in the blurb printed
18087         by "emacs --version".
18089         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
18091         * xterm.c (XTread_socket): If XK_ISO_Lock and
18092         XK_ISO_Last_Group_Lock are defined, handle keysyms between
18093         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
18095 2002-03-21  Kim F. Storm  <storm@cua.dk>
18097         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
18098         menu-bar bindings in keymap and local-map properties _are_ used.
18099         But try keymap property first in accordance with 2002-01-03 patch.
18100         Added comment describing why this is not always reliable.
18101         (tool_bar_items): Ditto for tool-bar.
18103 2002-03-21  Jason Rumney  <jasonr@gnu.org>
18105         * w32fns.c (x_clear_image_1): Disable color table code.
18107 2002-03-21  Kim F. Storm  <storm@cua.dk>
18109         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
18110         removed the wrong version of the DEFUN macro; fixed it.
18112         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
18113         Fmember rather than Fmemq).
18114         (Fprovide): Check that subfeatures is a list.
18116         * process.c (QCfeature, QCdatagram): Removed variables.
18117         (QCtype, Qdatagram): New variables.
18118         (network_process_featurep): Removed function.
18119         (Fmake_network_process): Removed :feature check.
18120         Use :type 'datagram instead of :datagram t to create a datagram
18121         socket.  This allows us to add other connection types (e.g. raw
18122         sockets) later in a consistent manner.
18123         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
18124         supported subfeatures for feature make-network-process.
18125         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
18126         Intern and staticpro QCtype and Qdatagram.
18127         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
18129         * xfns.c: (QCtype): Remove duplicate declaration and
18130         initialization (is now declared in process.c).
18132         * w32fns.c: (QCtype): Remove duplicate declaration and
18133         initialization (is now declared in process.c).
18135 2002-03-21  Richard M. Stallman  <rms@gnu.org>
18137         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
18138         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
18139         when jumping to `fail' to avoid undoing reg changes in the
18140         last iteration of the loop.
18141         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
18143         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
18144         Depend on process.h.
18146 2002-03-20  Jason Rumney  <jasonr@gnu.org>
18148         Most of the following changes are still conditional on HAVE_IMAGES
18149         which is not set by default on Windows.
18151         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
18153         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
18154         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
18155         (four_corners_best, x_clear_image_1, x_clear_image)
18156         (x_alloc_image_color, postprocess_image)
18157         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
18158         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
18159         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
18161         * w32gui.h (struct XImage): Define.
18163         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
18164         extract mouse co-ordinates.
18166 2002-03-20  Jason Rumney  <jasonr@gnu.org>
18168         * w32.c (init_winsock): Dynamically load new server and UDP
18169         socket functions.
18170         (socket_to_fd): New function.
18171         (sys_socket): Use it.
18172         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
18173         (sys_recvfrom, sys_sendto): New wrapper functions.
18175         * process.c (QCfamily, QCfilter): Remove duplicate declaration
18176         and initialization.
18178         * makefile.w32-in (LIBS): Remove $(WSOCK32).
18180 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
18182         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
18183         Don't use "sun" as a variable, it's a predefined constant on Sun
18184         machines.
18186 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18188         * bytecode.c (Fbyte_code): Revert last change.
18190 2002-03-19  Kim F. Storm  <storm@cua.dk>
18192         * makefile.w32-in (LIBS): Add $(WSOCK32).
18193         From David Ponce <dponce@voila.fr>.
18195 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18197         * process.c (wait_reading_process_input): Move variables `pname'
18198         and `pnamelen' down where they are used.
18200         * bytecode.c (Fbyte_code): Discard unused computed value to
18201         prevent gcc warning.
18203         * lisp.h (Fplist_member): Add prototype.
18205 2002-03-18  Kim F. Storm  <storm@cua.dk>
18207         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
18208         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
18210         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
18211         Remove explicit GNU_LINUX settings for datagram support.
18213 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18215         * process.c (Fmake_network_process): Remove unused variable `sa'.
18216         Doc fix.  Add usage:.
18217         (set_socket_options): Remove unused variables `optnum' and `opttype'.
18219 2002-03-17  Richard M. Stallman  <rms@gnu.org>
18221         * xdisp.c (cursor_type_changed): New variable.
18222         (redisplay_internal): Redisplay all windows if cursor_type_changed.
18223         Clear it when clearing windows_or_buffers_changed.
18224         (try_cursor_movement, redisplay_window, try_window_id)
18225         (try_window_reusing_current_matrix): Test cursor_type_changed
18226         along with windows_or_buffers_changed.
18228         * window.h (cursor_type_changed): New variable.
18230         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
18231         not update_mode_lines, and always set it to 1.
18233         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
18234         if no frames needed redrawing.
18236 2002-03-17  Kim F. Storm  <storm@cua.dk>
18238         The following changes add support for network server processes,
18239         datagram connections, and local (unix) sockets.
18241         * process.h (struct Lisp_Process): New member log.
18242         Doc fix: Member command used to indicate stopped network process.
18243         Doc fix: Member childp contains plist for network process.
18244         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
18246         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
18247         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
18248         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
18249         New variables.
18250         (NETCONN1_P): New macro.
18251         (DATAGRAM_SOCKETS): New conditional symbol.
18252         (datagram_address): New array.
18253         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
18254         (status_message): Use concat3.
18255         (Fprocess_status): Add `listen' status to doc string.  Return `stop'
18256         for a stopped network process.
18257         (Fset_process_buffer): Update contact plist for network process.
18258         (Fset_process_filter): Ditto.  Don't enable input for stopped
18259         network processes.  Server must listen, even if filter is t.
18260         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
18261         New functions.
18262         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
18263         (Fprocess_contact): Added KEY argument.  Handle datagrams.
18264         (list_processes_1): Optionally show only processes with the query
18265         on exit flag set.  Dynamically adjust column widths.  Omit tty
18266         column if not needed.  Report stopped network processes.
18267         Identify server and datagram network processes.
18268         (Flist_processes): New optional arg `query-only'.
18269         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
18270         (conv_lisp_to_sockaddr, set_socket_options)
18271         (network_process_featurep, unwind_request_sigio): New helper functions.
18272         (Fprocess_datagram_address, Fset_process_datagram_address):
18273         (Fset_network_process_options): New lisp functions.
18274         (Fopen_network_stream): Removed.  Now defined in simple.el.
18275         (Fmake_network_process): New lisp function.  Code is based on previous
18276         Fopen_network_stream, but heavily reworked with new property list based
18277         argument list, support for datagrams, server processes, and local
18278         sockets in addition to old client-only functionality.
18279         (server_accept_connection): New function.
18280         (wait_reading_process_input): Use it to handle incoming connects.
18281         Do not enable input on a new connection if process is stopped.
18282         (read_process_output): Handle datagram sockets.  Use 2k buffer for them.
18283         (send_process): Handle datagram sockets.
18284         (Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
18285         network process is indicated by setting command field to t .
18286         (Fprocess_send_eof): No-op if datagram connection.
18287         (Fstatus_notify): Don't read input for a stream server socket or a
18288         stopped network process.
18289         (init_process): Initialize datagram_address array.
18290         (syms_of_process): Intern and staticpro new variables, defsubr new
18291         functions.
18293 2002-03-16  Jason Rumney  <jasonr@gnu.org>
18295         * w32fns.c (w32_to_all_x_charsets): Return correct type in
18296         startup case.
18298 2002-03-16  Richard M. Stallman  <rms@gnu.org>
18300         * xdisp.c (redisplay_internal, redisplay_windows):
18301         Use list_of_error to call internal_condition_case_1.
18302         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
18303         so as to catch all errors with no possibility of debugger redisplay.
18304         (list_of_error): New variable.
18305         (syms_of_xdisp): Init and staticpro it.
18307         * print.c (print_object): Delete `\ ' from printed rep of frame.
18309 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
18311         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
18312         until its implementation is fixed.
18314 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18316         * xfns.c (png_load): Remove unused variable `gamma_str'.
18318 2002-03-14  Richard M. Stallman  <rms@gnu.org>
18320         * xfns.c (x_real_positions): Handle failure in XQueryTree.
18322 2002-03-14  Miles Bader  <miles@gnu.org>
18324         * intervals.c (adjust_for_invis_intang): New function.
18325         (set_point_both): Use `adjust_for_invis_intang' to do most of the
18326         work for dealing with invisible+intangible regions.  Do so before
18327         and after both forward and backward movements, to handle both
18328         front-sticky and rear-sticky cases.
18329         * textprop.c (text_property_stickiness): Function moved here from
18330         `editfns.c'.
18331         * intervals.h (text_property_stickiness): New declaration.
18332         * editfns.c (char_property_eq): Function removed.
18333         (text_property_stickiness): Function moved to `textprop.c'.
18335 2002-03-13  Jason Rumney  <jasonr@gnu.org>
18337         * config.in: Add STRFTIME_NO_POSIX2.
18339         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
18340         and %OX when underlying strftime does not.
18342 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
18344         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
18345         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
18346         line) to avoid annoying flicker.
18347         (xm_scroll_callback): Get rid of the now unnecessary kludge.
18348         (XTread_socket): Mark it static.
18350         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
18352 2002-03-13  Kim F. Storm  <storm@cua.dk>
18354         * puresize.h (BASE_PURESIZE): Increase to 775000.
18356 2002-03-12  Juanma Barranquero  <lektu@terra.es>
18358         * editfns.c (syms_of_editfns): Fix typo.
18360 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
18362         * xsmfns.c: Include stdio.h because termhooks.h needs it.
18363         Include termopt.h for interrupt_input.
18365 2002-03-11  Andreas Schwab  <schwab@suse.de>
18367         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
18369 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
18371         * xterm.c (note_mouse_movement): Put code for
18372         x_autoselect_window_p in #if 0.
18374         * lread.c (Fload): Don't assume that message_with_string uses the
18375         string it is given like a C string.
18377 2002-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18379         * xterm.h (x_session_check_input, x_session_initialize): Declare.
18381         * xterm.c (XTread_socket): Add call to x_session_check_input and
18382         x_session_have_connection.
18383         (x_initialize): Add call to x_session_initialize.
18385         * termhooks.h (enum event_kind): Add save_session_event.
18387         * keyboard.c: Add Emacs event save_session_event.
18389         * emacs.c (main): Add call to syms_of_xsmfns.
18391         * lisp.h (syms_of_xsmfns): Declare extern.
18393         * config.in: Add HAVE_X_SM.
18395         * Makefile.in (LIBXT): Add -lSM -lICE
18396         if HAVE_X_SM and not USE_X_TOOLKIT.
18397         (XOBJ): New file xsmfns.c added.
18399         * xsmfns.c: New file for X session management.
18401 2002-03-09  Jason Rumney  <jasonr@gnu.org>
18403         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
18404         read-only when setting modified time.
18406 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
18408         * xdisp.c (move_it_vertically_backward): At the end of the function,
18409         when moving forward by lines, treat terminal frames specially.
18411         * keyboard.c (echo_char): Make sure to add a separator between
18412         keys even if echo_dash hasn't been called.
18414         * xdisp.c: Use new string macros.
18415         (update_echo_area): Pass number of bytes to message3 instead of
18416         number of chars.
18417         (set_message_1): Don't access a string's size_byte directly.
18418         (decode_mode_spec_coding): Use number of bytes of eoltype string
18419         instead number of chars.
18421         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
18423 2002-03-08  Juanma Barranquero  <lektu@terra.es>
18425         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
18426         24-bit.
18428 2002-03-06  Jason Rumney  <jasonr@gnu.org>
18430         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
18432 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
18434         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
18435         (cancel_echoing, echo_length, echo_truncate): Changed to
18436         work with new kboard definition.
18437         (echo_now): Use message3_nolog instead of message2_nolog.
18439         * alloc.c (mark_kboards): Mark echo_string.
18441         * keyboard.h (ECHOBUFSIZE): Removed.
18442         (struct kboard): Member echoptr removed, member echobuf renamed
18443         to echo_string.
18445         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
18446         message3 instead of message2 to display the message using STRING's
18447         text properties.
18449 2002-03-05  Andreas Schwab  <schwab@suse.de>
18451         * xdisp.c (hscroll_margin): Change to EMACS_INT.
18453 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
18455         * frame.c (default-frame-alist): Explain that setting it doesn't
18456         affect existing frames.
18458 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
18460         * indent.c (skip_invisible): Fix my brain fart.
18462         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
18464 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
18466         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
18467         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
18468         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
18469         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
18470         and variables to use EMACS_INT instead of just int.
18472         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
18474 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
18476         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
18477         environment, pass it down with corrected value.
18479 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18481         * lread.c (read_filtered_event): Do not call start_hourglass
18482         before returning.
18484 2002-03-04  Juanma Barranquero  <lektu@terra.es>
18486         * w32term.c (x_display_and_set_cursor): Fix typo.
18488 2002-03-03  Richard M. Stallman  <rms@gnu.org>
18490         * fileio.c (Fmake_temp_name): Doc fix.
18492 2002-03-03  Gary Wong  <gtw@gnu.org>
18494         * termcap.c [!emacs]: Replace ospeed for building standalone
18495         libtermcap, for binary compatibility.
18497         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
18499 2002-03-03  Richard M. Stallman  <rms@gnu.org>
18501         * xrdb.c (file_p): Rename arg `path' to `filename'.
18503         * abbrev.c (Fexpand_abbrev): Increment plist as use count
18504         only if it is an integer.
18506         * xfns.c (png_load): Set screen_gamma based on f->gamma.
18507         If png_get_sRGB gives an answer, call png_set_gamma
18508         using the default image gamma value.
18510         * lread.c (read1): When reading from a file, default string to
18511         multibyte only if it has some multibyte characters.
18513         * print.c (print_object): Output multibyte chars 128...255
18514         using \x even if ! print_escape_multibyte.
18516         * xdisp.c (display_mode_element): Move the places where
18517         bytepos, charpos, this, and lisp_string are set.
18518         Use lisp_string to set bytepos.
18520         * xdisp.c (redisplay_internal):
18521         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
18523         * xdisp.c (display_mode_element): Merge properties specified with
18524         :propertize onto those that come with the string.
18526 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
18528         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
18529         automatic-hscrolling.  Users changed.
18530         <hscroll-margin>: Renamed from automatic-hscroll-margin.
18531         Users changed.
18532         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
18534 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
18536         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
18538 2002-03-02  Kim F. Storm  <storm@cua.dk>
18540         * window.c (Fminibuffer_selected_window): New function.
18541         (syms_of_window): Defsubr it.
18543 2002-03-01  Kim F. Storm  <storm@cua.dk>
18545         * window.h (struct window): New member phys_cursor_width.
18547         * window.c (make_window, replace_window): Init phys_cursor_width.
18549         * xterm.c (x_display_and_set_cursor): Blink box cursor using
18550         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
18552         * w32term.c (x_display_and_set_cursor): Blink box cursor using
18553         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
18555         * lisp.h (GCPRO6): New macro.
18557         * process.c (Fopen_network_stream): Use GCPRO6.
18559 2002-03-01  Kim F. Storm  <storm@cua.dk>
18561         * process.c (Qconnect, Qfailed): New variables.
18562         (syms_of_process): Intern and staticpro them.
18563         (Fprocess_status): Document connect and failed return values.
18564         [NON_BLOCKING_CONNECT]: New conditional.
18565         (connect_wait_mask, num_pending_connects): New variables.
18566         (status_message): Convert Qfailed status.
18567         (Fopen_network_stream): Added support for non-blocking connect.
18568         New optional args: filter, sentinel, non_blocking.  Doc updated.
18569         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
18570         (deactivate_process): Handle pending non-blocking connect.
18571         (wait_reading_process_input): Poll for status of non-blocking
18572         connects.  Exec sentinel directly when connect succeeds.
18573         (status_notify): Don't read process output if not yet connected.
18575 2002-02-28  Kim F. Storm  <storm@cua.dk>
18577         * window.c: (minibuf_selected_window): Renamed from
18578         Vminibuf_selected_window.  Users changed.
18579         (syms_of_window): Staticpro it.
18581 2002-02-26  Kim F. Storm  <storm@cua.dk>
18583         The following changes add a new Vminibuf_selected_window variable
18584         which is similar to Vminibuf_scroll_window, but which is only set
18585         on entry to the minibuffer (from a non-minibuffer window):
18587         * window.c: (Vminibuf_selected_window): New variable.
18588         (struct save_window_data): New member minibuf_selected_window.
18589         (Fset_window_configuration): Restore Vminibuf_selected_window.
18590         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
18591         Set minibuf_scroll_window member to nil if minibuf_level is 0.
18592         (compare_window_configurations): Compare minibuf_selected_window.
18594         * window.h: (Vminibuf_selected_window): Declare extern.
18596         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
18597         entry to minibuffer or on entry from a non-minibuffer window.
18599         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
18600         Vminibuf_selected_window instead of Vminibuf_scroll_window.
18602         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
18603         instead of Vminibuf_scroll_window when deciding in which window
18604         the region should be highlighted.  Consequently, the region remains
18605         highlighteded even when a completion buffer is also displayed.
18607 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
18609         * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
18611         * xselect.c (Qcompound_text_with_extensions): Renamed from
18612         Qcompound_text_no_extensions.
18613         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
18615 2002-02-26  Juanma Barranquero  <lektu@terra.es>
18617         * w32proc.c (syms_of_ntproc): Doc fix.
18619 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18621         * intervals.h: Include "dispextern.h" unconditionally.
18623 2002-02-24  Jason Rumney  <jasonr@gnu.org>
18625         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
18626         and disp-table.elc.
18627         (lisp): Add emacs-lisp/backquote.elc.
18629 2002-02-24  Kim F. Storm  <storm@cua.dk>
18631         * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
18632         The validation of the event type was too strict as it didn't
18633         allow string events; buffer names are used in bindings for
18634         menu-bar-select-buffer (see `menu-bar-update-buffers').
18636 2002-02-23  Kim F. Storm  <storm@cua.dk>
18638         The following changes rework my patch of 2002-02-06 which
18639         added command remapping by entering the commands directly into
18640         the keymaps.  Now, command remapping uses an explicit `remap'
18641         prefix in the keymaps, i.e. [remap COMMAND].
18643         * keymap.c (Qremap, remap_command_vector): New variables.
18644         (is_command_symbol): Remove function.
18645         (Fdefine_key): No longer accept a symbol for KEY.
18646         Added validation of [remap COMMAND] argument for KEY.
18647         The DEF is no longer required to be a symbol when remapping a command.
18648         (Fremap_command): New function to remap command through keymaps.
18649         (Flookup_key): Perform command remapping initiated by
18650         Fremap_command directly for speed.
18651         (Fkey_binding): Use Fremap_command for command remapping.
18652         (where_is_internal): Handle new command remapping representation.
18653         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
18654         staticpro them.  Defsubr Fremap_command.
18656         * keymap.h (Fremap_command): Declare extern.
18657         (is_command_symbol): Remove extern.
18659         * keyboard.c (command_loop_1): Use Fremap_command for command
18660         remapping; now try command remapping for all symbols.
18662 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
18664         * coding.h (run_pre_post_conversion_on_str): Add prototype.
18666 2002-02-23  Jason Rumney  <jasonr@gnu.org>
18668         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
18669         on the string before encoding it.
18670         (Fw32_get_clipboard_data): Run post-read-conversion on the string
18671         after decoding it.
18673         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
18675 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18677         * w32term.c (enter_timestamp): Remove unused static variable to
18678         prevent warning.
18680         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
18682 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
18684         * w16select.c (Fw16_get_clipboard_data): Fix last change.
18686         * xselect.c (selection_data_to_lisp_data): Fix last change.
18688 2002-02-22  Jason Rumney  <jasonr@gnu.org>
18690         * w32term.h (struct w32_output): New member menu_command_in_progress.
18692         * w32menu.c (menubar_selection_callback): Free the menu and
18693         clear the menu_command_in_progress flag.
18695         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
18696         (menu_free_timer): New variable.
18697         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
18698         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
18699         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
18700         menu command is in progress.
18701         <WM_COMMAND>: Set the menu_command_in_progress flag.
18702         Kill any menu_free_timer that is running.
18704         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
18705         Call ExtTextOutA rather than ExtTextOut.
18707 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
18709         * puresize.h (BASE_PURESIZE): Increase to 755000.
18711 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
18713         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
18714         on the string before encoding it.
18715         (Fw16_get_clipboard_data): Run post-read-conversion on the string
18716         after decoding it.
18718 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
18720         Support for ICCCM  Extended Segments in X selections:
18722         * xselect.c <Qcompound_text_no_extensions>: New variable.
18723         (syms_of_xselect): Intern and staticpro it.
18724         (selection_data_to_lisp_data): Run post-read-conversion on decoded
18725         selection text.
18726         (lisp_data_to_selection_data): If next-selection-coding-system is
18727         compound-text-no-extensions, set the type of selection to be
18728         compound-text.
18730         * xterm.h (x_encode_text): Update prototype.
18732         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
18733         callers changed.  If SELECTIONP is non-zero, run the
18734         pre-write-conversion function before encoding the selection text.
18736 2002-02-21  Kim F. Storm  <storm@cua.dk>
18738         * frame.c (syms_of_frame): Change mouse-highlight default to t.
18740         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
18741         Correct composing of language-change event.
18743 2002-02-20  Kim F. Storm  <storm@cua.dk>
18745         * keyboard.c (menu_bar_items): Don't include keymap or local-map
18746         bindings at PT when building menu (the menu is not updated often
18747         enough for this to work reliable).
18748         (tool_bar_items): Likewise.
18749         (current_active_maps): Removed unused (and buggy) function.
18751 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18753         * xfns.c (gif_load): Use correct width and height for GIF images.
18755 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
18757         * floatfns.c (Fatan): Accept an optional second arg and call
18758         atan2 if passed 2 args.
18760 2002-02-18  Jason Rumney  <jasonr@gnu.org>
18762         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
18764 2002-02-17  Jason Rumney  <jasonr@gnu.org>
18766         * w32term.c (x_autoselect_window_p): New variable.
18767         (syms_of_w32term): DEFVAR_BOOL and initialize it.
18768         (note_mouse_movement): Use it.
18770         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
18772         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
18774         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18775         New variables.
18776         (syms_of_w32fns): Intern and staticpro them.
18777         (x_frame_parms) <"fullscreen">: New parameter.
18778         (x_fullscreen_move, x_set_fullscreen): New functions.
18779         (x_set_frame_parameters): Support Qfullscreen.
18780         (x_real_positions): Save x/y_pixels_diff frame params.
18781         (x_figure_window_size): Support full-screen frames.
18782         (Fx_create_frame): Default the fullscreen parameter.
18784         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
18785         (x_fullscreen_adjust): New functions.
18786         (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't  resize to
18787         fullscreen.  Call x_check_fullscreen_move, and set the
18788         want_fullscreen member of output_data.w32
18789         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
18791         * w32term.h: New enum for FULLSCREEN_* constants.
18792         (struct w32_output): New members want_fullscreen, x_pixels_diff,
18793         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
18794         (x-fullscreen-adjust): New prototype.
18796 2002-02-17  Kim F. Storm  <storm@cua.dk>
18798         * frame.c (Vmouse_highlight): New variable.
18799         (syms_of_frame): DEFVAR_LISP it.
18801         * frame.h (Vmouse_highlight): Declare extern.
18803         * xterm.h (struct x_display_info): Add mouse_face_hidden.
18805         * xterm.c (disable_mouse_highlight): Removed variable.
18806         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18807         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18808         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
18809         and on after keyboard input.
18810         (x_term_init): Initialize mouse_face_hidden.
18812         * msdos.h (struct display_info): Add mouse_face_hidden.
18814         * msdos.c (disable_mouse_highlight): Removed variable.
18815         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18816         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18817         (internal_terminal_init): Initialize mouse_face_hidden.
18818         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
18819         and on after keyboard input.
18821         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
18823         * w32term.c (disable_mouse_highlight): Removed variable.
18824         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
18825         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18826         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
18827         and on after keyboard input.
18828         (w32_initialize_display_info): Initialize mouse_face_hidden.
18830 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
18832         * msdos.c (last_mouse_window): New variable.
18833         (dos_rawgetc): Fix last change--if the mouse is in the same window
18834         as recorded in last_mouse_window, don't select this window.
18836         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
18838         * msdos.c (x_autoselect_window_p): New variable.
18839         (syms_of_msdos): Defvar it.
18840         (dos_rawgetc): If x_autoselect_window_p is set, select the window in
18841         which the last mouse movement occured, unless it is already selected.
18843         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
18844         New variables.
18845         (syms_of_xdisp): DEVFAR them.
18846         (hscroll_window_tree): Use automatic_hscroll_margin and
18847         Vautomatic_hscroll_step to compute the amount of window scrolling.
18849 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18851         * xterm.c (x-autoselect-window): New variable.
18852         (note_mouse_movement): Use it.
18854         * keyboard.c: Do not include "systime.h" twice.
18856 2002-02-15  Andreas Schwab  <schwab@suse.de>
18858         * puresize.h (PURESIZE_RATIO): Increase to 9/5.
18860         * alloc.c (NSTATICS): Increase to 1280.
18862 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
18864         * alloc.c (NSTATICS): Bump to 1026.
18866         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
18867         (Vx_super_keysym): New variables.
18868         (syms_of_xterm): DEFVAR_LISP them.
18869         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
18870         variables to determine which keys to use for the various modifiers.
18872 2002-02-13  Kim F. Storm  <storm@cua.dk>
18874         * window.c: (Vmode_line_in_non_selected_windows): Removed.
18875         (mode_line_in_non_selected_windows): New variable.
18876         (syms_of_window): DEFVAR_BOOL it.
18878         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
18879         Use mode_line_in_non_selected_windows.
18880         (mode_line_in_non_selected_windows): Declare extern.
18881         (Vmode_line_in_non_selected_windows): Removed extern.
18883 2002-02-13  Richard M. Stallman  <rms@gnu.org>
18885         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
18886         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
18887         (Fclear_this_command_keys): Doc fixes.
18889         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
18890         (update_face_from_frame_parameter): Increment face_change_count
18891         and windows_or_buffers_changed to force redisplay using changed faces.
18893         * xdisp.c (QCpropertize): New variable.
18894         (mode_line_proptrans_alist): New variable.
18895         (display_mode_element): New arg PROPS; all calls changed.
18896         Implement this, for strings.
18897         Handle literal output of strings by sharing the
18898         main-line code for strings, using local var `literal'.
18899         Handle :propertize feature.
18900         (syms_of_xdisp): Initialze and staticpro QCpropertize and
18901         mode_line_proptrans_alist.
18903 2002-02-11  Kim F. Storm  <storm@cua.dk>
18905         * window.c: (Vmode_line_in_non_selected_windows): New variable.
18906         (syms_of_window): DEFVAR_LISP it.
18908         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
18909         (CURRENT_MODE_LINE_FACE_ID): Use it.
18910         (Vmode_line_in_non_selected_windows): Declare extern.
18912         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
18913         to get mode line face.
18915 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
18917         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
18918         variables; cus-start.el doesn't need them anymore.
18920 2002-02-09  Kim F. Storm  <storm@cua.dk>
18922         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
18923         reduction.  This fixes a display problem where stray newlines were
18924         inserted in the window (corrected by C-l).  Clarified code (IMHO).
18926 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
18928         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
18930         * xdisp.c (display_mode_lines): Fix last change.
18932 2002-02-09  Jason Rumney  <jasonr@gnu.org>
18934         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
18935         match each other.
18936         (w32_load_system_font): Prevent Cleartype fonts from loading.
18937         (Fx_show_tip): Ensure tip frames are above other topmost windows.
18939 2002-02-09  Kim F. Storm  <storm@cua.dk>
18941         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
18942         (CURRENT_MODE_LINE_HEIGHT): Use it.
18943         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
18945         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
18946         (pos_visible_p, handle_face_prop): Likewise.
18947         (display_mode_lines): Likewise, but for the real selected window.
18948         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
18950         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
18951         in non-selected windows.
18952         (realize_basic_faces): Realize it.
18953         (syms_of_term): Intern and staticpro it.
18955 2002-02-08  Kim F. Storm  <storm@cua.dk>
18957         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
18958         Changed mail addresses to emacs-devel@gnu.org.
18960 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
18962         * fileio.c (Fsubstitute_in_file_name): If the file name includes
18963         ~user, and there's no such user, don't discard everything before ~user.
18965         * floatfns.c (Fround): Doc fix.
18967 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18969         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
18971 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
18973         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
18975 2002-02-07  Kim F. Storm  <storm@cua.dk>
18977         * keymap.c (where_is_internal): Only check whether definition is
18978         remapped if it fulfills is_command_symbol.
18980 2002-02-07  Andreas Schwab  <schwab@suse.de>
18982         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
18984         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
18986 2002-02-06  Kim F. Storm  <storm@cua.dk>
18988         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
18989         defining command remapping.  Doc updated.
18990         (Flookup_key): Remap command through keymap if KEY is a symbol.
18991         (is_command_symbol): New function.
18992         (Fkey_binding): Use it.  New optional argument NO-REMAP.
18993         Doc updated.  Callers changed.  Perform command remapping via
18994         recursive call unless that arg is non-nil.
18995         (where_is_internal): New argument no_remap.  Callers changed.
18996         Call recursively to find original key bindings for a remapped
18997         comand unless that arg is non-nil.
18998         (Fwhere_is_internal): New optional argument NO-REMAP.
18999         Doc updated.  Callers changed.  Pass arg to where_is_internal.
19001         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
19002         (is_command_symbol): Add prototype.
19004         * keyboard.c (Vthis_original_command): New variable.
19005         (syms_of_keyboard): DEFVAR_LISP it.
19006         (command_loop_1): Set it, and perform command remapping.
19008 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19010         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
19012 2002-02-06  Jason Rumney  <jasonr@gnu.org>
19014         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
19016 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
19018         * charset.c (get_charset_id): Use if-else instead of ?:.
19020 2002-02-06  Richard M. Stallman  <rms@gnu.org>
19022         * filelock.c (S_ISLNK): Define if not defined.
19024 2002-02-03  Richard M. Stallman  <rms@gnu.org>
19026         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
19028         * lread.c (read1): Redesign strategy for force_multibyte and
19029         force_singlebyte.  Now is_multibyte records whether read_buffer
19030         is multibyte.  Encountering any multibyte character makes it so.
19032 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
19034         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
19035         with the same sequence, map that sequence to f10 rather than f0.
19037 2002-02-03  Andreas Schwab  <schwab@suse.de>
19039         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
19040         latter never being defined on GNU/Linux.
19042 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
19044         * xfaces.c (realize_default_face): Don't set the weight and slant of
19045         the default face to Qnormal, unless these attributes are unspecified.
19047 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19049         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
19050         Call cancel_hourglass unconditionally.
19052         * eval.c (Fsignal): Remove duplicated declaration of
19053         the variable `display_hourglass_p'.
19055 2002-01-31  Richard M. Stallman  <rms@gnu.org>
19057         * editfns.c (region_limit): Nicer error message.
19059         * coding.c (decode_composition_emacs_mule):
19060         Give up if NCOMPONENT gets too large to index `component'.
19062         * callint.c (check_mark): New arg to specify clearer error message.
19063         Callers changed.
19065 2002-01-27  Richard M. Stallman  <rms@gnu.org>
19067         * minibuf.c (Fcompleting_read): Doc fix.
19069 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19071         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
19072         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
19073         Fix doc-strings.
19075 2002-01-26  Richard M. Stallman  <rms@gnu.org>
19077         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
19079         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
19080         and scroll_up_aggressively.
19082 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19084         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
19086 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
19088         * textprop.c (Fnext_property_change, Fnext_single_property_change)
19089         (Fprevious_property_change, Fprevious_single_property_change):
19090         Stay within the narrowed-buffer boundaries.
19092 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
19094         * term.c (Ftty_display_color_cells): New function.
19095         (syms_of_term): Defsubr it.
19096         (Ftty_display_color_cells, Ftty_display_color_p): Change the
19097         argument name to DISPLAY.  Doc fix.
19099         * dispextern.h: Add prototype for set_tty_color_mode and
19100         tty_setup_colors.
19102 2002-01-24  Jason Rumney  <jasonr@gnu.org>
19104         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
19105         If region left to draw is not what was expected, mark the frame as
19106         garbaged.
19108         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
19109         Combine the regions returned by BeginPaint and GetUpdateRect.
19111 2002-01-23  Jason Rumney  <jasonr@gnu.org>
19113         * w32term.c (x_update_window_begin): Only hide caret if
19114         w32_use_visible_system_caret is set.
19115         (x_update_window_end): Only show caret if
19116         w32_use_visible_system_caret is set.
19117         (syms_of_w32term): Handle SystemParametersInfo call failing.
19119         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
19121 2002-01-22  Richard M. Stallman  <rms@gnu.org>
19123         * unexelf.c (unexec): Define n so as to cause compilation error
19124         for the code where people have often written n instead of nn.
19126         * .gdbinit (hookpost-run): Defined.
19128 2002-01-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19130         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
19132 2002-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19134         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
19135         if fullscreen is being set.
19137 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19139         * minibuf.c (Fminibuffer_contents)
19140         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
19141         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
19143 2002-01-21  Richard M. Stallman  <rms@gnu.org>
19145         * window.c (check_frame_size): Fix minimum height calculation.
19147 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
19149         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
19150         height before comparison.
19151         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
19153 2002-01-20  Jason Rumney  <jasonr@gnu.org>
19155         * w32term.c (w32_system_caret_width): Remove.
19156         (w32_use_visible_system_caret): New user flag.
19157         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
19158         Windows reports a screen reader running.
19159         (x_update_window_begin): Hide the system caret.
19160         (x_update_window_end): Show the system caret.
19161         (x_display_and_set_cursor): Don't draw a cursor when
19162         w32_use_visible_system_caret is set.  Do not adjust width.
19164         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
19165         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
19166         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
19167         the user requests it.  Use system default width when creating.
19168         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
19170         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
19171         New window messages.
19173 2002-01-20  Richard M. Stallman  <rms@gnu.org>
19175         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
19177 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19179         * doprnt.c (doprnt1): Fix typos in error call.
19181 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
19183         * unexelf.c (unexec) [__sgi]: Support the .got sections.
19185 2002-01-20  Jason Rumney  <jasonr@gnu.org>
19187         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
19188         that Windows returns.  If a double check fails, try to guess how
19189         ExtTextOut is going to act.
19191         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
19192         in place of stricmp.
19193         (w32_list_synthesized_fonts): Removed.
19194         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
19195         (struct enumfont_t): New element; list.
19196         (enum_font_cb2): List all style and charset variations of a font.
19197         (Fw32_select_font): New optional argument; include_proportional.
19198         Exclude vertical fonts.  Exclude proportional fonts unless
19199         include_proportional is non-nil.
19200         (w32_enable_synthesized_fonts): Change to a boolean.
19201         (Fw32_send_sys_command): Doc fix.
19203 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19205         * dispnew.c (update_frame): Move the variable `tem' to the block
19206         where it is used.
19208 2002-01-19  Jason Rumney  <jasonr@gnu.org>
19210         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
19211         call to face-set-after-frame-default.
19213 2002-01-18  Richard M. Stallman  <rms@gnu.org>
19215         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
19216         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
19218 2002-01-17  Richard M. Stallman  <rms@gnu.org>
19220         * window.c (enlarge_window): When exceeding size of parent,
19221         directly delete all the siblings instead of trying to resize it.
19223 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19225         * term.c (set_tty_color_mode): Remove unused variable `tem'.
19227 2002-01-16  Henrik Enberg  <henrik@enberg.org>
19229         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
19231 2002-01-16  Kim F. Storm  <storm@cua.dk>
19233         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
19234         is invisible.  This can happen if cursor is on top line of a
19235         window, and we switch to a buffer with a header line.
19237         * w32term.c (x_erase_phys_cursor): Ditto.
19239 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19241         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
19242         `dont_resize' only when used.
19244         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
19246 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
19248         * xdisp.c (display_mode_element): When computing charpos, depend
19249         on multibyteness of elt, not the text in field.
19251 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19253         * buffer.c (Fkill_all_local_variables):
19254         Increment `update_mode_lines' only once.
19256 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19258         * lisp.h (adjust_after_replace_noundo)
19259         (Fupdate_coding_systems_internal): Add prototypes.
19261         * sound.c (Fplay_sound): Initialize header_size also for :data case.
19263 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
19265         Support for the --color command-line argument and tty-color-mode
19266         frame parameter:
19268         * term.c (tty_default_color_capabilities, tty_setup_colors)
19269         (set_tty_color_mode): New functions.
19270         (term_init): Call tty_default_color_capabilities.
19271         (Qtty_color_mode_alist): New variable.
19272         (syms_of_term): Intern and staticpro it.
19274         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
19275         frames.
19276         (do_switch_frame): For termcap frames, switch the tty
19277         color mode as specified by the frame's parameters.
19278         (Qtty_color_mode): New variable.
19279         (syms_of_frame): Intern and staticpro it.
19281         * emacs.c (USAGE2): Add the --color option.
19282         (standard_args): Ditto.
19284 2002-01-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19286         * xterm.h (struct x_output): New members want_fullscreen,
19287         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
19288         y_pixels_outer_diff.
19289         New enum for FULLSCREEN_* constants.
19290         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
19291         is NULL.
19292         (x_fullscreen_adjust): Add prototype.
19294         * emacs.c (USAGE2): Add the new full-screen arguments.
19295         (standard_args): Ditto.
19297         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19298         New variables.
19299         (syms_of_xfns): Intern and staticpro them.
19300         (x_frame_parms) <"fullscreen">: New parameter.
19301         (x_fullscreen_move, x_set_fullscreen): New functions.
19302         (x_set_frame_parameters): Support for Qfullscreen.
19303         (x_real_positions): More accurate computation of the frame position.
19304         (x_figure_window_size): Support full-screen frames.
19305         (Fx_create_frame): Default the fullscreen parameter.
19307         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
19308         (XTread_socket) <Expose>: Call x_check_fullscreen.
19309         <ConfigureNotify>: Don't resize to fullscreen.
19310         Call x_check_fullscreen_move, and set the want_fullscreen member of
19311         output_data.x.
19313 2002-01-13  Jason Rumney  <jasonr@gnu.org>
19315         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
19316         for mice with more than 3 buttons.
19318         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
19319         (w32_read_socket): Handle new "XBUTTON" messages.
19321         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
19322         (syms_of_w32fns): DEFVAR_BOOL it.
19323         (w32_wnd_proc): Handle new "XBUTTON" messages.
19325 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19327         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
19329 2002-01-13  Andreas Schwab  <schwab@suse.de>
19331         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
19333 2002-01-12  Andreas Schwab  <schwab@suse.de>
19335         * .gdbinit (xbuffer): Remove address operator since data is now a
19336         pointer.
19338 2002-01-11  Richard M. Stallman  <rms@gnu.org>
19340         * insdel.c (adjust_after_replace_noundo): New function.
19342         * coding.c (code_convert_region): Don't copy old text if undo disabled.
19344 2002-01-09  Jason Rumney  <jasonr@gnu.org>
19346         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
19347         when checking for multiple frames.
19349 2002-01-08  Richard M. Stallman  <rms@gnu.org>
19351         * window.c (delete_window): Rewrite the code for changing the
19352         selected window to handle the case where WINDOW is not a leaf.
19354 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
19356         * process.c (send_process): Set src_multibyte to 1 after the call
19357         top setup_coding_system, not before the call.
19359 2002-01-07  Jason Rumney  <jasonr@gnu.org>
19361         * xmenu.c (set_frame_menubar, xmenu_show):
19362         (xdialog_show): Initialize wv->help to Qnil.
19364         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
19365         (w32_dialog_show): Initialize wv->help to Qnil.
19367 2002-01-06  Jason Rumney  <jasonr@gnu.org>
19369         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
19371         * w32menu.c (w32_menu_display_help): Revert last change.
19373         * xmenu.c (menu_highlight_callback): Revert last change.
19375 2002-01-06  Andreas Schwab  <schwab@suse.de>
19377         * insdel.c (make_gap_larger): Make sure buffer size does not
19378         overflow range of int.
19380 2002-01-05  Jason Rumney  <jasonr@gnu.org>
19382         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19383         OVERLAPS_P.
19385         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
19387         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
19388         to the left or to the right of the pointer, put it against
19389         the left screen edge.
19390         (x_frame_parms): Add missing braces around initializer.
19392         * w32term.c (x_setup_relief_colors): Don't compute an image's
19393         background color if it doesn't have a Pixmap.
19394         (notice_overwritten_cursor): Don't depend on
19395         output_cursor and updated_area.  Compare pixel coordinates with
19396         window's cursor pixel coordinates.
19397         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19398         Call notice_overwritten_cursor with new arg list.
19399         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19400         unconditionally.
19401         (x_draw_image_relief): Use predefined macro instead of
19402         constant when the value of `tool_bar_button_relief' is negative.
19404         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
19406 2002-01-04  Richard M. Stallman  <rms@gnu.org>
19408         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
19410 2002-01-03  Richard M. Stallman  <rms@gnu.org>
19412         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
19413         (Fkey_binding): Try the `keymap' property map first.
19414         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
19415         minor mode bindings.
19417 2002-01-03  Kim F. Storm  <storm@cua.dk>
19419         * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
19421 2002-01-02  Richard M. Stallman  <rms@gnu.org>
19423         * keyboard.c (read_key_sequence): Handle the keymap property
19424         before minor mode maps.
19426         * editfns.c (Fformat): Update thissize from field_width
19427         based on the actual width, in the string case.
19429 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19431         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
19432         when used as truth value to prevent gcc warnings.
19434         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
19435         * w32proc.c: Include <config.h>.
19437 2002-01-01  Andreas Schwab  <schwab@suse.de>
19439         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
19440         not EMACS_INT, to make them compatible with DEFVAR_INT.
19441         * lisp.h (max_specpdl_size): Adjust declaration.
19443 2002-01-01  Richard M. Stallman  <rms@gnu.org>
19445         * print.c (print_object): Test print_escape_nonascii only for
19446         unibyte strings.
19447         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
19448         when outputting to a multibyte buffer.
19450 2001-12-29  Richard M. Stallman  <rms@gnu.org>
19452         * print.c (print_object): In multibyte string, use hex escapes.
19453         Use octal only for unibyte strings.
19454         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
19456         * lread.c (read_escape): New arg BYTEREP for reporting whether
19457         escape forces unibyte or multibyte.
19458         (read1): When reading a string, take note of that info.
19460 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
19462         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
19463         comparison to test lisp value returned by Fget.
19465 2001-12-29  Richard M. Stallman  <rms@gnu.org>
19467         * lisp.h (max_specpdl_size): Add declaration.
19469         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
19471         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
19472         Handle modifier bits.  Correct typo in error message.
19474 2001-12-28  Richard M. Stallman  <rms@gnu.org>
19476         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
19477         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
19478         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19479         Update calls to Fdefine_abbrev.
19480         (write_abbrev): Update for changed data format.
19481         Don't list "system" abbrevs.
19482         (Fexpand_abbrev): Update use count with new data format.
19483         (describe_abbrev): Update for changed data format.
19484         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
19486         * config.in (HAVE_MBSINIT): Add #undef.
19488         * strftime.c (mbsinit): Define as no-op if not available.
19490         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
19491         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
19493         * keymap.c (Flookup_key): Error message if key has wrong data type.
19494         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
19495         (exclude_key): New variable.
19497 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
19499         * xterm.c (x_setup_relief_colors): Don't compute an image's
19500         background color if it doesn't have a Pixmap.
19502         * xterm.c (notice_overwritten_cursor): Don't depend on
19503         output_cursor and updated_area.  Compare pixel coordinates with
19504         window's cursor pixel coordinates.
19505         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19506         Call notice_overwritten_cursor with new arg list.
19507         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19508         unconditionally.
19510         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
19511         height of the cursor line to the amount to scroll.
19513 2001-12-27  Richard M. Stallman  <rms@gnu.org>
19515         * intervals.c (set_point_both): The position after an invisible,
19516         intangible character is not an acceptable stopping point.
19518 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
19520         * window.c (enlarge_window): In new preserve_before code, convert
19521         CURBEG from lisp object to integer before doing arithmetic.
19523 2001-12-27  Richard M. Stallman  <rms@gnu.org>
19525         * bytecode.c (Fbyte_code): Undo previous change.
19527 2001-12-26  Kim F. Storm  <storm@cua.dk>
19529         * keyboard.c (record_char): Ignore duplicate help-echo events only
19530         separated by mouse-movement.  When tracking mouse, only record
19531         first and last mouse-movement event in same window.
19532         Don't record mouse-movement events in keyboard macros.
19534 2001-12-25  Richard M. Stallman  <rms@gnu.org>
19536         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
19537         (Fenlarge_window): New arg PRESERVE_BEFORE.
19539         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
19540         instead of Fstring_as_unibyte.
19542 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19544         The following changes remove mocklisp support:
19546         * mocklisp.h, mocklisp.c: Files removed.
19548         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
19549         `Qmocklisp' and `Qmocklisp_arguments'.
19550         Remove prototype of syms_of_mocklisp.
19552         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
19554         * callint.c: Do not include mocklisp.h.
19555         (Fcall_interactively): Do not test for mocklisp case.
19557         * eval.c: Remove variables `Qmocklisp_arguments',
19558         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
19559         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
19560         Do not test for mocklisp case.
19561         (Fwhile): Remove unused variable `tem'.
19562         (syms_of_eval): Remove variable `moclisp-arguments'.
19564         * data.c (wrong_type_argument): Remove mocklisp case.
19566         * doc.c (Fdocumentation): Remove mocklisp case.
19568         * emacs.c (main): Do not call syms_of_mocklisp.
19570 2001-12-21  Richard M. Stallman  <rms@gnu.org>
19572         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
19573         to the left or to the right of the pointer, put it against
19574         the left screen edge.
19576 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
19578         * Makefile.in (distclean): Remove .gdbinit if we are building
19579         outside the source tree.
19581 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
19583         * w32.c (emacs_root_dir): New function.
19585         * msdos.c (emacs_root_dir): New function.
19587         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
19588         of the current drive as the fallback for default_directory.
19590         * dired.c (file_name_completion): Run the elements of
19591         completion-ignored-extensions through ENCODE_FILE.
19593         * lisp.h (scmp): Remove prototype, since it's now a static
19594         function private to dired.c.
19596 2001-12-18  Richard M. Stallman  <rms@gnu.org>
19598         * dired.c (scmp): Function moved from minibuf.c.
19599         Delete multibyte handling--used only on encoded strings.
19601         * minibuf.c (scmp): Function moved to dired.c.
19603         * fns.c (merge): Add QUIT call.
19605 2001-12-18  Dave Love  <fx@gnu.org>
19607         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
19608         language/georgian.el.
19610 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
19612         * Makefile.in (lisp, shortlisp): Synchronize with changes to
19613         lisp/Makefile.in:DONTCOMPILE.
19615 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19617         * xdisp.c (window_box_height): Do not return negative values.
19618         From Gerd Moellmann <gerd@gnu.org>.
19620         * keyboard.c (head_table): Add missing braces around initializer.
19622         * term.c (keys): Likewise.
19624         * xfns.c (x_frame_parms, visual_classes): Likewise.
19626 2001-12-17  Sam Steingold  <sds@gnu.org>
19628         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
19629         patch (COMPOSING_P, not COMPOSING).
19631 2001-12-17  Richard M. Stallman  <rms@gnu.org>
19633         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
19635         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
19636         before calling decode_coding.
19638         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
19640         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
19641         instead of only for COMPOSITION_DISABLED.
19643 2001-12-16  Richard M. Stallman  <rms@gnu.org>
19645         * alloc.c (pure_alloc): After overflow, allocate just a small block.
19647         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
19649         * buffer.h (struct buffer): New field `display_error_modiff'.
19650         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
19652         * window.c (Frecenter): Clear display_error_modiff field.
19654         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
19655         Call redisplay_window, but not if display_error_modiff field says no.
19656         (redisplay_window_error): New function.
19657         (displayed_buffer): New variable.
19658         (redisplay_internal, redisplay_windows): Call the new functions
19659         instead of redisplay_window directly.
19661 2001-12-15  Richard M. Stallman  <rms@gnu.org>
19663         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
19665 2001-12-14  Andrew Innes  <andrewi@gnu.org>
19667         * makefile.w32-in (EMACSLOADPATH): Define.
19668         ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
19669         (bootstrap-temacs): Remove dependency on bootstrap-clean.
19671 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
19673         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
19674         parameter have a numeric value all the time.
19676         * w32fns.c (x_report_frame_params): Likewise.
19678 2001-12-12  Richard M. Stallman  <rms@gnu.org>
19680         * fileio.c (Fwrite_region): Doc fix.
19682         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
19683         (redisplay_internal): Call clear_image_cache only for window terminals.
19685 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
19687         * xdisp.c (move_it_vertically_backward): Change heuristic
19688         for the case that we didn't move far enough initially.
19690         * window.c (Frecenter): Simplify computation in the case of window
19691         system frames and ARG < 0; use window_box_height.
19693 2001-12-11  Richard M. Stallman  <rms@gnu.org>
19695         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
19696         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
19698 2001-12-11  Andrew Innes  <andrewi@gnu.org>
19700         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
19701         arg is negative.
19703 2001-12-11  Richard M. Stallman  <rms@gnu.org>
19705         * m/hp800.h: Split the __hpux conditional into the parts
19706         that are right for GNU/Linux too and the parts that are not.
19707         Use the former if GNU_LINUX.
19708         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
19710         * s/gnu-linux.h (GNU_LINUX): Defined.
19712 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19714         * macros.c, msdos.c, w16select.c: Change doc-string comments to
19715         `new style' [w/`doc:' keyword].
19717 2001-12-10  Jason Rumney  <jasonr@gnu.org>
19719         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
19720         before using.
19722 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19724         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
19725         keyword].
19727 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
19729         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
19731         * s/hpux10.h (srand48): Don't undefine.
19733 2001-12-09  Jason Rumney  <jasonr@gnu.org>
19735         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
19736         Add comment to explain where the struct came from.
19737         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
19738         (add_menu_item): Process pop-up menus first to avoid memory leak.
19739         (add_menu_item, w32_menu_display_help): Use `help' field as
19740         Lisp_Object.
19741         (w32_free_submenu_strings): Only free owner-drawn strings.
19743 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19745         * COPYING: Moved back.
19747         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
19748         Add parentheses around && within ||.
19750         * indent.c (compute_motion): Likewise.
19752         * intervals.c (merge_properties_sticky): Likewise.
19754         * coding.c (setup_coding_system, shrink_encoding_region)
19755         (Fdecode_sjis_char): Likewise.
19757 2001-12-07  Andreas Schwab  <schwab@suse.de>
19759         * xdisp.c (display_mode_element): Don't read past end of string if
19760         it ends with '%'.
19762         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
19763         can hold.
19765         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
19766         Rename from most_positive_fixnum and most_negative_fixnum, resp., and
19767         type changed to Lisp_Object.
19768         (syms_of_data): DEFVAR_LISP them.
19770 2001-12-07  Richard M. Stallman  <rms@gnu.org>
19772         * callproc.c (init_callproc): Set Vdata_directory based on the source
19773         location whenever Emacs was run uninstalled.
19775 2001-12-06  Paul Eggert  <eggert@twinsun.com>
19777         * config.in (HAVE_WORKING_VFORK): New #undefs.
19778         * process.c (create_process):
19779         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
19780         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
19781         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
19782         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
19783         * m/intel386.h (HAVE_VFORK): Likewise.
19784         * m/mips-siemens.h (HAVE_VFORK): Likewise.
19785         * m/mips.h (HAVE_VFORK): Likewise.
19786         * s/freebsd.h (vfork): Remove #define.
19787         * s/lynxos.h (HAVE_VFORK): Remove #undef.
19788         * s/usg5-4-2.h: Fix comment about vfork.
19790 2001-12-06  Richard M. Stallman  <rms@gnu.org>
19792         * s/hpux10.h (random): Add undef.
19793         (HAVE_RANDOM): Define it just once.
19795 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
19797         * eval.c: Undo last change: the standard syntax is not wanted.
19799 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
19801         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
19802         scroll bars of the frame before deleting the frame itself.  If the
19803         frame has a widget, delete the frame with XtDestroyWidget, and do
19804         not call XDestroyWindow before that.
19806 2001-12-06  Kim F. Storm  <storm@cua.dk>
19808         * xfns.c (x_report_frame_params): Return actual fringe widths.
19810         * w32fns.c (x_report_frame_params): Return actual fringe widths.
19812 2001-12-05  Andrew Innes  <andrewi@gnu.org>
19814         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
19815         excessively large.
19817         * insdel.c (make_gap_larger): New function.
19818         (make_gap_smaller): New function.
19819         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
19820         Call make_gap_smaller if arg is negative.
19822 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
19824         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
19825         Pass a dummy argument when calling interrupt_signal.
19826         (parse_menu_item): Mark disabled items before checking for empty def.
19827         (read_char_minibuf_menu_prompt): Make safety more visible.
19828         (read_key_sequence): Add a `first_unbound' variable.
19829         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
19830         unbound prefix as soon as we can detect it.
19832         * doc.c (Fsnarf_documentation): Add prototype.
19833         (get_doc_string): Handle negative arguments.
19834         (Fdocumentation): Use AREF and ASIZE.
19835         Move the calls to get_doc_string to a single place.
19836         Don't confuse an interactive-spec for a docstring reference.
19837         (Fdocumentation_property): Take advantage of the fact that
19838         get_doc_string now ignores the sign of the docstring position.
19840         * eval.c: Use standard syntax for usage in docstrings.
19842 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19844         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
19846 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19848         * xterm.c (x_draw_image_relief): Use predefined macro instead of
19849         constant when the value of `tool_bar_button_relief' is negative.
19851 2001-12-02  Richard M. Stallman  <rms@gnu.org>
19853         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
19854         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
19856         * fileio.c (read_non_regular): Delete Fsignal call.
19858 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
19860         * lisp.h (run_hook_list_with_args): Undo last change.
19862 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
19864         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
19866 2001-12-01  Jason Rumney  <jasonr@gnu.org>
19868         * window.c (Qleft_fringe, Qright_fringe): Remove.  Now in frame.c.
19870         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
19871         [!WM_MOUSELEAVE]: Define.
19873         * w32menu.c (current_popup_menu, get_menu_item_info):
19874         (set_menu_item_info): New vars.
19875         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
19876         (w32_menu_show): Set current_popup_menu.
19877         (add_menu_item): Allocate new strings for owner-drawn menu items
19878         and help strings.
19879         Use owner-draw for disabled menu items again.
19880         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
19881         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
19883         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
19884         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
19885         <WM_EXITMENULOOP>: Free menu strings.
19886         <WM_MOUSELEAVE>: Stop tracking mouse.
19887         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
19889         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
19890         and mouse face.
19892 2001-12-01  Kim F. Storm  <storm@cua.dk>
19894         The following changes add left-fringe and right-fringe
19895         frame parameters to adjust fringe widths, or remove one or
19896         both fringes.
19898         * frame.h (struct frame): Remove trunc_area_pixel_width and
19899         trunc_area_cols fields.
19900         (Qleft_fringe, Qright_fringe): Declare.
19901         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
19903         * frame.c (Qleft_fringe, Qright_fringe): New vars.
19904         (syms_of_frame): Initialize them.
19906         * window.c (coordinates_in_window): Handle separate left and right
19907         fringe widths.
19909         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
19910         and fringe_cols fields.
19911         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
19912         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
19913         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
19914         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
19915         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
19916         (x_compute_fringe_widths): Add prototype.
19918         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
19919         fill fringe evenly with small dashes.
19920         (x_draw_fringe_bitmap): Clear background if necessary.  Align and
19921         clip the new ZV bitmap to avoid jitter between rows.
19922         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
19923         background.  Don't draw fringe bitmaps if fringe width is zero.
19924         (x_compute_fringe_widths): New function.
19925         (x_new_font, x_set_window_size_1): Use it.
19927         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
19928         (x_set_frame_parameters): Process `font' parameter before other
19929         parameters as fringe widths depend on it.
19930         (x_set_fringe_width): New function.
19931         (x_figure_window_size): Use x_compute_fringe_widths.
19932         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
19933         parameters.
19935         * widget.c (set_frame_size): Use x_compute_fringe_widths.
19936         (EmacsFrameSetCharSize): Ditto.
19938         * w32term.h: Merged changes from xterm.h.
19939         * w32term.c: Merged changes from xterm.c.
19940         * w32fns.c: Merged changes from xfns.c.
19942 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19944         * COPYING: Removed.
19946 2001-11-29  Dave Love  <fx@gnu.org>
19948         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
19949         extra extra slot.
19950         (detect_coding_mask): Fix call of detect_coding_iso2022.
19952 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19954         * fileio.c (file-name-coding-system)
19955         (default-file-name-coding-system): Doc fix (links to referenced
19956         variables added).
19958 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
19960         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
19961         Add dummy uses of gcproN variables.
19963         * category.c (describe_category, describe_category_1)
19964         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
19965         (syms_of_category): Don't defsubr Sdescribe_categories.
19967 2001-11-28  Richard M. Stallman  <rms@gnu.org>
19969         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
19971         * Makefile.in (lispdir): New variable, referring to build dir.
19972         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
19974 2001-11-28  Andrew Innes  <andrewi@gnu.org>
19976         * w32menu.c (w32_menu_display_help): Actually add the new argument
19977         OWNER.
19979 2001-11-28  Jason Rumney  <jasonr@gnu.org>
19981         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
19982         menu items.  From David Ponce <dponce@wanadoo.fr>.
19983         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
19984         conditionally.
19985         (w32_menu_display_help): New argument OWNER.  Rewritten to store a
19986         help event in the owner frame's keyboard buffer.
19988         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
19989         (Fx_show_tip): Don't subtract last width from row width.
19991         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
19992         (w32_read_socket): Use EQ to compare frames.
19994 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
19996         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19997         OVERLAPS_P.
19999 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20001         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
20002         `gcpro3' and `gcpro4'.
20004         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
20006 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
20008         * ccl.c: Use AREF and ASIZE.
20010 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
20012         * lisp.h (run_hook_list_with_args): Remove.
20013         (LIST_END_P): Fix call to wrong_type_argument.
20014         (make_fixnum_or_float): Use EMACS_INT rather than int.
20016 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
20018         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
20019         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
20021         * eval.c: Use AREF and ASIZE.
20022         (Ffetch_bytecode): Add the file name to the error message.
20024         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
20025         which match the end of the file-name.
20026         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
20027         is not a valid env var, but leave it as is instead.
20029         * keymap.c (access_keymap): Handle t bindings like nil bindings.
20030         Make nil bindings in char-tables transparent.
20031         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
20033 2001-11-26  Richard M. Stallman  <rms@gnu.org>
20035         * textprop.c (set_text_properties_1): Allow START, END in either order.
20036         Do nothing if range is empty.
20038         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
20040         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
20041         (clean): Not here.
20043 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
20045         * textprop.c (set_text_properties_1): Clearly mark that the
20046         interval should not be empty.
20048         * intervals.c (graft_intervals_into_buffer):
20049         Don't call set_text_properties_1 on an empty interval.
20051 2001-11-25  Richard M. Stallman  <rms@gnu.org>
20053         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
20055         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
20056         don't lose the data in it.
20058 2001-11-25  Juanma Barranquero  <lektu@terra.es>
20060         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
20062         * buffer.c (Fkill_buffer): Likewise.
20064         * print.c (temp_output_buffer_setup): Likewise.
20066 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
20068         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
20070 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
20072         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
20073         Niemitalo <kon@iki.fi>.
20075 2001-11-25  Jason Rumney  <jasonr@gnu.org>
20077         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
20079         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
20080         (Fx_show_tip): Block input during frame creation.
20081         (Fx_show_tip, Fx_hide_tip): Enable.
20083 2001-11-24  Richard M. Stallman  <rms@gnu.org>
20085         * lread.c (Fload): Detect recursive load error for more than 3
20086         nestings of the same file.
20087         (Vrecursive_load_depth_limit): Variable deleted.
20088         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
20090 2001-11-24  Jason Rumney  <jasonr@gnu.org>
20092         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
20093         mouse position if either left or top is not specified.
20095         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
20096         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
20097         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
20098         (my_create_tip_window): Assign tip_window.
20099         (x_create_tip_frame): Use same defaults as X.
20100         (compute_tip_xy): Remove unused variable.  Use full screen width.
20101         (Fx_show_tip): Do not double height.  Call ShowWindow directly.
20103         * w32term.c (x_after_update_window_line): Doc fix.
20104         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
20105         frames.
20106         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
20108         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
20109         for all Windowed systems.
20111 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
20113         * msdos.c (IT_clear_screen): If the frame's faces are not yet
20114         realized, use the initial screen colors to clear the screen.
20116 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20118         * textprop.c (Fset_text_properties): Remove unused variables
20119         `unchanged', `prev_changed', `s' and `len'.
20121         * search.c (Freplace_match): Remove unused variable `inslen'.
20123         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
20125 2001-11-22  Jason Rumney  <jasonr@gnu.org>
20127         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
20128         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
20129         (my_create_tip_window): New function.
20130         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
20131         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
20133 2001-11-20  Jason Rumney  <jasonr@gnu.org>
20135         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
20136         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
20138         * w32fns.c (Vw32_system_coding_system): Remove.
20139         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
20141 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
20143         * fileio.c (Fwrite_region): Move choose_write_coding_system to
20144         after build_annotations.
20146         * syntax.c (describe_syntax): Add dummy arg.
20147         (describe_syntax_1): Update call to describe_vector.
20149         * category.c (describe_category): Add dummy arg.
20150         (describe_category_1): Update call to describe_vector.
20152         * keymap.c (Fdescribe_vector): Add `describer' parameter.
20153         (describe_command, describe_translation): Add dummy second param.
20154         (describe_map): Call elt_describer with two arguments.
20155         (describe_vector_princ): Add `fun' parameter.
20156         Call it instead of the hardcoded `princ'.
20157         (describe_vector): Add arg `args'.
20158         Pass it as a new second argument to elt_describer.
20160         * keymap.h (describe_vector): Update prototype.
20162         * frame.c: Don't include keymap.h any more.
20163         (keys_of_frame): Remove.
20165         * lisp.h (keys_of_frame): Remove declaration.
20167         * emacs.c (main): Don't call `keys_of_frame' any more.
20169 2001-11-14  Andreas Schwab  <schwab@suse.de>
20171         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
20172         if defined, 0 otherwise.
20173         (MAP_FAILED): Define if not defined and use it to test mmap failure.
20174         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
20176 2001-11-19  Richard M. Stallman  <rms@gnu.org>
20178         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
20180 2001-11-18  Jason Rumney  <jasonr@gnu.org>
20182         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
20183         (x_draw_bar_cursor): If the background color of the glyph under
20184         the cursor equals the frame's cursor color, use the glyph's
20185         foreground color for drawing the bar cursor.
20186         (x_after_update_window_line): Clear internal border in different
20187         circumstances.
20188         (w32_set_vertical_scroll_bar): Check for width and height > 0.
20189         (w32_draw_relief_rect): Correct relief by 1 pixel.
20190         (x_set_glyph_string_background_width):
20191         Set extends_to_end_of_line_p if the row's fill_line_p is set and
20192         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
20193         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
20194         if cursor_in_non_selected_windows is false.
20195         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
20196         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
20197         Notice if cursor gets overwritten.
20198         (notice_overwritten_cursor): Renamed from
20199         note_overwritten_text_cursor.  Rewritten to take glyph widths
20200         into account, and to take X positions as parameters.
20201         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20202         around call to x_draw_glyphs.
20203         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20204         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20205         color to use for image glyph reliefs.
20206         (x_draw_image_relief): Accept zero tool_bar_button_relief.
20207         (glyph_rect): Remove unused variable `area'.
20209         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
20210         some items.
20211         (x_set_internal_border_width): Set frame garbaged when window
20212         doesn't exist yet.
20213         (Fx_create_frame): Accept zero tool_bar_button_relief.
20214         (x_clear_image_1, four_corners_best, image_background)
20215         (image_background_transparent): New functions.
20216         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
20217         (gs_format): Add `:background' entry.
20218         (lookup_image): Set IMG's background color if specified.
20219         (pbm_load, xbm_load_image, png_load): Set IMG's background field
20220         when appropriate.
20221         (x_clear_image_1): Reset `background_valid' and
20222         `background_transparent_valid' fields.
20223         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20224         calculating it here.  Set IMG's background_transparent field.
20225         (enum xpm_keyword_index): Add XPM_BACKGROUND.
20226         (enum png_keyword_index): Add PNG_BACKGROUND.
20227         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20228         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20229         (enum gif_keyword_index): Add GIF_BACKGROUND.
20230         (enum gs_keyword_index): Add GS_BACKGROUND.
20231         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
20232         Pre-calculate image background color where necessary.
20233         (x_create_x_image_and_pixmap, xbm_load, gs_load):
20234         Use display info's n_cbits entry for screen depth.
20235         (Fx_show_tip): Remove unused variables `buffer', `top',
20236         `left', `max_width' and `max_height'.
20238         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
20240 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
20242         * puresize.h (BASE_PURESIZE): Increase to 750000.
20244 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20246         * frame.c (Fframe_live_p): Doc fix.
20248 2001-11-18  Richard M. Stallman  <rms@gnu.org>
20250         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
20251         (message_dolog_marker3): New static variables hold three markers.
20252         (syms_of_xdisp): Initialize and staticpro them.
20253         (message_dolog): Use message_dolog_marker1..3 instead of
20254         allocating markers each time.  Unchain them when done.
20256 2001-11-17  Richard M. Stallman  <rms@gnu.org>
20258         * doc.c (Fsnarf_documentation): Doc fix.
20260 2001-11-17  Andreas Schwab  <schwab@suse.de>
20262         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
20264 2001-11-17  Richard M. Stallman  <rms@gnu.org>
20266         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
20268 2001-11-17  Jason Rumney  <jasonr@gnu.org>
20270         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
20272 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
20274         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
20275         with invalid position.
20277 2001-11-16  Richard M. Stallman  <rms@gnu.org>
20279         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
20281         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
20282         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
20283         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
20285         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
20287 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
20289         * fileio.c (build_annotations): Split off the tail.
20290         (build_annotations_2): New fun.  Extracted from build_annotations.
20291         (Fwrite_region): Split the call to build_annotations into two
20292         calls to build_annotations and build_annotations_2.
20294 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20296         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
20297         clear_waiting_for_input with argument.
20299         * xterm.h (x_update_cursor): Remove duplicated prototype.
20301         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
20303         * xterm.c (waiting_for_input): Remove unnecessary declaration.
20305         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
20307 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
20309         * fileio.c (choose_write_coding_system): New fun, extracted
20310         from Fwrite_region.
20311         (Fwrite_region): Use it.
20313         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
20314         (funcall_lambda, run_hook_with_args): Make static and add prototype.
20315         (ml_apply, find_handler_clause): Add prototype.
20317 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
20319         * config.in: Add #undef HAVE_COFF_H.
20321         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
20322         Required for ISC 4.1.
20324 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
20326         * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
20327         Andrew Wiseman <a.wiseman@btclick.com>.
20329 2001-11-16  Kim F. Storm  <storm@cua.dk>
20331         The following changes are made to clean up the various internal
20332         references to the fringes to actually use the term `fringe' for
20333         them.  Previously, they were called `flags areas', `bitmap areas',
20334         `left/right side of windows', or implicitly as `flags' or
20335         `bitmaps':
20337         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
20338         Comments fixed.  Use renamed symbols.
20340         * dispnew.c: Comment fix.  Use renamed symbols.
20342         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
20343         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
20344         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
20346         * msdos.c: Comment fix.
20348         * w32fns.c: Use renamed symbols.
20350         * w32term.c: Comment fixes.  Use renamed symbols.
20351         (fringe_bitmap_type): Renamed from bitmap_type.
20352         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20353         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
20354         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
20356         * w32term.h: Comment fixes.  Use renamed symbols.
20357         (fringes_extra): Renamed from flags_areas_extra.
20358         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20359         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20360         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20361         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20362         (FRAME_X_LEFT_FRINGE_WIDTH):
20363         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20364         (FRAME_X_RIGHT_FRINGE_WIDTH):
20365         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20367         * widget.c: Use renamed symbols.
20369         * window.c: Comment fixes.  Use renamed symbols.
20370         (coordinates-in-window-p): Doc fix.
20372         * xdisp.c: Comment fixes.  Use renamed symbols.
20374         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
20376         * xfns.c: Use renamed symbols.
20378         * xterm.c: Comment fixes.  Use renamed symbols.
20379         (fringe_bitmap_type): Renamed from bitmap_type.
20380         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20381         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
20382         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
20384         * xterm.h: Comment fixes.  Use renamed symbols.
20385         (fringes_extra): Renamed from flags_areas_extra.
20386         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20387         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20388         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20389         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20390         (FRAME_X_LEFT_FRINGE_WIDTH):
20391         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20392         (FRAME_X_RIGHT_FRINGE_WIDTH):
20393         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20395 2001-11-15  Jason Rumney  <jasonr@gnu.org>
20397         * w32menu.c (add-menu-item): Make help_echo and radio buttons
20398         work for most menu items.  From David Ponce
20399         <david.ponce@wanadoo.fr>.
20401 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
20403         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
20404         Some x_set_* function expect to be called even if old and new
20405         value are equal.
20407         * xdisp.c (build_desired_tool_bar_string): Accept zero
20408         tool_bar_button_relief.
20410         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
20412         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
20414         * xterm.c (x_draw_bar_cursor): If the background color of the
20415         glyph under the cursor equals the frame's cursor color, use
20416         the glyph's foreground color for drawing the bar cursor.
20418         * dispnew.c (direct_output_forward_char): Fix character/byte
20419         position comparison.
20421 2001-11-15  Miles Bader  <miles@gnu.org>
20423         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
20424         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
20425         Update arguments to find_field.
20426         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
20427         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
20428         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
20429         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
20431 2001-11-14  Richard M. Stallman  <rms@gnu.org>
20433         * editfns.c (Fpropertize): Allow call with 1 arg.
20435         * dispextern.h (image_background, image_background_transparent):
20436         Conditionalize on HAVE_X_WINDOWS.
20438 2001-11-13  Richard M. Stallman  <rms@gnu.org>
20440         * print.c (Fprin1_to_string): Doc fix.
20442         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
20444         * floatfns.c (Fceiling, Ffloor): Doc fixes.
20446         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
20448         * fileio.c (Ffile_accessible_directory_p): Doc fix.
20450         * eval.c (syms_of_eval): Doc fix.
20452         * coding.c (syms_of_coding): Doc fix.
20454         * doc.c (Fsnarf_documentation): Doc fix.
20456         * dispnew.c (syms_of_display): Doc fix.
20458         * category.c (Fget_unused_category): Doc fix.
20460         * buffer.c (syms_of_buffer): Doc fixes.
20462 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
20464         * print.c (prin1, print): Doc fix.
20466 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20468         * fontset.h: Remove declarations of variables
20469         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
20471         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
20472         `Vclip_large_size_font'.
20474 2001-11-13  Jason Rumney  <jasonr@gnu.org>
20476         * w32fns.c: Doc fix.
20478 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20480         * xfaces.c (Fface_attributes_as_vector): Doc fix.
20482         * fns.c: Doc fix.
20484         * emacs.c: Doc fix.
20486         * coding.c: Doc fix.
20488         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
20489         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
20490         `new style' [w/`doc:' keyword].
20492 2001-11-12  Richard M. Stallman  <rms@gnu.org>
20494         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
20495         LeaveNotify events.  Only FocusIn and FocusOut do that now.
20496         (x_display_and_set_cursor): Do display hollow cursors in active
20497         minibuffer windows when they are not selected.
20499 2001-11-12  Jason Rumney  <jasonr@gnu.org>
20501         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
20502         * w32term.c: Change doc-string comments to `new style'
20503         [w/`doc:' keyword].  Doc fixes.
20505         * w32fns.c: Don't define max.
20506         (Fx_open_connection): Only execute once.
20508 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20510         * ccl.c: Change macros to use do-while block instead of if-else.
20511         Use braces to follow GNU Coding Standards.
20513 2001-11-11  Richard M. Stallman  <rms@gnu.org>
20515         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
20517         * lread.c (read_escape): Use end_of_file_error for reporting eof.
20519         * insdel.c (replace_range): Use adjust_markers_for_replace
20520         instead of adjust_markers_for_delete and adjust_markers_for_insert.
20522         * intervals.h (set_text_properties, set_text_properties_1): Declare.
20524         * textprop.c (set_text_properties_1): New subroutine
20525         broken out of set_text_properties.
20526         (set_text_properties): Use set_text_properties_1.
20528         * intervals.c (graft_intervals_into_buffer):
20529         Use set_text_properties_1 to clear out properties.
20531         * search.c (Freplace_match): Use replace_range to insert
20532         and delete.  Don't request property inheritance from
20533         surrounding text.
20535 2001-11-10  Jason Rumney  <jasonr@gnu.org>
20537         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
20538         vertical fonts.  Allow them if face name is explicitly specified.
20539         Do not give up if we find a font that cannot be converted to an xlfd.
20541 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
20543         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
20544         instead of malloc/free.
20546 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20548         * xfaces.c (merge_face_vectors): Use braces to follow GNU
20549         Coding Standards.
20550         (Finternal_set_lisp_face_attribute): Likewise.
20552         * buffer.c (Fbury_buffer): Likewise.
20554         * indent.c (current_column_1): Remove unused variable `prev_col'.
20556         * coding.c (encode_coding): Use precomputed value of `src'.
20557         (encode_coding): Remove unused variable `src_end'.
20558         (code_convert_region): Remove unused variables `count'.
20560 2001-11-07  Jason Rumney  <jasonr@gnu.org>
20562         * w32term.c (x_display_and_set_cursor): Do not move system caret
20563         if cursor_glyph is NULL.
20565 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20567         * keymap.c (access_keymap): Fix compilation error.
20569 2001-11-07  Miles Bader  <miles@gnu.org>
20571         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
20573 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20575         * intervals.c (graft_intervals_into_buffer):
20576         Remove #ifdef'd-out code.
20577         (graft_intervals_into_buffer): Remove unused variable `middle'.
20579         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
20580         code (eval-current-buffer).
20581         Change doc-string comments to `new style' [w/`doc:' keyword].
20583 2001-11-06  Richard M. Stallman  <rms@gnu.org>
20585         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
20587 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
20589         * lread.c (read1): Fix behavior with nested backquoting.
20591         * keyboard.c (make_lispy_event): Check integerness and fix
20592         Lisp_Object/int mixup.
20594 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20596         * fns.c (copy_hash_table): Remove unused variable `v'.
20598         * fontset.c (fontset_font_pattern): Remove unused variable
20599         `family_registry'.
20601         * indent.c (current_column_1): Remove unused variable `prev_col'.
20603 2001-11-05  Richard M. Stallman  <rms@gnu.org>
20605         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
20607         * buffer.c (Fkill_buffer): Don't delete auto save file
20608         if buffer is modified.
20610 2001-11-05  Andrew Innes  <andrewi@gnu.org>
20612         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
20613         CHECK_NUMBER_CDR.
20615 2001-11-05  Richard M. Stallman  <rms@gnu.org>
20617         * unexelf.c (unexec): Minor changes; clean up comments.
20619 2001-11-05  Sam Steingold  <sds@gnu.org>
20621         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
20623 2001-11-05  Andreas Schwab  <schwab@suse.de>
20625         * sound.c (sound_perror): Save errno from being clobbered.
20627 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
20629         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
20630         the program image directly.
20632 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20634         * buffer.h (Fbuffer_local_value): Add prototype.
20636 2001-11-04  Richard M. Stallman  <rms@gnu.org>
20638         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
20639         and CHECK_BUFFER.
20641         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
20642         (record_char): Likewise.
20644         * keyboard.c (make_lispy_event): Don't insist a drag event must
20645         move to a different buffer position.  Instead, check for moving at
20646         least double_click_fuzz.
20648         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
20650         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
20652         * indent.c (current_column_1, Fmove_to_column): Separate the code
20653         for display-table glyphs from the code for buffer text, to fix
20654         bugs in the former.
20656 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
20658         * buffer.c (Fbuffer_local_value): New function.
20659         (syms_of_buffer): Defsubr it.
20661         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
20662         value of `cursor-in-non-selected-windows'.
20664         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
20665         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
20666         (syms_of_xdisp): Initialize it.
20668 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20670         * xfns.c (Fx_create_frame): Doc fix.
20672         * coding.c: Change doc-string comments to `new style' [w/`doc:'
20673         keyword].
20675         * eval.c (top_level_value, top_level_set): Remove commented and
20676         #ifdef'd-out code.
20677         (Fdefvar): Fix usage in doc-string.
20679 2001-11-03  Richard M. Stallman  <rms@gnu.org>
20681         * xfns.c: Include unistd.h, if it exists.
20683         * editfns.c: Move the include of ctype.h after unistd.h.
20685         * gmalloc.c: Test BROKEN_PROTOTYPES.
20687 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
20689         * lisp.h (CHECK_STRING_CAR): New macro.
20690         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
20691         treating XCAR and XCDR as lvalues.
20692         (openp): Use CHECK_STRING_CAR.
20693         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
20695 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
20697         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
20698         (SIGMASKTYPE): Define.
20700         * syssignal.h (sigunblock): Don't define if already defined.
20702 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20704         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
20705         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
20706         Fix typos in comments.
20708         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
20709         and #ifdef'd-out code.
20710         Fix and reindent comments.
20712         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
20714         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
20715         argument `i' in macros.
20717         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
20718         `i' in macros.
20720         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
20721         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
20722         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
20723         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
20724         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
20725         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
20726         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
20727         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
20728         in macros.
20730         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20731         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
20732         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
20733         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
20734         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
20735         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
20736         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
20737         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
20738         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
20739         (remove unused second argument).
20741 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
20743         * syntax.c (describe_syntax): New wrapper.
20744         (Finternal_describe_syntax_value): Rename from describe_syntax.
20745         Don't insert space at front and \n at the end.
20746         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
20748         * regex.c (re_wctype): Try to fix some warnings.
20749         (regcomp, regexec): Don't forget the __restrict.
20751 2001-11-02  Richard M. Stallman  <rms@gnu.org>
20753         * textprop.c (Fget_char_property): Doc fix.
20755 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20757         * process.c (Fstart_process): Add usage to doc-string.
20759         * data.c (Fsetq_default): Ditto.
20761         * callint.c (Finteractive): Ditto.
20763 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
20765         * macros.c: Don't include keymap.h any more.
20767 2001-11-01  Richard M. Stallman  <rms@gnu.org>
20769         * data.c (Fmake_local_variable): Doc fix.
20771         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
20772         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
20774         * keymap.c (Fdescribe_buffer_bindings): Print character property
20775         bindings along with or instead of the buffer local map.
20776         Make the overriding maps override what they should.
20778 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20780         * window.c (grow_mini_window): Fix typo in comment.
20782 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
20784         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
20785         (XTset_vertical_scroll_bar): Likewise.
20787         * xfns.c (x_build_heuristic_mask): Use four_corners_best
20788         instead of IMAGE_BACKGROUND.
20790         * xfns.c (four_corners_best): Reindent.
20792         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
20793         Handle :box so that it is possible to specify sexprs.
20795 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
20797         * s/hpux11.h: New file.
20799 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20801         * emacs.c (USAGE1): Show command line option --no-window-system
20802         instead of --no-windows in usage.
20803         (standard_args): Rename --no-windows to --no-window-system.
20804         (bug_reporting_address): Follow Emacs coding conventions.
20806         * eval.c (Fcommandp): Doc fix.
20807         Change doc-string comments to `new style' [w/`doc:' keyword].
20809         * frame.c (Fframe_live_p): Doc fix.
20811         * buffer.c (selective-display-ellipses): Doc fix.
20813 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
20815         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
20817         * xfaces.c (realize_x_face): If C is not a single-byte character,
20818         set the face's colors_copied_bitwise_p instead of the defaulted_p
20819         members which have a different meaning.
20820         (free_face_colors): Do nothing for a face whose colors have been
20821         copied bitwise.
20823         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
20825 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20827         * marker.c, mocklisp.c: Change doc-string comments to `new style'
20828         [w/`doc:' keyword].
20830 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
20832         * fns.c (require_unwind): Return Lisp_Object.
20834 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20836         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
20837         (last-input-char): Revert doc-string to be the same as the
20838         doc-string of `last-input-event'.
20840         * xdisp.c: Fix typos in comments.
20842 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
20844         * window.c (grow_mini_window): Handle case that the root
20845         window is already smaller than the nominal mininum height.
20847 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
20849         * emacs.c (main): Don't call keys_of_macros any more.
20851         * lisp.h (keys_of_macros): Remove.
20853         * macros.c (keys_of_macros): Remove.
20855         * xfaces.c (Fface_attribute_relative_p): Declare args.
20857 2001-10-30  Jason Rumney  <jasonr@gnu.org>
20859         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
20860         (enum_font_cb2): Ignore fonts with vertical orientation.
20862 2001-10-30  Richard M. Stallman  <rms@gnu.org>
20864         * keyboard.c (Finput_pending_p): Doc fix.
20866 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
20868         * xterm.c (x_after_update_window_line): Don't run the code
20869         clearing in borders for rows whose visible height is 0.
20871         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
20872         resized_p flag is set.  If not set, use the much less flickering
20873         method previously used.
20875         * dispnew.c (change_frame_size_1): Set frame's resized_p.
20877         * frame.h (struct frame) <resized_p>: New member.
20879         * lread.c (to_multibyte): Ensure read_buffer is at least twice
20880         as large as the number of bytes to convert.
20882         * lread.c (to_multibyte): New function.
20883         (read1): Use it.
20885 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
20887         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
20889 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
20891         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
20892         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
20893         if the row's fill_line_p is set and drawing the last glyph with
20894         DRAW_IMAGE_{RAISED,SUNKEN}.
20896         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
20898 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
20900         * xmenu.c: Include coding.h and charset.h.
20901         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
20902         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
20903         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
20904         Explicitly set wv->help.  Use `TRUE' rather than `True'.
20905         (menu_help_callback): Use empty_string.
20907         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
20908         (Fx_popup_dialog): Explicitly init f.
20909         (w32_menu_display_help): Use empty_string.
20911 2001-10-29  Richard M. Stallman  <rms@gnu.org>
20913         * fns.c (Frequire): Detect recursive try to require the same
20914         feature 3 or more levels deep, and get error.
20915         (require_unwind): New subroutine.
20916         (require_nesting_list): New variable.
20917         (syms_of_fns): Init and staticpro it.
20919         * print.c (print_object): Clarify indication of insertion type.
20921 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
20923         * coding.c (syms_of_coding): Document that locale-coding-system is
20924         used for decoding input on X.
20926         * window.c (Fscroll_left, Fscroll_right): Doc fix.
20928 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20930         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
20931         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
20933 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
20935         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
20936         use NO_CURSOR if cursor_in_non_selected_windows is false.
20938         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
20939         the slant attribute if FRAME is t.
20941         * xfns.c (x_set_internal_border_width): Set frame garbaged
20942         when X window doesn't exist yet.
20944         * xterm.c (x_after_update_window_line): Clear internal border
20945         in different circumstances.
20947         * xterm.c (XTread_socket) <KeyPress>: Don't use
20948         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
20949         <handa@etl.go.jp>.
20951 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
20953         * m/ibms390.h: New file.  From Adam Thornton
20954         <athornton@sinenomine.net>.
20956 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
20958         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
20960         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
20961         a loop counter.
20963 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20965         * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
20967         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
20968         keyword].
20969         Fix typos in comments.
20971         * emacs.c (bug_reporting_address): New function.
20972         Use it when displaying usage message.
20974         * minibuf.c (read_minibuf): Remove unused external declaration of
20975         variable `Qread_only'.
20977         * keymap.c (access_keymap): Remove unused variable `charset'.
20979 2001-10-28  Miles Bader  <miles@gnu.org>
20981         * xfaces.c (merge_face_heights): Handle TO being relative as well.
20982         Remove #ifdef'd-out code.
20983         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
20984         (syms_of_xfaces): Initialize them.
20986 2001-10-27  Jason Rumney  <jasonr@gnu.org>
20988         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
20989         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
20990         position using the system caret.
20992         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
20993         (w32_system_caret_height, w32_system_caret_x)
20994         (w32_system_caret_y): New variables for tracking system caret.
20995         (w32_initialize): Initialize them.
20996         (x_display_and_set_cursor): Make system caret follow the active cursor.
20998         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
20999         New messages types.
21001         * w32term.c (note_mouse_highlight): Clear old help_echo.
21003 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21005         * xterm.c: Fix typo in a comment.
21007         * emacs.c: Fix typos in comments.
21008         Remove unnecessary spaces.
21009         Change doc-string comments to `new style' [w/`doc:' keyword].
21010         (USAGE2): Fix typos in usage string.
21012         * xterm.c: Fix typo in a comment.
21014         * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
21015         emacs.c.
21017 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
21019         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
21020         instead of 1/2 line_height in the heuristic for skipping
21021         farther backward when target_y was not reached.
21023         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
21024         Display errno only if non-zero.
21025         (sound_warning): New function.
21026         (vox_configure): Don't treat failing to set sample rate as error.
21027         (various places): Improve error messages.
21029 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
21031         * fileio.c (Faccess_file): Run the argument filename through
21032         Fexpand_file_name, before using it.
21034         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
21035         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
21037 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
21039         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
21041         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21042         Fix clearing in the case of scroll bars on the right.
21044 2001-10-26  Juanma Barranquero  <lektu@terra.es>
21046         * w32gui.h (XImage): Add a dummy typedef.
21048 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
21050         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
21052 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
21054         * frame.c (Fframe_parameter): Fix last change.
21056         * fileio.c: Revert last change (which removed old commented-out
21057         version of expand-file-name).  Add a comment that explains why
21058         this old version should not be removed.
21060 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
21062         * frame.c (Fframe_parameter): Fix a bug whereby some
21063         ``artificial'' frame parameters, like `minibuffer' were not
21064         obtained by calling Fframe_parameters.
21066         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
21067         cursor differently.
21069         * xdisp.c (move_it_vertically_backward): Compute line height
21070         differently.  Add heuristic to try to be more compatible to 20.x.
21072 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
21074         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
21076         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
21077         boolean.
21079 2001-10-25  Miles Bader  <miles@gnu.org>
21081         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
21082         BG is a pointer to a structure, not a structure.
21083         (gif_format, png_format): Add missing commas.
21085 2001-10-24  Richard M. Stallman  <rms@gnu.org>
21087         * xfaces.c (Fface_attributes_as_vector): New function.
21088         (syms_of_xfaces): Defsubr it.
21090 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21092         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21093         variable `area'.
21095 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21097         * search.c (scan_newline): Remove unused variable `selective_display'.
21099 2001-10-25  Miles Bader  <miles@gnu.org>
21101         * dispextern.h (struct image): Add `background',
21102         `background_valid', and `background_transparent' fields.
21103         (image_background, image_background_transparent): New declarations.
21104         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
21105         * xfns.c (image_background, image_background_transparent)
21106         (four_corners_best): New functions.
21107         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
21108         (gs_format): Add `:background' entry.
21109         (lookup_image): Set IMG's background color if specified.
21110         (pbm_load, xbm_load_image, png_load): Set IMG's background field
21111         when appropriate.
21112         (x_clear_image_1): Reset `background_valid' and
21113         `background_transparent_valid' fields.
21114         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21115         calculating it here.  Set IMG's background_transparent field.
21116         (enum xpm_keyword_index): Add XPM_BACKGROUND.
21117         (enum png_keyword_index): Add PNG_BACKGROUND.
21118         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21119         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21120         (enum gif_keyword_index): Add GIF_BACKGROUND.
21121         (enum gs_keyword_index): Add GS_BACKGROUND.
21122         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
21123         Pre-calculate image background color where necessary.
21124         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21125         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21126         color to use for image glyph reliefs.
21128 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
21130         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
21131         in full-width rows.
21133         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21134         Fix clearing of area not covered by scroll bar.
21136 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21138         * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
21139         and `real_start'.
21140         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
21141         (glyph_rect): Remove unused variable `area'.
21143 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
21145         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
21147         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
21148         (row_containing_pos): Take additional argument DY.
21149         Treat rows ending in middle of char differently.
21150         (display_line): Handle tabs on window systems differently.
21152         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
21153         with additional argument.
21155         * dispextern.h (row_containing_pos): Adjust prototype.
21157         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
21158         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
21159         (try_window_id, try_window_reusing_current_matrix)
21160         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
21161         (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
21163 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21165         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
21166         gnuemacs).
21167         (HAVE_BOXES): Fix typo in comment.
21168         (push_menu_pane): Fix typo in comment.
21170         * xdisp.c (display_prop_string_p): Remove unused local declaration
21171         of `Qwhen'.
21172         (single_display_prop_string_p): Remove unused local declarations
21173         of `Qwhen' and `Qmargin'.
21174         (string_buffer_position): Remove unused variable `around'.
21175         (store_frame_title): Remove unused variable `width'.
21177         * window.c: Don't define max.
21178         (coordinates_in_window): Remove unused variable `uy'.
21180         * widget.c: Don't define max.
21182         * process.c: Don't define max.
21183         (create_process): Remove unused variable `buffer'.
21185 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21187         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
21189 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
21191         * xfaces.c (Finternal_set_lisp_face_attribute)
21192         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
21193         frame is on a windowed display.
21195 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21197         * dispnew.c (sync_window_with_frame_matrix_rows):
21198         Fix handling of windows which aren't full-width, fix handling
21199         of marginal areas.
21201         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
21203 2001-10-23  Andreas Schwab  <schwab@suse.de>
21205         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
21206         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
21208 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21210         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
21211         REAL_END.  Notice if cursor gets overwritten.
21212         (notice_overwritten_cursor): Take X positions as parameters.
21213         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21214         around call to x_draw_glyphs.
21216 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21218         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
21219         instead of C) and usage.
21221         * editfns.c (char-to-string): Fix argument names (use CHAR instead
21222         of C) and usage.
21224         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
21225         `left', `max_width' and `max_height'.
21227 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21229         * xdisp.c (display_line): For a tab continued to the next line,
21230         set row's ends_in_middle_of_char_p.
21232 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
21234         * xdisp.c (display_line): Fix computation of continuation lines
21235         width for TABs.
21237 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21239         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
21240         `Qlaplace'.
21242         * fileio.c: Remove unused code.
21244 2001-10-22  Miles Bader  <miles@gnu.org>
21246         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
21247         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
21248         Remove `DOC_STRINGS_IN_COMMENTS' cases.
21250 2001-10-21  Jason Rumney  <jasonr@gnu.org>
21252         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
21254 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
21256         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21257         (Finsert_string): Avoid the multi-line string literals warning.
21259 2001-10-22  Miles Bader  <miles@gnu.org>
21261         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
21262         (Fdocumentation): Don't use it.
21263         (syms_of_doc): Don't initialize it.
21265         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
21266         * print.c (Fwith_output_to_temp_buffer): Likewise.
21267         * window.c (Fsave_window_excursion): Likewise.
21268         * editfns.c (Fsave_excursion, Fsave_current_buffer)
21269         (Fsave_restriction): Likewise.
21270         * eval.c (Frun_hooks, Frun_hook_with_args)
21271         (Frun_hook_with_args_until_failure)
21272         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
21273         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
21274         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
21275         (Funwind_protect, Fcondition_case): Likewise.
21276         * coding.c (Ffind_operation_coding_system): Likewise.
21277         * keyboard.c (Ftrack_mouse): Likewise.
21279 2001-10-21  Miles Bader  <miles@gnu.org>
21281         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
21282         (Fmake_hash_table): Add usage: string to doc string.
21283         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
21284         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
21285         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
21286         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
21287         (Fml_prefix_argument_loop): Likewise.
21289 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21291         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
21293         * sysdep.c (init_sys_modes): Change doc-string comments to `new
21294         style' [w/`doc:' keyword].
21296         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
21297         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
21298         comments to `new style' [w/`doc:' keyword].
21300 2001-10-21  Jason Rumney  <jasonr@gnu.org>
21302         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
21304         * w32term.c (remember_mouse_glyph): New function.
21305         (w32_mouse_position): Use it.
21306         (note_mouse_movement): If the mouse moved off the glyph, remember
21307         its new position.
21309         * w32term.h (struct w32_output): Correct spelling of x_compatible.
21310         (w32_display_info): Add mouse_face_overlay.
21312         * w32term.c (notice_overwritten_cursor): Renamed from
21313         note_overwritten_text_cursor.  Rewritten to take glyph widths into
21314         account.
21315         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
21316         (fast_find_string_pos): New function.
21317         (fast_find_position): Return the correct vpos.  Add parameter
21318         STOP.  In the final row, stop before glyphs having STOP as object.
21319         Don't consider glyphs that are not from a buffer.
21320         (fast_find_position) [0]: Add a presumably more correct version
21321         for after 21.1.
21322         (expose_window_tree, expose_frame): Don't compute intersections here.
21323         (expose_window): Do it here instead.
21324         (expose_window_tree, expose_window, expose_line): Return 1 when
21325         overwriting mouse-face.
21326         (expose_window): If W is the window currently being updated, mark
21327         the frame garbaged.
21328         (expose_frame): If mouse-face was overwritten, redo it.
21329         (x_use_underline_position_properties): New variable.
21330         (syms_of_xterm): DEFVAR_BOOL it.
21331         (x_draw_glyph_string): Add comment to use it in future.
21332         (x_draw_glyph_string): Restore clipping after drawing box.
21333         Fix a computation of the underline position.
21334         (w32_get_glyph_string_clip_rect): Minor cleanup.
21335         (x_fill_stretch_glyph_string): Remove an assertion.
21336         (x_produce_glyphs): Don't convert multibyte characters
21337         to unibyte characters in unibyte buffers.
21338         (cursor_in_mouse_face_p): New function.
21339         (x_draw_stretch_glyph_string): Use it to choose a different GC
21340         when drawing a cursor within highlighted text.  Don't draw
21341         background again if it has already been drawn.
21342         (x_draw_glyph_string_box): Don't draw a full-width
21343         box just because the glyph row's full_width_p flag is set.
21344         (x_draw_glyphs): Fix computation of rightmost x for
21345         full-width rows.
21346         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
21347         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
21348         change bottom shadow accordingly.  Some cleanup.
21349         (x_update_window_end): Handle overwritten mouse face
21350         also for tool bar windows.
21351         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
21352         DRAW is DRAW_IMAGE_RAISED.
21353         (clear_mouse_face): Return 1 if text with mouse face was
21354         actually redrawn.  Make the function static.
21355         Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
21356         optimize away highlighting if we pass over that same overlay again.
21357         (note_mouse_highlight): Call mouse_face_overlay_overlaps
21358         to detect a case where we have to highlight a different region
21359         despite not having left the currently highlighted region.
21360         Set mouse_face_overlay in the x_display_info.  Avoid changing the
21361         mouse pointer shape when show_mouse_face has already done it, or
21362         there is no need.  Handle mouse-face and help-echo in strings.
21363         (glyph_rect): New function.
21364         (w32_mouse_position): Use it to raise the threshold for mouse
21365         movement event generation.
21366         (w32_initialize_display_info): Initialize the x_display_info's
21367         mouse_face_overlay.
21368         (w32_set_vertical_scroll_bar): Don't clear a zero height
21369         or width area.
21370         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
21371         a widget to zero height.
21373         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
21374         Protect unibyte strings created by replacing their multibyte
21375         equivalents in menu_items.
21376         (w32_menu_show): Don't overwrite an item's name with its key
21377         description in case the description is a multibyte string.
21378         (single_submenu): Some cleanup.
21380         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
21381         (postprocess_image): New function.
21382         (lookup_image): Call it for all image types except PostScript.
21383         (x_kill_gs_process): Call postprocess_image.
21384         (tiff_error_handler, tiff_warning_handler): New functions.
21385         (tiff_load): Install them as handlers.
21386         (x_kill_gs_process): Recognize if someone has cleared the image
21387         cache under us.
21388         (valid_image_p): Protect better against invalid image
21389         specifications.  Previous code could signal an error.
21390         (Fx_hide_tip, Fshow_tip): Doc fix.
21391         (Fv_max_tooltip_size): New variable.
21392         (syns_of_xfns): DEFVAR_LISP it.
21393         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
21394         window buffer to *tip* right after creating the frame.  Set frame's
21395         window_width.  Use a maximum tooltip size specified by
21396         Vx_max_tooltip_size, if that has valid contents.
21397         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
21398         Make sure the tooltip is completely visible.
21399         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
21400         (Fx_create_frame): Adjust the frame's height for presence
21401         of the tool bar before calling x_figure_window_size.
21402         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
21403         when the window gets smaller.
21404         (x_set_foreground_color): Set frame's cursor_pixel.
21405         (x_set_foreground_color, x_set_background_color): Cleaned up.
21406         (x_set_font): Handle case of x_new_fontset returning the same name
21407         as before, although there was a change in fontsets.
21409 2001-10-21  Miles Bader  <miles@gnu.org>
21411         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
21412         (Flogxor): Add usage: string to doc string.
21413         * charset.c (Fstring): Likewise.
21414         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
21415         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
21417 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21419         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
21421         * alloc.c: Reindent DEFUNs with doc: keywords.
21423         * abbrev.c (Finsert_abbrev_table_description): Reindent.
21425         * frame.c: Change doc-string comments to `new style' [w/`doc:'
21426         keyword].
21428 See ChangeLog.9 for earlier changes.
21430 ;; Local Variables:
21431 ;; coding: iso-2022-7bit
21432 ;; End:
21434     Copyright (C) 2001, 2002 Free Software Foundation, Inc.
21435   Copying and distribution of this file, with or without modification,
21436   are permitted provided the copyright notice and this notice are preserved.
21438 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4