(Processor Run Time): New section documenting get-internal-run-time.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
59dede22
EZ
12004-11-06 Lars Brinkhoff <lars@nocrew.org>
2
3 * config.in: Regenerate (add HAVE_GETRUSAGE).
4
27540e81
EZ
52004-11-06 Eli Zaretskii <eliz@gnu.org>
6
7 * frame.c (syms_of_frame): Fix the example in the doc string.
8
df470e3b
JD
92004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10
11 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
12
13 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
14 (create_and_show_dialog): Revert change from 2004-10-31.
15
16
4cc8522c
LT
172004-11-05 Luc Teirlinck <teirllm@auburn.edu>
18
19 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
20
d4a42098
KS
212004-11-05 Kim F. Storm <storm@cua.dk>
22
a8490886
KS
23 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
24
d4a42098
KS
25 * fileio.c (Ffile_modes): Doc fix.
26 (auto_save_1): Check for Ffile_modes nil value.
27
36a2b04c
KS
282004-11-05 Kim F. Storm <storm@cua.dk>
29
30 * xselect.c (struct selection_event_queue, selection_queue)
31 (x_queue_selection_requests, x_queue_event)
32 (x_start_queuing_selection_requests)
33 (x_stop_queuing_selection_requests): Add new queue for selection
34 input events to replace previous XEvent queue in xterm.c.
35 (queue_selection_requests_unwind): Adapt to new queue.
36 (x_reply_selection_request): Adapt to new queue. Unexpect
37 wait_object in case of x errors (memory leak).
38 (x_handle_selection_request, x_handle_selection_clear): Make static.
39 (x_handle_selection_event): New function. May queue selection events.
40 (wait_for_property_change_unwind): Use save_value instead of cons.
41 Clear property_change_reply_object.
42 (wait_for_property_change): Abort if already waiting.
43 Use save_value instead of cons for unwind data.
44 (x_handle_property_notify): Skip events already arrived, but don't
45 free them, as "arrived" field is checked by wait_for_property_change,
46 and it will be freed by unwind or explicit unexpect_property_change.
47 (x_get_foreign_selection): Add to new queue.
48 (receive_incremental_selection): Don't unexpect wait_object when done
49 as it has already been freed by previous wait_for_property_change.
50
51 * xterm.h (x_start_queuing_selection_requests)
52 (x_stop_queuing_selection_requests, x_handle_selection_request)
53 (x_handle_selection_clear): Remove prototypes.
54 (x_handle_selection_event): Add prototype.
55
56 * xterm.c (handle_one_xevent): Don't queue X selection events
57 here, it may be too late if we start queuing after we have already
58 stored some selection events into the kbd buffer.
59 (struct selection_event_queue, queue, x_queue_selection_requests)
60 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
61 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
62 (x_catch_errors_unwind): Block input around final XSync.
63
64 * keyboard.h (kbd_buffer_unget_event): Add prototype.
65
66 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
67 (kbd_buffer_unget_event): New function.
68 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
69 and use x_handle_selection_event.
70 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
71
9c3ad9e1
JD
722004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
73
74 * xselect.c (TRACE3): New debug macro.
75 (x_reply_selection_request): Use it.
76 (receive_incremental_selection): In call to TRACE0, the name of
77 a symbol is in xname.
78
a33b89de
KS
792004-11-05 Kim F. Storm <storm@cua.dk>
80
81 * fontset.c (fontset_pattern_regexp): Use unsigned char.
82
a872928c
JD
832004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
84
88208bb8
JD
85 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
86
0a4f23f3
JD
87 * gtkutil.h: Declare use_old_gtk_file_dialog.
88
89 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
90 (xg_initialize): Moved DEFVAR_BOOL for use_old_gtk_file_dialog ...
91 * xfns.c (syms_of_xfns): ... to here.
92
a872928c
JD
93 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
94 it doesn't start with /.
95
b912921c
KH
962004-11-04 Kenichi Handa <handa@m17n.org>
97
98 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
99 treat it as a literal character.
100
c524d9a6
KS
1012004-11-03 Kim F. Storm <storm@cua.dk>
102
103 * .gdbinit (ppt): New function.
104
8cfd0f36
JD
1052004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
106
a11e1dce
JD
107 * xterm.c (x_window_to_scroll_bar): Only call
108 xg_get_scroll_id_for_window if toolkit scroll bars are used.
109
8cfd0f36
JD
110 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
111 of save.
112
a93563fd
AS
1132004-11-02 Andreas Schwab <schwab@suse.de>
114
115 * window.c (Fscroll_right): Fix last change.
116
2b2d59d8
KS
1172004-11-02 Kim F. Storm <storm@cua.dk>
118
119 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
120
1212004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
122
123 * callproc.c (Fcall_process): Block input around vfork.
124
ca28104d
KS
1252004-11-02 Kim F. Storm <storm@cua.dk>
126
127 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
128 (syms_of_eval): Defsubr it.
129
29bb7127
RS
1302004-11-02 Richard M. Stallman <rms@gnu.org>
131
132 * insdel.c (replace_range_2): New function.
133
134 * casefiddle.c (casify_region): Handle changes in byte-length
135 using replace_range_2.
136
137 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
138
b6189c3b 139 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
140 Subtract 1 from pos when checking previous newline for invisibility.
141
142 * window.c (window_scroll_pixel_based): Update preserve_y
143 for header line if any.
144 (Fscroll_left, Fscroll_right): Don't call interactive_p;
145 use a new second argument instead.
146
147 * eval.c (Fcall_interactive_p): New function.
148 (interactive_p): Don't test INTERACTIVE here.
149 (Finteractive_p): Doc fix.
150
151 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
152
b6189c3b 1532004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
154
155 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 156 comparing font names.
a3fe4aaf 157
2a00cdb4
JD
1582004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
159
f9d64bb3
JD
160 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
161 Fx_file_dialog if only directories should be read.
162
163 * lisp.h: Fx_file_dialog takes 5 parameters.
164
165 * xfns.c (Fx_file_dialog): Both Motif and GTK version: Add
166 parameter only_dir_p.
167 In Motif version, don't put DEFAULT_FILENAME in filter part of the
168 dialog, just text field part. Do not add DEFAULT_FILENAME
169 to list of files if it isn't there.
170 In GTK version, pass only_dir_p parameter to xg_get_file_name.
171
172 * macfns.c (Fx_file_dialog): Add parameter only_dir_p. Check
173 only_dir_p instead of comparing prompt to "Dired". When using
174 a save dialog, add option kNavDontConfirmReplacement, change title
175 to "Enter name", change text for save button to "Ok".
176
177 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p. Check
178 only_dir_p instead of comparing prompt to "Dired".
179
180 * gtkutil.c (xg_get_file_with_chooser)
181 (xg_get_file_with_selection): New functions, only defined ifdef
182 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
183 respectively.
184 (xg_get_file_name): Add parameter only_dir_p.
185 Call xg_get_file_with_chooser or xg_get_file_with_selection
186 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
187 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
188
189 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
190
2a00cdb4
JD
191 * config.in: Rebuild (added HAVE_GTK_FILE_*).
192
f6749d5d
KS
1932004-11-01 Kim F. Storm <storm@cua.dk>
194
195 * process.c (connect_wait_mask, num_pending_connects): Only
196 declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 197 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
198 (IF_NON_BLOCKING_CONNECT): New helper macro.
199 (wait_reading_process_output): Only declare and use local vars
200 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 201
1a99fe1a
JR
2022004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
203
204 * w32term.c (x_scroll_run): Delete region objects after use.
205
fcdb28b4
JD
2062004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
207
495ef86b
JD
208 * xmenu.c: Add prototypes for forward function declarations.
209 (popup_get_selection): Remove parameter do_timers, remove call to
210 timer_check.
f6749d5d 211 (create_and_show_popup_menu, create_and_show_dialog): Remove
495ef86b
JD
212 parameter do_timers from call to popup_get_selection.
213
12e6566a
JD
214 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
215 tool_bar_items and assign the result to f->tool_bar_items if
216 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
217 tool_bar_items to assignment of result.
218
fcdb28b4
JD
219 * atimer.c (alarm_signal_handler): Do not call set_alarm if
220 pending_atmers is non-zero.
221
1a1a0c4c
KS
2222004-10-31 Kim F. Storm <storm@cua.dk>
223
224 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
225
a36f1680
JW
2262004-10-28 Will <will@glozer.net>
227
228 * macterm.c: allow user to assign key modifiers to the Mac Option
229 key via a 'mac-option-modifier' variable.
230
2d586478
SM
2312004-10-28 Stefan <monnier@iro.umontreal.ca>
232
233 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
234 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
235 (x_handle_selection_request, x_handle_selection_clear)
236 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
237
4f71c13f
RS
2382004-10-28 Richard M. Stallman <rms@gnu.org>
239
240 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
241
242 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
243
068f3848
SM
2442004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
245
246 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
247 comment-starter over a 1-char one.
248
4660a9e3
RS
2492004-10-27 Richard M. Stallman <rms@gnu.org>
250
251 * xdisp.c (get_next_display_element): In mode lines,
252 treat newline and tab like other control characters.
253
254 * editfns.c (Fmessage): Doc fix.
255
256 * indent.c (vmotion): When moving up, check the newline before.
257 Make prevline an int, not a Lisp_Object.
258
233f3db6
KS
2592004-10-27 Kim F. Storm <storm@cua.dk>
260
261 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
262 Only allocate info and discarded tables once.
263
264 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
265 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
266 (SAFE_FREE): Test it to determine if we need to unwind to free.
267 Remove size arg. All users changed.
268 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
269
1442465d
JD
2702004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
271
272 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
273 (xg_destroy_widgets): Rename from remove_from_container.
274 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
275 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
276 instead of remove_from_container.
277 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
278 (free_frame_tool_bar): Add comment.
279
280 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
281 is not NULL before strcmp.
282
c8636435
KS
2832004-10-26 Kim F. Storm <storm@cua.dk>
284
285 * callint.c (Fcall_interactively): Add 'U' code to get the
286 up-event discarded by a previous 'k' or 'K' argument.
287
5629f29b
DK
2882004-10-26 David Kastrup <dak@gnu.org>
289
290 * buffer.c (syms_of_buffer): Fix a few typos.
291
4f2f546e
JD
2922004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
293
294 * xsmfns.c: Put empty line between comment and function body.
295 Use two spaces before comment end.
296
fc1062f5
KH
2972004-10-25 Kenichi Handa <handa@m17n.org>
298
299 * fontset.c (fontset_pattern_regexp): Optimize for the case that
300 PATTERN is full XLFD.
301
be13f5e5
KH
3022004-10-24 Kenichi Handa <handa@m17n.org>
303
304 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
305
306 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
307 (regex_compile): Return REG_ERANGEX if appropriate.
308
d0ee2ed3
KH
3092004-10-22 Kenichi Handa <handa@m17n.org>
310
311 * editfns.c (Ftranslate_region_internal): New function.
312 (syms_of_editfns): Defsubr it.
313
63ea8ea5
JD
3142004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
315
316 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
317
c27ed90a
JD
3182004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
319
068f3848
SM
320 * xterm.h (x_output): New member `xic_base_fontname'.
321 (FRAME_XIC_BASE_FONTNAME): New macro.
322 (xic_free_xfontset): Declare.
c27ed90a 323
068f3848
SM
324 * xfns.c (xic_create_xfontset): Share fontsets between frames
325 based on base_fontname.
326 (xic_free_xfontset): New function.
327 (free_frame_xic): Use it.
328 (xic_set_xfontset): Ditto.
c27ed90a 329
068f3848 330 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
331
332
59508699
JR
3332004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
334
335 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
336
dede2792
JD
3372004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
338
3aca2078
JD
339 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
340 XSync.
341
dede2792
JD
342 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
343 New variables and constant.
344 (main): Calculate heap_bss_diff. If we are dumping and the
345 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
346 and exec ourself again.
347 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
348 print a warning.
349
350 * lastfile.c: Make my_endbss and my_endbss_static available on all
351 platforms.
352
353 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
354 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
355
1dc5ba01
LT
3562004-10-19 Luc Teirlinck <teirllm@auburn.edu>
357
358 * data.c (Flocal_variable_if_set_p): Doc fix.
359
950090be
JR
3602004-10-19 Jason Rumney <jasonr@gnu.org>
361
362 * w32.c (init_environment): Set emacs_dir correctly when running
363 emacs from the build directory.
364
8550b998
RS
3652004-10-19 Richard M. Stallman <rms@gnu.org>
366
367 * editfns.c (Fdelete_and_extract_region):
368 If region is empty, return null string.
369
08dedea6
JD
3702004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
371
1dc5ba01 372 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 373 and canon_width.
068f3848 374 (xg_frame_cleared): Remove.
08dedea6 375
068f3848
SM
376 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
377 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
378 (xg_create_scroll_bar): Put an event box widget between
379 the scroll bar widget and the edit widget.
380 (xg_show_scroll_bar): Show the parent widget (the event box).
381 (xg_remove_scroll_bar): Destroy parent (the event box) also.
382 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
383 Move the parent (the event box) widget inside the fixed widget.
384 Move window clear to xterm.c.
385
068f3848 386 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 387
08dedea6 388 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
389 (x_scroll_bar_create, XTset_vertical_scroll_bar):
390 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
391 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
392
8550b998 3932004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
394
395 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 396
84338890
JD
3972004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
398
399 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
400 gdk_window_clear and move gdk_window_process_all_updates after
401 clear so events are sent to the X server in correct order.
402
6e1b0d8c
KH
4032004-10-18 Kenichi Handa <handa@m17n.org>
404
405 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
406 comparing font names.
8550b998 407 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
408 (list_fontsets): Likewise.
409
410 * search.c (fast_string_match_ignore_case): New function.
411
412 * lisp.h (fast_string_match_ignore_case): Extern it.
413
345e75a8
KS
4142004-10-17 Kim F. Storm <storm@cua.dk>
415
416 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
417 than bitmap if there is not left fringe.
418 (get_overlay_arrow_glyph_row): Also used on windows system.
419 (display_line): Display overlay string if no left fringe.
420
be13cbb7
JR
4212004-10-16 Jason Rumney <jasonr@gnu.org>
422
423 * w32fns.c (w32_font_match): Encode font name being matched.
424
c2e2ede7
RS
4252004-10-16 Richard M. Stallman <rms@gnu.org>
426
427 * window.c (Fspecial_display_p): Doc fix.
428
3584d95d
SM
4292004-10-15 Stefan <monnier@iro.umontreal.ca>
430
431 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
432 Don't ignore menus, because where-is-internal already does it for us.
433
699a0392
KS
4342004-10-15 Kim F. Storm <storm@cua.dk>
435
b3c7a89b
KS
436 * xdisp.c (redisplay_window): Only update fringes and vertical
437 border on window frames.
699a0392 438
4e382b0f
AS
4392004-10-14 Andreas Schwab <schwab@suse.de>
440
441 * m/ia64.h (DATA_SEG_BITS): Don't define.
442
329a7be2
KS
4432004-10-14 Kim F. Storm <storm@cua.dk>
444
445 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 446 in some X versions.
329a7be2 447
982241b1
SM
4482004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
449
450 * fns.c (map_char_table): Add missing gcpros.
451
9238467d
SM
4522004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
453
454 * keymap.c (get_keymap): An autoload form is not a keymap.
455
456 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
457
4440e3ca
KS
4582004-10-13 Kim F. Storm <storm@cua.dk>
459
7cfdabde
KS
460 * callproc.c (Fcall_process): Simplify handling of display arg.
461 Resume `display_on_the_fly' once a coding system is determined.
462
4440e3ca
KS
463 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
464
1c8dec6a
KS
4652004-10-12 Kim F. Storm <storm@cua.dk>
466
467 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
468 caller, such as call-process, is not going to poll for input.
469 (calc_line_height_property): Handle case where it->object is nil.
470
471 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
472
170b174c
KH
4732004-10-12 Kenichi Handa <handa@m17n.org>
474
9238467d
SM
475 * xdisp.c (get_next_display_element):
476 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
477 chars in octal in unibyte buffer.
478
b583964c
KS
4792004-10-12 Kim F. Storm <storm@cua.dk>
480
481 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
482 are no ordinary bindings.
483
29fabd8c
JD
4842004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
485
9238467d 486 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 487
c3f4c690
ST
4882004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
489
9238467d
SM
490 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
491 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 492 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
493 terminal frame.
494 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
495 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
496 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
497 Make a cancel file-open dialog be like C-g.
9238467d
SM
498 * mac.c (mktime): Use emacs_mktime.
499 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
500 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 501
9688f9eb
KS
5022004-10-10 Kim F. Storm <storm@cua.dk>
503
504 * keyboard.c (timer_resume_idle): New function to resume idle
505 timer without resetting timers on the idle list.
506 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
507 (timer_start_idle, timer_stop_idle): Declare static.
508 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
509
510 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
511
f7f3a65f
ST
5122004-10-08 Steven Tamm <steventamm@mac.com>
513
9238467d 514 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 515 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 516 NULL where 0 should be used.
f7f3a65f
ST
517 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
518 objc/malloc.h
9238467d 519 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 520
3c7d999a
KS
5212004-10-07 Kim F. Storm <storm@cua.dk>
522
523 * xdisp.c (redisplay_window): Fix flicker on vertical line between
524 windows. Update vertical line after drawing window fringes, but
525 only if actually drawing any bitmaps--or there is no fringe.
526
527 * xterm.c (x_update_window_end): Likewise.
528 * macterm.c (x_update_window_end): Likewise.
529 * w32term.c (x_update_window_end): Likewise.
530
531 * fringe.c (draw_window_fringes): Return value now indicates if
532 any fringe bitmaps were redrawn (or there are no fringes).
533
534 * dispextern.h (draw_window_fringes): Update prototype.
535
bf06c82f
ST
5362004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
537
538 * macfns.c (mac_get_window_bounds): Add extern.
539 (x_real_positions): Use mac_get_window_bounds.
540
541 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
542 xmenu.c (YAILOM).
3c7d999a 543
bf06c82f
ST
544 * macterm.c [!MAC_OSX]: Include Windows.h.
545 (front_emacs_window): Rename from mac_front_window. All uses
546 changed. Return the frontmost non-tooltip emacs window.
547 (mac_get_window_bounds): New function.
548 (x_calc_absolute_position): Use the difference of width and height
549 between the inner and outer window.
550 (x_set_offset): Specify window position by the coordinae of the
551 outer window. Adjust the position if the title bar is completely
552 outside the screen.
553 (app_is_suspended, app_sleep_time): Remove unused variables.
554 (do_app_resume, do_app_suspend): Remove their contents because
555 window-activate/deactivate events will do the job.
556 (do_zoom_window): Remove unused variables. Make compliant to the
557 standard way of zooming. Set f->left_pos and f->top_pos.
558 (XTread_socket): Don't use argument `expected'. Don't use
559 FrontWindow to determine the clicked window. Exclude unprocessed
560 mouseUp cases in the early stage. Add parentheses to fix operator
561 precedence.
562 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
563
564
4cbbf6b7 5652004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
566
567 * config.in: Regenerate.
568
569 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
570 HAVE_EXECSHIELD.
571
b90ee8b5
JD
5722004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
573
574 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
575 a row if Alt or Meta has been found for that row. Also stop scanning
576 for Keysyms for that row.
577
904db1a2
KS
5782004-10-04 Kim F. Storm <storm@cua.dk>
579
0207b8ad
KS
580 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
581 to list. Include overlay arrow bitmap in return value.
582
25f7220c
KS
583 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
584 bars with fractional column width. If scroll bar separates two
585 windows, move it towards the window it belongs to. Only update
586 the padding area below the scroll bar widget when necessary,
587 i.e. when scroll bar widget is created, moved, or resized.
588
562020fe
KS
589 * xdisp.c (define_frame_cursor1): Do not change frame cursor
590 while tracking/dragging mouse.
591 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
592
37e34af7
KS
593 * window.c (coordinates_in_window): Relax check for cursor
594 on vertial border between mode lines.
595 (Fset_window_fringes): Do not allow negative widths.
596 (Fset_window_scroll_bars): Likewise.
597
904db1a2
KS
598 * .gdbinit (pp): Shorthand for p ARG + pr.
599 (ff): New command: flush frame updates (X only).
600
38fe4f64
MA
6012004-10-03 Michael Albinus <michael.albinus@gmx.de>
602
603 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
604
9de36315
KH
6052004-09-30 Kenichi Handa <handa@m17n.org>
606
07c381ad 607 * process.c (send_process): Free composition data.
9de36315 608
07c381ad 609 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
610
611 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
612 compositions to encode.
613 (encode_coding_string): Likewise. Free composition data.
614
b6189c3b 6152004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
616
617 * coding.c (code_convert_region): Free composition data.
9de36315 618
f2a54fbc
KS
6192004-09-29 Kim F. Storm <storm@cua.dk>
620
dc5d6435
KS
621 * fringe.c: Remove limit on number of bitmaps.
622 (fringe_bitmaps, fringe_faces): Change to pointers.
623 (max_fringe_bitmaps): New var.
624 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
625 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
626
627 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
628 (struct glyph_row): Reorder fringe_bitmap related fields.
629 (struct it): Likewise.
630
631 * w32term.c (fringe_bmp): Change to pointer.
632 (max_fringe_bmp): New var.
633 (w32_define_fringe_bitmap): Expand fringe_bmp.
634 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
635 (w32_destroy_fringe_bitmap): Likewise.
636
6372004-09-29 Kim F. Storm <storm@cua.dk>
638
639 * fringe.c: Simplify last change.
f2a54fbc
KS
640 (lookup_fringe_bitmap): New function.
641 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
642 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
643 Keep standard bitmaps in Vfringe_bitmaps.
644 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
645 (Fset_fringe_bitmap_face): Likewise.
646
647 * dispextern.h (lookup_fringe_bitmap): Add prototype.
648 (valid_fringe_bitmap_p): Remove prototype.
649
650 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
651
841a8bca
KS
6522004-09-29 Kim F. Storm <storm@cua.dk>
653
1f2da365
KS
654 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
655 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
656
841a8bca
KS
657 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
658
659 * fringe.c (Vfringe_bitmaps): New variable.
660 (syms_of_fringe): DEFVAR_LISP it.
661 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
662 Change arg to Lisp_Object and fail if not an integer.
663 (get_fringe_bitmap_name, resolve_fringe_bitmap)
664 (destroy_fringe_bitmap): New functions.
9238467d
SM
665 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
666 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
667 clear its fringe property.
668 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
669 Fdestroy_fringe_bitmap.
670 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
671 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
672 and set fringe property. Signal error if no free slots.
673 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
674 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
675
676 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
677 symbols with a fringe property.
678
4d965590
KS
6792004-09-27 Kim F. Storm <storm@cua.dk>
680
681 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
682 Doc fix. Format may now be a symbol or alist, not a cons.
683
684 * fringe.c (update_window_fringes): Handle new formats of
685 indicate-buffer-boundaries (symbol or alist). No longer
686 allow a simple cons.
687 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
688
e888c2b3
JD
6892004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
690
9238467d 691 * config.in: Rebuild.
e888c2b3 692
83f1cb94
JD
6932004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
694
695 * config.in: Rebuild.
696
dd3b1d60 697 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 698
2c51754c
SM
6992004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
700
701 * xterm.c (x_term_init): Work around a bug in some X servers.
702
3df5f8aa
RS
7032004-09-18 Richard M. Stallman <rms@gnu.org>
704
557ca2c1
RS
705 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
706
3df5f8aa
RS
707 * xdisp.c (try_window_reusing_current_matrix):
708 Handle the case where we reach the old displayed text,
709 out of sync with the old line boundary.
710
9238467d 7112004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
712
713 * fileio.c (Finsert_file_contents): Fix case of replacement in a
714 narrowed buffer.
715
bfa02563
KS
7162004-09-14 Kim F. Storm <storm@cua.dk>
717
a25fe164
KS
718 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
719
bfa02563
KS
720 * xfaces.c (Qface_no_inherit): New var.
721 (syms_of_xfaces): Intern and staticpro it.
722 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
723 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
724 Don't increment face_change_count when face has non-nil
725 face-no-inherit property.
726
126f9c02
SM
7272004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
728
892a8eb5
SM
729 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
730 (Fbyte_code): Remove dead code after `wrong_type_argument'.
731
126f9c02 732 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 733 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 734
c0ad3b38
KS
7352004-09-12 Kim F. Storm <storm@cua.dk>
736
737 * editfns.c (Fformat): Handle format strings with multiple text
738 properties. Reverse text property list from the format string,
739 so the positions are in increasing order.
740
844fc085
JD
7412004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
742
743 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
744 x_uncatch_errors so that possible protocol errors are delivered.
745
b106731c
EZ
7462004-09-10 Eli Zaretskii <eliz@gnu.org>
747
21065c92
EZ
748 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
749 blockinput.h.
750 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
751 charset.h, and coding.h
9238467d 752 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
753 (term.o): Depend on window.h and keymap.h.
754 (abbrev.o): Depend on syntax.h.
755 (callint.o): Depend on keymap.h.
756 (casefiddle.o): Depend on charset.h and keymap.h.
757 (category.o): Depend on keymap.h.
758 (coding.o): Depend on dispextern.h.
759 (cmds.o): Depend on keyboard.h and keymap.h.
760 (dispnew.o): Depend on indent.h and intervals.h.
761 (doc.o): Depend on keymap.h.
762 (editfns.o): Depend on frame.h.
763 (emacs.o): Depend on dispextern.h.
764 (fileio.o): Don't depend on ccl.h.
765 (filelock.o): Depend on charset.h and coding.h.
766 (frame.o): Depend on w32term.h and macterm.h.
767 (insdel.o): Depend on region-cache.h.
768 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
769 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
770 (search.o): Depend on $(INTERVALS_SRC).
771 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
772 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
773 xterm.h, w32term.h, and macterm.h.
774 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
775 w32term.h, and macterm.h.
776 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
777 region-cache.h, xterm.h, w32term.h, and macterm.h.
778 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
779 (data.o): Depend on frame.h.
780 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
781 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
782 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
783 (intervals.o): Depend on keymap.h.
784
9238467d
SM
785 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
786 Add debugging print-out to termscript.
b106731c 787
64b7122d
RS
7882004-09-09 Richard M. Stallman <rms@gnu.org>
789
790 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
791
5670531e
RS
7922004-09-08 Richard M. Stallman <rms@gnu.org>
793
6cb4a892
RS
794 * window.c (Fset_window_buffer): Doc fix.
795
5670531e
RS
796 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
797
7e388eb7
JL
7982004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
799
800 * minibuf.c (history_delete_duplicates): New variable.
801 (read_minibuf): Use it.
802 (syms_of_minibuf): Create the corresponding lisp variable.
803
370e3587
KS
8042004-09-08 Kim F. Storm <storm@cua.dk>
805
806 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
807 overlay just before point.
808
f844ba4e
LT
8092004-09-07 Luc Teirlinck <teirllm@auburn.edu>
810
811 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
812 * buffer.c (reset_buffer, init_buffer_once):
813 Handle auto_save_file_format field.
f844ba4e
LT
814 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
815 `buffer-auto-save-file-format'.
f844ba4e
LT
816 * fileio.c: Delete declaration for removed Vauto_save_file_format.
817 (build_annotations): Adapt to replacement of
818 `auto-save-file-format' with the new buffer-local variable
819 `buffer-auto-save-file-format'.
820 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
821
f0f90717
JR
8222004-09-07 Jason Rumney <jasonr@gnu.org>
823
824 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
825
9238467d
SM
826 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
827 Handle Unicode menu titles.
f0f90717 828
4e14f66c
KS
8292004-09-07 Kim F. Storm <storm@cua.dk>
830
831 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
832 property from text property or overlay strings at point.
833
9238467d 8342004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
835
836 * xmenu.c (update_submenu_strings): YAILOM.
837 (set_frame_menubar): Make sure last_i is initialized.
838
1f06d367
JR
8392004-09-03 Jason Rumney <jasonr@gnu.org>
840
1806714a 841 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
842 (digest_single_submenu): Set lname and lkey in widget_value
843 instead of name and key.
844 (update_submenu_strings): New function.
845 (set_frame_menubar): Remove call to inhibit_garbage_collection,
846 call update_submenu_strings.
847
848 * w32menu.c (globals_of_w32menu): Check for Unicode API.
849 (digest_single_submenu, w32_menu_show): Encode menu strings as
850 UTF-8 if Unicode API is available.
851 (utf8to16): New function.
852 (add_menu_item): Use it when calling Unicode API.
1806714a 853
46540080
KS
8542004-09-03 Kim F. Storm <storm@cua.dk>
855
856 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
857 in overlay or text-property strings; set cursor on corresponding
858 glyph rather than at end of the string.
859
9277ba61 8602004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 861
9277ba61 862 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
863 set a new one before obtaining the global coordinate.
864 Use FRAME_MAC_WINDOW.
865 (x_set_name, x_set_title): Encode title to UTF8.
866 Use SetWindowTitleWithCFString.
9277ba61
ST
867 (Fx_server_version): Get correct OS version.
868
1806714a
SM
869 * macmenu.c (add_menu_item): Remove unused variable `i'.
870 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
871
872 * macterm.c (x_update_end): Move SetPortWindowPort to inside
873 BLOCK_INPUT.
874 (x_set_offset): Use FRAME_MAC_WINDOW.
875
876 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
877 nontext_cursor if it is on a scroll bar.
878
879 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
880 Carbon support.
1806714a
SM
881 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
882 Use LIBS_CARBON.
9277ba61 883
b10daec7
JD
8842004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
885
886 * xfns.c (x_set_name_internal): New function. Check if we shall call
887 xfree before ENCODE_UTF_8.
888 (x_set_name, x_set_title): Call x_set_name_internal.
889
f7e22385
JR
8902004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
891
892 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
893 reload it.
894
2bf436c3
JD
8952004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
896
1806714a 897 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
898 (single_submenu): Set lname and lkey in widget_value
899 instead of name and key.
900 (update_submenu_strings): New function.
901 (set_frame_menubar): Remove call to inhibit_garbage_collection,
902 call update_submenu_strings.
903
2bf436c3
JD
904 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
905 instead of name and key.
906 (update_submenu_strings): New function.
907 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 908 call update_submenu_strings.
2bf436c3
JD
909
910 * gtkutil.h (_widget_value): Added lname and lkey.
911
11715f92
ST
9122004-08-30 Steven Tamm <steventamm@mac.com>
913
914 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
915 by using different names for inner loop variables.
916
5500be54
JD
9172004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
918
059cd329
JD
919 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
920 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
921
5500be54
JD
922 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
923 tool bar items is 0.
924
383418e5
ST
9252004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
926
927 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
928 strings in menu items.
929 (single_submenu): Use ENCODE_MENU_STRING
930 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
931 button release isn't passed to event loop
932 (add_menu_item): Use SetMenuItemWithCFString
933
6eb3ee72
ST
9342004-08-26 Steven Tamm <steventamm@mac.com>
935
936 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
937 tool-bar/menu click
938 * macfns.c (Fx_file_dialog): Implemented using NavServices
939
10b43ac3
JD
9402004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
941
2728b5d0
JD
942 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
943
10b43ac3
JD
944 * xfns.c (x_window_to_frame, x_any_window_to_frame)
945 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
946 (x_top_window_to_frame): Return 0 if wdesc is None.
947
2ee3b79e
RS
9482004-08-22 Richard M. Stallman <rms@gnu.org>
949
950 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
951 HAVE_TERMIOS]: If there's no char for this signal, drop through
952 and use system calls.
953
954 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
955
9a1ba2ea
KS
9562004-08-20 Kim F. Storm <storm@cua.dk>
957
958 * process.c (wait_reading_process_output): Rename from
959 wait_reading_process_input. All uses changed.
960 (wait_reading_process_output_1): Rename from
961 wait_reading_process_input_1. All uses changed.
962
963 * dispnew.c (Fsleep_for): Remove obsolete code.
964
295f3b30
KH
9652004-08-20 Kenichi Handa <handa@m17n.org>
966
967 * syntax.c (skip_chars): Fix for unibyte case.
968
27615979
SM
9692004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
970
971 * syntax.c (char_quoted): Mixup byte/char pos.
972 (back_comment): Fixup globals in all cases.
973
00267f94
JD
9742004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
975
976 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
977 passing it to gtk_window_set_title.
978
2439909e
KS
9792004-08-19 Kim F. Storm <storm@cua.dk>
980
6ba0f14c
KS
981 * process.c (wait_reading_process_input): Clean up.
982 Add wait_for_cell, wait_proc, and just_wait_proc args
983 to avoid overloading `read_kbd' and `do_display' args.
984 Change read_kbd arg to int. All callers changed.
985
2439909e
KS
986 * process.c (process_send_signal): Use CDISABLE.
987
988 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
989
101c421e
KS
9902004-08-18 Kim F. Storm <storm@cua.dk>
991
992 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
993 forward to wait_reading_process_input via DO_DISPLAY arg.
994 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
995 object, only process output from that process; also inhibit
996 running timers if DO_DISPLAY==-2.
997
c438dc33
KS
9982004-08-17 Kim F. Storm <storm@cua.dk>
999
1000 * process.c (process_send_signal): Fix last change--use
1001 _POSIX_VDISABLE instead of CVDISABLE when available.
1002
8afc13c6
RS
10032004-08-16 Richard M. Stallman <rms@gnu.org>
1004
1005 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
1006 Set VQUIT and VINTR chars to the standard ones if they are unset.
1007 [AIX]: Don't do that here. And don't force VINTR to standard
1008 when SIGNALS_VIA_CHARACTERS.
1009
c438dc33 1010 * process.c (process_send_signal)
8afc13c6
RS
1011 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
1012 Do nothing if the character is CVDISABLE.
1013
1014 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
1015
c438dc33 1016 * intervals.c (move_if_not_intangible):
8afc13c6
RS
1017 Force POSITION to be between BEGV and ZV.
1018
6dad1714
JPW
10192004-08-14 John Paul Wallington <jpw@gnu.org>
1020
1021 * buffer.c (Frestore_buffer_modified_p): Doc fix.
1022
1023 * fileio.c (Fread_file_name): Doc fix.
1024
1025 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1026
2bd77330
LT
10272004-08-09 Luc Teirlinck <teirllm@auburn.edu>
1028
1029 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
1030
c90e7e43
LT
10312004-08-08 Luc Teirlinck <teirllm@auburn.edu>
1032
1033 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 1034 Qdisabled_command_hook.
c90e7e43 1035 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 1036 Qdisabled_command_hook.
c90e7e43
LT
1037 (syms_of_keyboard): Ditto.
1038
81909a1a
LT
10392004-08-07 Luc Teirlinck <teirllm@auburn.edu>
1040
1041 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
1042 (syms_of_keymap) <key-translation-map>: Doc fixes.
1043
0cedd530
SM
10442004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
1045
1725a7c9
SM
1046 * window.c (window_list_1): YAILOM.
1047
0cedd530
SM
1048 * fileio.c (make_temp_name): Handle multibyte prefixes.
1049
2515a131
LT
10502004-08-06 Luc Teirlinck <teirllm@auburn.edu>
1051
1052 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1053 Doc fix.
1054
c8b20fb7
KH
10552004-08-03 Kenichi Handa <handa@m17n.org>
1056
1057 * coding.c (decode_coding_string): Adjust coding->consumed, and
1058 etc. with shrinked_bytes.
1059
fb8b092b
KS
10602004-08-03 Kim F. Storm <storm@cua.dk>
1061
1062 * indent.c (compute_motion): Fix check for full width window
1063 in non-window case. Do not count left truncation glyph on
1064 window systems.
1065
df133612
LT
10662004-08-02 Luc Teirlinck <teirllm@auburn.edu>
1067
1068 * data.c (Finteractive_form): Doc fix.
1069
0f7a93c1
KS
10702004-08-02 Kim F. Storm <storm@cua.dk>
1071
1072 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
1073 properly accounting for continuation glyph on non-window systems.
1074 (Fcompute_motion): Use actual window width if WIDTH is nil, and
1075 actual window width/height if TOPOS is nil, properly accounting for
1076 continuation glyphs on non-window systems, and optional header lines.
1077 (vmotion): Let compute_motion calculate actual window width.
1078
1079 * window.c (window_scroll_line_based): Let compute_motion
1080 calculate actual window width.
1081
f491e1ed
KS
10822004-08-02 Kim F. Storm <storm@cua.dk>
1083
1084 * process.c (read_process_output): Use whole read buffer.
1085 Don't trigger adaptive read buffering on errors.
1086
83f64226
LT
10872004-07-31 Luc Teirlinck <teirllm@auburn.edu>
1088
1089 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
1090
1091 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
1092
1093 * callint.c (Fcall_interactively): Doc fix.
1094
8afc13c6
RS
10952004-07-30 Richard M. Stallman <rms@gnu.org>
1096
1097 * abbrev.c (Fexpand_abbrev): Undo previous change.
1098
7c111482
KS
10992004-07-30 Kim F. Storm <storm@cua.dk>
1100
1101 * editfns.c (Fformat): Allocate extra (dummy) element in info.
1102
ee945d08
LT
11032004-07-28 Luc Teirlinck <teirllm@auburn.edu>
1104
1105 * eval.c (Fdefvar, Fdefconst): Doc fixes.
1106
3f911c94
KS
11072004-07-27 Kim F. Storm <storm@cua.dk>
1108
1109 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
1110 we have ensured that the glyph fits on the current line (or returned
1111 MOVE_LINE_CONTINUED otherwise).
1112
f29ff8c7
KS
11132004-07-26 Kim F. Storm <storm@cua.dk>
1114
1115 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
1116 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
1117 if target position is at end of display line but char is not a newline.
1118
81159bb9
RS
11192004-07-25 Richard M. Stallman <rms@gnu.org>
1120
ab431b61
RS
1121 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
1122 instead of ON_VERTICAL_BORDER, when on scroll bar.
1123 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
1124
1125 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
1126
f29ff8c7 1127 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
1128 Take account of FRAME_INTERNAL_BORDER_WIDTH.
1129
1130 * alloc.c (check_cons_list): New function (contents commented out).
1131
fc820cc5
LT
11322004-07-24 Luc Teirlinck <teirllm@auburn.edu>
1133
1134 * xfaces.c (Fcolor_supported_p): Doc fix.
1135
1136 * frame.c (Fselect_frame, Fset_frame_selected_window)
1137 (Fframe_visible_p, Fraise_frame): Doc fixes.
1138
289978b5
LT
11392004-07-24 Richard M. Stallman <rms@gnu.org>
1140
7630911d
RS
1141 * keyboard.h (not_single_kboard_state): Declared.
1142
1143 * fileio.c (Fwrite_region): Doc fix.
1144
1145 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
1146
1147 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
1148 only when a real abbrev is present.
1149
289978b5
LT
1150 * xfns.c (x_icon_verify): New function.
1151 (Fx_create_frame): Use it.
1152
63cc10ae
KS
11532004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
1154
1155 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
1156
36f826d4
KS
11572004-07-21 Kim F. Storm <storm@cua.dk>
1158
1159 * window.h (struct glyph_matrix): New members nrows_scale_factor
1160 and ncols_scale_factor.
1161
1162 * window.c (make_window): Initialize nrows_scale_factor and
1163 ncols_scale_factor members.
1164
1165 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
1166 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
1167 (required_matrix_height): Apply nrows_scale_factor.
1168 (required_matrix_width): Apply ncols_scale_factor.
1169
1170 * xdisp.c (display_line): Increment nrows_scale_factor and set
1171 fonts_changed_p if past last allocated row.
1172 (append_glyph, append_composite_glyph, produce_image_glyph)
1173 (append_stretch_glyph): Increment ncols_scale_factor and set
1174 fonts_changed_p if current area is full.
1175
5fc1c546
JD
11762004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1177
1178 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
1179
cb7516e5
LT
11802004-07-19 Luc Teirlinck <teirllm@auburn.edu>
1181
1182 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
1183 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
1184 (Fset_window_start, Fscroll_up, Fscroll_down)
1185 (Fother_window_for_scrolling, Fscroll_other_window)
1186 (Fsave_window_excursion, Fset_window_vscroll)
1187 (syms_of_window) <window-size-fixed>: Doc fixes.
1188
b6189c3b 11892004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
1190
1191 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
1192 ENCODE_SYSTEM for filenames.
1193
bfcf6608
ST
11942004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1195
1196 * mac.c (sys_select): Block input around call to
1197 ReceiveNextEvent to prevent breakage. Correctly handle
1198 blocking on event queue only by calling ReceiveNextEvent
1199 instead of select (since GUI events aren't on an fd).
1200 (sys_read): Remove function
1201 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
1202
e082ac9d
ST
12032004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1204
1205 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 1206 polling instead of 1 sec timeouts (like solaris).
e082ac9d 1207
cb7516e5 1208 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
1209 frame creation.
1210
1211 * keyboard.c: Undef SIGIO on Carbon
1212
1213 * atimer.c (alarm_signal_handler): Call alarm handlers after
1214 scheduling.
1215
1216 * eval.c (Feval): Remove quit_char test
1217
1218 * process.c (wait_reading_process_input): Remove clearing
1219 stdin for select call on process input.
1220
4b9da0fb
LT
12212004-07-18 Luc Teirlinck <teirllm@auburn.edu>
1222
1204e81c
LT
1223 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
1224 capitalization error in docstring.
4b9da0fb 1225
26503ad2
JB
12262004-07-17 Juanma Barranquero <lektu@terra.es>
1227
1228 * keyboard.c (not_single_kboard_state): Do nothing unless
1229 MULTI_KBOARD is defined.
1230
3751eb00
RS
12312004-07-17 Richard M. Stallman <rms@gnu.org>
1232
1233 * window.c (coordinates_in_window): Inside the window but outside
1234 its box to the L or R, return ON_VERTICAL_BORDER.
1235 (window_list_1): Rotate the list to start with WINDOW.
1236
1237 * print.c (print_preprocess): Test for print_depth at limit
1238 before entering in being_printed.
1239
1240 * keyboard.c (not_single_kboard_state): New function.
1241 (stuff_buffered_input): Now no-op only if no SIGTSTP.
1242
1243 * frame.c (Fdelete_frame): If we're in single_bboard_state on
1244 this kboard, and we delete its last frame, go to any_kboard_state.
1245
1246 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
1247
b6189c3b 12482004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
1249
1250 * w32fns.c (Fx_file_dialog): Encode strings in system coding
1251 system before passing them to OS functions for display.
1252
0f6af254
DK
12532004-07-15 David Kastrup <dak@gnu.org>
1254
f9253326
KS
1255 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
1256 Apparently fixes an abort condition.
0f6af254 1257
386c8f42
LT
12582004-07-14 Luc Teirlinck <teirllm@auburn.edu>
1259
1260 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
1261 instead of a cons.
1262
366511da
MB
12632004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
1264
1265 * keyboard.c (echo_dash): Do nothing if there already is a dash
1266 at the end of the echo string.
1267
f85409d3
KS
12682004-07-12 Kim F. Storm <storm@cua.dk>
1269
1270 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
1271 if GC_MARK_STACK.
1272
0ba2e87b
LT
12732004-07-10 Luc Teirlinck <teirllm@auburn.edu>
1274
da38045d
LT
1275 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
1276
0ba2e87b
LT
1277 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
1278 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
1279 (Freplace_buffer_in_windows, Fset_window_buffer)
1280 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
1281 (syms_of_window): Expand docstring of `display-buffer-function'.
1282
5668fbb8
LT
12832004-07-09 Luc Teirlinck <teirllm@auburn.edu>
1284
1285 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
1286 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
1287 that time values of the type (HIGH . LOW) are considered obsolete.
1288
a085bf9d
LT
12892004-07-06 Luc Teirlinck <teirllm@auburn.edu>
1290
669de2fb
LT
1291 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
1292 docstring.
1293
bac66325 1294 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 1295
8e975df9
JPW
12962004-07-06 John Paul Wallington <jpw@gnu.org>
1297
1298 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
1299
fa164e6a
JPW
1300 * fns.c (Fclear_string): Signal an error if STRING is not a string.
1301
2bac9bb1
JD
13022004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1303
1304 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
1305 instead of CGMainDisplayID (only in OSX 10.2 and later).
1306
316ef0dc
JPW
13072004-07-04 John Paul Wallington <jpw@gnu.org>
1308
1309 * fileio.c (read_file_name_completion_ignore_case): New variable.
1310 (syms_of_fileio): Declare and initialise it.
1311 (Fread_file_name): Bind `completion-ignore-case' to respect it.
1312
2a1a35c6
EZ
13132004-07-03 Eli Zaretskii <eliz@gnu.org>
1314
1315 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
1316 for event.x and event.y.
1317
33a72331
KH
13182004-07-01 Kenichi Handa <handa@m17n.org>
1319
1320 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
1321 after getting a new string by pre-write-conversion.
1322
9238467d 13232004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
1324
1325 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
1326 (x_calc_absolute_position): Remove unused var `child'.
1327
1328 * xfaces.c (x_supports_face_attributes_p)
1329 (Fdisplay_supports_face_attributes_p): YAILOM.
1330 (tty_supports_face_attributes_p): Remove unused var `i'.
1331
1332 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
1333 back_unibyte_ok.
1334
1335 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
1336
1337 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
1338
1339 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
1340
f96ec754
AS
13412004-06-30 Andreas Schwab <schwab@suse.de>
1342
1343 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
1344 (Finit_image_library): Pass LIBRARIES through to
1345 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
1346 (lookup_image_type): Pass Qnil as second argument to
1347 Finit_image_library.
1348
1349 * lisp.h: Declare Finit_image_library.
1350
59feca74 13512004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 1352
31983645
AS
1353 * macterm.c (do_window_activate, do_window_deactivate): Remove.
1354 (XTread_socket): Send mouse button events to the toolbox
1355 dispatcher even when the mouse is grabbed. Don't process window
1356 activate events for non-Emacs windows. Replace function calls to
1357 do_window_activate and do_window_deactivate with their contents.
1358 Reset mouse grabbing status when a window is deactivated.
59feca74 1359
c61278bb
ST
13602004-06-29 Steven Tamm <steventamm@mac.com>
1361
1362 * macterm.c (mac_get_emulated_btn)
1363 (mac_event_to_emacs_modifiers): Fix emulated mouse button
1364 support to correctly mask out modifiers.
1365
c3762cbd
DK
13662004-06-29 David Kastrup <dak@gnu.org>
1367
1368 * search.c (Fset_match_data): Allow buffer before end of list
1369 which can happen if set-match-data is using a pre-consed list.
1370
c61278bb 13712004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
1372
1373 * macterm.c (XTread_socket): Correctly set the frame position
1374 after the window is moved.
1375
74cdfe05
JD
13762004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1377
1378 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
1379 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
1380 (xg_get_image_for_pixmap): Add workaround for monochrome displays
1381 so insensitive and activated icons look ok.
74cdfe05 1382
ef544dc8
JR
13832004-06-27 Jason Rumney <jasonr@gnu.org>
1384
1385 * w32fns.c (file_dialog_callback): Disable edit control if set
1386 to directories only on CDN_INITDONE message.
1387 (Fx_file_dialog): Default to directories only when prompt starts
1388 with "Dired".
1389
7b7990cc
KS
13902004-06-25 Kim F. Storm <storm@cua.dk>
1391
1392 * alloc.c (allocate_misc): Update total_free_markers.
1393 (free_misc): New function.
1394 (safe_alloca_unwind, free_marker): Use it.
1395
1396 * lisp.h (free_misc): Add prototype.
1397
1398 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
1399
d8c379f8
RS
14002004-06-24 Richard M. Stallman <rms@gnu.org>
1401
1402 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
1403 (syms_of_emacs): Lisp variables deleted.
1404
559cdd07
DK
14052004-06-23 David Kastrup <dak@gnu.org>
1406
94939b84
DK
1407 * search.c (Freplace_match): Adjust the match-data more thoroughly
1408 when replacing strings in the buffer.
1409 (Fmatch_data): When INTEGERS is non-nil and the last match was in
1410 a buffer, add the buffer as last element to the match data.
1411 (Fset_match_data): If an additional element of the match-data is a
1412 buffer, restore it to last_thing_searched.
c8d09ad8 1413 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
1414 (restore_match_data): Restore it again.
1415
dce417e7
LT
14162004-06-23 Luc Teirlinck <teirllm@auburn.edu>
1417
1418 * keymap.c (Ftext_char_description): Doc fix.
1419 * doc.c (Fsnarf_documentation): Doc fix.
1420
ef54b2d0
KS
14212004-06-22 Kim F. Storm <storm@cua.dk>
1422
b5bc4d05
KS
1423 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
1424
ef54b2d0
KS
1425 * lisp.h (struct Lisp_Save_Value): New member dogc.
1426 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
1427 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
1428 (SAFE_FREE_LISP): New macro.
1429
1430 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
1431 (make_save_value): Init new dogc member.
1432 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
1433
1434 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
1435 SAFE_FREE_LISP macros.
1436
3d33d993
KS
14372004-06-22 Kim F. Storm <storm@cua.dk>
1438
1439 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
1440 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
1441 in that memory area are unknown to GC. Add comments.
1442
1443 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
1444
5c917f98
KS
14452004-06-21 Kim F. Storm <storm@cua.dk>
1446
1447 * lisp.h (MAX_ALLOCA): Define here.
1448 (safe_alloca_unwind): Add prototype.
1449 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
1450
1451 * alloc.c (safe_alloca_unwind): New function.
1452
1453 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
1454
1455 * charset.c (Fstring): Use SAFE_ALLOCA.
1456
1457 * coding.c (MAX_ALLOCA): Remove define.
1458
1459 * data.c (MAX_ALLOCA): Remove define.
1460 (Faset): Use SAFE_ALLOCA.
1461
1462 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
1463
1464 * fns.c (string_make_multibyte, string_to_multibyte)
1465 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
1466 (MAX_ALLOCA): Remove define.
1467 (Fbase64_encode_region, Fbase64_encode_string)
1468 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
1469 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
1470 memory leak if encoding fails.
1471
1472 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
1473
9a09408e
EZ
14742004-06-21 Eli Zaretskii <eliz@gnu.org>
1475
1476 * print.c (Fwith_output_to_temp_buffer): Doc fix.
1477
376de739
RS
14782004-06-20 Richard M. Stallman <rms@gnu.org>
1479
1480 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
1481
1482 * search.c (match_limit): Cleaner err msg when no match data available.
1483
1484 * window.c (syms_of_window): Doc fix.
1485
1486 * keyboard.c (command_loop_1): Handle values `only' and `identity'
1487 for Vtransient_mark_mode.
1488
1489 * buffer.c (syms_of_buffer): Doc fix.
1490
acd81db9
DK
14912004-06-21 David Kastrup <dak@gnu.org>
1492
1493 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
1494 and unbinding of `case-fold-search' according to
1495 `completion-ignore-case' around calls of string-match and
1496 predicates, respectively. Should give satisfactory performance
1497 in all relevant cases.
1498
f303762d
JD
14992004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1500
95911c74
JD
1501 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
1502 clip_x/y_origin.
1503
a6cb6b78
JD
1504 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
1505
f303762d
JD
1506 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
1507
1508 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
1509 on Mac OSX.
1510
bbdb2684
LT
15112004-06-16 Luc Teirlinck <teirllm@auburn.edu>
1512
1513 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
1514
5ea48b1c
KS
15152004-06-16 Kim F. Storm <storm@cua.dk>
1516
1517 * dispextern.h (Vimage_types): Remove extern.
1518
803aac3e
MB
15192004-06-16 Miles Bader <miles@gnu.org>
1520
1521 * image.c (lookup_image_type): Initialize image type if necessary.
1522
cdc97764
KS
15232004-06-15 Kim F. Storm <storm@cua.dk>
1524
c4a5739c
KS
1525 * xdisp.c (try_cursor_movement): Exclude header line from scroll
1526 margin at top of window.
1527 (try_window_reusing_current_matrix): Calculate proper cursor position
1528 after scrolling up with non-zero scroll margin, as the old cursor
1529 position corresponds to value of PT before executing this command.
1530 (try_window_id): Consider scroll margin at bottom of window too;
1531 otherwise we fail to scroll when hl-line-mode is enabled.
1532
cdc97764
KS
1533 * syntax.c (skip_chars): Only recognize [:class:] when it has the
1534 proper format and class is a lower-case word.
1535
5b166323
JD
15362004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1537
1538 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 1539 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
1540 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
1541 xg_get_gdk_pixmap_and_mask.
cdc97764 1542
5b166323
JD
1543 * xterm.h (struct x_display_info): Typo in comment fixed.
1544
1ebd4f78
JB
15452004-06-14 Juanma Barranquero <lektu@terra.es>
1546
1547 * dispextern.h (Vimage_types): Make it conditional on
1548 HAVE_WINDOW_SYSTEM.
1549
1550 * image.c (Vimage_types): Move from xdisp.c.
1551 (Vimage_type_cache): New variable.
1552 (define_image_type): New argument indicating whether an image
1553 library was loaded; cache loaded status and return t on success,
1554 nil otherwise.
1555 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
1556 (w32_delayed_load): New function to load an image library from a
1557 list of possible filenames.
1558 (init_xpm_functions, init_png_functions, init_jpeg_functions)
1559 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 1560 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
1561 (Finit_image_library): New function, extracted from `init_image'.
1562 Try to initialize an image library on demand and cache whether we
1563 were successful or not.
1564 (syms_of_image): Initialize `Vimage_types' and
1565 `Vimage_type_cache'. Add recognized image types to Vimage_types.
1566 Export `init-image-library'.
1567 (init_image): Remove initialization of all image types, except xbm
1568 and pbm.
1569
1570 * xdisp.c (Vimage_types): Delete (moved to image.c).
1571
904ee128
AS
15722004-06-14 Andreas Schwab <schwab@suse.de>
1573
1574 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1575 Avoid calling specbind when completion-regexp-list is empty.
1576
092de21d
RS
15772004-06-13 Richard M. Stallman <rms@gnu.org>
1578
1579 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1580 (re_wctype, re_iswctype, re_wctype_to_bit):
1581 Non-function definitions moved here from regex.c.
1ebd4f78 1582
092de21d
RS
1583 * regex.c (re_wctype, re_iswctype): Function defs longer static.
1584 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1585 (re_wctype, re_iswctype, re_wctype_to_bit):
1586 Non-function definitions moved to regex.h.
1587
1588 * window.c (Fselect_window): Doc fix.
1589
1590 * syntax.c: Include regex.h.
1591 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
1592 If requested, make a list of classes, then check the scanned
1593 chars for membership in them.
1594 (in_classes): New function.
1595 Doc fix.
1596
1597 * keyboard.c (cmd_error): Don't call any_kboard_state
1598 if inside a recursive edit level.
1599
16002004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
1601
1602 * keyboard.c (command_loop): Call any_kboard_state before
1603 command_loop_2 when at top level.
1604
3ebc0939
AS
16052004-06-13 Andreas Schwab <schwab@suse.de>
1606
cea5d0d4
AS
1607 * print.c (print_object): Always use %ld for printing EMACS_INT.
1608
1609 * keyboard.c (cancel_hourglass_unwind): Return a value.
1610 (modify_event_symbol): Always use %ld for printing EMACS_INT.
1611 (Fexecute_extended_command): Likewise.
1612
1613 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
1614 avoid clashes.
1615 (SYNTAX): Likewise.
1616 (SYNTAX_WITH_FLAGS): Likewise.
1617 (SYNTAX_MATCH): Likewise.
1618
1619 * syntax.c (char_quoted): Avoid warning about undefined operation.
1620 (find_defun_start): Likewise.
1621 (scan_lists): Likewise.
1622 (INC_FROM): Likewise.
1623 (scan_sexps_forward): Likewise.
1624
be8c4ce4
AS
1625 * image.c: Include <ctype.h>.
1626
3ebc0939
AS
1627 * xfaces.c (face_attr_equal_p): Declare parameters.
1628
6fb41b5b
KH
16292004-06-13 Kenichi Handa <handa@m17n.org>
1630
1631 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
1632
fc3095ce
EZ
16332004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
1634
1635 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
1636
66189a40
KH
16372004-06-12 Kenichi Handa <handa@m17n.org>
1638
1639 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
1640 ccl_prog_stack_struct and update it.
1641 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
1642 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
1643 ccl->eof_ic on EOF.
1644 (ccl_debug_hook): New function.
1645 (struct ccl_prog_stack): New member eof_ic.
1646 (ccl_driver): Handle EOF in subrountine call correctly.
1647
16482004-06-11 Kenichi Handa <handa@m17n.org>
1649
1650 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
1651
1da71023
KS
16522004-06-11 Kim F. Storm <storm@cua.dk>
1653
1654 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
1655
e9efcef4
JB
16562004-06-11 Juanma Barranquero <lektu@terra.es>
1657
1658 * keyboard.c (Fposn_at_point): Doc fix.
1659
9b9ceb61
DK
16602004-06-11 David Kastrup <dak@gnu.org>
1661
1662 * search.c (match_limit): Don't flag an error if match-data
1663 exceeding the allocated search_regs.num_regs gets requested, just
1664 return Qnil.
1665
6e87ac8f
MB
16662004-06-08 Miles Bader <miles@gnu.org>
1667
1668 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
1669
0b0dea7b
JB
16702004-06-07 Juanma Barranquero <lektu@terra.es>
1671
1672 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
1673 (Fcurrent_time_string, Fcurrent_time_zone)
1674 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
1675
a0a23346
MB
16762004-06-07 Miles Bader <miles@gnu.org>
1677
08384afd 1678 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
1679 (push_named_merge_point): New function.
1680 (merge_named_face): New function.
1681 (merge_face_ref, face_at_buffer_position, face_at_string_position):
1682 Use `merge_named_face'.
1683 (merge_face_inheritance): Function removed.
c8d09ad8 1684 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
1685 Add new `err_msgs' and `named_merge_points' args. Return error
1686 status. Only print error messages if ERR_MSGS is true. Don't try to
1687 do :inherit attribute validation.
1688 (merge_face_heights): Handle `unspecified' in both directions.
1689 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
1690 Call `merge_face_ref' instead of `merge_face_inheritance'.
1691 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
1692 (compute_char_face, face_at_buffer_position)
1693 (face_at_string_position): Call `merge_face_ref' instead of
1694 `merge_face_vector_with_property'.
1695
12d5b185
KH
16962004-06-07 Kenichi Handa <handa@m17n.org>
1697
1698 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
1699 the necessary places.
1700
2e2d7ee6
KS
17012004-06-07 Kim F. Storm <storm@cua.dk>
1702
1703 * process.c (Fdelete_process): Undo 2004-05-28 change.
1704 Instead, call status_notify also for network process.
1705 (status_message): Use process instead of status as arg.
1706 Give messages "deleted" or "connection broken by remote peer" for
1707 an exited network process.
1708 (status_notify): Change call to status_message.
1709 (read_process_output): Increase readmax to 4096. Do not increase
1710 buffer size for datagram channels (default is now large enough).
1711
fcf0d299
ST
17122004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1713
1714 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
1715 problem due to newly defined variable.
1716
0722292b
MB
17172004-06-06 Miles Bader <miles@gnu.org>
1718
1719 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
1720 immediately if non-interactive or not initialized.
1721
ddfb8369
RS
17222004-06-05 Richard M. Stallman <rms@gnu.org>
1723
1724 * minibuf.c (Fcompleting_read): Doc fix.
1725
57015754
AS
17262004-06-05 Andreas Schwab <schwab@suse.de>
1727
1728 * macfns.c (x_create_tip_frame): Fix declaration after statement.
1729
23715ea6
JB
17302004-06-05 Juanma Barranquero <lektu@terra.es>
1731
1732 * keymap.c (Fdescribe_vector): Fix docstring.
1733 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
1734
8e330b22
MB
17352004-06-05 Miles Bader <miles@gnu.org>
1736
1737 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
1738 attributes have different values than the default face.
1739
9742a3a6
EZ
17402004-06-04 Eli Zaretskii <eliz@gnu.org>
1741
1742 * xfaces.c (x_supports_face_attributes_p): Make this function
1743 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
1744 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
1745 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 1746
9717e36c
MB
17472004-06-04 Miles Bader <miles@gnu.org>
1748
1749 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
1750 from Ftty_supports_face_attributes_p.
1751 (x_supports_face_attributes_p): New function.
1752 (Ftty_supports_face_attributes_p): Function deleted.
1753 (Fdisplay_supports_face_attributes_p): New function.
1754 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 1755 (face_attr_equal_p): New function.
9717e36c
MB
1756 (lface_equal_p): Use it.
1757
52deb19f
JB
17582004-06-03 Juanma Barranquero <lektu@terra.es>
1759
1760 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
1761 (Vw32_color_map): Fix typo in docstring.
1762 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
1763 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
1764 Make argument names match their use in docstring.
1765
86d373e6
JB
17662004-06-02 Juanma Barranquero <lektu@terra.es>
1767
1768 Work around bugs/problems with MinGW builds of graphics libraries
1769 called from MSVC builds of Emacs.
1770
1771 * image.c (lookup_image): Make pointer to img static.
1772 (png_read_from_memory): Disable "global" optimization.
1773
2fb0ce67
SM
17742004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1775
c8d09ad8
SM
1776 * eval.c (Fcondition_case): Fix usage. Simplify.
1777
2fb0ce67
SM
1778 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
1779
50bf7673
ST
17802004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1781
1782 * macfns.c: Don't include ccl.h.
1783 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
1784 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
1785 TextUtils.h.
c8d09ad8 1786 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
1787 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
1788 display height/width.
1789 (compute_tip_xy, Vx_max_tooltip_size): Declare.
1790 (unwind_create_tip_frame, compute_tip_xy): New functions.
1791 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
1792 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
1793 and last_show_tip_args.
2fb0ce67 1794
50bf7673
ST
1795 * macgui.h [!MAC_OSX]: Include Gestalt.h.
1796 (Cursor, No_Cursor): New defines.
c8d09ad8 1797 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
1798 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
1799
1800 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
1801
1802 * macterm.c: Don't include Gestalt.h.
1803 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
1804 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
1805 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
1806 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
1807 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
1808 (construct_mouse_click, XTmouse_position)
1809 (x_scroll_bar_report_motion, x_calc_absolute_position)
1810 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
1811 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
1812 (note_mouse_movement): Clear the mouse face and reset the pointer
1813 shape when the pointer goes outside the frame without grabbing.
1814 (mac_front_window): New function.
1815 (mac_window_to_frame): New macro.
1816 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
1817 (do_window_activate, do_window_deactivate, do_app_resume)
1818 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
1819 (do_zoom_window, mac_do_receive_drag, XTread_socket)
1820 (mac_check_for_quit_char): Use mac_front_window and/or
1821 mac_window_to_frame.
1822 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
1823 scroll-bar click event.
1824 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 1825 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 1826 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 1827 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
1828 (do_window_update): Don't do anything if the updated window is the
1829 tooltip window.
1830 (do_mouse_moved): Handle mouse movement events here (previously in
1831 XTread_socket). Clear the mouse face if
1832 dpyinfo->mouse_face_hidden is set.
1833 (do_os_event, do_events): Remove (now in XTread_socket).
1834 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
1835 Loop until all the events in the queue are processed.
1836 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
1837 contents of do_os_event and do_events. Remove mouse movement
1838 handling (now in do_mouse_moved). Add the case where
1839 Vmouse_highlight has an integer value.
1840 (NewMacWindow): Remove.
1841 (make_mac_frame): Do what NewMacWindow previously did. Don't do
1842 excess initializations.
1843 (make_mac_terminal_frame): Previous initializations in
1844 make_mac_frame are moved here.
c8d09ad8
SM
1845 (mac_initialize_display_info):
1846 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
1847
1848 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
1849 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
1850
08fd1251
RS
18512004-05-29 Richard M. Stallman <rms@gnu.org>
1852
1853 * lisp.h (truncate_undo_list): Update decl.
1854
1855 * alloc.c (undo_outer_limit): New variable.
1856 (syms_of_alloc): Defvar it.
1857 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
1858
1859 * undo.c (truncate_undo_list): New arg LIMITSIZE.
1860
1861 * alloc.c (lisp_align_malloc): Check for base == 0
1862 regardless of HAVE_POSIX_MEMALIGN.
1863 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
1864
227ef0ff
SM
18652004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1866
1867 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
1868 (marker_blocks_pending_free): Remove.
1869 (Fgarbage_collect): Sweep after cleaning up undo-lists.
1870 Mark the undo lists after claning them up.
1871 Don't free block in marker_blocks_pending_free.
1872 (mark_buffer): Don't mark undo_list.
1873 (gc_sweep): Sweep hash-tables and strings first.
1874 Do free marker blocks that are empty.
1875
034a6113
SM
18762004-05-28 Jim Blandy <jimb@redhat.com>
1877
1878 * regex.c (print_partial_compiled_pattern): Add missing 'break'
1879 after 'case wordend'. For symbeg and symend, print to stderr,
1880 like the other cases.
1881
33594a8d
NF
18822004-05-28 Noah Friedman <friedman@splode.com>
1883
1884 * process.c (Fdelete_process): Do not call remove_process.
1885
ce50a847
SM
18862004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1887
1888 * alloc.c (struct backtrace): Remove.
1889 (Fgarbage_collect): Use the new mark_backtrace.
1890
1891 * eval.c (mark_backtrace): New function.
1892
1893 * minibuf.c (run_exit_minibuf_hook): New function.
1894 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
1895 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
1896
1e8dae36
KS
18972004-05-27 Kim F. Storm <storm@cua.dk>
1898
1899 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
1900 over display properties, e.g. images, that replace buffer text.
1901
846faa3b
KS
19022004-05-25 Kim F. Storm <storm@cua.dk>
1903
1904 * alloc.c (marker_blocks_pending_free): New var.
1905 (gc_sweep): Store free marker blocks on that list.
1906 (Fgarbage_collect): Free them after undo-list cleanup.
1907
1908 * process.c (wait_reading_process_input): Check connect_wait_mask
1909 before actually accepting connection in case it has already been
1910 accepted due to recursion.
1911
b6189c3b 19122004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 1913
ce50a847
SM
1914 * coding.c (Fset_safe_terminal_coding_system_internal):
1915 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 1916
71d5a208
RS
19172004-05-22 Richard M. Stallman <rms@gnu.org>
1918
1919 * alloc.c (Fmake_string): Doc fix.
1920
1921 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
1922 and the alist pairs too.
1923
1924 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
1925
1926 * emacs.c (main): Update copyright year.
1927
1928 * fileio.c (Fread_file_name): Expand DIR if not absolute.
1929
1930 * insdel.c (del_range_2, replace_range): Don't write an anchor
1931 if the gap is empty.
1932
1933 * xdisp.c (try_scrolling): If scroll-up-aggressively or
1934 scroll-down-aggressively is small but positive, put point
1935 near the screen edge.
1936
f63fd14e
JB
19372004-05-22 Juanma Barranquero <lektu@terra.es>
1938
1939 * keymap.c (Fdefine_key): Doc fix.
1940
4d12067c
KS
19412004-05-22 Kim F. Storm <storm@cua.dk>
1942
1943 * alloc.c (struct backtrace): Add debug_on_exit member.
1944 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
1945 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
1946 the removed cons cells.
1947 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
1948 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
1949 any cons cells pointing to unallocated stings.
1950 Do not lisp_free any marker blocks, as there may still be pointers
1951 to them from buffer undo lists at this stage of GC.
1952
1953 * keyboard.c (struct backtrace): Add debug_on_exit member.
1954 (Fcommand_execute): Clear it.
1955
931285e2
LT
19562004-05-20 Luc Teirlinck <teirllm@auburn.edu>
1957
1958 * intervals.c (lookup_char_property): Do not prematurely return nil.
1959
669fa600
SM
19602004-05-19 Jim Blandy <jimb@redhat.com>
1961
1962 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 1963 beginning and end of symbols.
4d12067c 1964
669fa600
SM
1965 * regex.c (enum syntaxcode): Add Ssymbol.
1966 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
1967 (re_opcode_t): New opcodes `symbeg' and `symend'.
1968 (print_partial_compiled_pattern): Print the new opcodes properly.
1969 (regex_compile): Parse the new operators.
ce50a847 1970 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
1971 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
1972 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
1973 (re_match_2_internal): Match symbeg and symend.
1974
1975 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
1976
0d8c2e5c
KS
19772004-05-19 Kim F. Storm <storm@cua.dk>
1978
1979 * .gdbinit (xsymbol): Fix last change.
1980
669fa600
SM
19812004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
1982
1983 * .gdbinit (xprintstr): New fun.
1984 (xstring, xprintsym): Use it.
1985
1986 * w32proc.c (create_child): Use INTMASK.
1987
1988 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1989 unmarked elements of the undo list.
1990
9a6a4c40
DP
19912004-05-18 David Ponce <david@dponce.com>
1992
1993 * print.c (print): Reset print_depth before to call print_object.
1994
f3c4ec74
JR
19952004-05-18 Jason Rumney <jasonr@gnu.org>
1996
1997 * w32console.c: Prefix RIF functions with w32con_ to avoid
1998 namespace clash with functions in term.c and w32term.c.
1999
2000 * w32menu.c (add_menu_item, w32_menu_display_help)
2001 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
2002
0d8c2e5c 2003 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 2004
6be49c3a
EZ
20052004-05-18 Eli Zaretskii <eliz@gnu.org>
2006
4d0b9a0a
EZ
2007 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
2008
6be49c3a
EZ
2009 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
2010 with make_number.
2011 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
2012 with XINT.
2013
0bc90bba
KS
20142004-05-18 Kim F. Storm <storm@cua.dk>
2015
89d19988
KS
2016 * blockinput.h (INPUT_BLOCKED_P): New macros.
2017
2018 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
2019 (Ftop_level): Unblock input if blocked.
2020
0bc90bba
KS
2021 * buffer.h (GET_OVERLAYS_AT): New macro.
2022 * msdos.c (IT_note_mouse_highlight): Use it.
2023 * textprop.c (get_char_property_and_overlay): Use it.
2024 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
2025 * xfaces.c (face_at_buffer_position): Use it.
2026
2027 * print.c (print_object): Increase buf size.
2028
653bd0f6
JR
20292004-05-17 Jason Rumney <jasonr@gnu.org>
2030
2031 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
2032 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
2033 Lisp_Object using i member.
2034 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
2035 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
2036 consistently.
2037
2038 * w32proc.c (create_child): Use make_number instead of masking pid.
2039
2040 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
2041 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
2042 Use EQ to compare Lisp_Objects.
2043 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
2044
2045 * w32term.c (w32_num_mouse_buttons): Rename from
2046 Vw32_num_mouse_buttons and make it an int.
2047
2048 * w32.c (init_environment): Use it.
2049
2050 * w32fns.c (w32_wnd_proc): Likewise.
2051
2052 * w32proc.c (w32_pipe_read_delay): Rename from
2053 Vw32_pipe_read_delay and make it an int.
2054
2055 * w32.c (_sys_read_ahead): Use it.
2056
2057 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
2058
2059 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
2060
2061 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
2062 (key_event): Don't mix Lisp_Object and int.
2063
2064 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
2065
2066 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
2067 modifiers in language change event.
2068
54b53ba7
KS
20692004-05-17 Kim F. Storm <storm@cua.dk>
2070
2071 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
2072 Such objects may be freed markers which still exist on an undo list.
2073
6e86a75d
JB
20742004-05-16 Juanma Barranquero <lektu@terra.es>
2075
2076 * data.c (Fset_default): Make argument names match their use in
2077 docstring.
2078
fc80da24
AS
20792004-05-15 Andreas Schwab <schwab@suse.de>
2080
2081 * emacs.c (gdb_array_mark_flag): Define.
2082 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
2083
c1380aa6
EZ
20842004-05-15 Eli Zaretskii <eliz@gnu.org>
2085
2086 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
2087 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
2088 defined for the MS-DOS build.
2089
89458937
SM
20902004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2091
2092 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
2093
08020f9a
KH
20942004-05-14 Kenichi Handa <handa@m17n.org>
2095
2096 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
2097
a433994a
ST
20982004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2099
2100 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
2101 section to frame.c section.
2102 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 2103 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 2104
a433994a 2105 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 2106
a433994a 2107 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 2108
a433994a
ST
2109 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
2110 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
2111 (XTread_socket): Fix int/Lisp_Object mixup.
2112 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 2113
a433994a
ST
2114 * macterm.h (struct frame, struct face, struct image)
2115 (display_x_get_resource, Fx_display_color_p)
89458937
SM
2116 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
2117 Add prototypes.
a433994a 2118
b51a51b9
KS
21192004-05-14 Kim F. Storm <storm@cua.dk>
2120
2121 * process.c (wait_reading_process_input): Make reentrant.
2122 Make Available and Connecting non-static. Save and restore value
2123 of waiting_for_user_input_p.
2124
2bde1dd8
KS
21252004-05-13 Kim F. Storm <storm@cua.dk>
2126
2127 * keyboard.c (mark_kboards): Don't mark x and y members
2128 that are overloaded in selection request events.
2129
a267ab4d
SM
21302004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2131
2132 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
2133
eb15ce9e
GM
21342004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
2135
2136 * window.c (Fdisplay_buffer, Fsplit_window)
2137 (split-height-threshold): Doc fix.
2138
7fc92635
JB
21392004-05-13 Juanma Barranquero <lektu@terra.es>
2140
2141 * xfaces.c (Ftty_supports_face_attributes_p)
2142 (Finternal_copy_lisp_face): Fix typo in docstring.
2143 (Finternal_get_lisp_face_attribute): Fix docstring.
2144
1ec2a572
JD
21452004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2146
2147 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
2148
ae9292e0
ST
21492004-05-11 Steven Tamm <steventamm@mac.com>
2150
2151 * macfns.c (Fx_create_frame): Default to using tool-bar by
2152 setting tool-bar-lines to 1 in default-frame-alist.
2153
21542004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
2155
2156 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
2157 (xpm_get_color_table_v, xpm_make_color_table_h)
2158 (xpm_put_color_table_h, xpm_get_color_table_h)
2159 (xpm_str_to_color_key, xpm_load_image, xpm_load)
2160 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 2161 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 2162
fe97e8df
ST
21632004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2164
a267ab4d 2165 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
2166 instead of FRAME_X_P
2167
b47e779e
KS
21682004-05-11 Kim F. Storm <storm@cua.dk>
2169
2170 * process.c (read_process_output): Grow decoding_buf when needed;
2171 this could cause a crash in allocate_string and compact_small_strings.
2172
cdc9b845
EZ
21732004-04-29 Jim Blandy <jimb@redhat.com>
2174
2175 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
2176 against proper opcode.
2177
aa7094ba
JB
21782004-05-10 Juanma Barranquero <lektu@terra.es>
2179
2180 * process.c (Fstart_process): Fix docstring.
2181
2182 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
2183 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
2184 (Fsplit_char, Fchar_charset): Make argument names match their use
2185 in docstring.
2186
e109331a
RS
21872004-05-10 Richard M. Stallman <rms@gnu.org>
2188
2189 * print.c (print_preprocess): Use being_printed, loop_count and
2190 halftail to detect overdeep nesting and cyclic cdr chains.
2191
9a28b921
AS
21922004-05-10 Andreas Schwab <schwab@suse.de>
2193
2194 * lisp.h: Declare Fmake_symbolic_link.
2195
2196 * fileio.c (Frename_file): Remove extra argument in call to
2197 Fmake_symbolic_link.
2198
e2c02c1a
KS
21992004-05-10 Kim F. Storm <storm@cua.dk>
2200
2201 * xdisp.c (calc_line_height_property): Use string position when
2202 object is a string.
2203
cfe9d13e
KH
22042004-05-10 Kenichi Handa <handa@m17n.org>
2205
a57e8159
KH
2206 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
2207 inhibit-modification-hooks to t temporarily before calling
2208 Ferase_buffer.
2209
2210 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
2211 inhibit-modification-hooks to t temporarily before calling
2212 Ferase_buffer.
2213
2214 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
2215 inhibit-modification-hooks to t temporarily before calling
2216 Ferase_buffer.
2217
cfe9d13e
KH
2218 * fns.c (count_combining): Delete it.
2219 (concat): Don't check combining bytes.
2220
ceb96489
JR
22212004-05-09 Jason Rumney <jasonr@gnu.org>
2222
2223 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
2224 (globals_of_w32fns): Set it.
2225
b6189c3b 22262004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
2227
2228 * data.c (Fquo): Simplify.
2229
28712a21
JB
22302004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
2231
2232 * data.c (Fquo): If any argument is float, do the computation in
2233 floating point.
2234
0f0af7a8
JB
22352004-05-08 Juanma Barranquero <lektu@terra.es>
2236
88214ef6
JB
2237 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
2238 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
2239 Fix spelling of Emacs on docstring.
2240 (Fset_process_coding_system, Fprocess_coding_system)
2241 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
2242 Make argument names match their use in docstring.
2243 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
2244 Fix docstring.
2245
0f0af7a8
JB
2246 * editfns.c (Finsert_buffer_substring): Make argument names match their
2247 use in docstring.
2248
2249 * syntax.c (Fmodify_syntax_entry): Fix docstring.
2250
2a316a84
ST
22512004-05-07 Steven Tamm <steventamm@mac.com>
2252
2253 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
2254 around call to ReceiveEvent to avoid certain crashes.
2255
22562004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 2257
2a316a84
ST
2258 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
2259 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
2260 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
2261 Save/restore the current graphics port and device handle when
2262 drawing into an offscreen graphics world.
2263
2264 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
2265 (gif_load): Likewise.
2266
ab80314b
JB
22672004-05-07 Juanma Barranquero <lektu@terra.es>
2268
2269 * window.c (Fset_window_buffer): Fix docstring.
2270
70646bb5
TTN
22712004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
2272
2273 * emacs.c (main) [VMS]: Fix var ref.
2274
b6189c3b 22752004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
2276
2277 * data.c (Fsetq_default): Fix docstring.
2278
279d3293
JR
22792004-05-06 Jason Rumney <jasonr@gnu.org>
2280
2281 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
2282 to avoid name clash.
2283
f72b5416
JD
22842004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2285
2286 * fileio.c (barf_or_query_if_file_exists): Use lstat.
2287 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 2288 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 2289
6ab66799
KS
22902004-05-04 Kim F. Storm <storm@cua.dk>
2291
2292 * xdisp.c (Qtotal): New var.
2293 (syms_of_xdisp): Intern and staticpro it.
2294 (calc_line_height_property): New arg total. Set it if
2295 line-spacing property has format (total . VALUE).
2296 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
2297 Handle total line-spacing property.
2298
ab2d724b
JD
22992004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2300
2301 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
2302 "under" scroll bar when size/position changes.
2303
238add5e
JR
23042004-05-03 Jason Rumney <jasonr@gnu.org>
2305
2306 * makefile.nt: Remove.
2307
1644f4e4
EZ
23082004-05-02 Eli Zaretskii <eliz@gnu.org>
2309
a267ab4d
SM
2310 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
2311 Avoid compiler warnings.
05fdbeb8 2312
1644f4e4
EZ
2313 * Makefile.in (region-cache.o): Depend on config.h.
2314
b6189c3b 23152004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
2316
2317 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
2318 with continuation lines, too.
2319
2b98b088
TTN
23202004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
2321
2322 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
2323
d9bf7950
SM
23242004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
2325
2326 * xdisp.c (calc_line_height_property): YAILOM (yet another
2327 int/Lisp_Object mixup).
2328
affa509c
EZ
23292004-05-01 Eli Zaretskii <eliz@gnu.org>
2330
2331 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
2332 undo bad effect of pack(4) in some versions of system headers.
2333
07c07cfe
JR
23342004-05-01 Jason Rumney <jasonr@gnu.org>
2335
2336 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
2337
e71caa4e
KS
23382004-04-30 Kim F. Storm <storm@cua.dk>
2339
2340 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 2341 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
2342
2343 * dispextern.h (struct it): Remove member use_default_face.
2344 Add members override_ascent, override_descent, override_boff.
2345
2346 * xdisp.c (init_iterator): Handle line-spacing float value.
2347 Initialize override_ascent member.
2348 (append_space_for_newline): Reset override_ascent.
2349 Remove use_default_face.
2350 (calc_line_height_property): New function to calculate value of
2351 line-height and line-spacing properties. Look at overlays, too.
2352 Set override_ascent, override_descent, override_boff members when
2353 using another face than the current face. Float values are now
2354 relative to the frame default font, by default; accept a cons
2355 of ratio and face name to specify value relative to a specific face.
2356 (x_produce_glyphs): Use calc_line_height_property.
2357 Use override_ascent etc. when set to handle different face heights.
2358 A negative line-spacing property value is interpreted as a total
2359 line height, rather than inter-line spacing.
2360 (note_mouse_highlight): Allocate room for 40 overlays initially.
2361
0fddae66
SM
23622004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2363
2364 * data.c (Fsubr_name): New fun.
2365 (syms_of_data): Defsubr it.
2366
712d23dc
KS
23672004-04-29 Kim F. Storm <storm@cua.dk>
2368
2369 * xdisp.c (null_glyph_slice): New var.
2370 (append_glyph, append_composite_glyph, append_stretch_glyph):
2371 Use it to initialize glyph slice.
2372
033ad8c6
SM
23732004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
2374
2375 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
2376 (on_hot_spot_p): Make sure we always return a value.
2377 (Flookup_image_map): Remove unused var ix and iy.
2378 (note_mode_line_or_margin_highlight): Remove unused var `image'.
2379
93397360
EZ
23802004-04-27 Eli Zaretskii <eliz@gnu.org>
2381
2382 * msdos.c (init_environment): If one of the TMP... environment
2383 variables is set to a drive letter without a trailing slash,
2384 append a slash.
2385
0c54865e
EZ
23862004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
2387
2388 * editfns.c (lisp_time_argument): Provide externally.
2389
2390 * fileio.c (Fset_file_times): New function.
2391 (syms_of_fileio): Intern and staticpro it.
2392
d3b111bd
KS
23932004-04-27 Kim F. Storm <storm@cua.dk>
2394
07dc1231
KS
2395 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
2396 header line strings.
2397
360fe9d2
KS
2398 * dispextern.h (struct it): New member use_default_face.
2399
d3b111bd
KS
2400 * xdisp.c (Qline_height): New variable.
2401 (syms_of_xdisp): Intern and staticpro it.
2402 (append_space_for_newline): Partially undo 2004-04-25 change;
2403 add default_face_p arg, and restore callers.
2404 Clear it->use_default_face after use.
2405 (x_produce_glyphs): Set default font for ascii char if
2406 it->use_default_font is set. Change line-spacing property to set
2407 just extra line spacing. Handle new line-height property.
2408
0448588b
AS
24092004-04-26 Andreas Schwab <schwab@suse.de>
2410
2411 * print.c (print_object): Print non-ascii characters in bool
2412 vector representation as octal escapes.
2413
2414 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
2415 * print.c (print_object): Use it instead of BITS_PER_CHAR for
2416 bool vectors.
2417 * lread.c (read1): Likewise.
2418 * alloc.c (Fmake_bool_vector): Likewise.
2419 * data.c (Faref, Faset): Likewise.
2420 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
2421 (mapcar1): Likewise.
d3b111bd 2422
536d6baa
ST
24232004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2424
2425 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
2426
ae11577a
MB
24272004-04-26 Miles Bader <miles@gnu.org>
2428
2429 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
2430
e198ba87
JB
24312004-04-26 Juanma Barranquero <lektu@terra.es>
2432
2433 * buffer.c (Fpop_to_buffer): Fix docstring.
2434
f3d5f92d 24352004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 2436
f3d5f92d
ST
2437 * lread.c (init_lread): Don't display missing lisp directory
2438 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 2439 may be built without correct installation path.
f3d5f92d 2440
03e35edc
KS
24412004-04-25 Kim F. Storm <storm@cua.dk>
2442
9ff3aa31
KS
2443 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2444
2445 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2446
03e35edc
KS
2447 * xdisp.c (append_space_for_newline): Rename from append_space.
2448 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
2449 (x_produce_glyphs): Handle line-spacing property on newline char.
2450 If value is t, adjust ascent and descent to fit current row height.
2451 If value is an integer or float, set extra_line_spacing to integer
2452 value, or to float value x current line height.
2453
f24814e0
KH
24542004-04-23 Kenichi Handa <handa@m17n.org>
2455
2456 * fontset.c (Finternal_char_font): If POSITION is nil, return
2457 font for displaying CH with the default face.
2458
d814862a
JB
24592004-04-23 Juanma Barranquero <lektu@terra.es>
2460
2461 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
2462
063a45c5
SM
24632004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2464
2465 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
2466 Don't make assumptions about the relative place of i and val.
2467 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
2468
ae7ab2d3
KS
24692004-04-21 Kim F. Storm <storm@cua.dk>
2470
2471 * dispextern.h (struct glyph_slice): New struct.
2472 (struct glyph): New member slice.
2473 (GLYPH_SLICE_EQUAL_P): New macro.
2474 (GLYPH_EQUAL_P): Use it.
2475 (struct glyph_string): New member slice.
2476 (struct it_slice): New struct.
2477 (struct it): New member slice, add member to stack too.
2478 New member constrain_row_ascent_descent_p.
2479 (image_ascent): Add prototype.
2480
2481 * dispnew.c (buffer_posn_from_coords): Return full image width
2482 and height even for image slices (posn is relative to full image).
2483 (marginal_area_string): Adjust x0,y0 for image slice.
2484
2485 * image.c (image_ascent): Add slice arg; calculate ascent for
2486 image slice (or full image).
2487
2488 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
2489 (syms_of_keyboard): Defsubr them.
2490
2491 * lisp.h (pos_visible_p): Fix prototype.
2492
c62aec78 2493 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
2494 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2495 (x_draw_image_foreground, x_draw_image_relief)
2496 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2497 Draw sliced images.
2498
2499 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
2500 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2501 (x_draw_image_foreground, x_draw_image_relief)
2502 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
2503 Draw sliced images.
2504
2505 * w32term.h (image_ascent): Remove prototype.
2506
2507 * window.c (Fpos_visible_in_window_p): Return pixel position if
2508 PARTIALLY arg is non-nil. Simplify. Doc fix.
2509 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
2510 to return/set vscroll in pixels.
2511
2512 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
2513
2514 * xdisp.c (Qslice): New variable.
2515 (syms_of_xdisp): Intern and staticpro it.
2516 (pos_visible_p): Return pixel position in new x and y args.
2517 (init_iterator): Reset it->slice info.
2518 (handle_display_prop): Parse (slice ...) property.
2519 (push_it, pop_it): Save/restore slice info.
2520 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
2521 force repositioning of tall row if window is vscrolled, as that
2522 would reset vscroll.
2523 (append_space): Set it->constrain_row_ascent_descent_p to avoid
2524 increasing row height if row is non-empty.
2525 (fill_image_glyph_string): Copy slice info.
2526 (take_vertical_position_into_account): Simplify.
2527 (produce_image_glyph): Handle iterator slice info, setup glyph
2528 slice info. Do not force minimum line height.
2529 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
2530 do not increase height (ascent/descent) of non-empty row when
2531 adding normal character glyph; instead reduce glyph ascent/descent
2532 appropriately; if row is higher than current glyph, adjust glyph
2533 descent/ascent to reposition glyph within the existing row.
2534 Likewise, when char is newline, only set ascent/descent if row is
2535 currently empty.
2536 (note_mouse_highlight): Handle hotspots with sliced image.
2537
2538 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
2539 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2540 (x_draw_image_foreground, x_draw_image_relief)
2541 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2542 Draw sliced images.
2543
2544 * xterm.h (image_ascent): Remove prototype.
2545
d58f8753
SM
25462004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2547
2548 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
2549
4ce2719d
JPW
25502004-04-20 John Paul Wallington <jpw@gnu.org>
2551
2552 * fns.c (Fassoc, Feql): Fix indentation.
2553
d58f8753 2554 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 2555
95f8c3b9
JPW
25562004-04-19 John Paul Wallington <jpw@gnu.org>
2557
2558 * fns.c (Feql): New function.
d58f8753 2559 (syms_of_fns): Defsubr it.
95f8c3b9 2560
b7e85537
JR
25612004-04-18 Jason Rumney <jasonr@gnu.org>
2562
2563 * w32select.c (Fw32_set_clipboard_data): Get sequence number
2564 after closing the clipboard.
2565
5a72efd4
LT
25662004-04-16 Luc Teirlinck <teirllm@auburn.edu>
2567
2568 * buffer.c (Fbuffer_base_buffer): Doc fix.
2569
20dc8583
KS
25702004-04-17 Kim F. Storm <storm@cua.dk>
2571
60962ec4
KS
2572 * keymap.c (Fkey_description): Add optional PREFIX arg.
2573 Combine prefix with KEYS to make up the full key sequence to describe.
2574 Correlate meta_prefix_char and following (simple) key to describe
2575 as meta modifier. All callers changed.
2576 (describe_map): Rename arg `keys' to `prefix'. Remove local
2577 `elt_prefix' var. Use Fkey_description with prefix instead of
2578 elt_prefix combined with Fsingle_key_description.
2579 (describe_vector): Declare static. Replace arg `elt_prefix' with
2580 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
2581 if !KEYMAP_P. Use Fkey_description with prefix instead of
2582 Fsingle_key_description.
2583
2584 * keymap.h (Fkey_description): Fix prototype.
2585 (describe_vector): Remove prototype.
2586
409368b9
KS
2587 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
2588
20dc8583
KS
2589 * image.c (PNG_BG_COLOR_SHIFT): Remove.
2590 (png_load): Fix calculation of transparent background color on X
2591 and W32 platforms.
2592
75c5501b
JB
25932004-04-16 Juanma Barranquero <lektu@terra.es>
2594
2595 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
2596 not too large before computing how much to scroll.
2597
da879ae8
SM
25982004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2599
2600 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
2601
d01ca4a8
LT
26022004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2603
2604 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
2605 Add hyperlink to Elisp manual to the docstring.
2606
572943b3
SM
26072004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
2608
2609 * callint.c (fix_command): Use XDCR.
2610
5e30a0fb
NR
26112004-04-14 Nick Roberts <nick@nick.uklinux.net>
2612
2613 * window.c (Fget_lru_window): Doc fix.
2614
a27ddfaf
KS
26152004-04-14 Kim F. Storm <storm@cua.dk>
2616
2617 * editfns.c (Fformat): Fix allocation size of precision array.
2618
2619 * dispnew.c (update_window): Only set changed_p if
2620 scrolling_window actually did scroll.
2621 (scrolling_window): Only return 1 if we actually did scroll.
2622
2623 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
2624 height to glyph height when cursor row is not fully visible.
2625 (make_cursor_line_fully_visible): Add FORCE_P arg to return
2626 failure in case row is higher than window. Callers changed.
2627 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
2628 Try to scroll partially visible, higher-than-window cursor row.
2629 (redisplay_window): Always try to scroll partially visible,
2630 higher-than-window cursor row - both initially and again with
2631 centering_position = 0.
2632 Clear desired matrix before retrying with centering_position = 0.
2633
da879ae8
SM
26342004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2635
2636 * syntax.c (scan_lists): Simplify backward string scan.
2637 Fix off-by-one boundary check for string and comment fences.
2638
5fc16e8e
SM
26392004-04-13 Joe Buehler <jbuehler@hekimian.com>
2640
2641 * sheap.c, unexcw.c: New files.
2642
c9aac8e6
LT
26432004-04-12 Luc Teirlinck <teirllm@auburn.edu>
2644
2645 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
2646 base buffer has been killed. Correct the error message if the
2647 base buffer does not exist.
2648
1e88a355
SM
26492004-04-12 Joe Buehler <jbuehler@hekimian.com>
2650
2651 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
2652 Cygwin itself. Add support for Xaw3d scrollbars.
2653
2654 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
2655
2656 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
2657
2658 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
2659 before Cygwin unexec.
2660
2661 * Makefile.in: Link changes for Cygwin unexec() support.
2662
8dbff9a0
AS
26632004-04-12 Andreas Schwab <schwab@suse.de>
2664
2665 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
2666
54dffe35
LT
26672004-04-11 Luc Teirlinck <teirllm@auburn.edu>
2668
2669 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
2670 IGNORE argument equals NAME. Doc fix.
2671
99a72bdf
MY
26722004-04-11 Masatake YAMATO <jet@gyve.org>
2673
1e88a355 2674 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
2675 empty if they are backwards.
2676
40899d7b
SM
26772004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2678
2679 * xfaces.c (face_color_supported_p): Fix compilation without X11.
2680
f8f853de
SM
26812004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2682
2683 * doc.c (Fsnarf_documentation): Ignore new file name entries.
2684
c953fe1b
KS
26852004-04-06 Kim F. Storm <storm@cua.dk>
2686
661e85c1
KS
2687 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2688 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
2689
2690 * w32term.c (w32_read_socket): Set mouse_face_hidden after
2691 clearing highlight.
2692
2693 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2694
2695 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
2696 clearing highlight.
2697
c953fe1b
KS
2698 * indent.c (vmotion): Do not reserve one column for continuation
2699 marks on window frames.
2700
c1994268
EZ
27012004-04-04 Eli Zaretskii <eliz@gnu.org>
2702
2703 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
2704 from GCC.
2705
9f691b0d
SM
27062004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2707
2708 * .gdbinit-union: Remove.
2709
2710 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
2711 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
2712 ($nonvalbits): Remove.
2713 ($valmask): Set it by calling xreload to avoid redundancy.
2714
2715 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
2716 (gdb_emacs_intbits): Remove.
2717
7a8560d7
JD
27182004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2719
9f691b0d 2720 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 2721
3c8111fc
KH
27222004-03-30 Kenichi Handa <handa@m17n.org>
2723
2724 * editfns.c (Fformat): Fix initialization of the array info.
2725
48a0bce4
KS
27262004-03-30 Kim F. Storm <storm@cua.dk>
2727
2728 * xterm.c (x_mouse_click_focus_ignore_position): New var.
2729 (syms_of_xterm): DEFVAR_BOOL it.
2730 (ignore_next_mouse_click_timeout): New var.
2731 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
2732 Use it to filter mouse clicks following focus event.
2733
1cd0066c
KS
27342004-03-29 David Ponce <david@dponce.com>
2735
2736 * callint.c (Fcall_interactively): Fix last change.
2737
adb3b353
SM
27382004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2739
2740 * eval.c (Fcommandp): Simplify.
2741
2742 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
2743 Extend to handle all kinds of functions.
2744
2745 * lisp.h (Finteractive_form): Declare.
2746
2747 * callint.c (Fcall_interactively): Use it.
2748
6fc4c9c9
KS
27492004-03-26 Kim F. Storm <storm@cua.dk>
2750
2751 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
2752 to catch errors in calc_pixel_width_or_height during redisplay.
2753
abdb9b83
MY
27542004-03-26 Masatake YAMATO <jet@gyve.org>
2755
b17856dd 2756 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 2757
b17856dd 2758 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 2759
b17856dd 2760 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 2761
b17856dd 2762 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 2763
e8a84b6c
JD
27642004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2765
b17856dd 2766 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 2767
36a3fd05
RS
27682004-03-19 Richard M. Stallman <rms@gnu.org>
2769
2770 * s/sol2-6.h: Delete previous change.
2771
ab24c127
KS
27722004-03-19 Kim F. Storm <storm@cua.dk>
2773
2774 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
2775 to_charpos corresponds to newline in right fringe. Use local
2776 BUFFER_POS_REACHED_P macro.
2777
992126de
JD
27782004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2779
2780 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
2781 to compile on non-window system.
2782
45dbfc84
KS
27832004-03-19 Kim F. Storm <storm@cua.dk>
2784
2785 * dispextern.h (calc_pixel_width_or_height): Add prototype.
2786
2787 * image.c (Qcenter): Move to xdisp.c.
2788
2789 * xdisp.c (Qcenter): Declare here.
adb3b353 2790 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
2791 (handle_single_display_prop): Allow space display property on all
2792 platforms.
2793 (display_mode_line): Set mode_line_p before displaying line.
2794 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
2795 handling. Remove complex cases for fringes and scroll-bars.
2796 Add left, right, and center alignment positions. Add text (area)
2797 width/height. Return width or height for image specs.
2798 (produce_stretch_glyph): Improve handling of :align-to. Is now
2799 relative to left of text area by default, but other base offsets
2800 can be specified -- also for text lines.
2801
2802 * term.c (produce_glyphs): Handle IT_STRETCH.
2803 (produce_stretch_glyph): New function to handle space width and
2804 align-to display properties on non-window systems.
2805
37264101
SM
28062004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2807
2808 * fileio.c (Fread_file_name): Set completion-ignore-case for
2809 case-insensitive systems.
2810
73bc43da
MY
28112004-03-14 Masatake YAMATO <jet@gyve.org>
2812
2813 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
2814 when keymap and cursor are setup.
2815
9062aa89
ST
28162004-03-14 Steven Tamm <steventamm@mac.com>
2817
b17856dd 2818 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 2819
e4b1b5ab
KS
28202004-03-14 Kim F. Storm <storm@cua.dk>
2821
2822 * dispextern.h (x_find_image_file): Add prototype.
2823
2824 * image.c (x_find_image_file): Make extern.
2825
2826 * xfns.c (x_find_image_file): Remove prototype.
2827
a6eeaa81 28282004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 2829
37264101 2830 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 2831
37264101 2832 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 2833
e69cfac2
RS
28342004-03-12 Richard M. Stallman <rms@gnu.org>
2835
2836 * fns.c (internal_equal): New arg PROPS controls comparing
2837 text properties. All callers changed.
2838 (Fequal_including_properties): New function.
2839 (syms_of_fns): defsubr it.
2840
45034953
KS
28412004-03-12 Kim F. Storm <storm@cua.dk>
2842
2843 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 2844
45034953
KS
2845 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
2846 (image_background, image_background_transparent): Fix prototypes.
2847
37264101 2848 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
2849
2850 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
2851 (x_query_font, x_find_ccl_program, x_set_window_size)
2852 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2853 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2854 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
2855
2856 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
2857 (x_query_font, x_find_ccl_program, x_set_window_size)
2858 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2859 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2860 (mac_draw_line_to_pixmap): Add prototypes.
2861
28622004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2863
2864 * macterm.c (XTread_socket): Fix mouse click on tool bar.
2865
a12d3d87
KS
28662004-03-11 Kim F. Storm <storm@cua.dk>
2867
d3ab1cf1
KS
2868 * dispextern.h: Move image related prototypes from xfns.c section
2869 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
2870 HAVE_X_WINDOWS.
37264101 2871
37de9f51 2872 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 2873 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
2874 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
2875 (GTK_OBJ) [USE_GTK]: New declaration.
2876 (obj): Add $(GTK_OBJ) to list.
2877
5243c06a 28782004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 2879
5243c06a
ST
2880 * image.c [MAC_OSX]: Include sys/stat.h
2881
2882 * macfns.c (syms_of_macfns): Remove definitions of things now
2883 defined in image.c
2884
c0f97789
KS
28852004-03-11 Kim F. Storm <storm@cua.dk>
2886
2887 The following changes consolidates the identical/similar image
2888 support code previously found in xfns.c, w32fns.c, and macfns.c
2889 into a new file image.c.
2890
2891 * makefile.w32-in (OBJ1): Add image.o.
2892 ($(BLD)/image.$(O)): Add dependencies.
2893
2894 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
2895 (image.o): Add dependencies.
37264101 2896
c0f97789
KS
2897 * image.c: New file with consolidated image support code.
2898 (COLOR_TABLE_SUPPORT): New define to control whether
2899 color table support is available (X only).
2900 (Bitmap_Record): Common name for x_bitmap_record,
2901 w32_bitmap_record, and mac_bitmap_record.
2902 (XImagePtr): Common name for pointer to XImage or equivalent.
2903 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
2904 to XImagePtr on X+MAC, and to HDC on W32.
2905 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
2906 (NO_PIXMAP): Common name for "None" or equivalent.
2907 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
2908 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
2909 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
2910 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
2911 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
2912 (XDrawLine): Define on MAC for code sharing.
2913 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
2914 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
2915 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2916 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2917 (x_reference_bitmap, x_create_bitmap_from_data)
2918 (x_create_bitmap_from_file, x_destroy_bitmap)
2919 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2920 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2921 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2922 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2923 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2924 (define_image_type, lookup_image_type, valid_image_p)
2925 (image_error, enum image_value_type, struct image_keyword)
2926 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2927 (make_image, free_image, prepare_image_for_display, image_ascent)
2928 (four_corners_best, image_background, image_background_transparent)
2929 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2930 (make_image_cache, free_image_cache, clear_image_cache)
2931 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2932 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2933 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2934 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2935 (init_image_func_pointer, image_load_quartz2d)
2936 (struct ct_color, init_color_table, free_color_table)
2937 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2938 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2939 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2940 (x_disable_image, x_build_heuristic_mask)
2941 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2942 (TIFF support, GIF support, Ghostscript support): Consolidate image
2943 code from xfns.c, w32fns.c, and macfns.c.
2944 (syms_of_image): Consolidate image related symbol setup here.
2945 (init_image): Consolidate image related initializations here.
37264101 2946
c0f97789
KS
2947 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
2948 and init_image. Remove call to init_xfns.
2949
37264101
SM
2950 * macterm.h (struct mac_bitmap_record): Add file member.
2951 Not currently used, but simplifies code sharing.
c0f97789
KS
2952
2953 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2954 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2955 (x_reference_bitmap, x_create_bitmap_from_data)
2956 (x_create_bitmap_from_file, x_destroy_bitmap)
2957 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2958 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2959 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2960 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2961 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2962 (define_image_type, lookup_image_type, valid_image_p)
2963 (image_error, enum image_value_type, struct image_keyword)
2964 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2965 (make_image, free_image, prepare_image_for_display, image_ascent)
2966 (four_corners_best, image_background, image_background_transparent)
2967 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2968 (make_image_cache, free_image_cache, clear_image_cache)
2969 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2970 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2971 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2972 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2973 (init_image_func_pointer, image_load_quartz2d)
2974 (struct ct_color, init_color_table, free_color_table)
2975 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2976 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2977 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2978 (x_disable_image, x_build_heuristic_mask)
2979 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2980 (TIFF support, GIF support, Ghostscript support): Merge with image
2981 code from xfns.c and macfns.c into image.c.
2982 (syms_of_xfns): Move image related symbols to image.c.
2983 (init_external_image_libraries, init_xfns): Remove; initialization
2984 moved to init_image in image.c.
2985
2986 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2987 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2988 (x_reference_bitmap, x_create_bitmap_from_data)
2989 (x_create_bitmap_from_file, x_destroy_bitmap)
2990 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2991 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2992 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2993 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2994 (define_image_type, lookup_image_type, valid_image_p)
2995 (image_error, enum image_value_type, struct image_keyword)
2996 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2997 (make_image, free_image, prepare_image_for_display, image_ascent)
2998 (four_corners_best, image_background, image_background_transparent)
2999 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3000 (make_image_cache, free_image_cache, clear_image_cache)
3001 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3002 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3003 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3004 (struct ct_color, init_color_table, free_color_table)
3005 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3006 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3007 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3008 (x_disable_image, x_build_heuristic_mask)
3009 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3010 (TIFF support, GIF support, Ghostscript support): Merge with image
3011 code from xfns.c and macfns.c into image.c.
3012 (syms_of_xfns): Move image related symbols to image.c.
3013 (init_external_image_libraries, init_xfns): Remove; initialization
3014 moved to init_image in image.c.
3015
3016 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3017 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3018 (x_reference_bitmap, x_create_bitmap_from_data)
3019 (x_create_bitmap_from_file, x_destroy_bitmap)
3020 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3021 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3022 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3023 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3024 (define_image_type, lookup_image_type, valid_image_p)
3025 (image_error, enum image_value_type, struct image_keyword)
3026 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3027 (make_image, free_image, prepare_image_for_display, image_ascent)
3028 (four_corners_best, image_background, image_background_transparent)
3029 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3030 (make_image_cache, free_image_cache, clear_image_cache)
3031 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3032 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3033 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3034 (struct ct_color, init_color_table, free_color_table)
3035 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3036 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3037 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3038 (x_disable_image, x_build_heuristic_mask)
3039 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3040 (TIFF support, GIF support, Ghostscript support): Merge with
3041 w32fns.c and macfns.c image code into image.c.
3042 (syms_of_xfns): Move image related symbols to image.c.
3043 (init_xfns): Remove; initialization moved to init_image in image.c.
3044
3045 * lisp.h (syms_of_image, init_image): Add protoypes.
3046 (init_xfns): Remove prototype.
3047
3048 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3049 (x_reference_bitmap, x_create_bitmap_from_data)
3050 (x_create_bitmap_from_file, x_destroy_bitmap)
3051 (x_create_bitmap_mask): Move prototypes from dispextern.h.
3052 (gamma_correct) [MAC_OS]: Add prototype.
3053
3054 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3055 (x_reference_bitmap, x_create_bitmap_from_data)
3056 (x_create_bitmap_from_file, x_destroy_bitmap)
3057 (x_create_bitmap_mask): Move prototypes to dispextern.h.
3058
6eced09c
KH
30592004-03-09 Kenichi Handa <handa@etlken2>
3060
3061 * coding.c (decode_coding_emacs_mule): Handle insufficent source
3062 correctly.
3063
9a7e95f3
RS
30642004-03-04 Richard M. Stallman <rms@gnu.org>
3065
04a6e76b
RS
3066 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
3067
9a7e95f3
RS
3068 * window.c (Fdisplay_buffer): Doc fix.
3069
3070 * buffer.c (Fpop_to_buffer): Doc fix.
3071
6c2488df
KS
30722004-03-03 Kim F. Storm <storm@cua.dk>
3073
3074 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
3075
d8d95bc7
SM
30762004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
3077
3078 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
3079
357589bf
RS
30802004-03-02 Richard M. Stallman <rms@gnu.org>
3081
3082 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
3083
409949b5
KH
30842004-03-02 Kenichi Handa <handa@m17n.org>
3085
3086 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
3087
d24bc50f
KS
30882004-03-02 Kim F. Storm <storm@cua.dk>
3089
3090 * window.h (struct window): New member overlay_arrow_bitmap.
3091
3092 * window.c (make_window): Initialize overlay_arrow_bitmap.
3093
3094 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
3095 implement and integrate multiple overlay arrows with redisplay.
3096 (syms_of_xdisp): DEFVAR_LISP and initialize it.
3097 (last_arrow_position, last_arrow_string): Replace by properties.
3098 (Qlast_arrow_position, Qlast_arrow_string)
3099 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
3100 (syms_of_xdisp): Intern and staticpro them.
3101 (overlay_arrow_string_or_property, update_overlay_arrows)
3102 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
3103 (overlay_arrow_at_row): New functions for multiple overlay arrows.
3104 (redisplay_internal): Use them instead of directly accessing
3105 Voverlay_arrow_position etc. for multiple overlay arrows.
3106 (mark_window_display_accurate): Use update_overlay_arrows.
3107 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
3108 (try_window_id): Use overlay_arrows_changed_p.
3109 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
3110 (display_line): Use overlay_arrow_at_row to check multiple
3111 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 3112 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
3113 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
3114 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
3115
3116 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
3117 (update_window_fringes): Remove unused code.
3118
c1464661
JR
31192004-03-01 Jason Rumney <jasonr@gnu.org>
3120
3121 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
3122
a64387ee
JB
31232004-03-01 Juanma Barranquero <lektu@terra.es>
3124
3125 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
3126
3127 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
3128
334faa08
JD
31292004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3130
3131 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
3132 how many colors can be displayed.
3133
bb62616f
KH
31342004-03-01 Kenichi Handa <handa@m17n.org>
3135
3136 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
3137 correctly.
3138
0fd16104
KS
31392004-02-28 Kim F. Storm <storm@cua.dk>
3140
3141 * dispnew.c (update_window): Update header line also if there are
3142 no other changes in window (move code after set_cursor label).
3143
3144 * lisp.h (mark_window_display_accurate): Remove prototype.
3145
3146 * window.c (window_loop, Fforce_window_update): Force mode line
3147 updates by setting prevent_redisplay_optimizations_p and
3148 update_mode_lines.
3149
b59dd9c8
JD
31502004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3151
d8d95bc7 3152 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
3153
3154 * xterm.c (x_calc_absolute_position): Call x_real_positions
3155 to get WM window sizes and use those to calculate position.
d8d95bc7 3156 (x_set_offset): Remove code commented out.
b59dd9c8 3157
a874691c
MB
31582004-02-28 Miles Bader <miles@gnu.org>
3159
3160 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
3161
3e0c6482
KS
31622004-02-28 Kim F. Storm <storm@cua.dk>
3163
3164 * keyboard.c (kbd_buffer_store_event_hold): New function to store
3165 an event into kbd fifo, but with special handling of quit event;
3166 a quit event is saved for later, and further events are discarded
3167 until the saved quit event has been processed.
3168 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
3169 (gen_help_event): Store help event in kbd fifo.
3170 (NREAD_INPUT_EVENTS): Remove.
3171 (read_avail_input): Adapt to new read_socket_hook interface.
3172 Remove allocation and initialization of local input_event buffer,
3173 as read_socket_hook stores events directly in fifo. Allocate and
3174 initialize local hold_quit event to handle postponed quit event
3175 (and store it if set by kbd_buffer_store_event_hold).
3176
3177 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
3178 (gen_help_event): Fix prototype.
3179
a64387ee 3180 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 3181 numcharsp args. Add hold_quit arg.
f63fd14e 3182 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3183 directly in fifo using kbd_buffer_store_event_hold.
3184
3185 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
3186 (read_input_waiting): Adapt to new read_socket_hook interface.
3187 Remove allocation and initialization of local input_event buffer,
3188 as read_socket_hook stores events directly in fifo. Allocate and
3189 initialize local hold_quit event to handle postponed quit event
3190 (and store it if set by kbd_buffer_store_event_hold).
3191
a64387ee 3192 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
3193
3194 * termhooks.h (read_socket_hook): Fix prototype.
3195
3196 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
3197 numcharsp args. Add hold_quit arg.
f63fd14e 3198 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3199 directly in fifo using kbd_buffer_store_event_hold.
3200
3201 * w32inevt.h (w32_console_mouse_position): Fix prototype.
3202
3203 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
3204 Add hold_quit arg. Rework to use just one, local, inev
3205 input_event. Store inev directly in fifo using
3e0c6482
KS
3206 kbd_buffer_store_event_hold. Update count in one place.
3207 Postpone call to gen_help_event until inev is stored; use new
3208 local do_help for this.
3209 Remove local emacs_event in handing of ButtonPress event; just use
3210 inev instead (so no reason to copy it later).
3211
3212 * xsmfns.c (x_session_check_input): Remove numchars arg.
3213
d8d95bc7
SM
3214 * xterm.c (x_focus_changed, x_detect_focus_change):
3215 Remove numchars arg. Always store event into bufp arg.
3216 Return nothing. Callers changed accordingly.
3e0c6482
KS
3217 (glyph_rect): Simplify.
3218 (STORE_KEYSYM_FOR_DEBUG): New macro.
3219 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
3220 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
3221 (current_hold_quit) [USE_GTK]: Add.
3222 (event_handler_gdk): Adapt to new handle_one_xevent.
3223 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
3224 Add hold_quit arg. Rework to use just one, local, inev
3225 input_event. Store inev directly in fifo using
3e0c6482
KS
3226 kbd_buffer_store_event_hold. Update count in one place.
3227 Postpone call to gen_help_event until inev is stored; use new
3228 local do_help for this.
3229 Simplify handling of keysyms (consolidate common code). Fix bug
3230 where count was updated with nchars instead of nbytes.
3231 Remove local emacs_event in handing of ButtonPress event; just use
3232 inev instead (so no reason to copy it later).
3233 Remove `out' label. Rename label `ret' to `done'; add various
3234 `goto done' to clarify code flow in deeply nested blocks.
3235 (x_dispatch_event): Simplify as handle_one_xevent now calls
3236 kbd_buffer_store_event itself.
f63fd14e 3237 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
3238 arg. Call handle_one_xevent with new arglist. Store event from
3239 x_session_check_input in fifo.
3240 [USE_GTK]: Setup current_hold_quit.
3241 Decrement handling_signal before unblocking input.
3242 (x_initialize) [USE_GTK]: Initialize current_count.
3243
3244 * xterm.h (x_session_check_input): Fix prototype.
3245
e3564461 32462004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 3247
d8d95bc7 3248 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 3249
e3564461
ST
3250 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
3251 macgui.h).
a64387ee 3252
e3564461 3253 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 3254
e3564461
ST
3255 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
3256 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
3257 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
3258 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
3259 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
3260 (Bitmap): Remove typedef.
3261 (Pixmap): Change int to GWorldPtr.
3262
d8d95bc7 3263 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 3264
d8d95bc7
SM
3265 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
3266 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
3267 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
3268 long representation.
3269 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
3270 colors used for masks.
3271 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 3272
e3564461
ST
3273 * macfns.c: Include sys/types.h and sys/stat.h.
3274 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
3275 Include QuickTime/QuickTime.h.
3276 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3277 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
3278 functions defined in macterm.c.
3279 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
3280 (ZPixmap): New #define for compatibility with xfns.c.
3281 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3282 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
3283 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
3284 New functions.
e3564461 3285 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
3286 (x_destroy_x_image, unwind_create_frame, x_disable_image)
3287 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
3288 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
3289 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
3290 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
3291 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
3292 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
3293 long mixup.
3294 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
3295 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
3296 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
3297 (x_set_cursor_type, Fxw_color_values, valid_image_p)
3298 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
3299 (x_alloc_image_color, clear_image_cache, lookup_image)
3300 (x_find_image_file, xbm_read_bitmap_file_data)
3301 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
3302 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
3303 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
3304 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
3305 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 3306 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
3307 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
3308 #if 0.
3309 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
3310 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
3311 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
3312 New functions (from xfns.c).
e3564461
ST
3313 (Fx_create_frame): Record unwind_create_frame.
3314 (Fxw_display_color_p): Use dpyinfo->color_p.
3315 (Fx_display_grayscale_p, Fx_display_planes): Don't use
3316 dpyinfo->n_cbits.
3317 (Fx_display_color_cells): Use dpyinfo->n_planes;
3318 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
3319 (Qheuristic, cross_disabled_images, emboss_matrix)
3320 (laplace_matrix): New variables (from xfns.c).
3321 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
3322 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
3323 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
3324 (image_background_transparent): New function (from xfns.c).
3325 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3326 (image_load_quicktime): Add declaration.
3327 [MAC_OSX] (image_load_quartz2d): Likewise.
3328 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
3329 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 3330 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
3331 (xbm_load_image_from_file, x_laplace_read_row)
3332 (x_laplace_write_row, pbm_read_file): Remove functions.
3333 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
3334 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
3335 (colors_in_color_table): Sync with xfns.c (although not used).
3336 (lookup_rgb_color): Don't lookup color table. Just do gamma
3337 correction.
3338 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
3339 (x_disable_image): New function (from xfns.c).
3340 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
3341 (x_build_heuristic_mask): Sync with xfns.c.
3342 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3343 (HAVE_PBM): Remove #ifdef.
3344 (pbm_load): Sync with xfns.c. Set img->width and img->height
3345 before IMAGE_BACKGROUND.
d8d95bc7 3346 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
3347 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
3348 Don't enclose with #if HAVE_PNG.
3349 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
3350 symbol _CGImageCreateWithPNGDataProvider is defined.
3351 Otherwise use image_load_quicktime.
e3564461 3352 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
3353 [HAVE_PNG] (png_load): Sync with xfns.c.
3354 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3355 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
3356 HAVE_JPEG.
3357 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
3358 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
3359 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
3360 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
3361 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
3362 (tiff_image_p, tiff_load): Don't enclose declarations with #if
3363 HAVE_TIFF.
3364 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
3365 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
3366 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
3367 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
3368 New functions (from xfns.c).
e3564461 3369 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 3370 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
3371 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
3372 Don't enclose with #if HAVE_GIF.
3373 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
3374 animated gif. Otherwise use image_load_quicktime.
3375 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
3376 gif_DrawText to avoid conflict with QuickdrawText.h.
3377 [HAVE_GIF] (gif_load): Sync with xfns.c.
3378 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
3379 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
3380 Ghostscript is not supported yet).
3381 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
3382 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
3383 cross_disabled_images (from xfns.c). Remove #if 0 for supported
3384 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
3385 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
3386 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
3387 HAVE_PNG. Call EnterMovies to support animated gifs.
3388 Call init_image_func_pointer to bind a symbol
e3564461 3389 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 3390
d8d95bc7 3391 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
3392 (x_draw_bar_cursor): Sync declaration with xterm.c.
3393 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
3394 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
3395 graphics).
3396 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
3397 (mac_draw_line_to_pixmap, XCreatePixmap)
3398 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
3399 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
3400 New functions.
3401 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
3402 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
3403 Cast bits to char *.
e3564461
ST
3404 (reflect_byte): New function (from w32fns.c).
3405 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
3406 due to byte alignment.
d8d95bc7
SM
3407 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
3408 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
3409 (XSetForeground): Remove static (now used in macfns.c).
3410 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
3411 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
3412 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
3413 (x_draw_glyph_string_box, x_draw_image_foreground)
3414 (x_draw_image_foreground_1, x_draw_image_glyph_string)
3415 (x_draw_stretch_glyph_string, x_draw_glyph_string)
3416 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
3417 Sync with xterm.c.
3418 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
3419 than the xterm.c version when a strictly horizontal or vertical
3420 line is drawn.
3421 (XTset_terminal_window): Add static.
3422 (x_make_frame_visible): Add UNBLOCK_INPUT.
3423 (x_free_frame_resources): New funcion (from xterm.c).
3424 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
3425 occurs in tool bar area.
d8d95bc7
SM
3426 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
3427 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
3428 Initialize image cache.
3429 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
3430 Enclose unused functions with #if 0.
3431 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
3432 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 3433 from a mac font name to an XLFD font name according to its script code.
e3564461 3434 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 3435 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
3436 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
3437 whose name starts with `.'.
3438 (init_font_name_table): Use decode_mac_font_name. Add both
3439 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
3440 of a font is smJapanese.
3441 (mac_do_list_fonts): New function to list fonts that match a given
3442 pattern.
3443 (x_list_fonts, XLoadQueryFont): Use it.
3444 (XLoadQueryFont): Set rbearing field for each variable width
3445 character to avoid needless redraw.
3446 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
3447
446f5f3d
KS
34482004-02-26 Kim F. Storm <storm@cua.dk>
3449
af617d0f
KS
3450 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
3451 as read_socket_hook handler on X aborts if buffer is too small
3452 and W32 handler doesn't always check buffer limit.
3453
446f5f3d
KS
3454 * xdisp.c (handle_single_display_prop): Handle left-fringe and
3455 right-fringe similar to a display margin image. Specifically,
3456 the characters having the fringe prop are no longer shown, and
3457 we use IT_IMAGE/next_element_from_image with image_id = -1 to
3458 do this. Set fringe bitmap face_id in it->face_id.
3459 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
3460 still realize it->face (i.e. the fringe bitmap face).
3461
7d8a0b55
MB
34622004-02-25 Miles Bader <miles@gnu.org>
3463
3464 * xdisp.c (check_it): Check string/string_pos consistency.
3465 (init_iterator): Initialize string-related fields properly.
3466
34672004-02-11 Miles Bader <miles@gnu.org>
3468
3469 * xdisp.c (produce_image_glyph): Force negative descents to zero.
3470
34712004-02-10 Miles Bader <miles@gnu.org>
3472
3473 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
3474 BLOCK_INPUT can be nested, so it doesn't make much sense.
3475
a64387ee 34762004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
3477
3478 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
3479 (xbm_read_bitmap_data): Use unsigned char for image data.
3480
92f5fba2
LT
34812004-02-23 Luc Teirlinck <teirllm@auburn.edu>
3482
3483 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
3484
8565fb3d
JR
34852004-02-22 Jason Rumney <jasonr@gnu.org>
3486
3487 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
3488 correctly over other bitmaps.
3489
a6eeaa81 34902004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
3491
3492 * emacs.c (USAGE1): Split into two halves.
3493 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
3494 (USAGE3): Rename from USAGE2.
3495 (USAGE4): Rename from USAGE3.
f8125c39 3496
4effffca
EZ
34972004-02-21 Juri Linkov <juri@jurta.org>
3498
3499 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
3500 Fix --multibyte. Move --help, --version to USAGE2. Add alias
3501 --file. Fix -f, -l. Sort options. Untabify.
3502 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
3503
923c1e6f
LT
35042004-02-19 Luc Teirlinck <teirllm@auburn.edu>
3505
3506 * category.c (Fdefine_category, Fcategory_docstring)
3507 (Fget_unused_category, Fset_category_table)
3508 (Fcategory_set_mnemonics): Doc fixes.
3509
b0e225fd
KS
35102004-02-20 Kim F. Storm <storm@cua.dk>
3511
3512 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
3513 The following changes are relative to the 2004-01-21 revision.
3514 (NREAD_INPUT_EVENTS): Define as max number of input events to read
3515 in one call to read_socket_hook. Value is 8.
3516 (read_avail_input): Separate and rework handling of read_socket_hook
3517 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
3518 in read_socket_hook case, and repeat if full buffer is read.
3519 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
3520 In non-read_socket_hook case, just use a single input_event, and
3521 call kbd_buffer_store_event on the fly for each character.
3522
b15aa9f9
SM
35232004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3524
3525 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
3526 Remove unused `gu' alternative.
3527
83c9aa95
AS
35282004-02-19 Andreas Schwab <schwab@suse.de>
3529
3530 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
3531 warning.
3532
cc808173
KS
35332004-02-18 Kim F. Storm <storm@cua.dk>
3534
3535 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
3536 Fix last change.
3537
ab90a54d
KS
35382004-02-17 Kim F. Storm <storm@cua.dk>
3539
b26f249f
KS
3540 * xdisp.c (fast_find_position): Fix return value of new version;
3541 it was inverted compared to the 21.1 version.
3542 (get_window_cursor_type): Don't look at glyph if NULL.
3543 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 3544
ab90a54d
KS
3545 * keyboard.c: Rework previous change; it didn't consider that the
3546 buf array was allocated on the stack.
3547 (prev_read): Remove variable.
3548 (read_avail_input_buf): New static event buffer array.
b9568dfc 3549 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 3550 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
3551 Use in_read_avail_input to handle re-entrance; when re-entered,
3552 fully initialize and use tmp_buf array instead of read_avail_input_buf.
3553 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
3554 is always cleared on entry. To ensure that, we clear (just) the
3555 entries that were used before we return.
3556 (init_keyboard): Initialize read_avail_input_buf here.
3557
b6189c3b 35582004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
3559
3560 * cmds.c (Fend_of_line): Doc fix.
3561
7b5368c1
EZ
35622004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
3563
3564 * keyboard.c (prev_read): New static variable.
3565 (read_avail_input): Use it to zero out only those slots in buf[]
3566 that were used last time we were called.
3567
a6eeaa81 35682004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
3569
3570 * Makefile.in (obj): Move fringe.o from here...
3571 (XOBJ, MAC_OBJ): ...to here.
3572
159c348e
SE
35732004-02-16 Stephen Eglen <stephen@gnu.org>
3574
3575 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
3576
d2f14999
SM
35772004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
3578
b15aa9f9
SM
3579 * data.c (Fbyteorder):
3580 * fringe.c (Fdefine_fringe_bitmap):
3581 * xdisp.c (handle_single_display_prop):
d2f14999
SM
3582 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
3583
8d50508a
JR
35842004-02-16 Jason Rumney <jasonr@gnu.org>
3585
3586 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
3587
dd4497dc
ST
35882004-02-15 Steven Tamm <steventamm@mac.com>
3589
3590 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
3591 controlling emulation of a three button mouse with option and
3592 command keys.
3593 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 3594 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 3595
c9159cb3
KS
35962004-02-15 Kim F. Storm <storm@cua.dk>
3597
2cc52658
KS
3598 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
3599
c9159cb3
KS
3600 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
3601 Perform byte-swapping.
3602
12fde2dc
KS
36032004-02-14 Kim F. Storm <storm@cua.dk>
3604
3605 * dispextern.h (struct draw_fringe_bitmap_params): Change member
3606 bits from char to short to facilitate wider bitmaps.
3607 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
3608 member.
3609
3610 * fringe.c (struct fringe_bitmap): Change member bits from char to
3611 short to facilitate 16 bits wide bitmaps. Modify all standard
3612 bitmaps accordingly.
3613 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
3614 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
3615 (draw_fringe_bitmap): Ditto.
3616 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
3617 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
3618 handle up to 16 bits wide bitmaps.
3619 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 3620 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
3621
3622 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
3623 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
3624 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
3625
3626 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
3627 so it is no longer necessary to expand them here.
3628
3629 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
3630
9d7271e8
KS
36312004-02-12 Kim F. Storm <storm@cua.dk>
3632
3633 * window.c (Fwindow_fringes): Doc fix.
3634
706c1e4f
JD
36352004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3636
3637 * xselect.c (x_get_foreign_selection): Add new optional parameter
3638 time_stamp.
3639 (Fx_get_selection_internal): Ditto, pass time_stamp to
3640 x_get_foreign_selection.
3641
3642 * data.c (Fbyteorder): New function.
3643
c2d12b5d
JD
36442004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3645
3646 * atimer.c: Move include stdio.h to same place as in other files.
3647
3648 * region-cache.c: Ditto.
3649
3650 * sysdep.c: Ditto.
3651
3652 * xfaces.c: Ditto.
3653
4c1947b9
SS
36542004-02-09 Sam Steingold <sds@gnu.org>
3655
89458937 3656 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 3657
82722af3
KS
36582004-02-09 Kim F. Storm <storm@cua.dk>
3659
3660 * fringe.c: New file. Move original fringe related declarations
3661 and code from dispextern.h and xdisp.c here.
3662 Rework code to support user defined fringe bitmaps, redefining
3663 standard bitmaps, ability to overlay user defined bitmap with
3664 overlay arrow bitmap, and add faces to bitmaps.
3665 (Voverflow_newline_into_fringe): Declare here.
3666 (enum fringe_bitmap_align): New enum.
3667 (..._bits): All bitmaps are now defined without bitswapping; that
3668 is now done in init_fringe_once (if necessary).
3669 (standard_bitmaps): New array with specifications for the
3670 standard fringe bitmaps.
3671 (fringe_faces): New array.
3672 (valid_fringe_bitmap_id_p): New function.
3673 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
3674 (draw_fringe_bitmap): New function which draws fringe bitmap,
3675 possibly overlaying bitmap with cursor in right fringe or the
3676 overlay arrow in the left fringe.
3677 (update_window_fringes): Do not handle overlay arrow here.
3678 Compare and copy fringe bitmap faces.
3679 (init_fringe_bitmap): New function.
3680 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
3681 define and destroy user defined fringe bitmaps.
3682 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
3683 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
3684 (syms_of_fringe): New function. Defsubr new DEFUNs.
3685 DEFVAR_LISP Voverflow_newline_into_fringe.
3686 (init_fringe_once, init_fringe): New functions.
3687 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 3688
82722af3
KS
3689 * Makefile.in (obj): Add fringe.o.
3690 (fringe.o): New dependencies.
3691
3692 * dispextern.h (FRINGE_ID_BITS): New definition for number of
3693 bits allocated to hold a fringe number. Increase number of bits
3694 from 4 to 8 to allow user defined fringe bitmaps.
3695 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
3696 left_user_fringe_face_id, right_user_fringe_bitmap,
3697 right_user_fringe_face_id.
3698 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
3699 Move to new file fringe.c.
3700 (MAX_FRINGE_BITMAPS): Define here.
3701 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
3702 and overlay_p. Change member which to int.
3703 (struct redisplay_interface): New members define_fringe_bitmap
3704 and destroy_fringe_bitmap.
3705 (valid_fringe_bitmap_id_p): Add prototype.
3706 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
3707
3708 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
3709 arrows.
3710 (update_frame): Do flush_display if force_flush_display_p to
3711 ensure display (specifically fringes) are updated in a timely
3712 manner when resizing the frame by dragging the mouse.
3713 (update_window_line): Update row if overlay arrow changed.
3714 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
3715 or overlay arrow changed.
3716
3717 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
3718 syms_of_fringe, and init_fringe.
3719
3720 * frame.h (struct frame): New member force_flush_display_p.
3721
3722 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
3723 Add prototypes.
3724
a3993cc8 3725 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 3726 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
3727 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
3728 Use cursor color for displaying cursor in fringe.
82722af3
KS
3729 (x_redisplay_interface): Add null handlers for
3730 define_fringe_bitmap and destroy_fringe_bitmap functions.
3731
3732 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
3733 xterm.c to handle overlayed fringe bitmaps and to use cursor color
3734 for displaying cursor in fringe.
3735 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
3736 specific functions to define and destroy fringe bitmaps in fringe_bmp.
3737 (w32_redisplay_interface): Add them to redisplay_interface.
3738 (w32_term_init): Call w32_init_fringe instead of explicitly
3739 defining fringe bitmaps in fringe_bmp array.
3740 (x_delete_display): Call w32_reset_fringes instead of explicitly
3741 destroying fringe bitmaps in fringe_bmp array.
3742
3743 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
3744 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
3745 (continued_bits, continuation_bits, ov_bits, first_line_bits)
3746 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
3747 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
3748 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
3749 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
3750 Move fringe handling vars and code to new file fringe.c.
3751 (handle_display_prop): Handle left-fringe and right-fringe
3752 display properties; store user fringe bitmaps in iterator.
3753 (move_it_in_display_line_to): Handle cursor in fringe at eob.
3754 (clear_garbaged_frames): Set force_flush_display_p if resized.
3755 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
3756 (display_line): Handle cursor in fringe at eob.
3757 (display_line): Set row user fringe bitmaps from iterator.
3758
3759 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
3760 Use cursor color for displaying cursor in fringe.
3761 (x_redisplay_interface): Add null handlers for
3762 define_fringe_bitmap and destroy_fringe_bitmap functions.
3763
030400eb
JD
37642004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3765
3766 * macfns.c (Fx_change_window_property): Make doc string and
3767 parameters same as for X version.
3768
3769 * w32fns.c (Fx_change_window_property): Ditto.
3770
3af55251
KS
37712004-02-07 Kim F. Storm <storm@cua.dk>
3772
ec110e9e
KS
3773 * xdisp.c (hscroll_window_tree): Position cursor near to right
3774 margin in hscrolled window when jumping to end of line (rather
3775 than centering cursor).
3776
3af55251
KS
3777 * process.c (wait_reading_process_input): Don't do adaptive read
3778 buffering if waiting for a specific process.
3779
b0c138ce
LT
37802004-02-05 Luc Teirlinck <teirllm@auburn.edu>
3781
3782 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
3783 (Fread_minibuffer, Feval_minibuffer)
3784 (Fread_string, Fread_no_blanks_input)
3785 (Fcompleting_read): Doc fixes.
3786 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
3787 completion-regexp-list. Define Qcase_fold_search and staticpro it.
3788 (read_minibuf): Fix initial comment.
3789 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 3790 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
3791 checking completion-regexp-list.
3792 (Fdisplay_completion_list): Make it handle arguments that are
3793 symbols. Doc fix.
3794
9676f5ad 37952004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 3796
9676f5ad 3797 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 3798
9676f5ad
JD
3799 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
3800 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 3801 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 3802 format. Remove unused variable cons.
5b698285
JD
3803
3804 * xselect.c: Include stdio,h.
3805
fc1d15f6
KH
38062004-02-05 Kenichi Handa <handa@m17n.org>
3807
ebaff4af
KH
3808 * fns.c (Fset_char_table_range): Fix previous change.
3809
fc1d15f6
KH
3810 * buffer.c (Fset_buffer_multibyte): Fix docstring.
3811
9676f5ad
JD
38122004-02-04 Luc Teirlinck <teirllm@auburn.edu>
3813
3814 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
3815
da75761f
SM
38162004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
3817
3818 * keymap.c (Vmouse_events): Rename from Vmenu_events.
3819 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
3820
13c5d120
KH
38212004-02-04 Kenichi Handa <handa@m17n.org>
3822
3823 * fns.c (Fset_char_table_range): Handle charsets ascii,
3824 eight-bit-control, and eight-bit-graphic correctly.
3825
2883d842
JR
38262004-02-03 Jason Rumney <jasonr@gnu.org>
3827
3828 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
3829
3830 * w32fns.c (x_to_w32_font): Likewise.
3831
69eff41f
JD
38322004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3833
3834 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
3835 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
3836
3837 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
3838 ClientMessages.
3839
3840 * xselect.c: Include termhooks.h and X11/Xproto.h
3841 (x_check_property_data, x_fill_property_data)
3842 (x_property_data_to_lisp, mouse_position_for_drop)
3843 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 3844 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
3845 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
3846
da75761f 3847 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
3848 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
3849 OUTER_P.
3850 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
3851 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
3852 if vector_ret_p is true.
3853 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 3854
a6eeaa81 38552004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
3856
3857 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
3858 basename of FILE relative to it, not FILE itself.
3859
09721b31
KH
38602004-02-02 Kenichi Handa <handa@m17n.org>
3861
3862 * coding.c (coding_restore_composition): Check invalid
3863 composition data more rigidly.
3864
eb996101
LT
38652004-01-30 Luc Teirlinck <teirllm@auburn.edu>
3866
3867 * fileio.c (Fread_file_name_internal): Correctly handle the case
3868 where insert-default-directory is nil.
3869 (Fread_file_name): Always return an empty string if the user exits
3870 with an empty minibuffer. Adapt the docstring accordingly.
3871 (syms_of_fileio): Adapt the docstring of insert-default-directory
3872 to the change in Fread_file_name.
3873
a6eeaa81 38742004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
3875
3876 * alloca.c [!alloca]: Fix the prototype for xfree.
3877
13f52ed8
KH
38782004-01-29 Kenichi Handa <handa@m17n.org>
3879
3880 * fns.c (string_char_to_byte): Optimize for ASCII only string.
3881 (string_byte_to_char): Likewise.
3882
d57625a0
JR
38832004-01-28 Peter Runestig <peter@runestig.com>
3884
3885 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
3886
a64387ee 38872004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
3888
3889 * unexmacosx.c (unexec_copy): Do not copy more than was
3890 requested to prevent overwriting during unexec.
3891
eb37b8fd
JD
38922004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3893
ce38070a
JD
3894 * process.c (sigchld_handler): Add comment about not calling malloc.
3895
eb37b8fd
JD
3896 * process.h: Add extern to synch_process_termsig.
3897
a64387ee 38982004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 3899
da75761f
SM
3900 * macterm.c (make_mac_frame, make_mac_terminal_frame):
3901 Move setting of scroll bars from make_mac_frame to
3902 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 3903
d62a265d
RS
39042004-01-26 Richard M. Stallman <rms@gnu.org>
3905
3906 * search.c (Freplace_match): Handle nonexistent
3907 back-references properly.
3908
39092004-01-03 Richard M. Stallman <rms@gnu.org>
3910
3911 * window.c (decode_any_window): New function.
3912 (Fwindow_height, Fwindow_width, Fwindow_edges)
3913 (Fwindow_pixel_edges, Fwindow_inside_edges)
3914 (Fwindow_inside_pixel_edges): Use decode_any_window.
3915
ff236419
JD
39162004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3917
3918 * process.h: synch_process_termsig new variable.
3919
3920 * callproc.c: Define synch_process_termsig.
3921 (Fcall_process): Initiate synch_process_termsig to zero and
3922 check if non-zero and get signal name after subprocess has ended.
3923
3924 * process.c (sigchld_handler): Set synch_process_termsig
3925 if terminated by a signal. synch_process_death setting removed.
3926
3927 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
3928
41b867ea
AS
39292004-01-26 Andreas Schwab <schwab@suse.de>
3930
3931 * print.c (print_preprocess): Declare size as EMACS_INT to not
3932 lose bits.
3933 (print_object): Likewise.
3934 * alloc.c (Fpurecopy): Likewise.
3935
a08084ff
LT
39362004-01-25 Luc Teirlinck <teirllm@auburn.edu>
3937
3938 * window.c (Fwindow_minibuffer_p): Doc fix.
3939
b19ac475
JY
39402004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
3941
3942 * editfns.c (Fformat): Make both passes accept the same set of flags.
3943
fe905025
KH
39442004-01-23 Kenichi Handa <handa@m17n.org>
3945
3946 * fns.c (Fmd5): If OBJECT is a buffer different from the current
3947 one, set buffer to OBJECT temporarily.
3948
438fc6c0
SM
39492004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3950
455316e2
SM
3951 * keyboard.c (kbd_buffer_gcpro): Remove.
3952 (kbd_buffer_store_event, clear_event, Fdiscard_input)
3953 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
3954 Don't initialize and/or maintain the variable any more. It was made
3955 redundant by my commit of 2003-06-15.
3956
438fc6c0
SM
3957 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
3958
5335a4ee
JD
39592004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3960
3961 * lisp.h: Add undef DECL_ALIGN.
3962
dcdaeebc
SM
39632004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3964
3965 * process.c (wait_reading_process_input) [SYNC_INPUT]:
3966 Check interrupt_input_pending explicitly.
3967
3968 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
3969
3970 * keyboard.c (handle_async_input): New fun,
3971 extracted from input_available_signal.
3972 (input_available_signal, reinvoke_input_signal): Use it.
3973
9076a823
SM
39742004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3975
d7107586
SM
3976 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
3977
3978 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
3979 manipulation macros for when tags are in the lower bits.
3980 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
3981 (DECL_ALIGN): New macro.
3982 (DEFUN): Use it.
3983
3984 * lisp.h [ENABLE_CHECKING]: Don't force union type.
3985
3986 * s/darwin.h (__attribute__): Remove outdated workaround.
3987
3988 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3989
3990 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3991 Don't check range of malloc address.
3992 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3993
9076a823
SM
3994 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3995
3996 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3997
ba029065
KH
39982004-01-19 Kenichi Handa <handa@m17n.org>
3999
4000 * fontset.c (fontset_font_pattern): Fix previous change.
4001
7af0e8d7
MB
40022004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
4003
4004 * xdisp.c (Voverflow_newline_into_fringe)
4005 (move_it_in_display_line_to, redisplay_internal)
4006 (update_window_fringes, redisplay_window, display_line, window):
4007 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
4008 that it compiles without a window-system.
4009 * dispnew.c (direct_output_for_insert, update_window): Likewise.
4010
77a9cf69
KS
40112004-01-16 Kim F. Storm <storm@cua.dk>
4012
4013 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
4014
a64387ee 4015 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
4016 buffer_local_flags for indicate_buffer_boundaries.
4017 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
4018 default- variable for it.
4019
4020 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
4021 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 4022 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
4023 overflowing newlines into right fringe.
4024 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
4025 and indicate_bottom_line_p for buffer boundaries and scrolling.
4026 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
4027 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
4028 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
4029 and HOLLOW_SQUARE_BITMAP.
4030 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
4031 Add prototypes.
4032
4033 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
4034 instead of related indicator fields.
4035 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
4036 (direct_output_for_insert): Handle exact width lines like
4037 contined lines. Call update_window_fringes.
4038 (update_window): Call update_window_fringes.
4039 (scrolling_window): Don't skip desired rows with changed bitmaps.
4040 Check if fringe bitmaps changes when assigning scrolled rows.
4041
4042 * xdisp.c (Voverflow_newline_into_fringe): New variable.
4043 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
4044 (move_it_in_display_line_to): Overflow newline into fringe for
4045 rows that are exactly as wide as the window.
4046 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
4047 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
4048 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
4049 (fringe_bitmaps): Add new bitmaps.
4050 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
4051 Select proper bitmap for cursor in fringe when appropriate.
4052 Handle alignment of bitmap to top or bottom of row.
4053 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
4054 done by update_window_fringes.
4055 (update_window_fringes, draw_window_fringes): New functions.
4056 (redisplay_internal): Call update_window_fringes in case only
4057 cursor row is updated.
4058 (redisplay_window): Call update_window_fringes.
4059 Explicitly call draw_window_fringes if redisplay was done using
4060 the current matrix or the overlay arrow is in the window.
4061 (try_window_reusing_current_matrix): Mark scrolled rows for
4062 fringe update (to update buffer-boundaries / scrolling icons).
4063 (find_last_unchanged_at_beg_row): Handle exact width lines line
4064 continued lines.
4065 (display_line): Overflow newline into fringe for rows that are
4066 exactly as wide as the window. Don't append space for newline
d7107586 4067 in this case.
77a9cf69
KS
4068 (notice_overwritten_cursor): Explicitly clear cursor bitmap
4069 in fringe as if it had been overwritten.
4070 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 4071 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
4072 void-text-area-pointer as user options.
4073 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 4074
77a9cf69
KS
4075 * xterm.c (x_update_window_end): Call draw_window_fringes.
4076 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4077 in row instead of actually drawing fringe bitmaps.
4078 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4079 (x_draw_window_cursor): Draw cursor in fringe.
4080
4081 * w32term.c (x_update_window_end): Call draw_window_fringes.
4082 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4083 in row instead of actually drawing fringe bitmaps.
4084 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4085 (w32_draw_window_cursor): Draw cursor in fringe.
4086
4087 * macterm.c (x_update_window_end): Call draw_window_fringes.
4088 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4089 in row instead of actually drawing fringe bitmaps.
4090 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4091 (mac_draw_window_cursor): Draw cursor in fringe.
4092
a633a954
JD
40932004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4094
4095 * xterm.c (handle_one_xevent): Don't handle characters that are part
4096 of an old style (XLookupString) compose sequence.
4097
80460525
KH
40982004-01-15 Kenichi Handa <handa@m17n.org>
4099
4100 * search.c (Freplace_match): Use make_multibyte_string or
4101 make_unibyte_string according to the buffer multibyteness.
4102
7fc34f85
SM
41032004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
4104
4105 * alloc.c (struct interval_block, struct string_block)
4106 (struct symbol_block, struct marker_block, live_string_p)
4107 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
4108 Better preserve alignment for objects in blocks.
4109 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
4110
4111 * lread.c (defvar_per_buffer): Remove dead declaration.
4112
4113 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
4114 space size.
4115
66070bd1
JD
41162004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4117
4118 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
4119 if a key press should pop down. Only pop down if a key is pressed
4120 outside the menu/dialog.
4121 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
4122 popup_get_selection.
4123 (create_and_show_dialog): Pass 1 for down_on_keypress to
4124 popup_get_selection.
4125
de7515d6
JD
41262004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4127
4128 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
4129 BLOCK/UNBLOCK_INPUT.
4130
160b1b50
JD
41312004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4132
4133 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
4134 specified.
4135
3a9f36e6
KH
41362004-01-08 Kenichi Handa <handa@m17n.org>
4137
4138 * editfns.c (Fformat): Fix '&' to '&&'.
4139
3803eb32
AS
41402004-01-08 Andreas Schwab <schwab@suse.de>
4141
4142 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
4143 size if PSEUDOVECTOR_FLAG is set.
4144
9da88f37
KH
41452004-01-07 Kenichi Handa <handa@m17n.org>
4146
74ac5074
KH
4147 * charset.c (Fdeclare_equiv_charset): Fix docstring.
4148
9da88f37
KH
4149 * fontset.c (fontset_ref_via_base): Fix previous change.
4150
05faee07
KS
41512004-01-07 Kim F. Storm <storm@cua.dk>
4152
4153 * process.c (read_process_output): Only activate adaptive
4154 buffering if we read less than 256 bytes at a time.
4155
634910c8
KS
41562004-01-06 Kim F. Storm <storm@cua.dk>
4157
4158 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
4159 object and image object. Return glyph width and height.
4160 (mode_line_string, marginal_area_string): Ditto.
4161
4162 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4163 (marginal_area_string): Fix prototypes.
4164
4165 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 4166 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
4167 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
4168
4169 * keyboard.c (make_lispy_position): Use modified mode_line_string,
4170 buffer_posn_from_coords, and marginal_area_string functions to
4171 include both string object and image object in the lispy position.
4172 Also add actual glyph width and height to position.
4173 (read_key_sequence): Use real buffer position from mouse
4174 event to find keymap property even when click is in marginal area.
4175
4176 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
4177 mode_line_string and marginal_area_string functions to handle
4178 both string object and image object properties.
d7107586 4179
57951c2e
AS
41802004-01-06 Andreas Schwab <schwab@suse.de>
4181
4182 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
4183 character.
4184
181e6a61
AS
41852004-01-02 Andreas Schwab <schwab@suse.de>
4186
d7107586
SM
4187 * macterm.c (emacs_options, x_initialized, same_x_server):
4188 Remove unused (and duplicated) definitions.
181e6a61 4189
31e0fbdd
KS
41902004-01-02 Kim F. Storm <storm@cua.dk>
4191
4192 * process.h (struct Lisp_Process): New members for adaptive read
4193 buffering: adaptive_read_buffering, read_output_delay, and
4194 read_output_skip.
4195
4196 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
4197 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
4198 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
4199 (process_output_delay_count, process_output_skip): New vars.
4200 (Vprocess_adaptive_read_buffering): New variable.
4201 (make_process): Initialize adaptive read buffering members.
4202 (Fstart_process): Set adaptive_read_buffering member.
4203 (deactivate_process): Cleanup adaptive read buffering.
4204 (wait_reading_process_input): Temporarily omit delayed
4205 subprocesses from the set of file descriptors to read from;
4206 adjust the select timeout if we skipped any subprocesses.
4207 (read_process_output): Increase adaptive read buffering delay if
4208 we read less than a full buffer; reduce delay when we read a
4209 full buffer.
4210 (send_process): Simplify using local Lisp_Process var.
4211 Reset adaptive read buffering delay after write.
4212 (init_process): Initialize process_output_delay_count and
4213 process_output_skip.
4214 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
4215
68c6a789
JR
42162004-01-01 Jason Rumney <jasonr@gnu.org>
4217
d7107586 4218 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 4219
3f70fe82
LT
42202003-12-30 Luc Teirlinck <teirllm@auburn.edu>
4221
4222 * print.c (Ferror_message_string): Add hyperlink in the docstring
4223 to the definition of `signal' in the Elisp manual.
4224 * eval.c (Fsignal): Ditto.
4225
b6189c3b 42262003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
4227
4228 * fns.c (internal_equal): Return t for two NaN arguments.
4229
7abd90ea
RS
42302003-12-29 Richard M. Stallman <rms@gnu.org>
4231
4232 * data.c (store_symval_forwarding): Handle setting
4233 default-fill-column, etc., by changing the value in
4234 buffers that use the default.
4235
4236 * minibuf.c (Fset_minibuffer_window): Doc fix.
4237
4238 * fileio.c (choose_write_coding_system): Ignore auto_saving
4239 if using the visited file for auto saves.
4240 (Fwrite_region): Don't update SAVE_MODIFF
4241 if auto-saving in visited file.
4242
3e7cfcdc
KH
42432003-12-29 Kenichi Handa <handa@m17n.org>
4244
4245 * dispextern.h (face_font_available_p): Extern it.
4246
4247 * fontset.c (Voverriding_fontspec_alist): New variable.
4248 (lookup_overriding_fontspec): New function.
d7107586 4249 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
4250 (fontset_font_pattern): Likewise.
4251 (regulalize_fontname): New function.
4252 (Fset_fontset_font): Call regulalize_fontname.
4253 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
4254 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
4255 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
4256
4257 * xfaces.c (face_font_available_p): New function.
4258
7abd90ea
RS
42592003-12-28 Richard M. Stallman <rms@gnu.org>
4260
4261 * buffer.c (Fother_buffer): Don't crash if BUF is nil
4262 or if its name is nil.
4263
4264 * buffer.c (Fkill_buffer): Don't delete auto-save file
4265 if it's the same as the visited file.
4266
de1d1a40
LT
42672003-12-28 Luc Teirlinck <teirllm@auburn.edu>
4268
4269 * coding.c (Fcheck_coding_system): Doc fix.
4270
204fb75e
KS
42712003-12-28 Kim F. Storm <storm@cua.dk>
4272
4273 * Makefile.in (eval.o): Depend on dispextern.h.
4274
4275 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
4276 image glyph using image's ascent.
4277 (mode_line_string): Return image glyph as object clicked on.
4278 Adjust y0 for image glyph using image's ascent.
4279
4280 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
4281 (struct glyph): New members, ascent and descent. Used to save
4282 this glyph's ascent and descent, instead of having.
4283 (struct glyph): Declare member face_id using FACE_ID_BITS.
4284 (find_hot_spot): Add prototype.
4285
4286 * keyboard.c (Qimage): Remove extern (now in lisp.h).
4287 (QCmap): Declare extern.
4288 (make_lispy_position): When position is inside image hot-spot,
4289 use hot-spot element's id as posn element.
4290
4291 * lisp.h (IMAGEP): New macro to test for image object type.
4292 (Qimage): Declare extern.
4293
4294 * macfns.c (Qimage): Remove extern (now in lisp.h).
4295 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4296
4297 * macterm.c (Qface, Qmouse_face): Remove unused externs.
4298
4299 * w32fns.c (Qimage): Remove extern (now in lisp.h).
4300 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4301
4302 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
4303
4304 * w32term.c (Qface, Qmouse_face): Remove unused externs.
4305
4306 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
4307 pointer types.
4308 (Qrelative_width, Qalign_to): Remove unused variables.
4309 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
4310 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
4311 image maps.
d7107586 4312 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
4313 new dx and dy args.
4314 Remove buffer_only_p arg (always 0). Simplify code accordingly.
4315 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
4316 than row's ascent and height, to get sensible height on tall rows.
4317 (build_desired_tool_bar_string): Remove Qimage extern.
4318 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
4319 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
4320 image glyph is alone on the last line.
4321 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 4322 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 4323 (on_hot_spot_p): New function to check if position is inside an
d7107586 4324 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
4325 (find_hot_spot): New function to search for image hot-spot.
4326 (Flookup_image_map): New defun to search for image hot-spot.
4327 (define_frame_cursor1): New aux function to determine frame pointer.
4328 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4329 Handle `pointer' text property and :pointer image property to
4330 control frame pointer shape. Detect image hot-spots for pointer
4331 and help_echo properties. Use define_frame_cursor1.
4332 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 4333 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
4334 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
4335
4336 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
4337
4338 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
4339 (Qimage): Remove extern (now in lisp.h).
4340 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4341
4342 * xmenu.c (show_help_event): Remove unused code.
4343
4344 * xterm.c (Qface, Qmouse_face): Remove unused externs.
4345 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
4346 row's ascent and descent, to get a sensible height on tall rows.
4347
fc052137
LT
43482003-12-25 Luc Teirlinck <teirllm@auburn.edu>
4349
4350 * minibuf.c (Fcompleting_read): Undo previous change.
4351
a64387ee 43522003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
4353
4354 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
4355 Arguments GCPRO'ed in call to file name handler.
4356
56ffd194
TTN
43572003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
4358
4359 * termcap.c (tgetst1): Scan for "%pN"; if all
4360 N are continuous in [1,9], remove all "%pN".
4361
5202d23d
JD
43622003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4363
f26fab36
JD
4364 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
4365
5202d23d
JD
4366 * xfaces.c (lface_fully_specified_p): Take into account that
4367 MAC OS always have unspecified stipple.
4368
8babaa59
TTN
43692003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4370
4371 * tparam.c (tparam1): Add handling for `%pN', which
4372 means use param N for the next substitution.
4373
2d176448
TTN
43742003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4375
4376 * xfaces.c (Fcolor_gray_p): Fix omission bug:
4377 In case `frame' is nil, consult the selected frame.
4378 (Fcolor_supported_p): Likewise.
4379
adb0708c
LT
43802003-12-23 Luc Teirlinck <teirllm@auburn.edu>
4381
000eeb15
LT
4382 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
4383 Doc fixes.
0dc72b11
LT
4384
4385 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
4386 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
4387 (Fread_from_minibuffer): Delete code moved into read_minibuf.
4388 Doc fix.
4389 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
4390 read_minibuf.
4391 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 4392 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 4393
2e4d132b
KH
43942003-12-03 Kenichi Handa <handa@m17n.org>
4395
4396 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
4397 encoding sequence.
4398
3999c705
KH
43992003-12-01 Kenichi Handa <handa@m17n.org>
4400
4401 * composite.c (syms_of_composite): Don't make the compostion hash
4402 table week.
4403
d344ecbb
LT
44042003-11-30 Luc Teirlinck <teirllm@auburn.edu>
4405
4406 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
4407 * textprop.c (Fget_char_property_and_overlay): New function.
4408 (syms_of_textprop): Defsubr it.
4409
03d6484e
JD
44102003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4411
019b1f0e
JD
4412 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
4413 to compile on terminal configuration.
4414
03d6484e
JD
4415 * fileio.c (Fread_file_name): Check use_file_dialog also before
4416 calling Fx_file_dialog.
4417
4418 * fns.c: use_file_dialog: New variable.
4419 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
4420
442d3fd0
KS
44212003-11-29 Kim F. Storm <storm@cua.dk>
4422
4423 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
4424 (syms_of_msdos): Don't intern and staticpro them.
4425
0f6a07a8
KS
44262003-11-27 Kim F. Storm <storm@cua.dk>
4427
4428 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
4429 coordinates relative to glyph at posn. If glyph is an image,
4430 return that as object at posn. Callers changed.
4431 (mode_line_string, marginal_area_string): Calculate and return
4432 pixel coordinates relative to glyph. Callers changed.
4433
4434 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4435 (marginal_area_string): Fix prototypes.
4436 (window_box_left_offset, window_box_right_offset): Add prototypes.
4437
4438 * frame.h (get_specified_cursor_type, get_window_cursor_type):
4439 Remove prototypes.
4440
4441 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
4442
4443 * keyboard.c (make_lispy_position): Add x and y coordinates
4444 relative to the current glyph as 7th element of position.
4445 If glyph is an image, return it in the object element.
4446 (read_key_sequence): Skip checks for keymap property in cases
4447 where POSN_STRING is not a string (e.g. an image).
4448
4449 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
4450 (Vshow_text_cursor_in_void): New variable.
4451 (glyph_to_pixel_coords): Don't use negative hpos.
4452 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
4453 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 4454 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
4455 (calc_pixel_width_or_height): New aux function, implementing
4456 pixel based artihmetic for glyph widths and heights.
4457 (produce_stretch_glyph): Use calc_pixel_width_or_height for
4458 :width, :height, :align-to, and :ascent, thus allowing these to
4459 be specified in pixels as well as multiples of characters.
4460 Don't produce stretch glyphs with zero width or height.
4461 (get_specified_cursor_type): Declare static.
4462 (get_window_cursor_type): Declare static. Add glyph arg to be
4463 able to know when cursor is on an image; always substitute
4464 hollow-box cursor for filled-box cursor on images, to avoid
4465 negative images and flicker when blinking the cursor.
4466 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
4467 (note_mode_line_or_margin_highlight): Use non-text cursor rather
4468 than vertical scroll-bar cursor in display margins.
4469 (note_mouse_highlight): Use non-text cursor rather than text
4470 cursor in fringes and over images in the text area.
4471 Use non-text cursor when mouse pointer is outside editable text,
4472 i.e. in the void after end-of-line or end-of-buffer; this was
4473 already done for W32, but is now standard for all systems --
4474 user can toggle show-text-cursor-in-void to get old behaviour.
4475 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
4476 Vdisplay_pixels_per_inch.
4477
00498bfc
AS
44782003-11-25 Andreas Schwab <schwab@suse.de>
4479
4480 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
4481 EMACS_INT to not lose bits.
4482 (Ffillarray): Don't set bits beyond the size of a bool vector.
4483
edaa824d
KS
44842003-11-25 Kim F. Storm <storm@cua.dk>
4485
4486 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
4487 define this defun on systems that cannot use stderr as lvalue.
4488
74d6f539
GM
44892003-11-24 Gerd Moellmann <gerd@gnu.org>
4490
4491 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
4492 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
4493 ld's default is incompatible with unexec.
4494
6a1ff3ba
KS
44952003-11-23 Kim F. Storm <storm@cua.dk>
4496
63dc7c6b
KS
4497 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
4498 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
4499 (Fforce_window_update): New defun.
4500 (syms_of_window): Defsubr it.
4501 (Fset_window_margins, Fset_window_fringes): Doc fix.
4502
6a1ff3ba
KS
4503 * print.c (Fredirect_debugging_output): New defun.
4504 (syms_of_print): Defsubr it.
4505
aef109b7
LT
45062003-11-22 Luc Teirlinck <teirllm@auburn.edu>
4507
4508 * fns.c (Fset_char_table_parent): Doc fix.
4509
6a1ff3ba 45102003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
4511
4512 * dispnew.c (buffer_posn_from_coords): Return actual row/column
4513 for glyph clicked on, rather than (unused) pixel positions.
4514 (mode_line_string, marginal_area_string): Change X and Y args to
4515 pointers for returning actual row/column for glyph clicked on.
4516 Simplify and optimize loops.
4517
aef109b7
LT
4518 * dispextern.h (mode_line_string, marginal_area_string):
4519 Update prototypes.
63ccbe21
KS
4520
4521 * keyboard.c (make_lispy_position): New function for generating
4522 mouse click positions from frame and pixel coordinates.
4523 Enhanced to return buffer position and actual row/column for
4524 events outside the text area using updated mode_line_string and
4525 marginal_area_string functions.
4526 Return left-fringe and right-fringe clicks as such, rather than
4527 clicks in text area.
4528 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
4529 pixel_to_glyph_coords, as we never use the results.
4530 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
4531 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
4532 Eliminate unused code in WHEEL_EVENT handling.
4533 (make_lispy_movement): Use make_lispy_position.
4534
4535 * window.c (coordinates_in_window): Remove redundant tests.
4536 Fix returned X pixel value for left-margin.
4537
4538 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
4539 mode_line_string and marginal_area_string parameters.
4540
a64387ee 45412003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 4542
d7107586
SM
4543 * w32.c (struct the_group, getgrgid): Add.
4544 * mac.c (struct my_group, getgrgid): Add.
aef109b7 4545
3dbf3426
LT
45462003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4547
4548 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
4549
cae8ddbb 45502003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 4551
d7107586
SM
4552 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
4553 include in call to file name handler. Optionally translate numeric
4554 UID and GID to strings. Update docstring.
4555 (directory_files_internal): Add parameter ID-FORMAT.
4556 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
4557 include in call to file name handler and call to
4558 directory_files_internal. Update Docstring.
4559 (Fdirectory_files): Add dummy parameter in call to
4560 directory_files_internal.
4561 * lisp.h (Qinteger): Add.
4562 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
4563 (Ffile_attributes): Add parameter.
4564 * data.c (Qinteger): Export.
cae8ddbb 4565
2550b848
LT
45662003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4567
3dbf3426 4568 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 4569
88380018
KS
45702003-11-19 Kim F. Storm <storm@cua.dk>
4571
4572 * xdisp.c (init_iterator): Initialize it->start to position
4573 before reseating (in case start position is invisible).
4574 (init_to_row_start): Set it->start to row-start.
4575 (redisplay_window): Accept optional_new_start if start position
4576 is invisible (in which case IT_CHARPOS overshoots PT).
4577 (display_line): Setup row->start from it->start (rather than
4578 it->current which is wrong if first char on line is invisible).
4579 When done, reseat it->start to it->current (= start of next row).
4580 (expose_area): Fix exposure of text area when first char (e.g. TAB)
4581 is only partially visible.
4582
4583 * dispextern.h (struct it): New member start.
4584
854c1a59
SM
45852003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4586
455316e2
SM
4587 * alloc.c (make_float, Fcons): Clear the markbit at init time.
4588 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
4589 of block_index outside of the macro call.
4590 (Fgarbage_collect): Remove null code.
4591
4592 * m/amdx86-64.h: Don't redefine XPNTR.
4593
854c1a59
SM
4594 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
4595 of VALMASK.
4596
4597 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
4598 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
4599 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
4600
4601 * lisp.h (VALMASK): Only define for non-union type.
4602 (MARKBIT): Remove.
4603 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
4604 (XTYPE): Define unconditionally.
4605 (XSETTYPE): Remove one more remnant.
4606 (EQ): Define differently for the union and non-union cases.
4607 (INTMASK): New bit mask.
4608 (struct Lisp_Marker): Move down to prepare for upcoming patch.
4609 (GC_EQ): Delegate to EQ.
4610
4611 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
4612
a0c6ef2d
JD
46132003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4614
4615 * xterm.c (x_window_to_scroll_bar): Move check of display to
4616 where window_id is compared.
4617
859492c4
KS
46182003-11-17 Kim F. Storm <storm@cua.dk>
4619
4620 * dispextern.h (struct it): New member first_vpos.
4621
4622 * xdisp.c (start_display): Set it->first_vpos.
4623 (try_window_id): Use first_vpos to start display in first _text_
4624 line if no reusable lines at start of window with header line.
4625
810f2256
JD
46262003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4627
7c402969 4628 * w32fns.c (XPutPixel):
854c1a59
SM
4629 * w32bdf.c (w32_init_bdf_font):
4630 * sunfns.c (sel_read):
4631 * process.c (Fmake_network_process):
4632 * frame.c (store_frame_param):
4633 * fontset.c (Fset_fontset_font):
4634 * emacs.c (shut_down_emacs):
a64387ee 4635 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 4636
a32e9bfd
JD
4637 * config.in: Regenerate.
4638
810f2256
JD
4639 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4640 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4641 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
4642 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
4643 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
4644
4645 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
4646
4647 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
4648 (XTmouse_position, handle_one_xevent): Pass Display* to
4649 x_window_to_scroll_bar.
4650 (x_window_to_scroll_bar): Take a Display* argument.
4651 Check that display for frame is equal to Display* argument.
854c1a59 4652 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
4653 x_display_info_for_display instead. Use Display in xev instead
4654 of GDK_DISPLAY.
4655 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 4656 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
4657 (x_connection_closed): Call xg_display_close for GTK.
4658 (x_term_init): Call xg_display_open for additional displays.
4659 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
4660 for GTK.
4661
4662 * xmenu.c (single_menu_item, mouse_position_for_popup)
4663 (x_activate_menubar): Formatting adjustments.
4664
4665 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
4666 adjustments.
4667
4668 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
4669 (xg_display_close, xg_create_default_cursor)
4670 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
4671 handling.
854c1a59
SM
4672 (xg_left_ptr_cursor): Remove.
4673 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
4674 cursor here.
4675 (xg_win_to_widget): Take Display* argument, call
4676 gdk_xid_table_lookup_for_display.
4677 (xg_create_frame_widgets, xg_get_file_name, create_menus)
4678 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
4679 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
4680 in FRAME_X_DISPLAY_INFO.
4681 (xg_get_scroll_id_for_window): Take Display* argument.
4682 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 4683 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
4684
4685 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
4686 Display* argument also. Declare xg_display_open,
4687 xg_display_close, xg_create_default_cursor.
4688
0b03cc78
JD
46892003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4690
4691 * xterm.c (x_detect_focus_change): Do not change focus frame for
4692 Enter/LeaveNotify if the current focus frame has explicit focus.
4693
77e688fa
KS
46942003-11-14 Kim F. Storm <storm@cua.dk>
4695
4696 * dispnew.c (update_text_area): Fix redisplay error when hscroll
4697 is active and first glyph is only partially visible.
854c1a59 4698
dd429b03
KH
46992003-11-13 Kenichi Handa <handa@m17n.org>
4700
4701 * xdisp.c (select_frame_for_redisplay): New function.
4702 (redisplay_internal): Record also selected_frame for
4703 unwind_redisplay. Call select_frame_for_redisplay before
4704 redrawing each frame.
4705 (unwind_redisplay): Argument changed to a cons.
4706
6d9266f4
LT
47072003-11-12 Luc Teirlinck <teirllm@auburn.edu>
4708
4709 * fns.c (Fstring_to_multibyte): Doc fix.
4710
80060eb3
KH
47112003-11-11 Kenichi Handa <handa@m17n.org>
4712
4713 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4714
74305183
JD
47152003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4716
4717 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4718 program specified positions.
4719
cfda993e
JD
47202003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4721
4722 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
4723
df211069
KH
47242003-11-08 Kenichi Handa <handa@m17n.org>
4725
4726 * Makefile.in (lisp): Add kannada.el.
4727 (shortlisp): Likewise.
4728
4307d534
KH
47292003-11-07 Kenichi Handa <handa@m17n.org>
4730
854c1a59
SM
4731 * coding.c (coding_allocate_composition_data):
4732 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
4733 (coding_restore_composition): Detect invalid composition data.
4734 Give Fstring and Fvector a Lispy integer, not C int.
4735
854c1a59
SM
47362003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
4737
4738 * floatfns.c (Flogb): Don't use VALMASK.
4739
4740 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
4741 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
4742
4743 * lisp.h (XINT): Move the cast to clarify what is going on.
4744 (GCTYPEMASK, XSETTYPE): Remove.
4745 (XGCTYPE): Make it an alias of XTYPE.
4746
d04103a1
JD
47472003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4748
4749 * xterm.c (x_term_init): Fix formatting.
4750
da18b5ac
JD
47512003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4752
4753 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
4754 and xg_did_tearoff.
4755
4756 * gtkutil.c: Remove variable xg_did_tearoff.
4757 (xg_have_tear_offs): New function.
4758 (tearoff_remove): Just decrease xg_detached_menus.
4759 (tearoff_activate): Increase xg_detached_menus and call
4760 tearoff_remove when tearoff is removed.
854c1a59 4761 (xg_keep_popup): Remove function.
da18b5ac
JD
4762 (create_menus): Give add_tearoff_p as argument to recursive
4763 call to create_menus.
4764 (xg_create_widget): Use variables instead of multiple
4765 strcmp. Tell create_menus to create tear off only for
4766 menu bar menus.
4767 (xg_update_menubar): Change title for a detached menu also.
4768 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
4769 of deep_p.
4770 (xg_initialize): Initialize xg_detached_menus, remove
4771 initialization of xg_did_tearoff.
4772
4773 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
4774 xg_have_tear_offs returns non-zero.
4775 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
4776 call to xg_keep_popup.
4777
64d4923e
AC
47782003-11-01 Andrew Choi <akochoi@shaw.ca>
4779
4780 * macterm.c (XTread_socket): Handle menubar selection and grow
4781 window only for mouseDown events.
854c1a59 4782
6cc8bc07
JD
47832003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4784
4785 * xterm.c (x_term_init): For GTK part, increase x_initialized
4786 to check for more than one display. Use error instead of return 0.
4787
043131c4
AC
47882003-10-31 Andrew Choi <akochoi@shaw.ca>
4789
854c1a59 4790 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
4791 (copy_dysymtab): Call it.
4792
bdda99a1
LT
47932003-10-31 Luc Teirlinck <teirllm@auburn.edu>
4794
4795 * eval.c (Fdefvaralias): Doc fix.
4796
800f42ff 47972003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
4798
4799 * data.c (Fsetplist): Doc fix.
4800
ef35b389
LK
48012003-10-14 Lute Kamstra <lute@gnu.org>
4802
4803 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 4804
ef35b389 48052003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 4806
07107abc
KS
4807 * window.c (Fset_window_margins): Simplify arg checking.
4808
f7005886
RS
48092003-10-13 Richard M. Stallman <rms@gnu.org>
4810
4811 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
4812 (print_partial_compiled_pattern): Replace assert with a printout.
4813 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
4814
4815 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
4816
4817 * window.c (Fset_window_margins): Allow only integers as args.
4818 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
4819 Doc fixes.
4820
9c0c2af5
LK
48212003-10-13 Lute Kamstra <lute@gnu.org>
4822
4823 * window.c (Fset_window_fringes): Elaborate docstring.
4824
3f080e4e
AC
48252003-10-12 Andrew Choi <akochoi@shaw.ca>
4826
854c1a59 4827 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 4828
3f080e4e
AC
4829 * s/darwin.h (GC_MARK_STACK): Define.
4830
0aa513ed
JD
48312003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4832
4833 * window.c (shrink_windows): New function.
4834 (size_window): Call shrink_windows to calculate window sizes when
4835 shrinking frame with more than one window.
4836
6aa8858a
KS
48372003-10-12 Kim F. Storm <storm@cua.dk>
4838
4839 * xdisp.c (compute_fringe_widths): Doc fix.
4840
c2164d91
KH
48412003-10-08 Kenichi Handa <handa@m17n.org>
4842
854c1a59 4843 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 4844
f82ac129
KH
48452003-10-07 Kenichi Handa <handa@m17n.org>
4846
4847 * coding.c (Qcoding_system_define_form): New variable.
4848 (syms_of_coding): Intern and staticpro it.
4849 (Fcheck_coding_system): Try to autoload the definition of
4850 CODING-SYSTEM.
4851
9296c947
LT
48522003-10-05 Luc Teirlinck <teirllm@auburn.edu>
4853
4854 * fns.c (Frequire): Doc fix.
4855
c1f0671a
JD
48562003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4857
3d8c3826
JD
4858 * xfns.c (Fx_send_client_event): New function as a base for
4859 manipulating extended window manager hints.
6dc15d98 4860 (Fx_send_client_event): Remove unused variable s.
3d8c3826 4861
068ae0fd
JD
4862 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
4863 that function is removed.
4864
4865 * xterm.c (x_set_offset): Use move_offset_left/top instead of
4866 x/y_pixels_outer_diff.
4867 (x_check_expected_move): Calculate move_offset_left/top.
4868
4869 * xterm.h (struct x_output): New members: move_offset_top/left.
4870
854c1a59 4871 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
4872 call x_set_offset directly.
4873
4874 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
4875
96f09305
JD
4876 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
4877
4878 * xterm.c (x_delete_display): Free font names and font_encoder
4879 in dpyinfo->font_table.
4880
854c1a59
SM
4881 * xfns.c (Fx_close_connection): Only call XFreeFont here.
4882 Move xfree of font names to x_delete_display.
96f09305 4883
c1f0671a
JD
4884 * xterm.h (struct x_display_info): New member, wm_type.
4885 (struct x_output): New members, expected_top/left and
4886 check_expected_move.
4887
4888 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
4889 is received.
854c1a59
SM
4890 (handle_one_xevent): Rename x_check_expected_move from
4891 x_check_fullscreen_move.
c1f0671a
JD
4892 (x_set_offset): Only add WM decoration sizes to modified_top/left
4893 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 4894 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
4895 Removed fullscreen specific code. Use check_expected_move,
4896 expected_left/top instead. Also, set wm_type.
4897 (x_term_init): Initialize wm_type to unknown.
4898
4899 * frame.c (x_fullscreen_move): Remove addition of WM decoration
4900 sizes to move_x/y.
4901
be2fdba9
KH
49022003-10-03 Kenichi Handa <handa@m17n.org>
4903
4904 * macterm.c (x_load_font): Clear all members of FONTP before start
4905 filling them.
4906
49072003-10-02 Kenichi Handa <handa@m17n.org>
4908
4909 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
4910 before calling find_ccl_program_func. Call find_ccl_program_func
4911 only when fontp->font_encoder is not NULL.
4912
4913 * xterm.c (x_load_font): Clear all members of FONTP before start
4914 filling them.
4915
26a6e439
JPW
49162003-10-03 John Paul Wallington <jpw@gnu.org>
4917
4918 * keymap.c (map_keymap): Don't abort when binding is a vector.
4919
0d4c2dc2
JR
49202003-10-02 Jason Rumney <jasonr@gnu.org>
4921
854c1a59
SM
4922 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
4923 Sync dependencies with Makefile.in.
a63cf46f
JR
4924 (alloca.o): Remove.
4925
0d4c2dc2
JR
4926 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
4927 filling them.
4928
4929 * w32bdf.c (w32_load_bdf_font): Likewise.
4930
ab8f7d5c
RS
49312003-09-30 Richard M. Stallman <rms@gnu.org>
4932
4933 * term.c (set_tty_color_mode): Calculate current_mode_spec
4934 regardless of value of VAL.
4935
854c1a59 4936 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
4937 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
4938 Handle over_used when splitting UNDER.
4939
a64387ee 49402003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
4941
4942 * regex.c (regex_compile): Free the stack when returning from function.
4943
3413f972
KH
49442003-09-28 Kenichi Handa <handa@m17n.org>
4945
4946 * fontset.c (Finternal_char_font): Change return value to
4947 cons (FONT-NAME . GLYPH-CODE).
4948
a6eeaa81 49492003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
4950
4951 * term.c (tty_setup_colors): Treat any negative argument as -1.
4952
f98ddc99
KH
49532003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
4954
4955 * process.c (send_process): Delete unused temp_buf.
4956
66c8f1a8
DL
49572003-09-26 Dave Love <fx@gnu.org>
4958
4959 * xterm.c (x_bitmap_mask): Declare.
4960
ca716c26
DL
49612003-09-25 Dave Love <fx@gnu.org>
4962
4963 * Makefile.in (fns.o): Depend on md5.h.
4964
fbe57420
KS
49652003-09-25 Kim F. Storm <storm@cua.dk>
4966
4967 * window.c (set_window_buffer): Fix redisplay problems when
4968 switching between buffers with different display margin widths.
4969
ef6ae4ff
KS
49702003-09-23 Kim F. Storm <storm@cua.dk>
4971
4972 * process.c (set_socket_option): Fix :bindtodevice option.
4973 (Fset_network_process_option): Update process contact list when
4974 setting option succeeds.
4975 (Fmake_network_process): Doc fix.
4976
68e03c1c
DL
49772003-09-23 Dave Love <fx@gnu.org>
4978
7146d1c1 4979 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 4980
a6eeaa81 49812003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
4982
4983 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
4984 color mode is an integer number (it could be -1).
4985
8fe7d8c8
RS
49862003-09-22 Richard M. Stallman <rms@gnu.org>
4987
4988 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4989 in the case where OVER is longer than UNDER.
4990
2f71b5ea
MY
49912003-09-22 Masatake YAMATO <jet@gyve.org>
4992
7146d1c1 4993 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4994 `vertical_type'.
7146d1c1 4995
0c4da023
KS
49962003-09-21 Kim F. Storm <storm@cua.dk>
4997
4998 * frame.c (Vdefault_frame_scroll_bars): New variable.
4999 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
5000 (syms_of_frame): DEFVAR_LISP it, and initialize according to
5001 window-system default scroll bar position.
5002
b648413b
KS
5003 * window.c (Fwindow_scroll_bars): Doc fix.
5004
8f5b9e34
JD
50052003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5006
854c1a59 5007 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 5008
b0f23edf
RS
50092003-09-19 Richard M. Stallman <rms@gnu.org>
5010
5011 * atimer.h: Don't include lisp.h.
5012 (P_): Define it here (as well as elsewhere).
5013
5014 * print.c (Fprin1_to_string): Move the PRINTPREPARE
5015 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
5016
5017 * data.c (Fvariable_binding_locus): New function.
5018 (syms_of_data): defsubr it.
5019 (Flocal_variable_p): Delete duplicate call to indirect_variable.
5020
e1283999
DL
50212003-09-18 Dave Love <fx@gnu.org>
5022
ad5f3636
DL
5023 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
5024
e1283999
DL
5025 * process.c (Fnetwork_interface_info): Fix type error.
5026 (Fnetwork_interface_list): Doc fix.
5027 (read_process_output, read_process_output): Delete unused var.
5028
b8c7fd71
KS
50292003-09-17 Kim F. Storm <storm@cua.dk>
5030
5031 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
5032 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
5033 (Fnetwork_interface_info): Check that ifreq struct has required
5034 fields before accessing them; this requires that those fields are
5035 defined as macros, which may be too restrictive on some platforms,
5036 but it is better than failing on other platforms.
5037 (syms_of_process): Only defsubr above fns when included.
5038
11e0a411
DL
50392003-09-17 Dave Love <fx@gnu.org>
5040
5041 * unexalpha.c: Don't include varargs.h.
5042
e9c50801
KS
50432003-09-17 Kim F. Storm <storm@cua.dk>
5044
5045 * process.c (Fset_process_sentinel): Add sentinel to childp plist
5046 for network process.
5047 (socket_options): Add `:' prefix to option names. Add optbit field.
5048 (set_socket_option): Remove no_error arg and special handling of s < 0.
5049 Return 1<<optbit for known option, 0 for unknown.
5050 Do not interpret 0 as false for boolean option (only nil).
5051 Pass failed option and value to report_file_error.
7146d1c1 5052 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
5053 (Fset_network_process_option): New function to set just one option.
5054 (Fmake_network_process): Allow :coding arg to be a cons.
5055 Allow :server arg to be an integer specifying backlog size.
5056 Remove :options arg, and allow options to be specified directly
5057 as :KEY, VALUE pairs. Parse these options before binding socket.
5058 As before, :reuseaddr t is default for a server process, but this
5059 can now be disabled by specifying :reuseaddr nil.
5060 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
5061 (init_process): Availability of network options is now checked with
5062 simpler syntax (featurep 'make-network-process :OPTION); use loop to
5063 setup features.
5064 (syms_of_process): Fix defsubr's for the replaced functions.
5065
a0fc3644
DL
50662003-09-16 Dave Love <fx@gnu.org>
5067
5068 * Makefile.in: Depend on coding.h.
5069
6df2a645
KS
50702003-09-14 Kim F. Storm <storm@cua.dk>
5071
5072 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
5073 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
5074 (syms_of_process): Defsubr them.
5075
5076 * config.in: Regenerate.
7146d1c1
SM
5077
50782003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5079
5080 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
5081 * m/news-r6.h (XUNMARK): Remove.
5082 * m/mips.h (XUNMARK): Remove.
5083 * m/mips-siemens.h (XUNMARK): Remove.
5084 * m/iris4d.h (XUNMARK): Remove.
5085 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
5086
0930c1a1
SM
50872003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5088
31003b9e
SM
5089 * lisp.h (VALBITS): Don't remove 1 for the markbit.
5090 (union Lisp_Object): Use unsigned int for types. Remove markbit.
5091 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
5092 (XTYPE): Use unsigned right-shift.
5093 (XMARKBIT, XMARK, XUNMARK): Remove.
5094
0930c1a1
SM
5095 * alloc.c (init_intervals, init_symbol, init_marker):
5096 Don't preallocate anything.
5097 (Fgarbage_collect, mark_object): Ignore the markbit.
5098
5099 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
5100
19bb0fcd 51012003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
5102
5103 * xdisp.c (pint2hrstr): New function.
5104 (decode_mode_spec): Add `%i' and `%I' specs.
5105 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
5106 for `mode-line-format'.
5107
03bb6a06
AS
51082003-09-07 Andreas Schwab <schwab@suse.de>
5109
5110 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
5111 avoid warning.
5112
a6eeaa81 51132003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 5114
0930c1a1 5115 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 5116
ed159bbf
KS
51172003-09-03 Kim F. Storm <storm@cua.dk>
5118
5119 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
5120 change (superseded by 2002-08-30 change); the default blink-off
5121 cursor is now again "no cursor".
5122
fe64a394
JR
51232003-09-01 Jason Rumney <jasonr@gnu.org>
5124
5125 * makefile.w32-in (alloca.o): Remove.
5126 (coding.o): Depend on intervals.h
5127 (emacs.o, bytecode.o): Depend on window.h
5128
c0175e24
DL
51292003-09-01 Dave Love <fx@gnu.org>
5130
5131 * Makefile.in (alloca.o): Remove commands.
5132 (coding.o): Depend on intervals.h composite.h window.h.
5133 (emacs.o): Depend on window.h keyboard.h keymap.h.
5134 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
5135 (bytecode.o): Depend on window.h.
5136
a24d4cb2
JR
51372003-08-31 Jason Rumney <jasonr@gnu.org>
5138
4bc2315e
JR
5139 * w32term.c (w32_per_char_metric): Allow cached metrics to be
5140 returned even when font_type is unknown.
5141
a24d4cb2
JR
5142 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
5143
9d35adc7
JD
51442003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5145
5146 * xterm.c (x_term_init): Initialize new fields in x_display_info.
5147
5148 * xterm.h (struct x_display_info): Add red/green/blue_bits and
5149 *_offset.
5150
5151 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
5152 calculate pixel value.
5153
6f68b035
GM
51542003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
5155
0930c1a1
SM
5156 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
5157 Don't tell redisplay display is accurate when it's actually been
5158 paused for pending input.
6f68b035 5159
4828b4d7
RS
51602003-08-29 Richard M. Stallman <rms@gnu.org>
5161
5162 * dispnew.c (adjust_glyph_matrix): Call window_box
5163 whenever W is nonzero.
5164
5165 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5166 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 5167 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
5168 Use indirect_variable to trace thru variable aliases.
5169
5170 * config.in: Updated.
5171
5172 * callint.c (Fcall_interactively): Save and restore
5173 Vthis_command, Vthis_original_command, real_this_command,
5174 and current_kboard->Vlast_command.
5175
5176 * abbrev.c (Fexpand_abbrev): Insert before deleting.
5177
e019878d
GM
51782003-08-29 Gerd Moellmann <gerd@gnu.org>
5179
5180 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
5181
85478bc6
KH
51822003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
5183
0930c1a1 5184 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
5185 (decode_coding_sjis_big5): Likewise.
5186
07ce82d3
JR
51872003-08-27 Jason Rumney <jasonr@gnu.org>
5188
d3703de3
JR
5189 * w32.c (sys_pipe): Protect against file descriptor overflow.
5190
ee4a01d1
JR
5191 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
5192
07ce82d3
JR
5193 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
5194
a64387ee 51952003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
5196
5197 * xfns.c (Vgtk_version_string): New variable.
5198 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
5199
a6eeaa81 52002003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 5201
0930c1a1 5202 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 5203
5459e42a
EZ
5204 * Makefile.in (msdos.o): Depend on intervals.h.
5205
0930c1a1 5206 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 5207
231d6cfb
JD
52082003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5209
5210 * xterm.h (struct x_display_info): New fields: client_leader_window
5211 and Xatom_wm_client_leader.
5212
5213 * xterm.c (x_initialize): Move call to x_session_initialize to ...
5214 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
5215
5216 * xsmfns.c (create_client_leader_window): New function.
5217 (x_session_initialize): Call create_client_leader_window, take
5218 dpyinfo as argument.
5219
5220 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
5221
5222 * Makefile.in (xsmfns.o): Add more depenedencies.
5223
afa88464
DL
52242003-08-21 Dave Love <fx@gnu.org>
5225
5226 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
5227
f730033e
KH
52282003-08-21 Kenichi Handa <handa@m17n.org>
5229
5230 * term.c (term_init): Fix previous change; don't rely on the
5231 length of `buffer' if TERMINFO is defined.
5232
6dca786c
DL
52332003-08-20 Dave Love <fx@gnu.org>
5234
5235 * atimer.h: Include lisp.h.
5236
5237 * lisp.h (EMACS_LISP_H): New.
5238 (popup_activated_flag): Don't declare.
5239
5240 * alloca.c: Some merging with gnulib. Change logic and doc
5241 concerning (x)malloc/(x)free -- no longer Emacs-specific.
5242 [DO_BLOCK_INPUT]: Don't include lisp.h.
5243 (xmalloc, xfree): Declare.
5244 (malloc): Don't declare.
5245
0930c1a1 5246 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
5247 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
5248 atimer.h, blockinput.h.
5249
5250 * alloc.c (lisp_align_malloc): Change type of `aligned'.
5251
5252 * alloca.s: Removed.
5253
3a06a6d9
RS
52542003-08-19 Gerd Moellmann <gerd@gnu.org>
5255
5256 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
5257 use -lncurses.
5258
5259 * term.c (term_init): Use a buffer of size 4096 for tgetent since
5260 FreeBSD returns something longer than 2044. Abort if the end of
5261 the buffer is overwritten.
5262
27eeee55
MB
52632003-08-19 Miles Bader <miles@gnu.org>
5264
5265 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
5266
2f297815
GM
52672003-08-19 Gerd Moellmann <gerd@gnu.org>
5268
f4446bbf
GM
5269 * alloc.c (lisp_align_malloc): Check for memory full when
5270 allocating ablocks, which also avoids freeing a pointer into an
5271 ablocks structure.
5272
5273 * puresize.h (BASE_PURESIZE): Increase to 1100000.
5274
0930c1a1 5275 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 5276
0e7d7aae
RS
52772003-08-16 Richard M. Stallman <rms@gnu.org>
5278
5279 * editfns.c (Fencode_time): Doc fix.
5280
52812003-08-16 David Ponce <david@dponce.com>
5282
5283 * fileio.c (Fwrite_region): Fix conditional expression to issue
5284 the right message.
5285
b6189c3b 52862003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
5287
5288 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 5289 Set default value to 1.
0e7d7aae 5290
5d551295
KH
52912003-08-15 Kenichi Handa <handa@m17n.org>
5292
5293 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
5294 what autoscaled.
5295 (best_matching_font): Once we find a better scalable font, set
5296 non_scalable_has_exact_height_p to 1.
5297 (try_font_list): Call try_alternative_families to try any family
5298 with the given registry.
5299
1661e56b
AS
53002003-08-09 Andreas Schwab <schwab@suse.de>
5301
f29181dc
AS
5302 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
5303
1661e56b
AS
5304 * print.c (print_string): Fix printing of multibyte string with
5305 nontrivial printcharfun.
5306
465aa50a
JD
53072003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5308
5309 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
5310
5311 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
5312
e430e5ba
KH
53132003-07-31 Kenichi Handa <handa@m17n.org>
5314
5315 * process.c (read_process_output): Return the actually read bytes
5316 instead of the result of decoding.
5317
97e7188e
KH
53182003-07-31 Kenichi Handa <handa@m17n.org>
5319
5320 * xterm.h (struct x_bitmap_record): New member have_mask.
5321
5322 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
5323 to 0.
5324 (x_create_bitmap_from_file): Likewise.
5325 (x_destroy_bitmap): Check have_mask member before freeing a mask.
5326 (x_destroy_all_bitmaps): Likewise.
5327 (x_create_bitmap_mask): Set have_mask member to 1.
5328
b53094d6
RS
53292003-07-30 Richard M. Stallman <rms@gnu.org>
5330
5331 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
5332
631f2082
JD
53332003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5334
5335 * gtkutil.c (xg_mark_data): Update calls to mark_object.
5336
c855f2ca
RS
53372003-07-29 Richard M. Stallman <rms@gnu.org>
5338
5339 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
5340 Conditionalize XIM code on HAVE_XIM.
5341
5342 * fns.c (Fclear_string): New function.
5343 (syms_of_fns): defsubr it.
5344
b6189c3b 53452003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 5346
0930c1a1 5347 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 5348
29ea8ae9
SM
53492003-07-22 Stefan Monnier <monnier@cs.yale.edu>
5350
5351 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
5352
5353 * buffer.c (delete_all_overlays): New function.
5354 * buffer.h (delete_all_overlays): Declare.
5355 * coding.c (run_pre_post_conversion_on_str):
5356 * print.c (temp_output_buffer_setup):
5357 * fileio.c (Finsert_file_contents):
5358 * minibuf.c (get_minibuffer): Use it.
5359
1dd7ccf2
AC
53602003-07-22 Andrew Choi <akochoi@shaw.ca>
5361
5362 * unexmacosx.c (unexec_regions_sort_compare):
5363 (unexec_regions_merge): New functions. Sort and merge unexec
5364 regions before dumping them.
5365
f57bd967
DL
53662003-07-22 Dave Love <fx@gnu.org>
5367
5368 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
5369
7cdee936
SM
53702003-07-21 Stefan Monnier <monnier@cs.yale.edu>
5371
5372 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
5373 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
5374 MARKBIT as the gcmarkbit for strings.
5375
e50886d3
RS
53762003-07-21 Richard M. Stallman <rms@gnu.org>
5377
5378 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
5379
29ea8ae9 5380 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
5381 (syms_of_fns): Corresponding change.
5382
5383 * alloc.c (syms_of_alloc): Doc fixes.
5384
53852003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
5386
5387 * s/netbsd.h: Use -Wl syntax.
5388
fdc39b59
RS
53892003-07-17 Richard M. Stallman <rms@gnu.org>
5390
5391 * xterm.c (xim_initialize): Redo 6/24 change.
5392
9c53385f
SM
53932003-07-15 Stefan Monnier <monnier@cs.yale.edu>
5394
5395 * buffer.c (copy_overlays): Use EMACS_INT for positions.
5396 (Fswitch_to_buffer): Don't signal an error when switching to the same
5397 buffer in a dedicated window.
5398
5399 * alloc.c: Use bitmaps for cons, as was done for floats.
5400 (init_float, init_cons): Let the normal code allocate the first block.
5401 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
5402 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
5403 New macros.
5404 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
5405 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
5406 (live_cons_p): Check the pointer is not past the `conses' array.
5407 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
5408 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
5409 (survives_gc_p): Use CONS_MARKED_P and simplify.
5410 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
5411
dde13196
PE
54122003-07-13 Paul Eggert <eggert@twinsun.com>
5413
5414 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
5415 puts it into BSS instead, at least on Solaris 8 and 9.
5416 This is a valid optimization, and it may occur on other platforms,
5417 so Emacs should not assume that initializing a static variable to
5418 zero puts it into data.
5419 * alloc.c (pure, staticvec):
5420 Initialize these arrays to nonzero, so that they're not
5421 put into BSS by that optimization.
5422
a801bc34
SM
54232003-07-13 Stefan Monnier <monnier@cs.yale.edu>
5424
5425 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
5426 (lisp_align_malloc): Use posix_memalign is available.
5427 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
5428 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
5429 for consistency. Update users.
5430
0c8b2afa
RS
54312003-07-13 Richard M. Stallman <rms@gnu.org>
5432
5433 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
5434
668c2ab0
JB
54352003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
5436
5437 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
5438 and use the Gtk+ function gtk_window_icon_from_file if available.
5439
5440 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
5441 handle mask of bitmaps.
5442 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
5443 mask property.
5444 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
5445
5446 * xterm.h (xg_set_icon): New function.
5447
800bebe3
RS
54482003-07-12 Paul Eggert <eggert@twinsun.com>
5449
5450 * unexelf.c (unexec): Consider a section to precede the .bss
5451 section if its addresses overlap that of .bss.
5452
69e38995
RS
54532003-07-12 Richard M. Stallman <rms@gnu.org>
5454
5455 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
5456
5457 * config.in (HAVE_CRTIN): Add #undef.
5458 (INLINE): Really inline only if OPTIMIZE is defined.
5459
5460 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
5461 END_FILES_1.
5462 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 5463 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
5464
5465 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
5466 (TERMINFO): Define.
5467 (LIBS_TERMCAP): Define.
5468 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
5469
5470 * xfns.c: Include libpng/png.h instead of png.h.
5471
f1d0c238
AS
54722003-07-11 Andreas Schwab <schwab@suse.de>
5473
5474 * buffer.c (modify_overlay): Update prototype.
5475 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
5476 Likewise.
5477
5f6bf5fe
SM
54782003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5479
5480 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
5481 (struct interval): Move to intervals.h.
5482 (struct Lisp_Marker): Use EMACS_INT for position info.
5483 (forward_point): Remove prototype of defunct function.
5484 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
5485 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
5486 (syms_of_textprop, set_text_properties): Remove prototypes that are
5487 already in intervals.h.
5488
5489 * intervals.h (struct interval): Move from lisp.h.
5490 Use EMACS_INT for position and size info.
5491
5492 * coding.c: Include intervals.h for Fset_text_properties.
5493
5494 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5495 position and length information.
5496
2765b457
SM
54972003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5498
5499 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5500 position and length information.
5501
2410d73a
SM
55022003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5503
5504 Change overlays_after and overlays_before so the overlays themselves
5505 are linked into lists, rather than using cons cells. After all each
5506 Lisp_Misc already occupies 5 words, so we can add a `next' field to
5507 Lisp_Overlay for free and save up one cons cell per overlay (not
5508 to mention one indirection when traversing the list of overlay).
5509
5510 * lisp.h (struct Lisp_Overlay): New field `next'.
5511
5512 * buffer.h (struct buffer): Change overlays_before and overlays_after
5513 from Lisp lists of overlays to pointers to overlays.
5514
5515 * buffer.c (overlay_strings, recenter_overlay_lists):
5516 Fix typo in eassert in last commit.
5517 (unchain_overlay): New function.
5518 (add_overlay_mod_hooklist): Use AREF.
5519 (copy_overlays, reset_buffer, overlays_at, overlays_in)
5520 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
5521 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
5522 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
5523 (report_overlay_modification, evaporate_overlays, init_buffer_once):
5524 Adjust to new type of overlays_(before|after).
5525
5526 * alloc.c (mark_object): Mark the new `next' field of overlays.
5527 (mark_buffer): Manually mark the overlays_(after|before) fields.
5528
5529 * coding.c (run_pre_post_conversion_on_str):
5530 * editfns.c (overlays_around):
5531 * xdisp.c (load_overlay_strings):
5532 * fileio.c (Finsert_file_contents):
5533 * indent.c (current_column):
5534 * insdel.c (signal_before_change, signal_after_change):
5535 * intervals.c (set_point_both):
5536 * print.c (temp_output_buffer_setup): Use new type for
5537 overlays_(before|after).
5538
04812929
SM
55392003-07-08 Stefan Monnier <monnier@cs.yale.edu>
5540
5541 * buffer.c (report_overlay_modification): Don't run hooks while
5542 traversing the list of overlays.
5543
5544 * buffer.h (struct buffer): Use an int for overlay_center.
5545 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5546 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5547
5548 * buffer.c (reset_buffer, recenter_overlay_lists)
5549 (adjust_overlays_for_insert, adjust_overlays_for_delete)
5550 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
5551 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
5552 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5553 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5554
5555 * xdisp.c (fast_find_position): Remove unused var.
5556
5557 * cmds.c (Qexpand_abbrev): New sym.
5558 (syms_of_cmds): Initialize it.
5559 (internal_self_insert): Use it to call expand-abbrev.
5560
2e7ecf15
KS
55612003-07-09 Kim F. Storm <storm@cua.dk>
5562
f9711de4 5563 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 5564 was configured with --without-xim.
42f81f64 5565 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 5566
c6de56a0
RS
55672003-07-07 Richard M. Stallman <rms@gnu.org>
5568
5569 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
5570
5571 * alloc.c (Fgarbage_collect): Doc fix.
5572
b6189c3b 55732003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
5574
5575 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
5576
bfe1a3f7
SM
55772003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5578
04812929
SM
5579 * minibuf.c (read_minibuf): UNGCPRO before returning.
5580 (Ftry_completion, Fall_completions): Doc fix.
5581
bfe1a3f7
SM
5582 * alloc.c (live_float_p): Check that p is not past the `floats' array,
5583 now that `floats' is not the last element of the struct any more.
5584
ee79d1aa
JR
55852003-07-06 Jason Rumney <jasonr@gnu.org>
5586
5587 * w32term.h (ClipboardSequence_Proc): New type.
5588
5589 * w32fns.c (clipboard_sequence_fn): New variable.
5590 (globals_of_w32fns): Initialize it.
5591
5592 * w32select.c (last_clipboard_sequence_number): New variable.
5593 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
5594 number if possible.
5595
49723c04
SM
55962003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5597
4698665f
SM
5598 * m/amdx86-64.h (MARKBIT):
5599 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
5600 MARKBIT and ARRAY_MARK_FLAG any more.
5601
5602 * m/hp800.h (XSETMARKBIT):
5603 * m/sr2k.h (XSETMARKBIT):
5604 * lisp.h (XSETMARKBIT): Remove unused macro.
5605
49723c04
SM
5606 * lisp.h (mark_object): Change prototype.
5607
5608 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
5609 (last_marked): Change accordingly.
5610 (mark_interval, mark_maybe_object, mark_maybe_pointer)
5611 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
5612 (mark_buffer): Update calls to mark_object.
5613
5614 * bytecode.c (mark_byte_stack):
5615 * fns.c (sweep_weak_table):
5616 * keyboard.c (mark_kboards): Update calls to mark_object.
5617
1d660eca
JR
56182003-07-06 Jason Rumney <jasonr@gnu.org>
5619
5620 * alloc.c (struct ablock): Only include padding when there is some.
5621
618b5ae4
SM
56222003-07-04 Stefan Monnier <monnier@cs.yale.edu>
5623
5624 * alloc.c (ALIGN): Add casts to simplify usage.
5625 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
5626 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
5627 (struct ablock, struct ablocks): New types.
5628 (free_ablock): New global var.
5629 (lisp_align_malloc, lisp_align_free): New functions.
5630 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
5631 (struct float_block): Reorder and add gcmarkbits.
5632 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
5633 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
5634 (init_float, make_float): Use lisp_align_malloc.
5635 (free_float, live_float_p): Don't use `type' any more.
5636 (make_float): Use FLOAT_UNMARK to access to mark bit.
5637 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
5638 Use FLOAT_MARKED_P to access the mark bit.
5639 (pure_alloc): Simplify use of ALIGN.
5640 (mark_object): Use FLOAT_MARK to access the mark bit.
5641 (gc_sweep): Use new macros to access the float's mark bit.
5642 (init_alloc_once): Init free_ablock.
5643
5644 * lisp.h (struct Lisp_Float): Remove unused field `type'.
5645
3ef06d12
SM
56462003-06-27 Stefan Monnier <monnier@cs.yale.edu>
5647
5648 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
5649 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
5650 (allocate_buffer): Move.
5651 (string_bytes): Don't mask markbit of `size_byte'.
5652 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5653 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
5654 Use the `size' field of buffers (rather than the `name' field) for
5655 the mark bit, as is done for all other vectorlike objects.
5656 Use the new macros to access the mark bit of vectorlike objects.
5657
e81043aa
RS
56582003-06-26 Richard M. Stallman <rms@gnu.org>
5659
5660 * puresize.h (BASE_PURESIZE): Increment base size.
5661
5662 * xdisp.c (fast_find_position): Enable Gerd's new definition.
5663
5664 * xterm.c (xim_initialize): Undo previous change.
5665
2d0834cc
SM
56662003-06-26 Stefan Monnier <monnier@cs.yale.edu>
5667
5668 * alloc.c (survives_gc_p): Simplify.
5669
5670 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
5671
5672 * window.c (Fset_window_dedicated_p): Simplify.
5673 (display_buffer_1): Don't raise the win from which minibuf was entered.
5674 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
5675 (Fminibuffer_selected_window): Simplify.
5676
5677 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
5678
5679 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
5680 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
5681
5682 * insdel.c (check_markers, adjust_markers_for_delete)
5683 (adjust_markers_for_insert, adjust_markers_for_replace)
5684 (prepare_to_modify_buffer, RESTORE_VALUE):
5685 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
5686 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
5687 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
5688 * alloc.c (Fmake_marker, free_marker, gc_sweep):
5689 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
5690 * editfns.c (save_excursion_restore, transpose_markers):
5691 * window.c (delete_window):
5692 * xdisp.c (message_dolog): Update for new types.
5693
d54ae3d8
JD
56942003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5695
a5f696ac
JD
5696 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
5697 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 5698 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
5699
5700 * frame.c (make_frame): Initialize default_face_done_p.
5701
5702 * frame.h (struct frame): Add default_face_done_p.
5703
d54ae3d8
JD
5704 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
5705 will be defined.
5706
2336fe58
SM
57072003-06-25 Stefan Monnier <monnier@cs.yale.edu>
5708
5709 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
5710 Initialize the new field `gcmarkbit'.
5711 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
5712 (mark_interval_tree): Don't mark the tree separately from the nodes.
5713 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
5714 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5715 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
5716
5717 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
5718 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
5719 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
5720 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
5721 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
5722
bcea31c2
DL
57232003-06-24 Dave Love <fx@gnu.org>
5724
5725 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
5726
5727 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
5728 from gnulib.
5729
2601f59e
RS
57302003-06-21 Richard M. Stallman <rms@gnu.org>
5731
5732 * fileio.c (Fwrite_region): Alternate messages
5733 for append and partial write.
5734
5735 * keyboard.c (read_key_sequence): When converting upcase fn key to
5736 downcase, update fkey and keytran so `backspace' gets translated.
5737
5738 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
5739
5740 * process.c (wait_reading_process_input): Don't signal SIGIO
5741 in batch mode.
5742
b5d2c621
KH
57432003-06-17 Kenichi Handa <handa@m17n.org>
5744
5745 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
5746 composite.h.
5747
5748 * xselect.c: Don't include charset.h, coding.h, composite.h.
5749 (Qforeign_selection): New variable.
5750 (syms_of_xselect): Intern and static it.
5751 (selection_data_to_lisp_data): Return a unibyte string made from
5752 data with `foreign-selection' text property.
5753
6793bc63
SM
57542003-06-15 Stefan Monnier <monnier@cs.yale.edu>
5755
5756 * termhooks.h (EVENT_INIT): New macro.
5757
5758 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
5759
5760 * alloc.c (mark_kboards): Move to keyboard.c.
5761
5762 * keyboard.c (record_asynch_buffer_change, read_avail_input):
5763 * xterm.c (x_dispatch_event):
5764 * xmenu.c (find_and_call_menu_selection):
5765 * xdisp.c (handle_tool_bar_click):
5766 * w32menu.c (menubar_selection_callback):
5767 * sysdep.c (kbd_input_ast, read_input_waiting):
5768 * msdos.c (dos_rawgetc):
5769 * macterm.c (mac_check_for_quit_char):
5770 * macmenu.c (menubar_selection_callback):
5771 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
5772 data to kbd_buffer_store_event.
5773
b3ea810c
KS
57742003-06-15 Kim F. Storm <storm@cua.dk>
5775
5776 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 5777 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 5778
b8f75eda
KG
57792003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5780
5781 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
5782
ba92ce48
KH
57832003-06-12 Kenichi Handa <handa@m17n.org>
5784
5785 * fileio.c (Fwrite_region): Save and restore restriction.
5786
b80263be
DL
57872003-06-12 Dave Love <fx@gnu.org>
5788
5789 * alloca.c (alloca): Declare arg as size_t.
5790
6793bc63
SM
5791 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
5792 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 5793
b23c0a83
DL
57942003-06-11 Dave Love <fx@gnu.org>
5795
5796 * search.c (shrink_regexp_cache): Use xrealloc.
5797 (syms_of_search): Use xmalloc.
5798
700e47c2
KS
57992003-06-10 Kim F. Storm <storm@cua.dk>
5800
5801 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
5802 Adjust phys_cursor.x to be relative to window box, rather than
5803 text area before checking -- to ensure cursor is redrawn when
5804 exposing window.
5805 Note: This also fixes a similar (older) bug if display margins
5806 are present.
5807
f11aa0b2
KH
58082003-06-06 Kenichi Handa <handa@m17n.org>
5809
5810 * coding.c (encoding_buffer_size): If coding->type is
5811 coding_type_ccl, double magnification on CRLF encoding.
5812
3d143690
JR
58132003-06-06 Jason Rumney <jasonr@gnu.org>
5814
5815 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
5816 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
5817
5818 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
5819 Mac too.
5820
f16205ca
DL
58212003-06-05 Dave Love <fx@gnu.org>
5822
b23c0a83
DL
5823 * strftime.c: Merge changes from gnulib.
5824
f16205ca
DL
5825 * mktime.c (__mktime_internal): Merge changes from gnulib
5826 involving year 69 and dst2.
5827
5828 Changes to merge with gnulib version and be consistent with the
5829 autoconf test:
5830
6793bc63
SM
5831 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
5832 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
5833 [HAVE_LOCALE_H]: Include locale.h.
5834 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
5835
9b87a0bc
KS
58362003-06-05 Kim F. Storm <storm@cua.dk>
5837
5838 * window.c (coordinates_in_window): Convert X and Y to window
5839 relative coordinates inside mode-line and header-line parts.
5840 Convert X and Y to margin area relative coordinates inside left
5841 and right display margin parts.
5842
5a8a15ec
JR
58432003-06-05 Jason Rumney <jasonr@gnu.org>
5844
5845 * w32fns.c (add_system_logical_colors_to_map): New function.
5846 (Fx_open_connection): Use it.
5847
01ed8ff1
SM
58482003-06-04 Stefan Monnier <monnier@cs.yale.edu>
5849
5850 * process.c (allocate_pty): Revert part of the previous patch.
5851 (Faccept_process_output): Simplify.
5852
b427b65d
JR
58532003-06-04 Jason Rumney <jasonr@gnu.org>
5854
5855 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
5856
5857 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
5858 (lispy_mouse_wheel_names): Remove.
5859 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
5860 Always define drag_and_drop_syms.
5861
5862 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
5863 WHEEL_EVENT events.
5864
914a8c47
SM
58652003-06-03 Stefan Monnier <monnier@cs.yale.edu>
5866
01ed8ff1
SM
5867 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
5868
914a8c47
SM
5869 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
5870
adcb132c
JD
58712003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5872
5873 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
5874 menu item label.
5875
be781fa7
RS
58762003-06-03 Richard M. Stallman <rms@gnu.org>
5877
5878 * window.c (Fwindow_edges): Doc fix.
5879 (Fwindow_pixel_edges, Fwindow_inside_edges)
5880 (Fwindow_inside_pixel_edges): New functions.
5881 (syms_of_window): defsubr them.
5882
5883 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
5884 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
5885
914a8c47
SM
58862003-06-02 Stefan Monnier <monnier@cs.yale.edu>
5887
5888 * dispnew.c (Fsit_for): Don't lie about the number of args.
5889
5b07197a
DL
58902003-06-02 Dave Love <fx@gnu.org>
5891
5892 * callproc.c: Use HAVE_FCNTL_H, not USG5.
5893 (syms_of_callproc) <process-environment>: Doc fix.
5894
5895 * doc.c: Use HAVE_FCNTL_H, not USG5.
5896
5897 * xfaces.c (font_rescale_ratio): Fix for K&R.
5898
5899 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
5900
5901 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
5902
5903 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
5904
5905 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
5906 (xg_create_frame_widgets): Use ENCODE_UTF_8.
5907
d7107586 5908 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
5909
5910 * xmenu.c (ENCODE_MENU_STRING): New.
5911 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
5912 Use it.
5913
5914 * coding.h (ENCODE_UTF_8): New.
5915 (Qutf_8): Declare.
5916
5917 * coding.c (Qutf_8): New.
5918 (syms_of_coding): Intern it.
5919
5920 * fns.c: Doc fixes.
5921
7335b336
KH
59222003-06-02 Kenichi Handa <handa@m17n.org>
5923
5924 * buffer.c (Fset_buffer_multibyte): Fix previous change.
5925
914a8c47
SM
59262003-06-01 Stefan Monnier <monnier@cs.yale.edu>
5927
5928 * lread.c (openp): Make sure STR is a string.
5929
9862c135
JR
59302003-06-01 David Ponce <david@dponce.com>
5931
5932 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
5933 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
5934
5935 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
5936 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
5937 (discard_mouse_events): Discard WHEEL_EVENT events too.
5938 (lispy_wheel_names, wheel_syms): New.
5939 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
5940 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
5941 defined.
914a8c47 5942 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
5943
5944 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
5945 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5946 WHEEL_EVENT events.
5947
f984e73e
JPW
59482003-05-31 John Paul Wallington <jpw@gnu.org>
5949
5950 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
5951 timer are in lisp/emacs-lisp.
5952
1efcd78f
KH
59532003-05-31 Kenichi Handa <handa@m17n.org>
5954
458c8af4
KH
5955 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
5956 region when a buffer is changed to unibyte.
5957
1efcd78f
KH
5958 * charset.h (VALID_LEADING_CODE_P): New macro.
5959 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5960
778e2804
KH
5961 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
5962 is nonzero, accept multibyte form of eight-bit-control chars.
5963 (decode_composition_emacs_mule): Likewise.
5964 (decode_coding_emacs_mule): Likewise.
5965 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
5966 multibyte form of eight-bit-control chars.
5967
5968 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
5969 (Finsert_file_contents): If coding-system-for-read is bound to
5970 Qauto_save_coding, use the coding system emacs-mule with special
5971 setting for recovering a file.
5972 (choose_write_coding_system): On auto saving, use the coding
5973 system emacs-mule with special setting for auto saving.
5974 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
5975
034060e4
KH
59762003-05-30 Kenichi Handa <handa@m17n.org>
5977
5978 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
5979 properly before calling ccl_driver.
5980
778e2804 5981 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
5982
5983 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
5984 nonzero.
5985 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
5986 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
5987
595f5aa5
GM
59882003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5989
5990 * xfaces.c (realize_default_face): Do not abort if lface is
5991 non-existent - reverts change from 2003-05-19.
5992
103e0180
KH
59932003-05-29 Kenichi Handa <handa@m17n.org>
5994
5995 * coding.c (decode_coding_iso2022): Pay attention to the byte
5996 sequence of CTEXT extended segment, and retain those bytes as is.
5997
59982003-05-28 Kenichi Handa <handa@m17n.org>
5999
6000 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
6001 of CODING_REPLACEMENT_CHARACTER.
6002 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
6003 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
6004 check this flag on encoding.
6005 (encode_coding_sjis_big5): Check
6006 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
6007 (Fset_terminal_coding_system_internal): Set
6008 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
6009 instead of setting CODING_FLAG_ISO_SAFE flag in
6010 terminal_coding.flags.
6011
6012 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
6013 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
6014 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
6015
ff6a3bfb 60162003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 6017
ff6a3bfb
RS
6018 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
6019
6020 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 6021
1963c428
KS
60222003-05-28 Kim F. Storm <storm@cua.dk>
6023
6024 * xdisp.c (expose_window): Fix error in calculation of
6025 window relative coordinates of area to redisplay.
6026
2b5d4601
JR
60272003-05-27 Jason Rumney <jasonr@gnu.org>
6028
6029 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
6030
1c64a4a2
JB
60312003-05-27 David Ponce <david@dponce.com>
6032
6033 Handle W32 mouse wheel events as mouse click events, like in X.
6034
6035 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
6036 MOUSE_WHEEL_EVENT anymore.
6037
6038 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
6039 Scrolling down/up the mouse wheel is respectively mapped to mouse
6040 button 4 and 5.
6041 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6042 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
6043 WM_MOUSEWHEEL events.
6044
2d031b89
AS
60452003-05-27 Andreas Schwab <schwab@suse.de>
6046
20464fdf
AS
6047 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
6048
2d031b89
AS
6049 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
6050 partially visible line.
6051
6052 * alloc.c (Fgarbage_collect): Fix last change.
6053
97bc76d4
JPW
60542003-05-26 John Paul Wallington <jpw@gnu.org>
6055
6056 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
6057
56613f06
SM
60582003-05-25 Stefan Monnier <monnier@cs.yale.edu>
6059
6060 * window.c (Fset_window_buffer): Add type of `keep_margins'.
6061 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
6062
6063 * window.h (window_box_text_cols): Declare.
6064
6065 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
6066 (x_draw_vertical_border): Remove unused var `f'.
6067
6068 * xfaces.c (build_scalable_font_name): Remove `unused var
6069 pixel_size' warning.
6070
6071 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
6072
6073 * unexelf.c (unexec): Remove `unused var n' warning.
6074
6075 * strftime.c (my_strftime_localtime_r): Remove `defined but
6076 unused' warning.
6077
6078 * process.c (allocate_pty): Remove `unused var stb' and
6079 `cp might be used uninitialized' warnings.
6080
6081 * dispnew.c (mode_line_string): Remove unused var `f'.
6082
6083 * coding.c (find_safe_codings): Remove unused var `i'.
6084
6085 * bytecode.c (Fbyte_code): Remove `unused val' warning.
6086
6087 * buffer.c (Fkill_buffer): Remove unused var `list'.
6088
6089 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
6090
93421a1f
JD
60912003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6092
6093 * frame.c (make_frame): Condition want_fullscreen with
6094 HAVE_WINDOW_SYSTEM.
6095
c4b8aebc
JB
60962003-05-25 Juanma Barranquero <lektu@terra.es>
6097
6098 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
6099 (Fwindow_scroll_bars): Fix typo in docstring.
6100
0416870b
KS
61012003-05-24 Kim F. Storm <storm@cua.dk>
6102
6103 The following changes serve several purposes:
6104
6105 1) Swap the position of fringes and display margins in windows, i.e.
6106 the fringes are now displayed between the margins and the text area
6107 (by default).
6108
6109 2) Allow fringe and scroll bar parameters to be set per-buffer and
6110 per-window (like display margins). Such settings are now stored
6111 in window configurations, preserved when frames are resized, and
9018a88e 6112 copied when windows are split vertically or horizontally.
0416870b
KS
6113 Several bugs related to display margins have been fixed.
6114
6115 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 6116
0416870b
KS
6117 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
6118 rather than FRAME_WIDTH (FRAME_FONT (f)).
6119
6120 5) Introduce a consistent naming of variables, members and macros
6121 depending on whether their value is measured in pixels or in
6122 canonical columns/lines. Pixel dimensions are named *_width and
6123 *_height, while canonical columns/lines are named *_cols and
6124 *_lines. Pixel positions are named *_x and *_y, while column/line
6125 positions are named *_col and *_line.
6126
6127 6) Consolidate more of the X, W32, and MAC gui code by moving
6128 common data into struct frame, and generalize it for the non-gui
6129 case by using suitable defaults.
6130
6131 7) Cleanup and consolidate the macros controlling frame and window
6132 layout into frame.h and window.h, and generalize the use of the
6133 various window_box_* functions (enhanced to handle the new fringe
6134 position and the per-window fringe and scroll bar settings).
6135
6136 * frame.h (struct frame): Rename members height to text_lines,
6137 width to text_cols, window_height to total_lines, window_width to
6138 total_cols, new_height to new_text_lines, new_width to
6139 new_text_cols. All uses changed.
6140 (struct frame): New members which consolidate common members of
6141 x_output, w32_output, and mac_output structures: left_pos,
6142 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
6143 win_gravity, size_hint_flags, border_width, internal_border_width,
6144 line_height, fringe_cols, left_fringe_width, right_fringe_width,
6145 want_fullscreen. All uses changed.
6146 (struct frame): New member column_width contaning the canonical
6147 column width, analogue to line_height. All uses changed.
6148 (struct frame): Rename members scroll_bar_pixel_width to
6149 config_scroll_bar_width, and scroll_bar_cols to
6150 config_scroll_bar_cols. All uses changed.
6151 (struct frame): New member scroll_bar_actual_width which
6152 consolidates and renames the vertical_scroll_bar_extra member of
6153 x_output, w32_output, and mac_output structures. All uses changed.
6154 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
6155 from x/w32/macterm.h files. All uses changed. Also change code
6156 which referred to f->output_data...->pixel_height.
6157 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 6158 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
6159 which referred to f->output_data...->pixel_width.
6160 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
6161 Also change code which referred to f->height.
6162 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
6163 Also change code which referred to f->width.
6164 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
6165 to update new_text_lines and new_text_cols members directly.
6166 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
6167 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
6168 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
6169 FRAME_SCROLL_BAR_COLS. All uses changed.
6170 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
6171 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
6172 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
6173 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
6174 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
6175 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
6176 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
6177 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
6178 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
6179 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
6180 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
6181 return line_height member (it now has proper value also for
6182 non-window frames).
6183 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
6184 return new column_width member (rather than the default font width).
6185 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
6186 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
6187 from x/w32/macterm.h files. Unconditionally return corresponding
6188 member of frame structure (they now have proper values also for
6189 non-window frames).
6190 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
6191 Calculate return value from left and right widths.
6192 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
6193 internal_border_width member (has proper value for non-window frame).
6194 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
6195 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
6196 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
6197 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
6198 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
6199 consolidated from xterm.h, macterm.h, and w32term.h.
6200 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
6201 consolidated from xterm.h, macterm.h, and w32term.h.
6202 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
6203 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
6204 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
6205 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
6206 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
6207 consolidated from x/mac/w32term.h.
6208 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
6209 consolidated from x/mac/w32term.h.
6210 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
6211 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
6212 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
6213 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
6214
6215 * window.h (struct window): Rename members left to left_col,
6216 top to top_line, height to total_lines, width to total_cols,
6217 left_margin_width to left_margin_cols, right_margin_width to
6218 right_margin_cols, orig_height to orig_total_lines, orig_top to
6219 orig_top_line. All uses changed.
6220 (struct window): New members left_fringe_width, right_fringe_width,
6221 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
6222 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
6223 New macros primarily used to simplify other macros.
6224 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
6225 referred to XINT (w->width).
6226 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
6227 referred to XINT (w->height).
6228 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
6229 referred to XINT (w->width) * canon_x_unit.
6230 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
6231 referred to XINT (w->height) * canon_y_unit.
6232 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
6233 referred to XINT (w->left).
6234 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
6235 all uses and code that referred to XINT (w->left) + XINT (w->width).
6236 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
6237 referred to XINT (w->top).
6238 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
6239 referred to XINT (w->top) + XINT (w->height).
6240 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
6241 referred to XINT (w->left) * canon_x_unit.
6242 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
6243 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
6244 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
6245 referred to XINT (w->top) * canon_y_unit.
6246 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
6247 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
6248 (WINDOW_LEFTMOST_P): New macro.
6249 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
6250 All uses changed.
6251 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
6252 All uses changed.
6253 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
6254 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
6255 Do not exclude left fringe width.
6256 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
6257 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
6258 Do not exclude fringe widths.
6259 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
6260 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
6261 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
6262 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
6263 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
6264 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
6265 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
6266 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
6267 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
6268 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
6269 New macros. Change code which referenced corresponding
6270 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
6271 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
6272 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
6273 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
6274 allow per-window scroll-bar settings.
6275 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
6276 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
6277 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
6278 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
6279 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
6280 FRAME_SCROLL_BAR_WIDTH.
6281 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 6282 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
6283 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
6284 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
6285 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
6286 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
6287 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
6288 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
6289 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6290 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6291 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
6292 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
6293 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6294 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
6295 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6296 (window_from_coordinates): Update prototype.
6297 (Fset_window_buffer): Update EXFUN.
6298 (set_window_buffer): Update prototype.
9018a88e 6299
0416870b 6300 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 6301 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
6302 changed.
6303 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
6304 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
6305 internal_border_width is now set to 0 for non-window frames.
6306 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
6307 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
6308 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
6309 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
6310 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
6311 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6312 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6313 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
6314 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 6315 Move to window.h and renamed [see window.h changes].
0416870b
KS
6316 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
6317 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
6318 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
6319 Use WINDOW_TOTAL_LINES.
0416870b
KS
6320 (frame_update_line_height): Remove prototype.
6321
6322 * buffer.h (struct buffer): Rename members measured in columns:
6323 left_margin_width to left_margin_cols, right_margin_width to
6324 right_margin_cols. All uses changed.
6325 New members left_fringe_width, right_fringe_width,
6326 fringes_outside_margins for per-buffer fringe settings.
6327 New members scroll_bar_width and vertical_scroll_bar_type for
6328 per-buffer scroll bar settings.
6329
6330 * buffer.c (init_buffer_once): Set buffer_defaults and
6331 buffer_local_flags for new buffer-local variables
6332 left_fringe_width, right_fringe_width, fringes_outside_margins,
6333 scroll_bar_width, and vertical_scroll_bar_type.
6334 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
6335 default-* variables for them.
6336
6337 * dispnew.c: Make (many) trivial substitutions for renamed and
6338 new macros in dispextern.h, frame.h and window.h.
6339 (mode_line_string): No need to adjust width for mode lines, as it
6340 is already adjusted by the caller.
6341 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 6342
0416870b
KS
6343 * frame.c: Make (many) trivial substitutions for renamed and
6344 new macros in dispextern.h, frame.h and window.h.
6345 (make_frame): Initialize left_fringe_width, right_fringe_width,
6346 fringe_cols, scroll_bar_actual_width, border_width,
6347 internal_border_width, column_width, line_height, x_pixels_diff,
6348 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
6349 members with values suitable for a non-window frames.
6350
6351 * gtkutil.c: Make (many) trivial substitutions for renamed and
6352 new macros in dispextern.h, frame.h and window.h.
9018a88e 6353
0416870b
KS
6354 * indent.c: Make (few) trivial substitutions for renamed and
6355 new macros in dispextern.h, frame.h and window.h.
6356
6357 * keyboard.c: Make (many) trivial substitutions for renamed and
6358 new macros in dispextern.h, frame.h and window.h.
6359 (make_lispy_event): Use window positions returned from
6360 window_from_coordinates when constructing the lisp event for
6361 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
6362 (incorrect) values locally.
6363 (make_lispy_movement): Use window positions returned from
6364 window_from_coordinates when constructing the lisp event, rather
6365 than calculating (incorrect) values locally.
6366
6367 * scroll.c: Make (some) trivial substitutions for renamed and
6368 new macros in dispextern.h, frame.h and window.h.
6369
6370 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
6371 scroll-bars.
6372
6373 * sysdep.c: Make (few) trivial substitutions for renamed and
6374 new macros in dispextern.h, frame.h and window.h.
6375
6376 * term.c: Make (some) trivial substitutions for renamed and
6377 new macros in dispextern.h, frame.h and window.h.
6378
6379 * widget.c: Make (few) trivial substitutions for renamed and
6380 new macros in dispextern.h, frame.h and window.h.
6381
6382 * window.c: Make (many) trivial substitutions for renamed and
6383 new macros in dispextern.h, frame.h and window.h.
6384 (make_window): Initialize new members
6385 left_margin_cols, right_margin_cols, left_fringe_width,
6386 right_fringe_width, fringes_outside_margins, scroll_bar_width,
6387 and vertical_scroll_bar_type.
6388 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 6389 and per-window fringes and scroll-bars.
0416870b 6390 Fix bug related to incorrectly adjusting coordinates by
9018a88e 6391 frame's internal_border_width (the effect normally negible since
0416870b
KS
6392 the internal_border_width is typically 0 or 1 pixel, but very
6393 noticeable for an internal_border_width of e.g. 25 pixels).
6394 Upon successful return (other than ON_NOTHING), the coordinates
6395 are now always properly converted to window relative for the
6396 given display element.
6397 (window_from_coordinates): Add new parameters wx and wy to
6398 return the window relative x and y position in the returned
6399 window and part. A null arg means, don't return the position.
6400 All callers changed.
6401 (adjust_window_margins): New function which may reduce the width
6402 of the display margins if a window's text area is too small after
6403 resizing or splitting windows.
6404 (size_window): Fix bug that did not account for display margin
6405 widths when checking the minimum width of a window; use
6406 adjust_window_margins.
6407 (set_window_buffer): Call Fset_window_fringes and
6408 Fset_window_scroll_bars to setup per-window elements.
6409 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
6410 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
6411 (e.g. after splitting a window or resizing the frame).
6412 All callers changed.
0416870b
KS
6413 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
6414 (Fsplit_window): Duplicate original window's display margin,
6415 fringe, and scroll-bar settings; then call Fset_window_buffer with
6416 KEEP_MARGINS non-nil. This fixes a bug which caused a split
6417 window to only preserve the display margins in one of the windows.
c4b8aebc 6418 When splitting horizontally, call adjust_window_margins on both
0416870b 6419 windows to ensure that the text area of the new windows is non too
f9711de4 6420 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
6421 width of the split window was less than the width of the display
6422 margins.
9018a88e
SM
6423 (window_box_text_cols): Renamed from window_internal_width.
6424 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
6425 Fix bug that caused vertical separator to be subtracted also on
6426 window frames. Fix another bug that did not reduce the returned
6427 value by the columns used for display margins.
6428 (window_scroll_line_based): Fix bug related to scrolling too much
6429 when display margins are present (implicitly fixed by the fix to
6430 window_box_text_cols).
6431 (scroll_left, scroll_right): Fix bug related to scrolling too far
6432 by default when display margins are present (implicitly fixed by
6433 the fix to window_box_text_cols).
6434 (struct saved_window): Rename members left to left_col, top to
6435 top_line, width to total_cols, height to total_lines, orig_top to
6436 orig_top_line, orig_height to orig_total_lines. All uses changed.
6437 New members left_margin_cols, right_margin_cols,
6438 left_fringe_width, right_fringe_width, fringes_outside_margins,
6439 scroll_bar_width, and vertical_scroll_bar_type for saving
6440 per-window display elements.
6441 (Fset_window_configuration): Restore display margins, fringes,
6442 and scroll bar settings. This fixes a bug which caused display
6443 margins to be discarded when saving and restoring a window
6444 configuration.
6445 (save_window_save): Save display margins, fringes, and scroll bar
6446 settings. This fixes a bug which caused display margins to be
6447 discarded when saving and restoring a window configuration.
6448 (Fset_window_margins): Do nothing if display margins are not
6449 really changed. Otherwise, call adjust_window_margins to ensure
6450 the text area doesn't get too narrow. This fixes a bug which
f9711de4 6451 could cause Emacs to trap if setting display margins wider than
0416870b
KS
6452 the width of the window.
6453 (Fset_window_fringes): New defun to allow user to specifically set
6454 this window's fringe widths and position vs. display margins.
6455 (Fwindow_fringes): New defun to return window's actual fringe
6456 settings.
6457 (Fset_window_scroll_bars): New defun to allow user to specifically
6458 set this window's scroll bar width and position.
6459 (Fwindow_scroll_bars): New defun to return window's actual scroll
6460 bar settings.
6461 (compare_window_configurations): Also compare display margins,
6462 fringes, and scroll bar settings.
6463 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
6464
6465 * xdisp.c: Make (many) trivial substitutions for renamed and
6466 new macros in dispextern.h, frame.h and window.h.
6467 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 6468 and new fringe vs. display margin position. Note that returned
0416870b
KS
6469 value is no longer guaranteed to be a whole multiple of the frame
6470 column width, since per-window fringes may now be any width.
6471 (window_box_left_offset): New function like window_box_left, but
6472 value is relative to left border of window (rather than frame).
6473 (window_box_right_offset): New function like window_box_right,
6474 but value is relative to left border of window.
6475 (window_box_left): Adapt to per-window fringes and scroll bars,
6476 and new fringe vs. display margin position. Simplify by using
6477 WINDOW_LEFT_EDGE_X and window_box_left_offset.
6478 (window_box): Allow null args for unnecessary return values;
6479 change/simplify relevant callers.
6480 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
6481 and new fringe vs. display margin position.
6482 Use window_box_left_offset and window_box_right_offset
0416870b 6483 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
6484 scroll bars, and new fringe vs. display margin position.
6485 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
6486 (draw_fringe_bitmap): Rework to handle per-window fringes and new
6487 fringe vs. display margin position.
6488 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
6489 (redisplay_window): Adapt to per-window scroll bars.
6490 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
6491 bars, and new fringe vs. display margin position.
6492 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 6493 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
6494 bars, and new fringe vs. display margin position. Fix bug which
6495 increased total width of full_width rows by width of scroll bars
6496 although window's total width already includes that.
6497 (x_fix_overlapping_area): Simplify using window_box_left_offset.
6498 (expose_area): Simplify using window_box_left_offset.
6499 (x_draw_vertical_border): Handle per-window scroll bar settings,
6500 mixing windows with left, right and no scroll bars.
6501
6502 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
6503 where it's used in x_list_fonts (for clarity).
6504 (frame_update_line_height): Remove unused function; functionality
6505 is now done directly when setting the default font in x_set_font.
6506
6507 * xfns.c: Make (many) trivial substitutions for renamed and
6508 new macros in dispextern.h, frame.h and window.h.
6509
6510 * xmenu.c: Make (some) trivial substitutions for renamed and
6511 new macros in dispextern.h, frame.h and window.h.
6512
6513 * xterm.h (struct x_output): Move members left_pos, top_pos,
6514 border_width, pixel_height, pixel_width, line_height,
6515 internal_border_width, vertical_scroll_bar_extra,
6516 left_fringe_width, right_fringe_width, fringe_cols,
6517 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6518 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6519 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6520 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6521 (PIXEL_WIDTH, PIXEL_HEIGHT)
6522 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6523 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6524 frame.h and renamed [see frame.h changes].
6525 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6526 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6527 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6528 and renamed [see frame.h changes].
9018a88e 6529
0416870b
KS
6530 * xterm.c: Make (several) trivial substitutions for renamed and
6531 new macros in dispextern.h, frame.h and window.h.
6532 (x_draw_glyph_string_box): Adapt to per-window fringes and
6533 scroll-bars.
6534 (scroll_run): Adapt to new fringe position.
6535 (glyph_rect): Use window coordinates returned from
6536 window_from_coordinates rather than frame_to_window_pixel_xy.
6537 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6538 scroll-bars.
6539 (handle_one_xevent): Simplify a USE_GTK conditional.
6540 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6541 (fringes are now inside margins, i.e. always in the clipping area).
6542 All callers changed.
6543 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6544 directly, then call compute_fringe_widths. Don't call
6545 frame_update_line_height.
6546
6547 * w32term.h (struct w32_output): Move members left_pos, top_pos,
6548 border_width, pixel_height, pixel_width, line_height,
6549 internal_border_width, vertical_scroll_bar_extra,
6550 left_fringe_width, right_fringe_width, fringe_cols,
6551 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6552 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6553 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6554 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6555 (PIXEL_WIDTH, PIXEL_HEIGHT)
6556 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6557 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6558 frame.h and renamed [see frame.h changes].
6559 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6560 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6561 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6562 and renamed [see frame.h changes].
9018a88e 6563
0416870b
KS
6564 * w32term.c: Make (several) trivial substitutions for renamed and
6565 new macros in dispextern.h, frame.h and window.h.
6566 (x_draw_glyph_string_box): Adapt to per-window fringes and
6567 scroll-bars.
6568 (glyph_rect): Use window coordinates returned from
6569 window_from_coordinates rather than frame_to_window_pixel_xy.
6570 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6571 scroll-bars.
6572 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
6573 (fringes are now inside margins, i.e. always in the clipping area).
6574 All callers changed.
6575 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6576 directly, then call compute_fringe_widths. Don't call
6577 frame_update_line_height.
6578
6579 * w32console.c: Make (few) trivial substitutions for renamed and
6580 new macros in dispextern.h, frame.h and window.h.
6581
6582 * w32fns.c: Make (many) trivial substitutions for renamed and
6583 new macros in dispextern.h, frame.h and window.h.
6584
6585 * w32menu.c: Make (few) trivial substitutions for renamed and
6586 new macros in dispextern.h, frame.h and window.h.
6587
6588 * macterm.h (struct mac_output): Move members left_pos, top_pos,
6589 border_width, pixel_height, pixel_width, line_height,
6590 internal_border_width, vertical_scroll_bar_extra,
6591 left_fringe_width, right_fringe_width, fringe_cols,
6592 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6593 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
6594 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6595 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6596 (PIXEL_WIDTH, PIXEL_HEIGHT)
6597 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6598 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6599 frame.h and renamed [see frame.h changes].
6600 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6601 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6602 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6603 and renamed [see frame.h changes].
9018a88e 6604
0416870b
KS
6605 * macterm.c: Make (several) trivial substitutions for renamed and
6606 new macros in dispextern.h, frame.h and window.h.
6607 (x_draw_glyph_string_box): Adapt to per-window fringes and
6608 scroll-bars.
6609 (glyph_rect): Use window coordinates returned from
6610 window_from_coordinates rather than frame_to_window_pixel_xy.
6611 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6612 scroll-bars.
6613 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6614 (fringes are now inside margins, i.e. always in the clipping area).
6615 All callers changed.
6616 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6617 directly, then call compute_fringe_widths. Don't call
6618 frame_update_line_height.
6619
6620 * macfns.c: Make (several) trivial substitutions for renamed and
6621 new macros in dispextern.h, frame.h and window.h.
9018a88e 6622 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
6623
6624 * macmenu.c: Make (few) trivial substitutions for renamed and
6625 new macros in dispextern.h, frame.h and window.h.
6626
6627 * msdos.h (struct x_output): Remove members left_pos, top_pos,
6628 and line_height, and use corresponding new members in struct
6629 frame. All uses changed.
6630 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
6631 superseeded by corresponding macros in frame.h.
6632
6633 * msdos.c: Make (several) trivial substitutions for renamed and
6634 new macros in dispextern.h, frame.h and window.h.
6635 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 6636 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
6637 (internal_terminal_init): No need to initialize line_height here;
6638 it now defaults to 1.
6639
9018a88e
SM
66402003-05-24 Stefan Monnier <monnier@cs.yale.edu>
6641
6642 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
6643 dropping `down' events.
6644
016bd3c0
AS
66452003-05-24 Andreas Schwab <schwab@suse.de>
6646
6647 * coding.c (find_safe_codings): Fix last change.
6648
4dacadcc
TTN
66492003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
6650
6651 * xfns.c (x_window): Fix typo from 2003-05-21 change.
6652
319830ce
SM
66532003-05-23 Stefan Monnier <monnier@cs.yale.edu>
6654
9018a88e
SM
6655 * xdisp.c (display_mode_element): Increase max depth.
6656 Simplify the error handling code. Use a different error string
6657 for the case where we hit the depth limit.
6658
319830ce
SM
6659 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
6660
6661 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
6662
66632003-05-21 Stefan Monnier <monnier@cs.yale.edu>
6664
6665 * intervals.c (get_local_map): Don't get char-property of previous
6666 point any more: get_pos_property already does it and better.
6667
c67de8ba
DL
66682003-05-21 Dave Love <fx@gnu.org>
6669
6670 [Merged from unicode branch.]
6671
6672 * xfns.c (x_window, x_window): Use use_xim.
6673
6674 * xterm.c (use_xim): Initialize.
6675 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6676 (x_term_init): Maybe set use_xim.
6677
6678 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6679
edd3ff1d
JR
66802003-05-21 Jason Rumney <jasonr@gnu.org>
6681
6682 * unexw32.c (_start): Remove _fmode initialization.
6683
6684 * emacs.c (main) [WINDOWSNT]: Move it here.
6685
463f55ee
DL
66862003-05-20 Dave Love <fx@gnu.org>
6687
6688 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
6689
af253914
RS
66902003-05-19 Richard M. Stallman <rms@gnu.org>
6691
6692 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
6693 as value for QCfont attribute.
6694 (realize_default_face): lface should already exist; crash if not.
6695 Specify 0 for FORCE_P when calling set_lface_from_font_name.
6696
6697 * frame.c (Fignore_event): Doc fix.
6698
1d211019
KH
66992003-05-19 Kenichi Handa <handa@m17n.org>
6700
6701 * coding.c (decode_coding_string): Handle post-read-conversion
6702 even if the coding doesn't require decoding.
6703
4dd68254
RS
67042003-05-18 Richard M. Stallman <rms@gnu.org>
6705
6706 * callproc.c (Fcall_process_region): Doc fix.
6707
14d87dc9
SM
67082003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6709
deca5d96
SM
6710 * lread.c (Fload): Print a message if package is obsolete.
6711
14d87dc9
SM
6712 * window.c (Fselect_window): Add optional `norecord' arg.
6713 (select_window_1): Fold into Fselect_window.
6714 (select_window_norecord): New function.
6715 (temp_output_buffer_show): Use it. Preserve current buffer.
6716
6717 * window.h (Fselect_window): Update declaration.
6718
6719 * window.c (delete_window, Fother_window, Fset_window_configuration):
6720 * minibuf.c (read_minibuf):
6721 * macterm.c (x_new_focus_frame):
6722 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
6723 * callint.c (Fcall_interactively):
6724 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
6725
6726 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
6727
78f52183
DK
67282003-05-17 David Kastrup <dak@gnu.org>
6729
6730 * process.c (read_process_output): Back out change from 2003-03-09.
6731
14d87dc9
SM
67322003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6733
6734 * editfns.c (get_pos_property): Don't assume that `object' = nil.
6735
6736 * textprop.c (text_property_stickiness): New arg `buffer'.
6737
6738 * intervals.h (text_property_stickiness): New arg `buffer'.
6739 (get_pos_property): Declare.
6740
6741 * intervals.c (get_local_map): Use get_pos_property, to obey
6742 stickiness and empty overlays.
6743 (create_root_interval, graft_intervals_into_buffer): Use BEG.
6744 (merge_properties, intervals_equal, merge_properties_sticky):
6745 Use XCAR, XCDR.
6746 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
6747
1fd1cc2f
RS
67482003-05-17 Richard M. Stallman <rms@gnu.org>
6749
4f9f637a
RS
6750 * minibuf.c (read_minibuf): If buffer is empty, record the default
6751 in the history.
6752 (Fminibuffer_complete_word): When deleting the overlap, take account
6753 of its real position.
6754
6755 * fns.c (map_char_table): Fix previous change.
6756
1fd1cc2f
RS
6757 * syntax.c (find_defun_start):
6758 When open_paren_in_column_0_is_defun_start,
6759 return beginning of buffer.
6760
6761 * lisp.h (map_char_table): Declare added arg.
6762
6763 * fns.c (map_char_table): New arg TABLE gets the master table.
6764 All calls changed.
6765 Process default and inheritance, resorting to Faref if necessary.
6766
6767 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6768 (Faccessible_keymaps): Pass new arg to map_char_table.
6769
6770 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
6771
6772 * casetab.c (set_case_table): Pass new arg to map_char_table.
6773
6774 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
6775
6776 * lisp.h (specbinding_func): New typedef.
6777 (struct specbinding): Use specbinding_func, to put the `volatile'
6778 in the right place.
6779
6780 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
6781 to avoid GCC warning.
14d87dc9 6782
b6189c3b 67832003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 6784
14d87dc9 6785 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 6786
35fb885d
SM
67872003-05-15 Stefan Monnier <monnier@cs.yale.edu>
6788
6789 * keyboard.c (apply_modifiers): Don't fill the other cache.
6790
9a274fbd
SM
67912003-05-14 Stefan Monnier <monnier@cs.yale.edu>
6792
c55b5fad
SM
6793 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
6794
9a274fbd
SM
6795 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
6796 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
6797 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
6798 (Fset_window_configuration, Fcurrent_window_configuration)
6799 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
6800 (Fpos_visible_in_window_p, mark_window_cursors_off)
6801 (window_internal_height, window_internal_width, Frecenter)
6802 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
6803 (replace_buffer_in_all_windows, init_window_once, init_window)
6804 (syms_of_window, keys_of_window): Move from lisp.h.
6805 * lisp.h: Move window.c declarations to window.h.
6806
6807 * bytecode.c: Include window.h.
6808 * emacs.c: Include window.h.
6809
14d87dc9 6810 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
6811 (keyremap): Add `parent' field.
6812 (keyremap_step): Use it. Remove `parent' argument.
6813 (read_key_sequence): Setup and use the new `parent' field.
6814
fd93e331
SM
68152003-05-11 Stefan Monnier <monnier@cs.yale.edu>
6816
6817 * keyboard.c (adjust_point_for_property): Ensure termination.
6818
1c4001a1
SM
68192003-05-10 Stefan Monnier <monnier@cs.yale.edu>
6820
6821 * keyboard.c (follow_key): Remove dead variable `did_meta'.
6822 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
6823 duplicated handling of function-key-map and key-translation-map
6824 in read_key_sequence.
6825 (read_key_sequence): Use them.
6826
6827 * keyboard.c (adjust_point_for_property): Try harder to move point
6828 to the non-sticky end of an invisible property.
6829
6830 * xdisp.c (single_display_prop_intangible_p): Make `space' display
6831 property intangible as well.
6832
780379b1
AS
68332003-05-10 Andreas Schwab <schwab@suse.de>
6834
6835 * xmenu.c (single_menu_item): Change last parameter to void* to
6836 avoid warning.
6837
ca2de342
RS
68382003-05-09 Richard M. Stallman <rms@gnu.org>
6839
6840 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
6841 Bind Qinhibit_modification_hooks to t so there will be no GC.
6842 Rename local `tem' to `save_deactivate_mark'.
6843
6844 * eval.c (specpdl_ptr): Declare volatile.
6845 (unbind_to): Copy the whole binding and decrement specpdl_ptr
6846 before doing the work of unbinding it.
6847
6848 * lisp.h (struct specbinding): Declare elements volatile.
6849 (specpdl_ptr): Declare volatile.
6850
6851 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
6852
6853 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
6854 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
6855
347003be
DL
68562003-05-08 Dave Love <fx@gnu.org>
6857
6858 * coding.c (Vlast_coding_system_used): Doc fix.
6859
5adcec23
JR
68602003-05-07 Jason Rumney <jasonr@gnu.org>
6861
6862 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
6863 when system does not support them.
6864
5fe3b8a4
SM
68652003-05-05 Stefan Monnier <monnier@cs.yale.edu>
6866
6867 * fileio.c (Qwrite_region_annotate_functions): New var.
6868 (build_annotations): Use it to process the global part of the hook.
6869 (syms_of_fileio): Init and staticpro it.
6870
6871 * keyboard.c (safe_run_hooks_error): Display a message instead of
6872 silently ignoring the error.
6873
68742003-05-03 Stefan Monnier <monnier@cs.yale.edu>
6875
6876 * keyboard.c (input_available_signal): Mark static.
6877 (menu_bar_items): Use map_keymap.
6878 (menu_bar_one_keymap): Remove.
6879 (menu_bar_item): Adjust arglist (for use in map_keymap).
6880 Properly hide a second binding when not both are keymaps.
6881
6882 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
6883 (single_keymap_panes): Use it and map_keymap.
6884 (single_menu_item): Use skp as well.
6885
6886 * keymap.h (map_keymap_function_t): New type.
6887 (map_keymap): Declare.
6888
6889 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
6890 (map_keymap_call, Fmap_keymap): New functions.
6891 (syms_of_keymap): Defsubr map-keymap.
6892
4b1b4443
JD
68932003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6894
6895 * gtkutil.c (create_dialog, make_widget_for_menu_item)
6896 (make_menu_item, create_menus, xg_update_menu_item): Don't call
6897 ..._with_mnemonic functions for menu items.
6898
1f816871
KH
68992003-05-01 Kenichi Handa <handa@m17n.org>
6900
6901 * coding.c (coding_system_accept_latin_extra_p): Delete this
6902 function.
6903 (find_safe_codings): Pay attention to
6904 the property tranlsation-table-for-encode of each codings.
6905 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
6906
5ed6ba5b
SM
69072003-05-01 Stefan Monnier <monnier@cs.yale.edu>
6908
6909 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
6910
32c06229
SM
69112003-04-30 Stefan Monnier <monnier@cs.yale.edu>
6912
6913 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
6914
6915 * lisp.h (CHECK): Wrap args in parenthesis.
6916 (specbind): Fix doc: symbol = Qnil is not supported any more.
6917
6918 * bytecode.c (Fbyte_code) <unwind-protect>:
6919 Use Fprogn rather than 0 and Qnil.
6920
6921 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
6922 `double', and `triple' modifiers as well.
6923
ed3c3314
RS
69242003-04-30 Richard M. Stallman <rms@gnu.org>
6925
6926 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
6927
6928 * alloc.c (abort_on_gc): New variable.
6929 (Fgarbage_collect): Abort if abort_on_gc is set.
6930
6931 * lisp.h (abort_on_gc): Add decl.
6932
6933 * eval.c (Fsignal): Clear abort_on_gc.
6934
6935 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 6936 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
6937
6938 * xdisp.c (move_it_vertically_backward): Do the final big else
6939 even if nlines is 0.
6940
6941 * xdisp.c (redisplay_internal): Finish the per-frame loop
6942 even if redisplay is suspended by input.
6943
0b325c12
AC
69442003-04-24 Andrew Choi <akochoi@shaw.ca>
6945
6946 * macterm.c (x_list_fonts): Return all fonts that match if
6947 maxnames = -1.
6948
4e837cd0
KH
69492003-04-25 Kenichi Handa <handa@m17n.org>
6950
6951 * syntax.c (skip_chars): Fix previous change.
6952
9af7511a
KH
69532003-04-24 Kenichi Handa <handa@m17n.org>
6954
6955 * syntax.c (skip_chars): Make the code faster by using the common
6956 technique of *p, *stop, and *endp.
6957
e3b2c21f
JD
69582003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6959
6960 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 6961 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
6962 being updated.
6963
32c06229
SM
69642003-04-19 Stefan Monnier <monnier@cs.yale.edu>
6965
6966 * eval.c (Fapply): Undo last change and add a comment about why.
6967
c6464167
MB
69682003-04-18 Miles Bader <miles@gnu.org>
6969
6970 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
6971 pickier PARSE_MULTIBYTE_SEQ.
6972
e509f168
SM
69732003-04-17 Stefan Monnier <monnier@cs.yale.edu>
6974
6975 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
6976 Use XCDR, XCAR, CONSP.
6977 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
6978 (Fapply): Remove unnecessary GCPRO.
6979
6980 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
6981
6982 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
6983
6984 * buffer.h: Don't hardcode BEG==1.
6985
6986 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
6987
5ceea398
RS
69882003-04-16 Richard M. Stallman <rms@gnu.org>
6989
6990 * xdisp.c (try_window, try_window_reusing_current_matrix):
6991 When at end of window, set window_end_pos to Z-ZV.
6992
6993 * buffer.c (Foverlay_recenter): Doc fix.
6994
e509f168
SM
69952003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6996
6997 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6998
d243e605
AC
69992003-04-14 Andrew Choi <akochoi@shaw.ca>
7000
7001 * macterm.c (mac_check_for_quit_char): Don't check more often than
7002 once a second.
7003
6901b111
SM
70042003-04-11 Stefan Monnier <monnier@cs.yale.edu>
7005
7006 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
7007 specially, so that they can't hide an implicit switch-frame event.
7008 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
7009 (head_table): Use switch-frame as event_kind for select-window.
7010 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
7011
7012 * editfns.c (Fformat): Lisp_Object/int mixup.
7013 (format2): Remove unused var numargs.
7014
e301806f 70152003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 7016
6901b111 7017 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
7018 (Qafter_insert_file_set_coding): New variable.
7019 (syms_of_fileio): Initialize and staticpro it. Delete declaration
7020 for after-insert-file-adjust-coding-function.
7021 (Finsert_file_contents): Call Qafter_insert_file_set_coding
7022 instead of Vafter_insert_file_adjust_coding_function.
7023
38914424
KH
70242003-04-11 Kenichi Handa <handa@m17n.org>
7025
7026 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
7027
7028 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
7029 string. Callers changed.
7030
70312003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 7032
6901b111 7033 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 7034 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
7035 (Finsert_file_contents):
7036 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
7037 decode-format.
7038
f979dc05
JD
70392003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7040
7041 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
7042 get GtkAdjustment as widget now is a GtkRange.
7043
7044 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
7045 GtkRange to avoid memory leak.
7046
f8c6b4c2 70472003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 7048
50ebc53d
KH
7049 * xfaces.c (Vface_font_rescale_alist): New variable.
7050 (struct font_name): New member rescale_ratio.
7051 (font_rescale_ratio): New function.
6901b111 7052 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
7053 (better_font_p): On comparing point sized, pay attention to
7054 recale_ratio member of fonts.
7055 (build_scalable_font_name): Reflect font->rescale_ratio in the
7056 font name.
6901b111 7057 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 7058
cb98871c
KH
7059 * lread.c (read1): Before calling index, check if the 2nd
7060 arguemnt is in ASCII range.
7061
4773b8ca
RS
70622003-04-08 Richard M. Stallman <rms@gnu.org>
7063
b0ada147
RS
7064 * fileio.c (Ffile_symlink_p): Doc fix.
7065
7066 * editfns.c (Fformat): Translate positions of text properties
7067 in the format string to apply them to the result.
7068
4773b8ca
RS
7069 * fileio.c (Finsert_file_contents): Doc fix.
7070 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
7071
70722003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 7073
4773b8ca
RS
7074 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
7075
e8f25745 70762003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 7077
e8f25745
ST
7078 * mac.c (init_mac_osx_environment): Switch libexec and bin so
7079 that self-contained application finds libexec files.
7080
f8c6b4c2 70812003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 7082
6901b111
SM
7083 * coding.c (code_convert_region_unwind):
7084 Set Vlast_coding_system_used to the argument.
2310d84c
KH
7085 (code_convert_region): If post-read-conversion function changed
7086 the value of last-coding-sytem, keep the new value in
7087 coding->symbol so that it won't be overridden.
7088 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
7089 (coding_system_accept_latin_extra_p): New function.
7090 (find_safe_codings): Pay attention to characters registered in
7091 latin-extra-code-table.
2310d84c 7092
39c9a034
TTN
70932003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
7094
7095 * Makefile.in (md5.o): Add missing dependency info.
7096
eb67c5d6
RS
70972003-04-06 Richard M. Stallman <rms@gnu.org>
7098
7099 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
7100
7101 * marker.c (verify_bytepos): New function.
7102
7103 * intervals.c (set_intervals_multibyte_1): When becoming
7104 multibyte, adjust right and left child sizes to a whole set of
7105 characters. If an interval gets zero total-length, delete it.
7106 If an interval consists of just its children, delete one of them.
7107
7108 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
7109 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 7110
eb67c5d6
RS
7111 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
7112 All calls deleted.
7113 (lisp_malloc): Do the work here directly.
7114
b1f81fc5
JB
71152003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
7116
7117 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
7118 char tables.
7119
71202003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
7121
7122 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
7123 destructively change "%S" to "%s".
7124
774666fb
MB
71252003-04-03 Miles Bader <miles@gnu.org>
7126
7127 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
7128 always set.
7129
19c37f01
DL
71302003-04-01 Dave Love <fx@gnu.org>
7131
7132 * xfns.c (xpm_lookup_color): Grok "opaque".
7133
2f4b24c3
AC
71342003-03-31 Andrew Choi <akochoi@shaw.ca>
7135
7136 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
7137 parent window ID.
7138
7139 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
7140
7141 * macterm.h (struct mac_output): Define x_pixels_diff and
7142 y_pixels_diff.
b1f81fc5 7143
9443fcf6
JB
71442003-03-31 Juanma Barranquero <lektu@terra.es>
7145
7146 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
7147 blockinput.h and files included from it.
7148
e072891b
KS
71492003-03-31 Kim F. Storm <storm@cua.dk>
7150
7151 The following changes consolidates the common code related to
7152 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
7153 files into frame.c.
9443fcf6 7154
e072891b
KS
7155 * frame.c: Include blockinput.h.
7156 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
7157 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
7158 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
7159 related vars here.
7160 (struct frame_parm_table, frame_parms): New table for describing
7161 frame parameters and their associated Q-variable.
7162 The order of the parameters corresponds to the sequence of the
7163 frame_parm_handlers table in redisplay_interface.
7164 (x_fullscreen_move, x_set_frame_parameters)
7165 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
7166 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
7167 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7168 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
7169 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
7170 Generic functions for processing of frame parameters.
7171 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
7172 (display_x_get_resource, x_get_resource_string): Functions for
7173 generic access to X resources.
7174 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7175 (x_default_parameter, Fx_parse_geometry): Functions for generic
7176 access to frame parameters.
6901b111
SM
7177 (x_figure_window_size): Generic calculation of frame size.
7178 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
7179 (syms_of_frame): Intern and staticpro frame parameter variables.
7180 Defvar_lisp Vx_resource_class and Vx_resource_name here.
7181 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 7182
e072891b
KS
7183 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
7184 parameter related vars defined in frame.c.
7185 (EMACS_CLASS): Define here.
7186 (enum FULLSCREEN_*): Define here.
7187 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
7188 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
7189 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
7190 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
7191 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
7192 (x_set_visibility, x_set_autoraise, x_set_autolower)
7193 (x_set_unsplittable, x_set_vertical_scroll_bars)
7194 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
7195 (x_figure_window_size): Add prototypes.
7196
7197 * dispextern.h (frame_parm_handler): New typedef.
7198 (struct redisplay_interface): New member frame_parm_handlers.
7199 (enum resource_types): Move declaration here.
7200 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7201 (x_default_parameter): Add prototypes.
7202
7203 * window.c: Remove extern decl for frame parameter vars.
7204 (change_window_heights): New generic function;
7205 replaces x_change_window_heights. All users changed.
7206
7207 * window.h (change_window_heights): Add prototype.
7208
7209 * xfaces.c: Remove extern decl for frame parameter vars.
7210
7211 * xterm.h (EMACS_CLASS): Remove. Use generic define.
7212 (struct w32_display_info): Fix type of xrdb member.
7213 (enum FULLSCREEN_*): Remove.
7214 Remove prototypes for generic functions (in frame.h).
7215
7216 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7217 parameters now defined in frame.h and frame.c.
f63fd14e 7218 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7219 (enum x_frame_parms): Remove (bogus, unused enum).
7220 (check_x_display_info): Make non-static (for frame.c).
7221 (struct x_frame_parm_table, x_frame_parms): Remove.
7222 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7223 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7224 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7225 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7226 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7227 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7228 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7229 Remove. Use generic functions instead.
7230 (enum resource_types): Remove.
7231 (x_set_scroll_bar_default_width): New global function (for frame.c).
7232 (Fx_create_frame): Depend on x_figure_window_size to add space for
7233 toolbar and setup size_hint_flags.
7234 (x_frame_parm_handlers): New table for redisplay_interface.
7235 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 7236
e072891b 7237 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 7238 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
7239 (x_redisplay_interface): Add x_frame_parm_handlers member.
7240
7241 * w32gui.h (XrmDatabase): New (dummy) typedef.
7242
7243 * w32term.h (EMACS_CLASS): Remove. Use generic define.
7244 (struct w32_display_info): Fix type of xrdb member.
7245 (enum FULLSCREEN_*): Remove.
7246 (x_fullscreen_adjust): Remove prototype.
7247
7248 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7249 parameters now defined in frame.h and frame.c.
f63fd14e 7250 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7251 (enum x_frame_parms): Remove (bogus, unused enum).
7252 (check_x_display_info): Make non-static (for frame.c).
7253 (struct x_frame_parm_table, x_frame_parms): Remove.
7254 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7255 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7256 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7257 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7258 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7259 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7260 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7261 Remove. Use generic functions instead.
7262 (enum resource_types): Remove.
7263 (x_set_scroll_bar_default_width): New global function (for frame.c).
7264 (Fx_create_frame): Depend on x_figure_window_size to add space for
7265 toolbar and setup size_hint_flags.
7266 (w32_frame_parm_handlers): New table for redisplay_interface.
7267 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 7268
e072891b
KS
7269 * w32term.c: Remove unnecessary extern declarations.
7270 (x_fullscreen_adjust): Remove. Use generic instead.
7271 (x_redisplay_interface): Add w32_frame_parm_handlers member.
7272
7273 * w32reg.c (x_get_string_resource): Use XrmDatabase.
7274
7275 * macgui.h (XrmDatabase): New (dummy) typedef.
7276
7277 * macterm.h (EMACS_CLASS): Remove.
7278 (struct mac_display_info): Add xrdb member.
7279 (struct mac_output): Add want_fullscreen member.
7280
7281 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7282 parameters now defined in frame.h and frame.c.
f63fd14e 7283 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7284 (check_x_display_info): Make non-static (for frame.c).
7285 (struct x_frame_parm_table, x_frame_parms): Remove.
7286 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7287 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7288 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7289 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7290 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7291 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7292 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7293 Remove. Use generic functions instead.
7294 (enum resource_types): Remove.
7295 (x_set_scroll_bar_default_width): New global function (for frame.c).
7296 (mac_frame_parm_handlers): New table for redisplay_interface.
7297 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 7298
e072891b
KS
7299 * macterm.c: Remove unnecessary extern declarations.
7300 (x_redisplay_interface): Add mac_frame_parm_handlers member.
7301
3e6a560b
KS
7302 * Makefile.in (frame.o): Add dependency on blockinput.h and files
7303 included from it (atimer.h and systime.h).
7304
7b7b454e
AS
73052003-03-30 Andreas Schwab <schwab@suse.de>
7306
7307 * xdisp.c (x_insert_glyphs): Fix swapped width and height
7308 parameters for shift_glyphs_for_insert.
7309
7310 * macterm.c (x_redisplay_interface): Add missing entry for
7311 draw_vertical_window_border.
7312
beb402de
KG
73132003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7314
7315 * fileio.c (Fexpand_file_name): In the no-handler case, after
7316 expanding, look again for a handler and invoke it. This is needed
7317 for filenames like "/foo/../user@host:/bar/../baz" -- the first
7318 expansion produces "/user@host:/bar/../baz" which needs to be
7319 expanded again for the finame result "/user@host:/baz".
7320
b676f356
JD
73212003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7322
7323 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
7324 of area to be redrawn for better performance.
7325
3c671a56
SM
73262003-03-28 Stefan Monnier <monnier@cs.yale.edu>
7327
7328 * xterm.c (take_vertical_position_into_account): Remove.
7329 (xt_action_hook): Call set_vertical_scroll_bar if needed.
7330 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
7331 (xm_scroll_callback, x_create_toolkit_scroll_bar)
7332 (x_set_toolkit_scroll_bar_thumb): Simplify.
7333 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
7334 (XTread_socket): Remove unused var.
7335 (x_make_frame_invisible): Replace goto with else.
7336
7337 * xdisp.c (set_vertical_scroll_bar): New fun.
7338 (redisplay_window): Use it.
7339
84f2e615
RS
73402003-03-26 Richard M. Stallman <rms@gnu.org>
7341
7342 * xdisp.c (update_tool_bar): Recompute tool bar if
7343 update_mode_lines is set. Set w->update_mode_line
7344 only if the tool bar contents actually change.
7345 (update_menu_bar): Undo previous change.
7346
70b6104c
JD
73472003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7348
5fd6f727
JD
7349 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
7350 (xg_frame_set_char_size): Calculate scroll bar width before frame
7351 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
7352 (xg_separator_p): Check for all documented separator types.
7353 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
7354 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
7355
70b6104c
JD
7356 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
7357 so tool bar gets updated.
7358
d9b36d19
SM
73592003-03-26 Stefan Monnier <monnier@cs.yale.edu>
7360
7361 * data.c (store_symval_forwarding): Re-instate part of the code
7362 that was deleted with too much enthusiasm.
7363
73642003-03-25 Stefan Monnier <monnier@cs.yale.edu>
7365
7366 * data.c (store_symval_forwarding): Delete special read-only
7367 hack for type == -1, since we now use ->constant instead.
7368 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
7369
7370 * buffer.c (overlays_in): Declare static.
7371 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
7372 `constant' field rather than the variable's `type' field.
7373
365fa1b3
AC
73742003-03-24 Andrew Choi <akochoi@shaw.ca>
7375
7376 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
7377
7378 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
7379
7380 * fns.c [MAC_OSX]: Do not redefine vector.
7381
7382 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
7383
7384 * macgui.h: Remove definition of No_Cursor.
7385
d9b36d19 7386 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
7387
7388 * xdisp.c: Define No_Cursor.
7389 (x_write_glyphs, notice_overwritten_cursor)
7390 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
7391 (note_mouse_highlight): Remove Mac-specific code.
7392 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 7393
c0bcce6f
JPW
73942003-03-24 John Paul Wallington <jpw@gnu.org>
7395
7396 * xdisp.c (redisplay_window): If mini window's buffer is not
7397 empty, then redisplay it like other windows.
7398
a526b96c
KS
73992003-03-23 Kim F. Storm <storm@cua.dk>
7400
7401 * w32term.c (w32_draw_window_cursor): Fix last change.
7402
37ab321e
KH
74032003-03-23 Kenichi Handa <handa@m17n.org>
7404
a526b96c
KS
7405 * alloc.c (make_string_from_bytes, make_specified_string):
7406 Add `const' for the arg CONTENTS.
37ab321e
KH
7407
7408 * lisp.h (make_string_from_bytes, make_specified_string):
7409 Prototypes adjusted.
7410
7863d625
JD
74112003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7412
a526b96c 7413 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 7414
7863d625
JD
7415 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
7416 (XG_SB_RANGE): New define.
7417
7418 * gtkutil.c (xg_fixed_handle_expose): New function.
7419 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
7420 expose events.
7421 (xg_update_scrollbar_pos): Take two more arguments, left and width
7422 of scroll bar including borders.
7423 Clear left and right part outside scroll bar separately as some
7424 themes have bars that are not an even number of pixels.
d9b36d19 7425 Don't set reallocate_redraws, don't call
7863d625
JD
7426 gdk_window_process_all_updates.
7427 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
7428 so no need to change it. Calculate size and value with XG_SB_RANGE.
7429
d9b36d19
SM
7430 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
7431 Pass left and width of scroll bar including borders to
7863d625
JD
7432 xg_update_scrollbar_pos.
7433
af0ad939
TTN
74342003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
7435
7436 * Makefile.in: Make sure space precedes end-of-line backslashes.
7437
b22139fd
KS
74382003-03-22 Kim F. Storm <storm@cua.dk>
7439
7440 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
7441 Add generic versions here. Remove system specific versions
7442 defined elsewhere.
7443
7444 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
7445 Add prototypes.
7446
6e6410cf
KS
7447 * xterm.h (STORE_NATIVE_RECT): New macro.
7448
5c9cc435
KS
74492003-03-21 Kim F. Storm <storm@cua.dk>
7450
00c64fab
SM
7451 * xdisp.c (get_glyph_string_clip_rect):
7452 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
7453
7454 * dispextern.h (struct redisplay_interface): Add active_p
7455 argument to draw_window_cursor member. All uses changed.
7456
acd37560
KS
74572003-03-21 Kim F. Storm <storm@cua.dk>
7458
7459 The following changes consolidate code related to writing and
7460 inserting glyphs, exposing frame, the tool bar, the mouse face,
7461 the output cursor, and help echo from xterm.c, w32term.c and
7462 macterm.c into xdisp.c. It also generalizes the use of the
7463 window_part enum instead of using numeric values throughout.
af0ad939 7464
acd37560
KS
7465 * xdisp.c: Consolidate gui-independent code here.
7466 Include keymap.h.
7467 (Qhelp_echo): Import.
7468 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
7469 (help_echo_string, help_echo_window, help_echo_object)
7470 (previous_help_echo_string, help_echo_pos): Declare here.
7471 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
7472 (estimate_mode_line_height): Define here. Handle windowing
7473 systems directly (without using estimate_mode_line_height_hook).
7474 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
7475 (update_window_cursor, update_cursor_in_window_tree)
7476 (fast_find_position, fast_find_string_pos)
7477 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
7478 (expose_area, expose_line, expose_overlaps, expose_window)
7479 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
7480 declared static as they are only used locally in xdisp.c.
7481 (draw_glyphs): Rename from x_draw_glyphs and make static.
7482 (tool_bar_item_info, notice_overwritten_cursor): Make static.
7483 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7484 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 7485 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
7486 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7487 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
7488 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
7489 (note_mouse_highlight, x_clear_window_mouse_face)
7490 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
7491 (x_intersect_rectangles): New generic functions for use by xdisp.c
7492 and GUI front-ends.
7493 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
7494 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
7495
7496 * dispextern.h (Display_Info): Generic typedef for *_display_info.
7497 (NativeRectangle): Generic typedef for rectangle type.
7498 (enum window_part): Move here from window.c.
7499 (struct redisplay_interface): New members flush_display_optional,
7500 define_frame_cursor, clear_frame_area, draw_window_cursor,
7501 draw_vertical_window_border, shift_glyphs_for_insert.
7502 Rename member clear_mouse_face to clear_window_mouse_face.
7503 (estimate_mode_line_height_hook): Remove hook.
7504 (auto_raise_tool_bar_buttons_p): Don't declare extern.
7505 (tool_bar_item_info): Remove prototype.
7506 (help_echo_string, help_echo_window, help_echo_object)
7507 (previous_help_echo_string, help_echo_pos)
7508 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
7509 (x_stretch_cursor_p, output_cursor): Declare extern.
7510 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
7511 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
7512 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7513 (display_and_set_cursor, set_output_cursor, x_cursor_to)
7514 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
7515 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7516 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
7517 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
7518 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
7519 Add prototypes.
7520 (mode_line_string, marginal_area_string): Fix prototypes.
7521
7522 * window.c (enum window_part): Move to dispextern.h.
7523 (coordinates_in_window): Use enum window_part member names
7524 instead of numbers to describe return value.
7525 (struct check_window_data): Change part member to window_part.
7526 (check_window_containing): Return window_part unaltered.
7527 (window_from_coordinates): Change part arg from int to enum
7528 window_part. Allow part arg to be null. All users changed.
7529
7530 * window.h (window_from_coordinates): Fix prototype.
7531
7532 * term.c (estimate_mode_line_height): Move to xdisp.c.
7533
7534 * keyboard.c (make_lispy_event): Use enum window_part.
7535
7536 * dispnew.c (mode_line_string, marginal_area_string): Use enum
7537 window_part instead of int in arg list. Users changed.
7538
7539 * xterm.h (No_Cursor): Declare as None for X.
7540 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 7541
acd37560
KS
7542 * xterm.c: Remove consolidated defines and code.
7543 (BETWEEN): Remove unused macro.
7544 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
7545 (x_define_frame_cursor, x_clear_frame_area)
7546 (x_draw_window_cursor): New X-specific functions for RIF.
7547 (x_redisplay_interface): Add new members.
7548
7549 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
7550
7551 * w32term.h (struct w32_output): Remove cross_cursor member.
7552
7553 * w32term.c: Remove consolidated defines and code.
7554 (BETWEEN): Remove unused macro.
7555 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
7556 (w32_define_frame_cursor, w32_clear_frame_area)
7557 (w32_draw_window_cursor): New W32-specific functions for RIF.
7558 (w32_redisplay_interface): Add new members.
7559
a64387ee 7560 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
7561 (XRectangle): Add X compatible rectangle type.
7562 (NativeRectangle): Declare as RECT for W32.
7563 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7564
7565 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
7566
7567 * w32console.c: Remove consolidated defines and code.
af0ad939 7568
acd37560
KS
7569 * msdos.h (Display_Info): Add generic typedef.
7570
7571 * msdos.c: Remove consolidated defines and code.
7572 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
7573
7574 * macterm.h (struct mac_output): Replace member cross_cursor by
7575 hand_cursor.
7576 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
7577
7578 * macterm.c: Remove consolidated defines and code.
7579 (BETWEEN): Remove unused macro.
7580 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
7581 (mac_define_frame_cursor, mac_clear_frame_area)
7582 (mac_draw_window_cursor): New Mac-specific functions for RIF.
7583 (x_redisplay_interface): Add new members.
7584
7585 * macgui.h (No_Cursor): Define as 0 for Mac.
7586 (XRectangle): Add X compatible rectangle type.
7587 (NativeRectangle): Declare as Rect for Mac.
7588 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7589
204ccab1
KS
7590 * macfns.c (x_set_mouse_color): Setup hand_cursor.
7591 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 7592
9443fcf6 7593 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
7594 included from it. Add dependency on keymap.h.
7595
7596 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
7597
8ba01a70 75982003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
7599
7600 * fileio.c (Fexpand_file_name): Fix previous change.
7601
8ba01a70 76022003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
7603
7604 * fileio.c (Ffile_name_directory): Reconstruct file name by
7605 make_specified_string.
7606 (Ffile_name_nondirectory, Ffile_name_as_directory)
7607 (Fdirectory_file_name, Fexpand_file_name)
7608 (Fsubstitute_in_file_name): Likewise.
7609 (Fread_file_name): Compare decoded homedir with DIR and
7610 DEFAULT_FILENAME.
7611
7612 * alloc.c (make_specified_string): If NCHARS is negative, count
7613 the number of characters.
7614
19536747
JD
76152003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7616
de38ae5a
JD
7617 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
7618 all widgets.
7619
19536747
JD
7620 * gtkutil.h: Removed xg_ignore_next_thumb.
7621
37ab321e 76222003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
7623
7624 * coding.c (Vchar_coding_system_table): Remove this variable.
7625 (Vcoding_system_safe_chars): New variable.
7626 (intersection): Remove this function.
7627 (find_safe_codings): Don't use Vchar_coding_system_table, but try
7628 all codings in SAFE_CODINGS.
00c64fab 7629 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
7630 find_safe_codings. Get generic coding systems from
7631 Vcoding_system_safe_chars.
7632 (Fdefine_coding_system_internal): New function.
7633 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
7634 Initialize and staticpro Vcoding_system_safe_chars.
7635
17097258
JD
76362003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7637
2a2071c3
JD
7638 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
7639 equal old values before updating.
7640
17097258
JD
7641 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
7642
7643 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
7644
76452003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7646
7647 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
7648 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
7649 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
7650 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
7651 (xg_create_scroll_bar): Pass bar to button event callback.
7652 (xg_find_top_left_in_fixed): New function.
7653 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
7654 whole scroll bar area. Get old position with
7655 xg_find_top_left_in_fixed, calculate and only clear needed areas.
7656 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
7657 dragging is in progress. Calculate whole as for Motif.
7658 Remove code that saved last values. Call gtk_range functions to
7659 set scroll bar sizes.
7660
7661 * gtkutil.h: Removed xg_ignore_next_thumb.
7662
8cb9dfbf
JB
76632003-03-17 Juanma Barranquero <lektu@terra.es>
7664
7665 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
7666 and files included from it.
7667
00c64fab
SM
76682003-03-18 Stefan Monnier <monnier@cs.yale.edu>
7669
7670 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
7671 multiple occurrences of the same keymap under different prefixes.
7672 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
7673
c45bb3b2
JR
76742003-03-16 Jason Rumney <jasonr@gnu.org>
7675
7676 * w32gui.h: Use HDC for Display.
7677
7678 * w32term.c (w32_encode_char): Prevent double-byte chars from
7679 crashing Emacs.
7680
7681 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
7682 as binary.
7683
2a6d0874
JB
76842003-03-16 Juanma Barranquero <lektu@terra.es>
7685
7686 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
7687
03eb5fab
KS
76882003-03-16 Kim F. Storm <storm@cua.dk>
7689
7690 The following changes consolidate some of the gui-independent
7691 parts of the processing and drawing of "glyph strings" from
7692 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 7693
03eb5fab
KS
7694 * dispextern.h (struct glyph): Reduce face_id member from 22 to
7695 21 bits (this reduces number of faces from 4M to 2M).
7696 Replace W32 specific w32_font_type member (2 bits) by generic
7697 font_type member (3 bits) for portability.
7698 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
7699 (enum draw_glyphs_face): Define here.
7700 (struct glyph_string): Define here. Merge W32 and X versions.
7701 (struct redisplay_interface): New members per_char_metric,
7702 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
7703 (VCENTER_BASELINE_OFFSET): Define here.
7704 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
7705 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
7706
7707 * xdisp.c: Consolidate gui-independent "glyph string" code here.
7708 (dump_glyph_string): Moved here.
7709 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
7710 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
7711 (fill_composite_glyph_string, fill_glyph_string)
7712 (fill_image_glyph_string, fill_stretch_glyph_string)
7713 (left_overwritten, left_overwriting, right_overwritten)
7714 (right_overwriting, get_char_face_and_encoding)
7715 (set_glyph_string_background_width, compute_overhangs_and_x)
7716 (append_glyph, append_composite_glyph, produce_image_glyph)
7717 (take_vertical_position_into_account, append_stretch_glyph)
7718 (produce_stretch_glyph): New generic functions (based on X version).
7719 Call platform specific functions through rif.
7720 (INIT_GLYPH_STRING): New macro, hides W32 details.
7721 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
7722 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
7723 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
7724 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
7725 (notice_overwritten_cursor):
7726 Generic functions exported to platform modules. Users changed.
7727
7728 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
7729 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
7730 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 7731 New macros for consolidated code.
2a6d0874 7732
03eb5fab
KS
7733 * xterm.c: Remove consolidated defines and code.
7734 (x_per_char_metric, x_encode_char)
7735 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
7736 (x_redisplay_interface): Add new members.
7737
7738 * w32gui.h (Display): Add dummy typedef for consolidation.
7739 (XChar2b): Define alias for wchar_t for consolidation.
7740 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7741
7742 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 7743 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
7744 New macros for consolidation.
7745
fad49844 7746 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
7747 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
7748 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
7749 (w32_per_char_metric): Change font_type arg to int for RIF.
7750 (w32_encode_char): Return int according to RIF requirements.
7751 (w32_compute_glyph_string_overhangs): Adapt to RIF.
7752 (w32_get_glyph_overhangs): New function for RIF. Uses generic
7753 x_get_glyph_overhangs.
7754 (w32_redisplay_interface): Add new members.
7755
7756 * macgui.h (XChar2b): Move typedef here for consolidation.
7757 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7758
7759 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
7760 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
7761 consolidation.
7762
7763 * macterm.c: Remove consolidated defines and code.
7764 (mac_per_char_metric): New function for RIF.
00c64fab 7765 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
7766 (mac_compute_glyph_string_overhangs): Adapt for RIF.
7767 (x_redisplay_interface): Add new members.
7768
00c64fab
SM
77692003-03-15 Stefan Monnier <monnier@cs.yale.edu>
7770
7771 * keymap.c (Vmenu_events): New var.
7772 (syms_of_keymap): Initialize it.
7773 (where_is_internal): Check more carefully what is a menu event.
7774
225c7a07
RS
77752003-03-14 Richard M. Stallman <rms@gnu.org>
7776
7777 * lread.c (read1): After #!, exit loop on eof.
7778
cea9be54
JD
77792003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7780
9ea0e54d
JD
7781 * gtkutil.h: Add declaration for xg_frame_cleared.
7782
0cb35f4e
JD
7783 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
7784
cea9be54
JD
7785 * gtkutil.c (struct xg_last_sb_pos): New structure.
7786 (handle_fixed_child): New function.
7787 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
7788 and force a redraw on them.
7789 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
7790 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
7791 so we can avoid unneeded redraws.
7792 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
7793 and force a redraw on the scroll bar.
7794 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
7795 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 7796 (xg_frame_cleared): New function.
cea9be54 7797
20b853f3
KH
77982003-03-13 Kenichi Handa <handa@m17n.org>
7799
7800 * coding.c (Fdetect_coding_region): Fix docstring.
7801 (Fdetect_coding_string): Fix docstring.
7802
7a555aff
AS
78032003-03-13 Andreas Schwab <schwab@suse.de>
7804
25cc0080
AS
7805 * gtkutil.c: Add prototype for create_menus.
7806
30225431
AS
7807 * data.c (long_to_cons): Fix type of top.
7808
7809 * xselect.c (selection_data_to_lisp_data): Use int instead of
7810 long for an integer of size 4.
7811
7a555aff 7812 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 7813 (xg_tool_bar_help_callback): Likewise.
7a555aff 7814
a3e4741f
AS
78152003-03-12 Andreas Schwab <schwab@suse.de>
7816
7817 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
7818
9668be7c
KS
78192003-03-12 Kim F. Storm <storm@cua.dk>
7820
03eb5fab 7821 The following changes consolidate the fringe handling from
9668be7c 7822 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 7823
9668be7c
KS
7824 * xdisp.c: Consolidate fringe handling code here.
7825 (left_bits, right_bits, continued_bits, continuation_bits)
7826 (ov_bits, zv_bits): Define fringe bitmaps.
7827 (fringe_bitmaps): New array holding fringe bitmaps.
7828 (draw_fringe_bitmap): Draw a specific bitmap; call display
7829 specific drawing routine via rif->draw_fringe_bitmap.
7830 (draw_row_fringe_bitmaps): Generic replacement for
7831 x_draw_row_fringe_bitmaps; all callers changed.
7832 (compute_fringe_widths): Generic replacement for
7833 x_compute_fringe_widths; all callers changed.
7834
7835 * dispextern.h (enum fringe_bitmap_type): Define here.
7836 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
7837 (fringe_bitmaps): Declare extern.
7838 (struct redisplay_interface): New member draw_fringe_bitmap.
7839 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
7840
7841 * xterm.c: Remove generic fringe code.
7842 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7843 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7844
7845 * w32term.c: Remove generic fringe code.
7846 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
7847 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 7848
9668be7c
KS
7849 * macterm.c: Remove generic fringe code.
7850 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7851 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7852
00a88f32
SM
78532003-03-11 Stefan Monnier <monnier@cs.yale.edu>
7854
7855 * print.c (Fprin1_to_string): Return unibyte string if possible.
7856
1d1de695
DK
78572003-03-09 David Kastrup <dak@gnu.org>
7858
7859 * process.c (read_process_output): We have allocated enough space
7860 for readmax and carryover, so actually use the alloted space.
7861
257f40f2
JD
78622003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7863
7864 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
7865 toolkit scrollbar click.
7866
7867 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
7868 for USE_GTK.
7869 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
7870 also.
7871 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
7872 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 7873
257f40f2
JD
7874 * gtkutil.h: Declare xg_get_scroll_id_for_window.
7875
7876 * gtkutil.c (xg_get_scroll_id_for_window): New function.
7877 (xg_tool_bar_item_expose_callback): New function.
7878 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
7879 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
7880 on the tool bar widget.
7881 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
7882 to expose on the tool bar item widgets.
7883
15213141
JD
78842003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7885
26b74a0b 7886 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 7887 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
7888 deleted from the image cache).
7889
15213141
JD
7890 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
7891 the event isn't for a frame (i.e. for dialogs).
7892
20b853f3 78932003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
7894
7895 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
7896 composition components reaches the limit, terminate composing.
7897 (COMPOSITION_OK): New macro.
00a88f32 7898 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
7899 composition is found.
7900 (coding_restore_composition): Adjust the number of composition
7901 components if it is not sane.
7902
c9029fe5
JB
79032003-03-06 Juanma Barranquero <lektu@terra.es>
7904
7905 * w32term.h (struct w32_display_info): Add xrdb member to support
7906 passing resources via -xrm on Windows.
7907
7908 * w32term.c (w32_make_rdb): New function.
7909 (w32_term_init): Use it to initialize xrdb member of w32_display_info
7910 struct. Delete leftover code.
7911
7912 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
7913 for resources passed on the command line.
7914
7915 * w32reg.c (w32_get_rdb_resource): New function.
7916 (x_get_string_resource): Use it, so resources passed with -xrm
7917 supercede the ones in the registry.
7918
9d00001f
JD
79192003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7920
7921 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
7922 instead of x_top_window_to_frame.
7923
ca2417b9
JD
79242003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7925
7926 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
7927 when restarting Emacs.
7928
5b20caf0
RS
79292003-03-03 Richard M. Stallman <rms@gnu.org>
7930
7931 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
7932 to run kill-buffer-query-functions.
7933 (Qkill_buffer_query_functions): New var.
7934 (syms_of_buffer): Init and staticpro it.
7935
58e91b77
JD
79362003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7937
7938 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
7939
932357b4
KS
79402003-02-25 Kim F. Storm <storm@cua.dk>
7941
7942 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
7943 If centering point failed to make whole line visible and vscroll
7944 is non-zero, disable vscroll and try centering point again.
7945
7946 * lread.c (read1): Accept `single space' syntax like (? x).
7947
bb8db7e1
JD
79482003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7949
7950 * keyboard.c (cancel_hourglass_unwind): Surround with
7951 #ifdef HAVE_X_WINDOWS
7952
47d77aab
KH
79532003-02-25 Kenichi Handa <handa@m17n.org>
7954
7955 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
7956 process only when "subprocesses" is defined.
7957
6a097c0c
SM
79582003-02-24 Stefan Monnier <monnier@cs.yale.edu>
7959
7960 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
7961
0b063c27
JB
79622003-02-24 Juanma Barranquero <lektu@terra.es>
7963
d1135afc
JB
7964 * callint.c (fix_command): Declare as static void and move before
7965 Fcall_interactively.
7966
0b063c27
JB
7967 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
7968 (syms_of_xdisp): Don't initialize Qwhen.
7969
0af912f0
JD
79702003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7971
7972 * keyboard.c (cancel_hourglass_unwind): New function.
7973 (command_loop_1): Cancel hourglass with unwind-protect.
7974
120d0a23
RS
79752003-02-23 Richard M. Stallman <rms@gnu.org>
7976
7977 * callint.c (fix_command): New subroutine, from Fcall_interactively.
7978 Detect (when ... (region-beginning)) etc.
7979 (Fcall_interactively): Call fix_command.
7980 (Qif, Qwhen): New variables.
7981 (syms_of_callint): Init and staticpro them.
0b063c27 7982
120d0a23
RS
7983 * regex.c (print_partial_compiled_pattern): Output to stderr.
7984
4ece81a6
KG
79852003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7986
7987 * dired.c (directory_files_internal): Don't expand directory.
7988 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7989 instead. From Lars Hansen <larsh@math.ku.dk>.
7990
e52bd6b7
SM
79912003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7992
7993 * fns.c (string_to_multibyte): Remove unused var i.
7994 (Flanginfo): Fix int/Lisp_Object mixup.
7995 (void_call2): New fun.
7996 (Fmap_char_table): Use it in place of call2.
7997
7998 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7999
8000 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
8001
8002 * keymap.c (copy_keymap_1): Make it static.
8003
8004 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
8005
c33ef7c4
JB
80062003-02-22 David Ponce <david@dponce.com>
8007
8008 * lread.c (Fload): Don't check STRING_MULTIBYTE.
8009
16782258
JD
80102003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8011
8012 * process.h: Removed subtty field from struct Lisp_Process.
8013
8014 * process.c (create_process): Remove setting of subtty.
8015 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
8016 (Fprocess_running_child_p, process_send_signal):
8017 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
8018 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
8019
3abeca61
KG
80202003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8021
8022 * keymap.c (Fdefine_key): Doc fix.
8023
92a8ce63
JB
80242003-02-21 Juanma Barranquero <lektu@terra.es>
8025
8026 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
8027
8028 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
8029 POLLING_PROBLEM_IN_SELECT.
8030
8031 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
8032 Delete #undef of POLLING_PROBLEM_IN_SELECT.
8033
8034 * s/hpux10-20.h: New file.
8035
e52bd6b7
SM
8036 * process.c (wait_reading_process_input):
8037 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 8038
20f1ef2e
KH
80392003-02-20 Kenichi Handa <handa@m17n.org>
8040
32d0a9dc
KH
8041 * fontset.c (check_fontset_name): If NAME is nil, return the
8042 default fontset.
8043 (override_font_info): New function.
e52bd6b7 8044 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
8045 (Ffontset_info): If FONTSET is not the default fontset, merge
8046 FONTSET onto the copy of the default fontset, and work on that
8047 copy. Document that NAME nil means the default fontset.
8048 (Ffontset_font): Document that NAME nil means the default fontset.
8049
20f1ef2e
KH
8050 * process.c (setup_process_coding_systems): If the process's
8051 in/out descriptor is -1, do nothing.
8052
77d1daf2
AS
80532003-02-19 Andreas Schwab <schwab@suse.de>
8054
e52bd6b7
SM
8055 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
8056 Add prototypes.
77d1daf2 8057
f9a45bb3
KH
80582003-02-19 Kenichi Handa <handa@m17n.org>
8059
8060 * xfaces.c (try_alternative_families): Try all scalable fonts if
8061 Vscalable_fonts_allowed is not Qt.
8062
72ecb43c
JD
80632003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8064
8065 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
8066
ee5be7c3
JD
80672003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8068
8069 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
8070 names.
8071
8072 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 8073 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
8074 x_face_list_fonts.
8075 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
8076 (Fx_list_fonts): Set maxnames to -1 to get all font names.
8077
4cd519a7
KS
80782003-02-18 Kim F. Storm <storm@cua.dk>
8079
068f9882
KS
8080 * lread.c (read1): Fix last change.
8081 "`" is not always special. Allow "?" after a character constant.
4cd519a7 8082
7290a344
AC
80832003-02-18 Andrew Choi <akochoi@shaw.ca>
8084
8085 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
8086
1f7fa69b
AS
80872003-02-18 Andreas Schwab <schwab@suse.de>
8088
8089 * window.c (window_scroll_pixel_based): Move outside a
8090 multi-glyph character before setting new window start.
8091
8092 * xdisp.c (in_display_vector_p): New function.
8093 * dispextern.h (in_display_vector_p): Declare.
8094
23e21195
KS
80952003-02-18 Kim F. Storm <storm@cua.dk>
8096
8097 * lread.c (read1): Fix and relax read syntax.
8098 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
8099 Only recognize "," after dotted-pair dot if inside backquote.
8100 Never include "`" or "," (inside backquote) in a symbol.
8101 Allow dotted-pair dot after a character constant.
8102 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 8103
f098b121
JD
81042003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8105
8106 * gtkutil.c (xg_tool_bar_expose_callback): New function.
8107 (xg_create_tool_bar): Force style of tool bar to be horizontal with
8108 icons. Set name of tool bar to emacs-toolbar.
8109 (update_frame_tool_bar): Connect expose event to
8110 xg_tool_bar_expose_callback.
8111
63020c46
RS
81122003-02-17 Richard M. Stallman <rms@gnu.org>
8113
8114 * keyboard.c (this_command_key_count_reset): New variable.
8115 Initiatize to 0 where this_command_key_count is set.
8116 (read_char): Save and restore this_command_key_count_reset
8117 around input method code.
8118 (read_char): If this_command_key_count_reset, echo reread commands.
8119 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
8120
fb4452cc
KH
81212003-02-17 Kenichi Handa <handa@m17n.org>
8122
8123 * fns.c (string_to_multibyte): Always return a multibyte string.
8124
bd11cc09
JR
81252003-02-16 Jason Rumney <jasonr@gnu.org>
8126
e52bd6b7
SM
8127 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
8128 Negative max_fonts parameter means list all.
bd11cc09 8129
4cdf4bde
DL
81302003-02-14 Dave Love <fx@gnu.org>
8131
8132 * fns.c (Flanginfo): Doc fix.
8133
023b93f6
KS
81342003-02-13 Kim F. Storm <storm@cua.dk>
8135
37cd4238
KS
8136 * lread.c (read_escape): Interpret \s as a SPACE character, except
8137 for \s-X in a character constant which still is the super modifier.
8138 (read1): Signal an `invalid read syntax' error if a character
8139 constant is immediately followed by a digit or symbol character.
8140
140a6b7e
KS
8141 * search.c (Fmatch_data): Doc fix. Explicitly state that
8142 match-data is undefined if last search failed.
8143
023b93f6
KS
8144 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
8145 All uses changed.
8146
7d5c86e5
JB
81472003-02-12 Juanma Barranquero <lektu@terra.es>
8148
8149 * eval.c (Fdefmacro): Fix typo.
8150
295fff2c
KS
81512003-02-12 Kim F. Storm <storm@cua.dk>
8152
8153 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
8154 macro is a string, convert meta modifiers in string when copying
8155 the string into a vector.
8156
60f3202d
KS
81572003-02-11 Kim F. Storm <storm@cua.dk>
8158
8159 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
8160
61cb0b53
KH
81612003-02-11 Kenichi Handa <handa@m17n.org>
8162
8163 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
8164
7392e23c
KS
81652003-02-10 Kim F. Storm <storm@cua.dk>
8166
8167 * process.c: Doc fixes.
8168 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
8169
ce4254bd
KH
81702003-02-10 Kenichi Handa <handa@m17n.org>
8171
9c7a329a
KH
8172 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
8173
ce4254bd
KH
8174 * process.c (QCfilter_multibyte): New variable.
8175 (setup_process_coding_systems): New function.
e52bd6b7
SM
8176 (Fset_process_buffer, Fset_process_filter):
8177 Call setup_process_coding_systems.
ce4254bd
KH
8178 (Fstart_process): Initialize the member `filter_multibyte' of
8179 struct Lisp_Process.
8180 (create_process): Call setup_process_coding_systems.
8181 (Fmake_network_process): New keyward `:filter-multibyte'.
8182 Initialize the member `filter_multibyte' of struct Lisp_Process.
8183 Call setup_process_coding_systems.
8184 (server_accept_connection): Call setup_process_coding_systems.
8185 (read_process_output): If the process has a filter, decide the
8186 multibyteness of a string to given to the filter by
8187 `filter_multibyte' member of the process. If the process doesn't
8188 have a filter and the result of conversion is unibyte, use
8189 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
8190 multibyte form.
8191 (Fset_process_coding_system): Call setup_process_coding_systems.
8192 (Fset_process_filter_multibyte): New function.
8193 (Fprocess_filter_multibyte_p): New function.
8194 (syms_of_process): Intern and staticpro QCfilter_multibyte.
8195 Defsubr Sset_process_filter_multibyte and
8196 Sprocess_filter_multibyte_p.
8197
8198 * process.h (struct Lisp_Process): New member filter_multibyte.
8199
8200 * lisp.h (setup_process_coding_systems): Add prototype.
8201
8202 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
8203 process, update coding systems for the process.
8204
b08d5f59
KH
82052003-02-09 Kenichi Handa <handa@m17n.org>
8206
8207 * fns.c (string_to_multibyte): New function.
8208 (Fstring_to_multibyte): New function.
8209 (syms_of_fns): Defsubr it.
8210
0dfd93c0
AS
82112003-02-08 Andreas Schwab <schwab@suse.de>
8212
8213 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
8214 instead of the substitution.
8215
7b76ca1c
JD
82162003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8217
8218 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
8219
8220 * xmenu.c (menu_position_func): Adjust menu popup position so that
8221 the menu is fully visible.
7b76ca1c 8222
2436a4e4
JD
82232003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8224
8225 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
8226 (x_make_frame_invisible, x_wm_set_icon_position):
8227 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
8228
8229 * xfns.c (x_set_name, x_set_title): Ditto.
8230
37d1e680
RS
82312003-02-04 Richard M. Stallman <rms@gnu.org>
8232
8233 * keyboard.c (echo_now): Update before_command_echo_length.
8234 (Freset_this_command_lengths): Reset this_command_key_count etc.
8235 immediately rather than arranging to do it later.
8236 (before_command_key_count_1, before_command_echo_length_1)
8237 (before_command_restore_flag): Vars deleted.
8238 (add_command_key): Don't handle before_command_restore_flag.
8239 (read_char, record_menu_key): Don't update before_command_key_count or
8240 before_command_echo_length.
8241 (read_char): Don't handle before_command_restore_flag.
8242
8243 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
8244 in direct-output clauses if it wouldn't be called in the ordinary case.
8245
578846a3
KS
82462003-02-04 Kim F. Storm <storm@cua.dk>
8247
8248 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
8249
49853a4d
JD
82502003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8251
8252 * gtkutil.c (remove_from_container): Copying list is not needed.
8253 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
8254 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
8255 on list returned from gtk_container_get_children to avoid memory leak.
8256
8b53dc06
JR
82572003-02-01 Jason Rumney <jasonr@gnu.org>
8258
5d54d177
JR
8259 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
8260 local malloc.
8261 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
8262 definitions in xpm.h.
8263 (init_xpm_functions): New function.
f63fd14e 8264 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
8265 (init_external_image_libraries): Try to load libXpm.dll.
8266
8b53dc06
JR
8267 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
8268 timestamp.
8269
b222e415
DL
82702003-01-31 Dave Love <fx@gnu.org>
8271
8272 * syntax.c (Fskip_chars_forward)
8273 (open-paren-in-column-0-is-defun-start): Doc fix.
8274
c60ee5e7
JB
82752003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
8276
8277 * fileio.c: Support // at start of name for Cygwin (just added proper
8278 preprocessor tests).
8279
8280 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
8281
8282 * Makefile.in: Use @EXEEXT@ for Cygwin.
8283
8284 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
8285
8286 * s/cygwin.h: Added for Cygwin port.
8287
53b37591
JB
82882003-01-31 Juanma Barranquero <lektu@terra.es>
8289
8290 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
8291 when including gif_lib.h.
fe929957 8292 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
8293 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
8294 Windows. Disable color table lookups. Call library functions
53b37591 8295 through pointers determined at runtime.
fe929957
JB
8296 (init_external_image_libraries): Try to load libungif.dll and
8297 libtiff.dll.
53b37591 8298
45415a8f
KH
82992003-01-31 Kenichi Handa <handa@m17n.org>
8300
8301 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 8302 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 8303
a97e4138
JD
83042003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8305
e52bd6b7 8306 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 8307
6eed9bed
DL
83082003-01-30 Dave Love <fx@gnu.org>
8309
8310 * alloc.c (Vgc_elapsed, gcs_done): New variables.
8311 (Fgarbage_collect): Use them.
8312 (init_alloc, syms_of_alloc): Set them up.
8313
100dcd40
JB
83142003-01-30 Juanma Barranquero <lektu@terra.es>
8315
8316 * w32fns.c (init_external_image_libraries): Add missing operator.
8317
fbd852af
JR
83182003-01-29 Jason Rumney <jasonr@gnu.org>
8319
8320 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
8321 an alternative name for jpeg.dll.
8322
8a2d8020
KH
83232003-01-29 Kenichi Handa <handa@m17n.org>
8324
8325 * xdisp.c (set_cursor_from_row): Pay attention to string display
8326 properties.
8327
058c18c7
AC
83282003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
8329
8330 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
8331 <escape>.
8332 (keycode_to_xkeysym_table): Reformat and add more comments.
8333 (XTread_socket): Drop special case for backspace.
8334
385f11cf
AC
83352003-01-28 Andrew Choi <akochoi@shaw.ca>
8336
8337 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
8338 values in old-style RGB specs.
8339
c922a224
JB
83402003-01-27 Juanma Barranquero <lektu@terra.es>
8341
8342 * w32fns.c (init_external_image_libraries): Try alternate names for the
8343 jpeg dll.
8344
0a1d6de0
JD
83452003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8346
8347 * gtkutil.c (create_dialog, xg_separator_p)
8348 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
8349 before calling strcmp or strlen.
8350
a97e4138 83512003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
8352
8353 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
8354 and handle image load failure.
8355
28908312
JR
83562003-01-26 Jason Rumney <jasonr@gnu.org>
8357
8358 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
8359 New functions.
f63fd14e
JB
8360 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
8361 Disable color table lookups. Call jpeg library functions
28908312
JR
8362 through pointers determined at runtime.
8363 (init_external_image_libraries): Try to load jpeg.dll.
8364
84e47416
RS
83652003-01-25 Richard M. Stallman <rms@gnu.org>
8366
8367 * lisp.h: Declare format2 instead of format1.
8368
8369 * fileio.c (barf_or_query_if_file_exists):
8370 Call format2 instead of format1.
8371
8372 * editfns.c (format2): New function, replaces format1
8373 but takes exactly two Lisp Objects as format args.
8374
8375 * buffer.c (Fkill_buffer): Call format2 instead of format1.
8376
a97e4138 83772003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
8378
8379 * xterm.h: Change to return value of x_dispatch_event to int.
8380
8381 * xterm.c (x_filter_event): New function.
8382 (event_handler_gdk, XTread_socket): Call x_filter_event.
8383 (x_dispatch_event): Change to return value of finish.
8384 (event_handler_gdk): Use return value from x_dispatch_event.
8385
8386 * xfns.c (x_window): Call create_frame_xic for GTK version to
8387 initialize input methods.
8388
8389 * gtkutil.h: Add (void) prototypes.
8390
8391 * gtkutil.c (create_menus): Remove code that puts the help menu to
8392 the right.
8393
54eefef1
JR
83942003-01-25 Jason Rumney <jasonr@gnu.org>
8395
8396 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
8397 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
8398 (png_load): Adjust colors for Windows. Use Windows
8399 bitmaps. Disable color table lookups.
c262430d
JR
8400 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
8401 (init_png_functions): New function.
8402 (png_read_from_memory, png_load): Call png library functions
8403 through pointers determined at runtime.
8404 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
8405 (init_external_image_libraries): New function.
8406 (init_xfns): Call it.
54eefef1 8407
1a9e275b
AS
84082003-01-24 Andreas Schwab <schwab@suse.de>
8409
8410 * minibuf.c (Fminibuffer_message): Verify type of parameter.
8411
a97e4138 84122003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
8413
8414 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
8415 of static initializer.
8416
422eec7e
DL
84172003-01-24 Dave Love <fx@gnu.org>
8418
8419 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
8420 architectures.
8421
8422 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
8423 Use __alignof__.
8424
2a026b04
KH
84252003-01-24 Kenichi Handa <handa@m17n.org>
8426
8427 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 8428 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
8429 (command_loop_1): Call adjust_point_for_property with proper
8430 second arg.
8431
a18bb28d
JR
84322003-01-22 Jason Rumney <jasonr@gnu.org>
8433
8434 Sync changes with xterm.c and xfns.c.
8435
8436 * w32term.c (x_draw_glyph_string_foreground)
8437 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8438
8439 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
8440 phys_cursor's hpos is overwritten. This is still not completely
8441 correct, as it doesn't really make sense to use hpos at all to
8442 get the cursor glyph (as that is relative to the width of the
8443 characters on the line, which may have changed during the update).
8444
8445 * w32term.c (notice_overwritten_cursor): Handle the special case
8446 of the cursor being in the first blank non-text line at the
8447 end of a window.
8448
8449 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
8450 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
8451 Compute from the x position returned by x_draw_glyphs.
8452
8453 (x_display_and_set_cursor): Don't set phys_cursor_width here,
8454 except for NO_CURSOR and system caret, to make phys_cursor_width
8455 contain what its name suggests.
8456 (notice_overwritten_cursor): Consider the cursor image erased if
8457 the output area intersects the cursor image in y-direction.
8458
6a097c0c
SM
8459 * w32term.c (note_mode_line_or_margin_highlight): Rename from
8460 note_mode_line_highlight and extend.
a18bb28d
JR
8461
8462 * w32term.c (last_window): New variable.
8463 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
8464 (note_mouse_movement): Remove reimplemented code in #if 0.
8465
8466 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
8467 not update_mode_lines, and always set it to 1.
8468
ac6e47ef
JR
84692003-01-21 Jason Rumney <jasonr@gnu.org>
8470
8471 * w32fns.c (IDC_HAND): Define it if system headers don't.
8472
84732003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8474
8475 * w32term.h (struct w32_output): New member hand_cursor.
8476 (WM_EMACS_SETCURSOR): New message definition.
8477
8478 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
8479 function w32_define_cursor.
8480 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
8481 position, change member name output_data.x to output_data.w32 and
8482 add function w32_define_cursor.
8483 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
8484 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
8485 (w32_initialize_display_info):
8486 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
8487
8488 * w32fns.c (Vx_hand_shape): New variable.
8489 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
8490 WM_EMACS_SETCURSOR.
8491 (x-create-frame): Setup Cursor types.
8492
ceb39a17
JB
84932003-01-21 David Ponce <david@dponce.com>
8494
ac6e47ef 8495 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 8496 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 8497 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 8498 2002-09-30.)
ac6e47ef
JR
8499 (w32_draw_relief_rect): Declare all args.
8500 (w32_define_cursor): New.
8501
8502 * w32fns.c (w32_load_cursor): New function.
8503 (w32_init_class): Use it.
8504 (x_put_x_image): Declare all args.
8505
b6189c3b 85062003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
8507
8508 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
8509
a97e4138 85102003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
8511
8512 * gtkutil.c: Must include stdio.h before termhooks.h
8513
83fc9c63
DL
85142003-01-21 Dave Love <fx@gnu.org>
8515
8516 * alloc.c (Fgc_status): Print zombie list.
8517 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8518 Fix assignment of zombies.
8519 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8520 Don't take car of non-cons.
8521
8522 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8523
8524 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8525
fe04b8c8
JR
85262003-01-20 David Ponce <david@dponce.com>
8527
8528 * w32menu.c (digest_single_submenu): Declare all args.
8529
8530 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
8531 changes in xmenu.c:
8532
8533 (parse_single_submenu): Use individual keymap's prompt
8534 string as pane name, if there is one.
8535 (set_frame_menubar): Save menu_items_n_panes from each call to
8536 parse_single_submenu and use it when calling digest_single_submenu.
8537
539e69a9
ST
85382003-01-20 Steven Tamm <steventamm@mac.com>
8539
8540 * macterm.c (XTread_socket): Checks for valid, visible window
8541 before sending a scroll-wheel event.
8542
675d000f
RS
85432003-01-20 Richard M. Stallman <rms@gnu.org>
8544
8545 * xdisp.c (redisplay_window): If mini window's buffer is not
8546 a minibuffer, then redisplay it like other windows.
8547
a97e4138 85482003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
8549
8550 * gtkutil.c (xg_create_frame_widgets): Check if there is an
8551 external tool bar before setting tool bar height.
8552
048addec
JD
85532003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8554
8555 * xterm.c (handle_one_xevent): Surround popup_activated
8556 with #ifdef:s for non-toolkit version.
8557
8558 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
8559 (gtkutil.o): New file.
8560 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
8561 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
8562
8563 * gtkutil.c: New file for GTK version.
8564
8565 * gtkutil.h: New file for GTK version.
8566
8567 * xterm.h: Add xt_or_gtk_widget.
8568 Include gtk files for USE_GTK.
8569 (struct x_output): Add toolbar_height.
8570 (struct x_output): Add GTK widgets and Gdk size_hints.
8571 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
8572 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
8573 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
8574
8575 * xterm.c: Include gtkutil.h for USE_GTK.
8576 Declare extern void free_frame_menubar for USE_GTK.
8577 (note_mouse_highlight): Check popup_activated for USE_GTK.
8578 (xt_action_hook): Don't compile if USE_GTK.
8579 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
8580 (xg_scroll_callback): New function.
8581 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
8582 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
8583 for USE_GTK.
8584 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
8585 xg_show_scroll_bar for USE_GTK.
8586 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
8587 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
8588 (event_handler_gdk): New function for USE_GTK.
8589 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
8590 (handle_one_xevent): Make sure widget is mapped before
8591 calling x_real_positions for USE_GTK.
8592 (XTread_socket): Add GTK event loop for USE_GTK.
8593 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
8594 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
8595 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
8596 (x_iconify_frame): Add code for USE_GTK.
8597 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
8598 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
8599 is in gtkutil.c.
8600 (x_term_init): Add initialization for GTK.
8601 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
8602
8603 * xmenu.c: Include gtkutil.h for USE_GTK.
8604 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
8605 (single_menu_item, single_menu_item, Fx_popup_dialog):
8606 Check for USE_GTK.
048addec
JD
8607 (popup_widget_loop): New function for USE_GTK.
8608 (x_activate_menubar): Add code for USE_GTK.
8609 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
8610 (menu_highlight_callback, menubar_selection_callback):
8611 Add USE_GTK versions.
048addec
JD
8612 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
8613 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
8614 (free_frame_menubar): Only compile if not USE_GTK. GTK version
8615 is in gtkutil.c.
8616 (popup_selection_callback): New version for USE_GTK.
8617 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 8618 one USE_X_TOOLKIT version.
048addec
JD
8619 (xmenu_show): Call create_and_show_popup_menu.
8620 (dialog_selection_callback): New version for USE_GTK.
8621 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 8622 one USE_X_TOOLKIT version.
048addec
JD
8623 (xdialog_show): Call create_and_show_dialog.
8624
8625 * xfns.c: Include gtkutil for USE_GTK.
8626 (x_window_to_frame, x_any_window_to_frame)
8627 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8628 (x_top_window_to_frame): Add code for USE_GTK.
8629 (x_set_background_color): Call xg_set_background_color for GTK.
8630 (x_set_menu_bar_lines): Check for USE_GTK.
8631 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
8632 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
8633 (x_window): Call xg_create_frame_widgets for USE_GTK.
8634 (Fx_create_frame): Check for USE_GTK
8635 (Fx_file_dialog): New implementation for USE_GTK.
8636
8637 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
8638 (update_menu_bar): Add check for USE_GTK.
8639 (update_tool_bar): Add check for USE_GTK and external tool bar.
8640 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
8641 (redisplay_internal): Add check for USE_GTK and popup_activated.
8642 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
8643 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
8644 (display_menu_bar): Add check for USE_GTK
8645
8646 * lisp.h: Declare Vx_resource_name extern.
8647
a64387ee 8648 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
8649 for USE_GTK.
8650 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
8651
8652 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
8653 (FRAME_EXTERNAL_TOOL_BAR): New macro.
8654 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
8655
8656 * fileio.c (Fread_file_name): Add check for USE_GTK.
8657
6bdb309a
SM
8658 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
8659 Add check for USE_GTK.
048addec
JD
8660
8661 * config.in: Added HAVE_GTK
8662
8663 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
8664
86652003-01-18 Stefan Monnier <monnier@cs.yale.edu>
8666
8667 * charset.h (Funibyte_char_to_multibyte): Export.
8668
86692003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8670
8671 * xmenu.c (mouse_position_for_popup): New function.
8672 (Fx_popup_menu): Call mouse_position_for_popup for X and
8673 mouse_position_hook for others.
8674
86752003-01-17 Kim F. Storm <storm@cua.dk>
8676
8677 * editfns.c (Finsert): Mention `string-make-multibyte' and
8678 `string-as-multibyte' in doc string.
8679
86802003-01-17 Kenichi Handa <handa@m17n.org>
8681
8682 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 8683
048addec
JD
8684 * editfns.c (Fformat): Convert an unibyte char argument that is
8685 formatted by "%c" to multibyte if the total result must be a
8686 multibyte string.
cd7df9c0 8687
048addec 86882003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 8689
048addec
JD
8690 * process.c (set-process-filter): Document unibyte/multibyte-ness
8691 of string argument.
56210ecd 8692
048addec 86932003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 8694
048addec 8695 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 8696
048addec
JD
8697 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
8698 (re_search_2): Likewise.
6df8b9fe 8699
048addec 87002003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 8701
048addec
JD
8702 * xdisp.c (message_dolog): Fix bug of the case that *Message*
8703 buffer is unibyte.
292ddc31 8704
048addec 87052003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 8706
048addec 8707 * fns.c (Fsubstring): Clarify doc string.
292ddc31 8708
048addec
JD
8709 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
8710 (Fprevious_char_property_change)
8711 (Fnext_single_char_property_change)
8712 (Fprevious_single_char_property_change, Fnext_property_change)
8713 (Fnext_single_property_change, Fprevious_property_change)
8714 (Fprevious_single_property_change, Fadd_text_properties)
8715 (Fput_text_property, Fset_text_properties)
8716 (Fremove_text_properties, Fremove_list_of_text_properties)
8717 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 8718
048addec 87192003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 8720
048addec
JD
8721 * process.h (struct Lisp_Process): New member plist replaces old
8722 member private_vars. All uses changed.
63e4e4c6 8723
048addec 8724 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 8725 (QCplist): Rename from QCvars. Change all uses.
048addec 8726 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 8727 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 8728 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 8729 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 8730
048addec 87312003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 8732
6bdb309a 8733 * m/delta.h: Remove (obsolete).
e833850f 8734
048addec 87352003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 8736
048addec
JD
8737 * fileio.c (Fdelete_directory, Fdelete_file): Document the
8738 behaviour in front of symlinks.
8739 (Fdelete_file): Raise an error on directories.
817cb127 8740
048addec 87412003-01-13 Dave Love <fx@gnu.org>
817cb127 8742
048addec 8743 * fns.c (Freverse): Use QUIT.
3e8cf2ea 8744
048addec 87452003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 8746
048addec
JD
8747 * minibuf.c (minibuffer_completion_contents):
8748 Error if point is inside prompt.
3e8cf2ea 8749
048addec
JD
8750 * keyboard.c (command_loop_1): Don't redisplay directly
8751 if there's a post-command-hook.
3e8cf2ea 8752
048addec
JD
8753 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
8754 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 8755
048addec 87562003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 8757
048addec 8758 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 8759
048addec
JD
8760 * process.c (QCvars): New variable.
8761 (syms_of_process): Intern and staticpro it.
8762 (Fset_process_contact): Removed function.
8763 (Fprocess_variable, Fset_process_variable): New functions.
8764 (syms_of_process): Defsubr them.
8765 (Fstart_process): Initialize private_vars plist to nil.
8766 (Fmake_network_process): New arg :vars to setup the private
8767 variables for new network process.
8768 (server_accept_connection): Copy server's private variables to
8769 client process.
2c10f029 8770
048addec
JD
8771 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
8772 crashes). Code rewritten and simplified. Now directly aligns the
8773 pointer and recalculates pure_bytes_used, rather than aligning the
8774 size and adjusting the pointer.
b8a76c6c 8775
048addec 87762003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 8777
048addec
JD
8778 * process.c (Fset_process_contact): New function.
8779 (syms_of_process): defsubr it.
8780 (make-network-process): Update doc.
3a8d0899 8781
048addec 87822003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 8783
048addec
JD
8784 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
8785 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 8786
048addec 87872003-01-10 Dave Love <fx@gnu.org>
4abc7470 8788
048addec 8789 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 8790
048addec 87912003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 8792
048addec
JD
8793 * process.c (Fmake_network_process): Convert new port number
8794 to host byte order for `:service t' case. From Mario Lang.
bf338245 8795
048addec 87962003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 8797
048addec
JD
8798 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
8799 instead of XtAppProcessEvent.
bf338245 8800
048addec
JD
8801 * xterm.c (handle_one_xevent): New function.
8802 (x_dispatch_event): New function.
8803 (XTread_socket): Call handle_one_xevent.
bf338245 8804
048addec 8805 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 8806
048addec
JD
8807 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
8808 call XQueryPointer to get coordinates.
8809 (popup_get_selection): Do not set popup_activated_flag to zero,
8810 let popup_deactivate_callback do that. Needed for Motif.
8811 Call x_dispatch_event instead of XtDispatchEvent.
8812 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 8813
048addec 88142003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 8815
6bdb309a 8816 * process.c (server_accept_connection): Fix recording of new
048addec
JD
8817 connection's local address in :local property of contact info.
8818 (Fmake_network_process): Record local network address for new
8819 client processes in :local property of contact info.
6bdb309a 8820 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 8821
048addec 88222003-01-07 Dave Love <fx@gnu.org>
00e3ab56 8823
048addec 8824 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 8825
048addec 88262003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 8827
048addec 8828 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 8829
048addec
JD
8830 * eval.c (Fuser_variable_p): Doc change. For custom variables,
8831 use the same test as for custom-variable-p.
8c6d74c6 8832
048addec 88332003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 8834
048addec
JD
8835 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
8836 Count LAST_LINE_MISFIT in scroll margin for end of window.
8837 Move label too_near_end before setting SCROLL_MARGIN_POS.
8838 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 8839
048addec
JD
8840 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
8841 scroll_conservatively case. If scrolling that much doesn't change
8842 STARTP, move it down one line.
e833850f 8843
048addec
JD
8844 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
8845 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 8846
048addec
JD
8847 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
8848 selected frame.
8c6d74c6 8849
048addec
JD
8850 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
8851 (syms_of_keymap): staticpro them.
8852 (Fapropos_internal): Initialize them and clear them out.
8853 Don't GCPRO them.
8c6d74c6 8854
048addec
JD
8855 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
8856 Doc fixes.
8c6d74c6 8857
048addec
JD
8858 * lisp.h: New misc type Lisp_Save_Value.
8859 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
8860 (XSAVE_VALUE): New macro.
8861 (struct Lisp_Save_Value): New data type.
8862 (union Lisp_Misc): Add u_save_value alternative.
8863 (make_save_value): Declared.
8c6d74c6 8864
048addec 8865 * alloc.c (make_save_value): New function.
8c6d74c6 8866
048addec
JD
8867 * xterm.c (x_catch_errors): Save dpy using make_save_value.
8868 (x_catch_errors_unwind): Call XSync.
8c6d74c6 8869
048addec 88702003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 8871
048addec 8872 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 8873
048addec
JD
8874 * keyboard.c (command_loop_1): Call adjust_point_for_property
8875 in direct action cases for Qforward_char and Qbackward_char.
8876 Set already_adjusted so it won't be done twice.
8c6d74c6 8877
b6189c3b 88782002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 8879
048addec
JD
8880 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
8881 type definition of size_t.
8c609cff 8882
048addec 88832003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 8884
048addec
JD
8885 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
8886 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 8887
048addec 88882002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 8889
048addec
JD
8890 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
8891 to default to t.
fa634a5e 8892
048addec 88932002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 8894
048addec 8895 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 8896
048addec 88972002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 8898
048addec
JD
8899 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
8900 allow building in a different directory than source. Uses some
8901 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 8902
048addec 89032002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 8904
048addec
JD
8905 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
8906 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
8907 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
8908 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 8909
048addec 89102002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 8911
048addec
JD
8912 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
8913 <scroll-down-aggressively>: Doc fix.
2155ecf3 8914
048addec
JD
8915 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
8916 string as pane name, if there is one.
8917 (set_frame_menubar): Save menu_items_n_panes from each call to
8918 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 8919
048addec
JD
8920 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
8921 Don't try to make last line fully visible if it is past end of window.
61f1d295 8922
048addec 89232002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 8924
048addec
JD
8925 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
8926 (mac_menu_show): Add support for hierarchical popup menus.
8927 (add_menu_item): Remove indentation support.
8928 (fill_submenu, fill_menu): Create hierarchical menus
8929 instead of using indentation.
0b17a217 8930
048addec 89312002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 8932
048addec
JD
8933 * xdisp.c (try_cursor_movement): Don't call try_window here.
8934 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 8935
048addec 8936 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 8937
048addec 89382002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 8939
048addec
JD
8940 * macterm.c (XTread_socket): Call KeyTranslate for control and
8941 meta to deal correctly shifted non-alpha characters, like C-S-5
8942 being treated like C-%. Does not look for shift key to deal
8943 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 8944
048addec 89452002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 8946
048addec
JD
8947 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
8948 If it is non-nil, run timers. Use an unwind-protect to requeue
8949 the events that were read ahead.
8950 (popup_get_selection_unwind): New subroutine.
8951 (popup_get_selection_queue): File-scope variable now holds that queue.
8952 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
8953 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
8954 Use an unwind-protect to pop down the dialog box.
8955 (xdialog_show_unwind): New subroutine implements that.
f02cac82 8956
048addec
JD
8957 * xdisp.c (row_containing_pos): Change exit test using last_y.
8958 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 8959
048addec
JD
8960 * lread.c (load_error_handler): New function.
8961 (Fload): Handle errors in Fsubstitute_in_file_name.
8962 Don't expect Fsignal to return.
f02cac82 8963
048addec
JD
8964 * eval.c: Errors and throws work right with interrupt blocking.
8965 (struct catchtag): New elt interrupt_input_blocked.
8966 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
8967 (internal_catch, Fcondition_case, internal_condition_case)
8968 (internal_condition_case_1, internal_condition_case_2): Save it.
8969 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 8970
048addec 8971 * editfns.c (Fformat): Add parens.
f02cac82 8972
048addec
JD
8973 * dired.c (file_name_completion): Fix that change.
8974 Delete special quit-handling code; just use QUIT.
f02cac82 8975
b6189c3b 89762002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 8977
048addec
JD
8978 * dired.c (file_name_completion): Close directory on error
8979 just as in directory_files_internal.
1a590729 8980
048addec 89812002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 8982
048addec
JD
8983 * window.c (Fset_window_configuration): Set old_point to correct
8984 value when new_current_buffer == current_buffer.
f02cac82 8985
048addec 89862002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 8987
048addec
JD
8988 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8989 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8990 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8991
048addec
JD
8992 These changes were in part based upon suggestions made by Peter
8993 'Luna' Runestig [peter@runestig.com].
9785d95b 8994
048addec
JD
8995 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8996 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8997 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8998 global variables.
9785d95b 8999
048addec
JD
9000 * w32.c (globals_of_w32): New function. Used to initialize those
9001 global variables that must always be initialized on startup even
9002 when the global variable initialized is non zero. Its primary
9003 purpose at this time is to set the global variables
9004 g_b_init_is_windows_9x, g_b_init_open_process_token,
9005 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
9006 g_b_init_get_sid_identifier_authority to 0 on startup.
9007 Called from main.
9785d95b 9008
048addec
JD
9009 * w32.c (is_windows_9x): Perform initialization only if
9010 g_b_init_is_windows_9x is equal to 0. On initialization set
9011 g_b_init_is_windows_9x equal to 1.
2308af15 9012
048addec
JD
9013 * w32.c (open_process_token): Perform initialization only if
9014 g_b_init_open_process_token is equal to 0. On initialization set
9015 g_b_init_open_process_token equal to 1.
2308af15 9016
048addec
JD
9017 * w32.c (get_token_information): Perform initialization only if
9018 g_b_init_get_token_information is equal to 0. On initialization
9019 set g_b_init_get_token_information equal to 1.
9785d95b 9020
048addec
JD
9021 * w32.c (lookup_account_sid): Perform initialization only if
9022 g_b_init_lookup_account_sid is equal to 0. On initialization
9023 set g_b_init_lookup_account_sid equal to 1.
9785d95b 9024
048addec
JD
9025 * w32.c (get_sid_identifier_authority): Perform initialization
9026 only if g_b_init_get_sid_identifier_authority is equal to 0.
9027 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 9028
f63fd14e 9029 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
9030 those global variables that must always be initialized on startup
9031 even when the global variable initialized is non zero.
9032 Its primary purpose at this time is to initialize the global variable
9033 track_mouse_event_fn.
9785d95b 9034
a64387ee 9035 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 9036 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 9037
048addec 9038 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 9039
f63fd14e 9040 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
9041 initialize those global variables that must always be initialized
9042 on startup even when the global variable initialized is non zero.
9043 Its primary purpose at this time is to initialize the global
9044 variables get_menu_item_info and set_menu_item_info.
9785d95b 9045
048addec
JD
9046 * w32menu.c (initialize_frame_menubar): Remove initialization of
9047 get_menu_item_info and set_menu_item_info.
9785d95b 9048
048addec 9049 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 9050
048addec
JD
9051 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
9052 Declare them.
9785d95b 9053
048addec
JD
9054 * emacs.c (main): Call globals_of_w32 prior to calling
9055 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
9056 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
9057 is defined.
9785d95b 9058
048addec
JD
9059 * w32term.c (x_update_window_begin): Fix Windows API error
9060 detected by BoundsChecker. Test to determine if
9061 w32_system_caret_hwnd is NULL prior to attempting to use
9062 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 9063
048addec
JD
9064 * w32term.c (x_update_window_end): Fix Windows API error
9065 detected by BoundsChecker. Test to determine if
9066 w32_system_caret_hwnd is NULL prior to attempting to use
9067 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 9068
048addec 90692002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 9070
048addec
JD
9071 * coding.c (coding_system_require_warning): New variable.
9072 (syms_of_coding): DEFVAR it.
b6da19ef 9073
048addec 9074 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 9075
048addec
JD
9076 * fileio.c (choose_write_coding_system): Even if
9077 Vcoding_system_for_write is non-nil, if
9078 coding_system_require_warning is nonzero, call
9079 Vselect_safe_coding_system_function.
bfcf6dbe 9080
048addec 90812002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 9082
048addec
JD
9083 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
9084 (lisp): Add font-core.
2c568af5 9085
048addec 90862002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 9087
048addec
JD
9088 * textprop.c (text_read_only): New arg `propval'.
9089 (get_char_property_and_overlay): Remove unused var `next_overlay'.
9090 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 9091
048addec 90922002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 9093
048addec 9094 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 9095
048addec 90962002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 9097
048addec
JD
9098 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
9099 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
9100 Be more careful about when help_events are generated.
96720f09 9101
048addec 91022002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 9103
048addec
JD
9104 * macterm.c (mac_check_for_quit_char): Correctly set the
9105 modifiers of the event to 0.
9106 * mac.c (sys_select): Duplicate rfds before calling select to
9107 ensure that rfds survive the while loop.
e5ae1c49 9108
048addec 91092002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 9110
048addec
JD
9111 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
9112 row_containing_pos returned NULL.
2eb46b2d 9113
048addec 91142002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 9115
6bdb309a 9116 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 9117 non-blocking.
6bdb309a 9118 (sys_select): Fix sys_select to not use a timeout larger than
048addec 9119 the one given.
b11f1d8a 9120
048addec 91212002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 9122
048addec 9123 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 9124
048addec 91252002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 9126
048addec
JD
9127 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
9128 as the last thing.
a4ac5b17 9129
048addec 91302002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 9131
048addec 9132 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 9133
048addec 91342002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 9135
048addec
JD
9136 * editfns.c (Fformat): Handle precision in string conversion
9137 specifiers like libc functions do (ie, print at most that many
9138 characters).
85cce843 9139
048addec 91402002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 9141
048addec
JD
9142 * xdisp.c (row_containing_pos): Check more carefully
9143 whether charpos is really in the row before returning it.
0d4d26a7 9144
048addec 91452002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 9146
048addec 9147 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 9148
048addec
JD
9149 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
9150 each stack frame. This may change as it could be time consuming.
0d4d26a7 9151
048addec
JD
9152 * macterm.c (mac_check_for_quit_char, quit_char_comp)
9153 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 9154 (mac_initialize): Add code to check for pressing of quit_char
048addec 9155 in the OS event queue.
b11f1d8a 9156
048addec
JD
9157 * mac.c (sys_select): Call mac_check_for_quit_char every second
9158 while blocking on select.
0d4d26a7 9159
048addec
JD
9160 * mac.c (sys_read): Use sys_select to test for input first
9161 before calling read, to allow C-g to break.
9252f7bc 9162
048addec 91632002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 9164
048addec 9165 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 9166
048addec 9167 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 9168
048addec 9169 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 9170
048addec
JD
9171 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
9172 autoload.
9252f7bc 9173
048addec 9174 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 9175
048addec 9176 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 9177
048addec 91782002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 9179
048addec 9180 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 9181
048addec 91822002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 9183
048addec 9184 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9185
048addec 9186 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9187
048addec 9188 * alloca.c: Don't use #error.
02d588e2 9189
048addec 91902002-12-03 Dave Love <fx@gnu.org>
02d588e2 9191
048addec
JD
9192 * buffer.c (Qucs_set_table_for_input): New.
9193 (Fget_buffer_create): Use it.
9194 (Qset_buffer_major_mode_hook): Deleted.
9195 (Fset_buffer_major_mode): Revert previous change.
9196 (init_buffer_once): Intern ucs-set-table-for-input.
9197 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
9198 Add &Qucs_set_table_for_input.
451e2697 9199
048addec 92002002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 9201
048addec
JD
9202 * callint.c (Fcall_interactively): Use next_event only if less
9203 than key_count.
72742a99 9204
048addec 92052002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 9206
048addec
JD
9207 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
9208 names to 255 characters.
72742a99 9209
048addec
JD
9210 * macterm.c (XTread_socket): If all frames have been collapsed,
9211 expand the first one before handling drag-and-drop events.
72742a99 9212
048addec
JD
9213 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
9214 which is detected by autoconf.
40e6ff95 9215
048addec 92162002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 9217
048addec
JD
9218 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
9219 offset in two hints table to allow prebinding to be redone and
9220 allow the executable to be stripped.
c02138c6 9221
048addec 92222002-11-29 Dave Love <fx@gnu.org>
c02138c6 9223
048addec
JD
9224 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
9225 already provided.
0e47bbf7 9226
048addec 92272002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 9228
048addec
JD
9229 * xdisp.c (start_display): Check more intelligently for
9230 whether the line is continued.
9231 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 9232
048addec 92332002-11-28 Dave Love <fx@gnu.org>
44129dcb 9234
048addec
JD
9235 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
9236 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 9237
048addec 92382002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 9239
048addec
JD
9240 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
9241 more descriptive error output from lread.c:Fload upon most require
9242 cycles during boostrapping.
1637fd2c 9243
048addec 92442002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 9245
048addec
JD
9246 * fileio.c (Finsert_file_contents): Give a more appropriate error
9247 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 9248
048addec
JD
9249 * dired.c (Ffile_attributes): Don't return negative file sizes for
9250 files bigger than 2Gb when off_t is 32 bit.
540c2788 9251
048addec 92522002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 9253
048addec 9254 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 9255
048addec
JD
9256 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
9257 Test GETPGRP_VOID instead.
9258 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 9259
048addec
JD
9260 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
9261 Don't define.
9262 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 9263
048addec 9264 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 9265
048addec 92662002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 9267
048addec
JD
9268 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
9269 supported.
4042a81a 9270
048addec 92712002-11-25 Dave Love <fx@gnu.org>
4042a81a 9272
048addec 9273 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 9274
048addec 9275 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 9276
048addec 92772002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 9278
048addec 9279 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 9280
048addec 92812002-11-24 Steven Tamm <steventamm@mac.com>
82122254 9282
048addec
JD
9283 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
9284 determine the size of pointers alloced in unexed space instead
9285 of using possibly invalid emacs_zone pointers. This fixes the
9286 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 9287
048addec 92882002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 9289
048addec 9290 * search.c (Fstring_match): Doc fix.
c1ee53bc 9291
048addec
JD
9292 * callint.c (Fcall_interactively): If a command fails because
9293 `*' detects a read-only buffer, but RECORD_FLAG is set,
9294 record it anyway if the args don't actually do tty input.
5598c32e 9295
048addec 92962002-11-22 Dave Love <fx@gnu.org>
5598c32e 9297
048addec 9298 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 9299
048addec
JD
9300 * keyboard.c (interrupt_signal): Provide forward declaration.
9301 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 9302
048addec 9303 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 9304
048addec 93052002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 9306
048addec
JD
9307 * eval.c (interactive_p): Skip any number of bytecode
9308 and special form frames, in any order.
516eea8e 9309
048addec 93102002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 9311
048addec
JD
9312 * w32fns.c (convert_mono_to_color_image): New function.
9313 (xbm_load, xbm_load_image): Use it when foreground or background
9314 is explicitly set.
04dbfa08 9315
048addec 93162002-11-19 Dave Love <fx@gnu.org>
04dbfa08 9317
048addec 9318 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 9319
048addec 93202002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 9321
048addec
JD
9322 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
9323 (XPutPixel): Swap blue and red.
9324 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
9325 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9326 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
9327 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 9328
048addec 93292002-11-18 Dave Love <fx@gnu.org>
d824beee 9330
048addec 9331 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 9332
048addec 9333 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 9334
048addec 9335 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 9336
048addec
JD
9337 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
9338 malloc, realloc, calloc.
d824beee 9339
048addec
JD
9340 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
9341 (bcmp): Don't define.
d824beee 9342
048addec 9343 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 9344
048addec 9345 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 9346
048addec 9347 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 9348
048addec 9349 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 9350
048addec
JD
9351 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
9352 Don't include alloca.h.
d824beee 9353
048addec 9354 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 9355
048addec 9356 * regex.c (_GNU_SOURCE): Don't define.
1998560a 9357
048addec 9358 * process.c (_GNU_SOURCE): Don't define.
1998560a 9359
048addec 9360 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 9361
048addec 93622002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 9363
048addec 9364 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 9365
048addec 93662002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 9367
048addec
JD
9368 * dispextern.h (struct face): Add `overstrike' field.
9369 * xterm.c (x_draw_glyph_string_foreground)
9370 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9371 * xfaces.c (load_face_font): Set `face->overstrike' based on
9372 result from choose_face_font.
9373 (best_matching_font, choose_face_font): Add `needs_overstrike'
9374 argument, and use it to return whether overstriking is desirable
9375 for this face/font combo.
9376 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 9377
048addec 93782002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 9379
048addec
JD
9380 This change is my fix for the following entry in etc/PROBLEMS:
9381 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9382 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 9383
048addec
JD
9384 * w32.c: Added wrapper functions around the win32 API functions
9385 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
9386 GetSidIdentifierAuthority. These wrapper functions serve two
9387 purposes:
9388 1. They ensure that the wrapped function can never be called
9389 when Emacs is running on an operating system on which they are
9390 not supported (Microsoft Windows 95 / 98 / ME).
9391 2. They call the wrapped functions via function pointers rather
9392 than calling them directly. This avoids taking advantage of the
9393 undocumented fact that although these functions are not supported
9394 in the 9x branch of Microsoft Windows, the functions do exist in
9395 the version of advapi32.dll that is found in the 9x branch of
9396 Microsoft Windows.
f60ae425 9397
6bdb309a 9398 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
9399 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
9400 and GetSidIdentifierAuthority with calls to the newly added
9401 wrapper functions.
f60ae425 9402
048addec
JD
9403 * w32.h: Added extern declarations for the following functions:
9404 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
9405 syms_of_w32menu, and void syms_of_fontset.
f60ae425 9406
6bdb309a 9407 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
9408 function pointer track_mouse_event_fn in the handler for the
9409 WM_SETFOCUS message.
3582b6a3 9410
6bdb309a 9411 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
9412 reinitialize the function pointers set_menu_item_info and
9413 get_menu_item_info.
f60ae425 9414
048addec 94152002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 9416
048addec
JD
9417 * sound.c: Added a partial implementation of play-sound-internal
9418 for Microsoft Windows. Added various #ifdef / #else / #endif
9419 code blocks to separate the code that will compile under
9420 Microsoft Windows from the code that is specific to Gnu/Linux.
9421 Moved several blocks of code around to make this separation of code
9422 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 9423
048addec 9424 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 9425
048addec
JD
9426 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
9427 added support for play-sound-internal under Windows would be
9428 included in the build of Emacs.
517f42a0 9429
048addec 94302002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 9431
048addec 9432 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 9433
048addec 9434 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 9435
048addec 94362002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 9437
048addec
JD
9438 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
9439 (adjust_point_for_property): Move out of display and invisible even if
9440 we were already inside before (in case a property was added while
9441 we weren't looking). Be more careful when handling invisible props.
9442 Skip invisible text as if it really wasn't there at all.
aab83f91 9443
048addec 94442002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 9445
048addec
JD
9446 * w32term.c (x_draw_image_foreground)
9447 (w32_draw_image_foreground_1): Use standard copy and invert
9448 operations to draw images.
aab83f91 9449
048addec
JD
9450 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
9451 depth of 1.
9452 (xbm_read_bitmap_data): Invert bits as xbm is read in.
9453 (XPutPixel): Don't invert bits here.
a4478a76 9454
048addec 94552002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 9456
048addec
JD
9457 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
9458 (w32_draw_image_foreground_1): Handle image masks.
9459 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 9460
048addec
JD
9461 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
9462 (x_from_xcolors): Adjust RGB values for W32.
9463 (image_background, image_background_transparent)
9464 (postprocess_image, x_to_xcolors, x_disable_image)
9465 (x_build_heuristic_mask): Adapt for W32 and enable.
9466 (x_create_x_image_and_pixmap): Mark images with palettes as such.
9467 (xbm_load): Remove unused variable.
03670a65 9468
048addec 94692002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 9470
048addec 9471 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 9472
048addec 94732002-11-14 Dave Love <fx@gnu.org>
59daa29a 9474
048addec 9475 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 9476
048addec
JD
9477 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
9478 * xmenu.c (unuse_menu_items, digest_single_submenu):
9479 * xfns.c (x_put_x_image):
9480 * xdisp.c (message2_nolog, set_message):
9481 * undo.c (record_point):
9482 * terminfo.c (tparam):
9483 * syntax.c (scan_sexps_forward):
9484 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9485 * composite.c (update_compositions):
9486 * cm.c (calccost, cmgoto):
9487 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 9488
048addec 9489 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 9490
048addec
JD
9491 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
9492 Don't declare.
59daa29a 9493
048addec 9494 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 9495
048addec
JD
9496 * fns.c (Fcopy_sequence): Doc fix.
9497 (Fmap_char_table): Cast `call2'.
3947677c 9498
048addec
JD
94992002-11-14 Francesco Potorti` <pot@gnu.org>
9500
9501 * s/sol2-8.h: New file.
9502
95032002-11-14 Kim F. Storm <storm@cua.dk>
9504
9505 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
9506 dependency on `risky-local-variable' and the :propertize form.
9507
95082002-11-12 Stefan Monnier <monnier@cs.yale.edu>
9509
9510 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
9511
9512 * syntax.c (scan_sexps_forward): Undo last patch.
9513 Use a more obvious fix: check eob before updating the syntax table.
9514
95152002-11-09 Stefan Monnier <monnier@cs.yale.edu>
9516
9517 * syntax.c (scan_sexps_forward): Update syntax table before reading
9518 a char rather than after so we don't update the table past eob.
9519
95202002-11-09 Dave Love <fx@gnu.org>
9521
9522 * buffer.c (Fset_buffer_major_mode): Fix last change.
9523
9524 * regex.c (regexec): Fix pmatch declaration.
9525
9526 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
9527
9528 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
9529 to self-inserting characters.
9530 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
9531
9532 * coding.c (Vtranslation_table_for_input): New.
9533 (syms_of_coding): DEFVAR it.
9534
95352002-11-08 Juanma Barranquero <lektu@terra.es>
9536
9537 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
9538 window.
9539
95402002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9541
6bdb309a 9542 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
9543 cp, and i.
9544
95452002-11-06 Dave Love <fx@gnu.org>
9546
9547 * buffer.c (Qset_buffer_major_mode_hook): New.
9548 (Fset_buffer_major_mode): Use it.
9549
95502002-11-06 Richard M. Stallman <rms@gnu.org>
9551
9552 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
9553 and stop_polling.
9554
9555 * process.c (wait_reading_process_input):
9556 Test POLLING_PROBLEM_IN_SELECT, not hpux.
9557 Avoid initialization for auto Lisp_Object var.
9558
9559 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
9560
9561 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
9562
95632002-11-05 Richard M. Stallman <rms@gnu.org>
9564
9565 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
9566
9567 * callint.c (Fcall_interactively): New local filter_specs.
9568 (Fcall_interactively): Check for progn as well as let.
9569 Add a gcpro.
9570 (Qprogn): New variable.
9571 (syms_of_callint): Staticpro and init Qprogn.
9572
95732002-11-04 John Paul Wallington <jpw@shootybangbang.com>
9574
9575 * lread.c (Feval_buffer): Doc fix.
9576
95772002-11-04 Dave Love <fx@gnu.org>
9578
9579 * keyboard.c (read_char): Always translate iff
9580 Vkeyboard_translate_table is a char table and c is valid.
9581
9582 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9583 and fix C types.
9584
95852002-11-03 Stefan Monnier <monnier@cs.yale.edu>
9586
9587 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
9588
9589 * editfns.c (get_pos_property): Don't hardcode Qfield.
9590
9591 * keyboard.c (adjust_point_for_property): Handle `display' prop on
9592 overlays. Also handle `invisible' prop.
9593
95942002-11-02 Stefan Monnier <monnier@cs.yale.edu>
9595
9596 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
9597 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
9598
95992002-11-01 Andreas Schwab <schwab@suse.de>
9600
9601 * editfns.c (Fmessage): Revert last change to properly handle %%.
9602
96032002-11-01 Stefan Monnier <monnier@cs.yale.edu>
9604
9605 * xmenu.c (unuse_menu_items): New fun.
9606 (menu_items_inuse): New var.
9607 (syms_of_xmenu): Initialize it.
9608 (init_menu_items): Use it to detect re-entrance.
9609 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
9610 (Fx_popup_menu): Remove spurious XSETFRAME.
9611
9612 * editfns.c (find_field): Make an exception for nil fields.
9613
96142002-11-01 Dave Love <fx@gnu.org>
9615
9616 * m/gec63.h: Deleted.
9617
96182002-10-31 Dave Love <fx@gnu.org>
9619
9620 * xterm.c (XTread_socket): Fix last change.
9621 (xaw_scroll_callback): Cast call_data to long to avoid warning.
9622
96232002-10-31 Stefan Monnier <monnier@cs.yale.edu>
9624
9625 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
9626
96272002-10-30 Stefan Monnier <monnier@cs.yale.edu>
9628
9629 * editfns.c (overlays_around, get_pos_property): New funs.
9630 (find_field): Use them.
9631 Also be careful not to modify POS before its last use.
9632 (Fmessage): Don't Fformat if there's nothing to format.
9633
96342002-10-30 Dave Love <fx@gnu.org>
9635
9636 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
9637 [HAVE_PTY_H]; Include pty.h.
9638
9639 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
9640
9641 * xterm.c (Qeql): Declare.
9642 (Vx_keysym_table): New.
9643 (syms_of_xterm): Initialize it.
9644 (XTread_socket): Use it. Deal with ASCII keysyms.
9645 (XSetIMValues) [HAVE_X11R6]: Prototype.
9646
9647 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
9648 (lispy_kana_keys): Comment out.
9649 (make_lispy_event) [XK_kana_A]: Comment out.
9650 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
9651 Fix sprintf call.
9652
9653 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
9654 regexp.h change).
9655 (TERMINFO, LIBS_TERMCAP): Define.
9656
9657 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
9658 (bcmp): Define conditional on HAVE_BCMP.
9659 (NO_SIOCTL_H): Don't define.
9660 (TIOCSIGSEND): Don't make conditional on IRIX6.
9661
9662 * s/sol2-5.h: Don't include strings.h.
9663 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
9664
9665 * s/irix6-0.h (IRIX6): Don't define.
9666 (bcopy, bcmp, bzero): Don't undef.
9667
9668 * s/irix6-5.h: Don't include strings.h.
9669 (IRIX6): Don't define.
9670 (bcopy, bcmp, bzero): Don't undef.
9671
9672 * syntax.c (Fforward_comment): Doc fix.
9673
96742002-10-29 Kim F. Storm <storm@cua.dk>
9675
9676 * process.c (Fsignal_process): Allow PROCESS to be specified by
9677 name in addition to pid (as integer or string).
9678
96792002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
9680
9681 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
9682 environments.
9683
96842002-10-27 Kim F. Storm <storm@cua.dk>
9685
9686 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9687
9688 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
9689
9690 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
9691
9692 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9693
96942002-10-26 Richard M. Stallman <rms@gnu.org>
9695
9696 * editfns.c (Fformat): Detect invalid format letters for floats.
9697
96982002-10-25 Kenichi Handa <handa@m17n.org>
9699
9700 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
9701 (x_set_title): Likewise.
9702
97032002-10-25 Juanma Barranquero <lektu@terra.es>
9704
9705 * macgui.h:
9706 * w32gui.h: Remove definition of XColor.
9707
9708 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
9709
97102002-10-24 Kim F. Storm <storm@cua.dk>
9711
9712 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
9713 Callers changed (supply dummy arg).
9714
9715 * lisp.h (get_window_cursor_type): Update prototype.
9716
9717 * w32term.c (x_display_and_set_cursor): Get active_cursor from
9718 get_window_cursor_type to track system caret.
9719
97202002-10-24 Kim F. Storm <storm@cua.dk>
9721
9722 * process.c (Fformat_network_address): New function.
9723 (syms_of_process): Defsubr it.
9724 (list_processes_1): Use it to format :local/:remote address if
f9711de4 9725 service/host is not set; before Emacs would crash in that case.
048addec
JD
9726 (Fmake_network_process): Don't use Ffind_operation_coding_system
9727 to setup coding system if host or service is not set.
9728
97292002-10-23 Juanma Barranquero <lektu@terra.es>
9730
9731 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
9732
9733 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
9734 COLORREF.
9735
9736 * macgui.h:
9737 * w32gui.h: Add definition of XColor.
9738
9739 * macfns.c:
9740 * w32fns.c:
9741 * xfaces.c: Remove definition of XColor.
9742
97432002-10-22 Stefan Monnier <monnier@cs.yale.edu>
9744
9745 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
9746
9747 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
9748 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
9749 window if it is dedicated.
9750 (Fshrink_window): Add preserve_before as was done for enlarge_window.
9751 (Vspecial_display_function): Update docstring.
9752
9753 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
9754 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
9755 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
9756
97572002-10-21 Stefan Monnier <monnier@cs.yale.edu>
9758
9759 * casefiddle.c (casify_region): Don't treat a prefix char as part
9760 of a word when at the beginning.
9761
97622002-10-17 Juanma Barranquero <lektu@terra.es>
9763
9764 * lread.c (syms_of_lread): Fix typos.
9765
97662002-10-17 Dave Love <fx@gnu.org>
9767
9768 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
9769
97702002-10-16 Richard M. Stallman <rms@gnu.org>
9771
9772 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
9773
97742002-10-14 Juanma Barranquero <lektu@terra.es>
9775
9776 * w16select.c (syms_of_win16select): Fix docstring for
9777 `selection-coding-system'.
9778
9779 * w32select.c (syms_of_w32select): Likewise.
9780
97812002-10-14 Stefan Monnier <monnier@cs.yale.edu>
9782
9783 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
9784 a backslash-quoted char.
9785 (scan_lists, scan_sexps_forward): Pacify the compiler.
9786
97872002-10-13 Richard M. Stallman <rms@gnu.org>
9788
9789 * window.c (window_scroll): Set immediate_quit.
9790
9791 * print.c (print): When backquote form is the car of a list,
9792 output in old style. Use old_backquote_output to output all
9793 comma forms inside it in old style too.
9794
9795 * buffer.h (struct buffer): Move `undo_list' down below `name'.
9796
97972002-10-11 Markus Rost <rost@math.ohio-state.edu>
9798
9799 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
9800 batch mode).
9801
9802 * lread.c (Fload): Doc fix (load-suffixes).
9803
98042002-10-10 Steven Tamm <steventamm@mac.com>
9805
9806 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
9807 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
9808 Also switch the default to Qnil from Qt.
9809
98102002-10-08 Kenichi Handa <handa@m17n.org>
9811
9812 * coding.c (code_convert_region): When we need more GAP for
9813 conversion, pay attention to the case that coding->produced is not
9814 greater than coding->consumed.
9815
98162002-10-07 Richard M. Stallman <rms@gnu.org>
9817
9818 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
9819
98202002-10-06 Andrew Choi <akochoi@shaw.ca>
9821
9822 * macmenu.c (mac_menu_show): Add j to count menu items; match
9823 menu_item_selection to it to find selected item.
9824
98252002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9826
9827 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
9828 cases. The correct fix is to pass ReparentNotify to Xt.
9829 The shell widget interprets ConfigureNotify differently depending
9830 on if it has been reparented or not.
9831
98322002-10-05 Markus Rost <rost@math.ohio-state.edu>
9833
9834 * editfns.c (Fformat_time_string): Doc fix.
9835
98362002-10-05 John Paul Wallington <jpw@shootybangbang.com>
9837
9838 * fns.c (Flength): Doc fix.
9839
98402002-10-04 Stefan Monnier <monnier@cs.yale.edu>
9841
9842 * keyboard.c (keyremap): New struct.
9843 (read_key_sequence): Use it: globally replace keytran_foo with
9844 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
9845 keytran_next and fkey_next to just `next'.
9846
98472002-10-04 Steven Tamm <steventamm@mac.com>
9848
9849 * macterm.c (keycode_to_xkeysym_table): Change return to be
9850 treated like an X keysym.
9851
98522002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9853
9854 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
9855 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
9856 This is to also handle x/y changes that occur because of a resize.
9857
98582002-10-02 John Paul Wallington <jpw@shootybangbang.com>
9859
9860 * frame.c (Vdelete_frame_functions): New variable.
9861 (syms_of_frame): Initialize and defvar it.
9862 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
9863 it when frame's `tooltip' parameter is non-nil.
9864
9865 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
9866
9867 * w32fns.c (x_create_tip_frame): Likewise.
9868
9869 * macfns.c (x_create_tip_frame): Likewise.
9870
98712002-09-30 Kenichi Handa <handa@m17n.org>
9872
9873 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
9874 -1 before calling ccl_driver.
9875
9876 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
9877 Only when it is non-nil, handle composition sequence.
9878 (setup_coding_system) <0>: Don't force composition handling.
9879
9880 * Makefile.in (lisp, shortlisp): Add utf-16.elc
9881
98822002-09-29 Richard M. Stallman <rms@gnu.org>
9883
9884 * search.c (Freplace_match): Adjust match data for the substitution
9885 just made in the buffer.
9886
9887 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
9888 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
9889
98902002-09-27 Richard M. Stallman <rms@gnu.org>
9891
9892 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
9893 (read_char): Use them. Do all exits thru the end of the function.
9894
98952002-09-27 Kenichi Handa <handa@etl.go.jp>
9896
9897 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
9898 is nil.
9899
99002002-09-26 Richard M. Stallman <rms@gnu.org>
9901
9902 * regex.h (__restrict_arr): Don't define if already defined.
9903
9904 * coding.c (run_pre_post_conversion_on_str):
9905 Save and restore Vdeactivate_mark.
9906
99072002-09-26 John Paul Wallington <jpw@shootybangbang.com>
9908
9909 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
9910
99112002-09-26 Kenichi Handa <handa@etl.go.jp>
9912
9913 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
9914 nonzero, try face's family at first. Otherwise try FAMILY at first.
9915 (choose_face_font): If C is a single byte char or latin-1, call
9916 try_font_list with PREFER_FACE_FAMILY 1.
9917
99182002-09-21 Richard M. Stallman <rms@gnu.org>
9919
9920 * window.c (select_window_1): Don't select frame.
9921 Set frame's selected window only when frame itself is selected.
9922 (Fselect_window): Doc fix.
9923
99242002-09-18 Kim F. Storm <storm@cua.dk>
9925
9926 * process.c (make-network-process): Doc fix (there is no
9927 network-server-log-function hook).
9928
99292002-09-18 Richard M. Stallman <rms@gnu.org>
9930
9931 * print.c (print): Clear out the unused parts of Vprint_number_table.
9932 (syms_of_print): Doc fix for `print-number-table'.
9933
9934 * unexelf.c (unexec): Undo previous change.
9935
99362002-09-17 Andreas Schwab <schwab@suse.de>
9937
9938 * m/alpha.h [LINUX]: Don't define DATA_START.
9939
99402002-09-16 Dave Love <fx@gnu.org>
9941
9942 * unexelf.c (unexec): Deal with .got, reinstating change from
9943 25-08-1999.
9944
99452002-09-13 Richard M. Stallman <rms@gnu.org>
9946
9947 * s/sol2-6.h (UNEXEC): Comment out definition.
9948
9949 * unexsol.c (unexec): Don't downcase first letter of error msg.
9950
9951 * xfaces.c (Fcolor_supported_p): Just one arg is required.
9952
99532002-09-12 Markus Rost <rost@math.ohio-state.edu>
9954
9955 * unexsol.c: Include buffer.h, charset.h, coding.h.
9956
99572002-09-11 Richard M. Stallman <rms@gnu.org>
9958
9959 * unexsol.c: Don't use report_file_error; do it by hand
9960 using dlerror.
9961
9962 * process.c (wait_reading_process_input, both versions):
9963 Before calling turn_on_atimers, call stop_polling.
9964
9965 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
9966
9967 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
9968 we go to too_near_end, call clear_glyph_matrix.
9969 (redisplay_window): After make_cursor_line_fully_visible,
9970 call clear_glyph_matrix and bypass `goto done'.
9971
9972 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
9973 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
9974
99752002-09-10 Richard M. Stallman <rms@gnu.org>
9976
9977 * fileio.c (Fdo_auto_save): Catch error making directory.
9978 Only call push_message if we need to.
9979 At the same time, make an unwind-protect to pop it.
9980 Rename local message_p to old_message_p.
9981 (do_auto_save_make_dir, do_auto_save_eh): New functions.
9982 (do_auto_save_unwind): Don't call pop_message.
9983
9984 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
9985
9986 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
9987
9988 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9989
9990 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9991
99922002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9993
9994 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9995 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9996 (re_match_2_internal): Be more careful with infinite loops.
9997
99982002-09-10 Kim F. Storm <storm@cua.dk>
9999
10000 * macros.c (end_kbd_macro): New function.
10001 (Fend_kbd_macro): Use it.
10002
10003 * macros.h (end_kbd_macro): Declare extern.
10004
10005 * keyboard.c (Fdiscard_input): If defining keyboard macro,
10006 end and save it instead of discarding it.
10007
100082002-09-09 Markus Rost <rost@math.ohio-state.edu>
10009
10010 * s/sol2-6.h: Fix typo. Add comment.
10011
100122002-09-09 Richard M. Stallman <rms@gnu.org>
10013
10014 * regex.c (regnum_t): Use signed int, not unsigned int.
10015
10016 * s/sol2-6.h: New file.
10017
10018 * s/sol2-5.h (UNEXEC): Definition deleted.
10019
100202002-09-08 Kim F. Storm <storm@cua.dk>
10021
10022 * macros.c (executing_macro_index): Change type to EMACS_INT.
10023 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
10024
10025 * macros.h (executing_macro_index): Change type to EMACS_INT.
10026
100272002-09-06 Richard M. Stallman <rms@gnu.org>
10028
10029 * casetab.c (set_case_table): Make canon table point to eqv table.
10030
100312002-09-06 Juanma Barranquero <lektu@terra.es>
10032
10033 * coding.c (syms_of_coding): Fix spacing.
10034
10035 * composite.c (Fcompose_region_internal)
10036 (Fcompose_string_internal): Likewise.
10037
10038 * data.c (Flsh): Likewise.
10039
10040 * fontset.c (Fset_fontset_font): Likewise.
10041
10042 * macfns.c (Fx_server_max_request_size): Likewise.
10043
10044 * w16select.c (syms_of_win16select): Likewise.
10045
10046 * w32select.c (syms_of_w32select): Likewise.
10047
10048 * xselect.c (syms_of_xselect): Likewise.
10049
100502002-09-05 Richard M. Stallman <rms@gnu.org>
10051
10052 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
10053 call EXTEND_RANGE_TABLE and return a proper value.
10054 (set_image_of_range): Don't call set_image_of_range_1
10055 if no TRANSLATE or if range includes all of Latin-1.
10056 Only call it for the Latin-1 part of the range.
10057 For other cases, make two separate ranges,
10058 one for the original specified characters and one for
10059 their case-conversions.
10060
100612002-09-04 Richard M. Stallman <rms@gnu.org>
10062
10063 * s/sol2-5.h (UNEXEC): Use unexsol.o.
10064
10065 * window.c (displayed_window_lines): Correct for one-off bug
10066 in HEIGHT on non-window displays.
10067
10068 * regex.c (set_image_of_range_1): New function.
10069 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
10070 Return a value to indicate running out of memory.
10071 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
10072 (extend_range_table_work_area): New subroutine.
10073 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
10074 Different calling conventions, and used from set_image_of_range{,_1}.
10075 (IMMEDIATE_QUIT_CHECK): Definitions moved.
10076
100772002-09-04 Juanma Barranquero <lektu@terra.es>
10078
10079 * makefile.w32-in: All dependencies updated.
10080
100812002-09-01 Richard M. Stallman <rms@gnu.org>
10082
10083 * unexsol.c: New file.
10084
10085 * xfns.c (Qbox): Declare external, don't define.
10086
10087 * xdisp.c (redisplay_window) <force-start case>:
10088 If point is on semi-visible last line, reposition
10089 it at previous line.
10090
10091 * alloc.c (display_malloc_warning): Use display-warning.
10092 (malloc_warning_1): Function deleted.
10093
10094 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
10095
10096 * lread.c (read1): Handle #! by skipping the line.
10097
100982002-08-31 Richard M. Stallman <rms@gnu.org>
10099
10100 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
10101 Don't include LDFLAGS.
10102 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
10103
101042002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
10105
10106 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
10107 member of x_display_info unless we compile for some window system.
10108
101092002-08-31 Kim F. Storm <storm@cua.dk>
10110
10111 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
10112 (get_window_cursor_type): Don't use them.
10113 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
10114
101152002-08-30 Kenichi Handa <handa@etl.go.jp>
10116
10117 * xdisp.c (get_next_display_element): Fix previous change.
10118
101192002-08-30 Andrew Choi <akochoi@shaw.ca>
10120
10121 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
10122 (expose_window): Use it to fix the display of overlapping
10123 rows (merge code from xterm.c).
10124
10125 * macfns.c (Qbox): Add extern declaration.
10126
101272002-08-30 Juanma Barranquero <lektu@terra.es>
10128
10129 * w32fns.c (Qbox): Make extern.
10130 (syms_of_w32fns): Remove initialization of Qbox.
10131
101322002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
10133
10134 * xfns.c (Fx_open_connection): Fix error message.
10135
101362002-08-30 Kim F. Storm <storm@cua.dk>
10137
10138 The following changes consolidates the handling of the cursor
10139 type in xdisp.c, moving duplicate code and functionality from
10140 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
10141
10142 * frame.h (enum text_cursor_kinds): Consolidated here.
10143 Added DEFAULT_CURSOR value.
10144 (struct frame) <desired_cursor, cursor_width>
10145 <blink_off_cursor, blink_off_cursor_width>: New fields.
10146 Consolidated from output_x, output_w32 and output_mac structs.
10147 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10148 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
10149
10150 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
10151 Variables consolidated here.
10152 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
10153 (Vcursor_in_non_selected_windows): Renamed from
10154 cursor_in_non_selected_windows and changed to Lisp_Object.
10155 (syms_of_xdisp): Define and staticpro new and moved variables.
10156 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
10157 consolidated here. Recognize Qhollow setting.
10158 (set_frame_cursor_types): New function to set frame cursor types
10159 based on the frame parameters.
10160 (get_window_cursor_type): New function to calculate new cursor
10161 type and width for the specified window. Based on duplicated
10162 code consolidated here.
10163 Enhancements: cursor-in-non-selected-windows may be a cursor type,
10164 check buffer-local alternate-cursor-type and blink-cursor-alist
10165 before using built-in blink off methods.
10166
10167 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
10168
10169 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
10170 (get_specified_cursor_type, get_window_cursor_type)
10171 (set_frame_cursor_types): Added prototypes.
10172
10173 * macfns.c (x_specified_cursor_type): Removed.
10174 (x_set_cursor_type): Use set_frame_cursor_types.
10175 (Qbar, Qbox): Removed.
10176 (syms_of_macfns): Don't intern or staticpro them.
10177
10178 * macterm.c (x_specified_cursor_type): Remove prototype.
10179 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10180 (x_display_and_set_cursor): Use get_window_cursor_type.
10181 Remove unused local variables cursor_non_selected, active_cursor.
10182 Redraw cursor if hbar cursor width changes.
10183 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
10184
10185 * macterm.h (enum text_cursor_kinds): Removed.
10186 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
10187 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10188 (FRAME_DESIRED_CURSOR): Macro removed.
10189
10190 * w32fns.c (Vblink_cursor_alist): Removed.
10191 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10192 (syms_of_w32fns): Don't intern, staticpro, or define them.
10193 (x_specified_cursor_type): Removed.
10194 (x_set_cursor_type): Use set_frame_cursor_types.
10195
10196 * w32term.c (x_specified_cursor_type): Remove prototype.
10197 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10198 (x_display_and_set_cursor): Use get_window_cursor_type.
10199 Remove unused local variables cursor_off_state.
10200 Redraw cursor if hbar cursor width changes.
10201 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
10202
10203 * w32term.h (enum text_cursor_kinds): Removed.
10204 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
10205 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10206 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10207 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10208 (struct w32_display_info) <x_highlight_frame>: Renamed member from
10209 w32_highlight_frame.
10210
10211 * xfns.c (Vblink_cursor_alist): Removed.
10212 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10213 (syms_of_xfns): Don't intern, staticpro, or define them.
10214 (x_specified_cursor_type): Removed.
10215 (x_set_cursor_type): Use set_frame_cursor_types.
10216
10217 * xterm.c (x_specified_cursor_type): Remove prototype.
10218 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10219 (x_display_and_set_cursor): Use get_window_cursor_type.
10220 Remove unused local variables cursor_off_state.
10221 Redraw cursor if hbar cursor width changes.
10222
10223 * xterm.h (enum text_cursor_kinds): Removed.
10224 (struct output_x) <current_cursor, desired_cursor, cursor_width>
10225 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10226 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10227 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10228 (x_specified_cursor_type): Remove prototype.
10229
102302002-08-28 Richard M. Stallman <rms@gnu.org>
10231
10232 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10233 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10234 (Vblink_cursor_alist): New variable.
10235 (syms_of_w32fns): Initialize and defvar it.
10236 (x_specified_cursor_type): Recognize Qbox for filled box.
10237 Exceptions are hollow boxes.
10238 (Qbox, Qhollow): New variables.
10239 (syms_of_w32fns): Initialize and staticpro them.
10240
10241 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10242 New macros.
10243 (struct w32_output): New fields blink_off_cursor,
10244 blink_off_cursor_width.
10245 (FRAME_CURSOR_WIDTH): New macro.
10246
10247 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10248 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10249
10250 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10251 for bar cursor.
10252
10253 * w32term.c (expose_overlaps): New function.
10254 (expose_window): Use it to fix the display of overlapping rows.
10255
102562002-08-28 Simon Josefsson <jas@extundo.com>
10257
10258 * xfns.c (Fx_open_connection): Improve help when X connection
10259 fails, xhost is insecure and xauth is better.
10260
102612002-08-28 Juanma Barranquero <lektu@terra.es>
10262
10263 * makefile.w32-in: Add missing dependencies on w32term.h and
10264 composite.h.
10265
10266 * emacs.c (USAGE1): Add missing newline.
10267
102682002-08-27 Andrew Choi <akochoi@shaw.ca>
10269
10270 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
10271
102722002-08-27 Richard M. Stallman <rms@gnu.org>
10273
10274 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10275 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10276 (Vblink_cursor_alist): New variable.
10277 (syms_of_xfns): Initialize and defvar it.
10278 (x_specified_cursor_type): Recognize Qbox for filled box.
10279 Exceptions are hollow boxes.
10280 (Qbox, Qhollow): New variables.
10281 (syms_of_xfns): Initialize and staticpro them.
10282
10283 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10284 New macros.
10285 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
10286
10287 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10288 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10289
10290 * emacs.c (main): Handle --script.
10291 (USAGE1): Mention --script.
10292 (standard_args): Define sort order for --script.
10293
102942002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
10295
10296 * xdisp.c (redisplay_updating_p): Variable removed.
10297 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
10298 New variables.
10299 (init_iterator): Don't free realized faces if
10300 inhibit_free_realized_faces is set.
10301 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
10302 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
10303 initialize Qinhibit_free_realized_faces.
10304
10305 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
10306 when iterator is adding glyphs to a glyph matrix.
10307
103082002-08-27 Kenichi Handa <handa@etl.go.jp>
10309
10310 * xdisp.c (get_next_display_element): In unibyte case, don't use
10311 octal form for such eight-bit characters that can be converted to
10312 multibyte char.
10313
103142002-08-26 Kim F. Storm <storm@cua.dk>
10315
b6189c3b
KS
10316 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
10317 foreground and background colors. From Joe Buehler.
048addec
JD
10318
103192002-08-26 Miles Bader <miles@gnu.org>
10320
10321 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
10322
103232002-08-25 Andrew Choi <akochoi@shaw.ca>
10324
10325 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
10326 defined instead of MAC_OSX.
10327
10328 * s/darwin.h (select): Define select to sys_select only if
10329 HAVE_CARBON is defined.
10330 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
10331 (DONT_REOPEN_PTY): #def it.
10332
10333 * macterm.c (XTread_socket): Remove code to call
10334 SendEventToEventTarget for keys with command modifiers when
10335 mac_command_key_is_meta is nil.
10336
103372002-08-24 Andreas Schwab <schwab@suse.de>
10338
10339 * eval.c (Fdefvar): Fix last change.
10340
103412002-08-23 Richard M. Stallman <rms@gnu.org>
10342
10343 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
10344 Record variables in load history as (defvar . VAR).
10345 (Fdefvar): Don't record in load history if no initial value.
10346 (Qdefvar): New variable.
10347 (syms_of_eval): Init and staticpro it.
10348
10349 * lread.c (syms_of_lread): Doc fix.
10350 (build_load_history): Use Fmember to see if a definition
10351 is already in the Vload_history element.
10352
10353 * process.c (Fstart_process): Remove /: from program name.
10354
10355 * emacs.c (decode_env_path): Don't add /: if file name handler
10356 has a `safe-magic' property.
10357
10358 * callproc.c (Fcall_process): Remove /: from program name.
10359
103602002-08-23 Stefan Monnier <monnier@cs.yale.edu>
10361
10362 * regex.c (PATFETCH): Remove the translating fetch.
10363 (PATFETCH_RAW): Rename to PATFETCH.
10364 (set_image_of_range): New fun.
10365 (SET_RANGE_TABLE_WORK_AREA): Use it.
10366 (regex_compile): Don't translate the pattern chars so eagerly.
10367 Only do it when inserting an `exactn' bytecode or when handling
10368 a char-range.
10369 (mutually_exclusive_p): Avoid empty statement.
10370
103712002-08-22 Kim F. Storm <storm@cua.dk>
10372
10373 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
10374 end up on a partially visible line; this reverts a specific part
10375 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
10376 display error which has been reported several times now.
10377 However it introduces the problem that changes was supposed to fix.
10378 See my comments in the source if you want to debug this further.
10379
103802002-08-20 Kenichi Handa <handa@etl.go.jp>
10381
10382 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10383
103842002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
10385
10386 * msdos.c (croak): Add `void' to definition.
10387
c1380aa6 10388 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
10389 Don't define them, they are defined in msdos.c.
10390
10391 * mem-limits.h [MSDOS]: Declare etext.
10392
10393 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
10394 `const' since CORRECT_DIR_SEPS modifies its target.
10395
103962002-08-19 Kim F. Storm <storm@cua.dk>
10397
2fb0ce67 10398 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
10399 KEEP-RECORD to avoid clearing lossage when we just want to clear
10400 the current key sequence (kmacro needs this).
10401
104022002-08-19 Kenichi Handa <handa@localhost>
10403
10404 * composite.c (run_composition_function): Call FUNC if it is fboundp.
10405
10406 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
10407 cons, return Qnil.
10408
104092002-08-17 Richard M. Stallman <rms@gnu.org>
10410
10411 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
10412
10413 * sysdep.c [!VMS]: Include sys/files.h.
10414
10415 * editfns.c (save_restriction_restore): Defend from unchained marker.
10416
10417 * buffer.c (overlays_at): Handle extending vec uniformly.
10418 (overlays_in): Handle extending vec from length 0 as in overlays_at.
10419
104202002-08-15 Andrew Choi <akochoi@shaw.ca>
10421
10422 * mac.c (init_mac_osx_environment): New function.
10423
10424 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
10425
104262002-08-14 Kim F. Storm <storm@cua.dk>
10427
10428 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
10429 executing macro before appending to it (when used from Lisp).
10430 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
10431 which is called prior to each iteration of macro (for kmacro.el).
10432 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
10433
10434 * lisp.h (Fexecute_kbd_macro): Update prototype.
10435
10436 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
10437
104382002-08-14 Kenichi Handa <handa@etl.go.jp>
10439
10440 * xselect.c (QUTF8_STRING): New variable.
10441 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
10442 (x_atom_to_symbol): Likewise.
10443 (x_get_local_selection): New argument local_request. If it is
10444 nonzero, call handler_fn with the second arg nil.
10445 (x_handle_selection_request): Call x_get_local_selection with
10446 local_request 0.
10447 (lisp_data_to_selection_data): Don't encode the string here.
10448 (Fx_get_selection_internal): Call x_get_local_selection with
10449 local_request 1.
10450 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
10451
10452 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
10453
10454 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
10455
104562002-08-13 Richard M. Stallman <rms@gnu.org>
10457
10458 * minibuf.c (Fminibufferp): New function.
10459 (syms_of_minibuf): Defsubr it.
10460 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
10461
104622002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
10463
10464 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
10465
104662002-08-12 Richard M. Stallman <rms@gnu.org>
10467
10468 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
10469 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
10470 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
10471 already.
10472
10473 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
10474
104752002-08-11 Andrew Choi <akochoi@shaw.ca>
10476
10477 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
10478 (Vmac_pass_command_to_system): New variable.
10479 (Vmac_pass_control_to_system): New variable.
10480 (do_mouse_moved): Check wp with is_emacs_window.
10481 (XTread_socket): Check window_ptr with is_emacs_window.
10482 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
10483 events back to Mac Toolbox for processing, depending on values of
10484 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
10485 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
10486 Vmac_pass_control_to_system.
10487
104882002-08-10 Kenichi Handa <handa@etl.go.jp>
10489
10490 * coding.c (unencodable_char_position): New function.
10491 (Funencodable_char_position): New function.
10492 (syms_of_coding): Defsubr Funencodable_char_position.
10493
104942002-08-10 Andrew Choi <akochoi@shaw.ca>
10495
10496 * mac.c (sys_select) [MAC_OSX]: New function.
10497
10498 * macterm.c (MakeMeTheFrontProcess): New function.
10499 (mac_initialize): Call MakeMeTheFrontProcess.
10500
10501 * s/darwin.h: Define select to sys_select.
10502
105032002-08-09 Richard M. Stallman <rms@gnu.org>
10504
10505 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
10506
105072002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
10508
10509 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
10510 end of the buffer.
10511
105122002-08-08 Ken Raeburn <raeburn@mit.edu>
10513
10514 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
10515
10516 * puresize.h (BASE_PURESIZE): Increase to 910000.
10517
105182002-08-08 Kenichi Handa <handa@etl.go.jp>
10519
10520 * coding.c (Ffind_operation_coding_system): For write-region, if
10521 VISIT is a filename, make it the target.
10522
105232002-08-07 Richard M. Stallman <rms@gnu.org>
10524
10525 * alloc.c (mark_object): Detect long lists for debugging.
10526 (mark_object_loop_halt): New variable.
10527
10528 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
10529
10530 * data.c (Fmake_variable_frame_local): Doc fix.
10531
105322002-08-01 David Ponce <david@dponce.com>
10533
10534 * w32menu.c (local_heap, local_alloc, local_free): New macros.
10535 (malloc_widget_value, free_widget_value)
10536 (w32_free_submenu_strings): Use them.
10537
10538 (push_submenu_start, push_submenu_end, push_left_right_boundary)
10539 (push_menu_pane, push_menu_item, single_keymap_panes)
10540 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
10541 (single_submenu, set_frame_menubar)
10542 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
10543
10544 (Fx_popup_menu): Don't show pop up menu until preceding one is
10545 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
10546
10547 * w32menu.c: Changes adapted from xmenu.c
10548 (set_frame_menubar): First parse all submenus,
10549 then make widget_value trees from them.
10550 Don't allocate any widget_value objects
10551 until we are done with the parsing.
10552 (parse_single_submenu): New function.
10553 (digest_single_submenu): New function.
10554 (single_submenu): Function deleted, replaced by those two.
10555
105562002-08-04 Andrew Choi <akochoi@shaw.ca>
10557
10558 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
10559 returns a valid window pointer before proceeding for keyDown and
10560 autoKey events.
10561
105622002-08-03 Andrew Choi <akochoi@shaw.ca>
10563
10564 * macterm.c (USE_CARBON_EVENTS): New macro.
10565 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
10566 (x_iconify_frame): Call CollapseWindow.
10567 (Vmac_reverse_ctrl_meta): New variable.
10568 (Vmac_wheel_button_is_mouse_2): New variable.
10569 (init_mac_drag_n_drop): New function.
10570 (mac_do_receive_drag): New function.
10571 (mac_handle_service_event): New function.
10572 (init_service_handler): New function.
10573 (mac_to_emacs_modifiers): New function.
10574 (mac_event_to_emacs_modifiers): New function.
10575 (mac_get_mouse_btn): New function.
10576 (mac_convert_event_ref): New function.
10577 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
10578 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
10579 mac_get_mouse_btn.
10580 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
10581
10582 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
10583 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
10584 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
10585 TOOL_BAR_EVENT for MAC_OS as well.
10586 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
10587 as for WINDOWS_NT.
10588 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
10589
10590 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
10591
105922002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
10593
10594 * xdisp.c (forward_to_next_line_start): Fix a condition that
10595 lead to a newline being skipped.
10596
105972002-08-02 Andrew Choi <akochoi@shaw.ca>
10598
10599 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
10600
106012002-08-01 Richard M. Stallman <rms@gnu.org>
10602
10603 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
10604
106052002-07-31 Andrew Choi <akochoi@shaw.ca>
10606
10607 * macfns.c: #undef init_process before #define-ing it.
10608
10609 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
10610 HAVE_CARBON is defined.
10611
106122002-07-31 Richard M. Stallman <rms@gnu.org>
10613
10614 * xmenu.c (set_frame_menubar): First parse all submenus,
10615 then make widget_value trees from them.
10616 Don't allocate any widget_value objects
10617 until we are done with the parsing.
10618 (parse_single_submenu): New function.
10619 (digest_single_submenu): New function.
10620 (single_submenu): Function deleted, replaced by those two.
10621
106222002-07-30 Juanma Barranquero <lektu@terra.es>
10623
10624 * w32proc.c (syms_of_ntproc): Fix docstring of
10625 `w32-get-true-file-attributes'.
10626
106272002-07-28 Richard M. Stallman <rms@gnu.org>
10628
10629 * s/hpux8.h (HPUX8): Define this before including hpux.h.
10630 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
10631
10632 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
10633
10634 * keyboard.c (make_lispy_event):
10635 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
10636 Explicitly clear up_modifier in event->modifiers.
10637
106382002-07-27 Richard M. Stallman <rms@gnu.org>
10639
10640 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
10641
10642 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10643 for bar cursor.
10644
106452002-07-26 Kenichi Handa <handa@etl.go.jp>
10646
10647 * coding.c (detect_coding_iso2022): While checking a byte sequence
10648 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
10649 it in the normal loop.
10650
106512002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
10652
10653 * xterm.c (expose_overlaps): New function.
10654 (expose_window): Use it to fix the display of overlapping rows.
10655
10656 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
10657
106582002-07-23 Ken Raeburn <raeburn@gnu.org>
10659
10660 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
10661 since it only depends on XUINT.
10662
10663 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
10664 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
10665 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
10666 Macros deleted.
3947677c 10667
77d1daf2
AS
10668 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
10669 its value over other approaches.
10670 * sysdep.c (start_of_data): Don't define the function if a macro
10671 form has been defined.
8a8e19a3 10672
048addec
JD
106732002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
10674
10675 * xdisp.c (redisplay_updating_p): New variable.
10676 (init_iterator): Don't free realized faces when
10677 redisplay_updating_p is set.
10678 (redisplay_internal): Set redisplay_updating_p while updating
10679 the display.
10680
106812002-07-23 Richard M. Stallman <rms@gnu.org>
10682
10683 * editfns.c (Fmessage): Treat "" like nil.
10684
106852002-07-23 Kenichi Handa <handa@etl.go.jp>
10686
10687 * xdisp.c (face_before_or_after_it_pos):
10688 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10689
106902002-07-22 Juanma Barranquero <lektu@terra.es>
10691
10692 * callproc.c (init_callproc) [DOS_NT]:
10693 Initialize Vshared_game_score_directory to nil.
10694 (syms_of_callproc) [DOS_NT]: Likewise.
10695
106962002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
10697
10698 * xdisp.c (display_line): Replace an abort with xassert.
10699
107002002-07-21 Richard M. Stallman <rms@gnu.org>
10701
10702 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
10703 and END_UNCHANGED when setting buffer_unchanged_p.
10704 Use current_matrix_up_to_date_p to decide whether to use
10705 try_cursor_movement.
10706
10707 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
10708
10709 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
10710
10711 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
10712 Set to nil if dir does not exist.
10713 (syms_of_callproc): Init unconditionally and simply.
10714
10715 * buffer.c (Fbuffer_list): Doc fix.
10716
107172002-07-21 Ken Raeburn <raeburn@gnu.org>
10718
10719 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
10720
10721 * buffer.c (mmap_realloc): When shrinking, make sure number of
10722 pages to unmap is rounded towards zero.
10723
10724 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
10725 (XSETINT): Deleted.
10726
10727 * m/att3b.h (XINT): Don't define.
10728 (VALBITS, VALMASK, XTYPE): Deleted.
10729 (DATA_SEG_BITS): Define.
10730 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
10731 ARRAY_MARK_FLAG): Deleted.
10732 (DATA_SEG_BITS): Define.
10733 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
10734 (DATA_SEG_BITS): Define.
10735
107362002-07-20 Richard M. Stallman <rms@gnu.org>
10737
10738 * print.c (print_error_message): New args CONTEXT and CALLER.
10739 Calls changed.
10740
10741 * lisp.h (print_error_message): Declare new args.
10742
10743 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
10744 and CONTEXT to print_error_message, don't print them here.
10745 For a Quit, don't use Vsignaling_function.
10746 Call message_log_maybe_newline.
10747
10748 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
10749
107502002-07-20 Kim F. Storm <storm@cua.dk>
10751
10752 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
10753
107542002-07-19 Ken Raeburn <raeburn@gnu.org>
10755
10756 * bytecode.c (struct byte_stack): Pointers into byte string now
10757 point to const.
10758 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
10759 const.
10760 * charset.h (BCOPY_SHORT): Source pointer now points to const.
10761 * coding.c (encode_eol, detect_coding, detect_eol):
10762 (decode_coding, encode_coding, detect_coding_system):
10763 Source strings now treated as const.
10764 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
10765 modify Lisp string contents.
10766 * coding.h (decode_coding, encode_coding, detect_coding,
10767 detect_eol): Declarations updated.
10768 * composite.c (compose_chars_in_text): Treat Lisp string contents
10769 as const.
10770 * dispnew.c (safe_bcopy): Source pointer now points to const.
10771 * lisp.h (STRING_COPYIN): New macro.
10772 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
10773 (internal_with_output_to_temp_buffer): Declarations updated.
10774 * print.c (temp_output_buffer_setup):
10775 (internal_with_output_to_temp_buffer): Buffer name argument is now
10776 pointer to const.
10777 * sound.c (struct sound_device): Function pointer field "write"
10778 buffer argument now points to const.
10779 (vox_write): Buffer argument points to const.
10780 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
10781 contents as const.
10782 * sysdep.c (emacs_write): Buffer pointer now const.
10783 * term.c (encode_terminal_code): Buffer pointer now const.
10784 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
10785 (x_face_list_fonts, x_update_menu_appearance):
10786 (hash_string_case_insensitive): Treat Lisp string contents as const.
10787
107882002-07-19 Juanma Barranquero <lektu@terra.es>
10789
048addec
JD
10790 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
10791
10792 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
10793 (Ffile_name_as_directory): Fix argument name in docstring.
10794 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
10795
107962002-07-18 Richard M. Stallman <rms@gnu.org>
10797
10798 * data.c (Fdefalias): Doc fix.
10799
108002002-07-17 Dave Love <fx@gnu.org>
10801
10802 * intervals.h (text_property_stickiness): Use P_.
10803
10804 * ccl.c: Remove `emacs' conditionals.
10805 (ccl_backtrace_table): Fix size spec.
10806 (ccl_driver): Fix type errors.
10807
108082002-07-16 Ken Raeburn <raeburn@gnu.org>
10809
10810 * alloc.c (xstrdup, make_string, make_unibyte_string)
10811 (make_multibyte_string, build_string): String pointer args now
10812 point to const.
10813 * charset.c (find_charset_in_text, c_string_width):
10814 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
10815 * fileio.c (report_file_error):
10816 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
10817 (count_combining_before, count_combining_after, insert_1_both):
10818 (insert, insert_and_inherit, insert_string):
10819 (insert_before_markers, insert_before_markers_and_inherit):
10820 * lread.c (intern, oblookup, hash_string):
10821 * minibuf.c (temp_echo_area_glyphs):
10822 * search.c (fast_c_string_match_ignore_case):
10823 * sysdep.c (emacs_open, set_file_times):
10824 * xfaces.c (xstricmp):
10825 * xdisp.c (store_frame_title, string_char_and_length):
10826 (message_dolog, message2, message2_nolog, set_message): Likewise.
10827 (set_message_1): Cast message string argument to const pointer.
10828 * editfns.c (general_insert_function): Insertion function now
10829 takes pointer to const for input data.
10830 * charset.h (find_charset_in_text, c_string_width):
10831 (parse_str_as_multibyte): Declarations updated.
10832 * dispextern.h (xstricmp): Declaration updated.
10833 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
10834 (count_size_as_multibyte, count_combining_before):
10835 (count_combining_after, insert_1, insert_1_both, message_dolog):
10836 (insert, insert_and_inherit, insert_before_markers)
10837 (insert_before_markers_and_inherit, set_message, message2):
10838 (message2_dolog, build_string, make_string, make_unibyte_string):
10839 (make_multibyte_string, intern, oblookup, report_file_error):
10840 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
10841 (emacs_open, xstrdup): Declarations updated.
10842 * systime.h (set_file_times): Declaration updated.
10843
10844 * charset.c (find_charset_in_text, lisp_string_width): Use const
10845 for pointer to lisp string data.
10846 * charset.h (FETCH_STRING_CHAR_ADVANCE):
10847 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
10848 * coding.c (Ffind_coding_systems_region_interval):
10849 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
10850 (Fmake_directory_internal, Fdelete_directory):
10851 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
10852 * fontset.c (font_family_registry, fs_query_fontset):
10853 (list_fontsets):
10854 * frame.c (Fframe_parameter):
10855 * keyboard.c (cmd_error_internal):
10856 * keymap.c (Fdescribe_buffer_bindings):
10857 * lread.c (complete_filename_p, openp):
10858 * minibuf.c (Fminibuffer_complete_word):
10859 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
10860 (face_before_or_after_it_pos, next_element_from_string):
10861 (get_overlay_arrow_glyph_row, display_mode_element):
10862 (decode_mode_spec_coding):
10863 * xterm.c (same_x_server): Likewise.
10864
10865 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
10866 settings of non-existent fields.
10867
10868 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
10869 copy a lisp value.
10870
10871 * lread.c (Fintern_soft): Use string macros instead of
10872 Lisp_String fields.
10873 * keyboard.c (echo_char, parse_modifiers_uncached):
10874 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
10875 * textprop.c (validate_interval_range, interval_of): Likewise.
10876
10877 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
10878
10879 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10880 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
10881 XSTRING()->size_byte.
10882
10883 * lisp.h (SDATA, SREF): Produce rvalue.
10884 (SSET): New macro.
10885 * alloc.c (make_event_array): Use SSET for storing into a string.
10886 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
10887 a string.
10888 * casefiddle.c (casify_object): Use SSET.
10889 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10890 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
10891 address of string contents.
10892 * data.c (Faref): Use SDATA.
10893 (Faset): Use SDATA, SSET.
10894 * dired.c (directory_files_internal): Use SSET.
10895 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
10896 (Fread_file_name): Use SREF, SSET.
10897 * fns.c (concat): Use SSET.
10898 (concat, Fdelete): Use SDATA.
10899 * insdel.c (insert_from_string_1): Use SDATA.
10900 * keyboard.c (Fevent_convert_list): Use SREF.
10901 * lread.c (Fload): Use SDATA, SSET.
10902 * macfns.c (validate_x_resource_name): Use SSET.
10903 * process.c (status_message): Use SSET.
10904 * search.c (wordify): Use SDATA.
10905 (Freplace_match): Use SREF.
10906 * w32fns.c (validate_x_resource_name): Use SSET.
10907 * xfns.c (validate_x_resource_name): Use SSET.
10908 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
10909
109102002-07-16 Richard M. Stallman <rms@gnu.org>
10911
10912 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
10913
10914 * xdisp.c (reconsider_clip_changes):
10915 Don't test prevent_redisplay_optimizations_p.
10916 (redisplay_internal): Test prevent_redisplay_optimizations_p
10917 along with clip_changed in some cases.
10918 (try_window_id): Likewise.
10919 (redisplay_window): New local var buffer_unchanged_p.
10920
10921 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
10922
10923 * process.c (create_process): Test USG_SUBTTY_WORKS.
10924 (process_send_signal): Clean up handling of GID.
10925 Detect errors in ioctls meant to set GID.
10926
10927 * window.c (temp_output_buffer_show):
10928 Don't set prevent_redisplay_optimizations_p.
10929
109302002-07-15 Juanma Barranquero <lektu@terra.es>
10931
10932 * eval.c (Fdefvaralias): Add docstring argument.
10933
109342002-07-15 Ken Raeburn <raeburn@gnu.org>
10935
10936 * lisp.h (STRING_INTERVALS): Produce rvalue.
10937 (STRING_SET_INTERVALS): New macro.
10938 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
10939 * fns.c (Fstring_as_multibyte): Likewise.
10940 * intervals.c (balance_possible_root_interval, delete_interval)
10941 (create_root_interval, copy_intervals_to_string): Likewise.
10942 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
10943 instead of 0.
10944
109452002-07-14 Ken Raeburn <raeburn@gnu.org>
10946
10947 * lisp.h (STRING_SET_CHARS): New macro.
10948 (SCHARS, SBYTES): Produce rvalues.
10949 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
10950 * fns.c (concat): Likewise.
10951 * lread.c (read_vector): Likewise.
10952
10953 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
10954 (STRING_SET_UNIBYTE): New macro.
10955 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
10956 length of -1) changed to use STRING_SET_UNIBYTE.
10957 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10958 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10959 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
10960 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
10961 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
10962 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
10963 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
10964 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
10965 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10966 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
10967 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
10968 STRING_BYTES or indirection changed to SCHARS, SBYTES,
10969 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
10970 unchanged for now.
10971
109722002-07-13 Kim F. Storm <storm@cua.dk>
10973
10974 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
10975
109762002-07-12 Richard M. Stallman <rms@gnu.org>
10977
10978 * fileio.c (Fwrite_region): Doc fix.
10979
10980 * print.c (print_error_message): Don't handle Vsignaling_function here.
10981
10982 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
10983 (command_loop_1): Avoid certain actions after memory-full error.
10984
10985 * eval.c (Fsignal): Don't call cancel_hourglass.
10986 For a memory-full error, don't call Vsignal_hook_function
10987 and don't set Vsignaling_function.
10988
10989 * process.c (process_send_signal): Add abort call.
10990
109912002-07-11 Markus Rost <rost@math.ohio-state.edu>
10992
10993 * keymap.c (Fkey_binding): Fix typo.
10994
109952002-07-11 Richard M. Stallman <rms@gnu.org>
10996
10997 * alloc.c (Vmemory_full): New variable.
10998 (Vmemory_signal_data): Renamed from memory_signal_data.
10999 Uses changed.
11000 (syms_of_alloc): Defvar them.
11001 (memory_full, buffer_memory_full): Set Vmemory_full.
11002
11003 * lisp.h (Vmemory_full): Add declaration.
11004 (current_column, indented_beyond_p): Change declaration.
11005
11006 * indent.c (last_known_column): Declare as double, not float.
11007 (current_column, current_column_1, string_display_width)
11008 (position_indentation): Return `double'.
11009 (indented_beyond_p): Arg `column' is `double'. Callers changed.
11010
11011 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
11012 (back_to_previous_visible_line_start)
11013 (reseat_at_next_visible_line_start, next_element_from_buffer):
11014 Use `double', not `float', when calling indented_beyond_p.
11015
11016 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
11017
11018 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
11019
110202002-07-11 Juanma Barranquero <lektu@terra.es>
11021
11022 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
11023 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
11024 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
11025 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
11026 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
11027 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
11028
110292002-07-10 Juanma Barranquero <lektu@terra.es>
11030
d814862a
JB
11031 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
11032 All callers changed.
048addec
JD
11033
110342002-07-09 Stefan Monnier <monnier@cs.yale.edu>
11035
11036 * data.c (Fdefalias): Add an optional `docstring' argument.
11037 (set_internal, Fsetq_default): Use XCAR/XCDR.
11038
11039 * composite.c (HASH_VALUE, HASH_KEY):
11040 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
11041
110422002-07-09 Kenichi Handa <handa@etl.go.jp>
11043
11044 * callproc.c (Fcall_process): Fix previous change.
11045
110462002-07-07 Stefan Monnier <monnier@cs.yale.edu>
11047
11048 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11049 Add support for hash-tables.
11050 (Ftry_completion): Return t even if the string appears multiple times.
11051
11052 * fns.c (Fnconc): Use XCDR.
11053 (Fprovide): Use CONSP and XCDR.
11054 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11055 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
11056 (Fmake_hash_table): Accept `:size nil'.
11057 (Fmakehash): Delete: moved to subr.el.
11058 (syms_of_fns): Don't defsubr makehash.
11059
11060 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11061 (HASH_TABLE_SIZE): Move from fns.c.
11062
110632002-07-07 Richard M. Stallman <rms@gnu.org>
11064
11065 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
11066 Instead just return 0 when there is something to be done.
11067 (try_scrolling): If make_cursor_line_fully_visible returns 0,
11068 retry scrolling as if cursor were off the bottom.
11069 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
11070 return CURSOR_MOVEMENT_MUST_SCROLL.
11071 (redisplay_window): If make_cursor_line_fully_visible returns 0,
11072 go to try_to_scroll.
11073
11074 * buffer.c (Fbuffer_local_value): Store current value into its binding
11075 so we get the up-to-date value for the binding that is loaded.
11076
11077 * eval.c (Fdefmacro): Doc fix.
11078
110792002-07-05 Dave Love <fx@gnu.org>
11080
11081 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
11082 correctly.
11083
11084 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
11085 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
11086 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
11087 CCL_LookupCharConstTbl.
11088 (syms_of_ccl): Defvar translation-hash-table-vector.
11089
110902002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11091
11092 * xdisp.c: Remove unused variable `face'.
11093
110942002-07-04 Juanma Barranquero <lektu@terra.es>
11095
11096 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
11097 obsolescence information.
11098
110992002-07-03 Andrew Choi <akochoi@shaw.ca>
11100
11101 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
11102 pattern. Search cache first.
11103 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
11104 for Japanese font.
11105 (XLoadQueryFont): Use it.
11106
111072002-07-02 Richard M. Stallman <rms@gnu.org>
11108
11109 * keymap.c (Fdefine_key): Doc fix.
11110
11111 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
11112
111132002-07-02 Juanma Barranquero <lektu@terra.es>
11114
11115 * keymap.c (syms_of_keymap): Fix typo.
11116
111172002-07-01 Andrew Choi <akochoi@shaw.ca>
11118
11119 * s/darwin.h: Define POSIX_SIGNALS.
11120
11121 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
11122 and FSRefMakePath to convert FSSpec returned with Apple Event to
11123 Posix pathname.
11124 (mac_initialize) [TARGET_API_MAC_CARBON]:
11125 Call init_required_apple_events and disable the `Quit' menu item
11126 provided automatically by the Carbon Toolbox.
11127
111282002-07-01 Dave Love <fx@gnu.org>
11129
11130 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11131 for K&R.
11132
11133 * xterm.c: Fix prototype for K&R.
11134
11135 * term.c (costs_set): Declare static, non-initialized for pcc.
11136
111372002-07-01 Richard M. Stallman <rms@gnu.org>
11138
11139 * keyboard.c (timer_last_idleness_start_time): New variable.
11140 (timer_start_idle): Set that.
11141 (read_key_sequence): Use that to reset timer_idleness_start_time
11142 to previous value.
11143
11144 * window.c (Frecenter): With arg, set optional_new_start.
11145
11146 * xdisp.c (redisplay_internal): Make optional_new_start really work.
11147
11148 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
11149 buffer for completion.
11150
111512002-06-29 Ken Raeburn <raeburn@gnu.org>
11152
11153 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
11154
111552002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11156
11157 * keyboard.c (readable_filtered_events): New function that filters
11158 FOCUS_IN_EVENT depending on parameter.
11159 (readable_events): Calls readable_filtered_events, not filtering
11160 FOCUS_IN_EVENT.
11161 (get_filtered_input_pending): New function, filtering parameter passed
11162 to readable_filtered_events.
11163 (get_input_pending): Calls get_filtered_input_pending, not filtering
11164 FOCUS_IN_EVENT.
11165 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
11166 FOCUS_IN_EVENT.
11167
11168 * xterm.h (struct x_output): Add focus_state.
11169
11170 * xterm.c (x_focus_changed): New function.
11171 (x_detect_focus_change): New function.
11172 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
11173 EnterNotify and LeaveNotify to track X focus changes.
11174
111752002-06-28 Andreas Schwab <schwab@suse.de>
11176
11177 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
11178
111792002-06-27 Kim F. Storm <storm@cua.dk>
11180
11181 * xdisp.c: (mode_line_string_list, mode_line_string_face)
11182 (mode_line_string_face_prop): New variables.
11183 (store_mode_line_string): New function.
11184 (display_mode_element): Use store_mode_line_string to
11185 add mode-line string elements to mode_line_string_list
11186 when mode_line_string_list is non-nil.
11187 (Fformat_mode_line): Now returns propertized string by
11188 default. New arg NO-PROPS to ignore properties.
11189 (decode_mode_spec): Only add two dashes for %- in propertized
11190 mode-line string.
11191 (syms_of_xdisp): Init and staticpro mode_line_string_list.
11192
111932002-06-27 Stefan Monnier <monnier@cs.yale.edu>
11194
11195 * minibuf.c (minibuffer_completion_contents): Add return type.
11196
111972002-06-27 Juanma Barranquero <lektu@terra.es>
11198
11199 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
11200
112012002-06-26 Juanma Barranquero <lektu@terra.es>
11202
11203 * fileio.c (read_file_name_cleanup): Add missing return.
11204
112052002-06-26 Richard M. Stallman <rms@gnu.org>
11206
11207 * window.c (Frecenter): Don't set force_start flag.
11208
11209 * minibuf.c (do_completion, Fminibuffer_complete_word)
11210 (Fminibuffer_completion_help): Complete just the text before point.
11211 (minibuffer_completion_contents): New function.
11212
11213 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
11214
11215 * frame.c (frames_bury_buffer): Function deleted.
11216
112172002-06-25 Miles Bader <miles@gnu.org>
11218
11219 * callint.c (Fcall_interactively): When checking to see if doprnt hit
11220 the end of callint_message, allow for a terminating '\0'.
11221
112222002-06-24 Juanma Barranquero <lektu@terra.es>
11223
11224 * w32select.c: Include composite.h
11225
11226 * w16select.c: Likewise.
11227
112282002-06-24 Kenichi Handa <handa@etl.go.jp>
11229
11230 * callproc.c (Fcall_process): If code detection is necessary,
11231 call detect_coding directly here.
11232
11233 * coding.c (detect_eol): Preserve coding->cmp_data.
11234
11235 * w16select.c (Fw16_get_clipboard_data):
11236 * w32fns.c (w32_to_x_font):
11237 * w32select.c (Fw32_get_clipboard_data):
11238 * xselect.c (selection_data_to_lisp_data):
11239 * xterm.c (XTread_socket): Disable composition handling.
11240
112412002-06-24 Stefan Monnier <monnier@cs.yale.edu>
11242
11243 * print.c (temp_output_buffer_setup): Kill all local variables.
11244
112452002-06-22 Stefan Monnier <monnier@cs.yale.edu>
11246
11247 * lread.c (Fread): Remove redundant and imprecise declaration.
11248
11249 * xfns.c (check_x_display_info): Use check_x_frame.
11250
11251 * .gdbinit (xprintsym): Use the new `xname' field.
11252 (xsymbol): Use it.
11253
112542002-06-22 Jason Rumney <jasonr@gnu.org>
11255
11256 * w32fns.c (file_dialog_callback): New function.
11257 (Fx_file_dialog): Allow selecting directories as well as files.
11258
112592002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11260
11261 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 11262 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
11263
112642002-06-17 Andrew Choi <akochoi@shaw.ca>
11265
11266 * macterm.c (mac_scroll_area): Set foreground and backcolor to
11267 black and white before scrolling. Restore frame background and
11268 foreground color after scrolling.
11269 (do_window_update): Call XClearWindow before calling expose_frame.
11270 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
11271 FRAME_FOREGROUND_PIXEL of frame.
11272
11273 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11274 test Mac command key as <ALT> key.
11275
112762002-06-17 Stefan Monnier <monnier@cs.yale.edu>
11277
11278 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
11279
11280 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
11281 Lookup keys in function-key-map immediately so that key-translation-map
11282 can be applied earlier.
11283 Remove function_key_possible and key_translation_possible, replaced
11284 by checking `keytran_start < t'.
11285
11286 * .gdbinit (xsymbol): Use the new `xname' field.
11287
112882002-06-17 Andrew Choi <akochoi@shaw.ca>
11289
11290 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11291 test Mac command key as <ALT> key.
11292
11293 * mac.c (do_applescript): Call initialize_applescript if necessary
11294 when first called. Dispose of result_desc only when there is no error.
11295 (Fdo_applescript): Use %d format specifier instead of %ld.
11296
112972002-06-16 Andrew Choi <akochoi@shaw.ca>
11298
11299 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
11300 of FrontWindow for cases keyDown and autoKey.
11301
11302 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
11303 Vdefault_fontset to Monaco with mac-roman coding.
11304
11305 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
11306 init_process before and after inclusion of Carbon/Carbon.h, resp.
11307
11308 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
11309 cursor_gc.
11310 (add_font_name_table_entry): New function.
11311 (init_font_name_table): Use add_font_name_table_entry; add italic,
11312 bold, and bold-italic entries for truetype fonts.
11313
11314 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
11315 for Mac too.
11316 (try_font_list) [MAC_OS]: If no font matches given registry, try
11317 fonts with any registry matching face_family.
11318 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
11319
11320 * s/darwin.h: If autoconf detects the Ncurses library, define
11321 LIBS_TERMCAP to -lncurses to use it.
11322
113232002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
11324
11325 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
11326
113272002-06-15 Richard M. Stallman <rms@gnu.org>
11328
11329 * window.c (Fset_window_configuration): Explicitly preserve
11330 the point value that new_current_buffer had at the start.
11331
113322002-06-14 Juanma Barranquero <lektu@terra.es>
11333
11334 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
11335 Fix typos.
11336
113372002-06-14 Kim F. Storm <storm@cua.dk>
11338
11339 * insdel.c (insert_1_both, insert_from_string_1)
11340 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
11341 insert happened in the end_unchanged region. Otherwise, the
11342 redisplay may be confused and duplicate the last line in the
11343 buffer [seen after save-buffer when require-final-newline==t].
11344
113452002-06-13 Jason Rumney <jasonr@gnu.org>
11346
11347 * w32.c (init_environment): Remove EMACSLOCKDIR.
11348 (stat): Swap _S_IFDIR and _S_IFREG.
11349
113502002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11351
11352 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
11353 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
11354 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
11355 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
11356 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
11357 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
11358 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
11359 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
11360 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
11361 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
11362 SELECTION_REQUEST_EVENT, selection_clear_event to
11363 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
11364 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
11365 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
11366 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
11367 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
11368 no_event to NO_EVENT.
11369
113702002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11371
11372 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
11373
113742002-06-12 Stefan Monnier <monnier@cs.yale.edu>
11375
11376 * intervals.c (textget): Don't forget to `return'.
11377 (lookup_char_property): Use XCAR/XCDR.
11378
113792002-06-12 Juanma Barranquero <lektu@terra.es>
11380
11381 * xdisp.c (Fformat_mode_line): Fix typo.
11382
113832002-06-12 Kim F. Storm <storm@cua.dk>
11384
11385 * xdisp.c (Fformat_mode_line): New function.
11386 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
11387 (store_frame_title_char, store_frame_title): Use unconditionally.
11388 (init_xdisp): Defsubr Fformat_mode_line.
11389 Initialize frame_title_buf etc. unconditionally.
11390
113912002-06-11 Stefan Monnier <monnier@cs.yale.edu>
11392
11393 * keyboard.c (read_key_sequence):
11394 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
11395 things through those maps after downcasing events.
11396 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
11397 applies after function-key-map.
11398 Make sure that keytran can be done in the middle in the sequence.
11399 Be careful not to throw away events past the one we downcase.
11400
11401 * lread.c (read_integer): Remove unused var `tem'.
11402 (read1): Fix int/Lisp_Object mixup.
11403
11404 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
11405
114062002-06-11 Richard M. Stallman <rms@gnu.org>
11407
11408 * keyboard.c (readable_events): Ignore any number of
11409 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
11410
114112002-06-09 Miles Bader <miles@gnu.org>
11412
11413 * xfaces.c (Ftty_supports_face_attributes_p): New function.
11414 (parse_rgb_list, tty_lookup_color): New functions.
11415 (tty_defined_color): Use `tty_lookup_color' to do all the work.
11416 (color_distance, Fcolor_distance): New functions.
11417 (TTY_SAME_COLOR_THRESHOLD): New macro.
11418 (Qtty_color_standard_values): New variable.
11419 (syms_of_xfaces): Initialize new vars & functions.
11420
114212002-06-08 Colin Walters <walters@verbum.org>
11422
11423 * textprop.c (Vchar_property_alias_alist): New variable.
11424 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
11425
11426 * intervals.c (lookup_char_property): New function for looking up
11427 overlay and text properties, created from textget.
11428 (textget): Use it.
11429
11430 * intervals.h (lookup_char_property): Declare.
11431 (Vchar_property_alias_alist): Declare.
11432
11433 * buffer.c (Foverlay_get): Use lookup_char_property.
11434
114352002-06-07 Sam Steingold <sds@gnu.org>
11436
11437 * xselect.c (lisp_data_to_selection_data): Fix last change:
11438 *data_ret is not a Lisp string, while unibyte_string is.
11439
114402002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
11441
11442 * xselect.c (lisp_data_to_selection_data): Fix last change:
11443 set size_ret.
11444
114452002-06-07 Andreas Schwab <schwab@suse.de>
11446
11447 * m/amdx86-64.h: New file.
11448
114492002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
11450
11451 * fns.c (Fstring_make_unibyte): Doc fix.
11452
11453 * xselect.c (lisp_data_to_selection_data): If the requested type
11454 is STRING, call string_make_unibyte to encode the selected text
11455 as a string.
11456
11457 * window.c (Fset_window_hscroll): Doc fix.
11458
114592002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11460
11461 * fileio.c (choose_write_coding_system):
11462 Call select-safe-coding-system properly.
11463
114642002-06-03 Richard M. Stallman <rms@gnu.org>
11465
11466 * xdisp.c (message_with_string): Error if STRING is not a string.
11467
11468 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
11469
11470 * fileio.c (choose_write_coding_system): Pass FILE arg to
11471 Vselect_safe_coding_system_function.
11472
114732002-06-03 Ken Raeburn <raeburn@gnu.org>
11474
11475 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
11476
114772002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
11478
11479 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
11480 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
11481 * keymap.c (describe_command): Likewise.
11482 * minibuf.c (read_minibuf): Likewise.
11483
11484 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
11485 Cast `current_column' return value to int.
11486 (back_to_previous_visible_line_start)
11487 (reseat_at_next_visible_line_start, next_element_from_buffer):
11488 Cast `indented_beyond_p' 3rd arg to float.
11489
11490 * indent.c (last_known_column): Now a float.
11491 (current_column_1, position_indentation, current_column)
11492 (string_display_width): Return float.
11493 (Fcurrent_column): Cast `current_column' return value to int.
11494 (Fcurrent_indentation): Cast `position_indentation' retval to int.
11495 (indented_beyond_p): Third arg now a float.
11496 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
11497
11498 * lisp.h (current_column): Now returns float.
11499 (indented_beyond_p): 3rd arg now a float.
11500
115012002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
11502
11503 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
11504 is Qcompound_text_with_extensions.
11505
11506 * xselect.c (lisp_data_to_selection_data): Always set selection
11507 type as string if x_encode_text returns streingp non-NULL.
11508
11509 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
11510
115112002-05-30 Richard M. Stallman <rms@gnu.org>
11512
11513 * window.c (Fset_window_configuration): Correct the handling
11514 of point in current buffer, to work with multiple windows.
11515
115162002-05-29 Colin Walters <walters@verbum.org>
11517
11518 * lread.c (Fread_from_string): Don't depend on order of evaluation
11519 for C function parameters.
11520
115212002-05-28 Richard M. Stallman <rms@gnu.org>
11522
11523 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
11524 way for blinked-off state and for a nonselected window.
11525
11526 * window.c (window_scroll_pixel_based): Don't call Fbolp;
11527 instead, see if the new start pos is at beginning of line.
11528
11529 * fileio.c (Fwrite_region): If START is a string, don't
11530 make any annotations.
11531
11532 * eval.c (syms_of_eval): Doc fix.
11533
115342002-05-28 Colin Walters <walters@debian.org>
11535
11536 * emacs.c (USAGE1): Add --no-splash.
11537 (standard_args): Ditto.
11538
115392002-05-28 Colin Walters <walters@gnu.org>
11540
11541 * lread.c (readchar_count): New variable.
11542 (readchar): Increment it.
11543 (unreadchar): Decrement it.
11544 (read_multibyte): Decrement it.
11545 (Vread_with_symbol_positions): New variable.
11546 (Vread_symbol_positions_list): New variable.
11547 (read_internal_start): New function, created from Fread and
11548 Fread_from_string. Handle Vread_symbol_positions_list and
11549 Vread_with_symbol_positions.
11550 (readevalloop, Fread, Fread_from_string): Use it.
11551 (read1): Use readchar_count to add symbol positions to
11552 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
11553 (syms_of_lread): DEFVAR_LISP and initialize them.
11554
11555 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
11556 (substitute_object_recurse, substitute_object_in_subtree)
11557 (substitute_in_interval): Prototype.
11558 (read_multibyte): Return c if it's less than zero.
11559
115602002-05-28 Kim F. Storm <storm@cua.dk>
11561
11562 * fileio.c (Fread_file_name_internal): Added brute-force
11563 speed up for using predicate file-directory-p.
11564
115652002-05-28 Kim F. Storm <storm@cua.dk>
11566
11567 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
11568 New variables.
11569 (syms_of_fileio): DEFVAR_LISP them.
11570 (read_file_name_cleanup): New unwind function.
11571 (Fread_file_name_internal): Only return completions satifying
11572 Vread_file_name_predicate. Temporarily unwind protect and rebind
11573 default-directory while checking completions against the predicate.
11574 (Fread_file_name): Added PREDICATE argument. Specbind it to
11575 Vread_file_name_predicate during completion.
11576 Call Vread_file_name_function to read the file name if non-nil.
11577
11578 * lisp.h (Fread_file_name): Now has 6 args.
11579
11580 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
11581 predicate for Fread_file_name when reading directory name.
11582 Supply Qnil for predicate in other calls to Fread_file_name.
11583
115842002-05-26 Miles Bader <miles@gnu.org>
11585
11586 * term.c (tty_capable_p): New function.
11587 * dispextern.h (tty_capable_p): New function declaration.
11588 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
11589 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
11590
115912002-05-23 Stefan Monnier <monnier@cs.yale.edu>
11592
11593 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
11594 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
11595 (Vwrite_region_annotate_functions): Docstring fix.
11596
115972002-05-23 Kim F. Storm <storm@cua.dk>
11598
11599 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
11600 phys_cursor's hpos is overwritten. This is still not completely
11601 correct, as it doesn't really make sense to use hpos at all to
11602 get the cursor glyph (as that is relative to the width of the
11603 characters on the line, which may have changed during the update).
11604
116052002-05-22 Jason Rumney <jasonr@gnu.org>
11606
11607 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
11608 Lisp_Object.
11609 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
11610 Use modified enumfont_t struct.
11611
11612 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11613
11614 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
11615 Handle the `hbar' cursor type.
11616 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11617
11618 * w32fns.c (Qhbar): New variable.
11619 (x_specified_cursor_type): Use it.
11620
116212002-05-21 Ken Raeburn <raeburn@gnu.org>
11622
11623 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
11624 now, when the address is needed.
11625
116262002-05-21 Colin Walters <walters@gnu.org>
11627
11628 * Makefile.in (shortlisp): Add font-core.el.
11629
116302002-05-20 Richard M. Stallman <rms@gnu.org>
11631
11632 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
11633
11634 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
11635 equivalent key bindings here.
11636
116372002-05-20 Ken Raeburn <raeburn@gnu.org>
11638
11639 Change symbol structure to contain a lisp object for the symbol
11640 name:
11641 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
11642 object field named "xname".
11643 (SYMBOL_NAME): New macro.
11644 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
11645 name field.
11646 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
11647 (mark_object, gc_sweep): Use symbol xname field and XSTRING
11648 instead of name field.
11649 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
11650 SYMBOL_NAME instead of XSYMBOL and name field.
11651 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
11652 instead of XSYMBOL and name field.
11653 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
11654 and SYMBOL_NAME instead of XSYMBOL and name field.
11655 * coding.c (Fread_coding_system, code_convert_region1)
11656 (code_convert_string1, code_convert_string_norecord)
11657 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
11658 XSYMBOL and name field.
11659 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
11660 (Fmake_variable_buffer_local, Fmake_local_variable)
11661 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
11662 of XSYMBOL and name field.
11663 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
11664 XSYMBOL and name field.
11665 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
11666 instead of XSYMBOL and name field.
11667 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
11668 XSYMBOL and name field.
11669 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
11670 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11671 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
11672 instead of XSYMBOL and name field.
11673 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
11674 (parse_modifiers, apply_modifiers, Fevent_convert_list)
11675 (parse_solitary_modifier, Fexecute_extended_command):
11676 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11677 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
11678 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
11679 of XSYMBOL and name field.
11680 (describe_command, describe_translation): Use SYMBOL_NAME and
11681 assignment instead of XSYMBOL and name field and XSETSTRING.
11682 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
11683 instead of XSYMBOL and name field.
11684 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
11685 name field and XSETSTRING.
11686 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11687 of XSYMBOL and name field.
11688 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
11689 assignment instead of XSYMBOL and name field and XSETSTRING.
11690 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
11691 XSTRING instead of XSYMBOL and name field.
11692 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
11693 and XSTRING instead of XSYMBOL and name field.
11694 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
11695 and XSTRING instead of XSYMBOL and name field.
11696 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
11697 XSTRING instead of XSYMBOL and name field.
11698 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11699 of XSYMBOL and name field.
11700 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
11701 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11702
117032002-05-19 Ken Raeburn <raeburn@gnu.org>
11704
11705 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
11706 and XCDR real rvalues in most configurations.
11707
11708 * buffer.c (fix_overlays_in_range, fix_overlays_before):
11709 Don't take the address of the cdr part of a cons cell; instead, track
11710 the parent cell and call XSETCDR, or set the variable for the head
11711 of the list if we haven't started down the list yet.
11712
117132002-05-19 Richard M. Stallman <rms@gnu.org>
11714
11715 * doc.c (reread_doc_file): Don't ask for confirmation.
11716
117172002-05-18 Jason Rumney <jasonr@gnu.org>
11718
11719 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
11720 (xbm_load_image): Use it.
11721 (xbm_load): Ditto.
11722 (xbm_read_bitmap_data): Reverted to xfns.c version.
11723 From David Ponce <david@dponce.com>.
11724
117252002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
11726
11727 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
11728 2.02 and later.
11729
117302002-05-16 Juanma Barranquero <lektu@terra.es>
11731
11732 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
11733
117342002-05-15 Stefan Monnier <monnier@cs.yale.edu>
11735
11736 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
11737 meaningful test.
11738 (read_char_minibuf_menu_prompt): Fix typo.
11739
117402002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11741
11742 * eval.c (Fcommandp): Doc fix.
11743
117442002-05-13 Stefan Monnier <monnier@cs.yale.edu>
11745
11746 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
11747 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
11748 (Fset_keymap_parent): Gcpro a bit more.
11749 (access_keymap): Gcpro around meta_map call and around the main loop.
11750 (get_keyelt): Gcpro when following indirect references.
11751 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
11752 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
11753 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
11754 Remove useless ad-hoc remap code.
11755
117562002-05-13 Richard M. Stallman <rms@gnu.org>
11757
11758 * search.c (search_buffer): Give up boyer moore search if inverse
11759 translation change charset_base.
11760
117612002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
11762
11763 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
11764 characters is carried over from the previous block of text, adjust
11765 coding->produced to account for the extra character.
11766
117672002-05-11 Andreas Schwab <schwab@suse.de>
11768
11769 * coding.c (intersection): Keep the elements of the returned list
11770 in the same order as in the first list.
11771
117722002-05-11 Kim F. Storm <storm@cua.dk>
11773
11774 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
11775 only update cmm_size if realloc actually succeeds.
11776 Testing with initial size of 2 elements revealed that using
11777 realloc on GNU/Linux would cause a random trap in xmalloc
11778 later on, so I rewrote the code to use malloc/bcopy/free instead
11779 of realloc.
11780
117812002-05-10 Jason Rumney <jasonr@gnu.org>
11782
11783 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
11784
117852002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
11786
11787 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
11788 parens, to ensure correct evaluation order.
11789
117902002-05-10 Kim F. Storm <storm@cua.dk>
11791
11792 * keymap.c (Vemulation_mode_map_alists): New variable.
11793 (syms_of_keymap): DEFVAR_LISP it.
11794 (current_minor_maps): Process keymap alists in that list before
11795 minor-mode-overriding-map-alist and minor-mode-map-alist.
11796
117972002-05-09 Richard M. Stallman <rms@gnu.org>
11798
11799 * search.c (Freplace_match): Doc fix.
11800
118012002-05-09 Kim F. Storm <storm@cua.dk>
11802
11803 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11804 Enlarge cursor rectangle drawn around image with non-zero relief.
11805
11806 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
11807 Enlarge cursor rectangle drawn around image with non-zero relief.
11808
11809 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11810 Enlarge cursor rectangle drawn around image with non-zero relief.
11811
118122002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
11813
11814 * xselect.c (lisp_data_to_selection_data): Don't set selection
11815 type if comes from the Lisp object's car. If the selection
11816 contains a pure ASCII text, always return QSTRING as its type.
11817
118182002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11819
11820 * mac.c (mac-cut-function): Doc fix.
11821
118222002-05-05 Richard M. Stallman <rms@gnu.org>
11823
11824 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11825
118262002-05-04 Jason Rumney <jasonr@gnu.org>
11827
11828 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
11829 for event-click-count.
11830
11831 * process.c (init_process): Only add server subfeature if we can
11832 use non-blocking I/O.
11833
118342002-05-04 Andrew Choi <akochoi@shaw.ca>
11835
11836 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
11837 repeatedly.
11838
118392002-05-03 Jason Rumney <jasonr@gnu.org>
11840
11841 * process.c (Fmake_network_process): Only support server sockets
11842 when we can make them non-blocking.
11843
11844 * s/ms-w32.h (HAVE_SELECT): Define.
11845
11846 * w32.h (FILE_NDELAY): New flag.
11847
11848 * w32.c (sys_getpeername, fcntl): New functions.
11849 (_sys_read_ahead): Temporarily block on non-blocking sockets.
11850
11851 * w32proc.c: include sys/file.h.
11852
118532002-05-03 Colin Walters <walters@verbum.org>
11854
11855 * callproc.c (Vgame_score_directory): Renamed to
11856 Vshared_game_score_directory.
11857
118582002-04-30 Richard M. Stallman <rms@gnu.org>
11859
11860 * s/gnu.h [emacs]: Include stdio.h.
11861 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
11862
11863 * eval.c (do_autoload): Error if called while preparing to dump.
11864
11865 * fns.c (Frequire): Error if need to load while preparing to dump.
11866
118672002-04-28 Colin Walters <walters@verbum.org>
11868
11869 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
11870 Default to "~/.emacs.d/games".
11871
118722002-04-29 Stefan Monnier <monnier@cs.yale.edu>
11873
11874 * lread.c (openp): Change arg exec_only to predicate.
11875 (build_load_history): Use XCAR/XCDR.
11876 (Flocate_file_internal): New fun.
11877 (syms_of_lread): Defsubr it.
11878 (Fload): Update call to openp.
11879
11880 * lisp.h (openp): Update prototype.
11881
11882 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
11883 * w32proc.c (sys_spawnve):
11884 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
11885 * w32.c (check_windows_init_file):
11886 * sound.c (Fplay_sound_internal):
11887 * process.c (Fstart_process):
11888 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
11889 * mac.c (run_mac_command):
11890 * emacs.c (init_cmdargs):
11891 * callproc.c (Fcall_process): Update call to openp.
11892
11893 * textprop.c (remove_properties): Don't use XCAR without CONSP.
11894
11895 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
11896
118972002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11898
11899 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
11900 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
11901
119022002-04-28 Richard M. Stallman <rms@gnu.org>
11903
11904 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
11905
11906 * eval.c (Fcommandp): New arg for_call_interactively.
11907 * lisp.h (Fcommandp): Declare new arg.
11908
119092002-04-28 Jason Rumney <jasonr@gnu.org>
11910
11911 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
11912
11913 * w32.c (stat, fstat): Use file index information to generate
11914 inodes for directories where available.
11915
119162002-04-26 Andrew Choi <akochoi@shaw.ca>
11917
11918 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
11919 [HAVE_CARBON]: Include Mac object files.
11920
11921 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
11922 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
11923 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
11924 MAC_OSX, and MAC_OS instead of macintosh.
11925
11926 * editfns.c [MAC_OS8]: Include stdio.h.
11927
11928 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
11929
11930 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
11931 Apple Monaco.
11932
11933 * process.c: Declare QCfamily and QCfilter as extern.
11934 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
11935 calling select.
11936
11937 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
11938
11939 * tparam.c [MAC_OSX]: Don't define BC and UP.
11940
11941 * config.in [HAVE_CARBON]: Add.
11942
11943 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
11944 Move here from mac/src and mac/inc.
11945
11946 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
11947
119482002-04-26 Gerd Moellmann <gerd@gnu.org>
11949
11950 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
11951 Compute phys_cursor_width from the x position returned
11952 by x_draw_glyhs, which is cheaper.
11953 (x_display_and_set_cursor): Compute the buffer-local value
11954 of `cursor-in-non-selected-windows' only when needed.
11955
119562002-04-25 Gerd Moellmann <gerd@gnu.org>
11957
11958 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
11959 cursor on a stretch glyph has a width that depends on
11960 x_stretch_cursor_p.
11961
119622002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11963
11964 * abbrev.c (abbrev-start-location): Doc fix.
11965
11966 * indent.c (Fvertical_motion): Fix last change.
11967
119682002-04-25 Gerd Moellmann <gerd@gnu.org>
11969
11970 * indent.c (Fvertical_motion): Move to the start of the line
11971 containing PT before moving up or down.
11972
119732002-04-24 Gerd Moellmann <gerd@gnu.org>
11974
11975 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
11976 case of writing a whole row, more or less analogous to the case of
11977 writing only parts of a row.
11978
11979 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
11980 0 for NO_CURSOR.
11981
11982 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
11983
119842002-04-23 Colin Walters <walters@verbum.org>
11985
11986 * buffer.c (syms_of_buffer): Doc fix.
11987
119882002-04-23 Gerd Moellmann <gerd@gnu.org>
11989
11990 * xterm.c (notice_overwritten_cursor): Handle the special case
11991 of the cursor being in the first blank non-text line at the
11992 end of a window.
11993
11994 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11995 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11996 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11997 bar cursors only, to make phys_cursor_width contain what its name
11998 suggests.
11999 (notice_overwritten_cursor): Consider the cursor image erased if
12000 the output area intersects the cursor image in y-direction.
12001
120022002-04-23 Simon Marshall <simon@gnu.org>
12003
12004 * xfns.c (x_set_mouse_color): Change default for cross_cursor
12005 to XC_hand2.
12006
120072002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12008
12009 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
12010
120112002-04-22 Kim F. Storm <storm@cua.dk>
12012
12013 * textprop.c (remove_properties): Fixed trap for malformed plist.
12014
120152002-04-22 Richard M. Stallman <rms@gnu.org>
12016
12017 * cmds.c (Fend_of_line): Handle intangible text in mid line.
12018
12019 * window.c (make_window): Initialize height_fixed_p,
12020 last_cursor_off_p, and p->cursor_off_p slots.
12021
120222002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12023
12024 * fns.c (use-dialog-box): Doc fix.
12025
120262002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12027
12028 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
12029 variables `row', `i' and `area'.
12030 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
12031 toolkit library.
12032
120332002-04-19 Stefan Monnier <monnier@cs.yale.edu>
12034
12035 * xfaces.c (clear_font_table): Don't free the default font of
12036 a frame even if it's on another display.
12037 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
12038 that could be Qt.
12039
120402002-04-19 Juanma Barranquero <lektu@terra.es>
12041
12042 * indent.c (Fmove_to_column): Remove unused local variable
12043 `next_boundary_byte'.
12044 (current_column_1): Likewise.
12045
120462002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
12047
12048 * msdos.c (Qhbar): New variable.
12049 (syms_of_msdos): Intern and staticpro it.
12050 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
12051 cursor type.
12052
120532002-04-19 Dave Lambert <dlambert@acm.org>
12054
12055 Theses change implement an underscore-like (`hbar') cursor.
12056
12057 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12058
12059 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
12060 Handle the `hbar' cursor type.
12061 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12062
12063 * xfns.c (Qhbar): New variable.
12064 (syms_of_xfns): Intern and staticpro it.
12065 (x_specified_cursor_type): Handle `hbar' cursor.
12066
12067 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
12068 not defined.
12069
120702002-04-18 Richard M. Stallman <rms@gnu.org>
12071
12072 * textprop.c (remove_properties): New arg LIST allows scanning
12073 either a list or a plist.
12074 (interval_has_some_properties_list): New function, like
12075 interval_has_some_properties using list instead of plist.
12076 All callers changed.
12077 (Fremove_list_of_text_properties): New function.
12078 (syms_of_textprop): Defsubr it.
12079
120802002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12081
12082 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
12083
120842002-04-17 Juanma Barranquero <lektu@terra.es>
12085
12086 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
12087
120882002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12089
12090 * window.c (coordinates_in_window): Don't report on margin area
12091 if its width is zero.
12092
120932002-04-16 Jason Rumney <jasonr@gnu.org>
12094
12095 * w32fns.c (Fx_file_dialog): Decode file name before using.
12096
12097 * w32term.c (construct_drag_n_drop): Likewise.
12098
120992002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
12100
12101 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
12102 store load-history in pure space.
12103
12104 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
12105
121062002-04-16 Stefan Monnier <monnier@cs.yale.edu>
12107
12108 * xterm.c (Qlatin_1, Qutf_8): New vars.
12109 (syms_of_xterm): Initialize them.
12110 (XTread_socket): Eliminate incorrect optimization that tried to avoid
12111 decoding the output of X*LookupString.
12112 Always use latin-1 to decode the output of XLookupString.
12113 Try Xutf8LookupString if XmbLookupString failed.
12114
12115 * region-cache.c (new_region_cache): Use BEG.
12116
121172002-04-16 Gerd Moellmann <gerd@gnu.org>
12118
12119 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
12120 configuration files.
12121 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
12122 returns 0.
12123
121242002-04-15 Andreas Schwab <schwab@suse.de>
12125
12126 * config.in: Regenerated using autoheader.
12127
12128 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
12129 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
12130 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
12131 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
12132 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
12133 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
12134 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
12135 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
12136 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
12137 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
12138 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
12139 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
12140 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
12141 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
12142 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
12143 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
12144 STACK_DIRECTION, now set by autoconf.
12145
121462002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12147
12148 * dispnew.c (marginal_area_string): Sort arguments.
12149
12150 * dispextern.h (marginal_area_string): Add prototype.
12151
121522002-04-13 Richard M. Stallman <rms@gnu.org>
12153
12154 * fileio.c (Finsert_file_contents):
12155 Don't call temp_output_buffer_setup--do just part, by hand.
12156
12157 * coding.c (run_pre_post_conversion_on_str):
12158 Don't call temp_output_buffer_setup--do just part, by hand.
12159
12160 * keyboard.c (command_loop_1): Don't call start_hourglass
12161 or cancel_hourglass when executing a macro.
12162
12163 * marker.c (count_markers): New function.
12164
12165 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
12166 grow without limit. Move recently used elements to the front.
12167
121682002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12169
12170 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
12171
121722002-04-12 Gerd Moellmann <gerd@gnu.org>
12173
12174 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
12175 rows marginal areas.
12176 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
12177 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12178
12179 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
12180
121812002-04-12 Dave Love <fx@gnu.org>
12182
12183 * dispnew.c (marginal_area_string): New.
12184
12185 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
12186 (Qleft_margin, Qright_margin): Declare.
12187 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
12188
12189 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
12190 note_mode_line_highlight and extended.
12191
12192 * keyboard.c (Qleft_margin, Qright_margin): Declare.
12193 (make_lispy_event): Deal with mouse events in margins.
12194
121952002-04-12 Stefan Monnier <monnier@cs.yale.edu>
12196
12197 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
12198
12199 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
12200 than deactivating the mark if tmm is set to `lambda'.
12201 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
12202 Use a single event for HELP_EVENT.
12203 (Fexecute_extended_command): Save last_point_position.
12204
122052002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12206
12207 * lisp.h (Fpropertize): Add prototype.
12208
12209 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
12210
122112002-04-10 Colin Walters <walters@verbum.org>
12212
12213 * config.in: Add HAVE_SHARED_GAME_DIR.
12214
12215 * callproc.c: (Vgame_score_directory): New variable.
12216 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
12217
122182002-04-10 Richard M. Stallman <rms@gnu.org>
12219
12220 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
12221
122222002-04-09 Stefan Monnier <monnier@cs.yale.edu>
12223
12224 * minibuf.c (read_minibuf): Use empty_string.
12225 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
12226 Short-circuit the search as soon as it "failed".
12227 (Fall_completions): Allow lambda forms and lists of strings for alist.
12228 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
12229 when require_match is nil.
12230 (Ftest_completion): Rename from `test_completion' and export to elisp.
12231 Call the predicate also when alist is a list.
12232 Obey Vcompletion_regexp_list.
12233 (do_completion, Fminibuffer_complete_and_exit): Use it.
12234 (Fassoc_string): Rename from `assoc_for_completion'.
12235 Allow list of strings as well and export to elisp.
12236
122372002-04-08 Stefan Monnier <monnier@cs.yale.edu>
12238
12239 * puresize.h (BASE_PURESIZE): Increase to 900KB.
12240
122412002-04-08 Juanma Barranquero <lektu@terra.es>
12242
12243 * w32.c (sys_accept): Don't hide variable `s'.
12244
122452002-04-05 Gerd Moellmann <gerd@gnu.org>
12246
12247 * callint.c (Fcall_interactively): Use INTEGERP instead of
12248 NUMBERP for checking Vhistory_length.
12249
122502002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12251
12252 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
12253 Doc fix to reflect it.
12254
122552002-04-04 Richard M. Stallman <rms@gnu.org>
12256
12257 * xdisp.c (display_mode_element): New arg RISKY.
12258 Disregard text props found or specified within a variable
12259 that isn't marked risky-local-variable.
12260 (Qrisky_local_variable): New variable.
12261 (syms_of_xdisp): Init and staticpro it.
12262
122632002-04-04 Stefan Monnier <monnier@cs.yale.edu>
12264
12265 * undo.c (record_point): New fun.
12266 (record_delete, record_insert): Use it.
12267
122682002-04-03 Juanma Barranquero <lektu@terra.es>
12269
12270 * doc.c (Fdocumentation): Add missing parentheses.
12271 (Fdocumentation_property): Likewise.
12272
122732002-04-03 Stefan Monnier <monnier@cs.yale.edu>
12274
12275 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
12276 data is 0, just return nil.
12277
122782002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
12279
12280 * msdos.c (syms_of_msdos): Fix last change with
12281 mouse_autoselect_window.
12282
122832002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12284
12285 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
12286 mouse_autoselect_window.
12287
122882002-04-02 Stefan Monnier <monnier@cs.yale.edu>
12289
12290 * keyboard.c (make_lispy_event): Handle unknown keysyms together
12291 with system-specific keysyms. Use it also for unknown function keys.
12292
12293 * doc.c (reread_doc_file): Return whether reload was attempted.
12294 (Fdocumentation, Fdocumentation_property): Don't try to reload
12295 if the doc is 0 and only ask once.
12296
12297 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
12298
122992002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
12300
12301 * keyboard.c (read_char): If the event was Qselect_window,
12302 restore timer_idleness_start_time to its previous value.
12303
12304 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
12305
123062002-04-01 Stefan Monnier <monnier@cs.yale.edu>
12307
12308 * region-cache.c (new_region_cache): Use BEG.
12309
12310 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
12311 Use BEG and BEG_BYTE.
12312
12313 * doc.c (get_doc_string): Return nil if the location is wrong.
12314 (reread_doc_file): New fun.
12315 (Fdocumentation, Fdocumentation_property):
12316 Call it if get_doc_string fails.
12317 (Fsnarf_documentation): Make it work for a dumped Emacs.
12318
12319 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
12320 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
12321
12322 * charset.c (Fstring): Allow 0 arguments.
12323
12324 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
12325
12326 * process.c (DATAGRAM_CONN_P, list_processes_1)
12327 (Fprocess_datagram_address, Fset_process_datagram_address)
12328 (Fset_network_process_options, server_accept_connection):
12329 Fix some int/Lisp_Object confusions (thank you union types).
12330
123312002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12332
12333 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
12334
12335 * w32term.c: Likewise.
12336 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
12337
12338 * keyboard.c (Qselect_window): New symbol.
12339 (head_table): Use it.
12340 (keys_of_keyboard): Bound select-window event to handle-select-window.
12341 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
12342
12343 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
12344 (last_window): New variable.
12345 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
12346 (note_mouse_movement): Remove reimplemented code in #if 0.
12347 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
12348 Emacs windows.
12349
12350 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
12351
123522002-03-31 Gerd Moellmann <gerd@gnu.org>
12353
12354 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
12355 Callers changed.
12356
123572002-03-30 Richard M. Stallman <rms@gnu.org>
12358
12359 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
12360 loop whenever it stops making progress.
12361
12362 * widget.c (set_frame_size): Don't call change_frame_size.
12363
123642002-03-30 Gerd Moellmann <gerd@gnu.org>
12365
12366 * dispnew.c (direct_output_for_insert):
12367 Call mark_window_display_accurate.
12368
123692002-03-29 Jason Rumney <jasonr@gnu.org>
12370
12371 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
12372
123732002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
12374
12375 * Makefile.in (lread.o): Depend on coding.h.
12376
12377 * lread.c (openp, Fload): Encode the file name before passing it
12378 to `stat', `access', and `emacs_open'.
12379 (openp): GCPRO the encoded file name. Don't recompute Lisp
12380 strings unnecessarily.
12381
123822002-03-29 Kim F. Storm <storm@cua.dk>
12383
12384 * fns.c (Flax_plist_put): Doc fix.
12385
123862002-03-28 Miles Bader <miles@gnu.org>
12387
12388 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
12389
123902002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12391
12392 * process.c (set-network-process-options): Add usage.
12393 (make-network-process): Doc fix.
12394
123952002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
12396
12397 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
12398
123992002-03-26 Richard M. Stallman <rms@gnu.org>
12400
12401 * fns.c (Fsubstring_no_properties): New function.
12402 (Flax_plist_get, Flax_plist_put): New functions.
12403 (syms_of_fns): defsubr them.
12404
12405 * xdisp.c (update_menu_bar): Test only update_mode_lines;
12406 don't test or alter w->update_mode_line.
12407
12408 * window.c (Fdisplay_buffer): Doc fix.
12409
124102002-03-24 Richard M. Stallman <rms@gnu.org>
12411
12412 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
12413
124142002-03-24 Gerd Moellmann <gerd@gnu.org>
12415
12416 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
12417 (Fdefmacro): Handle `(declare ...)'.
12418 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
12419 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
12420
124212002-03-24 Jason Rumney <jasonr@gnu.org>
12422
12423 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
12424 (xbm_file_p): Add prototypes.
12425 (xbm_format, xbm_image_p): Sync with xfns.c.
12426 (reflect_byte): New function.
12427 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
12428 (xbm_load_image): Create bitmaps with a depth of 1.
12429 (init_xfns): Enable XBM images.
12430
124312002-03-23 Jason Rumney <jasonr@gnu.org>
12432
12433 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
12434 correctly. Do not pass up_modifier to keyboard buffer.
12435
12436 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
12437
124382002-03-22 Stefan Monnier <monnier@cs.yale.edu>
12439
12440 * Makefile.in (bootstrapclean): New target.
12441 (bootstrap-temacs, bootstrap-doc): Remove.
12442 (bootstrap-emacs): Use a bog-standard `temacs'.
12443 Don't bother to build a DOC file.
12444
12445 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
12446
12447 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
12448 in temacs even if !CANNOT_DUMP.
12449 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
12450
12451 * alloc.c (check_pure_size): Only output a warning.
12452
124532002-03-22 Jason Rumney <jasonr@gnu.org>
12454
12455 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
12456 supported.
12457
12458 * w32term.c (zv_bits): Declare as short, for word alignment.
12459 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
12460 (syms_of_w32term): Define x-use-underline-position-properties.
12461
12462 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
12463 (clear_image_cache): Block input, fix logic, clear matrices in
12464 all frames that share this cache.
12465
124662002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
12467
12468 * emacs.c (main): Update the Copyright year in the blurb printed
12469 by "emacs --version".
12470
12471 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
12472
12473 * xterm.c (XTread_socket): If XK_ISO_Lock and
12474 XK_ISO_Last_Group_Lock are defined, handle keysyms between
12475 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
12476
124772002-03-21 Kim F. Storm <storm@cua.dk>
12478
12479 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
12480 menu-bar bindings in keymap and local-map properties _are_ used.
12481 But try keymap property first in accordance with 2002-01-03 patch.
12482 Added comment describing why this is not always reliable.
12483 (tool_bar_items): Ditto for tool-bar.
12484
124852002-03-21 Jason Rumney <jasonr@gnu.org>
12486
12487 * w32fns.c (x_clear_image_1): Disable color table code.
12488
124892002-03-21 Kim F. Storm <storm@cua.dk>
12490
12491 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
12492 removed the wrong version of the DEFUN macro; fixed it.
12493
12494 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
12495 Fmember rather than Fmemq).
12496 (Fprovide): Check that subfeatures is a list.
12497
12498 * process.c (QCfeature, QCdatagram): Removed variables.
12499 (QCtype, Qdatagram): New variables.
12500 (network_process_featurep): Removed function.
12501 (Fmake_network_process): Removed :feature check.
12502 Use :type 'datagram instead of :datagram t to create a datagram
12503 socket. This allows us to add other connection types (e.g. raw
12504 sockets) later in a consistent manner.
12505 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
12506 supported subfeatures for feature make-network-process.
12507 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
12508 Intern and staticpro QCtype and Qdatagram.
12509 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
12510
12511 * xfns.c: (QCtype): Remove duplicate declaration and
12512 initialization (is now declared in process.c).
12513
12514 * w32fns.c: (QCtype): Remove duplicate declaration and
12515 initialization (is now declared in process.c).
12516
125172002-03-21 Richard M. Stallman <rms@gnu.org>
12518
12519 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
12520 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
12521 when jumping to `fail' to avoid undoing reg changes in the
12522 last iteration of the loop.
12523 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
12524
12525 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
12526 Depend on process.h.
12527
125282002-03-20 Jason Rumney <jasonr@gnu.org>
12529
12530 Most of the following changes are still conditional on HAVE_IMAGES
12531 which is not set by default on Windows.
12532
12533 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
12534
12535 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
12536 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
12537 (four_corners_best, x_clear_image_1, x_clear_image)
12538 (x_alloc_image_color, postprocess_image)
12539 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
12540 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
12541 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
12542
12543 * w32gui.h (struct XImage): Define.
12544
12545 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
12546 extract mouse co-ordinates.
12547
125482002-03-20 Jason Rumney <jasonr@gnu.org>
12549
12550 * w32.c (init_winsock): Dynamically load new server and UDP
12551 socket functions.
12552 (socket_to_fd): New function.
12553 (sys_socket): Use it.
12554 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
12555 (sys_recvfrom, sys_sendto): New wrapper functions.
12556
12557 * process.c (QCfamily, QCfilter): Remove duplicate declaration
12558 and initialization.
12559
12560 * makefile.w32-in (LIBS): Remove $(WSOCK32).
12561
125622002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
12563
12564 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
12565 Don't use "sun" as a variable, it's a predefined constant on Sun
12566 machines.
12567
125682002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12569
12570 * bytecode.c (Fbyte_code): Revert last change.
12571
125722002-03-19 Kim F. Storm <storm@cua.dk>
12573
12574 * makefile.w32-in (LIBS): Add $(WSOCK32).
12575 From David Ponce <dponce@voila.fr>.
12576
125772002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12578
12579 * process.c (wait_reading_process_input): Move variables `pname'
12580 and `pnamelen' down where they are used.
12581
12582 * bytecode.c (Fbyte_code): Discard unused computed value to
12583 prevent gcc warning.
12584
12585 * lisp.h (Fplist_member): Add prototype.
12586
125872002-03-18 Kim F. Storm <storm@cua.dk>
12588
12589 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
12590 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
12591
12592 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
12593 Remove explicit GNU_LINUX settings for datagram support.
12594
125952002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12596
12597 * process.c (Fmake_network_process): Remove unused variable `sa'.
12598 Doc fix. Add usage:.
12599 (set_socket_options): Remove unused variables `optnum' and `opttype'.
12600
126012002-03-17 Richard M. Stallman <rms@gnu.org>
12602
12603 * xdisp.c (cursor_type_changed): New variable.
12604 (redisplay_internal): Redisplay all windows if cursor_type_changed.
12605 Clear it when clearing windows_or_buffers_changed.
12606 (try_cursor_movement, redisplay_window, try_window_id)
12607 (try_window_reusing_current_matrix): Test cursor_type_changed
12608 along with windows_or_buffers_changed.
12609
12610 * window.h (cursor_type_changed): New variable.
12611
12612 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
12613 not update_mode_lines, and always set it to 1.
12614
12615 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
12616 if no frames needed redrawing.
12617
126182002-03-17 Kim F. Storm <storm@cua.dk>
12619
12620 The following changes add support for network server processes,
12621 datagram connections, and local (unix) sockets.
12622
12623 * process.h (struct Lisp_Process): New member log.
12624 Doc fix: Member command used to indicate stopped network process.
12625 Doc fix: Member childp contains plist for network process.
12626 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
12627
12628 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
12629 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
12630 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
12631 New variables.
12632 (NETCONN1_P): New macro.
12633 (DATAGRAM_SOCKETS): New conditional symbol.
12634 (datagram_address): New array.
12635 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
12636 (status_message): Use concat3.
12637 (Fprocess_status): Add `listen' status to doc string. Return `stop'
12638 for a stopped network process.
12639 (Fset_process_buffer): Update contact plist for network process.
12640 (Fset_process_filter): Ditto. Don't enable input for stopped
12641 network processes. Server must listen, even if filter is t.
12642 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
12643 New functions.
12644 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
12645 (Fprocess_contact): Added KEY argument. Handle datagrams.
12646 (list_processes_1): Optionally show only processes with the query
12647 on exit flag set. Dynamically adjust column widths. Omit tty
12648 column if not needed. Report stopped network processes.
12649 Identify server and datagram network processes.
12650 (Flist_processes): New optional arg `query-only'.
12651 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
12652 (conv_lisp_to_sockaddr, set_socket_options)
12653 (network_process_featurep, unwind_request_sigio): New helper functions.
12654 (Fprocess_datagram_address, Fset_process_datagram_address):
12655 (Fset_network_process_options): New lisp functions.
12656 (Fopen_network_stream): Removed. Now defined in simple.el.
12657 (Fmake_network_process): New lisp function. Code is based on previous
12658 Fopen_network_stream, but heavily reworked with new property list based
12659 argument list, support for datagrams, server processes, and local
12660 sockets in addition to old client-only functionality.
12661 (server_accept_connection): New function.
12662 (wait_reading_process_input): Use it to handle incoming connects.
12663 Do not enable input on a new connection if process is stopped.
f63fd14e 12664 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
12665 (send_process): Handle datagram sockets.
12666 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
12667 network process is indicated by setting command field to t .
12668 (Fprocess_send_eof): No-op if datagram connection.
12669 (Fstatus_notify): Don't read input for a stream server socket or a
12670 stopped network process.
12671 (init_process): Initialize datagram_address array.
12672 (syms_of_process): Intern and staticpro new variables, defsubr new
12673 functions.
12674
126752002-03-16 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32fns.c (w32_to_all_x_charsets): Return correct type in
12678 startup case.
12679
126802002-03-16 Richard M. Stallman <rms@gnu.org>
12681
12682 * xdisp.c (redisplay_internal, redisplay_windows):
12683 Use list_of_error to call internal_condition_case_1.
12684 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
12685 so as to catch all errors with no possibility of debugger redisplay.
12686 (list_of_error): New variable.
12687 (syms_of_xdisp): Init and staticpro it.
12688
12689 * print.c (print_object): Delete `\ ' from printed rep of frame.
12690
126912002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
12692
12693 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
12694 until its implementation is fixed.
12695
126962002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12697
12698 * xfns.c (png_load): Remove unused variable `gamma_str'.
12699
127002002-03-14 Richard M. Stallman <rms@gnu.org>
12701
12702 * xfns.c (x_real_positions): Handle failure in XQueryTree.
12703
127042002-03-14 Miles Bader <miles@gnu.org>
12705
12706 * intervals.c (adjust_for_invis_intang): New function.
12707 (set_point_both): Use `adjust_for_invis_intang' to do most of the
12708 work for dealing with invisible+intangible regions. Do so before
12709 and after both forward and backward movements, to handle both
12710 front-sticky and rear-sticky cases.
12711 * textprop.c (text_property_stickiness): Function moved here from
12712 `editfns.c'.
12713 * intervals.h (text_property_stickiness): New declaration.
12714 * editfns.c (char_property_eq): Function removed.
12715 (text_property_stickiness): Function moved to `textprop.c'.
12716
127172002-03-13 Jason Rumney <jasonr@gnu.org>
12718
12719 * config.in: Add STRFTIME_NO_POSIX2.
12720
12721 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
12722 and %OX when underlying strftime does not.
12723
127242002-03-13 Stefan Monnier <monnier@cs.yale.edu>
12725
12726 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
12727 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
12728 line) to avoid annoying flicker.
12729 (xm_scroll_callback): Get rid of the now unnecessary kludge.
12730 (XTread_socket): Mark it static.
12731
12732 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
12733
127342002-03-13 Kim F. Storm <storm@cua.dk>
12735
12736 * puresize.h (BASE_PURESIZE): Increase to 775000.
12737
127382002-03-12 Juanma Barranquero <lektu@terra.es>
12739
12740 * editfns.c (syms_of_editfns): Fix typo.
12741
127422002-03-12 Gerd Moellmann <gerd@gnu.org>
12743
12744 * xsmfns.c: Include stdio.h because termhooks.h needs it.
12745 Include termopt.h for interrupt_input.
12746
127472002-03-11 Andreas Schwab <schwab@suse.de>
12748
12749 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
12750
127512002-03-11 Gerd Moellmann <gerd@gnu.org>
12752
12753 * xterm.c (note_mouse_movement): Put code for
12754 x_autoselect_window_p in #if 0.
12755
12756 * lread.c (Fload): Don't assume that message_with_string uses the
12757 string it is given like a C string.
12758
127592002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12760
12761 * xterm.h (x_session_check_input, x_session_initialize): Declared.
12762
12763 * xterm.c: (XTread_socket): Add call to x_session_check_input and
12764 x_session_have_connection.
12765 (x_initialize): Add call to x_session_initialize.
12766
12767 * termhooks.h (enum event_kind): Add save_session_event.
12768
12769 * keyboard.c: Add Emacs event save_session_event.
12770
12771 * emacs.c (main): Add call to syms_of_xsmfns.
12772
12773 * lisp.h: Declare syms_of_xsmfns as extern.
12774
12775 * config.in: Add HAVE_X_SM.
12776
12777 * Makefile.in (LIBXT): Add -lSM -lICE
12778 if HAVE_X_SM and not USE_X_TOOLKIT.
12779 (XOBJ): New file xsmfns.c added.
12780
12781 * xsmfns.c: New file for X session management.
12782
127832002-03-09 Jason Rumney <jasonr@gnu.org>
12784
12785 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
12786 read-only when setting modified time.
12787
127882002-03-08 Gerd Moellmann <gerd@gnu.org>
12789
12790 * xdisp.c (move_it_vertically_backward): At the end of the function,
12791 when moving forward by lines, treat terminal frames specially.
12792
12793 * keyboard.c (echo_char): Make sure to add a separator between
12794 keys even if echo_dash hasn't been called.
12795
12796 * xdisp.c: Use new string macros.
12797 (update_echo_area): Pass number of bytes to message3 instead of
12798 number of chars.
12799 (set_message_1): Don't access a string's size_byte directly.
12800 (decode_mode_spec_coding): Use number of bytes of eoltype string
12801 instead number of chars.
12802
12803 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
12804
128052002-03-08 Juanma Barranquero <lektu@terra.es>
12806
12807 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
12808 24-bit.
12809
128102002-03-06 Jason Rumney <jasonr@gnu.org>
12811
12812 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
12813
128142002-03-06 Gerd Moellmann <gerd@gnu.org>
12815
12816 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
12817 (cancel_echoing, echo_length, echo_truncate): Changed to
12818 work with new kboard definition.
12819 (echo_now): Use message3_nolog instead of message2_nolog.
12820
12821 * alloc.c (mark_kboards): Mark echo_string.
12822
12823 * keyboard.h (ECHOBUFSIZE): Removed.
12824 (struct kboard): Member echoptr removed, member echobuf renamed
12825 to echo_string.
12826
12827 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
12828 message3 instead of message2 to display the message using STRING's
12829 text properties.
12830
128312002-03-05 Andreas Schwab <schwab@suse.de>
12832
12833 * xdisp.c (hscroll_margin): Change to EMACS_INT.
12834
128352002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
12836
12837 * frame.c (default-frame-alist): Explain that setting it doesn't
12838 affect existing frames.
12839
128402002-03-05 Stefan Monnier <monnier@cs.yale.edu>
12841
12842 * indent.c (skip_invisible): Fix my brain fart.
12843
12844 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
12845
128462002-03-04 Stefan Monnier <monnier@cs.yale.edu>
12847
12848 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
12849 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
12850 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
12851 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
12852 and variables to use EMACS_INT instead of just int.
12853
12854 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
12855
128562002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
12857
12858 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
12859 environment, pass it down with corrected value.
12860
128612002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12862
12863 * lread.c (read_filtered_event): Do not call start_hourglass
12864 before returning.
12865
128662002-03-04 Juanma Barranquero <lektu@terra.es>
12867
12868 * w32term.c (x_display_and_set_cursor): Fix typo.
12869
128702002-03-03 Richard M. Stallman <rms@gnu.org>
12871
12872 * fileio.c (Fmake_temp_name): Doc fix.
12873
128742002-03-03 Gary Wong <gtw@gnu.org>
12875
12876 * termcap.c [!emacs]: Replace ospeed for building standalone
12877 libtermcap, for binary compatibility.
12878
12879 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
12880
128812002-03-03 Richard M. Stallman <rms@gnu.org>
12882
12883 * xrdb.c (file_p): Rename arg `path' to `filename'.
12884
12885 * abbrev.c (Fexpand_abbrev): Increment plist as use count
12886 only if it is an integer.
12887
12888 * xfns.c (png_load): Set screen_gamma based on f->gamma.
12889 If png_get_sRGB gives an answer, call png_set_gamma
12890 using the default image gamma value.
12891
12892 * lread.c (read1): When reading from a file, default string to
12893 multibyte only if it has some multibyte characters.
12894
12895 * print.c (print_object): Output multibyte chars 128...255
12896 using \x even if ! print_escape_multibyte.
12897
12898 * xdisp.c (display_mode_element): Move the places where
12899 bytepos, charpos, this, and lisp_string are set.
12900 Use lisp_string to set bytepos.
12901
12902 * xdisp.c (redisplay_internal):
12903 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
12904
12905 * xdisp.c (display_mode_element): Merge properties specified with
12906 :propertize onto those that come with the string.
12907
129082002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
12909
12910 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
12911 automatic-hscrolling. Users changed.
12912 <hscroll-margin>: Renamed from automatic-hscroll-margin.
12913 Users changed.
12914 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
12915
129162002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12917
12918 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
12919
129202002-03-02 Kim F. Storm <storm@cua.dk>
12921
12922 * window.c (Fminibuffer_selected_window): New function.
12923 (syms_of_window): Defsubr it.
12924
129252002-03-01 Kim F. Storm <storm@cua.dk>
12926
12927 * window.h (struct window): New member phys_cursor_width.
12928
12929 * window.c (make_window, replace_window): Init phys_cursor_width.
12930
12931 * xterm.c (x_display_and_set_cursor): Blink box cursor using
12932 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12933
12934 * w32term.c (x_display_and_set_cursor): Blink box cursor using
12935 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12936
12937 * lisp.h (GCPRO6): New macro.
12938
12939 * process.c (Fopen_network_stream): Use GCPRO6.
12940
129412002-03-01 Kim F. Storm <storm@cua.dk>
12942
12943 * process.c (Qconnect, Qfailed): New variables.
12944 (syms_of_process): Intern and staticpro them.
12945 (Fprocess_status): Document connect and failed return values.
12946 [NON_BLOCKING_CONNECT]: New conditional.
12947 (connect_wait_mask, num_pending_connects): New variables.
12948 (status_message): Convert Qfailed status.
12949 (Fopen_network_stream): Added support for non-blocking connect.
12950 New optional args: filter, sentinel, non_blocking. Doc updated.
12951 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
12952 (deactivate_process): Handle pending non-blocking connect.
12953 (wait_reading_process_input): Poll for status of non-blocking
12954 connects. Exec sentinel directly when connect succeeds.
12955 (status_notify): Don't read process output if not yet connected.
12956
129572002-02-28 Kim F. Storm <storm@cua.dk>
12958
12959 * window.c: (minibuf_selected_window): Renamed from
12960 Vminibuf_selected_window. Users changed.
12961 (syms_of_window): Staticpro it.
12962
129632002-02-26 Kim F. Storm <storm@cua.dk>
12964
12965 The following changes add a new Vminibuf_selected_window variable
12966 which is similar to Vminibuf_scroll_window, but which is only set
12967 on entry to the minibuffer (from a non-minibuffer window):
12968
12969 * window.c: (Vminibuf_selected_window): New variable.
12970 (struct save_window_data): New member minibuf_selected_window.
12971 (Fset_window_configuration): Restore Vminibuf_selected_window.
12972 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
12973 Set minibuf_scroll_window member to nil if minibuf_level is 0.
12974 (compare_window_configurations): Compare minibuf_selected_window.
12975
12976 * window.h: (Vminibuf_selected_window): Declare extern.
12977
12978 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
12979 entry to minibuffer or on entry from a non-minibuffer window.
12980
12981 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
12982 Vminibuf_selected_window instead of Vminibuf_scroll_window.
12983
12984 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
12985 instead of Vminibuf_scroll_window when deciding in which window
12986 the region should be highlighted. Consequently, the region remains
12987 highlighteded even when a completion buffer is also displayed.
12988
129892002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12990
12991 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12992
12993 * xselect.c (Qcompound_text_with_extensions): Renamed from
12994 Qcompound_text_no_extensions.
12995 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12996
129972002-02-26 Juanma Barranquero <lektu@terra.es>
12998
12999 * w32proc.c (syms_of_ntproc): Doc fix.
13000
130012002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13002
13003 * intervals.h: Include "dispextern.h" unconditionally.
13004
130052002-02-24 Jason Rumney <jasonr@gnu.org>
13006
13007 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
13008 and disp-table.elc.
13009 (lisp): Add emacs-lisp/backquote.elc.
13010
130112002-02-24 Kim F. Storm <storm@cua.dk>
13012
13013 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
13014 The validation of the event type was too strict as it didn't
13015 allow string events; buffer names are used in bindings for
13016 menu-bar-select-buffer (see `menu-bar-update-buffers').
13017
130182002-02-23 Kim F. Storm <storm@cua.dk>
13019
13020 The following changes rework my patch of 2002-02-06 which
13021 added command remapping by entering the commands directly into
13022 the keymaps. Now, command remapping uses an explicit `remap'
13023 prefix in the keymaps, i.e. [remap COMMAND].
13024
13025 * keymap.c (Qremap, remap_command_vector): New variables.
13026 (is_command_symbol): Removed function.
13027 (Fdefine_key): No longer accept a symbol for KEY.
13028 Added validation of [remap COMMAND] argument for KEY.
13029 The DEF is no longer required to be a symbol when remapping a command.
13030 (Fremap_command): New function to remap command through keymaps.
13031 (Flookup_key): Perform command remapping initiated by
13032 Fremap_command directly for speed.
13033 (Fkey_binding): Use Fremap_command for command remapping.
13034 (where_is_internal): Handle new command remapping representation.
13035 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
13036 staticpro them. Defsubr Fremap_command.
13037
13038 * keymap.h (Fremap_command): Declare extern.
13039 (is_command_symbol): Remove extern.
13040
13041 * keyboard.c (command_loop_1): Use Fremap_command for command
13042 remapping; now try command remapping for all symbols.
13043
130442002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13045
13046 * coding.h (run_pre_post_conversion_on_str): Add prototype.
13047
130482002-02-23 Jason Rumney <jasonr@gnu.org>
13049
13050 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
13051 on the string before encoding it.
13052 (Fw32_get_clipboard_data): Run post-read-conversion on the string
13053 after decoding it.
13054
13055 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
13056
130572002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13058
13059 * w32term.c (enter_timestamp): Remove unused static variable to
13060 prevent warning.
13061
13062 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
13063
130642002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13065
13066 * w16select.c (Fw16_get_clipboard_data): Fix last change.
13067
13068 * xselect.c (selection_data_to_lisp_data): Fix last change.
13069
130702002-02-22 Jason Rumney <jasonr@gnu.org>
13071
13072 * w32term.h (struct w32_output): New member menu_command_in_progress.
13073
13074 * w32menu.c (menubar_selection_callback): Free the menu and
13075 clear the menu_command_in_progress flag.
13076
13077 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
13078 (menu_free_timer): New variable.
13079 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
13080 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
13081 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
13082 menu command is in progress.
13083 <WM_COMMAND>: Set the menu_command_in_progress flag.
13084 Kill any menu_free_timer that is running.
13085
13086 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
13087 Call ExtTextOutA rather than ExtTextOut.
13088
130892002-02-22 Eli Zaretskii <eliz@gnu.org>
13090
13091 * puresize.h (BASE_PURESIZE): Increase to 755000.
13092
130932002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13094
13095 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
13096 on the string before encoding it.
13097 (Fw16_get_clipboard_data): Run post-read-conversion on the string
13098 after decoding it.
13099
131002002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13101
13102 Support for ICCCM Extended Segments in X selections:
13103
13104 * xselect.c <Qcompound_text_no_extensions>: New variable.
13105 (syms_of_xselect): Intern and staticpro it.
13106 (selection_data_to_lisp_data): Run post-read-conversion on decoded
13107 selection text.
13108 (lisp_data_to_selection_data): If next-selection-coding-system is
13109 compound-text-no-extensions, set the type of selection to be
13110 compound-text.
13111
13112 * xterm.h (x_encode_text): Update prototype.
13113
13114 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
13115 callers changed. If SELECTIONP is non-zero, run the
13116 pre-write-conversion function before encoding the selection text.
13117
131182002-02-21 Kim F. Storm <storm@cua.dk>
13119
13120 * frame.c (syms_of_frame): Change mouse-highlight default to t.
13121
13122 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
13123 Correct composing of language-change event.
13124
131252002-02-20 Kim F. Storm <storm@cua.dk>
13126
13127 * keyboard.c (menu_bar_items): Don't include keymap or local-map
13128 bindings at PT when building menu (the menu is not updated often
13129 enough for this to work reliable).
13130 (tool_bar_items): Likewise.
13131 (current_active_maps): Removed unused (and buggy) function.
13132
131332002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13134
13135 * xfns.c (gif_load): Use correct width and height for GIF images.
13136
131372002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
13138
13139 * floatfns.c (Fatan): Accept an optional second arg and call
13140 atan2 if passed 2 args.
13141
131422002-02-18 Jason Rumney <jasonr@gnu.org>
13143
13144 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
13145
131462002-02-17 Jason Rumney <jasonr@gnu.org>
13147
13148 * w32term.c (x_autoselect_window_p): New variable.
13149 (syms_of_w32term): DEFVAR_BOOL and initialize it.
13150 (note_mouse_movement): Use it.
13151
13152 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
13153
13154 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
13155
13156 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13157 New variables.
13158 (syms_of_w32fns): Intern and staticpro them.
13159 (x_frame_parms) <"fullscreen">: New parameter.
13160 (x_fullscreen_move, x_set_fullscreen): New functions.
13161 (x_set_frame_parameters): Support Qfullscreen.
13162 (x_real_positions): Save x/y_pixels_diff frame params.
13163 (x_figure_window_size): Support full-screen frames.
13164 (Fx_create_frame): Default the fullscreen parameter.
13165
13166 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
13167 (x_fullscreen_adjust): New functions.
13168 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
13169 fullscreen. Call x_check_fullscreen_move, and set the
13170 want_fullscreen member of output_data.w32
13171 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
13172
13173 * w32term.h: New enum for FULLSCREEN_* constants.
13174 (struct w32_output): New members want_fullscreen, x_pixels_diff,
13175 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
13176 (x-fullscreen-adjust): New prototype.
13177
131782002-02-17 Kim F. Storm <storm@cua.dk>
13179
13180 * frame.c: (Vmouse_highlight): New variable.
13181 (syms_of_frame): DEFVAR_LISP it.
13182
13183 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 13184
048addec 13185 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 13186
048addec
JD
13187 * xterm.c (disable_mouse_highlight): Removed variable.
13188 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13189 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13190 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
13191 and on after keyboard input.
13192 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 13193
048addec 13194 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 13195
048addec
JD
13196 * msdos.c (disable_mouse_highlight): Removed variable.
13197 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13198 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13199 (internal_terminal_init): Initialize mouse_face_hidden.
13200 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
13201 and on after keyboard input.
4f1b1854 13202
048addec 13203 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 13204
048addec
JD
13205 * w32term.c (disable_mouse_highlight): Removed variable.
13206 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
13207 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13208 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
13209 and on after keyboard input.
13210 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 13211
048addec 132122002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 13213
048addec
JD
13214 * msdos.c (last_mouse_window): New variable.
13215 (dos_rawgetc): Fix last change--if the mouse is in the same window
13216 as recorded in last_mouse_window, don't select this window.
5cb6905d 13217
048addec 13218 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 13219
048addec
JD
13220 * msdos.c (x_autoselect_window_p): New variable.
13221 (syms_of_msdos): Defvar it.
13222 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
13223 which the last mouse movement occured, unless it is already selected.
437dfb9f 13224
048addec
JD
13225 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
13226 New variables.
13227 (syms_of_xdisp): DEVFAR them.
13228 (hscroll_window_tree): Use automatic_hscroll_margin and
13229 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 13230
048addec 132312002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 13232
048addec
JD
13233 * xterm.c (x-autoselect-window): New variable.
13234 (note_mouse_movement): Use it.
9f696a00 13235
048addec 13236 * keyboard.c: Do not include "systime.h" twice.
d57966d7 13237
048addec 132382002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 13239
bfa02563 13240 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 13241
048addec 13242 * alloc.c (NSTATICS): Increase to 1280.
74779f52 13243
048addec 132442002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 13245
048addec 13246 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 13247
048addec
JD
13248 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
13249 (Vx_super_keysym): New variables.
13250 (syms_of_xterm): DEFVAR_LISP them.
13251 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
13252 variables to determine which keys to use for the various modifiers.
a474d59c 13253
048addec 132542002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 13255
048addec
JD
13256 * window.c: (Vmode_line_in_non_selected_windows): Removed.
13257 (mode_line_in_non_selected_windows): New variable.
13258 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 13259
048addec
JD
13260 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
13261 Use mode_line_in_non_selected_windows.
13262 (mode_line_in_non_selected_windows): Declare extern.
13263 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 13264
048addec 132652002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 13266
048addec
JD
13267 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
13268 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
13269 (Fclear_this_command_keys): Doc fixes.
2d10309f 13270
048addec
JD
13271 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
13272 (update_face_from_frame_parameter): Increment face_change_count
13273 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 13274
048addec
JD
13275 * xdisp.c (QCpropertize): New variable.
13276 (mode_line_proptrans_alist): New variable.
13277 (display_mode_element): New arg PROPS; all calls changed.
13278 Implement this, for strings.
13279 Handle literal output of strings by sharing the
13280 main-line code for strings, using local var `literal'.
13281 Handle :propertize feature.
13282 (syms_of_xdisp): Initialze and staticpro QCpropertize and
13283 mode_line_proptrans_alist.
0b1e6b54 13284
048addec 132852002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 13286
048addec
JD
13287 * window.c: (Vmode_line_in_non_selected_windows): New variable.
13288 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 13289
048addec
JD
13290 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
13291 (CURRENT_MODE_LINE_FACE_ID): Use it.
13292 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 13293
048addec
JD
13294 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
13295 to get mode line face.
e17144de 13296
048addec 132972002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13298
048addec
JD
13299 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
13300 variables; cus-start.el doesn't need them anymore.
44368f8f 13301
048addec 133022002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 13303
048addec
JD
13304 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
13305 reduction. This fixes a display problem where stray newlines were
13306 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 13307
048addec 133082002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13309
048addec 13310 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 13311
048addec 13312 * xdisp.c (display_mode_lines): Fix last change.
453c5510 13313
048addec 133142002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 13315
048addec
JD
13316 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
13317 match each other.
13318 (w32_load_system_font): Prevent Cleartype fonts from loading.
13319 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 13320
048addec 133212002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 13322
048addec
JD
13323 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
13324 (CURRENT_MODE_LINE_HEIGHT): Use it.
13325 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13326
048addec
JD
13327 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
13328 (pos_visible_p, handle_face_prop): Likewise.
13329 (display_mode_lines): Likewise, but for the real selected window.
13330 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13331
048addec
JD
13332 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
13333 in non-selected windows.
13334 (realize_basic_faces): Realize it.
13335 (syms_of_term): Intern and staticpro it.
308dd672 13336
048addec 133372002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 13338
048addec
JD
13339 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
13340 Changed mail addresses to emacs-devel@gnu.org.
308dd672 13341
048addec 133422002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 13343
048addec
JD
13344 * fileio.c (Fsubstitute_in_file_name): If the file name includes
13345 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 13346
048addec 13347 * floatfns.c (Fround): Doc fix.
3c1e6b46 13348
048addec 133492002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 13350
048addec 13351 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 13352
048addec 133532002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 13354
048addec 13355 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 13356
048addec 133572002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 13358
048addec
JD
13359 * keymap.c (where_is_internal): Only check whether definition is
13360 remapped if it fulfills is_command_symbol.
0065bb74 13361
048addec 133622002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 13363
048addec 13364 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 13365
048addec 13366 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 13367
048addec 133682002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 13369
048addec
JD
13370 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
13371 defining command remapping. Doc updated.
13372 (Flookup_key): Remap command through keymap if KEY is a symbol.
13373 (is_command_symbol): New function.
13374 (Fkey_binding): Use it. New optional argument NO-REMAP.
13375 Doc updated. Callers changed. Perform command remapping via
13376 recursive call unless that arg is non-nil.
13377 (where_is_internal): New argument no_remap. Callers changed.
13378 Call recursively to find original key bindings for a remapped
13379 comand unless that arg is non-nil.
13380 (Fwhere_is_internal): New optional argument NO-REMAP.
13381 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 13382
048addec
JD
13383 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
13384 (is_command_symbol): Added prototype.
0d8466cc 13385
048addec
JD
13386 * keyboard.c (Vthis_original_command): New variable.
13387 (syms_of_keyboard): DEFVAR_LISP it.
13388 (command_loop_1): Set it, and perform command remapping.
15fff01d 13389
048addec 133902002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 13391
048addec 13392 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 13393
048addec 133942002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 13395
048addec 13396 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 13397
048addec 133982002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 13399
048addec 13400 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 13401
048addec 134022002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 13403
048addec 13404 * filelock.c (S_ISLNK): Define if not defined.
3a232704 13405
048addec 134062002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 13407
048addec 13408 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 13409
048addec
JD
13410 * lread.c (read1): Redesign strategy for force_multibyte and
13411 force_singlebyte. Now is_multibyte records whether read_buffer
13412 is multibyte. Encountering any multibyte character makes it so.
4e02881b 13413
048addec 134142002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 13415
048addec
JD
13416 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
13417 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 13418
048addec 134192002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 13420
048addec
JD
13421 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
13422 latter never being defined on GNU/Linux.
749f499f 13423
048addec 134242002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 13425
048addec
JD
13426 * xfaces.c (realize_default_face): Don't set the weight and slant of
13427 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 13428
048addec 134292002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 13430
048addec
JD
13431 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
13432 Call cancel_hourglass unconditionally.
d0fd26dd 13433
048addec
JD
13434 * eval.c (Fsignal): Remove duplicated declaration of
13435 the variable `display_hourglass_p'.
b4c45162 13436
048addec 134372002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 13438
048addec 13439 * editfns.c (region_limit): Nicer error message.
c95eaa61 13440
048addec
JD
13441 * coding.c (decode_composition_emacs_mule):
13442 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 13443
048addec
JD
13444 * callint.c (check_mark): New arg to specify clearer error message.
13445 Callers changed.
c95eaa61 13446
048addec 134472002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 13448
048addec 13449 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 13450
048addec 134512002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 13452
048addec
JD
13453 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
13454 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
13455 Fix doc-strings.
c95eaa61 13456
048addec 134572002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 13458
048addec 13459 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 13460
048addec
JD
13461 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
13462 and scroll_up_aggressively.
c95eaa61 13463
048addec 134642002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 13465
048addec 13466 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 13467
048addec 134682002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 13469
048addec
JD
13470 * textprop.c (Fnext_property_change, Fnext_single_property_change)
13471 (Fprevious_property_change, Fprevious_single_property_change):
13472 Stay within the narrowed-buffer boundaries.
e2c3786a 13473
048addec 134742002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 13475
048addec
JD
13476 * term.c (Ftty_display_color_cells): New function.
13477 (syms_of_term): Defsubr it.
13478 (Ftty_display_color_cells, Ftty_display_color_p): Change the
13479 argument name to DISPLAY. Doc fix.
bf794306 13480
048addec
JD
13481 * dispextern.h: Add prototype for set_tty_color_mode and
13482 tty_setup_colors.
bf794306 13483
048addec 134842002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 13485
048addec
JD
13486 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
13487 If region left to draw is not what was expected, mark the frame as
13488 garbaged.
62582985 13489
048addec
JD
13490 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
13491 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 13492
048addec 134932002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 13494
048addec
JD
13495 * w32term.c (x_update_window_begin): Only hide caret if
13496 w32_use_visible_system_caret is set.
13497 (x_update_window_end): Only show caret if
13498 w32_use_visible_system_caret is set.
13499 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 13500
048addec 13501 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 13502
048addec 135032002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 13504
048addec
JD
13505 * unexelf.c (unexec): Define n so as to cause compilation error
13506 for the code where people have often written n instead of nn.
1e9a6186 13507
048addec 13508 * .gdbinit (hookpost-run): Defined.
1e9a6186 13509
048addec 135102002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 13511
048addec 13512 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 13513
048addec 135142002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 13515
048addec
JD
13516 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
13517 if fullscreen is being set.
7c75be36 13518
048addec 135192002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 13520
048addec
JD
13521 * minibuf.c (Fminibuffer_contents)
13522 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
13523 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 13524
048addec 135252002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 13526
048addec 13527 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 13528
048addec 135292002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 13530
048addec
JD
13531 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
13532 height before comparison.
13533 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 13534
048addec 135352002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 13536
048addec
JD
13537 * w32term.c (w32_system_caret_width): Remove.
13538 (w32_use_visible_system_caret): New user flag.
13539 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
13540 Windows reports a screen reader running.
13541 (x_update_window_begin): Hide the system caret.
13542 (x_update_window_end): Show the system caret.
13543 (x_display_and_set_cursor): Don't draw a cursor when
13544 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 13545
048addec
JD
13546 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
13547 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
13548 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
13549 the user requests it. Use system default width when creating.
13550 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 13551
048addec
JD
13552 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
13553 New window messages.
905cc05a 13554
048addec 135552002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 13556
048addec 13557 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 13558
048addec 135592002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 13560
048addec 13561 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 13562
048addec 135632002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 13564
048addec 13565 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 13566
048addec 135672002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 13568
048addec
JD
13569 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
13570 that Windows returns. If a double check fails, try to guess how
13571 ExtTextOut is going to act.
4d0fa4f3 13572
048addec
JD
13573 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
13574 in place of stricmp.
13575 (w32_list_synthesized_fonts): Removed.
13576 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
13577 (struct enumfont_t): New element; list.
13578 (enum_font_cb2): List all style and charset variations of a font.
13579 (Fw32_select_font): New optional argument; include_proportional.
13580 Exclude vertical fonts. Exclude proportional fonts unless
13581 include_proportional is non-nil.
13582 (w32_enable_synthesized_fonts): Change to a boolean.
13583 (Fw32_send_sys_command): Doc fix.
493faf20 13584
048addec 135852002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 13586
048addec
JD
13587 * dispnew.c (update_frame): Move the variable `tem' to the block
13588 where it is used.
4971e491 13589
048addec 135902002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 13591
048addec
JD
13592 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
13593 call to face-set-after-frame-default.
4971e491 13594
048addec 135952002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 13596
048addec
JD
13597 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
13598 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 13599
048addec 136002002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 13601
048addec
JD
13602 * window.c (enlarge_window): When exceeding size of parent,
13603 directly delete all the siblings instead of trying to resize it.
201c831a 13604
048addec 136052002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 13606
048addec 13607 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 13608
048addec 136092002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 13610
048addec 13611 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 13612
048addec 136132002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 13614
048addec
JD
13615 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
13616 is invisible. This can happen if cursor is on top line of a
13617 window, and we switch to a buffer with a header line.
d77fbc16 13618
048addec 13619 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 13620
048addec 136212002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 13622
048addec
JD
13623 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
13624 `dont_resize' only when used.
61e3b944 13625
048addec 13626 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 13627
048addec 136282002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 13629
048addec
JD
13630 * xdisp.c (display_mode_element): When computing charpos, depend
13631 on multibyteness of elt, not the text in field.
8af01033 13632
048addec 136332002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 13634
048addec
JD
13635 * buffer.c (Fkill_all_local_variables):
13636 Increment `update_mode_lines' only once.
7363986a 13637
048addec 136382002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 13639
048addec
JD
13640 * lisp.h (adjust_after_replace_noundo)
13641 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 13642
048addec 13643 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 13644
048addec 136452002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 13646
048addec
JD
13647 Support for the --color command-line argument and tty-color-mode
13648 frame parameter:
f1a85b89 13649
048addec
JD
13650 * term.c (tty_default_color_capabilities, tty_setup_colors)
13651 (set_tty_color_mode): New functions.
13652 (term_init): Call tty_default_color_capabilities.
13653 (Qtty_color_mode_alist): New variable.
13654 (syms_of_term): Intern and staticpro it.
f1a85b89 13655
048addec
JD
13656 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
13657 frames.
13658 (do_switch_frame): For termcap frames, switch the tty
13659 color mode as specified by the frame's parameters.
13660 (Qtty_color_mode): New variable.
13661 (syms_of_frame): Intern and staticpro it.
3a62677f 13662
048addec
JD
13663 * emacs.c (USAGE2): Add the --color option.
13664 (standard_args): Ditto.
72244db2 13665
048addec
JD
136662002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13667
13668 * xterm.h (struct x_output): New members want_fullscreen,
13669 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
13670 y_pixels_outer_diff.
13671 New enum for FULLSCREEN_* constants.
13672 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
13673 is NULL.
13674 (x_fullscreen_adjust): Add prototype.
3a62677f 13675
048addec
JD
13676 * emacs.c (USAGE2): Add the new full-screen arguments.
13677 (standard_args): Ditto.
3a62677f 13678
048addec
JD
13679 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13680 New variables.
13681 (syms_of_xfns): Intern and staticpro them.
13682 (x_frame_parms) <"fullscreen">: New parameter.
13683 (x_fullscreen_move, x_set_fullscreen): New functions.
13684 (x_set_frame_parameters): Support for Qfullscreen.
13685 (x_real_positions): More accurate computation of the frame position.
13686 (x_figure_window_size): Support full-screen frames.
13687 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 13688
048addec
JD
13689 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
13690 (XTread_socket) <Expose>: Call x_check_fullscreen.
13691 <ConfigureNotify>: Don't resize to fullscreen.
13692 Call x_check_fullscreen_move, and set the want_fullscreen member of
13693 output_data.x.
3a62677f 13694
048addec 136952002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 13696
048addec
JD
13697 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
13698 for mice with more than 3 buttons.
b8523839 13699
048addec
JD
13700 * w32term.c (parse_button): New parameter xbutton. Callers changed.
13701 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 13702
048addec
JD
13703 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
13704 (syms_of_w32fns): DEFVAR_BOOL it.
13705 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 13706
048addec 137072002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 13708
048addec 13709 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 13710
048addec 137112002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 13712
048addec 13713 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 13714
048addec 137152002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 13716
048addec
JD
13717 * .gdbinit (xbuffer): Remove address operator since data is now a
13718 pointer.
c93674bb 13719
048addec 137202002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 13721
048addec 13722 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 13723
048addec 13724 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 13725
048addec 137262002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 13727
048addec
JD
13728 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
13729 when checking for multiple frames.
91175673 13730
048addec 137312002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 13732
048addec
JD
13733 * window.c (delete_window): Rewrite the code for changing the
13734 selected window to handle the case where WINDOW is not a leaf.
91175673 13735
048addec 137362002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 13737
048addec
JD
13738 * process.c (send_process): Set src_multibyte to 1 after the call
13739 top setup_coding_system, not before the call.
e0fead5d 13740
048addec 137412002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 13742
048addec
JD
13743 * xmenu.c (set_frame_menubar, xmenu_show):
13744 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 13745
048addec
JD
13746 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
13747 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 13748
048addec 137492002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 13750
048addec 13751 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 13752
048addec 13753 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 13754
048addec 13755 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 13756
048addec 137572002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 13758
048addec
JD
13759 * insdel.c (make_gap_larger): Make sure buffer size does not
13760 overflow range of int.
62854fe2 13761
048addec 137622002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 13763
048addec
JD
13764 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13765 OVERLAPS_P.
656f46bb 13766
048addec 13767 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 13768
048addec
JD
13769 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
13770 to the left or to the right of the pointer, put it against
13771 the left screen edge.
13772 (x_frame_parms): Add missing braces around initializer.
036e218d 13773
048addec
JD
13774 * w32term.c (x_setup_relief_colors): Don't compute an image's
13775 background color if it doesn't have a Pixmap.
13776 (notice_overwritten_cursor): Don't depend on
13777 output_cursor and updated_area. Compare pixel coordinates with
13778 window's cursor pixel coordinates.
13779 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13780 Call notice_overwritten_cursor with new arg list.
13781 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13782 unconditionally.
13783 (x_draw_image_relief): Use predefined macro instead of
13784 constant when the value of `tool_bar_button_relief' is negative.
036e218d 13785
048addec 13786 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 13787
048addec 137882002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 13789
048addec 13790 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 13791
048addec 137922002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 13793
048addec
JD
13794 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
13795 (Fkey_binding): Try the `keymap' property map first.
13796 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
13797 minor mode bindings.
90647b07 13798
048addec 137992002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 13800
048addec 13801 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 13802
048addec 138032002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 13804
048addec
JD
13805 * keyboard.c (read_key_sequence): Handle the keymap property
13806 before minor mode maps.
9fbc32aa 13807
048addec
JD
13808 * editfns.c (Fformat): Update thissize from field_width
13809 based on the actual width, in the string case.
036e218d 13810
048addec 138112002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 13812
048addec
JD
13813 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
13814 when used as truth value to prevent gcc warnings.
9fbc32aa 13815
048addec
JD
13816 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
13817 * w32proc.c: Include <config.h>.
9fbc32aa 13818
048addec 138192002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 13820
048addec
JD
13821 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
13822 not EMACS_INT, to make them compatible with DEFVAR_INT.
13823 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 13824
048addec 138252002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13826
048addec
JD
13827 * print.c (print_object): Test print_escape_nonascii only for
13828 unibyte strings.
13829 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
13830 when outputting to a multibyte buffer.
9fbc32aa 13831
048addec 138322001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13833
048addec
JD
13834 * print.c (print_object): In multibyte string, use hex escapes.
13835 Use octal only for unibyte strings.
13836 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 13837
048addec
JD
13838 * lread.c (read_escape): New arg BYTEREP for reporting whether
13839 escape forces unibyte or multibyte.
13840 (read1): When reading a string, take note of that info.
0142178a 13841
048addec 138422001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 13843
048addec
JD
13844 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
13845 comparison to test lisp value returned by Fget.
d4824a5d 13846
048addec 138472001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 13848
048addec 13849 * lisp.h (max_specpdl_size): Add declaration.
b1356234 13850
048addec 13851 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 13852
048addec
JD
13853 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
13854 Handle modifier bits. Correct typo in error message.
99e380ee 13855
048addec 138562001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 13857
048addec
JD
13858 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
13859 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
13860 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13861 Update calls to Fdefine_abbrev.
13862 (write_abbrev): Update for changed data format.
13863 Don't list "system" abbrevs.
13864 (Fexpand_abbrev): Update use count with new data format.
13865 (describe_abbrev): Update for changed data format.
13866 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 13867
048addec 13868 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 13869
048addec 13870 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 13871
048addec
JD
13872 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
13873 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 13874
048addec
JD
13875 * keymap.c (Flookup_key): Error message if key has wrong data type.
13876 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
13877 (exclude_key): New variable.
59a86c99 13878
048addec 138792001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 13880
048addec
JD
13881 * xterm.c (x_setup_relief_colors): Don't compute an image's
13882 background color if it doesn't have a Pixmap.
eb77a5f4 13883
048addec
JD
13884 * xterm.c (notice_overwritten_cursor): Don't depend on
13885 output_cursor and updated_area. Compare pixel coordinates with
13886 window's cursor pixel coordinates.
13887 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13888 Call notice_overwritten_cursor with new arg list.
13889 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13890 unconditionally.
eb77a5f4 13891
048addec
JD
13892 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
13893 height of the cursor line to the amount to scroll.
eb77a5f4 13894
048addec 138952001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 13896
048addec
JD
13897 * intervals.c (set_point_both): The position after an invisible,
13898 intangible character is not an acceptable stopping point.
bb313871 13899
048addec 139002001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 13901
048addec
JD
13902 * window.c (enlarge_window): In new preserve_before code, convert
13903 CURBEG from lisp object to integer before doing arithmetic.
6052529b 13904
048addec 139052001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 13906
048addec 13907 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 13908
048addec 139092001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 13910
048addec
JD
13911 * keyboard.c (record_char): Ignore duplicate help-echo events only
13912 separated by mouse-movement. When tracking mouse, only record
13913 first and last mouse-movement event in same window.
13914 Don't record mouse-movement events in keyboard macros.
3ce081f5 13915
048addec 139162001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 13917
048addec
JD
13918 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
13919 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 13920
048addec
JD
13921 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
13922 instead of Fstring_as_unibyte.
9fabb2f5 13923
048addec 139242001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 13925
048addec 13926 The following changes remove mocklisp support:
9fabb2f5 13927
048addec 13928 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 13929
048addec
JD
13930 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
13931 `Qmocklisp' and `Qmocklisp_arguments'.
13932 Remove prototype of syms_of_mocklisp.
2fa0eedf 13933
048addec 13934 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 13935
048addec
JD
13936 * callint.c: Do not include mocklisp.h.
13937 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 13938
048addec
JD
13939 * eval.c: Remove variables `Qmocklisp_arguments',
13940 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
13941 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
13942 Do not test for mocklisp case.
13943 (Fwhile): Remove unused variable `tem'.
13944 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 13945
048addec 13946 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 13947
048addec 13948 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 13949
048addec 13950 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 13951
048addec 139522001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 13953
048addec
JD
13954 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
13955 to the left or to the right of the pointer, put it against
13956 the left screen edge.
6108b49c 13957
048addec 139582001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 13959
048addec
JD
13960 * Makefile.in (distclean): Remove .gdbinit if we are building
13961 outside the source tree.
5eea19a4 13962
048addec 139632001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 13964
048addec 13965 * w32.c (emacs_root_dir): New function.
5eea19a4 13966
048addec 13967 * msdos.c (emacs_root_dir): New function.
5eea19a4 13968
048addec
JD
13969 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
13970 of the current drive as the fallback for default_directory.
438e57dd 13971
048addec
JD
13972 * dired.c (file_name_completion): Run the elements of
13973 completion-ignored-extensions through ENCODE_FILE.
438e57dd 13974
048addec
JD
13975 * lisp.h (scmp): Remove prototype, since it's now a static
13976 function private to dired.c.
c88e5347 13977
048addec 139782001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 13979
048addec
JD
13980 * dired.c (scmp): Function moved from minibuf.c.
13981 Delete multibyte handling--used only on encoded strings.
59ce1461 13982
048addec 13983 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 13984
048addec 13985 * fns.c (merge): Add QUIT call.
59ce1461 13986
048addec 139872001-12-18 Dave Love <fx@gnu.org>
8727d588 13988
048addec
JD
13989 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13990 language/georgian.el.
8727d588 13991
048addec 139922001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13993
048addec
JD
13994 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13995 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13996
048addec 139972001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13998
048addec
JD
13999 * xdisp.c (window_box_height): Do not return negative values.
14000 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 14001
048addec 14002 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 14003
048addec 14004 * term.c (keys): Likewise.
deece6f5 14005
048addec 14006 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 14007
048addec 140082001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 14009
048addec
JD
14010 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
14011 patch (COMPOSING_P, not COMPOSING).
28ff4293 14012
048addec 140132001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 14014
048addec 14015 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 14016
048addec
JD
14017 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
14018 before calling decode_coding.
9b46de40 14019
048addec 14020 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 14021
048addec
JD
14022 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
14023 instead of only for COMPOSITION_DISABLED.
9b46de40 14024
048addec 140252001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 14026
048addec 14027 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 14028
048addec 14029 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 14030
048addec
JD
14031 * buffer.h (struct buffer): New field `display_error_modiff'.
14032 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 14033
048addec 14034 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 14035
048addec
JD
14036 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
14037 Call redisplay_window, but not if display_error_modiff field says no.
14038 (redisplay_window_error): New function.
14039 (displayed_buffer): New variable.
14040 (redisplay_internal, redisplay_windows): Call the new functions
14041 instead of redisplay_window directly.
2cd23960 14042
048addec 140432001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 14044
048addec 14045 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 14046
048addec 140472001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 14048
048addec 14049 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 14050 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 14051 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 14052
048addec 140532001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 14054
048addec
JD
14055 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
14056 parameter have a numeric value all the time.
f6fa0866 14057
048addec 14058 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 14059
048addec 140602001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 14061
048addec 14062 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 14063
048addec
JD
14064 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
14065 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 14066
048addec 140672001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 14068
048addec
JD
14069 * xdisp.c (move_it_vertically_backward): Change heuristic
14070 for the case that we didn't move far enough initially.
91c153e2 14071
048addec
JD
14072 * window.c (Frecenter): Simplify computation in the case of window
14073 system frames and ARG < 0; use window_box_height.
65b7d3e7 14074
048addec 140752001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 14076
048addec
JD
14077 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
14078 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 14079
048addec 140802001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 14081
048addec
JD
14082 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
14083 arg is negative.
be676094 14084
048addec 140852001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 14086
048addec
JD
14087 * m/hp800.h: Split the __hpux conditional into the parts
14088 that are right for GNU/Linux too and the parts that are not.
14089 Use the former if GNU_LINUX.
14090 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 14091
048addec 14092 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 14093
048addec 140942001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 14095
048addec
JD
14096 * macros.c, msdos.c, w16select.c: Change doc-string comments to
14097 `new style' [w/`doc:' keyword].
032a857d 14098
048addec 140992001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 14100
048addec
JD
14101 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
14102 before using.
b6270150 14103
048addec 141042001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 14105
048addec
JD
14106 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
14107 keyword].
98cbb9fa 14108
048addec 141092001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 14110
048addec 14111 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 14112
048addec 14113 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 14114
048addec 141152001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 14116
048addec
JD
14117 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
14118 Add comment to explain where the struct came from.
14119 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
14120 (add_menu_item): Process pop-up menus first to avoid memory leak.
14121 (add_menu_item, w32_menu_display_help): Use `help' field as
14122 Lisp_Object.
14123 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 14124
048addec 141252001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 14126
048addec 14127 * COPYING: Moved back.
fa336b91 14128
048addec
JD
14129 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
14130 Add parentheses around && within ||.
077907d4 14131
048addec 14132 * indent.c (compute_motion): Likewise.
aa2af83a 14133
048addec 14134 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 14135
048addec
JD
14136 * coding.c (setup_coding_system, shrink_encoding_region)
14137 (Fdecode_sjis_char): Likewise.
60a653f1 14138
048addec 141392001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 14140
048addec
JD
14141 * xdisp.c (display_mode_element): Don't read past end of string if
14142 it ends with '%'.
60a653f1 14143
048addec
JD
14144 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
14145 can hold.
60a653f1 14146
048addec
JD
14147 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
14148 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
14149 type changed to Lisp_Object.
14150 (syms_of_data): DEFVAR_LISP them.
60a653f1 14151
048addec 141522001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 14153
048addec
JD
14154 * callproc.c (init_callproc): Set Vdata_directory based on the source
14155 location whenever Emacs was run uninstalled.
60a653f1 14156
048addec 141572001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 14158
048addec
JD
14159 * config.in (HAVE_WORKING_VFORK): New #undefs.
14160 * process.c (create_process):
14161 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
14162 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
14163 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
14164 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
14165 * m/intel386.h (HAVE_VFORK): Likewise.
14166 * m/mips-siemens.h (HAVE_VFORK): Likewise.
14167 * m/mips.h (HAVE_VFORK): Likewise.
14168 * s/freebsd.h (vfork): Remove #define.
14169 * s/lynxos.h (HAVE_VFORK): Remove #undef.
14170 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 14171
048addec 141722001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 14173
048addec
JD
14174 * s/hpux10.h (random): Add undef.
14175 (HAVE_RANDOM): Define it just once.
60a653f1 14176
048addec 141772001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14178
048addec 14179 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 14180
048addec 141812001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14182
048addec
JD
14183 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
14184 scroll bars of the frame before deleting the frame itself. If the
14185 frame has a widget, delete the frame with XtDestroyWidget, and do
14186 not call XDestroyWindow before that.
60a653f1 14187
048addec 141882001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 14189
048addec 14190 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14191
048addec 14192 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14193
048addec 141942001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 14195
048addec
JD
14196 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
14197 excessively large.
60a653f1 14198
048addec
JD
14199 * insdel.c (make_gap_larger): New function.
14200 (make_gap_smaller): New function.
14201 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
14202 Call make_gap_smaller if arg is negative.
60a653f1 14203
048addec 142042001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14205
048addec
JD
14206 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
14207 Pass a dummy argument when calling interrupt_signal.
14208 (parse_menu_item): Mark disabled items before checking for empty def.
14209 (read_char_minibuf_menu_prompt): Make safety more visible.
14210 (read_key_sequence): Add a `first_unbound' variable.
14211 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
14212 unbound prefix as soon as we can detect it.
60a653f1 14213
048addec
JD
14214 * doc.c (Fsnarf_documentation): Add prototype.
14215 (get_doc_string): Handle negative arguments.
14216 (Fdocumentation): Use AREF and ASIZE.
14217 Move the calls to get_doc_string to a single place.
14218 Don't confuse an interactive-spec for a docstring reference.
14219 (Fdocumentation_property): Take advantage of the fact that
14220 get_doc_string now ignores the sign of the docstring position.
60a653f1 14221
048addec 14222 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 14223
048addec 142242001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14225
a64387ee 14226 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 14227
048addec 142282001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14229
048addec
JD
14230 * xterm.c (x_draw_image_relief): Use predefined macro instead of
14231 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 14232
048addec 142332001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 14234
048addec
JD
14235 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
14236 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 14237
048addec 14238 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 14239
048addec 142402001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14241
048addec 14242 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 14243
048addec 142442001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 14245
048addec 14246 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 14247
048addec 142482001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 14249
f63fd14e 14250 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 14251
048addec
JD
14252 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
14253 [!WM_MOUSELEAVE]: Define.
60a653f1 14254
048addec
JD
14255 * w32menu.c (current_popup_menu, get_menu_item_info):
14256 (set_menu_item_info): New vars.
14257 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
14258 (w32_menu_show): Set current_popup_menu.
14259 (add_menu_item): Allocate new strings for owner-drawn menu items
14260 and help strings.
14261 Use owner-draw for disabled menu items again.
14262 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
14263 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 14264
048addec
JD
14265 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
14266 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
14267 <WM_EXITMENULOOP>: Free menu strings.
14268 <WM_MOUSELEAVE>: Stop tracking mouse.
14269 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 14270
048addec
JD
14271 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
14272 and mouse face.
60a653f1 14273
048addec 142742001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 14275
048addec
JD
14276 The following changes add left-fringe and right-fringe
14277 frame parameters to adjust fringe widths, or remove one or
14278 both fringes.
60a653f1 14279
048addec
JD
14280 * frame.h (struct frame): Remove trunc_area_pixel_width and
14281 trunc_area_cols fields.
14282 (Qleft_fringe, Qright_fringe): Declare.
14283 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 14284
048addec
JD
14285 * frame.c (Qleft_fringe, Qright_fringe): New vars.
14286 (syms_of_frame): Initialize them.
60a653f1 14287
048addec
JD
14288 * window.c (coordinates_in_window): Handle separate left and right
14289 fringe widths.
60a653f1 14290
048addec
JD
14291 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
14292 and fringe_cols fields.
14293 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
14294 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
14295 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
14296 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
14297 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
14298 (x_compute_fringe_widths): Add prototype.
60a653f1 14299
048addec
JD
14300 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
14301 fill fringe evenly with small dashes.
f63fd14e 14302 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
14303 clip the new ZV bitmap to avoid jitter between rows.
14304 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
14305 background. Don't draw fringe bitmaps if fringe width is zero.
14306 (x_compute_fringe_widths): New function.
14307 (x_new_font, x_set_window_size_1): Use it.
60a653f1 14308
048addec
JD
14309 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
14310 (x_set_frame_parameters): Process `font' parameter before other
14311 parameters as fringe widths depend on it.
14312 (x_set_fringe_width): New function.
14313 (x_figure_window_size): Use x_compute_fringe_widths.
14314 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
14315 parameters.
60a653f1 14316
048addec
JD
14317 * widget.c (set_frame_size): Use x_compute_fringe_widths.
14318 (EmacsFrameSetCharSize): Ditto.
60a653f1 14319
048addec
JD
14320 * w32term.h: Merged changes from xterm.h.
14321 * w32term.c: Merged changes from xterm.c.
14322 * w32fns.c: Merged changes from xfns.c.
60a653f1 14323
048addec 143242001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14325
048addec 14326 * COPYING: Removed.
60a653f1 14327
048addec 143282001-11-29 Dave Love <fx@gnu.org>
60a653f1 14329
048addec
JD
14330 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
14331 extra extra slot.
14332 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 14333
048addec 143342001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14335
048addec
JD
14336 * fileio.c (file-name-coding-system)
14337 (default-file-name-coding-system): Doc fix (links to referenced
14338 variables added).
60a653f1 14339
048addec 143402001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14341
048addec
JD
14342 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
14343 Add dummy uses of gcproN variables.
60a653f1 14344
048addec
JD
14345 * category.c (describe_category, describe_category_1)
14346 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
14347 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 14348
048addec 143492001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 14350
048addec 14351 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 14352
048addec
JD
14353 * Makefile.in (lispdir): New variable, referring to build dir.
14354 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 14355
048addec 143562001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 14357
048addec
JD
14358 * w32menu.c (w32_menu_display_help): Actually add the new argument
14359 OWNER.
60a653f1 14360
048addec 143612001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 14362
048addec
JD
14363 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
14364 menu items. From David Ponce <dponce@wanadoo.fr>.
14365 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
14366 conditionally.
f63fd14e 14367 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 14368 help event in the owner frame's keyboard buffer.
60a653f1 14369
048addec
JD
14370 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
14371 (Fx_show_tip): Don't subtract last width from row width.
14372
14373 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
14374 (w32_read_socket): Use EQ to compare frames.
60a653f1 14375
048addec 143762001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 14377
048addec
JD
14378 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14379 OVERLAPS_P.
60a653f1 14380
048addec 143812001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14382
048addec
JD
14383 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
14384 `gcpro3' and `gcpro4'.
60a653f1 14385
048addec 14386 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 14387
048addec 143882001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14389
048addec 14390 * ccl.c: Use AREF and ASIZE.
60a653f1 14391
048addec 143922001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14393
048addec
JD
14394 * lisp.h (run_hook_list_with_args): Remove.
14395 (LIST_END_P): Fix call to wrong_type_argument.
14396 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 14397
048addec 143982001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14399
048addec
JD
14400 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
14401 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 14402
048addec
JD
14403 * eval.c: Use AREF and ASIZE.
14404 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 14405
048addec
JD
14406 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
14407 which match the end of the file-name.
14408 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
14409 is not a valid env var, but leave it as is instead.
60a653f1 14410
048addec
JD
14411 * keymap.c (access_keymap): Handle t bindings like nil bindings.
14412 Make nil bindings in char-tables transparent.
14413 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 14414
048addec 144152001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 14416
048addec
JD
14417 * textprop.c (set_text_properties_1): Allow START, END in either order.
14418 Do nothing if range is empty.
60a653f1 14419
048addec 14420 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 14421
048addec
JD
14422 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
14423 (clean): Not here.
60a653f1 14424
048addec 144252001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14426
048addec
JD
14427 * textprop.c (set_text_properties_1): Clearly mark that the
14428 interval should not be empty.
60a653f1 14429
048addec
JD
14430 * intervals.c (graft_intervals_into_buffer):
14431 Don't call set_text_properties_1 on an empty interval.
60a653f1 14432
048addec 144332001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 14434
048addec 14435 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 14436
048addec
JD
14437 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
14438 don't lose the data in it.
60a653f1 14439
048addec 144402001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 14441
048addec 14442 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 14443
c62aec78 14444 * buffer.c (Fkill_buffer): Likewise.
60a653f1 14445
c62aec78 14446 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 14447
048addec 144482001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14449
048addec 14450 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 14451
048addec 144522001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14453
048addec
JD
14454 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
14455 Niemitalo <kon@iki.fi>.
60a653f1 14456
048addec 144572001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 14458
048addec 14459 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 14460
048addec
JD
14461 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
14462 (Fx_show_tip): Block input during frame creation.
14463 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 14464
048addec 144652001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 14466
048addec
JD
14467 * lread.c (Fload): Detect recursive load error for more than 3
14468 nestings of the same file.
14469 (Vrecursive_load_depth_limit): Variable deleted.
14470 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 14471
048addec 144722001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 14473
048addec
JD
14474 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
14475 mouse position if either left or top is not specified.
60a653f1 14476
048addec
JD
14477 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
14478 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
14479 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
14480 (my_create_tip_window): Assign tip_window.
14481 (x_create_tip_frame): Use same defaults as X.
14482 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 14483 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 14484
048addec
JD
14485 * w32term.c (x_after_update_window_line): Doc fix.
14486 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
14487 frames.
14488 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 14489
048addec
JD
14490 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
14491 for all Windowed systems.
60a653f1 14492
048addec 144932001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14494
048addec
JD
14495 * msdos.c (IT_clear_screen): If the frame's faces are not yet
14496 realized, use the initial screen colors to clear the screen.
60a653f1 14497
048addec 144982001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14499
048addec
JD
14500 * textprop.c (Fset_text_properties): Remove unused variables
14501 `unchanged', `prev_changed', `s' and `len'.
60a653f1 14502
048addec
JD
14503 * search.c (Freplace_match): Remove unused variable `inslen'.
14504
14505 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
14506
145072001-11-22 Jason Rumney <jasonr@gnu.org>
14508
14509 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
14510 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
14511 (my_create_tip_window): New function.
14512 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
14513 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
14514
145152001-11-20 Jason Rumney <jasonr@gnu.org>
14516
14517 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
14518 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
14519
14520 * w32fns.c (Vw32_system_coding_system): Remove.
14521 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
14522
145232001-11-19 Stefan Monnier <monnier@cs.yale.edu>
14524
14525 * fileio.c (Fwrite_region): Move choose_write_coding_system to
14526 after build_annotations.
14527
14528 * syntax.c (describe_syntax): Add dummy arg.
14529 (describe_syntax_1): Update call to describe_vector.
14530
14531 * category.c (describe_category): Add dummy arg.
14532 (describe_category_1): Update call to describe_vector.
14533
14534 * keymap.c (Fdescribe_vector): Add `describer' parameter.
14535 (describe_command, describe_translation): Add dummy second param.
14536 (describe_map): Call elt_describer with two arguments.
14537 (describe_vector_princ): Add `fun' parameter.
14538 Call it instead of the hardcoded `princ'.
14539 (describe_vector): Add arg `args'.
14540 Pass it as a new second argument to elt_describer.
60a653f1 14541
048addec 14542 * keymap.h (describe_vector): Update prototype.
60a653f1 14543
048addec
JD
14544 * frame.c: Don't include keymap.h any more.
14545 (keys_of_frame): Remove.
60a653f1 14546
048addec 14547 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 14548
048addec 14549 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 14550
048addec 145512001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 14552
048addec
JD
14553 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
14554 if defined, 0 otherwise.
14555 (MAP_FAILED): Define if not defined and use it to test mmap failure.
14556 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 14557
048addec 145582001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 14559
048addec 14560 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 14561
048addec 145622001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 14563
048addec
JD
14564 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
14565 (x_draw_bar_cursor): If the background color of the glyph under
14566 the cursor equals the frame's cursor color, use the glyph's
14567 foreground color for drawing the bar cursor.
14568 (x_after_update_window_line): Clear internal border in different
14569 circumstances.
14570 (w32_set_vertical_scroll_bar): Check for width and height > 0.
14571 (w32_draw_relief_rect): Correct relief by 1 pixel.
14572 (x_set_glyph_string_background_width):
14573 Set extends_to_end_of_line_p if the row's fill_line_p is set and
14574 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
14575 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
14576 if cursor_in_non_selected_windows is false.
14577 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
14578 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
14579 Notice if cursor gets overwritten.
14580 (notice_overwritten_cursor): Renamed from
14581 note_overwritten_text_cursor. Rewritten to take glyph widths
14582 into account, and to take X positions as parameters.
14583 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14584 around call to x_draw_glyphs.
14585 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14586 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14587 color to use for image glyph reliefs.
14588 (x_draw_image_relief): Accept zero tool_bar_button_relief.
14589 (glyph_rect): Remove unused variable `area'.
60a653f1 14590
048addec
JD
14591 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
14592 some items.
14593 (x_set_internal_border_width): Set frame garbaged when window
14594 doesn't exist yet.
14595 (Fx_create_frame): Accept zero tool_bar_button_relief.
14596 (x_clear_image_1, four_corners_best, image_background)
14597 (image_background_transparent): New functions.
14598 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14599 (gs_format): Add `:background' entry.
14600 (lookup_image): Set IMG's background color if specified.
14601 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14602 when appropriate.
14603 (x_clear_image_1): Reset `background_valid' and
14604 `background_transparent_valid' fields.
14605 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14606 calculating it here. Set IMG's background_transparent field.
14607 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14608 (enum png_keyword_index): Add PNG_BACKGROUND.
14609 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14610 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14611 (enum gif_keyword_index): Add GIF_BACKGROUND.
14612 (enum gs_keyword_index): Add GS_BACKGROUND.
14613 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14614 Pre-calculate image background color where necessary.
14615 (x_create_x_image_and_pixmap, xbm_load, gs_load):
14616 Use display info's n_cbits entry for screen depth.
14617 (Fx_show_tip): Remove unused variables `buffer', `top',
14618 `left', `max_width' and `max_height'.
60a653f1 14619
048addec 14620 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 14621
048addec 146222001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 14623
048addec 14624 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 14625
048addec 146262001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14627
048addec 14628 * frame.c (Fframe_live_p): Doc fix.
60a653f1 14629
048addec 146302001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 14631
048addec
JD
14632 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
14633 (message_dolog_marker3): New static variables hold three markers.
14634 (syms_of_xdisp): Initialize and staticpro them.
14635 (message_dolog): Use message_dolog_marker1..3 instead of
14636 allocating markers each time. Unchain them when done.
60a653f1 14637
048addec 146382001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14639
048addec 14640 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 14641
048addec 146422001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 14643
048addec 14644 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 14645
048addec 146462001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14647
048addec 14648 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 14649
048addec 146502001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 14651
048addec 14652 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 14653
048addec 146542001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 14655
048addec
JD
14656 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
14657 with invalid position.
60a653f1 14658
048addec 146592001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 14660
048addec 14661 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 14662
048addec
JD
14663 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
14664 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
14665 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 14666
048addec 14667 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 14668
048addec 146692001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14670
048addec
JD
14671 * fileio.c (build_annotations): Split off the tail.
14672 (build_annotations_2): New fun. Extracted from build_annotations.
14673 (Fwrite_region): Split the call to build_annotations into two
14674 calls to build_annotations and build_annotations_2.
077907d4 14675
048addec 146762001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 14677
048addec
JD
14678 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
14679 clear_waiting_for_input with argument.
1756e2fb 14680
048addec 14681 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 14682
048addec 14683 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 14684
048addec 14685 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 14686
048addec 14687 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 14688
048addec 146892001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 14690
048addec
JD
14691 * fileio.c (choose_write_coding_system): New fun, extracted
14692 from Fwrite_region.
14693 (Fwrite_region): Use it.
fa336b91 14694
048addec
JD
14695 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
14696 (funcall_lambda, run_hook_with_args): Make static and add prototype.
14697 (ml_apply, find_handler_clause): Add prototype.
fa336b91 14698
048addec 146992001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 14700
048addec 14701 * config.in: Add #undef HAVE_COFF_H.
fa336b91 14702
048addec
JD
14703 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
14704 Required for ISC 4.1.
fa336b91 14705
048addec 147062001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 14707
048addec
JD
14708 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
14709 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 14710
048addec 147112001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 14712
048addec
JD
14713 The following changes are made to clean up the various internal
14714 references to the fringes to actually use the term `fringe' for
14715 them. Previously, they were called `flags areas', `bitmap areas',
14716 `left/right side of windows', or implicitly as `flags' or
14717 `bitmaps':
fa336b91 14718
048addec 14719 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 14720 Comments fixed. Use renamed symbols.
06e8f738 14721
f63fd14e 14722 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 14723
048addec
JD
14724 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
14725 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
14726 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 14727
048addec 14728 * msdos.c: Comment fix.
9ce647f4 14729
048addec 14730 * w32fns.c: Use renamed symbols.
9b784ab8 14731
f63fd14e 14732 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
14733 (fringe_bitmap_type): Renamed from bitmap_type.
14734 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14735 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
14736 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 14737
f63fd14e 14738 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
14739 (fringes_extra): Renamed from flags_areas_extra.
14740 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14741 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14742 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14743 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14744 (FRAME_X_LEFT_FRINGE_WIDTH):
14745 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14746 (FRAME_X_RIGHT_FRINGE_WIDTH):
14747 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 14748
048addec 14749 * widget.c: Use renamed symbols.
9f7e52b4 14750
f63fd14e 14751 * window.c: Comment fixes. Use renamed symbols.
048addec 14752 (coordinates-in-window-p): Doc fix.
fa336b91 14753
f63fd14e 14754 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 14755
048addec 14756 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 14757
048addec 14758 * xfns.c: Use renamed symbols.
89512fcd 14759
f63fd14e 14760 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
14761 (fringe_bitmap_type): Renamed from bitmap_type.
14762 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14763 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
14764 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 14765
f63fd14e 14766 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
14767 (fringes_extra): Renamed from flags_areas_extra.
14768 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14769 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14770 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14771 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14772 (FRAME_X_LEFT_FRINGE_WIDTH):
14773 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14774 (FRAME_X_RIGHT_FRINGE_WIDTH):
14775 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
14776
147772001-11-15 Jason Rumney <jasonr@gnu.org>
14778
14779 * w32menu.c (add-menu-item): Make help_echo and radio buttons
14780 work for most menu items. From David Ponce
14781 <david.ponce@wanadoo.fr>.
14782
147832001-11-15 Gerd Moellmann <gerd@gnu.org>
14784
14785 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
14786 Some x_set_* function expect to be called even if old and new
14787 value are equal.
14788
14789 * xdisp.c (build_desired_tool_bar_string): Accept zero
14790 tool_bar_button_relief.
14791
14792 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
14793
14794 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
14795
14796 * xterm.c (x_draw_bar_cursor): If the background color of the
14797 glyph under the cursor equals the frame's cursor color, use
14798 the glyph's foreground color for drawing the bar cursor.
14799
14800 * dispnew.c (direct_output_forward_char): Fix character/byte
14801 position comparison.
7d18891d 14802
048addec 148032001-11-15 Miles Bader <miles@gnu.org>
d2936d21 14804
048addec
JD
14805 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
14806 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
14807 Update arguments to find_field.
14808 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
14809 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
14810 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
14811 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 14812
048addec 148132001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 14814
048addec 14815 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 14816
048addec
JD
14817 * dispextern.h (image_background, image_background_transparent):
14818 Conditionalize on HAVE_X_WINDOWS.
7d18891d 14819
048addec 148202001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 14821
048addec 14822 * print.c (Fprin1_to_string): Doc fix.
7d18891d 14823
048addec 14824 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 14825
048addec 14826 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 14827
048addec 14828 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 14829
048addec 14830 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 14831
048addec 14832 * eval.c (syms_of_eval): Doc fix.
7d18891d 14833
048addec 14834 * coding.c (syms_of_coding): Doc fix.
7d18891d 14835
048addec 14836 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 14837
048addec 14838 * dispnew.c (syms_of_display): Doc fix.
9474c847 14839
048addec 14840 * category.c (Fget_unused_category): Doc fix.
9474c847 14841
048addec 14842 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 14843
048addec 148442001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 14845
048addec 14846 * print.c (prin1, print): Doc fix.
e3059a5d 14847
048addec 148482001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 14849
048addec
JD
14850 * fontset.h: Remove declarations of variables
14851 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 14852
048addec
JD
14853 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
14854 `Vclip_large_size_font'.
eae936e2 14855
048addec 148562001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 14857
048addec 14858 * w32fns.c: Doc fix.
ddb67bdc 14859
048addec 148602001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 14861
048addec 14862 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 14863
048addec 14864 * fns.c: Doc fix.
6e1b91d7 14865
048addec 14866 * emacs.c: Doc fix.
1c1d3d69 14867
048addec 14868 * coding.c: Doc fix.
1c1d3d69 14869
048addec
JD
14870 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
14871 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
14872 `new style' [w/`doc:' keyword].
b6f4c7ba 14873
048addec 148742001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 14875
048addec
JD
14876 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
14877 LeaveNotify events. Only FocusIn and FocusOut do that now.
14878 (x_display_and_set_cursor): Do display hollow cursors in active
14879 minibuffer windows when they are not selected.
b6f4c7ba 14880
048addec 148812001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 14882
048addec 14883 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
14884 * w32term.c: Change doc-string comments to `new style'
14885 [w/`doc:' keyword]. Doc fixes.
a89f435d 14886
048addec
JD
14887 * w32fns.c: Don't define max.
14888 (Fx_open_connection): Only execute once.
a4cd0cd7 14889
048addec 148902001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 14891
048addec
JD
14892 * ccl.c: Change macros to use do-while block instead of if-else.
14893 Use braces to follow GNU Coding Standards.
eafb659a 14894
048addec 148952001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 14896
048addec 14897 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 14898
048addec 14899 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 14900
048addec
JD
14901 * insdel.c (replace_range): Use adjust_markers_for_replace
14902 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 14903
048addec 14904 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 14905
048addec
JD
14906 * textprop.c (set_text_properties_1): New subroutine
14907 broken out of set_text_properties.
14908 (set_text_properties): Use set_text_properties_1.
91823618 14909
048addec
JD
14910 * intervals.c (graft_intervals_into_buffer):
14911 Use set_text_properties_1 to clear out properties.
91823618 14912
048addec
JD
14913 * search.c (Freplace_match): Use replace_range to insert
14914 and delete. Don't request property inheritance from
14915 surrounding text.
86928dfb 14916
048addec 149172001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 14918
048addec 14919 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 14920 vertical fonts. Allow them if face name is explicitly specified.
048addec 14921 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 14922
048addec 149232001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 14924
048addec
JD
14925 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
14926 instead of malloc/free.
a78e0303 14927
048addec 149282001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 14929
048addec
JD
14930 * xfaces.c (merge_face_vectors): Use braces to follow GNU
14931 Coding Standards.
14932 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 14933
048addec 14934 * buffer.c (Fbury_buffer): Likewise.
0c99b139 14935
048addec 14936 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 14937
048addec
JD
14938 * coding.c (encode_coding): Use precomputed value of `src'.
14939 (encode_coding): Remove unused variable `src_end'.
14940 (code_convert_region): Remove unused variables `count'.
830ddd77 14941
048addec 149422001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 14943
048addec
JD
14944 * w32term.c (x_display_and_set_cursor): Do not move system caret
14945 if cursor_glyph is NULL.
55c6d645 14946
048addec 149472001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 14948
048addec 14949 * keymap.c (access_keymap): Fix compilation error.
5de38842 14950
048addec 149512001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 14952
048addec 14953 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 14954
048addec 149552001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 14956
048addec
JD
14957 * intervals.c (graft_intervals_into_buffer):
14958 Remove #ifdef'd-out code.
14959 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 14960
048addec
JD
14961 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
14962 code (eval-current-buffer).
14963 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 14964
048addec 149652001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 14966
048addec 14967 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 14968
048addec 149692001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 14970
048addec 14971 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 14972
048addec
JD
14973 * keyboard.c (make_lispy_event): Check integerness and fix
14974 Lisp_Object/int mixup.
17893c65 14975
048addec 149762001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 14977
048addec 14978 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 14979
048addec
JD
14980 * fontset.c (fontset_font_pattern): Remove unused variable
14981 `family_registry'.
d5360cc7 14982
048addec 14983 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 14984
048addec 149852001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 14986
048addec 14987 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 14988
048addec
JD
14989 * buffer.c (Fkill_buffer): Don't delete auto save file
14990 if buffer is modified.
d9d54213 14991
048addec 149922001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14993
048addec
JD
14994 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14995 CHECK_NUMBER_CDR.
b116830b 14996
048addec 149972001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14998
048addec 14999 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 15000
048addec 150012001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 15002
048addec 15003 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 15004
048addec 150052001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 15006
048addec 15007 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 15008
048addec 150092001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 15010
048addec
JD
15011 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
15012 the program image directly.
982f6c7e 15013
048addec 150142001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 15015
048addec 15016 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 15017
048addec 150182001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 15019
048addec
JD
15020 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
15021 and CHECK_BUFFER.
d31053f9 15022
048addec
JD
15023 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
15024 (record_char): Likewise.
d31053f9 15025
048addec
JD
15026 * keyboard.c (make_lispy_event): Don't insist a drag event must
15027 move to a different buffer position. Instead, check for moving at
15028 least double_click_fuzz.
982f6c7e 15029
048addec 15030 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 15031
048addec 15032 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 15033
048addec
JD
15034 * indent.c (current_column_1, Fmove_to_column): Separate the code
15035 for display-table glyphs from the code for buffer text, to fix
15036 bugs in the former.
830047fd 15037
048addec 150382001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 15039
048addec
JD
15040 * buffer.c (Fbuffer_local_value): New function.
15041 (syms_of_buffer): Defsubr it.
2df5238c 15042
048addec
JD
15043 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
15044 value of `cursor-in-non-selected-windows'.
4e397688 15045
048addec
JD
15046 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
15047 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
15048 (syms_of_xdisp): Initialize it.
48b0f3ae 15049
048addec 150502001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 15051
048addec 15052 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 15053
048addec
JD
15054 * coding.c: Change doc-string comments to `new style' [w/`doc:'
15055 keyword].
3ecaf7e5 15056
048addec
JD
15057 * eval.c (top_level_value, top_level_set): Remove commented and
15058 #ifdef'd-out code.
15059 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 15060
048addec 150612001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 15062
048addec 15063 * xfns.c: Include unistd.h, if it exists.
8db2e33b 15064
048addec 15065 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 15066
048addec 15067 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 15068
048addec 150692001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 15070
048addec
JD
15071 * lisp.h (CHECK_STRING_CAR): New macro.
15072 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
15073 treating XCAR and XCDR as lvalues.
15074 (openp): Use CHECK_STRING_CAR.
15075 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 15076
048addec 150772001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 15078
048addec
JD
15079 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
15080 (SIGMASKTYPE): Define.
1b1acc13 15081
048addec 15082 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 15083
048addec 150842001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 15085
048addec
JD
15086 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
15087 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
15088 Fix typos in comments.
6cb16f95 15089
048addec
JD
15090 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
15091 and #ifdef'd-out code.
15092 Fix and reindent comments.
6cb16f95 15093
048addec 15094 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 15095
048addec
JD
15096 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
15097 argument `i' in macros.
6cb16f95 15098
048addec
JD
15099 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
15100 `i' in macros.
7e9d3c2f 15101
048addec
JD
15102 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
15103 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
15104 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
15105 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
15106 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
15107 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
15108 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
15109 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
15110 in macros.
7e9d3c2f 15111
048addec
JD
15112 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
15113 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
15114 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
15115 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
15116 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
15117 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
15118 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
15119 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
15120 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
15121 (remove unused second argument).
7e9d3c2f 15122
048addec 151232001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15124
048addec
JD
15125 * syntax.c (describe_syntax): New wrapper.
15126 (Finternal_describe_syntax_value): Rename from describe_syntax.
15127 Don't insert space at front and \n at the end.
15128 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 15129
048addec
JD
15130 * regex.c (re_wctype): Try to fix some warnings.
15131 (regcomp, regexec): Don't forget the __restrict.
9ba48103 15132
048addec 151332001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 15134
048addec 15135 * textprop.c (Fget_char_property): Doc fix.
9ba48103 15136
048addec 151372001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 15138
048addec 15139 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 15140
048addec 15141 * data.c (Fsetq_default): Ditto.
c22e59e1 15142
048addec 15143 * callint.c (Finteractive): Ditto.
9271ed2c 15144
048addec 151452001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15146
048addec
JD
15147 * macros.c: Don't include keymap.h any more.
15148
151492001-11-01 Richard M. Stallman <rms@gnu.org>
15150
15151 * data.c (Fmake_local_variable): Doc fix.
15152
15153 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
15154 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 15155
048addec 15156 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
15157 bindings along with or instead of the buffer local map.
15158 Make the overriding maps override what they should.
15159
f00691a3 151602001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
15161
15162 * window.c (grow_mini_window): Fix typo in comment.
15163
27188d11
GM
151642001-11-01 Gerd Moellmann <gerd@gnu.org>
15165
7b49b9d2
GM
15166 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
15167 (XTset_vertical_scroll_bar): Likewise.
15168
43f7c3ea
GM
15169 * xfns.c (x_build_heuristic_mask): Use four_corners_best
15170 instead of IMAGE_BACKGROUND.
c22e59e1 15171
b350c2e5
GM
15172 * xfns.c (four_corners_best): Reindent.
15173
c22e59e1 15174 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
15175 Handle :box so that it is possible to specify sexprs.
15176
bf00d461
EZ
151772001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
15178
15179 * s/hpux11.h: New file.
15180
f00691a3 151812001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 15182
2b209b97
PJ
15183 * emacs.c (USAGE1): Show command line option --no-window-system
15184 instead of --no-windows in usage.
15185 (standard_args): Rename --no-windows to --no-window-system.
15186 (bug_reporting_address): Follow Emacs coding conventions.
15187
9dbc9081
PJ
15188 * eval.c (Fcommandp): Doc fix.
15189 Change doc-string comments to `new style' [w/`doc:' keyword].
15190
4e10df59
PJ
15191 * frame.c (Fframe_live_p): Doc fix.
15192
15193 * buffer.c (selective-display-ellipses): Doc fix.
15194
dd387b25
GM
151952001-10-31 Gerd Moellmann <gerd@gnu.org>
15196
fe957e65
GM
15197 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
15198
dd387b25
GM
15199 * xfaces.c (realize_x_face): If C is not a single-byte character,
15200 set the face's colors_copied_bitwise_p instead of the defaulted_p
15201 members which have a different meaning.
15202 (free_face_colors): Do nothing for a face whose colors have been
15203 copied bitwise.
15204
c22e59e1 15205 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 15206
f00691a3 152072001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 15208
687784e8
PJ
15209 * marker.c, mocklisp.c: Change doc-string comments to `new style'
15210 [w/`doc:' keyword].
2e1280f8 15211
b9d9a9b9
GM
152122001-10-31 Gerd Moellmann <gerd@gnu.org>
15213
15214 * fns.c (require_unwind): Return Lisp_Object.
15215
f00691a3 152162001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 15217
fa1361cb
PJ
15218 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
15219 (last-input-char): Revert doc-string to be the same as the
15220 doc-string of `last-input-event'.
15221
6c465a15 15222 * xdisp.c: Fix typos in comments.
48400103 15223
eafa3196
GM
152242001-10-31 Gerd Moellmann <gerd@gnu.org>
15225
15226 * window.c (grow_mini_window): Handle case that the root
15227 window is already smaller than the nominal mininum height.
15228
747d3f2a
SM
152292001-10-30 Stefan Monnier <monnier@cs.yale.edu>
15230
bf9bb76f
SM
15231 * emacs.c (main): Don't call keys_of_macros any more.
15232
15233 * lisp.h (keys_of_macros): Remove.
15234
15235 * macros.c (keys_of_macros): Remove.
15236
747d3f2a
SM
15237 * xfaces.c (Fface_attribute_relative_p): Declare args.
15238
5e905a57
JR
152392001-10-30 Jason Rumney <jasonr@gnu.org>
15240
15241 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
15242 (enum_font_cb2): Ignore fonts with vertical orientation.
15243
3a426197
RS
152442001-10-30 Richard M. Stallman <rms@gnu.org>
15245
15246 * keyboard.c (Finput_pending_p): Doc fix.
15247
a742d646
GM
152482001-10-30 Gerd Moellmann <gerd@gnu.org>
15249
259cf6bc
GM
15250 * xterm.c (x_after_update_window_line): Don't run the code
15251 clearing in borders for rows whose visible height is 0.
15252
3f99f948
GM
15253 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
15254 resized_p flag is set. If not set, use the much less flickering
15255 method previously used.
15256
15257 * dispnew.c (change_frame_size_1): Set frame's resized_p.
15258
15259 * frame.h (struct frame) <resized_p>: New member.
15260
b4a3be43
GM
15261 * lread.c (to_multibyte): Ensure read_buffer is at least twice
15262 as large as the number of bytes to convert.
747d3f2a 15263
a742d646
GM
15264 * lread.c (to_multibyte): New function.
15265 (read1): Use it.
15266
cacbb9e9
EZ
152672001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
15268
15269 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
15270
99cb6b2f
GM
152712001-10-30 Gerd Moellmann <gerd@gnu.org>
15272
327f42ee 15273 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
15274 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
15275 if the row's fill_line_p is set and drawing the last glyph with
15276 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 15277
99cb6b2f
GM
15278 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
15279
8e8223e2
SM
152802001-10-29 Stefan Monnier <monnier@cs.yale.edu>
15281
15282 * xmenu.c: Include coding.h and charset.h.
15283 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
15284 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
15285 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
15286 Explicitly set wv->help. Use `TRUE' rather than `True'.
15287 (menu_help_callback): Use empty_string.
15288
15289 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
15290 (Fx_popup_dialog): Explicitly init f.
15291 (w32_menu_display_help): Use empty_string.
15292
4d083a8f
RS
152932001-10-29 Richard M. Stallman <rms@gnu.org>
15294
b2304472
RS
15295 * fns.c (Frequire): Detect recursive try to require the same
15296 feature 3 or more levels deep, and get error.
15297 (require_unwind): New subroutine.
15298 (require_nesting_list): New variable.
15299 (syms_of_fns): Init and staticpro it.
15300
4d083a8f
RS
15301 * print.c (print_object): Clarify indication of insertion type.
15302
2fe41216
EZ
153032001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
15304
90480000
EZ
15305 * coding.c (syms_of_coding): Document that locale-coding-system is
15306 used for decoding input on X.
15307
2fe41216
EZ
15308 * window.c (Fscroll_left, Fscroll_right): Doc fix.
15309
f00691a3 153102001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
15311
15312 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
15313 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
15314
60ebcfe8
GM
153152001-10-29 Gerd Moellmann <gerd@gnu.org>
15316
9a7bdceb
GM
15317 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
15318 use NO_CURSOR if cursor_in_non_selected_windows is false.
15319
3f08fcd2
GM
15320 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
15321 the slant attribute if FRAME is t.
15322
0ccfdad2
GM
15323 * xfns.c (x_set_internal_border_width): Set frame garbaged
15324 when X window doesn't exist yet.
15325
ef253080
GM
15326 * xterm.c (x_after_update_window_line): Clear internal border
15327 in different circumstances.
b116830b 15328
60ebcfe8
GM
15329 * xterm.c (XTread_socket) <KeyPress>: Don't use
15330 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
15331 <handa@etl.go.jp>.
15332
73d25f9c
EZ
153332001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
15334
15335 * m/ibms390.h: New file. From Adam Thornton
15336 <athornton@sinenomine.net>.
15337
cac1daf0
GM
153382001-10-28 Gerd Moellmann <gerd@gnu.org>
15339
053b3256 15340 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 15341
cac1daf0
GM
15342 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
15343 a loop counter.
15344
f00691a3 153452001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 15346
f9711de4 15347 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 15348
4707d2d0
PJ
15349 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
15350 keyword].
15351 Fix typos in comments.
b116830b 15352
d883731c
PJ
15353 * emacs.c (bug_reporting_address): New function.
15354 Use it when displaying usage message.
15355
04012254
PJ
15356 * minibuf.c (read_minibuf): Remove unused external declaration of
15357 variable `Qread_only'.
15358
13b1a09c
PJ
15359 * keymap.c (access_keymap): Remove unused variable `charset'.
15360
5bbf4378
MB
153612001-10-28 Miles Bader <miles@gnu.org>
15362
15363 * xfaces.c (merge_face_heights): Handle TO being relative as well.
15364 Remove #ifdef'd-out code.
15365 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
15366 (syms_of_xfaces): Initialize them.
15367
1ce1e4ee
JR
153682001-10-27 Jason Rumney <jasonr@gnu.org>
15369
15370 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
15371 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
15372 position using the system caret.
15373
15374 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
15375 (w32_system_caret_height, w32_system_caret_x)
15376 (w32_system_caret_y): New variables for tracking system caret.
15377 (w32_initialize): Initialize them.
c2d53558 15378 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 15379
c2d53558
SM
15380 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
15381 New messages types.
1ce1e4ee
JR
15382
15383 * w32term.c (note_mouse_highlight): Clear old help_echo.
15384
f00691a3 153852001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 15386
bb4600a4
PJ
15387 * xterm.c: Fix typo in a comment.
15388
7db35a48
PJ
15389 * emacs.c: Fix typos in comments.
15390 Remove unnecessary spaces.
15391 Change doc-string comments to `new style' [w/`doc:' keyword].
15392 (USAGE2): Fix typos in usage string.
15393
a7248e4f
PJ
15394 * xterm.c: Fix typo in a comment.
15395
4e30ce42
PJ
15396 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
15397 emacs.c.
15398
62725a92
GM
153992001-10-27 Gerd Moellmann <gerd@gnu.org>
15400
798dbe1f 15401 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 15402 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
15403 farther backward when target_y was not reached.
15404
62725a92
GM
15405 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
15406 Display errno only if non-zero.
15407 (sound_warning): New function.
15408 (vox_configure): Don't treat failing to set sample rate as error.
15409 (various places): Improve error messages.
15410
d4e34d24
EZ
154112001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
15412
944e6f60
EZ
15413 * fileio.c (Faccess_file): Run the argument filename through
15414 Fexpand_file_name, before using it.
15415
d4e34d24
EZ
15416 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
15417 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
15418
38d2af0c
GM
154192001-10-26 Gerd Moellmann <gerd@gnu.org>
15420
da80a8d5
GM
15421 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
15422
38d2af0c
GM
15423 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15424 Fix clearing in the case of scroll bars on the right.
c2d53558 15425
45de4a6f 154262001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
15427
15428 * w32gui.h (XImage): Add a dummy typedef.
15429
fbd5ceb2
GM
154302001-10-26 Gerd Moellmann <gerd@gnu.org>
15431
c2d53558 15432 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 15433
b23236fb
EZ
154342001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
15435
15436 * frame.c (Fframe_parameter): Fix last change.
15437
5d991fc4
EZ
15438 * fileio.c: Revert last change (which removed old commented-out
15439 version of expand-file-name). Add a comment that explains why
15440 this old version should not be removed.
15441
879eadc3
GM
154422001-10-25 Gerd Moellmann <gerd@gnu.org>
15443
75700ff2
GM
15444 * frame.c (Fframe_parameter): Fix a bug whereby some
15445 ``artificial'' frame parameters, like `minibuffer' were not
15446 obtained by calling Fframe_parameters.
15447
dfe92a6a
GM
15448 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
15449 cursor differently.
15450
879eadc3
GM
15451 * xdisp.c (move_it_vertically_backward): Compute line height
15452 differently. Add heuristic to try to be more compatible to 20.x.
15453
e1010ebe
SM
154542001-10-25 Stefan Monnier <monnier@cs.yale.edu>
15455
d73a471b
SM
15456 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
15457
d6da5a06
GM
15458 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
15459 boolean.
e1010ebe 15460
f66bd220
MB
154612001-10-25 Miles Bader <miles@gnu.org>
15462
15463 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
15464 BG is a pointer to a structure, not a structure.
15465 (gif_format, png_format): Add missing commas.
15466
d436d538
RS
154672001-10-24 Richard M. Stallman <rms@gnu.org>
15468
15469 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 15470 (syms_of_xfaces): Defsubr it.
d436d538 15471
f00691a3 154722001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
15473
15474 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
15475 variable `area'.
15476
f00691a3 154772001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 15478
c2d53558 15479 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 15480
e2a57b34
MB
154812001-10-25 Miles Bader <miles@gnu.org>
15482
15483 * dispextern.h (struct image): Add `background',
15484 `background_valid', and `background_transparent' fields.
15485 (image_background, image_background_transparent): New declarations.
15486 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
15487 * xfns.c (image_background, image_background_transparent)
15488 (four_corners_best): New functions.
c2d53558 15489 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
15490 (gs_format): Add `:background' entry.
15491 (lookup_image): Set IMG's background color if specified.
15492 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15493 when appropriate.
15494 (x_clear_image_1): Reset `background_valid' and
15495 `background_transparent_valid' fields.
15496 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15497 calculating it here. Set IMG's background_transparent field.
15498 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15499 (enum png_keyword_index): Add PNG_BACKGROUND.
15500 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15501 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15502 (enum gif_keyword_index): Add GIF_BACKGROUND.
15503 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 15504 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
15505 Pre-calculate image background color where necessary.
15506 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15507 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15508 color to use for image glyph reliefs.
15509
b547b6e8
GM
155102001-10-24 Gerd Moellmann <gerd@gnu.org>
15511
d9e3b8c6
GM
15512 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
15513 in full-width rows.
c2d53558 15514
b547b6e8
GM
15515 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15516 Fix clearing of area not covered by scroll bar.
15517
f00691a3 155182001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
15519
15520 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
15521 and `real_start'.
c2d53558 15522 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
15523 (glyph_rect): Remove unused variable `area'.
15524
76cb5e06
GM
155252001-10-24 Gerd Moellmann <gerd@gnu.org>
15526
bdbdebff 15527 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
15528
15529 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
15530 (row_containing_pos): Take additional argument DY.
15531 Treat rows ending in middle of char differently.
62e33982
GM
15532 (display_line): Handle tabs on window systems differently.
15533
15534 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
15535 with additional argument.
15536
15537 * dispextern.h (row_containing_pos): Adjust prototype.
15538
76cb5e06
GM
15539 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
15540 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
15541 (try_window_id, try_window_reusing_current_matrix)
15542 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 15543 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 15544
f00691a3 155452001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 15546
c9e60620
PJ
15547 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
15548 gnuemacs).
15549 (HAVE_BOXES): Fix typo in comment.
15550 (push_menu_pane): Fix typo in comment.
15551
3b552d56
PJ
15552 * xdisp.c: (display_prop_string_p): Remove unused local declaration
15553 of `Qwhen'.
15554 (single_display_prop_string_p): Remove unused local declarations
15555 of `Qwhen' and `Qmargin'.
15556 (string_buffer_position): Remove unused variable `around'.
15557 (store_frame_title): Remove unused variable `width'.
15558
15c565ac
PJ
15559 * window.c: Don't define max.
15560 (coordinates_in_window): Remove unused variable `uy'.
15561
a8818eb9
PJ
15562 * widget.c: Don't define max.
15563
996fee11
PJ
15564 * process.c: Don't define max.
15565 (create_process): Remove unused variable `buffer'.
15566
496e1a5b
GM
155672001-10-23 Gerd Moellmann <gerd@gnu.org>
15568
c2d53558 15569 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 15570
5905ae8b
EZ
155712001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
15572
15573 * xfaces.c (Finternal_set_lisp_face_attribute)
15574 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
15575 frame is on a windowed display.
15576
24db49fb
GM
155772001-10-23 Gerd Moellmann <gerd@gnu.org>
15578
c2d53558
SM
15579 * dispnew.c (sync_window_with_frame_matrix_rows):
15580 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
15581 of marginal areas.
15582
c2d53558 15583 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 15584
f0487f05
EZ
155852001-10-23 Andreas Schwab <schwab@suse.de>
15586
15587 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
15588 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
15589
f0a48a01
GM
155902001-10-23 Gerd Moellmann <gerd@gnu.org>
15591
c2d53558 15592 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
15593 REAL_END. Notice if cursor gets overwritten.
15594 (notice_overwritten_cursor): Take X positions as parameters.
15595 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15596 around call to x_draw_glyphs.
15597
f00691a3 155982001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 15599
fc11dff0
PJ
15600 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
15601 instead of C) and usage.
a50a10a0 15602
fc11dff0
PJ
15603 * editfns.c (char-to-string): Fix argument names (use CHAR instead
15604 of C) and usage.
a50a10a0
PJ
15605
15606 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
15607 `left', `max_width' and `max_height'.
15608
8738febd
GM
156092001-10-23 Gerd Moellmann <gerd@gnu.org>
15610
15611 * xdisp.c (display_line): For a tab continued to the next line,
15612 set row's ends_in_middle_of_char_p.
15613
653c329b
GM
156142001-10-22 Gerd Moellmann <gerd@gnu.org>
15615
15616 * xdisp.c (display_line): Fix computation of continuation lines
15617 width for TABs.
15618
f00691a3 156192001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 15620
7ba51063
PJ
15621 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
15622 `Qlaplace'.
15623
f958c5ac
PJ
15624 * fileio.c: Remove unused code.
15625
eb360291
MB
156262001-10-22 Miles Bader <miles@gnu.org>
15627
15628 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
15629 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
15630 Remove `DOC_STRINGS_IN_COMMENTS' cases.
15631
98515cf0
JR
156322001-10-21 Jason Rumney <jasonr@gnu.org>
15633
15634 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
15635
93026d88
EZ
156362001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
15637
15638 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
15639 (Finsert_string): Avoid the multi-line string literals warning.
15640
c9a95b79
MB
156412001-10-22 Miles Bader <miles@gnu.org>
15642
15643 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
15644 (Fdocumentation): Don't use it.
15645 (syms_of_doc): Don't initialize it.
15646
15647 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
15648 * print.c (Fwith_output_to_temp_buffer): Likewise.
15649 * window.c (Fsave_window_excursion): Likewise.
c2d53558 15650 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 15651 (Fsave_restriction): Likewise.
c2d53558
SM
15652 * eval.c (Frun_hooks, Frun_hook_with_args)
15653 (Frun_hook_with_args_until_failure)
15654 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
15655 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
15656 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
15657 (Funwind_protect, Fcondition_case): Likewise.
15658 * coding.c (Ffind_operation_coding_system): Likewise.
15659 * keyboard.c (Ftrack_mouse): Likewise.
15660
a3b10252
MB
156612001-10-21 Miles Bader <miles@gnu.org>
15662
c2d53558 15663 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
15664 (Fmake_hash_table): Add usage: string to doc string.
15665 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 15666 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
15667 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
15668 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
15669 (Fml_prefix_argument_loop): Likewise.
15670
f00691a3 156712001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 15672
c2d53558 15673 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 15674
c6f73eec
PJ
15675 * sysdep.c (init_sys_modes): Change doc-string comments to `new
15676 style' [w/`doc:' keyword].
15677
15678 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
15679 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
15680 comments to `new style' [w/`doc:' keyword].
15681
3cf3436e
JR
156822001-10-21 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
15685
c169b8f1
JR
15686 * w32term.c (remember_mouse_glyph): New function.
15687 (w32_mouse_position): Use it.
15688 (note_mouse_movement): If the mouse moved off the glyph, remember
15689 its new position.
c2d53558 15690
4fdd691b
JR
15691 * w32term.h (struct w32_output): Correct spelling of x_compatible.
15692 (w32_display_info): Add mouse_face_overlay.
15693
c169b8f1
JR
15694 * w32term.c (notice_overwritten_cursor): Renamed from
15695 note_overwritten_text_cursor. Rewritten to take glyph widths into
15696 account.
15697 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
15698 (fast_find_string_pos): New function.
15699 (fast_find_position): Return the correct vpos. Add parameter
15700 STOP. In the final row, stop before glyphs having STOP as object.
15701 Don't consider glyphs that are not from a buffer.
15702 (fast_find_position) [0]: Add a presumably more correct version
15703 for after 21.1.
15704 (expose_window_tree, expose_frame): Don't compute intersections here.
15705 (expose_window): Do it here instead.
15706 (expose_window_tree, expose_window, expose_line): Return 1 when
15707 overwriting mouse-face.
15708 (expose_window): If W is the window currently being updated, mark
15709 the frame garbaged.
15710 (expose_frame): If mouse-face was overwritten, redo it.
15711 (x_use_underline_position_properties): New variable.
15712 (syms_of_xterm): DEFVAR_BOOL it.
15713 (x_draw_glyph_string): Add comment to use it in future.
15714 (x_draw_glyph_string): Restore clipping after drawing box.
15715 Fix a computation of the underline position.
15716 (w32_get_glyph_string_clip_rect): Minor cleanup.
15717 (x_fill_stretch_glyph_string): Remove an assertion.
15718 (x_produce_glyphs): Don't convert multibyte characters
15719 to unibyte characters in unibyte buffers.
15720 (cursor_in_mouse_face_p): New function.
15721 (x_draw_stretch_glyph_string): Use it to choose a different GC
15722 when drawing a cursor within highlighted text. Don't draw
15723 background again if it has already been drawn.
15724 (x_draw_glyph_string_box): Don't draw a full-width
15725 box just because the glyph row's full_width_p flag is set.
15726 (x_draw_glyphs): Fix computation of rightmost x for
15727 full-width rows.
15728 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
15729 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 15730 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
15731 (x_update_window_end): Handle overwritten mouse face
15732 also for tool bar windows.
15733 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
15734 DRAW is DRAW_IMAGE_RAISED.
15735 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
15736 actually redrawn. Make the function static.
15737 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
15738 optimize away highlighting if we pass over that same overlay again.
15739 (note_mouse_highlight): Call mouse_face_overlay_overlaps
15740 to detect a case where we have to highlight a different region
15741 despite not having left the currently highlighted region.
15742 Set mouse_face_overlay in the x_display_info. Avoid changing the
15743 mouse pointer shape when show_mouse_face has already done it, or
15744 there is no need. Handle mouse-face and help-echo in strings.
15745 (glyph_rect): New function.
15746 (w32_mouse_position): Use it to raise the threshold for mouse
15747 movement event generation.
15748 (w32_initialize_display_info): Initialize the x_display_info's
15749 mouse_face_overlay.
15750 (w32_set_vertical_scroll_bar): Don't clear a zero height
15751 or width area.
15752 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
15753 a widget to zero height.
15754
3cf3436e 15755 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 15756 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
15757 equivalents in menu_items.
15758 (w32_menu_show): Don't overwrite an item's name with its key
15759 description in case the description is a multibyte string.
15760 (single_submenu): Some cleanup.
15761
15762 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
15763 (postprocess_image): New function.
15764 (lookup_image): Call it for all image types except PostScript.
15765 (x_kill_gs_process): Call postprocess_image.
15766 (tiff_error_handler, tiff_warning_handler): New functions.
15767 (tiff_load): Install them as handlers.
15768 (x_kill_gs_process): Recognize if someone has cleared the image
15769 cache under us.
15770 (valid_image_p): Protect better against invalid image
15771 specifications. Previous code could signal an error.
15772 (Fx_hide_tip, Fshow_tip): Doc fix.
15773 (Fv_max_tooltip_size): New variable.
15774 (syns_of_xfns): DEFVAR_LISP it.
15775 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 15776 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
15777 window_width. Use a maximum tooltip size specified by
15778 Vx_max_tooltip_size, if that has valid contents.
15779 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
15780 Make sure the tooltip is completely visible.
15781 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
15782 (Fx_create_frame): Adjust the frame's height for presence
15783 of the tool bar before calling x_figure_window_size.
15784 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
15785 when the window gets smaller.
15786 (x_set_foreground_color): Set frame's cursor_pixel.
15787 (x_set_foreground_color, x_set_background_color): Cleaned up.
15788 (x_set_font): Handle case of x_new_fontset returning the same name
15789 as before, although there was a change in fontsets.
15790
386ca361
MB
157912001-10-21 Miles Bader <miles@gnu.org>
15792
c2d53558 15793 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
15794 (Flogxor): Add usage: string to doc string.
15795 * charset.c (Fstring): Likewise.
15796 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
15797 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
15798
f00691a3 157992001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 15800
03be2694
PJ
15801 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
15802
15803 * alloc.c: Reindent DEFUNs with doc: keywords.
15804
15805 * abbrev.c (Finsert_abbrev_table_description): Reindent.
15806
14ff1ee0
PJ
15807 * frame.c: Change doc-string comments to `new style' [w/`doc:'
15808 keyword].
15809
2f147815 15810See ChangeLog.9 for earlier changes.
6922b018
KH
15811
15812;; Local Variables:
49b3bd82 15813;; coding: iso-2022-7bit
6922b018 15814;; End:
2a34a036 15815
2f147815 15816 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
15817 Copying and distribution of this file, with or without modification,
15818 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
15819
15820;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4