(flymake-float-time): Instead of with-no-warnings, test for xemacs.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dd15724d
YM
12005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macterm.c (mac_draw_vertical_window_border): Use foreground of
4 VERTICAL_BORDER_FACE_ID for vertical border line.
5 (mac_encode_char): Call check_ccl_update in advance.
6 (mac_to_x_fontname, x_font_name_to_mac_font_name)
7 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont): Don't
8 assume that font family length is less than 32.
9 (x_compute_min_glyph_bounds): Make static.
10 (x_load_font): Never set fonts_changed_p to zero.
11
68003d6b
LK
122005-07-04 Lute Kamstra <lute@gnu.org>
13
14 Update FSF's address in GPL notices.
15
3d393029
RS
162005-07-03 Richard M. Stallman <rms@gnu.org>
17
18 * xdisp.c (try_window): Fix previous change in how it handles
19 a partially-visible line or one only partly past the margin.
20
21 * window.c (window_scroll_pixel_based): Take account
22 of this_scroll_margin when finding point when scrolling up.
23
242005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
25
26 * window.c (window_scroll_pixel_based, window_scroll_line_based):
27 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
28 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
29
d6951bb4
EZ
302005-07-02 Juri Linkov <juri@jurta.org>
31
32 * w32term.c (w32_draw_vertical_window_border): Use foreground of
33 VERTICAL_BORDER_FACE_ID for vertical border line.
34
b016179b
EZ
352005-07-02 Eli Zaretskii <eliz@gnu.org>
36
37 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
38 fchmod so that chmod doesn't get called on MSDOS before the file
39 is closed.
40
c2baa2b6
JR
412005-07-01 Jason Rumney <jasonr@gnu.org>
42
43 * w32term.c (cleartype_active): New flag for enabling sub-pixel
44 workaround.
45 (w32_initialize): Initialize it.
46 (w32_native_per_char_metric): Allow a couple of extra pixels when
47 Cleartype is active.
48
49 * w32term.c (w32_initialize): Move check for screen reader here
50 from syms_of_w32term.
51
a6d0ae55
JD
522005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
53
54 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
55 is not zero.
56
711877f3
MY
572005-07-01 Masatake YAMATO <jet@gyve.org>
58
59 * emacs.c (main): Passing ADD_NO_RANDOMIZE to
60 `personality'.
61
63f7ffb3
JL
622005-06-30 Juri Linkov <juri@jurta.org>
63
64 * xdisp.c (x_draw_vertical_border): If left fringe is not present
65 decrease x coord of vertical border by 1 pixel to not occupy text
66 area of the right window.
67
68 * xterm.c (x_draw_vertical_window_border): Use foreground of
69 VERTICAL_BORDER_FACE_ID for vertical border line.
70
71 * term.c (turn_on_face): In standout mode apply specified
72 fg to bg, and specified bg to fg (this makes the logic of
73 inversion on terminal consistent with X).
74
b26860ad
JB
752005-06-29 Juanma Barranquero <lekktu@gmail.com>
76
77 * eval.c (user_variable_p_eh): New function.
78 (Fuser_variable_p): Use it. Clarify docstring.
79 Return t for aliases of user options, nil for alias loops.
80
3a1f1d79
RS
812005-06-27 Richard M. Stallman <rms@gnu.org>
82
83 * eval.c (Fdefvar): Improve error message.
84
92de1e01
YM
852005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
86
87 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
88 change.
89
69410484
JB
902005-06-27 Juanma Barranquero <lekktu@gmail.com>
91
92 * eval.c (Fdefvar): Don't try to set constant symbols.
93
09352e8f
RS
942005-06-25 Richard M. Stallman <rms@gnu.org>
95
a68d870b
RS
96 * macfns.c (Fx_show_tip): Pass new arg to try_window.
97
98 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
99
100 * xfns.c (Fx_show_tip): Pass new arg to try_window.
101
102 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
103 (redisplay_window): Handle try_window reporting point in scroll margin.
104
105 * dispextern.h (try_window): Declare new arg.
106
107 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
108 Use fchmod to copy the file modes.
109 (Frename_file): Don't copy UID and GID here;
110 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
111
df13531d
RS
112 * eval.c (call_debugger): Take full care of extending stack limits
113 to make space for the debugger, and restore the change afterward.
114 Bind debug-on-error to nil.
115 (restore_stack_limits): New subroutine.
116 (Fsignal): Extend specpdl bound along with eval depth bound,
117 for calling edebug. Don't do either one, for calling debugger.
118 (find_handler_clause): Don't bind debug-on-error here.
119 Don't unbind anything either.
120 Temporarily advance max_specpdl_size for calling
121 internal_with_output_to_temp_buffer.
122 (grow_specpdl): Don't alter max_specpdl_size before signaling
123 an error.
124 (syms_of_eval) <max-specpdl-size>: Doc fix.
125
09352e8f
RS
126 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
127
90296dd3
EZ
1282005-06-24 Eli Zaretskii <eliz@gnu.org>
129
130 * fileio.c (Frename_file): Undo last change: no need to ifdef away
131 chown on DOS_NT platforms.
132
133 * w32.c (sys_chown): New function.
134
135 * s/ms-w32.h (chown): New; define to sys_chown.
136
c4f6ca24
JB
1372005-06-24 Juanma Barranquero <lekktu@gmail.com>
138
3338c0ad
JB
139 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
140 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
141
9a1505e9 142 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 143
528b6abc
RS
1442005-06-23 Richard M. Stallman <rms@gnu.org>
145
146 * xdisp.c (get_next_display_element): Finish reversing the tests of
147 Vnobreak_char_display.
148
9a1505e9 149 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 150 All uses changed.
9a1505e9 151 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
152 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
153
154 * fileio.c (Frename_file): Preserve owner and group, if possible,
155 when copying.
156
1d1c7e75
JB
1572005-06-23 Juanma Barranquero <lekktu@gmail.com>
158
253b2298
JB
159 * abbrev.c (Funexpand_abbrev):
160 * category.c (Fmake_category_set):
161 * dispnew.c (Fsleep_for, Fsit_for):
162 * editfns.c (Fsubst_char_in_region):
163 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
164 * frame.c (make_frame_without_minibuffer):
165 * lread.c (read_vector):
166 * macfns.c (check_x_frame):
167 * process.c (Fstop_process, Fcontinue_process):
168 * search.c (Freplace_match):
169 * syntax.c (Fstring_to_syntax):
170 * w32fns.c (check_x_frame, check_x_display_info):
171 * xfaces.c (x_supports_face_attributes_p):
172 * xselect.c (Fx_own_selection_internal): Follow error conventions.
173
1d1c7e75
JB
174 * image.c (fn_png_init_io): Don't define it.
175 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
176 (png_read_from_file): New function, based on png_read_from_memory.
177 (png_load): Use it, instead of fn_png_init_io.
178
d1fab151
KS
1792005-06-23 Kim F. Storm <storm@cua.dk>
180
181 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 182 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
183 Add commentary explaining evaporate arg (for internal use only).
184 (unwind_set_match_data): Add comment on evaporate use.
185
53abc3bf
MB
1862005-06-22 Miles Bader <miles@gnu.org>
187
188 * xfaces.c (Qvertical_border): Renamed from `Qvertical_divider'.
189 (realize_basic_faces, syms_of_xfaces): Update references to it.
190 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
191 to `VERTICAL_BORDER_FACE_ID'.
192 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
193
36a3b076
JL
1942005-06-21 Juri Linkov <juri@jurta.org>
195
196 * dispextern.h: Add extern Qframe_set_background_mode.
197
198 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
199 Qframe_set_background_mode.
200
201 * frame.c (Fmodify_frame_parameters):
202 Call frame-set-background-mode after changing the background color
203 on non-window non-dos branch.
204
23873c96
JB
2052005-06-21 Juanma Barranquero <lekktu@gmail.com>
206
207 * fns.c (Fchar_table_range):
208 * process.c (Fmake_network_process): Fix spellings.
209
b7d1f38f
KS
2102005-06-20 Kim F. Storm <storm@cua.dk>
211
212 * fns.c (Fsort): Doc fix.
213
b4e49aee
MB
2142005-06-20 Miles Bader <miles@gnu.org>
215
216 * xfaces.c (Qvertical_divider): New variable.
217 (realize_basic_faces): Realize its face.
218 (syms_of_xfaces): Initialize it.
219
220 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
221
222 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
223 window-separator on ttys using `vertical-divider' face by default.
224
b7da00ba
RS
2252005-06-17 Richard M. Stallman <rms@gnu.org>
226
227 * xdisp.c (get_next_display_element): Reverse
228 test of Vshow_nonbreak_escape.
229
230 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
231 (Ftty_no_underline): New function.
232 (syms_of_term): defsubr it.
b7d1f38f 233
b7da00ba
RS
234 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
235
236 * dispnew.c (spec_glyph_lookup_face): New function.
237 (build_frame_matrix_from_leaf_window): Use it.
238
239 * dispextern.h (spec_glyph_lookup_face): Add declaration.
240
241 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
242
2432005-06-12 Richard M. Stallman <rms@gnu.org>
244
245 * keyboard.c (read_char): After catching a longjmp,
246 call restore_getcjmp.
247
289824a3
JB
2482005-06-17 Juanma Barranquero <lekktu@gmail.com>
249
250 * xselect.c (lisp_data_to_selection_data): Fix spelling.
251
95085023
YM
2522005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
253
254 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
255 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
256 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
257 events.
258 (XTread_socket): Don't pass keyboard events with the option
259 modifier to the system when Vmac_command_key_is_meta is nil or
260 Vmac_option_modifier is non-nil.
261 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
262 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
263 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
264 handler function.
265 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
266 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
267 handler part to mac_handle_mouse_event.
268
4a9308b8
JB
2692005-06-14 Juanma Barranquero <lekktu@gmail.com>
270
271 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
272 NEW-ALIAS and BASE-VARIABLE, respectively.
273
5aa6db57
SM
2742005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
277 (get_phys_cursor_geometry, format_mode_line_unwind_data)
278 (get_line_height_property, x_produce_glyphs): Remove unused vars.
279
280 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
281
0e0dddda
EZ
2822005-06-13 Eli Zaretskii <eliz@gnu.org>
283
284 * w32term.c (x_use_underline_position_properties): New variable.
285 (x_draw_glyph_string): Remind in a comment to change doc string of
286 x-use-underline-position-properties if/when underline positioning
287 is implemented.
288 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
289 and initialize it to nil.
290
7f2b4738
JR
2912005-06-12 Jason Rumney <jasonr@gnu.org>
292
293 * w32fns.c (NEWOPENFILENAME): New struct.
294 (Fx_file_dialog): Use it to trick the system into giving us up to
295 date dialogs on systems that are documented to support it.
296 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
297
a1e8cad6
EZ
2982005-06-12 Eli Zaretskii <eliz@gnu.org>
299
300 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
301 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
302
099a3eea
EZ
3032005-06-11 Eli Zaretskii <eliz@gnu.org>
304
2e09fef1
EZ
305 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
306 to CreateDIBSection to avoid a compiler warning.
307 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
308 warning.
309 (png_load): Cast return values of fn_png_create_read_struct and
310 fn_png_create_info_struct, to avoid compiler warnings on W32.
311 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
312 to avoid compiler warnings.
313 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
314 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
315 avoid a compiler warning.
316 (tiff_load): Cast return values of fn_TIFFOpen and
317 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
318 to IMAGE_BACKGROUND to avoid a compiler warning.
319 (gif_load): Cast return values of fn_DGifOpenFileName and
320 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
321 IMAGE_BACKGROUND to avoid a compiler warning.
322 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
323 before redefining.
324
099a3eea
EZ
325 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
326 the call to CreateDIBSection, to avoid a compiler warning.
327
d11f8e1a
JR
3282005-06-11 Jason Rumney <jasonr@gnu.org>
329
330 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
331 minibuffer.
332 * macfns.c (Fx_file_dialog): Likewise.
333
cd4344a3
EZ
3342005-06-10 Eli Zaretskii <eliz@gnu.org>
335
336 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
337
578c1340
JB
3382005-06-10 Juanma Barranquero <lekktu@gmail.com>
339
340 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
341 * w32fns.c (syms_of_w32fns): Fix spellings.
342
4162f25f
EZ
3432005-06-10 Eli Zaretskii <eliz@gnu.org>
344
345 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
346 `verbose'; print diagnostic messages only if it is non-zero.
347 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
348 in the environment.
349 (copy_executable_and_dump_data): Print section names with %.8s.
350
121c59a3
MY
3512005-06-10 Masatake YAMATO <jet@gyve.org>
352
353 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
354 when mouse_face is not given.
121c59a3 355
c869384d
LT
3562005-06-09 Luc Teirlinck <teirllm@auburn.edu>
357
358 * window.c (Fselect_window): Adapt call to Fselect_frame.
359
360 * lisp.h: Update EXFUN of Fselect_frame.
361
362 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
363
6ecf436d
LT
364 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
365 no_enter.
366 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
367 Adapt to above change.
368
c14ec135
JB
3692005-06-10 Juanma Barranquero <lekktu@gmail.com>
370
371 * fns.c (Fmemq, Fmaphash): Doc fixes.
372
9fed2905
JB
3732005-06-09 Juanma Barranquero <lekktu@gmail.com>
374
375 * xfaces.c (Fdisplay_supports_face_attributes_p):
376 Fix typo in docstring.
377
427c5b1b
ST
3782005-06-08 Steven Tamm <steventamm@mac.com>
379
380 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
381 used by gcc4 on intel mac.
382
b7aae902
KS
3832005-06-09 Kim F. Storm <storm@cua.dk>
384
385 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
386 in REUSE list if non-nil; free them if equal to evaporate.
387 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
388 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
389 (restore_search_regs): Rename from restore_match_data. Uses changed.
390 (unwind_set_match_data): New function.
391 (record_unwind_save_match_data): New function like save-match-data.
392
393 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
394 (record_unwind_save_match_data): Add prototype.
395 (restore_search_regs): Rename from restore_match_data.
396
397 * composite.c (compose_chars_in_text):
398 * eval.c (do_autoload):
399 * macmenu.c (set_frame_menubar):
400 * process.c (read_process_output, exec_sentinel):
401 * xmenu.c (set_frame_menubar):
402 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
403 * w32menu.c (set_frame_menubar):
404 Use record_unwind_save_match_data.
405
547d2b37
RS
4062005-06-08 Richard M. Stallman <rms@gnu.org>
407
408 * xdisp.c (get_next_display_element): Alter previous change:
409 Distinguish Vshow_nonbreak_escape = t or not t.
410 For t, use escape_glyph once again, as before previous change.
411 Use space or hyphen for display, instead of the non-ASCII char.
412 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
413
414 * process.c (Fstart_process): Don't touch command_channel_p slot.
415
99598737 416 * process.h (struct process): Delete command_channel_p.
547d2b37 417
602907ae
MY
4182005-06-07 Masatake YAMATO <jet@gyve.org>
419
5aa6db57
SM
420 * xdisp.c (note_mode_line_or_margin_highlight):
421 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 422 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
423 is not ON_MODE_LINE nor ON_HEADER_LINE.
424
8b793bed
KS
4252005-06-07 Kim F. Storm <storm@cua.dk>
426
427 * process.c: Improve commentary for adaptive read buffering.
428
3d031334
SM
4292005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
430
431 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
432 if available.
433
16d2e704
JD
4342005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
435
5aa6db57
SM
436 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
437 New functions for popping down menus on C-g.
16d2e704
JD
438 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
439
440 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
441 non-static.
442
9fed2905 443 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 444
b6cc2ad0
EZ
4452005-06-06 Eli Zaretskii <eliz@gnu.org>
446
9a1505e9 447 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 448
5aa6db57 449 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
450
451 * w32proc.c (RVA_TO_PTR): New macro.
452
453 * w32heap.c (RVA_TO_PTR): No need to #undef now.
454
455 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
456 Depend on w32heap.h.
457
24e55feb
LT
4582005-06-06 Luc Teirlinck <teirllm@auburn.edu>
459
460 * keyboard.c (command_loop_1): Update Vthis_original_command.
461
ce6e10af
RS
4622005-06-06 Richard M. Stallman <rms@gnu.org>
463
464 * xmenu.c (popup_get_selection): Undo previous change.
465
c476bcb0
JL
4662005-06-06 Juri Linkov <juri@jurta.org>
467
468 * xdisp.c (Qno_break_space): New variable.
469 (syms_of_xdisp): Initialize it.
470 (get_next_display_element): Add no-break space and soft hypen
471 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
472 Use `no-break-space' face for no-break spaces.
473
5494d7bc
JD
4742005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
475
476 * window.c (delete_window): Handle the case where a h/vchild has
477 a h/vchild.
478
a0c38328
EZ
4792005-06-05 Eli Zaretskii <eliz@gnu.org>
480
481 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
482 call to pfn_setsockopt, cast optval to `const char *'.
483
91018229
EZ
4842005-06-04 Eli Zaretskii <eliz@gnu.org>
485
1a8fb426
EZ
486 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
487 (open_unc_volume): Cast return value of map_w32_filename, to avoid
488 compiler warnings.
489
b6f0a397
EZ
490 * s/ms-w32.h (fileno): Don't define if already defined.
491
17a7c5c2 492 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 493
91018229
EZ
494 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
495
196ac78c
RS
4962005-06-04 Richard M. Stallman <rms@gnu.org>
497
498 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
499
b8987570
JD
5002005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
501
502 * macmenu.c (cleanup_popup_menu): New function.
503 (Fx_popup_menu): unwind protect cleanup_popup_menu in case
504 mac_menu_show Quit:s.
505 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
506 a dialog).
507
555228aa
KS
5082005-06-04 Kim F. Storm <storm@cua.dk>
509
510 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
511
512 * callproc.c (Fcall_process): Don't use alloca to gradually
513 increase size of buf, as it effectively uses twice the necessary
514 space on the stack. Instead, pre-allocate buf of full size, and
515 gradually increase the read size.
516
517 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
518
519 * eval.c (unbind_to): Preserve value of Vquit_flag.
520
521 * xterm.c (handle_one_xevent): Also ignore mouse motion just
522 before a button release event.
523
6312e5f7
JB
5242005-06-03 Juanma Barranquero <lekktu@gmail.com>
525
526 * xfaces.c (Finternal_lisp_face_equal_p): Really report
527 on faces in a frame, if the argument FRAME is non-nil.
528 Improve argument/docstring consistency.
529
0493f7be
KS
5302005-06-02 Kim F. Storm <storm@cua.dk>
531
532 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
533 (x_consider_frame_title, Fformat_mode_line): Save offset into
534 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
535
89fe657e
KS
5362005-06-01 Kim F. Storm <storm@cua.dk>
537
538 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
539
02a6375c
YM
5402005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
541
542 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
543 resolution fields for scalable fonts to 0.
544
545 * xfaces.c (build_scalable_font_name): Round pixel size to the
546 nearest integer.
547
95d4fad8
KS
5482005-06-01 Kim F. Storm <storm@cua.dk>
549
550 * xdisp.c (display_mode_line): Support nested calls to redisplay
551 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
552
3c1b433a
SM
5532005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
554
555 * fileio.c (Finsert_file_contents):
556 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
557
13cc7d61
KS
5582005-05-31 Kim F. Storm <storm@cua.dk>
559
560 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
561 (mode_line_noprop_ptr): Rename from frame_title_*.
562 (store_mode_line_noprop_char): Rename from store_frame_title_char.
563 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 564 (mode_line_target): New enum to specify current output target
13cc7d61
KS
565 for mode line formatting.
566 (display_mode_element): Test it rather than frame_title_ptr and
567 mode_line_string_list to determine where output should go.
568 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
569 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
570 (format_mode_line_unwind_data, unwind_format_mode_line):
571 New functions for unwind protection in mode line formatting.
13cc7d61 572 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
573 to support nested calls to format-mode-line and redisplay.
574 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 575 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
576 support nested calls to format-mode-line and redisplay.
577 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 578 Don't trim trailing dashes.
13cc7d61
KS
579 (decode_mode_spec): Don't make infinite number of trailing dashes
580 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
581 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
582 mode_line_string_face_prop, and Vmode_line_unwind_vector.
583 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
584 Initialize mode_line_target to MODE_LINE_DISPLAY.
585
c16b1394
RS
5862005-05-29 Richard M. Stallman <rms@gnu.org>
587
588 * buffer.c (Fbuffer_local_value): Call indirect_variable.
589
edfaeb4e
MY
5902005-05-28 Masatake YAMATO <jet@gyve.org>
591
592 * xdisp.c (note_mode_line_or_margin_highlight): Change the
593 pointer to a hand cursor when hoovering over a mouse-face.
594
7cf49add
KH
5952005-05-27 Kenichi Handa <handa@m17n.org>
596
597 * xterm.c (x_encode_char): Call check_ccl_update in advance.
598
599 * ccl.c: Now an element of Vccl_program_table is a vector of
600 length 4, not 3.
3c1b433a
SM
601 (ccl_get_compiled_code): New arg idx. Caller changed.
602 Adjust for the change of Vccl_program_table.
603 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
604 (check_ccl_update): New function.
605 (Fregister_ccl_program): Use ASET to set an element of a vector.
606 Adjusted for the change of Vccl_program_table.
607
608 * ccl.h (struct ccl_program): New member idx.
609 (check_ccl_update): Extern it.
610
5e2ad10b
JB
6112005-05-27 Juanma Barranquero <lekktu@gmail.com>
612
3c1b433a 613 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
614 (syms_of_image): Defvar it.
615 (lookup_image_type): Use it.
616
5e2ad10b
JB
617 * buffer.c (Fbuffer_local_value): Make argument name match its use
618 in docstring.
619
6e604a9b
JB
6202005-05-26 Juanma Barranquero <lekktu@gmail.com>
621
622 * keyboard.c (Frecursive_edit): Fix typo in docstring.
623 (Fposn_at_x_y): Make argument name match its use in docstring.
624
59244a3f
LK
6252005-05-26 Lute Kamstra <lute@gnu.org>
626
627 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
628
55ce5058
MY
6292005-05-24 Masatake YAMATO <jet@gyve.org>
630
631 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
632 as loop sentinels.
633
cb5db137
NR
6342005-05-24 Nick Roberts <nickrob@snap.net.nz>
635
636 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
637 select frame title ("Question"/"Information").
638 (xdialog_show): Use it.
639
13dcfc35
NR
640 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
641
642 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
643
d3393daa
NR
644 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
645 a third argument (Qnil).
646
647 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
648
649 * editfns.c (Fmessage_box): Use "Information" for frame title.
650
71d4fba1
TTN
6512005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
652
653 * termcap.c [VMS]: Include <starlet.h>.
654
359e4563
MY
6552005-05-23 Masatake YAMATO <jet@gyve.org>
656
6e604a9b
JB
657 * xdisp.c (note_mode_line_or_margin_highlight): Add code
658 for mouse-face. Change the type of the first argument from `window'
659 to `Lisp_Object'.
359e4563
MY
660 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
661 window instead of w.
662
edceb51c
AS
6632005-05-22 Andreas Schwab <schwab@suse.de>
664
41c4895c 665 * process.c (send_process): Move misplaced volatile.
edceb51c 666
5c213fcc
RS
6672005-05-21 Richard M. Stallman <rms@gnu.org>
668
669 * xdisp.c (display_mode_element): If we're processing a list and
670 padding is specified, put it after the last element.
671
aa4060b9
EZ
6722005-05-21 Eli Zaretskii <eliz@gnu.org>
673
674 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
675 "superroot" on DOS_NT systems.
676
a2c9aee6
EZ
6772005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
678
679 * process.c (send_process): Restore the SIGPIPE handler if we
680 catch a SIGPIPE.
681
09e8eb5b
JB
6822005-05-20 Juanma Barranquero <lekktu@gmail.com>
683
684 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
685 misleading comments).
686 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
687
f3fbdb1f
LK
6882005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
689
690 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
691 Correct the right value.
692
639ec765
NR
6932005-05-19 Nick Roberts <nickrob@snap.net.nz>
694
240d926e 695 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
696 post-command-idle-hook and post-command-idle-delay.
697 (command_loop_1): Don't try to execute post-command-idle-hook.
698
03d42907
KS
6992005-05-16 Kim F. Storm <storm@cua.dk>
700
1cb83e13
KS
701 * xdisp.c (handle_display_prop): Handle empty replacement.
702 (handle_single_display_spec): Return -1 for empty replacement.
703
704 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
705
03d42907
KS
706 * .gdbinit (pitx): Print more info about iterator.
707
0da46b6e
AS
7082005-05-16 Andreas Schwab <schwab@suse.de>
709
3c1b433a 710 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 711
d06ba294
RS
7122005-05-14 Richard M. Stallman <rms@gnu.org>
713
714 * xdisp.c (message3): Call cancel_echoing.
715
716 * alloc.c (Fmemory_full_p): New function.
717 (syms_of_alloc): defsubr it.
718
719 * process.c (send_process_trap): Unblock SIGPIPE.
720 (send_process): Reset SIGPIPE handler before reporting error.
721
90713743
NR
7222005-05-14 Nick Roberts <nickrob@snap.net.nz>
723
724 * emacs.c (syms_of_emacs): Fix doc string for system-type.
725
68780e2a
RS
7262005-05-13 Richard M. Stallman <rms@gnu.org>
727
728 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
729 (Finsert_file_contents): If we read 0 bytes from a special file,
730 unlock the visited file if we locked it.
731 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 732 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 733
5063dbbf
YM
7342005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
735
736 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
737
3c1b433a
SM
738 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
739 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
740 redisplay from being paused by them.
741
742 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
743 [!MAC_OSX] (target_ticks): Remove variable.
744 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
745 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
746 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 747 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
748 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
749 handling using Time Manager routines.
3c1b433a
SM
750 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
751 New variables.
5063dbbf
YM
752 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
753 (setitimer): New functions.
754
755 * macfns.c, macmenu.c: Don't include signal.h.
756
757 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
758 Rename from get_control_part_bound. All callers changed.
759 (x_scroll_bar_clear): New function.
760 (x_clear_frame): Use it.
761 (XTset_vertical_scroll_bar): Don't call Draw1Control.
762 (x_scroll_bar_handle_click): Change type of second argument from
763 int to ControlPartCode.
764 (check_alarm): Remove declaration.
02a6375c
YM
765 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
766 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
767
7682005-05-13 Nozomu Ando <nand@mac.com>
769
770 * unexmacosx.c: Include assert.h.
771 (MACOSX_MALLOC_MULT16): New define.
772 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
773 ptr is in unexec regions by checking it is multiple of 16.
774 (unexec_malloc_header_t): New typedef.
775 (unexec_malloc, unexec_realloc, unexec_free): Store and use
776 allocated size information in unexec_malloc_header.
777
d101bf56
RS
7782005-05-10 Richard M. Stallman <rms@gnu.org>
779
780 * xterm.c (noinclude): Add #undef.
781
782 * image.c, xfns.c, xmenu.c: Don't include signal.h.
783
2f60660a
JB
7842005-05-09 Juanma Barranquero <lekktu@gmail.com>
785
f1701e65
JB
786 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
787 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
788 Doc fixes.
789
2f60660a
JB
790 * dired.c (Ffile_name_completion): Make argument name
791 match its use in docstring.
792
9f29e806
LT
7932005-05-08 Luc Teirlinck <teirllm@auburn.edu>
794
795 * eval.c (Fdefvaralias): Remove any pre-existing
796 variable-documentation property of the alias.
797
a790bcd4
TTN
7982005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
799
800 * xfns.c (start_hourglass): Do nothing when running on a tty.
801
d5fb8dab
JB
8022005-05-07 Juanma Barranquero <lekktu@gmail.com>
803
804 * fns.c (Fchar_table_range): Fix typos in docstring.
805
7ec64183
SM
8062005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
807
808 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
809
6ff95f1d
EZ
8102005-05-06 Eli Zaretskii <eliz@gnu.org>
811
2c6b25c7
EZ
812 * lread.c (Flocate_file_internal): Doc fix.
813
6ff95f1d
EZ
814 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
815
17d28d26
YM
8162005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
817
818 * macselect.c (x_own_selection): Accept Lisp string as result of
819 selection converter function.
820 (x_clear_frame_selections): Don't call x-lost-selection-functions
821 if Emacs is not owner of the selection.
822 (Vmac_services_selection): Put variable and initialization in
823 #ifdef MAC_OSX.
824 (syms_of_macselect) [MAC_OSX]: Set default value of
825 Vmac_services_selection to PRIMARY.
826
7ec64183
SM
827 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
828 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
829 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
830 (install_scroll_bar_timer, set_scroll_bar_timer)
831 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
832 (get_control_part_bound, x_scroll_bar_handle_press)
833 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
834 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
835 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
836 (scroll_bar_timer_event_posted_p): New variables.
837 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
838 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
839 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
840 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
841 Initialize track_top and track_height to nil.
842 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
843 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
844 (XTset_vertical_scroll_bar): Don't make space between scroll bar
845 and associated window.
846 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
847 from window config.
7ec64183
SM
848 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
849 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
850 Recalculate them if they are nil.
851 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
852 clicked control is a scroll bar.
853 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
854 event handler functions. Don't add modifiers to scroll bar click
7ec64183 855 events. Call scroll bar release handler when window is deactivated.
17d28d26 856 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
857 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
858 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 859
7ec64183
SM
860 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
861 New members track_top and track_height.
17d28d26
YM
862
863 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
864 init_process when including sys/select.h.
865
643b4cf5
LT
8662005-05-05 Luc Teirlinck <teirllm@auburn.edu>
867
868 * eval.c (Fdefvaralias): Doc fix.
869
870 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
871
99bda128
KS
8722005-05-05 Kim F. Storm <storm@cua.dk>
873
874 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
875 default value.
876 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
877 Fix type of cursor-in-non-selected-windows.
878
3a3563e9
JD
8792005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
880
881 * mac.c: #undef init_process so not to conflict with system headers.
882
0124c5bd
RS
8832005-05-02 Richard M. Stallman <rms@gnu.org>
884
885 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
886
887 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
888
889 * xdisp.c (Vcursor_in_non_selected_windows)
890 (Qcursor_in_non_selected_windows): Vars deleted.
891 (syms_of_xdisp): Don't initialize them.
892 (get_window_cursor_type): Use cursor_in_non_selected_windows
893 buffer slot.
894
4b3f161f
KS
8952005-05-02 Kim F. Storm <storm@cua.dk>
896
e40527dc
KS
897 * macros.c (executing_kbd_macro_index): Rename from
898 executing_macro_index. All uses changed.
899 (executing_kbd_macro_iterations): Rename from
900 executing_macro_iterations. All uses changed.
901 (executing_kbd_macro): Rename from executing_macro.
902 All uses changed.
903 (syms_of_macros): Rename Lisp var executing-macro-index to
904 executing-kbd-macro-index.
905
4b3f161f
KS
906 * xdisp.c (move_it_in_display_line_to): Fix last change.
907
4d49edf6
LT
9082005-05-01 Luc Teirlinck <teirllm@auburn.edu>
909
f6b1b15a
LT
910 * xmenu.c (Fx_popup_menu): Doc fix.
911
4d49edf6
LT
912 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
913
4a766fe6
JR
9142005-05-02 Jason Rumney <jasonr@gnu.org>
915
916 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
917
c924d3ff
TTN
9182005-05-02 Nozomu Ando <nand@mac.com>
919
920 * sysselect.h: Fix typo.
921
b161ea4e 9222005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 923
b161ea4e
NR
924 * charset.c (Fchars_in_region): Remove as obsolete.
925
d37e919d 9262005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
927
928 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 929 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 930 glyph.
5c2e5a5e 931
bec0b768
LT
9322005-05-01 Luc Teirlinck <teirllm@auburn.edu>
933
934 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
935
ebbfa918
RS
9362005-05-01 Richard M. Stallman <rms@gnu.org>
937
938 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
939 If user cancels the menu, quit unless FOR_CLICK.
940
7ec64183 941 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
942 All uses changed.
943 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
944 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
945 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
946 * commands.h (Vexecuting_kbd_macro): Likewise.
947
a72c2d97
TTN
9482005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
949
950 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
951
7e995a23
RS
9522005-04-30 Richard M. Stallman <rms@gnu.org>
953
954 * fileio.c (Ffind_file_name_handler): Handle the `operations'
955 property of the file name handler.
956 (Qoperations): New variable.
957 (syms_of_fileio): Initialize and staticpro it.
958
959 * xdisp.c (set_message_1): Delete xassert.
960
7a92caf8
YM
9612005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
962
7ec64183 963 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
964
965 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
966
967 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
968 before/after including Carbon.h if there is a working mktime.
969
5ae91803
KS
9702005-04-28 Kim F. Storm <storm@cua.dk>
971
972 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
973 Fix cyclic alias check. If alias loop is detected, signal
974 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
975
d79b6c21
LK
9762005-04-28 Lute Kamstra <lute@gnu.org>
977
978 * eval.c (do_autoload): Record only autoloads in the autoload
979 property of symbols.
980
8c75afbf
NR
9812005-04-28 Nick Roberts <nickrob@snap.net.nz>
982
983 * emacs.c (USAGE1): Add --basic-display and --quick options.
984
832e294f
KS
9852005-04-27 Kim F. Storm <storm@cua.dk>
986
987 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
988
f03f317a
RS
9892005-04-26 Richard M. Stallman <rms@gnu.org>
990
c019856e
RS
991 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
992 (syms_of_window): Doc fixes.
993
f03f317a
RS
994 * indent.c (Fvertical_motion): Undo previous change.
995
38f60cd9
KH
9962005-04-26 Kenichi Handa <handa@m17n.org>
997
998 * fns.c (char_table_range): New function.
999 (Fchar_table_range): Signal an error if characters in the range
1000 have inconsistent values. Don't check the parent.
1001
87ede5a1
KH
10022005-04-25 Kenichi Handa <handa@m17n.org>
1003
1004 * fontset.c (fontset_set): Fix previous change.
1005
a6390474
RS
10062005-04-24 Richard M. Stallman <rms@gnu.org>
1007
1008 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
1009
7fce7dfe
EZ
10102005-04-24 Eli Zaretskii <eliz@gnu.org>
1011
cf1982d9
EZ
1012 * regex.c (re_search_2, re_match_2_internal): Convert second arg
1013 of RE_TRANSLATE to int, to shut up GCC warnings.
1014
7fce7dfe
EZ
1015 * fileio.c (Fcopy_file): Doc fix.
1016 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
1017 not needed.
1018
49ed33c7
YM
10192005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1020
1021 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
1022 (SOME_MACHINE_OBJECTS): Likewise.
1023 (mac.o): Depend on ccl.h.
1024 (macselect.o): New target.
1025
7ec64183
SM
1026 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
1027 Call syms_of_macselect.
49ed33c7
YM
1028
1029 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
1030
7ec64183 1031 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
1032 (QCLIPBOARD): Remove variable.
1033 (syms_of_mac): Don't initialize it.
1034 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
1035 Remove functions.
1036 (syms_of_mac): Don't defsubr them.
1037 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
1038 (QHFS_plus_D, QHFS_plus_C): New variables.
1039 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
1040 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
1041 (cfstring_create_normalized): New functions.
1042 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
1043 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1044
7ec64183
SM
1045 * macterm.c (handling_window_update, terminate_flag):
1046 Remove variables.
1047 (do_window_update, do_ae_quit_application, XTread_socket):
1048 Don't use them.
49ed33c7
YM
1049 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
1050 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
1051 (init_service_handler): Move to macselect.c. Remove declarations.
1052 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
1053 (Qapplication, Qabout): New variables.
1054 (syms_of_mac): Initialize them.
1055 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
1056 (Qperform): New variables.
1057 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 1058 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
1059 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
1060 (mac_store_application_menu_event, init_menu_bar): New functions.
1061 [USE_CARBON_EVENTS] (mac_handle_command_event)
1062 (init_command_handler): New functions.
1063 (mac_handle_window_event): Return noErr on window update event.
1064 (do_ae_quit_application): Call mac_store_application_menu_event.
1065 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
1066 and init_menu_bar.
1067
1068 * macterm.h (x_clear_frame_selections): Add extern.
1069
1070 * macselect.c: New file for selection processing on Mac OS.
1071
469bc679
RS
10722005-04-23 Richard M. Stallman <rms@gnu.org>
1073
1074 * fileio.c (Fcopy_file): New arg MUSTBENEW.
1075 (Frename_file): Pass new arg to Fcopy_file.
1076
1077 * window.c (window_size_fixed): Variable deleted.
1078 (syms_of_window): Initialize window-size-fixed to nil.
1079 But don't DEFVAR window_size_fixed.
1080
d379c558
AS
10812005-04-23 Andreas Schwab <schwab@suse.de>
1082
1083 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
1084 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
1085 use lib64 instead of lib.
1086 (_LP64) [_ARCH_PPC64]: Define if not defined.
1087
007d105b
TTN
10882005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
1089
1090 * s/ms-w32.h (HAVE_PWD_H): Define.
1091
b9c15916
KH
10922005-04-22 Kenichi Handa <handa@m17n.org>
1093
1094 * fns.c (copy_sub_char_table): Explicitly copy the default value
1095 of the sub-chartable.
1096
1097 * fontset.c (fontset_set): When a sub-chartable is created,
1098 explicitly sets the defalt value.
1099
1ba52906
KS
11002005-04-22 Kim F. Storm <storm@cua.dk>
1101
1102 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
1103 (Fsafe_plist_get): Rename to Fplist_get.
1104 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
1105 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
1106
1107 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
1108
1109 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
1110 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1111 Use Fplist_get instead of Fsafe_plist_get.
1112
1113 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
1114
e235145c
MB
11152005-04-21 Miles Bader <miles@gnu.org>
1116
1117 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
1118
766c5349
TTN
11192005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
1120
c164a7e6
TTN
1121 * sysdep.c: Remove reference to defunct vms-pwd.h.
1122 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
1123 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
1124
766c5349
TTN
1125 * config.in: Regenerate.
1126
2b048bf5
KH
11272005-04-20 Kenichi Handa <handa@m17n.org>
1128
1129 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
1130 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
1131 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
1132
1133 * alloc.c (make_sub_char_table): Argument changed to initial
1134 value of the slots.
1135
1136 * data.c (Faref): Handle special slots used as default values of
1137 ascii, eight-bit-control, eight-bit-control. Don't ignore a
1138 default value set for a group of characters.
1139 (Faset): Signal an error if IDXVAL is not a valid character code.
1140 Make a sub-chartable with correct initial value.
1141
1142 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
1143 values for ascii, eight-bit-control, eight-bit-graphic.
1144 Don't call Faref with charset-id.
2b048bf5
KH
1145 (Fset_char_table_default): Document how to treat normal character
1146 argument. Handle special slots used as default values of ascii,
1147 eight-bit-control, eight-bit-control. Make a sub chartable if
1148 necessary.
1149
b0a35939
KH
11502005-04-20 Kenichi Handa <handa@m17n.org>
1151
1152 * search.c (boyer_moore): Fix previous change.
1153
98dde726
KS
11542005-04-19 Kim F. Storm <storm@cua.dk>
1155
1156 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
1157 face unless last visible char and first invisible char have the
1158 same face. Also use default face if saved_face_id is undefined.
1159
327a3376
YM
11602005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1161
1162 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
1163 `full_name'.
1164 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
1165 mac_scriptcode member.
1166
1167 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
1168 (syms_of_mac): Don't initialize them.
1169 (Vmac_charset_info_alist): New variable.
1170 (syms_of_mac): Defvar it.
1171 (create_text_encoding_info_alist): New function.
1172 (decode_mac_font_name, mac_to_x_fontname)
1173 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
1174 code the correspondence among XLFD charsets, Mac script codes, and
1175 Emacs coding systems. Use Vmac_charset_info_alist and result of
1176 create_text_encoding_info_alist instead.
1177 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
1178 routines also on Mac OS Classic.
7ec64183
SM
1179 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
1180 Use add_font_name_table_entry.
327a3376
YM
1181 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
1182 specified. Derive unspecified scalable fields from specified one.
1183 (x_list_fonts): Consider Valternate_fontname_alist.
1184 (kDefaultFontSize): Change value from 9 to 12.
1185 (XLoadQueryFont): Get decoded font family, font face, and charset
1186 from x_font_name_to_mac_font_name. Set full name of loaded font.
1187 (mac_unload_font): Free `full_name' member.
1188 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
1189 NULL. Copy full_name member of struct MacFontStruct to that of
1190 struct font_info.
1191
d0636839
KS
11922005-04-19 Kim F. Storm <storm@cua.dk>
1193
5827e9d4
KS
1194 * xdisp.c (handle_stop): Set saved_face_id to current face if
1195 selective_display_ellipsis_p so ellipsis will be shown in same
1196 face as preceding text.
1197 (setup_for_ellipsis): Don't set saved_face_id here.
1198 (next_element_from_display_vector): Default to saved_face_id.
1199
d0636839
KS
1200 * fns.c (Fsafe_get): New function.
1201 (syms_of_fns): Defsubr it.
1202
1203 * lisp.h (Fsafe_get): EXFUN it.
1204
1205 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
1206 loops in case of bad face property lists. Limit number of face
1207 alias lookups to 10 (in case of face alias loops).
1208
e5c78c9d
KS
12092005-04-18 Kim F. Storm <storm@cua.dk>
1210
1211 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
1212 It replaces the corresponding member from struct window, as a
1213 window may now show multiple overlay arrows.
1214 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
1215
1216 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
1217 Compare overlay_arrow_bitmap than overlay_arrow_p members.
1218
1219 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
1220 rather than from window.
1221 (update_window_fringes): Compare overlay_arrow_bitmap rather than
1222 overlay_arrow_p members.
1223 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
1224 if not default.
1225
1226 * window.h (struct window): Remove member overlay_arrow_bitmap.
1227
1228 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
1229
1230 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
1231 Calls changed. Don't check for overlay-arrow-bitmap property here.
1232 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
1233 fringe is present, return Lisp integer for bitmap (or -1 for default).
1234 Fix value of overlay-arrow-bitmap property to be a symbol, use
1235 lookup_fringe_bitmap to parse it.
1236 (display_line): Change call to overlay_arrow_at_row. Store integer
1237 return value as overlay bitmap in row rather than window.
1238 Only show overlay arrow if row displays text, or if no other overlay
1239 arrow is seen in window (if overlay marker is at point-max).
1240
7d603e3f
TTN
12412005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1242
1243 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
1244
9942fa0c
LK
12452005-04-18 Lute Kamstra <lute@gnu.org>
1246
1247 * lread.c (Vloads_in_progress): Static.
1248 * fns.c (Vloads_in_progress): Remove extern.
1249 (load_in_progress): Add extern.
1250 (Frequire): Use load_in_progress instead of Vloads_in_progress.
1251
999cdb8f
TTN
12522005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1253
1254 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
1255
3f4413f8
YM
12562005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1257
1258 * macterm.c (XTread_socket): Don't beep on keyboard input even if
1259 no frame is visible.
1260
60ec7b7e
DN
12612005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1262
1263 * term.c (struct keys): Add support for shifted keys.
1264
a8a1c0ee
RS
12652005-04-16 Richard M. Stallman <rms@gnu.org>
1266
1267 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
1268 (set_message): Call with_echo_area_buffer with WHICH = 0.
1269 (set_message_1): Erase the echo area buffer first thing.
1270 (echo_area_display): Don't clear echo_message_buffer.
1271
f3cf04d3
YM
12722005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1273
1274 * Makefile.in (mac.o): Depend on charset.h and coding.h.
1275
1276 * mac.c: Include charset.h and coding.h.
1277 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 1278 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
1279 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
1280
1281 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1282
1283 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
1284
1285 * macterm.c (x_autoselect_window_p): Remove variable.
1286 (last_window): New variable.
7ec64183
SM
1287 (XTreassert_line_highlight, x_change_line_highlight):
1288 Remove declarations.
f3cf04d3
YM
1289 (mac_focus_changed, x_detect_focus_change): New functions and
1290 declarations.
1291 (XTextExtents16, front_emacs_window): Remove function.
1292 (mac_focus_frame): New function.
1293 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
1294 (mac_check_for_quit_char): Use it instead of front_emacs_window.
1295 (x_scroll_bar_report_motion): Obtain window from control owner.
1296 (x_make_frame_invisible): Set window manager size hint.
1297 (do_mouse_moved): Remove function.
1298 (XTread_socket): Move its contents here. Generate select-window
1299 event on mouse movement if needed. Use x_detect_focus_change on
1300 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
1301 window rectangle when dnd items are dropped.
1302 Don't activate/deactivate root control.
f3cf04d3
YM
1303 (frame_highlight, frame_unhighlight): Activate/deactivate root
1304 control here.
1305 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
1306
1307 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
1308 New extern.
1309
9e5b2858
LT
13102005-04-15 Luc Teirlinck <teirllm@auburn.edu>
1311
1312 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
1313 (lisp): Use it.
1314 (SOME_MACHINE_LISP): Add tooltip.
1315
42c6741e
YM
13162005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1317
7ec64183
SM
1318 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
1319 Don't include TextEncodingConverter.h.
42c6741e
YM
1320 (mac_system_script_code, Vmac_system_locale): New variables.
1321 (syms_of_mac): Defvar them.
1322 (mac_get_system_locale): New function.
1323
7ec64183
SM
1324 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
1325 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 1326 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
1327 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
1328 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
1329
1330 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
1331 TextEncodingConverter.h.
1332
0614c575
ST
13332005-04-13 Steven Tamm <steventamm@mac.com>
1334
7e26f91b
KS
1335 * macterm.c (syms_of_macterm): Remove redundant definition of
1336 mac-pass-control-to-system.
0614c575 1337
203eb0aa
SM
13382005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1339
1340 * window.c (Fset_window_configuration): Be careful when you choose
1341 among several possible points for the new_current_buffer.
1342
a56e6111
YM
13432005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1344
1345 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
1346 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
1347 (Qlanguage_change) [MAC_OS]: New variable.
1348 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 1349 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
1350
1351 * macterm.c (mac_keyboard_text_encoding)
1352 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
1353 (XTread_socket): Store language-change event if keyboard script change
1354 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 1355 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 1356
7e26f91b 1357 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 1358
6695c528
RS
13592005-04-10 Richard M. Stallman <rms@gnu.org>
1360
1361 * emacs.c (standard_args): Rename --bare-bones to --quick.
1362 Add -D aka --basic-display.
1363
1364 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
1365
18e2d91f
RS
13662005-04-09 Richard M. Stallman <rms@gnu.org>
1367
1368 * keymap.c (where_is_internal): Convert a string used as event type
1369 into "(any string)".
1370
1371 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
1372 * fns.c (Vloads_in_progress): Add extern.
1373 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
1374
13752005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
1376
1377 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
1378
1cf21850
LK
13792005-04-09 Lute Kamstra <lute@gnu.org>
1380
1381 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
1382 within the accessible part of the buffer.
1383
bfd93240
KS
13842005-04-09 Kim F. Storm <storm@cua.dk>
1385
1386 * lread.c (readevalloop): Add args START and END as region in
1387 current buffer to read. Callers changed.
1388 When specified, narrow to this region only when reading,
1389 not during eval. Track next point to read from during eval.
1390 Also restore point to "real" buffer position before eval.
1391 (Feval_region): Don't save excursion and restriction here, and
1392 don't narrow to region. Just pass region to readevalloop.
1393 Note: Point is now preserved even when PRINTFLAG is nil.
1394
9ba27690
KS
13952005-04-08 Kim F. Storm <storm@cua.dk>
1396
1397 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
1398
73f0d996
KS
13992005-04-06 Kim F. Storm <storm@cua.dk>
1400
1401 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
1402
369f76bb
YM
14032005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1404
1405 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
1406 (Fmac_get_preference): Doc fix.
1407
203eb0aa
SM
1408 * macfns.c (Fx_create_frame, x_create_tip_frame):
1409 Add "fontset-mac" to fallback font/fontsets.
369f76bb 1410
2ba613a6
KS
14112005-04-04 Kim F. Storm <storm@cua.dk>
1412
4d5ddddc
KS
1413 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
1414
2ba613a6
KS
1415 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
1416 Call it again after autoload.
1417
1673df2e
JD
14182005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1419
1420 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
1421 mallopt.
1422
1423 * ralloc.c (r_alloc_init): Ditto.
1424
41639988
KH
14252005-04-01 Kenichi Handa <handa@m17n.org>
1426
1cf21850
LK
1427 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
1428 (Vascii_eqv_table): Extern them.
41639988
KH
1429
1430 * casetab.c (set_case_table): If standard is nonzero, setup
1431 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
1432
1433 * search.c (looking_at_1): Use current_buffer->case_canon_table,
1434 not DOWNCASE_TABLE.
1435 (string_match_1): Likewise.
1436 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
1437 Vascii_downcase_table.
1438 (fast_string_match_ignore_case): Likewise.
1439 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
1440 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
1441 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
1442 simple_translate.
1443
6ca53601
SM
14442005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1445
1446 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
1447 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
1448 Use XtNtopShadowPixel and XtNbottomShadowPixel.
1449 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
1450 really work and that breaks with some versions of Xaw3d.
1451
fafbb99d 14522005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
1453
1454 * coding.c (syms_of_coding): Fix previous change.
1455
6ca53601
SM
14562005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
1457
1458 * fileio.c (search_embedded_absfilename): Fix last change.
1459
bf762c98
KH
14602005-03-25 Kenichi Handa <handa@m17n.org>
1461
1462 * coding.c (syms_of_coding): Suggest to use set-coding-category in
1463 the docstring of coding-category-list.
1464
f793f885
KS
14652005-03-31 Kim F. Storm <storm@cua.dk>
1466
1467 * keyboard.c (Qmouse_fixup_help_message): New var.
1468 (syms_of_keyboard): Intern and staticpro it.
1469 (show_help_echo): Apply mouse-fixup-help-message to help string.
1470
c364fe19
KS
14712005-03-30 Kim F. Storm <storm@cua.dk>
1472
1473 * xdisp.c (display_line): Allow multiple overlay arrows in window.
1474
c70a4df6
SM
14752005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1476
1477 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
1478 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
1479 (Ffile_name_absolute_p): Use it.
1480 (search_embedded_absfilename): New fun, extracted from
1481 Fsubstitute_in_file_name. Use file_name_absolute_p.
1482 Free the pw data after use.
1483 (Fsubstitute_in_file_name): Use it.
1484 After cutting a prefix, re-check file-name-handler.
1485
6e7d0438
JR
14862005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
1487
6ca53601 1488 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
1489
1490 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
1491 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
1492
65671706
SM
14932005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
1494
1495 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
1496 Use Fexit_minibuffer.
1497 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
1498
0de4dad4
SM
14992005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1500
781da985
SM
1501 * dired.c (Ffile_attributes): Add a missing gcpro.
1502
0de4dad4
SM
1503 * alloc.c (make_number): The arg can be bigger than `int'.
1504 * lisp.h (make_number): Make prototype more precise.
1505
1506 * process.c, dired.c (Vfile_name_coding_system)
1507 (Vdefault_file_name_coding_system):
1508 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
1509 (Vdefault_file_name_coding_system): Remove unused declarations.
1510
ff18668f
JD
15112005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1512
1513 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
1514 if it failed to pop up (Gnome "show pointer on ctrl" option makes
1515 menus fail to pop up).
1516
0de4dad4 15172005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
1518
1519 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 1520 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 1521
8df0ffbe
KS
15222005-03-22 Kim F. Storm <storm@cua.dk>
1523
1524 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
1525 * dispextern.h (lookup_derived_face): Fix prototype.
1526 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
1527
1528 * xdisp.c (handle_single_display_spec): Derive left-fringe and
1529 right-fringe face from fringe face.
1530
1531 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
1532 Derive face from fringe face.
1533
6ca30ba4
JD
15342005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1535
1536 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
1537
d615870a
DK
15382005-03-22 David Kastrup <dak@gnu.org>
1539
1540 * textprop.c (Fnext_char_property_change)
66347da7 1541 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
1542 (Fnext_single_char_property_change)
1543 (Fprevious_single_char_property_change): Check that limit is a
1544 number in strings.
1545 (Fnext_single_char_property_change): Coerce position to integer.
1546 (Fprevious_single_char_property_change): Same here.
1547
32b939ea
TTN
15482005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
1549
1550 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
1551
6027e473
SM
15522005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
1553
1554 * frame.c (Fignore_event): Remove.
1555 (syms_of_frame): Don't defsubr it.
1556
1557 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
1558 redundant `ignore-event'.
1559
730f4d72
EZ
15602005-03-19 Eli Zaretskii <eliz@gnu.org>
1561
1562 * unexec.c (write_segment, unexec): Move these functions to avoid
1563 forward references (which cause errors with "gcc -gcoff").
1564
c7f6afd5
JD
15652005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1566
6027e473 1567 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 1568 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 1569
c7f6afd5
JD
1570 * xrdb.c (x_load_resources): Use different char *helv when I18N
1571 is present.
1572
db328182
KH
15732005-03-17 Kenichi Handa <handa@m17n.org>
1574
66347da7 1575 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 1576
211f2210
SM
15772005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1578
1579 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
1580 Use xic_create_fontsetname even for non-Motif menus.
1581 Don't forget to free the fontsetname.
1582
1583 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
1584
c7bd5d57
RS
15852005-03-17 Richard M. Stallman <rms@gnu.org>
1586
1587 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
1588
1589 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
1590 (Fmake_symbolic_link): Use G to read the new file name.
1591
1592 * callint.c (Finteractive): Document G option.
1593 (Fcall_interactively): Implement G option.
1594
1595 * buffer.c (buffer_lisp_local_variables): New function,
1596 broken out from Fbuffer_local_variables.
1597 (clone_per_buffer_values): Use buffer_lisp_local_variables.
1598
888953f1
SM
15992005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1600
3c916d65
SM
1601 * xfns.c (xic_create_fontsetname): Add `motif' argument.
1602 Always return a freshly allocated string.
1603 (xic_create_xfontset): Adjust call.
1604
1605 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
1606 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
1607 (dump_realized_face): Fix warning.
1608
9f9e5275
SM
1609 * emacs.c (Fkill_emacs): YAILOM.
1610
888953f1
SM
1611 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
1612
48502d68
YM
16132005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1614
1615 * mac.c (HASHKEY_TERMINAL): Remove.
1616 (HASHKEY_MAX_NID): New macro.
1617 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
1618 argument.
888953f1 1619 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
1620 (xrm_create_database, xrm_q_put_resource)
1621 (xrm_merge_string_database, xrm_q_get_resource_1)
1622 (xrm_q_get_resource): Change resource database representation so
1623 that it may not use multiple hash tables for a single database.
1624 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
1625
d5161e8c
SM
16262005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1627
11a646cd
SM
1628 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
1629
1630 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
1631 locale-coding-system, as was already done for WINDOWSNT.
1632
d5161e8c
SM
1633 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
1634 translation for chars in the 0-255 range.
1635
568b6e41
LK
16362005-03-16 Lute Kamstra <lute@gnu.org>
1637
1638 * floatfns.c (Ffloor): Doc fix.
1639
469fb3cf
YM
16402005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1641
1642 * mac.c: Include macterm.h instead of directly including Carbon.h.
1643 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
1644 (Qarray, Qdictionary): New variables.
1645 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
1646 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
1647 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
1648 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
1649 in callback for CFDictionaryApplyFunction.
1650 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1651 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1652 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
1653 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
1654 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
1655 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1656 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 1657 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
1658 (parse_binding, parse_component, parse_resource_name, parse_value)
1659 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
1660 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
1661 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
1662 New functions.
469fb3cf
YM
1663
1664 * macfns.c (mac_get_rdb_resource): Remove function.
1665 (x_get_string_resource): Use xrm_get_resource.
1666
1667 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
1668
1669 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
1670 name_list_element.
1671 (mac_make_rdb): Create resource database from preferences and
1672 argument string.
1673 (mac_term_init): Save resource database to cddr part of
1674 name_list_element.
1675
1676 * macterm.h (xrm_merge_string_database, xrm_get_resource)
1677 (xrm_get_preference_database): Add externs.
1678 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1679 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1680 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
1681
1682 * process.c (init_process): Change `#ifdef DARWIN' to `#if
1683 defined (DARWIN) || defined (MAC_OSX)'
1684
1685 * s/darwin.h (DARWIN): Don't define.
1686
6a3fac90
YM
16872005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1688
1689 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
1690 Remove unused variables.
1691 (syms_of_macfns): Don't initialize them. Likewise for
1692 Qface_set_after_frame_default. Defvar and initialize
1693 Vx_window_horizontal_drag_shape.
1694 (x_set_mouse_color): Change mouse pointer shape.
1695 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 1696 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
1697 (hourglass_started): New function (from xfns.c).
1698 (start_hourglass, cancel_hourglass): Put function body in #ifdef
1699 MAC_OSX.
1700 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
1701 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 1702 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
1703
1704 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
1705 Controls.h. Use ThemeCursor instead of CursHandle.
1706
d5161e8c
SM
1707 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
1708 Remove functions and declarations.
1709 (mac_set_colors): Take argument for saving background color.
1710 All callers changed.
6a3fac90
YM
1711 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
1712 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
1713 background color.
1714 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
1715 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
1716 Use SetThemeCursor.
6a3fac90
YM
1717 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
1718 indicator control to the upper-right corner of the window.
1719 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
1720 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
1721 (do_window_update): Update controls after updating content area.
1722 (mac_handle_window_event): Remove unused extern.
1723 (XTread_socket): Check both control handle and control part code
1724 to determine whether a scroll bar is clicked. Activate/deactivate
1725 root control instead of contained scroll bar controls.
1726 (make_mac_terminal_frame): Use ThemeCursor constants.
1727
d5161e8c
SM
1728 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
1729 New member hourglass_control.
6a3fac90 1730 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 1731 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 1732
a7321976
YM
17332005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1734
1735 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 1736 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
1737 laptops, and fn + `enter' on laptops.
1738
f7b758bd
SM
17392005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
1742 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
1743 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
1744
1745 * xfns.c (xic_defaut_fontset): New constant.
1746 (xic_create_fontsetname): New function.
1747 Extracted from create_frame_xic. Try to generate a slightly
1748 better fontset.
1749 (xic_create_xfontset): Use it.
1750 (create_frame_xic): Simplify.
1751
dac24db4
SM
17522005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
1753
1754 * fileio.c (Fmake_symbolic_link): Fix last change.
1755
e0402468
RS
17562005-03-11 Richard M. Stallman <rms@gnu.org>
1757
1758 * fileio.c (Frename_file, Fadd_name_to_file)
1759 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
1760 expand the basename of FILE relative to it.
1761
fa815b14
KH
17622005-03-11 Kenichi Handa <handa@m17n.org>
1763
1764 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
1765 before calling setup_coding_system so that autoloading of a coding
1766 system work.
1767
817d354b
JD
17682005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1769
68a505ef
JD
1770 * xfns.c (hourglass_started): New function.
1771
1772 * dispextern.h: Declare hourglass_started.
1773
1774 * keyboard.c (Fexecute_extended_command): Restart hourglass
1775 after call to Fcompleting_read if already started.
1776
817d354b
JD
1777 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
1778 GTK main loop is entered in xterm.c, thus doing the redraw.
1779
b0a6f45c
KS
17802005-03-10 Kim F. Storm <storm@cua.dk>
1781
1782 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
1783
ee5d57b0
KH
17842005-03-08 Kenichi Handa <handa@m17n.org>
1785
1786 * frame.c (x_set_font): Call set_default_ascii_font if an
1787 available font is found.
1788
1789 * fontset.c (set_default_ascii_font): New function.
dac24db4 1790 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
1791
1792 * fontset.h (set_default_ascii_font): Extern it.
1793
f30c4a5c
KS
17942005-03-07 Kim F. Storm <storm@cua.dk>
1795
3fb26a86
KS
1796 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
1797 (clear_image_cache_count): New var.
1798 (redisplay_internal): Don't clear face and image caches in the
1799 middle of redisplay; do it afterwards.
1800
a54595d4
KS
1801 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
1802
f30c4a5c
KS
1803 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
1804 is valid. If not, clear phys_cursor_on_p and return.
1805
3d182f9d
AS
18062005-03-07 Andreas Schwab <schwab@suse.de>
1807
1808 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
1809
85d964de
RS
18102005-03-06 Richard M. Stallman <rms@gnu.org>
1811
1812 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
1813
1814 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
1815 (Feval, Ffuncall): Use CHECK_CONS_LIST.
1816
1817 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
1818
1819 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
1820 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
1821
3ff96c81
JL
18222005-03-05 Juri Linkov <juri@jurta.org>
1823
1824 * emacs.c (USAGE1): Replace Info node name "command arguments"
1825 with "emacs invocation".
1826 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
1827 allow arguments `--color' and `MODE' to be separated by space.
1828 Add --no-blinking-cursor, -nbc.
1829 (standard_args): Add -nbc, --no-blinking-cursor.
1830
64eb0083
TTN
18312005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1832
1833 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
1834 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
1835 * fileio.c (Fexpand_file_name) [VMS]:
1836 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
1837 * doc.c (munge_doc_file_name) [VMS]: Likewise.
1838 (Fsnarf_documentation): Call munge_doc_file_name.
1839
ad708ae5
TTN
18402005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1841
1842 * s/vms.h (FILE_SYSTEM_CASE): New macro.
1843 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
1844 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
1845
ba025f6d
YM
18462005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1847
1848 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
1849 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 1850
dac24db4 1851 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
1852
1853 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1854 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 1855 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
1856 (mac_clear_font_name_table): Move extern to macterm.h.
1857
1858 * macfns.c (install_window_handler): Move extern to macterm.h.
1859 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
1860 valid. Don't check !NILP (dir) because it is already checked with
1861 CHECK_STRING.
1862 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 1863 specifying the default location and obtaining the selected filename.
ba025f6d
YM
1864
1865 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1866
2313f861 1867 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
1868 are included via Carbon.h.
1869
dac24db4
SM
1870 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
1871 Define USE_CARBON_EVENTS to 1.
2313f861 1872 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
1873 (x_free_frame_resources): Call remove_window_handler for
1874 non-tooltip windows.
1875 [TARGET_API_MAC_CARBON]: Don't include headers that are included
1876 via Carbon.h.
1877 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
1878 (mac_do_receive_dragUPP): New variables.
1879 (mac_handle_service_event, init_service_handler): Put declarations
1880 and definitions in #ifdef MAC_OSX.
1881 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
1882 drag-and-drop handler functions and register them.
1883 (remove_window_handler): New function.
dac24db4
SM
1884 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
1885 Use fsspec_to_posix_pathname.
ba025f6d
YM
1886 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
1887 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
1888 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
1889 Set default cursors.
ba025f6d
YM
1890 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
1891 init_service_handler or init_quit_char_handler.
1892 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
1893
1894 * macterm.h (install_window_handler, remove_window_handler)
1895 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
1896 (mac_clear_font_name_table): New externs.
ad708ae5 1897
c1558952
TTN
18982005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1899
1900 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
1901 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
1902 (Fexpand_file_name): Likewise.
1903
fa439170
TTN
19042005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1905
1906 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
1907 no longer special-case VMS. Add bogus return value.
1908
db2dacf6
KS
19092005-03-02 Kim F. Storm <storm@cua.dk>
1910
1911 * dispextern.h (XASSERTS): Define to 0 if not already defined.
1912 (xassert) [!XASSERTS]: Define dummy version.
1913
0870514c
KS
19142005-03-02 Kim F. Storm <storm@cua.dk>
1915
1916 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
1917 Reported by David Kastrup.
1918
6b640092
KS
19192005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
1920
1921 * xdisp.c (get_next_display_element): Fix control and escape
1922 glyph from display vector.
1923
f4a5a485
SM
19242005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
1925
1926 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
1927
85d964de
RS
19282005-02-27 Richard M. Stallman <rms@gnu.org>
1929
1930 * xdisp.c (fast_find_position): Rename END to BEG.
1931 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
1932
6e8db3ea
JD
19332005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1934
f4a5a485 1935 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
1936 gtk_window_resize and x_wm_set_size_hint.
1937
0f465b55
KS
19382005-02-25 Kim F. Storm <storm@cua.dk>
1939
1940 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
1941
1942 * xdisp.c (init_from_display_pos): Don't read past end of
1943 it->overlay_strings array.
1944
d5fb8dab 19452005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
1946
1947 * buffer.c (syms_of_buffer): Fix typo.
1948
b02c3eed
LK
19492005-02-23 Lute Kamstra <lute@gnu.org>
1950
1951 * buffer.c (Foverlay_buffer): Doc fix.
1952
c8500765
KS
19532005-02-22 Kim F. Storm <storm@cua.dk>
1954
b686dd59
KS
1955 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
1956 and symbol keys in alists and hash tables.
1957
c8500765
KS
1958 * xdisp.c (fast_find_position): Fix search for start of overlay.
1959
81c85b53
KS
19602005-02-21 Kim F. Storm <storm@cua.dk>
1961
1962 * window.c (window_scroll_pixel_based): When scrolling backwards,
1963 handle partial visible line at end of window even when we hit PT.
1964
f4a5a485 19652005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
1966
1967 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
1968
0dd5a842
KS
19692005-02-21 Kim F. Storm <storm@cua.dk>
1970
1971 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
1972 I think those asserts are bogus if buffer contains invisible text
1973 or images.
1974
d5fb8dab 19752005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
1976
1977 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
1978
0fba9f25
KS
19792005-02-20 Kim F. Storm <storm@cua.dk>
1980
1981 * xdisp.c (pos_visible_p): Be sure to move to the specified
1982 position. Always get the full ascent / descent of the
1983 corresponding row, to return reliable rtop and rbot values.
1984 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
1985 Must look one character back, as back_to_previous_line_start
1986 returns position after the newline.
1987 (move_it_vertically_backward): Fix heuristic for when to move further
1988 back in case line_height * 2/3 is larger than window height.
1989 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
1990 as it does not do anything anymore. Add arg current_matrix_p to
1991 use current matrix rather than desired matrix when set.
1992 (try_cursor_movement): Don't scroll to make cursor row fully
1993 visible if cursor didn't move. This avoids unexpected recentering
1994 in case of blinking cursor or accepting process output.
1995 Use current matrix to check cursor row visibility.
1996 (redisplay_window): Fix whether to recenter or move to top in case
1997 cursor line is taller than window height.
1998 (find_first_unchanged_at_end_row): Stop search if we reach a row
1999 which not enabled (instead of abort).
2000
b1c2adc3
KS
20012005-02-18 Kim F. Storm <storm@cua.dk>
2002
c2ee48fb
KS
2003 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
2004 to be nil in a :box attribute value list; customize prints that
2005 as lisp value when no box color is specified.
2006
b1c2adc3
KS
2007 * .gdbinit (pitx, pit): Pretty print display iterator.
2008 (prowx, prow): Pretty print glyph row.
2009 (pcursorx, pcursor): Pretty print a window cursor.
2010 (pwinx, pwin): Pretty print struct window.
2011
f102186f
SM
20122005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2013
2014 * alloc.c (BLOCK_BYTES): Harmless typo.
2015
9b516537
AS
20162005-02-17 Andreas Schwab <schwab@suse.de>
2017
2018 * xfns.c (hack_wm_protocols): Use correct type for last parameter
2019 of XGetWindowProperty to avoid aliasing issues.
2020 (Fx_window_property): Likewise.
2021
2022 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 2023 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
2024
2025 * xterm.c (handle_one_xevent): Use union of struct input_event and
2026 struct selection_input_event to avoid aliasing issues.
2027 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
2028
886b1418
KS
20292005-02-17 Kim F. Storm <storm@cua.dk>
2030
2031 * dispextern.h (enum it_method): New enum.
2032 (GET_FROM_*): Its members.
2033 (struct it): Change member method from function pointer to enum.
2034
2035 * xdisp.c (check_it, init_from_display_pos, handle_stop)
2036 (setup_for_ellipsis, handle_single_display_spec)
2037 (handle_composition_prop, next_overlay_string)
2038 (get_overlay_strings, reseat_1, reseat_to_string)
2039 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
2040 (in_display_vector_p, display_line, get_next_display_element):
2041 Change it->method from function pointer to enum.
2042 (get_next_element): New array to map it->method to function.
2043 (get_next_display_element): Use it.
2044 (set_iterator_to_next): Use switch instead of if/else chain.
2045
99ee2c6a 20462005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
2047
2048 * w32select.c: Summary: Thorough rework to implement Unicode
2049 clipboard operations and delayed rendering.
2050
2051 Drop last_clipboard_text and related code, keep track of
f4a5a485 2052 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
2053
2054 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
2055 (clipboard_owner, modifying_clipboard, cfg_coding_system)
2056 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
2057 (current_coding_system, current_requires_encoding)
f4a5a485
SM
2058 (current_num_nls, current_clipboard_type, current_lcid):
2059 New static variables.
52c7f9ee
JR
2060
2061 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
2062 (render, render_all, run_protected, lisp_error_handler)
2063 (owner_callback, create_owner, setup_config)
f4a5a485
SM
2064 (enum_locale_callback, cp_from_locale, coding_from_cp):
2065 New local functions.
52c7f9ee
JR
2066
2067 (term_w32select, globals_of_w32select): New global functions.
2068
2069 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
2070 clipboard_owner instead. Use delayed rendering and provide
2071 all text formats. Provide CF_LOCALE if necessary.
2072
2073 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
2074 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
2075 available. Force DOS line-ends for decoding.
2076
2077 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
2078
2079 (syms_of_w32select): Init and register new variables.
2080
2081 * w32.h: Add prototypes for globals_of_w32select and
2082 term_w32select. Make the neighboring K&R declarations into
2083 prototypes, too.
2084
2085 * emacs.c: Include w32.h to get function prototypes.
2086 (main): Call globals_of_w32select.
2087
886b1418 2088 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
2089
2090 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
2091
86e61586
KS
20922005-02-16 Kim F. Storm <storm@cua.dk>
2093
2094 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
2095 at end of display vector.
2096
6407f07b
RS
20972005-02-15 Richard M. Stallman <rms@gnu.org>
2098
2099 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
2100 for mode and header lines.
2101
2102 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
2103
2104 * keymap.h (describe_map_tree): Change decl.
2105
2106 * keyboard.c (command_loop_1): Always use safe_run_hooks
2107 to run Qdeferred_action_function.
2108
2109 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
2110 (describe_map, describe_vector): Likewise. When it's 1,
2111 don't omit shadowed bindings, instead mark them as shadowed.
2112
2113 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
2114 for describe_map_tree. Pass 1 for MENTION_SHADOW.
2115
2116 * data.c (Fsetq_default): Allow no arg case.
2117
3bb917bf
KH
21182005-02-14 Kenichi Handa <handa@m17n.org>
2119
2120 * coding.c (encode_coding_string): Always return a unibyte string.
2121 If NOCOPY is nonzero and there's no need of encoding, make STR
2122 unibyte directly.
2123
2124 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
2125 multibyte string, signal an error instead of aborting.
2126
e31d908f
DN
21272005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
2128
2129 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
2130
48e029b6
KS
21312005-02-12 Kim F. Storm <storm@cua.dk>
2132
2133 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
2134
c10bb00a
KS
21352005-02-10 Kim F. Storm <storm@cua.dk>
2136
2137 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
2138 if it moves outside window or it doesn't display text.
2139
9ca0f64a
KS
21402005-02-09 Kim F. Storm <storm@cua.dk>
2141
2142 * undo.c (Fprimitive_undo): Check that undo function does not
2143 switch buffer.
2144
b8d6f4af
JD
21452005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2146
2147 * xselect.c (selection_data_to_lisp_data): For the special case
2148 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
2149 (x_property_data_to_lisp, selection_data_to_lisp_data):
2150 Comment update: data must be array of int for format == 32.
b8d6f4af 2151
3419757d
SM
21522005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2153
2154 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
2155
3a441526
JD
21562005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2157
fc34503b
JD
2158 * xfns.c (Fx_change_window_property): Use long array when format is 32.
2159 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
2160 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
2161 (x_set_tool_bar_lines): Check that width and height is greater than
2162 zero before clearing area.
fc34503b
JD
2163
2164 * xselect.c (x_reply_selection_request): Pass long array to
2165 XChangeProperty so that 64 bit longs are handeled correctly.
2166 (x_get_window_property): If format is 32 and long is bigger than 32
2167 bits convert data from XGetWindowProperty from long array to int array.
2168 (lisp_data_to_selection_data): When the input is a vector and the
2169 format is 32, allocate a long array even if long is bigger than 32 bits.
2170 (x_fill_property_data): Use char, short and long as the man page
2171 for XChangeProperty specifies. This way the data returned is OK for
2172 both 32 and 64 bit machines.
2173 (x_handle_dnd_message): Calculate size correctly even for 64 bit
2174 machines.
2175 (Fx_send_client_event): Undo change from 2005-02-05,
2176 x_fill_property_data now handles that case.
2177
3419757d 2178 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
2179 reason for the approach in the code.
2180
82ec225b
KS
21812005-02-07 Kim F. Storm <storm@cua.dk>
2182
2183 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
2184
ba2c991c
RS
21852005-02-06 Richard M. Stallman <rms@gnu.org>
2186
2187 * eval.c (Frun_hook_with_args)
2188 (Frun_hook_with_args_until_success)
2189 (Frun_hook_with_args_until_failure): Doc fixes.
2190
e120ea40
AS
21912005-02-05 Andreas Schwab <schwab@suse.de>
2192
3419757d 2193 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 2194
31f16913
JD
21952005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2196
2197 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
2198 the longs in a XClientMessageEvent correctly when long is 64 bits.
2199
6082a820
EZ
22002005-02-05 Eli Zaretskii <eliz@gnu.org>
2201
2202 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
2203 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
2204
0e95095b
JD
22052005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2206
2207 * xmenu.c (menubar_selection_callback): Force out GTK buffered
2208 events so the menu event comes after them. This is to prevent sit-for
2209 from exiting on buffered events directly after a menu selection,
2210 lisp code for Help => About Emacs uses sit-for.
2211
2212 * gtkutil.c (create_menus): Connect selection-done event instead of
2213 the deactivate event to deactivate_cb. This will make the last
2214 leave event come before the call to deactivate_cb, so the leave
2215 event does not make sit-for exit after a menu selection.
2216
5bb6a3c1
KS
22172005-02-03 Kim F. Storm <storm@cua.dk>
2218
2219 * dispnew.c (build_frame_matrix_from_leaf_window)
2220 [!GLYPH_DEBUG]: Fix xassert.
2221
2222 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
2223
2224 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2225
e9859e26
YM
22262005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2227
2228 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
2229 the compiling OS version.
2230
2231 * macfns.c (x_create_tip_frame): Likewise.
2232
3419757d 2233 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 2234
4e07258f
RS
22352005-02-03 Richard M. Stallman <rms@gnu.org>
2236
2237 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
2238
2239 * xdisp.c (echo_area_display): Clear echo_message_buffer.
2240
2241 * buffer.c (Fbury_buffer): Doc fix.
2242
4a34b529
ST
22432005-02-02 Steven Tamm <steventamm@mac.com>
2244
7e26f91b 2245 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 2246 xassert being uncondition, but predicate is.
7e26f91b 2247 * dispnew.c (update_window): Fix compile error due to
f6c62d96 2248 xassert being uncondition, but predicate is.
4a34b529 2249
d78f30b8
MB
22502005-02-02 Miles Bader <miles@gnu.org>
2251
2252 * dispextern.h (xassert): Enable unconditionally.
2253
b044278d
KS
22542005-02-02 Kim F. Storm <storm@cua.dk>
2255
2256 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
2257
56072160
KH
22582005-02-02 Kenichi Handa <handa@m17n.org>
2259
2260 * casefiddle.c (casify_object): Enable changing characters of
2261 different byte length.
2262 (casify_region): Fix loop condition, args to replace_range_2, and
2263 update opoint_byte.
2264
f4a5a485 2265 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 2266
5e1674c5
KS
22672005-02-01 Kim F. Storm <storm@cua.dk>
2268
2269 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
2270 stack before calling handle_display_prop.
2271
fb89c330
KS
22722005-01-31 Kim F. Storm <storm@cua.dk>
2273
2274 * undo.c (Qapply): New lisp var.
2275 (syms_of_undo): Intern and staticpro it.
2276 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
2277 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
2278
2279 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2280
7bf72fa6
JH
22812005-01-30 Jesper Harder <harder@phys.au.dk>
2282
a050b1a9
KS
2283 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
2284 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 2285
03c64f2e
LT
22862005-01-29 Luc Teirlinck <teirllm@auburn.edu>
2287
2288 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 2289 Increase value to 3 Meg.
03c64f2e 2290
49b8b5dc
JD
22912005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2292
2293 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
2294 button events are not received otherwise.
2295
5a92a9eb
RS
22962005-01-29 Richard M. Stallman <rms@gnu.org>
2297
2298 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2299
2300 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
2301
5c243ee4
SM
23022005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2303
2304 * keymap.c (access_keymap): YAILOM.
2305
caf533af
KS
23062005-01-27 Kim F. Storm <storm@cua.dk>
2307
2308 * xdisp.c (get_phys_cursor_geometry): New function to calculate
2309 phys cursor position and size for hollow cursor. Position is
2310 aligned with get_glyph_string_clip_rect and ensures that a hollow
2311 cursor is shown, even when the actual glyph is not visible.
2312
2313 * dispextern.h (get_phys_cursor_geometry): Add prototype.
2314
2315 * xterm.c (x_clip_to_row): Ensure y >= 0.
2316 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2317
2318 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2319
2320 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2321
043f7f73
SM
23222005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
2323
2324 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
2325
889f3641
KS
23262005-01-27 Kim F. Storm <storm@cua.dk>
2327
2328 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
2329 glyph, even when row is only partially visible and actual cursor
2330 position is not visible.
2331
29099c2f
RS
23322005-01-24 Richard M. Stallman <rms@gnu.org>
2333
2334 * xterm.c (x_error_quitter): No longer static, and moved after
2335 x_error_handler.
2336
6adb6f01
KS
23372005-01-24 Kim F. Storm <storm@cua.dk>
2338
2339 * xdisp.c (move_it_by_lines): If we move forward after going too
2340 far back, cancel move if end position is same as start position.
2341
4d904fa0
ST
23422005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2343
2344 * dispextern.h (struct glyph_string): New members clip_head and
2345 clip_tail.
6adb6f01 2346
4d904fa0
ST
2347 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
2348 region to the area between clip_head and clip_tail.
2349 (draw_glyphs): Record the area that need to be actually redrawn to
2350 the new variables clip_head and clip_tail when there are
2351 overhangs. Set values of these variables to the corresponding
2352 members in struct glyph_string. Refine x coordinates for
2353 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 2354
4d904fa0
ST
2355 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
2356
2357 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
2358 QDTextBounds.
2359 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 2360 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 2361 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 2362 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 2363
f2417699
KS
23642005-01-24 Kim F. Storm <storm@cua.dk>
2365
6f67f013
KS
2366 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
2367 direction if window height was smaller than next-screen-context-lines.
2368 Now always scroll at least one line in the requested direction.
2369 Ensure that we actually do scroll backwards when requested to do so.
2370
f2417699
KS
2371 * xdisp.c (redisplay_window): Only try to make cursor line fully
2372 visible once (to avoid redisplay loop).
2373
a354b72c
KS
23742005-01-23 Kim F. Storm <storm@cua.dk>
2375
6b3d88f7 2376 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 2377 partially visible rows.
6b3d88f7
KS
2378 (window_scroll_pixel_based): Adapt to that change.
2379
5c20cae2
KS
2380 * window.c (window_scroll_pixel_based): Force moving to next line
2381 if scrolling doesn't move start point, e.g. if looking at tall image.
2382
a354b72c 2383 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
2384 Clear last_height before calling line_bottom_y to get real height.
2385 Fix calculation of y.
a354b72c 2386
d9e7c622
ST
23872005-01-22 Steven Tamm <steventamm@mac.com>
2388
2389 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 2390 (DARWIN): Define.
7e26f91b 2391
d9e7c622
ST
2392 * process.c (init_process): Default process-connection-type to
2393 nil on darwin 6 or less, t if it is 7 or higher. This way the
2394 broken pty behavior is still allowed on darwin 6 for interactive
2395 processes for people that know what they are doing.
2396
d00e399a
KS
23972005-01-22 Kim F. Storm <storm@cua.dk>
2398
2399 * window.c (auto_window_vscroll_p): New boolean.
2400 (syms_of_window): DEFVAR_BOOL it.
2401 (Fpos_visible_in_window_p): Extend return value to include RTOP
2402 and RBOT values if FULLY is nil.
2403 (window_scroll_pixel_based): Adjust vscroll for partially visible
2404 rows if auto_window_vscroll_p is set.
2405 (Fset_window_vscroll): Do nothing if vscroll is not modified.
2406
2407 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
2408 to return number of partially invisible pixels at top and bottom
2409 of the dislay row at POS.
2410
2411 * lisp.h (pos_visible_p): Fix prototype.
2412
f95a20e7
RS
24132005-01-21 Richard M. Stallman <rms@gnu.org>
2414
2415 * fileio.c (Fcopy_file): Doc fix.
2416
eee141ce
JD
24172005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2418
2419 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
2420 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
2421 start of function for older compilers.
2422
6f771c32
RS
24232005-01-20 Richard M. Stallman <rms@gnu.org>
2424
2425 * editfns.c (Fmessage): If arg is "", return "" (as before).
2426
2427 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
2428
2429 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
2430 variable.
2431
a15252fd
ST
24322005-01-20 Steven Tamm <steventamm@mac.com>
2433
043f7f73 2434 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
2435 (init_editfns): Assign new variable operating-system-release
2436 based on call to uname if available.
043f7f73 2437 (get_operating_system_release): Add function to
d00e399a 2438 allow c-level access to operating system release.
a15252fd
ST
2439
2440 * config.h: Regenerated.
2441
043f7f73
SM
2442 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
2443 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
2444 using ptys as '7'.
2445
3d6a4b2d
KS
24462005-01-20 Kim F. Storm <storm@cua.dk>
2447
62fc9b0f
KS
2448 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
2449
c310aca4
KS
2450 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
2451 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
2452
2453 * macterm.c (x_draw_glyph_string_box): Likewise.
2454
2455 * w32term.c (x_draw_glyph_string_box): Likewise.
2456
3d6a4b2d
KS
2457 * indent.c (Fvertical_motion): Temporarily disable selective display.
2458
27c8be45
KS
24592005-01-19 Kim F. Storm <storm@cua.dk>
2460
77db5cf3
KS
2461 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
2462 image property.
2463
27c8be45
KS
2464 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
2465
81f498dc
KS
24662005-01-18 Kim F. Storm <storm@cua.dk>
2467
2468 * xdisp.c (fast_find_position): Backtrack to find first row if
2469 charpos is inside a display overlay that spans multiple lines.
2470
1cdb0707
KH
24712005-01-18 Kenichi Handa <handa@m17n.org>
2472
2473 * coding.c (decode_coding_iso2022): Translate invalid codes if
2474 translation-table is specified.
2475
677159ce
KS
24762005-01-18 Kim F. Storm <storm@cua.dk>
2477
2478 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
2479 change. If handle_display_prop indicates newline is replaced by
2480 image or text, move back to start of relevant overlay or interval
2481 and continue scan from there. Simplify.
2482
977284cc
KS
24832005-01-17 Kim F. Storm <storm@cua.dk>
2484
043f7f73
SM
2485 * dispnew.c (mode_line_string, marginal_area_string):
2486 Fix off-by-one error in search for glyph.
977284cc 2487
e24531b7
KS
24882005-01-16 Kim F. Storm <storm@cua.dk>
2489
2490 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
2491
5ddd7664
ST
24922005-01-16 Steven Tamm <steventamm@mac.com>
2493
043f7f73 2494 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 2495
fc2ff44b
AS
24962005-01-16 Andreas Schwab <schwab@suse.de>
2497
2498 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
2499
50af5100
JD
25002005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2501
2502 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
2503 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
2504
a2d5fca0
JD
25052005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2506
2507 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
2508 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
2509 New flags for readable_events.
043f7f73 2510 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
2511 (tracking_off): Call readable_events and get_input_pending with
2512 flag READABLE_EVENTS_DO_TIMERS_NOW.
2513 (readable_events): Move code from old readable_filtered_events here,
2514 but check new READABLE_EVENTS_* in argument flags instead of previous
2515 two boolean arguments do_timers_now and filter_events.
2516 If we are doing mouse tracking and the mouse moved, return only if
2517 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
2518 (swallow_events): Call get_input_pending with flag
2519 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 2520 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
2521 here. Replace boolean arguments do_timers_now, filter_events with
2522 flags, and pass flags to readable_events. Document new
2523 READABLE_EVENTS_* flags.
2524 (detect_input_pending_ignore_squeezables): New function.
2525 (detect_input_pending_run_timers): Call get_input_pending with flag
2526 READABLE_EVENTS_DO_TIMERS_NOW.
2527 (Finput_pending_p): Call get_input_pending with flags
2528 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
2529
2530 * dispnew.c (update_window, update_frame_1): Replace calls to
2531 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 2532 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
2533 mouse movements.
2534
2535 * lisp.h: Declare detect_input_pending_ignore_squeezables.
2536
42afbcda
ST
25372005-01-15 Steven Tamm <steventamm@mac.com>
2538
e24531b7
KS
2539 * macterm.c (Vmac_use_core_graphics): Declare variable for
2540 mac-allow-anti-aliasing.
2541 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 2542 (mac_draw_string_common): Use core graphics text rendering if
0530c679 2543 mac-allow-anti-aliasing is enabled.
743d0696 2544
42afbcda
ST
2545 * macfns.c (Fx_file_dialog): Save As dialog includes only the
2546 file name in the text box.
2547
9cdd4884
ST
25482005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2549
043f7f73
SM
2550 * macfns.c (x_set_foreground_color, x_set_background_color):
2551 Sync with xfns.c.
9cdd4884
ST
2552 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
2553 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
2554 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
2555
88948d55
KS
25562005-01-14 Kim F. Storm <storm@cua.dk>
2557
2558 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
2559
20d6de82
RS
25602005-01-13 Richard M. Stallman <rms@gnu.org>
2561
2562 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
2563 if Voverriding_terminal_local_map is non-nil.
2564
2565 * keyboard.c (syms_of_keyboard): Doc fix.
2566
f75a592e
KS
25672005-01-13 Kim F. Storm <storm@cua.dk>
2568
2569 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 2570 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 2571
28f94a34
RS
25722005-01-12 Richard M. Stallman <rms@gnu.org>
2573
2574 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
2575 face property for characters that don't specify one.
2576
2577 * fns.c (Frequire): Record in load-history unconditionally.
2578
57a230b1
KS
25792005-01-10 Kim F. Storm <storm@cua.dk>
2580
2581 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
2582
2583 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
2584 Callers changed.
2585 Add support to merge with lisp face id too (if face_name is t).
2586
2587 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2588 Don't lookup lface_id from display table glyphs here; instead use
2589 merge_faces to merge the lisp face id into current face.
2590
8ab2c119
KS
25912005-01-09 Kim F. Storm <storm@cua.dk>
2592
2593 * dispextern.h (struct it): New member dpvec_face_id.
2594 (merge_into_realized_face): Add prototype.
2595
2596 * xfaces.c (merge_into_realized_face): New function. Used to
2597 merge escape-glyph face or face from display table into current face.
2598
2599 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
2600 (syms_of_xdisp): DEFVAR_LISP it.
2601 (escape_glyph_face): Remove var.
2602 (redisplay_window): Don't initialize it.
2603 (setup_for_ellipsis, get_next_display_element):
2604 Set it->dpvec_face_id to -1.
2605 (get_next_display_element): Test Vshow_nonbreak_escape.
2606 Do not setup escape_glyph_face.
2607 Properly merge escape-glyph face or face from display table with
043f7f73
SM
2608 current face for escape and control characters.
2609 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
2610 element of display vector.
2611 (next_element_from_display_vector): If it->dpvec_face_id is set,
2612 use that instead of lface_id from glyph itself.
2613
e0910857
JD
26142005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2615
2616 * xterm.h (struct x_output): New member, toolbar_detached.
2617
2618 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
2619 38.
2620 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
2621 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
2622 (xg_create_tool_bar): Initialize toolbar_detached.
2623 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
2624 toolbar_detached is zero.
2625
ff59904a
JD
26262005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2627
9b85e63d
JD
2628 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
2629 gtk_menu_popup if not for_click, so callbacks for the menu are called.
2630
ff59904a
JD
2631 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
2632 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 2633 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
2634
2635 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 2636 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
2637 XFLOAT_DATA to get extract number from Lisp object.
2638
f9a23a6f
KS
26392005-01-07 Kim F. Storm <storm@cua.dk>
2640
2641 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
2642 Set stop_charpos to current charpos instead of 0.
2643
28f94a34
RS
26442005-01-06 Nick Roberts <nickrob@snap.net.nz>
2645
2646 * xdisp.c (Fformat_mode_line): First arg now required.
2647
a6fffcdc
ST
26482005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2649
2650 * macterm.c (XLoadQueryFont): Correctly handle 0 size
2651 font widths that are returned from some Japanese fonts.
2652
c35b0c6b
KS
26532005-01-06 Kim F. Storm <storm@cua.dk>
2654
2655 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
2656 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
2657 (destroy_fringe_bitmap): Set fringe_faces element to nil.
2658 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
2659 fringe_faces array and init elements to nil.
2660 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
2661 non-persistent face id.
2662 (mark_fringe_data): New function for GC.
2663
2664 * alloc.c (mark_fringe_data): Declare extern.
2665 (Fgarbage_collect): Call mark_fringe_data.
2666
2667 * alloc.c (overrun_check_free): Invalidate freed memory if
2668 XMALLOC_CLEAR_FREE_MEMORY is defined.
2669
e0e76ab9
ST
26702005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2671
2672 * macfns.c: Include sys/param.h.
2673 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
2674 and function.
2675 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
2676 of filename string. Set event callback function when creating
2677 dialog boxes. Add code conversions for filenames. Don't dispose
2678 apple event descriptor record if failed to create it.
2679
2680 * macterm.c: Include sys/param.h.
2681 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
2682 kEventWindowUpdate.
2683 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
2684 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
2685 of FSSpec from apple event descriptor record.
2686 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
2687 size of filename string.
2688 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
2689 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
2690 file dialog is in action.
043f7f73
SM
2691 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
2692 Reject only when there are no filename items. Set background color
e0e76ab9 2693 before (un)highlighting the window below the dragged items.
2313f861 2694 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 2695
043bc640
KH
26962005-01-05 Romain Francoise <romain@orebokech.com>
2697
2698 * term.c (encode_terminal_code): Fix buffer size computation.
2699
dd496df6
RS
27002005-01-04 Richard M. Stallman <rms@gnu.org>
2701
2702 * xdisp.c (Fformat_mode_line): Doc fix.
2703
026cdede
SM
27042005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2705
2706 * alloc.c (refill_memory_reserve): Move.
2707 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
2708 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
2709
d57c7572
RS
27102005-01-03 Richard M. Stallman <rms@gnu.org>
2711
2712 * window.c (window_scroll_pixel_based): Don't correct preserve_y
2713 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
2714
b14f868c
JR
27152005-01-03 Jason Rumney <jasonr@gnu.org>
2716
2717 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
2718 fontp->space_width to FONT_WIDTH so they are valid.
2719
2720 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 2721 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
2722 their appropriate values.
2723
2724 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2725 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
2726 fontp->space_width.
2727
e169f939
ST
27282005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2729
2730 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
2731 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
2732 metrics for max and min bounds.
2733 (x_load_font): Correctly calculate average font width metrics.
2734
19996af4
RS
27352005-01-02 Richard M. Stallman <rms@gnu.org>
2736
2737 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
2738
42d02da0
JD
27392004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2740
2741 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
2742
1db7dd46
RS
27432004-12-31 Richard M. Stallman <rms@gnu.org>
2744
b437860a
RS
2745 * xdisp.c (setup_for_ellipsis, get_next_display_element):
2746 Set it->ellipsis_p to 1 or 0.
2747 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 2748 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
2749 (cursor_row_p): If PT's at the end of the ellipsis the row
2750 ends within, don't display cursor on this row.
2751
2752 * dispextern.h (struct it): New element ellipsis_p.
2753 (struct glyph_row): New element ends_in_ellipsis_p.
2754
2755 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
2756 position if we're reading from something other than the buffer.
2757
1db7dd46
RS
2758 * window.c (window_scroll_pixel_based): Only look at
2759 Vscroll_preserve_screen_position if the old PT can't be kept.
2760 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2761
1225f637
KS
27622004-12-30 Kim F. Storm <storm@cua.dk>
2763
2764 * xdisp.c (get_line_height_property): New function extracted from
2765 original calc_line_height_property.
2766 (calc_line_height_property): Rework. Handle t and (nil . ratio).
2767 (x_produce_glyphs): Use them to handle line-height and
2768 line-spacing according to new height spec.
2769 (Qtotal): Remove.
33b2f4ea 2770 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 2771
c243063e
KH
27722004-12-30 Kenichi Handa <handa@m17n.org>
2773
2774 * fileio.c (Finsert_file_contents): Don't use
2775 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 2776 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
2777
2778 * fontset.h (struct font_info): New members space_width and
2779 average_width.
2780
2781 * frame.h (struct frame): New member space_width.
2782 (FRAME_SPACE_WIDTH): New macro.
2783
2784 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
2785
2786 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2787 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 2788 fontp->space_width.
043f7f73 2789 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
2790 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
2791
2792 * xdisp.c (x_produce_glyphs): Calculate tab width by
2793 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
2794
456e761b
ST
27952004-12-29 Sanghyuk Suh <han9kin@mac.com>
2796
2797 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 2798 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 2799
188577ce
LT
28002004-12-29 Luc Teirlinck <teirllm@auburn.edu>
2801
2802 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
2803
99ec74b9
RS
28042004-12-29 Richard M. Stallman <rms@gnu.org>
2805
2806 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
2807
30c92fab
ST
28082004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2809
2810 * macfns.c (install_window_handler): Modify extern to return OSErr
2811 value.
2812 (mac_window): Handle return value of install_window_handler.
2813
2814 * macterm.c (reflect_byte): Remove function.
2815 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
2816 Lookup table instead.
2817 (mac_do_font_lists): Simplify calculation of the longest
2818 nonspecial string.
2819 (init_mac_drag_n_drop): Remove function and declaration.
2820 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
2821 init_mac_drag_n_drop.
2822 (mac_do_track_drag): New function and declaration.
2823 (install_window_handler): Return OSErr value.
043f7f73
SM
2824 (install_window_handler) [TARGET_API_MAC_CARBON]:
2825 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 2826 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
2827 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
2828 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 2829
4b982924
DN
28302004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2831
2832 * coding.c (decode_coding): Fix previous change.
2833
93fdf45f
RS
28342004-12-28 Richard M. Stallman <rms@gnu.org>
2835
2836 * xdisp.c (back_to_previous_visible_line_start):
2837 Don't call handle_display_prop.
2838
5bdca8af
DN
28392004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2840
2841 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
2842 (decode_coding_emacs_mule, encode_coding_emacs_mule)
2843 (decode_coding_iso2022, encode_designation_at_bol)
2844 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
2845 (decode_coding): Constify arguments and local vars.
2846
33385c6f
JD
28472004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2848
2849 * xmenu.c (popup_get_selection): Only pop down dialogs
2850 on C-g and Escape.
95bdef2e 2851 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
2852 (create_and_show_popup_menu, create_and_show_dialog):
2853 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 2854
b15325b2
ST
28552004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2856
2857 * dispextern.h: Change HAVE_CARBON to MAC_OS.
2858 (struct glyph_string): Likewise.
a2c7e69a 2859
b15325b2
ST
2860 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
2861 mac_initialize.
a2c7e69a 2862
b15325b2
ST
2863 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
2864 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 2865
b15325b2 2866 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 2867
b15325b2
ST
2868 * frame.c (x_set_frame_parameters, x_report_frame_params)
2869 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
2870 (x_set_border_width, Vdefault_frame_scroll_bars):
2871 Change HAVE_CARBON to MAC_OS.
a2c7e69a 2872
b15325b2
ST
2873 * image.c [MAC_OS]: Include sys/stat.h.
2874 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
2875 QuickTimeComponents.h.
a2c7e69a 2876
b15325b2
ST
2877 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
2878 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 2879 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
2880 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
2881 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2882 (mac_clear_font_name_table): Add extern.
2883 (Fmac_clear_font_name_table): New defun.
2884 (syms_of_mac): Defsubr it.
2885 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
2886 [MAC_OSX] (select_and_poll_event): New function.
2887 [MAC_OSX] (sys_select): Use it.
2888 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
2889 [MAC_OSX && SELECT_USE_CFSOCKET]
2890 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
2891 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
2892 RunLoop for simultaneously monitoring two kinds of inputs, window
2893 events and process outputs, without periodically polling.
a2c7e69a 2894
b15325b2
ST
2895 * macfns.c (mac_initialized): Remove extern.
2896 (stricmp): Put in #if 0. All callers changed to use xstricmp in
2897 xfaces.c.
043f7f73
SM
2898 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
2899 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
2900 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
2901 (mac_get_rdb_resource): New function (from w32reg.c).
2902 (x_get_string_resource): Use it.
2903 (install_window_handler): Add extern.
2904 (mac_window): New function.
043f7f73
SM
2905 (Fx_create_frame): Use it instead of make_mac_frame.
2906 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
2907 (Fx_open_connection, Fx_close_connection): New defuns.
2908 (syms_of_macfns): Defsubr them.
043f7f73
SM
2909 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
2910 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
2911 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
2912 (x_create_tip_frame): Don't call ShowWindow.
2913 (Fx_show_tip): Call ShowWindow.
2914 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
2915 TARGET_API_MAC_CARBON'.
2916 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
2917 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 2918
043f7f73 2919 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
2920 (Window): Typedef to WindowPtr and move outside `#if
2921 TARGET_API_MAC_CARBON'.
2922 (XSizeHints): New struct.
a2c7e69a 2923
b15325b2
ST
2924 * macterm.c (x_update_begin, x_update_end)
2925 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
2926 frame.
2927 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2928 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
2929 (construct_mouse_click): Put in #if 0.
2930 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
2931 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
2932 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2933 (activate_scroll_bars, deactivate_scroll_bars)
2934 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
2935 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
2936 if the position is neither user-specified nor program-specified.
2937 (x_free_frame_resources): Free size_hints.
043f7f73 2938 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
2939 (mac_clear_font_name_table): New function.
2940 (mac_do_list_fonts): Initialize font_name_table if needed.
2941 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
2942 around mac_do_list_fonts.
2943 (mac_unload_font): New function.
2944 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
2945 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
2946 and definitions with #if TARGET_API_MAC_CARBON.
2947 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
2948 (install_window_handler): Add decl.
2949 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
2950 window. Use UpdateControls. Get the rectangle that should be
2951 updated and restrict the target of expose_frame to it.
043f7f73 2952 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
2953 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
2954 (do_zoom_window): Don't use x_set_window_size.
2955 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
2956 (install_window_handler): New function.
2957 [!USE_CARBON_EVENTS] (mouse_region): New variable.
2958 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
2959 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
2960 GetEventDispatcherTarget inside BLOCK_INPUT.
2961 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
2962 Update mouse_region when mouse is moved.
2963 (make_mac_frame): Remove.
043f7f73
SM
2964 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
2965 Initialize mouse pointer shapes. Change values of f->left_pos and
2966 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
2967 Don't call ShowWindow.
b15325b2
ST
2968 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
2969 Vinvocation_name and Vsystem_name.
2970 (mac_make_rdb): New function (from w32term.c).
2971 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
2972 already been opened. Don't pass argument to
2973 mac_initialize_display_info. Don't set dpyinfo->height/width.
2974 Add entries to x_display_list and x_display_name_list.
2975 (x_delete_display): New function.
2976 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
2977 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
2978
b15325b2
ST
2979 * macterm.h (check_mac): Add extern.
2980 (struct mac_output): New member size_hints.
2981 (FRAME_SIZE_HINTS): New macro.
2982 (mac_unload_font): Add extern.
a2c7e69a 2983
b15325b2 2984 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 2985
1d1c7e75 2986 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 2987
92d2947b
RS
29882004-12-27 Richard M. Stallman <rms@gnu.org>
2989
043f7f73 2990 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
2991 (syms_of_buffer): Don't defsubr it.
2992
2993 * process.c (list_processes_1): Set undo_list instead
2994 of calling Fbuffer_disable_undo.
2995
043f7f73 2996 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 2997 single_display_prop_string_p.
043f7f73 2998 (single_display_spec_intangible_p): Rename from
92d2947b 2999 single_display_prop_intangible_p.
043f7f73 3000 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
3001 Rewritten to be easier to understand.
3002
a2c7e69a 3003 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
3004 and variables get just NAME.
3005
3006 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
3007
3008 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
3009 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
3010 (Qdefvar): Var deleted.
3011 (syms_of_eval): Don't initialze it.
3012
3013 * lread.c (syms_of_lread) <load-history>: Doc fix.
3014
9f6fcdc5
JD
30152004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3016
3017 * xmenu.c (popup_get_selection): Pop down on C-g.
3018 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
3019 pops down menu on C-g.
3020 (xdialog_show): If dialog popped down and no button in the dialog was
3021 pushed, call Fsignal to quit.
3022 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
3023 Fsignal to quit.
3024
1d1c7e75 3025 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
3026
3027 * gtkutil.c (xg_initialize): Install bindings for C-g so that
3028 dialogs and menus pop down.
3029
d8ca23a0
KH
30302004-12-27 Kenichi Handa <handa@m17n.org>
3031
3032 * coding.c (code_convert_region): Fix calculation of `ratio'.
3033
857ae68b
JD
30342004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3035
133c0116
JD
3036 * gtkutil.c (update_frame_tool_bar): Make the value of
3037 tool-bar-button-margin control margins of images in tool bar.
3038
857ae68b
JD
3039 * alloc.c (check_depth): New variable.
3040 (overrun_check_malloc, overrun_check_realloc): Only add
3041 overhead and write check pattern if check_depth is 1 (to handle
3042 recursive calls). Increase/decrease check_depth in entry/exit.
3043 (overrun_check_free): Only check for overhead if check_depth is 1.
3044 Increase/decrease check_depth in entry/exit.
3045
bd55c35c
JD
30462004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3047
3048 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
3049 before touching input_available_clear_time, to avoid accessing it
3050 from multiple threads.
3051
66354420
JR
30522004-12-23 Jason Rumney <jasonr@gnu.org>
3053
3054 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
3055 of JPEG library.
3056
55f4edbc
RS
30572004-12-22 Richard M. Stallman <rms@gnu.org>
3058
3059 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
3060
3061 * lisp.h (Vundo_outer_limit): Fix decl.
3062
3063 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
3064 Uses changed.
3065 (syms_of_undo): Initialize appropriately.
3066 (truncate_undo_list): If it's nil, there's no limit.
3067
7a0ea9e3
KH
30682004-12-22 Kenichi Handa <handa@m17n.org>
3069
3070 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
3071
fda2922a
RS
30722004-12-21 Richard M. Stallman <rms@gnu.org>
3073
3074 * eval.c (unwind_to_catch): Clear immediate_quit.
3075
3076 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
3077 specially as `\ ' and `\-'.
3078
3079 * keyboard.c (kbd_buffer_store_event_hold):
3080 In the code for while-no-input, handle immediate_quit.
3081
3082 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
3083 Call that at the very start.
043f7f73 3084 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
3085 (syms_of_alloc): Don't define undo-limit,
3086 undo-strong-limit and undo-outer-limit here.
3087
3088 * undo.c (truncate_undo_list): Return void.
3089 Take just one argument, the buffer.
3090 Make it current, and inhibit recursive GC.
3091 Access and update the undo list directly; return void.
3092 Refer to the undo...limit variables directly.
3093 Test undo_outer_limit only after counting the whole current command.
3094 When it's exceeded, call the function in undo-outer-limit-function.
3095 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
3096 (Vundo_outer_limit_function): New variable.
3097 (syms_of_undo): Define undo-limit, undo-strong-limit
3098 and undo-outer-limit here, and undo-outer-limit-function.
3099 Doc fixes.
3100
3101 * lisp.h (truncate_undo_list): Update decl.
3102
31032004-12-21 Piet van Oostrum <piet@cs.uu.nl>
3104
3105 * fileio.c (Fread_file_name): Delete duplicates in
3106 file-name-history when history_delete_duplicates is true.
3107
68c69027
ST
31082004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3109
3110 * macterm.c (mac_do_list_fonts): Fix memory leak
3111
134579f2
RS
31122004-12-20 Richard M. Stallman <rms@gnu.org>
3113
3114 * regex.c (re_match_2_internal) <symend, wordend>:
3115 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
3116
fbe6152f
ST
31172004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3118
043f7f73
SM
3119 * macterm.c (endif, x_font_name_to_mac_font_name):
3120 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
3121 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
3122 quickly finding a specific font without needing regexps.
3123
fecad3f6
JD
31242004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3125
333f1b6f
JD
3126 * syssignal.h: Declare main_thread.
3127 (SIGNAL_THREAD_CHECK): New macro.
3128
3129 * keyboard.c (input_available_signal): Move thread checking code
3130 to macro SIGNAL_THREAD_CHECK and call that macro.
3131 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
3132
3133 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
3134
3135 * emacs.c: Define main_thread.
3136 (main): Initialize main_thread.
3137 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
3138 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
3139
3140 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
3141
3142 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
3143
3144 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
3145
043f7f73
SM
3146 * process.c (send_process_trap, sigchld_handler):
3147 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
3148
3149 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
3150
3151 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
3152
fecad3f6
JD
3153 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
3154 returning when xg_ignore_gtk_scrollbar is true.
3155
2a84c6da
KS
31562004-12-14 Kim F. Storm <storm@cua.dk>
3157
3158 * keyboard.c (read_char): Save and restore echo_string when
3159 handling input method.
3160
d9c1ce9d
RS
31612004-12-13 Richard M. Stallman <rms@gnu.org>
3162
3163 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
3164
3165 * keyboard.c (Vthrow_on_input): New variable.
3166 (syms_of_keyboard): Defvar and initialize it.
3167 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
3168
3169 * lisp.h (QUIT): Check for Vthrow_on_input.
3170 (Vthrow_on_input): Declare it.
3171
a6495ed5
KS
31722004-12-13 Kim F. Storm <storm@cua.dk>
3173
3174 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
3175 vector.
3176
24a0e22f
RS
31772004-12-12 Richard M. Stallman <rms@gnu.org>
3178
3179 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
3180
3181 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
3182 (Ftry_completion): Really use outer `zero'; eliminate inner one.
3183
d6d31e57
KH
31842004-12-12 Kenichi Handa <handa@m17n.org>
3185
3186 * term.c (encode_terminal_code): Fix previous change.
3187
6f8ffb88
SM
31882004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
3189
fb6f5cbf
SM
3190 * keyboard.c (handle_async_input): Remove pthread mutex handling.
3191 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
3192
6f8ffb88
SM
3193 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
3194 in macro arguments.
3195
3196 * minibuf.c (Ftry_completion, Fall_completions): Don't use
3197 XFASTINT blindly.
3198
3199 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
3200
c83c9f9d
JD
32012004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3202
2f25767f
JD
3203 * w32term.c (x_calc_absolute_position): Remove calculation of
3204 difference between inner and outer window. Don't subtract difference
3205 for left and top calculations.
3206
c83c9f9d
JD
3207 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
3208 for left and top calculations. Remove call to x_real_positions.
24a0e22f 3209 [Bug report by Drew Adams in November]
c83c9f9d
JD
3210 (x_check_expected_move): Do not set change_gravity to 1 when calling
3211 x_set_offset.
3212
cc1caa4e
RS
32132004-12-08 Richard M. Stallman <rms@gnu.org>
3214
3215 * xdisp.c (get_next_display_element): Use `escape-glyph' for
3216 control chars and escaped octal codes.
3217 (Qescape_glyph): New variable.
3218 (syms_of_xdisp): Initialize it.
3219 (escape_glyph_face): New variable.
3220 (redisplay_window): Initialize it.
3221
e0e30823
RS
32222004-12-07 Paul Eggert <eggert@cs.ucla.edu>
3223
3224 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
3225 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
3226
f415cacd
JD
32272004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3228
cf435f39
JD
3229 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
3230 reset_malloc_hooks.
3231
6f8ffb88
SM
3232 * keyboard.c (handle_async_input, input_available_signal):
3233 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 3234
f415cacd
JD
3235 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
3236
043f7f73 32372004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
3238
3239 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
3240
3241 * config.in: Regenerate.
3242
ded997c1
JD
32432004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3244
453a4f1b
JD
3245 * xmenu.c (Fx_popup_menu): Correct documentation about position.
3246 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
3247 if not given by a mouse click to correspond with x-popup-menu
3248 documentation.
3249
9a38524c
JD
3250 * config.in: Regenerate.
3251
aa477689
JD
3252 * gtkutil.c: Include signal.h and syssignal.h.
3253 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
3254
3255 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
3256 new variables main_thread and alloc_mutex,
3257 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
3258 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
3259 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
3260 (UN)BLOCK_INPUT.
3261 (emacs_blocked_free, emacs_blocked_malloc)
3262 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
3263 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
3264 (reset_malloc_hooks): New function.
3265
3266 * lisp.h: Declare reset_malloc_hooks.
3267
3268 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
3269
3270 * keyboard.c: Conditionally include pthread.h
6f8ffb88 3271 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
3272 thread, block signal, send signal to main thread and return.
3273
ded997c1 3274 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 3275 Set current folder in file chooser if default_filename is a directory.
ded997c1 3276
c72b0edd
SM
32772004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
3278
3279 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
3280 Remove redundant correctness checks.
3281 (regex_compile): Fix up error codes for \{..\} expressions.
3282
c721eee5
RS
32832004-12-05 Richard M. Stallman <rms@gnu.org>
3284
3285 * regex.c (regex_compile): Fix end-of-pattern case for space.
3286
d8f96db8
ST
32872004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3288
6108209e
KS
3289 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
3290 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 3291 crashes with invalid characters.
6108209e
KS
3292 * macmenu.c (add_menu_item): Use it.
3293 * image.c (image_load_quartz2d): Likewise.
3294 * macfns.c (x_set_name, x_set_title): Likewise.
3295 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
3296 creating them each time for labels.
d8f96db8 3297
ab67e8b6
RS
32982004-12-02 Richard M. Stallman <rms@gnu.org>
3299
3300 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
3301 don't use it here.
3302
3303 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
3304 (interactive_p): Skip Scalled_interactively_p frames
3305 like Sinteractive_p frames.
b8217ea6 3306 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
3307
3308 * data.c (Fmake_variable_buffer_local): Doc fix.
3309 (Fmake_local_variable): Doc fix.
3310
3311 * insdel.c (insert_from_string_before_markers)
3312 (insert_from_string): Don't modify buffer on empty insertion.
3313
3314 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
3315
f86bdc80
ST
33162004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3317
3318 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
3319 menu text as UTF8 fails.
3320
1cae6d39
KS
33212004-12-01 Kim F. Storm <storm@cua.dk>
3322
3323 * alloc.c: Add commentary for last change.
3324 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
3325 sizeof(size_t) != 4.
3326 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
3327 Use them. Also clear header and trailer of freed memory.
3328 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
3329 (string_overrun_cookie): Rename from string_overrun_pattern.
3330 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
3331
77ea0764
AS
33322004-12-01 Andreas Schwab <schwab@suse.de>
3333
3334 * lisp.h: Declare string_to_multibyte.
3335
2d5cd4e6
KH
33362004-12-01 Kenichi Handa <handa@m17n.org>
3337
3338 * w32console.c (w32con_write_glyphs): Decide coding here.
3339 Adjusted for the change of encode_terminal_code.
3340
3341 * term.c (encode_terminal_code): Don't make it "static".
3342
25a0994a
KH
33432004-11-30 Kenichi Handa <handa@m17n.org>
3344
19b1f29a 3345 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 3346 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
3347 characters at once, and return a pointer to the result of encoding.
3348 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
3349 (insert_glyphs): Likewise.
3350 (term_init): Initialize encode_terminal_bufsize to 0.
3351
3352 * coding.c (Vcode_conversion_workbuf_name): New variable.
3353 (syms_of_coding): Initialize and staticpro it.
3354 (set_conversion_work_buffer): New function.
3355 (run_pre_post_conversion_on_str): Use it.
3356 (run_pre_write_conversin_on_c_str): New function.
3357
3358 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
3359
fc7a70cc
ST
33602004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3361
3362 * keyboard.c: Don't undef SIGIO
3363 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
3364 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
3365 (macfns.o): Don't depend on ccl.h.
3366 * macfns.c (mac_frame_parm_handlers): Set handlers for
3367 Qleft_fringe and Qright_fringe.
3368 * macterm.c (mac_fill_rectangle_to_pixmap)
3369 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
3370 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
3371 Put in #if 0.
3372 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
3373 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
3374 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
3375 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3376 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
3377 XDrawImageString. Always draw background and foreground separately.
3378 (x_draw_image_foreground): Use clipping instead of computing the
3379 intersection rectangle.
3380 (x_draw_image_glyph_string): Don't draw an image with mask to a
3381 pixmap.
3382 (x_redisplay_interface): Set flush_display_optional member to 0.
3383 (XTread_socket): Correctly reset the TEConverter
3384 object.
3385
fc368889
KS
33862004-11-30 Kim F. Storm <storm@cua.dk>
3387
3388 * lisp.h: New defines to enable buffer overrun checking.
3389 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
3390 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
3391
3392 * alloc.c: Add more checks for buffer overruns.
3393 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
3394 xmalloc_overrun_check_trailer, overrun_check_malloc)
3395 overrun_check_realloc, overrun_check_free): Add.
3396 (GC_STRING_EXTRA, string_overrun_pattern): Add.
3397 (check_sblock, allocate_string_data, compact_small_strings):
3398 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
3399 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
3400 (check_string_free_list): Add.
3401 (allocate_string, sweep_strings): Call check_string_free_list.
3402
3403 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
3404 XMALLOC_OVERRUN_CHECK to avoid crash during load.
3405
0af8cfe1
KS
34062004-11-29 Kim F. Storm <storm@cua.dk>
3407
3408 * fns.c (concat): Use SAFE_ALLOCA.
3409
77220eeb
SM
34102004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
3411
3412 * sysdep.c (emacs_write): Don't use QUIT.
3413
a778cf63
KH
34142004-11-29 Kenichi Handa <handa@m17n.org>
3415
3416 * buffer.c (init_buffer): Set current_buffer->directory to a
3417 multibyte string made by string_to_multibyte.
3418
77220eeb 3419 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 3420
e3177e43
AS
34212004-11-27 Andreas Schwab <schwab@suse.de>
3422
3423 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
3424
3425 * s/gnu-linux.h: Enable no-op gcpros on ia64.
3426 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
3427
77220eeb
SM
3428 * filelock.c (lock_file_1): Call get_boot_time early.
3429 Increase buffer size.
e3177e43 3430
ca5e6fef
EZ
34312004-11-27 Eli Zaretskii <eliz@gnu.org>
3432
3433 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
3434 is not defined.
3435
e2811828
KS
34362004-11-27 Kim F. Storm <storm@cua.dk>
3437
3438 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
3439 marker out of doc string.
3440
7a262394
SM
34412004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
3442
3443 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
3444 which was not mentioned in the log.
3445
f33cc5a9
KS
34462004-11-26 Kim F. Storm <storm@cua.dk>
3447
048bb03f
KS
3448 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
3449 angle bitmaps at top/bottom line.
3450
52eb0373 3451 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
3452 set it when it->method is set to next_element_from_display_vector.
3453 (setup_for_ellipsis): Add LEN argument. Callers changed.
3454 Set it->saved_face_id.
3455 (get_next_display_element): Use loop instead of recursion.
3456 Set it->saved_face_id. Combine duplicate code for ctr chars.
3457 (next_element_from_display_vector): Do not set it->saved_face_id.
3458 (next_element_from_ellipsis): Use setup_for_ellipsis.
3459
670e8906
EZ
34602004-11-26 Eli Zaretskii <eliz@gnu.org>
3461
3462 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
3463 prevent compiler warnings.
3464
275464e7
SM
34652004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
3466
1bf0e604
SM
3467 * keyboard.c (command_loop_1): Print a message describing the key
3468 the user just pressed when this key has no binding.
3469
275464e7
SM
3470 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
3471 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
3472
3473 * lread.c (readchar): Check QUIT when `getc' is interrupted.
3474
261b01c6
RS
34752004-11-24 Richard M. Stallman <rms@gnu.org>
3476
3477 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
3478
3479 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
3480
a5bd504e
KS
34812004-11-24 Kim F. Storm <storm@cua.dk>
3482
3483 * xdisp.c (move_it_in_display_line_to, display_line):
3484 Restore saved_face_id also when truncate-lines or hscrolled.
3485
255e4140
JD
34862004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3487
3488 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
3489 x-use-old-gtk-file-dialog.
3490
3491 * xfns.c: Define x_use_old_gtk_file_dialog.
3492 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
3493 outside ifdef USE_GTK.
3494
cab27d04
SM
34952004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
3496
3497 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
3498 Don't use XFASTINT blindly.
3499
3500 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
3501
3502 * indent.c (skip_invisible): Avoid non-idempotent side-effects
3503 in macro arguments.
3504
3505 * keymap.c (Flookup_key): Check INTEGERP before XINT.
3506
3507 * lread.c (oblookup): Don't use XFASTINT blindly.
3508
3509 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
3510 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
3511
11e0be49
KS
35122004-11-23 Kim F. Storm <storm@cua.dk>
3513
4d721114
KS
3514 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
3515 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
3516
11e0be49
KS
3517 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
3518 signal_p is zero and face name is unknown.
3519 (Fx_list_fonts): Don't signal error in lookup_named_face.
3520 (Fface_font): Signal error in lookup_named_face.
3521 (ascii_face_of_lisp_face): Likewise.
3522
3523 * dispextern.h (lookup_named_face): Fix prototype.
3524
3525 * xdisp.c (handle_single_display_prop): Don't signal error in
3526 lookup_named_face for unknown fringe face name.
3527 (highlight_trailing_whitespace): Don't signal error in
3528 lookup_named_face if trailing-whitespace face unknown.
3529 (calc_line_height_property): Don't signal error in
3530 lookup_named_face if specified face name is unknown.
3531
3532 * fringe.c (update_window_fringes): Show top row indicator if
3533 window has header-line. Don't show arrow at bob and eob
3534 if the boundary indicators are not used.
3535 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
3536
3537 * window.c (set_window_buffer): Clear display_error_modiff.
3538
0960a582
KS
35392004-11-22 Kim F. Storm <storm@cua.dk>
3540
3541 * fringe.c (update_window_fringes): Provide sensible fall-back
3542 value for non-nil indicate-buffer-boundaries setting.
3543
b0e9bb28
MR
35442004-11-22 Markus Rost <rost@ias.edu>
3545
3546 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
3547
d0bce91e
SM
35482004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
3549
3550 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
3551
e1814672
KS
35522004-11-21 Kim F. Storm <storm@cua.dk>
3553
b7fd3518
KS
3554 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
3555
3556 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
3557 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3558
3559 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
3560 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3561
3562 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
3563 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3564
d0bce91e
SM
3565 * xdisp.c (move_it_in_display_line_to, display_line):
3566 Restore saved_face_id if overflow-newline-into-fringe is enabled and
3567 line is continued before or in middle of element from display vector.
f01d4d05 3568
f1a61389
KS
3569 * indent.c (Fvertical_motion): Fix last change. Use another
3570 method to detect if iterator moved too far ahead after reseat.
3571
e1814672
KS
3572 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
3573 expand matrix width for overflow in zero-width area.
3574 (append_glyph, append_composite_glyph, produce_image_glyph)
3575 (append_stretch_glyph): Use it to avoid loop in redisplay.
3576 (note_mode_line_or_margin_highlight): Don't let help-echo from
3577 string override help-echo from image map.
3578
2dafe1c9
LT
35792004-11-20 Luc Teirlinck <teirllm@auburn.edu>
3580
d0bce91e 3581 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
3582 * callint.c (Fcall_interactively): Ditto.
3583
fd6866c8 35842004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
3585
3586 * minibuf.c (Fminibuffer_complete_and_exit):
3587 Fixup the case of the completed value, for case-indep completion.
3588
dedbac89
RS
35892004-11-20 Richard M. Stallman <rms@gnu.org>
3590
fd6866c8
RS
3591 * lisp.h (Fread_from_minibuffer): Add arg in decl.
3592
9d00469f 3593 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 3594 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 3595
dedbac89 3596 * search.c (Vsearch_spaces_regexp):
d0bce91e 3597 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 3598
2f672bb5
TTN
35992004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
3600
3601 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
3602
f31a9a68
RS
36032004-11-19 Richard M. Stallman <rms@gnu.org>
3604
3605 * search.c (Vsearch_whitespace_regexp): New variable.
3606 (syms_of_search): Defvar it.
3607 (compile_pattern_1): Call re_set_whitespace_regexp with it.
3608 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
3609 is non-nil.
6de891db
RS
3610 (struct regexp_cache): New element whitespace_regexp.
3611 (syms_of_search): Initialize whitespace_regexp elements.
3612 (compile_pattern): Compare whitespace_regexp elements.
3613 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
3614
3615 * regex.c (regex_compile): Substitute whitespace_regexp
3616 for spaces, if it is nonzero.
3617 (whitespace_regexp): New variable.
3618 (re_set_whitespace_regexp): New function.
3619
cbc34cb3
KS
36202004-11-19 Kim F. Storm <storm@cua.dk>
3621
3622 * indent.c (Fvertical_motion): Fix last change.
3623
b54a7539
KS
36242004-11-18 Kim F. Storm <storm@cua.dk>
3625
3626 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
3627 Instead, move back again if reseating moves too far ahead.
3628
36292004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
3630
3631 * xdisp.c (message3): Call clear_message.
3632
5ff504fe
KS
36332004-11-17 Kim F. Storm <storm@cua.dk>
3634
3635 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
3636
5ae53dcf
JD
36372004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3638
d0bce91e 3639 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 3640
6abf3a27 3641 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
3642 (x_menu_set_in_use): Also set popup_activated_flag.
3643
5ff504fe 3644 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
3645 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
3646
52eb0373 3647 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 3648
ee31cd78
RS
36492004-11-16 Richard M. Stallman <rms@gnu.org>
3650
6abf3a27
SM
3651 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
3652 Use map-keymap-internal to implement that.
ee31cd78
RS
3653
3654 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
3655
6abf3a27
SM
36562004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3657
3658 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
3659 a window before using XWINDOW.
3660
3661 * window.c (make_window, Fselect_window, make_dummy_parent)
3662 (save_window_save):
3663 * frame.c (make_frame):
3664 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
3665
3666 * lisp.h (NILP): Use EQ rather than XFASTINT.
3667
b4d61105
KS
36682004-11-16 Kim F. Storm <storm@cua.dk>
3669
6abf3a27 3670 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 3671
b4d61105
KS
3672 * indent.c (Fvertical_motion): Fix last change. Only reseat when
3673 moving backwards.
3674
36752004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
3676
3677 * dispextern.h: Extern reseat_at_previous_visible_line_start.
3678
ab5b02b0
KH
36792004-11-16 Kenichi Handa <handa@m17n.org>
3680
3681 * xdisp.c (display_mode_element): Fix previous change (calculate
3682 end position of substring to display correctly).
3683
c482cf97
KS
36842004-11-16 Kim F. Storm <storm@cua.dk>
3685
3686 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
3687 Reported by Andrew M. Scott.
3688
9f89426b
KS
36892004-11-15 Kim F. Storm <storm@cua.dk>
3690
3691 * fns.c (Fsafe_plist_get): New defun.
3692 (syms_of_fns): Defsubr it.
3693
3694 * lisp.h (Fsafe_plist_get): Add EXFUN.
3695
3696 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
3697 Use Fsafe_plist_get.
3698 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3699 Fix image map element parsing. Use Fsafe_plist_get.
3700
27418463
RS
37012004-11-15 Richard M. Stallman <rms@gnu.org>
3702
3703 * xdisp.c (get_next_display_element): Fix previous change.
3704
a130b901
JD
37052004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3706
ef614e04
JD
3707 * window.c (shrink_windows): Handle special case of one window left
3708 when trying to shrink the final reminder. Grow windows if
3709 total_removed is less than total_shrink.
3710
a130b901
JD
3711 * xmenu.c (pop_down_menu): Remove global variable current_menu,
3712 extract pointer from arg with XSAVE_VALUE.
46303896
KS
3713 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
3714 Construct arg to record_unwind_protect with make_save_value.
a130b901 3715
d9a03ad2
RS
37162004-11-13 Richard M. Stallman <rms@gnu.org>
3717
3718 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
3719 (get_next_display_element): Fix previous change to apply only to \n.
3720
3721 * indent.c (Fvertical_motion): Scan to PT from start of line to
3722 make iterator consistent.
3723
3724 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3725
b3935289
JD
37262004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3727
3728 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
3729
3730 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
3731 Record unwind with clean_up_file_dialog.
3732
78819ebb
KS
3733 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
3734 Declare.
b3935289
JD
3735
3736 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
3737
af89e871
JD
37382004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3739
457a8155 3740 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 3741 (xg_file_sel_destroy): Remove.
46303896
KS
3742 (xg_file_response_cb, pop_down_file_dialog)
3743 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 3744 New functions.
6abf3a27
SM
3745 (xg_get_file_with_chooser, xg_get_file_with_selection):
3746 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
3747 Move common code to xg_get_file_name. Return widget created.
3748 (xg_get_file_name): Set name, transient for, modal and destroy
3749 with parent here. Connect response signal to xg_file_response_cb,
3750 connect delete-event to gtk_true. Record pop_down_file_dialog
3751 for unwind. Do event loop and call x_menu_wait_for_event in loop.
3752 (xg_create_widget): Make dialogs modal.
3753
af89e871
JD
3754 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
3755 Lisp_Object.
3756 (popup_get_selection): Move unwind protect ...
3757 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3758 Move destroy of widget to pop_down_menu.
3759 (popup_widget_loop): Move unwind protect ...
3760 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3761 Move destroy of widget to pop_down_menu.
3762 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 3763 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
3764 x_mouse_leave and grabbed = 0 to pop_down_menu.
3765
5596fbf1
KS
37662004-11-13 Kim F. Storm <storm@cua.dk>
3767
3768 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
3769 (syms_of_xdisp): DEFVAR_BOOL it.
3770 (make_cursor_line_fully_visible, try_cursor_movement)
3771 (try_window_id): Use it.
3772
b9de078a
KS
37732004-11-12 Kim F. Storm <storm@cua.dk>
3774
381f7091
KS
3775 * dispextern.h (struct glyph_row): New member extra_line_spacing.
3776 (struct it): New member max_extra_line_spacing.
3777 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
3778 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
3779 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
3780 part of last line is only extra line spacing (so the text on the
52eb0373 3781 line is fully visible). Use helper macros.
381f7091
KS
3782 Add W arg (to use them). All callers changed.
3783 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
3784 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
3785
6abf3a27
SM
3786 * window.c (window_scroll_pixel_based, Frecenter):
3787 Use move_it_vertically_backward directly.
381f7091
KS
3788 (Frecenter): Fix calculation of new start pos for negative arg.
3789 Before, the new start pos was sometimes chosen too far back, so
3790 the last line became only partially visible, and thus would be
3791 either only semi-visible or automatically scrolled to the middle
3792 of the window by redisplay.
3793
3794 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
3795 (move_it_vertically_backward): Don't recure to move further back.
3796 (move_it_vertically): Remove superfluous condition.
3797 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 3798 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
3799 (display_tool_bar_line): Clear row->extra_line_spacing.
3800 (try_scrolling): Use move_it_vertically_backward directly.
3801 (redisplay_window): Likewise.
3802 (compute_line_metrics): Set row->extra_line_spacing.
3803 (display_line, display_string): Likewise.
3804 (x_produce_glyphs): Update it->max_extra_line_spacing.
3805
b9de078a
KS
3806 * xmenu.c (pop_down_menu): Return nil.
3807
c3438661
JD
38082004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3809
3810 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 3811 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 3812 to handle timers.
df00f436
JD
3813 (popup_widget_loop): Add argument do_timers.
3814 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
3815 do_timers to popup_widget_loop.
c3438661
JD
3816 (xmenu_show): Call XMenuActivateSetWaitFunction so that
3817 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 3818 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 3819 popup_get_selection.
f1d1cd24
JD
3820 (pop_down_menu): New function.
3821 (popup_get_selection, popup_widget_loop): Unwind protect to
3822 pop_down_menu.
3823 (popup_widget_loop): Add argument widget.
3824 (create_and_show_popup_menu, create_and_show_dialog): Pass new
3825 argument widget to popup_widget_loop.
c3438661 3826
32e2fb04
SM
38272004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3828
3829 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
3830
0faf6806
KS
38312004-11-09 Kim F. Storm <storm@cua.dk>
3832
3833 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
3834 Fix various comments referring to XEvents instead of input events.
3835 (x_queue_event): Fix format strings.
3836 (x_stop_queuing_selection_requests): Likewise.
3837
3838 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
3839 (pint2hrstr): Add extra braces to silence compiler.
3840
3841 * print.c (print_object): Fix format string.
3842
3843 * lread.c (read1): Fix next_char matching.
3844
3845 * lisp.h (Fdelete): Add EXFUN.
3846 (replace_range_2): Add prototype.
3847
3848 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
3849
3850 * intervals.h (NULL_INTERVAL_P): Add separate version when
3851 ENABLE_CHECKING is not defined to silence compiler.
3852 (compare_string_intervals): Add prototype.
3853
3854 * fringe.c (destroy_fringe_bitmap): Fix return type.
3855 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
3856
3857 * emacs.c (Fdump_emacs): Fix format string.
3858
3859 * doc.c: Include <ctype.h>.
3860 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
3861
3862 * data.c (store_symval_forwarding): Remove unused variables.
3863
3864 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
3865
16bf4e32
JD
38662004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3867
3868 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
3869 to ${OLDXMENU}.
3870
cdb805a9
KS
38712004-11-09 Kim F. Storm <storm@cua.dk>
3872
3873 * process.c (Fmake_network_process): Remove kludge for interrupted
3874 connects on BSD. If connect is interrupted, just close socket and
3875 start over rather than sleeping and retry with same socket.
3876
d87a9ab8 38772004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 3878
a8b16c80
JD
3879 * .cvsignore: Add buildobj.lst.
3880
d87a9ab8
JD
3881 * doc.c: New variable Vbuild_files.
3882 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 3883 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
3884 that are in Vbuild_files.
3885 (syms_of_doc): Defvar Vbuild_files.
3886
3887 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
3888 and w32*.o.
3889 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 3890 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
3891
3892 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
3893 is linked.
3894
b6709e77
KS
38952004-11-09 Kim F. Storm <storm@cua.dk>
3896
3897 * fringe.c (update_window_fringes): Update fringe bitmaps if
3898 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
3899 also update previous row to get rid of misc. artifacts.
3900
bae9677d
KS
39012004-11-08 Kim F. Storm <storm@cua.dk>
3902
3903 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 3904 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 3905
3f8ea68c
EZ
39062004-11-08 Eli Zaretskii <eliz@gnu.org>
3907
3908 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
3909 Don't include <sys/time.h> explicitly.
3910 Include <stdio.h> unconditionally, not just on MacOS.
3911
a653f812
KH
39122004-11-08 Kenichi Handa <handa@m17n.org>
3913
3914 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
3915 don't pay attention to '\' before '*'.
3916 (fontset_pattern_regexp): Change the meaning of the second arg.
3917 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
3918 (check_fontset_name): Try NAME as literal at first, and if it
3919 failes, try NAME as pattern.
3920
c37caf9d
JD
39212004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3922
3923 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
3924
b72915a7
AS
39252004-11-07 Andreas Schwab <schwab@suse.de>
3926
78819ebb
KS
3927 * lisp.h (Fmsdos_downcase_filename): Declare.
3928 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
3929 * fileio.c: Likewise.
3930
238a44a8
JD
39312004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3932
3933 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
3934 comparisons with integers instead of Lisp_Object address.
3935 (Fmsdos_set_keyboard): Declare argument allkeys.
3936
3937 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
3938
78819ebb 3939 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
3940 int/Lisp_Object mixup.
3941
3942 * fileio.c: Ditto.
3943
31141c13
ST
39442004-11-06 Steven Tamm <steventamm@mac.com>
3945
3946 * editfns.c: Need to include sys/time.h before resource.h on darwin.
3947
f28c1bd9
RS
39482004-11-06 Richard M. Stallman <rms@gnu.org>
3949
3950 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
3951
3952 * xfaces.c (merge_named_face): GCPRO the face_name in the
3953 named_merge_point struct that we make.
3954 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
3955
3956 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
3957 before deciding whether to inactivate mark.
3958
59dede22
EZ
39592004-11-06 Lars Brinkhoff <lars@nocrew.org>
3960
3961 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
3962 * editfns.c (Fget_internal_run_time): New function.
3963 (syms_of_data): Defsubr it.
3964 * fns.c (sxhash): As far as possible, merge calculation of
3965 hash code for symbols and strings.
59dede22 3966
27540e81
EZ
39672004-11-06 Eli Zaretskii <eliz@gnu.org>
3968
3969 * frame.c (syms_of_frame): Fix the example in the doc string.
3970
df470e3b
JD
39712004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3972
3973 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
3974
3975 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
3976 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 3977
4cc8522c
LT
39782004-11-05 Luc Teirlinck <teirllm@auburn.edu>
3979
3980 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
3981
d4a42098
KS
39822004-11-05 Kim F. Storm <storm@cua.dk>
3983
a8490886
KS
3984 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
3985
d4a42098
KS
3986 * fileio.c (Ffile_modes): Doc fix.
3987 (auto_save_1): Check for Ffile_modes nil value.
3988
36a2b04c
KS
39892004-11-05 Kim F. Storm <storm@cua.dk>
3990
3991 * xselect.c (struct selection_event_queue, selection_queue)
3992 (x_queue_selection_requests, x_queue_event)
3993 (x_start_queuing_selection_requests)
3994 (x_stop_queuing_selection_requests): Add new queue for selection
3995 input events to replace previous XEvent queue in xterm.c.
3996 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
3997 (x_reply_selection_request): Adapt to new queue.
3998 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
3999 (x_handle_selection_request, x_handle_selection_clear): Make static.
4000 (x_handle_selection_event): New function. May queue selection events.
4001 (wait_for_property_change_unwind): Use save_value instead of cons.
4002 Clear property_change_reply_object.
4003 (wait_for_property_change): Abort if already waiting.
4004 Use save_value instead of cons for unwind data.
4005 (x_handle_property_notify): Skip events already arrived, but don't
4006 free them, as "arrived" field is checked by wait_for_property_change,
4007 and it will be freed by unwind or explicit unexpect_property_change.
4008 (x_get_foreign_selection): Add to new queue.
4009 (receive_incremental_selection): Don't unexpect wait_object when done
4010 as it has already been freed by previous wait_for_property_change.
4011
4012 * xterm.h (x_start_queuing_selection_requests)
4013 (x_stop_queuing_selection_requests, x_handle_selection_request)
4014 (x_handle_selection_clear): Remove prototypes.
4015 (x_handle_selection_event): Add prototype.
4016
4017 * xterm.c (handle_one_xevent): Don't queue X selection events
4018 here, it may be too late if we start queuing after we have already
4019 stored some selection events into the kbd buffer.
4020 (struct selection_event_queue, queue, x_queue_selection_requests)
4021 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
4022 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
4023 (x_catch_errors_unwind): Block input around final XSync.
4024
4025 * keyboard.h (kbd_buffer_unget_event): Add prototype.
4026
4027 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
4028 (kbd_buffer_unget_event): New function.
4029 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
4030 and use x_handle_selection_event.
4031 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
4032
9c3ad9e1
JD
40332004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4034
4035 * xselect.c (TRACE3): New debug macro.
4036 (x_reply_selection_request): Use it.
4037 (receive_incremental_selection): In call to TRACE0, the name of
4038 a symbol is in xname.
4039
a33b89de
KS
40402004-11-05 Kim F. Storm <storm@cua.dk>
4041
4042 * fontset.c (fontset_pattern_regexp): Use unsigned char.
4043
a872928c
JD
40442004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4045
88208bb8
JD
4046 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
4047
78819ebb 4048 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
4049
4050 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 4051 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
4052 * xfns.c (syms_of_xfns): ... to here.
4053
a872928c
JD
4054 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
4055 it doesn't start with /.
4056
b912921c
KH
40572004-11-04 Kenichi Handa <handa@m17n.org>
4058
4059 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
4060 treat it as a literal character.
4061
c524d9a6
KS
40622004-11-03 Kim F. Storm <storm@cua.dk>
4063
4064 * .gdbinit (ppt): New function.
4065
8cfd0f36
JD
40662004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4067
a11e1dce
JD
4068 * xterm.c (x_window_to_scroll_bar): Only call
4069 xg_get_scroll_id_for_window if toolkit scroll bars are used.
4070
8cfd0f36
JD
4071 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
4072 of save.
4073
a93563fd
AS
40742004-11-02 Andreas Schwab <schwab@suse.de>
4075
4076 * window.c (Fscroll_right): Fix last change.
4077
2b2d59d8
KS
40782004-11-02 Kim F. Storm <storm@cua.dk>
4079
4080 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
4081
40822004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4083
4084 * callproc.c (Fcall_process): Block input around vfork.
4085
ca28104d
KS
40862004-11-02 Kim F. Storm <storm@cua.dk>
4087
4088 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
4089 (syms_of_eval): Defsubr it.
4090
29bb7127
RS
40912004-11-02 Richard M. Stallman <rms@gnu.org>
4092
4093 * insdel.c (replace_range_2): New function.
4094
4095 * casefiddle.c (casify_region): Handle changes in byte-length
4096 using replace_range_2.
4097
4098 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
4099
b6189c3b 4100 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
4101 Subtract 1 from pos when checking previous newline for invisibility.
4102
4103 * window.c (window_scroll_pixel_based): Update preserve_y
4104 for header line if any.
4105 (Fscroll_left, Fscroll_right): Don't call interactive_p;
4106 use a new second argument instead.
4107
4108 * eval.c (Fcall_interactive_p): New function.
4109 (interactive_p): Don't test INTERACTIVE here.
4110 (Finteractive_p): Doc fix.
4111
4112 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
4113
b6189c3b 41142004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
4115
4116 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 4117 comparing font names.
a3fe4aaf 4118
2a00cdb4
JD
41192004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4120
f9d64bb3
JD
4121 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
4122 Fx_file_dialog if only directories should be read.
4123
4124 * lisp.h: Fx_file_dialog takes 5 parameters.
4125
32e2fb04
SM
4126 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
4127 Add parameter only_dir_p.
f9d64bb3
JD
4128 In Motif version, don't put DEFAULT_FILENAME in filter part of the
4129 dialog, just text field part. Do not add DEFAULT_FILENAME
4130 to list of files if it isn't there.
4131 In GTK version, pass only_dir_p parameter to xg_get_file_name.
4132
32e2fb04
SM
4133 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
4134 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
4135 a save dialog, add option kNavDontConfirmReplacement, change title
4136 to "Enter name", change text for save button to "Ok".
4137
32e2fb04
SM
4138 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
4139 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
4140
4141 * gtkutil.c (xg_get_file_with_chooser)
4142 (xg_get_file_with_selection): New functions, only defined ifdef
4143 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
4144 respectively.
4145 (xg_get_file_name): Add parameter only_dir_p.
4146 Call xg_get_file_with_chooser or xg_get_file_with_selection
4147 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
4148 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
4149
4150 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
4151
2a00cdb4
JD
4152 * config.in: Rebuild (added HAVE_GTK_FILE_*).
4153
f6749d5d
KS
41542004-11-01 Kim F. Storm <storm@cua.dk>
4155
32e2fb04
SM
4156 * process.c (connect_wait_mask, num_pending_connects):
4157 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 4158 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
4159 (IF_NON_BLOCKING_CONNECT): New helper macro.
4160 (wait_reading_process_output): Only declare and use local vars
4161 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 4162
1a99fe1a
JR
41632004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
4164
4165 * w32term.c (x_scroll_run): Delete region objects after use.
4166
fcdb28b4
JD
41672004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4168
495ef86b
JD
4169 * xmenu.c: Add prototypes for forward function declarations.
4170 (popup_get_selection): Remove parameter do_timers, remove call to
4171 timer_check.
32e2fb04
SM
4172 (create_and_show_popup_menu, create_and_show_dialog):
4173 Remove parameter do_timers from call to popup_get_selection.
495ef86b 4174
12e6566a
JD
4175 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
4176 tool_bar_items and assign the result to f->tool_bar_items if
4177 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
4178 tool_bar_items to assignment of result.
4179
fcdb28b4
JD
4180 * atimer.c (alarm_signal_handler): Do not call set_alarm if
4181 pending_atmers is non-zero.
4182
1a1a0c4c
KS
41832004-10-31 Kim F. Storm <storm@cua.dk>
4184
4185 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
4186
a36f1680
JW
41872004-10-28 Will <will@glozer.net>
4188
1d1c7e75 4189 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
4190 key via a 'mac-option-modifier' variable.
4191
32e2fb04 41922004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
4193
4194 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
4195 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
4196 (x_handle_selection_request, x_handle_selection_clear)
4197 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
4198
4f71c13f
RS
41992004-10-28 Richard M. Stallman <rms@gnu.org>
4200
4201 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4202
4203 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4204
068f3848
SM
42052004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
4206
4207 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
4208 comment-starter over a 1-char one.
4209
4660a9e3
RS
42102004-10-27 Richard M. Stallman <rms@gnu.org>
4211
4212 * xdisp.c (get_next_display_element): In mode lines,
4213 treat newline and tab like other control characters.
4214
4215 * editfns.c (Fmessage): Doc fix.
4216
4217 * indent.c (vmotion): When moving up, check the newline before.
4218 Make prevline an int, not a Lisp_Object.
4219
233f3db6
KS
42202004-10-27 Kim F. Storm <storm@cua.dk>
4221
4222 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
4223 Only allocate info and discarded tables once.
4224
4225 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
4226 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
4227 (SAFE_FREE): Test it to determine if we need to unwind to free.
4228 Remove size arg. All users changed.
4229 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
4230
1442465d
JD
42312004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4232
4233 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
4234 (xg_destroy_widgets): Rename from remove_from_container.
4235 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
4236 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
4237 instead of remove_from_container.
4238 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
4239 (free_frame_tool_bar): Add comment.
4240
4241 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
4242 is not NULL before strcmp.
4243
c8636435
KS
42442004-10-26 Kim F. Storm <storm@cua.dk>
4245
4246 * callint.c (Fcall_interactively): Add 'U' code to get the
4247 up-event discarded by a previous 'k' or 'K' argument.
4248
5629f29b
DK
42492004-10-26 David Kastrup <dak@gnu.org>
4250
4251 * buffer.c (syms_of_buffer): Fix a few typos.
4252
4f2f546e
JD
42532004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4254
4255 * xsmfns.c: Put empty line between comment and function body.
4256 Use two spaces before comment end.
4257
fc1062f5
KH
42582004-10-25 Kenichi Handa <handa@m17n.org>
4259
4260 * fontset.c (fontset_pattern_regexp): Optimize for the case that
4261 PATTERN is full XLFD.
4262
be13f5e5
KH
42632004-10-24 Kenichi Handa <handa@m17n.org>
4264
4265 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
4266
4267 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
4268 (regex_compile): Return REG_ERANGEX if appropriate.
4269
d0ee2ed3
KH
42702004-10-22 Kenichi Handa <handa@m17n.org>
4271
4272 * editfns.c (Ftranslate_region_internal): New function.
4273 (syms_of_editfns): Defsubr it.
4274
63ea8ea5
JD
42752004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4276
4277 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
4278
9ba27690 42792004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 4280
068f3848
SM
4281 * xterm.h (x_output): New member `xic_base_fontname'.
4282 (FRAME_XIC_BASE_FONTNAME): New macro.
4283 (xic_free_xfontset): Declare.
c27ed90a 4284
068f3848
SM
4285 * xfns.c (xic_create_xfontset): Share fontsets between frames
4286 based on base_fontname.
4287 (xic_free_xfontset): New function.
4288 (free_frame_xic): Use it.
4289 (xic_set_xfontset): Ditto.
c27ed90a 4290
068f3848 4291 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
4292
4293
59508699
JR
42942004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
4295
4296 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
4297
dede2792
JD
42982004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4299
3aca2078
JD
4300 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
4301 XSync.
4302
dede2792
JD
4303 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
4304 New variables and constant.
4305 (main): Calculate heap_bss_diff. If we are dumping and the
4306 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
4307 and exec ourself again.
4308 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
4309 print a warning.
4310
4311 * lastfile.c: Make my_endbss and my_endbss_static available on all
4312 platforms.
4313
4314 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
4315 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
4316
1dc5ba01
LT
43172004-10-19 Luc Teirlinck <teirllm@auburn.edu>
4318
4319 * data.c (Flocal_variable_if_set_p): Doc fix.
4320
950090be
JR
43212004-10-19 Jason Rumney <jasonr@gnu.org>
4322
4323 * w32.c (init_environment): Set emacs_dir correctly when running
4324 emacs from the build directory.
4325
8550b998
RS
43262004-10-19 Richard M. Stallman <rms@gnu.org>
4327
4328 * editfns.c (Fdelete_and_extract_region):
4329 If region is empty, return null string.
4330
08dedea6
JD
43312004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4332
1dc5ba01 4333 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 4334 and canon_width.
068f3848 4335 (xg_frame_cleared): Remove.
08dedea6 4336
068f3848
SM
4337 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
4338 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
4339 (xg_create_scroll_bar): Put an event box widget between
4340 the scroll bar widget and the edit widget.
4341 (xg_show_scroll_bar): Show the parent widget (the event box).
4342 (xg_remove_scroll_bar): Destroy parent (the event box) also.
4343 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
4344 Move the parent (the event box) widget inside the fixed widget.
4345 Move window clear to xterm.c.
4346
068f3848 4347 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 4348
08dedea6 4349 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
4350 (x_scroll_bar_create, XTset_vertical_scroll_bar):
4351 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
4352 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
4353
8550b998 43542004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
4355
4356 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 4357
84338890
JD
43582004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4359
4360 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
4361 gdk_window_clear and move gdk_window_process_all_updates after
4362 clear so events are sent to the X server in correct order.
4363
6e1b0d8c
KH
43642004-10-18 Kenichi Handa <handa@m17n.org>
4365
4366 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
4367 comparing font names.
8550b998 4368 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
4369 (list_fontsets): Likewise.
4370
4371 * search.c (fast_string_match_ignore_case): New function.
4372
4373 * lisp.h (fast_string_match_ignore_case): Extern it.
4374
345e75a8
KS
43752004-10-17 Kim F. Storm <storm@cua.dk>
4376
4377 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
4378 than bitmap if there is not left fringe.
4379 (get_overlay_arrow_glyph_row): Also used on windows system.
4380 (display_line): Display overlay string if no left fringe.
4381
be13cbb7
JR
43822004-10-16 Jason Rumney <jasonr@gnu.org>
4383
4384 * w32fns.c (w32_font_match): Encode font name being matched.
4385
c2e2ede7
RS
43862004-10-16 Richard M. Stallman <rms@gnu.org>
4387
4388 * window.c (Fspecial_display_p): Doc fix.
4389
043f7f73 43902004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
4391
4392 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
4393 Don't ignore menus, because where-is-internal already does it for us.
4394
699a0392
KS
43952004-10-15 Kim F. Storm <storm@cua.dk>
4396
b3c7a89b
KS
4397 * xdisp.c (redisplay_window): Only update fringes and vertical
4398 border on window frames.
699a0392 4399
4e382b0f
AS
44002004-10-14 Andreas Schwab <schwab@suse.de>
4401
4402 * m/ia64.h (DATA_SEG_BITS): Don't define.
4403
329a7be2
KS
44042004-10-14 Kim F. Storm <storm@cua.dk>
4405
4406 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 4407 in some X versions.
329a7be2 4408
982241b1
SM
44092004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4410
4411 * fns.c (map_char_table): Add missing gcpros.
4412
9238467d
SM
44132004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4414
4415 * keymap.c (get_keymap): An autoload form is not a keymap.
4416
4417 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
4418
4440e3ca
KS
44192004-10-13 Kim F. Storm <storm@cua.dk>
4420
7cfdabde
KS
4421 * callproc.c (Fcall_process): Simplify handling of display arg.
4422 Resume `display_on_the_fly' once a coding system is determined.
4423
4440e3ca
KS
4424 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
4425
1c8dec6a
KS
44262004-10-12 Kim F. Storm <storm@cua.dk>
4427
4428 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
4429 caller, such as call-process, is not going to poll for input.
4430 (calc_line_height_property): Handle case where it->object is nil.
4431
4432 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
4433
170b174c
KH
44342004-10-12 Kenichi Handa <handa@m17n.org>
4435
9238467d
SM
4436 * xdisp.c (get_next_display_element):
4437 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
4438 chars in octal in unibyte buffer.
4439
b583964c
KS
44402004-10-12 Kim F. Storm <storm@cua.dk>
4441
4442 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
4443 are no ordinary bindings.
4444
29fabd8c
JD
44452004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4446
9238467d 4447 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 4448
c3f4c690
ST
44492004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4450
9238467d
SM
4451 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
4452 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 4453 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
4454 terminal frame.
4455 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
4456 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
4457 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
4458 Make a cancel file-open dialog be like C-g.
9238467d
SM
4459 * mac.c (mktime): Use emacs_mktime.
4460 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
4461 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 4462
9688f9eb
KS
44632004-10-10 Kim F. Storm <storm@cua.dk>
4464
4465 * keyboard.c (timer_resume_idle): New function to resume idle
4466 timer without resetting timers on the idle list.
52eb0373 4467 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
4468 (timer_start_idle, timer_stop_idle): Declare static.
4469 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
4470
4471 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
4472
f7f3a65f
ST
44732004-10-08 Steven Tamm <steventamm@mac.com>
4474
9238467d 4475 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 4476 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 4477 NULL where 0 should be used.
f7f3a65f
ST
4478 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
4479 objc/malloc.h
9238467d 4480 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 4481
3c7d999a
KS
44822004-10-07 Kim F. Storm <storm@cua.dk>
4483
4484 * xdisp.c (redisplay_window): Fix flicker on vertical line between
4485 windows. Update vertical line after drawing window fringes, but
4486 only if actually drawing any bitmaps--or there is no fringe.
4487
4488 * xterm.c (x_update_window_end): Likewise.
4489 * macterm.c (x_update_window_end): Likewise.
4490 * w32term.c (x_update_window_end): Likewise.
4491
4492 * fringe.c (draw_window_fringes): Return value now indicates if
4493 any fringe bitmaps were redrawn (or there are no fringes).
4494
4495 * dispextern.h (draw_window_fringes): Update prototype.
4496
bf06c82f
ST
44972004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4498
4499 * macfns.c (mac_get_window_bounds): Add extern.
4500 (x_real_positions): Use mac_get_window_bounds.
4501
4502 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
4503 xmenu.c (YAILOM).
3c7d999a 4504
bf06c82f
ST
4505 * macterm.c [!MAC_OSX]: Include Windows.h.
4506 (front_emacs_window): Rename from mac_front_window. All uses
4507 changed. Return the frontmost non-tooltip emacs window.
4508 (mac_get_window_bounds): New function.
4509 (x_calc_absolute_position): Use the difference of width and height
4510 between the inner and outer window.
4511 (x_set_offset): Specify window position by the coordinae of the
4512 outer window. Adjust the position if the title bar is completely
4513 outside the screen.
4514 (app_is_suspended, app_sleep_time): Remove unused variables.
4515 (do_app_resume, do_app_suspend): Remove their contents because
4516 window-activate/deactivate events will do the job.
4517 (do_zoom_window): Remove unused variables. Make compliant to the
4518 standard way of zooming. Set f->left_pos and f->top_pos.
4519 (XTread_socket): Don't use argument `expected'. Don't use
4520 FrontWindow to determine the clicked window. Exclude unprocessed
4521 mouseUp cases in the early stage. Add parentheses to fix operator
4522 precedence.
4523 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
4524
4cbbf6b7 45252004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
4526
4527 * config.in: Regenerate.
4528
4529 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
4530 HAVE_EXECSHIELD.
4531
b90ee8b5
JD
45322004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4533
4534 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
4535 a row if Alt or Meta has been found for that row. Also stop scanning
4536 for Keysyms for that row.
4537
904db1a2
KS
45382004-10-04 Kim F. Storm <storm@cua.dk>
4539
0207b8ad
KS
4540 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
4541 to list. Include overlay arrow bitmap in return value.
4542
25f7220c
KS
4543 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
4544 bars with fractional column width. If scroll bar separates two
4545 windows, move it towards the window it belongs to. Only update
4546 the padding area below the scroll bar widget when necessary,
4547 i.e. when scroll bar widget is created, moved, or resized.
4548
562020fe
KS
4549 * xdisp.c (define_frame_cursor1): Do not change frame cursor
4550 while tracking/dragging mouse.
4551 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
4552
37e34af7
KS
4553 * window.c (coordinates_in_window): Relax check for cursor
4554 on vertial border between mode lines.
4555 (Fset_window_fringes): Do not allow negative widths.
4556 (Fset_window_scroll_bars): Likewise.
4557
904db1a2
KS
4558 * .gdbinit (pp): Shorthand for p ARG + pr.
4559 (ff): New command: flush frame updates (X only).
4560
38fe4f64
MA
45612004-10-03 Michael Albinus <michael.albinus@gmx.de>
4562
4563 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
4564
9de36315
KH
45652004-09-30 Kenichi Handa <handa@m17n.org>
4566
07c381ad 4567 * process.c (send_process): Free composition data.
9de36315 4568
07c381ad 4569 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
4570
4571 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
4572 compositions to encode.
4573 (encode_coding_string): Likewise. Free composition data.
4574
d5fb8dab 45752004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
4576
4577 * coding.c (code_convert_region): Free composition data.
9de36315 4578
f2a54fbc
KS
45792004-09-29 Kim F. Storm <storm@cua.dk>
4580
dc5d6435
KS
4581 * fringe.c: Remove limit on number of bitmaps.
4582 (fringe_bitmaps, fringe_faces): Change to pointers.
4583 (max_fringe_bitmaps): New var.
4584 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
4585 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
4586
4587 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
4588 (struct glyph_row): Reorder fringe_bitmap related fields.
4589 (struct it): Likewise.
4590
4591 * w32term.c (fringe_bmp): Change to pointer.
4592 (max_fringe_bmp): New var.
4593 (w32_define_fringe_bitmap): Expand fringe_bmp.
4594 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
4595 (w32_destroy_fringe_bitmap): Likewise.
4596
45972004-09-29 Kim F. Storm <storm@cua.dk>
4598
4599 * fringe.c: Simplify last change.
f2a54fbc
KS
4600 (lookup_fringe_bitmap): New function.
4601 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
4602 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
4603 Keep standard bitmaps in Vfringe_bitmaps.
4604 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
4605 (Fset_fringe_bitmap_face): Likewise.
4606
4607 * dispextern.h (lookup_fringe_bitmap): Add prototype.
4608 (valid_fringe_bitmap_p): Remove prototype.
4609
4610 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
4611
841a8bca
KS
46122004-09-29 Kim F. Storm <storm@cua.dk>
4613
1f2da365
KS
4614 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
4615 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
4616
841a8bca
KS
4617 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
4618
4619 * fringe.c (Vfringe_bitmaps): New variable.
4620 (syms_of_fringe): DEFVAR_LISP it.
4621 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
4622 Change arg to Lisp_Object and fail if not an integer.
4623 (get_fringe_bitmap_name, resolve_fringe_bitmap)
4624 (destroy_fringe_bitmap): New functions.
9238467d
SM
4625 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
4626 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
4627 clear its fringe property.
4628 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
4629 Fdestroy_fringe_bitmap.
4630 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
4631 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
4632 and set fringe property. Signal error if no free slots.
4633 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
4634 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
4635
4636 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
4637 symbols with a fringe property.
4638
4d965590
KS
46392004-09-27 Kim F. Storm <storm@cua.dk>
4640
4641 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
4642 Doc fix. Format may now be a symbol or alist, not a cons.
4643
4644 * fringe.c (update_window_fringes): Handle new formats of
4645 indicate-buffer-boundaries (symbol or alist). No longer
4646 allow a simple cons.
4647 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
4648
e888c2b3
JD
46492004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4650
9238467d 4651 * config.in: Rebuild.
e888c2b3 4652
83f1cb94
JD
46532004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4654
4655 * config.in: Rebuild.
4656
dd3b1d60 4657 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 4658
2c51754c
SM
46592004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
4660
4661 * xterm.c (x_term_init): Work around a bug in some X servers.
4662
3df5f8aa
RS
46632004-09-18 Richard M. Stallman <rms@gnu.org>
4664
557ca2c1
RS
4665 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
4666
3df5f8aa
RS
4667 * xdisp.c (try_window_reusing_current_matrix):
4668 Handle the case where we reach the old displayed text,
4669 out of sync with the old line boundary.
4670
9238467d 46712004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
4672
4673 * fileio.c (Finsert_file_contents): Fix case of replacement in a
4674 narrowed buffer.
4675
bfa02563
KS
46762004-09-14 Kim F. Storm <storm@cua.dk>
4677
a25fe164
KS
4678 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
4679
bfa02563
KS
4680 * xfaces.c (Qface_no_inherit): New var.
4681 (syms_of_xfaces): Intern and staticpro it.
4682 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
4683 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
4684 Don't increment face_change_count when face has non-nil
4685 face-no-inherit property.
4686
126f9c02
SM
46872004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
4688
892a8eb5
SM
4689 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
4690 (Fbyte_code): Remove dead code after `wrong_type_argument'.
4691
126f9c02 4692 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 4693 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 4694
c0ad3b38
KS
46952004-09-12 Kim F. Storm <storm@cua.dk>
4696
4697 * editfns.c (Fformat): Handle format strings with multiple text
4698 properties. Reverse text property list from the format string,
4699 so the positions are in increasing order.
4700
844fc085
JD
47012004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4702
4703 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
4704 x_uncatch_errors so that possible protocol errors are delivered.
4705
b106731c
EZ
47062004-09-10 Eli Zaretskii <eliz@gnu.org>
4707
21065c92
EZ
4708 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
4709 blockinput.h.
4710 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
4711 charset.h, and coding.h
9238467d 4712 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
4713 (term.o): Depend on window.h and keymap.h.
4714 (abbrev.o): Depend on syntax.h.
4715 (callint.o): Depend on keymap.h.
4716 (casefiddle.o): Depend on charset.h and keymap.h.
4717 (category.o): Depend on keymap.h.
4718 (coding.o): Depend on dispextern.h.
4719 (cmds.o): Depend on keyboard.h and keymap.h.
4720 (dispnew.o): Depend on indent.h and intervals.h.
4721 (doc.o): Depend on keymap.h.
4722 (editfns.o): Depend on frame.h.
4723 (emacs.o): Depend on dispextern.h.
4724 (fileio.o): Don't depend on ccl.h.
4725 (filelock.o): Depend on charset.h and coding.h.
4726 (frame.o): Depend on w32term.h and macterm.h.
4727 (insdel.o): Depend on region-cache.h.
4728 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
4729 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
4730 (search.o): Depend on $(INTERVALS_SRC).
4731 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
4732 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
4733 xterm.h, w32term.h, and macterm.h.
4734 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
4735 w32term.h, and macterm.h.
4736 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
4737 region-cache.h, xterm.h, w32term.h, and macterm.h.
4738 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
4739 (data.o): Depend on frame.h.
4740 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
4741 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
4742 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
4743 (intervals.o): Depend on keymap.h.
4744
9238467d
SM
4745 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
4746 Add debugging print-out to termscript.
b106731c 4747
64b7122d
RS
47482004-09-09 Richard M. Stallman <rms@gnu.org>
4749
4750 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
4751
5670531e
RS
47522004-09-08 Richard M. Stallman <rms@gnu.org>
4753
6cb4a892
RS
4754 * window.c (Fset_window_buffer): Doc fix.
4755
5670531e
RS
4756 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
4757
7e388eb7
JL
47582004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
4759
4760 * minibuf.c (history_delete_duplicates): New variable.
4761 (read_minibuf): Use it.
4762 (syms_of_minibuf): Create the corresponding lisp variable.
4763
370e3587
KS
47642004-09-08 Kim F. Storm <storm@cua.dk>
4765
4766 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
4767 overlay just before point.
4768
f844ba4e
LT
47692004-09-07 Luc Teirlinck <teirllm@auburn.edu>
4770
4771 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
4772 * buffer.c (reset_buffer, init_buffer_once):
4773 Handle auto_save_file_format field.
f844ba4e
LT
4774 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
4775 `buffer-auto-save-file-format'.
f844ba4e
LT
4776 * fileio.c: Delete declaration for removed Vauto_save_file_format.
4777 (build_annotations): Adapt to replacement of
4778 `auto-save-file-format' with the new buffer-local variable
4779 `buffer-auto-save-file-format'.
4780 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
4781
f0f90717
JR
47822004-09-07 Jason Rumney <jasonr@gnu.org>
4783
4784 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
4785
9238467d
SM
4786 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
4787 Handle Unicode menu titles.
f0f90717 4788
4e14f66c
KS
47892004-09-07 Kim F. Storm <storm@cua.dk>
4790
4791 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
4792 property from text property or overlay strings at point.
4793
9238467d 47942004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
4795
4796 * xmenu.c (update_submenu_strings): YAILOM.
4797 (set_frame_menubar): Make sure last_i is initialized.
4798
1f06d367
JR
47992004-09-03 Jason Rumney <jasonr@gnu.org>
4800
1806714a 4801 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
4802 (digest_single_submenu): Set lname and lkey in widget_value
4803 instead of name and key.
4804 (update_submenu_strings): New function.
4805 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4806 call update_submenu_strings.
4807
4808 * w32menu.c (globals_of_w32menu): Check for Unicode API.
4809 (digest_single_submenu, w32_menu_show): Encode menu strings as
4810 UTF-8 if Unicode API is available.
4811 (utf8to16): New function.
4812 (add_menu_item): Use it when calling Unicode API.
1806714a 4813
46540080
KS
48142004-09-03 Kim F. Storm <storm@cua.dk>
4815
4816 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
4817 in overlay or text-property strings; set cursor on corresponding
4818 glyph rather than at end of the string.
4819
9277ba61 48202004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 4821
9277ba61 4822 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
4823 set a new one before obtaining the global coordinate.
4824 Use FRAME_MAC_WINDOW.
4825 (x_set_name, x_set_title): Encode title to UTF8.
4826 Use SetWindowTitleWithCFString.
9277ba61
ST
4827 (Fx_server_version): Get correct OS version.
4828
1806714a
SM
4829 * macmenu.c (add_menu_item): Remove unused variable `i'.
4830 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
4831
4832 * macterm.c (x_update_end): Move SetPortWindowPort to inside
4833 BLOCK_INPUT.
4834 (x_set_offset): Use FRAME_MAC_WINDOW.
4835
4836 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
4837 nontext_cursor if it is on a scroll bar.
4838
4839 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
4840 Carbon support.
1806714a
SM
4841 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
4842 Use LIBS_CARBON.
9277ba61 4843
b10daec7
JD
48442004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4845
4846 * xfns.c (x_set_name_internal): New function. Check if we shall call
4847 xfree before ENCODE_UTF_8.
4848 (x_set_name, x_set_title): Call x_set_name_internal.
4849
f7e22385
JR
48502004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
4851
4852 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
4853 reload it.
4854
2bf436c3
JD
48552004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4856
1806714a 4857 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
4858 (single_submenu): Set lname and lkey in widget_value
4859 instead of name and key.
4860 (update_submenu_strings): New function.
4861 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4862 call update_submenu_strings.
4863
2bf436c3
JD
4864 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
4865 instead of name and key.
4866 (update_submenu_strings): New function.
4867 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 4868 call update_submenu_strings.
2bf436c3
JD
4869
4870 * gtkutil.h (_widget_value): Added lname and lkey.
4871
11715f92
ST
48722004-08-30 Steven Tamm <steventamm@mac.com>
4873
4874 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
4875 by using different names for inner loop variables.
4876
5500be54
JD
48772004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4878
059cd329
JD
4879 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
4880 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
4881
5500be54
JD
4882 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
4883 tool bar items is 0.
4884
383418e5
ST
48852004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4886
4887 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
4888 strings in menu items.
4889 (single_submenu): Use ENCODE_MENU_STRING
4890 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
4891 button release isn't passed to event loop
4892 (add_menu_item): Use SetMenuItemWithCFString
4893
6eb3ee72
ST
48942004-08-26 Steven Tamm <steventamm@mac.com>
4895
4896 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
4897 tool-bar/menu click.
4898 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 4899
10b43ac3
JD
49002004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4901
2728b5d0
JD
4902 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
4903
10b43ac3
JD
4904 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4905 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4906 (x_top_window_to_frame): Return 0 if wdesc is None.
4907
2ee3b79e
RS
49082004-08-22 Richard M. Stallman <rms@gnu.org>
4909
4910 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
4911 HAVE_TERMIOS]: If there's no char for this signal, drop through
4912 and use system calls.
4913
4914 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
4915
9a1ba2ea
KS
49162004-08-20 Kim F. Storm <storm@cua.dk>
4917
4918 * process.c (wait_reading_process_output): Rename from
4919 wait_reading_process_input. All uses changed.
4920 (wait_reading_process_output_1): Rename from
4921 wait_reading_process_input_1. All uses changed.
4922
4923 * dispnew.c (Fsleep_for): Remove obsolete code.
4924
295f3b30
KH
49252004-08-20 Kenichi Handa <handa@m17n.org>
4926
4927 * syntax.c (skip_chars): Fix for unibyte case.
4928
27615979
SM
49292004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4930
4931 * syntax.c (char_quoted): Mixup byte/char pos.
4932 (back_comment): Fixup globals in all cases.
4933
00267f94
JD
49342004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4935
4936 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
4937 passing it to gtk_window_set_title.
4938
2439909e
KS
49392004-08-19 Kim F. Storm <storm@cua.dk>
4940
6ba0f14c
KS
4941 * process.c (wait_reading_process_input): Clean up.
4942 Add wait_for_cell, wait_proc, and just_wait_proc args
4943 to avoid overloading `read_kbd' and `do_display' args.
4944 Change read_kbd arg to int. All callers changed.
4945
2439909e
KS
4946 * process.c (process_send_signal): Use CDISABLE.
4947
4948 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
4949
101c421e
KS
49502004-08-18 Kim F. Storm <storm@cua.dk>
4951
4952 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
4953 forward to wait_reading_process_input via DO_DISPLAY arg.
4954 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
4955 object, only process output from that process; also inhibit
4956 running timers if DO_DISPLAY==-2.
4957
c438dc33
KS
49582004-08-17 Kim F. Storm <storm@cua.dk>
4959
4960 * process.c (process_send_signal): Fix last change--use
4961 _POSIX_VDISABLE instead of CVDISABLE when available.
4962
8afc13c6
RS
49632004-08-16 Richard M. Stallman <rms@gnu.org>
4964
4965 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
4966 Set VQUIT and VINTR chars to the standard ones if they are unset.
4967 [AIX]: Don't do that here. And don't force VINTR to standard
4968 when SIGNALS_VIA_CHARACTERS.
4969
c438dc33 4970 * process.c (process_send_signal)
8afc13c6
RS
4971 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
4972 Do nothing if the character is CVDISABLE.
4973
4974 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
4975
c438dc33 4976 * intervals.c (move_if_not_intangible):
8afc13c6
RS
4977 Force POSITION to be between BEGV and ZV.
4978
6dad1714
JPW
49792004-08-14 John Paul Wallington <jpw@gnu.org>
4980
4981 * buffer.c (Frestore_buffer_modified_p): Doc fix.
4982
4983 * fileio.c (Fread_file_name): Doc fix.
4984
4985 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
4986
2bd77330
LT
49872004-08-09 Luc Teirlinck <teirllm@auburn.edu>
4988
4989 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4990
c90e7e43
LT
49912004-08-08 Luc Teirlinck <teirllm@auburn.edu>
4992
4993 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 4994 Qdisabled_command_hook.
c90e7e43 4995 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 4996 Qdisabled_command_hook.
c90e7e43
LT
4997 (syms_of_keyboard): Ditto.
4998
81909a1a
LT
49992004-08-07 Luc Teirlinck <teirllm@auburn.edu>
5000
5001 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
5002 (syms_of_keymap) <key-translation-map>: Doc fixes.
5003
0cedd530
SM
50042004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
5005
1725a7c9
SM
5006 * window.c (window_list_1): YAILOM.
5007
0cedd530
SM
5008 * fileio.c (make_temp_name): Handle multibyte prefixes.
5009
2515a131
LT
50102004-08-06 Luc Teirlinck <teirllm@auburn.edu>
5011
5012 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5013 Doc fix.
5014
c8b20fb7
KH
50152004-08-03 Kenichi Handa <handa@m17n.org>
5016
5017 * coding.c (decode_coding_string): Adjust coding->consumed, and
5018 etc. with shrinked_bytes.
5019
fb8b092b
KS
50202004-08-03 Kim F. Storm <storm@cua.dk>
5021
5022 * indent.c (compute_motion): Fix check for full width window
5023 in non-window case. Do not count left truncation glyph on
5024 window systems.
5025
df133612
LT
50262004-08-02 Luc Teirlinck <teirllm@auburn.edu>
5027
5028 * data.c (Finteractive_form): Doc fix.
5029
0f7a93c1
KS
50302004-08-02 Kim F. Storm <storm@cua.dk>
5031
5032 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
5033 properly accounting for continuation glyph on non-window systems.
5034 (Fcompute_motion): Use actual window width if WIDTH is nil, and
5035 actual window width/height if TOPOS is nil, properly accounting for
5036 continuation glyphs on non-window systems, and optional header lines.
5037 (vmotion): Let compute_motion calculate actual window width.
5038
5039 * window.c (window_scroll_line_based): Let compute_motion
5040 calculate actual window width.
5041
f491e1ed
KS
50422004-08-02 Kim F. Storm <storm@cua.dk>
5043
5044 * process.c (read_process_output): Use whole read buffer.
5045 Don't trigger adaptive read buffering on errors.
5046
83f64226
LT
50472004-07-31 Luc Teirlinck <teirllm@auburn.edu>
5048
5049 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
5050
1d1c7e75 5051 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
5052
5053 * callint.c (Fcall_interactively): Doc fix.
5054
8afc13c6
RS
50552004-07-30 Richard M. Stallman <rms@gnu.org>
5056
5057 * abbrev.c (Fexpand_abbrev): Undo previous change.
5058
7c111482
KS
50592004-07-30 Kim F. Storm <storm@cua.dk>
5060
5061 * editfns.c (Fformat): Allocate extra (dummy) element in info.
5062
ee945d08
LT
50632004-07-28 Luc Teirlinck <teirllm@auburn.edu>
5064
5065 * eval.c (Fdefvar, Fdefconst): Doc fixes.
5066
3f911c94
KS
50672004-07-27 Kim F. Storm <storm@cua.dk>
5068
5069 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
5070 we have ensured that the glyph fits on the current line (or returned
5071 MOVE_LINE_CONTINUED otherwise).
5072
f29ff8c7
KS
50732004-07-26 Kim F. Storm <storm@cua.dk>
5074
5075 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
5076 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
5077 if target position is at end of display line but char is not a newline.
5078
81159bb9
RS
50792004-07-25 Richard M. Stallman <rms@gnu.org>
5080
ab431b61
RS
5081 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
5082 instead of ON_VERTICAL_BORDER, when on scroll bar.
5083 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
5084
5085 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
5086
f29ff8c7 5087 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
5088 Take account of FRAME_INTERNAL_BORDER_WIDTH.
5089
5090 * alloc.c (check_cons_list): New function (contents commented out).
5091
fc820cc5
LT
50922004-07-24 Luc Teirlinck <teirllm@auburn.edu>
5093
5094 * xfaces.c (Fcolor_supported_p): Doc fix.
5095
5096 * frame.c (Fselect_frame, Fset_frame_selected_window)
5097 (Fframe_visible_p, Fraise_frame): Doc fixes.
5098
289978b5
LT
50992004-07-24 Richard M. Stallman <rms@gnu.org>
5100
78819ebb 5101 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
5102
5103 * fileio.c (Fwrite_region): Doc fix.
5104
5105 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
5106
5107 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
5108 only when a real abbrev is present.
5109
289978b5
LT
5110 * xfns.c (x_icon_verify): New function.
5111 (Fx_create_frame): Use it.
5112
d5fb8dab 51132004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
5114
5115 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
5116
36f826d4
KS
51172004-07-21 Kim F. Storm <storm@cua.dk>
5118
5119 * window.h (struct glyph_matrix): New members nrows_scale_factor
5120 and ncols_scale_factor.
5121
5122 * window.c (make_window): Initialize nrows_scale_factor and
5123 ncols_scale_factor members.
5124
5125 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
5126 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
5127 (required_matrix_height): Apply nrows_scale_factor.
5128 (required_matrix_width): Apply ncols_scale_factor.
5129
5130 * xdisp.c (display_line): Increment nrows_scale_factor and set
5131 fonts_changed_p if past last allocated row.
5132 (append_glyph, append_composite_glyph, produce_image_glyph)
5133 (append_stretch_glyph): Increment ncols_scale_factor and set
5134 fonts_changed_p if current area is full.
5135
5fc1c546
JD
51362004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5137
5138 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
5139
cb7516e5
LT
51402004-07-19 Luc Teirlinck <teirllm@auburn.edu>
5141
5142 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
5143 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
5144 (Fset_window_start, Fscroll_up, Fscroll_down)
5145 (Fother_window_for_scrolling, Fscroll_other_window)
5146 (Fsave_window_excursion, Fset_window_vscroll)
5147 (syms_of_window) <window-size-fixed>: Doc fixes.
5148
b6189c3b 51492004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
5150
5151 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
5152 ENCODE_SYSTEM for filenames.
5153
bfcf6608
ST
51542004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5155
5156 * mac.c (sys_select): Block input around call to
5157 ReceiveNextEvent to prevent breakage. Correctly handle
5158 blocking on event queue only by calling ReceiveNextEvent
5159 instead of select (since GUI events aren't on an fd).
5160 (sys_read): Remove function
5161 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
5162
e082ac9d
ST
51632004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5164
5165 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 5166 polling instead of 1 sec timeouts (like solaris).
e082ac9d 5167
cb7516e5 5168 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
5169 frame creation.
5170
5171 * keyboard.c: Undef SIGIO on Carbon
5172
5173 * atimer.c (alarm_signal_handler): Call alarm handlers after
5174 scheduling.
5175
5176 * eval.c (Feval): Remove quit_char test
5177
5178 * process.c (wait_reading_process_input): Remove clearing
5179 stdin for select call on process input.
5180
4b9da0fb
LT
51812004-07-18 Luc Teirlinck <teirllm@auburn.edu>
5182
1204e81c
LT
5183 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
5184 capitalization error in docstring.
4b9da0fb 5185
26503ad2
JB
51862004-07-17 Juanma Barranquero <lektu@terra.es>
5187
5188 * keyboard.c (not_single_kboard_state): Do nothing unless
5189 MULTI_KBOARD is defined.
5190
3751eb00
RS
51912004-07-17 Richard M. Stallman <rms@gnu.org>
5192
5193 * window.c (coordinates_in_window): Inside the window but outside
5194 its box to the L or R, return ON_VERTICAL_BORDER.
5195 (window_list_1): Rotate the list to start with WINDOW.
5196
5197 * print.c (print_preprocess): Test for print_depth at limit
5198 before entering in being_printed.
5199
5200 * keyboard.c (not_single_kboard_state): New function.
5201 (stuff_buffered_input): Now no-op only if no SIGTSTP.
5202
5203 * frame.c (Fdelete_frame): If we're in single_bboard_state on
5204 this kboard, and we delete its last frame, go to any_kboard_state.
5205
5206 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
5207
b6189c3b 52082004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
5209
5210 * w32fns.c (Fx_file_dialog): Encode strings in system coding
5211 system before passing them to OS functions for display.
5212
0f6af254
DK
52132004-07-15 David Kastrup <dak@gnu.org>
5214
f9253326
KS
5215 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
5216 Apparently fixes an abort condition.
0f6af254 5217
386c8f42
LT
52182004-07-14 Luc Teirlinck <teirllm@auburn.edu>
5219
5220 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
5221 instead of a cons.
5222
366511da
MB
52232004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5224
5225 * keyboard.c (echo_dash): Do nothing if there already is a dash
5226 at the end of the echo string.
5227
f85409d3
KS
52282004-07-12 Kim F. Storm <storm@cua.dk>
5229
5230 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
5231 if GC_MARK_STACK.
5232
0ba2e87b
LT
52332004-07-10 Luc Teirlinck <teirllm@auburn.edu>
5234
da38045d
LT
5235 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
5236
0ba2e87b
LT
5237 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
5238 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
5239 (Freplace_buffer_in_windows, Fset_window_buffer)
5240 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
5241 (syms_of_window): Expand docstring of `display-buffer-function'.
5242
5668fbb8
LT
52432004-07-09 Luc Teirlinck <teirllm@auburn.edu>
5244
5245 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
5246 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
5247 that time values of the type (HIGH . LOW) are considered obsolete.
5248
a085bf9d
LT
52492004-07-06 Luc Teirlinck <teirllm@auburn.edu>
5250
669de2fb
LT
5251 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
5252 docstring.
5253
bac66325 5254 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 5255
8e975df9
JPW
52562004-07-06 John Paul Wallington <jpw@gnu.org>
5257
5258 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
5259
fa164e6a
JPW
5260 * fns.c (Fclear_string): Signal an error if STRING is not a string.
5261
2bac9bb1
JD
52622004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5263
5264 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
5265 instead of CGMainDisplayID (only in OSX 10.2 and later).
5266
316ef0dc
JPW
52672004-07-04 John Paul Wallington <jpw@gnu.org>
5268
5269 * fileio.c (read_file_name_completion_ignore_case): New variable.
5270 (syms_of_fileio): Declare and initialise it.
5271 (Fread_file_name): Bind `completion-ignore-case' to respect it.
5272
2a1a35c6
EZ
52732004-07-03 Eli Zaretskii <eliz@gnu.org>
5274
5275 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
5276 for event.x and event.y.
5277
33a72331
KH
52782004-07-01 Kenichi Handa <handa@m17n.org>
5279
5280 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
5281 after getting a new string by pre-write-conversion.
5282
9238467d 52832004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
5284
5285 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
5286 (x_calc_absolute_position): Remove unused var `child'.
5287
5288 * xfaces.c (x_supports_face_attributes_p)
5289 (Fdisplay_supports_face_attributes_p): YAILOM.
5290 (tty_supports_face_attributes_p): Remove unused var `i'.
5291
5292 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
5293 back_unibyte_ok.
5294
5295 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
5296
5297 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
5298
5299 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
5300
f96ec754
AS
53012004-06-30 Andreas Schwab <schwab@suse.de>
5302
5303 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
5304 (Finit_image_library): Pass LIBRARIES through to
5305 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
5306 (lookup_image_type): Pass Qnil as second argument to
5307 Finit_image_library.
5308
78819ebb 5309 * lisp.h (Finit_image_library): Declare.
f96ec754 5310
59feca74 53112004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 5312
31983645
AS
5313 * macterm.c (do_window_activate, do_window_deactivate): Remove.
5314 (XTread_socket): Send mouse button events to the toolbox
5315 dispatcher even when the mouse is grabbed. Don't process window
5316 activate events for non-Emacs windows. Replace function calls to
5317 do_window_activate and do_window_deactivate with their contents.
5318 Reset mouse grabbing status when a window is deactivated.
59feca74 5319
c61278bb
ST
53202004-06-29 Steven Tamm <steventamm@mac.com>
5321
5322 * macterm.c (mac_get_emulated_btn)
5323 (mac_event_to_emacs_modifiers): Fix emulated mouse button
5324 support to correctly mask out modifiers.
5325
c3762cbd
DK
53262004-06-29 David Kastrup <dak@gnu.org>
5327
5328 * search.c (Fset_match_data): Allow buffer before end of list
5329 which can happen if set-match-data is using a pre-consed list.
5330
c61278bb 53312004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
5332
5333 * macterm.c (XTread_socket): Correctly set the frame position
5334 after the window is moved.
5335
74cdfe05
JD
53362004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5337
5338 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
5339 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
5340 (xg_get_image_for_pixmap): Add workaround for monochrome displays
5341 so insensitive and activated icons look ok.
74cdfe05 5342
ef544dc8
JR
53432004-06-27 Jason Rumney <jasonr@gnu.org>
5344
5345 * w32fns.c (file_dialog_callback): Disable edit control if set
5346 to directories only on CDN_INITDONE message.
5347 (Fx_file_dialog): Default to directories only when prompt starts
5348 with "Dired".
5349
7b7990cc
KS
53502004-06-25 Kim F. Storm <storm@cua.dk>
5351
5352 * alloc.c (allocate_misc): Update total_free_markers.
5353 (free_misc): New function.
5354 (safe_alloca_unwind, free_marker): Use it.
5355
5356 * lisp.h (free_misc): Add prototype.
5357
5358 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
5359
d8c379f8
RS
53602004-06-24 Richard M. Stallman <rms@gnu.org>
5361
5362 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
5363 (syms_of_emacs): Lisp variables deleted.
5364
559cdd07
DK
53652004-06-23 David Kastrup <dak@gnu.org>
5366
94939b84
DK
5367 * search.c (Freplace_match): Adjust the match-data more thoroughly
5368 when replacing strings in the buffer.
5369 (Fmatch_data): When INTEGERS is non-nil and the last match was in
5370 a buffer, add the buffer as last element to the match data.
5371 (Fset_match_data): If an additional element of the match-data is a
5372 buffer, restore it to last_thing_searched.
c8d09ad8 5373 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
5374 (restore_match_data): Restore it again.
5375
dce417e7
LT
53762004-06-23 Luc Teirlinck <teirllm@auburn.edu>
5377
5378 * keymap.c (Ftext_char_description): Doc fix.
5379 * doc.c (Fsnarf_documentation): Doc fix.
5380
ef54b2d0
KS
53812004-06-22 Kim F. Storm <storm@cua.dk>
5382
b5bc4d05
KS
5383 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
5384
ef54b2d0
KS
5385 * lisp.h (struct Lisp_Save_Value): New member dogc.
5386 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
5387 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
5388 (SAFE_FREE_LISP): New macro.
5389
5390 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
5391 (make_save_value): Init new dogc member.
5392 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
5393
5394 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
5395 SAFE_FREE_LISP macros.
5396
3d33d993
KS
53972004-06-22 Kim F. Storm <storm@cua.dk>
5398
5399 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
5400 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
5401 in that memory area are unknown to GC. Add comments.
5402
5403 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
5404
5c917f98
KS
54052004-06-21 Kim F. Storm <storm@cua.dk>
5406
5407 * lisp.h (MAX_ALLOCA): Define here.
5408 (safe_alloca_unwind): Add prototype.
5409 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
5410
5411 * alloc.c (safe_alloca_unwind): New function.
5412
5413 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
5414
5415 * charset.c (Fstring): Use SAFE_ALLOCA.
5416
5417 * coding.c (MAX_ALLOCA): Remove define.
5418
5419 * data.c (MAX_ALLOCA): Remove define.
5420 (Faset): Use SAFE_ALLOCA.
5421
5422 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
5423
5424 * fns.c (string_make_multibyte, string_to_multibyte)
5425 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
5426 (MAX_ALLOCA): Remove define.
5427 (Fbase64_encode_region, Fbase64_encode_string)
5428 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
5429 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
5430 memory leak if encoding fails.
5431
5432 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
5433
9a09408e
EZ
54342004-06-21 Eli Zaretskii <eliz@gnu.org>
5435
5436 * print.c (Fwith_output_to_temp_buffer): Doc fix.
5437
376de739
RS
54382004-06-20 Richard M. Stallman <rms@gnu.org>
5439
5440 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
5441
5442 * search.c (match_limit): Cleaner err msg when no match data available.
5443
5444 * window.c (syms_of_window): Doc fix.
5445
5446 * keyboard.c (command_loop_1): Handle values `only' and `identity'
5447 for Vtransient_mark_mode.
5448
5449 * buffer.c (syms_of_buffer): Doc fix.
5450
acd81db9
DK
54512004-06-21 David Kastrup <dak@gnu.org>
5452
5453 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
5454 and unbinding of `case-fold-search' according to
5455 `completion-ignore-case' around calls of string-match and
5456 predicates, respectively. Should give satisfactory performance
5457 in all relevant cases.
5458
f303762d
JD
54592004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5460
95911c74
JD
5461 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
5462 clip_x/y_origin.
5463
a6cb6b78
JD
5464 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
5465
f303762d
JD
5466 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
5467
5468 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
5469 on Mac OSX.
5470
bbdb2684
LT
54712004-06-16 Luc Teirlinck <teirllm@auburn.edu>
5472
5473 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
5474
5ea48b1c
KS
54752004-06-16 Kim F. Storm <storm@cua.dk>
5476
5477 * dispextern.h (Vimage_types): Remove extern.
5478
803aac3e
MB
54792004-06-16 Miles Bader <miles@gnu.org>
5480
5481 * image.c (lookup_image_type): Initialize image type if necessary.
5482
cdc97764
KS
54832004-06-15 Kim F. Storm <storm@cua.dk>
5484
c4a5739c
KS
5485 * xdisp.c (try_cursor_movement): Exclude header line from scroll
5486 margin at top of window.
5487 (try_window_reusing_current_matrix): Calculate proper cursor position
5488 after scrolling up with non-zero scroll margin, as the old cursor
5489 position corresponds to value of PT before executing this command.
5490 (try_window_id): Consider scroll margin at bottom of window too;
5491 otherwise we fail to scroll when hl-line-mode is enabled.
5492
cdc97764
KS
5493 * syntax.c (skip_chars): Only recognize [:class:] when it has the
5494 proper format and class is a lower-case word.
5495
5b166323
JD
54962004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5497
5498 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 5499 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
5500 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
5501 xg_get_gdk_pixmap_and_mask.
cdc97764 5502
5b166323
JD
5503 * xterm.h (struct x_display_info): Typo in comment fixed.
5504
1ebd4f78
JB
55052004-06-14 Juanma Barranquero <lektu@terra.es>
5506
5507 * dispextern.h (Vimage_types): Make it conditional on
5508 HAVE_WINDOW_SYSTEM.
5509
5510 * image.c (Vimage_types): Move from xdisp.c.
5511 (Vimage_type_cache): New variable.
5512 (define_image_type): New argument indicating whether an image
5513 library was loaded; cache loaded status and return t on success,
5514 nil otherwise.
5515 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
5516 (w32_delayed_load): New function to load an image library from a
5517 list of possible filenames.
5518 (init_xpm_functions, init_png_functions, init_jpeg_functions)
5519 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 5520 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
5521 (Finit_image_library): New function, extracted from `init_image'.
5522 Try to initialize an image library on demand and cache whether we
5523 were successful or not.
5524 (syms_of_image): Initialize `Vimage_types' and
5525 `Vimage_type_cache'. Add recognized image types to Vimage_types.
5526 Export `init-image-library'.
5527 (init_image): Remove initialization of all image types, except xbm
5528 and pbm.
5529
5530 * xdisp.c (Vimage_types): Delete (moved to image.c).
5531
904ee128
AS
55322004-06-14 Andreas Schwab <schwab@suse.de>
5533
5534 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5535 Avoid calling specbind when completion-regexp-list is empty.
5536
092de21d
RS
55372004-06-13 Richard M. Stallman <rms@gnu.org>
5538
5539 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5540 (re_wctype, re_iswctype, re_wctype_to_bit):
5541 Non-function definitions moved here from regex.c.
1ebd4f78 5542
092de21d
RS
5543 * regex.c (re_wctype, re_iswctype): Function defs longer static.
5544 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5545 (re_wctype, re_iswctype, re_wctype_to_bit):
5546 Non-function definitions moved to regex.h.
5547
5548 * window.c (Fselect_window): Doc fix.
5549
5550 * syntax.c: Include regex.h.
5551 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
5552 If requested, make a list of classes, then check the scanned
5553 chars for membership in them.
5554 (in_classes): New function.
5555 Doc fix.
5556
5557 * keyboard.c (cmd_error): Don't call any_kboard_state
5558 if inside a recursive edit level.
5559
9ba27690 55602004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
5561
5562 * keyboard.c (command_loop): Call any_kboard_state before
5563 command_loop_2 when at top level.
5564
3ebc0939
AS
55652004-06-13 Andreas Schwab <schwab@suse.de>
5566
cea5d0d4
AS
5567 * print.c (print_object): Always use %ld for printing EMACS_INT.
5568
5569 * keyboard.c (cancel_hourglass_unwind): Return a value.
5570 (modify_event_symbol): Always use %ld for printing EMACS_INT.
5571 (Fexecute_extended_command): Likewise.
5572
5573 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
5574 avoid clashes.
5575 (SYNTAX): Likewise.
5576 (SYNTAX_WITH_FLAGS): Likewise.
5577 (SYNTAX_MATCH): Likewise.
5578
5579 * syntax.c (char_quoted): Avoid warning about undefined operation.
5580 (find_defun_start): Likewise.
5581 (scan_lists): Likewise.
5582 (INC_FROM): Likewise.
5583 (scan_sexps_forward): Likewise.
5584
be8c4ce4
AS
5585 * image.c: Include <ctype.h>.
5586
3ebc0939
AS
5587 * xfaces.c (face_attr_equal_p): Declare parameters.
5588
6fb41b5b
KH
55892004-06-13 Kenichi Handa <handa@m17n.org>
5590
5591 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
5592
fc3095ce
EZ
55932004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
5594
5595 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
5596
66189a40
KH
55972004-06-12 Kenichi Handa <handa@m17n.org>
5598
5599 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
5600 ccl_prog_stack_struct and update it.
5601 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
5602 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
5603 ccl->eof_ic on EOF.
5604 (ccl_debug_hook): New function.
5605 (struct ccl_prog_stack): New member eof_ic.
5606 (ccl_driver): Handle EOF in subrountine call correctly.
5607
56082004-06-11 Kenichi Handa <handa@m17n.org>
5609
a9b43336 5610 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 5611
1da71023
KS
56122004-06-11 Kim F. Storm <storm@cua.dk>
5613
5614 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
5615
e9efcef4
JB
56162004-06-11 Juanma Barranquero <lektu@terra.es>
5617
5618 * keyboard.c (Fposn_at_point): Doc fix.
5619
9b9ceb61
DK
56202004-06-11 David Kastrup <dak@gnu.org>
5621
5622 * search.c (match_limit): Don't flag an error if match-data
5623 exceeding the allocated search_regs.num_regs gets requested, just
5624 return Qnil.
5625
6e87ac8f
MB
56262004-06-08 Miles Bader <miles@gnu.org>
5627
5628 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
5629
0b0dea7b
JB
56302004-06-07 Juanma Barranquero <lektu@terra.es>
5631
5632 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
5633 (Fcurrent_time_string, Fcurrent_time_zone)
5634 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
5635
a0a23346
MB
56362004-06-07 Miles Bader <miles@gnu.org>
5637
08384afd 5638 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
5639 (push_named_merge_point): New function.
5640 (merge_named_face): New function.
5641 (merge_face_ref, face_at_buffer_position, face_at_string_position):
5642 Use `merge_named_face'.
5643 (merge_face_inheritance): Function removed.
c8d09ad8 5644 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
5645 Add new `err_msgs' and `named_merge_points' args. Return error
5646 status. Only print error messages if ERR_MSGS is true. Don't try to
5647 do :inherit attribute validation.
5648 (merge_face_heights): Handle `unspecified' in both directions.
5649 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
5650 Call `merge_face_ref' instead of `merge_face_inheritance'.
5651 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
5652 (compute_char_face, face_at_buffer_position)
5653 (face_at_string_position): Call `merge_face_ref' instead of
5654 `merge_face_vector_with_property'.
5655
12d5b185
KH
56562004-06-07 Kenichi Handa <handa@m17n.org>
5657
5658 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
5659 the necessary places.
5660
2e2d7ee6
KS
56612004-06-07 Kim F. Storm <storm@cua.dk>
5662
5663 * process.c (Fdelete_process): Undo 2004-05-28 change.
5664 Instead, call status_notify also for network process.
5665 (status_message): Use process instead of status as arg.
5666 Give messages "deleted" or "connection broken by remote peer" for
5667 an exited network process.
5668 (status_notify): Change call to status_message.
5669 (read_process_output): Increase readmax to 4096. Do not increase
5670 buffer size for datagram channels (default is now large enough).
5671
fcf0d299
ST
56722004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
5673
5674 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
5675 problem due to newly defined variable.
5676
0722292b
MB
56772004-06-06 Miles Bader <miles@gnu.org>
5678
5679 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
5680 immediately if non-interactive or not initialized.
5681
ddfb8369
RS
56822004-06-05 Richard M. Stallman <rms@gnu.org>
5683
5684 * minibuf.c (Fcompleting_read): Doc fix.
5685
57015754
AS
56862004-06-05 Andreas Schwab <schwab@suse.de>
5687
5688 * macfns.c (x_create_tip_frame): Fix declaration after statement.
5689
23715ea6
JB
56902004-06-05 Juanma Barranquero <lektu@terra.es>
5691
5692 * keymap.c (Fdescribe_vector): Fix docstring.
5693 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
5694
8e330b22
MB
56952004-06-05 Miles Bader <miles@gnu.org>
5696
5697 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
5698 attributes have different values than the default face.
5699
9742a3a6
EZ
57002004-06-04 Eli Zaretskii <eliz@gnu.org>
5701
5702 * xfaces.c (x_supports_face_attributes_p): Make this function
5703 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
5704 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
5705 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 5706
9717e36c
MB
57072004-06-04 Miles Bader <miles@gnu.org>
5708
5709 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
5710 from Ftty_supports_face_attributes_p.
5711 (x_supports_face_attributes_p): New function.
5712 (Ftty_supports_face_attributes_p): Function deleted.
5713 (Fdisplay_supports_face_attributes_p): New function.
5714 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 5715 (face_attr_equal_p): New function.
9717e36c
MB
5716 (lface_equal_p): Use it.
5717
52deb19f
JB
57182004-06-03 Juanma Barranquero <lektu@terra.es>
5719
5720 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
5721 (Vw32_color_map): Fix typo in docstring.
5722 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
5723 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
5724 Make argument names match their use in docstring.
5725
86d373e6
JB
57262004-06-02 Juanma Barranquero <lektu@terra.es>
5727
5728 Work around bugs/problems with MinGW builds of graphics libraries
5729 called from MSVC builds of Emacs.
5730
5731 * image.c (lookup_image): Make pointer to img static.
5732 (png_read_from_memory): Disable "global" optimization.
5733
2fb0ce67
SM
57342004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5735
c8d09ad8
SM
5736 * eval.c (Fcondition_case): Fix usage. Simplify.
5737
2fb0ce67
SM
5738 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
5739
50bf7673
ST
57402004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5741
5742 * macfns.c: Don't include ccl.h.
5743 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
5744 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
5745 TextUtils.h.
c8d09ad8 5746 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
5747 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
5748 display height/width.
5749 (compute_tip_xy, Vx_max_tooltip_size): Declare.
5750 (unwind_create_tip_frame, compute_tip_xy): New functions.
5751 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
5752 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
5753 and last_show_tip_args.
2fb0ce67 5754
50bf7673
ST
5755 * macgui.h [!MAC_OSX]: Include Gestalt.h.
5756 (Cursor, No_Cursor): New defines.
c8d09ad8 5757 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
5758 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
5759
5760 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
5761
5762 * macterm.c: Don't include Gestalt.h.
5763 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
5764 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
5765 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
5766 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
5767 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
5768 (construct_mouse_click, XTmouse_position)
5769 (x_scroll_bar_report_motion, x_calc_absolute_position)
5770 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
5771 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
5772 (note_mouse_movement): Clear the mouse face and reset the pointer
5773 shape when the pointer goes outside the frame without grabbing.
5774 (mac_front_window): New function.
5775 (mac_window_to_frame): New macro.
5776 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
5777 (do_window_activate, do_window_deactivate, do_app_resume)
5778 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
5779 (do_zoom_window, mac_do_receive_drag, XTread_socket)
5780 (mac_check_for_quit_char): Use mac_front_window and/or
5781 mac_window_to_frame.
5782 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
5783 scroll-bar click event.
5784 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 5785 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 5786 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 5787 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
5788 (do_window_update): Don't do anything if the updated window is the
5789 tooltip window.
5790 (do_mouse_moved): Handle mouse movement events here (previously in
5791 XTread_socket). Clear the mouse face if
5792 dpyinfo->mouse_face_hidden is set.
5793 (do_os_event, do_events): Remove (now in XTread_socket).
5794 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
5795 Loop until all the events in the queue are processed.
5796 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
5797 contents of do_os_event and do_events. Remove mouse movement
5798 handling (now in do_mouse_moved). Add the case where
5799 Vmouse_highlight has an integer value.
5800 (NewMacWindow): Remove.
5801 (make_mac_frame): Do what NewMacWindow previously did. Don't do
5802 excess initializations.
5803 (make_mac_terminal_frame): Previous initializations in
5804 make_mac_frame are moved here.
c8d09ad8
SM
5805 (mac_initialize_display_info):
5806 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
5807
5808 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
5809 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
5810
08fd1251
RS
58112004-05-29 Richard M. Stallman <rms@gnu.org>
5812
5813 * lisp.h (truncate_undo_list): Update decl.
5814
5815 * alloc.c (undo_outer_limit): New variable.
5816 (syms_of_alloc): Defvar it.
5817 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
5818
5819 * undo.c (truncate_undo_list): New arg LIMITSIZE.
5820
5821 * alloc.c (lisp_align_malloc): Check for base == 0
5822 regardless of HAVE_POSIX_MEMALIGN.
5823 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
5824
227ef0ff
SM
58252004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5826
5827 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
5828 (marker_blocks_pending_free): Remove.
5829 (Fgarbage_collect): Sweep after cleaning up undo-lists.
5830 Mark the undo lists after claning them up.
5831 Don't free block in marker_blocks_pending_free.
5832 (mark_buffer): Don't mark undo_list.
5833 (gc_sweep): Sweep hash-tables and strings first.
5834 Do free marker blocks that are empty.
5835
034a6113
SM
58362004-05-28 Jim Blandy <jimb@redhat.com>
5837
5838 * regex.c (print_partial_compiled_pattern): Add missing 'break'
5839 after 'case wordend'. For symbeg and symend, print to stderr,
5840 like the other cases.
5841
33594a8d
NF
58422004-05-28 Noah Friedman <friedman@splode.com>
5843
5844 * process.c (Fdelete_process): Do not call remove_process.
5845
ce50a847
SM
58462004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5847
5848 * alloc.c (struct backtrace): Remove.
5849 (Fgarbage_collect): Use the new mark_backtrace.
5850
5851 * eval.c (mark_backtrace): New function.
5852
5853 * minibuf.c (run_exit_minibuf_hook): New function.
5854 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
5855 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
5856
1e8dae36
KS
58572004-05-27 Kim F. Storm <storm@cua.dk>
5858
5859 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
5860 over display properties, e.g. images, that replace buffer text.
5861
846faa3b
KS
58622004-05-25 Kim F. Storm <storm@cua.dk>
5863
5864 * alloc.c (marker_blocks_pending_free): New var.
5865 (gc_sweep): Store free marker blocks on that list.
5866 (Fgarbage_collect): Free them after undo-list cleanup.
5867
5868 * process.c (wait_reading_process_input): Check connect_wait_mask
5869 before actually accepting connection in case it has already been
5870 accepted due to recursion.
5871
b6189c3b 58722004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 5873
ce50a847
SM
5874 * coding.c (Fset_safe_terminal_coding_system_internal):
5875 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 5876
71d5a208
RS
58772004-05-22 Richard M. Stallman <rms@gnu.org>
5878
5879 * alloc.c (Fmake_string): Doc fix.
5880
5881 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
5882 and the alist pairs too.
5883
5884 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
5885
5886 * emacs.c (main): Update copyright year.
5887
5888 * fileio.c (Fread_file_name): Expand DIR if not absolute.
5889
5890 * insdel.c (del_range_2, replace_range): Don't write an anchor
5891 if the gap is empty.
5892
5893 * xdisp.c (try_scrolling): If scroll-up-aggressively or
5894 scroll-down-aggressively is small but positive, put point
5895 near the screen edge.
5896
f63fd14e
JB
58972004-05-22 Juanma Barranquero <lektu@terra.es>
5898
5899 * keymap.c (Fdefine_key): Doc fix.
5900
4d12067c
KS
59012004-05-22 Kim F. Storm <storm@cua.dk>
5902
5903 * alloc.c (struct backtrace): Add debug_on_exit member.
5904 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
5905 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
5906 the removed cons cells.
5907 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
5908 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
5909 any cons cells pointing to unallocated stings.
5910 Do not lisp_free any marker blocks, as there may still be pointers
5911 to them from buffer undo lists at this stage of GC.
5912
5913 * keyboard.c (struct backtrace): Add debug_on_exit member.
5914 (Fcommand_execute): Clear it.
5915
931285e2
LT
59162004-05-20 Luc Teirlinck <teirllm@auburn.edu>
5917
5918 * intervals.c (lookup_char_property): Do not prematurely return nil.
5919
669fa600
SM
59202004-05-19 Jim Blandy <jimb@redhat.com>
5921
5922 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 5923 beginning and end of symbols.
4d12067c 5924
669fa600
SM
5925 * regex.c (enum syntaxcode): Add Ssymbol.
5926 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
5927 (re_opcode_t): New opcodes `symbeg' and `symend'.
5928 (print_partial_compiled_pattern): Print the new opcodes properly.
5929 (regex_compile): Parse the new operators.
ce50a847 5930 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
5931 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
5932 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
5933 (re_match_2_internal): Match symbeg and symend.
5934
5935 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
5936
0d8c2e5c
KS
59372004-05-19 Kim F. Storm <storm@cua.dk>
5938
5939 * .gdbinit (xsymbol): Fix last change.
5940
669fa600
SM
59412004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
5942
5943 * .gdbinit (xprintstr): New fun.
5944 (xstring, xprintsym): Use it.
5945
5946 * w32proc.c (create_child): Use INTMASK.
5947
5948 * alloc.c (Fgarbage_collect): Do all the marking before flushing
5949 unmarked elements of the undo list.
5950
9a6a4c40
DP
59512004-05-18 David Ponce <david@dponce.com>
5952
5953 * print.c (print): Reset print_depth before to call print_object.
5954
f3c4ec74
JR
59552004-05-18 Jason Rumney <jasonr@gnu.org>
5956
5957 * w32console.c: Prefix RIF functions with w32con_ to avoid
5958 namespace clash with functions in term.c and w32term.c.
5959
5960 * w32menu.c (add_menu_item, w32_menu_display_help)
5961 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
5962
0d8c2e5c 5963 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 5964
6be49c3a
EZ
59652004-05-18 Eli Zaretskii <eliz@gnu.org>
5966
4d0b9a0a
EZ
5967 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
5968
6be49c3a
EZ
5969 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
5970 with make_number.
5971 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
5972 with XINT.
5973
0bc90bba
KS
59742004-05-18 Kim F. Storm <storm@cua.dk>
5975
89d19988
KS
5976 * blockinput.h (INPUT_BLOCKED_P): New macros.
5977
5978 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
5979 (Ftop_level): Unblock input if blocked.
5980
0bc90bba
KS
5981 * buffer.h (GET_OVERLAYS_AT): New macro.
5982 * msdos.c (IT_note_mouse_highlight): Use it.
5983 * textprop.c (get_char_property_and_overlay): Use it.
5984 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
5985 * xfaces.c (face_at_buffer_position): Use it.
5986
5987 * print.c (print_object): Increase buf size.
5988
653bd0f6
JR
59892004-05-17 Jason Rumney <jasonr@gnu.org>
5990
5991 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
5992 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
5993 Lisp_Object using i member.
5994 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
5995 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
5996 consistently.
5997
5998 * w32proc.c (create_child): Use make_number instead of masking pid.
5999
6000 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
6001 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
6002 Use EQ to compare Lisp_Objects.
6003 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
6004
6005 * w32term.c (w32_num_mouse_buttons): Rename from
6006 Vw32_num_mouse_buttons and make it an int.
6007
6008 * w32.c (init_environment): Use it.
6009
6010 * w32fns.c (w32_wnd_proc): Likewise.
6011
6012 * w32proc.c (w32_pipe_read_delay): Rename from
6013 Vw32_pipe_read_delay and make it an int.
6014
6015 * w32.c (_sys_read_ahead): Use it.
6016
6017 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
6018
6019 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
6020
6021 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
6022 (key_event): Don't mix Lisp_Object and int.
6023
6024 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
6025
6026 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
6027 modifiers in language change event.
6028
54b53ba7
KS
60292004-05-17 Kim F. Storm <storm@cua.dk>
6030
6031 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
6032 Such objects may be freed markers which still exist on an undo list.
6033
6e86a75d
JB
60342004-05-16 Juanma Barranquero <lektu@terra.es>
6035
6036 * data.c (Fset_default): Make argument names match their use in
6037 docstring.
6038
fc80da24
AS
60392004-05-15 Andreas Schwab <schwab@suse.de>
6040
6041 * emacs.c (gdb_array_mark_flag): Define.
6042 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
6043
c1380aa6
EZ
60442004-05-15 Eli Zaretskii <eliz@gnu.org>
6045
6046 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
6047 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
6048 defined for the MS-DOS build.
6049
89458937
SM
60502004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6051
6052 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
6053
08020f9a
KH
60542004-05-14 Kenichi Handa <handa@m17n.org>
6055
6056 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
6057
a433994a
ST
60582004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6059
6060 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
6061 section to frame.c section.
6062 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 6063 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 6064
a433994a 6065 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 6066
a433994a 6067 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 6068
a433994a
ST
6069 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
6070 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
6071 (XTread_socket): Fix int/Lisp_Object mixup.
6072 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 6073
a433994a
ST
6074 * macterm.h (struct frame, struct face, struct image)
6075 (display_x_get_resource, Fx_display_color_p)
89458937
SM
6076 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
6077 Add prototypes.
a433994a 6078
b51a51b9
KS
60792004-05-14 Kim F. Storm <storm@cua.dk>
6080
6081 * process.c (wait_reading_process_input): Make reentrant.
6082 Make Available and Connecting non-static. Save and restore value
6083 of waiting_for_user_input_p.
6084
2bde1dd8
KS
60852004-05-13 Kim F. Storm <storm@cua.dk>
6086
6087 * keyboard.c (mark_kboards): Don't mark x and y members
6088 that are overloaded in selection request events.
6089
a267ab4d
SM
60902004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6091
6092 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
6093
eb15ce9e
GM
60942004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
6095
6096 * window.c (Fdisplay_buffer, Fsplit_window)
6097 (split-height-threshold): Doc fix.
6098
7fc92635
JB
60992004-05-13 Juanma Barranquero <lektu@terra.es>
6100
6101 * xfaces.c (Ftty_supports_face_attributes_p)
6102 (Finternal_copy_lisp_face): Fix typo in docstring.
6103 (Finternal_get_lisp_face_attribute): Fix docstring.
6104
1ec2a572
JD
61052004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6106
6107 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
6108
ae9292e0
ST
61092004-05-11 Steven Tamm <steventamm@mac.com>
6110
6111 * macfns.c (Fx_create_frame): Default to using tool-bar by
6112 setting tool-bar-lines to 1 in default-frame-alist.
6113
61142004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
6115
6116 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
6117 (xpm_get_color_table_v, xpm_make_color_table_h)
6118 (xpm_put_color_table_h, xpm_get_color_table_h)
6119 (xpm_str_to_color_key, xpm_load_image, xpm_load)
6120 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 6121 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 6122
fe97e8df
ST
61232004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6124
a267ab4d 6125 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
6126 instead of FRAME_X_P
6127
b47e779e
KS
61282004-05-11 Kim F. Storm <storm@cua.dk>
6129
6130 * process.c (read_process_output): Grow decoding_buf when needed;
6131 this could cause a crash in allocate_string and compact_small_strings.
6132
cdc9b845
EZ
61332004-04-29 Jim Blandy <jimb@redhat.com>
6134
6135 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
6136 against proper opcode.
6137
aa7094ba
JB
61382004-05-10 Juanma Barranquero <lektu@terra.es>
6139
6140 * process.c (Fstart_process): Fix docstring.
6141
6142 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
6143 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
6144 (Fsplit_char, Fchar_charset): Make argument names match their use
6145 in docstring.
6146
e109331a
RS
61472004-05-10 Richard M. Stallman <rms@gnu.org>
6148
6149 * print.c (print_preprocess): Use being_printed, loop_count and
6150 halftail to detect overdeep nesting and cyclic cdr chains.
6151
9a28b921
AS
61522004-05-10 Andreas Schwab <schwab@suse.de>
6153
78819ebb 6154 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
6155
6156 * fileio.c (Frename_file): Remove extra argument in call to
6157 Fmake_symbolic_link.
6158
e2c02c1a
KS
61592004-05-10 Kim F. Storm <storm@cua.dk>
6160
6161 * xdisp.c (calc_line_height_property): Use string position when
6162 object is a string.
6163
cfe9d13e
KH
61642004-05-10 Kenichi Handa <handa@m17n.org>
6165
a57e8159
KH
6166 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
6167 inhibit-modification-hooks to t temporarily before calling
6168 Ferase_buffer.
6169
6170 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
6171 inhibit-modification-hooks to t temporarily before calling
6172 Ferase_buffer.
6173
6174 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
6175 inhibit-modification-hooks to t temporarily before calling
6176 Ferase_buffer.
6177
cfe9d13e
KH
6178 * fns.c (count_combining): Delete it.
6179 (concat): Don't check combining bytes.
6180
ceb96489
JR
61812004-05-09 Jason Rumney <jasonr@gnu.org>
6182
6183 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
6184 (globals_of_w32fns): Set it.
6185
b6189c3b 61862004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
6187
6188 * data.c (Fquo): Simplify.
6189
28712a21
JB
61902004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
6191
6192 * data.c (Fquo): If any argument is float, do the computation in
6193 floating point.
6194
0f0af7a8
JB
61952004-05-08 Juanma Barranquero <lektu@terra.es>
6196
88214ef6
JB
6197 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
6198 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
6199 Fix spelling of Emacs on docstring.
6200 (Fset_process_coding_system, Fprocess_coding_system)
6201 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
6202 Make argument names match their use in docstring.
6203 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
6204 Fix docstring.
6205
0f0af7a8
JB
6206 * editfns.c (Finsert_buffer_substring): Make argument names match their
6207 use in docstring.
6208
6209 * syntax.c (Fmodify_syntax_entry): Fix docstring.
6210
2a316a84
ST
62112004-05-07 Steven Tamm <steventamm@mac.com>
6212
6213 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
6214 around call to ReceiveEvent to avoid certain crashes.
6215
62162004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 6217
2a316a84
ST
6218 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
6219 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
6220 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
6221 Save/restore the current graphics port and device handle when
6222 drawing into an offscreen graphics world.
6223
6224 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
6225 (gif_load): Likewise.
6226
ab80314b
JB
62272004-05-07 Juanma Barranquero <lektu@terra.es>
6228
6229 * window.c (Fset_window_buffer): Fix docstring.
6230
70646bb5
TTN
62312004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
6232
6233 * emacs.c (main) [VMS]: Fix var ref.
6234
b6189c3b 62352004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
6236
6237 * data.c (Fsetq_default): Fix docstring.
6238
279d3293
JR
62392004-05-06 Jason Rumney <jasonr@gnu.org>
6240
6241 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
6242 to avoid name clash.
6243
f72b5416
JD
62442004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6245
6246 * fileio.c (barf_or_query_if_file_exists): Use lstat.
6247 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 6248 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 6249
6ab66799
KS
62502004-05-04 Kim F. Storm <storm@cua.dk>
6251
6252 * xdisp.c (Qtotal): New var.
6253 (syms_of_xdisp): Intern and staticpro it.
6254 (calc_line_height_property): New arg total. Set it if
6255 line-spacing property has format (total . VALUE).
6256 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
6257 Handle total line-spacing property.
6258
ab2d724b
JD
62592004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6260
6261 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
6262 "under" scroll bar when size/position changes.
6263
238add5e
JR
62642004-05-03 Jason Rumney <jasonr@gnu.org>
6265
6266 * makefile.nt: Remove.
6267
1644f4e4
EZ
62682004-05-02 Eli Zaretskii <eliz@gnu.org>
6269
a267ab4d
SM
6270 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
6271 Avoid compiler warnings.
05fdbeb8 6272
1644f4e4
EZ
6273 * Makefile.in (region-cache.o): Depend on config.h.
6274
b6189c3b 62752004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
6276
6277 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
6278 with continuation lines, too.
6279
2b98b088
TTN
62802004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
6281
6282 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
6283
d9bf7950
SM
62842004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
6285
6286 * xdisp.c (calc_line_height_property): YAILOM (yet another
6287 int/Lisp_Object mixup).
6288
affa509c
EZ
62892004-05-01 Eli Zaretskii <eliz@gnu.org>
6290
6291 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
6292 undo bad effect of pack(4) in some versions of system headers.
6293
07c07cfe
JR
62942004-05-01 Jason Rumney <jasonr@gnu.org>
6295
6296 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
6297
e71caa4e
KS
62982004-04-30 Kim F. Storm <storm@cua.dk>
6299
6300 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 6301 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
6302
6303 * dispextern.h (struct it): Remove member use_default_face.
6304 Add members override_ascent, override_descent, override_boff.
6305
6306 * xdisp.c (init_iterator): Handle line-spacing float value.
6307 Initialize override_ascent member.
6308 (append_space_for_newline): Reset override_ascent.
6309 Remove use_default_face.
6310 (calc_line_height_property): New function to calculate value of
6311 line-height and line-spacing properties. Look at overlays, too.
6312 Set override_ascent, override_descent, override_boff members when
6313 using another face than the current face. Float values are now
6314 relative to the frame default font, by default; accept a cons
6315 of ratio and face name to specify value relative to a specific face.
6316 (x_produce_glyphs): Use calc_line_height_property.
6317 Use override_ascent etc. when set to handle different face heights.
6318 A negative line-spacing property value is interpreted as a total
6319 line height, rather than inter-line spacing.
6320 (note_mouse_highlight): Allocate room for 40 overlays initially.
6321
0fddae66
SM
63222004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6323
6324 * data.c (Fsubr_name): New fun.
6325 (syms_of_data): Defsubr it.
6326
712d23dc
KS
63272004-04-29 Kim F. Storm <storm@cua.dk>
6328
6329 * xdisp.c (null_glyph_slice): New var.
6330 (append_glyph, append_composite_glyph, append_stretch_glyph):
6331 Use it to initialize glyph slice.
6332
033ad8c6
SM
63332004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
6334
6335 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
6336 (on_hot_spot_p): Make sure we always return a value.
6337 (Flookup_image_map): Remove unused var ix and iy.
6338 (note_mode_line_or_margin_highlight): Remove unused var `image'.
6339
93397360
EZ
63402004-04-27 Eli Zaretskii <eliz@gnu.org>
6341
6342 * msdos.c (init_environment): If one of the TMP... environment
6343 variables is set to a drive letter without a trailing slash,
6344 append a slash.
6345
0c54865e
EZ
63462004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
6347
6348 * editfns.c (lisp_time_argument): Provide externally.
6349
6350 * fileio.c (Fset_file_times): New function.
6351 (syms_of_fileio): Intern and staticpro it.
6352
d3b111bd
KS
63532004-04-27 Kim F. Storm <storm@cua.dk>
6354
07dc1231
KS
6355 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
6356 header line strings.
6357
360fe9d2
KS
6358 * dispextern.h (struct it): New member use_default_face.
6359
d3b111bd
KS
6360 * xdisp.c (Qline_height): New variable.
6361 (syms_of_xdisp): Intern and staticpro it.
6362 (append_space_for_newline): Partially undo 2004-04-25 change;
6363 add default_face_p arg, and restore callers.
6364 Clear it->use_default_face after use.
6365 (x_produce_glyphs): Set default font for ascii char if
6366 it->use_default_font is set. Change line-spacing property to set
6367 just extra line spacing. Handle new line-height property.
6368
0448588b
AS
63692004-04-26 Andreas Schwab <schwab@suse.de>
6370
6371 * print.c (print_object): Print non-ascii characters in bool
6372 vector representation as octal escapes.
6373
6374 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
6375 * print.c (print_object): Use it instead of BITS_PER_CHAR for
6376 bool vectors.
6377 * lread.c (read1): Likewise.
6378 * alloc.c (Fmake_bool_vector): Likewise.
6379 * data.c (Faref, Faset): Likewise.
6380 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
6381 (mapcar1): Likewise.
d3b111bd 6382
536d6baa
ST
63832004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
6384
7e26f91b 6385 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 6386
ae11577a
MB
63872004-04-26 Miles Bader <miles@gnu.org>
6388
6389 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
6390
e198ba87
JB
63912004-04-26 Juanma Barranquero <lektu@terra.es>
6392
6393 * buffer.c (Fpop_to_buffer): Fix docstring.
6394
f3d5f92d 63952004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 6396
f3d5f92d
ST
6397 * lread.c (init_lread): Don't display missing lisp directory
6398 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 6399 may be built without correct installation path.
f3d5f92d 6400
03e35edc
KS
64012004-04-25 Kim F. Storm <storm@cua.dk>
6402
9ff3aa31
KS
6403 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6404
6405 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6406
03e35edc
KS
6407 * xdisp.c (append_space_for_newline): Rename from append_space.
6408 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
6409 (x_produce_glyphs): Handle line-spacing property on newline char.
6410 If value is t, adjust ascent and descent to fit current row height.
6411 If value is an integer or float, set extra_line_spacing to integer
6412 value, or to float value x current line height.
6413
f24814e0
KH
64142004-04-23 Kenichi Handa <handa@m17n.org>
6415
6416 * fontset.c (Finternal_char_font): If POSITION is nil, return
6417 font for displaying CH with the default face.
6418
d814862a
JB
64192004-04-23 Juanma Barranquero <lektu@terra.es>
6420
6421 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
6422
063a45c5
SM
64232004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6424
6425 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
6426 Don't make assumptions about the relative place of i and val.
6427 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
6428
ae7ab2d3
KS
64292004-04-21 Kim F. Storm <storm@cua.dk>
6430
6431 * dispextern.h (struct glyph_slice): New struct.
6432 (struct glyph): New member slice.
6433 (GLYPH_SLICE_EQUAL_P): New macro.
6434 (GLYPH_EQUAL_P): Use it.
6435 (struct glyph_string): New member slice.
6436 (struct it_slice): New struct.
6437 (struct it): New member slice, add member to stack too.
6438 New member constrain_row_ascent_descent_p.
6439 (image_ascent): Add prototype.
6440
6441 * dispnew.c (buffer_posn_from_coords): Return full image width
6442 and height even for image slices (posn is relative to full image).
6443 (marginal_area_string): Adjust x0,y0 for image slice.
6444
6445 * image.c (image_ascent): Add slice arg; calculate ascent for
6446 image slice (or full image).
6447
6448 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
6449 (syms_of_keyboard): Defsubr them.
6450
6451 * lisp.h (pos_visible_p): Fix prototype.
6452
c62aec78 6453 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
6454 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6455 (x_draw_image_foreground, x_draw_image_relief)
6456 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6457 Draw sliced images.
6458
6459 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
6460 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6461 (x_draw_image_foreground, x_draw_image_relief)
6462 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
6463 Draw sliced images.
6464
6465 * w32term.h (image_ascent): Remove prototype.
6466
6467 * window.c (Fpos_visible_in_window_p): Return pixel position if
6468 PARTIALLY arg is non-nil. Simplify. Doc fix.
6469 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
6470 to return/set vscroll in pixels.
6471
6472 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
6473
6474 * xdisp.c (Qslice): New variable.
6475 (syms_of_xdisp): Intern and staticpro it.
6476 (pos_visible_p): Return pixel position in new x and y args.
6477 (init_iterator): Reset it->slice info.
6478 (handle_display_prop): Parse (slice ...) property.
6479 (push_it, pop_it): Save/restore slice info.
6480 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
6481 force repositioning of tall row if window is vscrolled, as that
6482 would reset vscroll.
6483 (append_space): Set it->constrain_row_ascent_descent_p to avoid
6484 increasing row height if row is non-empty.
6485 (fill_image_glyph_string): Copy slice info.
6486 (take_vertical_position_into_account): Simplify.
6487 (produce_image_glyph): Handle iterator slice info, setup glyph
6488 slice info. Do not force minimum line height.
6489 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
6490 do not increase height (ascent/descent) of non-empty row when
6491 adding normal character glyph; instead reduce glyph ascent/descent
6492 appropriately; if row is higher than current glyph, adjust glyph
6493 descent/ascent to reposition glyph within the existing row.
6494 Likewise, when char is newline, only set ascent/descent if row is
6495 currently empty.
6496 (note_mouse_highlight): Handle hotspots with sliced image.
6497
6498 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
6499 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6500 (x_draw_image_foreground, x_draw_image_relief)
6501 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6502 Draw sliced images.
6503
6504 * xterm.h (image_ascent): Remove prototype.
6505
d58f8753
SM
65062004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
6509
4ce2719d
JPW
65102004-04-20 John Paul Wallington <jpw@gnu.org>
6511
6512 * fns.c (Fassoc, Feql): Fix indentation.
6513
d58f8753 6514 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 6515
95f8c3b9
JPW
65162004-04-19 John Paul Wallington <jpw@gnu.org>
6517
6518 * fns.c (Feql): New function.
d58f8753 6519 (syms_of_fns): Defsubr it.
95f8c3b9 6520
b7e85537
JR
65212004-04-18 Jason Rumney <jasonr@gnu.org>
6522
6523 * w32select.c (Fw32_set_clipboard_data): Get sequence number
6524 after closing the clipboard.
6525
5a72efd4
LT
65262004-04-16 Luc Teirlinck <teirllm@auburn.edu>
6527
6528 * buffer.c (Fbuffer_base_buffer): Doc fix.
6529
20dc8583
KS
65302004-04-17 Kim F. Storm <storm@cua.dk>
6531
60962ec4
KS
6532 * keymap.c (Fkey_description): Add optional PREFIX arg.
6533 Combine prefix with KEYS to make up the full key sequence to describe.
6534 Correlate meta_prefix_char and following (simple) key to describe
6535 as meta modifier. All callers changed.
6536 (describe_map): Rename arg `keys' to `prefix'. Remove local
6537 `elt_prefix' var. Use Fkey_description with prefix instead of
6538 elt_prefix combined with Fsingle_key_description.
6539 (describe_vector): Declare static. Replace arg `elt_prefix' with
6540 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 6541 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
6542 Fsingle_key_description.
6543
6544 * keymap.h (Fkey_description): Fix prototype.
6545 (describe_vector): Remove prototype.
6546
409368b9
KS
6547 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
6548
20dc8583
KS
6549 * image.c (PNG_BG_COLOR_SHIFT): Remove.
6550 (png_load): Fix calculation of transparent background color on X
6551 and W32 platforms.
6552
75c5501b
JB
65532004-04-16 Juanma Barranquero <lektu@terra.es>
6554
6555 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
6556 not too large before computing how much to scroll.
6557
da879ae8
SM
65582004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
6559
6560 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
6561
d01ca4a8
LT
65622004-04-14 Luc Teirlinck <teirllm@auburn.edu>
6563
6564 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
6565 Add hyperlink to Elisp manual to the docstring.
6566
572943b3
SM
65672004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
6568
6569 * callint.c (fix_command): Use XDCR.
6570
5e30a0fb
NR
65712004-04-14 Nick Roberts <nick@nick.uklinux.net>
6572
6573 * window.c (Fget_lru_window): Doc fix.
6574
a27ddfaf
KS
65752004-04-14 Kim F. Storm <storm@cua.dk>
6576
6577 * editfns.c (Fformat): Fix allocation size of precision array.
6578
6579 * dispnew.c (update_window): Only set changed_p if
6580 scrolling_window actually did scroll.
6581 (scrolling_window): Only return 1 if we actually did scroll.
6582
6583 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
6584 height to glyph height when cursor row is not fully visible.
6585 (make_cursor_line_fully_visible): Add FORCE_P arg to return
6586 failure in case row is higher than window. Callers changed.
6587 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
6588 Try to scroll partially visible, higher-than-window cursor row.
6589 (redisplay_window): Always try to scroll partially visible,
6590 higher-than-window cursor row - both initially and again with
6591 centering_position = 0.
6592 Clear desired matrix before retrying with centering_position = 0.
6593
da879ae8
SM
65942004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6595
6596 * syntax.c (scan_lists): Simplify backward string scan.
6597 Fix off-by-one boundary check for string and comment fences.
6598
5fc16e8e
SM
65992004-04-13 Joe Buehler <jbuehler@hekimian.com>
6600
6601 * sheap.c, unexcw.c: New files.
6602
c9aac8e6
LT
66032004-04-12 Luc Teirlinck <teirllm@auburn.edu>
6604
6605 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
6606 base buffer has been killed. Correct the error message if the
6607 base buffer does not exist.
6608
1e88a355
SM
66092004-04-12 Joe Buehler <jbuehler@hekimian.com>
6610
6611 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
6612 Cygwin itself. Add support for Xaw3d scrollbars.
6613
6614 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
6615
6616 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
6617
6618 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
6619 before Cygwin unexec.
6620
6621 * Makefile.in: Link changes for Cygwin unexec() support.
6622
8dbff9a0
AS
66232004-04-12 Andreas Schwab <schwab@suse.de>
6624
6625 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
6626
54dffe35
LT
66272004-04-11 Luc Teirlinck <teirllm@auburn.edu>
6628
6629 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
6630 IGNORE argument equals NAME. Doc fix.
6631
99a72bdf
MY
66322004-04-11 Masatake YAMATO <jet@gyve.org>
6633
1e88a355 6634 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
6635 empty if they are backwards.
6636
40899d7b
SM
66372004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6638
6639 * xfaces.c (face_color_supported_p): Fix compilation without X11.
6640
f8f853de
SM
66412004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
6642
6643 * doc.c (Fsnarf_documentation): Ignore new file name entries.
6644
c953fe1b
KS
66452004-04-06 Kim F. Storm <storm@cua.dk>
6646
661e85c1
KS
6647 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6648 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
6649
6650 * w32term.c (w32_read_socket): Set mouse_face_hidden after
6651 clearing highlight.
6652
6653 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6654
6655 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
6656 clearing highlight.
6657
c953fe1b
KS
6658 * indent.c (vmotion): Do not reserve one column for continuation
6659 marks on window frames.
6660
c1994268
EZ
66612004-04-04 Eli Zaretskii <eliz@gnu.org>
6662
6663 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
6664 from GCC.
6665
9f691b0d
SM
66662004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * .gdbinit-union: Remove.
6669
6670 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
6671 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
6672 ($nonvalbits): Remove.
6673 ($valmask): Set it by calling xreload to avoid redundancy.
6674
6675 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
6676 (gdb_emacs_intbits): Remove.
6677
7a8560d7
JD
66782004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6679
9f691b0d 6680 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 6681
3c8111fc
KH
66822004-03-30 Kenichi Handa <handa@m17n.org>
6683
6684 * editfns.c (Fformat): Fix initialization of the array info.
6685
48a0bce4
KS
66862004-03-30 Kim F. Storm <storm@cua.dk>
6687
6688 * xterm.c (x_mouse_click_focus_ignore_position): New var.
6689 (syms_of_xterm): DEFVAR_BOOL it.
6690 (ignore_next_mouse_click_timeout): New var.
6691 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
6692 Use it to filter mouse clicks following focus event.
6693
1cd0066c
KS
66942004-03-29 David Ponce <david@dponce.com>
6695
6696 * callint.c (Fcall_interactively): Fix last change.
6697
adb3b353
SM
66982004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6699
6700 * eval.c (Fcommandp): Simplify.
6701
6702 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
6703 Extend to handle all kinds of functions.
6704
6705 * lisp.h (Finteractive_form): Declare.
6706
6707 * callint.c (Fcall_interactively): Use it.
6708
6fc4c9c9
KS
67092004-03-26 Kim F. Storm <storm@cua.dk>
6710
6711 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
6712 to catch errors in calc_pixel_width_or_height during redisplay.
6713
abdb9b83
MY
67142004-03-26 Masatake YAMATO <jet@gyve.org>
6715
b17856dd 6716 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 6717
b17856dd 6718 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 6719
b17856dd 6720 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 6721
b17856dd 6722 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 6723
e8a84b6c
JD
67242004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6725
b17856dd 6726 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 6727
36a3fd05
RS
67282004-03-19 Richard M. Stallman <rms@gnu.org>
6729
6730 * s/sol2-6.h: Delete previous change.
6731
ab24c127
KS
67322004-03-19 Kim F. Storm <storm@cua.dk>
6733
6734 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
6735 to_charpos corresponds to newline in right fringe. Use local
6736 BUFFER_POS_REACHED_P macro.
6737
992126de
JD
67382004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6739
6740 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
6741 to compile on non-window system.
6742
45dbfc84
KS
67432004-03-19 Kim F. Storm <storm@cua.dk>
6744
6745 * dispextern.h (calc_pixel_width_or_height): Add prototype.
6746
6747 * image.c (Qcenter): Move to xdisp.c.
6748
6749 * xdisp.c (Qcenter): Declare here.
adb3b353 6750 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
6751 (handle_single_display_prop): Allow space display property on all
6752 platforms.
6753 (display_mode_line): Set mode_line_p before displaying line.
6754 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
6755 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 6756 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
6757 width/height. Return width or height for image specs.
6758 (produce_stretch_glyph): Improve handling of :align-to. Is now
6759 relative to left of text area by default, but other base offsets
6760 can be specified -- also for text lines.
6761
6762 * term.c (produce_glyphs): Handle IT_STRETCH.
6763 (produce_stretch_glyph): New function to handle space width and
6764 align-to display properties on non-window systems.
6765
37264101
SM
67662004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6767
6768 * fileio.c (Fread_file_name): Set completion-ignore-case for
6769 case-insensitive systems.
6770
73bc43da
MY
67712004-03-14 Masatake YAMATO <jet@gyve.org>
6772
6773 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
6774 when keymap and cursor are setup.
6775
d5fb8dab 67762004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 6777
b17856dd 6778 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 6779
e4b1b5ab
KS
67802004-03-14 Kim F. Storm <storm@cua.dk>
6781
6782 * dispextern.h (x_find_image_file): Add prototype.
6783
6784 * image.c (x_find_image_file): Make extern.
6785
6786 * xfns.c (x_find_image_file): Remove prototype.
6787
a6eeaa81 67882004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 6789
37264101 6790 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 6791
37264101 6792 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 6793
e69cfac2
RS
67942004-03-12 Richard M. Stallman <rms@gnu.org>
6795
6796 * fns.c (internal_equal): New arg PROPS controls comparing
6797 text properties. All callers changed.
6798 (Fequal_including_properties): New function.
6799 (syms_of_fns): defsubr it.
6800
45034953
KS
68012004-03-12 Kim F. Storm <storm@cua.dk>
6802
6803 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 6804
45034953
KS
6805 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
6806 (image_background, image_background_transparent): Fix prototypes.
6807
37264101 6808 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
6809
6810 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
6811 (x_query_font, x_find_ccl_program, x_set_window_size)
6812 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6813 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6814 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
6815
6816 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
6817 (x_query_font, x_find_ccl_program, x_set_window_size)
6818 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6819 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6820 (mac_draw_line_to_pixmap): Add prototypes.
6821
68222004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6823
6824 * macterm.c (XTread_socket): Fix mouse click on tool bar.
6825
a12d3d87
KS
68262004-03-11 Kim F. Storm <storm@cua.dk>
6827
d3ab1cf1
KS
6828 * dispextern.h: Move image related prototypes from xfns.c section
6829 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
6830 HAVE_X_WINDOWS.
37264101 6831
37de9f51 6832 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 6833 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
6834 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
6835 (GTK_OBJ) [USE_GTK]: New declaration.
6836 (obj): Add $(GTK_OBJ) to list.
6837
d5fb8dab 68382004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 6839
7e26f91b 6840 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
6841
6842 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 6843 defined in image.c.
5243c06a 6844
c0f97789
KS
68452004-03-11 Kim F. Storm <storm@cua.dk>
6846
6847 The following changes consolidates the identical/similar image
6848 support code previously found in xfns.c, w32fns.c, and macfns.c
6849 into a new file image.c.
6850
6851 * makefile.w32-in (OBJ1): Add image.o.
6852 ($(BLD)/image.$(O)): Add dependencies.
6853
6854 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
6855 (image.o): Add dependencies.
37264101 6856
c0f97789
KS
6857 * image.c: New file with consolidated image support code.
6858 (COLOR_TABLE_SUPPORT): New define to control whether
6859 color table support is available (X only).
6860 (Bitmap_Record): Common name for x_bitmap_record,
6861 w32_bitmap_record, and mac_bitmap_record.
6862 (XImagePtr): Common name for pointer to XImage or equivalent.
6863 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
6864 to XImagePtr on X+MAC, and to HDC on W32.
6865 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
6866 (NO_PIXMAP): Common name for "None" or equivalent.
6867 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
6868 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
6869 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
6870 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
6871 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
6872 (XDrawLine): Define on MAC for code sharing.
6873 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
6874 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
6875 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6876 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6877 (x_reference_bitmap, x_create_bitmap_from_data)
6878 (x_create_bitmap_from_file, x_destroy_bitmap)
6879 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6880 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6881 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6882 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6883 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6884 (define_image_type, lookup_image_type, valid_image_p)
6885 (image_error, enum image_value_type, struct image_keyword)
6886 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6887 (make_image, free_image, prepare_image_for_display, image_ascent)
6888 (four_corners_best, image_background, image_background_transparent)
6889 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6890 (make_image_cache, free_image_cache, clear_image_cache)
6891 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6892 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6893 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6894 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6895 (init_image_func_pointer, image_load_quartz2d)
6896 (struct ct_color, init_color_table, free_color_table)
6897 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6898 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6899 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6900 (x_disable_image, x_build_heuristic_mask)
6901 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6902 (TIFF support, GIF support, Ghostscript support): Consolidate image
6903 code from xfns.c, w32fns.c, and macfns.c.
6904 (syms_of_image): Consolidate image related symbol setup here.
6905 (init_image): Consolidate image related initializations here.
37264101 6906
c0f97789
KS
6907 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
6908 and init_image. Remove call to init_xfns.
6909
37264101
SM
6910 * macterm.h (struct mac_bitmap_record): Add file member.
6911 Not currently used, but simplifies code sharing.
c0f97789
KS
6912
6913 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6914 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6915 (x_reference_bitmap, x_create_bitmap_from_data)
6916 (x_create_bitmap_from_file, x_destroy_bitmap)
6917 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6918 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6919 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6920 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6921 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6922 (define_image_type, lookup_image_type, valid_image_p)
6923 (image_error, enum image_value_type, struct image_keyword)
6924 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6925 (make_image, free_image, prepare_image_for_display, image_ascent)
6926 (four_corners_best, image_background, image_background_transparent)
6927 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6928 (make_image_cache, free_image_cache, clear_image_cache)
6929 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6930 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6931 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6932 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6933 (init_image_func_pointer, image_load_quartz2d)
6934 (struct ct_color, init_color_table, free_color_table)
6935 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6936 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6937 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6938 (x_disable_image, x_build_heuristic_mask)
6939 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6940 (TIFF support, GIF support, Ghostscript support): Merge with image
6941 code from xfns.c and macfns.c into image.c.
6942 (syms_of_xfns): Move image related symbols to image.c.
6943 (init_external_image_libraries, init_xfns): Remove; initialization
6944 moved to init_image in image.c.
6945
6946 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6947 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6948 (x_reference_bitmap, x_create_bitmap_from_data)
6949 (x_create_bitmap_from_file, x_destroy_bitmap)
6950 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6951 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6952 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6953 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6954 (define_image_type, lookup_image_type, valid_image_p)
6955 (image_error, enum image_value_type, struct image_keyword)
6956 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6957 (make_image, free_image, prepare_image_for_display, image_ascent)
6958 (four_corners_best, image_background, image_background_transparent)
6959 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6960 (make_image_cache, free_image_cache, clear_image_cache)
6961 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6962 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6963 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6964 (struct ct_color, init_color_table, free_color_table)
6965 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6966 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6967 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6968 (x_disable_image, x_build_heuristic_mask)
6969 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6970 (TIFF support, GIF support, Ghostscript support): Merge with image
6971 code from xfns.c and macfns.c into image.c.
6972 (syms_of_xfns): Move image related symbols to image.c.
6973 (init_external_image_libraries, init_xfns): Remove; initialization
6974 moved to init_image in image.c.
6975
6976 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6977 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6978 (x_reference_bitmap, x_create_bitmap_from_data)
6979 (x_create_bitmap_from_file, x_destroy_bitmap)
6980 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6981 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6982 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6983 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6984 (define_image_type, lookup_image_type, valid_image_p)
6985 (image_error, enum image_value_type, struct image_keyword)
6986 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6987 (make_image, free_image, prepare_image_for_display, image_ascent)
6988 (four_corners_best, image_background, image_background_transparent)
6989 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6990 (make_image_cache, free_image_cache, clear_image_cache)
6991 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6992 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6993 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6994 (struct ct_color, init_color_table, free_color_table)
6995 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6996 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6997 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6998 (x_disable_image, x_build_heuristic_mask)
6999 (XBM support, XPM support, PBM support, PNG support, JPEG support)
7000 (TIFF support, GIF support, Ghostscript support): Merge with
7001 w32fns.c and macfns.c image code into image.c.
7002 (syms_of_xfns): Move image related symbols to image.c.
7003 (init_xfns): Remove; initialization moved to init_image in image.c.
7004
7005 * lisp.h (syms_of_image, init_image): Add protoypes.
7006 (init_xfns): Remove prototype.
7007
7008 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7009 (x_reference_bitmap, x_create_bitmap_from_data)
7010 (x_create_bitmap_from_file, x_destroy_bitmap)
7011 (x_create_bitmap_mask): Move prototypes from dispextern.h.
7012 (gamma_correct) [MAC_OS]: Add prototype.
7013
7014 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7015 (x_reference_bitmap, x_create_bitmap_from_data)
7016 (x_create_bitmap_from_file, x_destroy_bitmap)
7017 (x_create_bitmap_mask): Move prototypes to dispextern.h.
7018
6eced09c
KH
70192004-03-09 Kenichi Handa <handa@etlken2>
7020
7021 * coding.c (decode_coding_emacs_mule): Handle insufficent source
7022 correctly.
7023
9a7e95f3
RS
70242004-03-04 Richard M. Stallman <rms@gnu.org>
7025
04a6e76b
RS
7026 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
7027
9a7e95f3
RS
7028 * window.c (Fdisplay_buffer): Doc fix.
7029
7030 * buffer.c (Fpop_to_buffer): Doc fix.
7031
6c2488df
KS
70322004-03-03 Kim F. Storm <storm@cua.dk>
7033
7034 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
7035
d8d95bc7
SM
70362004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
7037
7038 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
7039
357589bf
RS
70402004-03-02 Richard M. Stallman <rms@gnu.org>
7041
7042 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
7043
409949b5
KH
70442004-03-02 Kenichi Handa <handa@m17n.org>
7045
7046 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
7047
d24bc50f
KS
70482004-03-02 Kim F. Storm <storm@cua.dk>
7049
7050 * window.h (struct window): New member overlay_arrow_bitmap.
7051
7052 * window.c (make_window): Initialize overlay_arrow_bitmap.
7053
7054 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
7055 implement and integrate multiple overlay arrows with redisplay.
7056 (syms_of_xdisp): DEFVAR_LISP and initialize it.
7057 (last_arrow_position, last_arrow_string): Replace by properties.
7058 (Qlast_arrow_position, Qlast_arrow_string)
7059 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
7060 (syms_of_xdisp): Intern and staticpro them.
7061 (overlay_arrow_string_or_property, update_overlay_arrows)
7062 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
7063 (overlay_arrow_at_row): New functions for multiple overlay arrows.
7064 (redisplay_internal): Use them instead of directly accessing
7065 Voverlay_arrow_position etc. for multiple overlay arrows.
7066 (mark_window_display_accurate): Use update_overlay_arrows.
7067 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
7068 (try_window_id): Use overlay_arrows_changed_p.
7069 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
7070 (display_line): Use overlay_arrow_at_row to check multiple
7071 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 7072 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
7073 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
7074 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
7075
7076 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
7077 (update_window_fringes): Remove unused code.
7078
c1464661
JR
70792004-03-01 Jason Rumney <jasonr@gnu.org>
7080
7081 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
7082
a64387ee
JB
70832004-03-01 Juanma Barranquero <lektu@terra.es>
7084
7085 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
7086
7087 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
7088
334faa08
JD
70892004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7090
7091 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
7092 how many colors can be displayed.
7093
bb62616f
KH
70942004-03-01 Kenichi Handa <handa@m17n.org>
7095
7096 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
7097 correctly.
7098
0fd16104
KS
70992004-02-28 Kim F. Storm <storm@cua.dk>
7100
7101 * dispnew.c (update_window): Update header line also if there are
7102 no other changes in window (move code after set_cursor label).
7103
7104 * lisp.h (mark_window_display_accurate): Remove prototype.
7105
7106 * window.c (window_loop, Fforce_window_update): Force mode line
7107 updates by setting prevent_redisplay_optimizations_p and
7108 update_mode_lines.
7109
b59dd9c8
JD
71102004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7111
d8d95bc7 7112 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
7113
7114 * xterm.c (x_calc_absolute_position): Call x_real_positions
7115 to get WM window sizes and use those to calculate position.
d8d95bc7 7116 (x_set_offset): Remove code commented out.
b59dd9c8 7117
a874691c
MB
71182004-02-28 Miles Bader <miles@gnu.org>
7119
7120 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
7121
3e0c6482
KS
71222004-02-28 Kim F. Storm <storm@cua.dk>
7123
7124 * keyboard.c (kbd_buffer_store_event_hold): New function to store
7125 an event into kbd fifo, but with special handling of quit event;
7126 a quit event is saved for later, and further events are discarded
7127 until the saved quit event has been processed.
7128 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
7129 (gen_help_event): Store help event in kbd fifo.
7130 (NREAD_INPUT_EVENTS): Remove.
7131 (read_avail_input): Adapt to new read_socket_hook interface.
7132 Remove allocation and initialization of local input_event buffer,
7133 as read_socket_hook stores events directly in fifo. Allocate and
7134 initialize local hold_quit event to handle postponed quit event
7135 (and store it if set by kbd_buffer_store_event_hold).
7136
7137 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
7138 (gen_help_event): Fix prototype.
7139
a64387ee 7140 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 7141 numcharsp args. Add hold_quit arg.
f63fd14e 7142 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
7143 directly in fifo using kbd_buffer_store_event_hold.
7144
7145 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
7146 (read_input_waiting): Adapt to new read_socket_hook interface.
7147 Remove allocation and initialization of local input_event buffer,
7148 as read_socket_hook stores events directly in fifo. Allocate and
7149 initialize local hold_quit event to handle postponed quit event
7150 (and store it if set by kbd_buffer_store_event_hold).
7151
a64387ee 7152 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
7153
7154 * termhooks.h (read_socket_hook): Fix prototype.
7155
7156 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
7157 numcharsp args. Add hold_quit arg.
f63fd14e 7158 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
7159 directly in fifo using kbd_buffer_store_event_hold.
7160
7161 * w32inevt.h (w32_console_mouse_position): Fix prototype.
7162
7163 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
7164 Add hold_quit arg. Rework to use just one, local, inev
7165 input_event. Store inev directly in fifo using
3e0c6482
KS
7166 kbd_buffer_store_event_hold. Update count in one place.
7167 Postpone call to gen_help_event until inev is stored; use new
7168 local do_help for this.
7169 Remove local emacs_event in handing of ButtonPress event; just use
7170 inev instead (so no reason to copy it later).
7171
7172 * xsmfns.c (x_session_check_input): Remove numchars arg.
7173
d8d95bc7
SM
7174 * xterm.c (x_focus_changed, x_detect_focus_change):
7175 Remove numchars arg. Always store event into bufp arg.
7176 Return nothing. Callers changed accordingly.
3e0c6482
KS
7177 (glyph_rect): Simplify.
7178 (STORE_KEYSYM_FOR_DEBUG): New macro.
7179 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
7180 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
7181 (current_hold_quit) [USE_GTK]: Add.
7182 (event_handler_gdk): Adapt to new handle_one_xevent.
7183 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
7184 Add hold_quit arg. Rework to use just one, local, inev
7185 input_event. Store inev directly in fifo using
3e0c6482
KS
7186 kbd_buffer_store_event_hold. Update count in one place.
7187 Postpone call to gen_help_event until inev is stored; use new
7188 local do_help for this.
7189 Simplify handling of keysyms (consolidate common code). Fix bug
7190 where count was updated with nchars instead of nbytes.
7191 Remove local emacs_event in handing of ButtonPress event; just use
7192 inev instead (so no reason to copy it later).
7193 Remove `out' label. Rename label `ret' to `done'; add various
7194 `goto done' to clarify code flow in deeply nested blocks.
7195 (x_dispatch_event): Simplify as handle_one_xevent now calls
7196 kbd_buffer_store_event itself.
f63fd14e 7197 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
7198 arg. Call handle_one_xevent with new arglist. Store event from
7199 x_session_check_input in fifo.
7200 [USE_GTK]: Setup current_hold_quit.
7201 Decrement handling_signal before unblocking input.
7202 (x_initialize) [USE_GTK]: Initialize current_count.
7203
7204 * xterm.h (x_session_check_input): Fix prototype.
7205
e3564461 72062004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 7207
d8d95bc7 7208 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 7209
e3564461
ST
7210 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
7211 macgui.h).
a64387ee 7212
e3564461 7213 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 7214
e3564461
ST
7215 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
7216 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
7217 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
7218 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
7219 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
7220 (Bitmap): Remove typedef.
7221 (Pixmap): Change int to GWorldPtr.
7222
d8d95bc7 7223 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 7224
d8d95bc7
SM
7225 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7226 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
7227 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
7228 long representation.
7229 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
7230 colors used for masks.
7231 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 7232
e3564461
ST
7233 * macfns.c: Include sys/types.h and sys/stat.h.
7234 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
7235 Include QuickTime/QuickTime.h.
7236 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7237 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
7238 functions defined in macterm.c.
7239 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
7240 (ZPixmap): New #define for compatibility with xfns.c.
7241 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7242 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
7243 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
7244 New functions.
e3564461 7245 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
7246 (x_destroy_x_image, unwind_create_frame, x_disable_image)
7247 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
7248 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
7249 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
7250 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
7251 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
7252 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
7253 long mixup.
7254 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
7255 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
7256 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
7257 (x_set_cursor_type, Fxw_color_values, valid_image_p)
7258 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
7259 (x_alloc_image_color, clear_image_cache, lookup_image)
7260 (x_find_image_file, xbm_read_bitmap_file_data)
7261 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
7262 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
7263 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
7264 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
7265 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 7266 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
7267 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
7268 #if 0.
7269 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
7270 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
7271 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
7272 New functions (from xfns.c).
e3564461
ST
7273 (Fx_create_frame): Record unwind_create_frame.
7274 (Fxw_display_color_p): Use dpyinfo->color_p.
7275 (Fx_display_grayscale_p, Fx_display_planes): Don't use
7276 dpyinfo->n_cbits.
7277 (Fx_display_color_cells): Use dpyinfo->n_planes;
7278 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
7279 (Qheuristic, cross_disabled_images, emboss_matrix)
7280 (laplace_matrix): New variables (from xfns.c).
7281 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
7282 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
7283 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
7284 (image_background_transparent): New function (from xfns.c).
7285 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7286 (image_load_quicktime): Add declaration.
7287 [MAC_OSX] (image_load_quartz2d): Likewise.
7288 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
7289 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 7290 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
7291 (xbm_load_image_from_file, x_laplace_read_row)
7292 (x_laplace_write_row, pbm_read_file): Remove functions.
7293 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
7294 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
7295 (colors_in_color_table): Sync with xfns.c (although not used).
7296 (lookup_rgb_color): Don't lookup color table. Just do gamma
7297 correction.
7298 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
7299 (x_disable_image): New function (from xfns.c).
7300 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7301 (x_build_heuristic_mask): Sync with xfns.c.
7302 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7303 (HAVE_PBM): Remove #ifdef.
7304 (pbm_load): Sync with xfns.c. Set img->width and img->height
7305 before IMAGE_BACKGROUND.
d8d95bc7 7306 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
7307 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
7308 Don't enclose with #if HAVE_PNG.
7309 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
7310 symbol _CGImageCreateWithPNGDataProvider is defined.
7311 Otherwise use image_load_quicktime.
e3564461 7312 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
7313 [HAVE_PNG] (png_load): Sync with xfns.c.
7314 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7315 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
7316 HAVE_JPEG.
7317 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
7318 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
7319 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
7320 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
7321 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
7322 (tiff_image_p, tiff_load): Don't enclose declarations with #if
7323 HAVE_TIFF.
7324 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
7325 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
7326 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
7327 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
7328 New functions (from xfns.c).
e3564461 7329 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 7330 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
7331 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
7332 Don't enclose with #if HAVE_GIF.
7333 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
7334 animated gif. Otherwise use image_load_quicktime.
7335 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
7336 gif_DrawText to avoid conflict with QuickdrawText.h.
7337 [HAVE_GIF] (gif_load): Sync with xfns.c.
7338 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
7339 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
7340 Ghostscript is not supported yet).
7341 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
7342 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
7343 cross_disabled_images (from xfns.c). Remove #if 0 for supported
7344 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
7345 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
7346 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
7347 HAVE_PNG. Call EnterMovies to support animated gifs.
7348 Call init_image_func_pointer to bind a symbol
e3564461 7349 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 7350
d8d95bc7 7351 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
7352 (x_draw_bar_cursor): Sync declaration with xterm.c.
7353 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
7354 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
7355 graphics).
7356 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
7357 (mac_draw_line_to_pixmap, XCreatePixmap)
7358 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
7359 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
7360 New functions.
7361 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
7362 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
7363 Cast bits to char *.
e3564461
ST
7364 (reflect_byte): New function (from w32fns.c).
7365 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
7366 due to byte alignment.
d8d95bc7
SM
7367 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
7368 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
7369 (XSetForeground): Remove static (now used in macfns.c).
7370 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
7371 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
7372 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
7373 (x_draw_glyph_string_box, x_draw_image_foreground)
7374 (x_draw_image_foreground_1, x_draw_image_glyph_string)
7375 (x_draw_stretch_glyph_string, x_draw_glyph_string)
7376 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
7377 Sync with xterm.c.
7378 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
7379 than the xterm.c version when a strictly horizontal or vertical
7380 line is drawn.
7381 (XTset_terminal_window): Add static.
7382 (x_make_frame_visible): Add UNBLOCK_INPUT.
7383 (x_free_frame_resources): New funcion (from xterm.c).
7384 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
7385 occurs in tool bar area.
d8d95bc7
SM
7386 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
7387 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
7388 Initialize image cache.
7389 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
7390 Enclose unused functions with #if 0.
7391 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
7392 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 7393 from a mac font name to an XLFD font name according to its script code.
e3564461 7394 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 7395 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
7396 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
7397 whose name starts with `.'.
7398 (init_font_name_table): Use decode_mac_font_name. Add both
7399 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
7400 of a font is smJapanese.
7401 (mac_do_list_fonts): New function to list fonts that match a given
7402 pattern.
7403 (x_list_fonts, XLoadQueryFont): Use it.
7404 (XLoadQueryFont): Set rbearing field for each variable width
7405 character to avoid needless redraw.
7406 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
7407
446f5f3d
KS
74082004-02-26 Kim F. Storm <storm@cua.dk>
7409
af617d0f
KS
7410 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
7411 as read_socket_hook handler on X aborts if buffer is too small
7412 and W32 handler doesn't always check buffer limit.
7413
446f5f3d
KS
7414 * xdisp.c (handle_single_display_prop): Handle left-fringe and
7415 right-fringe similar to a display margin image. Specifically,
7416 the characters having the fringe prop are no longer shown, and
7417 we use IT_IMAGE/next_element_from_image with image_id = -1 to
7418 do this. Set fringe bitmap face_id in it->face_id.
7419 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
7420 still realize it->face (i.e. the fringe bitmap face).
7421
7d8a0b55
MB
74222004-02-25 Miles Bader <miles@gnu.org>
7423
7424 * xdisp.c (check_it): Check string/string_pos consistency.
7425 (init_iterator): Initialize string-related fields properly.
7426
74272004-02-11 Miles Bader <miles@gnu.org>
7428
7429 * xdisp.c (produce_image_glyph): Force negative descents to zero.
7430
74312004-02-10 Miles Bader <miles@gnu.org>
7432
7433 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
7434 BLOCK_INPUT can be nested, so it doesn't make much sense.
7435
a64387ee 74362004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
7437
7438 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
7439 (xbm_read_bitmap_data): Use unsigned char for image data.
7440
92f5fba2
LT
74412004-02-23 Luc Teirlinck <teirllm@auburn.edu>
7442
7443 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
7444
8565fb3d
JR
74452004-02-22 Jason Rumney <jasonr@gnu.org>
7446
7447 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
7448 correctly over other bitmaps.
7449
a6eeaa81 74502004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
7451
7452 * emacs.c (USAGE1): Split into two halves.
7453 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
7454 (USAGE3): Rename from USAGE2.
7455 (USAGE4): Rename from USAGE3.
f8125c39 7456
4effffca
EZ
74572004-02-21 Juri Linkov <juri@jurta.org>
7458
7459 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
7460 Fix --multibyte. Move --help, --version to USAGE2. Add alias
7461 --file. Fix -f, -l. Sort options. Untabify.
7462 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
7463
923c1e6f
LT
74642004-02-19 Luc Teirlinck <teirllm@auburn.edu>
7465
7466 * category.c (Fdefine_category, Fcategory_docstring)
7467 (Fget_unused_category, Fset_category_table)
7468 (Fcategory_set_mnemonics): Doc fixes.
7469
b0e225fd
KS
74702004-02-20 Kim F. Storm <storm@cua.dk>
7471
7472 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
7473 The following changes are relative to the 2004-01-21 revision.
7474 (NREAD_INPUT_EVENTS): Define as max number of input events to read
7475 in one call to read_socket_hook. Value is 8.
7476 (read_avail_input): Separate and rework handling of read_socket_hook
7477 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
7478 in read_socket_hook case, and repeat if full buffer is read.
7479 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
7480 In non-read_socket_hook case, just use a single input_event, and
7481 call kbd_buffer_store_event on the fly for each character.
7482
b15aa9f9
SM
74832004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
7486 Remove unused `gu' alternative.
7487
83c9aa95
AS
74882004-02-19 Andreas Schwab <schwab@suse.de>
7489
7490 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
7491 warning.
7492
cc808173
KS
74932004-02-18 Kim F. Storm <storm@cua.dk>
7494
7495 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
7496 Fix last change.
7497
ab90a54d
KS
74982004-02-17 Kim F. Storm <storm@cua.dk>
7499
b26f249f
KS
7500 * xdisp.c (fast_find_position): Fix return value of new version;
7501 it was inverted compared to the 21.1 version.
7502 (get_window_cursor_type): Don't look at glyph if NULL.
7503 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 7504
ab90a54d
KS
7505 * keyboard.c: Rework previous change; it didn't consider that the
7506 buf array was allocated on the stack.
7507 (prev_read): Remove variable.
7508 (read_avail_input_buf): New static event buffer array.
b9568dfc 7509 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 7510 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
7511 Use in_read_avail_input to handle re-entrance; when re-entered,
7512 fully initialize and use tmp_buf array instead of read_avail_input_buf.
7513 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
7514 is always cleared on entry. To ensure that, we clear (just) the
7515 entries that were used before we return.
7516 (init_keyboard): Initialize read_avail_input_buf here.
7517
b6189c3b 75182004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
7519
7520 * cmds.c (Fend_of_line): Doc fix.
7521
7b5368c1
EZ
75222004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
7523
7524 * keyboard.c (prev_read): New static variable.
7525 (read_avail_input): Use it to zero out only those slots in buf[]
7526 that were used last time we were called.
7527
a6eeaa81 75282004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
7529
7530 * Makefile.in (obj): Move fringe.o from here...
7531 (XOBJ, MAC_OBJ): ...to here.
7532
159c348e
SE
75332004-02-16 Stephen Eglen <stephen@gnu.org>
7534
7535 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
7536
d2f14999
SM
75372004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
7538
b15aa9f9
SM
7539 * data.c (Fbyteorder):
7540 * fringe.c (Fdefine_fringe_bitmap):
7541 * xdisp.c (handle_single_display_prop):
d2f14999
SM
7542 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
7543
8d50508a
JR
75442004-02-16 Jason Rumney <jasonr@gnu.org>
7545
7546 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
7547
dd4497dc
ST
75482004-02-15 Steven Tamm <steventamm@mac.com>
7549
7550 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
7551 controlling emulation of a three button mouse with option and
7552 command keys.
7e26f91b 7553 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 7554 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 7555
c9159cb3
KS
75562004-02-15 Kim F. Storm <storm@cua.dk>
7557
2cc52658
KS
7558 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
7559
c9159cb3
KS
7560 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
7561 Perform byte-swapping.
7562
12fde2dc
KS
75632004-02-14 Kim F. Storm <storm@cua.dk>
7564
7565 * dispextern.h (struct draw_fringe_bitmap_params): Change member
7566 bits from char to short to facilitate wider bitmaps.
7567 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
7568 member.
7569
7570 * fringe.c (struct fringe_bitmap): Change member bits from char to
7571 short to facilitate 16 bits wide bitmaps. Modify all standard
7572 bitmaps accordingly.
7573 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
7574 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
7575 (draw_fringe_bitmap): Ditto.
7576 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
7577 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
7578 handle up to 16 bits wide bitmaps.
7579 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 7580 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
7581
7582 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
7583 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
7584 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
7585
7586 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
7587 so it is no longer necessary to expand them here.
7588
7589 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
7590
9d7271e8
KS
75912004-02-12 Kim F. Storm <storm@cua.dk>
7592
7593 * window.c (Fwindow_fringes): Doc fix.
7594
706c1e4f
JD
75952004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7596
7597 * xselect.c (x_get_foreign_selection): Add new optional parameter
7598 time_stamp.
7599 (Fx_get_selection_internal): Ditto, pass time_stamp to
7600 x_get_foreign_selection.
7601
7602 * data.c (Fbyteorder): New function.
7603
c2d12b5d
JD
76042004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7605
7606 * atimer.c: Move include stdio.h to same place as in other files.
7607
7608 * region-cache.c: Ditto.
7609
7610 * sysdep.c: Ditto.
7611
7612 * xfaces.c: Ditto.
7613
4c1947b9
SS
76142004-02-09 Sam Steingold <sds@gnu.org>
7615
89458937 7616 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 7617
82722af3
KS
76182004-02-09 Kim F. Storm <storm@cua.dk>
7619
7620 * fringe.c: New file. Move original fringe related declarations
7621 and code from dispextern.h and xdisp.c here.
7622 Rework code to support user defined fringe bitmaps, redefining
7623 standard bitmaps, ability to overlay user defined bitmap with
7624 overlay arrow bitmap, and add faces to bitmaps.
7625 (Voverflow_newline_into_fringe): Declare here.
7626 (enum fringe_bitmap_align): New enum.
7627 (..._bits): All bitmaps are now defined without bitswapping; that
7628 is now done in init_fringe_once (if necessary).
7629 (standard_bitmaps): New array with specifications for the
7630 standard fringe bitmaps.
7631 (fringe_faces): New array.
7632 (valid_fringe_bitmap_id_p): New function.
7633 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
7634 (draw_fringe_bitmap): New function which draws fringe bitmap,
7635 possibly overlaying bitmap with cursor in right fringe or the
7636 overlay arrow in the left fringe.
7637 (update_window_fringes): Do not handle overlay arrow here.
7638 Compare and copy fringe bitmap faces.
7639 (init_fringe_bitmap): New function.
7640 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
7641 define and destroy user defined fringe bitmaps.
7642 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
7643 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
7644 (syms_of_fringe): New function. Defsubr new DEFUNs.
7645 DEFVAR_LISP Voverflow_newline_into_fringe.
7646 (init_fringe_once, init_fringe): New functions.
7647 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 7648
82722af3
KS
7649 * Makefile.in (obj): Add fringe.o.
7650 (fringe.o): New dependencies.
7651
7652 * dispextern.h (FRINGE_ID_BITS): New definition for number of
7653 bits allocated to hold a fringe number. Increase number of bits
7654 from 4 to 8 to allow user defined fringe bitmaps.
7655 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
7656 left_user_fringe_face_id, right_user_fringe_bitmap,
7657 right_user_fringe_face_id.
7658 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
7659 Move to new file fringe.c.
7660 (MAX_FRINGE_BITMAPS): Define here.
7661 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
7662 and overlay_p. Change member which to int.
7663 (struct redisplay_interface): New members define_fringe_bitmap
7664 and destroy_fringe_bitmap.
7665 (valid_fringe_bitmap_id_p): Add prototype.
7666 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
7667
7668 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
7669 arrows.
7670 (update_frame): Do flush_display if force_flush_display_p to
7671 ensure display (specifically fringes) are updated in a timely
7672 manner when resizing the frame by dragging the mouse.
7673 (update_window_line): Update row if overlay arrow changed.
7674 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
7675 or overlay arrow changed.
7676
7677 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
7678 syms_of_fringe, and init_fringe.
7679
7680 * frame.h (struct frame): New member force_flush_display_p.
7681
7682 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
7683 Add prototypes.
7684
a3993cc8 7685 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 7686 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
7687 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
7688 Use cursor color for displaying cursor in fringe.
82722af3
KS
7689 (x_redisplay_interface): Add null handlers for
7690 define_fringe_bitmap and destroy_fringe_bitmap functions.
7691
7692 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
7693 xterm.c to handle overlayed fringe bitmaps and to use cursor color
7694 for displaying cursor in fringe.
7695 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
7696 specific functions to define and destroy fringe bitmaps in fringe_bmp.
7697 (w32_redisplay_interface): Add them to redisplay_interface.
7698 (w32_term_init): Call w32_init_fringe instead of explicitly
7699 defining fringe bitmaps in fringe_bmp array.
7700 (x_delete_display): Call w32_reset_fringes instead of explicitly
7701 destroying fringe bitmaps in fringe_bmp array.
7702
7703 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
7704 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
7705 (continued_bits, continuation_bits, ov_bits, first_line_bits)
7706 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
7707 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
7708 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
7709 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
7710 Move fringe handling vars and code to new file fringe.c.
7711 (handle_display_prop): Handle left-fringe and right-fringe
7712 display properties; store user fringe bitmaps in iterator.
7713 (move_it_in_display_line_to): Handle cursor in fringe at eob.
7714 (clear_garbaged_frames): Set force_flush_display_p if resized.
7715 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
7716 (display_line): Handle cursor in fringe at eob.
7717 (display_line): Set row user fringe bitmaps from iterator.
7718
7719 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
7720 Use cursor color for displaying cursor in fringe.
7721 (x_redisplay_interface): Add null handlers for
7722 define_fringe_bitmap and destroy_fringe_bitmap functions.
7723
030400eb
JD
77242004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7725
7726 * macfns.c (Fx_change_window_property): Make doc string and
7727 parameters same as for X version.
7728
7729 * w32fns.c (Fx_change_window_property): Ditto.
7730
3af55251
KS
77312004-02-07 Kim F. Storm <storm@cua.dk>
7732
ec110e9e
KS
7733 * xdisp.c (hscroll_window_tree): Position cursor near to right
7734 margin in hscrolled window when jumping to end of line (rather
7735 than centering cursor).
7736
3af55251
KS
7737 * process.c (wait_reading_process_input): Don't do adaptive read
7738 buffering if waiting for a specific process.
7739
b0c138ce
LT
77402004-02-05 Luc Teirlinck <teirllm@auburn.edu>
7741
7742 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
7743 (Fread_minibuffer, Feval_minibuffer)
7744 (Fread_string, Fread_no_blanks_input)
7745 (Fcompleting_read): Doc fixes.
7746 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
7747 completion-regexp-list. Define Qcase_fold_search and staticpro it.
7748 (read_minibuf): Fix initial comment.
7749 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 7750 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
7751 checking completion-regexp-list.
7752 (Fdisplay_completion_list): Make it handle arguments that are
7753 symbols. Doc fix.
7754
9676f5ad 77552004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 7756
9676f5ad 7757 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 7758
9676f5ad
JD
7759 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
7760 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 7761 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 7762 format. Remove unused variable cons.
5b698285
JD
7763
7764 * xselect.c: Include stdio,h.
7765
fc1d15f6
KH
77662004-02-05 Kenichi Handa <handa@m17n.org>
7767
ebaff4af
KH
7768 * fns.c (Fset_char_table_range): Fix previous change.
7769
fc1d15f6
KH
7770 * buffer.c (Fset_buffer_multibyte): Fix docstring.
7771
9676f5ad
JD
77722004-02-04 Luc Teirlinck <teirllm@auburn.edu>
7773
7774 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
7775
da75761f
SM
77762004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
7777
7778 * keymap.c (Vmouse_events): Rename from Vmenu_events.
7779 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
7780
13c5d120
KH
77812004-02-04 Kenichi Handa <handa@m17n.org>
7782
7783 * fns.c (Fset_char_table_range): Handle charsets ascii,
7784 eight-bit-control, and eight-bit-graphic correctly.
7785
2883d842
JR
77862004-02-03 Jason Rumney <jasonr@gnu.org>
7787
7788 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
7789
7790 * w32fns.c (x_to_w32_font): Likewise.
7791
69eff41f
JD
77922004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7793
7794 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
7795 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
7796
7797 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
7798 ClientMessages.
7799
7800 * xselect.c: Include termhooks.h and X11/Xproto.h
7801 (x_check_property_data, x_fill_property_data)
7802 (x_property_data_to_lisp, mouse_position_for_drop)
7803 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 7804 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
7805 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
7806
da75761f 7807 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
7808 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
7809 OUTER_P.
7810 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
7811 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
7812 if vector_ret_p is true.
7813 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 7814
a6eeaa81 78152004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
7816
7817 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
7818 basename of FILE relative to it, not FILE itself.
7819
09721b31
KH
78202004-02-02 Kenichi Handa <handa@m17n.org>
7821
7822 * coding.c (coding_restore_composition): Check invalid
7823 composition data more rigidly.
7824
eb996101
LT
78252004-01-30 Luc Teirlinck <teirllm@auburn.edu>
7826
7827 * fileio.c (Fread_file_name_internal): Correctly handle the case
7828 where insert-default-directory is nil.
7829 (Fread_file_name): Always return an empty string if the user exits
7830 with an empty minibuffer. Adapt the docstring accordingly.
7831 (syms_of_fileio): Adapt the docstring of insert-default-directory
7832 to the change in Fread_file_name.
7833
a6eeaa81 78342004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
7835
7836 * alloca.c [!alloca]: Fix the prototype for xfree.
7837
13f52ed8
KH
78382004-01-29 Kenichi Handa <handa@m17n.org>
7839
7840 * fns.c (string_char_to_byte): Optimize for ASCII only string.
7841 (string_byte_to_char): Likewise.
7842
d57625a0
JR
78432004-01-28 Peter Runestig <peter@runestig.com>
7844
7845 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
7846
a64387ee 78472004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
7848
7849 * unexmacosx.c (unexec_copy): Do not copy more than was
7850 requested to prevent overwriting during unexec.
7851
eb37b8fd
JD
78522004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7853
ce38070a
JD
7854 * process.c (sigchld_handler): Add comment about not calling malloc.
7855
eb37b8fd
JD
7856 * process.h: Add extern to synch_process_termsig.
7857
a64387ee 78582004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 7859
da75761f
SM
7860 * macterm.c (make_mac_frame, make_mac_terminal_frame):
7861 Move setting of scroll bars from make_mac_frame to
7862 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 7863
d62a265d
RS
78642004-01-26 Richard M. Stallman <rms@gnu.org>
7865
7866 * search.c (Freplace_match): Handle nonexistent
7867 back-references properly.
7868
78692004-01-03 Richard M. Stallman <rms@gnu.org>
7870
7871 * window.c (decode_any_window): New function.
7872 (Fwindow_height, Fwindow_width, Fwindow_edges)
7873 (Fwindow_pixel_edges, Fwindow_inside_edges)
7874 (Fwindow_inside_pixel_edges): Use decode_any_window.
7875
ff236419
JD
78762004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7877
7878 * process.h: synch_process_termsig new variable.
7879
7880 * callproc.c: Define synch_process_termsig.
7881 (Fcall_process): Initiate synch_process_termsig to zero and
7882 check if non-zero and get signal name after subprocess has ended.
7883
7884 * process.c (sigchld_handler): Set synch_process_termsig
7885 if terminated by a signal. synch_process_death setting removed.
7886
7887 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
7888
41b867ea
AS
78892004-01-26 Andreas Schwab <schwab@suse.de>
7890
7891 * print.c (print_preprocess): Declare size as EMACS_INT to not
7892 lose bits.
7893 (print_object): Likewise.
7894 * alloc.c (Fpurecopy): Likewise.
7895
a08084ff
LT
78962004-01-25 Luc Teirlinck <teirllm@auburn.edu>
7897
7898 * window.c (Fwindow_minibuffer_p): Doc fix.
7899
b19ac475
JY
79002004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
7901
7902 * editfns.c (Fformat): Make both passes accept the same set of flags.
7903
fe905025
KH
79042004-01-23 Kenichi Handa <handa@m17n.org>
7905
7906 * fns.c (Fmd5): If OBJECT is a buffer different from the current
7907 one, set buffer to OBJECT temporarily.
7908
438fc6c0
SM
79092004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7910
455316e2
SM
7911 * keyboard.c (kbd_buffer_gcpro): Remove.
7912 (kbd_buffer_store_event, clear_event, Fdiscard_input)
7913 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
7914 Don't initialize and/or maintain the variable any more. It was made
7915 redundant by my commit of 2003-06-15.
7916
438fc6c0
SM
7917 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
7918
5335a4ee
JD
79192004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7920
7921 * lisp.h: Add undef DECL_ALIGN.
7922
dcdaeebc
SM
79232004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7924
7925 * process.c (wait_reading_process_input) [SYNC_INPUT]:
7926 Check interrupt_input_pending explicitly.
7927
7928 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
7929
7930 * keyboard.c (handle_async_input): New fun,
7931 extracted from input_available_signal.
7932 (input_available_signal, reinvoke_input_signal): Use it.
7933
9076a823
SM
79342004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
7935
d7107586
SM
7936 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
7937
7938 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
7939 manipulation macros for when tags are in the lower bits.
7940 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
7941 (DECL_ALIGN): New macro.
7942 (DEFUN): Use it.
7943
7944 * lisp.h [ENABLE_CHECKING]: Don't force union type.
7945
7946 * s/darwin.h (__attribute__): Remove outdated workaround.
7947
7948 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
7949
7950 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
7951 Don't check range of malloc address.
7952 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
7953
9076a823
SM
7954 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
7955
7956 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
7957
ba029065
KH
79582004-01-19 Kenichi Handa <handa@m17n.org>
7959
7960 * fontset.c (fontset_font_pattern): Fix previous change.
7961
7af0e8d7
MB
79622004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
7963
7964 * xdisp.c (Voverflow_newline_into_fringe)
7965 (move_it_in_display_line_to, redisplay_internal)
7966 (update_window_fringes, redisplay_window, display_line, window):
7967 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
7968 that it compiles without a window-system.
7969 * dispnew.c (direct_output_for_insert, update_window): Likewise.
7970
77a9cf69
KS
79712004-01-16 Kim F. Storm <storm@cua.dk>
7972
7973 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
7974
a64387ee 7975 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
7976 buffer_local_flags for indicate_buffer_boundaries.
7977 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
7978 default- variable for it.
7979
7980 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
7981 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 7982 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
7983 overflowing newlines into right fringe.
7984 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
7985 and indicate_bottom_line_p for buffer boundaries and scrolling.
7986 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
7987 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
7988 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
7989 and HOLLOW_SQUARE_BITMAP.
7990 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
7991 Add prototypes.
7992
7993 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
7994 instead of related indicator fields.
7995 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
7996 (direct_output_for_insert): Handle exact width lines like
7997 contined lines. Call update_window_fringes.
7998 (update_window): Call update_window_fringes.
7999 (scrolling_window): Don't skip desired rows with changed bitmaps.
8000 Check if fringe bitmaps changes when assigning scrolled rows.
8001
8002 * xdisp.c (Voverflow_newline_into_fringe): New variable.
8003 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
8004 (move_it_in_display_line_to): Overflow newline into fringe for
8005 rows that are exactly as wide as the window.
8006 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
8007 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
8008 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
8009 (fringe_bitmaps): Add new bitmaps.
8010 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
8011 Select proper bitmap for cursor in fringe when appropriate.
8012 Handle alignment of bitmap to top or bottom of row.
8013 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
8014 done by update_window_fringes.
8015 (update_window_fringes, draw_window_fringes): New functions.
8016 (redisplay_internal): Call update_window_fringes in case only
8017 cursor row is updated.
8018 (redisplay_window): Call update_window_fringes.
8019 Explicitly call draw_window_fringes if redisplay was done using
8020 the current matrix or the overlay arrow is in the window.
8021 (try_window_reusing_current_matrix): Mark scrolled rows for
8022 fringe update (to update buffer-boundaries / scrolling icons).
8023 (find_last_unchanged_at_beg_row): Handle exact width lines line
8024 continued lines.
8025 (display_line): Overflow newline into fringe for rows that are
8026 exactly as wide as the window. Don't append space for newline
d7107586 8027 in this case.
77a9cf69
KS
8028 (notice_overwritten_cursor): Explicitly clear cursor bitmap
8029 in fringe as if it had been overwritten.
8030 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 8031 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
8032 void-text-area-pointer as user options.
8033 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 8034
77a9cf69
KS
8035 * xterm.c (x_update_window_end): Call draw_window_fringes.
8036 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
8037 in row instead of actually drawing fringe bitmaps.
8038 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
8039 (x_draw_window_cursor): Draw cursor in fringe.
8040
8041 * w32term.c (x_update_window_end): Call draw_window_fringes.
8042 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
8043 in row instead of actually drawing fringe bitmaps.
8044 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
8045 (w32_draw_window_cursor): Draw cursor in fringe.
8046
8047 * macterm.c (x_update_window_end): Call draw_window_fringes.
8048 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
8049 in row instead of actually drawing fringe bitmaps.
8050 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
8051 (mac_draw_window_cursor): Draw cursor in fringe.
8052
a633a954
JD
80532004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8054
8055 * xterm.c (handle_one_xevent): Don't handle characters that are part
8056 of an old style (XLookupString) compose sequence.
8057
80460525
KH
80582004-01-15 Kenichi Handa <handa@m17n.org>
8059
8060 * search.c (Freplace_match): Use make_multibyte_string or
8061 make_unibyte_string according to the buffer multibyteness.
8062
7fc34f85
SM
80632004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
8064
8065 * alloc.c (struct interval_block, struct string_block)
8066 (struct symbol_block, struct marker_block, live_string_p)
8067 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
8068 Better preserve alignment for objects in blocks.
8069 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
8070
8071 * lread.c (defvar_per_buffer): Remove dead declaration.
8072
8073 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
8074 space size.
8075
66070bd1
JD
80762004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8077
8078 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
8079 if a key press should pop down. Only pop down if a key is pressed
8080 outside the menu/dialog.
8081 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
8082 popup_get_selection.
8083 (create_and_show_dialog): Pass 1 for down_on_keypress to
8084 popup_get_selection.
8085
de7515d6
JD
80862004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8087
8088 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
8089 BLOCK/UNBLOCK_INPUT.
8090
160b1b50
JD
80912004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8092
8093 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
8094 specified.
8095
3a9f36e6
KH
80962004-01-08 Kenichi Handa <handa@m17n.org>
8097
8098 * editfns.c (Fformat): Fix '&' to '&&'.
8099
3803eb32
AS
81002004-01-08 Andreas Schwab <schwab@suse.de>
8101
8102 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
8103 size if PSEUDOVECTOR_FLAG is set.
8104
9da88f37
KH
81052004-01-07 Kenichi Handa <handa@m17n.org>
8106
74ac5074
KH
8107 * charset.c (Fdeclare_equiv_charset): Fix docstring.
8108
9da88f37
KH
8109 * fontset.c (fontset_ref_via_base): Fix previous change.
8110
05faee07
KS
81112004-01-07 Kim F. Storm <storm@cua.dk>
8112
8113 * process.c (read_process_output): Only activate adaptive
8114 buffering if we read less than 256 bytes at a time.
8115
634910c8
KS
81162004-01-06 Kim F. Storm <storm@cua.dk>
8117
8118 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
8119 object and image object. Return glyph width and height.
8120 (mode_line_string, marginal_area_string): Ditto.
8121
8122 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8123 (marginal_area_string): Fix prototypes.
8124
8125 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 8126 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
8127 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
8128
8129 * keyboard.c (make_lispy_position): Use modified mode_line_string,
8130 buffer_posn_from_coords, and marginal_area_string functions to
8131 include both string object and image object in the lispy position.
8132 Also add actual glyph width and height to position.
8133 (read_key_sequence): Use real buffer position from mouse
8134 event to find keymap property even when click is in marginal area.
8135
8136 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
8137 mode_line_string and marginal_area_string functions to handle
8138 both string object and image object properties.
d7107586 8139
57951c2e
AS
81402004-01-06 Andreas Schwab <schwab@suse.de>
8141
8142 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
8143 character.
8144
181e6a61
AS
81452004-01-02 Andreas Schwab <schwab@suse.de>
8146
d7107586
SM
8147 * macterm.c (emacs_options, x_initialized, same_x_server):
8148 Remove unused (and duplicated) definitions.
181e6a61 8149
31e0fbdd
KS
81502004-01-02 Kim F. Storm <storm@cua.dk>
8151
8152 * process.h (struct Lisp_Process): New members for adaptive read
8153 buffering: adaptive_read_buffering, read_output_delay, and
8154 read_output_skip.
8155
8156 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
8157 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
8158 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
8159 (process_output_delay_count, process_output_skip): New vars.
8160 (Vprocess_adaptive_read_buffering): New variable.
8161 (make_process): Initialize adaptive read buffering members.
8162 (Fstart_process): Set adaptive_read_buffering member.
8163 (deactivate_process): Cleanup adaptive read buffering.
8164 (wait_reading_process_input): Temporarily omit delayed
8165 subprocesses from the set of file descriptors to read from;
8166 adjust the select timeout if we skipped any subprocesses.
8167 (read_process_output): Increase adaptive read buffering delay if
8168 we read less than a full buffer; reduce delay when we read a
8169 full buffer.
8170 (send_process): Simplify using local Lisp_Process var.
8171 Reset adaptive read buffering delay after write.
8172 (init_process): Initialize process_output_delay_count and
8173 process_output_skip.
8174 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
8175
68c6a789
JR
81762004-01-01 Jason Rumney <jasonr@gnu.org>
8177
d7107586 8178 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 8179
3f70fe82
LT
81802003-12-30 Luc Teirlinck <teirllm@auburn.edu>
8181
8182 * print.c (Ferror_message_string): Add hyperlink in the docstring
8183 to the definition of `signal' in the Elisp manual.
8184 * eval.c (Fsignal): Ditto.
8185
b6189c3b 81862003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
8187
8188 * fns.c (internal_equal): Return t for two NaN arguments.
8189
7abd90ea
RS
81902003-12-29 Richard M. Stallman <rms@gnu.org>
8191
8192 * data.c (store_symval_forwarding): Handle setting
8193 default-fill-column, etc., by changing the value in
8194 buffers that use the default.
8195
8196 * minibuf.c (Fset_minibuffer_window): Doc fix.
8197
8198 * fileio.c (choose_write_coding_system): Ignore auto_saving
8199 if using the visited file for auto saves.
8200 (Fwrite_region): Don't update SAVE_MODIFF
8201 if auto-saving in visited file.
8202
3e7cfcdc
KH
82032003-12-29 Kenichi Handa <handa@m17n.org>
8204
8205 * dispextern.h (face_font_available_p): Extern it.
8206
8207 * fontset.c (Voverriding_fontspec_alist): New variable.
8208 (lookup_overriding_fontspec): New function.
d7107586 8209 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
8210 (fontset_font_pattern): Likewise.
8211 (regulalize_fontname): New function.
8212 (Fset_fontset_font): Call regulalize_fontname.
8213 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
8214 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
8215 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
8216
8217 * xfaces.c (face_font_available_p): New function.
8218
7abd90ea
RS
82192003-12-28 Richard M. Stallman <rms@gnu.org>
8220
8221 * buffer.c (Fother_buffer): Don't crash if BUF is nil
8222 or if its name is nil.
8223
8224 * buffer.c (Fkill_buffer): Don't delete auto-save file
8225 if it's the same as the visited file.
8226
de1d1a40
LT
82272003-12-28 Luc Teirlinck <teirllm@auburn.edu>
8228
8229 * coding.c (Fcheck_coding_system): Doc fix.
8230
204fb75e
KS
82312003-12-28 Kim F. Storm <storm@cua.dk>
8232
8233 * Makefile.in (eval.o): Depend on dispextern.h.
8234
8235 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
8236 image glyph using image's ascent.
8237 (mode_line_string): Return image glyph as object clicked on.
8238 Adjust y0 for image glyph using image's ascent.
8239
8240 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
8241 (struct glyph): New members, ascent and descent. Used to save
8242 this glyph's ascent and descent, instead of having.
8243 (struct glyph): Declare member face_id using FACE_ID_BITS.
8244 (find_hot_spot): Add prototype.
8245
8246 * keyboard.c (Qimage): Remove extern (now in lisp.h).
8247 (QCmap): Declare extern.
8248 (make_lispy_position): When position is inside image hot-spot,
8249 use hot-spot element's id as posn element.
8250
8251 * lisp.h (IMAGEP): New macro to test for image object type.
8252 (Qimage): Declare extern.
8253
8254 * macfns.c (Qimage): Remove extern (now in lisp.h).
8255 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8256
8257 * macterm.c (Qface, Qmouse_face): Remove unused externs.
8258
8259 * w32fns.c (Qimage): Remove extern (now in lisp.h).
8260 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8261
8262 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
8263
8264 * w32term.c (Qface, Qmouse_face): Remove unused externs.
8265
8266 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
8267 pointer types.
8268 (Qrelative_width, Qalign_to): Remove unused variables.
8269 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
8270 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
8271 image maps.
d7107586 8272 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
8273 new dx and dy args.
8274 Remove buffer_only_p arg (always 0). Simplify code accordingly.
8275 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
8276 than row's ascent and height, to get sensible height on tall rows.
8277 (build_desired_tool_bar_string): Remove Qimage extern.
8278 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
8279 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
8280 image glyph is alone on the last line.
8281 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 8282 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 8283 (on_hot_spot_p): New function to check if position is inside an
d7107586 8284 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
8285 (find_hot_spot): New function to search for image hot-spot.
8286 (Flookup_image_map): New defun to search for image hot-spot.
8287 (define_frame_cursor1): New aux function to determine frame pointer.
8288 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8289 Handle `pointer' text property and :pointer image property to
8290 control frame pointer shape. Detect image hot-spots for pointer
8291 and help_echo properties. Use define_frame_cursor1.
8292 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 8293 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
8294 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
8295
8296 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
8297
8298 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
8299 (Qimage): Remove extern (now in lisp.h).
8300 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8301
8302 * xmenu.c (show_help_event): Remove unused code.
8303
8304 * xterm.c (Qface, Qmouse_face): Remove unused externs.
8305 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
8306 row's ascent and descent, to get a sensible height on tall rows.
8307
fc052137
LT
83082003-12-25 Luc Teirlinck <teirllm@auburn.edu>
8309
8310 * minibuf.c (Fcompleting_read): Undo previous change.
8311
a64387ee 83122003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
8313
8314 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
8315 Arguments GCPRO'ed in call to file name handler.
8316
56ffd194
TTN
83172003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
8318
8319 * termcap.c (tgetst1): Scan for "%pN"; if all
8320 N are continuous in [1,9], remove all "%pN".
8321
5202d23d
JD
83222003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8323
f26fab36
JD
8324 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
8325
5202d23d
JD
8326 * xfaces.c (lface_fully_specified_p): Take into account that
8327 MAC OS always have unspecified stipple.
8328
8babaa59
TTN
83292003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8330
8331 * tparam.c (tparam1): Add handling for `%pN', which
8332 means use param N for the next substitution.
8333
2d176448
TTN
83342003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8335
8336 * xfaces.c (Fcolor_gray_p): Fix omission bug:
8337 In case `frame' is nil, consult the selected frame.
8338 (Fcolor_supported_p): Likewise.
8339
adb0708c
LT
83402003-12-23 Luc Teirlinck <teirllm@auburn.edu>
8341
000eeb15
LT
8342 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
8343 Doc fixes.
0dc72b11
LT
8344
8345 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
8346 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
8347 (Fread_from_minibuffer): Delete code moved into read_minibuf.
8348 Doc fix.
8349 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
8350 read_minibuf.
8351 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 8352 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 8353
2e4d132b
KH
83542003-12-03 Kenichi Handa <handa@m17n.org>
8355
8356 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
8357 encoding sequence.
8358
3999c705
KH
83592003-12-01 Kenichi Handa <handa@m17n.org>
8360
8361 * composite.c (syms_of_composite): Don't make the compostion hash
8362 table week.
8363
d344ecbb
LT
83642003-11-30 Luc Teirlinck <teirllm@auburn.edu>
8365
8366 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
8367 * textprop.c (Fget_char_property_and_overlay): New function.
8368 (syms_of_textprop): Defsubr it.
8369
03d6484e
JD
83702003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8371
019b1f0e
JD
8372 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
8373 to compile on terminal configuration.
8374
03d6484e
JD
8375 * fileio.c (Fread_file_name): Check use_file_dialog also before
8376 calling Fx_file_dialog.
8377
1d1c7e75 8378 * fns.c (use_file_dialog): New variable.
03d6484e
JD
8379 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
8380
442d3fd0
KS
83812003-11-29 Kim F. Storm <storm@cua.dk>
8382
8383 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
8384 (syms_of_msdos): Don't intern and staticpro them.
8385
0f6a07a8
KS
83862003-11-27 Kim F. Storm <storm@cua.dk>
8387
8388 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
8389 coordinates relative to glyph at posn. If glyph is an image,
8390 return that as object at posn. Callers changed.
8391 (mode_line_string, marginal_area_string): Calculate and return
8392 pixel coordinates relative to glyph. Callers changed.
8393
8394 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8395 (marginal_area_string): Fix prototypes.
8396 (window_box_left_offset, window_box_right_offset): Add prototypes.
8397
8398 * frame.h (get_specified_cursor_type, get_window_cursor_type):
8399 Remove prototypes.
8400
8401 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
8402
8403 * keyboard.c (make_lispy_position): Add x and y coordinates
8404 relative to the current glyph as 7th element of position.
8405 If glyph is an image, return it in the object element.
8406 (read_key_sequence): Skip checks for keymap property in cases
8407 where POSN_STRING is not a string (e.g. an image).
8408
8409 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
8410 (Vshow_text_cursor_in_void): New variable.
8411 (glyph_to_pixel_coords): Don't use negative hpos.
8412 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
8413 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 8414 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
8415 (calc_pixel_width_or_height): New aux function, implementing
8416 pixel based artihmetic for glyph widths and heights.
8417 (produce_stretch_glyph): Use calc_pixel_width_or_height for
8418 :width, :height, :align-to, and :ascent, thus allowing these to
8419 be specified in pixels as well as multiples of characters.
8420 Don't produce stretch glyphs with zero width or height.
8421 (get_specified_cursor_type): Declare static.
8422 (get_window_cursor_type): Declare static. Add glyph arg to be
8423 able to know when cursor is on an image; always substitute
8424 hollow-box cursor for filled-box cursor on images, to avoid
8425 negative images and flicker when blinking the cursor.
8426 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
8427 (note_mode_line_or_margin_highlight): Use non-text cursor rather
8428 than vertical scroll-bar cursor in display margins.
8429 (note_mouse_highlight): Use non-text cursor rather than text
8430 cursor in fringes and over images in the text area.
8431 Use non-text cursor when mouse pointer is outside editable text,
8432 i.e. in the void after end-of-line or end-of-buffer; this was
8433 already done for W32, but is now standard for all systems --
8434 user can toggle show-text-cursor-in-void to get old behaviour.
8435 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
8436 Vdisplay_pixels_per_inch.
8437
00498bfc
AS
84382003-11-25 Andreas Schwab <schwab@suse.de>
8439
8440 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
8441 EMACS_INT to not lose bits.
8442 (Ffillarray): Don't set bits beyond the size of a bool vector.
8443
edaa824d
KS
84442003-11-25 Kim F. Storm <storm@cua.dk>
8445
8446 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
8447 define this defun on systems that cannot use stderr as lvalue.
8448
74d6f539
GM
84492003-11-24 Gerd Moellmann <gerd@gnu.org>
8450
8451 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
8452 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
8453 ld's default is incompatible with unexec.
8454
6a1ff3ba
KS
84552003-11-23 Kim F. Storm <storm@cua.dk>
8456
63dc7c6b
KS
8457 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
8458 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
8459 (Fforce_window_update): New defun.
8460 (syms_of_window): Defsubr it.
8461 (Fset_window_margins, Fset_window_fringes): Doc fix.
8462
6a1ff3ba
KS
8463 * print.c (Fredirect_debugging_output): New defun.
8464 (syms_of_print): Defsubr it.
8465
aef109b7
LT
84662003-11-22 Luc Teirlinck <teirllm@auburn.edu>
8467
8468 * fns.c (Fset_char_table_parent): Doc fix.
8469
6a1ff3ba 84702003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
8471
8472 * dispnew.c (buffer_posn_from_coords): Return actual row/column
8473 for glyph clicked on, rather than (unused) pixel positions.
8474 (mode_line_string, marginal_area_string): Change X and Y args to
8475 pointers for returning actual row/column for glyph clicked on.
8476 Simplify and optimize loops.
8477
aef109b7
LT
8478 * dispextern.h (mode_line_string, marginal_area_string):
8479 Update prototypes.
63ccbe21
KS
8480
8481 * keyboard.c (make_lispy_position): New function for generating
8482 mouse click positions from frame and pixel coordinates.
8483 Enhanced to return buffer position and actual row/column for
8484 events outside the text area using updated mode_line_string and
8485 marginal_area_string functions.
8486 Return left-fringe and right-fringe clicks as such, rather than
8487 clicks in text area.
8488 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
8489 pixel_to_glyph_coords, as we never use the results.
8490 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
8491 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
8492 Eliminate unused code in WHEEL_EVENT handling.
8493 (make_lispy_movement): Use make_lispy_position.
8494
8495 * window.c (coordinates_in_window): Remove redundant tests.
8496 Fix returned X pixel value for left-margin.
8497
8498 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
8499 mode_line_string and marginal_area_string parameters.
8500
a64387ee 85012003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 8502
d7107586
SM
8503 * w32.c (struct the_group, getgrgid): Add.
8504 * mac.c (struct my_group, getgrgid): Add.
aef109b7 8505
3dbf3426
LT
85062003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8507
8508 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
8509
cae8ddbb 85102003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 8511
d7107586
SM
8512 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
8513 include in call to file name handler. Optionally translate numeric
8514 UID and GID to strings. Update docstring.
8515 (directory_files_internal): Add parameter ID-FORMAT.
8516 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
8517 include in call to file name handler and call to
8518 directory_files_internal. Update Docstring.
8519 (Fdirectory_files): Add dummy parameter in call to
8520 directory_files_internal.
8521 * lisp.h (Qinteger): Add.
8522 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
8523 (Ffile_attributes): Add parameter.
8524 * data.c (Qinteger): Export.
cae8ddbb 8525
2550b848
LT
85262003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8527
3dbf3426 8528 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 8529
88380018
KS
85302003-11-19 Kim F. Storm <storm@cua.dk>
8531
8532 * xdisp.c (init_iterator): Initialize it->start to position
8533 before reseating (in case start position is invisible).
8534 (init_to_row_start): Set it->start to row-start.
8535 (redisplay_window): Accept optional_new_start if start position
8536 is invisible (in which case IT_CHARPOS overshoots PT).
8537 (display_line): Setup row->start from it->start (rather than
8538 it->current which is wrong if first char on line is invisible).
8539 When done, reseat it->start to it->current (= start of next row).
8540 (expose_area): Fix exposure of text area when first char (e.g. TAB)
8541 is only partially visible.
8542
8543 * dispextern.h (struct it): New member start.
8544
854c1a59
SM
85452003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8546
455316e2
SM
8547 * alloc.c (make_float, Fcons): Clear the markbit at init time.
8548 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
8549 of block_index outside of the macro call.
8550 (Fgarbage_collect): Remove null code.
8551
8552 * m/amdx86-64.h: Don't redefine XPNTR.
8553
854c1a59
SM
8554 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
8555 of VALMASK.
8556
8557 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
8558 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
8559 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
8560
8561 * lisp.h (VALMASK): Only define for non-union type.
8562 (MARKBIT): Remove.
8563 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
8564 (XTYPE): Define unconditionally.
8565 (XSETTYPE): Remove one more remnant.
8566 (EQ): Define differently for the union and non-union cases.
8567 (INTMASK): New bit mask.
8568 (struct Lisp_Marker): Move down to prepare for upcoming patch.
8569 (GC_EQ): Delegate to EQ.
8570
8571 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
8572
a0c6ef2d
JD
85732003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8574
8575 * xterm.c (x_window_to_scroll_bar): Move check of display to
8576 where window_id is compared.
8577
859492c4
KS
85782003-11-17 Kim F. Storm <storm@cua.dk>
8579
8580 * dispextern.h (struct it): New member first_vpos.
8581
8582 * xdisp.c (start_display): Set it->first_vpos.
8583 (try_window_id): Use first_vpos to start display in first _text_
8584 line if no reusable lines at start of window with header line.
8585
810f2256
JD
85862003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8587
7c402969 8588 * w32fns.c (XPutPixel):
854c1a59
SM
8589 * w32bdf.c (w32_init_bdf_font):
8590 * sunfns.c (sel_read):
8591 * process.c (Fmake_network_process):
8592 * frame.c (store_frame_param):
8593 * fontset.c (Fset_fontset_font):
8594 * emacs.c (shut_down_emacs):
a64387ee 8595 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 8596
a32e9bfd
JD
8597 * config.in: Regenerate.
8598
810f2256
JD
8599 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8600 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8601 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
8602 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
8603 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
8604
8605 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
8606
8607 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
8608 (XTmouse_position, handle_one_xevent): Pass Display* to
8609 x_window_to_scroll_bar.
8610 (x_window_to_scroll_bar): Take a Display* argument.
8611 Check that display for frame is equal to Display* argument.
854c1a59 8612 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
8613 x_display_info_for_display instead. Use Display in xev instead
8614 of GDK_DISPLAY.
8615 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 8616 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
8617 (x_connection_closed): Call xg_display_close for GTK.
8618 (x_term_init): Call xg_display_open for additional displays.
8619 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
8620 for GTK.
8621
8622 * xmenu.c (single_menu_item, mouse_position_for_popup)
8623 (x_activate_menubar): Formatting adjustments.
8624
8625 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
8626 adjustments.
8627
8628 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
8629 (xg_display_close, xg_create_default_cursor)
8630 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
8631 handling.
854c1a59
SM
8632 (xg_left_ptr_cursor): Remove.
8633 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
8634 cursor here.
8635 (xg_win_to_widget): Take Display* argument, call
8636 gdk_xid_table_lookup_for_display.
8637 (xg_create_frame_widgets, xg_get_file_name, create_menus)
8638 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
8639 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
8640 in FRAME_X_DISPLAY_INFO.
8641 (xg_get_scroll_id_for_window): Take Display* argument.
8642 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 8643 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 8644
78819ebb
KS
8645 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
8646 Display* argument.
8647 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 8648
0b03cc78
JD
86492003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8650
8651 * xterm.c (x_detect_focus_change): Do not change focus frame for
8652 Enter/LeaveNotify if the current focus frame has explicit focus.
8653
77e688fa
KS
86542003-11-14 Kim F. Storm <storm@cua.dk>
8655
8656 * dispnew.c (update_text_area): Fix redisplay error when hscroll
8657 is active and first glyph is only partially visible.
854c1a59 8658
dd429b03
KH
86592003-11-13 Kenichi Handa <handa@m17n.org>
8660
8661 * xdisp.c (select_frame_for_redisplay): New function.
8662 (redisplay_internal): Record also selected_frame for
8663 unwind_redisplay. Call select_frame_for_redisplay before
8664 redrawing each frame.
8665 (unwind_redisplay): Argument changed to a cons.
8666
6d9266f4
LT
86672003-11-12 Luc Teirlinck <teirllm@auburn.edu>
8668
8669 * fns.c (Fstring_to_multibyte): Doc fix.
8670
80060eb3
KH
86712003-11-11 Kenichi Handa <handa@m17n.org>
8672
8673 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8674
74305183
JD
86752003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8676
8677 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
8678 program specified positions.
8679
cfda993e
JD
86802003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8681
8682 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
8683
df211069
KH
86842003-11-08 Kenichi Handa <handa@m17n.org>
8685
8686 * Makefile.in (lisp): Add kannada.el.
8687 (shortlisp): Likewise.
8688
4307d534
KH
86892003-11-07 Kenichi Handa <handa@m17n.org>
8690
854c1a59
SM
8691 * coding.c (coding_allocate_composition_data):
8692 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
8693 (coding_restore_composition): Detect invalid composition data.
8694 Give Fstring and Fvector a Lispy integer, not C int.
8695
854c1a59
SM
86962003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
8697
8698 * floatfns.c (Flogb): Don't use VALMASK.
8699
8700 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
8701 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
8702
8703 * lisp.h (XINT): Move the cast to clarify what is going on.
8704 (GCTYPEMASK, XSETTYPE): Remove.
8705 (XGCTYPE): Make it an alias of XTYPE.
8706
d04103a1
JD
87072003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8708
8709 * xterm.c (x_term_init): Fix formatting.
8710
da18b5ac
JD
87112003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8712
78819ebb
KS
8713 * gtkutil.h (xg_have_tear_offs): Declare.
8714 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
8715
8716 * gtkutil.c: Remove variable xg_did_tearoff.
8717 (xg_have_tear_offs): New function.
8718 (tearoff_remove): Just decrease xg_detached_menus.
8719 (tearoff_activate): Increase xg_detached_menus and call
8720 tearoff_remove when tearoff is removed.
854c1a59 8721 (xg_keep_popup): Remove function.
da18b5ac
JD
8722 (create_menus): Give add_tearoff_p as argument to recursive
8723 call to create_menus.
8724 (xg_create_widget): Use variables instead of multiple
8725 strcmp. Tell create_menus to create tear off only for
8726 menu bar menus.
8727 (xg_update_menubar): Change title for a detached menu also.
8728 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
8729 of deep_p.
8730 (xg_initialize): Initialize xg_detached_menus, remove
8731 initialization of xg_did_tearoff.
8732
8733 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
8734 xg_have_tear_offs returns non-zero.
8735 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
8736 call to xg_keep_popup.
8737
64d4923e
AC
87382003-11-01 Andrew Choi <akochoi@shaw.ca>
8739
8740 * macterm.c (XTread_socket): Handle menubar selection and grow
8741 window only for mouseDown events.
854c1a59 8742
6cc8bc07
JD
87432003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8744
8745 * xterm.c (x_term_init): For GTK part, increase x_initialized
8746 to check for more than one display. Use error instead of return 0.
8747
043131c4
AC
87482003-10-31 Andrew Choi <akochoi@shaw.ca>
8749
854c1a59 8750 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
8751 (copy_dysymtab): Call it.
8752
bdda99a1
LT
87532003-10-31 Luc Teirlinck <teirllm@auburn.edu>
8754
8755 * eval.c (Fdefvaralias): Doc fix.
8756
800f42ff 87572003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
8758
8759 * data.c (Fsetplist): Doc fix.
8760
ef35b389
LK
87612003-10-14 Lute Kamstra <lute@gnu.org>
8762
8763 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 8764
ef35b389 87652003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 8766
07107abc
KS
8767 * window.c (Fset_window_margins): Simplify arg checking.
8768
f7005886
RS
87692003-10-13 Richard M. Stallman <rms@gnu.org>
8770
8771 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
8772 (print_partial_compiled_pattern): Replace assert with a printout.
8773 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
8774
8775 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
8776
8777 * window.c (Fset_window_margins): Allow only integers as args.
8778 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
8779 Doc fixes.
8780
9c0c2af5
LK
87812003-10-13 Lute Kamstra <lute@gnu.org>
8782
8783 * window.c (Fset_window_fringes): Elaborate docstring.
8784
3f080e4e
AC
87852003-10-12 Andrew Choi <akochoi@shaw.ca>
8786
854c1a59 8787 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 8788
3f080e4e
AC
8789 * s/darwin.h (GC_MARK_STACK): Define.
8790
0aa513ed
JD
87912003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8792
8793 * window.c (shrink_windows): New function.
8794 (size_window): Call shrink_windows to calculate window sizes when
8795 shrinking frame with more than one window.
8796
6aa8858a
KS
87972003-10-12 Kim F. Storm <storm@cua.dk>
8798
8799 * xdisp.c (compute_fringe_widths): Doc fix.
8800
c2164d91
KH
88012003-10-08 Kenichi Handa <handa@m17n.org>
8802
854c1a59 8803 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 8804
f82ac129
KH
88052003-10-07 Kenichi Handa <handa@m17n.org>
8806
8807 * coding.c (Qcoding_system_define_form): New variable.
8808 (syms_of_coding): Intern and staticpro it.
8809 (Fcheck_coding_system): Try to autoload the definition of
8810 CODING-SYSTEM.
8811
9296c947
LT
88122003-10-05 Luc Teirlinck <teirllm@auburn.edu>
8813
8814 * fns.c (Frequire): Doc fix.
8815
c1f0671a
JD
88162003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8817
3d8c3826
JD
8818 * xfns.c (Fx_send_client_event): New function as a base for
8819 manipulating extended window manager hints.
6dc15d98 8820 (Fx_send_client_event): Remove unused variable s.
3d8c3826 8821
068ae0fd
JD
8822 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
8823 that function is removed.
8824
8825 * xterm.c (x_set_offset): Use move_offset_left/top instead of
8826 x/y_pixels_outer_diff.
8827 (x_check_expected_move): Calculate move_offset_left/top.
8828
8829 * xterm.h (struct x_output): New members: move_offset_top/left.
8830
854c1a59 8831 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
8832 call x_set_offset directly.
8833
8834 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
8835
96f09305
JD
8836 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
8837
8838 * xterm.c (x_delete_display): Free font names and font_encoder
8839 in dpyinfo->font_table.
8840
854c1a59
SM
8841 * xfns.c (Fx_close_connection): Only call XFreeFont here.
8842 Move xfree of font names to x_delete_display.
96f09305 8843
c1f0671a
JD
8844 * xterm.h (struct x_display_info): New member, wm_type.
8845 (struct x_output): New members, expected_top/left and
8846 check_expected_move.
8847
8848 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
8849 is received.
854c1a59
SM
8850 (handle_one_xevent): Rename x_check_expected_move from
8851 x_check_fullscreen_move.
c1f0671a
JD
8852 (x_set_offset): Only add WM decoration sizes to modified_top/left
8853 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 8854 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
8855 Removed fullscreen specific code. Use check_expected_move,
8856 expected_left/top instead. Also, set wm_type.
8857 (x_term_init): Initialize wm_type to unknown.
8858
8859 * frame.c (x_fullscreen_move): Remove addition of WM decoration
8860 sizes to move_x/y.
8861
be2fdba9
KH
88622003-10-03 Kenichi Handa <handa@m17n.org>
8863
8864 * macterm.c (x_load_font): Clear all members of FONTP before start
8865 filling them.
8866
88672003-10-02 Kenichi Handa <handa@m17n.org>
8868
8869 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
8870 before calling find_ccl_program_func. Call find_ccl_program_func
8871 only when fontp->font_encoder is not NULL.
8872
8873 * xterm.c (x_load_font): Clear all members of FONTP before start
8874 filling them.
8875
26a6e439
JPW
88762003-10-03 John Paul Wallington <jpw@gnu.org>
8877
8878 * keymap.c (map_keymap): Don't abort when binding is a vector.
8879
0d4c2dc2
JR
88802003-10-02 Jason Rumney <jasonr@gnu.org>
8881
854c1a59
SM
8882 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
8883 Sync dependencies with Makefile.in.
a63cf46f
JR
8884 (alloca.o): Remove.
8885
0d4c2dc2
JR
8886 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
8887 filling them.
8888
8889 * w32bdf.c (w32_load_bdf_font): Likewise.
8890
ab8f7d5c
RS
88912003-09-30 Richard M. Stallman <rms@gnu.org>
8892
8893 * term.c (set_tty_color_mode): Calculate current_mode_spec
8894 regardless of value of VAL.
8895
854c1a59 8896 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
8897 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
8898 Handle over_used when splitting UNDER.
8899
a64387ee 89002003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
8901
8902 * regex.c (regex_compile): Free the stack when returning from function.
8903
3413f972
KH
89042003-09-28 Kenichi Handa <handa@m17n.org>
8905
8906 * fontset.c (Finternal_char_font): Change return value to
8907 cons (FONT-NAME . GLYPH-CODE).
8908
a6eeaa81 89092003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
8910
8911 * term.c (tty_setup_colors): Treat any negative argument as -1.
8912
f98ddc99
KH
89132003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
8914
8915 * process.c (send_process): Delete unused temp_buf.
8916
66c8f1a8
DL
89172003-09-26 Dave Love <fx@gnu.org>
8918
8919 * xterm.c (x_bitmap_mask): Declare.
8920
ca716c26
DL
89212003-09-25 Dave Love <fx@gnu.org>
8922
8923 * Makefile.in (fns.o): Depend on md5.h.
8924
fbe57420
KS
89252003-09-25 Kim F. Storm <storm@cua.dk>
8926
8927 * window.c (set_window_buffer): Fix redisplay problems when
8928 switching between buffers with different display margin widths.
8929
ef6ae4ff
KS
89302003-09-23 Kim F. Storm <storm@cua.dk>
8931
8932 * process.c (set_socket_option): Fix :bindtodevice option.
8933 (Fset_network_process_option): Update process contact list when
8934 setting option succeeds.
8935 (Fmake_network_process): Doc fix.
8936
68e03c1c
DL
89372003-09-23 Dave Love <fx@gnu.org>
8938
7146d1c1 8939 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 8940
a6eeaa81 89412003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
8942
8943 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
8944 color mode is an integer number (it could be -1).
8945
8fe7d8c8
RS
89462003-09-22 Richard M. Stallman <rms@gnu.org>
8947
8948 * intervals.c (graft_intervals_into_buffer): Correct the main loop
8949 in the case where OVER is longer than UNDER.
8950
2f71b5ea
MY
89512003-09-22 Masatake YAMATO <jet@gyve.org>
8952
7146d1c1 8953 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 8954 `vertical_type'.
7146d1c1 8955
0c4da023
KS
89562003-09-21 Kim F. Storm <storm@cua.dk>
8957
8958 * frame.c (Vdefault_frame_scroll_bars): New variable.
8959 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
8960 (syms_of_frame): DEFVAR_LISP it, and initialize according to
8961 window-system default scroll bar position.
8962
b648413b
KS
8963 * window.c (Fwindow_scroll_bars): Doc fix.
8964
8f5b9e34
JD
89652003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8966
854c1a59 8967 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 8968
b0f23edf
RS
89692003-09-19 Richard M. Stallman <rms@gnu.org>
8970
8971 * atimer.h: Don't include lisp.h.
8972 (P_): Define it here (as well as elsewhere).
8973
8974 * print.c (Fprin1_to_string): Move the PRINTPREPARE
8975 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
8976
8977 * data.c (Fvariable_binding_locus): New function.
8978 (syms_of_data): defsubr it.
8979 (Flocal_variable_p): Delete duplicate call to indirect_variable.
8980
e1283999
DL
89812003-09-18 Dave Love <fx@gnu.org>
8982
ad5f3636
DL
8983 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
8984
e1283999
DL
8985 * process.c (Fnetwork_interface_info): Fix type error.
8986 (Fnetwork_interface_list): Doc fix.
8987 (read_process_output, read_process_output): Delete unused var.
8988
b8c7fd71
KS
89892003-09-17 Kim F. Storm <storm@cua.dk>
8990
8991 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
8992 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
8993 (Fnetwork_interface_info): Check that ifreq struct has required
8994 fields before accessing them; this requires that those fields are
8995 defined as macros, which may be too restrictive on some platforms,
8996 but it is better than failing on other platforms.
8997 (syms_of_process): Only defsubr above fns when included.
8998
11e0a411
DL
89992003-09-17 Dave Love <fx@gnu.org>
9000
9001 * unexalpha.c: Don't include varargs.h.
9002
e9c50801
KS
90032003-09-17 Kim F. Storm <storm@cua.dk>
9004
9005 * process.c (Fset_process_sentinel): Add sentinel to childp plist
9006 for network process.
9007 (socket_options): Add `:' prefix to option names. Add optbit field.
9008 (set_socket_option): Remove no_error arg and special handling of s < 0.
9009 Return 1<<optbit for known option, 0 for unknown.
9010 Do not interpret 0 as false for boolean option (only nil).
9011 Pass failed option and value to report_file_error.
7146d1c1 9012 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
9013 (Fset_network_process_option): New function to set just one option.
9014 (Fmake_network_process): Allow :coding arg to be a cons.
9015 Allow :server arg to be an integer specifying backlog size.
9016 Remove :options arg, and allow options to be specified directly
9017 as :KEY, VALUE pairs. Parse these options before binding socket.
9018 As before, :reuseaddr t is default for a server process, but this
9019 can now be disabled by specifying :reuseaddr nil.
9020 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
9021 (init_process): Availability of network options is now checked with
9022 simpler syntax (featurep 'make-network-process :OPTION); use loop to
9023 setup features.
9024 (syms_of_process): Fix defsubr's for the replaced functions.
9025
a0fc3644
DL
90262003-09-16 Dave Love <fx@gnu.org>
9027
9028 * Makefile.in: Depend on coding.h.
9029
6df2a645
KS
90302003-09-14 Kim F. Storm <storm@cua.dk>
9031
9032 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
9033 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
9034 (syms_of_process): Defsubr them.
9035
9036 * config.in: Regenerate.
7146d1c1
SM
9037
90382003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
9041 * m/news-r6.h (XUNMARK): Remove.
9042 * m/mips.h (XUNMARK): Remove.
9043 * m/mips-siemens.h (XUNMARK): Remove.
9044 * m/iris4d.h (XUNMARK): Remove.
9045 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
9046
0930c1a1
SM
90472003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9048
31003b9e
SM
9049 * lisp.h (VALBITS): Don't remove 1 for the markbit.
9050 (union Lisp_Object): Use unsigned int for types. Remove markbit.
9051 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
9052 (XTYPE): Use unsigned right-shift.
9053 (XMARKBIT, XMARK, XUNMARK): Remove.
9054
0930c1a1
SM
9055 * alloc.c (init_intervals, init_symbol, init_marker):
9056 Don't preallocate anything.
9057 (Fgarbage_collect, mark_object): Ignore the markbit.
9058
9059 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
9060
19bb0fcd 90612003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
9062
9063 * xdisp.c (pint2hrstr): New function.
9064 (decode_mode_spec): Add `%i' and `%I' specs.
9065 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
9066 for `mode-line-format'.
9067
03bb6a06
AS
90682003-09-07 Andreas Schwab <schwab@suse.de>
9069
9070 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
9071 avoid warning.
9072
a6eeaa81 90732003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 9074
0930c1a1 9075 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 9076
ed159bbf
KS
90772003-09-03 Kim F. Storm <storm@cua.dk>
9078
9079 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
9080 change (superseded by 2002-08-30 change); the default blink-off
9081 cursor is now again "no cursor".
9082
fe64a394
JR
90832003-09-01 Jason Rumney <jasonr@gnu.org>
9084
9085 * makefile.w32-in (alloca.o): Remove.
9086 (coding.o): Depend on intervals.h
9087 (emacs.o, bytecode.o): Depend on window.h
9088
c0175e24
DL
90892003-09-01 Dave Love <fx@gnu.org>
9090
9091 * Makefile.in (alloca.o): Remove commands.
9092 (coding.o): Depend on intervals.h composite.h window.h.
9093 (emacs.o): Depend on window.h keyboard.h keymap.h.
9094 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
9095 (bytecode.o): Depend on window.h.
9096
a24d4cb2
JR
90972003-08-31 Jason Rumney <jasonr@gnu.org>
9098
4bc2315e
JR
9099 * w32term.c (w32_per_char_metric): Allow cached metrics to be
9100 returned even when font_type is unknown.
9101
a24d4cb2
JR
9102 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
9103
9d35adc7
JD
91042003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9105
9106 * xterm.c (x_term_init): Initialize new fields in x_display_info.
9107
9108 * xterm.h (struct x_display_info): Add red/green/blue_bits and
9109 *_offset.
9110
9111 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
9112 calculate pixel value.
9113
6f68b035
GM
91142003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
9115
0930c1a1
SM
9116 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
9117 Don't tell redisplay display is accurate when it's actually been
9118 paused for pending input.
6f68b035 9119
4828b4d7
RS
91202003-08-29 Richard M. Stallman <rms@gnu.org>
9121
9122 * dispnew.c (adjust_glyph_matrix): Call window_box
9123 whenever W is nonzero.
9124
9125 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9126 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 9127 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
9128 Use indirect_variable to trace thru variable aliases.
9129
9130 * config.in: Updated.
9131
9132 * callint.c (Fcall_interactively): Save and restore
9133 Vthis_command, Vthis_original_command, real_this_command,
9134 and current_kboard->Vlast_command.
9135
9136 * abbrev.c (Fexpand_abbrev): Insert before deleting.
9137
e019878d
GM
91382003-08-29 Gerd Moellmann <gerd@gnu.org>
9139
9140 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
9141
85478bc6
KH
91422003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
9143
0930c1a1 9144 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
9145 (decode_coding_sjis_big5): Likewise.
9146
07ce82d3
JR
91472003-08-27 Jason Rumney <jasonr@gnu.org>
9148
d3703de3
JR
9149 * w32.c (sys_pipe): Protect against file descriptor overflow.
9150
ee4a01d1
JR
9151 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
9152
07ce82d3
JR
9153 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
9154
a64387ee 91552003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
9156
9157 * xfns.c (Vgtk_version_string): New variable.
9158 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
9159
a6eeaa81 91602003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 9161
0930c1a1 9162 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 9163
5459e42a
EZ
9164 * Makefile.in (msdos.o): Depend on intervals.h.
9165
0930c1a1 9166 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 9167
231d6cfb
JD
91682003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9169
9170 * xterm.h (struct x_display_info): New fields: client_leader_window
9171 and Xatom_wm_client_leader.
9172
9173 * xterm.c (x_initialize): Move call to x_session_initialize to ...
9174 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
9175
9176 * xsmfns.c (create_client_leader_window): New function.
9177 (x_session_initialize): Call create_client_leader_window, take
9178 dpyinfo as argument.
9179
9180 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
9181
9182 * Makefile.in (xsmfns.o): Add more depenedencies.
9183
afa88464
DL
91842003-08-21 Dave Love <fx@gnu.org>
9185
9186 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
9187
f730033e
KH
91882003-08-21 Kenichi Handa <handa@m17n.org>
9189
9190 * term.c (term_init): Fix previous change; don't rely on the
9191 length of `buffer' if TERMINFO is defined.
9192
6dca786c
DL
91932003-08-20 Dave Love <fx@gnu.org>
9194
9195 * atimer.h: Include lisp.h.
9196
9197 * lisp.h (EMACS_LISP_H): New.
9198 (popup_activated_flag): Don't declare.
9199
9200 * alloca.c: Some merging with gnulib. Change logic and doc
9201 concerning (x)malloc/(x)free -- no longer Emacs-specific.
9202 [DO_BLOCK_INPUT]: Don't include lisp.h.
9203 (xmalloc, xfree): Declare.
9204 (malloc): Don't declare.
9205
0930c1a1 9206 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
9207 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
9208 atimer.h, blockinput.h.
9209
9210 * alloc.c (lisp_align_malloc): Change type of `aligned'.
9211
78819ebb 9212 * alloca.s: Remove.
6dca786c 9213
3a06a6d9
RS
92142003-08-19 Gerd Moellmann <gerd@gnu.org>
9215
9216 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
9217 use -lncurses.
9218
9219 * term.c (term_init): Use a buffer of size 4096 for tgetent since
9220 FreeBSD returns something longer than 2044. Abort if the end of
9221 the buffer is overwritten.
9222
27eeee55
MB
92232003-08-19 Miles Bader <miles@gnu.org>
9224
9225 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
9226
2f297815
GM
92272003-08-19 Gerd Moellmann <gerd@gnu.org>
9228
f4446bbf
GM
9229 * alloc.c (lisp_align_malloc): Check for memory full when
9230 allocating ablocks, which also avoids freeing a pointer into an
9231 ablocks structure.
9232
9233 * puresize.h (BASE_PURESIZE): Increase to 1100000.
9234
0930c1a1 9235 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 9236
0e7d7aae
RS
92372003-08-16 Richard M. Stallman <rms@gnu.org>
9238
9239 * editfns.c (Fencode_time): Doc fix.
9240
92412003-08-16 David Ponce <david@dponce.com>
9242
9243 * fileio.c (Fwrite_region): Fix conditional expression to issue
9244 the right message.
9245
b6189c3b 92462003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
9247
9248 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 9249 Set default value to 1.
0e7d7aae 9250
5d551295
KH
92512003-08-15 Kenichi Handa <handa@m17n.org>
9252
9253 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
9254 what autoscaled.
9255 (best_matching_font): Once we find a better scalable font, set
9256 non_scalable_has_exact_height_p to 1.
9257 (try_font_list): Call try_alternative_families to try any family
9258 with the given registry.
9259
1661e56b
AS
92602003-08-09 Andreas Schwab <schwab@suse.de>
9261
f29181dc
AS
9262 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
9263
1661e56b
AS
9264 * print.c (print_string): Fix printing of multibyte string with
9265 nontrivial printcharfun.
9266
465aa50a
JD
92672003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9268
9269 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
9270
9271 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
9272
e430e5ba
KH
92732003-07-31 Kenichi Handa <handa@m17n.org>
9274
9275 * process.c (read_process_output): Return the actually read bytes
9276 instead of the result of decoding.
9277
97e7188e
KH
92782003-07-31 Kenichi Handa <handa@m17n.org>
9279
9280 * xterm.h (struct x_bitmap_record): New member have_mask.
9281
9282 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
9283 to 0.
9284 (x_create_bitmap_from_file): Likewise.
9285 (x_destroy_bitmap): Check have_mask member before freeing a mask.
9286 (x_destroy_all_bitmaps): Likewise.
9287 (x_create_bitmap_mask): Set have_mask member to 1.
9288
b53094d6
RS
92892003-07-30 Richard M. Stallman <rms@gnu.org>
9290
9291 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
9292
631f2082
JD
92932003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9294
9295 * gtkutil.c (xg_mark_data): Update calls to mark_object.
9296
c855f2ca
RS
92972003-07-29 Richard M. Stallman <rms@gnu.org>
9298
9299 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
9300 Conditionalize XIM code on HAVE_XIM.
9301
9302 * fns.c (Fclear_string): New function.
9303 (syms_of_fns): defsubr it.
9304
b6189c3b 93052003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 9306
0930c1a1 9307 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 9308
29ea8ae9
SM
93092003-07-22 Stefan Monnier <monnier@cs.yale.edu>
9310
9311 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
9312
9313 * buffer.c (delete_all_overlays): New function.
9314 * buffer.h (delete_all_overlays): Declare.
9315 * coding.c (run_pre_post_conversion_on_str):
9316 * print.c (temp_output_buffer_setup):
9317 * fileio.c (Finsert_file_contents):
9318 * minibuf.c (get_minibuffer): Use it.
9319
1dd7ccf2
AC
93202003-07-22 Andrew Choi <akochoi@shaw.ca>
9321
9322 * unexmacosx.c (unexec_regions_sort_compare):
9323 (unexec_regions_merge): New functions. Sort and merge unexec
9324 regions before dumping them.
9325
f57bd967
DL
93262003-07-22 Dave Love <fx@gnu.org>
9327
9328 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
9329
7cdee936
SM
93302003-07-21 Stefan Monnier <monnier@cs.yale.edu>
9331
9332 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
9333 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
9334 MARKBIT as the gcmarkbit for strings.
9335
e50886d3
RS
93362003-07-21 Richard M. Stallman <rms@gnu.org>
9337
9338 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
9339
29ea8ae9 9340 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
9341 (syms_of_fns): Corresponding change.
9342
9343 * alloc.c (syms_of_alloc): Doc fixes.
9344
93452003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
9346
9347 * s/netbsd.h: Use -Wl syntax.
9348
fdc39b59
RS
93492003-07-17 Richard M. Stallman <rms@gnu.org>
9350
9351 * xterm.c (xim_initialize): Redo 6/24 change.
9352
9c53385f
SM
93532003-07-15 Stefan Monnier <monnier@cs.yale.edu>
9354
9355 * buffer.c (copy_overlays): Use EMACS_INT for positions.
9356 (Fswitch_to_buffer): Don't signal an error when switching to the same
9357 buffer in a dedicated window.
9358
9359 * alloc.c: Use bitmaps for cons, as was done for floats.
9360 (init_float, init_cons): Let the normal code allocate the first block.
9361 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
9362 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
9363 New macros.
9364 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
9365 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
9366 (live_cons_p): Check the pointer is not past the `conses' array.
9367 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
9368 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
9369 (survives_gc_p): Use CONS_MARKED_P and simplify.
9370 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
9371
dde13196
PE
93722003-07-13 Paul Eggert <eggert@twinsun.com>
9373
9374 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
9375 puts it into BSS instead, at least on Solaris 8 and 9.
9376 This is a valid optimization, and it may occur on other platforms,
9377 so Emacs should not assume that initializing a static variable to
9378 zero puts it into data.
9379 * alloc.c (pure, staticvec):
9380 Initialize these arrays to nonzero, so that they're not
9381 put into BSS by that optimization.
9382
a801bc34
SM
93832003-07-13 Stefan Monnier <monnier@cs.yale.edu>
9384
9385 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
9386 (lisp_align_malloc): Use posix_memalign is available.
9387 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
9388 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
9389 for consistency. Update users.
9390
0c8b2afa
RS
93912003-07-13 Richard M. Stallman <rms@gnu.org>
9392
9393 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
9394
668c2ab0
JB
93952003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
9396
9397 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
9398 and use the Gtk+ function gtk_window_icon_from_file if available.
9399
9400 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
9401 handle mask of bitmaps.
9402 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
9403 mask property.
9404 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
9405
9406 * xterm.h (xg_set_icon): New function.
9407
800bebe3
RS
94082003-07-12 Paul Eggert <eggert@twinsun.com>
9409
9410 * unexelf.c (unexec): Consider a section to precede the .bss
9411 section if its addresses overlap that of .bss.
9412
69e38995
RS
94132003-07-12 Richard M. Stallman <rms@gnu.org>
9414
9415 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
9416
9417 * config.in (HAVE_CRTIN): Add #undef.
9418 (INLINE): Really inline only if OPTIMIZE is defined.
9419
9420 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
9421 END_FILES_1.
9422 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 9423 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
9424
9425 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
9426 (TERMINFO): Define.
9427 (LIBS_TERMCAP): Define.
9428 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
9429
9430 * xfns.c: Include libpng/png.h instead of png.h.
9431
f1d0c238
AS
94322003-07-11 Andreas Schwab <schwab@suse.de>
9433
9434 * buffer.c (modify_overlay): Update prototype.
9435 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
9436 Likewise.
9437
5f6bf5fe
SM
94382003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9439
9440 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
9441 (struct interval): Move to intervals.h.
9442 (struct Lisp_Marker): Use EMACS_INT for position info.
9443 (forward_point): Remove prototype of defunct function.
9444 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
9445 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
9446 (syms_of_textprop, set_text_properties): Remove prototypes that are
9447 already in intervals.h.
9448
9449 * intervals.h (struct interval): Move from lisp.h.
9450 Use EMACS_INT for position and size info.
9451
9452 * coding.c: Include intervals.h for Fset_text_properties.
9453
9454 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9455 position and length information.
9456
2765b457
SM
94572003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9458
9459 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9460 position and length information.
9461
2410d73a
SM
94622003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9463
9464 Change overlays_after and overlays_before so the overlays themselves
9465 are linked into lists, rather than using cons cells. After all each
9466 Lisp_Misc already occupies 5 words, so we can add a `next' field to
9467 Lisp_Overlay for free and save up one cons cell per overlay (not
9468 to mention one indirection when traversing the list of overlay).
9469
9470 * lisp.h (struct Lisp_Overlay): New field `next'.
9471
9472 * buffer.h (struct buffer): Change overlays_before and overlays_after
9473 from Lisp lists of overlays to pointers to overlays.
9474
9475 * buffer.c (overlay_strings, recenter_overlay_lists):
9476 Fix typo in eassert in last commit.
9477 (unchain_overlay): New function.
9478 (add_overlay_mod_hooklist): Use AREF.
9479 (copy_overlays, reset_buffer, overlays_at, overlays_in)
9480 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
9481 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
9482 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
9483 (report_overlay_modification, evaporate_overlays, init_buffer_once):
9484 Adjust to new type of overlays_(before|after).
9485
9486 * alloc.c (mark_object): Mark the new `next' field of overlays.
9487 (mark_buffer): Manually mark the overlays_(after|before) fields.
9488
9489 * coding.c (run_pre_post_conversion_on_str):
9490 * editfns.c (overlays_around):
9491 * xdisp.c (load_overlay_strings):
9492 * fileio.c (Finsert_file_contents):
9493 * indent.c (current_column):
9494 * insdel.c (signal_before_change, signal_after_change):
9495 * intervals.c (set_point_both):
9496 * print.c (temp_output_buffer_setup): Use new type for
9497 overlays_(before|after).
9498
04812929
SM
94992003-07-08 Stefan Monnier <monnier@cs.yale.edu>
9500
9501 * buffer.c (report_overlay_modification): Don't run hooks while
9502 traversing the list of overlays.
9503
9504 * buffer.h (struct buffer): Use an int for overlay_center.
9505 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9506 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9507
9508 * buffer.c (reset_buffer, recenter_overlay_lists)
9509 (adjust_overlays_for_insert, adjust_overlays_for_delete)
9510 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
9511 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
9512 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9513 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9514
9515 * xdisp.c (fast_find_position): Remove unused var.
9516
9517 * cmds.c (Qexpand_abbrev): New sym.
9518 (syms_of_cmds): Initialize it.
9519 (internal_self_insert): Use it to call expand-abbrev.
9520
2e7ecf15
KS
95212003-07-09 Kim F. Storm <storm@cua.dk>
9522
f9711de4 9523 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 9524 was configured with --without-xim.
42f81f64 9525 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 9526
c6de56a0
RS
95272003-07-07 Richard M. Stallman <rms@gnu.org>
9528
9529 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
9530
9531 * alloc.c (Fgarbage_collect): Doc fix.
9532
b6189c3b 95332003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
9534
9535 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
9536
bfe1a3f7
SM
95372003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9538
04812929
SM
9539 * minibuf.c (read_minibuf): UNGCPRO before returning.
9540 (Ftry_completion, Fall_completions): Doc fix.
9541
bfe1a3f7
SM
9542 * alloc.c (live_float_p): Check that p is not past the `floats' array,
9543 now that `floats' is not the last element of the struct any more.
9544
ee79d1aa
JR
95452003-07-06 Jason Rumney <jasonr@gnu.org>
9546
9547 * w32term.h (ClipboardSequence_Proc): New type.
9548
9549 * w32fns.c (clipboard_sequence_fn): New variable.
9550 (globals_of_w32fns): Initialize it.
9551
9552 * w32select.c (last_clipboard_sequence_number): New variable.
9553 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
9554 number if possible.
9555
49723c04
SM
95562003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9557
4698665f
SM
9558 * m/amdx86-64.h (MARKBIT):
9559 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
9560 MARKBIT and ARRAY_MARK_FLAG any more.
9561
9562 * m/hp800.h (XSETMARKBIT):
9563 * m/sr2k.h (XSETMARKBIT):
9564 * lisp.h (XSETMARKBIT): Remove unused macro.
9565
49723c04
SM
9566 * lisp.h (mark_object): Change prototype.
9567
9568 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
9569 (last_marked): Change accordingly.
9570 (mark_interval, mark_maybe_object, mark_maybe_pointer)
9571 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
9572 (mark_buffer): Update calls to mark_object.
9573
9574 * bytecode.c (mark_byte_stack):
9575 * fns.c (sweep_weak_table):
9576 * keyboard.c (mark_kboards): Update calls to mark_object.
9577
1d660eca
JR
95782003-07-06 Jason Rumney <jasonr@gnu.org>
9579
9580 * alloc.c (struct ablock): Only include padding when there is some.
9581
618b5ae4
SM
95822003-07-04 Stefan Monnier <monnier@cs.yale.edu>
9583
9584 * alloc.c (ALIGN): Add casts to simplify usage.
9585 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
9586 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
9587 (struct ablock, struct ablocks): New types.
9588 (free_ablock): New global var.
9589 (lisp_align_malloc, lisp_align_free): New functions.
9590 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
9591 (struct float_block): Reorder and add gcmarkbits.
9592 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
9593 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
9594 (init_float, make_float): Use lisp_align_malloc.
9595 (free_float, live_float_p): Don't use `type' any more.
9596 (make_float): Use FLOAT_UNMARK to access to mark bit.
9597 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
9598 Use FLOAT_MARKED_P to access the mark bit.
9599 (pure_alloc): Simplify use of ALIGN.
9600 (mark_object): Use FLOAT_MARK to access the mark bit.
9601 (gc_sweep): Use new macros to access the float's mark bit.
9602 (init_alloc_once): Init free_ablock.
9603
9604 * lisp.h (struct Lisp_Float): Remove unused field `type'.
9605
3ef06d12
SM
96062003-06-27 Stefan Monnier <monnier@cs.yale.edu>
9607
9608 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
9609 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
9610 (allocate_buffer): Move.
9611 (string_bytes): Don't mask markbit of `size_byte'.
9612 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9613 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
9614 Use the `size' field of buffers (rather than the `name' field) for
9615 the mark bit, as is done for all other vectorlike objects.
9616 Use the new macros to access the mark bit of vectorlike objects.
9617
e81043aa
RS
96182003-06-26 Richard M. Stallman <rms@gnu.org>
9619
9620 * puresize.h (BASE_PURESIZE): Increment base size.
9621
9622 * xdisp.c (fast_find_position): Enable Gerd's new definition.
9623
9624 * xterm.c (xim_initialize): Undo previous change.
9625
2d0834cc
SM
96262003-06-26 Stefan Monnier <monnier@cs.yale.edu>
9627
9628 * alloc.c (survives_gc_p): Simplify.
9629
9630 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
9631
9632 * window.c (Fset_window_dedicated_p): Simplify.
9633 (display_buffer_1): Don't raise the win from which minibuf was entered.
9634 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
9635 (Fminibuffer_selected_window): Simplify.
9636
9637 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
9638
9639 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
9640 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
9641
9642 * insdel.c (check_markers, adjust_markers_for_delete)
9643 (adjust_markers_for_insert, adjust_markers_for_replace)
9644 (prepare_to_modify_buffer, RESTORE_VALUE):
9645 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
9646 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
9647 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
9648 * alloc.c (Fmake_marker, free_marker, gc_sweep):
9649 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
9650 * editfns.c (save_excursion_restore, transpose_markers):
9651 * window.c (delete_window):
9652 * xdisp.c (message_dolog): Update for new types.
9653
d54ae3d8
JD
96542003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9655
a5f696ac
JD
9656 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
9657 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 9658 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
9659
9660 * frame.c (make_frame): Initialize default_face_done_p.
9661
9662 * frame.h (struct frame): Add default_face_done_p.
9663
d54ae3d8
JD
9664 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
9665 will be defined.
9666
2336fe58
SM
96672003-06-25 Stefan Monnier <monnier@cs.yale.edu>
9668
9669 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
9670 Initialize the new field `gcmarkbit'.
9671 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
9672 (mark_interval_tree): Don't mark the tree separately from the nodes.
9673 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
9674 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9675 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
9676
9677 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
9678 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
9679 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
9680 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
9681 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
9682
bcea31c2
DL
96832003-06-24 Dave Love <fx@gnu.org>
9684
9685 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
9686
9687 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
9688 from gnulib.
9689
2601f59e
RS
96902003-06-21 Richard M. Stallman <rms@gnu.org>
9691
9692 * fileio.c (Fwrite_region): Alternate messages
9693 for append and partial write.
9694
9695 * keyboard.c (read_key_sequence): When converting upcase fn key to
9696 downcase, update fkey and keytran so `backspace' gets translated.
9697
9698 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
9699
9700 * process.c (wait_reading_process_input): Don't signal SIGIO
9701 in batch mode.
9702
b5d2c621
KH
97032003-06-17 Kenichi Handa <handa@m17n.org>
9704
9705 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
9706 composite.h.
9707
9708 * xselect.c: Don't include charset.h, coding.h, composite.h.
9709 (Qforeign_selection): New variable.
9710 (syms_of_xselect): Intern and static it.
9711 (selection_data_to_lisp_data): Return a unibyte string made from
9712 data with `foreign-selection' text property.
9713
6793bc63
SM
97142003-06-15 Stefan Monnier <monnier@cs.yale.edu>
9715
9716 * termhooks.h (EVENT_INIT): New macro.
9717
9718 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
9719
9720 * alloc.c (mark_kboards): Move to keyboard.c.
9721
9722 * keyboard.c (record_asynch_buffer_change, read_avail_input):
9723 * xterm.c (x_dispatch_event):
9724 * xmenu.c (find_and_call_menu_selection):
9725 * xdisp.c (handle_tool_bar_click):
9726 * w32menu.c (menubar_selection_callback):
9727 * sysdep.c (kbd_input_ast, read_input_waiting):
9728 * msdos.c (dos_rawgetc):
9729 * macterm.c (mac_check_for_quit_char):
9730 * macmenu.c (menubar_selection_callback):
9731 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
9732 data to kbd_buffer_store_event.
9733
b3ea810c
KS
97342003-06-15 Kim F. Storm <storm@cua.dk>
9735
9736 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 9737 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 9738
b8f75eda
KG
97392003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9740
9741 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
9742
ba92ce48
KH
97432003-06-12 Kenichi Handa <handa@m17n.org>
9744
9745 * fileio.c (Fwrite_region): Save and restore restriction.
9746
b80263be
DL
97472003-06-12 Dave Love <fx@gnu.org>
9748
9749 * alloca.c (alloca): Declare arg as size_t.
9750
6793bc63
SM
9751 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
9752 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 9753
b23c0a83
DL
97542003-06-11 Dave Love <fx@gnu.org>
9755
9756 * search.c (shrink_regexp_cache): Use xrealloc.
9757 (syms_of_search): Use xmalloc.
9758
700e47c2
KS
97592003-06-10 Kim F. Storm <storm@cua.dk>
9760
9761 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
9762 Adjust phys_cursor.x to be relative to window box, rather than
9763 text area before checking -- to ensure cursor is redrawn when
9764 exposing window.
9765 Note: This also fixes a similar (older) bug if display margins
9766 are present.
9767
f11aa0b2
KH
97682003-06-06 Kenichi Handa <handa@m17n.org>
9769
9770 * coding.c (encoding_buffer_size): If coding->type is
9771 coding_type_ccl, double magnification on CRLF encoding.
9772
3d143690
JR
97732003-06-06 Jason Rumney <jasonr@gnu.org>
9774
9775 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
9776 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
9777
9778 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
9779 Mac too.
9780
f16205ca
DL
97812003-06-05 Dave Love <fx@gnu.org>
9782
b23c0a83
DL
9783 * strftime.c: Merge changes from gnulib.
9784
f16205ca
DL
9785 * mktime.c (__mktime_internal): Merge changes from gnulib
9786 involving year 69 and dst2.
9787
9788 Changes to merge with gnulib version and be consistent with the
9789 autoconf test:
9790
6793bc63
SM
9791 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
9792 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
9793 [HAVE_LOCALE_H]: Include locale.h.
9794 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
9795
9b87a0bc
KS
97962003-06-05 Kim F. Storm <storm@cua.dk>
9797
9798 * window.c (coordinates_in_window): Convert X and Y to window
9799 relative coordinates inside mode-line and header-line parts.
9800 Convert X and Y to margin area relative coordinates inside left
9801 and right display margin parts.
9802
5a8a15ec
JR
98032003-06-05 Jason Rumney <jasonr@gnu.org>
9804
9805 * w32fns.c (add_system_logical_colors_to_map): New function.
9806 (Fx_open_connection): Use it.
9807
01ed8ff1
SM
98082003-06-04 Stefan Monnier <monnier@cs.yale.edu>
9809
9810 * process.c (allocate_pty): Revert part of the previous patch.
9811 (Faccept_process_output): Simplify.
9812
b427b65d
JR
98132003-06-04 Jason Rumney <jasonr@gnu.org>
9814
9815 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
9816
9817 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
9818 (lispy_mouse_wheel_names): Remove.
9819 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
9820 Always define drag_and_drop_syms.
9821
9822 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
9823 WHEEL_EVENT events.
9824
914a8c47
SM
98252003-06-03 Stefan Monnier <monnier@cs.yale.edu>
9826
01ed8ff1
SM
9827 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
9828
914a8c47
SM
9829 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
9830
adcb132c
JD
98312003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9832
9833 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
9834 menu item label.
9835
be781fa7
RS
98362003-06-03 Richard M. Stallman <rms@gnu.org>
9837
9838 * window.c (Fwindow_edges): Doc fix.
9839 (Fwindow_pixel_edges, Fwindow_inside_edges)
9840 (Fwindow_inside_pixel_edges): New functions.
9841 (syms_of_window): defsubr them.
9842
9843 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
9844 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
9845
914a8c47
SM
98462003-06-02 Stefan Monnier <monnier@cs.yale.edu>
9847
9848 * dispnew.c (Fsit_for): Don't lie about the number of args.
9849
5b07197a
DL
98502003-06-02 Dave Love <fx@gnu.org>
9851
9852 * callproc.c: Use HAVE_FCNTL_H, not USG5.
9853 (syms_of_callproc) <process-environment>: Doc fix.
9854
9855 * doc.c: Use HAVE_FCNTL_H, not USG5.
9856
9857 * xfaces.c (font_rescale_ratio): Fix for K&R.
9858
9859 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
9860
9861 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
9862
9863 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
9864
9865 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
9866 (xg_create_frame_widgets): Use ENCODE_UTF_8.
9867
d7107586 9868 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
9869
9870 * xmenu.c (ENCODE_MENU_STRING): New.
9871 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
9872 Use it.
9873
9874 * coding.h (ENCODE_UTF_8): New.
9875 (Qutf_8): Declare.
9876
9877 * coding.c (Qutf_8): New.
9878 (syms_of_coding): Intern it.
9879
9880 * fns.c: Doc fixes.
9881
7335b336
KH
98822003-06-02 Kenichi Handa <handa@m17n.org>
9883
9884 * buffer.c (Fset_buffer_multibyte): Fix previous change.
9885
914a8c47
SM
98862003-06-01 Stefan Monnier <monnier@cs.yale.edu>
9887
9888 * lread.c (openp): Make sure STR is a string.
9889
9862c135
JR
98902003-06-01 David Ponce <david@dponce.com>
9891
cab27d04 9892 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
9893 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
9894
9895 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
9896 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
9897 (discard_mouse_events): Discard WHEEL_EVENT events too.
9898 (lispy_wheel_names, wheel_syms): New.
9899 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 9900 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 9901 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
9902
9903 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
9904 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9905 WHEEL_EVENT events.
9906
f984e73e
JPW
99072003-05-31 John Paul Wallington <jpw@gnu.org>
9908
9909 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
9910 timer are in lisp/emacs-lisp.
9911
1efcd78f
KH
99122003-05-31 Kenichi Handa <handa@m17n.org>
9913
458c8af4
KH
9914 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
9915 region when a buffer is changed to unibyte.
9916
1efcd78f
KH
9917 * charset.h (VALID_LEADING_CODE_P): New macro.
9918 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
9919
778e2804
KH
9920 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
9921 is nonzero, accept multibyte form of eight-bit-control chars.
9922 (decode_composition_emacs_mule): Likewise.
9923 (decode_coding_emacs_mule): Likewise.
9924 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
9925 multibyte form of eight-bit-control chars.
9926
9927 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
9928 (Finsert_file_contents): If coding-system-for-read is bound to
9929 Qauto_save_coding, use the coding system emacs-mule with special
9930 setting for recovering a file.
9931 (choose_write_coding_system): On auto saving, use the coding
9932 system emacs-mule with special setting for auto saving.
9933 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
9934
034060e4
KH
99352003-05-30 Kenichi Handa <handa@m17n.org>
9936
9937 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
9938 properly before calling ccl_driver.
9939
778e2804 9940 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 9941
cab27d04 9942 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
9943 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
9944 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
9945
595f5aa5
GM
99462003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
9947
9948 * xfaces.c (realize_default_face): Do not abort if lface is
9949 non-existent - reverts change from 2003-05-19.
9950
103e0180
KH
99512003-05-29 Kenichi Handa <handa@m17n.org>
9952
9953 * coding.c (decode_coding_iso2022): Pay attention to the byte
9954 sequence of CTEXT extended segment, and retain those bytes as is.
9955
99562003-05-28 Kenichi Handa <handa@m17n.org>
9957
cab27d04 9958 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
9959 of CODING_REPLACEMENT_CHARACTER.
9960 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
9961 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
9962 check this flag on encoding.
cab27d04
SM
9963 (encode_coding_sjis_big5):
9964 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
9965 (Fset_terminal_coding_system_internal):
9966 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
9967 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
9968
9969 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
9970 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9971 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
9972
ff6a3bfb 99732003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 9974
ff6a3bfb
RS
9975 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
9976
9977 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 9978
1963c428
KS
99792003-05-28 Kim F. Storm <storm@cua.dk>
9980
9981 * xdisp.c (expose_window): Fix error in calculation of
9982 window relative coordinates of area to redisplay.
9983
2b5d4601
JR
99842003-05-27 Jason Rumney <jasonr@gnu.org>
9985
9986 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
9987
1c64a4a2
JB
99882003-05-27 David Ponce <david@dponce.com>
9989
9990 Handle W32 mouse wheel events as mouse click events, like in X.
9991
9992 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
9993 MOUSE_WHEEL_EVENT anymore.
9994
9995 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
9996 Scrolling down/up the mouse wheel is respectively mapped to mouse
9997 button 4 and 5.
9998 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9999 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
10000 WM_MOUSEWHEEL events.
10001
2d031b89
AS
100022003-05-27 Andreas Schwab <schwab@suse.de>
10003
20464fdf
AS
10004 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
10005
2d031b89
AS
10006 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
10007 partially visible line.
10008
10009 * alloc.c (Fgarbage_collect): Fix last change.
10010
97bc76d4
JPW
100112003-05-26 John Paul Wallington <jpw@gnu.org>
10012
10013 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
10014
56613f06
SM
100152003-05-25 Stefan Monnier <monnier@cs.yale.edu>
10016
10017 * window.c (Fset_window_buffer): Add type of `keep_margins'.
10018 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
10019
10020 * window.h (window_box_text_cols): Declare.
10021
10022 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
10023 (x_draw_vertical_border): Remove unused var `f'.
10024
10025 * xfaces.c (build_scalable_font_name): Remove `unused var
10026 pixel_size' warning.
10027
10028 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
10029
10030 * unexelf.c (unexec): Remove `unused var n' warning.
10031
10032 * strftime.c (my_strftime_localtime_r): Remove `defined but
10033 unused' warning.
10034
10035 * process.c (allocate_pty): Remove `unused var stb' and
10036 `cp might be used uninitialized' warnings.
10037
10038 * dispnew.c (mode_line_string): Remove unused var `f'.
10039
10040 * coding.c (find_safe_codings): Remove unused var `i'.
10041
10042 * bytecode.c (Fbyte_code): Remove `unused val' warning.
10043
10044 * buffer.c (Fkill_buffer): Remove unused var `list'.
10045
10046 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
10047
93421a1f
JD
100482003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10049
10050 * frame.c (make_frame): Condition want_fullscreen with
10051 HAVE_WINDOW_SYSTEM.
10052
c4b8aebc
JB
100532003-05-25 Juanma Barranquero <lektu@terra.es>
10054
10055 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
10056 (Fwindow_scroll_bars): Fix typo in docstring.
10057
0416870b
KS
100582003-05-24 Kim F. Storm <storm@cua.dk>
10059
10060 The following changes serve several purposes:
10061
10062 1) Swap the position of fringes and display margins in windows, i.e.
10063 the fringes are now displayed between the margins and the text area
10064 (by default).
10065
10066 2) Allow fringe and scroll bar parameters to be set per-buffer and
10067 per-window (like display margins). Such settings are now stored
10068 in window configurations, preserved when frames are resized, and
9018a88e 10069 copied when windows are split vertically or horizontally.
0416870b
KS
10070 Several bugs related to display margins have been fixed.
10071
10072 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 10073
0416870b
KS
10074 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
10075 rather than FRAME_WIDTH (FRAME_FONT (f)).
10076
10077 5) Introduce a consistent naming of variables, members and macros
10078 depending on whether their value is measured in pixels or in
10079 canonical columns/lines. Pixel dimensions are named *_width and
10080 *_height, while canonical columns/lines are named *_cols and
10081 *_lines. Pixel positions are named *_x and *_y, while column/line
10082 positions are named *_col and *_line.
10083
10084 6) Consolidate more of the X, W32, and MAC gui code by moving
10085 common data into struct frame, and generalize it for the non-gui
10086 case by using suitable defaults.
10087
10088 7) Cleanup and consolidate the macros controlling frame and window
10089 layout into frame.h and window.h, and generalize the use of the
10090 various window_box_* functions (enhanced to handle the new fringe
10091 position and the per-window fringe and scroll bar settings).
10092
10093 * frame.h (struct frame): Rename members height to text_lines,
10094 width to text_cols, window_height to total_lines, window_width to
10095 total_cols, new_height to new_text_lines, new_width to
10096 new_text_cols. All uses changed.
10097 (struct frame): New members which consolidate common members of
10098 x_output, w32_output, and mac_output structures: left_pos,
10099 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
10100 win_gravity, size_hint_flags, border_width, internal_border_width,
10101 line_height, fringe_cols, left_fringe_width, right_fringe_width,
10102 want_fullscreen. All uses changed.
10103 (struct frame): New member column_width contaning the canonical
10104 column width, analogue to line_height. All uses changed.
10105 (struct frame): Rename members scroll_bar_pixel_width to
10106 config_scroll_bar_width, and scroll_bar_cols to
10107 config_scroll_bar_cols. All uses changed.
10108 (struct frame): New member scroll_bar_actual_width which
10109 consolidates and renames the vertical_scroll_bar_extra member of
10110 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 10111 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
10112 from x/w32/macterm.h files. All uses changed. Also change code
10113 which referred to f->output_data...->pixel_height.
cab27d04 10114 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 10115 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 10116 which referred to f->output_data...->pixel_width.
cab27d04 10117 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 10118 Also change code which referred to f->height.
cab27d04 10119 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
10120 Also change code which referred to f->width.
10121 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
10122 to update new_text_lines and new_text_cols members directly.
cab27d04 10123 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 10124 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 10125 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
10126 FRAME_SCROLL_BAR_COLS. All uses changed.
10127 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 10128 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
10129 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
10130 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
10131 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
10132 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
10133 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
10134 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
10135 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
10136 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
10137 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
10138 Unconditionally return line_height member (it now has proper value
10139 also for non-window frames).
10140 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
10141 return new column_width member (rather than the default font width).
10142 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 10143 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
10144 from x/w32/macterm.h files. Unconditionally return corresponding
10145 member of frame structure (they now have proper values also for
10146 non-window frames).
cab27d04 10147 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
10148 Calculate return value from left and right widths.
10149 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
10150 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
10151 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
10152 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
10153 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
10154 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
10155 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 10156 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 10157 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 10158 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 10159 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 10160 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 10161 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 10162 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 10163 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 10164 consolidated from x/mac/w32term.h.
cab27d04 10165 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 10166 consolidated from x/mac/w32term.h.
cab27d04 10167 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 10168 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 10169 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
10170 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
10171
10172 * window.h (struct window): Rename members left to left_col,
10173 top to top_line, height to total_lines, width to total_cols,
10174 left_margin_width to left_margin_cols, right_margin_width to
10175 right_margin_cols, orig_height to orig_total_lines, orig_top to
10176 orig_top_line. All uses changed.
10177 (struct window): New members left_fringe_width, right_fringe_width,
10178 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
10179 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
10180 New macros primarily used to simplify other macros.
10181 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
10182 referred to XINT (w->width).
10183 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
10184 referred to XINT (w->height).
10185 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
10186 referred to XINT (w->width) * canon_x_unit.
10187 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
10188 referred to XINT (w->height) * canon_y_unit.
10189 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
10190 referred to XINT (w->left).
cab27d04 10191 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
10192 all uses and code that referred to XINT (w->left) + XINT (w->width).
10193 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
10194 referred to XINT (w->top).
10195 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
10196 referred to XINT (w->top) + XINT (w->height).
10197 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
10198 referred to XINT (w->left) * canon_x_unit.
10199 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
10200 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
10201 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
10202 referred to XINT (w->top) * canon_y_unit.
10203 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
10204 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
10205 (WINDOW_LEFTMOST_P): New macro.
cab27d04 10206 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 10207 All uses changed.
cab27d04 10208 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 10209 All uses changed.
cab27d04 10210 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
10211 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
10212 Do not exclude left fringe width.
cab27d04 10213 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
10214 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
10215 Do not exclude fringe widths.
10216 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
10217 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
10218 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
10219 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
10220 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
10221 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
10222 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
10223 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
10224 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
10225 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
10226 New macros. Change code which referenced corresponding
10227 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
10228 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
10229 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
10230 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
10231 allow per-window scroll-bar settings.
10232 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
10233 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
10234 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
10235 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
10236 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
10237 FRAME_SCROLL_BAR_WIDTH.
10238 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 10239 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 10240 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 10241 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 10242 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 10243 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 10244 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
10245 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
10246 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10247 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
10248 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
10249 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 10250 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 10251 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
10252 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
10253 (window_from_coordinates): Update prototype.
10254 (Fset_window_buffer): Update EXFUN.
10255 (set_window_buffer): Update prototype.
9018a88e 10256
0416870b 10257 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 10258 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
10259 changed.
10260 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
10261 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
10262 internal_border_width is now set to 0 for non-window frames.
10263 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
10264 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
10265 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
10266 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
10267 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
10268 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10269 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
10270 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
10271 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 10272 Move to window.h and renamed [see window.h changes].
0416870b
KS
10273 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
10274 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
10275 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
10276 Use WINDOW_TOTAL_LINES.
0416870b
KS
10277 (frame_update_line_height): Remove prototype.
10278
10279 * buffer.h (struct buffer): Rename members measured in columns:
10280 left_margin_width to left_margin_cols, right_margin_width to
10281 right_margin_cols. All uses changed.
10282 New members left_fringe_width, right_fringe_width,
10283 fringes_outside_margins for per-buffer fringe settings.
10284 New members scroll_bar_width and vertical_scroll_bar_type for
10285 per-buffer scroll bar settings.
10286
10287 * buffer.c (init_buffer_once): Set buffer_defaults and
10288 buffer_local_flags for new buffer-local variables
10289 left_fringe_width, right_fringe_width, fringes_outside_margins,
10290 scroll_bar_width, and vertical_scroll_bar_type.
10291 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
10292 default-* variables for them.
10293
10294 * dispnew.c: Make (many) trivial substitutions for renamed and
10295 new macros in dispextern.h, frame.h and window.h.
10296 (mode_line_string): No need to adjust width for mode lines, as it
10297 is already adjusted by the caller.
10298 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 10299
0416870b
KS
10300 * frame.c: Make (many) trivial substitutions for renamed and
10301 new macros in dispextern.h, frame.h and window.h.
10302 (make_frame): Initialize left_fringe_width, right_fringe_width,
10303 fringe_cols, scroll_bar_actual_width, border_width,
10304 internal_border_width, column_width, line_height, x_pixels_diff,
10305 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
10306 members with values suitable for a non-window frames.
10307
10308 * gtkutil.c: Make (many) trivial substitutions for renamed and
10309 new macros in dispextern.h, frame.h and window.h.
9018a88e 10310
0416870b
KS
10311 * indent.c: Make (few) trivial substitutions for renamed and
10312 new macros in dispextern.h, frame.h and window.h.
10313
10314 * keyboard.c: Make (many) trivial substitutions for renamed and
10315 new macros in dispextern.h, frame.h and window.h.
10316 (make_lispy_event): Use window positions returned from
10317 window_from_coordinates when constructing the lisp event for
10318 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
10319 (incorrect) values locally.
10320 (make_lispy_movement): Use window positions returned from
10321 window_from_coordinates when constructing the lisp event, rather
10322 than calculating (incorrect) values locally.
10323
10324 * scroll.c: Make (some) trivial substitutions for renamed and
10325 new macros in dispextern.h, frame.h and window.h.
10326
10327 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
10328 scroll-bars.
10329
10330 * sysdep.c: Make (few) trivial substitutions for renamed and
10331 new macros in dispextern.h, frame.h and window.h.
10332
10333 * term.c: Make (some) trivial substitutions for renamed and
10334 new macros in dispextern.h, frame.h and window.h.
10335
10336 * widget.c: Make (few) trivial substitutions for renamed and
10337 new macros in dispextern.h, frame.h and window.h.
10338
10339 * window.c: Make (many) trivial substitutions for renamed and
10340 new macros in dispextern.h, frame.h and window.h.
10341 (make_window): Initialize new members
10342 left_margin_cols, right_margin_cols, left_fringe_width,
10343 right_fringe_width, fringes_outside_margins, scroll_bar_width,
10344 and vertical_scroll_bar_type.
cab27d04 10345 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 10346 and per-window fringes and scroll-bars.
0416870b 10347 Fix bug related to incorrectly adjusting coordinates by
9018a88e 10348 frame's internal_border_width (the effect normally negible since
0416870b
KS
10349 the internal_border_width is typically 0 or 1 pixel, but very
10350 noticeable for an internal_border_width of e.g. 25 pixels).
10351 Upon successful return (other than ON_NOTHING), the coordinates
10352 are now always properly converted to window relative for the
10353 given display element.
10354 (window_from_coordinates): Add new parameters wx and wy to
10355 return the window relative x and y position in the returned
10356 window and part. A null arg means, don't return the position.
10357 All callers changed.
10358 (adjust_window_margins): New function which may reduce the width
10359 of the display margins if a window's text area is too small after
10360 resizing or splitting windows.
10361 (size_window): Fix bug that did not account for display margin
10362 widths when checking the minimum width of a window; use
10363 adjust_window_margins.
10364 (set_window_buffer): Call Fset_window_fringes and
10365 Fset_window_scroll_bars to setup per-window elements.
10366 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
10367 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
10368 (e.g. after splitting a window or resizing the frame).
10369 All callers changed.
0416870b
KS
10370 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
10371 (Fsplit_window): Duplicate original window's display margin,
10372 fringe, and scroll-bar settings; then call Fset_window_buffer with
10373 KEEP_MARGINS non-nil. This fixes a bug which caused a split
10374 window to only preserve the display margins in one of the windows.
c4b8aebc 10375 When splitting horizontally, call adjust_window_margins on both
0416870b 10376 windows to ensure that the text area of the new windows is non too
f9711de4 10377 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
10378 width of the split window was less than the width of the display
10379 margins.
cab27d04 10380 (window_box_text_cols): Rename from window_internal_width.
9018a88e 10381 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
10382 Fix bug that caused vertical separator to be subtracted also on
10383 window frames. Fix another bug that did not reduce the returned
10384 value by the columns used for display margins.
10385 (window_scroll_line_based): Fix bug related to scrolling too much
10386 when display margins are present (implicitly fixed by the fix to
10387 window_box_text_cols).
10388 (scroll_left, scroll_right): Fix bug related to scrolling too far
10389 by default when display margins are present (implicitly fixed by
10390 the fix to window_box_text_cols).
10391 (struct saved_window): Rename members left to left_col, top to
10392 top_line, width to total_cols, height to total_lines, orig_top to
10393 orig_top_line, orig_height to orig_total_lines. All uses changed.
10394 New members left_margin_cols, right_margin_cols,
10395 left_fringe_width, right_fringe_width, fringes_outside_margins,
10396 scroll_bar_width, and vertical_scroll_bar_type for saving
10397 per-window display elements.
10398 (Fset_window_configuration): Restore display margins, fringes,
10399 and scroll bar settings. This fixes a bug which caused display
10400 margins to be discarded when saving and restoring a window
10401 configuration.
10402 (save_window_save): Save display margins, fringes, and scroll bar
10403 settings. This fixes a bug which caused display margins to be
10404 discarded when saving and restoring a window configuration.
10405 (Fset_window_margins): Do nothing if display margins are not
10406 really changed. Otherwise, call adjust_window_margins to ensure
10407 the text area doesn't get too narrow. This fixes a bug which
f9711de4 10408 could cause Emacs to trap if setting display margins wider than
0416870b
KS
10409 the width of the window.
10410 (Fset_window_fringes): New defun to allow user to specifically set
10411 this window's fringe widths and position vs. display margins.
cab27d04 10412 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
10413 (Fset_window_scroll_bars): New defun to allow user to specifically
10414 set this window's scroll bar width and position.
10415 (Fwindow_scroll_bars): New defun to return window's actual scroll
10416 bar settings.
10417 (compare_window_configurations): Also compare display margins,
10418 fringes, and scroll bar settings.
10419 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
10420
10421 * xdisp.c: Make (many) trivial substitutions for renamed and
10422 new macros in dispextern.h, frame.h and window.h.
10423 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 10424 and new fringe vs. display margin position. Note that returned
0416870b
KS
10425 value is no longer guaranteed to be a whole multiple of the frame
10426 column width, since per-window fringes may now be any width.
10427 (window_box_left_offset): New function like window_box_left, but
10428 value is relative to left border of window (rather than frame).
10429 (window_box_right_offset): New function like window_box_right,
10430 but value is relative to left border of window.
10431 (window_box_left): Adapt to per-window fringes and scroll bars,
10432 and new fringe vs. display margin position. Simplify by using
10433 WINDOW_LEFT_EDGE_X and window_box_left_offset.
10434 (window_box): Allow null args for unnecessary return values;
10435 change/simplify relevant callers.
10436 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
10437 and new fringe vs. display margin position.
10438 Use window_box_left_offset and window_box_right_offset
0416870b 10439 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
10440 scroll bars, and new fringe vs. display margin position.
10441 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
10442 (draw_fringe_bitmap): Rework to handle per-window fringes and new
10443 fringe vs. display margin position.
10444 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
10445 (redisplay_window): Adapt to per-window scroll bars.
10446 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
10447 bars, and new fringe vs. display margin position.
10448 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 10449 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
10450 bars, and new fringe vs. display margin position. Fix bug which
10451 increased total width of full_width rows by width of scroll bars
10452 although window's total width already includes that.
10453 (x_fix_overlapping_area): Simplify using window_box_left_offset.
10454 (expose_area): Simplify using window_box_left_offset.
10455 (x_draw_vertical_border): Handle per-window scroll bar settings,
10456 mixing windows with left, right and no scroll bars.
10457
10458 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
10459 where it's used in x_list_fonts (for clarity).
10460 (frame_update_line_height): Remove unused function; functionality
10461 is now done directly when setting the default font in x_set_font.
10462
10463 * xfns.c: Make (many) trivial substitutions for renamed and
10464 new macros in dispextern.h, frame.h and window.h.
10465
10466 * xmenu.c: Make (some) trivial substitutions for renamed and
10467 new macros in dispextern.h, frame.h and window.h.
10468
10469 * xterm.h (struct x_output): Move members left_pos, top_pos,
10470 border_width, pixel_height, pixel_width, line_height,
10471 internal_border_width, vertical_scroll_bar_extra,
10472 left_fringe_width, right_fringe_width, fringe_cols,
10473 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10474 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10475 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10476 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10477 (PIXEL_WIDTH, PIXEL_HEIGHT)
10478 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10479 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10480 frame.h and renamed [see frame.h changes].
10481 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10482 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10483 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10484 and renamed [see frame.h changes].
9018a88e 10485
0416870b
KS
10486 * xterm.c: Make (several) trivial substitutions for renamed and
10487 new macros in dispextern.h, frame.h and window.h.
cab27d04 10488 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10489 (scroll_run): Adapt to new fringe position.
10490 (glyph_rect): Use window coordinates returned from
10491 window_from_coordinates rather than frame_to_window_pixel_xy.
10492 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10493 scroll-bars.
10494 (handle_one_xevent): Simplify a USE_GTK conditional.
10495 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10496 (fringes are now inside margins, i.e. always in the clipping area).
10497 All callers changed.
10498 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10499 directly, then call compute_fringe_widths. Don't call
10500 frame_update_line_height.
10501
10502 * w32term.h (struct w32_output): Move members left_pos, top_pos,
10503 border_width, pixel_height, pixel_width, line_height,
10504 internal_border_width, vertical_scroll_bar_extra,
10505 left_fringe_width, right_fringe_width, fringe_cols,
10506 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10507 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10508 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10509 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10510 (PIXEL_WIDTH, PIXEL_HEIGHT)
10511 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10512 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10513 frame.h and renamed [see frame.h changes].
10514 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10515 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10516 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10517 and renamed [see frame.h changes].
9018a88e 10518
0416870b
KS
10519 * w32term.c: Make (several) trivial substitutions for renamed and
10520 new macros in dispextern.h, frame.h and window.h.
cab27d04 10521 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10522 (glyph_rect): Use window coordinates returned from
10523 window_from_coordinates rather than frame_to_window_pixel_xy.
10524 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10525 scroll-bars.
10526 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
10527 (fringes are now inside margins, i.e. always in the clipping area).
10528 All callers changed.
10529 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10530 directly, then call compute_fringe_widths. Don't call
10531 frame_update_line_height.
10532
10533 * w32console.c: Make (few) trivial substitutions for renamed and
10534 new macros in dispextern.h, frame.h and window.h.
10535
10536 * w32fns.c: Make (many) trivial substitutions for renamed and
10537 new macros in dispextern.h, frame.h and window.h.
10538
10539 * w32menu.c: Make (few) trivial substitutions for renamed and
10540 new macros in dispextern.h, frame.h and window.h.
10541
10542 * macterm.h (struct mac_output): Move members left_pos, top_pos,
10543 border_width, pixel_height, pixel_width, line_height,
10544 internal_border_width, vertical_scroll_bar_extra,
10545 left_fringe_width, right_fringe_width, fringe_cols,
10546 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10547 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
10548 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10549 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10550 (PIXEL_WIDTH, PIXEL_HEIGHT)
10551 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10552 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10553 frame.h and renamed [see frame.h changes].
10554 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10555 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10556 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10557 and renamed [see frame.h changes].
9018a88e 10558
0416870b
KS
10559 * macterm.c: Make (several) trivial substitutions for renamed and
10560 new macros in dispextern.h, frame.h and window.h.
cab27d04 10561 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10562 (glyph_rect): Use window coordinates returned from
10563 window_from_coordinates rather than frame_to_window_pixel_xy.
10564 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10565 scroll-bars.
10566 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10567 (fringes are now inside margins, i.e. always in the clipping area).
10568 All callers changed.
10569 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10570 directly, then call compute_fringe_widths. Don't call
10571 frame_update_line_height.
10572
10573 * macfns.c: Make (several) trivial substitutions for renamed and
10574 new macros in dispextern.h, frame.h and window.h.
9018a88e 10575 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
10576
10577 * macmenu.c: Make (few) trivial substitutions for renamed and
10578 new macros in dispextern.h, frame.h and window.h.
10579
10580 * msdos.h (struct x_output): Remove members left_pos, top_pos,
10581 and line_height, and use corresponding new members in struct
10582 frame. All uses changed.
10583 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
10584 superseeded by corresponding macros in frame.h.
10585
10586 * msdos.c: Make (several) trivial substitutions for renamed and
10587 new macros in dispextern.h, frame.h and window.h.
10588 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 10589 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
10590 (internal_terminal_init): No need to initialize line_height here;
10591 it now defaults to 1.
10592
9018a88e
SM
105932003-05-24 Stefan Monnier <monnier@cs.yale.edu>
10594
10595 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
10596 dropping `down' events.
10597
016bd3c0
AS
105982003-05-24 Andreas Schwab <schwab@suse.de>
10599
10600 * coding.c (find_safe_codings): Fix last change.
10601
4dacadcc
TTN
106022003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
10603
10604 * xfns.c (x_window): Fix typo from 2003-05-21 change.
10605
319830ce
SM
106062003-05-23 Stefan Monnier <monnier@cs.yale.edu>
10607
9018a88e
SM
10608 * xdisp.c (display_mode_element): Increase max depth.
10609 Simplify the error handling code. Use a different error string
10610 for the case where we hit the depth limit.
10611
319830ce
SM
10612 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
10613
10614 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
10615
106162003-05-21 Stefan Monnier <monnier@cs.yale.edu>
10617
10618 * intervals.c (get_local_map): Don't get char-property of previous
10619 point any more: get_pos_property already does it and better.
10620
c67de8ba
DL
106212003-05-21 Dave Love <fx@gnu.org>
10622
10623 [Merged from unicode branch.]
10624
10625 * xfns.c (x_window, x_window): Use use_xim.
10626
10627 * xterm.c (use_xim): Initialize.
10628 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10629 (x_term_init): Maybe set use_xim.
10630
10631 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10632
edd3ff1d
JR
106332003-05-21 Jason Rumney <jasonr@gnu.org>
10634
10635 * unexw32.c (_start): Remove _fmode initialization.
10636
10637 * emacs.c (main) [WINDOWSNT]: Move it here.
10638
463f55ee
DL
106392003-05-20 Dave Love <fx@gnu.org>
10640
10641 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
10642
af253914
RS
106432003-05-19 Richard M. Stallman <rms@gnu.org>
10644
10645 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
10646 as value for QCfont attribute.
10647 (realize_default_face): lface should already exist; crash if not.
10648 Specify 0 for FORCE_P when calling set_lface_from_font_name.
10649
10650 * frame.c (Fignore_event): Doc fix.
10651
1d211019
KH
106522003-05-19 Kenichi Handa <handa@m17n.org>
10653
10654 * coding.c (decode_coding_string): Handle post-read-conversion
10655 even if the coding doesn't require decoding.
10656
4dd68254
RS
106572003-05-18 Richard M. Stallman <rms@gnu.org>
10658
10659 * callproc.c (Fcall_process_region): Doc fix.
10660
14d87dc9
SM
106612003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10662
deca5d96
SM
10663 * lread.c (Fload): Print a message if package is obsolete.
10664
14d87dc9
SM
10665 * window.c (Fselect_window): Add optional `norecord' arg.
10666 (select_window_1): Fold into Fselect_window.
10667 (select_window_norecord): New function.
10668 (temp_output_buffer_show): Use it. Preserve current buffer.
10669
10670 * window.h (Fselect_window): Update declaration.
10671
10672 * window.c (delete_window, Fother_window, Fset_window_configuration):
10673 * minibuf.c (read_minibuf):
10674 * macterm.c (x_new_focus_frame):
10675 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
10676 * callint.c (Fcall_interactively):
10677 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
10678
10679 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
10680
78f52183
DK
106812003-05-17 David Kastrup <dak@gnu.org>
10682
10683 * process.c (read_process_output): Back out change from 2003-03-09.
10684
14d87dc9
SM
106852003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10686
10687 * editfns.c (get_pos_property): Don't assume that `object' = nil.
10688
10689 * textprop.c (text_property_stickiness): New arg `buffer'.
10690
10691 * intervals.h (text_property_stickiness): New arg `buffer'.
10692 (get_pos_property): Declare.
10693
10694 * intervals.c (get_local_map): Use get_pos_property, to obey
10695 stickiness and empty overlays.
10696 (create_root_interval, graft_intervals_into_buffer): Use BEG.
10697 (merge_properties, intervals_equal, merge_properties_sticky):
10698 Use XCAR, XCDR.
10699 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
10700
1fd1cc2f
RS
107012003-05-17 Richard M. Stallman <rms@gnu.org>
10702
4f9f637a
RS
10703 * minibuf.c (read_minibuf): If buffer is empty, record the default
10704 in the history.
10705 (Fminibuffer_complete_word): When deleting the overlap, take account
10706 of its real position.
10707
10708 * fns.c (map_char_table): Fix previous change.
10709
1fd1cc2f
RS
10710 * syntax.c (find_defun_start):
10711 When open_paren_in_column_0_is_defun_start,
10712 return beginning of buffer.
10713
10714 * lisp.h (map_char_table): Declare added arg.
10715
10716 * fns.c (map_char_table): New arg TABLE gets the master table.
10717 All calls changed.
10718 Process default and inheritance, resorting to Faref if necessary.
10719
10720 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10721 (Faccessible_keymaps): Pass new arg to map_char_table.
10722
10723 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
10724
10725 * casetab.c (set_case_table): Pass new arg to map_char_table.
10726
10727 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
10728
10729 * lisp.h (specbinding_func): New typedef.
10730 (struct specbinding): Use specbinding_func, to put the `volatile'
10731 in the right place.
10732
10733 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
10734 to avoid GCC warning.
14d87dc9 10735
b6189c3b 107362003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 10737
14d87dc9 10738 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 10739
35fb885d
SM
107402003-05-15 Stefan Monnier <monnier@cs.yale.edu>
10741
10742 * keyboard.c (apply_modifiers): Don't fill the other cache.
10743
9a274fbd
SM
107442003-05-14 Stefan Monnier <monnier@cs.yale.edu>
10745
c55b5fad
SM
10746 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
10747
9a274fbd
SM
10748 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
10749 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
10750 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
10751 (Fset_window_configuration, Fcurrent_window_configuration)
10752 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
10753 (Fpos_visible_in_window_p, mark_window_cursors_off)
10754 (window_internal_height, window_internal_width, Frecenter)
10755 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
10756 (replace_buffer_in_all_windows, init_window_once, init_window)
10757 (syms_of_window, keys_of_window): Move from lisp.h.
10758 * lisp.h: Move window.c declarations to window.h.
10759
10760 * bytecode.c: Include window.h.
10761 * emacs.c: Include window.h.
10762
14d87dc9 10763 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
10764 (keyremap): Add `parent' field.
10765 (keyremap_step): Use it. Remove `parent' argument.
10766 (read_key_sequence): Setup and use the new `parent' field.
10767
fd93e331
SM
107682003-05-11 Stefan Monnier <monnier@cs.yale.edu>
10769
10770 * keyboard.c (adjust_point_for_property): Ensure termination.
10771
1c4001a1
SM
107722003-05-10 Stefan Monnier <monnier@cs.yale.edu>
10773
10774 * keyboard.c (follow_key): Remove dead variable `did_meta'.
10775 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
10776 duplicated handling of function-key-map and key-translation-map
10777 in read_key_sequence.
10778 (read_key_sequence): Use them.
10779
10780 * keyboard.c (adjust_point_for_property): Try harder to move point
10781 to the non-sticky end of an invisible property.
10782
10783 * xdisp.c (single_display_prop_intangible_p): Make `space' display
10784 property intangible as well.
10785
780379b1
AS
107862003-05-10 Andreas Schwab <schwab@suse.de>
10787
10788 * xmenu.c (single_menu_item): Change last parameter to void* to
10789 avoid warning.
10790
ca2de342
RS
107912003-05-09 Richard M. Stallman <rms@gnu.org>
10792
10793 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
10794 Bind Qinhibit_modification_hooks to t so there will be no GC.
10795 Rename local `tem' to `save_deactivate_mark'.
10796
10797 * eval.c (specpdl_ptr): Declare volatile.
10798 (unbind_to): Copy the whole binding and decrement specpdl_ptr
10799 before doing the work of unbinding it.
10800
10801 * lisp.h (struct specbinding): Declare elements volatile.
10802 (specpdl_ptr): Declare volatile.
10803
10804 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
10805
10806 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
10807 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
10808
347003be
DL
108092003-05-08 Dave Love <fx@gnu.org>
10810
10811 * coding.c (Vlast_coding_system_used): Doc fix.
10812
5adcec23
JR
108132003-05-07 Jason Rumney <jasonr@gnu.org>
10814
10815 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
10816 when system does not support them.
10817
5fe3b8a4
SM
108182003-05-05 Stefan Monnier <monnier@cs.yale.edu>
10819
10820 * fileio.c (Qwrite_region_annotate_functions): New var.
10821 (build_annotations): Use it to process the global part of the hook.
10822 (syms_of_fileio): Init and staticpro it.
10823
10824 * keyboard.c (safe_run_hooks_error): Display a message instead of
10825 silently ignoring the error.
10826
108272003-05-03 Stefan Monnier <monnier@cs.yale.edu>
10828
10829 * keyboard.c (input_available_signal): Mark static.
10830 (menu_bar_items): Use map_keymap.
10831 (menu_bar_one_keymap): Remove.
10832 (menu_bar_item): Adjust arglist (for use in map_keymap).
10833 Properly hide a second binding when not both are keymaps.
10834
10835 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
10836 (single_keymap_panes): Use it and map_keymap.
10837 (single_menu_item): Use skp as well.
10838
10839 * keymap.h (map_keymap_function_t): New type.
10840 (map_keymap): Declare.
10841
10842 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
10843 (map_keymap_call, Fmap_keymap): New functions.
10844 (syms_of_keymap): Defsubr map-keymap.
10845
4b1b4443
JD
108462003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10847
10848 * gtkutil.c (create_dialog, make_widget_for_menu_item)
10849 (make_menu_item, create_menus, xg_update_menu_item): Don't call
10850 ..._with_mnemonic functions for menu items.
10851
1f816871
KH
108522003-05-01 Kenichi Handa <handa@m17n.org>
10853
10854 * coding.c (coding_system_accept_latin_extra_p): Delete this
10855 function.
10856 (find_safe_codings): Pay attention to
10857 the property tranlsation-table-for-encode of each codings.
10858 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
10859
5ed6ba5b
SM
108602003-05-01 Stefan Monnier <monnier@cs.yale.edu>
10861
10862 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
10863
32c06229
SM
108642003-04-30 Stefan Monnier <monnier@cs.yale.edu>
10865
10866 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
10867
10868 * lisp.h (CHECK): Wrap args in parenthesis.
10869 (specbind): Fix doc: symbol = Qnil is not supported any more.
10870
10871 * bytecode.c (Fbyte_code) <unwind-protect>:
10872 Use Fprogn rather than 0 and Qnil.
10873
10874 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
10875 `double', and `triple' modifiers as well.
10876
ed3c3314
RS
108772003-04-30 Richard M. Stallman <rms@gnu.org>
10878
10879 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
10880
10881 * alloc.c (abort_on_gc): New variable.
10882 (Fgarbage_collect): Abort if abort_on_gc is set.
10883
10884 * lisp.h (abort_on_gc): Add decl.
10885
10886 * eval.c (Fsignal): Clear abort_on_gc.
10887
10888 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 10889 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
10890
10891 * xdisp.c (move_it_vertically_backward): Do the final big else
10892 even if nlines is 0.
10893
10894 * xdisp.c (redisplay_internal): Finish the per-frame loop
10895 even if redisplay is suspended by input.
10896
0b325c12
AC
108972003-04-24 Andrew Choi <akochoi@shaw.ca>
10898
10899 * macterm.c (x_list_fonts): Return all fonts that match if
10900 maxnames = -1.
10901
4e837cd0
KH
109022003-04-25 Kenichi Handa <handa@m17n.org>
10903
10904 * syntax.c (skip_chars): Fix previous change.
10905
9af7511a
KH
109062003-04-24 Kenichi Handa <handa@m17n.org>
10907
10908 * syntax.c (skip_chars): Make the code faster by using the common
10909 technique of *p, *stop, and *endp.
10910
e3b2c21f
JD
109112003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10912
10913 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 10914 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
10915 being updated.
10916
32c06229
SM
109172003-04-19 Stefan Monnier <monnier@cs.yale.edu>
10918
10919 * eval.c (Fapply): Undo last change and add a comment about why.
10920
c6464167
MB
109212003-04-18 Miles Bader <miles@gnu.org>
10922
10923 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
10924 pickier PARSE_MULTIBYTE_SEQ.
10925
e509f168
SM
109262003-04-17 Stefan Monnier <monnier@cs.yale.edu>
10927
10928 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
10929 Use XCDR, XCAR, CONSP.
10930 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
10931 (Fapply): Remove unnecessary GCPRO.
10932
10933 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
10934
10935 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
10936
10937 * buffer.h: Don't hardcode BEG==1.
10938
10939 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
10940
5ceea398
RS
109412003-04-16 Richard M. Stallman <rms@gnu.org>
10942
10943 * xdisp.c (try_window, try_window_reusing_current_matrix):
10944 When at end of window, set window_end_pos to Z-ZV.
10945
10946 * buffer.c (Foverlay_recenter): Doc fix.
10947
e509f168
SM
109482003-04-14 Stefan Monnier <monnier@cs.yale.edu>
10949
10950 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
10951
d243e605
AC
109522003-04-14 Andrew Choi <akochoi@shaw.ca>
10953
10954 * macterm.c (mac_check_for_quit_char): Don't check more often than
10955 once a second.
10956
6901b111
SM
109572003-04-11 Stefan Monnier <monnier@cs.yale.edu>
10958
10959 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
10960 specially, so that they can't hide an implicit switch-frame event.
10961 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
10962 (head_table): Use switch-frame as event_kind for select-window.
10963 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
10964
10965 * editfns.c (Fformat): Lisp_Object/int mixup.
10966 (format2): Remove unused var numargs.
10967
e301806f 109682003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 10969
6901b111 10970 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
10971 (Qafter_insert_file_set_coding): New variable.
10972 (syms_of_fileio): Initialize and staticpro it. Delete declaration
10973 for after-insert-file-adjust-coding-function.
10974 (Finsert_file_contents): Call Qafter_insert_file_set_coding
10975 instead of Vafter_insert_file_adjust_coding_function.
10976
38914424
KH
109772003-04-11 Kenichi Handa <handa@m17n.org>
10978
10979 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
10980
10981 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
10982 string. Callers changed.
10983
109842003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 10985
6901b111 10986 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 10987 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
10988 (Finsert_file_contents):
10989 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
10990 decode-format.
10991
f979dc05
JD
109922003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10993
10994 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
10995 get GtkAdjustment as widget now is a GtkRange.
10996
10997 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
10998 GtkRange to avoid memory leak.
10999
f8c6b4c2 110002003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 11001
50ebc53d
KH
11002 * xfaces.c (Vface_font_rescale_alist): New variable.
11003 (struct font_name): New member rescale_ratio.
11004 (font_rescale_ratio): New function.
6901b111 11005 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
11006 (better_font_p): On comparing point sized, pay attention to
11007 recale_ratio member of fonts.
11008 (build_scalable_font_name): Reflect font->rescale_ratio in the
11009 font name.
6901b111 11010 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 11011
cb98871c
KH
11012 * lread.c (read1): Before calling index, check if the 2nd
11013 arguemnt is in ASCII range.
11014
4773b8ca
RS
110152003-04-08 Richard M. Stallman <rms@gnu.org>
11016
b0ada147
RS
11017 * fileio.c (Ffile_symlink_p): Doc fix.
11018
11019 * editfns.c (Fformat): Translate positions of text properties
11020 in the format string to apply them to the result.
11021
4773b8ca
RS
11022 * fileio.c (Finsert_file_contents): Doc fix.
11023 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11024
110252003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 11026
4773b8ca
RS
11027 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
11028
e8f25745 110292003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 11030
e8f25745
ST
11031 * mac.c (init_mac_osx_environment): Switch libexec and bin so
11032 that self-contained application finds libexec files.
11033
f8c6b4c2 110342003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 11035
6901b111
SM
11036 * coding.c (code_convert_region_unwind):
11037 Set Vlast_coding_system_used to the argument.
2310d84c
KH
11038 (code_convert_region): If post-read-conversion function changed
11039 the value of last-coding-sytem, keep the new value in
11040 coding->symbol so that it won't be overridden.
11041 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
11042 (coding_system_accept_latin_extra_p): New function.
11043 (find_safe_codings): Pay attention to characters registered in
11044 latin-extra-code-table.
2310d84c 11045
39c9a034
TTN
110462003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
11047
11048 * Makefile.in (md5.o): Add missing dependency info.
11049
eb67c5d6
RS
110502003-04-06 Richard M. Stallman <rms@gnu.org>
11051
11052 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
11053
11054 * marker.c (verify_bytepos): New function.
11055
11056 * intervals.c (set_intervals_multibyte_1): When becoming
11057 multibyte, adjust right and left child sizes to a whole set of
11058 characters. If an interval gets zero total-length, delete it.
11059 If an interval consists of just its children, delete one of them.
11060
11061 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
11062 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 11063
52eb0373 11064 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
11065 All calls deleted.
11066 (lisp_malloc): Do the work here directly.
11067
b1f81fc5
JB
110682003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
11069
11070 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
11071 char tables.
11072
110732003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
11074
11075 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
11076 destructively change "%S" to "%s".
11077
774666fb
MB
110782003-04-03 Miles Bader <miles@gnu.org>
11079
11080 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
11081 always set.
11082
19c37f01
DL
110832003-04-01 Dave Love <fx@gnu.org>
11084
11085 * xfns.c (xpm_lookup_color): Grok "opaque".
11086
2f4b24c3
AC
110872003-03-31 Andrew Choi <akochoi@shaw.ca>
11088
11089 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
11090 parent window ID.
11091
11092 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
11093
11094 * macterm.h (struct mac_output): Define x_pixels_diff and
11095 y_pixels_diff.
b1f81fc5 11096
9443fcf6
JB
110972003-03-31 Juanma Barranquero <lektu@terra.es>
11098
11099 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
11100 blockinput.h and files included from it.
11101
e072891b
KS
111022003-03-31 Kim F. Storm <storm@cua.dk>
11103
11104 The following changes consolidates the common code related to
11105 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
11106 files into frame.c.
9443fcf6 11107
e072891b
KS
11108 * frame.c: Include blockinput.h.
11109 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
11110 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
11111 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
11112 related vars here.
11113 (struct frame_parm_table, frame_parms): New table for describing
11114 frame parameters and their associated Q-variable.
11115 The order of the parameters corresponds to the sequence of the
11116 frame_parm_handlers table in redisplay_interface.
11117 (x_fullscreen_move, x_set_frame_parameters)
11118 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
11119 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
11120 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11121 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
11122 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
11123 Generic functions for processing of frame parameters.
11124 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
11125 (display_x_get_resource, x_get_resource_string): Functions for
11126 generic access to X resources.
11127 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
11128 (x_default_parameter, Fx_parse_geometry): Functions for generic
11129 access to frame parameters.
6901b111
SM
11130 (x_figure_window_size): Generic calculation of frame size.
11131 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
11132 (syms_of_frame): Intern and staticpro frame parameter variables.
11133 Defvar_lisp Vx_resource_class and Vx_resource_name here.
11134 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 11135
e072891b
KS
11136 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
11137 parameter related vars defined in frame.c.
11138 (EMACS_CLASS): Define here.
11139 (enum FULLSCREEN_*): Define here.
11140 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
11141 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
11142 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
11143 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
11144 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
11145 (x_set_visibility, x_set_autoraise, x_set_autolower)
11146 (x_set_unsplittable, x_set_vertical_scroll_bars)
11147 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
11148 (x_figure_window_size): Add prototypes.
11149
11150 * dispextern.h (frame_parm_handler): New typedef.
11151 (struct redisplay_interface): New member frame_parm_handlers.
11152 (enum resource_types): Move declaration here.
11153 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
11154 (x_default_parameter): Add prototypes.
11155
11156 * window.c: Remove extern decl for frame parameter vars.
11157 (change_window_heights): New generic function;
11158 replaces x_change_window_heights. All users changed.
11159
11160 * window.h (change_window_heights): Add prototype.
11161
11162 * xfaces.c: Remove extern decl for frame parameter vars.
11163
11164 * xterm.h (EMACS_CLASS): Remove. Use generic define.
11165 (struct w32_display_info): Fix type of xrdb member.
11166 (enum FULLSCREEN_*): Remove.
11167 Remove prototypes for generic functions (in frame.h).
11168
11169 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11170 parameters now defined in frame.h and frame.c.
f63fd14e 11171 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11172 (enum x_frame_parms): Remove (bogus, unused enum).
11173 (check_x_display_info): Make non-static (for frame.c).
11174 (struct x_frame_parm_table, x_frame_parms): Remove.
11175 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11176 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11177 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11178 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11179 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11180 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11181 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11182 Remove. Use generic functions instead.
11183 (enum resource_types): Remove.
11184 (x_set_scroll_bar_default_width): New global function (for frame.c).
11185 (Fx_create_frame): Depend on x_figure_window_size to add space for
11186 toolbar and setup size_hint_flags.
11187 (x_frame_parm_handlers): New table for redisplay_interface.
11188 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 11189
e072891b 11190 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 11191 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11192 (x_redisplay_interface): Add x_frame_parm_handlers member.
11193
11194 * w32gui.h (XrmDatabase): New (dummy) typedef.
11195
11196 * w32term.h (EMACS_CLASS): Remove. Use generic define.
11197 (struct w32_display_info): Fix type of xrdb member.
11198 (enum FULLSCREEN_*): Remove.
11199 (x_fullscreen_adjust): Remove prototype.
11200
11201 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11202 parameters now defined in frame.h and frame.c.
f63fd14e 11203 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11204 (enum x_frame_parms): Remove (bogus, unused enum).
11205 (check_x_display_info): Make non-static (for frame.c).
11206 (struct x_frame_parm_table, x_frame_parms): Remove.
11207 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11208 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11209 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11210 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11211 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11212 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11213 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11214 Remove. Use generic functions instead.
11215 (enum resource_types): Remove.
11216 (x_set_scroll_bar_default_width): New global function (for frame.c).
11217 (Fx_create_frame): Depend on x_figure_window_size to add space for
11218 toolbar and setup size_hint_flags.
11219 (w32_frame_parm_handlers): New table for redisplay_interface.
11220 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 11221
e072891b 11222 * w32term.c: Remove unnecessary extern declarations.
52eb0373 11223 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11224 (x_redisplay_interface): Add w32_frame_parm_handlers member.
11225
11226 * w32reg.c (x_get_string_resource): Use XrmDatabase.
11227
11228 * macgui.h (XrmDatabase): New (dummy) typedef.
11229
11230 * macterm.h (EMACS_CLASS): Remove.
11231 (struct mac_display_info): Add xrdb member.
11232 (struct mac_output): Add want_fullscreen member.
11233
11234 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11235 parameters now defined in frame.h and frame.c.
f63fd14e 11236 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11237 (check_x_display_info): Make non-static (for frame.c).
11238 (struct x_frame_parm_table, x_frame_parms): Remove.
11239 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11240 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11241 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11242 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11243 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11244 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11245 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11246 Remove. Use generic functions instead.
11247 (enum resource_types): Remove.
11248 (x_set_scroll_bar_default_width): New global function (for frame.c).
11249 (mac_frame_parm_handlers): New table for redisplay_interface.
11250 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 11251
e072891b
KS
11252 * macterm.c: Remove unnecessary extern declarations.
11253 (x_redisplay_interface): Add mac_frame_parm_handlers member.
11254
3e6a560b
KS
11255 * Makefile.in (frame.o): Add dependency on blockinput.h and files
11256 included from it (atimer.h and systime.h).
11257
7b7b454e
AS
112582003-03-30 Andreas Schwab <schwab@suse.de>
11259
11260 * xdisp.c (x_insert_glyphs): Fix swapped width and height
11261 parameters for shift_glyphs_for_insert.
11262
11263 * macterm.c (x_redisplay_interface): Add missing entry for
11264 draw_vertical_window_border.
11265
beb402de
KG
112662003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11267
11268 * fileio.c (Fexpand_file_name): In the no-handler case, after
11269 expanding, look again for a handler and invoke it. This is needed
11270 for filenames like "/foo/../user@host:/bar/../baz" -- the first
11271 expansion produces "/user@host:/bar/../baz" which needs to be
11272 expanded again for the finame result "/user@host:/baz".
11273
b676f356
JD
112742003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11275
11276 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
11277 of area to be redrawn for better performance.
11278
3c671a56
SM
112792003-03-28 Stefan Monnier <monnier@cs.yale.edu>
11280
11281 * xterm.c (take_vertical_position_into_account): Remove.
11282 (xt_action_hook): Call set_vertical_scroll_bar if needed.
11283 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
11284 (xm_scroll_callback, x_create_toolkit_scroll_bar)
11285 (x_set_toolkit_scroll_bar_thumb): Simplify.
11286 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
11287 (XTread_socket): Remove unused var.
11288 (x_make_frame_invisible): Replace goto with else.
11289
11290 * xdisp.c (set_vertical_scroll_bar): New fun.
11291 (redisplay_window): Use it.
11292
84f2e615
RS
112932003-03-26 Richard M. Stallman <rms@gnu.org>
11294
11295 * xdisp.c (update_tool_bar): Recompute tool bar if
11296 update_mode_lines is set. Set w->update_mode_line
11297 only if the tool bar contents actually change.
11298 (update_menu_bar): Undo previous change.
11299
70b6104c
JD
113002003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11301
5fd6f727
JD
11302 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
11303 (xg_frame_set_char_size): Calculate scroll bar width before frame
11304 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
11305 (xg_separator_p): Check for all documented separator types.
11306 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
11307 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
11308
70b6104c
JD
11309 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
11310 so tool bar gets updated.
11311
d9b36d19
SM
113122003-03-26 Stefan Monnier <monnier@cs.yale.edu>
11313
11314 * data.c (store_symval_forwarding): Re-instate part of the code
11315 that was deleted with too much enthusiasm.
11316
113172003-03-25 Stefan Monnier <monnier@cs.yale.edu>
11318
11319 * data.c (store_symval_forwarding): Delete special read-only
11320 hack for type == -1, since we now use ->constant instead.
11321 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
11322
11323 * buffer.c (overlays_in): Declare static.
11324 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
11325 `constant' field rather than the variable's `type' field.
11326
365fa1b3
AC
113272003-03-24 Andrew Choi <akochoi@shaw.ca>
11328
11329 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
11330
11331 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
11332
11333 * fns.c [MAC_OSX]: Do not redefine vector.
11334
11335 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
11336
11337 * macgui.h: Remove definition of No_Cursor.
11338
d9b36d19 11339 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
11340
11341 * xdisp.c: Define No_Cursor.
11342 (x_write_glyphs, notice_overwritten_cursor)
11343 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
11344 (note_mouse_highlight): Remove Mac-specific code.
11345 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 11346
c0bcce6f
JPW
113472003-03-24 John Paul Wallington <jpw@gnu.org>
11348
11349 * xdisp.c (redisplay_window): If mini window's buffer is not
11350 empty, then redisplay it like other windows.
11351
a526b96c
KS
113522003-03-23 Kim F. Storm <storm@cua.dk>
11353
11354 * w32term.c (w32_draw_window_cursor): Fix last change.
11355
37ab321e
KH
113562003-03-23 Kenichi Handa <handa@m17n.org>
11357
a526b96c
KS
11358 * alloc.c (make_string_from_bytes, make_specified_string):
11359 Add `const' for the arg CONTENTS.
37ab321e
KH
11360
11361 * lisp.h (make_string_from_bytes, make_specified_string):
11362 Prototypes adjusted.
11363
7863d625
JD
113642003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11365
a526b96c 11366 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 11367
7863d625
JD
11368 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
11369 (XG_SB_RANGE): New define.
11370
11371 * gtkutil.c (xg_fixed_handle_expose): New function.
11372 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
11373 expose events.
11374 (xg_update_scrollbar_pos): Take two more arguments, left and width
11375 of scroll bar including borders.
11376 Clear left and right part outside scroll bar separately as some
11377 themes have bars that are not an even number of pixels.
d9b36d19 11378 Don't set reallocate_redraws, don't call
7863d625
JD
11379 gdk_window_process_all_updates.
11380 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
11381 so no need to change it. Calculate size and value with XG_SB_RANGE.
11382
d9b36d19
SM
11383 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
11384 Pass left and width of scroll bar including borders to
7863d625
JD
11385 xg_update_scrollbar_pos.
11386
af0ad939
TTN
113872003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
11388
11389 * Makefile.in: Make sure space precedes end-of-line backslashes.
11390
b22139fd
KS
113912003-03-22 Kim F. Storm <storm@cua.dk>
11392
11393 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
11394 Add generic versions here. Remove system specific versions
11395 defined elsewhere.
11396
11397 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
11398 Add prototypes.
11399
6e6410cf
KS
11400 * xterm.h (STORE_NATIVE_RECT): New macro.
11401
5c9cc435
KS
114022003-03-21 Kim F. Storm <storm@cua.dk>
11403
00c64fab
SM
11404 * xdisp.c (get_glyph_string_clip_rect):
11405 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
11406
11407 * dispextern.h (struct redisplay_interface): Add active_p
11408 argument to draw_window_cursor member. All uses changed.
11409
acd37560
KS
114102003-03-21 Kim F. Storm <storm@cua.dk>
11411
11412 The following changes consolidate code related to writing and
11413 inserting glyphs, exposing frame, the tool bar, the mouse face,
11414 the output cursor, and help echo from xterm.c, w32term.c and
11415 macterm.c into xdisp.c. It also generalizes the use of the
11416 window_part enum instead of using numeric values throughout.
af0ad939 11417
acd37560
KS
11418 * xdisp.c: Consolidate gui-independent code here.
11419 Include keymap.h.
11420 (Qhelp_echo): Import.
11421 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
11422 (help_echo_string, help_echo_window, help_echo_object)
11423 (previous_help_echo_string, help_echo_pos): Declare here.
11424 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
11425 (estimate_mode_line_height): Define here. Handle windowing
11426 systems directly (without using estimate_mode_line_height_hook).
11427 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
11428 (update_window_cursor, update_cursor_in_window_tree)
11429 (fast_find_position, fast_find_string_pos)
11430 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
11431 (expose_area, expose_line, expose_overlaps, expose_window)
11432 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
11433 declared static as they are only used locally in xdisp.c.
11434 (draw_glyphs): Rename from x_draw_glyphs and make static.
11435 (tool_bar_item_info, notice_overwritten_cursor): Make static.
11436 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11437 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 11438 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
11439 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11440 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
11441 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
11442 (note_mouse_highlight, x_clear_window_mouse_face)
11443 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
11444 (x_intersect_rectangles): New generic functions for use by xdisp.c
11445 and GUI front-ends.
11446 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
11447 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
11448
11449 * dispextern.h (Display_Info): Generic typedef for *_display_info.
11450 (NativeRectangle): Generic typedef for rectangle type.
11451 (enum window_part): Move here from window.c.
11452 (struct redisplay_interface): New members flush_display_optional,
11453 define_frame_cursor, clear_frame_area, draw_window_cursor,
11454 draw_vertical_window_border, shift_glyphs_for_insert.
11455 Rename member clear_mouse_face to clear_window_mouse_face.
11456 (estimate_mode_line_height_hook): Remove hook.
11457 (auto_raise_tool_bar_buttons_p): Don't declare extern.
11458 (tool_bar_item_info): Remove prototype.
11459 (help_echo_string, help_echo_window, help_echo_object)
11460 (previous_help_echo_string, help_echo_pos)
11461 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
11462 (x_stretch_cursor_p, output_cursor): Declare extern.
11463 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
11464 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
11465 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11466 (display_and_set_cursor, set_output_cursor, x_cursor_to)
11467 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
11468 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11469 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
11470 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
11471 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
11472 Add prototypes.
11473 (mode_line_string, marginal_area_string): Fix prototypes.
11474
11475 * window.c (enum window_part): Move to dispextern.h.
11476 (coordinates_in_window): Use enum window_part member names
11477 instead of numbers to describe return value.
11478 (struct check_window_data): Change part member to window_part.
11479 (check_window_containing): Return window_part unaltered.
11480 (window_from_coordinates): Change part arg from int to enum
11481 window_part. Allow part arg to be null. All users changed.
11482
11483 * window.h (window_from_coordinates): Fix prototype.
11484
11485 * term.c (estimate_mode_line_height): Move to xdisp.c.
11486
11487 * keyboard.c (make_lispy_event): Use enum window_part.
11488
11489 * dispnew.c (mode_line_string, marginal_area_string): Use enum
11490 window_part instead of int in arg list. Users changed.
11491
11492 * xterm.h (No_Cursor): Declare as None for X.
11493 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 11494
acd37560
KS
11495 * xterm.c: Remove consolidated defines and code.
11496 (BETWEEN): Remove unused macro.
11497 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
11498 (x_define_frame_cursor, x_clear_frame_area)
11499 (x_draw_window_cursor): New X-specific functions for RIF.
11500 (x_redisplay_interface): Add new members.
11501
11502 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
11503
11504 * w32term.h (struct w32_output): Remove cross_cursor member.
11505
11506 * w32term.c: Remove consolidated defines and code.
11507 (BETWEEN): Remove unused macro.
11508 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
11509 (w32_define_frame_cursor, w32_clear_frame_area)
11510 (w32_draw_window_cursor): New W32-specific functions for RIF.
11511 (w32_redisplay_interface): Add new members.
11512
a64387ee 11513 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
11514 (XRectangle): Add X compatible rectangle type.
11515 (NativeRectangle): Declare as RECT for W32.
11516 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11517
11518 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
11519
11520 * w32console.c: Remove consolidated defines and code.
af0ad939 11521
acd37560
KS
11522 * msdos.h (Display_Info): Add generic typedef.
11523
11524 * msdos.c: Remove consolidated defines and code.
11525 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
11526
11527 * macterm.h (struct mac_output): Replace member cross_cursor by
11528 hand_cursor.
11529 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
11530
11531 * macterm.c: Remove consolidated defines and code.
11532 (BETWEEN): Remove unused macro.
11533 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
11534 (mac_define_frame_cursor, mac_clear_frame_area)
11535 (mac_draw_window_cursor): New Mac-specific functions for RIF.
11536 (x_redisplay_interface): Add new members.
11537
11538 * macgui.h (No_Cursor): Define as 0 for Mac.
11539 (XRectangle): Add X compatible rectangle type.
11540 (NativeRectangle): Declare as Rect for Mac.
11541 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11542
204ccab1
KS
11543 * macfns.c (x_set_mouse_color): Setup hand_cursor.
11544 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 11545
9443fcf6 11546 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
11547 included from it. Add dependency on keymap.h.
11548
11549 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
11550
8ba01a70 115512003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
11552
11553 * fileio.c (Fexpand_file_name): Fix previous change.
11554
8ba01a70 115552003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
11556
11557 * fileio.c (Ffile_name_directory): Reconstruct file name by
11558 make_specified_string.
11559 (Ffile_name_nondirectory, Ffile_name_as_directory)
11560 (Fdirectory_file_name, Fexpand_file_name)
11561 (Fsubstitute_in_file_name): Likewise.
11562 (Fread_file_name): Compare decoded homedir with DIR and
11563 DEFAULT_FILENAME.
11564
11565 * alloc.c (make_specified_string): If NCHARS is negative, count
11566 the number of characters.
11567
19536747
JD
115682003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11569
de38ae5a
JD
11570 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
11571 all widgets.
11572
19536747
JD
11573 * gtkutil.h: Removed xg_ignore_next_thumb.
11574
37ab321e 115752003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
11576
11577 * coding.c (Vchar_coding_system_table): Remove this variable.
11578 (Vcoding_system_safe_chars): New variable.
11579 (intersection): Remove this function.
11580 (find_safe_codings): Don't use Vchar_coding_system_table, but try
11581 all codings in SAFE_CODINGS.
00c64fab 11582 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
11583 find_safe_codings. Get generic coding systems from
11584 Vcoding_system_safe_chars.
11585 (Fdefine_coding_system_internal): New function.
11586 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
11587 Initialize and staticpro Vcoding_system_safe_chars.
11588
17097258
JD
115892003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11590
2a2071c3
JD
11591 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
11592 equal old values before updating.
11593
17097258
JD
11594 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
11595
11596 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
11597
115982003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11599
11600 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
11601 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
11602 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
11603 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
11604 (xg_create_scroll_bar): Pass bar to button event callback.
11605 (xg_find_top_left_in_fixed): New function.
11606 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
11607 whole scroll bar area. Get old position with
11608 xg_find_top_left_in_fixed, calculate and only clear needed areas.
11609 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
11610 dragging is in progress. Calculate whole as for Motif.
11611 Remove code that saved last values. Call gtk_range functions to
11612 set scroll bar sizes.
11613
11614 * gtkutil.h: Removed xg_ignore_next_thumb.
11615
8cb9dfbf
JB
116162003-03-17 Juanma Barranquero <lektu@terra.es>
11617
11618 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
11619 and files included from it.
11620
00c64fab
SM
116212003-03-18 Stefan Monnier <monnier@cs.yale.edu>
11622
11623 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
11624 multiple occurrences of the same keymap under different prefixes.
11625 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
11626
c45bb3b2
JR
116272003-03-16 Jason Rumney <jasonr@gnu.org>
11628
11629 * w32gui.h: Use HDC for Display.
11630
11631 * w32term.c (w32_encode_char): Prevent double-byte chars from
11632 crashing Emacs.
11633
11634 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
11635 as binary.
11636
2a6d0874
JB
116372003-03-16 Juanma Barranquero <lektu@terra.es>
11638
11639 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
11640
03eb5fab
KS
116412003-03-16 Kim F. Storm <storm@cua.dk>
11642
11643 The following changes consolidate some of the gui-independent
11644 parts of the processing and drawing of "glyph strings" from
11645 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 11646
03eb5fab
KS
11647 * dispextern.h (struct glyph): Reduce face_id member from 22 to
11648 21 bits (this reduces number of faces from 4M to 2M).
11649 Replace W32 specific w32_font_type member (2 bits) by generic
11650 font_type member (3 bits) for portability.
11651 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
11652 (enum draw_glyphs_face): Define here.
11653 (struct glyph_string): Define here. Merge W32 and X versions.
11654 (struct redisplay_interface): New members per_char_metric,
11655 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
11656 (VCENTER_BASELINE_OFFSET): Define here.
11657 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
11658 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
11659
11660 * xdisp.c: Consolidate gui-independent "glyph string" code here.
11661 (dump_glyph_string): Moved here.
11662 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
11663 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
11664 (fill_composite_glyph_string, fill_glyph_string)
11665 (fill_image_glyph_string, fill_stretch_glyph_string)
11666 (left_overwritten, left_overwriting, right_overwritten)
11667 (right_overwriting, get_char_face_and_encoding)
11668 (set_glyph_string_background_width, compute_overhangs_and_x)
11669 (append_glyph, append_composite_glyph, produce_image_glyph)
11670 (take_vertical_position_into_account, append_stretch_glyph)
11671 (produce_stretch_glyph): New generic functions (based on X version).
11672 Call platform specific functions through rif.
11673 (INIT_GLYPH_STRING): New macro, hides W32 details.
11674 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
11675 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
11676 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
11677 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
11678 (notice_overwritten_cursor):
11679 Generic functions exported to platform modules. Users changed.
11680
11681 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
11682 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
11683 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 11684 New macros for consolidated code.
2a6d0874 11685
03eb5fab
KS
11686 * xterm.c: Remove consolidated defines and code.
11687 (x_per_char_metric, x_encode_char)
11688 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
11689 (x_redisplay_interface): Add new members.
11690
11691 * w32gui.h (Display): Add dummy typedef for consolidation.
11692 (XChar2b): Define alias for wchar_t for consolidation.
11693 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11694
11695 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 11696 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
11697 New macros for consolidation.
11698
fad49844 11699 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
11700 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
11701 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
11702 (w32_per_char_metric): Change font_type arg to int for RIF.
11703 (w32_encode_char): Return int according to RIF requirements.
11704 (w32_compute_glyph_string_overhangs): Adapt to RIF.
11705 (w32_get_glyph_overhangs): New function for RIF. Uses generic
11706 x_get_glyph_overhangs.
11707 (w32_redisplay_interface): Add new members.
11708
11709 * macgui.h (XChar2b): Move typedef here for consolidation.
11710 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11711
11712 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
11713 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
11714 consolidation.
11715
11716 * macterm.c: Remove consolidated defines and code.
11717 (mac_per_char_metric): New function for RIF.
00c64fab 11718 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
11719 (mac_compute_glyph_string_overhangs): Adapt for RIF.
11720 (x_redisplay_interface): Add new members.
11721
00c64fab
SM
117222003-03-15 Stefan Monnier <monnier@cs.yale.edu>
11723
11724 * keymap.c (Vmenu_events): New var.
11725 (syms_of_keymap): Initialize it.
11726 (where_is_internal): Check more carefully what is a menu event.
11727
225c7a07
RS
117282003-03-14 Richard M. Stallman <rms@gnu.org>
11729
11730 * lread.c (read1): After #!, exit loop on eof.
11731
cea9be54
JD
117322003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11733
9ea0e54d
JD
11734 * gtkutil.h: Add declaration for xg_frame_cleared.
11735
0cb35f4e
JD
11736 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
11737
cea9be54
JD
11738 * gtkutil.c (struct xg_last_sb_pos): New structure.
11739 (handle_fixed_child): New function.
11740 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
11741 and force a redraw on them.
11742 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
11743 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
11744 so we can avoid unneeded redraws.
11745 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
11746 and force a redraw on the scroll bar.
11747 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
11748 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 11749 (xg_frame_cleared): New function.
cea9be54 11750
20b853f3
KH
117512003-03-13 Kenichi Handa <handa@m17n.org>
11752
11753 * coding.c (Fdetect_coding_region): Fix docstring.
11754 (Fdetect_coding_string): Fix docstring.
11755
7a555aff
AS
117562003-03-13 Andreas Schwab <schwab@suse.de>
11757
25cc0080
AS
11758 * gtkutil.c: Add prototype for create_menus.
11759
30225431
AS
11760 * data.c (long_to_cons): Fix type of top.
11761
11762 * xselect.c (selection_data_to_lisp_data): Use int instead of
11763 long for an integer of size 4.
11764
7a555aff 11765 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 11766 (xg_tool_bar_help_callback): Likewise.
7a555aff 11767
a3e4741f
AS
117682003-03-12 Andreas Schwab <schwab@suse.de>
11769
11770 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
11771
9668be7c
KS
117722003-03-12 Kim F. Storm <storm@cua.dk>
11773
03eb5fab 11774 The following changes consolidate the fringe handling from
9668be7c 11775 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 11776
9668be7c
KS
11777 * xdisp.c: Consolidate fringe handling code here.
11778 (left_bits, right_bits, continued_bits, continuation_bits)
11779 (ov_bits, zv_bits): Define fringe bitmaps.
11780 (fringe_bitmaps): New array holding fringe bitmaps.
11781 (draw_fringe_bitmap): Draw a specific bitmap; call display
11782 specific drawing routine via rif->draw_fringe_bitmap.
11783 (draw_row_fringe_bitmaps): Generic replacement for
11784 x_draw_row_fringe_bitmaps; all callers changed.
11785 (compute_fringe_widths): Generic replacement for
11786 x_compute_fringe_widths; all callers changed.
11787
11788 * dispextern.h (enum fringe_bitmap_type): Define here.
11789 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
11790 (fringe_bitmaps): Declare extern.
11791 (struct redisplay_interface): New member draw_fringe_bitmap.
11792 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
11793
11794 * xterm.c: Remove generic fringe code.
11795 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11796 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11797
11798 * w32term.c: Remove generic fringe code.
11799 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
11800 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 11801
9668be7c
KS
11802 * macterm.c: Remove generic fringe code.
11803 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11804 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11805
00a88f32
SM
118062003-03-11 Stefan Monnier <monnier@cs.yale.edu>
11807
11808 * print.c (Fprin1_to_string): Return unibyte string if possible.
11809
1d1de695
DK
118102003-03-09 David Kastrup <dak@gnu.org>
11811
11812 * process.c (read_process_output): We have allocated enough space
11813 for readmax and carryover, so actually use the alloted space.
11814
257f40f2
JD
118152003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11816
11817 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
11818 toolkit scrollbar click.
11819
11820 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
11821 for USE_GTK.
11822 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
11823 also.
1d1c7e75 11824 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 11825 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 11826
78819ebb 11827 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
11828
11829 * gtkutil.c (xg_get_scroll_id_for_window): New function.
11830 (xg_tool_bar_item_expose_callback): New function.
11831 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
11832 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
11833 on the tool bar widget.
11834 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
11835 to expose on the tool bar item widgets.
11836
15213141
JD
118372003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11838
26b74a0b 11839 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 11840 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
11841 deleted from the image cache).
11842
15213141
JD
11843 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
11844 the event isn't for a frame (i.e. for dialogs).
11845
20b853f3 118462003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
11847
11848 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
11849 composition components reaches the limit, terminate composing.
11850 (COMPOSITION_OK): New macro.
00a88f32 11851 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
11852 composition is found.
11853 (coding_restore_composition): Adjust the number of composition
11854 components if it is not sane.
11855
c9029fe5
JB
118562003-03-06 Juanma Barranquero <lektu@terra.es>
11857
11858 * w32term.h (struct w32_display_info): Add xrdb member to support
11859 passing resources via -xrm on Windows.
11860
11861 * w32term.c (w32_make_rdb): New function.
11862 (w32_term_init): Use it to initialize xrdb member of w32_display_info
11863 struct. Delete leftover code.
11864
11865 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
11866 for resources passed on the command line.
11867
11868 * w32reg.c (w32_get_rdb_resource): New function.
11869 (x_get_string_resource): Use it, so resources passed with -xrm
11870 supercede the ones in the registry.
11871
9d00001f
JD
118722003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11873
11874 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
11875 instead of x_top_window_to_frame.
11876
ca2417b9
JD
118772003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11878
11879 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
11880 when restarting Emacs.
11881
5b20caf0
RS
118822003-03-03 Richard M. Stallman <rms@gnu.org>
11883
11884 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
11885 to run kill-buffer-query-functions.
11886 (Qkill_buffer_query_functions): New var.
11887 (syms_of_buffer): Init and staticpro it.
11888
58e91b77
JD
118892003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11890
11891 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
11892
932357b4
KS
118932003-02-25 Kim F. Storm <storm@cua.dk>
11894
11895 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
11896 If centering point failed to make whole line visible and vscroll
11897 is non-zero, disable vscroll and try centering point again.
11898
11899 * lread.c (read1): Accept `single space' syntax like (? x).
11900
bb8db7e1
JD
119012003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11902
11903 * keyboard.c (cancel_hourglass_unwind): Surround with
11904 #ifdef HAVE_X_WINDOWS
11905
47d77aab
KH
119062003-02-25 Kenichi Handa <handa@m17n.org>
11907
11908 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
11909 process only when "subprocesses" is defined.
11910
6a097c0c
SM
119112003-02-24 Stefan Monnier <monnier@cs.yale.edu>
11912
11913 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
11914
0b063c27
JB
119152003-02-24 Juanma Barranquero <lektu@terra.es>
11916
d1135afc
JB
11917 * callint.c (fix_command): Declare as static void and move before
11918 Fcall_interactively.
11919
0b063c27
JB
11920 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
11921 (syms_of_xdisp): Don't initialize Qwhen.
11922
0af912f0
JD
119232003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11924
11925 * keyboard.c (cancel_hourglass_unwind): New function.
11926 (command_loop_1): Cancel hourglass with unwind-protect.
11927
120d0a23
RS
119282003-02-23 Richard M. Stallman <rms@gnu.org>
11929
11930 * callint.c (fix_command): New subroutine, from Fcall_interactively.
11931 Detect (when ... (region-beginning)) etc.
11932 (Fcall_interactively): Call fix_command.
11933 (Qif, Qwhen): New variables.
11934 (syms_of_callint): Init and staticpro them.
0b063c27 11935
120d0a23
RS
11936 * regex.c (print_partial_compiled_pattern): Output to stderr.
11937
4ece81a6
KG
119382003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11939
11940 * dired.c (directory_files_internal): Don't expand directory.
11941 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
11942 instead. From Lars Hansen <larsh@math.ku.dk>.
11943
e52bd6b7
SM
119442003-02-22 Stefan Monnier <monnier@cs.yale.edu>
11945
11946 * fns.c (string_to_multibyte): Remove unused var i.
11947 (Flanginfo): Fix int/Lisp_Object mixup.
11948 (void_call2): New fun.
11949 (Fmap_char_table): Use it in place of call2.
11950
11951 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
11952
11953 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
11954
11955 * keymap.c (copy_keymap_1): Make it static.
11956
11957 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
11958
c33ef7c4
JB
119592003-02-22 David Ponce <david@dponce.com>
11960
11961 * lread.c (Fload): Don't check STRING_MULTIBYTE.
11962
16782258
JD
119632003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11964
11965 * process.h: Removed subtty field from struct Lisp_Process.
11966
11967 * process.c (create_process): Remove setting of subtty.
11968 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
11969 (Fprocess_running_child_p, process_send_signal):
11970 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
11971 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
11972
3abeca61
KG
119732003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11974
11975 * keymap.c (Fdefine_key): Doc fix.
11976
92a8ce63
JB
119772003-02-21 Juanma Barranquero <lektu@terra.es>
11978
11979 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
11980
11981 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
11982 POLLING_PROBLEM_IN_SELECT.
11983
11984 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
11985 Delete #undef of POLLING_PROBLEM_IN_SELECT.
11986
11987 * s/hpux10-20.h: New file.
11988
e52bd6b7
SM
11989 * process.c (wait_reading_process_input):
11990 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 11991
20f1ef2e
KH
119922003-02-20 Kenichi Handa <handa@m17n.org>
11993
32d0a9dc
KH
11994 * fontset.c (check_fontset_name): If NAME is nil, return the
11995 default fontset.
11996 (override_font_info): New function.
e52bd6b7 11997 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
11998 (Ffontset_info): If FONTSET is not the default fontset, merge
11999 FONTSET onto the copy of the default fontset, and work on that
12000 copy. Document that NAME nil means the default fontset.
12001 (Ffontset_font): Document that NAME nil means the default fontset.
12002
20f1ef2e
KH
12003 * process.c (setup_process_coding_systems): If the process's
12004 in/out descriptor is -1, do nothing.
12005
77d1daf2
AS
120062003-02-19 Andreas Schwab <schwab@suse.de>
12007
e52bd6b7
SM
12008 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
12009 Add prototypes.
77d1daf2 12010
f9a45bb3
KH
120112003-02-19 Kenichi Handa <handa@m17n.org>
12012
12013 * xfaces.c (try_alternative_families): Try all scalable fonts if
12014 Vscalable_fonts_allowed is not Qt.
12015
72ecb43c
JD
120162003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12017
12018 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
12019
ee5be7c3
JD
120202003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12021
12022 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
12023 names.
12024
12025 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 12026 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
12027 x_face_list_fonts.
12028 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
12029 (Fx_list_fonts): Set maxnames to -1 to get all font names.
12030
4cd519a7
KS
120312003-02-18 Kim F. Storm <storm@cua.dk>
12032
068f9882
KS
12033 * lread.c (read1): Fix last change.
12034 "`" is not always special. Allow "?" after a character constant.
4cd519a7 12035
7290a344
AC
120362003-02-18 Andrew Choi <akochoi@shaw.ca>
12037
12038 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
12039
1f7fa69b
AS
120402003-02-18 Andreas Schwab <schwab@suse.de>
12041
12042 * window.c (window_scroll_pixel_based): Move outside a
12043 multi-glyph character before setting new window start.
12044
12045 * xdisp.c (in_display_vector_p): New function.
12046 * dispextern.h (in_display_vector_p): Declare.
12047
23e21195
KS
120482003-02-18 Kim F. Storm <storm@cua.dk>
12049
12050 * lread.c (read1): Fix and relax read syntax.
12051 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
12052 Only recognize "," after dotted-pair dot if inside backquote.
12053 Never include "`" or "," (inside backquote) in a symbol.
12054 Allow dotted-pair dot after a character constant.
12055 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 12056
f098b121
JD
120572003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12058
12059 * gtkutil.c (xg_tool_bar_expose_callback): New function.
12060 (xg_create_tool_bar): Force style of tool bar to be horizontal with
12061 icons. Set name of tool bar to emacs-toolbar.
12062 (update_frame_tool_bar): Connect expose event to
12063 xg_tool_bar_expose_callback.
12064
63020c46
RS
120652003-02-17 Richard M. Stallman <rms@gnu.org>
12066
12067 * keyboard.c (this_command_key_count_reset): New variable.
12068 Initiatize to 0 where this_command_key_count is set.
12069 (read_char): Save and restore this_command_key_count_reset
12070 around input method code.
12071 (read_char): If this_command_key_count_reset, echo reread commands.
12072 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
12073
fb4452cc
KH
120742003-02-17 Kenichi Handa <handa@m17n.org>
12075
12076 * fns.c (string_to_multibyte): Always return a multibyte string.
12077
bd11cc09
JR
120782003-02-16 Jason Rumney <jasonr@gnu.org>
12079
e52bd6b7
SM
12080 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
12081 Negative max_fonts parameter means list all.
bd11cc09 12082
4cdf4bde
DL
120832003-02-14 Dave Love <fx@gnu.org>
12084
12085 * fns.c (Flanginfo): Doc fix.
12086
023b93f6
KS
120872003-02-13 Kim F. Storm <storm@cua.dk>
12088
37cd4238
KS
12089 * lread.c (read_escape): Interpret \s as a SPACE character, except
12090 for \s-X in a character constant which still is the super modifier.
12091 (read1): Signal an `invalid read syntax' error if a character
12092 constant is immediately followed by a digit or symbol character.
12093
140a6b7e
KS
12094 * search.c (Fmatch_data): Doc fix. Explicitly state that
12095 match-data is undefined if last search failed.
12096
3419757d 12097 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
12098 All uses changed.
12099
7d5c86e5
JB
121002003-02-12 Juanma Barranquero <lektu@terra.es>
12101
12102 * eval.c (Fdefmacro): Fix typo.
12103
295fff2c
KS
121042003-02-12 Kim F. Storm <storm@cua.dk>
12105
12106 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
12107 macro is a string, convert meta modifiers in string when copying
12108 the string into a vector.
12109
60f3202d
KS
121102003-02-11 Kim F. Storm <storm@cua.dk>
12111
12112 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
12113
61cb0b53
KH
121142003-02-11 Kenichi Handa <handa@m17n.org>
12115
12116 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
12117
7392e23c
KS
121182003-02-10 Kim F. Storm <storm@cua.dk>
12119
12120 * process.c: Doc fixes.
12121 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
12122
ce4254bd
KH
121232003-02-10 Kenichi Handa <handa@m17n.org>
12124
9c7a329a
KH
12125 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
12126
ce4254bd
KH
12127 * process.c (QCfilter_multibyte): New variable.
12128 (setup_process_coding_systems): New function.
e52bd6b7
SM
12129 (Fset_process_buffer, Fset_process_filter):
12130 Call setup_process_coding_systems.
ce4254bd
KH
12131 (Fstart_process): Initialize the member `filter_multibyte' of
12132 struct Lisp_Process.
12133 (create_process): Call setup_process_coding_systems.
12134 (Fmake_network_process): New keyward `:filter-multibyte'.
12135 Initialize the member `filter_multibyte' of struct Lisp_Process.
12136 Call setup_process_coding_systems.
12137 (server_accept_connection): Call setup_process_coding_systems.
12138 (read_process_output): If the process has a filter, decide the
12139 multibyteness of a string to given to the filter by
12140 `filter_multibyte' member of the process. If the process doesn't
12141 have a filter and the result of conversion is unibyte, use
12142 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
12143 multibyte form.
12144 (Fset_process_coding_system): Call setup_process_coding_systems.
12145 (Fset_process_filter_multibyte): New function.
12146 (Fprocess_filter_multibyte_p): New function.
12147 (syms_of_process): Intern and staticpro QCfilter_multibyte.
12148 Defsubr Sset_process_filter_multibyte and
12149 Sprocess_filter_multibyte_p.
12150
12151 * process.h (struct Lisp_Process): New member filter_multibyte.
12152
12153 * lisp.h (setup_process_coding_systems): Add prototype.
12154
12155 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
12156 process, update coding systems for the process.
12157
b08d5f59
KH
121582003-02-09 Kenichi Handa <handa@m17n.org>
12159
12160 * fns.c (string_to_multibyte): New function.
12161 (Fstring_to_multibyte): New function.
12162 (syms_of_fns): Defsubr it.
12163
0dfd93c0
AS
121642003-02-08 Andreas Schwab <schwab@suse.de>
12165
12166 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
12167 instead of the substitution.
12168
7b76ca1c
JD
121692003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12170
12171 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
12172
12173 * xmenu.c (menu_position_func): Adjust menu popup position so that
12174 the menu is fully visible.
7b76ca1c 12175
2436a4e4
JD
121762003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12177
12178 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
12179 (x_make_frame_invisible, x_wm_set_icon_position):
12180 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
12181
12182 * xfns.c (x_set_name, x_set_title): Ditto.
12183
37d1e680
RS
121842003-02-04 Richard M. Stallman <rms@gnu.org>
12185
12186 * keyboard.c (echo_now): Update before_command_echo_length.
12187 (Freset_this_command_lengths): Reset this_command_key_count etc.
12188 immediately rather than arranging to do it later.
12189 (before_command_key_count_1, before_command_echo_length_1)
12190 (before_command_restore_flag): Vars deleted.
12191 (add_command_key): Don't handle before_command_restore_flag.
12192 (read_char, record_menu_key): Don't update before_command_key_count or
12193 before_command_echo_length.
12194 (read_char): Don't handle before_command_restore_flag.
12195
12196 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
12197 in direct-output clauses if it wouldn't be called in the ordinary case.
12198
578846a3
KS
121992003-02-04 Kim F. Storm <storm@cua.dk>
12200
12201 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
12202
49853a4d
JD
122032003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12204
12205 * gtkutil.c (remove_from_container): Copying list is not needed.
12206 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
12207 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
12208 on list returned from gtk_container_get_children to avoid memory leak.
12209
8b53dc06
JR
122102003-02-01 Jason Rumney <jasonr@gnu.org>
12211
5d54d177
JR
12212 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
12213 local malloc.
12214 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
12215 definitions in xpm.h.
12216 (init_xpm_functions): New function.
f63fd14e 12217 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
12218 (init_external_image_libraries): Try to load libXpm.dll.
12219
8b53dc06
JR
12220 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
12221 timestamp.
12222
b222e415
DL
122232003-01-31 Dave Love <fx@gnu.org>
12224
12225 * syntax.c (Fskip_chars_forward)
12226 (open-paren-in-column-0-is-defun-start): Doc fix.
12227
c60ee5e7
JB
122282003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
12229
12230 * fileio.c: Support // at start of name for Cygwin (just added proper
12231 preprocessor tests).
12232
12233 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
12234
12235 * Makefile.in: Use @EXEEXT@ for Cygwin.
12236
12237 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
12238
12239 * s/cygwin.h: Added for Cygwin port.
12240
53b37591
JB
122412003-01-31 Juanma Barranquero <lektu@terra.es>
12242
12243 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
12244 when including gif_lib.h.
fe929957 12245 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
12246 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
12247 Windows. Disable color table lookups. Call library functions
53b37591 12248 through pointers determined at runtime.
fe929957
JB
12249 (init_external_image_libraries): Try to load libungif.dll and
12250 libtiff.dll.
53b37591 12251
45415a8f
KH
122522003-01-31 Kenichi Handa <handa@m17n.org>
12253
12254 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 12255 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 12256
a97e4138
JD
122572003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12258
e52bd6b7 12259 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 12260
6eed9bed
DL
122612003-01-30 Dave Love <fx@gnu.org>
12262
12263 * alloc.c (Vgc_elapsed, gcs_done): New variables.
12264 (Fgarbage_collect): Use them.
12265 (init_alloc, syms_of_alloc): Set them up.
12266
100dcd40
JB
122672003-01-30 Juanma Barranquero <lektu@terra.es>
12268
12269 * w32fns.c (init_external_image_libraries): Add missing operator.
12270
fbd852af
JR
122712003-01-29 Jason Rumney <jasonr@gnu.org>
12272
12273 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
12274 an alternative name for jpeg.dll.
12275
8a2d8020
KH
122762003-01-29 Kenichi Handa <handa@m17n.org>
12277
12278 * xdisp.c (set_cursor_from_row): Pay attention to string display
12279 properties.
12280
058c18c7
AC
122812003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
12282
12283 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
12284 <escape>.
12285 (keycode_to_xkeysym_table): Reformat and add more comments.
12286 (XTread_socket): Drop special case for backspace.
12287
385f11cf
AC
122882003-01-28 Andrew Choi <akochoi@shaw.ca>
12289
12290 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
12291 values in old-style RGB specs.
12292
c922a224
JB
122932003-01-27 Juanma Barranquero <lektu@terra.es>
12294
12295 * w32fns.c (init_external_image_libraries): Try alternate names for the
12296 jpeg dll.
12297
0a1d6de0
JD
122982003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12299
12300 * gtkutil.c (create_dialog, xg_separator_p)
12301 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
12302 before calling strcmp or strlen.
12303
a97e4138 123042003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
12305
12306 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
12307 and handle image load failure.
12308
28908312
JR
123092003-01-26 Jason Rumney <jasonr@gnu.org>
12310
12311 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
12312 New functions.
f63fd14e
JB
12313 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
12314 Disable color table lookups. Call jpeg library functions
28908312
JR
12315 through pointers determined at runtime.
12316 (init_external_image_libraries): Try to load jpeg.dll.
12317
84e47416
RS
123182003-01-25 Richard M. Stallman <rms@gnu.org>
12319
12320 * lisp.h: Declare format2 instead of format1.
12321
12322 * fileio.c (barf_or_query_if_file_exists):
12323 Call format2 instead of format1.
12324
12325 * editfns.c (format2): New function, replaces format1
12326 but takes exactly two Lisp Objects as format args.
12327
12328 * buffer.c (Fkill_buffer): Call format2 instead of format1.
12329
a97e4138 123302003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
12331
12332 * xterm.h: Change to return value of x_dispatch_event to int.
12333
12334 * xterm.c (x_filter_event): New function.
12335 (event_handler_gdk, XTread_socket): Call x_filter_event.
12336 (x_dispatch_event): Change to return value of finish.
12337 (event_handler_gdk): Use return value from x_dispatch_event.
12338
12339 * xfns.c (x_window): Call create_frame_xic for GTK version to
12340 initialize input methods.
12341
12342 * gtkutil.h: Add (void) prototypes.
12343
12344 * gtkutil.c (create_menus): Remove code that puts the help menu to
12345 the right.
12346
54eefef1
JR
123472003-01-25 Jason Rumney <jasonr@gnu.org>
12348
12349 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
12350 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
12351 (png_load): Adjust colors for Windows. Use Windows
12352 bitmaps. Disable color table lookups.
c262430d
JR
12353 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
12354 (init_png_functions): New function.
12355 (png_read_from_memory, png_load): Call png library functions
12356 through pointers determined at runtime.
12357 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
12358 (init_external_image_libraries): New function.
12359 (init_xfns): Call it.
54eefef1 12360
1a9e275b
AS
123612003-01-24 Andreas Schwab <schwab@suse.de>
12362
12363 * minibuf.c (Fminibuffer_message): Verify type of parameter.
12364
a97e4138 123652003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
12366
12367 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
12368 of static initializer.
12369
422eec7e
DL
123702003-01-24 Dave Love <fx@gnu.org>
12371
12372 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
12373 architectures.
12374
12375 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
12376 Use __alignof__.
12377
2a026b04
KH
123782003-01-24 Kenichi Handa <handa@m17n.org>
12379
12380 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 12381 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
12382 (command_loop_1): Call adjust_point_for_property with proper
12383 second arg.
12384
a18bb28d
JR
123852003-01-22 Jason Rumney <jasonr@gnu.org>
12386
12387 Sync changes with xterm.c and xfns.c.
12388
12389 * w32term.c (x_draw_glyph_string_foreground)
12390 (x_draw_composite_glyph_string_foreground): Implement overstriking.
12391
12392 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
12393 phys_cursor's hpos is overwritten. This is still not completely
12394 correct, as it doesn't really make sense to use hpos at all to
12395 get the cursor glyph (as that is relative to the width of the
12396 characters on the line, which may have changed during the update).
12397
12398 * w32term.c (notice_overwritten_cursor): Handle the special case
12399 of the cursor being in the first blank non-text line at the
12400 end of a window.
12401
12402 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12403 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12404 Compute from the x position returned by x_draw_glyphs.
12405
12406 (x_display_and_set_cursor): Don't set phys_cursor_width here,
12407 except for NO_CURSOR and system caret, to make phys_cursor_width
12408 contain what its name suggests.
12409 (notice_overwritten_cursor): Consider the cursor image erased if
12410 the output area intersects the cursor image in y-direction.
12411
6a097c0c
SM
12412 * w32term.c (note_mode_line_or_margin_highlight): Rename from
12413 note_mode_line_highlight and extend.
a18bb28d
JR
12414
12415 * w32term.c (last_window): New variable.
12416 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
12417 (note_mouse_movement): Remove reimplemented code in #if 0.
12418
12419 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
12420 not update_mode_lines, and always set it to 1.
12421
ac6e47ef
JR
124222003-01-21 Jason Rumney <jasonr@gnu.org>
12423
12424 * w32fns.c (IDC_HAND): Define it if system headers don't.
12425
124262003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12427
12428 * w32term.h (struct w32_output): New member hand_cursor.
12429 (WM_EMACS_SETCURSOR): New message definition.
12430
12431 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
12432 function w32_define_cursor.
12433 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
12434 position, change member name output_data.x to output_data.w32 and
12435 add function w32_define_cursor.
12436 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
12437 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
12438 (w32_initialize_display_info):
12439 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
12440
12441 * w32fns.c (Vx_hand_shape): New variable.
12442 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
12443 WM_EMACS_SETCURSOR.
12444 (x-create-frame): Setup Cursor types.
12445
ceb39a17
JB
124462003-01-21 David Ponce <david@dponce.com>
12447
ac6e47ef 12448 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
12449 ccl->reg[2] to -1 before calling ccl_driver.
12450 (Sync. with xterm.c x_encode_char change by Kenichi Handa
12451 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
12452 (w32_draw_relief_rect): Declare all args.
12453 (w32_define_cursor): New.
12454
12455 * w32fns.c (w32_load_cursor): New function.
12456 (w32_init_class): Use it.
12457 (x_put_x_image): Declare all args.
12458
b6189c3b 124592003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
12460
12461 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
12462
a97e4138 124632003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
12464
12465 * gtkutil.c: Must include stdio.h before termhooks.h
12466
83fc9c63
DL
124672003-01-21 Dave Love <fx@gnu.org>
12468
12469 * alloc.c (Fgc_status): Print zombie list.
12470 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12471 Fix assignment of zombies.
12472 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12473 Don't take car of non-cons.
12474
12475 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12476
12477 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12478
fe04b8c8
JR
124792003-01-20 David Ponce <david@dponce.com>
12480
12481 * w32menu.c (digest_single_submenu): Declare all args.
12482
12483 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
12484 changes in xmenu.c:
12485
12486 (parse_single_submenu): Use individual keymap's prompt
12487 string as pane name, if there is one.
12488 (set_frame_menubar): Save menu_items_n_panes from each call to
12489 parse_single_submenu and use it when calling digest_single_submenu.
12490
539e69a9
ST
124912003-01-20 Steven Tamm <steventamm@mac.com>
12492
7e26f91b 12493 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
12494 before sending a scroll-wheel event.
12495
675d000f
RS
124962003-01-20 Richard M. Stallman <rms@gnu.org>
12497
12498 * xdisp.c (redisplay_window): If mini window's buffer is not
12499 a minibuffer, then redisplay it like other windows.
12500
a97e4138 125012003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
12502
12503 * gtkutil.c (xg_create_frame_widgets): Check if there is an
12504 external tool bar before setting tool bar height.
12505
048addec
JD
125062003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12507
12508 * xterm.c (handle_one_xevent): Surround popup_activated
12509 with #ifdef:s for non-toolkit version.
12510
12511 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
12512 (gtkutil.o): New file.
12513 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
12514 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
12515
12516 * gtkutil.c: New file for GTK version.
12517
12518 * gtkutil.h: New file for GTK version.
12519
12520 * xterm.h: Add xt_or_gtk_widget.
12521 Include gtk files for USE_GTK.
12522 (struct x_output): Add toolbar_height.
12523 (struct x_output): Add GTK widgets and Gdk size_hints.
12524 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
12525 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
12526 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
12527
12528 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 12529 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
12530 (note_mouse_highlight): Check popup_activated for USE_GTK.
12531 (xt_action_hook): Don't compile if USE_GTK.
12532 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
12533 (xg_scroll_callback): New function.
12534 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
12535 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
12536 for USE_GTK.
12537 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
12538 xg_show_scroll_bar for USE_GTK.
12539 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
12540 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
12541 (event_handler_gdk): New function for USE_GTK.
12542 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
12543 (handle_one_xevent): Make sure widget is mapped before
12544 calling x_real_positions for USE_GTK.
12545 (XTread_socket): Add GTK event loop for USE_GTK.
12546 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
12547 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
12548 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
12549 (x_iconify_frame): Add code for USE_GTK.
12550 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
12551 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
12552 is in gtkutil.c.
12553 (x_term_init): Add initialization for GTK.
12554 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
12555
12556 * xmenu.c: Include gtkutil.h for USE_GTK.
12557 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
12558 (single_menu_item, single_menu_item, Fx_popup_dialog):
12559 Check for USE_GTK.
048addec
JD
12560 (popup_widget_loop): New function for USE_GTK.
12561 (x_activate_menubar): Add code for USE_GTK.
12562 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
12563 (menu_highlight_callback, menubar_selection_callback):
12564 Add USE_GTK versions.
048addec
JD
12565 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
12566 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
12567 (free_frame_menubar): Only compile if not USE_GTK. GTK version
12568 is in gtkutil.c.
12569 (popup_selection_callback): New version for USE_GTK.
12570 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 12571 one USE_X_TOOLKIT version.
048addec
JD
12572 (xmenu_show): Call create_and_show_popup_menu.
12573 (dialog_selection_callback): New version for USE_GTK.
12574 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 12575 one USE_X_TOOLKIT version.
048addec
JD
12576 (xdialog_show): Call create_and_show_dialog.
12577
12578 * xfns.c: Include gtkutil for USE_GTK.
12579 (x_window_to_frame, x_any_window_to_frame)
12580 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12581 (x_top_window_to_frame): Add code for USE_GTK.
12582 (x_set_background_color): Call xg_set_background_color for GTK.
12583 (x_set_menu_bar_lines): Check for USE_GTK.
12584 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
12585 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
12586 (x_window): Call xg_create_frame_widgets for USE_GTK.
12587 (Fx_create_frame): Check for USE_GTK
12588 (Fx_file_dialog): New implementation for USE_GTK.
12589
12590 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
12591 (update_menu_bar): Add check for USE_GTK.
12592 (update_tool_bar): Add check for USE_GTK and external tool bar.
12593 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
12594 (redisplay_internal): Add check for USE_GTK and popup_activated.
12595 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
12596 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
12597 (display_menu_bar): Add check for USE_GTK
12598
78819ebb 12599 * lisp.h (Vx_resource_name): Declare extern.
048addec 12600
a64387ee 12601 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
12602 for USE_GTK.
12603 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
12604
12605 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
12606 (FRAME_EXTERNAL_TOOL_BAR): New macro.
12607 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
12608
12609 * fileio.c (Fread_file_name): Add check for USE_GTK.
12610
6bdb309a
SM
12611 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
12612 Add check for USE_GTK.
048addec
JD
12613
12614 * config.in: Added HAVE_GTK
12615
12616 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
12617
126182003-01-18 Stefan Monnier <monnier@cs.yale.edu>
12619
12620 * charset.h (Funibyte_char_to_multibyte): Export.
12621
126222003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12623
12624 * xmenu.c (mouse_position_for_popup): New function.
12625 (Fx_popup_menu): Call mouse_position_for_popup for X and
12626 mouse_position_hook for others.
12627
126282003-01-17 Kim F. Storm <storm@cua.dk>
12629
12630 * editfns.c (Finsert): Mention `string-make-multibyte' and
12631 `string-as-multibyte' in doc string.
12632
126332003-01-17 Kenichi Handa <handa@m17n.org>
12634
12635 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 12636
048addec
JD
12637 * editfns.c (Fformat): Convert an unibyte char argument that is
12638 formatted by "%c" to multibyte if the total result must be a
12639 multibyte string.
cd7df9c0 12640
048addec 126412003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 12642
048addec
JD
12643 * process.c (set-process-filter): Document unibyte/multibyte-ness
12644 of string argument.
56210ecd 12645
048addec 126462003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 12647
048addec 12648 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 12649
048addec
JD
12650 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
12651 (re_search_2): Likewise.
6df8b9fe 12652
048addec 126532003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 12654
048addec
JD
12655 * xdisp.c (message_dolog): Fix bug of the case that *Message*
12656 buffer is unibyte.
292ddc31 12657
048addec 126582003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 12659
048addec 12660 * fns.c (Fsubstring): Clarify doc string.
292ddc31 12661
048addec
JD
12662 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
12663 (Fprevious_char_property_change)
12664 (Fnext_single_char_property_change)
12665 (Fprevious_single_char_property_change, Fnext_property_change)
12666 (Fnext_single_property_change, Fprevious_property_change)
12667 (Fprevious_single_property_change, Fadd_text_properties)
12668 (Fput_text_property, Fset_text_properties)
12669 (Fremove_text_properties, Fremove_list_of_text_properties)
12670 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 12671
048addec 126722003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 12673
048addec
JD
12674 * process.h (struct Lisp_Process): New member plist replaces old
12675 member private_vars. All uses changed.
63e4e4c6 12676
048addec 12677 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 12678 (QCplist): Rename from QCvars. Change all uses.
048addec 12679 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 12680 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 12681 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 12682 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 12683
048addec 126842003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 12685
6bdb309a 12686 * m/delta.h: Remove (obsolete).
e833850f 12687
048addec 126882003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 12689
048addec
JD
12690 * fileio.c (Fdelete_directory, Fdelete_file): Document the
12691 behaviour in front of symlinks.
12692 (Fdelete_file): Raise an error on directories.
817cb127 12693
048addec 126942003-01-13 Dave Love <fx@gnu.org>
817cb127 12695
048addec 12696 * fns.c (Freverse): Use QUIT.
3e8cf2ea 12697
048addec 126982003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 12699
048addec
JD
12700 * minibuf.c (minibuffer_completion_contents):
12701 Error if point is inside prompt.
3e8cf2ea 12702
048addec
JD
12703 * keyboard.c (command_loop_1): Don't redisplay directly
12704 if there's a post-command-hook.
3e8cf2ea 12705
048addec
JD
12706 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
12707 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 12708
048addec 127092003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 12710
048addec 12711 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 12712
048addec
JD
12713 * process.c (QCvars): New variable.
12714 (syms_of_process): Intern and staticpro it.
12715 (Fset_process_contact): Removed function.
12716 (Fprocess_variable, Fset_process_variable): New functions.
12717 (syms_of_process): Defsubr them.
12718 (Fstart_process): Initialize private_vars plist to nil.
12719 (Fmake_network_process): New arg :vars to setup the private
12720 variables for new network process.
12721 (server_accept_connection): Copy server's private variables to
12722 client process.
2c10f029 12723
048addec
JD
12724 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
12725 crashes). Code rewritten and simplified. Now directly aligns the
12726 pointer and recalculates pure_bytes_used, rather than aligning the
12727 size and adjusting the pointer.
b8a76c6c 12728
048addec 127292003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 12730
048addec
JD
12731 * process.c (Fset_process_contact): New function.
12732 (syms_of_process): defsubr it.
12733 (make-network-process): Update doc.
3a8d0899 12734
048addec 127352003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 12736
048addec
JD
12737 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
12738 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 12739
048addec 127402003-01-10 Dave Love <fx@gnu.org>
4abc7470 12741
048addec 12742 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 12743
048addec 127442003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 12745
048addec
JD
12746 * process.c (Fmake_network_process): Convert new port number
12747 to host byte order for `:service t' case. From Mario Lang.
bf338245 12748
048addec 127492003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 12750
048addec
JD
12751 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
12752 instead of XtAppProcessEvent.
bf338245 12753
048addec
JD
12754 * xterm.c (handle_one_xevent): New function.
12755 (x_dispatch_event): New function.
12756 (XTread_socket): Call handle_one_xevent.
bf338245 12757
048addec 12758 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 12759
048addec
JD
12760 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
12761 call XQueryPointer to get coordinates.
12762 (popup_get_selection): Do not set popup_activated_flag to zero,
12763 let popup_deactivate_callback do that. Needed for Motif.
12764 Call x_dispatch_event instead of XtDispatchEvent.
12765 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 12766
048addec 127672003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 12768
6bdb309a 12769 * process.c (server_accept_connection): Fix recording of new
048addec
JD
12770 connection's local address in :local property of contact info.
12771 (Fmake_network_process): Record local network address for new
12772 client processes in :local property of contact info.
6bdb309a 12773 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 12774
048addec 127752003-01-07 Dave Love <fx@gnu.org>
00e3ab56 12776
048addec 12777 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 12778
048addec 127792003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 12780
048addec 12781 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 12782
048addec
JD
12783 * eval.c (Fuser_variable_p): Doc change. For custom variables,
12784 use the same test as for custom-variable-p.
8c6d74c6 12785
048addec 127862003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 12787
048addec
JD
12788 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
12789 Count LAST_LINE_MISFIT in scroll margin for end of window.
12790 Move label too_near_end before setting SCROLL_MARGIN_POS.
12791 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 12792
048addec
JD
12793 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
12794 scroll_conservatively case. If scrolling that much doesn't change
12795 STARTP, move it down one line.
e833850f 12796
048addec
JD
12797 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
12798 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 12799
048addec
JD
12800 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
12801 selected frame.
8c6d74c6 12802
048addec 12803 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 12804 (syms_of_keymap): Staticpro them.
048addec
JD
12805 (Fapropos_internal): Initialize them and clear them out.
12806 Don't GCPRO them.
8c6d74c6 12807
048addec
JD
12808 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
12809 Doc fixes.
8c6d74c6 12810
048addec
JD
12811 * lisp.h: New misc type Lisp_Save_Value.
12812 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
12813 (XSAVE_VALUE): New macro.
12814 (struct Lisp_Save_Value): New data type.
12815 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 12816 (make_save_value): Declare.
8c6d74c6 12817
048addec 12818 * alloc.c (make_save_value): New function.
8c6d74c6 12819
048addec
JD
12820 * xterm.c (x_catch_errors): Save dpy using make_save_value.
12821 (x_catch_errors_unwind): Call XSync.
8c6d74c6 12822
048addec 128232003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 12824
048addec 12825 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 12826
048addec
JD
12827 * keyboard.c (command_loop_1): Call adjust_point_for_property
12828 in direct action cases for Qforward_char and Qbackward_char.
12829 Set already_adjusted so it won't be done twice.
8c6d74c6 12830
b6189c3b 128312002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 12832
048addec
JD
12833 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
12834 type definition of size_t.
8c609cff 12835
048addec 128362003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 12837
048addec
JD
12838 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
12839 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 12840
048addec 128412002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 12842
048addec
JD
12843 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
12844 to default to t.
fa634a5e 12845
048addec 128462002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 12847
048addec 12848 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 12849
048addec 128502002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 12851
7e26f91b 12852 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
12853 allow building in a different directory than source. Uses some
12854 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 12855
048addec 128562002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 12857
048addec
JD
12858 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
12859 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
12860 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
12861 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 12862
048addec 128632002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 12864
048addec
JD
12865 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
12866 <scroll-down-aggressively>: Doc fix.
2155ecf3 12867
048addec
JD
12868 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
12869 string as pane name, if there is one.
12870 (set_frame_menubar): Save menu_items_n_panes from each call to
12871 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 12872
048addec
JD
12873 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
12874 Don't try to make last line fully visible if it is past end of window.
61f1d295 12875
048addec 128762002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 12877
048addec
JD
12878 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
12879 (mac_menu_show): Add support for hierarchical popup menus.
12880 (add_menu_item): Remove indentation support.
12881 (fill_submenu, fill_menu): Create hierarchical menus
12882 instead of using indentation.
0b17a217 12883
048addec 128842002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 12885
048addec
JD
12886 * xdisp.c (try_cursor_movement): Don't call try_window here.
12887 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 12888
048addec 12889 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 12890
048addec 128912002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 12892
048addec
JD
12893 * macterm.c (XTread_socket): Call KeyTranslate for control and
12894 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 12895 being treated like C-%. Do not look for shift key to deal
048addec 12896 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 12897
048addec 128982002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 12899
048addec
JD
12900 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
12901 If it is non-nil, run timers. Use an unwind-protect to requeue
12902 the events that were read ahead.
12903 (popup_get_selection_unwind): New subroutine.
12904 (popup_get_selection_queue): File-scope variable now holds that queue.
12905 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
12906 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
12907 Use an unwind-protect to pop down the dialog box.
12908 (xdialog_show_unwind): New subroutine implements that.
f02cac82 12909
048addec
JD
12910 * xdisp.c (row_containing_pos): Change exit test using last_y.
12911 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 12912
048addec
JD
12913 * lread.c (load_error_handler): New function.
12914 (Fload): Handle errors in Fsubstitute_in_file_name.
12915 Don't expect Fsignal to return.
f02cac82 12916
048addec
JD
12917 * eval.c: Errors and throws work right with interrupt blocking.
12918 (struct catchtag): New elt interrupt_input_blocked.
12919 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
12920 (internal_catch, Fcondition_case, internal_condition_case)
12921 (internal_condition_case_1, internal_condition_case_2): Save it.
12922 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 12923
048addec 12924 * editfns.c (Fformat): Add parens.
f02cac82 12925
048addec
JD
12926 * dired.c (file_name_completion): Fix that change.
12927 Delete special quit-handling code; just use QUIT.
f02cac82 12928
b6189c3b 129292002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 12930
048addec
JD
12931 * dired.c (file_name_completion): Close directory on error
12932 just as in directory_files_internal.
1a590729 12933
048addec 129342002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 12935
048addec
JD
12936 * window.c (Fset_window_configuration): Set old_point to correct
12937 value when new_current_buffer == current_buffer.
f02cac82 12938
048addec 129392002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 12940
048addec
JD
12941 Revisited my earlier fix for the following entry in etc/PROBLEMS:
12942 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12943 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 12944
048addec
JD
12945 These changes were in part based upon suggestions made by Peter
12946 'Luna' Runestig [peter@runestig.com].
9785d95b 12947
f4a5a485
SM
12948 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
12949 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
12950 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 12951 global variables.
9785d95b 12952
048addec
JD
12953 * w32.c (globals_of_w32): New function. Used to initialize those
12954 global variables that must always be initialized on startup even
12955 when the global variable initialized is non zero. Its primary
12956 purpose at this time is to set the global variables
12957 g_b_init_is_windows_9x, g_b_init_open_process_token,
12958 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
12959 g_b_init_get_sid_identifier_authority to 0 on startup.
12960 Called from main.
9785d95b 12961
048addec
JD
12962 * w32.c (is_windows_9x): Perform initialization only if
12963 g_b_init_is_windows_9x is equal to 0. On initialization set
12964 g_b_init_is_windows_9x equal to 1.
2308af15 12965
048addec
JD
12966 * w32.c (open_process_token): Perform initialization only if
12967 g_b_init_open_process_token is equal to 0. On initialization set
12968 g_b_init_open_process_token equal to 1.
2308af15 12969
048addec
JD
12970 * w32.c (get_token_information): Perform initialization only if
12971 g_b_init_get_token_information is equal to 0. On initialization
12972 set g_b_init_get_token_information equal to 1.
9785d95b 12973
048addec
JD
12974 * w32.c (lookup_account_sid): Perform initialization only if
12975 g_b_init_lookup_account_sid is equal to 0. On initialization
12976 set g_b_init_lookup_account_sid equal to 1.
9785d95b 12977
048addec
JD
12978 * w32.c (get_sid_identifier_authority): Perform initialization
12979 only if g_b_init_get_sid_identifier_authority is equal to 0.
12980 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 12981
f63fd14e 12982 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
12983 those global variables that must always be initialized on startup
12984 even when the global variable initialized is non zero.
12985 Its primary purpose at this time is to initialize the global variable
12986 track_mouse_event_fn.
9785d95b 12987
a64387ee 12988 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 12989 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 12990
048addec 12991 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 12992
f63fd14e 12993 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
12994 initialize those global variables that must always be initialized
12995 on startup even when the global variable initialized is non zero.
12996 Its primary purpose at this time is to initialize the global
12997 variables get_menu_item_info and set_menu_item_info.
9785d95b 12998
048addec
JD
12999 * w32menu.c (initialize_frame_menubar): Remove initialization of
13000 get_menu_item_info and set_menu_item_info.
9785d95b 13001
048addec 13002 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 13003
048addec
JD
13004 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
13005 Declare them.
9785d95b 13006
048addec
JD
13007 * emacs.c (main): Call globals_of_w32 prior to calling
13008 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
13009 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
13010 is defined.
9785d95b 13011
048addec
JD
13012 * w32term.c (x_update_window_begin): Fix Windows API error
13013 detected by BoundsChecker. Test to determine if
13014 w32_system_caret_hwnd is NULL prior to attempting to use
13015 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 13016
048addec
JD
13017 * w32term.c (x_update_window_end): Fix Windows API error
13018 detected by BoundsChecker. Test to determine if
13019 w32_system_caret_hwnd is NULL prior to attempting to use
13020 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 13021
048addec 130222002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 13023
048addec
JD
13024 * coding.c (coding_system_require_warning): New variable.
13025 (syms_of_coding): DEFVAR it.
b6da19ef 13026
048addec 13027 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 13028
048addec
JD
13029 * fileio.c (choose_write_coding_system): Even if
13030 Vcoding_system_for_write is non-nil, if
13031 coding_system_require_warning is nonzero, call
13032 Vselect_safe_coding_system_function.
bfcf6dbe 13033
048addec 130342002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 13035
048addec
JD
13036 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
13037 (lisp): Add font-core.
2c568af5 13038
048addec 130392002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 13040
048addec
JD
13041 * textprop.c (text_read_only): New arg `propval'.
13042 (get_char_property_and_overlay): Remove unused var `next_overlay'.
13043 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 13044
048addec 130452002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 13046
048addec 13047 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 13048
048addec 130492002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 13050
048addec
JD
13051 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
13052 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
13053 Be more careful about when help_events are generated.
96720f09 13054
048addec 130552002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 13056
048addec
JD
13057 * macterm.c (mac_check_for_quit_char): Correctly set the
13058 modifiers of the event to 0.
13059 * mac.c (sys_select): Duplicate rfds before calling select to
13060 ensure that rfds survive the while loop.
e5ae1c49 13061
048addec 130622002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 13063
048addec
JD
13064 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
13065 row_containing_pos returned NULL.
2eb46b2d 13066
048addec 130672002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 13068
6bdb309a 13069 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 13070 non-blocking.
6bdb309a 13071 (sys_select): Fix sys_select to not use a timeout larger than
048addec 13072 the one given.
b11f1d8a 13073
048addec 130742002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 13075
048addec 13076 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 13077
048addec 130782002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 13079
048addec
JD
13080 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
13081 as the last thing.
a4ac5b17 13082
048addec 130832002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 13084
048addec 13085 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 13086
048addec 130872002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 13088
048addec
JD
13089 * editfns.c (Fformat): Handle precision in string conversion
13090 specifiers like libc functions do (ie, print at most that many
13091 characters).
85cce843 13092
048addec 130932002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 13094
048addec
JD
13095 * xdisp.c (row_containing_pos): Check more carefully
13096 whether charpos is really in the row before returning it.
0d4d26a7 13097
048addec 130982002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 13099
048addec 13100 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 13101
048addec
JD
13102 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
13103 each stack frame. This may change as it could be time consuming.
0d4d26a7 13104
048addec
JD
13105 * macterm.c (mac_check_for_quit_char, quit_char_comp)
13106 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 13107 (mac_initialize): Add code to check for pressing of quit_char
048addec 13108 in the OS event queue.
b11f1d8a 13109
048addec
JD
13110 * mac.c (sys_select): Call mac_check_for_quit_char every second
13111 while blocking on select.
0d4d26a7 13112
048addec
JD
13113 * mac.c (sys_read): Use sys_select to test for input first
13114 before calling read, to allow C-g to break.
9252f7bc 13115
048addec 131162002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 13117
048addec 13118 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 13119
048addec 13120 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 13121
048addec 13122 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 13123
048addec
JD
13124 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
13125 autoload.
9252f7bc 13126
048addec 13127 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 13128
048addec 13129 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 13130
048addec 131312002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 13132
048addec 13133 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 13134
048addec 131352002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 13136
048addec 13137 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 13138
048addec 13139 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 13140
048addec 13141 * alloca.c: Don't use #error.
02d588e2 13142
048addec 131432002-12-03 Dave Love <fx@gnu.org>
02d588e2 13144
048addec
JD
13145 * buffer.c (Qucs_set_table_for_input): New.
13146 (Fget_buffer_create): Use it.
13147 (Qset_buffer_major_mode_hook): Deleted.
13148 (Fset_buffer_major_mode): Revert previous change.
13149 (init_buffer_once): Intern ucs-set-table-for-input.
13150 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
13151 Add &Qucs_set_table_for_input.
451e2697 13152
048addec 131532002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 13154
048addec
JD
13155 * callint.c (Fcall_interactively): Use next_event only if less
13156 than key_count.
72742a99 13157
048addec 131582002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 13159
048addec
JD
13160 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
13161 names to 255 characters.
72742a99 13162
048addec
JD
13163 * macterm.c (XTread_socket): If all frames have been collapsed,
13164 expand the first one before handling drag-and-drop events.
72742a99 13165
048addec
JD
13166 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
13167 which is detected by autoconf.
40e6ff95 13168
048addec 131692002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 13170
048addec
JD
13171 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
13172 offset in two hints table to allow prebinding to be redone and
13173 allow the executable to be stripped.
c02138c6 13174
048addec 131752002-11-29 Dave Love <fx@gnu.org>
c02138c6 13176
048addec
JD
13177 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
13178 already provided.
0e47bbf7 13179
048addec 131802002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 13181
048addec
JD
13182 * xdisp.c (start_display): Check more intelligently for
13183 whether the line is continued.
13184 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 13185
048addec 131862002-11-28 Dave Love <fx@gnu.org>
44129dcb 13187
048addec
JD
13188 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
13189 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 13190
048addec 131912002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 13192
048addec
JD
13193 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
13194 more descriptive error output from lread.c:Fload upon most require
13195 cycles during boostrapping.
1637fd2c 13196
048addec 131972002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 13198
048addec
JD
13199 * fileio.c (Finsert_file_contents): Give a more appropriate error
13200 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 13201
048addec
JD
13202 * dired.c (Ffile_attributes): Don't return negative file sizes for
13203 files bigger than 2Gb when off_t is 32 bit.
540c2788 13204
048addec 132052002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 13206
048addec 13207 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 13208
048addec
JD
13209 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
13210 Test GETPGRP_VOID instead.
13211 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 13212
048addec
JD
13213 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
13214 Don't define.
13215 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 13216
048addec 13217 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 13218
048addec 132192002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 13220
048addec
JD
13221 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
13222 supported.
4042a81a 13223
048addec 132242002-11-25 Dave Love <fx@gnu.org>
4042a81a 13225
048addec 13226 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 13227
048addec 13228 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 13229
048addec 132302002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 13231
048addec 13232 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 13233
048addec 132342002-11-24 Steven Tamm <steventamm@mac.com>
82122254 13235
048addec
JD
13236 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
13237 determine the size of pointers alloced in unexed space instead
13238 of using possibly invalid emacs_zone pointers. This fixes the
13239 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 13240
048addec 132412002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 13242
048addec 13243 * search.c (Fstring_match): Doc fix.
c1ee53bc 13244
048addec
JD
13245 * callint.c (Fcall_interactively): If a command fails because
13246 `*' detects a read-only buffer, but RECORD_FLAG is set,
13247 record it anyway if the args don't actually do tty input.
5598c32e 13248
048addec 132492002-11-22 Dave Love <fx@gnu.org>
5598c32e 13250
048addec 13251 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 13252
048addec
JD
13253 * keyboard.c (interrupt_signal): Provide forward declaration.
13254 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 13255
048addec 13256 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 13257
048addec 132582002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 13259
048addec
JD
13260 * eval.c (interactive_p): Skip any number of bytecode
13261 and special form frames, in any order.
516eea8e 13262
048addec 132632002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 13264
048addec
JD
13265 * w32fns.c (convert_mono_to_color_image): New function.
13266 (xbm_load, xbm_load_image): Use it when foreground or background
13267 is explicitly set.
04dbfa08 13268
048addec 132692002-11-19 Dave Love <fx@gnu.org>
04dbfa08 13270
048addec 13271 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 13272
048addec 132732002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 13274
048addec
JD
13275 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
13276 (XPutPixel): Swap blue and red.
13277 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
13278 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13279 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
13280 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 13281
048addec 132822002-11-18 Dave Love <fx@gnu.org>
d824beee 13283
048addec 13284 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 13285
048addec 13286 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 13287
048addec 13288 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 13289
048addec
JD
13290 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
13291 malloc, realloc, calloc.
d824beee 13292
048addec
JD
13293 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
13294 (bcmp): Don't define.
d824beee 13295
048addec 13296 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 13297
048addec 13298 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 13299
048addec 13300 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 13301
048addec 13302 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 13303
048addec
JD
13304 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
13305 Don't include alloca.h.
d824beee 13306
048addec 13307 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 13308
048addec 13309 * regex.c (_GNU_SOURCE): Don't define.
1998560a 13310
048addec 13311 * process.c (_GNU_SOURCE): Don't define.
1998560a 13312
048addec 13313 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 13314
048addec 133152002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 13316
048addec 13317 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 13318
048addec 133192002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 13320
048addec
JD
13321 * dispextern.h (struct face): Add `overstrike' field.
13322 * xterm.c (x_draw_glyph_string_foreground)
13323 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13324 * xfaces.c (load_face_font): Set `face->overstrike' based on
13325 result from choose_face_font.
13326 (best_matching_font, choose_face_font): Add `needs_overstrike'
13327 argument, and use it to return whether overstriking is desirable
13328 for this face/font combo.
13329 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 13330
048addec 133312002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 13332
048addec
JD
13333 This change is my fix for the following entry in etc/PROBLEMS:
13334 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
13335 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 13336
048addec
JD
13337 * w32.c: Added wrapper functions around the win32 API functions
13338 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
13339 GetSidIdentifierAuthority. These wrapper functions serve two
13340 purposes:
13341 1. They ensure that the wrapped function can never be called
13342 when Emacs is running on an operating system on which they are
13343 not supported (Microsoft Windows 95 / 98 / ME).
13344 2. They call the wrapped functions via function pointers rather
13345 than calling them directly. This avoids taking advantage of the
13346 undocumented fact that although these functions are not supported
13347 in the 9x branch of Microsoft Windows, the functions do exist in
13348 the version of advapi32.dll that is found in the 9x branch of
13349 Microsoft Windows.
f60ae425 13350
6bdb309a 13351 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
13352 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
13353 and GetSidIdentifierAuthority with calls to the newly added
13354 wrapper functions.
f60ae425 13355
048addec
JD
13356 * w32.h: Added extern declarations for the following functions:
13357 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
13358 syms_of_w32menu, and void syms_of_fontset.
f60ae425 13359
6bdb309a 13360 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
13361 function pointer track_mouse_event_fn in the handler for the
13362 WM_SETFOCUS message.
3582b6a3 13363
6bdb309a 13364 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
13365 reinitialize the function pointers set_menu_item_info and
13366 get_menu_item_info.
f60ae425 13367
048addec 133682002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 13369
048addec
JD
13370 * sound.c: Added a partial implementation of play-sound-internal
13371 for Microsoft Windows. Added various #ifdef / #else / #endif
13372 code blocks to separate the code that will compile under
9fed2905 13373 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 13374 Moved several blocks of code around to make this separation of code
9fed2905 13375 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 13376
048addec 13377 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 13378
048addec
JD
13379 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
13380 added support for play-sound-internal under Windows would be
13381 included in the build of Emacs.
517f42a0 13382
048addec 133832002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 13384
048addec 13385 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 13386
048addec 13387 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 13388
048addec 133892002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 13390
048addec
JD
13391 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
13392 (adjust_point_for_property): Move out of display and invisible even if
13393 we were already inside before (in case a property was added while
13394 we weren't looking). Be more careful when handling invisible props.
13395 Skip invisible text as if it really wasn't there at all.
aab83f91 13396
048addec 133972002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 13398
048addec
JD
13399 * w32term.c (x_draw_image_foreground)
13400 (w32_draw_image_foreground_1): Use standard copy and invert
13401 operations to draw images.
aab83f91 13402
048addec
JD
13403 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
13404 depth of 1.
13405 (xbm_read_bitmap_data): Invert bits as xbm is read in.
13406 (XPutPixel): Don't invert bits here.
a4478a76 13407
048addec 134082002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 13409
048addec
JD
13410 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
13411 (w32_draw_image_foreground_1): Handle image masks.
13412 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 13413
048addec
JD
13414 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
13415 (x_from_xcolors): Adjust RGB values for W32.
13416 (image_background, image_background_transparent)
13417 (postprocess_image, x_to_xcolors, x_disable_image)
13418 (x_build_heuristic_mask): Adapt for W32 and enable.
13419 (x_create_x_image_and_pixmap): Mark images with palettes as such.
13420 (xbm_load): Remove unused variable.
03670a65 13421
048addec 134222002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 13423
048addec 13424 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 13425
048addec 134262002-11-14 Dave Love <fx@gnu.org>
59daa29a 13427
048addec 13428 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 13429
048addec
JD
13430 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
13431 * xmenu.c (unuse_menu_items, digest_single_submenu):
13432 * xfns.c (x_put_x_image):
13433 * xdisp.c (message2_nolog, set_message):
13434 * undo.c (record_point):
13435 * terminfo.c (tparam):
13436 * syntax.c (scan_sexps_forward):
13437 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13438 * composite.c (update_compositions):
13439 * cm.c (calccost, cmgoto):
13440 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 13441
048addec 13442 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 13443
048addec
JD
13444 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
13445 Don't declare.
59daa29a 13446
048addec 13447 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 13448
048addec
JD
13449 * fns.c (Fcopy_sequence): Doc fix.
13450 (Fmap_char_table): Cast `call2'.
3947677c 13451
048addec
JD
134522002-11-14 Francesco Potorti` <pot@gnu.org>
13453
13454 * s/sol2-8.h: New file.
13455
134562002-11-14 Kim F. Storm <storm@cua.dk>
13457
13458 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
13459 dependency on `risky-local-variable' and the :propertize form.
13460
134612002-11-12 Stefan Monnier <monnier@cs.yale.edu>
13462
13463 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
13464
13465 * syntax.c (scan_sexps_forward): Undo last patch.
13466 Use a more obvious fix: check eob before updating the syntax table.
13467
134682002-11-09 Stefan Monnier <monnier@cs.yale.edu>
13469
13470 * syntax.c (scan_sexps_forward): Update syntax table before reading
13471 a char rather than after so we don't update the table past eob.
13472
134732002-11-09 Dave Love <fx@gnu.org>
13474
13475 * buffer.c (Fset_buffer_major_mode): Fix last change.
13476
13477 * regex.c (regexec): Fix pmatch declaration.
13478
13479 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
13480
13481 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
13482 to self-inserting characters.
13483 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
13484
13485 * coding.c (Vtranslation_table_for_input): New.
13486 (syms_of_coding): DEFVAR it.
13487
134882002-11-08 Juanma Barranquero <lektu@terra.es>
13489
13490 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
13491 window.
13492
134932002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13494
6bdb309a 13495 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
13496 cp, and i.
13497
134982002-11-06 Dave Love <fx@gnu.org>
13499
13500 * buffer.c (Qset_buffer_major_mode_hook): New.
13501 (Fset_buffer_major_mode): Use it.
13502
135032002-11-06 Richard M. Stallman <rms@gnu.org>
13504
13505 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
13506 and stop_polling.
13507
13508 * process.c (wait_reading_process_input):
13509 Test POLLING_PROBLEM_IN_SELECT, not hpux.
13510 Avoid initialization for auto Lisp_Object var.
13511
13512 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
13513
13514 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
13515
135162002-11-05 Richard M. Stallman <rms@gnu.org>
13517
13518 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
13519
13520 * callint.c (Fcall_interactively): New local filter_specs.
13521 (Fcall_interactively): Check for progn as well as let.
13522 Add a gcpro.
13523 (Qprogn): New variable.
13524 (syms_of_callint): Staticpro and init Qprogn.
13525
135262002-11-04 John Paul Wallington <jpw@shootybangbang.com>
13527
13528 * lread.c (Feval_buffer): Doc fix.
13529
135302002-11-04 Dave Love <fx@gnu.org>
13531
13532 * keyboard.c (read_char): Always translate iff
13533 Vkeyboard_translate_table is a char table and c is valid.
13534
13535 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13536 and fix C types.
13537
135382002-11-03 Stefan Monnier <monnier@cs.yale.edu>
13539
13540 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
13541
13542 * editfns.c (get_pos_property): Don't hardcode Qfield.
13543
13544 * keyboard.c (adjust_point_for_property): Handle `display' prop on
13545 overlays. Also handle `invisible' prop.
13546
135472002-11-02 Stefan Monnier <monnier@cs.yale.edu>
13548
13549 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
13550 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
13551
135522002-11-01 Andreas Schwab <schwab@suse.de>
13553
13554 * editfns.c (Fmessage): Revert last change to properly handle %%.
13555
135562002-11-01 Stefan Monnier <monnier@cs.yale.edu>
13557
13558 * xmenu.c (unuse_menu_items): New fun.
13559 (menu_items_inuse): New var.
13560 (syms_of_xmenu): Initialize it.
13561 (init_menu_items): Use it to detect re-entrance.
13562 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
13563 (Fx_popup_menu): Remove spurious XSETFRAME.
13564
13565 * editfns.c (find_field): Make an exception for nil fields.
13566
135672002-11-01 Dave Love <fx@gnu.org>
13568
13569 * m/gec63.h: Deleted.
13570
135712002-10-31 Dave Love <fx@gnu.org>
13572
13573 * xterm.c (XTread_socket): Fix last change.
13574 (xaw_scroll_callback): Cast call_data to long to avoid warning.
13575
135762002-10-31 Stefan Monnier <monnier@cs.yale.edu>
13577
13578 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
13579
135802002-10-30 Stefan Monnier <monnier@cs.yale.edu>
13581
13582 * editfns.c (overlays_around, get_pos_property): New funs.
13583 (find_field): Use them.
13584 Also be careful not to modify POS before its last use.
13585 (Fmessage): Don't Fformat if there's nothing to format.
13586
135872002-10-30 Dave Love <fx@gnu.org>
13588
13589 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
13590 [HAVE_PTY_H]; Include pty.h.
13591
13592 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
13593
13594 * xterm.c (Qeql): Declare.
13595 (Vx_keysym_table): New.
13596 (syms_of_xterm): Initialize it.
13597 (XTread_socket): Use it. Deal with ASCII keysyms.
13598 (XSetIMValues) [HAVE_X11R6]: Prototype.
13599
13600 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
13601 (lispy_kana_keys): Comment out.
13602 (make_lispy_event) [XK_kana_A]: Comment out.
13603 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
13604 Fix sprintf call.
13605
13606 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
13607 regexp.h change).
13608 (TERMINFO, LIBS_TERMCAP): Define.
13609
13610 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
13611 (bcmp): Define conditional on HAVE_BCMP.
13612 (NO_SIOCTL_H): Don't define.
13613 (TIOCSIGSEND): Don't make conditional on IRIX6.
13614
13615 * s/sol2-5.h: Don't include strings.h.
13616 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
13617
13618 * s/irix6-0.h (IRIX6): Don't define.
13619 (bcopy, bcmp, bzero): Don't undef.
13620
13621 * s/irix6-5.h: Don't include strings.h.
13622 (IRIX6): Don't define.
13623 (bcopy, bcmp, bzero): Don't undef.
13624
13625 * syntax.c (Fforward_comment): Doc fix.
13626
136272002-10-29 Kim F. Storm <storm@cua.dk>
13628
13629 * process.c (Fsignal_process): Allow PROCESS to be specified by
13630 name in addition to pid (as integer or string).
13631
136322002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
13633
13634 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
13635 environments.
13636
136372002-10-27 Kim F. Storm <storm@cua.dk>
13638
13639 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13640
13641 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
13642
13643 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
13644
13645 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13646
136472002-10-26 Richard M. Stallman <rms@gnu.org>
13648
13649 * editfns.c (Fformat): Detect invalid format letters for floats.
13650
136512002-10-25 Kenichi Handa <handa@m17n.org>
13652
13653 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
13654 (x_set_title): Likewise.
13655
136562002-10-25 Juanma Barranquero <lektu@terra.es>
13657
13658 * macgui.h:
13659 * w32gui.h: Remove definition of XColor.
13660
13661 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
13662
136632002-10-24 Kim F. Storm <storm@cua.dk>
13664
13665 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
13666 Callers changed (supply dummy arg).
13667
13668 * lisp.h (get_window_cursor_type): Update prototype.
13669
13670 * w32term.c (x_display_and_set_cursor): Get active_cursor from
13671 get_window_cursor_type to track system caret.
13672
136732002-10-24 Kim F. Storm <storm@cua.dk>
13674
13675 * process.c (Fformat_network_address): New function.
13676 (syms_of_process): Defsubr it.
13677 (list_processes_1): Use it to format :local/:remote address if
f9711de4 13678 service/host is not set; before Emacs would crash in that case.
048addec
JD
13679 (Fmake_network_process): Don't use Ffind_operation_coding_system
13680 to setup coding system if host or service is not set.
13681
136822002-10-23 Juanma Barranquero <lektu@terra.es>
13683
13684 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
13685
13686 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
13687 COLORREF.
13688
13689 * macgui.h:
13690 * w32gui.h: Add definition of XColor.
13691
13692 * macfns.c:
13693 * w32fns.c:
13694 * xfaces.c: Remove definition of XColor.
13695
136962002-10-22 Stefan Monnier <monnier@cs.yale.edu>
13697
13698 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
13699
13700 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
13701 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
13702 window if it is dedicated.
13703 (Fshrink_window): Add preserve_before as was done for enlarge_window.
13704 (Vspecial_display_function): Update docstring.
13705
13706 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
13707 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
13708 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
13709
137102002-10-21 Stefan Monnier <monnier@cs.yale.edu>
13711
13712 * casefiddle.c (casify_region): Don't treat a prefix char as part
13713 of a word when at the beginning.
13714
137152002-10-17 Juanma Barranquero <lektu@terra.es>
13716
13717 * lread.c (syms_of_lread): Fix typos.
13718
137192002-10-17 Dave Love <fx@gnu.org>
13720
13721 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
13722
137232002-10-16 Richard M. Stallman <rms@gnu.org>
13724
13725 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
13726
137272002-10-14 Juanma Barranquero <lektu@terra.es>
13728
13729 * w16select.c (syms_of_win16select): Fix docstring for
13730 `selection-coding-system'.
13731
13732 * w32select.c (syms_of_w32select): Likewise.
13733
137342002-10-14 Stefan Monnier <monnier@cs.yale.edu>
13735
13736 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
13737 a backslash-quoted char.
13738 (scan_lists, scan_sexps_forward): Pacify the compiler.
13739
137402002-10-13 Richard M. Stallman <rms@gnu.org>
13741
13742 * window.c (window_scroll): Set immediate_quit.
13743
13744 * print.c (print): When backquote form is the car of a list,
13745 output in old style. Use old_backquote_output to output all
13746 comma forms inside it in old style too.
13747
13748 * buffer.h (struct buffer): Move `undo_list' down below `name'.
13749
137502002-10-11 Markus Rost <rost@math.ohio-state.edu>
13751
13752 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
13753 batch mode).
13754
13755 * lread.c (Fload): Doc fix (load-suffixes).
13756
137572002-10-10 Steven Tamm <steventamm@mac.com>
13758
13759 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
13760 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
13761 Also switch the default to Qnil from Qt.
13762
137632002-10-08 Kenichi Handa <handa@m17n.org>
13764
13765 * coding.c (code_convert_region): When we need more GAP for
13766 conversion, pay attention to the case that coding->produced is not
13767 greater than coding->consumed.
13768
137692002-10-07 Richard M. Stallman <rms@gnu.org>
13770
13771 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
13772
137732002-10-06 Andrew Choi <akochoi@shaw.ca>
13774
13775 * macmenu.c (mac_menu_show): Add j to count menu items; match
13776 menu_item_selection to it to find selected item.
13777
137782002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13779
13780 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
13781 cases. The correct fix is to pass ReparentNotify to Xt.
13782 The shell widget interprets ConfigureNotify differently depending
13783 on if it has been reparented or not.
13784
137852002-10-05 Markus Rost <rost@math.ohio-state.edu>
13786
13787 * editfns.c (Fformat_time_string): Doc fix.
13788
137892002-10-05 John Paul Wallington <jpw@shootybangbang.com>
13790
13791 * fns.c (Flength): Doc fix.
13792
137932002-10-04 Stefan Monnier <monnier@cs.yale.edu>
13794
13795 * keyboard.c (keyremap): New struct.
13796 (read_key_sequence): Use it: globally replace keytran_foo with
13797 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
13798 keytran_next and fkey_next to just `next'.
13799
138002002-10-04 Steven Tamm <steventamm@mac.com>
13801
13802 * macterm.c (keycode_to_xkeysym_table): Change return to be
13803 treated like an X keysym.
13804
138052002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13806
13807 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
13808 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
13809 This is to also handle x/y changes that occur because of a resize.
13810
138112002-10-02 John Paul Wallington <jpw@shootybangbang.com>
13812
13813 * frame.c (Vdelete_frame_functions): New variable.
13814 (syms_of_frame): Initialize and defvar it.
13815 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
13816 it when frame's `tooltip' parameter is non-nil.
13817
13818 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
13819
13820 * w32fns.c (x_create_tip_frame): Likewise.
13821
13822 * macfns.c (x_create_tip_frame): Likewise.
13823
138242002-09-30 Kenichi Handa <handa@m17n.org>
13825
13826 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
13827 -1 before calling ccl_driver.
13828
13829 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
13830 Only when it is non-nil, handle composition sequence.
13831 (setup_coding_system) <0>: Don't force composition handling.
13832
13833 * Makefile.in (lisp, shortlisp): Add utf-16.elc
13834
138352002-09-29 Richard M. Stallman <rms@gnu.org>
13836
13837 * search.c (Freplace_match): Adjust match data for the substitution
13838 just made in the buffer.
13839
13840 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
13841 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
13842
138432002-09-27 Richard M. Stallman <rms@gnu.org>
13844
13845 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
13846 (read_char): Use them. Do all exits thru the end of the function.
13847
138482002-09-27 Kenichi Handa <handa@etl.go.jp>
13849
13850 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
13851 is nil.
13852
138532002-09-26 Richard M. Stallman <rms@gnu.org>
13854
13855 * regex.h (__restrict_arr): Don't define if already defined.
13856
13857 * coding.c (run_pre_post_conversion_on_str):
13858 Save and restore Vdeactivate_mark.
13859
138602002-09-26 John Paul Wallington <jpw@shootybangbang.com>
13861
13862 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
13863
138642002-09-26 Kenichi Handa <handa@etl.go.jp>
13865
13866 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
13867 nonzero, try face's family at first. Otherwise try FAMILY at first.
13868 (choose_face_font): If C is a single byte char or latin-1, call
13869 try_font_list with PREFER_FACE_FAMILY 1.
13870
138712002-09-21 Richard M. Stallman <rms@gnu.org>
13872
13873 * window.c (select_window_1): Don't select frame.
13874 Set frame's selected window only when frame itself is selected.
13875 (Fselect_window): Doc fix.
13876
138772002-09-18 Kim F. Storm <storm@cua.dk>
13878
13879 * process.c (make-network-process): Doc fix (there is no
13880 network-server-log-function hook).
13881
138822002-09-18 Richard M. Stallman <rms@gnu.org>
13883
13884 * print.c (print): Clear out the unused parts of Vprint_number_table.
13885 (syms_of_print): Doc fix for `print-number-table'.
13886
13887 * unexelf.c (unexec): Undo previous change.
13888
138892002-09-17 Andreas Schwab <schwab@suse.de>
13890
13891 * m/alpha.h [LINUX]: Don't define DATA_START.
13892
138932002-09-16 Dave Love <fx@gnu.org>
13894
13895 * unexelf.c (unexec): Deal with .got, reinstating change from
13896 25-08-1999.
13897
138982002-09-13 Richard M. Stallman <rms@gnu.org>
13899
13900 * s/sol2-6.h (UNEXEC): Comment out definition.
13901
13902 * unexsol.c (unexec): Don't downcase first letter of error msg.
13903
13904 * xfaces.c (Fcolor_supported_p): Just one arg is required.
13905
139062002-09-12 Markus Rost <rost@math.ohio-state.edu>
13907
13908 * unexsol.c: Include buffer.h, charset.h, coding.h.
13909
139102002-09-11 Richard M. Stallman <rms@gnu.org>
13911
13912 * unexsol.c: Don't use report_file_error; do it by hand
13913 using dlerror.
13914
13915 * process.c (wait_reading_process_input, both versions):
13916 Before calling turn_on_atimers, call stop_polling.
13917
13918 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
13919
13920 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
13921 we go to too_near_end, call clear_glyph_matrix.
13922 (redisplay_window): After make_cursor_line_fully_visible,
13923 call clear_glyph_matrix and bypass `goto done'.
13924
13925 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
13926 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
13927
139282002-09-10 Richard M. Stallman <rms@gnu.org>
13929
13930 * fileio.c (Fdo_auto_save): Catch error making directory.
13931 Only call push_message if we need to.
13932 At the same time, make an unwind-protect to pop it.
13933 Rename local message_p to old_message_p.
13934 (do_auto_save_make_dir, do_auto_save_eh): New functions.
13935 (do_auto_save_unwind): Don't call pop_message.
13936
13937 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
13938
13939 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
13940
13941 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
13942
13943 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
13944
139452002-09-10 Stefan Monnier <monnier@cs.yale.edu>
13946
13947 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
13948 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
13949 (re_match_2_internal): Be more careful with infinite loops.
13950
139512002-09-10 Kim F. Storm <storm@cua.dk>
13952
13953 * macros.c (end_kbd_macro): New function.
13954 (Fend_kbd_macro): Use it.
13955
13956 * macros.h (end_kbd_macro): Declare extern.
13957
13958 * keyboard.c (Fdiscard_input): If defining keyboard macro,
13959 end and save it instead of discarding it.
13960
139612002-09-09 Markus Rost <rost@math.ohio-state.edu>
13962
13963 * s/sol2-6.h: Fix typo. Add comment.
13964
139652002-09-09 Richard M. Stallman <rms@gnu.org>
13966
13967 * regex.c (regnum_t): Use signed int, not unsigned int.
13968
13969 * s/sol2-6.h: New file.
13970
13971 * s/sol2-5.h (UNEXEC): Definition deleted.
13972
139732002-09-08 Kim F. Storm <storm@cua.dk>
13974
13975 * macros.c (executing_macro_index): Change type to EMACS_INT.
13976 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
13977
13978 * macros.h (executing_macro_index): Change type to EMACS_INT.
13979
139802002-09-06 Richard M. Stallman <rms@gnu.org>
13981
13982 * casetab.c (set_case_table): Make canon table point to eqv table.
13983
139842002-09-06 Juanma Barranquero <lektu@terra.es>
13985
13986 * coding.c (syms_of_coding): Fix spacing.
13987
13988 * composite.c (Fcompose_region_internal)
13989 (Fcompose_string_internal): Likewise.
13990
13991 * data.c (Flsh): Likewise.
13992
13993 * fontset.c (Fset_fontset_font): Likewise.
13994
13995 * macfns.c (Fx_server_max_request_size): Likewise.
13996
13997 * w16select.c (syms_of_win16select): Likewise.
13998
13999 * w32select.c (syms_of_w32select): Likewise.
14000
14001 * xselect.c (syms_of_xselect): Likewise.
14002
140032002-09-05 Richard M. Stallman <rms@gnu.org>
14004
14005 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
14006 call EXTEND_RANGE_TABLE and return a proper value.
14007 (set_image_of_range): Don't call set_image_of_range_1
14008 if no TRANSLATE or if range includes all of Latin-1.
14009 Only call it for the Latin-1 part of the range.
14010 For other cases, make two separate ranges,
14011 one for the original specified characters and one for
14012 their case-conversions.
14013
140142002-09-04 Richard M. Stallman <rms@gnu.org>
14015
14016 * s/sol2-5.h (UNEXEC): Use unexsol.o.
14017
14018 * window.c (displayed_window_lines): Correct for one-off bug
14019 in HEIGHT on non-window displays.
14020
14021 * regex.c (set_image_of_range_1): New function.
14022 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
14023 Return a value to indicate running out of memory.
14024 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
14025 (extend_range_table_work_area): New subroutine.
14026 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
14027 Different calling conventions, and used from set_image_of_range{,_1}.
14028 (IMMEDIATE_QUIT_CHECK): Definitions moved.
14029
140302002-09-04 Juanma Barranquero <lektu@terra.es>
14031
14032 * makefile.w32-in: All dependencies updated.
14033
140342002-09-01 Richard M. Stallman <rms@gnu.org>
14035
14036 * unexsol.c: New file.
14037
14038 * xfns.c (Qbox): Declare external, don't define.
14039
14040 * xdisp.c (redisplay_window) <force-start case>:
14041 If point is on semi-visible last line, reposition
14042 it at previous line.
14043
14044 * alloc.c (display_malloc_warning): Use display-warning.
14045 (malloc_warning_1): Function deleted.
14046
14047 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
14048
14049 * lread.c (read1): Handle #! by skipping the line.
14050
140512002-08-31 Richard M. Stallman <rms@gnu.org>
14052
14053 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
14054 Don't include LDFLAGS.
14055 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
14056
140572002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
14058
14059 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
14060 member of x_display_info unless we compile for some window system.
14061
140622002-08-31 Kim F. Storm <storm@cua.dk>
14063
14064 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
14065 (get_window_cursor_type): Don't use them.
14066 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
14067
140682002-08-30 Kenichi Handa <handa@etl.go.jp>
14069
14070 * xdisp.c (get_next_display_element): Fix previous change.
14071
140722002-08-30 Andrew Choi <akochoi@shaw.ca>
14073
14074 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
14075 (expose_window): Use it to fix the display of overlapping
14076 rows (merge code from xterm.c).
14077
14078 * macfns.c (Qbox): Add extern declaration.
14079
140802002-08-30 Juanma Barranquero <lektu@terra.es>
14081
14082 * w32fns.c (Qbox): Make extern.
14083 (syms_of_w32fns): Remove initialization of Qbox.
14084
140852002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
14086
14087 * xfns.c (Fx_open_connection): Fix error message.
14088
140892002-08-30 Kim F. Storm <storm@cua.dk>
14090
14091 The following changes consolidates the handling of the cursor
14092 type in xdisp.c, moving duplicate code and functionality from
14093 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
14094
14095 * frame.h (enum text_cursor_kinds): Consolidated here.
14096 Added DEFAULT_CURSOR value.
14097 (struct frame) <desired_cursor, cursor_width>
14098 <blink_off_cursor, blink_off_cursor_width>: New fields.
14099 Consolidated from output_x, output_w32 and output_mac structs.
14100 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14101 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
14102
14103 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
14104 Variables consolidated here.
14105 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
14106 (Vcursor_in_non_selected_windows): Renamed from
14107 cursor_in_non_selected_windows and changed to Lisp_Object.
14108 (syms_of_xdisp): Define and staticpro new and moved variables.
14109 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
14110 consolidated here. Recognize Qhollow setting.
14111 (set_frame_cursor_types): New function to set frame cursor types
14112 based on the frame parameters.
14113 (get_window_cursor_type): New function to calculate new cursor
14114 type and width for the specified window. Based on duplicated
14115 code consolidated here.
14116 Enhancements: cursor-in-non-selected-windows may be a cursor type,
14117 check buffer-local alternate-cursor-type and blink-cursor-alist
14118 before using built-in blink off methods.
14119
14120 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
14121
14122 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
14123 (get_specified_cursor_type, get_window_cursor_type)
14124 (set_frame_cursor_types): Added prototypes.
14125
14126 * macfns.c (x_specified_cursor_type): Removed.
14127 (x_set_cursor_type): Use set_frame_cursor_types.
14128 (Qbar, Qbox): Removed.
14129 (syms_of_macfns): Don't intern or staticpro them.
14130
14131 * macterm.c (x_specified_cursor_type): Remove prototype.
14132 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14133 (x_display_and_set_cursor): Use get_window_cursor_type.
14134 Remove unused local variables cursor_non_selected, active_cursor.
14135 Redraw cursor if hbar cursor width changes.
14136 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
14137
14138 * macterm.h (enum text_cursor_kinds): Removed.
14139 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
14140 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14141 (FRAME_DESIRED_CURSOR): Macro removed.
14142
14143 * w32fns.c (Vblink_cursor_alist): Removed.
14144 (Qbar, Qhbar, Qbox, Qhollow): Removed.
14145 (syms_of_w32fns): Don't intern, staticpro, or define them.
14146 (x_specified_cursor_type): Removed.
14147 (x_set_cursor_type): Use set_frame_cursor_types.
14148
14149 * w32term.c (x_specified_cursor_type): Remove prototype.
14150 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14151 (x_display_and_set_cursor): Use get_window_cursor_type.
14152 Remove unused local variables cursor_off_state.
14153 Redraw cursor if hbar cursor width changes.
14154 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
14155
14156 * w32term.h (enum text_cursor_kinds): Removed.
14157 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
14158 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14159 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14160 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
14161 (struct w32_display_info) <x_highlight_frame>: Renamed member from
14162 w32_highlight_frame.
14163
14164 * xfns.c (Vblink_cursor_alist): Removed.
14165 (Qbar, Qhbar, Qbox, Qhollow): Removed.
14166 (syms_of_xfns): Don't intern, staticpro, or define them.
14167 (x_specified_cursor_type): Removed.
14168 (x_set_cursor_type): Use set_frame_cursor_types.
14169
14170 * xterm.c (x_specified_cursor_type): Remove prototype.
14171 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14172 (x_display_and_set_cursor): Use get_window_cursor_type.
14173 Remove unused local variables cursor_off_state.
14174 Redraw cursor if hbar cursor width changes.
14175
14176 * xterm.h (enum text_cursor_kinds): Removed.
14177 (struct output_x) <current_cursor, desired_cursor, cursor_width>
14178 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14179 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14180 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
14181 (x_specified_cursor_type): Remove prototype.
14182
141832002-08-28 Richard M. Stallman <rms@gnu.org>
14184
14185 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14186 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14187 (Vblink_cursor_alist): New variable.
14188 (syms_of_w32fns): Initialize and defvar it.
14189 (x_specified_cursor_type): Recognize Qbox for filled box.
14190 Exceptions are hollow boxes.
14191 (Qbox, Qhollow): New variables.
14192 (syms_of_w32fns): Initialize and staticpro them.
14193
14194 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14195 New macros.
14196 (struct w32_output): New fields blink_off_cursor,
14197 blink_off_cursor_width.
14198 (FRAME_CURSOR_WIDTH): New macro.
14199
14200 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14201 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14202
14203 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14204 for bar cursor.
14205
14206 * w32term.c (expose_overlaps): New function.
14207 (expose_window): Use it to fix the display of overlapping rows.
14208
142092002-08-28 Simon Josefsson <jas@extundo.com>
14210
14211 * xfns.c (Fx_open_connection): Improve help when X connection
14212 fails, xhost is insecure and xauth is better.
14213
142142002-08-28 Juanma Barranquero <lektu@terra.es>
14215
14216 * makefile.w32-in: Add missing dependencies on w32term.h and
14217 composite.h.
14218
14219 * emacs.c (USAGE1): Add missing newline.
14220
142212002-08-27 Andrew Choi <akochoi@shaw.ca>
14222
14223 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
14224
142252002-08-27 Richard M. Stallman <rms@gnu.org>
14226
14227 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14228 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14229 (Vblink_cursor_alist): New variable.
14230 (syms_of_xfns): Initialize and defvar it.
14231 (x_specified_cursor_type): Recognize Qbox for filled box.
14232 Exceptions are hollow boxes.
14233 (Qbox, Qhollow): New variables.
14234 (syms_of_xfns): Initialize and staticpro them.
14235
14236 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14237 New macros.
14238 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
14239
14240 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14241 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14242
14243 * emacs.c (main): Handle --script.
14244 (USAGE1): Mention --script.
14245 (standard_args): Define sort order for --script.
14246
142472002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
14248
14249 * xdisp.c (redisplay_updating_p): Variable removed.
14250 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
14251 New variables.
14252 (init_iterator): Don't free realized faces if
14253 inhibit_free_realized_faces is set.
14254 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
14255 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
14256 initialize Qinhibit_free_realized_faces.
14257
14258 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
14259 when iterator is adding glyphs to a glyph matrix.
14260
142612002-08-27 Kenichi Handa <handa@etl.go.jp>
14262
14263 * xdisp.c (get_next_display_element): In unibyte case, don't use
14264 octal form for such eight-bit characters that can be converted to
14265 multibyte char.
14266
142672002-08-26 Kim F. Storm <storm@cua.dk>
14268
b6189c3b
KS
14269 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
14270 foreground and background colors. From Joe Buehler.
048addec
JD
14271
142722002-08-26 Miles Bader <miles@gnu.org>
14273
14274 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
14275
142762002-08-25 Andrew Choi <akochoi@shaw.ca>
14277
14278 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
14279 defined instead of MAC_OSX.
14280
14281 * s/darwin.h (select): Define select to sys_select only if
14282 HAVE_CARBON is defined.
14283 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
14284 (DONT_REOPEN_PTY): #def it.
14285
14286 * macterm.c (XTread_socket): Remove code to call
14287 SendEventToEventTarget for keys with command modifiers when
14288 mac_command_key_is_meta is nil.
14289
142902002-08-24 Andreas Schwab <schwab@suse.de>
14291
14292 * eval.c (Fdefvar): Fix last change.
14293
142942002-08-23 Richard M. Stallman <rms@gnu.org>
14295
14296 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
14297 Record variables in load history as (defvar . VAR).
14298 (Fdefvar): Don't record in load history if no initial value.
14299 (Qdefvar): New variable.
14300 (syms_of_eval): Init and staticpro it.
14301
14302 * lread.c (syms_of_lread): Doc fix.
14303 (build_load_history): Use Fmember to see if a definition
14304 is already in the Vload_history element.
14305
14306 * process.c (Fstart_process): Remove /: from program name.
14307
14308 * emacs.c (decode_env_path): Don't add /: if file name handler
14309 has a `safe-magic' property.
14310
14311 * callproc.c (Fcall_process): Remove /: from program name.
14312
143132002-08-23 Stefan Monnier <monnier@cs.yale.edu>
14314
14315 * regex.c (PATFETCH): Remove the translating fetch.
14316 (PATFETCH_RAW): Rename to PATFETCH.
14317 (set_image_of_range): New fun.
14318 (SET_RANGE_TABLE_WORK_AREA): Use it.
14319 (regex_compile): Don't translate the pattern chars so eagerly.
14320 Only do it when inserting an `exactn' bytecode or when handling
14321 a char-range.
14322 (mutually_exclusive_p): Avoid empty statement.
14323
143242002-08-22 Kim F. Storm <storm@cua.dk>
14325
14326 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
14327 end up on a partially visible line; this reverts a specific part
14328 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
14329 display error which has been reported several times now.
14330 However it introduces the problem that changes was supposed to fix.
14331 See my comments in the source if you want to debug this further.
14332
143332002-08-20 Kenichi Handa <handa@etl.go.jp>
14334
14335 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14336
143372002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
14338
14339 * msdos.c (croak): Add `void' to definition.
14340
c1380aa6 14341 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
14342 Don't define them, they are defined in msdos.c.
14343
14344 * mem-limits.h [MSDOS]: Declare etext.
14345
14346 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
14347 `const' since CORRECT_DIR_SEPS modifies its target.
14348
143492002-08-19 Kim F. Storm <storm@cua.dk>
14350
2fb0ce67 14351 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
14352 KEEP-RECORD to avoid clearing lossage when we just want to clear
14353 the current key sequence (kmacro needs this).
14354
143552002-08-19 Kenichi Handa <handa@localhost>
14356
14357 * composite.c (run_composition_function): Call FUNC if it is fboundp.
14358
14359 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
14360 cons, return Qnil.
14361
143622002-08-17 Richard M. Stallman <rms@gnu.org>
14363
14364 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
14365
14366 * sysdep.c [!VMS]: Include sys/files.h.
14367
14368 * editfns.c (save_restriction_restore): Defend from unchained marker.
14369
14370 * buffer.c (overlays_at): Handle extending vec uniformly.
14371 (overlays_in): Handle extending vec from length 0 as in overlays_at.
14372
143732002-08-15 Andrew Choi <akochoi@shaw.ca>
14374
14375 * mac.c (init_mac_osx_environment): New function.
14376
14377 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
14378
143792002-08-14 Kim F. Storm <storm@cua.dk>
14380
14381 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
14382 executing macro before appending to it (when used from Lisp).
14383 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
14384 which is called prior to each iteration of macro (for kmacro.el).
14385 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
14386
14387 * lisp.h (Fexecute_kbd_macro): Update prototype.
14388
14389 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
14390
143912002-08-14 Kenichi Handa <handa@etl.go.jp>
14392
14393 * xselect.c (QUTF8_STRING): New variable.
14394 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
14395 (x_atom_to_symbol): Likewise.
14396 (x_get_local_selection): New argument local_request. If it is
14397 nonzero, call handler_fn with the second arg nil.
14398 (x_handle_selection_request): Call x_get_local_selection with
14399 local_request 0.
14400 (lisp_data_to_selection_data): Don't encode the string here.
14401 (Fx_get_selection_internal): Call x_get_local_selection with
14402 local_request 1.
14403 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
14404
14405 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
14406
14407 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
14408
144092002-08-13 Richard M. Stallman <rms@gnu.org>
14410
14411 * minibuf.c (Fminibufferp): New function.
14412 (syms_of_minibuf): Defsubr it.
14413 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
14414
144152002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
14416
14417 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
14418
144192002-08-12 Richard M. Stallman <rms@gnu.org>
14420
14421 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
14422 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
14423 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
14424 already.
14425
14426 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
14427
144282002-08-11 Andrew Choi <akochoi@shaw.ca>
14429
14430 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
14431 (Vmac_pass_command_to_system): New variable.
14432 (Vmac_pass_control_to_system): New variable.
14433 (do_mouse_moved): Check wp with is_emacs_window.
14434 (XTread_socket): Check window_ptr with is_emacs_window.
14435 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
14436 events back to Mac Toolbox for processing, depending on values of
14437 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
14438 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
14439 Vmac_pass_control_to_system.
14440
144412002-08-10 Kenichi Handa <handa@etl.go.jp>
14442
14443 * coding.c (unencodable_char_position): New function.
14444 (Funencodable_char_position): New function.
14445 (syms_of_coding): Defsubr Funencodable_char_position.
14446
144472002-08-10 Andrew Choi <akochoi@shaw.ca>
14448
14449 * mac.c (sys_select) [MAC_OSX]: New function.
14450
14451 * macterm.c (MakeMeTheFrontProcess): New function.
14452 (mac_initialize): Call MakeMeTheFrontProcess.
14453
14454 * s/darwin.h: Define select to sys_select.
14455
144562002-08-09 Richard M. Stallman <rms@gnu.org>
14457
14458 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
14459
144602002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
14461
14462 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
14463 end of the buffer.
14464
144652002-08-08 Ken Raeburn <raeburn@mit.edu>
14466
14467 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
14468
14469 * puresize.h (BASE_PURESIZE): Increase to 910000.
14470
144712002-08-08 Kenichi Handa <handa@etl.go.jp>
14472
14473 * coding.c (Ffind_operation_coding_system): For write-region, if
14474 VISIT is a filename, make it the target.
14475
144762002-08-07 Richard M. Stallman <rms@gnu.org>
14477
14478 * alloc.c (mark_object): Detect long lists for debugging.
14479 (mark_object_loop_halt): New variable.
14480
14481 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
14482
14483 * data.c (Fmake_variable_frame_local): Doc fix.
14484
144852002-08-01 David Ponce <david@dponce.com>
14486
14487 * w32menu.c (local_heap, local_alloc, local_free): New macros.
14488 (malloc_widget_value, free_widget_value)
14489 (w32_free_submenu_strings): Use them.
14490
14491 (push_submenu_start, push_submenu_end, push_left_right_boundary)
14492 (push_menu_pane, push_menu_item, single_keymap_panes)
14493 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
14494 (single_submenu, set_frame_menubar)
14495 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
14496
14497 (Fx_popup_menu): Don't show pop up menu until preceding one is
14498 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
14499
14500 * w32menu.c: Changes adapted from xmenu.c
14501 (set_frame_menubar): First parse all submenus,
14502 then make widget_value trees from them.
14503 Don't allocate any widget_value objects
14504 until we are done with the parsing.
14505 (parse_single_submenu): New function.
14506 (digest_single_submenu): New function.
14507 (single_submenu): Function deleted, replaced by those two.
14508
145092002-08-04 Andrew Choi <akochoi@shaw.ca>
14510
14511 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
14512 returns a valid window pointer before proceeding for keyDown and
14513 autoKey events.
14514
145152002-08-03 Andrew Choi <akochoi@shaw.ca>
14516
14517 * macterm.c (USE_CARBON_EVENTS): New macro.
14518 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
14519 (x_iconify_frame): Call CollapseWindow.
14520 (Vmac_reverse_ctrl_meta): New variable.
14521 (Vmac_wheel_button_is_mouse_2): New variable.
14522 (init_mac_drag_n_drop): New function.
14523 (mac_do_receive_drag): New function.
14524 (mac_handle_service_event): New function.
14525 (init_service_handler): New function.
14526 (mac_to_emacs_modifiers): New function.
14527 (mac_event_to_emacs_modifiers): New function.
14528 (mac_get_mouse_btn): New function.
14529 (mac_convert_event_ref): New function.
14530 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
14531 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
14532 mac_get_mouse_btn.
14533 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
14534
14535 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
14536 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
14537 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
14538 TOOL_BAR_EVENT for MAC_OS as well.
14539 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
14540 as for WINDOWS_NT.
14541 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
14542
14543 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
14544
145452002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
14546
14547 * xdisp.c (forward_to_next_line_start): Fix a condition that
14548 lead to a newline being skipped.
14549
145502002-08-02 Andrew Choi <akochoi@shaw.ca>
14551
14552 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
14553
145542002-08-01 Richard M. Stallman <rms@gnu.org>
14555
14556 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
14557
145582002-07-31 Andrew Choi <akochoi@shaw.ca>
14559
14560 * macfns.c: #undef init_process before #define-ing it.
14561
14562 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
14563 HAVE_CARBON is defined.
14564
145652002-07-31 Richard M. Stallman <rms@gnu.org>
14566
14567 * xmenu.c (set_frame_menubar): First parse all submenus,
14568 then make widget_value trees from them.
14569 Don't allocate any widget_value objects
14570 until we are done with the parsing.
14571 (parse_single_submenu): New function.
14572 (digest_single_submenu): New function.
14573 (single_submenu): Function deleted, replaced by those two.
14574
145752002-07-30 Juanma Barranquero <lektu@terra.es>
14576
14577 * w32proc.c (syms_of_ntproc): Fix docstring of
14578 `w32-get-true-file-attributes'.
14579
145802002-07-28 Richard M. Stallman <rms@gnu.org>
14581
14582 * s/hpux8.h (HPUX8): Define this before including hpux.h.
14583 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
14584
14585 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
14586
14587 * keyboard.c (make_lispy_event):
14588 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
14589 Explicitly clear up_modifier in event->modifiers.
14590
145912002-07-27 Richard M. Stallman <rms@gnu.org>
14592
14593 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
14594
14595 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14596 for bar cursor.
14597
145982002-07-26 Kenichi Handa <handa@etl.go.jp>
14599
14600 * coding.c (detect_coding_iso2022): While checking a byte sequence
14601 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
14602 it in the normal loop.
14603
146042002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
14605
14606 * xterm.c (expose_overlaps): New function.
14607 (expose_window): Use it to fix the display of overlapping rows.
14608
14609 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
14610
146112002-07-23 Ken Raeburn <raeburn@gnu.org>
14612
14613 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
14614 since it only depends on XUINT.
14615
14616 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
14617 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
14618 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
14619 Macros deleted.
3947677c 14620
77d1daf2
AS
14621 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
14622 its value over other approaches.
14623 * sysdep.c (start_of_data): Don't define the function if a macro
14624 form has been defined.
8a8e19a3 14625
048addec
JD
146262002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
14627
14628 * xdisp.c (redisplay_updating_p): New variable.
14629 (init_iterator): Don't free realized faces when
14630 redisplay_updating_p is set.
14631 (redisplay_internal): Set redisplay_updating_p while updating
14632 the display.
14633
146342002-07-23 Richard M. Stallman <rms@gnu.org>
14635
14636 * editfns.c (Fmessage): Treat "" like nil.
14637
146382002-07-23 Kenichi Handa <handa@etl.go.jp>
14639
14640 * xdisp.c (face_before_or_after_it_pos):
14641 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14642
146432002-07-22 Juanma Barranquero <lektu@terra.es>
14644
14645 * callproc.c (init_callproc) [DOS_NT]:
14646 Initialize Vshared_game_score_directory to nil.
14647 (syms_of_callproc) [DOS_NT]: Likewise.
14648
146492002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
14650
14651 * xdisp.c (display_line): Replace an abort with xassert.
14652
146532002-07-21 Richard M. Stallman <rms@gnu.org>
14654
14655 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
14656 and END_UNCHANGED when setting buffer_unchanged_p.
14657 Use current_matrix_up_to_date_p to decide whether to use
14658 try_cursor_movement.
14659
14660 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
14661
14662 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
14663
14664 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
14665 Set to nil if dir does not exist.
14666 (syms_of_callproc): Init unconditionally and simply.
14667
14668 * buffer.c (Fbuffer_list): Doc fix.
14669
146702002-07-21 Ken Raeburn <raeburn@gnu.org>
14671
14672 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
14673
14674 * buffer.c (mmap_realloc): When shrinking, make sure number of
14675 pages to unmap is rounded towards zero.
14676
14677 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
14678 (XSETINT): Deleted.
14679
14680 * m/att3b.h (XINT): Don't define.
14681 (VALBITS, VALMASK, XTYPE): Deleted.
14682 (DATA_SEG_BITS): Define.
14683 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
14684 ARRAY_MARK_FLAG): Deleted.
14685 (DATA_SEG_BITS): Define.
14686 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
14687 (DATA_SEG_BITS): Define.
14688
146892002-07-20 Richard M. Stallman <rms@gnu.org>
14690
14691 * print.c (print_error_message): New args CONTEXT and CALLER.
14692 Calls changed.
14693
14694 * lisp.h (print_error_message): Declare new args.
14695
14696 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
14697 and CONTEXT to print_error_message, don't print them here.
14698 For a Quit, don't use Vsignaling_function.
14699 Call message_log_maybe_newline.
14700
14701 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
14702
147032002-07-20 Kim F. Storm <storm@cua.dk>
14704
14705 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
14706
147072002-07-19 Ken Raeburn <raeburn@gnu.org>
14708
14709 * bytecode.c (struct byte_stack): Pointers into byte string now
14710 point to const.
14711 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
14712 const.
14713 * charset.h (BCOPY_SHORT): Source pointer now points to const.
14714 * coding.c (encode_eol, detect_coding, detect_eol):
14715 (decode_coding, encode_coding, detect_coding_system):
14716 Source strings now treated as const.
14717 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
14718 modify Lisp string contents.
14719 * coding.h (decode_coding, encode_coding, detect_coding,
14720 detect_eol): Declarations updated.
14721 * composite.c (compose_chars_in_text): Treat Lisp string contents
14722 as const.
14723 * dispnew.c (safe_bcopy): Source pointer now points to const.
14724 * lisp.h (STRING_COPYIN): New macro.
14725 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
14726 (internal_with_output_to_temp_buffer): Declarations updated.
14727 * print.c (temp_output_buffer_setup):
14728 (internal_with_output_to_temp_buffer): Buffer name argument is now
14729 pointer to const.
14730 * sound.c (struct sound_device): Function pointer field "write"
14731 buffer argument now points to const.
14732 (vox_write): Buffer argument points to const.
14733 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
14734 contents as const.
14735 * sysdep.c (emacs_write): Buffer pointer now const.
14736 * term.c (encode_terminal_code): Buffer pointer now const.
14737 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
14738 (x_face_list_fonts, x_update_menu_appearance):
14739 (hash_string_case_insensitive): Treat Lisp string contents as const.
14740
147412002-07-19 Juanma Barranquero <lektu@terra.es>
14742
048addec
JD
14743 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
14744
14745 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
14746 (Ffile_name_as_directory): Fix argument name in docstring.
14747 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
14748
147492002-07-18 Richard M. Stallman <rms@gnu.org>
14750
14751 * data.c (Fdefalias): Doc fix.
14752
147532002-07-17 Dave Love <fx@gnu.org>
14754
14755 * intervals.h (text_property_stickiness): Use P_.
14756
14757 * ccl.c: Remove `emacs' conditionals.
14758 (ccl_backtrace_table): Fix size spec.
14759 (ccl_driver): Fix type errors.
14760
147612002-07-16 Ken Raeburn <raeburn@gnu.org>
14762
14763 * alloc.c (xstrdup, make_string, make_unibyte_string)
14764 (make_multibyte_string, build_string): String pointer args now
14765 point to const.
14766 * charset.c (find_charset_in_text, c_string_width):
14767 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
14768 * fileio.c (report_file_error):
14769 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
14770 (count_combining_before, count_combining_after, insert_1_both):
14771 (insert, insert_and_inherit, insert_string):
14772 (insert_before_markers, insert_before_markers_and_inherit):
14773 * lread.c (intern, oblookup, hash_string):
14774 * minibuf.c (temp_echo_area_glyphs):
14775 * search.c (fast_c_string_match_ignore_case):
14776 * sysdep.c (emacs_open, set_file_times):
14777 * xfaces.c (xstricmp):
14778 * xdisp.c (store_frame_title, string_char_and_length):
14779 (message_dolog, message2, message2_nolog, set_message): Likewise.
14780 (set_message_1): Cast message string argument to const pointer.
14781 * editfns.c (general_insert_function): Insertion function now
14782 takes pointer to const for input data.
14783 * charset.h (find_charset_in_text, c_string_width):
14784 (parse_str_as_multibyte): Declarations updated.
14785 * dispextern.h (xstricmp): Declaration updated.
14786 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
14787 (count_size_as_multibyte, count_combining_before):
14788 (count_combining_after, insert_1, insert_1_both, message_dolog):
14789 (insert, insert_and_inherit, insert_before_markers)
14790 (insert_before_markers_and_inherit, set_message, message2):
14791 (message2_dolog, build_string, make_string, make_unibyte_string):
14792 (make_multibyte_string, intern, oblookup, report_file_error):
14793 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
14794 (emacs_open, xstrdup): Declarations updated.
14795 * systime.h (set_file_times): Declaration updated.
14796
14797 * charset.c (find_charset_in_text, lisp_string_width): Use const
14798 for pointer to lisp string data.
14799 * charset.h (FETCH_STRING_CHAR_ADVANCE):
14800 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
14801 * coding.c (Ffind_coding_systems_region_interval):
14802 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
14803 (Fmake_directory_internal, Fdelete_directory):
14804 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
14805 * fontset.c (font_family_registry, fs_query_fontset):
14806 (list_fontsets):
14807 * frame.c (Fframe_parameter):
14808 * keyboard.c (cmd_error_internal):
14809 * keymap.c (Fdescribe_buffer_bindings):
14810 * lread.c (complete_filename_p, openp):
14811 * minibuf.c (Fminibuffer_complete_word):
14812 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
14813 (face_before_or_after_it_pos, next_element_from_string):
14814 (get_overlay_arrow_glyph_row, display_mode_element):
14815 (decode_mode_spec_coding):
14816 * xterm.c (same_x_server): Likewise.
14817
14818 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
14819 settings of non-existent fields.
14820
14821 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
14822 copy a lisp value.
14823
14824 * lread.c (Fintern_soft): Use string macros instead of
14825 Lisp_String fields.
14826 * keyboard.c (echo_char, parse_modifiers_uncached):
14827 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
14828 * textprop.c (validate_interval_range, interval_of): Likewise.
14829
14830 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
14831
14832 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14833 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
14834 XSTRING()->size_byte.
14835
14836 * lisp.h (SDATA, SREF): Produce rvalue.
14837 (SSET): New macro.
14838 * alloc.c (make_event_array): Use SSET for storing into a string.
14839 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
14840 a string.
14841 * casefiddle.c (casify_object): Use SSET.
14842 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14843 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
14844 address of string contents.
14845 * data.c (Faref): Use SDATA.
14846 (Faset): Use SDATA, SSET.
14847 * dired.c (directory_files_internal): Use SSET.
14848 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
14849 (Fread_file_name): Use SREF, SSET.
14850 * fns.c (concat): Use SSET.
14851 (concat, Fdelete): Use SDATA.
14852 * insdel.c (insert_from_string_1): Use SDATA.
14853 * keyboard.c (Fevent_convert_list): Use SREF.
14854 * lread.c (Fload): Use SDATA, SSET.
14855 * macfns.c (validate_x_resource_name): Use SSET.
14856 * process.c (status_message): Use SSET.
14857 * search.c (wordify): Use SDATA.
14858 (Freplace_match): Use SREF.
14859 * w32fns.c (validate_x_resource_name): Use SSET.
14860 * xfns.c (validate_x_resource_name): Use SSET.
14861 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
14862
148632002-07-16 Richard M. Stallman <rms@gnu.org>
14864
14865 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
14866
14867 * xdisp.c (reconsider_clip_changes):
14868 Don't test prevent_redisplay_optimizations_p.
14869 (redisplay_internal): Test prevent_redisplay_optimizations_p
14870 along with clip_changed in some cases.
14871 (try_window_id): Likewise.
14872 (redisplay_window): New local var buffer_unchanged_p.
14873
14874 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
14875
14876 * process.c (create_process): Test USG_SUBTTY_WORKS.
14877 (process_send_signal): Clean up handling of GID.
14878 Detect errors in ioctls meant to set GID.
14879
14880 * window.c (temp_output_buffer_show):
14881 Don't set prevent_redisplay_optimizations_p.
14882
148832002-07-15 Juanma Barranquero <lektu@terra.es>
14884
14885 * eval.c (Fdefvaralias): Add docstring argument.
14886
148872002-07-15 Ken Raeburn <raeburn@gnu.org>
14888
14889 * lisp.h (STRING_INTERVALS): Produce rvalue.
14890 (STRING_SET_INTERVALS): New macro.
14891 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
14892 * fns.c (Fstring_as_multibyte): Likewise.
14893 * intervals.c (balance_possible_root_interval, delete_interval)
14894 (create_root_interval, copy_intervals_to_string): Likewise.
14895 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
14896 instead of 0.
14897
148982002-07-14 Ken Raeburn <raeburn@gnu.org>
14899
14900 * lisp.h (STRING_SET_CHARS): New macro.
14901 (SCHARS, SBYTES): Produce rvalues.
14902 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
14903 * fns.c (concat): Likewise.
14904 * lread.c (read_vector): Likewise.
14905
3419757d 14906 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 14907 (STRING_SET_UNIBYTE): New macro.
3419757d 14908 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
14909 length of -1) changed to use STRING_SET_UNIBYTE.
14910 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14911 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
14912 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
14913 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
14914 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
14915 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
14916 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
14917 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
14918 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
14919 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
14920 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
14921 STRING_BYTES or indirection changed to SCHARS, SBYTES,
14922 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
14923 unchanged for now.
14924
149252002-07-13 Kim F. Storm <storm@cua.dk>
14926
14927 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
14928
149292002-07-12 Richard M. Stallman <rms@gnu.org>
14930
14931 * fileio.c (Fwrite_region): Doc fix.
14932
14933 * print.c (print_error_message): Don't handle Vsignaling_function here.
14934
14935 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
14936 (command_loop_1): Avoid certain actions after memory-full error.
14937
14938 * eval.c (Fsignal): Don't call cancel_hourglass.
14939 For a memory-full error, don't call Vsignal_hook_function
14940 and don't set Vsignaling_function.
14941
14942 * process.c (process_send_signal): Add abort call.
14943
149442002-07-11 Markus Rost <rost@math.ohio-state.edu>
14945
14946 * keymap.c (Fkey_binding): Fix typo.
14947
149482002-07-11 Richard M. Stallman <rms@gnu.org>
14949
14950 * alloc.c (Vmemory_full): New variable.
3419757d 14951 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
14952 Uses changed.
14953 (syms_of_alloc): Defvar them.
14954 (memory_full, buffer_memory_full): Set Vmemory_full.
14955
14956 * lisp.h (Vmemory_full): Add declaration.
14957 (current_column, indented_beyond_p): Change declaration.
14958
14959 * indent.c (last_known_column): Declare as double, not float.
14960 (current_column, current_column_1, string_display_width)
14961 (position_indentation): Return `double'.
14962 (indented_beyond_p): Arg `column' is `double'. Callers changed.
14963
14964 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
14965 (back_to_previous_visible_line_start)
14966 (reseat_at_next_visible_line_start, next_element_from_buffer):
14967 Use `double', not `float', when calling indented_beyond_p.
14968
3419757d 14969 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
14970
14971 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
14972
149732002-07-11 Juanma Barranquero <lektu@terra.es>
14974
14975 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
14976 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
14977 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
14978 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
14979 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
14980 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
14981
149822002-07-10 Juanma Barranquero <lektu@terra.es>
14983
d814862a
JB
14984 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
14985 All callers changed.
048addec
JD
14986
149872002-07-09 Stefan Monnier <monnier@cs.yale.edu>
14988
14989 * data.c (Fdefalias): Add an optional `docstring' argument.
14990 (set_internal, Fsetq_default): Use XCAR/XCDR.
14991
14992 * composite.c (HASH_VALUE, HASH_KEY):
14993 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
14994
149952002-07-09 Kenichi Handa <handa@etl.go.jp>
14996
14997 * callproc.c (Fcall_process): Fix previous change.
14998
149992002-07-07 Stefan Monnier <monnier@cs.yale.edu>
15000
15001 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
15002 Add support for hash-tables.
15003 (Ftry_completion): Return t even if the string appears multiple times.
15004
15005 * fns.c (Fnconc): Use XCDR.
15006 (Fprovide): Use CONSP and XCDR.
15007 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
15008 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
15009 (Fmake_hash_table): Accept `:size nil'.
15010 (Fmakehash): Delete: moved to subr.el.
15011 (syms_of_fns): Don't defsubr makehash.
15012
15013 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
15014 (HASH_TABLE_SIZE): Move from fns.c.
15015
150162002-07-07 Richard M. Stallman <rms@gnu.org>
15017
15018 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
15019 Instead just return 0 when there is something to be done.
15020 (try_scrolling): If make_cursor_line_fully_visible returns 0,
15021 retry scrolling as if cursor were off the bottom.
15022 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
15023 return CURSOR_MOVEMENT_MUST_SCROLL.
15024 (redisplay_window): If make_cursor_line_fully_visible returns 0,
15025 go to try_to_scroll.
15026
15027 * buffer.c (Fbuffer_local_value): Store current value into its binding
15028 so we get the up-to-date value for the binding that is loaded.
15029
15030 * eval.c (Fdefmacro): Doc fix.
15031
150322002-07-05 Dave Love <fx@gnu.org>
15033
15034 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
15035 correctly.
15036
15037 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
15038 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
15039 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
15040 CCL_LookupCharConstTbl.
15041 (syms_of_ccl): Defvar translation-hash-table-vector.
15042
150432002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15044
15045 * xdisp.c: Remove unused variable `face'.
15046
150472002-07-04 Juanma Barranquero <lektu@terra.es>
15048
15049 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
15050 obsolescence information.
15051
150522002-07-03 Andrew Choi <akochoi@shaw.ca>
15053
15054 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
15055 pattern. Search cache first.
15056 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
15057 for Japanese font.
15058 (XLoadQueryFont): Use it.
15059
150602002-07-02 Richard M. Stallman <rms@gnu.org>
15061
15062 * keymap.c (Fdefine_key): Doc fix.
15063
15064 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
15065
150662002-07-02 Juanma Barranquero <lektu@terra.es>
15067
15068 * keymap.c (syms_of_keymap): Fix typo.
15069
150702002-07-01 Andrew Choi <akochoi@shaw.ca>
15071
15072 * s/darwin.h: Define POSIX_SIGNALS.
15073
15074 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
15075 and FSRefMakePath to convert FSSpec returned with Apple Event to
15076 Posix pathname.
15077 (mac_initialize) [TARGET_API_MAC_CARBON]:
15078 Call init_required_apple_events and disable the `Quit' menu item
15079 provided automatically by the Carbon Toolbox.
15080
150812002-07-01 Dave Love <fx@gnu.org>
15082
15083 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15084 for K&R.
15085
15086 * xterm.c: Fix prototype for K&R.
15087
15088 * term.c (costs_set): Declare static, non-initialized for pcc.
15089
150902002-07-01 Richard M. Stallman <rms@gnu.org>
15091
15092 * keyboard.c (timer_last_idleness_start_time): New variable.
15093 (timer_start_idle): Set that.
15094 (read_key_sequence): Use that to reset timer_idleness_start_time
15095 to previous value.
15096
15097 * window.c (Frecenter): With arg, set optional_new_start.
15098
15099 * xdisp.c (redisplay_internal): Make optional_new_start really work.
15100
15101 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
15102 buffer for completion.
15103
151042002-06-29 Ken Raeburn <raeburn@gnu.org>
15105
15106 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
15107
151082002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15109
15110 * keyboard.c (readable_filtered_events): New function that filters
15111 FOCUS_IN_EVENT depending on parameter.
15112 (readable_events): Calls readable_filtered_events, not filtering
15113 FOCUS_IN_EVENT.
15114 (get_filtered_input_pending): New function, filtering parameter passed
15115 to readable_filtered_events.
15116 (get_input_pending): Calls get_filtered_input_pending, not filtering
15117 FOCUS_IN_EVENT.
15118 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
15119 FOCUS_IN_EVENT.
15120
15121 * xterm.h (struct x_output): Add focus_state.
15122
15123 * xterm.c (x_focus_changed): New function.
15124 (x_detect_focus_change): New function.
15125 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
15126 EnterNotify and LeaveNotify to track X focus changes.
15127
151282002-06-28 Andreas Schwab <schwab@suse.de>
15129
15130 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
15131
151322002-06-27 Kim F. Storm <storm@cua.dk>
15133
52eb0373 15134 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
15135 (mode_line_string_face_prop): New variables.
15136 (store_mode_line_string): New function.
15137 (display_mode_element): Use store_mode_line_string to
15138 add mode-line string elements to mode_line_string_list
15139 when mode_line_string_list is non-nil.
15140 (Fformat_mode_line): Now returns propertized string by
15141 default. New arg NO-PROPS to ignore properties.
15142 (decode_mode_spec): Only add two dashes for %- in propertized
15143 mode-line string.
15144 (syms_of_xdisp): Init and staticpro mode_line_string_list.
15145
151462002-06-27 Stefan Monnier <monnier@cs.yale.edu>
15147
15148 * minibuf.c (minibuffer_completion_contents): Add return type.
15149
151502002-06-27 Juanma Barranquero <lektu@terra.es>
15151
15152 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
15153
151542002-06-26 Juanma Barranquero <lektu@terra.es>
15155
15156 * fileio.c (read_file_name_cleanup): Add missing return.
15157
151582002-06-26 Richard M. Stallman <rms@gnu.org>
15159
15160 * window.c (Frecenter): Don't set force_start flag.
15161
15162 * minibuf.c (do_completion, Fminibuffer_complete_word)
15163 (Fminibuffer_completion_help): Complete just the text before point.
15164 (minibuffer_completion_contents): New function.
15165
15166 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
15167
15168 * frame.c (frames_bury_buffer): Function deleted.
15169
151702002-06-25 Miles Bader <miles@gnu.org>
15171
15172 * callint.c (Fcall_interactively): When checking to see if doprnt hit
15173 the end of callint_message, allow for a terminating '\0'.
15174
151752002-06-24 Juanma Barranquero <lektu@terra.es>
15176
52eb0373 15177 * w32select.c: Include composite.h.
048addec
JD
15178
15179 * w16select.c: Likewise.
15180
151812002-06-24 Kenichi Handa <handa@etl.go.jp>
15182
15183 * callproc.c (Fcall_process): If code detection is necessary,
15184 call detect_coding directly here.
15185
15186 * coding.c (detect_eol): Preserve coding->cmp_data.
15187
15188 * w16select.c (Fw16_get_clipboard_data):
15189 * w32fns.c (w32_to_x_font):
15190 * w32select.c (Fw32_get_clipboard_data):
15191 * xselect.c (selection_data_to_lisp_data):
15192 * xterm.c (XTread_socket): Disable composition handling.
15193
151942002-06-24 Stefan Monnier <monnier@cs.yale.edu>
15195
15196 * print.c (temp_output_buffer_setup): Kill all local variables.
15197
151982002-06-22 Stefan Monnier <monnier@cs.yale.edu>
15199
15200 * lread.c (Fread): Remove redundant and imprecise declaration.
15201
15202 * xfns.c (check_x_display_info): Use check_x_frame.
15203
15204 * .gdbinit (xprintsym): Use the new `xname' field.
15205 (xsymbol): Use it.
15206
152072002-06-22 Jason Rumney <jasonr@gnu.org>
15208
15209 * w32fns.c (file_dialog_callback): New function.
15210 (Fx_file_dialog): Allow selecting directories as well as files.
15211
152122002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15213
15214 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 15215 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
15216
152172002-06-17 Andrew Choi <akochoi@shaw.ca>
15218
15219 * macterm.c (mac_scroll_area): Set foreground and backcolor to
15220 black and white before scrolling. Restore frame background and
15221 foreground color after scrolling.
15222 (do_window_update): Call XClearWindow before calling expose_frame.
15223 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
15224 FRAME_FOREGROUND_PIXEL of frame.
15225
15226 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15227 test Mac command key as <ALT> key.
15228
152292002-06-17 Stefan Monnier <monnier@cs.yale.edu>
15230
15231 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
15232
15233 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
15234 Lookup keys in function-key-map immediately so that key-translation-map
15235 can be applied earlier.
15236 Remove function_key_possible and key_translation_possible, replaced
15237 by checking `keytran_start < t'.
15238
15239 * .gdbinit (xsymbol): Use the new `xname' field.
15240
152412002-06-17 Andrew Choi <akochoi@shaw.ca>
15242
15243 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15244 test Mac command key as <ALT> key.
15245
15246 * mac.c (do_applescript): Call initialize_applescript if necessary
15247 when first called. Dispose of result_desc only when there is no error.
15248 (Fdo_applescript): Use %d format specifier instead of %ld.
15249
152502002-06-16 Andrew Choi <akochoi@shaw.ca>
15251
15252 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
15253 of FrontWindow for cases keyDown and autoKey.
15254
15255 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
15256 Vdefault_fontset to Monaco with mac-roman coding.
15257
15258 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
15259 init_process before and after inclusion of Carbon/Carbon.h, resp.
15260
15261 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
15262 cursor_gc.
15263 (add_font_name_table_entry): New function.
15264 (init_font_name_table): Use add_font_name_table_entry; add italic,
15265 bold, and bold-italic entries for truetype fonts.
15266
15267 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
15268 for Mac too.
15269 (try_font_list) [MAC_OS]: If no font matches given registry, try
15270 fonts with any registry matching face_family.
15271 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
15272
15273 * s/darwin.h: If autoconf detects the Ncurses library, define
15274 LIBS_TERMCAP to -lncurses to use it.
15275
152762002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
15277
15278 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
15279
152802002-06-15 Richard M. Stallman <rms@gnu.org>
15281
15282 * window.c (Fset_window_configuration): Explicitly preserve
15283 the point value that new_current_buffer had at the start.
15284
152852002-06-14 Juanma Barranquero <lektu@terra.es>
15286
15287 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
15288 Fix typos.
15289
152902002-06-14 Kim F. Storm <storm@cua.dk>
15291
15292 * insdel.c (insert_1_both, insert_from_string_1)
15293 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
15294 insert happened in the end_unchanged region. Otherwise, the
15295 redisplay may be confused and duplicate the last line in the
15296 buffer [seen after save-buffer when require-final-newline==t].
15297
152982002-06-13 Jason Rumney <jasonr@gnu.org>
15299
15300 * w32.c (init_environment): Remove EMACSLOCKDIR.
15301 (stat): Swap _S_IFDIR and _S_IFREG.
15302
153032002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15304
15305 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
15306 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
15307 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
15308 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
15309 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
15310 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
15311 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
15312 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
15313 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
15314 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
15315 SELECTION_REQUEST_EVENT, selection_clear_event to
15316 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
15317 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
15318 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
15319 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
15320 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
15321 no_event to NO_EVENT.
15322
153232002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15324
15325 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
15326
153272002-06-12 Stefan Monnier <monnier@cs.yale.edu>
15328
15329 * intervals.c (textget): Don't forget to `return'.
15330 (lookup_char_property): Use XCAR/XCDR.
15331
153322002-06-12 Juanma Barranquero <lektu@terra.es>
15333
15334 * xdisp.c (Fformat_mode_line): Fix typo.
15335
153362002-06-12 Kim F. Storm <storm@cua.dk>
15337
15338 * xdisp.c (Fformat_mode_line): New function.
15339 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
15340 (store_frame_title_char, store_frame_title): Use unconditionally.
15341 (init_xdisp): Defsubr Fformat_mode_line.
15342 Initialize frame_title_buf etc. unconditionally.
15343
153442002-06-11 Stefan Monnier <monnier@cs.yale.edu>
15345
15346 * keyboard.c (read_key_sequence):
15347 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
15348 things through those maps after downcasing events.
15349 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
15350 applies after function-key-map.
15351 Make sure that keytran can be done in the middle in the sequence.
15352 Be careful not to throw away events past the one we downcase.
15353
15354 * lread.c (read_integer): Remove unused var `tem'.
15355 (read1): Fix int/Lisp_Object mixup.
15356
15357 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
15358
153592002-06-11 Richard M. Stallman <rms@gnu.org>
15360
15361 * keyboard.c (readable_events): Ignore any number of
15362 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
15363
153642002-06-09 Miles Bader <miles@gnu.org>
15365
15366 * xfaces.c (Ftty_supports_face_attributes_p): New function.
15367 (parse_rgb_list, tty_lookup_color): New functions.
15368 (tty_defined_color): Use `tty_lookup_color' to do all the work.
15369 (color_distance, Fcolor_distance): New functions.
15370 (TTY_SAME_COLOR_THRESHOLD): New macro.
15371 (Qtty_color_standard_values): New variable.
15372 (syms_of_xfaces): Initialize new vars & functions.
15373
153742002-06-08 Colin Walters <walters@verbum.org>
15375
15376 * textprop.c (Vchar_property_alias_alist): New variable.
15377 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
15378
15379 * intervals.c (lookup_char_property): New function for looking up
15380 overlay and text properties, created from textget.
15381 (textget): Use it.
15382
15383 * intervals.h (lookup_char_property): Declare.
15384 (Vchar_property_alias_alist): Declare.
15385
15386 * buffer.c (Foverlay_get): Use lookup_char_property.
15387
153882002-06-07 Sam Steingold <sds@gnu.org>
15389
15390 * xselect.c (lisp_data_to_selection_data): Fix last change:
15391 *data_ret is not a Lisp string, while unibyte_string is.
15392
153932002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
15394
15395 * xselect.c (lisp_data_to_selection_data): Fix last change:
15396 set size_ret.
15397
153982002-06-07 Andreas Schwab <schwab@suse.de>
15399
15400 * m/amdx86-64.h: New file.
15401
154022002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
15403
15404 * fns.c (Fstring_make_unibyte): Doc fix.
15405
15406 * xselect.c (lisp_data_to_selection_data): If the requested type
15407 is STRING, call string_make_unibyte to encode the selected text
15408 as a string.
15409
15410 * window.c (Fset_window_hscroll): Doc fix.
15411
154122002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15413
15414 * fileio.c (choose_write_coding_system):
15415 Call select-safe-coding-system properly.
15416
154172002-06-03 Richard M. Stallman <rms@gnu.org>
15418
15419 * xdisp.c (message_with_string): Error if STRING is not a string.
15420
15421 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
15422
15423 * fileio.c (choose_write_coding_system): Pass FILE arg to
15424 Vselect_safe_coding_system_function.
15425
154262002-06-03 Ken Raeburn <raeburn@gnu.org>
15427
15428 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
15429
154302002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
15431
15432 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
15433 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
15434 * keymap.c (describe_command): Likewise.
15435 * minibuf.c (read_minibuf): Likewise.
15436
15437 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
15438 Cast `current_column' return value to int.
15439 (back_to_previous_visible_line_start)
15440 (reseat_at_next_visible_line_start, next_element_from_buffer):
15441 Cast `indented_beyond_p' 3rd arg to float.
15442
15443 * indent.c (last_known_column): Now a float.
15444 (current_column_1, position_indentation, current_column)
15445 (string_display_width): Return float.
15446 (Fcurrent_column): Cast `current_column' return value to int.
15447 (Fcurrent_indentation): Cast `position_indentation' retval to int.
15448 (indented_beyond_p): Third arg now a float.
15449 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
15450
15451 * lisp.h (current_column): Now returns float.
15452 (indented_beyond_p): 3rd arg now a float.
15453
154542002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
15455
15456 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
15457 is Qcompound_text_with_extensions.
15458
15459 * xselect.c (lisp_data_to_selection_data): Always set selection
15460 type as string if x_encode_text returns streingp non-NULL.
15461
15462 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
15463
154642002-05-30 Richard M. Stallman <rms@gnu.org>
15465
15466 * window.c (Fset_window_configuration): Correct the handling
15467 of point in current buffer, to work with multiple windows.
15468
154692002-05-29 Colin Walters <walters@verbum.org>
15470
15471 * lread.c (Fread_from_string): Don't depend on order of evaluation
15472 for C function parameters.
15473
154742002-05-28 Richard M. Stallman <rms@gnu.org>
15475
15476 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
15477 way for blinked-off state and for a nonselected window.
15478
15479 * window.c (window_scroll_pixel_based): Don't call Fbolp;
15480 instead, see if the new start pos is at beginning of line.
15481
15482 * fileio.c (Fwrite_region): If START is a string, don't
15483 make any annotations.
15484
15485 * eval.c (syms_of_eval): Doc fix.
15486
154872002-05-28 Colin Walters <walters@debian.org>
15488
15489 * emacs.c (USAGE1): Add --no-splash.
15490 (standard_args): Ditto.
15491
154922002-05-28 Colin Walters <walters@gnu.org>
15493
15494 * lread.c (readchar_count): New variable.
15495 (readchar): Increment it.
15496 (unreadchar): Decrement it.
15497 (read_multibyte): Decrement it.
15498 (Vread_with_symbol_positions): New variable.
15499 (Vread_symbol_positions_list): New variable.
15500 (read_internal_start): New function, created from Fread and
15501 Fread_from_string. Handle Vread_symbol_positions_list and
15502 Vread_with_symbol_positions.
15503 (readevalloop, Fread, Fread_from_string): Use it.
15504 (read1): Use readchar_count to add symbol positions to
15505 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
15506 (syms_of_lread): DEFVAR_LISP and initialize them.
15507
15508 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
15509 (substitute_object_recurse, substitute_object_in_subtree)
15510 (substitute_in_interval): Prototype.
15511 (read_multibyte): Return c if it's less than zero.
15512
155132002-05-28 Kim F. Storm <storm@cua.dk>
15514
15515 * fileio.c (Fread_file_name_internal): Added brute-force
15516 speed up for using predicate file-directory-p.
15517
155182002-05-28 Kim F. Storm <storm@cua.dk>
15519
15520 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
15521 New variables.
15522 (syms_of_fileio): DEFVAR_LISP them.
15523 (read_file_name_cleanup): New unwind function.
15524 (Fread_file_name_internal): Only return completions satifying
15525 Vread_file_name_predicate. Temporarily unwind protect and rebind
15526 default-directory while checking completions against the predicate.
15527 (Fread_file_name): Added PREDICATE argument. Specbind it to
15528 Vread_file_name_predicate during completion.
15529 Call Vread_file_name_function to read the file name if non-nil.
15530
15531 * lisp.h (Fread_file_name): Now has 6 args.
15532
15533 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
15534 predicate for Fread_file_name when reading directory name.
15535 Supply Qnil for predicate in other calls to Fread_file_name.
15536
155372002-05-26 Miles Bader <miles@gnu.org>
15538
15539 * term.c (tty_capable_p): New function.
15540 * dispextern.h (tty_capable_p): New function declaration.
15541 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
15542 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
15543
155442002-05-23 Stefan Monnier <monnier@cs.yale.edu>
15545
15546 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
15547 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
15548 (Vwrite_region_annotate_functions): Docstring fix.
15549
155502002-05-23 Kim F. Storm <storm@cua.dk>
15551
15552 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
15553 phys_cursor's hpos is overwritten. This is still not completely
15554 correct, as it doesn't really make sense to use hpos at all to
15555 get the cursor glyph (as that is relative to the width of the
15556 characters on the line, which may have changed during the update).
15557
155582002-05-22 Jason Rumney <jasonr@gnu.org>
15559
15560 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
15561 Lisp_Object.
15562 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
15563 Use modified enumfont_t struct.
15564
15565 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15566
15567 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
15568 Handle the `hbar' cursor type.
15569 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15570
15571 * w32fns.c (Qhbar): New variable.
15572 (x_specified_cursor_type): Use it.
15573
155742002-05-21 Ken Raeburn <raeburn@gnu.org>
15575
15576 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
15577 now, when the address is needed.
15578
155792002-05-21 Colin Walters <walters@gnu.org>
15580
15581 * Makefile.in (shortlisp): Add font-core.el.
15582
155832002-05-20 Richard M. Stallman <rms@gnu.org>
15584
15585 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
15586
15587 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
15588 equivalent key bindings here.
15589
155902002-05-20 Ken Raeburn <raeburn@gnu.org>
15591
15592 Change symbol structure to contain a lisp object for the symbol
15593 name:
15594 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
15595 object field named "xname".
15596 (SYMBOL_NAME): New macro.
15597 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
15598 name field.
15599 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
15600 (mark_object, gc_sweep): Use symbol xname field and XSTRING
15601 instead of name field.
15602 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
15603 SYMBOL_NAME instead of XSYMBOL and name field.
15604 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
15605 instead of XSYMBOL and name field.
15606 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
15607 and SYMBOL_NAME instead of XSYMBOL and name field.
15608 * coding.c (Fread_coding_system, code_convert_region1)
15609 (code_convert_string1, code_convert_string_norecord)
15610 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
15611 XSYMBOL and name field.
15612 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
15613 (Fmake_variable_buffer_local, Fmake_local_variable)
15614 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
15615 of XSYMBOL and name field.
15616 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
15617 XSYMBOL and name field.
15618 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
15619 instead of XSYMBOL and name field.
15620 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
15621 XSYMBOL and name field.
15622 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
15623 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15624 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
15625 instead of XSYMBOL and name field.
15626 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
15627 (parse_modifiers, apply_modifiers, Fevent_convert_list)
15628 (parse_solitary_modifier, Fexecute_extended_command):
15629 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15630 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
15631 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
15632 of XSYMBOL and name field.
15633 (describe_command, describe_translation): Use SYMBOL_NAME and
15634 assignment instead of XSYMBOL and name field and XSETSTRING.
15635 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
15636 instead of XSYMBOL and name field.
15637 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
15638 name field and XSETSTRING.
15639 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15640 of XSYMBOL and name field.
15641 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
15642 assignment instead of XSYMBOL and name field and XSETSTRING.
15643 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
15644 XSTRING instead of XSYMBOL and name field.
15645 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
15646 and XSTRING instead of XSYMBOL and name field.
15647 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
15648 and XSTRING instead of XSYMBOL and name field.
15649 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
15650 XSTRING instead of XSYMBOL and name field.
15651 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15652 of XSYMBOL and name field.
15653 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
15654 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15655
156562002-05-19 Ken Raeburn <raeburn@gnu.org>
15657
15658 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
15659 and XCDR real rvalues in most configurations.
15660
15661 * buffer.c (fix_overlays_in_range, fix_overlays_before):
15662 Don't take the address of the cdr part of a cons cell; instead, track
15663 the parent cell and call XSETCDR, or set the variable for the head
15664 of the list if we haven't started down the list yet.
15665
156662002-05-19 Richard M. Stallman <rms@gnu.org>
15667
15668 * doc.c (reread_doc_file): Don't ask for confirmation.
15669
156702002-05-18 Jason Rumney <jasonr@gnu.org>
15671
15672 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
15673 (xbm_load_image): Use it.
15674 (xbm_load): Ditto.
15675 (xbm_read_bitmap_data): Reverted to xfns.c version.
15676 From David Ponce <david@dponce.com>.
15677
156782002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
15679
15680 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
15681 2.02 and later.
15682
156832002-05-16 Juanma Barranquero <lektu@terra.es>
15684
15685 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
15686
156872002-05-15 Stefan Monnier <monnier@cs.yale.edu>
15688
15689 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
15690 meaningful test.
15691 (read_char_minibuf_menu_prompt): Fix typo.
15692
156932002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
15694
15695 * eval.c (Fcommandp): Doc fix.
15696
156972002-05-13 Stefan Monnier <monnier@cs.yale.edu>
15698
15699 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
15700 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
15701 (Fset_keymap_parent): Gcpro a bit more.
15702 (access_keymap): Gcpro around meta_map call and around the main loop.
15703 (get_keyelt): Gcpro when following indirect references.
15704 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
15705 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
15706 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
15707 Remove useless ad-hoc remap code.
15708
157092002-05-13 Richard M. Stallman <rms@gnu.org>
15710
15711 * search.c (search_buffer): Give up boyer moore search if inverse
15712 translation change charset_base.
15713
157142002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
15715
15716 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
15717 characters is carried over from the previous block of text, adjust
15718 coding->produced to account for the extra character.
15719
157202002-05-11 Andreas Schwab <schwab@suse.de>
15721
15722 * coding.c (intersection): Keep the elements of the returned list
15723 in the same order as in the first list.
15724
157252002-05-11 Kim F. Storm <storm@cua.dk>
15726
3419757d 15727 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
15728 only update cmm_size if realloc actually succeeds.
15729 Testing with initial size of 2 elements revealed that using
15730 realloc on GNU/Linux would cause a random trap in xmalloc
15731 later on, so I rewrote the code to use malloc/bcopy/free instead
15732 of realloc.
15733
157342002-05-10 Jason Rumney <jasonr@gnu.org>
15735
15736 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
15737
157382002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
15739
15740 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
15741 parens, to ensure correct evaluation order.
15742
157432002-05-10 Kim F. Storm <storm@cua.dk>
15744
15745 * keymap.c (Vemulation_mode_map_alists): New variable.
15746 (syms_of_keymap): DEFVAR_LISP it.
15747 (current_minor_maps): Process keymap alists in that list before
15748 minor-mode-overriding-map-alist and minor-mode-map-alist.
15749
157502002-05-09 Richard M. Stallman <rms@gnu.org>
15751
15752 * search.c (Freplace_match): Doc fix.
15753
157542002-05-09 Kim F. Storm <storm@cua.dk>
15755
15756 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15757 Enlarge cursor rectangle drawn around image with non-zero relief.
15758
15759 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
15760 Enlarge cursor rectangle drawn around image with non-zero relief.
15761
15762 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15763 Enlarge cursor rectangle drawn around image with non-zero relief.
15764
157652002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
15766
15767 * xselect.c (lisp_data_to_selection_data): Don't set selection
15768 type if comes from the Lisp object's car. If the selection
15769 contains a pure ASCII text, always return QSTRING as its type.
15770
157712002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15772
15773 * mac.c (mac-cut-function): Doc fix.
15774
157752002-05-05 Richard M. Stallman <rms@gnu.org>
15776
15777 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
15778
157792002-05-04 Jason Rumney <jasonr@gnu.org>
15780
15781 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
15782 for event-click-count.
15783
15784 * process.c (init_process): Only add server subfeature if we can
15785 use non-blocking I/O.
15786
157872002-05-04 Andrew Choi <akochoi@shaw.ca>
15788
15789 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
15790 repeatedly.
15791
157922002-05-03 Jason Rumney <jasonr@gnu.org>
15793
15794 * process.c (Fmake_network_process): Only support server sockets
15795 when we can make them non-blocking.
15796
15797 * s/ms-w32.h (HAVE_SELECT): Define.
15798
15799 * w32.h (FILE_NDELAY): New flag.
15800
15801 * w32.c (sys_getpeername, fcntl): New functions.
15802 (_sys_read_ahead): Temporarily block on non-blocking sockets.
15803
15804 * w32proc.c: include sys/file.h.
15805
158062002-05-03 Colin Walters <walters@verbum.org>
15807
15808 * callproc.c (Vgame_score_directory): Renamed to
15809 Vshared_game_score_directory.
15810
158112002-04-30 Richard M. Stallman <rms@gnu.org>
15812
15813 * s/gnu.h [emacs]: Include stdio.h.
15814 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
15815
15816 * eval.c (do_autoload): Error if called while preparing to dump.
15817
15818 * fns.c (Frequire): Error if need to load while preparing to dump.
15819
158202002-04-28 Colin Walters <walters@verbum.org>
15821
15822 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
15823 Default to "~/.emacs.d/games".
15824
158252002-04-29 Stefan Monnier <monnier@cs.yale.edu>
15826
15827 * lread.c (openp): Change arg exec_only to predicate.
15828 (build_load_history): Use XCAR/XCDR.
15829 (Flocate_file_internal): New fun.
15830 (syms_of_lread): Defsubr it.
15831 (Fload): Update call to openp.
15832
15833 * lisp.h (openp): Update prototype.
15834
15835 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
15836 * w32proc.c (sys_spawnve):
15837 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
15838 * w32.c (check_windows_init_file):
15839 * sound.c (Fplay_sound_internal):
15840 * process.c (Fstart_process):
15841 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
15842 * mac.c (run_mac_command):
15843 * emacs.c (init_cmdargs):
15844 * callproc.c (Fcall_process): Update call to openp.
15845
15846 * textprop.c (remove_properties): Don't use XCAR without CONSP.
15847
15848 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
15849
158502002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15851
15852 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
15853 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
15854
158552002-04-28 Richard M. Stallman <rms@gnu.org>
15856
15857 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
15858
15859 * eval.c (Fcommandp): New arg for_call_interactively.
15860 * lisp.h (Fcommandp): Declare new arg.
15861
158622002-04-28 Jason Rumney <jasonr@gnu.org>
15863
15864 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
15865
15866 * w32.c (stat, fstat): Use file index information to generate
15867 inodes for directories where available.
15868
158692002-04-26 Andrew Choi <akochoi@shaw.ca>
15870
15871 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
15872 [HAVE_CARBON]: Include Mac object files.
15873
15874 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
15875 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
15876 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
15877 MAC_OSX, and MAC_OS instead of macintosh.
15878
15879 * editfns.c [MAC_OS8]: Include stdio.h.
15880
15881 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
15882
15883 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
15884 Apple Monaco.
15885
78819ebb 15886 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
15887 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
15888 calling select.
15889
15890 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
15891
15892 * tparam.c [MAC_OSX]: Don't define BC and UP.
15893
15894 * config.in [HAVE_CARBON]: Add.
15895
15896 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
15897 Move here from mac/src and mac/inc.
15898
15899 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
15900
159012002-04-26 Gerd Moellmann <gerd@gnu.org>
15902
15903 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
15904 Compute phys_cursor_width from the x position returned
15905 by x_draw_glyhs, which is cheaper.
15906 (x_display_and_set_cursor): Compute the buffer-local value
15907 of `cursor-in-non-selected-windows' only when needed.
15908
159092002-04-25 Gerd Moellmann <gerd@gnu.org>
15910
15911 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
15912 cursor on a stretch glyph has a width that depends on
15913 x_stretch_cursor_p.
15914
159152002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15916
15917 * abbrev.c (abbrev-start-location): Doc fix.
15918
15919 * indent.c (Fvertical_motion): Fix last change.
15920
159212002-04-25 Gerd Moellmann <gerd@gnu.org>
15922
15923 * indent.c (Fvertical_motion): Move to the start of the line
15924 containing PT before moving up or down.
15925
159262002-04-24 Gerd Moellmann <gerd@gnu.org>
15927
15928 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
15929 case of writing a whole row, more or less analogous to the case of
15930 writing only parts of a row.
15931
15932 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
15933 0 for NO_CURSOR.
15934
15935 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
15936
159372002-04-23 Colin Walters <walters@verbum.org>
15938
15939 * buffer.c (syms_of_buffer): Doc fix.
15940
159412002-04-23 Gerd Moellmann <gerd@gnu.org>
15942
15943 * xterm.c (notice_overwritten_cursor): Handle the special case
15944 of the cursor being in the first blank non-text line at the
15945 end of a window.
15946
15947 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15948 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15949 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
15950 bar cursors only, to make phys_cursor_width contain what its name
15951 suggests.
15952 (notice_overwritten_cursor): Consider the cursor image erased if
15953 the output area intersects the cursor image in y-direction.
15954
159552002-04-23 Simon Marshall <simon@gnu.org>
15956
15957 * xfns.c (x_set_mouse_color): Change default for cross_cursor
15958 to XC_hand2.
15959
159602002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15961
15962 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
15963
159642002-04-22 Kim F. Storm <storm@cua.dk>
15965
15966 * textprop.c (remove_properties): Fixed trap for malformed plist.
15967
159682002-04-22 Richard M. Stallman <rms@gnu.org>
15969
15970 * cmds.c (Fend_of_line): Handle intangible text in mid line.
15971
15972 * window.c (make_window): Initialize height_fixed_p,
15973 last_cursor_off_p, and p->cursor_off_p slots.
15974
159752002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15976
15977 * fns.c (use-dialog-box): Doc fix.
15978
159792002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15980
15981 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
15982 variables `row', `i' and `area'.
15983 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
15984 toolkit library.
15985
159862002-04-19 Stefan Monnier <monnier@cs.yale.edu>
15987
15988 * xfaces.c (clear_font_table): Don't free the default font of
15989 a frame even if it's on another display.
15990 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
15991 that could be Qt.
15992
159932002-04-19 Juanma Barranquero <lektu@terra.es>
15994
15995 * indent.c (Fmove_to_column): Remove unused local variable
15996 `next_boundary_byte'.
15997 (current_column_1): Likewise.
15998
159992002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
16000
16001 * msdos.c (Qhbar): New variable.
16002 (syms_of_msdos): Intern and staticpro it.
16003 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
16004 cursor type.
16005
160062002-04-19 Dave Lambert <dlambert@acm.org>
16007
16008 Theses change implement an underscore-like (`hbar') cursor.
16009
16010 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
16011
16012 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
16013 Handle the `hbar' cursor type.
16014 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
16015
16016 * xfns.c (Qhbar): New variable.
16017 (syms_of_xfns): Intern and staticpro it.
16018 (x_specified_cursor_type): Handle `hbar' cursor.
16019
16020 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
16021 not defined.
16022
160232002-04-18 Richard M. Stallman <rms@gnu.org>
16024
16025 * textprop.c (remove_properties): New arg LIST allows scanning
16026 either a list or a plist.
16027 (interval_has_some_properties_list): New function, like
16028 interval_has_some_properties using list instead of plist.
16029 All callers changed.
16030 (Fremove_list_of_text_properties): New function.
16031 (syms_of_textprop): Defsubr it.
16032
160332002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
16034
16035 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
16036
160372002-04-17 Juanma Barranquero <lektu@terra.es>
16038
16039 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
16040
160412002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
16042
16043 * window.c (coordinates_in_window): Don't report on margin area
16044 if its width is zero.
16045
160462002-04-16 Jason Rumney <jasonr@gnu.org>
16047
16048 * w32fns.c (Fx_file_dialog): Decode file name before using.
16049
16050 * w32term.c (construct_drag_n_drop): Likewise.
16051
160522002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
16053
16054 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
16055 store load-history in pure space.
16056
16057 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
16058
160592002-04-16 Stefan Monnier <monnier@cs.yale.edu>
16060
16061 * xterm.c (Qlatin_1, Qutf_8): New vars.
16062 (syms_of_xterm): Initialize them.
16063 (XTread_socket): Eliminate incorrect optimization that tried to avoid
16064 decoding the output of X*LookupString.
16065 Always use latin-1 to decode the output of XLookupString.
16066 Try Xutf8LookupString if XmbLookupString failed.
16067
16068 * region-cache.c (new_region_cache): Use BEG.
16069
160702002-04-16 Gerd Moellmann <gerd@gnu.org>
16071
16072 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
16073 configuration files.
16074 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
16075 returns 0.
16076
160772002-04-15 Andreas Schwab <schwab@suse.de>
16078
16079 * config.in: Regenerated using autoheader.
16080
16081 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
16082 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
16083 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
16084 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
16085 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
16086 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
16087 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
16088 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
16089 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
16090 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
16091 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
16092 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
16093 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
16094 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
16095 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
16096 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
16097 STACK_DIRECTION, now set by autoconf.
16098
160992002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16100
16101 * dispnew.c (marginal_area_string): Sort arguments.
16102
16103 * dispextern.h (marginal_area_string): Add prototype.
16104
161052002-04-13 Richard M. Stallman <rms@gnu.org>
16106
16107 * fileio.c (Finsert_file_contents):
16108 Don't call temp_output_buffer_setup--do just part, by hand.
16109
16110 * coding.c (run_pre_post_conversion_on_str):
16111 Don't call temp_output_buffer_setup--do just part, by hand.
16112
16113 * keyboard.c (command_loop_1): Don't call start_hourglass
16114 or cancel_hourglass when executing a macro.
16115
16116 * marker.c (count_markers): New function.
16117
16118 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
16119 grow without limit. Move recently used elements to the front.
16120
161212002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
16122
16123 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
16124
161252002-04-12 Gerd Moellmann <gerd@gnu.org>
16126
16127 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
16128 rows marginal areas.
16129 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
16130 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16131
16132 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
16133
161342002-04-12 Dave Love <fx@gnu.org>
16135
16136 * dispnew.c (marginal_area_string): New.
16137
16138 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
16139 (Qleft_margin, Qright_margin): Declare.
16140 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
16141
16142 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
16143 note_mode_line_highlight and extended.
16144
16145 * keyboard.c (Qleft_margin, Qright_margin): Declare.
16146 (make_lispy_event): Deal with mouse events in margins.
16147
161482002-04-12 Stefan Monnier <monnier@cs.yale.edu>
16149
16150 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
16151
16152 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
16153 than deactivating the mark if tmm is set to `lambda'.
16154 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
16155 Use a single event for HELP_EVENT.
16156 (Fexecute_extended_command): Save last_point_position.
16157
161582002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16159
16160 * lisp.h (Fpropertize): Add prototype.
16161
16162 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
16163
161642002-04-10 Colin Walters <walters@verbum.org>
16165
16166 * config.in: Add HAVE_SHARED_GAME_DIR.
16167
52eb0373 16168 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
16169 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
16170
161712002-04-10 Richard M. Stallman <rms@gnu.org>
16172
16173 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
16174
161752002-04-09 Stefan Monnier <monnier@cs.yale.edu>
16176
16177 * minibuf.c (read_minibuf): Use empty_string.
16178 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
16179 Short-circuit the search as soon as it "failed".
16180 (Fall_completions): Allow lambda forms and lists of strings for alist.
16181 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
16182 when require_match is nil.
16183 (Ftest_completion): Rename from `test_completion' and export to elisp.
16184 Call the predicate also when alist is a list.
16185 Obey Vcompletion_regexp_list.
16186 (do_completion, Fminibuffer_complete_and_exit): Use it.
16187 (Fassoc_string): Rename from `assoc_for_completion'.
16188 Allow list of strings as well and export to elisp.
16189
161902002-04-08 Stefan Monnier <monnier@cs.yale.edu>
16191
16192 * puresize.h (BASE_PURESIZE): Increase to 900KB.
16193
161942002-04-08 Juanma Barranquero <lektu@terra.es>
16195
16196 * w32.c (sys_accept): Don't hide variable `s'.
16197
161982002-04-05 Gerd Moellmann <gerd@gnu.org>
16199
16200 * callint.c (Fcall_interactively): Use INTEGERP instead of
16201 NUMBERP for checking Vhistory_length.
16202
162032002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16204
16205 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
16206 Doc fix to reflect it.
16207
162082002-04-04 Richard M. Stallman <rms@gnu.org>
16209
16210 * xdisp.c (display_mode_element): New arg RISKY.
16211 Disregard text props found or specified within a variable
16212 that isn't marked risky-local-variable.
16213 (Qrisky_local_variable): New variable.
16214 (syms_of_xdisp): Init and staticpro it.
16215
162162002-04-04 Stefan Monnier <monnier@cs.yale.edu>
16217
16218 * undo.c (record_point): New fun.
16219 (record_delete, record_insert): Use it.
16220
162212002-04-03 Juanma Barranquero <lektu@terra.es>
16222
16223 * doc.c (Fdocumentation): Add missing parentheses.
16224 (Fdocumentation_property): Likewise.
16225
162262002-04-03 Stefan Monnier <monnier@cs.yale.edu>
16227
16228 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
16229 data is 0, just return nil.
16230
162312002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
16232
16233 * msdos.c (syms_of_msdos): Fix last change with
16234 mouse_autoselect_window.
16235
162362002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16237
16238 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
16239 mouse_autoselect_window.
16240
162412002-04-02 Stefan Monnier <monnier@cs.yale.edu>
16242
16243 * keyboard.c (make_lispy_event): Handle unknown keysyms together
16244 with system-specific keysyms. Use it also for unknown function keys.
16245
16246 * doc.c (reread_doc_file): Return whether reload was attempted.
16247 (Fdocumentation, Fdocumentation_property): Don't try to reload
16248 if the doc is 0 and only ask once.
16249
16250 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
16251
162522002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
16253
16254 * keyboard.c (read_char): If the event was Qselect_window,
16255 restore timer_idleness_start_time to its previous value.
16256
16257 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
16258
162592002-04-01 Stefan Monnier <monnier@cs.yale.edu>
16260
16261 * region-cache.c (new_region_cache): Use BEG.
16262
16263 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
16264 Use BEG and BEG_BYTE.
16265
16266 * doc.c (get_doc_string): Return nil if the location is wrong.
16267 (reread_doc_file): New fun.
16268 (Fdocumentation, Fdocumentation_property):
16269 Call it if get_doc_string fails.
16270 (Fsnarf_documentation): Make it work for a dumped Emacs.
16271
16272 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
16273 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
16274
16275 * charset.c (Fstring): Allow 0 arguments.
16276
16277 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
16278
16279 * process.c (DATAGRAM_CONN_P, list_processes_1)
16280 (Fprocess_datagram_address, Fset_process_datagram_address)
16281 (Fset_network_process_options, server_accept_connection):
16282 Fix some int/Lisp_Object confusions (thank you union types).
16283
162842002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16285
16286 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
16287
16288 * w32term.c: Likewise.
16289 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
16290
16291 * keyboard.c (Qselect_window): New symbol.
16292 (head_table): Use it.
16293 (keys_of_keyboard): Bound select-window event to handle-select-window.
16294 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
16295
16296 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
16297 (last_window): New variable.
16298 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
16299 (note_mouse_movement): Remove reimplemented code in #if 0.
16300 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
16301 Emacs windows.
16302
16303 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
16304
163052002-03-31 Gerd Moellmann <gerd@gnu.org>
16306
16307 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
16308 Callers changed.
16309
163102002-03-30 Richard M. Stallman <rms@gnu.org>
16311
16312 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
16313 loop whenever it stops making progress.
16314
16315 * widget.c (set_frame_size): Don't call change_frame_size.
16316
163172002-03-30 Gerd Moellmann <gerd@gnu.org>
16318
16319 * dispnew.c (direct_output_for_insert):
16320 Call mark_window_display_accurate.
16321
163222002-03-29 Jason Rumney <jasonr@gnu.org>
16323
16324 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
16325
163262002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
16327
16328 * Makefile.in (lread.o): Depend on coding.h.
16329
16330 * lread.c (openp, Fload): Encode the file name before passing it
16331 to `stat', `access', and `emacs_open'.
16332 (openp): GCPRO the encoded file name. Don't recompute Lisp
16333 strings unnecessarily.
16334
163352002-03-29 Kim F. Storm <storm@cua.dk>
16336
16337 * fns.c (Flax_plist_put): Doc fix.
16338
163392002-03-28 Miles Bader <miles@gnu.org>
16340
16341 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
16342
163432002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16344
16345 * process.c (set-network-process-options): Add usage.
16346 (make-network-process): Doc fix.
16347
163482002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
16349
16350 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
16351
163522002-03-26 Richard M. Stallman <rms@gnu.org>
16353
16354 * fns.c (Fsubstring_no_properties): New function.
16355 (Flax_plist_get, Flax_plist_put): New functions.
16356 (syms_of_fns): defsubr them.
16357
16358 * xdisp.c (update_menu_bar): Test only update_mode_lines;
16359 don't test or alter w->update_mode_line.
16360
16361 * window.c (Fdisplay_buffer): Doc fix.
16362
163632002-03-24 Richard M. Stallman <rms@gnu.org>
16364
16365 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
16366
163672002-03-24 Gerd Moellmann <gerd@gnu.org>
16368
16369 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
16370 (Fdefmacro): Handle `(declare ...)'.
16371 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
16372 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
16373
163742002-03-24 Jason Rumney <jasonr@gnu.org>
16375
16376 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
16377 (xbm_file_p): Add prototypes.
16378 (xbm_format, xbm_image_p): Sync with xfns.c.
16379 (reflect_byte): New function.
16380 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
16381 (xbm_load_image): Create bitmaps with a depth of 1.
16382 (init_xfns): Enable XBM images.
16383
163842002-03-23 Jason Rumney <jasonr@gnu.org>
16385
16386 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
16387 correctly. Do not pass up_modifier to keyboard buffer.
16388
16389 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
16390
163912002-03-22 Stefan Monnier <monnier@cs.yale.edu>
16392
16393 * Makefile.in (bootstrapclean): New target.
16394 (bootstrap-temacs, bootstrap-doc): Remove.
16395 (bootstrap-emacs): Use a bog-standard `temacs'.
16396 Don't bother to build a DOC file.
16397
16398 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
16399
16400 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
16401 in temacs even if !CANNOT_DUMP.
16402 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
16403
16404 * alloc.c (check_pure_size): Only output a warning.
16405
164062002-03-22 Jason Rumney <jasonr@gnu.org>
16407
16408 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
16409 supported.
16410
16411 * w32term.c (zv_bits): Declare as short, for word alignment.
16412 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
16413 (syms_of_w32term): Define x-use-underline-position-properties.
16414
16415 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
16416 (clear_image_cache): Block input, fix logic, clear matrices in
16417 all frames that share this cache.
16418
164192002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
16420
16421 * emacs.c (main): Update the Copyright year in the blurb printed
16422 by "emacs --version".
16423
16424 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
16425
16426 * xterm.c (XTread_socket): If XK_ISO_Lock and
16427 XK_ISO_Last_Group_Lock are defined, handle keysyms between
16428 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
16429
164302002-03-21 Kim F. Storm <storm@cua.dk>
16431
16432 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
16433 menu-bar bindings in keymap and local-map properties _are_ used.
16434 But try keymap property first in accordance with 2002-01-03 patch.
16435 Added comment describing why this is not always reliable.
16436 (tool_bar_items): Ditto for tool-bar.
16437
164382002-03-21 Jason Rumney <jasonr@gnu.org>
16439
16440 * w32fns.c (x_clear_image_1): Disable color table code.
16441
164422002-03-21 Kim F. Storm <storm@cua.dk>
16443
16444 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
16445 removed the wrong version of the DEFUN macro; fixed it.
16446
16447 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
16448 Fmember rather than Fmemq).
16449 (Fprovide): Check that subfeatures is a list.
16450
16451 * process.c (QCfeature, QCdatagram): Removed variables.
16452 (QCtype, Qdatagram): New variables.
16453 (network_process_featurep): Removed function.
16454 (Fmake_network_process): Removed :feature check.
16455 Use :type 'datagram instead of :datagram t to create a datagram
16456 socket. This allows us to add other connection types (e.g. raw
16457 sockets) later in a consistent manner.
16458 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
16459 supported subfeatures for feature make-network-process.
16460 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
16461 Intern and staticpro QCtype and Qdatagram.
16462 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
16463
16464 * xfns.c: (QCtype): Remove duplicate declaration and
16465 initialization (is now declared in process.c).
16466
16467 * w32fns.c: (QCtype): Remove duplicate declaration and
16468 initialization (is now declared in process.c).
16469
164702002-03-21 Richard M. Stallman <rms@gnu.org>
16471
16472 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
16473 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
16474 when jumping to `fail' to avoid undoing reg changes in the
16475 last iteration of the loop.
16476 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
16477
16478 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
16479 Depend on process.h.
16480
164812002-03-20 Jason Rumney <jasonr@gnu.org>
16482
16483 Most of the following changes are still conditional on HAVE_IMAGES
16484 which is not set by default on Windows.
16485
16486 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
16487
16488 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
16489 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
16490 (four_corners_best, x_clear_image_1, x_clear_image)
16491 (x_alloc_image_color, postprocess_image)
16492 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
16493 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
16494 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
16495
16496 * w32gui.h (struct XImage): Define.
16497
16498 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
16499 extract mouse co-ordinates.
16500
165012002-03-20 Jason Rumney <jasonr@gnu.org>
16502
16503 * w32.c (init_winsock): Dynamically load new server and UDP
16504 socket functions.
16505 (socket_to_fd): New function.
16506 (sys_socket): Use it.
16507 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
16508 (sys_recvfrom, sys_sendto): New wrapper functions.
16509
16510 * process.c (QCfamily, QCfilter): Remove duplicate declaration
16511 and initialization.
16512
16513 * makefile.w32-in (LIBS): Remove $(WSOCK32).
16514
165152002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
16516
16517 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
16518 Don't use "sun" as a variable, it's a predefined constant on Sun
16519 machines.
16520
165212002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16522
16523 * bytecode.c (Fbyte_code): Revert last change.
16524
165252002-03-19 Kim F. Storm <storm@cua.dk>
16526
16527 * makefile.w32-in (LIBS): Add $(WSOCK32).
16528 From David Ponce <dponce@voila.fr>.
16529
165302002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16531
16532 * process.c (wait_reading_process_input): Move variables `pname'
16533 and `pnamelen' down where they are used.
16534
16535 * bytecode.c (Fbyte_code): Discard unused computed value to
16536 prevent gcc warning.
16537
16538 * lisp.h (Fplist_member): Add prototype.
16539
165402002-03-18 Kim F. Storm <storm@cua.dk>
16541
16542 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
16543 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
16544
16545 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
16546 Remove explicit GNU_LINUX settings for datagram support.
16547
165482002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16549
16550 * process.c (Fmake_network_process): Remove unused variable `sa'.
16551 Doc fix. Add usage:.
16552 (set_socket_options): Remove unused variables `optnum' and `opttype'.
16553
165542002-03-17 Richard M. Stallman <rms@gnu.org>
16555
16556 * xdisp.c (cursor_type_changed): New variable.
16557 (redisplay_internal): Redisplay all windows if cursor_type_changed.
16558 Clear it when clearing windows_or_buffers_changed.
16559 (try_cursor_movement, redisplay_window, try_window_id)
16560 (try_window_reusing_current_matrix): Test cursor_type_changed
16561 along with windows_or_buffers_changed.
16562
16563 * window.h (cursor_type_changed): New variable.
16564
16565 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
16566 not update_mode_lines, and always set it to 1.
16567
16568 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
16569 if no frames needed redrawing.
16570
165712002-03-17 Kim F. Storm <storm@cua.dk>
16572
16573 The following changes add support for network server processes,
16574 datagram connections, and local (unix) sockets.
16575
16576 * process.h (struct Lisp_Process): New member log.
16577 Doc fix: Member command used to indicate stopped network process.
16578 Doc fix: Member childp contains plist for network process.
16579 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
16580
16581 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
16582 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
16583 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
16584 New variables.
16585 (NETCONN1_P): New macro.
16586 (DATAGRAM_SOCKETS): New conditional symbol.
16587 (datagram_address): New array.
16588 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
16589 (status_message): Use concat3.
16590 (Fprocess_status): Add `listen' status to doc string. Return `stop'
16591 for a stopped network process.
16592 (Fset_process_buffer): Update contact plist for network process.
16593 (Fset_process_filter): Ditto. Don't enable input for stopped
16594 network processes. Server must listen, even if filter is t.
16595 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
16596 New functions.
16597 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
16598 (Fprocess_contact): Added KEY argument. Handle datagrams.
16599 (list_processes_1): Optionally show only processes with the query
16600 on exit flag set. Dynamically adjust column widths. Omit tty
16601 column if not needed. Report stopped network processes.
16602 Identify server and datagram network processes.
16603 (Flist_processes): New optional arg `query-only'.
16604 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
16605 (conv_lisp_to_sockaddr, set_socket_options)
16606 (network_process_featurep, unwind_request_sigio): New helper functions.
16607 (Fprocess_datagram_address, Fset_process_datagram_address):
16608 (Fset_network_process_options): New lisp functions.
16609 (Fopen_network_stream): Removed. Now defined in simple.el.
16610 (Fmake_network_process): New lisp function. Code is based on previous
16611 Fopen_network_stream, but heavily reworked with new property list based
16612 argument list, support for datagrams, server processes, and local
16613 sockets in addition to old client-only functionality.
16614 (server_accept_connection): New function.
16615 (wait_reading_process_input): Use it to handle incoming connects.
16616 Do not enable input on a new connection if process is stopped.
f63fd14e 16617 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
16618 (send_process): Handle datagram sockets.
16619 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
16620 network process is indicated by setting command field to t .
16621 (Fprocess_send_eof): No-op if datagram connection.
16622 (Fstatus_notify): Don't read input for a stream server socket or a
16623 stopped network process.
16624 (init_process): Initialize datagram_address array.
16625 (syms_of_process): Intern and staticpro new variables, defsubr new
16626 functions.
16627
166282002-03-16 Jason Rumney <jasonr@gnu.org>
16629
16630 * w32fns.c (w32_to_all_x_charsets): Return correct type in
16631 startup case.
16632
166332002-03-16 Richard M. Stallman <rms@gnu.org>
16634
16635 * xdisp.c (redisplay_internal, redisplay_windows):
16636 Use list_of_error to call internal_condition_case_1.
16637 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
16638 so as to catch all errors with no possibility of debugger redisplay.
16639 (list_of_error): New variable.
16640 (syms_of_xdisp): Init and staticpro it.
16641
16642 * print.c (print_object): Delete `\ ' from printed rep of frame.
16643
166442002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
16645
16646 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
16647 until its implementation is fixed.
16648
166492002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16650
16651 * xfns.c (png_load): Remove unused variable `gamma_str'.
16652
166532002-03-14 Richard M. Stallman <rms@gnu.org>
16654
16655 * xfns.c (x_real_positions): Handle failure in XQueryTree.
16656
166572002-03-14 Miles Bader <miles@gnu.org>
16658
16659 * intervals.c (adjust_for_invis_intang): New function.
16660 (set_point_both): Use `adjust_for_invis_intang' to do most of the
16661 work for dealing with invisible+intangible regions. Do so before
16662 and after both forward and backward movements, to handle both
16663 front-sticky and rear-sticky cases.
16664 * textprop.c (text_property_stickiness): Function moved here from
16665 `editfns.c'.
16666 * intervals.h (text_property_stickiness): New declaration.
16667 * editfns.c (char_property_eq): Function removed.
16668 (text_property_stickiness): Function moved to `textprop.c'.
16669
166702002-03-13 Jason Rumney <jasonr@gnu.org>
16671
16672 * config.in: Add STRFTIME_NO_POSIX2.
16673
16674 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
16675 and %OX when underlying strftime does not.
16676
166772002-03-13 Stefan Monnier <monnier@cs.yale.edu>
16678
16679 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
16680 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
16681 line) to avoid annoying flicker.
16682 (xm_scroll_callback): Get rid of the now unnecessary kludge.
16683 (XTread_socket): Mark it static.
16684
16685 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
16686
166872002-03-13 Kim F. Storm <storm@cua.dk>
16688
16689 * puresize.h (BASE_PURESIZE): Increase to 775000.
16690
166912002-03-12 Juanma Barranquero <lektu@terra.es>
16692
16693 * editfns.c (syms_of_editfns): Fix typo.
16694
166952002-03-12 Gerd Moellmann <gerd@gnu.org>
16696
16697 * xsmfns.c: Include stdio.h because termhooks.h needs it.
16698 Include termopt.h for interrupt_input.
16699
167002002-03-11 Andreas Schwab <schwab@suse.de>
16701
16702 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
16703
167042002-03-11 Gerd Moellmann <gerd@gnu.org>
16705
16706 * xterm.c (note_mouse_movement): Put code for
16707 x_autoselect_window_p in #if 0.
16708
16709 * lread.c (Fload): Don't assume that message_with_string uses the
16710 string it is given like a C string.
16711
167122002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16713
78819ebb 16714 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 16715
52eb0373 16716 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
16717 x_session_have_connection.
16718 (x_initialize): Add call to x_session_initialize.
16719
16720 * termhooks.h (enum event_kind): Add save_session_event.
16721
16722 * keyboard.c: Add Emacs event save_session_event.
16723
16724 * emacs.c (main): Add call to syms_of_xsmfns.
16725
78819ebb 16726 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
16727
16728 * config.in: Add HAVE_X_SM.
16729
16730 * Makefile.in (LIBXT): Add -lSM -lICE
16731 if HAVE_X_SM and not USE_X_TOOLKIT.
16732 (XOBJ): New file xsmfns.c added.
16733
16734 * xsmfns.c: New file for X session management.
16735
167362002-03-09 Jason Rumney <jasonr@gnu.org>
16737
16738 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
16739 read-only when setting modified time.
16740
167412002-03-08 Gerd Moellmann <gerd@gnu.org>
16742
16743 * xdisp.c (move_it_vertically_backward): At the end of the function,
16744 when moving forward by lines, treat terminal frames specially.
16745
16746 * keyboard.c (echo_char): Make sure to add a separator between
16747 keys even if echo_dash hasn't been called.
16748
16749 * xdisp.c: Use new string macros.
16750 (update_echo_area): Pass number of bytes to message3 instead of
16751 number of chars.
16752 (set_message_1): Don't access a string's size_byte directly.
16753 (decode_mode_spec_coding): Use number of bytes of eoltype string
16754 instead number of chars.
16755
16756 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
16757
167582002-03-08 Juanma Barranquero <lektu@terra.es>
16759
16760 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
16761 24-bit.
16762
167632002-03-06 Jason Rumney <jasonr@gnu.org>
16764
16765 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
16766
167672002-03-06 Gerd Moellmann <gerd@gnu.org>
16768
16769 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
16770 (cancel_echoing, echo_length, echo_truncate): Changed to
16771 work with new kboard definition.
16772 (echo_now): Use message3_nolog instead of message2_nolog.
16773
16774 * alloc.c (mark_kboards): Mark echo_string.
16775
16776 * keyboard.h (ECHOBUFSIZE): Removed.
16777 (struct kboard): Member echoptr removed, member echobuf renamed
16778 to echo_string.
16779
16780 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
16781 message3 instead of message2 to display the message using STRING's
16782 text properties.
16783
167842002-03-05 Andreas Schwab <schwab@suse.de>
16785
16786 * xdisp.c (hscroll_margin): Change to EMACS_INT.
16787
167882002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
16789
16790 * frame.c (default-frame-alist): Explain that setting it doesn't
16791 affect existing frames.
16792
167932002-03-05 Stefan Monnier <monnier@cs.yale.edu>
16794
16795 * indent.c (skip_invisible): Fix my brain fart.
16796
16797 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
16798
167992002-03-04 Stefan Monnier <monnier@cs.yale.edu>
16800
16801 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
16802 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
16803 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
16804 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
16805 and variables to use EMACS_INT instead of just int.
16806
16807 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
16808
168092002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
16810
16811 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
16812 environment, pass it down with corrected value.
16813
168142002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16815
16816 * lread.c (read_filtered_event): Do not call start_hourglass
16817 before returning.
16818
168192002-03-04 Juanma Barranquero <lektu@terra.es>
16820
16821 * w32term.c (x_display_and_set_cursor): Fix typo.
16822
168232002-03-03 Richard M. Stallman <rms@gnu.org>
16824
16825 * fileio.c (Fmake_temp_name): Doc fix.
16826
168272002-03-03 Gary Wong <gtw@gnu.org>
16828
16829 * termcap.c [!emacs]: Replace ospeed for building standalone
16830 libtermcap, for binary compatibility.
16831
16832 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
16833
168342002-03-03 Richard M. Stallman <rms@gnu.org>
16835
16836 * xrdb.c (file_p): Rename arg `path' to `filename'.
16837
16838 * abbrev.c (Fexpand_abbrev): Increment plist as use count
16839 only if it is an integer.
16840
16841 * xfns.c (png_load): Set screen_gamma based on f->gamma.
16842 If png_get_sRGB gives an answer, call png_set_gamma
16843 using the default image gamma value.
16844
16845 * lread.c (read1): When reading from a file, default string to
16846 multibyte only if it has some multibyte characters.
16847
16848 * print.c (print_object): Output multibyte chars 128...255
16849 using \x even if ! print_escape_multibyte.
16850
16851 * xdisp.c (display_mode_element): Move the places where
16852 bytepos, charpos, this, and lisp_string are set.
16853 Use lisp_string to set bytepos.
16854
16855 * xdisp.c (redisplay_internal):
16856 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
16857
16858 * xdisp.c (display_mode_element): Merge properties specified with
16859 :propertize onto those that come with the string.
16860
168612002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
16862
16863 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
16864 automatic-hscrolling. Users changed.
16865 <hscroll-margin>: Renamed from automatic-hscroll-margin.
16866 Users changed.
16867 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
16868
168692002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
16870
16871 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
16872
168732002-03-02 Kim F. Storm <storm@cua.dk>
16874
16875 * window.c (Fminibuffer_selected_window): New function.
16876 (syms_of_window): Defsubr it.
16877
168782002-03-01 Kim F. Storm <storm@cua.dk>
16879
16880 * window.h (struct window): New member phys_cursor_width.
16881
16882 * window.c (make_window, replace_window): Init phys_cursor_width.
16883
16884 * xterm.c (x_display_and_set_cursor): Blink box cursor using
16885 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16886
16887 * w32term.c (x_display_and_set_cursor): Blink box cursor using
16888 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16889
16890 * lisp.h (GCPRO6): New macro.
16891
16892 * process.c (Fopen_network_stream): Use GCPRO6.
16893
168942002-03-01 Kim F. Storm <storm@cua.dk>
16895
16896 * process.c (Qconnect, Qfailed): New variables.
16897 (syms_of_process): Intern and staticpro them.
16898 (Fprocess_status): Document connect and failed return values.
16899 [NON_BLOCKING_CONNECT]: New conditional.
16900 (connect_wait_mask, num_pending_connects): New variables.
16901 (status_message): Convert Qfailed status.
16902 (Fopen_network_stream): Added support for non-blocking connect.
16903 New optional args: filter, sentinel, non_blocking. Doc updated.
16904 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
16905 (deactivate_process): Handle pending non-blocking connect.
16906 (wait_reading_process_input): Poll for status of non-blocking
16907 connects. Exec sentinel directly when connect succeeds.
16908 (status_notify): Don't read process output if not yet connected.
16909
169102002-02-28 Kim F. Storm <storm@cua.dk>
16911
16912 * window.c: (minibuf_selected_window): Renamed from
16913 Vminibuf_selected_window. Users changed.
16914 (syms_of_window): Staticpro it.
16915
169162002-02-26 Kim F. Storm <storm@cua.dk>
16917
16918 The following changes add a new Vminibuf_selected_window variable
16919 which is similar to Vminibuf_scroll_window, but which is only set
16920 on entry to the minibuffer (from a non-minibuffer window):
16921
16922 * window.c: (Vminibuf_selected_window): New variable.
16923 (struct save_window_data): New member minibuf_selected_window.
16924 (Fset_window_configuration): Restore Vminibuf_selected_window.
16925 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
16926 Set minibuf_scroll_window member to nil if minibuf_level is 0.
16927 (compare_window_configurations): Compare minibuf_selected_window.
16928
16929 * window.h: (Vminibuf_selected_window): Declare extern.
16930
16931 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
16932 entry to minibuffer or on entry from a non-minibuffer window.
16933
16934 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
16935 Vminibuf_selected_window instead of Vminibuf_scroll_window.
16936
16937 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
16938 instead of Vminibuf_scroll_window when deciding in which window
16939 the region should be highlighted. Consequently, the region remains
16940 highlighteded even when a completion buffer is also displayed.
16941
169422002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
16943
16944 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
16945
16946 * xselect.c (Qcompound_text_with_extensions): Renamed from
16947 Qcompound_text_no_extensions.
16948 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
16949
169502002-02-26 Juanma Barranquero <lektu@terra.es>
16951
16952 * w32proc.c (syms_of_ntproc): Doc fix.
16953
169542002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16955
16956 * intervals.h: Include "dispextern.h" unconditionally.
16957
169582002-02-24 Jason Rumney <jasonr@gnu.org>
16959
16960 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
16961 and disp-table.elc.
16962 (lisp): Add emacs-lisp/backquote.elc.
16963
169642002-02-24 Kim F. Storm <storm@cua.dk>
16965
3419757d 16966 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
16967 The validation of the event type was too strict as it didn't
16968 allow string events; buffer names are used in bindings for
16969 menu-bar-select-buffer (see `menu-bar-update-buffers').
16970
169712002-02-23 Kim F. Storm <storm@cua.dk>
16972
16973 The following changes rework my patch of 2002-02-06 which
16974 added command remapping by entering the commands directly into
16975 the keymaps. Now, command remapping uses an explicit `remap'
16976 prefix in the keymaps, i.e. [remap COMMAND].
16977
16978 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 16979 (is_command_symbol): Remove function.
048addec
JD
16980 (Fdefine_key): No longer accept a symbol for KEY.
16981 Added validation of [remap COMMAND] argument for KEY.
16982 The DEF is no longer required to be a symbol when remapping a command.
16983 (Fremap_command): New function to remap command through keymaps.
16984 (Flookup_key): Perform command remapping initiated by
16985 Fremap_command directly for speed.
16986 (Fkey_binding): Use Fremap_command for command remapping.
16987 (where_is_internal): Handle new command remapping representation.
16988 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
16989 staticpro them. Defsubr Fremap_command.
16990
16991 * keymap.h (Fremap_command): Declare extern.
16992 (is_command_symbol): Remove extern.
16993
16994 * keyboard.c (command_loop_1): Use Fremap_command for command
16995 remapping; now try command remapping for all symbols.
16996
169972002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16998
16999 * coding.h (run_pre_post_conversion_on_str): Add prototype.
17000
170012002-02-23 Jason Rumney <jasonr@gnu.org>
17002
17003 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
17004 on the string before encoding it.
17005 (Fw32_get_clipboard_data): Run post-read-conversion on the string
17006 after decoding it.
17007
17008 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
17009
170102002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17011
17012 * w32term.c (enter_timestamp): Remove unused static variable to
17013 prevent warning.
17014
17015 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
17016
170172002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
17018
17019 * w16select.c (Fw16_get_clipboard_data): Fix last change.
17020
17021 * xselect.c (selection_data_to_lisp_data): Fix last change.
17022
170232002-02-22 Jason Rumney <jasonr@gnu.org>
17024
17025 * w32term.h (struct w32_output): New member menu_command_in_progress.
17026
17027 * w32menu.c (menubar_selection_callback): Free the menu and
17028 clear the menu_command_in_progress flag.
17029
17030 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
17031 (menu_free_timer): New variable.
17032 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
17033 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
17034 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
17035 menu command is in progress.
17036 <WM_COMMAND>: Set the menu_command_in_progress flag.
17037 Kill any menu_free_timer that is running.
17038
17039 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
17040 Call ExtTextOutA rather than ExtTextOut.
17041
170422002-02-22 Eli Zaretskii <eliz@gnu.org>
17043
17044 * puresize.h (BASE_PURESIZE): Increase to 755000.
17045
170462002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
17047
17048 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
17049 on the string before encoding it.
17050 (Fw16_get_clipboard_data): Run post-read-conversion on the string
17051 after decoding it.
17052
170532002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
17054
17055 Support for ICCCM Extended Segments in X selections:
17056
17057 * xselect.c <Qcompound_text_no_extensions>: New variable.
17058 (syms_of_xselect): Intern and staticpro it.
17059 (selection_data_to_lisp_data): Run post-read-conversion on decoded
17060 selection text.
17061 (lisp_data_to_selection_data): If next-selection-coding-system is
17062 compound-text-no-extensions, set the type of selection to be
17063 compound-text.
17064
17065 * xterm.h (x_encode_text): Update prototype.
17066
17067 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
17068 callers changed. If SELECTIONP is non-zero, run the
17069 pre-write-conversion function before encoding the selection text.
17070
170712002-02-21 Kim F. Storm <storm@cua.dk>
17072
17073 * frame.c (syms_of_frame): Change mouse-highlight default to t.
17074
17075 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
17076 Correct composing of language-change event.
17077
170782002-02-20 Kim F. Storm <storm@cua.dk>
17079
17080 * keyboard.c (menu_bar_items): Don't include keymap or local-map
17081 bindings at PT when building menu (the menu is not updated often
17082 enough for this to work reliable).
17083 (tool_bar_items): Likewise.
17084 (current_active_maps): Removed unused (and buggy) function.
17085
170862002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17087
17088 * xfns.c (gif_load): Use correct width and height for GIF images.
17089
170902002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
17091
17092 * floatfns.c (Fatan): Accept an optional second arg and call
17093 atan2 if passed 2 args.
17094
170952002-02-18 Jason Rumney <jasonr@gnu.org>
17096
17097 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
17098
170992002-02-17 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32term.c (x_autoselect_window_p): New variable.
17102 (syms_of_w32term): DEFVAR_BOOL and initialize it.
17103 (note_mouse_movement): Use it.
17104
17105 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
17106
17107 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
17108
17109 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17110 New variables.
17111 (syms_of_w32fns): Intern and staticpro them.
17112 (x_frame_parms) <"fullscreen">: New parameter.
17113 (x_fullscreen_move, x_set_fullscreen): New functions.
17114 (x_set_frame_parameters): Support Qfullscreen.
17115 (x_real_positions): Save x/y_pixels_diff frame params.
17116 (x_figure_window_size): Support full-screen frames.
17117 (Fx_create_frame): Default the fullscreen parameter.
17118
17119 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
17120 (x_fullscreen_adjust): New functions.
17121 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
17122 fullscreen. Call x_check_fullscreen_move, and set the
17123 want_fullscreen member of output_data.w32
17124 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
17125
17126 * w32term.h: New enum for FULLSCREEN_* constants.
17127 (struct w32_output): New members want_fullscreen, x_pixels_diff,
17128 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
17129 (x-fullscreen-adjust): New prototype.
17130
171312002-02-17 Kim F. Storm <storm@cua.dk>
17132
52eb0373 17133 * frame.c (Vmouse_highlight): New variable.
048addec
JD
17134 (syms_of_frame): DEFVAR_LISP it.
17135
52eb0373 17136 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 17137
048addec 17138 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 17139
048addec
JD
17140 * xterm.c (disable_mouse_highlight): Removed variable.
17141 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
17142 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17143 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
17144 and on after keyboard input.
17145 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 17146
048addec 17147 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 17148
048addec
JD
17149 * msdos.c (disable_mouse_highlight): Removed variable.
17150 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17151 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
17152 (internal_terminal_init): Initialize mouse_face_hidden.
17153 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
17154 and on after keyboard input.
4f1b1854 17155
048addec 17156 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 17157
048addec
JD
17158 * w32term.c (disable_mouse_highlight): Removed variable.
17159 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
17160 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17161 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
17162 and on after keyboard input.
17163 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 17164
048addec 171652002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 17166
048addec
JD
17167 * msdos.c (last_mouse_window): New variable.
17168 (dos_rawgetc): Fix last change--if the mouse is in the same window
17169 as recorded in last_mouse_window, don't select this window.
5cb6905d 17170
048addec 17171 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 17172
048addec
JD
17173 * msdos.c (x_autoselect_window_p): New variable.
17174 (syms_of_msdos): Defvar it.
17175 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
17176 which the last mouse movement occured, unless it is already selected.
437dfb9f 17177
048addec
JD
17178 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
17179 New variables.
17180 (syms_of_xdisp): DEVFAR them.
17181 (hscroll_window_tree): Use automatic_hscroll_margin and
17182 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 17183
048addec 171842002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 17185
048addec
JD
17186 * xterm.c (x-autoselect-window): New variable.
17187 (note_mouse_movement): Use it.
9f696a00 17188
048addec 17189 * keyboard.c: Do not include "systime.h" twice.
d57966d7 17190
048addec 171912002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 17192
bfa02563 17193 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 17194
048addec 17195 * alloc.c (NSTATICS): Increase to 1280.
74779f52 17196
048addec 171972002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 17198
048addec 17199 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 17200
048addec
JD
17201 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
17202 (Vx_super_keysym): New variables.
17203 (syms_of_xterm): DEFVAR_LISP them.
17204 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
17205 variables to determine which keys to use for the various modifiers.
a474d59c 17206
048addec 172072002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 17208
048addec
JD
17209 * window.c: (Vmode_line_in_non_selected_windows): Removed.
17210 (mode_line_in_non_selected_windows): New variable.
17211 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 17212
048addec
JD
17213 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
17214 Use mode_line_in_non_selected_windows.
17215 (mode_line_in_non_selected_windows): Declare extern.
17216 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 17217
048addec 172182002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 17219
048addec
JD
17220 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
17221 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
17222 (Fclear_this_command_keys): Doc fixes.
2d10309f 17223
048addec
JD
17224 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
17225 (update_face_from_frame_parameter): Increment face_change_count
17226 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 17227
048addec
JD
17228 * xdisp.c (QCpropertize): New variable.
17229 (mode_line_proptrans_alist): New variable.
17230 (display_mode_element): New arg PROPS; all calls changed.
17231 Implement this, for strings.
17232 Handle literal output of strings by sharing the
17233 main-line code for strings, using local var `literal'.
17234 Handle :propertize feature.
17235 (syms_of_xdisp): Initialze and staticpro QCpropertize and
17236 mode_line_proptrans_alist.
0b1e6b54 17237
048addec 172382002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 17239
048addec
JD
17240 * window.c: (Vmode_line_in_non_selected_windows): New variable.
17241 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 17242
048addec
JD
17243 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
17244 (CURRENT_MODE_LINE_FACE_ID): Use it.
17245 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 17246
048addec
JD
17247 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
17248 to get mode line face.
e17144de 17249
048addec 172502002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17251
048addec
JD
17252 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
17253 variables; cus-start.el doesn't need them anymore.
44368f8f 17254
048addec 172552002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 17256
048addec
JD
17257 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
17258 reduction. This fixes a display problem where stray newlines were
17259 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 17260
048addec 172612002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17262
048addec 17263 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 17264
048addec 17265 * xdisp.c (display_mode_lines): Fix last change.
453c5510 17266
048addec 172672002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 17268
048addec
JD
17269 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
17270 match each other.
17271 (w32_load_system_font): Prevent Cleartype fonts from loading.
17272 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 17273
048addec 172742002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 17275
048addec
JD
17276 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
17277 (CURRENT_MODE_LINE_HEIGHT): Use it.
17278 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17279
048addec
JD
17280 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
17281 (pos_visible_p, handle_face_prop): Likewise.
17282 (display_mode_lines): Likewise, but for the real selected window.
17283 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17284
048addec
JD
17285 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
17286 in non-selected windows.
17287 (realize_basic_faces): Realize it.
17288 (syms_of_term): Intern and staticpro it.
308dd672 17289
048addec 172902002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 17291
048addec
JD
17292 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
17293 Changed mail addresses to emacs-devel@gnu.org.
308dd672 17294
048addec 172952002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 17296
048addec
JD
17297 * fileio.c (Fsubstitute_in_file_name): If the file name includes
17298 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 17299
048addec 17300 * floatfns.c (Fround): Doc fix.
3c1e6b46 17301
048addec 173022002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 17303
048addec 17304 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 17305
048addec 173062002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 17307
048addec 17308 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 17309
048addec 173102002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 17311
048addec
JD
17312 * keymap.c (where_is_internal): Only check whether definition is
17313 remapped if it fulfills is_command_symbol.
0065bb74 17314
048addec 173152002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 17316
048addec 17317 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 17318
048addec 17319 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 17320
048addec 173212002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 17322
048addec
JD
17323 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
17324 defining command remapping. Doc updated.
17325 (Flookup_key): Remap command through keymap if KEY is a symbol.
17326 (is_command_symbol): New function.
17327 (Fkey_binding): Use it. New optional argument NO-REMAP.
17328 Doc updated. Callers changed. Perform command remapping via
17329 recursive call unless that arg is non-nil.
17330 (where_is_internal): New argument no_remap. Callers changed.
17331 Call recursively to find original key bindings for a remapped
17332 comand unless that arg is non-nil.
17333 (Fwhere_is_internal): New optional argument NO-REMAP.
17334 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 17335
048addec 17336 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 17337 (is_command_symbol): Add prototype.
0d8466cc 17338
048addec
JD
17339 * keyboard.c (Vthis_original_command): New variable.
17340 (syms_of_keyboard): DEFVAR_LISP it.
17341 (command_loop_1): Set it, and perform command remapping.
15fff01d 17342
048addec 173432002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 17344
048addec 17345 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 17346
048addec 173472002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 17348
048addec 17349 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 17350
048addec 173512002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 17352
048addec 17353 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 17354
048addec 173552002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 17356
048addec 17357 * filelock.c (S_ISLNK): Define if not defined.
3a232704 17358
048addec 173592002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 17360
048addec 17361 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 17362
048addec
JD
17363 * lread.c (read1): Redesign strategy for force_multibyte and
17364 force_singlebyte. Now is_multibyte records whether read_buffer
17365 is multibyte. Encountering any multibyte character makes it so.
4e02881b 17366
048addec 173672002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 17368
048addec
JD
17369 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
17370 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 17371
048addec 173722002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 17373
048addec
JD
17374 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
17375 latter never being defined on GNU/Linux.
749f499f 17376
048addec 173772002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 17378
048addec
JD
17379 * xfaces.c (realize_default_face): Don't set the weight and slant of
17380 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 17381
048addec 173822002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 17383
048addec
JD
17384 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
17385 Call cancel_hourglass unconditionally.
d0fd26dd 17386
048addec
JD
17387 * eval.c (Fsignal): Remove duplicated declaration of
17388 the variable `display_hourglass_p'.
b4c45162 17389
048addec 173902002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 17391
048addec 17392 * editfns.c (region_limit): Nicer error message.
c95eaa61 17393
048addec
JD
17394 * coding.c (decode_composition_emacs_mule):
17395 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 17396
048addec
JD
17397 * callint.c (check_mark): New arg to specify clearer error message.
17398 Callers changed.
c95eaa61 17399
048addec 174002002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 17401
048addec 17402 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 17403
048addec 174042002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 17405
048addec
JD
17406 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
17407 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
17408 Fix doc-strings.
c95eaa61 17409
048addec 174102002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 17411
048addec 17412 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 17413
048addec
JD
17414 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
17415 and scroll_up_aggressively.
c95eaa61 17416
048addec 174172002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 17418
048addec 17419 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 17420
048addec 174212002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 17422
048addec
JD
17423 * textprop.c (Fnext_property_change, Fnext_single_property_change)
17424 (Fprevious_property_change, Fprevious_single_property_change):
17425 Stay within the narrowed-buffer boundaries.
e2c3786a 17426
048addec 174272002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 17428
048addec
JD
17429 * term.c (Ftty_display_color_cells): New function.
17430 (syms_of_term): Defsubr it.
17431 (Ftty_display_color_cells, Ftty_display_color_p): Change the
17432 argument name to DISPLAY. Doc fix.
bf794306 17433
048addec
JD
17434 * dispextern.h: Add prototype for set_tty_color_mode and
17435 tty_setup_colors.
bf794306 17436
048addec 174372002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 17438
048addec
JD
17439 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
17440 If region left to draw is not what was expected, mark the frame as
17441 garbaged.
62582985 17442
048addec
JD
17443 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
17444 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 17445
048addec 174462002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 17447
048addec
JD
17448 * w32term.c (x_update_window_begin): Only hide caret if
17449 w32_use_visible_system_caret is set.
17450 (x_update_window_end): Only show caret if
17451 w32_use_visible_system_caret is set.
17452 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 17453
048addec 17454 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 17455
048addec 174562002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 17457
048addec
JD
17458 * unexelf.c (unexec): Define n so as to cause compilation error
17459 for the code where people have often written n instead of nn.
1e9a6186 17460
048addec 17461 * .gdbinit (hookpost-run): Defined.
1e9a6186 17462
048addec 174632002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 17464
048addec 17465 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 17466
048addec 174672002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 17468
048addec
JD
17469 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
17470 if fullscreen is being set.
7c75be36 17471
048addec 174722002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 17473
048addec
JD
17474 * minibuf.c (Fminibuffer_contents)
17475 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
17476 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 17477
048addec 174782002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 17479
048addec 17480 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 17481
048addec 174822002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 17483
048addec
JD
17484 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
17485 height before comparison.
17486 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 17487
048addec 174882002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 17489
048addec
JD
17490 * w32term.c (w32_system_caret_width): Remove.
17491 (w32_use_visible_system_caret): New user flag.
17492 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
17493 Windows reports a screen reader running.
17494 (x_update_window_begin): Hide the system caret.
17495 (x_update_window_end): Show the system caret.
17496 (x_display_and_set_cursor): Don't draw a cursor when
17497 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 17498
048addec
JD
17499 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
17500 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
17501 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
17502 the user requests it. Use system default width when creating.
17503 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 17504
048addec
JD
17505 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
17506 New window messages.
905cc05a 17507
048addec 175082002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 17509
048addec 17510 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 17511
048addec 175122002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 17513
048addec 17514 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 17515
048addec 175162002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 17517
048addec 17518 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 17519
048addec 175202002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 17521
048addec
JD
17522 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
17523 that Windows returns. If a double check fails, try to guess how
17524 ExtTextOut is going to act.
4d0fa4f3 17525
048addec
JD
17526 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
17527 in place of stricmp.
17528 (w32_list_synthesized_fonts): Removed.
17529 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
17530 (struct enumfont_t): New element; list.
17531 (enum_font_cb2): List all style and charset variations of a font.
17532 (Fw32_select_font): New optional argument; include_proportional.
17533 Exclude vertical fonts. Exclude proportional fonts unless
17534 include_proportional is non-nil.
17535 (w32_enable_synthesized_fonts): Change to a boolean.
17536 (Fw32_send_sys_command): Doc fix.
493faf20 17537
048addec 175382002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 17539
048addec
JD
17540 * dispnew.c (update_frame): Move the variable `tem' to the block
17541 where it is used.
4971e491 17542
048addec 175432002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 17544
048addec
JD
17545 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
17546 call to face-set-after-frame-default.
4971e491 17547
048addec 175482002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 17549
048addec
JD
17550 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
17551 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 17552
048addec 175532002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 17554
048addec
JD
17555 * window.c (enlarge_window): When exceeding size of parent,
17556 directly delete all the siblings instead of trying to resize it.
201c831a 17557
048addec 175582002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 17559
048addec 17560 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 17561
048addec 175622002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 17563
048addec 17564 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 17565
048addec 175662002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 17567
048addec
JD
17568 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
17569 is invisible. This can happen if cursor is on top line of a
17570 window, and we switch to a buffer with a header line.
d77fbc16 17571
048addec 17572 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 17573
048addec 175742002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 17575
048addec
JD
17576 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
17577 `dont_resize' only when used.
61e3b944 17578
048addec 17579 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 17580
048addec 175812002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 17582
048addec
JD
17583 * xdisp.c (display_mode_element): When computing charpos, depend
17584 on multibyteness of elt, not the text in field.
8af01033 17585
048addec 175862002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 17587
048addec
JD
17588 * buffer.c (Fkill_all_local_variables):
17589 Increment `update_mode_lines' only once.
7363986a 17590
048addec 175912002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 17592
048addec
JD
17593 * lisp.h (adjust_after_replace_noundo)
17594 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 17595
048addec 17596 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 17597
048addec 175982002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 17599
048addec
JD
17600 Support for the --color command-line argument and tty-color-mode
17601 frame parameter:
f1a85b89 17602
048addec
JD
17603 * term.c (tty_default_color_capabilities, tty_setup_colors)
17604 (set_tty_color_mode): New functions.
17605 (term_init): Call tty_default_color_capabilities.
17606 (Qtty_color_mode_alist): New variable.
17607 (syms_of_term): Intern and staticpro it.
f1a85b89 17608
048addec
JD
17609 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
17610 frames.
17611 (do_switch_frame): For termcap frames, switch the tty
17612 color mode as specified by the frame's parameters.
17613 (Qtty_color_mode): New variable.
17614 (syms_of_frame): Intern and staticpro it.
3a62677f 17615
048addec
JD
17616 * emacs.c (USAGE2): Add the --color option.
17617 (standard_args): Ditto.
72244db2 17618
048addec
JD
176192002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17620
17621 * xterm.h (struct x_output): New members want_fullscreen,
17622 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
17623 y_pixels_outer_diff.
17624 New enum for FULLSCREEN_* constants.
17625 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
17626 is NULL.
17627 (x_fullscreen_adjust): Add prototype.
3a62677f 17628
048addec
JD
17629 * emacs.c (USAGE2): Add the new full-screen arguments.
17630 (standard_args): Ditto.
3a62677f 17631
048addec
JD
17632 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17633 New variables.
17634 (syms_of_xfns): Intern and staticpro them.
17635 (x_frame_parms) <"fullscreen">: New parameter.
17636 (x_fullscreen_move, x_set_fullscreen): New functions.
17637 (x_set_frame_parameters): Support for Qfullscreen.
17638 (x_real_positions): More accurate computation of the frame position.
17639 (x_figure_window_size): Support full-screen frames.
17640 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 17641
048addec
JD
17642 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
17643 (XTread_socket) <Expose>: Call x_check_fullscreen.
17644 <ConfigureNotify>: Don't resize to fullscreen.
17645 Call x_check_fullscreen_move, and set the want_fullscreen member of
17646 output_data.x.
3a62677f 17647
048addec 176482002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 17649
048addec
JD
17650 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
17651 for mice with more than 3 buttons.
b8523839 17652
048addec
JD
17653 * w32term.c (parse_button): New parameter xbutton. Callers changed.
17654 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 17655
048addec
JD
17656 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
17657 (syms_of_w32fns): DEFVAR_BOOL it.
17658 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 17659
048addec 176602002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 17661
048addec 17662 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 17663
048addec 176642002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 17665
048addec 17666 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 17667
048addec 176682002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 17669
048addec
JD
17670 * .gdbinit (xbuffer): Remove address operator since data is now a
17671 pointer.
c93674bb 17672
048addec 176732002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 17674
048addec 17675 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 17676
048addec 17677 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 17678
048addec 176792002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 17680
048addec
JD
17681 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
17682 when checking for multiple frames.
91175673 17683
048addec 176842002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 17685
048addec
JD
17686 * window.c (delete_window): Rewrite the code for changing the
17687 selected window to handle the case where WINDOW is not a leaf.
91175673 17688
048addec 176892002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 17690
048addec
JD
17691 * process.c (send_process): Set src_multibyte to 1 after the call
17692 top setup_coding_system, not before the call.
e0fead5d 17693
048addec 176942002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 17695
048addec
JD
17696 * xmenu.c (set_frame_menubar, xmenu_show):
17697 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 17698
048addec
JD
17699 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
17700 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 17701
048addec 177022002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 17703
048addec 17704 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 17705
048addec 17706 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 17707
048addec 17708 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 17709
048addec 177102002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 17711
048addec
JD
17712 * insdel.c (make_gap_larger): Make sure buffer size does not
17713 overflow range of int.
62854fe2 17714
048addec 177152002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 17716
048addec
JD
17717 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17718 OVERLAPS_P.
656f46bb 17719
048addec 17720 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 17721
048addec
JD
17722 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
17723 to the left or to the right of the pointer, put it against
17724 the left screen edge.
17725 (x_frame_parms): Add missing braces around initializer.
036e218d 17726
048addec
JD
17727 * w32term.c (x_setup_relief_colors): Don't compute an image's
17728 background color if it doesn't have a Pixmap.
17729 (notice_overwritten_cursor): Don't depend on
17730 output_cursor and updated_area. Compare pixel coordinates with
17731 window's cursor pixel coordinates.
17732 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17733 Call notice_overwritten_cursor with new arg list.
17734 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17735 unconditionally.
17736 (x_draw_image_relief): Use predefined macro instead of
17737 constant when the value of `tool_bar_button_relief' is negative.
036e218d 17738
048addec 17739 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 17740
048addec 177412002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 17742
048addec 17743 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 17744
048addec 177452002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 17746
048addec
JD
17747 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
17748 (Fkey_binding): Try the `keymap' property map first.
17749 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
17750 minor mode bindings.
90647b07 17751
048addec 177522002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 17753
3419757d 17754 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 17755
048addec 177562002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 17757
048addec
JD
17758 * keyboard.c (read_key_sequence): Handle the keymap property
17759 before minor mode maps.
9fbc32aa 17760
048addec
JD
17761 * editfns.c (Fformat): Update thissize from field_width
17762 based on the actual width, in the string case.
036e218d 17763
048addec 177642002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 17765
048addec
JD
17766 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
17767 when used as truth value to prevent gcc warnings.
9fbc32aa 17768
048addec
JD
17769 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
17770 * w32proc.c: Include <config.h>.
9fbc32aa 17771
048addec 177722002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 17773
048addec
JD
17774 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
17775 not EMACS_INT, to make them compatible with DEFVAR_INT.
17776 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 17777
048addec 177782002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 17779
048addec
JD
17780 * print.c (print_object): Test print_escape_nonascii only for
17781 unibyte strings.
17782 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
17783 when outputting to a multibyte buffer.
9fbc32aa 17784
048addec 177852001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 17786
048addec
JD
17787 * print.c (print_object): In multibyte string, use hex escapes.
17788 Use octal only for unibyte strings.
17789 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 17790
048addec
JD
17791 * lread.c (read_escape): New arg BYTEREP for reporting whether
17792 escape forces unibyte or multibyte.
17793 (read1): When reading a string, take note of that info.
0142178a 17794
048addec 177952001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 17796
048addec
JD
17797 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
17798 comparison to test lisp value returned by Fget.
d4824a5d 17799
048addec 178002001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 17801
048addec 17802 * lisp.h (max_specpdl_size): Add declaration.
b1356234 17803
048addec 17804 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 17805
048addec
JD
17806 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
17807 Handle modifier bits. Correct typo in error message.
99e380ee 17808
048addec 178092001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 17810
048addec
JD
17811 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
17812 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
17813 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17814 Update calls to Fdefine_abbrev.
17815 (write_abbrev): Update for changed data format.
17816 Don't list "system" abbrevs.
17817 (Fexpand_abbrev): Update use count with new data format.
17818 (describe_abbrev): Update for changed data format.
17819 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 17820
048addec 17821 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 17822
048addec 17823 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 17824
048addec
JD
17825 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
17826 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 17827
048addec
JD
17828 * keymap.c (Flookup_key): Error message if key has wrong data type.
17829 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
17830 (exclude_key): New variable.
59a86c99 17831
048addec 178322001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 17833
048addec
JD
17834 * xterm.c (x_setup_relief_colors): Don't compute an image's
17835 background color if it doesn't have a Pixmap.
eb77a5f4 17836
048addec
JD
17837 * xterm.c (notice_overwritten_cursor): Don't depend on
17838 output_cursor and updated_area. Compare pixel coordinates with
17839 window's cursor pixel coordinates.
17840 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17841 Call notice_overwritten_cursor with new arg list.
17842 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17843 unconditionally.
eb77a5f4 17844
048addec
JD
17845 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
17846 height of the cursor line to the amount to scroll.
eb77a5f4 17847
048addec 178482001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 17849
048addec
JD
17850 * intervals.c (set_point_both): The position after an invisible,
17851 intangible character is not an acceptable stopping point.
bb313871 17852
048addec 178532001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 17854
048addec
JD
17855 * window.c (enlarge_window): In new preserve_before code, convert
17856 CURBEG from lisp object to integer before doing arithmetic.
6052529b 17857
048addec 178582001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 17859
048addec 17860 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 17861
048addec 178622001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 17863
048addec
JD
17864 * keyboard.c (record_char): Ignore duplicate help-echo events only
17865 separated by mouse-movement. When tracking mouse, only record
17866 first and last mouse-movement event in same window.
17867 Don't record mouse-movement events in keyboard macros.
3ce081f5 17868
048addec 178692001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 17870
048addec
JD
17871 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
17872 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 17873
048addec
JD
17874 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
17875 instead of Fstring_as_unibyte.
9fabb2f5 17876
048addec 178772001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 17878
048addec 17879 The following changes remove mocklisp support:
9fabb2f5 17880
048addec 17881 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 17882
048addec
JD
17883 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
17884 `Qmocklisp' and `Qmocklisp_arguments'.
17885 Remove prototype of syms_of_mocklisp.
2fa0eedf 17886
048addec 17887 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 17888
048addec
JD
17889 * callint.c: Do not include mocklisp.h.
17890 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 17891
048addec
JD
17892 * eval.c: Remove variables `Qmocklisp_arguments',
17893 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
17894 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
17895 Do not test for mocklisp case.
17896 (Fwhile): Remove unused variable `tem'.
17897 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 17898
048addec 17899 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 17900
048addec 17901 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 17902
048addec 17903 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 17904
048addec 179052001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 17906
048addec
JD
17907 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
17908 to the left or to the right of the pointer, put it against
17909 the left screen edge.
6108b49c 17910
048addec 179112001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 17912
048addec
JD
17913 * Makefile.in (distclean): Remove .gdbinit if we are building
17914 outside the source tree.
5eea19a4 17915
048addec 179162001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 17917
048addec 17918 * w32.c (emacs_root_dir): New function.
5eea19a4 17919
048addec 17920 * msdos.c (emacs_root_dir): New function.
5eea19a4 17921
048addec
JD
17922 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
17923 of the current drive as the fallback for default_directory.
438e57dd 17924
048addec
JD
17925 * dired.c (file_name_completion): Run the elements of
17926 completion-ignored-extensions through ENCODE_FILE.
438e57dd 17927
048addec
JD
17928 * lisp.h (scmp): Remove prototype, since it's now a static
17929 function private to dired.c.
c88e5347 17930
048addec 179312001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 17932
048addec
JD
17933 * dired.c (scmp): Function moved from minibuf.c.
17934 Delete multibyte handling--used only on encoded strings.
59ce1461 17935
048addec 17936 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 17937
048addec 17938 * fns.c (merge): Add QUIT call.
59ce1461 17939
048addec 179402001-12-18 Dave Love <fx@gnu.org>
8727d588 17941
048addec
JD
17942 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
17943 language/georgian.el.
8727d588 17944
048addec 179452001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 17946
048addec
JD
17947 * Makefile.in (lisp, shortlisp): Synchronize with changes to
17948 lisp/Makefile.in:DONTCOMPILE.
cc63037e 17949
048addec 179502001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 17951
048addec
JD
17952 * xdisp.c (window_box_height): Do not return negative values.
17953 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 17954
048addec 17955 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 17956
048addec 17957 * term.c (keys): Likewise.
deece6f5 17958
048addec 17959 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 17960
048addec 179612001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 17962
048addec
JD
17963 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
17964 patch (COMPOSING_P, not COMPOSING).
28ff4293 17965
048addec 179662001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 17967
048addec 17968 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 17969
048addec
JD
17970 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
17971 before calling decode_coding.
9b46de40 17972
048addec 17973 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 17974
048addec
JD
17975 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
17976 instead of only for COMPOSITION_DISABLED.
9b46de40 17977
048addec 179782001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 17979
048addec 17980 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 17981
048addec 17982 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 17983
048addec
JD
17984 * buffer.h (struct buffer): New field `display_error_modiff'.
17985 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 17986
048addec 17987 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 17988
048addec
JD
17989 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
17990 Call redisplay_window, but not if display_error_modiff field says no.
17991 (redisplay_window_error): New function.
17992 (displayed_buffer): New variable.
17993 (redisplay_internal, redisplay_windows): Call the new functions
17994 instead of redisplay_window directly.
2cd23960 17995
048addec 179962001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 17997
048addec 17998 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 17999
048addec 180002001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 18001
048addec 18002 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 18003 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 18004 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 18005
048addec 180062001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 18007
048addec
JD
18008 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
18009 parameter have a numeric value all the time.
f6fa0866 18010
048addec 18011 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 18012
048addec 180132001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 18014
048addec 18015 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 18016
048addec
JD
18017 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
18018 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 18019
048addec 180202001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 18021
048addec
JD
18022 * xdisp.c (move_it_vertically_backward): Change heuristic
18023 for the case that we didn't move far enough initially.
91c153e2 18024
048addec
JD
18025 * window.c (Frecenter): Simplify computation in the case of window
18026 system frames and ARG < 0; use window_box_height.
65b7d3e7 18027
048addec 180282001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 18029
048addec
JD
18030 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
18031 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 18032
048addec 180332001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 18034
048addec
JD
18035 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
18036 arg is negative.
be676094 18037
048addec 180382001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 18039
048addec
JD
18040 * m/hp800.h: Split the __hpux conditional into the parts
18041 that are right for GNU/Linux too and the parts that are not.
18042 Use the former if GNU_LINUX.
18043 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 18044
048addec 18045 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 18046
048addec 180472001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 18048
048addec
JD
18049 * macros.c, msdos.c, w16select.c: Change doc-string comments to
18050 `new style' [w/`doc:' keyword].
032a857d 18051
048addec 180522001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 18053
048addec
JD
18054 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
18055 before using.
b6270150 18056
048addec 180572001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 18058
048addec
JD
18059 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
18060 keyword].
98cbb9fa 18061
048addec 180622001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 18063
048addec 18064 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 18065
048addec 18066 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 18067
048addec 180682001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 18069
048addec 18070 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 18071 Add comment to explain where the struct came from.
048addec
JD
18072 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
18073 (add_menu_item): Process pop-up menus first to avoid memory leak.
18074 (add_menu_item, w32_menu_display_help): Use `help' field as
18075 Lisp_Object.
18076 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 18077
048addec 180782001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 18079
048addec 18080 * COPYING: Moved back.
fa336b91 18081
048addec
JD
18082 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
18083 Add parentheses around && within ||.
077907d4 18084
048addec 18085 * indent.c (compute_motion): Likewise.
aa2af83a 18086
048addec 18087 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 18088
048addec
JD
18089 * coding.c (setup_coding_system, shrink_encoding_region)
18090 (Fdecode_sjis_char): Likewise.
60a653f1 18091
048addec 180922001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 18093
048addec
JD
18094 * xdisp.c (display_mode_element): Don't read past end of string if
18095 it ends with '%'.
60a653f1 18096
048addec
JD
18097 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
18098 can hold.
60a653f1 18099
048addec
JD
18100 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
18101 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
18102 type changed to Lisp_Object.
18103 (syms_of_data): DEFVAR_LISP them.
60a653f1 18104
048addec 181052001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 18106
048addec
JD
18107 * callproc.c (init_callproc): Set Vdata_directory based on the source
18108 location whenever Emacs was run uninstalled.
60a653f1 18109
048addec 181102001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 18111
048addec
JD
18112 * config.in (HAVE_WORKING_VFORK): New #undefs.
18113 * process.c (create_process):
18114 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
18115 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
18116 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
18117 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
18118 * m/intel386.h (HAVE_VFORK): Likewise.
18119 * m/mips-siemens.h (HAVE_VFORK): Likewise.
18120 * m/mips.h (HAVE_VFORK): Likewise.
18121 * s/freebsd.h (vfork): Remove #define.
18122 * s/lynxos.h (HAVE_VFORK): Remove #undef.
18123 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 18124
048addec 181252001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 18126
048addec
JD
18127 * s/hpux10.h (random): Add undef.
18128 (HAVE_RANDOM): Define it just once.
60a653f1 18129
048addec 181302001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18131
048addec 18132 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 18133
048addec 181342001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18135
048addec
JD
18136 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
18137 scroll bars of the frame before deleting the frame itself. If the
18138 frame has a widget, delete the frame with XtDestroyWidget, and do
18139 not call XDestroyWindow before that.
60a653f1 18140
048addec 181412001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 18142
048addec 18143 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 18144
048addec 18145 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 18146
048addec 181472001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 18148
048addec
JD
18149 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
18150 excessively large.
60a653f1 18151
048addec
JD
18152 * insdel.c (make_gap_larger): New function.
18153 (make_gap_smaller): New function.
18154 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
18155 Call make_gap_smaller if arg is negative.
60a653f1 18156
048addec 181572001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18158
048addec
JD
18159 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
18160 Pass a dummy argument when calling interrupt_signal.
18161 (parse_menu_item): Mark disabled items before checking for empty def.
18162 (read_char_minibuf_menu_prompt): Make safety more visible.
18163 (read_key_sequence): Add a `first_unbound' variable.
18164 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
18165 unbound prefix as soon as we can detect it.
60a653f1 18166
048addec
JD
18167 * doc.c (Fsnarf_documentation): Add prototype.
18168 (get_doc_string): Handle negative arguments.
18169 (Fdocumentation): Use AREF and ASIZE.
18170 Move the calls to get_doc_string to a single place.
18171 Don't confuse an interactive-spec for a docstring reference.
18172 (Fdocumentation_property): Take advantage of the fact that
18173 get_doc_string now ignores the sign of the docstring position.
60a653f1 18174
048addec 18175 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 18176
048addec 181772001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18178
a64387ee 18179 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 18180
048addec 181812001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18182
048addec
JD
18183 * xterm.c (x_draw_image_relief): Use predefined macro instead of
18184 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 18185
048addec 181862001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 18187
048addec
JD
18188 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
18189 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 18190
048addec 18191 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 18192
048addec 181932001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18194
048addec 18195 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 18196
048addec 181972001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 18198
048addec 18199 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 18200
048addec 182012001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 18202
f63fd14e 18203 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 18204
048addec
JD
18205 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
18206 [!WM_MOUSELEAVE]: Define.
60a653f1 18207
048addec
JD
18208 * w32menu.c (current_popup_menu, get_menu_item_info):
18209 (set_menu_item_info): New vars.
18210 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
18211 (w32_menu_show): Set current_popup_menu.
18212 (add_menu_item): Allocate new strings for owner-drawn menu items
18213 and help strings.
18214 Use owner-draw for disabled menu items again.
18215 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
18216 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 18217
048addec
JD
18218 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
18219 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
18220 <WM_EXITMENULOOP>: Free menu strings.
18221 <WM_MOUSELEAVE>: Stop tracking mouse.
18222 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 18223
048addec
JD
18224 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
18225 and mouse face.
60a653f1 18226
048addec 182272001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 18228
048addec
JD
18229 The following changes add left-fringe and right-fringe
18230 frame parameters to adjust fringe widths, or remove one or
18231 both fringes.
60a653f1 18232
048addec
JD
18233 * frame.h (struct frame): Remove trunc_area_pixel_width and
18234 trunc_area_cols fields.
18235 (Qleft_fringe, Qright_fringe): Declare.
18236 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 18237
048addec
JD
18238 * frame.c (Qleft_fringe, Qright_fringe): New vars.
18239 (syms_of_frame): Initialize them.
60a653f1 18240
048addec
JD
18241 * window.c (coordinates_in_window): Handle separate left and right
18242 fringe widths.
60a653f1 18243
048addec
JD
18244 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
18245 and fringe_cols fields.
18246 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
18247 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
18248 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
18249 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
18250 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
18251 (x_compute_fringe_widths): Add prototype.
60a653f1 18252
048addec
JD
18253 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
18254 fill fringe evenly with small dashes.
f63fd14e 18255 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
18256 clip the new ZV bitmap to avoid jitter between rows.
18257 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
18258 background. Don't draw fringe bitmaps if fringe width is zero.
18259 (x_compute_fringe_widths): New function.
18260 (x_new_font, x_set_window_size_1): Use it.
60a653f1 18261
048addec
JD
18262 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
18263 (x_set_frame_parameters): Process `font' parameter before other
18264 parameters as fringe widths depend on it.
18265 (x_set_fringe_width): New function.
18266 (x_figure_window_size): Use x_compute_fringe_widths.
18267 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
18268 parameters.
60a653f1 18269
048addec
JD
18270 * widget.c (set_frame_size): Use x_compute_fringe_widths.
18271 (EmacsFrameSetCharSize): Ditto.
60a653f1 18272
048addec
JD
18273 * w32term.h: Merged changes from xterm.h.
18274 * w32term.c: Merged changes from xterm.c.
18275 * w32fns.c: Merged changes from xfns.c.
60a653f1 18276
048addec 182772001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18278
048addec 18279 * COPYING: Removed.
60a653f1 18280
048addec 182812001-11-29 Dave Love <fx@gnu.org>
60a653f1 18282
048addec
JD
18283 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
18284 extra extra slot.
18285 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 18286
048addec 182872001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18288
048addec
JD
18289 * fileio.c (file-name-coding-system)
18290 (default-file-name-coding-system): Doc fix (links to referenced
18291 variables added).
60a653f1 18292
048addec 182932001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18294
048addec
JD
18295 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
18296 Add dummy uses of gcproN variables.
60a653f1 18297
048addec
JD
18298 * category.c (describe_category, describe_category_1)
18299 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
18300 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 18301
048addec 183022001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 18303
048addec 18304 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 18305
048addec
JD
18306 * Makefile.in (lispdir): New variable, referring to build dir.
18307 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 18308
048addec 183092001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 18310
048addec
JD
18311 * w32menu.c (w32_menu_display_help): Actually add the new argument
18312 OWNER.
60a653f1 18313
048addec 183142001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 18315
048addec
JD
18316 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
18317 menu items. From David Ponce <dponce@wanadoo.fr>.
18318 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
18319 conditionally.
f63fd14e 18320 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 18321 help event in the owner frame's keyboard buffer.
60a653f1 18322
048addec
JD
18323 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
18324 (Fx_show_tip): Don't subtract last width from row width.
18325
18326 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
18327 (w32_read_socket): Use EQ to compare frames.
60a653f1 18328
048addec 183292001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 18330
048addec
JD
18331 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
18332 OVERLAPS_P.
60a653f1 18333
048addec 183342001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18335
048addec
JD
18336 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
18337 `gcpro3' and `gcpro4'.
60a653f1 18338
048addec 18339 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 18340
048addec 183412001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18342
048addec 18343 * ccl.c: Use AREF and ASIZE.
60a653f1 18344
048addec 183452001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18346
048addec
JD
18347 * lisp.h (run_hook_list_with_args): Remove.
18348 (LIST_END_P): Fix call to wrong_type_argument.
18349 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 18350
048addec 183512001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18352
048addec
JD
18353 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
18354 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 18355
048addec
JD
18356 * eval.c: Use AREF and ASIZE.
18357 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 18358
048addec
JD
18359 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
18360 which match the end of the file-name.
18361 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
18362 is not a valid env var, but leave it as is instead.
60a653f1 18363
048addec
JD
18364 * keymap.c (access_keymap): Handle t bindings like nil bindings.
18365 Make nil bindings in char-tables transparent.
18366 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 18367
048addec 183682001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 18369
048addec
JD
18370 * textprop.c (set_text_properties_1): Allow START, END in either order.
18371 Do nothing if range is empty.
60a653f1 18372
048addec 18373 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 18374
048addec
JD
18375 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
18376 (clean): Not here.
60a653f1 18377
048addec 183782001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18379
048addec
JD
18380 * textprop.c (set_text_properties_1): Clearly mark that the
18381 interval should not be empty.
60a653f1 18382
048addec
JD
18383 * intervals.c (graft_intervals_into_buffer):
18384 Don't call set_text_properties_1 on an empty interval.
60a653f1 18385
048addec 183862001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 18387
048addec 18388 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 18389
048addec
JD
18390 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
18391 don't lose the data in it.
60a653f1 18392
048addec 183932001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 18394
048addec 18395 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 18396
c62aec78 18397 * buffer.c (Fkill_buffer): Likewise.
60a653f1 18398
c62aec78 18399 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 18400
048addec 184012001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18402
048addec 18403 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 18404
048addec 184052001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18406
048addec
JD
18407 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
18408 Niemitalo <kon@iki.fi>.
60a653f1 18409
048addec 184102001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 18411
048addec 18412 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 18413
048addec
JD
18414 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
18415 (Fx_show_tip): Block input during frame creation.
18416 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 18417
048addec 184182001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 18419
048addec
JD
18420 * lread.c (Fload): Detect recursive load error for more than 3
18421 nestings of the same file.
18422 (Vrecursive_load_depth_limit): Variable deleted.
18423 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 18424
048addec 184252001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 18426
048addec
JD
18427 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
18428 mouse position if either left or top is not specified.
60a653f1 18429
048addec
JD
18430 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
18431 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
18432 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
18433 (my_create_tip_window): Assign tip_window.
18434 (x_create_tip_frame): Use same defaults as X.
18435 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 18436 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 18437
048addec
JD
18438 * w32term.c (x_after_update_window_line): Doc fix.
18439 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
18440 frames.
18441 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 18442
048addec
JD
18443 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
18444 for all Windowed systems.
60a653f1 18445
048addec 184462001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18447
048addec
JD
18448 * msdos.c (IT_clear_screen): If the frame's faces are not yet
18449 realized, use the initial screen colors to clear the screen.
60a653f1 18450
048addec 184512001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18452
048addec
JD
18453 * textprop.c (Fset_text_properties): Remove unused variables
18454 `unchanged', `prev_changed', `s' and `len'.
60a653f1 18455
048addec
JD
18456 * search.c (Freplace_match): Remove unused variable `inslen'.
18457
18458 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
18459
184602001-11-22 Jason Rumney <jasonr@gnu.org>
18461
18462 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
18463 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
18464 (my_create_tip_window): New function.
18465 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
18466 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
18467
184682001-11-20 Jason Rumney <jasonr@gnu.org>
18469
18470 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
18471 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
18472
18473 * w32fns.c (Vw32_system_coding_system): Remove.
18474 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
18475
184762001-11-19 Stefan Monnier <monnier@cs.yale.edu>
18477
18478 * fileio.c (Fwrite_region): Move choose_write_coding_system to
18479 after build_annotations.
18480
18481 * syntax.c (describe_syntax): Add dummy arg.
18482 (describe_syntax_1): Update call to describe_vector.
18483
18484 * category.c (describe_category): Add dummy arg.
18485 (describe_category_1): Update call to describe_vector.
18486
18487 * keymap.c (Fdescribe_vector): Add `describer' parameter.
18488 (describe_command, describe_translation): Add dummy second param.
18489 (describe_map): Call elt_describer with two arguments.
18490 (describe_vector_princ): Add `fun' parameter.
18491 Call it instead of the hardcoded `princ'.
18492 (describe_vector): Add arg `args'.
18493 Pass it as a new second argument to elt_describer.
60a653f1 18494
048addec 18495 * keymap.h (describe_vector): Update prototype.
60a653f1 18496
048addec
JD
18497 * frame.c: Don't include keymap.h any more.
18498 (keys_of_frame): Remove.
60a653f1 18499
048addec 18500 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 18501
048addec 18502 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 18503
048addec 185042001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 18505
048addec
JD
18506 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
18507 if defined, 0 otherwise.
18508 (MAP_FAILED): Define if not defined and use it to test mmap failure.
18509 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 18510
048addec 185112001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 18512
048addec 18513 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 18514
048addec 185152001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 18516
048addec
JD
18517 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
18518 (x_draw_bar_cursor): If the background color of the glyph under
18519 the cursor equals the frame's cursor color, use the glyph's
18520 foreground color for drawing the bar cursor.
18521 (x_after_update_window_line): Clear internal border in different
18522 circumstances.
18523 (w32_set_vertical_scroll_bar): Check for width and height > 0.
18524 (w32_draw_relief_rect): Correct relief by 1 pixel.
18525 (x_set_glyph_string_background_width):
18526 Set extends_to_end_of_line_p if the row's fill_line_p is set and
18527 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
18528 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
18529 if cursor_in_non_selected_windows is false.
18530 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
18531 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
18532 Notice if cursor gets overwritten.
18533 (notice_overwritten_cursor): Renamed from
18534 note_overwritten_text_cursor. Rewritten to take glyph widths
18535 into account, and to take X positions as parameters.
18536 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18537 around call to x_draw_glyphs.
18538 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18539 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18540 color to use for image glyph reliefs.
18541 (x_draw_image_relief): Accept zero tool_bar_button_relief.
18542 (glyph_rect): Remove unused variable `area'.
60a653f1 18543
048addec
JD
18544 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
18545 some items.
18546 (x_set_internal_border_width): Set frame garbaged when window
18547 doesn't exist yet.
18548 (Fx_create_frame): Accept zero tool_bar_button_relief.
18549 (x_clear_image_1, four_corners_best, image_background)
18550 (image_background_transparent): New functions.
18551 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18552 (gs_format): Add `:background' entry.
18553 (lookup_image): Set IMG's background color if specified.
18554 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18555 when appropriate.
18556 (x_clear_image_1): Reset `background_valid' and
18557 `background_transparent_valid' fields.
18558 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18559 calculating it here. Set IMG's background_transparent field.
18560 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18561 (enum png_keyword_index): Add PNG_BACKGROUND.
18562 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18563 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18564 (enum gif_keyword_index): Add GIF_BACKGROUND.
18565 (enum gs_keyword_index): Add GS_BACKGROUND.
18566 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18567 Pre-calculate image background color where necessary.
18568 (x_create_x_image_and_pixmap, xbm_load, gs_load):
18569 Use display info's n_cbits entry for screen depth.
18570 (Fx_show_tip): Remove unused variables `buffer', `top',
18571 `left', `max_width' and `max_height'.
60a653f1 18572
048addec 18573 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 18574
048addec 185752001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 18576
048addec 18577 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 18578
048addec 185792001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18580
048addec 18581 * frame.c (Fframe_live_p): Doc fix.
60a653f1 18582
048addec 185832001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 18584
048addec
JD
18585 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
18586 (message_dolog_marker3): New static variables hold three markers.
18587 (syms_of_xdisp): Initialize and staticpro them.
18588 (message_dolog): Use message_dolog_marker1..3 instead of
18589 allocating markers each time. Unchain them when done.
60a653f1 18590
048addec 185912001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 18592
048addec 18593 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 18594
048addec 185952001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 18596
048addec 18597 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 18598
048addec 185992001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 18600
048addec 18601 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 18602
048addec 186032001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 18604
048addec 18605 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 18606
048addec 186072001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 18608
048addec
JD
18609 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
18610 with invalid position.
60a653f1 18611
048addec 186122001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 18613
048addec 18614 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 18615
048addec
JD
18616 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
18617 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
18618 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 18619
048addec 18620 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 18621
048addec 186222001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18623
048addec
JD
18624 * fileio.c (build_annotations): Split off the tail.
18625 (build_annotations_2): New fun. Extracted from build_annotations.
18626 (Fwrite_region): Split the call to build_annotations into two
18627 calls to build_annotations and build_annotations_2.
077907d4 18628
048addec 186292001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 18630
048addec
JD
18631 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
18632 clear_waiting_for_input with argument.
1756e2fb 18633
048addec 18634 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 18635
048addec 18636 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 18637
048addec 18638 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 18639
048addec 18640 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 18641
048addec 186422001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 18643
048addec
JD
18644 * fileio.c (choose_write_coding_system): New fun, extracted
18645 from Fwrite_region.
18646 (Fwrite_region): Use it.
fa336b91 18647
048addec
JD
18648 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
18649 (funcall_lambda, run_hook_with_args): Make static and add prototype.
18650 (ml_apply, find_handler_clause): Add prototype.
fa336b91 18651
048addec 186522001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 18653
048addec 18654 * config.in: Add #undef HAVE_COFF_H.
fa336b91 18655
048addec
JD
18656 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
18657 Required for ISC 4.1.
fa336b91 18658
048addec 186592001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 18660
52eb0373 18661 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 18662 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 18663
048addec 186642001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 18665
048addec
JD
18666 The following changes are made to clean up the various internal
18667 references to the fringes to actually use the term `fringe' for
18668 them. Previously, they were called `flags areas', `bitmap areas',
18669 `left/right side of windows', or implicitly as `flags' or
18670 `bitmaps':
fa336b91 18671
048addec 18672 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 18673 Comments fixed. Use renamed symbols.
06e8f738 18674
f63fd14e 18675 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 18676
048addec
JD
18677 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
18678 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
18679 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 18680
048addec 18681 * msdos.c: Comment fix.
9ce647f4 18682
048addec 18683 * w32fns.c: Use renamed symbols.
9b784ab8 18684
f63fd14e 18685 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
18686 (fringe_bitmap_type): Renamed from bitmap_type.
18687 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18688 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
18689 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 18690
f63fd14e 18691 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
18692 (fringes_extra): Renamed from flags_areas_extra.
18693 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18694 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18695 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18696 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18697 (FRAME_X_LEFT_FRINGE_WIDTH):
18698 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18699 (FRAME_X_RIGHT_FRINGE_WIDTH):
18700 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 18701
048addec 18702 * widget.c: Use renamed symbols.
9f7e52b4 18703
f63fd14e 18704 * window.c: Comment fixes. Use renamed symbols.
048addec 18705 (coordinates-in-window-p): Doc fix.
fa336b91 18706
f63fd14e 18707 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 18708
048addec 18709 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 18710
048addec 18711 * xfns.c: Use renamed symbols.
89512fcd 18712
f63fd14e 18713 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
18714 (fringe_bitmap_type): Renamed from bitmap_type.
18715 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18716 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
18717 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 18718
f63fd14e 18719 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
18720 (fringes_extra): Renamed from flags_areas_extra.
18721 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18722 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18723 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18724 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18725 (FRAME_X_LEFT_FRINGE_WIDTH):
18726 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18727 (FRAME_X_RIGHT_FRINGE_WIDTH):
18728 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
18729
187302001-11-15 Jason Rumney <jasonr@gnu.org>
18731
18732 * w32menu.c (add-menu-item): Make help_echo and radio buttons
18733 work for most menu items. From David Ponce
18734 <david.ponce@wanadoo.fr>.
18735
187362001-11-15 Gerd Moellmann <gerd@gnu.org>
18737
18738 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
18739 Some x_set_* function expect to be called even if old and new
18740 value are equal.
18741
18742 * xdisp.c (build_desired_tool_bar_string): Accept zero
18743 tool_bar_button_relief.
18744
18745 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
18746
18747 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
18748
18749 * xterm.c (x_draw_bar_cursor): If the background color of the
18750 glyph under the cursor equals the frame's cursor color, use
18751 the glyph's foreground color for drawing the bar cursor.
18752
18753 * dispnew.c (direct_output_forward_char): Fix character/byte
18754 position comparison.
7d18891d 18755
048addec 187562001-11-15 Miles Bader <miles@gnu.org>
d2936d21 18757
048addec
JD
18758 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
18759 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
18760 Update arguments to find_field.
18761 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
18762 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
18763 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
18764 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 18765
048addec 187662001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 18767
048addec 18768 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 18769
048addec
JD
18770 * dispextern.h (image_background, image_background_transparent):
18771 Conditionalize on HAVE_X_WINDOWS.
7d18891d 18772
048addec 187732001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 18774
048addec 18775 * print.c (Fprin1_to_string): Doc fix.
7d18891d 18776
048addec 18777 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 18778
048addec 18779 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 18780
048addec 18781 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 18782
048addec 18783 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 18784
048addec 18785 * eval.c (syms_of_eval): Doc fix.
7d18891d 18786
048addec 18787 * coding.c (syms_of_coding): Doc fix.
7d18891d 18788
048addec 18789 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 18790
048addec 18791 * dispnew.c (syms_of_display): Doc fix.
9474c847 18792
048addec 18793 * category.c (Fget_unused_category): Doc fix.
9474c847 18794
048addec 18795 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 18796
048addec 187972001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 18798
048addec 18799 * print.c (prin1, print): Doc fix.
e3059a5d 18800
048addec 188012001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 18802
048addec
JD
18803 * fontset.h: Remove declarations of variables
18804 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 18805
048addec
JD
18806 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
18807 `Vclip_large_size_font'.
eae936e2 18808
048addec 188092001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 18810
048addec 18811 * w32fns.c: Doc fix.
ddb67bdc 18812
048addec 188132001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 18814
048addec 18815 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 18816
048addec 18817 * fns.c: Doc fix.
6e1b91d7 18818
048addec 18819 * emacs.c: Doc fix.
1c1d3d69 18820
048addec 18821 * coding.c: Doc fix.
1c1d3d69 18822
048addec
JD
18823 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
18824 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
18825 `new style' [w/`doc:' keyword].
b6f4c7ba 18826
048addec 188272001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 18828
048addec
JD
18829 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
18830 LeaveNotify events. Only FocusIn and FocusOut do that now.
18831 (x_display_and_set_cursor): Do display hollow cursors in active
18832 minibuffer windows when they are not selected.
b6f4c7ba 18833
048addec 188342001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 18835
048addec 18836 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
18837 * w32term.c: Change doc-string comments to `new style'
18838 [w/`doc:' keyword]. Doc fixes.
a89f435d 18839
048addec
JD
18840 * w32fns.c: Don't define max.
18841 (Fx_open_connection): Only execute once.
a4cd0cd7 18842
048addec 188432001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 18844
048addec
JD
18845 * ccl.c: Change macros to use do-while block instead of if-else.
18846 Use braces to follow GNU Coding Standards.
eafb659a 18847
048addec 188482001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 18849
048addec 18850 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 18851
048addec 18852 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 18853
048addec
JD
18854 * insdel.c (replace_range): Use adjust_markers_for_replace
18855 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 18856
78819ebb 18857 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 18858
048addec
JD
18859 * textprop.c (set_text_properties_1): New subroutine
18860 broken out of set_text_properties.
18861 (set_text_properties): Use set_text_properties_1.
91823618 18862
048addec
JD
18863 * intervals.c (graft_intervals_into_buffer):
18864 Use set_text_properties_1 to clear out properties.
91823618 18865
048addec
JD
18866 * search.c (Freplace_match): Use replace_range to insert
18867 and delete. Don't request property inheritance from
18868 surrounding text.
86928dfb 18869
048addec 188702001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 18871
048addec 18872 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 18873 vertical fonts. Allow them if face name is explicitly specified.
048addec 18874 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 18875
048addec 188762001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 18877
048addec
JD
18878 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
18879 instead of malloc/free.
a78e0303 18880
048addec 188812001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 18882
048addec
JD
18883 * xfaces.c (merge_face_vectors): Use braces to follow GNU
18884 Coding Standards.
18885 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 18886
048addec 18887 * buffer.c (Fbury_buffer): Likewise.
0c99b139 18888
048addec 18889 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 18890
048addec
JD
18891 * coding.c (encode_coding): Use precomputed value of `src'.
18892 (encode_coding): Remove unused variable `src_end'.
18893 (code_convert_region): Remove unused variables `count'.
830ddd77 18894
048addec 188952001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 18896
048addec
JD
18897 * w32term.c (x_display_and_set_cursor): Do not move system caret
18898 if cursor_glyph is NULL.
55c6d645 18899
048addec 189002001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 18901
048addec 18902 * keymap.c (access_keymap): Fix compilation error.
5de38842 18903
048addec 189042001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 18905
048addec 18906 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 18907
048addec 189082001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 18909
048addec
JD
18910 * intervals.c (graft_intervals_into_buffer):
18911 Remove #ifdef'd-out code.
18912 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 18913
048addec
JD
18914 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
18915 code (eval-current-buffer).
18916 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 18917
048addec 189182001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 18919
048addec 18920 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 18921
048addec 189222001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 18923
048addec 18924 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 18925
048addec
JD
18926 * keyboard.c (make_lispy_event): Check integerness and fix
18927 Lisp_Object/int mixup.
17893c65 18928
048addec 189292001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 18930
048addec 18931 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 18932
048addec
JD
18933 * fontset.c (fontset_font_pattern): Remove unused variable
18934 `family_registry'.
d5360cc7 18935
048addec 18936 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 18937
048addec 189382001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 18939
048addec 18940 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 18941
048addec
JD
18942 * buffer.c (Fkill_buffer): Don't delete auto save file
18943 if buffer is modified.
d9d54213 18944
048addec 189452001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 18946
048addec
JD
18947 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
18948 CHECK_NUMBER_CDR.
b116830b 18949
048addec 189502001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 18951
048addec 18952 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 18953
048addec 189542001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 18955
048addec 18956 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 18957
048addec 189582001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 18959
048addec 18960 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 18961
048addec 189622001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 18963
048addec
JD
18964 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
18965 the program image directly.
982f6c7e 18966
048addec 189672001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 18968
048addec 18969 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 18970
048addec 189712001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 18972
048addec
JD
18973 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
18974 and CHECK_BUFFER.
d31053f9 18975
048addec
JD
18976 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
18977 (record_char): Likewise.
d31053f9 18978
048addec
JD
18979 * keyboard.c (make_lispy_event): Don't insist a drag event must
18980 move to a different buffer position. Instead, check for moving at
18981 least double_click_fuzz.
982f6c7e 18982
048addec 18983 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 18984
048addec 18985 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 18986
048addec
JD
18987 * indent.c (current_column_1, Fmove_to_column): Separate the code
18988 for display-table glyphs from the code for buffer text, to fix
18989 bugs in the former.
830047fd 18990
048addec 189912001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 18992
048addec
JD
18993 * buffer.c (Fbuffer_local_value): New function.
18994 (syms_of_buffer): Defsubr it.
2df5238c 18995
048addec
JD
18996 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
18997 value of `cursor-in-non-selected-windows'.
4e397688 18998
048addec
JD
18999 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
19000 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
19001 (syms_of_xdisp): Initialize it.
48b0f3ae 19002
048addec 190032001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 19004
048addec 19005 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 19006
048addec
JD
19007 * coding.c: Change doc-string comments to `new style' [w/`doc:'
19008 keyword].
3ecaf7e5 19009
048addec
JD
19010 * eval.c (top_level_value, top_level_set): Remove commented and
19011 #ifdef'd-out code.
19012 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 19013
048addec 190142001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 19015
048addec 19016 * xfns.c: Include unistd.h, if it exists.
8db2e33b 19017
048addec 19018 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 19019
048addec 19020 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 19021
048addec 190222001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 19023
048addec
JD
19024 * lisp.h (CHECK_STRING_CAR): New macro.
19025 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
19026 treating XCAR and XCDR as lvalues.
19027 (openp): Use CHECK_STRING_CAR.
19028 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 19029
048addec 190302001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 19031
048addec
JD
19032 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
19033 (SIGMASKTYPE): Define.
1b1acc13 19034
048addec 19035 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 19036
048addec 190372001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 19038
048addec
JD
19039 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
19040 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
19041 Fix typos in comments.
6cb16f95 19042
048addec
JD
19043 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
19044 and #ifdef'd-out code.
19045 Fix and reindent comments.
6cb16f95 19046
048addec 19047 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 19048
048addec
JD
19049 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
19050 argument `i' in macros.
6cb16f95 19051
048addec
JD
19052 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
19053 `i' in macros.
7e9d3c2f 19054
048addec
JD
19055 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
19056 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
19057 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
19058 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
19059 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
19060 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
19061 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
19062 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
19063 in macros.
7e9d3c2f 19064
048addec
JD
19065 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19066 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
19067 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
19068 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
19069 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
19070 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
19071 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
19072 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
19073 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
19074 (remove unused second argument).
7e9d3c2f 19075
048addec 190762001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 19077
048addec
JD
19078 * syntax.c (describe_syntax): New wrapper.
19079 (Finternal_describe_syntax_value): Rename from describe_syntax.
19080 Don't insert space at front and \n at the end.
19081 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 19082
048addec
JD
19083 * regex.c (re_wctype): Try to fix some warnings.
19084 (regcomp, regexec): Don't forget the __restrict.
9ba48103 19085
048addec 190862001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 19087
048addec 19088 * textprop.c (Fget_char_property): Doc fix.
9ba48103 19089
048addec 190902001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 19091
048addec 19092 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 19093
048addec 19094 * data.c (Fsetq_default): Ditto.
c22e59e1 19095
048addec 19096 * callint.c (Finteractive): Ditto.
9271ed2c 19097
048addec 190982001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 19099
048addec
JD
19100 * macros.c: Don't include keymap.h any more.
19101
191022001-11-01 Richard M. Stallman <rms@gnu.org>
19103
19104 * data.c (Fmake_local_variable): Doc fix.
19105
19106 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
19107 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 19108
048addec 19109 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
19110 bindings along with or instead of the buffer local map.
19111 Make the overriding maps override what they should.
19112
f00691a3 191132001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
19114
19115 * window.c (grow_mini_window): Fix typo in comment.
19116
27188d11
GM
191172001-11-01 Gerd Moellmann <gerd@gnu.org>
19118
7b49b9d2
GM
19119 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
19120 (XTset_vertical_scroll_bar): Likewise.
19121
43f7c3ea
GM
19122 * xfns.c (x_build_heuristic_mask): Use four_corners_best
19123 instead of IMAGE_BACKGROUND.
c22e59e1 19124
b350c2e5
GM
19125 * xfns.c (four_corners_best): Reindent.
19126
c22e59e1 19127 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
19128 Handle :box so that it is possible to specify sexprs.
19129
bf00d461
EZ
191302001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
19131
19132 * s/hpux11.h: New file.
19133
f00691a3 191342001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 19135
2b209b97
PJ
19136 * emacs.c (USAGE1): Show command line option --no-window-system
19137 instead of --no-windows in usage.
19138 (standard_args): Rename --no-windows to --no-window-system.
19139 (bug_reporting_address): Follow Emacs coding conventions.
19140
9dbc9081
PJ
19141 * eval.c (Fcommandp): Doc fix.
19142 Change doc-string comments to `new style' [w/`doc:' keyword].
19143
4e10df59
PJ
19144 * frame.c (Fframe_live_p): Doc fix.
19145
19146 * buffer.c (selective-display-ellipses): Doc fix.
19147
dd387b25
GM
191482001-10-31 Gerd Moellmann <gerd@gnu.org>
19149
fe957e65
GM
19150 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
19151
dd387b25
GM
19152 * xfaces.c (realize_x_face): If C is not a single-byte character,
19153 set the face's colors_copied_bitwise_p instead of the defaulted_p
19154 members which have a different meaning.
19155 (free_face_colors): Do nothing for a face whose colors have been
19156 copied bitwise.
19157
c22e59e1 19158 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 19159
f00691a3 191602001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 19161
687784e8
PJ
19162 * marker.c, mocklisp.c: Change doc-string comments to `new style'
19163 [w/`doc:' keyword].
2e1280f8 19164
b9d9a9b9
GM
191652001-10-31 Gerd Moellmann <gerd@gnu.org>
19166
19167 * fns.c (require_unwind): Return Lisp_Object.
19168
f00691a3 191692001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 19170
fa1361cb
PJ
19171 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
19172 (last-input-char): Revert doc-string to be the same as the
19173 doc-string of `last-input-event'.
19174
6c465a15 19175 * xdisp.c: Fix typos in comments.
48400103 19176
eafa3196
GM
191772001-10-31 Gerd Moellmann <gerd@gnu.org>
19178
19179 * window.c (grow_mini_window): Handle case that the root
19180 window is already smaller than the nominal mininum height.
19181
747d3f2a
SM
191822001-10-30 Stefan Monnier <monnier@cs.yale.edu>
19183
bf9bb76f
SM
19184 * emacs.c (main): Don't call keys_of_macros any more.
19185
19186 * lisp.h (keys_of_macros): Remove.
19187
19188 * macros.c (keys_of_macros): Remove.
19189
747d3f2a
SM
19190 * xfaces.c (Fface_attribute_relative_p): Declare args.
19191
5e905a57
JR
191922001-10-30 Jason Rumney <jasonr@gnu.org>
19193
19194 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
19195 (enum_font_cb2): Ignore fonts with vertical orientation.
19196
3a426197
RS
191972001-10-30 Richard M. Stallman <rms@gnu.org>
19198
19199 * keyboard.c (Finput_pending_p): Doc fix.
19200
a742d646
GM
192012001-10-30 Gerd Moellmann <gerd@gnu.org>
19202
259cf6bc
GM
19203 * xterm.c (x_after_update_window_line): Don't run the code
19204 clearing in borders for rows whose visible height is 0.
19205
3f99f948
GM
19206 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
19207 resized_p flag is set. If not set, use the much less flickering
19208 method previously used.
19209
19210 * dispnew.c (change_frame_size_1): Set frame's resized_p.
19211
19212 * frame.h (struct frame) <resized_p>: New member.
19213
b4a3be43
GM
19214 * lread.c (to_multibyte): Ensure read_buffer is at least twice
19215 as large as the number of bytes to convert.
747d3f2a 19216
a742d646
GM
19217 * lread.c (to_multibyte): New function.
19218 (read1): Use it.
19219
cacbb9e9
EZ
192202001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
19221
19222 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
19223
99cb6b2f
GM
192242001-10-30 Gerd Moellmann <gerd@gnu.org>
19225
327f42ee 19226 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
19227 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
19228 if the row's fill_line_p is set and drawing the last glyph with
19229 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 19230
99cb6b2f
GM
19231 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
19232
8e8223e2
SM
192332001-10-29 Stefan Monnier <monnier@cs.yale.edu>
19234
19235 * xmenu.c: Include coding.h and charset.h.
19236 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
19237 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
19238 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
19239 Explicitly set wv->help. Use `TRUE' rather than `True'.
19240 (menu_help_callback): Use empty_string.
19241
19242 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
19243 (Fx_popup_dialog): Explicitly init f.
19244 (w32_menu_display_help): Use empty_string.
19245
4d083a8f
RS
192462001-10-29 Richard M. Stallman <rms@gnu.org>
19247
b2304472
RS
19248 * fns.c (Frequire): Detect recursive try to require the same
19249 feature 3 or more levels deep, and get error.
19250 (require_unwind): New subroutine.
19251 (require_nesting_list): New variable.
19252 (syms_of_fns): Init and staticpro it.
19253
4d083a8f
RS
19254 * print.c (print_object): Clarify indication of insertion type.
19255
2fe41216
EZ
192562001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
19257
90480000
EZ
19258 * coding.c (syms_of_coding): Document that locale-coding-system is
19259 used for decoding input on X.
19260
2fe41216
EZ
19261 * window.c (Fscroll_left, Fscroll_right): Doc fix.
19262
f00691a3 192632001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
19264
19265 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
19266 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
19267
60ebcfe8
GM
192682001-10-29 Gerd Moellmann <gerd@gnu.org>
19269
9a7bdceb
GM
19270 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
19271 use NO_CURSOR if cursor_in_non_selected_windows is false.
19272
3f08fcd2
GM
19273 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
19274 the slant attribute if FRAME is t.
19275
0ccfdad2
GM
19276 * xfns.c (x_set_internal_border_width): Set frame garbaged
19277 when X window doesn't exist yet.
19278
ef253080
GM
19279 * xterm.c (x_after_update_window_line): Clear internal border
19280 in different circumstances.
b116830b 19281
60ebcfe8
GM
19282 * xterm.c (XTread_socket) <KeyPress>: Don't use
19283 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
19284 <handa@etl.go.jp>.
19285
73d25f9c
EZ
192862001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
19287
19288 * m/ibms390.h: New file. From Adam Thornton
19289 <athornton@sinenomine.net>.
19290
cac1daf0
GM
192912001-10-28 Gerd Moellmann <gerd@gnu.org>
19292
053b3256 19293 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 19294
cac1daf0
GM
19295 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
19296 a loop counter.
19297
f00691a3 192982001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 19299
f9711de4 19300 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 19301
4707d2d0
PJ
19302 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
19303 keyword].
19304 Fix typos in comments.
b116830b 19305
d883731c
PJ
19306 * emacs.c (bug_reporting_address): New function.
19307 Use it when displaying usage message.
19308
04012254
PJ
19309 * minibuf.c (read_minibuf): Remove unused external declaration of
19310 variable `Qread_only'.
19311
13b1a09c
PJ
19312 * keymap.c (access_keymap): Remove unused variable `charset'.
19313
5bbf4378
MB
193142001-10-28 Miles Bader <miles@gnu.org>
19315
19316 * xfaces.c (merge_face_heights): Handle TO being relative as well.
19317 Remove #ifdef'd-out code.
19318 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
19319 (syms_of_xfaces): Initialize them.
19320
1ce1e4ee
JR
193212001-10-27 Jason Rumney <jasonr@gnu.org>
19322
19323 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
19324 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
19325 position using the system caret.
19326
19327 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
19328 (w32_system_caret_height, w32_system_caret_x)
19329 (w32_system_caret_y): New variables for tracking system caret.
19330 (w32_initialize): Initialize them.
c2d53558 19331 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 19332
c2d53558
SM
19333 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
19334 New messages types.
1ce1e4ee
JR
19335
19336 * w32term.c (note_mouse_highlight): Clear old help_echo.
19337
f00691a3 193382001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 19339
bb4600a4
PJ
19340 * xterm.c: Fix typo in a comment.
19341
7db35a48
PJ
19342 * emacs.c: Fix typos in comments.
19343 Remove unnecessary spaces.
19344 Change doc-string comments to `new style' [w/`doc:' keyword].
19345 (USAGE2): Fix typos in usage string.
19346
a7248e4f
PJ
19347 * xterm.c: Fix typo in a comment.
19348
52eb0373 19349 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
19350 emacs.c.
19351
62725a92
GM
193522001-10-27 Gerd Moellmann <gerd@gnu.org>
19353
798dbe1f 19354 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 19355 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
19356 farther backward when target_y was not reached.
19357
62725a92
GM
19358 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
19359 Display errno only if non-zero.
19360 (sound_warning): New function.
19361 (vox_configure): Don't treat failing to set sample rate as error.
19362 (various places): Improve error messages.
19363
d4e34d24
EZ
193642001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
19365
944e6f60
EZ
19366 * fileio.c (Faccess_file): Run the argument filename through
19367 Fexpand_file_name, before using it.
19368
d4e34d24
EZ
19369 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
19370 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
19371
38d2af0c
GM
193722001-10-26 Gerd Moellmann <gerd@gnu.org>
19373
da80a8d5
GM
19374 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
19375
38d2af0c
GM
19376 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19377 Fix clearing in the case of scroll bars on the right.
c2d53558 19378
45de4a6f 193792001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
19380
19381 * w32gui.h (XImage): Add a dummy typedef.
19382
fbd5ceb2
GM
193832001-10-26 Gerd Moellmann <gerd@gnu.org>
19384
c2d53558 19385 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 19386
b23236fb
EZ
193872001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
19388
19389 * frame.c (Fframe_parameter): Fix last change.
19390
5d991fc4
EZ
19391 * fileio.c: Revert last change (which removed old commented-out
19392 version of expand-file-name). Add a comment that explains why
19393 this old version should not be removed.
19394
879eadc3
GM
193952001-10-25 Gerd Moellmann <gerd@gnu.org>
19396
75700ff2
GM
19397 * frame.c (Fframe_parameter): Fix a bug whereby some
19398 ``artificial'' frame parameters, like `minibuffer' were not
19399 obtained by calling Fframe_parameters.
19400
dfe92a6a
GM
19401 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
19402 cursor differently.
19403
879eadc3
GM
19404 * xdisp.c (move_it_vertically_backward): Compute line height
19405 differently. Add heuristic to try to be more compatible to 20.x.
19406
e1010ebe
SM
194072001-10-25 Stefan Monnier <monnier@cs.yale.edu>
19408
d73a471b
SM
19409 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
19410
d6da5a06
GM
19411 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
19412 boolean.
e1010ebe 19413
f66bd220
MB
194142001-10-25 Miles Bader <miles@gnu.org>
19415
19416 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
19417 BG is a pointer to a structure, not a structure.
19418 (gif_format, png_format): Add missing commas.
19419
d436d538
RS
194202001-10-24 Richard M. Stallman <rms@gnu.org>
19421
19422 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 19423 (syms_of_xfaces): Defsubr it.
d436d538 19424
f00691a3 194252001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
19426
19427 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
19428 variable `area'.
19429
f00691a3 194302001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 19431
c2d53558 19432 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 19433
e2a57b34
MB
194342001-10-25 Miles Bader <miles@gnu.org>
19435
19436 * dispextern.h (struct image): Add `background',
19437 `background_valid', and `background_transparent' fields.
19438 (image_background, image_background_transparent): New declarations.
19439 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
19440 * xfns.c (image_background, image_background_transparent)
19441 (four_corners_best): New functions.
c2d53558 19442 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
19443 (gs_format): Add `:background' entry.
19444 (lookup_image): Set IMG's background color if specified.
19445 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19446 when appropriate.
19447 (x_clear_image_1): Reset `background_valid' and
19448 `background_transparent_valid' fields.
19449 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19450 calculating it here. Set IMG's background_transparent field.
19451 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19452 (enum png_keyword_index): Add PNG_BACKGROUND.
19453 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19454 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19455 (enum gif_keyword_index): Add GIF_BACKGROUND.
19456 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 19457 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
19458 Pre-calculate image background color where necessary.
19459 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19460 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19461 color to use for image glyph reliefs.
19462
b547b6e8
GM
194632001-10-24 Gerd Moellmann <gerd@gnu.org>
19464
d9e3b8c6
GM
19465 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
19466 in full-width rows.
c2d53558 19467
b547b6e8
GM
19468 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19469 Fix clearing of area not covered by scroll bar.
19470
f00691a3 194712001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 19472
52eb0373 19473 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 19474 and `real_start'.
c2d53558 19475 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
19476 (glyph_rect): Remove unused variable `area'.
19477
76cb5e06
GM
194782001-10-24 Gerd Moellmann <gerd@gnu.org>
19479
bdbdebff 19480 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
19481
19482 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
19483 (row_containing_pos): Take additional argument DY.
19484 Treat rows ending in middle of char differently.
62e33982
GM
19485 (display_line): Handle tabs on window systems differently.
19486
19487 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
19488 with additional argument.
19489
19490 * dispextern.h (row_containing_pos): Adjust prototype.
19491
76cb5e06
GM
19492 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
19493 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
19494 (try_window_id, try_window_reusing_current_matrix)
19495 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 19496 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 19497
f00691a3 194982001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 19499
c9e60620
PJ
19500 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
19501 gnuemacs).
19502 (HAVE_BOXES): Fix typo in comment.
19503 (push_menu_pane): Fix typo in comment.
19504
52eb0373 19505 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
19506 of `Qwhen'.
19507 (single_display_prop_string_p): Remove unused local declarations
19508 of `Qwhen' and `Qmargin'.
19509 (string_buffer_position): Remove unused variable `around'.
19510 (store_frame_title): Remove unused variable `width'.
19511
15c565ac
PJ
19512 * window.c: Don't define max.
19513 (coordinates_in_window): Remove unused variable `uy'.
19514
a8818eb9
PJ
19515 * widget.c: Don't define max.
19516
996fee11
PJ
19517 * process.c: Don't define max.
19518 (create_process): Remove unused variable `buffer'.
19519
496e1a5b
GM
195202001-10-23 Gerd Moellmann <gerd@gnu.org>
19521
c2d53558 19522 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 19523
5905ae8b
EZ
195242001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
19525
19526 * xfaces.c (Finternal_set_lisp_face_attribute)
19527 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
19528 frame is on a windowed display.
19529
24db49fb
GM
195302001-10-23 Gerd Moellmann <gerd@gnu.org>
19531
c2d53558
SM
19532 * dispnew.c (sync_window_with_frame_matrix_rows):
19533 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
19534 of marginal areas.
19535
c2d53558 19536 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 19537
f0487f05
EZ
195382001-10-23 Andreas Schwab <schwab@suse.de>
19539
19540 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
19541 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
19542
f0a48a01
GM
195432001-10-23 Gerd Moellmann <gerd@gnu.org>
19544
c2d53558 19545 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
19546 REAL_END. Notice if cursor gets overwritten.
19547 (notice_overwritten_cursor): Take X positions as parameters.
19548 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19549 around call to x_draw_glyphs.
19550
f00691a3 195512001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 19552
fc11dff0
PJ
19553 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
19554 instead of C) and usage.
a50a10a0 19555
fc11dff0
PJ
19556 * editfns.c (char-to-string): Fix argument names (use CHAR instead
19557 of C) and usage.
a50a10a0
PJ
19558
19559 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
19560 `left', `max_width' and `max_height'.
19561
8738febd
GM
195622001-10-23 Gerd Moellmann <gerd@gnu.org>
19563
19564 * xdisp.c (display_line): For a tab continued to the next line,
19565 set row's ends_in_middle_of_char_p.
19566
653c329b
GM
195672001-10-22 Gerd Moellmann <gerd@gnu.org>
19568
19569 * xdisp.c (display_line): Fix computation of continuation lines
19570 width for TABs.
19571
f00691a3 195722001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 19573
7ba51063
PJ
19574 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
19575 `Qlaplace'.
19576
f958c5ac
PJ
19577 * fileio.c: Remove unused code.
19578
eb360291
MB
195792001-10-22 Miles Bader <miles@gnu.org>
19580
19581 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
19582 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
19583 Remove `DOC_STRINGS_IN_COMMENTS' cases.
19584
98515cf0
JR
195852001-10-21 Jason Rumney <jasonr@gnu.org>
19586
19587 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
19588
93026d88
EZ
195892001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
19590
19591 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
19592 (Finsert_string): Avoid the multi-line string literals warning.
19593
c9a95b79
MB
195942001-10-22 Miles Bader <miles@gnu.org>
19595
19596 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
19597 (Fdocumentation): Don't use it.
19598 (syms_of_doc): Don't initialize it.
19599
19600 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
19601 * print.c (Fwith_output_to_temp_buffer): Likewise.
19602 * window.c (Fsave_window_excursion): Likewise.
c2d53558 19603 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 19604 (Fsave_restriction): Likewise.
c2d53558
SM
19605 * eval.c (Frun_hooks, Frun_hook_with_args)
19606 (Frun_hook_with_args_until_failure)
19607 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
19608 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
19609 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
19610 (Funwind_protect, Fcondition_case): Likewise.
19611 * coding.c (Ffind_operation_coding_system): Likewise.
19612 * keyboard.c (Ftrack_mouse): Likewise.
19613
a3b10252
MB
196142001-10-21 Miles Bader <miles@gnu.org>
19615
c2d53558 19616 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
19617 (Fmake_hash_table): Add usage: string to doc string.
19618 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 19619 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
19620 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
19621 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
19622 (Fml_prefix_argument_loop): Likewise.
19623
f00691a3 196242001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 19625
c2d53558 19626 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 19627
c6f73eec
PJ
19628 * sysdep.c (init_sys_modes): Change doc-string comments to `new
19629 style' [w/`doc:' keyword].
19630
19631 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
19632 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
19633 comments to `new style' [w/`doc:' keyword].
19634
3cf3436e
JR
196352001-10-21 Jason Rumney <jasonr@gnu.org>
19636
19637 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
19638
c169b8f1
JR
19639 * w32term.c (remember_mouse_glyph): New function.
19640 (w32_mouse_position): Use it.
19641 (note_mouse_movement): If the mouse moved off the glyph, remember
19642 its new position.
c2d53558 19643
4fdd691b
JR
19644 * w32term.h (struct w32_output): Correct spelling of x_compatible.
19645 (w32_display_info): Add mouse_face_overlay.
19646
c169b8f1
JR
19647 * w32term.c (notice_overwritten_cursor): Renamed from
19648 note_overwritten_text_cursor. Rewritten to take glyph widths into
19649 account.
19650 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
19651 (fast_find_string_pos): New function.
19652 (fast_find_position): Return the correct vpos. Add parameter
19653 STOP. In the final row, stop before glyphs having STOP as object.
19654 Don't consider glyphs that are not from a buffer.
19655 (fast_find_position) [0]: Add a presumably more correct version
19656 for after 21.1.
19657 (expose_window_tree, expose_frame): Don't compute intersections here.
19658 (expose_window): Do it here instead.
19659 (expose_window_tree, expose_window, expose_line): Return 1 when
19660 overwriting mouse-face.
19661 (expose_window): If W is the window currently being updated, mark
19662 the frame garbaged.
19663 (expose_frame): If mouse-face was overwritten, redo it.
19664 (x_use_underline_position_properties): New variable.
19665 (syms_of_xterm): DEFVAR_BOOL it.
19666 (x_draw_glyph_string): Add comment to use it in future.
19667 (x_draw_glyph_string): Restore clipping after drawing box.
19668 Fix a computation of the underline position.
19669 (w32_get_glyph_string_clip_rect): Minor cleanup.
19670 (x_fill_stretch_glyph_string): Remove an assertion.
19671 (x_produce_glyphs): Don't convert multibyte characters
19672 to unibyte characters in unibyte buffers.
19673 (cursor_in_mouse_face_p): New function.
19674 (x_draw_stretch_glyph_string): Use it to choose a different GC
19675 when drawing a cursor within highlighted text. Don't draw
19676 background again if it has already been drawn.
19677 (x_draw_glyph_string_box): Don't draw a full-width
19678 box just because the glyph row's full_width_p flag is set.
19679 (x_draw_glyphs): Fix computation of rightmost x for
19680 full-width rows.
19681 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
19682 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 19683 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
19684 (x_update_window_end): Handle overwritten mouse face
19685 also for tool bar windows.
19686 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
19687 DRAW is DRAW_IMAGE_RAISED.
19688 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
19689 actually redrawn. Make the function static.
19690 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
19691 optimize away highlighting if we pass over that same overlay again.
19692 (note_mouse_highlight): Call mouse_face_overlay_overlaps
19693 to detect a case where we have to highlight a different region
19694 despite not having left the currently highlighted region.
19695 Set mouse_face_overlay in the x_display_info. Avoid changing the
19696 mouse pointer shape when show_mouse_face has already done it, or
19697 there is no need. Handle mouse-face and help-echo in strings.
19698 (glyph_rect): New function.
19699 (w32_mouse_position): Use it to raise the threshold for mouse
19700 movement event generation.
19701 (w32_initialize_display_info): Initialize the x_display_info's
19702 mouse_face_overlay.
19703 (w32_set_vertical_scroll_bar): Don't clear a zero height
19704 or width area.
19705 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
19706 a widget to zero height.
19707
3cf3436e 19708 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 19709 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
19710 equivalents in menu_items.
19711 (w32_menu_show): Don't overwrite an item's name with its key
19712 description in case the description is a multibyte string.
19713 (single_submenu): Some cleanup.
19714
19715 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
19716 (postprocess_image): New function.
19717 (lookup_image): Call it for all image types except PostScript.
19718 (x_kill_gs_process): Call postprocess_image.
19719 (tiff_error_handler, tiff_warning_handler): New functions.
19720 (tiff_load): Install them as handlers.
19721 (x_kill_gs_process): Recognize if someone has cleared the image
19722 cache under us.
19723 (valid_image_p): Protect better against invalid image
19724 specifications. Previous code could signal an error.
19725 (Fx_hide_tip, Fshow_tip): Doc fix.
19726 (Fv_max_tooltip_size): New variable.
19727 (syns_of_xfns): DEFVAR_LISP it.
19728 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 19729 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
19730 window_width. Use a maximum tooltip size specified by
19731 Vx_max_tooltip_size, if that has valid contents.
19732 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
19733 Make sure the tooltip is completely visible.
19734 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
19735 (Fx_create_frame): Adjust the frame's height for presence
19736 of the tool bar before calling x_figure_window_size.
19737 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
19738 when the window gets smaller.
19739 (x_set_foreground_color): Set frame's cursor_pixel.
19740 (x_set_foreground_color, x_set_background_color): Cleaned up.
19741 (x_set_font): Handle case of x_new_fontset returning the same name
19742 as before, although there was a change in fontsets.
19743
386ca361
MB
197442001-10-21 Miles Bader <miles@gnu.org>
19745
c2d53558 19746 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
19747 (Flogxor): Add usage: string to doc string.
19748 * charset.c (Fstring): Likewise.
19749 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
19750 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
19751
f00691a3 197522001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 19753
03be2694
PJ
19754 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
19755
19756 * alloc.c: Reindent DEFUNs with doc: keywords.
19757
19758 * abbrev.c (Finsert_abbrev_table_description): Reindent.
19759
14ff1ee0
PJ
19760 * frame.c: Change doc-string comments to `new style' [w/`doc:'
19761 keyword].
19762
2f147815 19763See ChangeLog.9 for earlier changes.
6922b018
KH
19764
19765;; Local Variables:
49b3bd82 19766;; coding: iso-2022-7bit
6922b018 19767;; End:
2a34a036 19768
2f147815 19769 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
19770 Copying and distribution of this file, with or without modification,
19771 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
19772
19773;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4