(make_cursor_line_fully_visible_p): New variable.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b9de078a
KS
12004-11-12 Kim F. Storm <storm@cua.dk>
2
381f7091
KS
3 * dispextern.h (struct glyph_row): New member extra_line_spacing.
4 (struct it): New member max_extra_line_spacing.
5 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
7 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
8 part of last line is only extra line spacing (so the text on the
9 line is fully visible). Use helper macros.
10 Add W arg (to use them). All callers changed.
11 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
12 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
13
14 * window.c (window_scroll_pixel_based, Frecenter): Use
15 move_it_vertically_backward directly.
16 (Frecenter): Fix calculation of new start pos for negative arg.
17 Before, the new start pos was sometimes chosen too far back, so
18 the last line became only partially visible, and thus would be
19 either only semi-visible or automatically scrolled to the middle
20 of the window by redisplay.
21
22 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
23 (move_it_vertically_backward): Don't recure to move further back.
24 (move_it_vertically): Remove superfluous condition.
25 (move_it_by_lines): Clear last_height when moved 0 lines.
26 (resize_mini_window): use it.max_extra_line_spacing.
27 (display_tool_bar_line): Clear row->extra_line_spacing.
28 (try_scrolling): Use move_it_vertically_backward directly.
29 (redisplay_window): Likewise.
30 (compute_line_metrics): Set row->extra_line_spacing.
31 (display_line, display_string): Likewise.
32 (x_produce_glyphs): Update it->max_extra_line_spacing.
33
b9de078a
KS
34 * xmenu.c (pop_down_menu): Return nil.
35
c3438661
JD
362004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
37
38 * xmenu.c (x_menu_wait_for_event): New function.
39 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
40 to handle timers.
df00f436
JD
41 (popup_widget_loop): Add argument do_timers.
42 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
43 do_timers to popup_widget_loop.
c3438661
JD
44 (xmenu_show): Call XMenuActivateSetWaitFunction so that
45 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 46 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 47 popup_get_selection.
f1d1cd24
JD
48 (pop_down_menu): New function.
49 (popup_get_selection, popup_widget_loop): Unwind protect to
50 pop_down_menu.
51 (popup_widget_loop): Add argument widget.
52 (create_and_show_popup_menu, create_and_show_dialog): Pass new
53 argument widget to popup_widget_loop.
c3438661 54
32e2fb04
SM
552004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
56
57 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
58
0faf6806
KS
592004-11-09 Kim F. Storm <storm@cua.dk>
60
61 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
62 Fix various comments referring to XEvents instead of input events.
63 (x_queue_event): Fix format strings.
64 (x_stop_queuing_selection_requests): Likewise.
65
66 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
67 (pint2hrstr): Add extra braces to silence compiler.
68
69 * print.c (print_object): Fix format string.
70
71 * lread.c (read1): Fix next_char matching.
72
73 * lisp.h (Fdelete): Add EXFUN.
74 (replace_range_2): Add prototype.
75
76 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
77
78 * intervals.h (NULL_INTERVAL_P): Add separate version when
79 ENABLE_CHECKING is not defined to silence compiler.
80 (compare_string_intervals): Add prototype.
81
82 * fringe.c (destroy_fringe_bitmap): Fix return type.
83 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
84
85 * emacs.c (Fdump_emacs): Fix format string.
86
87 * doc.c: Include <ctype.h>.
88 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
89
90 * data.c (store_symval_forwarding): Remove unused variables.
91
92 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
93
16bf4e32
JD
942004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
95
96 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
97 to ${OLDXMENU}.
98
cdb805a9
KS
992004-11-09 Kim F. Storm <storm@cua.dk>
100
101 * process.c (Fmake_network_process): Remove kludge for interrupted
102 connects on BSD. If connect is interrupted, just close socket and
103 start over rather than sleeping and retry with same socket.
104
d87a9ab8 1052004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 106
a8b16c80
JD
107 * .cvsignore: Add buildobj.lst.
108
d87a9ab8
JD
109 * doc.c: New variable Vbuild_files.
110 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
111 file names from buildobh.lst. Only attach docstrings from files
112 that are in Vbuild_files.
113 (syms_of_doc): Defvar Vbuild_files.
114
115 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
116 and w32*.o.
117 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
cdb805a9 118 (mostlyclean): rm buildobj.lst
d87a9ab8
JD
119
120 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
121 is linked.
122
b6709e77
KS
1232004-11-09 Kim F. Storm <storm@cua.dk>
124
125 * fringe.c (update_window_fringes): Update fringe bitmaps if
126 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
127 also update previous row to get rid of misc. artifacts.
128
bae9677d
KS
1292004-11-08 Kim F. Storm <storm@cua.dk>
130
131 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 132 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 133
3f8ea68c
EZ
1342004-11-08 Eli Zaretskii <eliz@gnu.org>
135
136 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
137 Don't include <sys/time.h> explicitly.
138 Include <stdio.h> unconditionally, not just on MacOS.
139
a653f812
KH
1402004-11-08 Kenichi Handa <handa@m17n.org>
141
142 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
143 don't pay attention to '\' before '*'.
144 (fontset_pattern_regexp): Change the meaning of the second arg.
145 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
146 (check_fontset_name): Try NAME as literal at first, and if it
147 failes, try NAME as pattern.
148
c37caf9d
JD
1492004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
150
151 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
152
b72915a7
AS
1532004-11-07 Andreas Schwab <schwab@suse.de>
154
155 * lisp.h: Declare Fmsdos_downcase_filename.
156 * dired.c: Don't declare Fmsdos_downcase_filename.
157 * fileio.c: Likewise.
158
238a44a8
JD
1592004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
160
161 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
162 comparisons with integers instead of Lisp_Object address.
163 (Fmsdos_set_keyboard): Declare argument allkeys.
164
165 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
166
167 * dired.c: extern declare Fmsdos_downcase_filename on MSDOS to avoid
168 int/Lisp_Object mixup.
169
170 * fileio.c: Ditto.
171
31141c13
ST
1722004-11-06 Steven Tamm <steventamm@mac.com>
173
174 * editfns.c: Need to include sys/time.h before resource.h on darwin.
175
f28c1bd9
RS
1762004-11-06 Richard M. Stallman <rms@gnu.org>
177
178 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
179
180 * xfaces.c (merge_named_face): GCPRO the face_name in the
181 named_merge_point struct that we make.
182 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
183
184 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
185 before deciding whether to inactivate mark.
186
59dede22
EZ
1872004-11-06 Lars Brinkhoff <lars@nocrew.org>
188
189 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
190 * editfns.c (Fget_internal_run_time): New function.
191 (syms_of_data): Defsubr it.
192 * fns.c (sxhash): As far as possible, merge calculation of
193 hash code for symbols and strings.
59dede22 194
27540e81
EZ
1952004-11-06 Eli Zaretskii <eliz@gnu.org>
196
197 * frame.c (syms_of_frame): Fix the example in the doc string.
198
df470e3b
JD
1992004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
200
201 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
202
203 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
204 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 205
4cc8522c
LT
2062004-11-05 Luc Teirlinck <teirllm@auburn.edu>
207
208 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
209
d4a42098
KS
2102004-11-05 Kim F. Storm <storm@cua.dk>
211
a8490886
KS
212 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
213
d4a42098
KS
214 * fileio.c (Ffile_modes): Doc fix.
215 (auto_save_1): Check for Ffile_modes nil value.
216
36a2b04c
KS
2172004-11-05 Kim F. Storm <storm@cua.dk>
218
219 * xselect.c (struct selection_event_queue, selection_queue)
220 (x_queue_selection_requests, x_queue_event)
221 (x_start_queuing_selection_requests)
222 (x_stop_queuing_selection_requests): Add new queue for selection
223 input events to replace previous XEvent queue in xterm.c.
224 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
225 (x_reply_selection_request): Adapt to new queue.
226 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
227 (x_handle_selection_request, x_handle_selection_clear): Make static.
228 (x_handle_selection_event): New function. May queue selection events.
229 (wait_for_property_change_unwind): Use save_value instead of cons.
230 Clear property_change_reply_object.
231 (wait_for_property_change): Abort if already waiting.
232 Use save_value instead of cons for unwind data.
233 (x_handle_property_notify): Skip events already arrived, but don't
234 free them, as "arrived" field is checked by wait_for_property_change,
235 and it will be freed by unwind or explicit unexpect_property_change.
236 (x_get_foreign_selection): Add to new queue.
237 (receive_incremental_selection): Don't unexpect wait_object when done
238 as it has already been freed by previous wait_for_property_change.
239
240 * xterm.h (x_start_queuing_selection_requests)
241 (x_stop_queuing_selection_requests, x_handle_selection_request)
242 (x_handle_selection_clear): Remove prototypes.
243 (x_handle_selection_event): Add prototype.
244
245 * xterm.c (handle_one_xevent): Don't queue X selection events
246 here, it may be too late if we start queuing after we have already
247 stored some selection events into the kbd buffer.
248 (struct selection_event_queue, queue, x_queue_selection_requests)
249 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
250 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
251 (x_catch_errors_unwind): Block input around final XSync.
252
253 * keyboard.h (kbd_buffer_unget_event): Add prototype.
254
255 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
256 (kbd_buffer_unget_event): New function.
257 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
258 and use x_handle_selection_event.
259 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
260
9c3ad9e1
JD
2612004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
262
263 * xselect.c (TRACE3): New debug macro.
264 (x_reply_selection_request): Use it.
265 (receive_incremental_selection): In call to TRACE0, the name of
266 a symbol is in xname.
267
a33b89de
KS
2682004-11-05 Kim F. Storm <storm@cua.dk>
269
270 * fontset.c (fontset_pattern_regexp): Use unsigned char.
271
a872928c
JD
2722004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
273
88208bb8
JD
274 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
275
0a4f23f3
JD
276 * gtkutil.h: Declare use_old_gtk_file_dialog.
277
278 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 279 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
280 * xfns.c (syms_of_xfns): ... to here.
281
a872928c
JD
282 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
283 it doesn't start with /.
284
b912921c
KH
2852004-11-04 Kenichi Handa <handa@m17n.org>
286
287 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
288 treat it as a literal character.
289
c524d9a6
KS
2902004-11-03 Kim F. Storm <storm@cua.dk>
291
292 * .gdbinit (ppt): New function.
293
8cfd0f36
JD
2942004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
295
a11e1dce
JD
296 * xterm.c (x_window_to_scroll_bar): Only call
297 xg_get_scroll_id_for_window if toolkit scroll bars are used.
298
8cfd0f36
JD
299 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
300 of save.
301
a93563fd
AS
3022004-11-02 Andreas Schwab <schwab@suse.de>
303
304 * window.c (Fscroll_right): Fix last change.
305
2b2d59d8
KS
3062004-11-02 Kim F. Storm <storm@cua.dk>
307
308 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
309
3102004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
311
312 * callproc.c (Fcall_process): Block input around vfork.
313
ca28104d
KS
3142004-11-02 Kim F. Storm <storm@cua.dk>
315
316 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
317 (syms_of_eval): Defsubr it.
318
29bb7127
RS
3192004-11-02 Richard M. Stallman <rms@gnu.org>
320
321 * insdel.c (replace_range_2): New function.
322
323 * casefiddle.c (casify_region): Handle changes in byte-length
324 using replace_range_2.
325
326 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
327
b6189c3b 328 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
329 Subtract 1 from pos when checking previous newline for invisibility.
330
331 * window.c (window_scroll_pixel_based): Update preserve_y
332 for header line if any.
333 (Fscroll_left, Fscroll_right): Don't call interactive_p;
334 use a new second argument instead.
335
336 * eval.c (Fcall_interactive_p): New function.
337 (interactive_p): Don't test INTERACTIVE here.
338 (Finteractive_p): Doc fix.
339
340 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
341
b6189c3b 3422004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
343
344 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 345 comparing font names.
a3fe4aaf 346
2a00cdb4
JD
3472004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
348
f9d64bb3
JD
349 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
350 Fx_file_dialog if only directories should be read.
351
352 * lisp.h: Fx_file_dialog takes 5 parameters.
353
32e2fb04
SM
354 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
355 Add parameter only_dir_p.
f9d64bb3
JD
356 In Motif version, don't put DEFAULT_FILENAME in filter part of the
357 dialog, just text field part. Do not add DEFAULT_FILENAME
358 to list of files if it isn't there.
359 In GTK version, pass only_dir_p parameter to xg_get_file_name.
360
32e2fb04
SM
361 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
362 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
363 a save dialog, add option kNavDontConfirmReplacement, change title
364 to "Enter name", change text for save button to "Ok".
365
32e2fb04
SM
366 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
367 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
368
369 * gtkutil.c (xg_get_file_with_chooser)
370 (xg_get_file_with_selection): New functions, only defined ifdef
371 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
372 respectively.
373 (xg_get_file_name): Add parameter only_dir_p.
374 Call xg_get_file_with_chooser or xg_get_file_with_selection
375 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
376 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
377
378 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
379
2a00cdb4
JD
380 * config.in: Rebuild (added HAVE_GTK_FILE_*).
381
f6749d5d
KS
3822004-11-01 Kim F. Storm <storm@cua.dk>
383
32e2fb04
SM
384 * process.c (connect_wait_mask, num_pending_connects):
385 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 386 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
387 (IF_NON_BLOCKING_CONNECT): New helper macro.
388 (wait_reading_process_output): Only declare and use local vars
389 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 390
1a99fe1a
JR
3912004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
392
393 * w32term.c (x_scroll_run): Delete region objects after use.
394
fcdb28b4
JD
3952004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
396
495ef86b
JD
397 * xmenu.c: Add prototypes for forward function declarations.
398 (popup_get_selection): Remove parameter do_timers, remove call to
399 timer_check.
32e2fb04
SM
400 (create_and_show_popup_menu, create_and_show_dialog):
401 Remove parameter do_timers from call to popup_get_selection.
495ef86b 402
12e6566a
JD
403 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
404 tool_bar_items and assign the result to f->tool_bar_items if
405 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
406 tool_bar_items to assignment of result.
407
fcdb28b4
JD
408 * atimer.c (alarm_signal_handler): Do not call set_alarm if
409 pending_atmers is non-zero.
410
1a1a0c4c
KS
4112004-10-31 Kim F. Storm <storm@cua.dk>
412
413 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
414
a36f1680
JW
4152004-10-28 Will <will@glozer.net>
416
417 * macterm.c: allow user to assign key modifiers to the Mac Option
418 key via a 'mac-option-modifier' variable.
419
32e2fb04 4202004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
421
422 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
423 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
424 (x_handle_selection_request, x_handle_selection_clear)
425 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
426
4f71c13f
RS
4272004-10-28 Richard M. Stallman <rms@gnu.org>
428
429 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
430
431 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
432
068f3848
SM
4332004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
434
435 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
436 comment-starter over a 1-char one.
437
4660a9e3
RS
4382004-10-27 Richard M. Stallman <rms@gnu.org>
439
440 * xdisp.c (get_next_display_element): In mode lines,
441 treat newline and tab like other control characters.
442
443 * editfns.c (Fmessage): Doc fix.
444
445 * indent.c (vmotion): When moving up, check the newline before.
446 Make prevline an int, not a Lisp_Object.
447
233f3db6
KS
4482004-10-27 Kim F. Storm <storm@cua.dk>
449
450 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
451 Only allocate info and discarded tables once.
452
453 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
454 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
455 (SAFE_FREE): Test it to determine if we need to unwind to free.
456 Remove size arg. All users changed.
457 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
458
1442465d
JD
4592004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
460
461 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
462 (xg_destroy_widgets): Rename from remove_from_container.
463 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
464 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
465 instead of remove_from_container.
466 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
467 (free_frame_tool_bar): Add comment.
468
469 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
470 is not NULL before strcmp.
471
c8636435
KS
4722004-10-26 Kim F. Storm <storm@cua.dk>
473
474 * callint.c (Fcall_interactively): Add 'U' code to get the
475 up-event discarded by a previous 'k' or 'K' argument.
476
5629f29b
DK
4772004-10-26 David Kastrup <dak@gnu.org>
478
479 * buffer.c (syms_of_buffer): Fix a few typos.
480
4f2f546e
JD
4812004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
482
483 * xsmfns.c: Put empty line between comment and function body.
484 Use two spaces before comment end.
485
fc1062f5
KH
4862004-10-25 Kenichi Handa <handa@m17n.org>
487
488 * fontset.c (fontset_pattern_regexp): Optimize for the case that
489 PATTERN is full XLFD.
490
be13f5e5
KH
4912004-10-24 Kenichi Handa <handa@m17n.org>
492
493 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
494
495 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
496 (regex_compile): Return REG_ERANGEX if appropriate.
497
d0ee2ed3
KH
4982004-10-22 Kenichi Handa <handa@m17n.org>
499
500 * editfns.c (Ftranslate_region_internal): New function.
501 (syms_of_editfns): Defsubr it.
502
63ea8ea5
JD
5032004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
504
505 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
506
c27ed90a
JD
5072004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
508
068f3848
SM
509 * xterm.h (x_output): New member `xic_base_fontname'.
510 (FRAME_XIC_BASE_FONTNAME): New macro.
511 (xic_free_xfontset): Declare.
c27ed90a 512
068f3848
SM
513 * xfns.c (xic_create_xfontset): Share fontsets between frames
514 based on base_fontname.
515 (xic_free_xfontset): New function.
516 (free_frame_xic): Use it.
517 (xic_set_xfontset): Ditto.
c27ed90a 518
068f3848 519 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
520
521
59508699
JR
5222004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
523
524 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
525
dede2792
JD
5262004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
527
3aca2078
JD
528 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
529 XSync.
530
dede2792
JD
531 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
532 New variables and constant.
533 (main): Calculate heap_bss_diff. If we are dumping and the
534 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
535 and exec ourself again.
536 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
537 print a warning.
538
539 * lastfile.c: Make my_endbss and my_endbss_static available on all
540 platforms.
541
542 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
543 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
544
1dc5ba01
LT
5452004-10-19 Luc Teirlinck <teirllm@auburn.edu>
546
547 * data.c (Flocal_variable_if_set_p): Doc fix.
548
950090be
JR
5492004-10-19 Jason Rumney <jasonr@gnu.org>
550
551 * w32.c (init_environment): Set emacs_dir correctly when running
552 emacs from the build directory.
553
8550b998
RS
5542004-10-19 Richard M. Stallman <rms@gnu.org>
555
556 * editfns.c (Fdelete_and_extract_region):
557 If region is empty, return null string.
558
08dedea6
JD
5592004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
560
1dc5ba01 561 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 562 and canon_width.
068f3848 563 (xg_frame_cleared): Remove.
08dedea6 564
068f3848
SM
565 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
566 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
567 (xg_create_scroll_bar): Put an event box widget between
568 the scroll bar widget and the edit widget.
569 (xg_show_scroll_bar): Show the parent widget (the event box).
570 (xg_remove_scroll_bar): Destroy parent (the event box) also.
571 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
572 Move the parent (the event box) widget inside the fixed widget.
573 Move window clear to xterm.c.
574
068f3848 575 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 576
08dedea6 577 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
578 (x_scroll_bar_create, XTset_vertical_scroll_bar):
579 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
580 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
581
8550b998 5822004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
583
584 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 585
84338890
JD
5862004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
587
588 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
589 gdk_window_clear and move gdk_window_process_all_updates after
590 clear so events are sent to the X server in correct order.
591
6e1b0d8c
KH
5922004-10-18 Kenichi Handa <handa@m17n.org>
593
594 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
595 comparing font names.
8550b998 596 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
597 (list_fontsets): Likewise.
598
599 * search.c (fast_string_match_ignore_case): New function.
600
601 * lisp.h (fast_string_match_ignore_case): Extern it.
602
345e75a8
KS
6032004-10-17 Kim F. Storm <storm@cua.dk>
604
605 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
606 than bitmap if there is not left fringe.
607 (get_overlay_arrow_glyph_row): Also used on windows system.
608 (display_line): Display overlay string if no left fringe.
609
be13cbb7
JR
6102004-10-16 Jason Rumney <jasonr@gnu.org>
611
612 * w32fns.c (w32_font_match): Encode font name being matched.
613
c2e2ede7
RS
6142004-10-16 Richard M. Stallman <rms@gnu.org>
615
616 * window.c (Fspecial_display_p): Doc fix.
617
3584d95d
SM
6182004-10-15 Stefan <monnier@iro.umontreal.ca>
619
620 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
621 Don't ignore menus, because where-is-internal already does it for us.
622
699a0392
KS
6232004-10-15 Kim F. Storm <storm@cua.dk>
624
b3c7a89b
KS
625 * xdisp.c (redisplay_window): Only update fringes and vertical
626 border on window frames.
699a0392 627
4e382b0f
AS
6282004-10-14 Andreas Schwab <schwab@suse.de>
629
630 * m/ia64.h (DATA_SEG_BITS): Don't define.
631
329a7be2
KS
6322004-10-14 Kim F. Storm <storm@cua.dk>
633
634 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 635 in some X versions.
329a7be2 636
982241b1
SM
6372004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
638
639 * fns.c (map_char_table): Add missing gcpros.
640
9238467d
SM
6412004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
642
643 * keymap.c (get_keymap): An autoload form is not a keymap.
644
645 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
646
4440e3ca
KS
6472004-10-13 Kim F. Storm <storm@cua.dk>
648
7cfdabde
KS
649 * callproc.c (Fcall_process): Simplify handling of display arg.
650 Resume `display_on_the_fly' once a coding system is determined.
651
4440e3ca
KS
652 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
653
1c8dec6a
KS
6542004-10-12 Kim F. Storm <storm@cua.dk>
655
656 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
657 caller, such as call-process, is not going to poll for input.
658 (calc_line_height_property): Handle case where it->object is nil.
659
660 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
661
170b174c
KH
6622004-10-12 Kenichi Handa <handa@m17n.org>
663
9238467d
SM
664 * xdisp.c (get_next_display_element):
665 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
666 chars in octal in unibyte buffer.
667
b583964c
KS
6682004-10-12 Kim F. Storm <storm@cua.dk>
669
670 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
671 are no ordinary bindings.
672
29fabd8c
JD
6732004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
674
9238467d 675 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 676
c3f4c690
ST
6772004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
678
9238467d
SM
679 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
680 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 681 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
682 terminal frame.
683 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
684 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
685 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
686 Make a cancel file-open dialog be like C-g.
9238467d
SM
687 * mac.c (mktime): Use emacs_mktime.
688 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
689 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 690
9688f9eb
KS
6912004-10-10 Kim F. Storm <storm@cua.dk>
692
693 * keyboard.c (timer_resume_idle): New function to resume idle
694 timer without resetting timers on the idle list.
695 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
696 (timer_start_idle, timer_stop_idle): Declare static.
697 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
698
699 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
700
f7f3a65f
ST
7012004-10-08 Steven Tamm <steventamm@mac.com>
702
9238467d 703 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 704 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 705 NULL where 0 should be used.
f7f3a65f
ST
706 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
707 objc/malloc.h
9238467d 708 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 709
3c7d999a
KS
7102004-10-07 Kim F. Storm <storm@cua.dk>
711
712 * xdisp.c (redisplay_window): Fix flicker on vertical line between
713 windows. Update vertical line after drawing window fringes, but
714 only if actually drawing any bitmaps--or there is no fringe.
715
716 * xterm.c (x_update_window_end): Likewise.
717 * macterm.c (x_update_window_end): Likewise.
718 * w32term.c (x_update_window_end): Likewise.
719
720 * fringe.c (draw_window_fringes): Return value now indicates if
721 any fringe bitmaps were redrawn (or there are no fringes).
722
723 * dispextern.h (draw_window_fringes): Update prototype.
724
bf06c82f
ST
7252004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
726
727 * macfns.c (mac_get_window_bounds): Add extern.
728 (x_real_positions): Use mac_get_window_bounds.
729
730 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
731 xmenu.c (YAILOM).
3c7d999a 732
bf06c82f
ST
733 * macterm.c [!MAC_OSX]: Include Windows.h.
734 (front_emacs_window): Rename from mac_front_window. All uses
735 changed. Return the frontmost non-tooltip emacs window.
736 (mac_get_window_bounds): New function.
737 (x_calc_absolute_position): Use the difference of width and height
738 between the inner and outer window.
739 (x_set_offset): Specify window position by the coordinae of the
740 outer window. Adjust the position if the title bar is completely
741 outside the screen.
742 (app_is_suspended, app_sleep_time): Remove unused variables.
743 (do_app_resume, do_app_suspend): Remove their contents because
744 window-activate/deactivate events will do the job.
745 (do_zoom_window): Remove unused variables. Make compliant to the
746 standard way of zooming. Set f->left_pos and f->top_pos.
747 (XTread_socket): Don't use argument `expected'. Don't use
748 FrontWindow to determine the clicked window. Exclude unprocessed
749 mouseUp cases in the early stage. Add parentheses to fix operator
750 precedence.
751 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
752
753
4cbbf6b7 7542004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
755
756 * config.in: Regenerate.
757
758 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
759 HAVE_EXECSHIELD.
760
b90ee8b5
JD
7612004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
762
763 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
764 a row if Alt or Meta has been found for that row. Also stop scanning
765 for Keysyms for that row.
766
904db1a2
KS
7672004-10-04 Kim F. Storm <storm@cua.dk>
768
0207b8ad
KS
769 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
770 to list. Include overlay arrow bitmap in return value.
771
25f7220c
KS
772 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
773 bars with fractional column width. If scroll bar separates two
774 windows, move it towards the window it belongs to. Only update
775 the padding area below the scroll bar widget when necessary,
776 i.e. when scroll bar widget is created, moved, or resized.
777
562020fe
KS
778 * xdisp.c (define_frame_cursor1): Do not change frame cursor
779 while tracking/dragging mouse.
780 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
781
37e34af7
KS
782 * window.c (coordinates_in_window): Relax check for cursor
783 on vertial border between mode lines.
784 (Fset_window_fringes): Do not allow negative widths.
785 (Fset_window_scroll_bars): Likewise.
786
904db1a2
KS
787 * .gdbinit (pp): Shorthand for p ARG + pr.
788 (ff): New command: flush frame updates (X only).
789
38fe4f64
MA
7902004-10-03 Michael Albinus <michael.albinus@gmx.de>
791
792 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
793
9de36315
KH
7942004-09-30 Kenichi Handa <handa@m17n.org>
795
07c381ad 796 * process.c (send_process): Free composition data.
9de36315 797
07c381ad 798 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
799
800 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
801 compositions to encode.
802 (encode_coding_string): Likewise. Free composition data.
803
b6189c3b 8042004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
805
806 * coding.c (code_convert_region): Free composition data.
9de36315 807
f2a54fbc
KS
8082004-09-29 Kim F. Storm <storm@cua.dk>
809
dc5d6435
KS
810 * fringe.c: Remove limit on number of bitmaps.
811 (fringe_bitmaps, fringe_faces): Change to pointers.
812 (max_fringe_bitmaps): New var.
813 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
814 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
815
816 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
817 (struct glyph_row): Reorder fringe_bitmap related fields.
818 (struct it): Likewise.
819
820 * w32term.c (fringe_bmp): Change to pointer.
821 (max_fringe_bmp): New var.
822 (w32_define_fringe_bitmap): Expand fringe_bmp.
823 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
824 (w32_destroy_fringe_bitmap): Likewise.
825
8262004-09-29 Kim F. Storm <storm@cua.dk>
827
828 * fringe.c: Simplify last change.
f2a54fbc
KS
829 (lookup_fringe_bitmap): New function.
830 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
831 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
832 Keep standard bitmaps in Vfringe_bitmaps.
833 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
834 (Fset_fringe_bitmap_face): Likewise.
835
836 * dispextern.h (lookup_fringe_bitmap): Add prototype.
837 (valid_fringe_bitmap_p): Remove prototype.
838
839 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
840
841a8bca
KS
8412004-09-29 Kim F. Storm <storm@cua.dk>
842
1f2da365
KS
843 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
844 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
845
841a8bca
KS
846 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
847
848 * fringe.c (Vfringe_bitmaps): New variable.
849 (syms_of_fringe): DEFVAR_LISP it.
850 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
851 Change arg to Lisp_Object and fail if not an integer.
852 (get_fringe_bitmap_name, resolve_fringe_bitmap)
853 (destroy_fringe_bitmap): New functions.
9238467d
SM
854 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
855 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
856 clear its fringe property.
857 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
858 Fdestroy_fringe_bitmap.
859 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
860 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
861 and set fringe property. Signal error if no free slots.
862 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
863 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
864
865 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
866 symbols with a fringe property.
867
4d965590
KS
8682004-09-27 Kim F. Storm <storm@cua.dk>
869
870 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
871 Doc fix. Format may now be a symbol or alist, not a cons.
872
873 * fringe.c (update_window_fringes): Handle new formats of
874 indicate-buffer-boundaries (symbol or alist). No longer
875 allow a simple cons.
876 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
877
e888c2b3
JD
8782004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
879
9238467d 880 * config.in: Rebuild.
e888c2b3 881
83f1cb94
JD
8822004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
883
884 * config.in: Rebuild.
885
dd3b1d60 886 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 887
2c51754c
SM
8882004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
889
890 * xterm.c (x_term_init): Work around a bug in some X servers.
891
3df5f8aa
RS
8922004-09-18 Richard M. Stallman <rms@gnu.org>
893
557ca2c1
RS
894 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
895
3df5f8aa
RS
896 * xdisp.c (try_window_reusing_current_matrix):
897 Handle the case where we reach the old displayed text,
898 out of sync with the old line boundary.
899
9238467d 9002004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
901
902 * fileio.c (Finsert_file_contents): Fix case of replacement in a
903 narrowed buffer.
904
bfa02563
KS
9052004-09-14 Kim F. Storm <storm@cua.dk>
906
a25fe164
KS
907 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
908
bfa02563
KS
909 * xfaces.c (Qface_no_inherit): New var.
910 (syms_of_xfaces): Intern and staticpro it.
911 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
912 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
913 Don't increment face_change_count when face has non-nil
914 face-no-inherit property.
915
126f9c02
SM
9162004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
917
892a8eb5
SM
918 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
919 (Fbyte_code): Remove dead code after `wrong_type_argument'.
920
126f9c02 921 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 922 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 923
c0ad3b38
KS
9242004-09-12 Kim F. Storm <storm@cua.dk>
925
926 * editfns.c (Fformat): Handle format strings with multiple text
927 properties. Reverse text property list from the format string,
928 so the positions are in increasing order.
929
844fc085
JD
9302004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
931
932 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
933 x_uncatch_errors so that possible protocol errors are delivered.
934
b106731c
EZ
9352004-09-10 Eli Zaretskii <eliz@gnu.org>
936
21065c92
EZ
937 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
938 blockinput.h.
939 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
940 charset.h, and coding.h
9238467d 941 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
942 (term.o): Depend on window.h and keymap.h.
943 (abbrev.o): Depend on syntax.h.
944 (callint.o): Depend on keymap.h.
945 (casefiddle.o): Depend on charset.h and keymap.h.
946 (category.o): Depend on keymap.h.
947 (coding.o): Depend on dispextern.h.
948 (cmds.o): Depend on keyboard.h and keymap.h.
949 (dispnew.o): Depend on indent.h and intervals.h.
950 (doc.o): Depend on keymap.h.
951 (editfns.o): Depend on frame.h.
952 (emacs.o): Depend on dispextern.h.
953 (fileio.o): Don't depend on ccl.h.
954 (filelock.o): Depend on charset.h and coding.h.
955 (frame.o): Depend on w32term.h and macterm.h.
956 (insdel.o): Depend on region-cache.h.
957 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
958 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
959 (search.o): Depend on $(INTERVALS_SRC).
960 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
961 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
962 xterm.h, w32term.h, and macterm.h.
963 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
964 w32term.h, and macterm.h.
965 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
966 region-cache.h, xterm.h, w32term.h, and macterm.h.
967 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
968 (data.o): Depend on frame.h.
969 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
970 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
971 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
972 (intervals.o): Depend on keymap.h.
973
9238467d
SM
974 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
975 Add debugging print-out to termscript.
b106731c 976
64b7122d
RS
9772004-09-09 Richard M. Stallman <rms@gnu.org>
978
979 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
980
5670531e
RS
9812004-09-08 Richard M. Stallman <rms@gnu.org>
982
6cb4a892
RS
983 * window.c (Fset_window_buffer): Doc fix.
984
5670531e
RS
985 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
986
7e388eb7
JL
9872004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
988
989 * minibuf.c (history_delete_duplicates): New variable.
990 (read_minibuf): Use it.
991 (syms_of_minibuf): Create the corresponding lisp variable.
992
370e3587
KS
9932004-09-08 Kim F. Storm <storm@cua.dk>
994
995 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
996 overlay just before point.
997
f844ba4e
LT
9982004-09-07 Luc Teirlinck <teirllm@auburn.edu>
999
1000 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
1001 * buffer.c (reset_buffer, init_buffer_once):
1002 Handle auto_save_file_format field.
f844ba4e
LT
1003 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1004 `buffer-auto-save-file-format'.
f844ba4e
LT
1005 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1006 (build_annotations): Adapt to replacement of
1007 `auto-save-file-format' with the new buffer-local variable
1008 `buffer-auto-save-file-format'.
1009 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1010
f0f90717
JR
10112004-09-07 Jason Rumney <jasonr@gnu.org>
1012
1013 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1014
9238467d
SM
1015 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1016 Handle Unicode menu titles.
f0f90717 1017
4e14f66c
KS
10182004-09-07 Kim F. Storm <storm@cua.dk>
1019
1020 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1021 property from text property or overlay strings at point.
1022
9238467d 10232004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
1024
1025 * xmenu.c (update_submenu_strings): YAILOM.
1026 (set_frame_menubar): Make sure last_i is initialized.
1027
1f06d367
JR
10282004-09-03 Jason Rumney <jasonr@gnu.org>
1029
1806714a 1030 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
1031 (digest_single_submenu): Set lname and lkey in widget_value
1032 instead of name and key.
1033 (update_submenu_strings): New function.
1034 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1035 call update_submenu_strings.
1036
1037 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1038 (digest_single_submenu, w32_menu_show): Encode menu strings as
1039 UTF-8 if Unicode API is available.
1040 (utf8to16): New function.
1041 (add_menu_item): Use it when calling Unicode API.
1806714a 1042
46540080
KS
10432004-09-03 Kim F. Storm <storm@cua.dk>
1044
1045 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1046 in overlay or text-property strings; set cursor on corresponding
1047 glyph rather than at end of the string.
1048
9277ba61 10492004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 1050
9277ba61 1051 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
1052 set a new one before obtaining the global coordinate.
1053 Use FRAME_MAC_WINDOW.
1054 (x_set_name, x_set_title): Encode title to UTF8.
1055 Use SetWindowTitleWithCFString.
9277ba61
ST
1056 (Fx_server_version): Get correct OS version.
1057
1806714a
SM
1058 * macmenu.c (add_menu_item): Remove unused variable `i'.
1059 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
1060
1061 * macterm.c (x_update_end): Move SetPortWindowPort to inside
1062 BLOCK_INPUT.
1063 (x_set_offset): Use FRAME_MAC_WINDOW.
1064
1065 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
1066 nontext_cursor if it is on a scroll bar.
1067
1068 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
1069 Carbon support.
1806714a
SM
1070 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
1071 Use LIBS_CARBON.
9277ba61 1072
b10daec7
JD
10732004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1074
1075 * xfns.c (x_set_name_internal): New function. Check if we shall call
1076 xfree before ENCODE_UTF_8.
1077 (x_set_name, x_set_title): Call x_set_name_internal.
1078
f7e22385
JR
10792004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
1080
1081 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
1082 reload it.
1083
2bf436c3
JD
10842004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1085
1806714a 1086 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
1087 (single_submenu): Set lname and lkey in widget_value
1088 instead of name and key.
1089 (update_submenu_strings): New function.
1090 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1091 call update_submenu_strings.
1092
2bf436c3
JD
1093 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
1094 instead of name and key.
1095 (update_submenu_strings): New function.
1096 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 1097 call update_submenu_strings.
2bf436c3
JD
1098
1099 * gtkutil.h (_widget_value): Added lname and lkey.
1100
11715f92
ST
11012004-08-30 Steven Tamm <steventamm@mac.com>
1102
1103 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
1104 by using different names for inner loop variables.
1105
5500be54
JD
11062004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1107
059cd329
JD
1108 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
1109 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
1110
5500be54
JD
1111 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
1112 tool bar items is 0.
1113
383418e5
ST
11142004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1115
1116 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
1117 strings in menu items.
1118 (single_submenu): Use ENCODE_MENU_STRING
1119 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
1120 button release isn't passed to event loop
1121 (add_menu_item): Use SetMenuItemWithCFString
1122
6eb3ee72
ST
11232004-08-26 Steven Tamm <steventamm@mac.com>
1124
1125 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
1126 tool-bar/menu click
1127 * macfns.c (Fx_file_dialog): Implemented using NavServices
1128
10b43ac3
JD
11292004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1130
2728b5d0
JD
1131 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
1132
10b43ac3
JD
1133 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1134 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1135 (x_top_window_to_frame): Return 0 if wdesc is None.
1136
2ee3b79e
RS
11372004-08-22 Richard M. Stallman <rms@gnu.org>
1138
1139 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
1140 HAVE_TERMIOS]: If there's no char for this signal, drop through
1141 and use system calls.
1142
1143 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
1144
9a1ba2ea
KS
11452004-08-20 Kim F. Storm <storm@cua.dk>
1146
1147 * process.c (wait_reading_process_output): Rename from
1148 wait_reading_process_input. All uses changed.
1149 (wait_reading_process_output_1): Rename from
1150 wait_reading_process_input_1. All uses changed.
1151
1152 * dispnew.c (Fsleep_for): Remove obsolete code.
1153
295f3b30
KH
11542004-08-20 Kenichi Handa <handa@m17n.org>
1155
1156 * syntax.c (skip_chars): Fix for unibyte case.
1157
27615979
SM
11582004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1159
1160 * syntax.c (char_quoted): Mixup byte/char pos.
1161 (back_comment): Fixup globals in all cases.
1162
00267f94
JD
11632004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1164
1165 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
1166 passing it to gtk_window_set_title.
1167
2439909e
KS
11682004-08-19 Kim F. Storm <storm@cua.dk>
1169
6ba0f14c
KS
1170 * process.c (wait_reading_process_input): Clean up.
1171 Add wait_for_cell, wait_proc, and just_wait_proc args
1172 to avoid overloading `read_kbd' and `do_display' args.
1173 Change read_kbd arg to int. All callers changed.
1174
2439909e
KS
1175 * process.c (process_send_signal): Use CDISABLE.
1176
1177 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
1178
101c421e
KS
11792004-08-18 Kim F. Storm <storm@cua.dk>
1180
1181 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
1182 forward to wait_reading_process_input via DO_DISPLAY arg.
1183 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
1184 object, only process output from that process; also inhibit
1185 running timers if DO_DISPLAY==-2.
1186
c438dc33
KS
11872004-08-17 Kim F. Storm <storm@cua.dk>
1188
1189 * process.c (process_send_signal): Fix last change--use
1190 _POSIX_VDISABLE instead of CVDISABLE when available.
1191
8afc13c6
RS
11922004-08-16 Richard M. Stallman <rms@gnu.org>
1193
1194 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
1195 Set VQUIT and VINTR chars to the standard ones if they are unset.
1196 [AIX]: Don't do that here. And don't force VINTR to standard
1197 when SIGNALS_VIA_CHARACTERS.
1198
c438dc33 1199 * process.c (process_send_signal)
8afc13c6
RS
1200 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
1201 Do nothing if the character is CVDISABLE.
1202
1203 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
1204
c438dc33 1205 * intervals.c (move_if_not_intangible):
8afc13c6
RS
1206 Force POSITION to be between BEGV and ZV.
1207
6dad1714
JPW
12082004-08-14 John Paul Wallington <jpw@gnu.org>
1209
1210 * buffer.c (Frestore_buffer_modified_p): Doc fix.
1211
1212 * fileio.c (Fread_file_name): Doc fix.
1213
1214 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1215
2bd77330
LT
12162004-08-09 Luc Teirlinck <teirllm@auburn.edu>
1217
1218 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
1219
c90e7e43
LT
12202004-08-08 Luc Teirlinck <teirllm@auburn.edu>
1221
1222 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 1223 Qdisabled_command_hook.
c90e7e43 1224 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 1225 Qdisabled_command_hook.
c90e7e43
LT
1226 (syms_of_keyboard): Ditto.
1227
81909a1a
LT
12282004-08-07 Luc Teirlinck <teirllm@auburn.edu>
1229
1230 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
1231 (syms_of_keymap) <key-translation-map>: Doc fixes.
1232
0cedd530
SM
12332004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
1234
1725a7c9
SM
1235 * window.c (window_list_1): YAILOM.
1236
0cedd530
SM
1237 * fileio.c (make_temp_name): Handle multibyte prefixes.
1238
2515a131
LT
12392004-08-06 Luc Teirlinck <teirllm@auburn.edu>
1240
1241 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1242 Doc fix.
1243
c8b20fb7
KH
12442004-08-03 Kenichi Handa <handa@m17n.org>
1245
1246 * coding.c (decode_coding_string): Adjust coding->consumed, and
1247 etc. with shrinked_bytes.
1248
fb8b092b
KS
12492004-08-03 Kim F. Storm <storm@cua.dk>
1250
1251 * indent.c (compute_motion): Fix check for full width window
1252 in non-window case. Do not count left truncation glyph on
1253 window systems.
1254
df133612
LT
12552004-08-02 Luc Teirlinck <teirllm@auburn.edu>
1256
1257 * data.c (Finteractive_form): Doc fix.
1258
0f7a93c1
KS
12592004-08-02 Kim F. Storm <storm@cua.dk>
1260
1261 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
1262 properly accounting for continuation glyph on non-window systems.
1263 (Fcompute_motion): Use actual window width if WIDTH is nil, and
1264 actual window width/height if TOPOS is nil, properly accounting for
1265 continuation glyphs on non-window systems, and optional header lines.
1266 (vmotion): Let compute_motion calculate actual window width.
1267
1268 * window.c (window_scroll_line_based): Let compute_motion
1269 calculate actual window width.
1270
f491e1ed
KS
12712004-08-02 Kim F. Storm <storm@cua.dk>
1272
1273 * process.c (read_process_output): Use whole read buffer.
1274 Don't trigger adaptive read buffering on errors.
1275
83f64226
LT
12762004-07-31 Luc Teirlinck <teirllm@auburn.edu>
1277
1278 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
1279
1280 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
1281
1282 * callint.c (Fcall_interactively): Doc fix.
1283
8afc13c6
RS
12842004-07-30 Richard M. Stallman <rms@gnu.org>
1285
1286 * abbrev.c (Fexpand_abbrev): Undo previous change.
1287
7c111482
KS
12882004-07-30 Kim F. Storm <storm@cua.dk>
1289
1290 * editfns.c (Fformat): Allocate extra (dummy) element in info.
1291
ee945d08
LT
12922004-07-28 Luc Teirlinck <teirllm@auburn.edu>
1293
1294 * eval.c (Fdefvar, Fdefconst): Doc fixes.
1295
3f911c94
KS
12962004-07-27 Kim F. Storm <storm@cua.dk>
1297
1298 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
1299 we have ensured that the glyph fits on the current line (or returned
1300 MOVE_LINE_CONTINUED otherwise).
1301
f29ff8c7
KS
13022004-07-26 Kim F. Storm <storm@cua.dk>
1303
1304 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
1305 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
1306 if target position is at end of display line but char is not a newline.
1307
81159bb9
RS
13082004-07-25 Richard M. Stallman <rms@gnu.org>
1309
ab431b61
RS
1310 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
1311 instead of ON_VERTICAL_BORDER, when on scroll bar.
1312 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
1313
1314 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
1315
f29ff8c7 1316 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
1317 Take account of FRAME_INTERNAL_BORDER_WIDTH.
1318
1319 * alloc.c (check_cons_list): New function (contents commented out).
1320
fc820cc5
LT
13212004-07-24 Luc Teirlinck <teirllm@auburn.edu>
1322
1323 * xfaces.c (Fcolor_supported_p): Doc fix.
1324
1325 * frame.c (Fselect_frame, Fset_frame_selected_window)
1326 (Fframe_visible_p, Fraise_frame): Doc fixes.
1327
289978b5
LT
13282004-07-24 Richard M. Stallman <rms@gnu.org>
1329
7630911d
RS
1330 * keyboard.h (not_single_kboard_state): Declared.
1331
1332 * fileio.c (Fwrite_region): Doc fix.
1333
1334 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
1335
1336 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
1337 only when a real abbrev is present.
1338
289978b5
LT
1339 * xfns.c (x_icon_verify): New function.
1340 (Fx_create_frame): Use it.
1341
63cc10ae
KS
13422004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
1343
1344 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
1345
36f826d4
KS
13462004-07-21 Kim F. Storm <storm@cua.dk>
1347
1348 * window.h (struct glyph_matrix): New members nrows_scale_factor
1349 and ncols_scale_factor.
1350
1351 * window.c (make_window): Initialize nrows_scale_factor and
1352 ncols_scale_factor members.
1353
1354 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
1355 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
1356 (required_matrix_height): Apply nrows_scale_factor.
1357 (required_matrix_width): Apply ncols_scale_factor.
1358
1359 * xdisp.c (display_line): Increment nrows_scale_factor and set
1360 fonts_changed_p if past last allocated row.
1361 (append_glyph, append_composite_glyph, produce_image_glyph)
1362 (append_stretch_glyph): Increment ncols_scale_factor and set
1363 fonts_changed_p if current area is full.
1364
5fc1c546
JD
13652004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1366
1367 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
1368
cb7516e5
LT
13692004-07-19 Luc Teirlinck <teirllm@auburn.edu>
1370
1371 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
1372 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
1373 (Fset_window_start, Fscroll_up, Fscroll_down)
1374 (Fother_window_for_scrolling, Fscroll_other_window)
1375 (Fsave_window_excursion, Fset_window_vscroll)
1376 (syms_of_window) <window-size-fixed>: Doc fixes.
1377
b6189c3b 13782004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
1379
1380 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
1381 ENCODE_SYSTEM for filenames.
1382
bfcf6608
ST
13832004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1384
1385 * mac.c (sys_select): Block input around call to
1386 ReceiveNextEvent to prevent breakage. Correctly handle
1387 blocking on event queue only by calling ReceiveNextEvent
1388 instead of select (since GUI events aren't on an fd).
1389 (sys_read): Remove function
1390 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
1391
e082ac9d
ST
13922004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1393
1394 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 1395 polling instead of 1 sec timeouts (like solaris).
e082ac9d 1396
cb7516e5 1397 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
1398 frame creation.
1399
1400 * keyboard.c: Undef SIGIO on Carbon
1401
1402 * atimer.c (alarm_signal_handler): Call alarm handlers after
1403 scheduling.
1404
1405 * eval.c (Feval): Remove quit_char test
1406
1407 * process.c (wait_reading_process_input): Remove clearing
1408 stdin for select call on process input.
1409
4b9da0fb
LT
14102004-07-18 Luc Teirlinck <teirllm@auburn.edu>
1411
1204e81c
LT
1412 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
1413 capitalization error in docstring.
4b9da0fb 1414
26503ad2
JB
14152004-07-17 Juanma Barranquero <lektu@terra.es>
1416
1417 * keyboard.c (not_single_kboard_state): Do nothing unless
1418 MULTI_KBOARD is defined.
1419
3751eb00
RS
14202004-07-17 Richard M. Stallman <rms@gnu.org>
1421
1422 * window.c (coordinates_in_window): Inside the window but outside
1423 its box to the L or R, return ON_VERTICAL_BORDER.
1424 (window_list_1): Rotate the list to start with WINDOW.
1425
1426 * print.c (print_preprocess): Test for print_depth at limit
1427 before entering in being_printed.
1428
1429 * keyboard.c (not_single_kboard_state): New function.
1430 (stuff_buffered_input): Now no-op only if no SIGTSTP.
1431
1432 * frame.c (Fdelete_frame): If we're in single_bboard_state on
1433 this kboard, and we delete its last frame, go to any_kboard_state.
1434
1435 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
1436
b6189c3b 14372004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
1438
1439 * w32fns.c (Fx_file_dialog): Encode strings in system coding
1440 system before passing them to OS functions for display.
1441
0f6af254
DK
14422004-07-15 David Kastrup <dak@gnu.org>
1443
f9253326
KS
1444 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
1445 Apparently fixes an abort condition.
0f6af254 1446
386c8f42
LT
14472004-07-14 Luc Teirlinck <teirllm@auburn.edu>
1448
1449 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
1450 instead of a cons.
1451
366511da
MB
14522004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
1453
1454 * keyboard.c (echo_dash): Do nothing if there already is a dash
1455 at the end of the echo string.
1456
f85409d3
KS
14572004-07-12 Kim F. Storm <storm@cua.dk>
1458
1459 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
1460 if GC_MARK_STACK.
1461
0ba2e87b
LT
14622004-07-10 Luc Teirlinck <teirllm@auburn.edu>
1463
da38045d
LT
1464 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
1465
0ba2e87b
LT
1466 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
1467 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
1468 (Freplace_buffer_in_windows, Fset_window_buffer)
1469 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
1470 (syms_of_window): Expand docstring of `display-buffer-function'.
1471
5668fbb8
LT
14722004-07-09 Luc Teirlinck <teirllm@auburn.edu>
1473
1474 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
1475 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
1476 that time values of the type (HIGH . LOW) are considered obsolete.
1477
a085bf9d
LT
14782004-07-06 Luc Teirlinck <teirllm@auburn.edu>
1479
669de2fb
LT
1480 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
1481 docstring.
1482
bac66325 1483 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 1484
8e975df9
JPW
14852004-07-06 John Paul Wallington <jpw@gnu.org>
1486
1487 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
1488
fa164e6a
JPW
1489 * fns.c (Fclear_string): Signal an error if STRING is not a string.
1490
2bac9bb1
JD
14912004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1492
1493 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
1494 instead of CGMainDisplayID (only in OSX 10.2 and later).
1495
316ef0dc
JPW
14962004-07-04 John Paul Wallington <jpw@gnu.org>
1497
1498 * fileio.c (read_file_name_completion_ignore_case): New variable.
1499 (syms_of_fileio): Declare and initialise it.
1500 (Fread_file_name): Bind `completion-ignore-case' to respect it.
1501
2a1a35c6
EZ
15022004-07-03 Eli Zaretskii <eliz@gnu.org>
1503
1504 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
1505 for event.x and event.y.
1506
33a72331
KH
15072004-07-01 Kenichi Handa <handa@m17n.org>
1508
1509 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
1510 after getting a new string by pre-write-conversion.
1511
9238467d 15122004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
1513
1514 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
1515 (x_calc_absolute_position): Remove unused var `child'.
1516
1517 * xfaces.c (x_supports_face_attributes_p)
1518 (Fdisplay_supports_face_attributes_p): YAILOM.
1519 (tty_supports_face_attributes_p): Remove unused var `i'.
1520
1521 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
1522 back_unibyte_ok.
1523
1524 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
1525
1526 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
1527
1528 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
1529
f96ec754
AS
15302004-06-30 Andreas Schwab <schwab@suse.de>
1531
1532 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
1533 (Finit_image_library): Pass LIBRARIES through to
1534 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
1535 (lookup_image_type): Pass Qnil as second argument to
1536 Finit_image_library.
1537
1538 * lisp.h: Declare Finit_image_library.
1539
59feca74 15402004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 1541
31983645
AS
1542 * macterm.c (do_window_activate, do_window_deactivate): Remove.
1543 (XTread_socket): Send mouse button events to the toolbox
1544 dispatcher even when the mouse is grabbed. Don't process window
1545 activate events for non-Emacs windows. Replace function calls to
1546 do_window_activate and do_window_deactivate with their contents.
1547 Reset mouse grabbing status when a window is deactivated.
59feca74 1548
c61278bb
ST
15492004-06-29 Steven Tamm <steventamm@mac.com>
1550
1551 * macterm.c (mac_get_emulated_btn)
1552 (mac_event_to_emacs_modifiers): Fix emulated mouse button
1553 support to correctly mask out modifiers.
1554
c3762cbd
DK
15552004-06-29 David Kastrup <dak@gnu.org>
1556
1557 * search.c (Fset_match_data): Allow buffer before end of list
1558 which can happen if set-match-data is using a pre-consed list.
1559
c61278bb 15602004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
1561
1562 * macterm.c (XTread_socket): Correctly set the frame position
1563 after the window is moved.
1564
74cdfe05
JD
15652004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1566
1567 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
1568 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
1569 (xg_get_image_for_pixmap): Add workaround for monochrome displays
1570 so insensitive and activated icons look ok.
74cdfe05 1571
ef544dc8
JR
15722004-06-27 Jason Rumney <jasonr@gnu.org>
1573
1574 * w32fns.c (file_dialog_callback): Disable edit control if set
1575 to directories only on CDN_INITDONE message.
1576 (Fx_file_dialog): Default to directories only when prompt starts
1577 with "Dired".
1578
7b7990cc
KS
15792004-06-25 Kim F. Storm <storm@cua.dk>
1580
1581 * alloc.c (allocate_misc): Update total_free_markers.
1582 (free_misc): New function.
1583 (safe_alloca_unwind, free_marker): Use it.
1584
1585 * lisp.h (free_misc): Add prototype.
1586
1587 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
1588
d8c379f8
RS
15892004-06-24 Richard M. Stallman <rms@gnu.org>
1590
1591 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
1592 (syms_of_emacs): Lisp variables deleted.
1593
559cdd07
DK
15942004-06-23 David Kastrup <dak@gnu.org>
1595
94939b84
DK
1596 * search.c (Freplace_match): Adjust the match-data more thoroughly
1597 when replacing strings in the buffer.
1598 (Fmatch_data): When INTEGERS is non-nil and the last match was in
1599 a buffer, add the buffer as last element to the match data.
1600 (Fset_match_data): If an additional element of the match-data is a
1601 buffer, restore it to last_thing_searched.
c8d09ad8 1602 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
1603 (restore_match_data): Restore it again.
1604
dce417e7
LT
16052004-06-23 Luc Teirlinck <teirllm@auburn.edu>
1606
1607 * keymap.c (Ftext_char_description): Doc fix.
1608 * doc.c (Fsnarf_documentation): Doc fix.
1609
ef54b2d0
KS
16102004-06-22 Kim F. Storm <storm@cua.dk>
1611
b5bc4d05
KS
1612 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
1613
ef54b2d0
KS
1614 * lisp.h (struct Lisp_Save_Value): New member dogc.
1615 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
1616 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
1617 (SAFE_FREE_LISP): New macro.
1618
1619 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
1620 (make_save_value): Init new dogc member.
1621 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
1622
1623 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
1624 SAFE_FREE_LISP macros.
1625
3d33d993
KS
16262004-06-22 Kim F. Storm <storm@cua.dk>
1627
1628 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
1629 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
1630 in that memory area are unknown to GC. Add comments.
1631
1632 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
1633
5c917f98
KS
16342004-06-21 Kim F. Storm <storm@cua.dk>
1635
1636 * lisp.h (MAX_ALLOCA): Define here.
1637 (safe_alloca_unwind): Add prototype.
1638 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
1639
1640 * alloc.c (safe_alloca_unwind): New function.
1641
1642 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
1643
1644 * charset.c (Fstring): Use SAFE_ALLOCA.
1645
1646 * coding.c (MAX_ALLOCA): Remove define.
1647
1648 * data.c (MAX_ALLOCA): Remove define.
1649 (Faset): Use SAFE_ALLOCA.
1650
1651 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
1652
1653 * fns.c (string_make_multibyte, string_to_multibyte)
1654 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
1655 (MAX_ALLOCA): Remove define.
1656 (Fbase64_encode_region, Fbase64_encode_string)
1657 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
1658 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
1659 memory leak if encoding fails.
1660
1661 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
1662
9a09408e
EZ
16632004-06-21 Eli Zaretskii <eliz@gnu.org>
1664
1665 * print.c (Fwith_output_to_temp_buffer): Doc fix.
1666
376de739
RS
16672004-06-20 Richard M. Stallman <rms@gnu.org>
1668
1669 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
1670
1671 * search.c (match_limit): Cleaner err msg when no match data available.
1672
1673 * window.c (syms_of_window): Doc fix.
1674
1675 * keyboard.c (command_loop_1): Handle values `only' and `identity'
1676 for Vtransient_mark_mode.
1677
1678 * buffer.c (syms_of_buffer): Doc fix.
1679
acd81db9
DK
16802004-06-21 David Kastrup <dak@gnu.org>
1681
1682 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
1683 and unbinding of `case-fold-search' according to
1684 `completion-ignore-case' around calls of string-match and
1685 predicates, respectively. Should give satisfactory performance
1686 in all relevant cases.
1687
f303762d
JD
16882004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1689
95911c74
JD
1690 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
1691 clip_x/y_origin.
1692
a6cb6b78
JD
1693 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
1694
f303762d
JD
1695 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
1696
1697 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
1698 on Mac OSX.
1699
bbdb2684
LT
17002004-06-16 Luc Teirlinck <teirllm@auburn.edu>
1701
1702 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
1703
5ea48b1c
KS
17042004-06-16 Kim F. Storm <storm@cua.dk>
1705
1706 * dispextern.h (Vimage_types): Remove extern.
1707
803aac3e
MB
17082004-06-16 Miles Bader <miles@gnu.org>
1709
1710 * image.c (lookup_image_type): Initialize image type if necessary.
1711
cdc97764
KS
17122004-06-15 Kim F. Storm <storm@cua.dk>
1713
c4a5739c
KS
1714 * xdisp.c (try_cursor_movement): Exclude header line from scroll
1715 margin at top of window.
1716 (try_window_reusing_current_matrix): Calculate proper cursor position
1717 after scrolling up with non-zero scroll margin, as the old cursor
1718 position corresponds to value of PT before executing this command.
1719 (try_window_id): Consider scroll margin at bottom of window too;
1720 otherwise we fail to scroll when hl-line-mode is enabled.
1721
cdc97764
KS
1722 * syntax.c (skip_chars): Only recognize [:class:] when it has the
1723 proper format and class is a lower-case word.
1724
5b166323
JD
17252004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1726
1727 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 1728 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
1729 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
1730 xg_get_gdk_pixmap_and_mask.
cdc97764 1731
5b166323
JD
1732 * xterm.h (struct x_display_info): Typo in comment fixed.
1733
1ebd4f78
JB
17342004-06-14 Juanma Barranquero <lektu@terra.es>
1735
1736 * dispextern.h (Vimage_types): Make it conditional on
1737 HAVE_WINDOW_SYSTEM.
1738
1739 * image.c (Vimage_types): Move from xdisp.c.
1740 (Vimage_type_cache): New variable.
1741 (define_image_type): New argument indicating whether an image
1742 library was loaded; cache loaded status and return t on success,
1743 nil otherwise.
1744 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
1745 (w32_delayed_load): New function to load an image library from a
1746 list of possible filenames.
1747 (init_xpm_functions, init_png_functions, init_jpeg_functions)
1748 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 1749 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
1750 (Finit_image_library): New function, extracted from `init_image'.
1751 Try to initialize an image library on demand and cache whether we
1752 were successful or not.
1753 (syms_of_image): Initialize `Vimage_types' and
1754 `Vimage_type_cache'. Add recognized image types to Vimage_types.
1755 Export `init-image-library'.
1756 (init_image): Remove initialization of all image types, except xbm
1757 and pbm.
1758
1759 * xdisp.c (Vimage_types): Delete (moved to image.c).
1760
904ee128
AS
17612004-06-14 Andreas Schwab <schwab@suse.de>
1762
1763 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1764 Avoid calling specbind when completion-regexp-list is empty.
1765
092de21d
RS
17662004-06-13 Richard M. Stallman <rms@gnu.org>
1767
1768 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1769 (re_wctype, re_iswctype, re_wctype_to_bit):
1770 Non-function definitions moved here from regex.c.
1ebd4f78 1771
092de21d
RS
1772 * regex.c (re_wctype, re_iswctype): Function defs longer static.
1773 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1774 (re_wctype, re_iswctype, re_wctype_to_bit):
1775 Non-function definitions moved to regex.h.
1776
1777 * window.c (Fselect_window): Doc fix.
1778
1779 * syntax.c: Include regex.h.
1780 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
1781 If requested, make a list of classes, then check the scanned
1782 chars for membership in them.
1783 (in_classes): New function.
1784 Doc fix.
1785
1786 * keyboard.c (cmd_error): Don't call any_kboard_state
1787 if inside a recursive edit level.
1788
17892004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
1790
1791 * keyboard.c (command_loop): Call any_kboard_state before
1792 command_loop_2 when at top level.
1793
3ebc0939
AS
17942004-06-13 Andreas Schwab <schwab@suse.de>
1795
cea5d0d4
AS
1796 * print.c (print_object): Always use %ld for printing EMACS_INT.
1797
1798 * keyboard.c (cancel_hourglass_unwind): Return a value.
1799 (modify_event_symbol): Always use %ld for printing EMACS_INT.
1800 (Fexecute_extended_command): Likewise.
1801
1802 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
1803 avoid clashes.
1804 (SYNTAX): Likewise.
1805 (SYNTAX_WITH_FLAGS): Likewise.
1806 (SYNTAX_MATCH): Likewise.
1807
1808 * syntax.c (char_quoted): Avoid warning about undefined operation.
1809 (find_defun_start): Likewise.
1810 (scan_lists): Likewise.
1811 (INC_FROM): Likewise.
1812 (scan_sexps_forward): Likewise.
1813
be8c4ce4
AS
1814 * image.c: Include <ctype.h>.
1815
3ebc0939
AS
1816 * xfaces.c (face_attr_equal_p): Declare parameters.
1817
6fb41b5b
KH
18182004-06-13 Kenichi Handa <handa@m17n.org>
1819
1820 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
1821
fc3095ce
EZ
18222004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
1823
1824 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
1825
66189a40
KH
18262004-06-12 Kenichi Handa <handa@m17n.org>
1827
1828 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
1829 ccl_prog_stack_struct and update it.
1830 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
1831 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
1832 ccl->eof_ic on EOF.
1833 (ccl_debug_hook): New function.
1834 (struct ccl_prog_stack): New member eof_ic.
1835 (ccl_driver): Handle EOF in subrountine call correctly.
1836
18372004-06-11 Kenichi Handa <handa@m17n.org>
1838
1839 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
1840
1da71023
KS
18412004-06-11 Kim F. Storm <storm@cua.dk>
1842
1843 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
1844
e9efcef4
JB
18452004-06-11 Juanma Barranquero <lektu@terra.es>
1846
1847 * keyboard.c (Fposn_at_point): Doc fix.
1848
9b9ceb61
DK
18492004-06-11 David Kastrup <dak@gnu.org>
1850
1851 * search.c (match_limit): Don't flag an error if match-data
1852 exceeding the allocated search_regs.num_regs gets requested, just
1853 return Qnil.
1854
6e87ac8f
MB
18552004-06-08 Miles Bader <miles@gnu.org>
1856
1857 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
1858
0b0dea7b
JB
18592004-06-07 Juanma Barranquero <lektu@terra.es>
1860
1861 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
1862 (Fcurrent_time_string, Fcurrent_time_zone)
1863 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
1864
a0a23346
MB
18652004-06-07 Miles Bader <miles@gnu.org>
1866
08384afd 1867 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
1868 (push_named_merge_point): New function.
1869 (merge_named_face): New function.
1870 (merge_face_ref, face_at_buffer_position, face_at_string_position):
1871 Use `merge_named_face'.
1872 (merge_face_inheritance): Function removed.
c8d09ad8 1873 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
1874 Add new `err_msgs' and `named_merge_points' args. Return error
1875 status. Only print error messages if ERR_MSGS is true. Don't try to
1876 do :inherit attribute validation.
1877 (merge_face_heights): Handle `unspecified' in both directions.
1878 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
1879 Call `merge_face_ref' instead of `merge_face_inheritance'.
1880 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
1881 (compute_char_face, face_at_buffer_position)
1882 (face_at_string_position): Call `merge_face_ref' instead of
1883 `merge_face_vector_with_property'.
1884
12d5b185
KH
18852004-06-07 Kenichi Handa <handa@m17n.org>
1886
1887 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
1888 the necessary places.
1889
2e2d7ee6
KS
18902004-06-07 Kim F. Storm <storm@cua.dk>
1891
1892 * process.c (Fdelete_process): Undo 2004-05-28 change.
1893 Instead, call status_notify also for network process.
1894 (status_message): Use process instead of status as arg.
1895 Give messages "deleted" or "connection broken by remote peer" for
1896 an exited network process.
1897 (status_notify): Change call to status_message.
1898 (read_process_output): Increase readmax to 4096. Do not increase
1899 buffer size for datagram channels (default is now large enough).
1900
fcf0d299
ST
19012004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1902
1903 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
1904 problem due to newly defined variable.
1905
0722292b
MB
19062004-06-06 Miles Bader <miles@gnu.org>
1907
1908 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
1909 immediately if non-interactive or not initialized.
1910
ddfb8369
RS
19112004-06-05 Richard M. Stallman <rms@gnu.org>
1912
1913 * minibuf.c (Fcompleting_read): Doc fix.
1914
57015754
AS
19152004-06-05 Andreas Schwab <schwab@suse.de>
1916
1917 * macfns.c (x_create_tip_frame): Fix declaration after statement.
1918
23715ea6
JB
19192004-06-05 Juanma Barranquero <lektu@terra.es>
1920
1921 * keymap.c (Fdescribe_vector): Fix docstring.
1922 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
1923
8e330b22
MB
19242004-06-05 Miles Bader <miles@gnu.org>
1925
1926 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
1927 attributes have different values than the default face.
1928
9742a3a6
EZ
19292004-06-04 Eli Zaretskii <eliz@gnu.org>
1930
1931 * xfaces.c (x_supports_face_attributes_p): Make this function
1932 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
1933 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
1934 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 1935
9717e36c
MB
19362004-06-04 Miles Bader <miles@gnu.org>
1937
1938 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
1939 from Ftty_supports_face_attributes_p.
1940 (x_supports_face_attributes_p): New function.
1941 (Ftty_supports_face_attributes_p): Function deleted.
1942 (Fdisplay_supports_face_attributes_p): New function.
1943 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 1944 (face_attr_equal_p): New function.
9717e36c
MB
1945 (lface_equal_p): Use it.
1946
52deb19f
JB
19472004-06-03 Juanma Barranquero <lektu@terra.es>
1948
1949 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
1950 (Vw32_color_map): Fix typo in docstring.
1951 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
1952 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
1953 Make argument names match their use in docstring.
1954
86d373e6
JB
19552004-06-02 Juanma Barranquero <lektu@terra.es>
1956
1957 Work around bugs/problems with MinGW builds of graphics libraries
1958 called from MSVC builds of Emacs.
1959
1960 * image.c (lookup_image): Make pointer to img static.
1961 (png_read_from_memory): Disable "global" optimization.
1962
2fb0ce67
SM
19632004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1964
c8d09ad8
SM
1965 * eval.c (Fcondition_case): Fix usage. Simplify.
1966
2fb0ce67
SM
1967 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
1968
50bf7673
ST
19692004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1970
1971 * macfns.c: Don't include ccl.h.
1972 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
1973 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
1974 TextUtils.h.
c8d09ad8 1975 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
1976 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
1977 display height/width.
1978 (compute_tip_xy, Vx_max_tooltip_size): Declare.
1979 (unwind_create_tip_frame, compute_tip_xy): New functions.
1980 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
1981 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
1982 and last_show_tip_args.
2fb0ce67 1983
50bf7673
ST
1984 * macgui.h [!MAC_OSX]: Include Gestalt.h.
1985 (Cursor, No_Cursor): New defines.
c8d09ad8 1986 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
1987 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
1988
1989 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
1990
1991 * macterm.c: Don't include Gestalt.h.
1992 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
1993 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
1994 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
1995 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
1996 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
1997 (construct_mouse_click, XTmouse_position)
1998 (x_scroll_bar_report_motion, x_calc_absolute_position)
1999 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2000 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2001 (note_mouse_movement): Clear the mouse face and reset the pointer
2002 shape when the pointer goes outside the frame without grabbing.
2003 (mac_front_window): New function.
2004 (mac_window_to_frame): New macro.
2005 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2006 (do_window_activate, do_window_deactivate, do_app_resume)
2007 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2008 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2009 (mac_check_for_quit_char): Use mac_front_window and/or
2010 mac_window_to_frame.
2011 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2012 scroll-bar click event.
2013 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 2014 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 2015 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 2016 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
2017 (do_window_update): Don't do anything if the updated window is the
2018 tooltip window.
2019 (do_mouse_moved): Handle mouse movement events here (previously in
2020 XTread_socket). Clear the mouse face if
2021 dpyinfo->mouse_face_hidden is set.
2022 (do_os_event, do_events): Remove (now in XTread_socket).
2023 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
2024 Loop until all the events in the queue are processed.
2025 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
2026 contents of do_os_event and do_events. Remove mouse movement
2027 handling (now in do_mouse_moved). Add the case where
2028 Vmouse_highlight has an integer value.
2029 (NewMacWindow): Remove.
2030 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2031 excess initializations.
2032 (make_mac_terminal_frame): Previous initializations in
2033 make_mac_frame are moved here.
c8d09ad8
SM
2034 (mac_initialize_display_info):
2035 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
2036
2037 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2038 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2039
08fd1251
RS
20402004-05-29 Richard M. Stallman <rms@gnu.org>
2041
2042 * lisp.h (truncate_undo_list): Update decl.
2043
2044 * alloc.c (undo_outer_limit): New variable.
2045 (syms_of_alloc): Defvar it.
2046 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2047
2048 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2049
2050 * alloc.c (lisp_align_malloc): Check for base == 0
2051 regardless of HAVE_POSIX_MEMALIGN.
2052 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2053
227ef0ff
SM
20542004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2055
2056 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
2057 (marker_blocks_pending_free): Remove.
2058 (Fgarbage_collect): Sweep after cleaning up undo-lists.
2059 Mark the undo lists after claning them up.
2060 Don't free block in marker_blocks_pending_free.
2061 (mark_buffer): Don't mark undo_list.
2062 (gc_sweep): Sweep hash-tables and strings first.
2063 Do free marker blocks that are empty.
2064
034a6113
SM
20652004-05-28 Jim Blandy <jimb@redhat.com>
2066
2067 * regex.c (print_partial_compiled_pattern): Add missing 'break'
2068 after 'case wordend'. For symbeg and symend, print to stderr,
2069 like the other cases.
2070
33594a8d
NF
20712004-05-28 Noah Friedman <friedman@splode.com>
2072
2073 * process.c (Fdelete_process): Do not call remove_process.
2074
ce50a847
SM
20752004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * alloc.c (struct backtrace): Remove.
2078 (Fgarbage_collect): Use the new mark_backtrace.
2079
2080 * eval.c (mark_backtrace): New function.
2081
2082 * minibuf.c (run_exit_minibuf_hook): New function.
2083 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
2084 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
2085
1e8dae36
KS
20862004-05-27 Kim F. Storm <storm@cua.dk>
2087
2088 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
2089 over display properties, e.g. images, that replace buffer text.
2090
846faa3b
KS
20912004-05-25 Kim F. Storm <storm@cua.dk>
2092
2093 * alloc.c (marker_blocks_pending_free): New var.
2094 (gc_sweep): Store free marker blocks on that list.
2095 (Fgarbage_collect): Free them after undo-list cleanup.
2096
2097 * process.c (wait_reading_process_input): Check connect_wait_mask
2098 before actually accepting connection in case it has already been
2099 accepted due to recursion.
2100
b6189c3b 21012004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 2102
ce50a847
SM
2103 * coding.c (Fset_safe_terminal_coding_system_internal):
2104 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 2105
71d5a208
RS
21062004-05-22 Richard M. Stallman <rms@gnu.org>
2107
2108 * alloc.c (Fmake_string): Doc fix.
2109
2110 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
2111 and the alist pairs too.
2112
2113 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
2114
2115 * emacs.c (main): Update copyright year.
2116
2117 * fileio.c (Fread_file_name): Expand DIR if not absolute.
2118
2119 * insdel.c (del_range_2, replace_range): Don't write an anchor
2120 if the gap is empty.
2121
2122 * xdisp.c (try_scrolling): If scroll-up-aggressively or
2123 scroll-down-aggressively is small but positive, put point
2124 near the screen edge.
2125
f63fd14e
JB
21262004-05-22 Juanma Barranquero <lektu@terra.es>
2127
2128 * keymap.c (Fdefine_key): Doc fix.
2129
4d12067c
KS
21302004-05-22 Kim F. Storm <storm@cua.dk>
2131
2132 * alloc.c (struct backtrace): Add debug_on_exit member.
2133 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
2134 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
2135 the removed cons cells.
2136 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
2137 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
2138 any cons cells pointing to unallocated stings.
2139 Do not lisp_free any marker blocks, as there may still be pointers
2140 to them from buffer undo lists at this stage of GC.
2141
2142 * keyboard.c (struct backtrace): Add debug_on_exit member.
2143 (Fcommand_execute): Clear it.
2144
931285e2
LT
21452004-05-20 Luc Teirlinck <teirllm@auburn.edu>
2146
2147 * intervals.c (lookup_char_property): Do not prematurely return nil.
2148
669fa600
SM
21492004-05-19 Jim Blandy <jimb@redhat.com>
2150
2151 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 2152 beginning and end of symbols.
4d12067c 2153
669fa600
SM
2154 * regex.c (enum syntaxcode): Add Ssymbol.
2155 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
2156 (re_opcode_t): New opcodes `symbeg' and `symend'.
2157 (print_partial_compiled_pattern): Print the new opcodes properly.
2158 (regex_compile): Parse the new operators.
ce50a847 2159 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
2160 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
2161 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
2162 (re_match_2_internal): Match symbeg and symend.
2163
2164 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
2165
0d8c2e5c
KS
21662004-05-19 Kim F. Storm <storm@cua.dk>
2167
2168 * .gdbinit (xsymbol): Fix last change.
2169
669fa600
SM
21702004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
2171
2172 * .gdbinit (xprintstr): New fun.
2173 (xstring, xprintsym): Use it.
2174
2175 * w32proc.c (create_child): Use INTMASK.
2176
2177 * alloc.c (Fgarbage_collect): Do all the marking before flushing
2178 unmarked elements of the undo list.
2179
9a6a4c40
DP
21802004-05-18 David Ponce <david@dponce.com>
2181
2182 * print.c (print): Reset print_depth before to call print_object.
2183
f3c4ec74
JR
21842004-05-18 Jason Rumney <jasonr@gnu.org>
2185
2186 * w32console.c: Prefix RIF functions with w32con_ to avoid
2187 namespace clash with functions in term.c and w32term.c.
2188
2189 * w32menu.c (add_menu_item, w32_menu_display_help)
2190 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
2191
0d8c2e5c 2192 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 2193
6be49c3a
EZ
21942004-05-18 Eli Zaretskii <eliz@gnu.org>
2195
4d0b9a0a
EZ
2196 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
2197
6be49c3a
EZ
2198 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
2199 with make_number.
2200 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
2201 with XINT.
2202
0bc90bba
KS
22032004-05-18 Kim F. Storm <storm@cua.dk>
2204
89d19988
KS
2205 * blockinput.h (INPUT_BLOCKED_P): New macros.
2206
2207 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
2208 (Ftop_level): Unblock input if blocked.
2209
0bc90bba
KS
2210 * buffer.h (GET_OVERLAYS_AT): New macro.
2211 * msdos.c (IT_note_mouse_highlight): Use it.
2212 * textprop.c (get_char_property_and_overlay): Use it.
2213 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
2214 * xfaces.c (face_at_buffer_position): Use it.
2215
2216 * print.c (print_object): Increase buf size.
2217
653bd0f6
JR
22182004-05-17 Jason Rumney <jasonr@gnu.org>
2219
2220 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
2221 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
2222 Lisp_Object using i member.
2223 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
2224 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
2225 consistently.
2226
2227 * w32proc.c (create_child): Use make_number instead of masking pid.
2228
2229 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
2230 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
2231 Use EQ to compare Lisp_Objects.
2232 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
2233
2234 * w32term.c (w32_num_mouse_buttons): Rename from
2235 Vw32_num_mouse_buttons and make it an int.
2236
2237 * w32.c (init_environment): Use it.
2238
2239 * w32fns.c (w32_wnd_proc): Likewise.
2240
2241 * w32proc.c (w32_pipe_read_delay): Rename from
2242 Vw32_pipe_read_delay and make it an int.
2243
2244 * w32.c (_sys_read_ahead): Use it.
2245
2246 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
2247
2248 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
2249
2250 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
2251 (key_event): Don't mix Lisp_Object and int.
2252
2253 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
2254
2255 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
2256 modifiers in language change event.
2257
54b53ba7
KS
22582004-05-17 Kim F. Storm <storm@cua.dk>
2259
2260 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
2261 Such objects may be freed markers which still exist on an undo list.
2262
6e86a75d
JB
22632004-05-16 Juanma Barranquero <lektu@terra.es>
2264
2265 * data.c (Fset_default): Make argument names match their use in
2266 docstring.
2267
fc80da24
AS
22682004-05-15 Andreas Schwab <schwab@suse.de>
2269
2270 * emacs.c (gdb_array_mark_flag): Define.
2271 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
2272
c1380aa6
EZ
22732004-05-15 Eli Zaretskii <eliz@gnu.org>
2274
2275 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
2276 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
2277 defined for the MS-DOS build.
2278
89458937
SM
22792004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2280
2281 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
2282
08020f9a
KH
22832004-05-14 Kenichi Handa <handa@m17n.org>
2284
2285 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
2286
a433994a
ST
22872004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2288
2289 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
2290 section to frame.c section.
2291 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 2292 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 2293
a433994a 2294 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 2295
a433994a 2296 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 2297
a433994a
ST
2298 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
2299 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
2300 (XTread_socket): Fix int/Lisp_Object mixup.
2301 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 2302
a433994a
ST
2303 * macterm.h (struct frame, struct face, struct image)
2304 (display_x_get_resource, Fx_display_color_p)
89458937
SM
2305 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
2306 Add prototypes.
a433994a 2307
b51a51b9
KS
23082004-05-14 Kim F. Storm <storm@cua.dk>
2309
2310 * process.c (wait_reading_process_input): Make reentrant.
2311 Make Available and Connecting non-static. Save and restore value
2312 of waiting_for_user_input_p.
2313
2bde1dd8
KS
23142004-05-13 Kim F. Storm <storm@cua.dk>
2315
2316 * keyboard.c (mark_kboards): Don't mark x and y members
2317 that are overloaded in selection request events.
2318
a267ab4d
SM
23192004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2320
2321 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
2322
eb15ce9e
GM
23232004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
2324
2325 * window.c (Fdisplay_buffer, Fsplit_window)
2326 (split-height-threshold): Doc fix.
2327
7fc92635
JB
23282004-05-13 Juanma Barranquero <lektu@terra.es>
2329
2330 * xfaces.c (Ftty_supports_face_attributes_p)
2331 (Finternal_copy_lisp_face): Fix typo in docstring.
2332 (Finternal_get_lisp_face_attribute): Fix docstring.
2333
1ec2a572
JD
23342004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2335
2336 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
2337
ae9292e0
ST
23382004-05-11 Steven Tamm <steventamm@mac.com>
2339
2340 * macfns.c (Fx_create_frame): Default to using tool-bar by
2341 setting tool-bar-lines to 1 in default-frame-alist.
2342
23432004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
2344
2345 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
2346 (xpm_get_color_table_v, xpm_make_color_table_h)
2347 (xpm_put_color_table_h, xpm_get_color_table_h)
2348 (xpm_str_to_color_key, xpm_load_image, xpm_load)
2349 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 2350 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 2351
fe97e8df
ST
23522004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2353
a267ab4d 2354 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
2355 instead of FRAME_X_P
2356
b47e779e
KS
23572004-05-11 Kim F. Storm <storm@cua.dk>
2358
2359 * process.c (read_process_output): Grow decoding_buf when needed;
2360 this could cause a crash in allocate_string and compact_small_strings.
2361
cdc9b845
EZ
23622004-04-29 Jim Blandy <jimb@redhat.com>
2363
2364 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
2365 against proper opcode.
2366
aa7094ba
JB
23672004-05-10 Juanma Barranquero <lektu@terra.es>
2368
2369 * process.c (Fstart_process): Fix docstring.
2370
2371 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
2372 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
2373 (Fsplit_char, Fchar_charset): Make argument names match their use
2374 in docstring.
2375
e109331a
RS
23762004-05-10 Richard M. Stallman <rms@gnu.org>
2377
2378 * print.c (print_preprocess): Use being_printed, loop_count and
2379 halftail to detect overdeep nesting and cyclic cdr chains.
2380
9a28b921
AS
23812004-05-10 Andreas Schwab <schwab@suse.de>
2382
2383 * lisp.h: Declare Fmake_symbolic_link.
2384
2385 * fileio.c (Frename_file): Remove extra argument in call to
2386 Fmake_symbolic_link.
2387
e2c02c1a
KS
23882004-05-10 Kim F. Storm <storm@cua.dk>
2389
2390 * xdisp.c (calc_line_height_property): Use string position when
2391 object is a string.
2392
cfe9d13e
KH
23932004-05-10 Kenichi Handa <handa@m17n.org>
2394
a57e8159
KH
2395 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
2396 inhibit-modification-hooks to t temporarily before calling
2397 Ferase_buffer.
2398
2399 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
2400 inhibit-modification-hooks to t temporarily before calling
2401 Ferase_buffer.
2402
2403 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
2404 inhibit-modification-hooks to t temporarily before calling
2405 Ferase_buffer.
2406
cfe9d13e
KH
2407 * fns.c (count_combining): Delete it.
2408 (concat): Don't check combining bytes.
2409
ceb96489
JR
24102004-05-09 Jason Rumney <jasonr@gnu.org>
2411
2412 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
2413 (globals_of_w32fns): Set it.
2414
b6189c3b 24152004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
2416
2417 * data.c (Fquo): Simplify.
2418
28712a21
JB
24192004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
2420
2421 * data.c (Fquo): If any argument is float, do the computation in
2422 floating point.
2423
0f0af7a8
JB
24242004-05-08 Juanma Barranquero <lektu@terra.es>
2425
88214ef6
JB
2426 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
2427 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
2428 Fix spelling of Emacs on docstring.
2429 (Fset_process_coding_system, Fprocess_coding_system)
2430 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
2431 Make argument names match their use in docstring.
2432 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
2433 Fix docstring.
2434
0f0af7a8
JB
2435 * editfns.c (Finsert_buffer_substring): Make argument names match their
2436 use in docstring.
2437
2438 * syntax.c (Fmodify_syntax_entry): Fix docstring.
2439
2a316a84
ST
24402004-05-07 Steven Tamm <steventamm@mac.com>
2441
2442 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
2443 around call to ReceiveEvent to avoid certain crashes.
2444
24452004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 2446
2a316a84
ST
2447 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
2448 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
2449 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
2450 Save/restore the current graphics port and device handle when
2451 drawing into an offscreen graphics world.
2452
2453 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
2454 (gif_load): Likewise.
2455
ab80314b
JB
24562004-05-07 Juanma Barranquero <lektu@terra.es>
2457
2458 * window.c (Fset_window_buffer): Fix docstring.
2459
70646bb5
TTN
24602004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
2461
2462 * emacs.c (main) [VMS]: Fix var ref.
2463
b6189c3b 24642004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
2465
2466 * data.c (Fsetq_default): Fix docstring.
2467
279d3293
JR
24682004-05-06 Jason Rumney <jasonr@gnu.org>
2469
2470 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
2471 to avoid name clash.
2472
f72b5416
JD
24732004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2474
2475 * fileio.c (barf_or_query_if_file_exists): Use lstat.
2476 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 2477 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 2478
6ab66799
KS
24792004-05-04 Kim F. Storm <storm@cua.dk>
2480
2481 * xdisp.c (Qtotal): New var.
2482 (syms_of_xdisp): Intern and staticpro it.
2483 (calc_line_height_property): New arg total. Set it if
2484 line-spacing property has format (total . VALUE).
2485 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
2486 Handle total line-spacing property.
2487
ab2d724b
JD
24882004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2489
2490 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
2491 "under" scroll bar when size/position changes.
2492
238add5e
JR
24932004-05-03 Jason Rumney <jasonr@gnu.org>
2494
2495 * makefile.nt: Remove.
2496
1644f4e4
EZ
24972004-05-02 Eli Zaretskii <eliz@gnu.org>
2498
a267ab4d
SM
2499 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
2500 Avoid compiler warnings.
05fdbeb8 2501
1644f4e4
EZ
2502 * Makefile.in (region-cache.o): Depend on config.h.
2503
b6189c3b 25042004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
2505
2506 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
2507 with continuation lines, too.
2508
2b98b088
TTN
25092004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
2510
2511 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
2512
d9bf7950
SM
25132004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
2514
2515 * xdisp.c (calc_line_height_property): YAILOM (yet another
2516 int/Lisp_Object mixup).
2517
affa509c
EZ
25182004-05-01 Eli Zaretskii <eliz@gnu.org>
2519
2520 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
2521 undo bad effect of pack(4) in some versions of system headers.
2522
07c07cfe
JR
25232004-05-01 Jason Rumney <jasonr@gnu.org>
2524
2525 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
2526
e71caa4e
KS
25272004-04-30 Kim F. Storm <storm@cua.dk>
2528
2529 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 2530 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
2531
2532 * dispextern.h (struct it): Remove member use_default_face.
2533 Add members override_ascent, override_descent, override_boff.
2534
2535 * xdisp.c (init_iterator): Handle line-spacing float value.
2536 Initialize override_ascent member.
2537 (append_space_for_newline): Reset override_ascent.
2538 Remove use_default_face.
2539 (calc_line_height_property): New function to calculate value of
2540 line-height and line-spacing properties. Look at overlays, too.
2541 Set override_ascent, override_descent, override_boff members when
2542 using another face than the current face. Float values are now
2543 relative to the frame default font, by default; accept a cons
2544 of ratio and face name to specify value relative to a specific face.
2545 (x_produce_glyphs): Use calc_line_height_property.
2546 Use override_ascent etc. when set to handle different face heights.
2547 A negative line-spacing property value is interpreted as a total
2548 line height, rather than inter-line spacing.
2549 (note_mouse_highlight): Allocate room for 40 overlays initially.
2550
0fddae66
SM
25512004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2552
2553 * data.c (Fsubr_name): New fun.
2554 (syms_of_data): Defsubr it.
2555
712d23dc
KS
25562004-04-29 Kim F. Storm <storm@cua.dk>
2557
2558 * xdisp.c (null_glyph_slice): New var.
2559 (append_glyph, append_composite_glyph, append_stretch_glyph):
2560 Use it to initialize glyph slice.
2561
033ad8c6
SM
25622004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
2563
2564 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
2565 (on_hot_spot_p): Make sure we always return a value.
2566 (Flookup_image_map): Remove unused var ix and iy.
2567 (note_mode_line_or_margin_highlight): Remove unused var `image'.
2568
93397360
EZ
25692004-04-27 Eli Zaretskii <eliz@gnu.org>
2570
2571 * msdos.c (init_environment): If one of the TMP... environment
2572 variables is set to a drive letter without a trailing slash,
2573 append a slash.
2574
0c54865e
EZ
25752004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
2576
2577 * editfns.c (lisp_time_argument): Provide externally.
2578
2579 * fileio.c (Fset_file_times): New function.
2580 (syms_of_fileio): Intern and staticpro it.
2581
d3b111bd
KS
25822004-04-27 Kim F. Storm <storm@cua.dk>
2583
07dc1231
KS
2584 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
2585 header line strings.
2586
360fe9d2
KS
2587 * dispextern.h (struct it): New member use_default_face.
2588
d3b111bd
KS
2589 * xdisp.c (Qline_height): New variable.
2590 (syms_of_xdisp): Intern and staticpro it.
2591 (append_space_for_newline): Partially undo 2004-04-25 change;
2592 add default_face_p arg, and restore callers.
2593 Clear it->use_default_face after use.
2594 (x_produce_glyphs): Set default font for ascii char if
2595 it->use_default_font is set. Change line-spacing property to set
2596 just extra line spacing. Handle new line-height property.
2597
0448588b
AS
25982004-04-26 Andreas Schwab <schwab@suse.de>
2599
2600 * print.c (print_object): Print non-ascii characters in bool
2601 vector representation as octal escapes.
2602
2603 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
2604 * print.c (print_object): Use it instead of BITS_PER_CHAR for
2605 bool vectors.
2606 * lread.c (read1): Likewise.
2607 * alloc.c (Fmake_bool_vector): Likewise.
2608 * data.c (Faref, Faset): Likewise.
2609 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
2610 (mapcar1): Likewise.
d3b111bd 2611
536d6baa
ST
26122004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2613
2614 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
2615
ae11577a
MB
26162004-04-26 Miles Bader <miles@gnu.org>
2617
2618 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
2619
e198ba87
JB
26202004-04-26 Juanma Barranquero <lektu@terra.es>
2621
2622 * buffer.c (Fpop_to_buffer): Fix docstring.
2623
f3d5f92d 26242004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 2625
f3d5f92d
ST
2626 * lread.c (init_lread): Don't display missing lisp directory
2627 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 2628 may be built without correct installation path.
f3d5f92d 2629
03e35edc
KS
26302004-04-25 Kim F. Storm <storm@cua.dk>
2631
9ff3aa31
KS
2632 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2633
2634 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2635
03e35edc
KS
2636 * xdisp.c (append_space_for_newline): Rename from append_space.
2637 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
2638 (x_produce_glyphs): Handle line-spacing property on newline char.
2639 If value is t, adjust ascent and descent to fit current row height.
2640 If value is an integer or float, set extra_line_spacing to integer
2641 value, or to float value x current line height.
2642
f24814e0
KH
26432004-04-23 Kenichi Handa <handa@m17n.org>
2644
2645 * fontset.c (Finternal_char_font): If POSITION is nil, return
2646 font for displaying CH with the default face.
2647
d814862a
JB
26482004-04-23 Juanma Barranquero <lektu@terra.es>
2649
2650 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
2651
063a45c5
SM
26522004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2653
2654 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
2655 Don't make assumptions about the relative place of i and val.
2656 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
2657
ae7ab2d3
KS
26582004-04-21 Kim F. Storm <storm@cua.dk>
2659
2660 * dispextern.h (struct glyph_slice): New struct.
2661 (struct glyph): New member slice.
2662 (GLYPH_SLICE_EQUAL_P): New macro.
2663 (GLYPH_EQUAL_P): Use it.
2664 (struct glyph_string): New member slice.
2665 (struct it_slice): New struct.
2666 (struct it): New member slice, add member to stack too.
2667 New member constrain_row_ascent_descent_p.
2668 (image_ascent): Add prototype.
2669
2670 * dispnew.c (buffer_posn_from_coords): Return full image width
2671 and height even for image slices (posn is relative to full image).
2672 (marginal_area_string): Adjust x0,y0 for image slice.
2673
2674 * image.c (image_ascent): Add slice arg; calculate ascent for
2675 image slice (or full image).
2676
2677 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
2678 (syms_of_keyboard): Defsubr them.
2679
2680 * lisp.h (pos_visible_p): Fix prototype.
2681
c62aec78 2682 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
2683 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2684 (x_draw_image_foreground, x_draw_image_relief)
2685 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2686 Draw sliced images.
2687
2688 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
2689 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2690 (x_draw_image_foreground, x_draw_image_relief)
2691 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
2692 Draw sliced images.
2693
2694 * w32term.h (image_ascent): Remove prototype.
2695
2696 * window.c (Fpos_visible_in_window_p): Return pixel position if
2697 PARTIALLY arg is non-nil. Simplify. Doc fix.
2698 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
2699 to return/set vscroll in pixels.
2700
2701 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
2702
2703 * xdisp.c (Qslice): New variable.
2704 (syms_of_xdisp): Intern and staticpro it.
2705 (pos_visible_p): Return pixel position in new x and y args.
2706 (init_iterator): Reset it->slice info.
2707 (handle_display_prop): Parse (slice ...) property.
2708 (push_it, pop_it): Save/restore slice info.
2709 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
2710 force repositioning of tall row if window is vscrolled, as that
2711 would reset vscroll.
2712 (append_space): Set it->constrain_row_ascent_descent_p to avoid
2713 increasing row height if row is non-empty.
2714 (fill_image_glyph_string): Copy slice info.
2715 (take_vertical_position_into_account): Simplify.
2716 (produce_image_glyph): Handle iterator slice info, setup glyph
2717 slice info. Do not force minimum line height.
2718 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
2719 do not increase height (ascent/descent) of non-empty row when
2720 adding normal character glyph; instead reduce glyph ascent/descent
2721 appropriately; if row is higher than current glyph, adjust glyph
2722 descent/ascent to reposition glyph within the existing row.
2723 Likewise, when char is newline, only set ascent/descent if row is
2724 currently empty.
2725 (note_mouse_highlight): Handle hotspots with sliced image.
2726
2727 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
2728 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2729 (x_draw_image_foreground, x_draw_image_relief)
2730 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2731 Draw sliced images.
2732
2733 * xterm.h (image_ascent): Remove prototype.
2734
d58f8753
SM
27352004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2736
2737 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
2738
4ce2719d
JPW
27392004-04-20 John Paul Wallington <jpw@gnu.org>
2740
2741 * fns.c (Fassoc, Feql): Fix indentation.
2742
d58f8753 2743 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 2744
95f8c3b9
JPW
27452004-04-19 John Paul Wallington <jpw@gnu.org>
2746
2747 * fns.c (Feql): New function.
d58f8753 2748 (syms_of_fns): Defsubr it.
95f8c3b9 2749
b7e85537
JR
27502004-04-18 Jason Rumney <jasonr@gnu.org>
2751
2752 * w32select.c (Fw32_set_clipboard_data): Get sequence number
2753 after closing the clipboard.
2754
5a72efd4
LT
27552004-04-16 Luc Teirlinck <teirllm@auburn.edu>
2756
2757 * buffer.c (Fbuffer_base_buffer): Doc fix.
2758
20dc8583
KS
27592004-04-17 Kim F. Storm <storm@cua.dk>
2760
60962ec4
KS
2761 * keymap.c (Fkey_description): Add optional PREFIX arg.
2762 Combine prefix with KEYS to make up the full key sequence to describe.
2763 Correlate meta_prefix_char and following (simple) key to describe
2764 as meta modifier. All callers changed.
2765 (describe_map): Rename arg `keys' to `prefix'. Remove local
2766 `elt_prefix' var. Use Fkey_description with prefix instead of
2767 elt_prefix combined with Fsingle_key_description.
2768 (describe_vector): Declare static. Replace arg `elt_prefix' with
2769 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
2770 if !KEYMAP_P. Use Fkey_description with prefix instead of
2771 Fsingle_key_description.
2772
2773 * keymap.h (Fkey_description): Fix prototype.
2774 (describe_vector): Remove prototype.
2775
409368b9
KS
2776 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
2777
20dc8583
KS
2778 * image.c (PNG_BG_COLOR_SHIFT): Remove.
2779 (png_load): Fix calculation of transparent background color on X
2780 and W32 platforms.
2781
75c5501b
JB
27822004-04-16 Juanma Barranquero <lektu@terra.es>
2783
2784 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
2785 not too large before computing how much to scroll.
2786
da879ae8
SM
27872004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2788
2789 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
2790
d01ca4a8
LT
27912004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2792
2793 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
2794 Add hyperlink to Elisp manual to the docstring.
2795
572943b3
SM
27962004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
2797
2798 * callint.c (fix_command): Use XDCR.
2799
5e30a0fb
NR
28002004-04-14 Nick Roberts <nick@nick.uklinux.net>
2801
2802 * window.c (Fget_lru_window): Doc fix.
2803
a27ddfaf
KS
28042004-04-14 Kim F. Storm <storm@cua.dk>
2805
2806 * editfns.c (Fformat): Fix allocation size of precision array.
2807
2808 * dispnew.c (update_window): Only set changed_p if
2809 scrolling_window actually did scroll.
2810 (scrolling_window): Only return 1 if we actually did scroll.
2811
2812 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
2813 height to glyph height when cursor row is not fully visible.
2814 (make_cursor_line_fully_visible): Add FORCE_P arg to return
2815 failure in case row is higher than window. Callers changed.
2816 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
2817 Try to scroll partially visible, higher-than-window cursor row.
2818 (redisplay_window): Always try to scroll partially visible,
2819 higher-than-window cursor row - both initially and again with
2820 centering_position = 0.
2821 Clear desired matrix before retrying with centering_position = 0.
2822
da879ae8
SM
28232004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2824
2825 * syntax.c (scan_lists): Simplify backward string scan.
2826 Fix off-by-one boundary check for string and comment fences.
2827
5fc16e8e
SM
28282004-04-13 Joe Buehler <jbuehler@hekimian.com>
2829
2830 * sheap.c, unexcw.c: New files.
2831
c9aac8e6
LT
28322004-04-12 Luc Teirlinck <teirllm@auburn.edu>
2833
2834 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
2835 base buffer has been killed. Correct the error message if the
2836 base buffer does not exist.
2837
1e88a355
SM
28382004-04-12 Joe Buehler <jbuehler@hekimian.com>
2839
2840 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
2841 Cygwin itself. Add support for Xaw3d scrollbars.
2842
2843 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
2844
2845 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
2846
2847 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
2848 before Cygwin unexec.
2849
2850 * Makefile.in: Link changes for Cygwin unexec() support.
2851
8dbff9a0
AS
28522004-04-12 Andreas Schwab <schwab@suse.de>
2853
2854 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
2855
54dffe35
LT
28562004-04-11 Luc Teirlinck <teirllm@auburn.edu>
2857
2858 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
2859 IGNORE argument equals NAME. Doc fix.
2860
99a72bdf
MY
28612004-04-11 Masatake YAMATO <jet@gyve.org>
2862
1e88a355 2863 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
2864 empty if they are backwards.
2865
40899d7b
SM
28662004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2867
2868 * xfaces.c (face_color_supported_p): Fix compilation without X11.
2869
f8f853de
SM
28702004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2871
2872 * doc.c (Fsnarf_documentation): Ignore new file name entries.
2873
c953fe1b
KS
28742004-04-06 Kim F. Storm <storm@cua.dk>
2875
661e85c1
KS
2876 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2877 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
2878
2879 * w32term.c (w32_read_socket): Set mouse_face_hidden after
2880 clearing highlight.
2881
2882 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2883
2884 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
2885 clearing highlight.
2886
c953fe1b
KS
2887 * indent.c (vmotion): Do not reserve one column for continuation
2888 marks on window frames.
2889
c1994268
EZ
28902004-04-04 Eli Zaretskii <eliz@gnu.org>
2891
2892 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
2893 from GCC.
2894
9f691b0d
SM
28952004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2896
2897 * .gdbinit-union: Remove.
2898
2899 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
2900 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
2901 ($nonvalbits): Remove.
2902 ($valmask): Set it by calling xreload to avoid redundancy.
2903
2904 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
2905 (gdb_emacs_intbits): Remove.
2906
7a8560d7
JD
29072004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2908
9f691b0d 2909 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 2910
3c8111fc
KH
29112004-03-30 Kenichi Handa <handa@m17n.org>
2912
2913 * editfns.c (Fformat): Fix initialization of the array info.
2914
48a0bce4
KS
29152004-03-30 Kim F. Storm <storm@cua.dk>
2916
2917 * xterm.c (x_mouse_click_focus_ignore_position): New var.
2918 (syms_of_xterm): DEFVAR_BOOL it.
2919 (ignore_next_mouse_click_timeout): New var.
2920 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
2921 Use it to filter mouse clicks following focus event.
2922
1cd0066c
KS
29232004-03-29 David Ponce <david@dponce.com>
2924
2925 * callint.c (Fcall_interactively): Fix last change.
2926
adb3b353
SM
29272004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2928
2929 * eval.c (Fcommandp): Simplify.
2930
2931 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
2932 Extend to handle all kinds of functions.
2933
2934 * lisp.h (Finteractive_form): Declare.
2935
2936 * callint.c (Fcall_interactively): Use it.
2937
6fc4c9c9
KS
29382004-03-26 Kim F. Storm <storm@cua.dk>
2939
2940 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
2941 to catch errors in calc_pixel_width_or_height during redisplay.
2942
abdb9b83
MY
29432004-03-26 Masatake YAMATO <jet@gyve.org>
2944
b17856dd 2945 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 2946
b17856dd 2947 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 2948
b17856dd 2949 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 2950
b17856dd 2951 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 2952
e8a84b6c
JD
29532004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2954
b17856dd 2955 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 2956
36a3fd05
RS
29572004-03-19 Richard M. Stallman <rms@gnu.org>
2958
2959 * s/sol2-6.h: Delete previous change.
2960
ab24c127
KS
29612004-03-19 Kim F. Storm <storm@cua.dk>
2962
2963 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
2964 to_charpos corresponds to newline in right fringe. Use local
2965 BUFFER_POS_REACHED_P macro.
2966
992126de
JD
29672004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2968
2969 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
2970 to compile on non-window system.
2971
45dbfc84
KS
29722004-03-19 Kim F. Storm <storm@cua.dk>
2973
2974 * dispextern.h (calc_pixel_width_or_height): Add prototype.
2975
2976 * image.c (Qcenter): Move to xdisp.c.
2977
2978 * xdisp.c (Qcenter): Declare here.
adb3b353 2979 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
2980 (handle_single_display_prop): Allow space display property on all
2981 platforms.
2982 (display_mode_line): Set mode_line_p before displaying line.
2983 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
2984 handling. Remove complex cases for fringes and scroll-bars.
2985 Add left, right, and center alignment positions. Add text (area)
2986 width/height. Return width or height for image specs.
2987 (produce_stretch_glyph): Improve handling of :align-to. Is now
2988 relative to left of text area by default, but other base offsets
2989 can be specified -- also for text lines.
2990
2991 * term.c (produce_glyphs): Handle IT_STRETCH.
2992 (produce_stretch_glyph): New function to handle space width and
2993 align-to display properties on non-window systems.
2994
37264101
SM
29952004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2996
2997 * fileio.c (Fread_file_name): Set completion-ignore-case for
2998 case-insensitive systems.
2999
73bc43da
MY
30002004-03-14 Masatake YAMATO <jet@gyve.org>
3001
3002 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3003 when keymap and cursor are setup.
3004
9062aa89
ST
30052004-03-14 Steven Tamm <steventamm@mac.com>
3006
b17856dd 3007 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 3008
e4b1b5ab
KS
30092004-03-14 Kim F. Storm <storm@cua.dk>
3010
3011 * dispextern.h (x_find_image_file): Add prototype.
3012
3013 * image.c (x_find_image_file): Make extern.
3014
3015 * xfns.c (x_find_image_file): Remove prototype.
3016
a6eeaa81 30172004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 3018
37264101 3019 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 3020
37264101 3021 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 3022
e69cfac2
RS
30232004-03-12 Richard M. Stallman <rms@gnu.org>
3024
3025 * fns.c (internal_equal): New arg PROPS controls comparing
3026 text properties. All callers changed.
3027 (Fequal_including_properties): New function.
3028 (syms_of_fns): defsubr it.
3029
45034953
KS
30302004-03-12 Kim F. Storm <storm@cua.dk>
3031
3032 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 3033
45034953
KS
3034 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3035 (image_background, image_background_transparent): Fix prototypes.
3036
37264101 3037 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
3038
3039 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3040 (x_query_font, x_find_ccl_program, x_set_window_size)
3041 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3042 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3043 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3044
3045 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3046 (x_query_font, x_find_ccl_program, x_set_window_size)
3047 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3048 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3049 (mac_draw_line_to_pixmap): Add prototypes.
3050
30512004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3052
3053 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3054
a12d3d87
KS
30552004-03-11 Kim F. Storm <storm@cua.dk>
3056
d3ab1cf1
KS
3057 * dispextern.h: Move image related prototypes from xfns.c section
3058 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
3059 HAVE_X_WINDOWS.
37264101 3060
37de9f51 3061 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 3062 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
3063 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
3064 (GTK_OBJ) [USE_GTK]: New declaration.
3065 (obj): Add $(GTK_OBJ) to list.
3066
5243c06a 30672004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 3068
5243c06a
ST
3069 * image.c [MAC_OSX]: Include sys/stat.h
3070
3071 * macfns.c (syms_of_macfns): Remove definitions of things now
3072 defined in image.c
3073
c0f97789
KS
30742004-03-11 Kim F. Storm <storm@cua.dk>
3075
3076 The following changes consolidates the identical/similar image
3077 support code previously found in xfns.c, w32fns.c, and macfns.c
3078 into a new file image.c.
3079
3080 * makefile.w32-in (OBJ1): Add image.o.
3081 ($(BLD)/image.$(O)): Add dependencies.
3082
3083 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
3084 (image.o): Add dependencies.
37264101 3085
c0f97789
KS
3086 * image.c: New file with consolidated image support code.
3087 (COLOR_TABLE_SUPPORT): New define to control whether
3088 color table support is available (X only).
3089 (Bitmap_Record): Common name for x_bitmap_record,
3090 w32_bitmap_record, and mac_bitmap_record.
3091 (XImagePtr): Common name for pointer to XImage or equivalent.
3092 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
3093 to XImagePtr on X+MAC, and to HDC on W32.
3094 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
3095 (NO_PIXMAP): Common name for "None" or equivalent.
3096 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
3097 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
3098 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
3099 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
3100 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
3101 (XDrawLine): Define on MAC for code sharing.
3102 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
3103 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
3104 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3105 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3106 (x_reference_bitmap, x_create_bitmap_from_data)
3107 (x_create_bitmap_from_file, x_destroy_bitmap)
3108 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3109 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3110 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3111 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3112 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3113 (define_image_type, lookup_image_type, valid_image_p)
3114 (image_error, enum image_value_type, struct image_keyword)
3115 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3116 (make_image, free_image, prepare_image_for_display, image_ascent)
3117 (four_corners_best, image_background, image_background_transparent)
3118 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3119 (make_image_cache, free_image_cache, clear_image_cache)
3120 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3121 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3122 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3123 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3124 (init_image_func_pointer, image_load_quartz2d)
3125 (struct ct_color, init_color_table, free_color_table)
3126 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3127 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3128 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3129 (x_disable_image, x_build_heuristic_mask)
3130 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3131 (TIFF support, GIF support, Ghostscript support): Consolidate image
3132 code from xfns.c, w32fns.c, and macfns.c.
3133 (syms_of_image): Consolidate image related symbol setup here.
3134 (init_image): Consolidate image related initializations here.
37264101 3135
c0f97789
KS
3136 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
3137 and init_image. Remove call to init_xfns.
3138
37264101
SM
3139 * macterm.h (struct mac_bitmap_record): Add file member.
3140 Not currently used, but simplifies code sharing.
c0f97789
KS
3141
3142 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3143 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3144 (x_reference_bitmap, x_create_bitmap_from_data)
3145 (x_create_bitmap_from_file, x_destroy_bitmap)
3146 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3147 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3148 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3149 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3150 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3151 (define_image_type, lookup_image_type, valid_image_p)
3152 (image_error, enum image_value_type, struct image_keyword)
3153 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3154 (make_image, free_image, prepare_image_for_display, image_ascent)
3155 (four_corners_best, image_background, image_background_transparent)
3156 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3157 (make_image_cache, free_image_cache, clear_image_cache)
3158 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3159 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3160 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3161 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3162 (init_image_func_pointer, image_load_quartz2d)
3163 (struct ct_color, init_color_table, free_color_table)
3164 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3165 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3166 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3167 (x_disable_image, x_build_heuristic_mask)
3168 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3169 (TIFF support, GIF support, Ghostscript support): Merge with image
3170 code from xfns.c and macfns.c into image.c.
3171 (syms_of_xfns): Move image related symbols to image.c.
3172 (init_external_image_libraries, init_xfns): Remove; initialization
3173 moved to init_image in image.c.
3174
3175 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3176 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3177 (x_reference_bitmap, x_create_bitmap_from_data)
3178 (x_create_bitmap_from_file, x_destroy_bitmap)
3179 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3180 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3181 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3182 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3183 (define_image_type, lookup_image_type, valid_image_p)
3184 (image_error, enum image_value_type, struct image_keyword)
3185 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3186 (make_image, free_image, prepare_image_for_display, image_ascent)
3187 (four_corners_best, image_background, image_background_transparent)
3188 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3189 (make_image_cache, free_image_cache, clear_image_cache)
3190 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3191 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3192 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3193 (struct ct_color, init_color_table, free_color_table)
3194 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3195 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3196 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3197 (x_disable_image, x_build_heuristic_mask)
3198 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3199 (TIFF support, GIF support, Ghostscript support): Merge with image
3200 code from xfns.c and macfns.c into image.c.
3201 (syms_of_xfns): Move image related symbols to image.c.
3202 (init_external_image_libraries, init_xfns): Remove; initialization
3203 moved to init_image in image.c.
3204
3205 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3206 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3207 (x_reference_bitmap, x_create_bitmap_from_data)
3208 (x_create_bitmap_from_file, x_destroy_bitmap)
3209 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3210 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3211 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3212 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3213 (define_image_type, lookup_image_type, valid_image_p)
3214 (image_error, enum image_value_type, struct image_keyword)
3215 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3216 (make_image, free_image, prepare_image_for_display, image_ascent)
3217 (four_corners_best, image_background, image_background_transparent)
3218 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3219 (make_image_cache, free_image_cache, clear_image_cache)
3220 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3221 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3222 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3223 (struct ct_color, init_color_table, free_color_table)
3224 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3225 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3226 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3227 (x_disable_image, x_build_heuristic_mask)
3228 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3229 (TIFF support, GIF support, Ghostscript support): Merge with
3230 w32fns.c and macfns.c image code into image.c.
3231 (syms_of_xfns): Move image related symbols to image.c.
3232 (init_xfns): Remove; initialization moved to init_image in image.c.
3233
3234 * lisp.h (syms_of_image, init_image): Add protoypes.
3235 (init_xfns): Remove prototype.
3236
3237 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3238 (x_reference_bitmap, x_create_bitmap_from_data)
3239 (x_create_bitmap_from_file, x_destroy_bitmap)
3240 (x_create_bitmap_mask): Move prototypes from dispextern.h.
3241 (gamma_correct) [MAC_OS]: Add prototype.
3242
3243 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3244 (x_reference_bitmap, x_create_bitmap_from_data)
3245 (x_create_bitmap_from_file, x_destroy_bitmap)
3246 (x_create_bitmap_mask): Move prototypes to dispextern.h.
3247
6eced09c
KH
32482004-03-09 Kenichi Handa <handa@etlken2>
3249
3250 * coding.c (decode_coding_emacs_mule): Handle insufficent source
3251 correctly.
3252
9a7e95f3
RS
32532004-03-04 Richard M. Stallman <rms@gnu.org>
3254
04a6e76b
RS
3255 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
3256
9a7e95f3
RS
3257 * window.c (Fdisplay_buffer): Doc fix.
3258
3259 * buffer.c (Fpop_to_buffer): Doc fix.
3260
6c2488df
KS
32612004-03-03 Kim F. Storm <storm@cua.dk>
3262
3263 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
3264
d8d95bc7
SM
32652004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
3266
3267 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
3268
357589bf
RS
32692004-03-02 Richard M. Stallman <rms@gnu.org>
3270
3271 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
3272
409949b5
KH
32732004-03-02 Kenichi Handa <handa@m17n.org>
3274
3275 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
3276
d24bc50f
KS
32772004-03-02 Kim F. Storm <storm@cua.dk>
3278
3279 * window.h (struct window): New member overlay_arrow_bitmap.
3280
3281 * window.c (make_window): Initialize overlay_arrow_bitmap.
3282
3283 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
3284 implement and integrate multiple overlay arrows with redisplay.
3285 (syms_of_xdisp): DEFVAR_LISP and initialize it.
3286 (last_arrow_position, last_arrow_string): Replace by properties.
3287 (Qlast_arrow_position, Qlast_arrow_string)
3288 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
3289 (syms_of_xdisp): Intern and staticpro them.
3290 (overlay_arrow_string_or_property, update_overlay_arrows)
3291 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
3292 (overlay_arrow_at_row): New functions for multiple overlay arrows.
3293 (redisplay_internal): Use them instead of directly accessing
3294 Voverlay_arrow_position etc. for multiple overlay arrows.
3295 (mark_window_display_accurate): Use update_overlay_arrows.
3296 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
3297 (try_window_id): Use overlay_arrows_changed_p.
3298 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
3299 (display_line): Use overlay_arrow_at_row to check multiple
3300 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 3301 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
3302 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
3303 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
3304
3305 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
3306 (update_window_fringes): Remove unused code.
3307
c1464661
JR
33082004-03-01 Jason Rumney <jasonr@gnu.org>
3309
3310 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
3311
a64387ee
JB
33122004-03-01 Juanma Barranquero <lektu@terra.es>
3313
3314 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
3315
3316 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
3317
334faa08
JD
33182004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3319
3320 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
3321 how many colors can be displayed.
3322
bb62616f
KH
33232004-03-01 Kenichi Handa <handa@m17n.org>
3324
3325 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
3326 correctly.
3327
0fd16104
KS
33282004-02-28 Kim F. Storm <storm@cua.dk>
3329
3330 * dispnew.c (update_window): Update header line also if there are
3331 no other changes in window (move code after set_cursor label).
3332
3333 * lisp.h (mark_window_display_accurate): Remove prototype.
3334
3335 * window.c (window_loop, Fforce_window_update): Force mode line
3336 updates by setting prevent_redisplay_optimizations_p and
3337 update_mode_lines.
3338
b59dd9c8
JD
33392004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3340
d8d95bc7 3341 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
3342
3343 * xterm.c (x_calc_absolute_position): Call x_real_positions
3344 to get WM window sizes and use those to calculate position.
d8d95bc7 3345 (x_set_offset): Remove code commented out.
b59dd9c8 3346
a874691c
MB
33472004-02-28 Miles Bader <miles@gnu.org>
3348
3349 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
3350
3e0c6482
KS
33512004-02-28 Kim F. Storm <storm@cua.dk>
3352
3353 * keyboard.c (kbd_buffer_store_event_hold): New function to store
3354 an event into kbd fifo, but with special handling of quit event;
3355 a quit event is saved for later, and further events are discarded
3356 until the saved quit event has been processed.
3357 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
3358 (gen_help_event): Store help event in kbd fifo.
3359 (NREAD_INPUT_EVENTS): Remove.
3360 (read_avail_input): Adapt to new read_socket_hook interface.
3361 Remove allocation and initialization of local input_event buffer,
3362 as read_socket_hook stores events directly in fifo. Allocate and
3363 initialize local hold_quit event to handle postponed quit event
3364 (and store it if set by kbd_buffer_store_event_hold).
3365
3366 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
3367 (gen_help_event): Fix prototype.
3368
a64387ee 3369 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 3370 numcharsp args. Add hold_quit arg.
f63fd14e 3371 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3372 directly in fifo using kbd_buffer_store_event_hold.
3373
3374 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
3375 (read_input_waiting): Adapt to new read_socket_hook interface.
3376 Remove allocation and initialization of local input_event buffer,
3377 as read_socket_hook stores events directly in fifo. Allocate and
3378 initialize local hold_quit event to handle postponed quit event
3379 (and store it if set by kbd_buffer_store_event_hold).
3380
a64387ee 3381 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
3382
3383 * termhooks.h (read_socket_hook): Fix prototype.
3384
3385 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
3386 numcharsp args. Add hold_quit arg.
f63fd14e 3387 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3388 directly in fifo using kbd_buffer_store_event_hold.
3389
3390 * w32inevt.h (w32_console_mouse_position): Fix prototype.
3391
3392 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
3393 Add hold_quit arg. Rework to use just one, local, inev
3394 input_event. Store inev directly in fifo using
3e0c6482
KS
3395 kbd_buffer_store_event_hold. Update count in one place.
3396 Postpone call to gen_help_event until inev is stored; use new
3397 local do_help for this.
3398 Remove local emacs_event in handing of ButtonPress event; just use
3399 inev instead (so no reason to copy it later).
3400
3401 * xsmfns.c (x_session_check_input): Remove numchars arg.
3402
d8d95bc7
SM
3403 * xterm.c (x_focus_changed, x_detect_focus_change):
3404 Remove numchars arg. Always store event into bufp arg.
3405 Return nothing. Callers changed accordingly.
3e0c6482
KS
3406 (glyph_rect): Simplify.
3407 (STORE_KEYSYM_FOR_DEBUG): New macro.
3408 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
3409 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
3410 (current_hold_quit) [USE_GTK]: Add.
3411 (event_handler_gdk): Adapt to new handle_one_xevent.
3412 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
3413 Add hold_quit arg. Rework to use just one, local, inev
3414 input_event. Store inev directly in fifo using
3e0c6482
KS
3415 kbd_buffer_store_event_hold. Update count in one place.
3416 Postpone call to gen_help_event until inev is stored; use new
3417 local do_help for this.
3418 Simplify handling of keysyms (consolidate common code). Fix bug
3419 where count was updated with nchars instead of nbytes.
3420 Remove local emacs_event in handing of ButtonPress event; just use
3421 inev instead (so no reason to copy it later).
3422 Remove `out' label. Rename label `ret' to `done'; add various
3423 `goto done' to clarify code flow in deeply nested blocks.
3424 (x_dispatch_event): Simplify as handle_one_xevent now calls
3425 kbd_buffer_store_event itself.
f63fd14e 3426 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
3427 arg. Call handle_one_xevent with new arglist. Store event from
3428 x_session_check_input in fifo.
3429 [USE_GTK]: Setup current_hold_quit.
3430 Decrement handling_signal before unblocking input.
3431 (x_initialize) [USE_GTK]: Initialize current_count.
3432
3433 * xterm.h (x_session_check_input): Fix prototype.
3434
e3564461 34352004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 3436
d8d95bc7 3437 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 3438
e3564461
ST
3439 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
3440 macgui.h).
a64387ee 3441
e3564461 3442 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 3443
e3564461
ST
3444 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
3445 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
3446 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
3447 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
3448 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
3449 (Bitmap): Remove typedef.
3450 (Pixmap): Change int to GWorldPtr.
3451
d8d95bc7 3452 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 3453
d8d95bc7
SM
3454 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
3455 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
3456 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
3457 long representation.
3458 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
3459 colors used for masks.
3460 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 3461
e3564461
ST
3462 * macfns.c: Include sys/types.h and sys/stat.h.
3463 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
3464 Include QuickTime/QuickTime.h.
3465 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3466 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
3467 functions defined in macterm.c.
3468 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
3469 (ZPixmap): New #define for compatibility with xfns.c.
3470 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3471 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
3472 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
3473 New functions.
e3564461 3474 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
3475 (x_destroy_x_image, unwind_create_frame, x_disable_image)
3476 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
3477 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
3478 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
3479 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
3480 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
3481 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
3482 long mixup.
3483 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
3484 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
3485 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
3486 (x_set_cursor_type, Fxw_color_values, valid_image_p)
3487 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
3488 (x_alloc_image_color, clear_image_cache, lookup_image)
3489 (x_find_image_file, xbm_read_bitmap_file_data)
3490 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
3491 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
3492 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
3493 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
3494 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 3495 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
3496 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
3497 #if 0.
3498 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
3499 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
3500 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
3501 New functions (from xfns.c).
e3564461
ST
3502 (Fx_create_frame): Record unwind_create_frame.
3503 (Fxw_display_color_p): Use dpyinfo->color_p.
3504 (Fx_display_grayscale_p, Fx_display_planes): Don't use
3505 dpyinfo->n_cbits.
3506 (Fx_display_color_cells): Use dpyinfo->n_planes;
3507 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
3508 (Qheuristic, cross_disabled_images, emboss_matrix)
3509 (laplace_matrix): New variables (from xfns.c).
3510 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
3511 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
3512 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
3513 (image_background_transparent): New function (from xfns.c).
3514 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3515 (image_load_quicktime): Add declaration.
3516 [MAC_OSX] (image_load_quartz2d): Likewise.
3517 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
3518 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 3519 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
3520 (xbm_load_image_from_file, x_laplace_read_row)
3521 (x_laplace_write_row, pbm_read_file): Remove functions.
3522 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
3523 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
3524 (colors_in_color_table): Sync with xfns.c (although not used).
3525 (lookup_rgb_color): Don't lookup color table. Just do gamma
3526 correction.
3527 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
3528 (x_disable_image): New function (from xfns.c).
3529 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
3530 (x_build_heuristic_mask): Sync with xfns.c.
3531 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3532 (HAVE_PBM): Remove #ifdef.
3533 (pbm_load): Sync with xfns.c. Set img->width and img->height
3534 before IMAGE_BACKGROUND.
d8d95bc7 3535 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
3536 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
3537 Don't enclose with #if HAVE_PNG.
3538 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
3539 symbol _CGImageCreateWithPNGDataProvider is defined.
3540 Otherwise use image_load_quicktime.
e3564461 3541 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
3542 [HAVE_PNG] (png_load): Sync with xfns.c.
3543 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3544 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
3545 HAVE_JPEG.
3546 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
3547 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
3548 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
3549 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
3550 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
3551 (tiff_image_p, tiff_load): Don't enclose declarations with #if
3552 HAVE_TIFF.
3553 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
3554 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
3555 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
3556 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
3557 New functions (from xfns.c).
e3564461 3558 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 3559 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
3560 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
3561 Don't enclose with #if HAVE_GIF.
3562 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
3563 animated gif. Otherwise use image_load_quicktime.
3564 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
3565 gif_DrawText to avoid conflict with QuickdrawText.h.
3566 [HAVE_GIF] (gif_load): Sync with xfns.c.
3567 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
3568 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
3569 Ghostscript is not supported yet).
3570 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
3571 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
3572 cross_disabled_images (from xfns.c). Remove #if 0 for supported
3573 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
3574 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
3575 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
3576 HAVE_PNG. Call EnterMovies to support animated gifs.
3577 Call init_image_func_pointer to bind a symbol
e3564461 3578 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 3579
d8d95bc7 3580 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
3581 (x_draw_bar_cursor): Sync declaration with xterm.c.
3582 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
3583 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
3584 graphics).
3585 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
3586 (mac_draw_line_to_pixmap, XCreatePixmap)
3587 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
3588 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
3589 New functions.
3590 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
3591 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
3592 Cast bits to char *.
e3564461
ST
3593 (reflect_byte): New function (from w32fns.c).
3594 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
3595 due to byte alignment.
d8d95bc7
SM
3596 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
3597 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
3598 (XSetForeground): Remove static (now used in macfns.c).
3599 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
3600 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
3601 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
3602 (x_draw_glyph_string_box, x_draw_image_foreground)
3603 (x_draw_image_foreground_1, x_draw_image_glyph_string)
3604 (x_draw_stretch_glyph_string, x_draw_glyph_string)
3605 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
3606 Sync with xterm.c.
3607 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
3608 than the xterm.c version when a strictly horizontal or vertical
3609 line is drawn.
3610 (XTset_terminal_window): Add static.
3611 (x_make_frame_visible): Add UNBLOCK_INPUT.
3612 (x_free_frame_resources): New funcion (from xterm.c).
3613 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
3614 occurs in tool bar area.
d8d95bc7
SM
3615 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
3616 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
3617 Initialize image cache.
3618 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
3619 Enclose unused functions with #if 0.
3620 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
3621 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 3622 from a mac font name to an XLFD font name according to its script code.
e3564461 3623 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 3624 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
3625 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
3626 whose name starts with `.'.
3627 (init_font_name_table): Use decode_mac_font_name. Add both
3628 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
3629 of a font is smJapanese.
3630 (mac_do_list_fonts): New function to list fonts that match a given
3631 pattern.
3632 (x_list_fonts, XLoadQueryFont): Use it.
3633 (XLoadQueryFont): Set rbearing field for each variable width
3634 character to avoid needless redraw.
3635 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
3636
446f5f3d
KS
36372004-02-26 Kim F. Storm <storm@cua.dk>
3638
af617d0f
KS
3639 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
3640 as read_socket_hook handler on X aborts if buffer is too small
3641 and W32 handler doesn't always check buffer limit.
3642
446f5f3d
KS
3643 * xdisp.c (handle_single_display_prop): Handle left-fringe and
3644 right-fringe similar to a display margin image. Specifically,
3645 the characters having the fringe prop are no longer shown, and
3646 we use IT_IMAGE/next_element_from_image with image_id = -1 to
3647 do this. Set fringe bitmap face_id in it->face_id.
3648 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
3649 still realize it->face (i.e. the fringe bitmap face).
3650
7d8a0b55
MB
36512004-02-25 Miles Bader <miles@gnu.org>
3652
3653 * xdisp.c (check_it): Check string/string_pos consistency.
3654 (init_iterator): Initialize string-related fields properly.
3655
36562004-02-11 Miles Bader <miles@gnu.org>
3657
3658 * xdisp.c (produce_image_glyph): Force negative descents to zero.
3659
36602004-02-10 Miles Bader <miles@gnu.org>
3661
3662 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
3663 BLOCK_INPUT can be nested, so it doesn't make much sense.
3664
a64387ee 36652004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
3666
3667 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
3668 (xbm_read_bitmap_data): Use unsigned char for image data.
3669
92f5fba2
LT
36702004-02-23 Luc Teirlinck <teirllm@auburn.edu>
3671
3672 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
3673
8565fb3d
JR
36742004-02-22 Jason Rumney <jasonr@gnu.org>
3675
3676 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
3677 correctly over other bitmaps.
3678
a6eeaa81 36792004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
3680
3681 * emacs.c (USAGE1): Split into two halves.
3682 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
3683 (USAGE3): Rename from USAGE2.
3684 (USAGE4): Rename from USAGE3.
f8125c39 3685
4effffca
EZ
36862004-02-21 Juri Linkov <juri@jurta.org>
3687
3688 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
3689 Fix --multibyte. Move --help, --version to USAGE2. Add alias
3690 --file. Fix -f, -l. Sort options. Untabify.
3691 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
3692
923c1e6f
LT
36932004-02-19 Luc Teirlinck <teirllm@auburn.edu>
3694
3695 * category.c (Fdefine_category, Fcategory_docstring)
3696 (Fget_unused_category, Fset_category_table)
3697 (Fcategory_set_mnemonics): Doc fixes.
3698
b0e225fd
KS
36992004-02-20 Kim F. Storm <storm@cua.dk>
3700
3701 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
3702 The following changes are relative to the 2004-01-21 revision.
3703 (NREAD_INPUT_EVENTS): Define as max number of input events to read
3704 in one call to read_socket_hook. Value is 8.
3705 (read_avail_input): Separate and rework handling of read_socket_hook
3706 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
3707 in read_socket_hook case, and repeat if full buffer is read.
3708 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
3709 In non-read_socket_hook case, just use a single input_event, and
3710 call kbd_buffer_store_event on the fly for each character.
3711
b15aa9f9
SM
37122004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3713
3714 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
3715 Remove unused `gu' alternative.
3716
83c9aa95
AS
37172004-02-19 Andreas Schwab <schwab@suse.de>
3718
3719 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
3720 warning.
3721
cc808173
KS
37222004-02-18 Kim F. Storm <storm@cua.dk>
3723
3724 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
3725 Fix last change.
3726
ab90a54d
KS
37272004-02-17 Kim F. Storm <storm@cua.dk>
3728
b26f249f
KS
3729 * xdisp.c (fast_find_position): Fix return value of new version;
3730 it was inverted compared to the 21.1 version.
3731 (get_window_cursor_type): Don't look at glyph if NULL.
3732 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 3733
ab90a54d
KS
3734 * keyboard.c: Rework previous change; it didn't consider that the
3735 buf array was allocated on the stack.
3736 (prev_read): Remove variable.
3737 (read_avail_input_buf): New static event buffer array.
b9568dfc 3738 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 3739 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
3740 Use in_read_avail_input to handle re-entrance; when re-entered,
3741 fully initialize and use tmp_buf array instead of read_avail_input_buf.
3742 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
3743 is always cleared on entry. To ensure that, we clear (just) the
3744 entries that were used before we return.
3745 (init_keyboard): Initialize read_avail_input_buf here.
3746
b6189c3b 37472004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
3748
3749 * cmds.c (Fend_of_line): Doc fix.
3750
7b5368c1
EZ
37512004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
3752
3753 * keyboard.c (prev_read): New static variable.
3754 (read_avail_input): Use it to zero out only those slots in buf[]
3755 that were used last time we were called.
3756
a6eeaa81 37572004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
3758
3759 * Makefile.in (obj): Move fringe.o from here...
3760 (XOBJ, MAC_OBJ): ...to here.
3761
159c348e
SE
37622004-02-16 Stephen Eglen <stephen@gnu.org>
3763
3764 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
3765
d2f14999
SM
37662004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
3767
b15aa9f9
SM
3768 * data.c (Fbyteorder):
3769 * fringe.c (Fdefine_fringe_bitmap):
3770 * xdisp.c (handle_single_display_prop):
d2f14999
SM
3771 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
3772
8d50508a
JR
37732004-02-16 Jason Rumney <jasonr@gnu.org>
3774
3775 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
3776
dd4497dc
ST
37772004-02-15 Steven Tamm <steventamm@mac.com>
3778
3779 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
3780 controlling emulation of a three button mouse with option and
3781 command keys.
3782 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 3783 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 3784
c9159cb3
KS
37852004-02-15 Kim F. Storm <storm@cua.dk>
3786
2cc52658
KS
3787 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
3788
c9159cb3
KS
3789 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
3790 Perform byte-swapping.
3791
12fde2dc
KS
37922004-02-14 Kim F. Storm <storm@cua.dk>
3793
3794 * dispextern.h (struct draw_fringe_bitmap_params): Change member
3795 bits from char to short to facilitate wider bitmaps.
3796 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
3797 member.
3798
3799 * fringe.c (struct fringe_bitmap): Change member bits from char to
3800 short to facilitate 16 bits wide bitmaps. Modify all standard
3801 bitmaps accordingly.
3802 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
3803 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
3804 (draw_fringe_bitmap): Ditto.
3805 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
3806 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
3807 handle up to 16 bits wide bitmaps.
3808 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 3809 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
3810
3811 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
3812 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
3813 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
3814
3815 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
3816 so it is no longer necessary to expand them here.
3817
3818 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
3819
9d7271e8
KS
38202004-02-12 Kim F. Storm <storm@cua.dk>
3821
3822 * window.c (Fwindow_fringes): Doc fix.
3823
706c1e4f
JD
38242004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3825
3826 * xselect.c (x_get_foreign_selection): Add new optional parameter
3827 time_stamp.
3828 (Fx_get_selection_internal): Ditto, pass time_stamp to
3829 x_get_foreign_selection.
3830
3831 * data.c (Fbyteorder): New function.
3832
c2d12b5d
JD
38332004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3834
3835 * atimer.c: Move include stdio.h to same place as in other files.
3836
3837 * region-cache.c: Ditto.
3838
3839 * sysdep.c: Ditto.
3840
3841 * xfaces.c: Ditto.
3842
4c1947b9
SS
38432004-02-09 Sam Steingold <sds@gnu.org>
3844
89458937 3845 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 3846
82722af3
KS
38472004-02-09 Kim F. Storm <storm@cua.dk>
3848
3849 * fringe.c: New file. Move original fringe related declarations
3850 and code from dispextern.h and xdisp.c here.
3851 Rework code to support user defined fringe bitmaps, redefining
3852 standard bitmaps, ability to overlay user defined bitmap with
3853 overlay arrow bitmap, and add faces to bitmaps.
3854 (Voverflow_newline_into_fringe): Declare here.
3855 (enum fringe_bitmap_align): New enum.
3856 (..._bits): All bitmaps are now defined without bitswapping; that
3857 is now done in init_fringe_once (if necessary).
3858 (standard_bitmaps): New array with specifications for the
3859 standard fringe bitmaps.
3860 (fringe_faces): New array.
3861 (valid_fringe_bitmap_id_p): New function.
3862 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
3863 (draw_fringe_bitmap): New function which draws fringe bitmap,
3864 possibly overlaying bitmap with cursor in right fringe or the
3865 overlay arrow in the left fringe.
3866 (update_window_fringes): Do not handle overlay arrow here.
3867 Compare and copy fringe bitmap faces.
3868 (init_fringe_bitmap): New function.
3869 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
3870 define and destroy user defined fringe bitmaps.
3871 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
3872 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
3873 (syms_of_fringe): New function. Defsubr new DEFUNs.
3874 DEFVAR_LISP Voverflow_newline_into_fringe.
3875 (init_fringe_once, init_fringe): New functions.
3876 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 3877
82722af3
KS
3878 * Makefile.in (obj): Add fringe.o.
3879 (fringe.o): New dependencies.
3880
3881 * dispextern.h (FRINGE_ID_BITS): New definition for number of
3882 bits allocated to hold a fringe number. Increase number of bits
3883 from 4 to 8 to allow user defined fringe bitmaps.
3884 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
3885 left_user_fringe_face_id, right_user_fringe_bitmap,
3886 right_user_fringe_face_id.
3887 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
3888 Move to new file fringe.c.
3889 (MAX_FRINGE_BITMAPS): Define here.
3890 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
3891 and overlay_p. Change member which to int.
3892 (struct redisplay_interface): New members define_fringe_bitmap
3893 and destroy_fringe_bitmap.
3894 (valid_fringe_bitmap_id_p): Add prototype.
3895 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
3896
3897 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
3898 arrows.
3899 (update_frame): Do flush_display if force_flush_display_p to
3900 ensure display (specifically fringes) are updated in a timely
3901 manner when resizing the frame by dragging the mouse.
3902 (update_window_line): Update row if overlay arrow changed.
3903 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
3904 or overlay arrow changed.
3905
3906 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
3907 syms_of_fringe, and init_fringe.
3908
3909 * frame.h (struct frame): New member force_flush_display_p.
3910
3911 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
3912 Add prototypes.
3913
a3993cc8 3914 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 3915 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
3916 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
3917 Use cursor color for displaying cursor in fringe.
82722af3
KS
3918 (x_redisplay_interface): Add null handlers for
3919 define_fringe_bitmap and destroy_fringe_bitmap functions.
3920
3921 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
3922 xterm.c to handle overlayed fringe bitmaps and to use cursor color
3923 for displaying cursor in fringe.
3924 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
3925 specific functions to define and destroy fringe bitmaps in fringe_bmp.
3926 (w32_redisplay_interface): Add them to redisplay_interface.
3927 (w32_term_init): Call w32_init_fringe instead of explicitly
3928 defining fringe bitmaps in fringe_bmp array.
3929 (x_delete_display): Call w32_reset_fringes instead of explicitly
3930 destroying fringe bitmaps in fringe_bmp array.
3931
3932 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
3933 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
3934 (continued_bits, continuation_bits, ov_bits, first_line_bits)
3935 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
3936 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
3937 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
3938 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
3939 Move fringe handling vars and code to new file fringe.c.
3940 (handle_display_prop): Handle left-fringe and right-fringe
3941 display properties; store user fringe bitmaps in iterator.
3942 (move_it_in_display_line_to): Handle cursor in fringe at eob.
3943 (clear_garbaged_frames): Set force_flush_display_p if resized.
3944 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
3945 (display_line): Handle cursor in fringe at eob.
3946 (display_line): Set row user fringe bitmaps from iterator.
3947
3948 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
3949 Use cursor color for displaying cursor in fringe.
3950 (x_redisplay_interface): Add null handlers for
3951 define_fringe_bitmap and destroy_fringe_bitmap functions.
3952
030400eb
JD
39532004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3954
3955 * macfns.c (Fx_change_window_property): Make doc string and
3956 parameters same as for X version.
3957
3958 * w32fns.c (Fx_change_window_property): Ditto.
3959
3af55251
KS
39602004-02-07 Kim F. Storm <storm@cua.dk>
3961
ec110e9e
KS
3962 * xdisp.c (hscroll_window_tree): Position cursor near to right
3963 margin in hscrolled window when jumping to end of line (rather
3964 than centering cursor).
3965
3af55251
KS
3966 * process.c (wait_reading_process_input): Don't do adaptive read
3967 buffering if waiting for a specific process.
3968
b0c138ce
LT
39692004-02-05 Luc Teirlinck <teirllm@auburn.edu>
3970
3971 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
3972 (Fread_minibuffer, Feval_minibuffer)
3973 (Fread_string, Fread_no_blanks_input)
3974 (Fcompleting_read): Doc fixes.
3975 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
3976 completion-regexp-list. Define Qcase_fold_search and staticpro it.
3977 (read_minibuf): Fix initial comment.
3978 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 3979 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
3980 checking completion-regexp-list.
3981 (Fdisplay_completion_list): Make it handle arguments that are
3982 symbols. Doc fix.
3983
9676f5ad 39842004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 3985
9676f5ad 3986 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 3987
9676f5ad
JD
3988 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
3989 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 3990 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 3991 format. Remove unused variable cons.
5b698285
JD
3992
3993 * xselect.c: Include stdio,h.
3994
fc1d15f6
KH
39952004-02-05 Kenichi Handa <handa@m17n.org>
3996
ebaff4af
KH
3997 * fns.c (Fset_char_table_range): Fix previous change.
3998
fc1d15f6
KH
3999 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4000
9676f5ad
JD
40012004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4002
4003 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4004
da75761f
SM
40052004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4006
4007 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4008 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4009
13c5d120
KH
40102004-02-04 Kenichi Handa <handa@m17n.org>
4011
4012 * fns.c (Fset_char_table_range): Handle charsets ascii,
4013 eight-bit-control, and eight-bit-graphic correctly.
4014
2883d842
JR
40152004-02-03 Jason Rumney <jasonr@gnu.org>
4016
4017 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4018
4019 * w32fns.c (x_to_w32_font): Likewise.
4020
69eff41f
JD
40212004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4022
4023 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4024 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4025
4026 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4027 ClientMessages.
4028
4029 * xselect.c: Include termhooks.h and X11/Xproto.h
4030 (x_check_property_data, x_fill_property_data)
4031 (x_property_data_to_lisp, mouse_position_for_drop)
4032 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 4033 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
4034 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4035
da75761f 4036 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
4037 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4038 OUTER_P.
4039 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4040 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4041 if vector_ret_p is true.
4042 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 4043
a6eeaa81 40442004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
4045
4046 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4047 basename of FILE relative to it, not FILE itself.
4048
09721b31
KH
40492004-02-02 Kenichi Handa <handa@m17n.org>
4050
4051 * coding.c (coding_restore_composition): Check invalid
4052 composition data more rigidly.
4053
eb996101
LT
40542004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4055
4056 * fileio.c (Fread_file_name_internal): Correctly handle the case
4057 where insert-default-directory is nil.
4058 (Fread_file_name): Always return an empty string if the user exits
4059 with an empty minibuffer. Adapt the docstring accordingly.
4060 (syms_of_fileio): Adapt the docstring of insert-default-directory
4061 to the change in Fread_file_name.
4062
a6eeaa81 40632004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
4064
4065 * alloca.c [!alloca]: Fix the prototype for xfree.
4066
13f52ed8
KH
40672004-01-29 Kenichi Handa <handa@m17n.org>
4068
4069 * fns.c (string_char_to_byte): Optimize for ASCII only string.
4070 (string_byte_to_char): Likewise.
4071
d57625a0
JR
40722004-01-28 Peter Runestig <peter@runestig.com>
4073
4074 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
4075
a64387ee 40762004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
4077
4078 * unexmacosx.c (unexec_copy): Do not copy more than was
4079 requested to prevent overwriting during unexec.
4080
eb37b8fd
JD
40812004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4082
ce38070a
JD
4083 * process.c (sigchld_handler): Add comment about not calling malloc.
4084
eb37b8fd
JD
4085 * process.h: Add extern to synch_process_termsig.
4086
a64387ee 40872004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 4088
da75761f
SM
4089 * macterm.c (make_mac_frame, make_mac_terminal_frame):
4090 Move setting of scroll bars from make_mac_frame to
4091 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 4092
d62a265d
RS
40932004-01-26 Richard M. Stallman <rms@gnu.org>
4094
4095 * search.c (Freplace_match): Handle nonexistent
4096 back-references properly.
4097
40982004-01-03 Richard M. Stallman <rms@gnu.org>
4099
4100 * window.c (decode_any_window): New function.
4101 (Fwindow_height, Fwindow_width, Fwindow_edges)
4102 (Fwindow_pixel_edges, Fwindow_inside_edges)
4103 (Fwindow_inside_pixel_edges): Use decode_any_window.
4104
ff236419
JD
41052004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4106
4107 * process.h: synch_process_termsig new variable.
4108
4109 * callproc.c: Define synch_process_termsig.
4110 (Fcall_process): Initiate synch_process_termsig to zero and
4111 check if non-zero and get signal name after subprocess has ended.
4112
4113 * process.c (sigchld_handler): Set synch_process_termsig
4114 if terminated by a signal. synch_process_death setting removed.
4115
4116 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
4117
41b867ea
AS
41182004-01-26 Andreas Schwab <schwab@suse.de>
4119
4120 * print.c (print_preprocess): Declare size as EMACS_INT to not
4121 lose bits.
4122 (print_object): Likewise.
4123 * alloc.c (Fpurecopy): Likewise.
4124
a08084ff
LT
41252004-01-25 Luc Teirlinck <teirllm@auburn.edu>
4126
4127 * window.c (Fwindow_minibuffer_p): Doc fix.
4128
b19ac475
JY
41292004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
4130
4131 * editfns.c (Fformat): Make both passes accept the same set of flags.
4132
fe905025
KH
41332004-01-23 Kenichi Handa <handa@m17n.org>
4134
4135 * fns.c (Fmd5): If OBJECT is a buffer different from the current
4136 one, set buffer to OBJECT temporarily.
4137
438fc6c0
SM
41382004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4139
455316e2
SM
4140 * keyboard.c (kbd_buffer_gcpro): Remove.
4141 (kbd_buffer_store_event, clear_event, Fdiscard_input)
4142 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
4143 Don't initialize and/or maintain the variable any more. It was made
4144 redundant by my commit of 2003-06-15.
4145
438fc6c0
SM
4146 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
4147
5335a4ee
JD
41482004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4149
4150 * lisp.h: Add undef DECL_ALIGN.
4151
dcdaeebc
SM
41522004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4153
4154 * process.c (wait_reading_process_input) [SYNC_INPUT]:
4155 Check interrupt_input_pending explicitly.
4156
4157 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
4158
4159 * keyboard.c (handle_async_input): New fun,
4160 extracted from input_available_signal.
4161 (input_available_signal, reinvoke_input_signal): Use it.
4162
9076a823
SM
41632004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
4164
d7107586
SM
4165 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
4166
4167 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
4168 manipulation macros for when tags are in the lower bits.
4169 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
4170 (DECL_ALIGN): New macro.
4171 (DEFUN): Use it.
4172
4173 * lisp.h [ENABLE_CHECKING]: Don't force union type.
4174
4175 * s/darwin.h (__attribute__): Remove outdated workaround.
4176
4177 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
4178
4179 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
4180 Don't check range of malloc address.
4181 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
4182
9076a823
SM
4183 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
4184
4185 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
4186
ba029065
KH
41872004-01-19 Kenichi Handa <handa@m17n.org>
4188
4189 * fontset.c (fontset_font_pattern): Fix previous change.
4190
7af0e8d7
MB
41912004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
4192
4193 * xdisp.c (Voverflow_newline_into_fringe)
4194 (move_it_in_display_line_to, redisplay_internal)
4195 (update_window_fringes, redisplay_window, display_line, window):
4196 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
4197 that it compiles without a window-system.
4198 * dispnew.c (direct_output_for_insert, update_window): Likewise.
4199
77a9cf69
KS
42002004-01-16 Kim F. Storm <storm@cua.dk>
4201
4202 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
4203
a64387ee 4204 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
4205 buffer_local_flags for indicate_buffer_boundaries.
4206 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
4207 default- variable for it.
4208
4209 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
4210 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 4211 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
4212 overflowing newlines into right fringe.
4213 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
4214 and indicate_bottom_line_p for buffer boundaries and scrolling.
4215 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
4216 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
4217 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
4218 and HOLLOW_SQUARE_BITMAP.
4219 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
4220 Add prototypes.
4221
4222 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
4223 instead of related indicator fields.
4224 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
4225 (direct_output_for_insert): Handle exact width lines like
4226 contined lines. Call update_window_fringes.
4227 (update_window): Call update_window_fringes.
4228 (scrolling_window): Don't skip desired rows with changed bitmaps.
4229 Check if fringe bitmaps changes when assigning scrolled rows.
4230
4231 * xdisp.c (Voverflow_newline_into_fringe): New variable.
4232 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
4233 (move_it_in_display_line_to): Overflow newline into fringe for
4234 rows that are exactly as wide as the window.
4235 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
4236 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
4237 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
4238 (fringe_bitmaps): Add new bitmaps.
4239 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
4240 Select proper bitmap for cursor in fringe when appropriate.
4241 Handle alignment of bitmap to top or bottom of row.
4242 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
4243 done by update_window_fringes.
4244 (update_window_fringes, draw_window_fringes): New functions.
4245 (redisplay_internal): Call update_window_fringes in case only
4246 cursor row is updated.
4247 (redisplay_window): Call update_window_fringes.
4248 Explicitly call draw_window_fringes if redisplay was done using
4249 the current matrix or the overlay arrow is in the window.
4250 (try_window_reusing_current_matrix): Mark scrolled rows for
4251 fringe update (to update buffer-boundaries / scrolling icons).
4252 (find_last_unchanged_at_beg_row): Handle exact width lines line
4253 continued lines.
4254 (display_line): Overflow newline into fringe for rows that are
4255 exactly as wide as the window. Don't append space for newline
d7107586 4256 in this case.
77a9cf69
KS
4257 (notice_overwritten_cursor): Explicitly clear cursor bitmap
4258 in fringe as if it had been overwritten.
4259 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 4260 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
4261 void-text-area-pointer as user options.
4262 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 4263
77a9cf69
KS
4264 * xterm.c (x_update_window_end): Call draw_window_fringes.
4265 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4266 in row instead of actually drawing fringe bitmaps.
4267 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4268 (x_draw_window_cursor): Draw cursor in fringe.
4269
4270 * w32term.c (x_update_window_end): Call draw_window_fringes.
4271 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4272 in row instead of actually drawing fringe bitmaps.
4273 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4274 (w32_draw_window_cursor): Draw cursor in fringe.
4275
4276 * macterm.c (x_update_window_end): Call draw_window_fringes.
4277 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4278 in row instead of actually drawing fringe bitmaps.
4279 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4280 (mac_draw_window_cursor): Draw cursor in fringe.
4281
a633a954
JD
42822004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4283
4284 * xterm.c (handle_one_xevent): Don't handle characters that are part
4285 of an old style (XLookupString) compose sequence.
4286
80460525
KH
42872004-01-15 Kenichi Handa <handa@m17n.org>
4288
4289 * search.c (Freplace_match): Use make_multibyte_string or
4290 make_unibyte_string according to the buffer multibyteness.
4291
7fc34f85
SM
42922004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
4293
4294 * alloc.c (struct interval_block, struct string_block)
4295 (struct symbol_block, struct marker_block, live_string_p)
4296 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
4297 Better preserve alignment for objects in blocks.
4298 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
4299
4300 * lread.c (defvar_per_buffer): Remove dead declaration.
4301
4302 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
4303 space size.
4304
66070bd1
JD
43052004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4306
4307 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
4308 if a key press should pop down. Only pop down if a key is pressed
4309 outside the menu/dialog.
4310 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
4311 popup_get_selection.
4312 (create_and_show_dialog): Pass 1 for down_on_keypress to
4313 popup_get_selection.
4314
de7515d6
JD
43152004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4316
4317 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
4318 BLOCK/UNBLOCK_INPUT.
4319
160b1b50
JD
43202004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4321
4322 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
4323 specified.
4324
3a9f36e6
KH
43252004-01-08 Kenichi Handa <handa@m17n.org>
4326
4327 * editfns.c (Fformat): Fix '&' to '&&'.
4328
3803eb32
AS
43292004-01-08 Andreas Schwab <schwab@suse.de>
4330
4331 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
4332 size if PSEUDOVECTOR_FLAG is set.
4333
9da88f37
KH
43342004-01-07 Kenichi Handa <handa@m17n.org>
4335
74ac5074
KH
4336 * charset.c (Fdeclare_equiv_charset): Fix docstring.
4337
9da88f37
KH
4338 * fontset.c (fontset_ref_via_base): Fix previous change.
4339
05faee07
KS
43402004-01-07 Kim F. Storm <storm@cua.dk>
4341
4342 * process.c (read_process_output): Only activate adaptive
4343 buffering if we read less than 256 bytes at a time.
4344
634910c8
KS
43452004-01-06 Kim F. Storm <storm@cua.dk>
4346
4347 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
4348 object and image object. Return glyph width and height.
4349 (mode_line_string, marginal_area_string): Ditto.
4350
4351 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4352 (marginal_area_string): Fix prototypes.
4353
4354 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 4355 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
4356 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
4357
4358 * keyboard.c (make_lispy_position): Use modified mode_line_string,
4359 buffer_posn_from_coords, and marginal_area_string functions to
4360 include both string object and image object in the lispy position.
4361 Also add actual glyph width and height to position.
4362 (read_key_sequence): Use real buffer position from mouse
4363 event to find keymap property even when click is in marginal area.
4364
4365 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
4366 mode_line_string and marginal_area_string functions to handle
4367 both string object and image object properties.
d7107586 4368
57951c2e
AS
43692004-01-06 Andreas Schwab <schwab@suse.de>
4370
4371 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
4372 character.
4373
181e6a61
AS
43742004-01-02 Andreas Schwab <schwab@suse.de>
4375
d7107586
SM
4376 * macterm.c (emacs_options, x_initialized, same_x_server):
4377 Remove unused (and duplicated) definitions.
181e6a61 4378
31e0fbdd
KS
43792004-01-02 Kim F. Storm <storm@cua.dk>
4380
4381 * process.h (struct Lisp_Process): New members for adaptive read
4382 buffering: adaptive_read_buffering, read_output_delay, and
4383 read_output_skip.
4384
4385 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
4386 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
4387 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
4388 (process_output_delay_count, process_output_skip): New vars.
4389 (Vprocess_adaptive_read_buffering): New variable.
4390 (make_process): Initialize adaptive read buffering members.
4391 (Fstart_process): Set adaptive_read_buffering member.
4392 (deactivate_process): Cleanup adaptive read buffering.
4393 (wait_reading_process_input): Temporarily omit delayed
4394 subprocesses from the set of file descriptors to read from;
4395 adjust the select timeout if we skipped any subprocesses.
4396 (read_process_output): Increase adaptive read buffering delay if
4397 we read less than a full buffer; reduce delay when we read a
4398 full buffer.
4399 (send_process): Simplify using local Lisp_Process var.
4400 Reset adaptive read buffering delay after write.
4401 (init_process): Initialize process_output_delay_count and
4402 process_output_skip.
4403 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
4404
68c6a789
JR
44052004-01-01 Jason Rumney <jasonr@gnu.org>
4406
d7107586 4407 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 4408
3f70fe82
LT
44092003-12-30 Luc Teirlinck <teirllm@auburn.edu>
4410
4411 * print.c (Ferror_message_string): Add hyperlink in the docstring
4412 to the definition of `signal' in the Elisp manual.
4413 * eval.c (Fsignal): Ditto.
4414
b6189c3b 44152003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
4416
4417 * fns.c (internal_equal): Return t for two NaN arguments.
4418
7abd90ea
RS
44192003-12-29 Richard M. Stallman <rms@gnu.org>
4420
4421 * data.c (store_symval_forwarding): Handle setting
4422 default-fill-column, etc., by changing the value in
4423 buffers that use the default.
4424
4425 * minibuf.c (Fset_minibuffer_window): Doc fix.
4426
4427 * fileio.c (choose_write_coding_system): Ignore auto_saving
4428 if using the visited file for auto saves.
4429 (Fwrite_region): Don't update SAVE_MODIFF
4430 if auto-saving in visited file.
4431
3e7cfcdc
KH
44322003-12-29 Kenichi Handa <handa@m17n.org>
4433
4434 * dispextern.h (face_font_available_p): Extern it.
4435
4436 * fontset.c (Voverriding_fontspec_alist): New variable.
4437 (lookup_overriding_fontspec): New function.
d7107586 4438 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
4439 (fontset_font_pattern): Likewise.
4440 (regulalize_fontname): New function.
4441 (Fset_fontset_font): Call regulalize_fontname.
4442 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
4443 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
4444 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
4445
4446 * xfaces.c (face_font_available_p): New function.
4447
7abd90ea
RS
44482003-12-28 Richard M. Stallman <rms@gnu.org>
4449
4450 * buffer.c (Fother_buffer): Don't crash if BUF is nil
4451 or if its name is nil.
4452
4453 * buffer.c (Fkill_buffer): Don't delete auto-save file
4454 if it's the same as the visited file.
4455
de1d1a40
LT
44562003-12-28 Luc Teirlinck <teirllm@auburn.edu>
4457
4458 * coding.c (Fcheck_coding_system): Doc fix.
4459
204fb75e
KS
44602003-12-28 Kim F. Storm <storm@cua.dk>
4461
4462 * Makefile.in (eval.o): Depend on dispextern.h.
4463
4464 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
4465 image glyph using image's ascent.
4466 (mode_line_string): Return image glyph as object clicked on.
4467 Adjust y0 for image glyph using image's ascent.
4468
4469 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
4470 (struct glyph): New members, ascent and descent. Used to save
4471 this glyph's ascent and descent, instead of having.
4472 (struct glyph): Declare member face_id using FACE_ID_BITS.
4473 (find_hot_spot): Add prototype.
4474
4475 * keyboard.c (Qimage): Remove extern (now in lisp.h).
4476 (QCmap): Declare extern.
4477 (make_lispy_position): When position is inside image hot-spot,
4478 use hot-spot element's id as posn element.
4479
4480 * lisp.h (IMAGEP): New macro to test for image object type.
4481 (Qimage): Declare extern.
4482
4483 * macfns.c (Qimage): Remove extern (now in lisp.h).
4484 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4485
4486 * macterm.c (Qface, Qmouse_face): Remove unused externs.
4487
4488 * w32fns.c (Qimage): Remove extern (now in lisp.h).
4489 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4490
4491 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
4492
4493 * w32term.c (Qface, Qmouse_face): Remove unused externs.
4494
4495 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
4496 pointer types.
4497 (Qrelative_width, Qalign_to): Remove unused variables.
4498 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
4499 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
4500 image maps.
d7107586 4501 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
4502 new dx and dy args.
4503 Remove buffer_only_p arg (always 0). Simplify code accordingly.
4504 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
4505 than row's ascent and height, to get sensible height on tall rows.
4506 (build_desired_tool_bar_string): Remove Qimage extern.
4507 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
4508 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
4509 image glyph is alone on the last line.
4510 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 4511 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 4512 (on_hot_spot_p): New function to check if position is inside an
d7107586 4513 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
4514 (find_hot_spot): New function to search for image hot-spot.
4515 (Flookup_image_map): New defun to search for image hot-spot.
4516 (define_frame_cursor1): New aux function to determine frame pointer.
4517 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4518 Handle `pointer' text property and :pointer image property to
4519 control frame pointer shape. Detect image hot-spots for pointer
4520 and help_echo properties. Use define_frame_cursor1.
4521 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 4522 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
4523 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
4524
4525 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
4526
4527 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
4528 (Qimage): Remove extern (now in lisp.h).
4529 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4530
4531 * xmenu.c (show_help_event): Remove unused code.
4532
4533 * xterm.c (Qface, Qmouse_face): Remove unused externs.
4534 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
4535 row's ascent and descent, to get a sensible height on tall rows.
4536
fc052137
LT
45372003-12-25 Luc Teirlinck <teirllm@auburn.edu>
4538
4539 * minibuf.c (Fcompleting_read): Undo previous change.
4540
a64387ee 45412003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
4542
4543 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
4544 Arguments GCPRO'ed in call to file name handler.
4545
56ffd194
TTN
45462003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
4547
4548 * termcap.c (tgetst1): Scan for "%pN"; if all
4549 N are continuous in [1,9], remove all "%pN".
4550
5202d23d
JD
45512003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4552
f26fab36
JD
4553 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
4554
5202d23d
JD
4555 * xfaces.c (lface_fully_specified_p): Take into account that
4556 MAC OS always have unspecified stipple.
4557
8babaa59
TTN
45582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4559
4560 * tparam.c (tparam1): Add handling for `%pN', which
4561 means use param N for the next substitution.
4562
2d176448
TTN
45632003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4564
4565 * xfaces.c (Fcolor_gray_p): Fix omission bug:
4566 In case `frame' is nil, consult the selected frame.
4567 (Fcolor_supported_p): Likewise.
4568
adb0708c
LT
45692003-12-23 Luc Teirlinck <teirllm@auburn.edu>
4570
000eeb15
LT
4571 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
4572 Doc fixes.
0dc72b11
LT
4573
4574 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
4575 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
4576 (Fread_from_minibuffer): Delete code moved into read_minibuf.
4577 Doc fix.
4578 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
4579 read_minibuf.
4580 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 4581 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 4582
2e4d132b
KH
45832003-12-03 Kenichi Handa <handa@m17n.org>
4584
4585 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
4586 encoding sequence.
4587
3999c705
KH
45882003-12-01 Kenichi Handa <handa@m17n.org>
4589
4590 * composite.c (syms_of_composite): Don't make the compostion hash
4591 table week.
4592
d344ecbb
LT
45932003-11-30 Luc Teirlinck <teirllm@auburn.edu>
4594
4595 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
4596 * textprop.c (Fget_char_property_and_overlay): New function.
4597 (syms_of_textprop): Defsubr it.
4598
03d6484e
JD
45992003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4600
019b1f0e
JD
4601 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
4602 to compile on terminal configuration.
4603
03d6484e
JD
4604 * fileio.c (Fread_file_name): Check use_file_dialog also before
4605 calling Fx_file_dialog.
4606
4607 * fns.c: use_file_dialog: New variable.
4608 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
4609
442d3fd0
KS
46102003-11-29 Kim F. Storm <storm@cua.dk>
4611
4612 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
4613 (syms_of_msdos): Don't intern and staticpro them.
4614
0f6a07a8
KS
46152003-11-27 Kim F. Storm <storm@cua.dk>
4616
4617 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
4618 coordinates relative to glyph at posn. If glyph is an image,
4619 return that as object at posn. Callers changed.
4620 (mode_line_string, marginal_area_string): Calculate and return
4621 pixel coordinates relative to glyph. Callers changed.
4622
4623 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4624 (marginal_area_string): Fix prototypes.
4625 (window_box_left_offset, window_box_right_offset): Add prototypes.
4626
4627 * frame.h (get_specified_cursor_type, get_window_cursor_type):
4628 Remove prototypes.
4629
4630 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
4631
4632 * keyboard.c (make_lispy_position): Add x and y coordinates
4633 relative to the current glyph as 7th element of position.
4634 If glyph is an image, return it in the object element.
4635 (read_key_sequence): Skip checks for keymap property in cases
4636 where POSN_STRING is not a string (e.g. an image).
4637
4638 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
4639 (Vshow_text_cursor_in_void): New variable.
4640 (glyph_to_pixel_coords): Don't use negative hpos.
4641 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
4642 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 4643 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
4644 (calc_pixel_width_or_height): New aux function, implementing
4645 pixel based artihmetic for glyph widths and heights.
4646 (produce_stretch_glyph): Use calc_pixel_width_or_height for
4647 :width, :height, :align-to, and :ascent, thus allowing these to
4648 be specified in pixels as well as multiples of characters.
4649 Don't produce stretch glyphs with zero width or height.
4650 (get_specified_cursor_type): Declare static.
4651 (get_window_cursor_type): Declare static. Add glyph arg to be
4652 able to know when cursor is on an image; always substitute
4653 hollow-box cursor for filled-box cursor on images, to avoid
4654 negative images and flicker when blinking the cursor.
4655 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
4656 (note_mode_line_or_margin_highlight): Use non-text cursor rather
4657 than vertical scroll-bar cursor in display margins.
4658 (note_mouse_highlight): Use non-text cursor rather than text
4659 cursor in fringes and over images in the text area.
4660 Use non-text cursor when mouse pointer is outside editable text,
4661 i.e. in the void after end-of-line or end-of-buffer; this was
4662 already done for W32, but is now standard for all systems --
4663 user can toggle show-text-cursor-in-void to get old behaviour.
4664 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
4665 Vdisplay_pixels_per_inch.
4666
00498bfc
AS
46672003-11-25 Andreas Schwab <schwab@suse.de>
4668
4669 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
4670 EMACS_INT to not lose bits.
4671 (Ffillarray): Don't set bits beyond the size of a bool vector.
4672
edaa824d
KS
46732003-11-25 Kim F. Storm <storm@cua.dk>
4674
4675 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
4676 define this defun on systems that cannot use stderr as lvalue.
4677
74d6f539
GM
46782003-11-24 Gerd Moellmann <gerd@gnu.org>
4679
4680 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
4681 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
4682 ld's default is incompatible with unexec.
4683
6a1ff3ba
KS
46842003-11-23 Kim F. Storm <storm@cua.dk>
4685
63dc7c6b
KS
4686 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
4687 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
4688 (Fforce_window_update): New defun.
4689 (syms_of_window): Defsubr it.
4690 (Fset_window_margins, Fset_window_fringes): Doc fix.
4691
6a1ff3ba
KS
4692 * print.c (Fredirect_debugging_output): New defun.
4693 (syms_of_print): Defsubr it.
4694
aef109b7
LT
46952003-11-22 Luc Teirlinck <teirllm@auburn.edu>
4696
4697 * fns.c (Fset_char_table_parent): Doc fix.
4698
6a1ff3ba 46992003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
4700
4701 * dispnew.c (buffer_posn_from_coords): Return actual row/column
4702 for glyph clicked on, rather than (unused) pixel positions.
4703 (mode_line_string, marginal_area_string): Change X and Y args to
4704 pointers for returning actual row/column for glyph clicked on.
4705 Simplify and optimize loops.
4706
aef109b7
LT
4707 * dispextern.h (mode_line_string, marginal_area_string):
4708 Update prototypes.
63ccbe21
KS
4709
4710 * keyboard.c (make_lispy_position): New function for generating
4711 mouse click positions from frame and pixel coordinates.
4712 Enhanced to return buffer position and actual row/column for
4713 events outside the text area using updated mode_line_string and
4714 marginal_area_string functions.
4715 Return left-fringe and right-fringe clicks as such, rather than
4716 clicks in text area.
4717 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
4718 pixel_to_glyph_coords, as we never use the results.
4719 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
4720 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
4721 Eliminate unused code in WHEEL_EVENT handling.
4722 (make_lispy_movement): Use make_lispy_position.
4723
4724 * window.c (coordinates_in_window): Remove redundant tests.
4725 Fix returned X pixel value for left-margin.
4726
4727 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
4728 mode_line_string and marginal_area_string parameters.
4729
a64387ee 47302003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 4731
d7107586
SM
4732 * w32.c (struct the_group, getgrgid): Add.
4733 * mac.c (struct my_group, getgrgid): Add.
aef109b7 4734
3dbf3426
LT
47352003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4736
4737 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
4738
cae8ddbb 47392003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 4740
d7107586
SM
4741 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
4742 include in call to file name handler. Optionally translate numeric
4743 UID and GID to strings. Update docstring.
4744 (directory_files_internal): Add parameter ID-FORMAT.
4745 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
4746 include in call to file name handler and call to
4747 directory_files_internal. Update Docstring.
4748 (Fdirectory_files): Add dummy parameter in call to
4749 directory_files_internal.
4750 * lisp.h (Qinteger): Add.
4751 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
4752 (Ffile_attributes): Add parameter.
4753 * data.c (Qinteger): Export.
cae8ddbb 4754
2550b848
LT
47552003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4756
3dbf3426 4757 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 4758
88380018
KS
47592003-11-19 Kim F. Storm <storm@cua.dk>
4760
4761 * xdisp.c (init_iterator): Initialize it->start to position
4762 before reseating (in case start position is invisible).
4763 (init_to_row_start): Set it->start to row-start.
4764 (redisplay_window): Accept optional_new_start if start position
4765 is invisible (in which case IT_CHARPOS overshoots PT).
4766 (display_line): Setup row->start from it->start (rather than
4767 it->current which is wrong if first char on line is invisible).
4768 When done, reseat it->start to it->current (= start of next row).
4769 (expose_area): Fix exposure of text area when first char (e.g. TAB)
4770 is only partially visible.
4771
4772 * dispextern.h (struct it): New member start.
4773
854c1a59
SM
47742003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4775
455316e2
SM
4776 * alloc.c (make_float, Fcons): Clear the markbit at init time.
4777 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
4778 of block_index outside of the macro call.
4779 (Fgarbage_collect): Remove null code.
4780
4781 * m/amdx86-64.h: Don't redefine XPNTR.
4782
854c1a59
SM
4783 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
4784 of VALMASK.
4785
4786 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
4787 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
4788 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
4789
4790 * lisp.h (VALMASK): Only define for non-union type.
4791 (MARKBIT): Remove.
4792 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
4793 (XTYPE): Define unconditionally.
4794 (XSETTYPE): Remove one more remnant.
4795 (EQ): Define differently for the union and non-union cases.
4796 (INTMASK): New bit mask.
4797 (struct Lisp_Marker): Move down to prepare for upcoming patch.
4798 (GC_EQ): Delegate to EQ.
4799
4800 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
4801
a0c6ef2d
JD
48022003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4803
4804 * xterm.c (x_window_to_scroll_bar): Move check of display to
4805 where window_id is compared.
4806
859492c4
KS
48072003-11-17 Kim F. Storm <storm@cua.dk>
4808
4809 * dispextern.h (struct it): New member first_vpos.
4810
4811 * xdisp.c (start_display): Set it->first_vpos.
4812 (try_window_id): Use first_vpos to start display in first _text_
4813 line if no reusable lines at start of window with header line.
4814
810f2256
JD
48152003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4816
7c402969 4817 * w32fns.c (XPutPixel):
854c1a59
SM
4818 * w32bdf.c (w32_init_bdf_font):
4819 * sunfns.c (sel_read):
4820 * process.c (Fmake_network_process):
4821 * frame.c (store_frame_param):
4822 * fontset.c (Fset_fontset_font):
4823 * emacs.c (shut_down_emacs):
a64387ee 4824 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 4825
a32e9bfd
JD
4826 * config.in: Regenerate.
4827
810f2256
JD
4828 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4829 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4830 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
4831 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
4832 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
4833
4834 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
4835
4836 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
4837 (XTmouse_position, handle_one_xevent): Pass Display* to
4838 x_window_to_scroll_bar.
4839 (x_window_to_scroll_bar): Take a Display* argument.
4840 Check that display for frame is equal to Display* argument.
854c1a59 4841 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
4842 x_display_info_for_display instead. Use Display in xev instead
4843 of GDK_DISPLAY.
4844 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 4845 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
4846 (x_connection_closed): Call xg_display_close for GTK.
4847 (x_term_init): Call xg_display_open for additional displays.
4848 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
4849 for GTK.
4850
4851 * xmenu.c (single_menu_item, mouse_position_for_popup)
4852 (x_activate_menubar): Formatting adjustments.
4853
4854 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
4855 adjustments.
4856
4857 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
4858 (xg_display_close, xg_create_default_cursor)
4859 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
4860 handling.
854c1a59
SM
4861 (xg_left_ptr_cursor): Remove.
4862 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
4863 cursor here.
4864 (xg_win_to_widget): Take Display* argument, call
4865 gdk_xid_table_lookup_for_display.
4866 (xg_create_frame_widgets, xg_get_file_name, create_menus)
4867 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
4868 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
4869 in FRAME_X_DISPLAY_INFO.
4870 (xg_get_scroll_id_for_window): Take Display* argument.
4871 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 4872 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
4873
4874 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
4875 Display* argument also. Declare xg_display_open,
4876 xg_display_close, xg_create_default_cursor.
4877
0b03cc78
JD
48782003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4879
4880 * xterm.c (x_detect_focus_change): Do not change focus frame for
4881 Enter/LeaveNotify if the current focus frame has explicit focus.
4882
77e688fa
KS
48832003-11-14 Kim F. Storm <storm@cua.dk>
4884
4885 * dispnew.c (update_text_area): Fix redisplay error when hscroll
4886 is active and first glyph is only partially visible.
854c1a59 4887
dd429b03
KH
48882003-11-13 Kenichi Handa <handa@m17n.org>
4889
4890 * xdisp.c (select_frame_for_redisplay): New function.
4891 (redisplay_internal): Record also selected_frame for
4892 unwind_redisplay. Call select_frame_for_redisplay before
4893 redrawing each frame.
4894 (unwind_redisplay): Argument changed to a cons.
4895
6d9266f4
LT
48962003-11-12 Luc Teirlinck <teirllm@auburn.edu>
4897
4898 * fns.c (Fstring_to_multibyte): Doc fix.
4899
80060eb3
KH
49002003-11-11 Kenichi Handa <handa@m17n.org>
4901
4902 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4903
74305183
JD
49042003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4905
4906 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4907 program specified positions.
4908
cfda993e
JD
49092003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4910
4911 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
4912
df211069
KH
49132003-11-08 Kenichi Handa <handa@m17n.org>
4914
4915 * Makefile.in (lisp): Add kannada.el.
4916 (shortlisp): Likewise.
4917
4307d534
KH
49182003-11-07 Kenichi Handa <handa@m17n.org>
4919
854c1a59
SM
4920 * coding.c (coding_allocate_composition_data):
4921 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
4922 (coding_restore_composition): Detect invalid composition data.
4923 Give Fstring and Fvector a Lispy integer, not C int.
4924
854c1a59
SM
49252003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
4926
4927 * floatfns.c (Flogb): Don't use VALMASK.
4928
4929 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
4930 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
4931
4932 * lisp.h (XINT): Move the cast to clarify what is going on.
4933 (GCTYPEMASK, XSETTYPE): Remove.
4934 (XGCTYPE): Make it an alias of XTYPE.
4935
d04103a1
JD
49362003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4937
4938 * xterm.c (x_term_init): Fix formatting.
4939
da18b5ac
JD
49402003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4941
4942 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
4943 and xg_did_tearoff.
4944
4945 * gtkutil.c: Remove variable xg_did_tearoff.
4946 (xg_have_tear_offs): New function.
4947 (tearoff_remove): Just decrease xg_detached_menus.
4948 (tearoff_activate): Increase xg_detached_menus and call
4949 tearoff_remove when tearoff is removed.
854c1a59 4950 (xg_keep_popup): Remove function.
da18b5ac
JD
4951 (create_menus): Give add_tearoff_p as argument to recursive
4952 call to create_menus.
4953 (xg_create_widget): Use variables instead of multiple
4954 strcmp. Tell create_menus to create tear off only for
4955 menu bar menus.
4956 (xg_update_menubar): Change title for a detached menu also.
4957 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
4958 of deep_p.
4959 (xg_initialize): Initialize xg_detached_menus, remove
4960 initialization of xg_did_tearoff.
4961
4962 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
4963 xg_have_tear_offs returns non-zero.
4964 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
4965 call to xg_keep_popup.
4966
64d4923e
AC
49672003-11-01 Andrew Choi <akochoi@shaw.ca>
4968
4969 * macterm.c (XTread_socket): Handle menubar selection and grow
4970 window only for mouseDown events.
854c1a59 4971
6cc8bc07
JD
49722003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4973
4974 * xterm.c (x_term_init): For GTK part, increase x_initialized
4975 to check for more than one display. Use error instead of return 0.
4976
043131c4
AC
49772003-10-31 Andrew Choi <akochoi@shaw.ca>
4978
854c1a59 4979 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
4980 (copy_dysymtab): Call it.
4981
bdda99a1
LT
49822003-10-31 Luc Teirlinck <teirllm@auburn.edu>
4983
4984 * eval.c (Fdefvaralias): Doc fix.
4985
800f42ff 49862003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
4987
4988 * data.c (Fsetplist): Doc fix.
4989
ef35b389
LK
49902003-10-14 Lute Kamstra <lute@gnu.org>
4991
4992 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 4993
ef35b389 49942003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 4995
07107abc
KS
4996 * window.c (Fset_window_margins): Simplify arg checking.
4997
f7005886
RS
49982003-10-13 Richard M. Stallman <rms@gnu.org>
4999
5000 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5001 (print_partial_compiled_pattern): Replace assert with a printout.
5002 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5003
5004 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5005
5006 * window.c (Fset_window_margins): Allow only integers as args.
5007 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5008 Doc fixes.
5009
9c0c2af5
LK
50102003-10-13 Lute Kamstra <lute@gnu.org>
5011
5012 * window.c (Fset_window_fringes): Elaborate docstring.
5013
3f080e4e
AC
50142003-10-12 Andrew Choi <akochoi@shaw.ca>
5015
854c1a59 5016 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 5017
3f080e4e
AC
5018 * s/darwin.h (GC_MARK_STACK): Define.
5019
0aa513ed
JD
50202003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5021
5022 * window.c (shrink_windows): New function.
5023 (size_window): Call shrink_windows to calculate window sizes when
5024 shrinking frame with more than one window.
5025
6aa8858a
KS
50262003-10-12 Kim F. Storm <storm@cua.dk>
5027
5028 * xdisp.c (compute_fringe_widths): Doc fix.
5029
c2164d91
KH
50302003-10-08 Kenichi Handa <handa@m17n.org>
5031
854c1a59 5032 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 5033
f82ac129
KH
50342003-10-07 Kenichi Handa <handa@m17n.org>
5035
5036 * coding.c (Qcoding_system_define_form): New variable.
5037 (syms_of_coding): Intern and staticpro it.
5038 (Fcheck_coding_system): Try to autoload the definition of
5039 CODING-SYSTEM.
5040
9296c947
LT
50412003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5042
5043 * fns.c (Frequire): Doc fix.
5044
c1f0671a
JD
50452003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5046
3d8c3826
JD
5047 * xfns.c (Fx_send_client_event): New function as a base for
5048 manipulating extended window manager hints.
6dc15d98 5049 (Fx_send_client_event): Remove unused variable s.
3d8c3826 5050
068ae0fd
JD
5051 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5052 that function is removed.
5053
5054 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5055 x/y_pixels_outer_diff.
5056 (x_check_expected_move): Calculate move_offset_left/top.
5057
5058 * xterm.h (struct x_output): New members: move_offset_top/left.
5059
854c1a59 5060 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
5061 call x_set_offset directly.
5062
5063 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
5064
96f09305
JD
5065 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
5066
5067 * xterm.c (x_delete_display): Free font names and font_encoder
5068 in dpyinfo->font_table.
5069
854c1a59
SM
5070 * xfns.c (Fx_close_connection): Only call XFreeFont here.
5071 Move xfree of font names to x_delete_display.
96f09305 5072
c1f0671a
JD
5073 * xterm.h (struct x_display_info): New member, wm_type.
5074 (struct x_output): New members, expected_top/left and
5075 check_expected_move.
5076
5077 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
5078 is received.
854c1a59
SM
5079 (handle_one_xevent): Rename x_check_expected_move from
5080 x_check_fullscreen_move.
c1f0671a
JD
5081 (x_set_offset): Only add WM decoration sizes to modified_top/left
5082 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 5083 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
5084 Removed fullscreen specific code. Use check_expected_move,
5085 expected_left/top instead. Also, set wm_type.
5086 (x_term_init): Initialize wm_type to unknown.
5087
5088 * frame.c (x_fullscreen_move): Remove addition of WM decoration
5089 sizes to move_x/y.
5090
be2fdba9
KH
50912003-10-03 Kenichi Handa <handa@m17n.org>
5092
5093 * macterm.c (x_load_font): Clear all members of FONTP before start
5094 filling them.
5095
50962003-10-02 Kenichi Handa <handa@m17n.org>
5097
5098 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
5099 before calling find_ccl_program_func. Call find_ccl_program_func
5100 only when fontp->font_encoder is not NULL.
5101
5102 * xterm.c (x_load_font): Clear all members of FONTP before start
5103 filling them.
5104
26a6e439
JPW
51052003-10-03 John Paul Wallington <jpw@gnu.org>
5106
5107 * keymap.c (map_keymap): Don't abort when binding is a vector.
5108
0d4c2dc2
JR
51092003-10-02 Jason Rumney <jasonr@gnu.org>
5110
854c1a59
SM
5111 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
5112 Sync dependencies with Makefile.in.
a63cf46f
JR
5113 (alloca.o): Remove.
5114
0d4c2dc2
JR
5115 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
5116 filling them.
5117
5118 * w32bdf.c (w32_load_bdf_font): Likewise.
5119
ab8f7d5c
RS
51202003-09-30 Richard M. Stallman <rms@gnu.org>
5121
5122 * term.c (set_tty_color_mode): Calculate current_mode_spec
5123 regardless of value of VAL.
5124
854c1a59 5125 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
5126 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
5127 Handle over_used when splitting UNDER.
5128
a64387ee 51292003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
5130
5131 * regex.c (regex_compile): Free the stack when returning from function.
5132
3413f972
KH
51332003-09-28 Kenichi Handa <handa@m17n.org>
5134
5135 * fontset.c (Finternal_char_font): Change return value to
5136 cons (FONT-NAME . GLYPH-CODE).
5137
a6eeaa81 51382003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
5139
5140 * term.c (tty_setup_colors): Treat any negative argument as -1.
5141
f98ddc99
KH
51422003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
5143
5144 * process.c (send_process): Delete unused temp_buf.
5145
66c8f1a8
DL
51462003-09-26 Dave Love <fx@gnu.org>
5147
5148 * xterm.c (x_bitmap_mask): Declare.
5149
ca716c26
DL
51502003-09-25 Dave Love <fx@gnu.org>
5151
5152 * Makefile.in (fns.o): Depend on md5.h.
5153
fbe57420
KS
51542003-09-25 Kim F. Storm <storm@cua.dk>
5155
5156 * window.c (set_window_buffer): Fix redisplay problems when
5157 switching between buffers with different display margin widths.
5158
ef6ae4ff
KS
51592003-09-23 Kim F. Storm <storm@cua.dk>
5160
5161 * process.c (set_socket_option): Fix :bindtodevice option.
5162 (Fset_network_process_option): Update process contact list when
5163 setting option succeeds.
5164 (Fmake_network_process): Doc fix.
5165
68e03c1c
DL
51662003-09-23 Dave Love <fx@gnu.org>
5167
7146d1c1 5168 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 5169
a6eeaa81 51702003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
5171
5172 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
5173 color mode is an integer number (it could be -1).
5174
8fe7d8c8
RS
51752003-09-22 Richard M. Stallman <rms@gnu.org>
5176
5177 * intervals.c (graft_intervals_into_buffer): Correct the main loop
5178 in the case where OVER is longer than UNDER.
5179
2f71b5ea
MY
51802003-09-22 Masatake YAMATO <jet@gyve.org>
5181
7146d1c1 5182 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 5183 `vertical_type'.
7146d1c1 5184
0c4da023
KS
51852003-09-21 Kim F. Storm <storm@cua.dk>
5186
5187 * frame.c (Vdefault_frame_scroll_bars): New variable.
5188 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
5189 (syms_of_frame): DEFVAR_LISP it, and initialize according to
5190 window-system default scroll bar position.
5191
b648413b
KS
5192 * window.c (Fwindow_scroll_bars): Doc fix.
5193
8f5b9e34
JD
51942003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5195
854c1a59 5196 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 5197
b0f23edf
RS
51982003-09-19 Richard M. Stallman <rms@gnu.org>
5199
5200 * atimer.h: Don't include lisp.h.
5201 (P_): Define it here (as well as elsewhere).
5202
5203 * print.c (Fprin1_to_string): Move the PRINTPREPARE
5204 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
5205
5206 * data.c (Fvariable_binding_locus): New function.
5207 (syms_of_data): defsubr it.
5208 (Flocal_variable_p): Delete duplicate call to indirect_variable.
5209
e1283999
DL
52102003-09-18 Dave Love <fx@gnu.org>
5211
ad5f3636
DL
5212 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
5213
e1283999
DL
5214 * process.c (Fnetwork_interface_info): Fix type error.
5215 (Fnetwork_interface_list): Doc fix.
5216 (read_process_output, read_process_output): Delete unused var.
5217
b8c7fd71
KS
52182003-09-17 Kim F. Storm <storm@cua.dk>
5219
5220 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
5221 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
5222 (Fnetwork_interface_info): Check that ifreq struct has required
5223 fields before accessing them; this requires that those fields are
5224 defined as macros, which may be too restrictive on some platforms,
5225 but it is better than failing on other platforms.
5226 (syms_of_process): Only defsubr above fns when included.
5227
11e0a411
DL
52282003-09-17 Dave Love <fx@gnu.org>
5229
5230 * unexalpha.c: Don't include varargs.h.
5231
e9c50801
KS
52322003-09-17 Kim F. Storm <storm@cua.dk>
5233
5234 * process.c (Fset_process_sentinel): Add sentinel to childp plist
5235 for network process.
5236 (socket_options): Add `:' prefix to option names. Add optbit field.
5237 (set_socket_option): Remove no_error arg and special handling of s < 0.
5238 Return 1<<optbit for known option, 0 for unknown.
5239 Do not interpret 0 as false for boolean option (only nil).
5240 Pass failed option and value to report_file_error.
7146d1c1 5241 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
5242 (Fset_network_process_option): New function to set just one option.
5243 (Fmake_network_process): Allow :coding arg to be a cons.
5244 Allow :server arg to be an integer specifying backlog size.
5245 Remove :options arg, and allow options to be specified directly
5246 as :KEY, VALUE pairs. Parse these options before binding socket.
5247 As before, :reuseaddr t is default for a server process, but this
5248 can now be disabled by specifying :reuseaddr nil.
5249 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
5250 (init_process): Availability of network options is now checked with
5251 simpler syntax (featurep 'make-network-process :OPTION); use loop to
5252 setup features.
5253 (syms_of_process): Fix defsubr's for the replaced functions.
5254
a0fc3644
DL
52552003-09-16 Dave Love <fx@gnu.org>
5256
5257 * Makefile.in: Depend on coding.h.
5258
6df2a645
KS
52592003-09-14 Kim F. Storm <storm@cua.dk>
5260
5261 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
5262 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
5263 (syms_of_process): Defsubr them.
5264
5265 * config.in: Regenerate.
7146d1c1
SM
5266
52672003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5268
5269 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
5270 * m/news-r6.h (XUNMARK): Remove.
5271 * m/mips.h (XUNMARK): Remove.
5272 * m/mips-siemens.h (XUNMARK): Remove.
5273 * m/iris4d.h (XUNMARK): Remove.
5274 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
5275
0930c1a1
SM
52762003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5277
31003b9e
SM
5278 * lisp.h (VALBITS): Don't remove 1 for the markbit.
5279 (union Lisp_Object): Use unsigned int for types. Remove markbit.
5280 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
5281 (XTYPE): Use unsigned right-shift.
5282 (XMARKBIT, XMARK, XUNMARK): Remove.
5283
0930c1a1
SM
5284 * alloc.c (init_intervals, init_symbol, init_marker):
5285 Don't preallocate anything.
5286 (Fgarbage_collect, mark_object): Ignore the markbit.
5287
5288 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
5289
19bb0fcd 52902003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
5291
5292 * xdisp.c (pint2hrstr): New function.
5293 (decode_mode_spec): Add `%i' and `%I' specs.
5294 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
5295 for `mode-line-format'.
5296
03bb6a06
AS
52972003-09-07 Andreas Schwab <schwab@suse.de>
5298
5299 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
5300 avoid warning.
5301
a6eeaa81 53022003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 5303
0930c1a1 5304 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 5305
ed159bbf
KS
53062003-09-03 Kim F. Storm <storm@cua.dk>
5307
5308 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
5309 change (superseded by 2002-08-30 change); the default blink-off
5310 cursor is now again "no cursor".
5311
fe64a394
JR
53122003-09-01 Jason Rumney <jasonr@gnu.org>
5313
5314 * makefile.w32-in (alloca.o): Remove.
5315 (coding.o): Depend on intervals.h
5316 (emacs.o, bytecode.o): Depend on window.h
5317
c0175e24
DL
53182003-09-01 Dave Love <fx@gnu.org>
5319
5320 * Makefile.in (alloca.o): Remove commands.
5321 (coding.o): Depend on intervals.h composite.h window.h.
5322 (emacs.o): Depend on window.h keyboard.h keymap.h.
5323 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
5324 (bytecode.o): Depend on window.h.
5325
a24d4cb2
JR
53262003-08-31 Jason Rumney <jasonr@gnu.org>
5327
4bc2315e
JR
5328 * w32term.c (w32_per_char_metric): Allow cached metrics to be
5329 returned even when font_type is unknown.
5330
a24d4cb2
JR
5331 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
5332
9d35adc7
JD
53332003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5334
5335 * xterm.c (x_term_init): Initialize new fields in x_display_info.
5336
5337 * xterm.h (struct x_display_info): Add red/green/blue_bits and
5338 *_offset.
5339
5340 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
5341 calculate pixel value.
5342
6f68b035
GM
53432003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
5344
0930c1a1
SM
5345 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
5346 Don't tell redisplay display is accurate when it's actually been
5347 paused for pending input.
6f68b035 5348
4828b4d7
RS
53492003-08-29 Richard M. Stallman <rms@gnu.org>
5350
5351 * dispnew.c (adjust_glyph_matrix): Call window_box
5352 whenever W is nonzero.
5353
5354 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5355 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 5356 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
5357 Use indirect_variable to trace thru variable aliases.
5358
5359 * config.in: Updated.
5360
5361 * callint.c (Fcall_interactively): Save and restore
5362 Vthis_command, Vthis_original_command, real_this_command,
5363 and current_kboard->Vlast_command.
5364
5365 * abbrev.c (Fexpand_abbrev): Insert before deleting.
5366
e019878d
GM
53672003-08-29 Gerd Moellmann <gerd@gnu.org>
5368
5369 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
5370
85478bc6
KH
53712003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
5372
0930c1a1 5373 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
5374 (decode_coding_sjis_big5): Likewise.
5375
07ce82d3
JR
53762003-08-27 Jason Rumney <jasonr@gnu.org>
5377
d3703de3
JR
5378 * w32.c (sys_pipe): Protect against file descriptor overflow.
5379
ee4a01d1
JR
5380 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
5381
07ce82d3
JR
5382 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
5383
a64387ee 53842003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
5385
5386 * xfns.c (Vgtk_version_string): New variable.
5387 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
5388
a6eeaa81 53892003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 5390
0930c1a1 5391 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 5392
5459e42a
EZ
5393 * Makefile.in (msdos.o): Depend on intervals.h.
5394
0930c1a1 5395 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 5396
231d6cfb
JD
53972003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5398
5399 * xterm.h (struct x_display_info): New fields: client_leader_window
5400 and Xatom_wm_client_leader.
5401
5402 * xterm.c (x_initialize): Move call to x_session_initialize to ...
5403 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
5404
5405 * xsmfns.c (create_client_leader_window): New function.
5406 (x_session_initialize): Call create_client_leader_window, take
5407 dpyinfo as argument.
5408
5409 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
5410
5411 * Makefile.in (xsmfns.o): Add more depenedencies.
5412
afa88464
DL
54132003-08-21 Dave Love <fx@gnu.org>
5414
5415 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
5416
f730033e
KH
54172003-08-21 Kenichi Handa <handa@m17n.org>
5418
5419 * term.c (term_init): Fix previous change; don't rely on the
5420 length of `buffer' if TERMINFO is defined.
5421
6dca786c
DL
54222003-08-20 Dave Love <fx@gnu.org>
5423
5424 * atimer.h: Include lisp.h.
5425
5426 * lisp.h (EMACS_LISP_H): New.
5427 (popup_activated_flag): Don't declare.
5428
5429 * alloca.c: Some merging with gnulib. Change logic and doc
5430 concerning (x)malloc/(x)free -- no longer Emacs-specific.
5431 [DO_BLOCK_INPUT]: Don't include lisp.h.
5432 (xmalloc, xfree): Declare.
5433 (malloc): Don't declare.
5434
0930c1a1 5435 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
5436 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
5437 atimer.h, blockinput.h.
5438
5439 * alloc.c (lisp_align_malloc): Change type of `aligned'.
5440
5441 * alloca.s: Removed.
5442
3a06a6d9
RS
54432003-08-19 Gerd Moellmann <gerd@gnu.org>
5444
5445 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
5446 use -lncurses.
5447
5448 * term.c (term_init): Use a buffer of size 4096 for tgetent since
5449 FreeBSD returns something longer than 2044. Abort if the end of
5450 the buffer is overwritten.
5451
27eeee55
MB
54522003-08-19 Miles Bader <miles@gnu.org>
5453
5454 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
5455
2f297815
GM
54562003-08-19 Gerd Moellmann <gerd@gnu.org>
5457
f4446bbf
GM
5458 * alloc.c (lisp_align_malloc): Check for memory full when
5459 allocating ablocks, which also avoids freeing a pointer into an
5460 ablocks structure.
5461
5462 * puresize.h (BASE_PURESIZE): Increase to 1100000.
5463
0930c1a1 5464 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 5465
0e7d7aae
RS
54662003-08-16 Richard M. Stallman <rms@gnu.org>
5467
5468 * editfns.c (Fencode_time): Doc fix.
5469
54702003-08-16 David Ponce <david@dponce.com>
5471
5472 * fileio.c (Fwrite_region): Fix conditional expression to issue
5473 the right message.
5474
b6189c3b 54752003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
5476
5477 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 5478 Set default value to 1.
0e7d7aae 5479
5d551295
KH
54802003-08-15 Kenichi Handa <handa@m17n.org>
5481
5482 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
5483 what autoscaled.
5484 (best_matching_font): Once we find a better scalable font, set
5485 non_scalable_has_exact_height_p to 1.
5486 (try_font_list): Call try_alternative_families to try any family
5487 with the given registry.
5488
1661e56b
AS
54892003-08-09 Andreas Schwab <schwab@suse.de>
5490
f29181dc
AS
5491 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
5492
1661e56b
AS
5493 * print.c (print_string): Fix printing of multibyte string with
5494 nontrivial printcharfun.
5495
465aa50a
JD
54962003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5497
5498 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
5499
5500 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
5501
e430e5ba
KH
55022003-07-31 Kenichi Handa <handa@m17n.org>
5503
5504 * process.c (read_process_output): Return the actually read bytes
5505 instead of the result of decoding.
5506
97e7188e
KH
55072003-07-31 Kenichi Handa <handa@m17n.org>
5508
5509 * xterm.h (struct x_bitmap_record): New member have_mask.
5510
5511 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
5512 to 0.
5513 (x_create_bitmap_from_file): Likewise.
5514 (x_destroy_bitmap): Check have_mask member before freeing a mask.
5515 (x_destroy_all_bitmaps): Likewise.
5516 (x_create_bitmap_mask): Set have_mask member to 1.
5517
b53094d6
RS
55182003-07-30 Richard M. Stallman <rms@gnu.org>
5519
5520 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
5521
631f2082
JD
55222003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5523
5524 * gtkutil.c (xg_mark_data): Update calls to mark_object.
5525
c855f2ca
RS
55262003-07-29 Richard M. Stallman <rms@gnu.org>
5527
5528 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
5529 Conditionalize XIM code on HAVE_XIM.
5530
5531 * fns.c (Fclear_string): New function.
5532 (syms_of_fns): defsubr it.
5533
b6189c3b 55342003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 5535
0930c1a1 5536 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 5537
29ea8ae9
SM
55382003-07-22 Stefan Monnier <monnier@cs.yale.edu>
5539
5540 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
5541
5542 * buffer.c (delete_all_overlays): New function.
5543 * buffer.h (delete_all_overlays): Declare.
5544 * coding.c (run_pre_post_conversion_on_str):
5545 * print.c (temp_output_buffer_setup):
5546 * fileio.c (Finsert_file_contents):
5547 * minibuf.c (get_minibuffer): Use it.
5548
1dd7ccf2
AC
55492003-07-22 Andrew Choi <akochoi@shaw.ca>
5550
5551 * unexmacosx.c (unexec_regions_sort_compare):
5552 (unexec_regions_merge): New functions. Sort and merge unexec
5553 regions before dumping them.
5554
f57bd967
DL
55552003-07-22 Dave Love <fx@gnu.org>
5556
5557 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
5558
7cdee936
SM
55592003-07-21 Stefan Monnier <monnier@cs.yale.edu>
5560
5561 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
5562 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
5563 MARKBIT as the gcmarkbit for strings.
5564
e50886d3
RS
55652003-07-21 Richard M. Stallman <rms@gnu.org>
5566
5567 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
5568
29ea8ae9 5569 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
5570 (syms_of_fns): Corresponding change.
5571
5572 * alloc.c (syms_of_alloc): Doc fixes.
5573
55742003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
5575
5576 * s/netbsd.h: Use -Wl syntax.
5577
fdc39b59
RS
55782003-07-17 Richard M. Stallman <rms@gnu.org>
5579
5580 * xterm.c (xim_initialize): Redo 6/24 change.
5581
9c53385f
SM
55822003-07-15 Stefan Monnier <monnier@cs.yale.edu>
5583
5584 * buffer.c (copy_overlays): Use EMACS_INT for positions.
5585 (Fswitch_to_buffer): Don't signal an error when switching to the same
5586 buffer in a dedicated window.
5587
5588 * alloc.c: Use bitmaps for cons, as was done for floats.
5589 (init_float, init_cons): Let the normal code allocate the first block.
5590 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
5591 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
5592 New macros.
5593 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
5594 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
5595 (live_cons_p): Check the pointer is not past the `conses' array.
5596 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
5597 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
5598 (survives_gc_p): Use CONS_MARKED_P and simplify.
5599 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
5600
dde13196
PE
56012003-07-13 Paul Eggert <eggert@twinsun.com>
5602
5603 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
5604 puts it into BSS instead, at least on Solaris 8 and 9.
5605 This is a valid optimization, and it may occur on other platforms,
5606 so Emacs should not assume that initializing a static variable to
5607 zero puts it into data.
5608 * alloc.c (pure, staticvec):
5609 Initialize these arrays to nonzero, so that they're not
5610 put into BSS by that optimization.
5611
a801bc34
SM
56122003-07-13 Stefan Monnier <monnier@cs.yale.edu>
5613
5614 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
5615 (lisp_align_malloc): Use posix_memalign is available.
5616 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
5617 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
5618 for consistency. Update users.
5619
0c8b2afa
RS
56202003-07-13 Richard M. Stallman <rms@gnu.org>
5621
5622 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
5623
668c2ab0
JB
56242003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
5625
5626 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
5627 and use the Gtk+ function gtk_window_icon_from_file if available.
5628
5629 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
5630 handle mask of bitmaps.
5631 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
5632 mask property.
5633 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
5634
5635 * xterm.h (xg_set_icon): New function.
5636
800bebe3
RS
56372003-07-12 Paul Eggert <eggert@twinsun.com>
5638
5639 * unexelf.c (unexec): Consider a section to precede the .bss
5640 section if its addresses overlap that of .bss.
5641
69e38995
RS
56422003-07-12 Richard M. Stallman <rms@gnu.org>
5643
5644 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
5645
5646 * config.in (HAVE_CRTIN): Add #undef.
5647 (INLINE): Really inline only if OPTIMIZE is defined.
5648
5649 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
5650 END_FILES_1.
5651 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 5652 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
5653
5654 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
5655 (TERMINFO): Define.
5656 (LIBS_TERMCAP): Define.
5657 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
5658
5659 * xfns.c: Include libpng/png.h instead of png.h.
5660
f1d0c238
AS
56612003-07-11 Andreas Schwab <schwab@suse.de>
5662
5663 * buffer.c (modify_overlay): Update prototype.
5664 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
5665 Likewise.
5666
5f6bf5fe
SM
56672003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5668
5669 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
5670 (struct interval): Move to intervals.h.
5671 (struct Lisp_Marker): Use EMACS_INT for position info.
5672 (forward_point): Remove prototype of defunct function.
5673 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
5674 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
5675 (syms_of_textprop, set_text_properties): Remove prototypes that are
5676 already in intervals.h.
5677
5678 * intervals.h (struct interval): Move from lisp.h.
5679 Use EMACS_INT for position and size info.
5680
5681 * coding.c: Include intervals.h for Fset_text_properties.
5682
5683 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5684 position and length information.
5685
2765b457
SM
56862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5687
5688 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5689 position and length information.
5690
2410d73a
SM
56912003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5692
5693 Change overlays_after and overlays_before so the overlays themselves
5694 are linked into lists, rather than using cons cells. After all each
5695 Lisp_Misc already occupies 5 words, so we can add a `next' field to
5696 Lisp_Overlay for free and save up one cons cell per overlay (not
5697 to mention one indirection when traversing the list of overlay).
5698
5699 * lisp.h (struct Lisp_Overlay): New field `next'.
5700
5701 * buffer.h (struct buffer): Change overlays_before and overlays_after
5702 from Lisp lists of overlays to pointers to overlays.
5703
5704 * buffer.c (overlay_strings, recenter_overlay_lists):
5705 Fix typo in eassert in last commit.
5706 (unchain_overlay): New function.
5707 (add_overlay_mod_hooklist): Use AREF.
5708 (copy_overlays, reset_buffer, overlays_at, overlays_in)
5709 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
5710 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
5711 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
5712 (report_overlay_modification, evaporate_overlays, init_buffer_once):
5713 Adjust to new type of overlays_(before|after).
5714
5715 * alloc.c (mark_object): Mark the new `next' field of overlays.
5716 (mark_buffer): Manually mark the overlays_(after|before) fields.
5717
5718 * coding.c (run_pre_post_conversion_on_str):
5719 * editfns.c (overlays_around):
5720 * xdisp.c (load_overlay_strings):
5721 * fileio.c (Finsert_file_contents):
5722 * indent.c (current_column):
5723 * insdel.c (signal_before_change, signal_after_change):
5724 * intervals.c (set_point_both):
5725 * print.c (temp_output_buffer_setup): Use new type for
5726 overlays_(before|after).
5727
04812929
SM
57282003-07-08 Stefan Monnier <monnier@cs.yale.edu>
5729
5730 * buffer.c (report_overlay_modification): Don't run hooks while
5731 traversing the list of overlays.
5732
5733 * buffer.h (struct buffer): Use an int for overlay_center.
5734 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5735 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5736
5737 * buffer.c (reset_buffer, recenter_overlay_lists)
5738 (adjust_overlays_for_insert, adjust_overlays_for_delete)
5739 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
5740 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
5741 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5742 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5743
5744 * xdisp.c (fast_find_position): Remove unused var.
5745
5746 * cmds.c (Qexpand_abbrev): New sym.
5747 (syms_of_cmds): Initialize it.
5748 (internal_self_insert): Use it to call expand-abbrev.
5749
2e7ecf15
KS
57502003-07-09 Kim F. Storm <storm@cua.dk>
5751
f9711de4 5752 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 5753 was configured with --without-xim.
42f81f64 5754 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 5755
c6de56a0
RS
57562003-07-07 Richard M. Stallman <rms@gnu.org>
5757
5758 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
5759
5760 * alloc.c (Fgarbage_collect): Doc fix.
5761
b6189c3b 57622003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
5763
5764 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
5765
bfe1a3f7
SM
57662003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5767
04812929
SM
5768 * minibuf.c (read_minibuf): UNGCPRO before returning.
5769 (Ftry_completion, Fall_completions): Doc fix.
5770
bfe1a3f7
SM
5771 * alloc.c (live_float_p): Check that p is not past the `floats' array,
5772 now that `floats' is not the last element of the struct any more.
5773
ee79d1aa
JR
57742003-07-06 Jason Rumney <jasonr@gnu.org>
5775
5776 * w32term.h (ClipboardSequence_Proc): New type.
5777
5778 * w32fns.c (clipboard_sequence_fn): New variable.
5779 (globals_of_w32fns): Initialize it.
5780
5781 * w32select.c (last_clipboard_sequence_number): New variable.
5782 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
5783 number if possible.
5784
49723c04
SM
57852003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5786
4698665f
SM
5787 * m/amdx86-64.h (MARKBIT):
5788 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
5789 MARKBIT and ARRAY_MARK_FLAG any more.
5790
5791 * m/hp800.h (XSETMARKBIT):
5792 * m/sr2k.h (XSETMARKBIT):
5793 * lisp.h (XSETMARKBIT): Remove unused macro.
5794
49723c04
SM
5795 * lisp.h (mark_object): Change prototype.
5796
5797 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
5798 (last_marked): Change accordingly.
5799 (mark_interval, mark_maybe_object, mark_maybe_pointer)
5800 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
5801 (mark_buffer): Update calls to mark_object.
5802
5803 * bytecode.c (mark_byte_stack):
5804 * fns.c (sweep_weak_table):
5805 * keyboard.c (mark_kboards): Update calls to mark_object.
5806
1d660eca
JR
58072003-07-06 Jason Rumney <jasonr@gnu.org>
5808
5809 * alloc.c (struct ablock): Only include padding when there is some.
5810
618b5ae4
SM
58112003-07-04 Stefan Monnier <monnier@cs.yale.edu>
5812
5813 * alloc.c (ALIGN): Add casts to simplify usage.
5814 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
5815 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
5816 (struct ablock, struct ablocks): New types.
5817 (free_ablock): New global var.
5818 (lisp_align_malloc, lisp_align_free): New functions.
5819 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
5820 (struct float_block): Reorder and add gcmarkbits.
5821 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
5822 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
5823 (init_float, make_float): Use lisp_align_malloc.
5824 (free_float, live_float_p): Don't use `type' any more.
5825 (make_float): Use FLOAT_UNMARK to access to mark bit.
5826 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
5827 Use FLOAT_MARKED_P to access the mark bit.
5828 (pure_alloc): Simplify use of ALIGN.
5829 (mark_object): Use FLOAT_MARK to access the mark bit.
5830 (gc_sweep): Use new macros to access the float's mark bit.
5831 (init_alloc_once): Init free_ablock.
5832
5833 * lisp.h (struct Lisp_Float): Remove unused field `type'.
5834
3ef06d12
SM
58352003-06-27 Stefan Monnier <monnier@cs.yale.edu>
5836
5837 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
5838 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
5839 (allocate_buffer): Move.
5840 (string_bytes): Don't mask markbit of `size_byte'.
5841 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5842 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
5843 Use the `size' field of buffers (rather than the `name' field) for
5844 the mark bit, as is done for all other vectorlike objects.
5845 Use the new macros to access the mark bit of vectorlike objects.
5846
e81043aa
RS
58472003-06-26 Richard M. Stallman <rms@gnu.org>
5848
5849 * puresize.h (BASE_PURESIZE): Increment base size.
5850
5851 * xdisp.c (fast_find_position): Enable Gerd's new definition.
5852
5853 * xterm.c (xim_initialize): Undo previous change.
5854
2d0834cc
SM
58552003-06-26 Stefan Monnier <monnier@cs.yale.edu>
5856
5857 * alloc.c (survives_gc_p): Simplify.
5858
5859 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
5860
5861 * window.c (Fset_window_dedicated_p): Simplify.
5862 (display_buffer_1): Don't raise the win from which minibuf was entered.
5863 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
5864 (Fminibuffer_selected_window): Simplify.
5865
5866 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
5867
5868 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
5869 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
5870
5871 * insdel.c (check_markers, adjust_markers_for_delete)
5872 (adjust_markers_for_insert, adjust_markers_for_replace)
5873 (prepare_to_modify_buffer, RESTORE_VALUE):
5874 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
5875 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
5876 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
5877 * alloc.c (Fmake_marker, free_marker, gc_sweep):
5878 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
5879 * editfns.c (save_excursion_restore, transpose_markers):
5880 * window.c (delete_window):
5881 * xdisp.c (message_dolog): Update for new types.
5882
d54ae3d8
JD
58832003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5884
a5f696ac
JD
5885 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
5886 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 5887 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
5888
5889 * frame.c (make_frame): Initialize default_face_done_p.
5890
5891 * frame.h (struct frame): Add default_face_done_p.
5892
d54ae3d8
JD
5893 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
5894 will be defined.
5895
2336fe58
SM
58962003-06-25 Stefan Monnier <monnier@cs.yale.edu>
5897
5898 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
5899 Initialize the new field `gcmarkbit'.
5900 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
5901 (mark_interval_tree): Don't mark the tree separately from the nodes.
5902 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
5903 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5904 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
5905
5906 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
5907 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
5908 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
5909 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
5910 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
5911
bcea31c2
DL
59122003-06-24 Dave Love <fx@gnu.org>
5913
5914 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
5915
5916 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
5917 from gnulib.
5918
2601f59e
RS
59192003-06-21 Richard M. Stallman <rms@gnu.org>
5920
5921 * fileio.c (Fwrite_region): Alternate messages
5922 for append and partial write.
5923
5924 * keyboard.c (read_key_sequence): When converting upcase fn key to
5925 downcase, update fkey and keytran so `backspace' gets translated.
5926
5927 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
5928
5929 * process.c (wait_reading_process_input): Don't signal SIGIO
5930 in batch mode.
5931
b5d2c621
KH
59322003-06-17 Kenichi Handa <handa@m17n.org>
5933
5934 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
5935 composite.h.
5936
5937 * xselect.c: Don't include charset.h, coding.h, composite.h.
5938 (Qforeign_selection): New variable.
5939 (syms_of_xselect): Intern and static it.
5940 (selection_data_to_lisp_data): Return a unibyte string made from
5941 data with `foreign-selection' text property.
5942
6793bc63
SM
59432003-06-15 Stefan Monnier <monnier@cs.yale.edu>
5944
5945 * termhooks.h (EVENT_INIT): New macro.
5946
5947 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
5948
5949 * alloc.c (mark_kboards): Move to keyboard.c.
5950
5951 * keyboard.c (record_asynch_buffer_change, read_avail_input):
5952 * xterm.c (x_dispatch_event):
5953 * xmenu.c (find_and_call_menu_selection):
5954 * xdisp.c (handle_tool_bar_click):
5955 * w32menu.c (menubar_selection_callback):
5956 * sysdep.c (kbd_input_ast, read_input_waiting):
5957 * msdos.c (dos_rawgetc):
5958 * macterm.c (mac_check_for_quit_char):
5959 * macmenu.c (menubar_selection_callback):
5960 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
5961 data to kbd_buffer_store_event.
5962
b3ea810c
KS
59632003-06-15 Kim F. Storm <storm@cua.dk>
5964
5965 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 5966 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 5967
b8f75eda
KG
59682003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5969
5970 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
5971
ba92ce48
KH
59722003-06-12 Kenichi Handa <handa@m17n.org>
5973
5974 * fileio.c (Fwrite_region): Save and restore restriction.
5975
b80263be
DL
59762003-06-12 Dave Love <fx@gnu.org>
5977
5978 * alloca.c (alloca): Declare arg as size_t.
5979
6793bc63
SM
5980 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
5981 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 5982
b23c0a83
DL
59832003-06-11 Dave Love <fx@gnu.org>
5984
5985 * search.c (shrink_regexp_cache): Use xrealloc.
5986 (syms_of_search): Use xmalloc.
5987
700e47c2
KS
59882003-06-10 Kim F. Storm <storm@cua.dk>
5989
5990 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
5991 Adjust phys_cursor.x to be relative to window box, rather than
5992 text area before checking -- to ensure cursor is redrawn when
5993 exposing window.
5994 Note: This also fixes a similar (older) bug if display margins
5995 are present.
5996
f11aa0b2
KH
59972003-06-06 Kenichi Handa <handa@m17n.org>
5998
5999 * coding.c (encoding_buffer_size): If coding->type is
6000 coding_type_ccl, double magnification on CRLF encoding.
6001
3d143690
JR
60022003-06-06 Jason Rumney <jasonr@gnu.org>
6003
6004 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6005 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6006
6007 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6008 Mac too.
6009
f16205ca
DL
60102003-06-05 Dave Love <fx@gnu.org>
6011
b23c0a83
DL
6012 * strftime.c: Merge changes from gnulib.
6013
f16205ca
DL
6014 * mktime.c (__mktime_internal): Merge changes from gnulib
6015 involving year 69 and dst2.
6016
6017 Changes to merge with gnulib version and be consistent with the
6018 autoconf test:
6019
6793bc63
SM
6020 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6021 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
6022 [HAVE_LOCALE_H]: Include locale.h.
6023 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6024
9b87a0bc
KS
60252003-06-05 Kim F. Storm <storm@cua.dk>
6026
6027 * window.c (coordinates_in_window): Convert X and Y to window
6028 relative coordinates inside mode-line and header-line parts.
6029 Convert X and Y to margin area relative coordinates inside left
6030 and right display margin parts.
6031
5a8a15ec
JR
60322003-06-05 Jason Rumney <jasonr@gnu.org>
6033
6034 * w32fns.c (add_system_logical_colors_to_map): New function.
6035 (Fx_open_connection): Use it.
6036
01ed8ff1
SM
60372003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6038
6039 * process.c (allocate_pty): Revert part of the previous patch.
6040 (Faccept_process_output): Simplify.
6041
b427b65d
JR
60422003-06-04 Jason Rumney <jasonr@gnu.org>
6043
6044 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6045
6046 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6047 (lispy_mouse_wheel_names): Remove.
6048 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6049 Always define drag_and_drop_syms.
6050
6051 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6052 WHEEL_EVENT events.
6053
914a8c47
SM
60542003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6055
01ed8ff1
SM
6056 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
6057
914a8c47
SM
6058 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
6059
adcb132c
JD
60602003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6061
6062 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
6063 menu item label.
6064
be781fa7
RS
60652003-06-03 Richard M. Stallman <rms@gnu.org>
6066
6067 * window.c (Fwindow_edges): Doc fix.
6068 (Fwindow_pixel_edges, Fwindow_inside_edges)
6069 (Fwindow_inside_pixel_edges): New functions.
6070 (syms_of_window): defsubr them.
6071
6072 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
6073 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
6074
914a8c47
SM
60752003-06-02 Stefan Monnier <monnier@cs.yale.edu>
6076
6077 * dispnew.c (Fsit_for): Don't lie about the number of args.
6078
5b07197a
DL
60792003-06-02 Dave Love <fx@gnu.org>
6080
6081 * callproc.c: Use HAVE_FCNTL_H, not USG5.
6082 (syms_of_callproc) <process-environment>: Doc fix.
6083
6084 * doc.c: Use HAVE_FCNTL_H, not USG5.
6085
6086 * xfaces.c (font_rescale_ratio): Fix for K&R.
6087
6088 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
6089
6090 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
6091
6092 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
6093
6094 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
6095 (xg_create_frame_widgets): Use ENCODE_UTF_8.
6096
d7107586 6097 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
6098
6099 * xmenu.c (ENCODE_MENU_STRING): New.
6100 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
6101 Use it.
6102
6103 * coding.h (ENCODE_UTF_8): New.
6104 (Qutf_8): Declare.
6105
6106 * coding.c (Qutf_8): New.
6107 (syms_of_coding): Intern it.
6108
6109 * fns.c: Doc fixes.
6110
7335b336
KH
61112003-06-02 Kenichi Handa <handa@m17n.org>
6112
6113 * buffer.c (Fset_buffer_multibyte): Fix previous change.
6114
914a8c47
SM
61152003-06-01 Stefan Monnier <monnier@cs.yale.edu>
6116
6117 * lread.c (openp): Make sure STR is a string.
6118
9862c135
JR
61192003-06-01 David Ponce <david@dponce.com>
6120
6121 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
6122 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
6123
6124 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
6125 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
6126 (discard_mouse_events): Discard WHEEL_EVENT events too.
6127 (lispy_wheel_names, wheel_syms): New.
6128 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
6129 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
6130 defined.
914a8c47 6131 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
6132
6133 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
6134 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6135 WHEEL_EVENT events.
6136
f984e73e
JPW
61372003-05-31 John Paul Wallington <jpw@gnu.org>
6138
6139 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
6140 timer are in lisp/emacs-lisp.
6141
1efcd78f
KH
61422003-05-31 Kenichi Handa <handa@m17n.org>
6143
458c8af4
KH
6144 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
6145 region when a buffer is changed to unibyte.
6146
1efcd78f
KH
6147 * charset.h (VALID_LEADING_CODE_P): New macro.
6148 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
6149
778e2804
KH
6150 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
6151 is nonzero, accept multibyte form of eight-bit-control chars.
6152 (decode_composition_emacs_mule): Likewise.
6153 (decode_coding_emacs_mule): Likewise.
6154 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
6155 multibyte form of eight-bit-control chars.
6156
6157 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
6158 (Finsert_file_contents): If coding-system-for-read is bound to
6159 Qauto_save_coding, use the coding system emacs-mule with special
6160 setting for recovering a file.
6161 (choose_write_coding_system): On auto saving, use the coding
6162 system emacs-mule with special setting for auto saving.
6163 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
6164
034060e4
KH
61652003-05-30 Kenichi Handa <handa@m17n.org>
6166
6167 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
6168 properly before calling ccl_driver.
6169
778e2804 6170 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
6171
6172 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
6173 nonzero.
6174 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
6175 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
6176
595f5aa5
GM
61772003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
6178
6179 * xfaces.c (realize_default_face): Do not abort if lface is
6180 non-existent - reverts change from 2003-05-19.
6181
103e0180
KH
61822003-05-29 Kenichi Handa <handa@m17n.org>
6183
6184 * coding.c (decode_coding_iso2022): Pay attention to the byte
6185 sequence of CTEXT extended segment, and retain those bytes as is.
6186
61872003-05-28 Kenichi Handa <handa@m17n.org>
6188
6189 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
6190 of CODING_REPLACEMENT_CHARACTER.
6191 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
6192 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
6193 check this flag on encoding.
6194 (encode_coding_sjis_big5): Check
6195 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
6196 (Fset_terminal_coding_system_internal): Set
6197 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
6198 instead of setting CODING_FLAG_ISO_SAFE flag in
6199 terminal_coding.flags.
6200
6201 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
6202 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
6203 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
6204
ff6a3bfb 62052003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 6206
ff6a3bfb
RS
6207 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
6208
6209 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 6210
1963c428
KS
62112003-05-28 Kim F. Storm <storm@cua.dk>
6212
6213 * xdisp.c (expose_window): Fix error in calculation of
6214 window relative coordinates of area to redisplay.
6215
2b5d4601
JR
62162003-05-27 Jason Rumney <jasonr@gnu.org>
6217
6218 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
6219
1c64a4a2
JB
62202003-05-27 David Ponce <david@dponce.com>
6221
6222 Handle W32 mouse wheel events as mouse click events, like in X.
6223
6224 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
6225 MOUSE_WHEEL_EVENT anymore.
6226
6227 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
6228 Scrolling down/up the mouse wheel is respectively mapped to mouse
6229 button 4 and 5.
6230 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6231 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
6232 WM_MOUSEWHEEL events.
6233
2d031b89
AS
62342003-05-27 Andreas Schwab <schwab@suse.de>
6235
20464fdf
AS
6236 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
6237
2d031b89
AS
6238 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
6239 partially visible line.
6240
6241 * alloc.c (Fgarbage_collect): Fix last change.
6242
97bc76d4
JPW
62432003-05-26 John Paul Wallington <jpw@gnu.org>
6244
6245 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
6246
56613f06
SM
62472003-05-25 Stefan Monnier <monnier@cs.yale.edu>
6248
6249 * window.c (Fset_window_buffer): Add type of `keep_margins'.
6250 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
6251
6252 * window.h (window_box_text_cols): Declare.
6253
6254 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
6255 (x_draw_vertical_border): Remove unused var `f'.
6256
6257 * xfaces.c (build_scalable_font_name): Remove `unused var
6258 pixel_size' warning.
6259
6260 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
6261
6262 * unexelf.c (unexec): Remove `unused var n' warning.
6263
6264 * strftime.c (my_strftime_localtime_r): Remove `defined but
6265 unused' warning.
6266
6267 * process.c (allocate_pty): Remove `unused var stb' and
6268 `cp might be used uninitialized' warnings.
6269
6270 * dispnew.c (mode_line_string): Remove unused var `f'.
6271
6272 * coding.c (find_safe_codings): Remove unused var `i'.
6273
6274 * bytecode.c (Fbyte_code): Remove `unused val' warning.
6275
6276 * buffer.c (Fkill_buffer): Remove unused var `list'.
6277
6278 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
6279
93421a1f
JD
62802003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6281
6282 * frame.c (make_frame): Condition want_fullscreen with
6283 HAVE_WINDOW_SYSTEM.
6284
c4b8aebc
JB
62852003-05-25 Juanma Barranquero <lektu@terra.es>
6286
6287 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
6288 (Fwindow_scroll_bars): Fix typo in docstring.
6289
0416870b
KS
62902003-05-24 Kim F. Storm <storm@cua.dk>
6291
6292 The following changes serve several purposes:
6293
6294 1) Swap the position of fringes and display margins in windows, i.e.
6295 the fringes are now displayed between the margins and the text area
6296 (by default).
6297
6298 2) Allow fringe and scroll bar parameters to be set per-buffer and
6299 per-window (like display margins). Such settings are now stored
6300 in window configurations, preserved when frames are resized, and
9018a88e 6301 copied when windows are split vertically or horizontally.
0416870b
KS
6302 Several bugs related to display margins have been fixed.
6303
6304 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 6305
0416870b
KS
6306 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
6307 rather than FRAME_WIDTH (FRAME_FONT (f)).
6308
6309 5) Introduce a consistent naming of variables, members and macros
6310 depending on whether their value is measured in pixels or in
6311 canonical columns/lines. Pixel dimensions are named *_width and
6312 *_height, while canonical columns/lines are named *_cols and
6313 *_lines. Pixel positions are named *_x and *_y, while column/line
6314 positions are named *_col and *_line.
6315
6316 6) Consolidate more of the X, W32, and MAC gui code by moving
6317 common data into struct frame, and generalize it for the non-gui
6318 case by using suitable defaults.
6319
6320 7) Cleanup and consolidate the macros controlling frame and window
6321 layout into frame.h and window.h, and generalize the use of the
6322 various window_box_* functions (enhanced to handle the new fringe
6323 position and the per-window fringe and scroll bar settings).
6324
6325 * frame.h (struct frame): Rename members height to text_lines,
6326 width to text_cols, window_height to total_lines, window_width to
6327 total_cols, new_height to new_text_lines, new_width to
6328 new_text_cols. All uses changed.
6329 (struct frame): New members which consolidate common members of
6330 x_output, w32_output, and mac_output structures: left_pos,
6331 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
6332 win_gravity, size_hint_flags, border_width, internal_border_width,
6333 line_height, fringe_cols, left_fringe_width, right_fringe_width,
6334 want_fullscreen. All uses changed.
6335 (struct frame): New member column_width contaning the canonical
6336 column width, analogue to line_height. All uses changed.
6337 (struct frame): Rename members scroll_bar_pixel_width to
6338 config_scroll_bar_width, and scroll_bar_cols to
6339 config_scroll_bar_cols. All uses changed.
6340 (struct frame): New member scroll_bar_actual_width which
6341 consolidates and renames the vertical_scroll_bar_extra member of
6342 x_output, w32_output, and mac_output structures. All uses changed.
6343 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
6344 from x/w32/macterm.h files. All uses changed. Also change code
6345 which referred to f->output_data...->pixel_height.
6346 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 6347 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
6348 which referred to f->output_data...->pixel_width.
6349 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
6350 Also change code which referred to f->height.
6351 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
6352 Also change code which referred to f->width.
6353 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
6354 to update new_text_lines and new_text_cols members directly.
6355 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
6356 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
6357 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
6358 FRAME_SCROLL_BAR_COLS. All uses changed.
6359 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
6360 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
6361 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
6362 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
6363 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
6364 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
6365 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
6366 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
6367 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
6368 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
6369 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
6370 return line_height member (it now has proper value also for
6371 non-window frames).
6372 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
6373 return new column_width member (rather than the default font width).
6374 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
6375 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
6376 from x/w32/macterm.h files. Unconditionally return corresponding
6377 member of frame structure (they now have proper values also for
6378 non-window frames).
6379 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
6380 Calculate return value from left and right widths.
6381 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
6382 internal_border_width member (has proper value for non-window frame).
6383 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
6384 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
6385 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
6386 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
6387 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
6388 consolidated from xterm.h, macterm.h, and w32term.h.
6389 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
6390 consolidated from xterm.h, macterm.h, and w32term.h.
6391 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
6392 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
6393 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
6394 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
6395 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
6396 consolidated from x/mac/w32term.h.
6397 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
6398 consolidated from x/mac/w32term.h.
6399 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
6400 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
6401 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
6402 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
6403
6404 * window.h (struct window): Rename members left to left_col,
6405 top to top_line, height to total_lines, width to total_cols,
6406 left_margin_width to left_margin_cols, right_margin_width to
6407 right_margin_cols, orig_height to orig_total_lines, orig_top to
6408 orig_top_line. All uses changed.
6409 (struct window): New members left_fringe_width, right_fringe_width,
6410 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
6411 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
6412 New macros primarily used to simplify other macros.
6413 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
6414 referred to XINT (w->width).
6415 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
6416 referred to XINT (w->height).
6417 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
6418 referred to XINT (w->width) * canon_x_unit.
6419 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
6420 referred to XINT (w->height) * canon_y_unit.
6421 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
6422 referred to XINT (w->left).
6423 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
6424 all uses and code that referred to XINT (w->left) + XINT (w->width).
6425 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
6426 referred to XINT (w->top).
6427 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
6428 referred to XINT (w->top) + XINT (w->height).
6429 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
6430 referred to XINT (w->left) * canon_x_unit.
6431 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
6432 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
6433 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
6434 referred to XINT (w->top) * canon_y_unit.
6435 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
6436 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
6437 (WINDOW_LEFTMOST_P): New macro.
6438 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
6439 All uses changed.
6440 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
6441 All uses changed.
6442 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
6443 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
6444 Do not exclude left fringe width.
6445 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
6446 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
6447 Do not exclude fringe widths.
6448 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
6449 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
6450 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
6451 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
6452 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
6453 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
6454 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
6455 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
6456 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
6457 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
6458 New macros. Change code which referenced corresponding
6459 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
6460 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
6461 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
6462 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
6463 allow per-window scroll-bar settings.
6464 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
6465 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
6466 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
6467 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
6468 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
6469 FRAME_SCROLL_BAR_WIDTH.
6470 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 6471 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
6472 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
6473 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
6474 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
6475 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
6476 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
6477 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
6478 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6479 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6480 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
6481 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
6482 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6483 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
6484 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6485 (window_from_coordinates): Update prototype.
6486 (Fset_window_buffer): Update EXFUN.
6487 (set_window_buffer): Update prototype.
9018a88e 6488
0416870b 6489 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 6490 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
6491 changed.
6492 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
6493 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
6494 internal_border_width is now set to 0 for non-window frames.
6495 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
6496 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
6497 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
6498 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
6499 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
6500 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6501 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6502 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
6503 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 6504 Move to window.h and renamed [see window.h changes].
0416870b
KS
6505 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
6506 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
6507 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
6508 Use WINDOW_TOTAL_LINES.
0416870b
KS
6509 (frame_update_line_height): Remove prototype.
6510
6511 * buffer.h (struct buffer): Rename members measured in columns:
6512 left_margin_width to left_margin_cols, right_margin_width to
6513 right_margin_cols. All uses changed.
6514 New members left_fringe_width, right_fringe_width,
6515 fringes_outside_margins for per-buffer fringe settings.
6516 New members scroll_bar_width and vertical_scroll_bar_type for
6517 per-buffer scroll bar settings.
6518
6519 * buffer.c (init_buffer_once): Set buffer_defaults and
6520 buffer_local_flags for new buffer-local variables
6521 left_fringe_width, right_fringe_width, fringes_outside_margins,
6522 scroll_bar_width, and vertical_scroll_bar_type.
6523 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
6524 default-* variables for them.
6525
6526 * dispnew.c: Make (many) trivial substitutions for renamed and
6527 new macros in dispextern.h, frame.h and window.h.
6528 (mode_line_string): No need to adjust width for mode lines, as it
6529 is already adjusted by the caller.
6530 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 6531
0416870b
KS
6532 * frame.c: Make (many) trivial substitutions for renamed and
6533 new macros in dispextern.h, frame.h and window.h.
6534 (make_frame): Initialize left_fringe_width, right_fringe_width,
6535 fringe_cols, scroll_bar_actual_width, border_width,
6536 internal_border_width, column_width, line_height, x_pixels_diff,
6537 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
6538 members with values suitable for a non-window frames.
6539
6540 * gtkutil.c: Make (many) trivial substitutions for renamed and
6541 new macros in dispextern.h, frame.h and window.h.
9018a88e 6542
0416870b
KS
6543 * indent.c: Make (few) trivial substitutions for renamed and
6544 new macros in dispextern.h, frame.h and window.h.
6545
6546 * keyboard.c: Make (many) trivial substitutions for renamed and
6547 new macros in dispextern.h, frame.h and window.h.
6548 (make_lispy_event): Use window positions returned from
6549 window_from_coordinates when constructing the lisp event for
6550 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
6551 (incorrect) values locally.
6552 (make_lispy_movement): Use window positions returned from
6553 window_from_coordinates when constructing the lisp event, rather
6554 than calculating (incorrect) values locally.
6555
6556 * scroll.c: Make (some) trivial substitutions for renamed and
6557 new macros in dispextern.h, frame.h and window.h.
6558
6559 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
6560 scroll-bars.
6561
6562 * sysdep.c: Make (few) trivial substitutions for renamed and
6563 new macros in dispextern.h, frame.h and window.h.
6564
6565 * term.c: Make (some) trivial substitutions for renamed and
6566 new macros in dispextern.h, frame.h and window.h.
6567
6568 * widget.c: Make (few) trivial substitutions for renamed and
6569 new macros in dispextern.h, frame.h and window.h.
6570
6571 * window.c: Make (many) trivial substitutions for renamed and
6572 new macros in dispextern.h, frame.h and window.h.
6573 (make_window): Initialize new members
6574 left_margin_cols, right_margin_cols, left_fringe_width,
6575 right_fringe_width, fringes_outside_margins, scroll_bar_width,
6576 and vertical_scroll_bar_type.
6577 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 6578 and per-window fringes and scroll-bars.
0416870b 6579 Fix bug related to incorrectly adjusting coordinates by
9018a88e 6580 frame's internal_border_width (the effect normally negible since
0416870b
KS
6581 the internal_border_width is typically 0 or 1 pixel, but very
6582 noticeable for an internal_border_width of e.g. 25 pixels).
6583 Upon successful return (other than ON_NOTHING), the coordinates
6584 are now always properly converted to window relative for the
6585 given display element.
6586 (window_from_coordinates): Add new parameters wx and wy to
6587 return the window relative x and y position in the returned
6588 window and part. A null arg means, don't return the position.
6589 All callers changed.
6590 (adjust_window_margins): New function which may reduce the width
6591 of the display margins if a window's text area is too small after
6592 resizing or splitting windows.
6593 (size_window): Fix bug that did not account for display margin
6594 widths when checking the minimum width of a window; use
6595 adjust_window_margins.
6596 (set_window_buffer): Call Fset_window_fringes and
6597 Fset_window_scroll_bars to setup per-window elements.
6598 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
6599 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
6600 (e.g. after splitting a window or resizing the frame).
6601 All callers changed.
0416870b
KS
6602 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
6603 (Fsplit_window): Duplicate original window's display margin,
6604 fringe, and scroll-bar settings; then call Fset_window_buffer with
6605 KEEP_MARGINS non-nil. This fixes a bug which caused a split
6606 window to only preserve the display margins in one of the windows.
c4b8aebc 6607 When splitting horizontally, call adjust_window_margins on both
0416870b 6608 windows to ensure that the text area of the new windows is non too
f9711de4 6609 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
6610 width of the split window was less than the width of the display
6611 margins.
9018a88e
SM
6612 (window_box_text_cols): Renamed from window_internal_width.
6613 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
6614 Fix bug that caused vertical separator to be subtracted also on
6615 window frames. Fix another bug that did not reduce the returned
6616 value by the columns used for display margins.
6617 (window_scroll_line_based): Fix bug related to scrolling too much
6618 when display margins are present (implicitly fixed by the fix to
6619 window_box_text_cols).
6620 (scroll_left, scroll_right): Fix bug related to scrolling too far
6621 by default when display margins are present (implicitly fixed by
6622 the fix to window_box_text_cols).
6623 (struct saved_window): Rename members left to left_col, top to
6624 top_line, width to total_cols, height to total_lines, orig_top to
6625 orig_top_line, orig_height to orig_total_lines. All uses changed.
6626 New members left_margin_cols, right_margin_cols,
6627 left_fringe_width, right_fringe_width, fringes_outside_margins,
6628 scroll_bar_width, and vertical_scroll_bar_type for saving
6629 per-window display elements.
6630 (Fset_window_configuration): Restore display margins, fringes,
6631 and scroll bar settings. This fixes a bug which caused display
6632 margins to be discarded when saving and restoring a window
6633 configuration.
6634 (save_window_save): Save display margins, fringes, and scroll bar
6635 settings. This fixes a bug which caused display margins to be
6636 discarded when saving and restoring a window configuration.
6637 (Fset_window_margins): Do nothing if display margins are not
6638 really changed. Otherwise, call adjust_window_margins to ensure
6639 the text area doesn't get too narrow. This fixes a bug which
f9711de4 6640 could cause Emacs to trap if setting display margins wider than
0416870b
KS
6641 the width of the window.
6642 (Fset_window_fringes): New defun to allow user to specifically set
6643 this window's fringe widths and position vs. display margins.
6644 (Fwindow_fringes): New defun to return window's actual fringe
6645 settings.
6646 (Fset_window_scroll_bars): New defun to allow user to specifically
6647 set this window's scroll bar width and position.
6648 (Fwindow_scroll_bars): New defun to return window's actual scroll
6649 bar settings.
6650 (compare_window_configurations): Also compare display margins,
6651 fringes, and scroll bar settings.
6652 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
6653
6654 * xdisp.c: Make (many) trivial substitutions for renamed and
6655 new macros in dispextern.h, frame.h and window.h.
6656 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 6657 and new fringe vs. display margin position. Note that returned
0416870b
KS
6658 value is no longer guaranteed to be a whole multiple of the frame
6659 column width, since per-window fringes may now be any width.
6660 (window_box_left_offset): New function like window_box_left, but
6661 value is relative to left border of window (rather than frame).
6662 (window_box_right_offset): New function like window_box_right,
6663 but value is relative to left border of window.
6664 (window_box_left): Adapt to per-window fringes and scroll bars,
6665 and new fringe vs. display margin position. Simplify by using
6666 WINDOW_LEFT_EDGE_X and window_box_left_offset.
6667 (window_box): Allow null args for unnecessary return values;
6668 change/simplify relevant callers.
6669 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
6670 and new fringe vs. display margin position.
6671 Use window_box_left_offset and window_box_right_offset
0416870b 6672 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
6673 scroll bars, and new fringe vs. display margin position.
6674 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
6675 (draw_fringe_bitmap): Rework to handle per-window fringes and new
6676 fringe vs. display margin position.
6677 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
6678 (redisplay_window): Adapt to per-window scroll bars.
6679 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
6680 bars, and new fringe vs. display margin position.
6681 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 6682 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
6683 bars, and new fringe vs. display margin position. Fix bug which
6684 increased total width of full_width rows by width of scroll bars
6685 although window's total width already includes that.
6686 (x_fix_overlapping_area): Simplify using window_box_left_offset.
6687 (expose_area): Simplify using window_box_left_offset.
6688 (x_draw_vertical_border): Handle per-window scroll bar settings,
6689 mixing windows with left, right and no scroll bars.
6690
6691 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
6692 where it's used in x_list_fonts (for clarity).
6693 (frame_update_line_height): Remove unused function; functionality
6694 is now done directly when setting the default font in x_set_font.
6695
6696 * xfns.c: Make (many) trivial substitutions for renamed and
6697 new macros in dispextern.h, frame.h and window.h.
6698
6699 * xmenu.c: Make (some) trivial substitutions for renamed and
6700 new macros in dispextern.h, frame.h and window.h.
6701
6702 * xterm.h (struct x_output): Move members left_pos, top_pos,
6703 border_width, pixel_height, pixel_width, line_height,
6704 internal_border_width, vertical_scroll_bar_extra,
6705 left_fringe_width, right_fringe_width, fringe_cols,
6706 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6707 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6708 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6709 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6710 (PIXEL_WIDTH, PIXEL_HEIGHT)
6711 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6712 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6713 frame.h and renamed [see frame.h changes].
6714 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6715 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6716 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6717 and renamed [see frame.h changes].
9018a88e 6718
0416870b
KS
6719 * xterm.c: Make (several) trivial substitutions for renamed and
6720 new macros in dispextern.h, frame.h and window.h.
6721 (x_draw_glyph_string_box): Adapt to per-window fringes and
6722 scroll-bars.
6723 (scroll_run): Adapt to new fringe position.
6724 (glyph_rect): Use window coordinates returned from
6725 window_from_coordinates rather than frame_to_window_pixel_xy.
6726 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6727 scroll-bars.
6728 (handle_one_xevent): Simplify a USE_GTK conditional.
6729 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6730 (fringes are now inside margins, i.e. always in the clipping area).
6731 All callers changed.
6732 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6733 directly, then call compute_fringe_widths. Don't call
6734 frame_update_line_height.
6735
6736 * w32term.h (struct w32_output): Move members left_pos, top_pos,
6737 border_width, pixel_height, pixel_width, line_height,
6738 internal_border_width, vertical_scroll_bar_extra,
6739 left_fringe_width, right_fringe_width, fringe_cols,
6740 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6741 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6742 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6743 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6744 (PIXEL_WIDTH, PIXEL_HEIGHT)
6745 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6746 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6747 frame.h and renamed [see frame.h changes].
6748 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6749 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6750 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6751 and renamed [see frame.h changes].
9018a88e 6752
0416870b
KS
6753 * w32term.c: Make (several) trivial substitutions for renamed and
6754 new macros in dispextern.h, frame.h and window.h.
6755 (x_draw_glyph_string_box): Adapt to per-window fringes and
6756 scroll-bars.
6757 (glyph_rect): Use window coordinates returned from
6758 window_from_coordinates rather than frame_to_window_pixel_xy.
6759 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6760 scroll-bars.
6761 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
6762 (fringes are now inside margins, i.e. always in the clipping area).
6763 All callers changed.
6764 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6765 directly, then call compute_fringe_widths. Don't call
6766 frame_update_line_height.
6767
6768 * w32console.c: Make (few) trivial substitutions for renamed and
6769 new macros in dispextern.h, frame.h and window.h.
6770
6771 * w32fns.c: Make (many) trivial substitutions for renamed and
6772 new macros in dispextern.h, frame.h and window.h.
6773
6774 * w32menu.c: Make (few) trivial substitutions for renamed and
6775 new macros in dispextern.h, frame.h and window.h.
6776
6777 * macterm.h (struct mac_output): Move members left_pos, top_pos,
6778 border_width, pixel_height, pixel_width, line_height,
6779 internal_border_width, vertical_scroll_bar_extra,
6780 left_fringe_width, right_fringe_width, fringe_cols,
6781 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6782 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
6783 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6784 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6785 (PIXEL_WIDTH, PIXEL_HEIGHT)
6786 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6787 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6788 frame.h and renamed [see frame.h changes].
6789 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6790 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6791 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6792 and renamed [see frame.h changes].
9018a88e 6793
0416870b
KS
6794 * macterm.c: Make (several) trivial substitutions for renamed and
6795 new macros in dispextern.h, frame.h and window.h.
6796 (x_draw_glyph_string_box): Adapt to per-window fringes and
6797 scroll-bars.
6798 (glyph_rect): Use window coordinates returned from
6799 window_from_coordinates rather than frame_to_window_pixel_xy.
6800 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6801 scroll-bars.
6802 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6803 (fringes are now inside margins, i.e. always in the clipping area).
6804 All callers changed.
6805 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6806 directly, then call compute_fringe_widths. Don't call
6807 frame_update_line_height.
6808
6809 * macfns.c: Make (several) trivial substitutions for renamed and
6810 new macros in dispextern.h, frame.h and window.h.
9018a88e 6811 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
6812
6813 * macmenu.c: Make (few) trivial substitutions for renamed and
6814 new macros in dispextern.h, frame.h and window.h.
6815
6816 * msdos.h (struct x_output): Remove members left_pos, top_pos,
6817 and line_height, and use corresponding new members in struct
6818 frame. All uses changed.
6819 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
6820 superseeded by corresponding macros in frame.h.
6821
6822 * msdos.c: Make (several) trivial substitutions for renamed and
6823 new macros in dispextern.h, frame.h and window.h.
6824 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 6825 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
6826 (internal_terminal_init): No need to initialize line_height here;
6827 it now defaults to 1.
6828
9018a88e
SM
68292003-05-24 Stefan Monnier <monnier@cs.yale.edu>
6830
6831 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
6832 dropping `down' events.
6833
016bd3c0
AS
68342003-05-24 Andreas Schwab <schwab@suse.de>
6835
6836 * coding.c (find_safe_codings): Fix last change.
6837
4dacadcc
TTN
68382003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
6839
6840 * xfns.c (x_window): Fix typo from 2003-05-21 change.
6841
319830ce
SM
68422003-05-23 Stefan Monnier <monnier@cs.yale.edu>
6843
9018a88e
SM
6844 * xdisp.c (display_mode_element): Increase max depth.
6845 Simplify the error handling code. Use a different error string
6846 for the case where we hit the depth limit.
6847
319830ce
SM
6848 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
6849
6850 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
6851
68522003-05-21 Stefan Monnier <monnier@cs.yale.edu>
6853
6854 * intervals.c (get_local_map): Don't get char-property of previous
6855 point any more: get_pos_property already does it and better.
6856
c67de8ba
DL
68572003-05-21 Dave Love <fx@gnu.org>
6858
6859 [Merged from unicode branch.]
6860
6861 * xfns.c (x_window, x_window): Use use_xim.
6862
6863 * xterm.c (use_xim): Initialize.
6864 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6865 (x_term_init): Maybe set use_xim.
6866
6867 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6868
edd3ff1d
JR
68692003-05-21 Jason Rumney <jasonr@gnu.org>
6870
6871 * unexw32.c (_start): Remove _fmode initialization.
6872
6873 * emacs.c (main) [WINDOWSNT]: Move it here.
6874
463f55ee
DL
68752003-05-20 Dave Love <fx@gnu.org>
6876
6877 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
6878
af253914
RS
68792003-05-19 Richard M. Stallman <rms@gnu.org>
6880
6881 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
6882 as value for QCfont attribute.
6883 (realize_default_face): lface should already exist; crash if not.
6884 Specify 0 for FORCE_P when calling set_lface_from_font_name.
6885
6886 * frame.c (Fignore_event): Doc fix.
6887
1d211019
KH
68882003-05-19 Kenichi Handa <handa@m17n.org>
6889
6890 * coding.c (decode_coding_string): Handle post-read-conversion
6891 even if the coding doesn't require decoding.
6892
4dd68254
RS
68932003-05-18 Richard M. Stallman <rms@gnu.org>
6894
6895 * callproc.c (Fcall_process_region): Doc fix.
6896
14d87dc9
SM
68972003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6898
deca5d96
SM
6899 * lread.c (Fload): Print a message if package is obsolete.
6900
14d87dc9
SM
6901 * window.c (Fselect_window): Add optional `norecord' arg.
6902 (select_window_1): Fold into Fselect_window.
6903 (select_window_norecord): New function.
6904 (temp_output_buffer_show): Use it. Preserve current buffer.
6905
6906 * window.h (Fselect_window): Update declaration.
6907
6908 * window.c (delete_window, Fother_window, Fset_window_configuration):
6909 * minibuf.c (read_minibuf):
6910 * macterm.c (x_new_focus_frame):
6911 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
6912 * callint.c (Fcall_interactively):
6913 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
6914
6915 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
6916
78f52183
DK
69172003-05-17 David Kastrup <dak@gnu.org>
6918
6919 * process.c (read_process_output): Back out change from 2003-03-09.
6920
14d87dc9
SM
69212003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6922
6923 * editfns.c (get_pos_property): Don't assume that `object' = nil.
6924
6925 * textprop.c (text_property_stickiness): New arg `buffer'.
6926
6927 * intervals.h (text_property_stickiness): New arg `buffer'.
6928 (get_pos_property): Declare.
6929
6930 * intervals.c (get_local_map): Use get_pos_property, to obey
6931 stickiness and empty overlays.
6932 (create_root_interval, graft_intervals_into_buffer): Use BEG.
6933 (merge_properties, intervals_equal, merge_properties_sticky):
6934 Use XCAR, XCDR.
6935 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
6936
1fd1cc2f
RS
69372003-05-17 Richard M. Stallman <rms@gnu.org>
6938
4f9f637a
RS
6939 * minibuf.c (read_minibuf): If buffer is empty, record the default
6940 in the history.
6941 (Fminibuffer_complete_word): When deleting the overlap, take account
6942 of its real position.
6943
6944 * fns.c (map_char_table): Fix previous change.
6945
1fd1cc2f
RS
6946 * syntax.c (find_defun_start):
6947 When open_paren_in_column_0_is_defun_start,
6948 return beginning of buffer.
6949
6950 * lisp.h (map_char_table): Declare added arg.
6951
6952 * fns.c (map_char_table): New arg TABLE gets the master table.
6953 All calls changed.
6954 Process default and inheritance, resorting to Faref if necessary.
6955
6956 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6957 (Faccessible_keymaps): Pass new arg to map_char_table.
6958
6959 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
6960
6961 * casetab.c (set_case_table): Pass new arg to map_char_table.
6962
6963 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
6964
6965 * lisp.h (specbinding_func): New typedef.
6966 (struct specbinding): Use specbinding_func, to put the `volatile'
6967 in the right place.
6968
6969 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
6970 to avoid GCC warning.
14d87dc9 6971
b6189c3b 69722003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 6973
14d87dc9 6974 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 6975
35fb885d
SM
69762003-05-15 Stefan Monnier <monnier@cs.yale.edu>
6977
6978 * keyboard.c (apply_modifiers): Don't fill the other cache.
6979
9a274fbd
SM
69802003-05-14 Stefan Monnier <monnier@cs.yale.edu>
6981
c55b5fad
SM
6982 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
6983
9a274fbd
SM
6984 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
6985 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
6986 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
6987 (Fset_window_configuration, Fcurrent_window_configuration)
6988 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
6989 (Fpos_visible_in_window_p, mark_window_cursors_off)
6990 (window_internal_height, window_internal_width, Frecenter)
6991 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
6992 (replace_buffer_in_all_windows, init_window_once, init_window)
6993 (syms_of_window, keys_of_window): Move from lisp.h.
6994 * lisp.h: Move window.c declarations to window.h.
6995
6996 * bytecode.c: Include window.h.
6997 * emacs.c: Include window.h.
6998
14d87dc9 6999 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
7000 (keyremap): Add `parent' field.
7001 (keyremap_step): Use it. Remove `parent' argument.
7002 (read_key_sequence): Setup and use the new `parent' field.
7003
fd93e331
SM
70042003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7005
7006 * keyboard.c (adjust_point_for_property): Ensure termination.
7007
1c4001a1
SM
70082003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7009
7010 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7011 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7012 duplicated handling of function-key-map and key-translation-map
7013 in read_key_sequence.
7014 (read_key_sequence): Use them.
7015
7016 * keyboard.c (adjust_point_for_property): Try harder to move point
7017 to the non-sticky end of an invisible property.
7018
7019 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7020 property intangible as well.
7021
780379b1
AS
70222003-05-10 Andreas Schwab <schwab@suse.de>
7023
7024 * xmenu.c (single_menu_item): Change last parameter to void* to
7025 avoid warning.
7026
ca2de342
RS
70272003-05-09 Richard M. Stallman <rms@gnu.org>
7028
7029 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7030 Bind Qinhibit_modification_hooks to t so there will be no GC.
7031 Rename local `tem' to `save_deactivate_mark'.
7032
7033 * eval.c (specpdl_ptr): Declare volatile.
7034 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7035 before doing the work of unbinding it.
7036
7037 * lisp.h (struct specbinding): Declare elements volatile.
7038 (specpdl_ptr): Declare volatile.
7039
7040 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7041
7042 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7043 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7044
347003be
DL
70452003-05-08 Dave Love <fx@gnu.org>
7046
7047 * coding.c (Vlast_coding_system_used): Doc fix.
7048
5adcec23
JR
70492003-05-07 Jason Rumney <jasonr@gnu.org>
7050
7051 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7052 when system does not support them.
7053
5fe3b8a4
SM
70542003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7055
7056 * fileio.c (Qwrite_region_annotate_functions): New var.
7057 (build_annotations): Use it to process the global part of the hook.
7058 (syms_of_fileio): Init and staticpro it.
7059
7060 * keyboard.c (safe_run_hooks_error): Display a message instead of
7061 silently ignoring the error.
7062
70632003-05-03 Stefan Monnier <monnier@cs.yale.edu>
7064
7065 * keyboard.c (input_available_signal): Mark static.
7066 (menu_bar_items): Use map_keymap.
7067 (menu_bar_one_keymap): Remove.
7068 (menu_bar_item): Adjust arglist (for use in map_keymap).
7069 Properly hide a second binding when not both are keymaps.
7070
7071 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
7072 (single_keymap_panes): Use it and map_keymap.
7073 (single_menu_item): Use skp as well.
7074
7075 * keymap.h (map_keymap_function_t): New type.
7076 (map_keymap): Declare.
7077
7078 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
7079 (map_keymap_call, Fmap_keymap): New functions.
7080 (syms_of_keymap): Defsubr map-keymap.
7081
4b1b4443
JD
70822003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7083
7084 * gtkutil.c (create_dialog, make_widget_for_menu_item)
7085 (make_menu_item, create_menus, xg_update_menu_item): Don't call
7086 ..._with_mnemonic functions for menu items.
7087
1f816871
KH
70882003-05-01 Kenichi Handa <handa@m17n.org>
7089
7090 * coding.c (coding_system_accept_latin_extra_p): Delete this
7091 function.
7092 (find_safe_codings): Pay attention to
7093 the property tranlsation-table-for-encode of each codings.
7094 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
7095
5ed6ba5b
SM
70962003-05-01 Stefan Monnier <monnier@cs.yale.edu>
7097
7098 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
7099
32c06229
SM
71002003-04-30 Stefan Monnier <monnier@cs.yale.edu>
7101
7102 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
7103
7104 * lisp.h (CHECK): Wrap args in parenthesis.
7105 (specbind): Fix doc: symbol = Qnil is not supported any more.
7106
7107 * bytecode.c (Fbyte_code) <unwind-protect>:
7108 Use Fprogn rather than 0 and Qnil.
7109
7110 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
7111 `double', and `triple' modifiers as well.
7112
ed3c3314
RS
71132003-04-30 Richard M. Stallman <rms@gnu.org>
7114
7115 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
7116
7117 * alloc.c (abort_on_gc): New variable.
7118 (Fgarbage_collect): Abort if abort_on_gc is set.
7119
7120 * lisp.h (abort_on_gc): Add decl.
7121
7122 * eval.c (Fsignal): Clear abort_on_gc.
7123
7124 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 7125 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
7126
7127 * xdisp.c (move_it_vertically_backward): Do the final big else
7128 even if nlines is 0.
7129
7130 * xdisp.c (redisplay_internal): Finish the per-frame loop
7131 even if redisplay is suspended by input.
7132
0b325c12
AC
71332003-04-24 Andrew Choi <akochoi@shaw.ca>
7134
7135 * macterm.c (x_list_fonts): Return all fonts that match if
7136 maxnames = -1.
7137
4e837cd0
KH
71382003-04-25 Kenichi Handa <handa@m17n.org>
7139
7140 * syntax.c (skip_chars): Fix previous change.
7141
9af7511a
KH
71422003-04-24 Kenichi Handa <handa@m17n.org>
7143
7144 * syntax.c (skip_chars): Make the code faster by using the common
7145 technique of *p, *stop, and *endp.
7146
e3b2c21f
JD
71472003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7148
7149 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 7150 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
7151 being updated.
7152
32c06229
SM
71532003-04-19 Stefan Monnier <monnier@cs.yale.edu>
7154
7155 * eval.c (Fapply): Undo last change and add a comment about why.
7156
c6464167
MB
71572003-04-18 Miles Bader <miles@gnu.org>
7158
7159 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
7160 pickier PARSE_MULTIBYTE_SEQ.
7161
e509f168
SM
71622003-04-17 Stefan Monnier <monnier@cs.yale.edu>
7163
7164 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
7165 Use XCDR, XCAR, CONSP.
7166 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
7167 (Fapply): Remove unnecessary GCPRO.
7168
7169 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
7170
7171 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
7172
7173 * buffer.h: Don't hardcode BEG==1.
7174
7175 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
7176
5ceea398
RS
71772003-04-16 Richard M. Stallman <rms@gnu.org>
7178
7179 * xdisp.c (try_window, try_window_reusing_current_matrix):
7180 When at end of window, set window_end_pos to Z-ZV.
7181
7182 * buffer.c (Foverlay_recenter): Doc fix.
7183
e509f168
SM
71842003-04-14 Stefan Monnier <monnier@cs.yale.edu>
7185
7186 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
7187
d243e605
AC
71882003-04-14 Andrew Choi <akochoi@shaw.ca>
7189
7190 * macterm.c (mac_check_for_quit_char): Don't check more often than
7191 once a second.
7192
6901b111
SM
71932003-04-11 Stefan Monnier <monnier@cs.yale.edu>
7194
7195 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
7196 specially, so that they can't hide an implicit switch-frame event.
7197 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
7198 (head_table): Use switch-frame as event_kind for select-window.
7199 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
7200
7201 * editfns.c (Fformat): Lisp_Object/int mixup.
7202 (format2): Remove unused var numargs.
7203
e301806f 72042003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 7205
6901b111 7206 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
7207 (Qafter_insert_file_set_coding): New variable.
7208 (syms_of_fileio): Initialize and staticpro it. Delete declaration
7209 for after-insert-file-adjust-coding-function.
7210 (Finsert_file_contents): Call Qafter_insert_file_set_coding
7211 instead of Vafter_insert_file_adjust_coding_function.
7212
38914424
KH
72132003-04-11 Kenichi Handa <handa@m17n.org>
7214
7215 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
7216
7217 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
7218 string. Callers changed.
7219
72202003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 7221
6901b111 7222 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 7223 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
7224 (Finsert_file_contents):
7225 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
7226 decode-format.
7227
f979dc05
JD
72282003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7229
7230 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
7231 get GtkAdjustment as widget now is a GtkRange.
7232
7233 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
7234 GtkRange to avoid memory leak.
7235
f8c6b4c2 72362003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 7237
50ebc53d
KH
7238 * xfaces.c (Vface_font_rescale_alist): New variable.
7239 (struct font_name): New member rescale_ratio.
7240 (font_rescale_ratio): New function.
6901b111 7241 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
7242 (better_font_p): On comparing point sized, pay attention to
7243 recale_ratio member of fonts.
7244 (build_scalable_font_name): Reflect font->rescale_ratio in the
7245 font name.
6901b111 7246 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 7247
cb98871c
KH
7248 * lread.c (read1): Before calling index, check if the 2nd
7249 arguemnt is in ASCII range.
7250
4773b8ca
RS
72512003-04-08 Richard M. Stallman <rms@gnu.org>
7252
b0ada147
RS
7253 * fileio.c (Ffile_symlink_p): Doc fix.
7254
7255 * editfns.c (Fformat): Translate positions of text properties
7256 in the format string to apply them to the result.
7257
4773b8ca
RS
7258 * fileio.c (Finsert_file_contents): Doc fix.
7259 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
7260
72612003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 7262
4773b8ca
RS
7263 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
7264
e8f25745 72652003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 7266
e8f25745
ST
7267 * mac.c (init_mac_osx_environment): Switch libexec and bin so
7268 that self-contained application finds libexec files.
7269
f8c6b4c2 72702003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 7271
6901b111
SM
7272 * coding.c (code_convert_region_unwind):
7273 Set Vlast_coding_system_used to the argument.
2310d84c
KH
7274 (code_convert_region): If post-read-conversion function changed
7275 the value of last-coding-sytem, keep the new value in
7276 coding->symbol so that it won't be overridden.
7277 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
7278 (coding_system_accept_latin_extra_p): New function.
7279 (find_safe_codings): Pay attention to characters registered in
7280 latin-extra-code-table.
2310d84c 7281
39c9a034
TTN
72822003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
7283
7284 * Makefile.in (md5.o): Add missing dependency info.
7285
eb67c5d6
RS
72862003-04-06 Richard M. Stallman <rms@gnu.org>
7287
7288 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
7289
7290 * marker.c (verify_bytepos): New function.
7291
7292 * intervals.c (set_intervals_multibyte_1): When becoming
7293 multibyte, adjust right and left child sizes to a whole set of
7294 characters. If an interval gets zero total-length, delete it.
7295 If an interval consists of just its children, delete one of them.
7296
7297 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
7298 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 7299
eb67c5d6
RS
7300 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
7301 All calls deleted.
7302 (lisp_malloc): Do the work here directly.
7303
b1f81fc5
JB
73042003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
7305
7306 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
7307 char tables.
7308
73092003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
7310
7311 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
7312 destructively change "%S" to "%s".
7313
774666fb
MB
73142003-04-03 Miles Bader <miles@gnu.org>
7315
7316 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
7317 always set.
7318
19c37f01
DL
73192003-04-01 Dave Love <fx@gnu.org>
7320
7321 * xfns.c (xpm_lookup_color): Grok "opaque".
7322
2f4b24c3
AC
73232003-03-31 Andrew Choi <akochoi@shaw.ca>
7324
7325 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
7326 parent window ID.
7327
7328 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
7329
7330 * macterm.h (struct mac_output): Define x_pixels_diff and
7331 y_pixels_diff.
b1f81fc5 7332
9443fcf6
JB
73332003-03-31 Juanma Barranquero <lektu@terra.es>
7334
7335 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
7336 blockinput.h and files included from it.
7337
e072891b
KS
73382003-03-31 Kim F. Storm <storm@cua.dk>
7339
7340 The following changes consolidates the common code related to
7341 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
7342 files into frame.c.
9443fcf6 7343
e072891b
KS
7344 * frame.c: Include blockinput.h.
7345 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
7346 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
7347 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
7348 related vars here.
7349 (struct frame_parm_table, frame_parms): New table for describing
7350 frame parameters and their associated Q-variable.
7351 The order of the parameters corresponds to the sequence of the
7352 frame_parm_handlers table in redisplay_interface.
7353 (x_fullscreen_move, x_set_frame_parameters)
7354 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
7355 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
7356 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7357 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
7358 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
7359 Generic functions for processing of frame parameters.
7360 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
7361 (display_x_get_resource, x_get_resource_string): Functions for
7362 generic access to X resources.
7363 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7364 (x_default_parameter, Fx_parse_geometry): Functions for generic
7365 access to frame parameters.
6901b111
SM
7366 (x_figure_window_size): Generic calculation of frame size.
7367 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
7368 (syms_of_frame): Intern and staticpro frame parameter variables.
7369 Defvar_lisp Vx_resource_class and Vx_resource_name here.
7370 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 7371
e072891b
KS
7372 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
7373 parameter related vars defined in frame.c.
7374 (EMACS_CLASS): Define here.
7375 (enum FULLSCREEN_*): Define here.
7376 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
7377 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
7378 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
7379 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
7380 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
7381 (x_set_visibility, x_set_autoraise, x_set_autolower)
7382 (x_set_unsplittable, x_set_vertical_scroll_bars)
7383 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
7384 (x_figure_window_size): Add prototypes.
7385
7386 * dispextern.h (frame_parm_handler): New typedef.
7387 (struct redisplay_interface): New member frame_parm_handlers.
7388 (enum resource_types): Move declaration here.
7389 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7390 (x_default_parameter): Add prototypes.
7391
7392 * window.c: Remove extern decl for frame parameter vars.
7393 (change_window_heights): New generic function;
7394 replaces x_change_window_heights. All users changed.
7395
7396 * window.h (change_window_heights): Add prototype.
7397
7398 * xfaces.c: Remove extern decl for frame parameter vars.
7399
7400 * xterm.h (EMACS_CLASS): Remove. Use generic define.
7401 (struct w32_display_info): Fix type of xrdb member.
7402 (enum FULLSCREEN_*): Remove.
7403 Remove prototypes for generic functions (in frame.h).
7404
7405 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7406 parameters now defined in frame.h and frame.c.
f63fd14e 7407 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7408 (enum x_frame_parms): Remove (bogus, unused enum).
7409 (check_x_display_info): Make non-static (for frame.c).
7410 (struct x_frame_parm_table, x_frame_parms): Remove.
7411 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7412 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7413 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7414 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7415 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7416 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7417 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7418 Remove. Use generic functions instead.
7419 (enum resource_types): Remove.
7420 (x_set_scroll_bar_default_width): New global function (for frame.c).
7421 (Fx_create_frame): Depend on x_figure_window_size to add space for
7422 toolbar and setup size_hint_flags.
7423 (x_frame_parm_handlers): New table for redisplay_interface.
7424 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 7425
e072891b 7426 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 7427 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
7428 (x_redisplay_interface): Add x_frame_parm_handlers member.
7429
7430 * w32gui.h (XrmDatabase): New (dummy) typedef.
7431
7432 * w32term.h (EMACS_CLASS): Remove. Use generic define.
7433 (struct w32_display_info): Fix type of xrdb member.
7434 (enum FULLSCREEN_*): Remove.
7435 (x_fullscreen_adjust): Remove prototype.
7436
7437 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7438 parameters now defined in frame.h and frame.c.
f63fd14e 7439 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7440 (enum x_frame_parms): Remove (bogus, unused enum).
7441 (check_x_display_info): Make non-static (for frame.c).
7442 (struct x_frame_parm_table, x_frame_parms): Remove.
7443 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7444 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7445 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7446 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7447 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7448 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7449 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7450 Remove. Use generic functions instead.
7451 (enum resource_types): Remove.
7452 (x_set_scroll_bar_default_width): New global function (for frame.c).
7453 (Fx_create_frame): Depend on x_figure_window_size to add space for
7454 toolbar and setup size_hint_flags.
7455 (w32_frame_parm_handlers): New table for redisplay_interface.
7456 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 7457
e072891b
KS
7458 * w32term.c: Remove unnecessary extern declarations.
7459 (x_fullscreen_adjust): Remove. Use generic instead.
7460 (x_redisplay_interface): Add w32_frame_parm_handlers member.
7461
7462 * w32reg.c (x_get_string_resource): Use XrmDatabase.
7463
7464 * macgui.h (XrmDatabase): New (dummy) typedef.
7465
7466 * macterm.h (EMACS_CLASS): Remove.
7467 (struct mac_display_info): Add xrdb member.
7468 (struct mac_output): Add want_fullscreen member.
7469
7470 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7471 parameters now defined in frame.h and frame.c.
f63fd14e 7472 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7473 (check_x_display_info): Make non-static (for frame.c).
7474 (struct x_frame_parm_table, x_frame_parms): Remove.
7475 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7476 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7477 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7478 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7479 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7480 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7481 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7482 Remove. Use generic functions instead.
7483 (enum resource_types): Remove.
7484 (x_set_scroll_bar_default_width): New global function (for frame.c).
7485 (mac_frame_parm_handlers): New table for redisplay_interface.
7486 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 7487
e072891b
KS
7488 * macterm.c: Remove unnecessary extern declarations.
7489 (x_redisplay_interface): Add mac_frame_parm_handlers member.
7490
3e6a560b
KS
7491 * Makefile.in (frame.o): Add dependency on blockinput.h and files
7492 included from it (atimer.h and systime.h).
7493
7b7b454e
AS
74942003-03-30 Andreas Schwab <schwab@suse.de>
7495
7496 * xdisp.c (x_insert_glyphs): Fix swapped width and height
7497 parameters for shift_glyphs_for_insert.
7498
7499 * macterm.c (x_redisplay_interface): Add missing entry for
7500 draw_vertical_window_border.
7501
beb402de
KG
75022003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7503
7504 * fileio.c (Fexpand_file_name): In the no-handler case, after
7505 expanding, look again for a handler and invoke it. This is needed
7506 for filenames like "/foo/../user@host:/bar/../baz" -- the first
7507 expansion produces "/user@host:/bar/../baz" which needs to be
7508 expanded again for the finame result "/user@host:/baz".
7509
b676f356
JD
75102003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7511
7512 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
7513 of area to be redrawn for better performance.
7514
3c671a56
SM
75152003-03-28 Stefan Monnier <monnier@cs.yale.edu>
7516
7517 * xterm.c (take_vertical_position_into_account): Remove.
7518 (xt_action_hook): Call set_vertical_scroll_bar if needed.
7519 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
7520 (xm_scroll_callback, x_create_toolkit_scroll_bar)
7521 (x_set_toolkit_scroll_bar_thumb): Simplify.
7522 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
7523 (XTread_socket): Remove unused var.
7524 (x_make_frame_invisible): Replace goto with else.
7525
7526 * xdisp.c (set_vertical_scroll_bar): New fun.
7527 (redisplay_window): Use it.
7528
84f2e615
RS
75292003-03-26 Richard M. Stallman <rms@gnu.org>
7530
7531 * xdisp.c (update_tool_bar): Recompute tool bar if
7532 update_mode_lines is set. Set w->update_mode_line
7533 only if the tool bar contents actually change.
7534 (update_menu_bar): Undo previous change.
7535
70b6104c
JD
75362003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7537
5fd6f727
JD
7538 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
7539 (xg_frame_set_char_size): Calculate scroll bar width before frame
7540 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
7541 (xg_separator_p): Check for all documented separator types.
7542 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
7543 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
7544
70b6104c
JD
7545 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
7546 so tool bar gets updated.
7547
d9b36d19
SM
75482003-03-26 Stefan Monnier <monnier@cs.yale.edu>
7549
7550 * data.c (store_symval_forwarding): Re-instate part of the code
7551 that was deleted with too much enthusiasm.
7552
75532003-03-25 Stefan Monnier <monnier@cs.yale.edu>
7554
7555 * data.c (store_symval_forwarding): Delete special read-only
7556 hack for type == -1, since we now use ->constant instead.
7557 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
7558
7559 * buffer.c (overlays_in): Declare static.
7560 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
7561 `constant' field rather than the variable's `type' field.
7562
365fa1b3
AC
75632003-03-24 Andrew Choi <akochoi@shaw.ca>
7564
7565 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
7566
7567 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
7568
7569 * fns.c [MAC_OSX]: Do not redefine vector.
7570
7571 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
7572
7573 * macgui.h: Remove definition of No_Cursor.
7574
d9b36d19 7575 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
7576
7577 * xdisp.c: Define No_Cursor.
7578 (x_write_glyphs, notice_overwritten_cursor)
7579 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
7580 (note_mouse_highlight): Remove Mac-specific code.
7581 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 7582
c0bcce6f
JPW
75832003-03-24 John Paul Wallington <jpw@gnu.org>
7584
7585 * xdisp.c (redisplay_window): If mini window's buffer is not
7586 empty, then redisplay it like other windows.
7587
a526b96c
KS
75882003-03-23 Kim F. Storm <storm@cua.dk>
7589
7590 * w32term.c (w32_draw_window_cursor): Fix last change.
7591
37ab321e
KH
75922003-03-23 Kenichi Handa <handa@m17n.org>
7593
a526b96c
KS
7594 * alloc.c (make_string_from_bytes, make_specified_string):
7595 Add `const' for the arg CONTENTS.
37ab321e
KH
7596
7597 * lisp.h (make_string_from_bytes, make_specified_string):
7598 Prototypes adjusted.
7599
7863d625
JD
76002003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7601
a526b96c 7602 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 7603
7863d625
JD
7604 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
7605 (XG_SB_RANGE): New define.
7606
7607 * gtkutil.c (xg_fixed_handle_expose): New function.
7608 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
7609 expose events.
7610 (xg_update_scrollbar_pos): Take two more arguments, left and width
7611 of scroll bar including borders.
7612 Clear left and right part outside scroll bar separately as some
7613 themes have bars that are not an even number of pixels.
d9b36d19 7614 Don't set reallocate_redraws, don't call
7863d625
JD
7615 gdk_window_process_all_updates.
7616 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
7617 so no need to change it. Calculate size and value with XG_SB_RANGE.
7618
d9b36d19
SM
7619 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
7620 Pass left and width of scroll bar including borders to
7863d625
JD
7621 xg_update_scrollbar_pos.
7622
af0ad939
TTN
76232003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
7624
7625 * Makefile.in: Make sure space precedes end-of-line backslashes.
7626
b22139fd
KS
76272003-03-22 Kim F. Storm <storm@cua.dk>
7628
7629 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
7630 Add generic versions here. Remove system specific versions
7631 defined elsewhere.
7632
7633 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
7634 Add prototypes.
7635
6e6410cf
KS
7636 * xterm.h (STORE_NATIVE_RECT): New macro.
7637
5c9cc435
KS
76382003-03-21 Kim F. Storm <storm@cua.dk>
7639
00c64fab
SM
7640 * xdisp.c (get_glyph_string_clip_rect):
7641 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
7642
7643 * dispextern.h (struct redisplay_interface): Add active_p
7644 argument to draw_window_cursor member. All uses changed.
7645
acd37560
KS
76462003-03-21 Kim F. Storm <storm@cua.dk>
7647
7648 The following changes consolidate code related to writing and
7649 inserting glyphs, exposing frame, the tool bar, the mouse face,
7650 the output cursor, and help echo from xterm.c, w32term.c and
7651 macterm.c into xdisp.c. It also generalizes the use of the
7652 window_part enum instead of using numeric values throughout.
af0ad939 7653
acd37560
KS
7654 * xdisp.c: Consolidate gui-independent code here.
7655 Include keymap.h.
7656 (Qhelp_echo): Import.
7657 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
7658 (help_echo_string, help_echo_window, help_echo_object)
7659 (previous_help_echo_string, help_echo_pos): Declare here.
7660 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
7661 (estimate_mode_line_height): Define here. Handle windowing
7662 systems directly (without using estimate_mode_line_height_hook).
7663 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
7664 (update_window_cursor, update_cursor_in_window_tree)
7665 (fast_find_position, fast_find_string_pos)
7666 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
7667 (expose_area, expose_line, expose_overlaps, expose_window)
7668 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
7669 declared static as they are only used locally in xdisp.c.
7670 (draw_glyphs): Rename from x_draw_glyphs and make static.
7671 (tool_bar_item_info, notice_overwritten_cursor): Make static.
7672 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7673 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 7674 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
7675 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7676 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
7677 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
7678 (note_mouse_highlight, x_clear_window_mouse_face)
7679 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
7680 (x_intersect_rectangles): New generic functions for use by xdisp.c
7681 and GUI front-ends.
7682 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
7683 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
7684
7685 * dispextern.h (Display_Info): Generic typedef for *_display_info.
7686 (NativeRectangle): Generic typedef for rectangle type.
7687 (enum window_part): Move here from window.c.
7688 (struct redisplay_interface): New members flush_display_optional,
7689 define_frame_cursor, clear_frame_area, draw_window_cursor,
7690 draw_vertical_window_border, shift_glyphs_for_insert.
7691 Rename member clear_mouse_face to clear_window_mouse_face.
7692 (estimate_mode_line_height_hook): Remove hook.
7693 (auto_raise_tool_bar_buttons_p): Don't declare extern.
7694 (tool_bar_item_info): Remove prototype.
7695 (help_echo_string, help_echo_window, help_echo_object)
7696 (previous_help_echo_string, help_echo_pos)
7697 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
7698 (x_stretch_cursor_p, output_cursor): Declare extern.
7699 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
7700 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
7701 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7702 (display_and_set_cursor, set_output_cursor, x_cursor_to)
7703 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
7704 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7705 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
7706 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
7707 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
7708 Add prototypes.
7709 (mode_line_string, marginal_area_string): Fix prototypes.
7710
7711 * window.c (enum window_part): Move to dispextern.h.
7712 (coordinates_in_window): Use enum window_part member names
7713 instead of numbers to describe return value.
7714 (struct check_window_data): Change part member to window_part.
7715 (check_window_containing): Return window_part unaltered.
7716 (window_from_coordinates): Change part arg from int to enum
7717 window_part. Allow part arg to be null. All users changed.
7718
7719 * window.h (window_from_coordinates): Fix prototype.
7720
7721 * term.c (estimate_mode_line_height): Move to xdisp.c.
7722
7723 * keyboard.c (make_lispy_event): Use enum window_part.
7724
7725 * dispnew.c (mode_line_string, marginal_area_string): Use enum
7726 window_part instead of int in arg list. Users changed.
7727
7728 * xterm.h (No_Cursor): Declare as None for X.
7729 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 7730
acd37560
KS
7731 * xterm.c: Remove consolidated defines and code.
7732 (BETWEEN): Remove unused macro.
7733 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
7734 (x_define_frame_cursor, x_clear_frame_area)
7735 (x_draw_window_cursor): New X-specific functions for RIF.
7736 (x_redisplay_interface): Add new members.
7737
7738 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
7739
7740 * w32term.h (struct w32_output): Remove cross_cursor member.
7741
7742 * w32term.c: Remove consolidated defines and code.
7743 (BETWEEN): Remove unused macro.
7744 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
7745 (w32_define_frame_cursor, w32_clear_frame_area)
7746 (w32_draw_window_cursor): New W32-specific functions for RIF.
7747 (w32_redisplay_interface): Add new members.
7748
a64387ee 7749 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
7750 (XRectangle): Add X compatible rectangle type.
7751 (NativeRectangle): Declare as RECT for W32.
7752 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7753
7754 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
7755
7756 * w32console.c: Remove consolidated defines and code.
af0ad939 7757
acd37560
KS
7758 * msdos.h (Display_Info): Add generic typedef.
7759
7760 * msdos.c: Remove consolidated defines and code.
7761 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
7762
7763 * macterm.h (struct mac_output): Replace member cross_cursor by
7764 hand_cursor.
7765 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
7766
7767 * macterm.c: Remove consolidated defines and code.
7768 (BETWEEN): Remove unused macro.
7769 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
7770 (mac_define_frame_cursor, mac_clear_frame_area)
7771 (mac_draw_window_cursor): New Mac-specific functions for RIF.
7772 (x_redisplay_interface): Add new members.
7773
7774 * macgui.h (No_Cursor): Define as 0 for Mac.
7775 (XRectangle): Add X compatible rectangle type.
7776 (NativeRectangle): Declare as Rect for Mac.
7777 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7778
204ccab1
KS
7779 * macfns.c (x_set_mouse_color): Setup hand_cursor.
7780 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 7781
9443fcf6 7782 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
7783 included from it. Add dependency on keymap.h.
7784
7785 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
7786
8ba01a70 77872003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
7788
7789 * fileio.c (Fexpand_file_name): Fix previous change.
7790
8ba01a70 77912003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
7792
7793 * fileio.c (Ffile_name_directory): Reconstruct file name by
7794 make_specified_string.
7795 (Ffile_name_nondirectory, Ffile_name_as_directory)
7796 (Fdirectory_file_name, Fexpand_file_name)
7797 (Fsubstitute_in_file_name): Likewise.
7798 (Fread_file_name): Compare decoded homedir with DIR and
7799 DEFAULT_FILENAME.
7800
7801 * alloc.c (make_specified_string): If NCHARS is negative, count
7802 the number of characters.
7803
19536747
JD
78042003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7805
de38ae5a
JD
7806 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
7807 all widgets.
7808
19536747
JD
7809 * gtkutil.h: Removed xg_ignore_next_thumb.
7810
37ab321e 78112003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
7812
7813 * coding.c (Vchar_coding_system_table): Remove this variable.
7814 (Vcoding_system_safe_chars): New variable.
7815 (intersection): Remove this function.
7816 (find_safe_codings): Don't use Vchar_coding_system_table, but try
7817 all codings in SAFE_CODINGS.
00c64fab 7818 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
7819 find_safe_codings. Get generic coding systems from
7820 Vcoding_system_safe_chars.
7821 (Fdefine_coding_system_internal): New function.
7822 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
7823 Initialize and staticpro Vcoding_system_safe_chars.
7824
17097258
JD
78252003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7826
2a2071c3
JD
7827 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
7828 equal old values before updating.
7829
17097258
JD
7830 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
7831
7832 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
7833
78342003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7835
7836 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
7837 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
7838 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
7839 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
7840 (xg_create_scroll_bar): Pass bar to button event callback.
7841 (xg_find_top_left_in_fixed): New function.
7842 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
7843 whole scroll bar area. Get old position with
7844 xg_find_top_left_in_fixed, calculate and only clear needed areas.
7845 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
7846 dragging is in progress. Calculate whole as for Motif.
7847 Remove code that saved last values. Call gtk_range functions to
7848 set scroll bar sizes.
7849
7850 * gtkutil.h: Removed xg_ignore_next_thumb.
7851
8cb9dfbf
JB
78522003-03-17 Juanma Barranquero <lektu@terra.es>
7853
7854 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
7855 and files included from it.
7856
00c64fab
SM
78572003-03-18 Stefan Monnier <monnier@cs.yale.edu>
7858
7859 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
7860 multiple occurrences of the same keymap under different prefixes.
7861 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
7862
c45bb3b2
JR
78632003-03-16 Jason Rumney <jasonr@gnu.org>
7864
7865 * w32gui.h: Use HDC for Display.
7866
7867 * w32term.c (w32_encode_char): Prevent double-byte chars from
7868 crashing Emacs.
7869
7870 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
7871 as binary.
7872
2a6d0874
JB
78732003-03-16 Juanma Barranquero <lektu@terra.es>
7874
7875 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
7876
03eb5fab
KS
78772003-03-16 Kim F. Storm <storm@cua.dk>
7878
7879 The following changes consolidate some of the gui-independent
7880 parts of the processing and drawing of "glyph strings" from
7881 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 7882
03eb5fab
KS
7883 * dispextern.h (struct glyph): Reduce face_id member from 22 to
7884 21 bits (this reduces number of faces from 4M to 2M).
7885 Replace W32 specific w32_font_type member (2 bits) by generic
7886 font_type member (3 bits) for portability.
7887 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
7888 (enum draw_glyphs_face): Define here.
7889 (struct glyph_string): Define here. Merge W32 and X versions.
7890 (struct redisplay_interface): New members per_char_metric,
7891 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
7892 (VCENTER_BASELINE_OFFSET): Define here.
7893 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
7894 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
7895
7896 * xdisp.c: Consolidate gui-independent "glyph string" code here.
7897 (dump_glyph_string): Moved here.
7898 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
7899 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
7900 (fill_composite_glyph_string, fill_glyph_string)
7901 (fill_image_glyph_string, fill_stretch_glyph_string)
7902 (left_overwritten, left_overwriting, right_overwritten)
7903 (right_overwriting, get_char_face_and_encoding)
7904 (set_glyph_string_background_width, compute_overhangs_and_x)
7905 (append_glyph, append_composite_glyph, produce_image_glyph)
7906 (take_vertical_position_into_account, append_stretch_glyph)
7907 (produce_stretch_glyph): New generic functions (based on X version).
7908 Call platform specific functions through rif.
7909 (INIT_GLYPH_STRING): New macro, hides W32 details.
7910 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
7911 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
7912 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
7913 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
7914 (notice_overwritten_cursor):
7915 Generic functions exported to platform modules. Users changed.
7916
7917 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
7918 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
7919 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 7920 New macros for consolidated code.
2a6d0874 7921
03eb5fab
KS
7922 * xterm.c: Remove consolidated defines and code.
7923 (x_per_char_metric, x_encode_char)
7924 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
7925 (x_redisplay_interface): Add new members.
7926
7927 * w32gui.h (Display): Add dummy typedef for consolidation.
7928 (XChar2b): Define alias for wchar_t for consolidation.
7929 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7930
7931 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 7932 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
7933 New macros for consolidation.
7934
fad49844 7935 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
7936 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
7937 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
7938 (w32_per_char_metric): Change font_type arg to int for RIF.
7939 (w32_encode_char): Return int according to RIF requirements.
7940 (w32_compute_glyph_string_overhangs): Adapt to RIF.
7941 (w32_get_glyph_overhangs): New function for RIF. Uses generic
7942 x_get_glyph_overhangs.
7943 (w32_redisplay_interface): Add new members.
7944
7945 * macgui.h (XChar2b): Move typedef here for consolidation.
7946 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7947
7948 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
7949 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
7950 consolidation.
7951
7952 * macterm.c: Remove consolidated defines and code.
7953 (mac_per_char_metric): New function for RIF.
00c64fab 7954 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
7955 (mac_compute_glyph_string_overhangs): Adapt for RIF.
7956 (x_redisplay_interface): Add new members.
7957
00c64fab
SM
79582003-03-15 Stefan Monnier <monnier@cs.yale.edu>
7959
7960 * keymap.c (Vmenu_events): New var.
7961 (syms_of_keymap): Initialize it.
7962 (where_is_internal): Check more carefully what is a menu event.
7963
225c7a07
RS
79642003-03-14 Richard M. Stallman <rms@gnu.org>
7965
7966 * lread.c (read1): After #!, exit loop on eof.
7967
cea9be54
JD
79682003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7969
9ea0e54d
JD
7970 * gtkutil.h: Add declaration for xg_frame_cleared.
7971
0cb35f4e
JD
7972 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
7973
cea9be54
JD
7974 * gtkutil.c (struct xg_last_sb_pos): New structure.
7975 (handle_fixed_child): New function.
7976 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
7977 and force a redraw on them.
7978 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
7979 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
7980 so we can avoid unneeded redraws.
7981 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
7982 and force a redraw on the scroll bar.
7983 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
7984 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 7985 (xg_frame_cleared): New function.
cea9be54 7986
20b853f3
KH
79872003-03-13 Kenichi Handa <handa@m17n.org>
7988
7989 * coding.c (Fdetect_coding_region): Fix docstring.
7990 (Fdetect_coding_string): Fix docstring.
7991
7a555aff
AS
79922003-03-13 Andreas Schwab <schwab@suse.de>
7993
25cc0080
AS
7994 * gtkutil.c: Add prototype for create_menus.
7995
30225431
AS
7996 * data.c (long_to_cons): Fix type of top.
7997
7998 * xselect.c (selection_data_to_lisp_data): Use int instead of
7999 long for an integer of size 4.
8000
7a555aff 8001 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 8002 (xg_tool_bar_help_callback): Likewise.
7a555aff 8003
a3e4741f
AS
80042003-03-12 Andreas Schwab <schwab@suse.de>
8005
8006 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8007
9668be7c
KS
80082003-03-12 Kim F. Storm <storm@cua.dk>
8009
03eb5fab 8010 The following changes consolidate the fringe handling from
9668be7c 8011 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 8012
9668be7c
KS
8013 * xdisp.c: Consolidate fringe handling code here.
8014 (left_bits, right_bits, continued_bits, continuation_bits)
8015 (ov_bits, zv_bits): Define fringe bitmaps.
8016 (fringe_bitmaps): New array holding fringe bitmaps.
8017 (draw_fringe_bitmap): Draw a specific bitmap; call display
8018 specific drawing routine via rif->draw_fringe_bitmap.
8019 (draw_row_fringe_bitmaps): Generic replacement for
8020 x_draw_row_fringe_bitmaps; all callers changed.
8021 (compute_fringe_widths): Generic replacement for
8022 x_compute_fringe_widths; all callers changed.
8023
8024 * dispextern.h (enum fringe_bitmap_type): Define here.
8025 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8026 (fringe_bitmaps): Declare extern.
8027 (struct redisplay_interface): New member draw_fringe_bitmap.
8028 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8029
8030 * xterm.c: Remove generic fringe code.
8031 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8032 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8033
8034 * w32term.c: Remove generic fringe code.
8035 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8036 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 8037
9668be7c
KS
8038 * macterm.c: Remove generic fringe code.
8039 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8040 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8041
00a88f32
SM
80422003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8043
8044 * print.c (Fprin1_to_string): Return unibyte string if possible.
8045
1d1de695
DK
80462003-03-09 David Kastrup <dak@gnu.org>
8047
8048 * process.c (read_process_output): We have allocated enough space
8049 for readmax and carryover, so actually use the alloted space.
8050
257f40f2
JD
80512003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8052
8053 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8054 toolkit scrollbar click.
8055
8056 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8057 for USE_GTK.
8058 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8059 also.
8060 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8061 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 8062
257f40f2
JD
8063 * gtkutil.h: Declare xg_get_scroll_id_for_window.
8064
8065 * gtkutil.c (xg_get_scroll_id_for_window): New function.
8066 (xg_tool_bar_item_expose_callback): New function.
8067 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
8068 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
8069 on the tool bar widget.
8070 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
8071 to expose on the tool bar item widgets.
8072
15213141
JD
80732003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8074
26b74a0b 8075 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 8076 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
8077 deleted from the image cache).
8078
15213141
JD
8079 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
8080 the event isn't for a frame (i.e. for dialogs).
8081
20b853f3 80822003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
8083
8084 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
8085 composition components reaches the limit, terminate composing.
8086 (COMPOSITION_OK): New macro.
00a88f32 8087 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
8088 composition is found.
8089 (coding_restore_composition): Adjust the number of composition
8090 components if it is not sane.
8091
c9029fe5
JB
80922003-03-06 Juanma Barranquero <lektu@terra.es>
8093
8094 * w32term.h (struct w32_display_info): Add xrdb member to support
8095 passing resources via -xrm on Windows.
8096
8097 * w32term.c (w32_make_rdb): New function.
8098 (w32_term_init): Use it to initialize xrdb member of w32_display_info
8099 struct. Delete leftover code.
8100
8101 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
8102 for resources passed on the command line.
8103
8104 * w32reg.c (w32_get_rdb_resource): New function.
8105 (x_get_string_resource): Use it, so resources passed with -xrm
8106 supercede the ones in the registry.
8107
9d00001f
JD
81082003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8109
8110 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
8111 instead of x_top_window_to_frame.
8112
ca2417b9
JD
81132003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8114
8115 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
8116 when restarting Emacs.
8117
5b20caf0
RS
81182003-03-03 Richard M. Stallman <rms@gnu.org>
8119
8120 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
8121 to run kill-buffer-query-functions.
8122 (Qkill_buffer_query_functions): New var.
8123 (syms_of_buffer): Init and staticpro it.
8124
58e91b77
JD
81252003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8126
8127 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
8128
932357b4
KS
81292003-02-25 Kim F. Storm <storm@cua.dk>
8130
8131 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
8132 If centering point failed to make whole line visible and vscroll
8133 is non-zero, disable vscroll and try centering point again.
8134
8135 * lread.c (read1): Accept `single space' syntax like (? x).
8136
bb8db7e1
JD
81372003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8138
8139 * keyboard.c (cancel_hourglass_unwind): Surround with
8140 #ifdef HAVE_X_WINDOWS
8141
47d77aab
KH
81422003-02-25 Kenichi Handa <handa@m17n.org>
8143
8144 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
8145 process only when "subprocesses" is defined.
8146
6a097c0c
SM
81472003-02-24 Stefan Monnier <monnier@cs.yale.edu>
8148
8149 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
8150
0b063c27
JB
81512003-02-24 Juanma Barranquero <lektu@terra.es>
8152
d1135afc
JB
8153 * callint.c (fix_command): Declare as static void and move before
8154 Fcall_interactively.
8155
0b063c27
JB
8156 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
8157 (syms_of_xdisp): Don't initialize Qwhen.
8158
0af912f0
JD
81592003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8160
8161 * keyboard.c (cancel_hourglass_unwind): New function.
8162 (command_loop_1): Cancel hourglass with unwind-protect.
8163
120d0a23
RS
81642003-02-23 Richard M. Stallman <rms@gnu.org>
8165
8166 * callint.c (fix_command): New subroutine, from Fcall_interactively.
8167 Detect (when ... (region-beginning)) etc.
8168 (Fcall_interactively): Call fix_command.
8169 (Qif, Qwhen): New variables.
8170 (syms_of_callint): Init and staticpro them.
0b063c27 8171
120d0a23
RS
8172 * regex.c (print_partial_compiled_pattern): Output to stderr.
8173
4ece81a6
KG
81742003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8175
8176 * dired.c (directory_files_internal): Don't expand directory.
8177 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
8178 instead. From Lars Hansen <larsh@math.ku.dk>.
8179
e52bd6b7
SM
81802003-02-22 Stefan Monnier <monnier@cs.yale.edu>
8181
8182 * fns.c (string_to_multibyte): Remove unused var i.
8183 (Flanginfo): Fix int/Lisp_Object mixup.
8184 (void_call2): New fun.
8185 (Fmap_char_table): Use it in place of call2.
8186
8187 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
8188
8189 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
8190
8191 * keymap.c (copy_keymap_1): Make it static.
8192
8193 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
8194
c33ef7c4
JB
81952003-02-22 David Ponce <david@dponce.com>
8196
8197 * lread.c (Fload): Don't check STRING_MULTIBYTE.
8198
16782258
JD
81992003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8200
8201 * process.h: Removed subtty field from struct Lisp_Process.
8202
8203 * process.c (create_process): Remove setting of subtty.
8204 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
8205 (Fprocess_running_child_p, process_send_signal):
8206 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
8207 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
8208
3abeca61
KG
82092003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8210
8211 * keymap.c (Fdefine_key): Doc fix.
8212
92a8ce63
JB
82132003-02-21 Juanma Barranquero <lektu@terra.es>
8214
8215 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
8216
8217 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
8218 POLLING_PROBLEM_IN_SELECT.
8219
8220 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
8221 Delete #undef of POLLING_PROBLEM_IN_SELECT.
8222
8223 * s/hpux10-20.h: New file.
8224
e52bd6b7
SM
8225 * process.c (wait_reading_process_input):
8226 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 8227
20f1ef2e
KH
82282003-02-20 Kenichi Handa <handa@m17n.org>
8229
32d0a9dc
KH
8230 * fontset.c (check_fontset_name): If NAME is nil, return the
8231 default fontset.
8232 (override_font_info): New function.
e52bd6b7 8233 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
8234 (Ffontset_info): If FONTSET is not the default fontset, merge
8235 FONTSET onto the copy of the default fontset, and work on that
8236 copy. Document that NAME nil means the default fontset.
8237 (Ffontset_font): Document that NAME nil means the default fontset.
8238
20f1ef2e
KH
8239 * process.c (setup_process_coding_systems): If the process's
8240 in/out descriptor is -1, do nothing.
8241
77d1daf2
AS
82422003-02-19 Andreas Schwab <schwab@suse.de>
8243
e52bd6b7
SM
8244 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
8245 Add prototypes.
77d1daf2 8246
f9a45bb3
KH
82472003-02-19 Kenichi Handa <handa@m17n.org>
8248
8249 * xfaces.c (try_alternative_families): Try all scalable fonts if
8250 Vscalable_fonts_allowed is not Qt.
8251
72ecb43c
JD
82522003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8253
8254 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
8255
ee5be7c3
JD
82562003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8257
8258 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
8259 names.
8260
8261 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 8262 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
8263 x_face_list_fonts.
8264 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
8265 (Fx_list_fonts): Set maxnames to -1 to get all font names.
8266
4cd519a7
KS
82672003-02-18 Kim F. Storm <storm@cua.dk>
8268
068f9882
KS
8269 * lread.c (read1): Fix last change.
8270 "`" is not always special. Allow "?" after a character constant.
4cd519a7 8271
7290a344
AC
82722003-02-18 Andrew Choi <akochoi@shaw.ca>
8273
8274 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
8275
1f7fa69b
AS
82762003-02-18 Andreas Schwab <schwab@suse.de>
8277
8278 * window.c (window_scroll_pixel_based): Move outside a
8279 multi-glyph character before setting new window start.
8280
8281 * xdisp.c (in_display_vector_p): New function.
8282 * dispextern.h (in_display_vector_p): Declare.
8283
23e21195
KS
82842003-02-18 Kim F. Storm <storm@cua.dk>
8285
8286 * lread.c (read1): Fix and relax read syntax.
8287 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
8288 Only recognize "," after dotted-pair dot if inside backquote.
8289 Never include "`" or "," (inside backquote) in a symbol.
8290 Allow dotted-pair dot after a character constant.
8291 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 8292
f098b121
JD
82932003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8294
8295 * gtkutil.c (xg_tool_bar_expose_callback): New function.
8296 (xg_create_tool_bar): Force style of tool bar to be horizontal with
8297 icons. Set name of tool bar to emacs-toolbar.
8298 (update_frame_tool_bar): Connect expose event to
8299 xg_tool_bar_expose_callback.
8300
63020c46
RS
83012003-02-17 Richard M. Stallman <rms@gnu.org>
8302
8303 * keyboard.c (this_command_key_count_reset): New variable.
8304 Initiatize to 0 where this_command_key_count is set.
8305 (read_char): Save and restore this_command_key_count_reset
8306 around input method code.
8307 (read_char): If this_command_key_count_reset, echo reread commands.
8308 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
8309
fb4452cc
KH
83102003-02-17 Kenichi Handa <handa@m17n.org>
8311
8312 * fns.c (string_to_multibyte): Always return a multibyte string.
8313
bd11cc09
JR
83142003-02-16 Jason Rumney <jasonr@gnu.org>
8315
e52bd6b7
SM
8316 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
8317 Negative max_fonts parameter means list all.
bd11cc09 8318
4cdf4bde
DL
83192003-02-14 Dave Love <fx@gnu.org>
8320
8321 * fns.c (Flanginfo): Doc fix.
8322
023b93f6
KS
83232003-02-13 Kim F. Storm <storm@cua.dk>
8324
37cd4238
KS
8325 * lread.c (read_escape): Interpret \s as a SPACE character, except
8326 for \s-X in a character constant which still is the super modifier.
8327 (read1): Signal an `invalid read syntax' error if a character
8328 constant is immediately followed by a digit or symbol character.
8329
140a6b7e
KS
8330 * search.c (Fmatch_data): Doc fix. Explicitly state that
8331 match-data is undefined if last search failed.
8332
023b93f6
KS
8333 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
8334 All uses changed.
8335
7d5c86e5
JB
83362003-02-12 Juanma Barranquero <lektu@terra.es>
8337
8338 * eval.c (Fdefmacro): Fix typo.
8339
295fff2c
KS
83402003-02-12 Kim F. Storm <storm@cua.dk>
8341
8342 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
8343 macro is a string, convert meta modifiers in string when copying
8344 the string into a vector.
8345
60f3202d
KS
83462003-02-11 Kim F. Storm <storm@cua.dk>
8347
8348 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
8349
61cb0b53
KH
83502003-02-11 Kenichi Handa <handa@m17n.org>
8351
8352 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
8353
7392e23c
KS
83542003-02-10 Kim F. Storm <storm@cua.dk>
8355
8356 * process.c: Doc fixes.
8357 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
8358
ce4254bd
KH
83592003-02-10 Kenichi Handa <handa@m17n.org>
8360
9c7a329a
KH
8361 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
8362
ce4254bd
KH
8363 * process.c (QCfilter_multibyte): New variable.
8364 (setup_process_coding_systems): New function.
e52bd6b7
SM
8365 (Fset_process_buffer, Fset_process_filter):
8366 Call setup_process_coding_systems.
ce4254bd
KH
8367 (Fstart_process): Initialize the member `filter_multibyte' of
8368 struct Lisp_Process.
8369 (create_process): Call setup_process_coding_systems.
8370 (Fmake_network_process): New keyward `:filter-multibyte'.
8371 Initialize the member `filter_multibyte' of struct Lisp_Process.
8372 Call setup_process_coding_systems.
8373 (server_accept_connection): Call setup_process_coding_systems.
8374 (read_process_output): If the process has a filter, decide the
8375 multibyteness of a string to given to the filter by
8376 `filter_multibyte' member of the process. If the process doesn't
8377 have a filter and the result of conversion is unibyte, use
8378 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
8379 multibyte form.
8380 (Fset_process_coding_system): Call setup_process_coding_systems.
8381 (Fset_process_filter_multibyte): New function.
8382 (Fprocess_filter_multibyte_p): New function.
8383 (syms_of_process): Intern and staticpro QCfilter_multibyte.
8384 Defsubr Sset_process_filter_multibyte and
8385 Sprocess_filter_multibyte_p.
8386
8387 * process.h (struct Lisp_Process): New member filter_multibyte.
8388
8389 * lisp.h (setup_process_coding_systems): Add prototype.
8390
8391 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
8392 process, update coding systems for the process.
8393
b08d5f59
KH
83942003-02-09 Kenichi Handa <handa@m17n.org>
8395
8396 * fns.c (string_to_multibyte): New function.
8397 (Fstring_to_multibyte): New function.
8398 (syms_of_fns): Defsubr it.
8399
0dfd93c0
AS
84002003-02-08 Andreas Schwab <schwab@suse.de>
8401
8402 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
8403 instead of the substitution.
8404
7b76ca1c
JD
84052003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8406
8407 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
8408
8409 * xmenu.c (menu_position_func): Adjust menu popup position so that
8410 the menu is fully visible.
7b76ca1c 8411
2436a4e4
JD
84122003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8413
8414 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
8415 (x_make_frame_invisible, x_wm_set_icon_position):
8416 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
8417
8418 * xfns.c (x_set_name, x_set_title): Ditto.
8419
37d1e680
RS
84202003-02-04 Richard M. Stallman <rms@gnu.org>
8421
8422 * keyboard.c (echo_now): Update before_command_echo_length.
8423 (Freset_this_command_lengths): Reset this_command_key_count etc.
8424 immediately rather than arranging to do it later.
8425 (before_command_key_count_1, before_command_echo_length_1)
8426 (before_command_restore_flag): Vars deleted.
8427 (add_command_key): Don't handle before_command_restore_flag.
8428 (read_char, record_menu_key): Don't update before_command_key_count or
8429 before_command_echo_length.
8430 (read_char): Don't handle before_command_restore_flag.
8431
8432 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
8433 in direct-output clauses if it wouldn't be called in the ordinary case.
8434
578846a3
KS
84352003-02-04 Kim F. Storm <storm@cua.dk>
8436
8437 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
8438
49853a4d
JD
84392003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8440
8441 * gtkutil.c (remove_from_container): Copying list is not needed.
8442 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
8443 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
8444 on list returned from gtk_container_get_children to avoid memory leak.
8445
8b53dc06
JR
84462003-02-01 Jason Rumney <jasonr@gnu.org>
8447
5d54d177
JR
8448 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
8449 local malloc.
8450 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
8451 definitions in xpm.h.
8452 (init_xpm_functions): New function.
f63fd14e 8453 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
8454 (init_external_image_libraries): Try to load libXpm.dll.
8455
8b53dc06
JR
8456 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
8457 timestamp.
8458
b222e415
DL
84592003-01-31 Dave Love <fx@gnu.org>
8460
8461 * syntax.c (Fskip_chars_forward)
8462 (open-paren-in-column-0-is-defun-start): Doc fix.
8463
c60ee5e7
JB
84642003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
8465
8466 * fileio.c: Support // at start of name for Cygwin (just added proper
8467 preprocessor tests).
8468
8469 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
8470
8471 * Makefile.in: Use @EXEEXT@ for Cygwin.
8472
8473 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
8474
8475 * s/cygwin.h: Added for Cygwin port.
8476
53b37591
JB
84772003-01-31 Juanma Barranquero <lektu@terra.es>
8478
8479 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
8480 when including gif_lib.h.
fe929957 8481 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
8482 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
8483 Windows. Disable color table lookups. Call library functions
53b37591 8484 through pointers determined at runtime.
fe929957
JB
8485 (init_external_image_libraries): Try to load libungif.dll and
8486 libtiff.dll.
53b37591 8487
45415a8f
KH
84882003-01-31 Kenichi Handa <handa@m17n.org>
8489
8490 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 8491 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 8492
a97e4138
JD
84932003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8494
e52bd6b7 8495 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 8496
6eed9bed
DL
84972003-01-30 Dave Love <fx@gnu.org>
8498
8499 * alloc.c (Vgc_elapsed, gcs_done): New variables.
8500 (Fgarbage_collect): Use them.
8501 (init_alloc, syms_of_alloc): Set them up.
8502
100dcd40
JB
85032003-01-30 Juanma Barranquero <lektu@terra.es>
8504
8505 * w32fns.c (init_external_image_libraries): Add missing operator.
8506
fbd852af
JR
85072003-01-29 Jason Rumney <jasonr@gnu.org>
8508
8509 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
8510 an alternative name for jpeg.dll.
8511
8a2d8020
KH
85122003-01-29 Kenichi Handa <handa@m17n.org>
8513
8514 * xdisp.c (set_cursor_from_row): Pay attention to string display
8515 properties.
8516
058c18c7
AC
85172003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
8518
8519 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
8520 <escape>.
8521 (keycode_to_xkeysym_table): Reformat and add more comments.
8522 (XTread_socket): Drop special case for backspace.
8523
385f11cf
AC
85242003-01-28 Andrew Choi <akochoi@shaw.ca>
8525
8526 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
8527 values in old-style RGB specs.
8528
c922a224
JB
85292003-01-27 Juanma Barranquero <lektu@terra.es>
8530
8531 * w32fns.c (init_external_image_libraries): Try alternate names for the
8532 jpeg dll.
8533
0a1d6de0
JD
85342003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8535
8536 * gtkutil.c (create_dialog, xg_separator_p)
8537 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
8538 before calling strcmp or strlen.
8539
a97e4138 85402003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
8541
8542 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
8543 and handle image load failure.
8544
28908312
JR
85452003-01-26 Jason Rumney <jasonr@gnu.org>
8546
8547 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
8548 New functions.
f63fd14e
JB
8549 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
8550 Disable color table lookups. Call jpeg library functions
28908312
JR
8551 through pointers determined at runtime.
8552 (init_external_image_libraries): Try to load jpeg.dll.
8553
84e47416
RS
85542003-01-25 Richard M. Stallman <rms@gnu.org>
8555
8556 * lisp.h: Declare format2 instead of format1.
8557
8558 * fileio.c (barf_or_query_if_file_exists):
8559 Call format2 instead of format1.
8560
8561 * editfns.c (format2): New function, replaces format1
8562 but takes exactly two Lisp Objects as format args.
8563
8564 * buffer.c (Fkill_buffer): Call format2 instead of format1.
8565
a97e4138 85662003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
8567
8568 * xterm.h: Change to return value of x_dispatch_event to int.
8569
8570 * xterm.c (x_filter_event): New function.
8571 (event_handler_gdk, XTread_socket): Call x_filter_event.
8572 (x_dispatch_event): Change to return value of finish.
8573 (event_handler_gdk): Use return value from x_dispatch_event.
8574
8575 * xfns.c (x_window): Call create_frame_xic for GTK version to
8576 initialize input methods.
8577
8578 * gtkutil.h: Add (void) prototypes.
8579
8580 * gtkutil.c (create_menus): Remove code that puts the help menu to
8581 the right.
8582
54eefef1
JR
85832003-01-25 Jason Rumney <jasonr@gnu.org>
8584
8585 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
8586 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
8587 (png_load): Adjust colors for Windows. Use Windows
8588 bitmaps. Disable color table lookups.
c262430d
JR
8589 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
8590 (init_png_functions): New function.
8591 (png_read_from_memory, png_load): Call png library functions
8592 through pointers determined at runtime.
8593 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
8594 (init_external_image_libraries): New function.
8595 (init_xfns): Call it.
54eefef1 8596
1a9e275b
AS
85972003-01-24 Andreas Schwab <schwab@suse.de>
8598
8599 * minibuf.c (Fminibuffer_message): Verify type of parameter.
8600
a97e4138 86012003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
8602
8603 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
8604 of static initializer.
8605
422eec7e
DL
86062003-01-24 Dave Love <fx@gnu.org>
8607
8608 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
8609 architectures.
8610
8611 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
8612 Use __alignof__.
8613
2a026b04
KH
86142003-01-24 Kenichi Handa <handa@m17n.org>
8615
8616 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 8617 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
8618 (command_loop_1): Call adjust_point_for_property with proper
8619 second arg.
8620
a18bb28d
JR
86212003-01-22 Jason Rumney <jasonr@gnu.org>
8622
8623 Sync changes with xterm.c and xfns.c.
8624
8625 * w32term.c (x_draw_glyph_string_foreground)
8626 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8627
8628 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
8629 phys_cursor's hpos is overwritten. This is still not completely
8630 correct, as it doesn't really make sense to use hpos at all to
8631 get the cursor glyph (as that is relative to the width of the
8632 characters on the line, which may have changed during the update).
8633
8634 * w32term.c (notice_overwritten_cursor): Handle the special case
8635 of the cursor being in the first blank non-text line at the
8636 end of a window.
8637
8638 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
8639 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
8640 Compute from the x position returned by x_draw_glyphs.
8641
8642 (x_display_and_set_cursor): Don't set phys_cursor_width here,
8643 except for NO_CURSOR and system caret, to make phys_cursor_width
8644 contain what its name suggests.
8645 (notice_overwritten_cursor): Consider the cursor image erased if
8646 the output area intersects the cursor image in y-direction.
8647
6a097c0c
SM
8648 * w32term.c (note_mode_line_or_margin_highlight): Rename from
8649 note_mode_line_highlight and extend.
a18bb28d
JR
8650
8651 * w32term.c (last_window): New variable.
8652 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
8653 (note_mouse_movement): Remove reimplemented code in #if 0.
8654
8655 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
8656 not update_mode_lines, and always set it to 1.
8657
ac6e47ef
JR
86582003-01-21 Jason Rumney <jasonr@gnu.org>
8659
8660 * w32fns.c (IDC_HAND): Define it if system headers don't.
8661
86622003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8663
8664 * w32term.h (struct w32_output): New member hand_cursor.
8665 (WM_EMACS_SETCURSOR): New message definition.
8666
8667 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
8668 function w32_define_cursor.
8669 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
8670 position, change member name output_data.x to output_data.w32 and
8671 add function w32_define_cursor.
8672 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
8673 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
8674 (w32_initialize_display_info):
8675 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
8676
8677 * w32fns.c (Vx_hand_shape): New variable.
8678 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
8679 WM_EMACS_SETCURSOR.
8680 (x-create-frame): Setup Cursor types.
8681
ceb39a17
JB
86822003-01-21 David Ponce <david@dponce.com>
8683
ac6e47ef 8684 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 8685 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 8686 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 8687 2002-09-30.)
ac6e47ef
JR
8688 (w32_draw_relief_rect): Declare all args.
8689 (w32_define_cursor): New.
8690
8691 * w32fns.c (w32_load_cursor): New function.
8692 (w32_init_class): Use it.
8693 (x_put_x_image): Declare all args.
8694
b6189c3b 86952003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
8696
8697 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
8698
a97e4138 86992003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
8700
8701 * gtkutil.c: Must include stdio.h before termhooks.h
8702
83fc9c63
DL
87032003-01-21 Dave Love <fx@gnu.org>
8704
8705 * alloc.c (Fgc_status): Print zombie list.
8706 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8707 Fix assignment of zombies.
8708 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8709 Don't take car of non-cons.
8710
8711 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8712
8713 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8714
fe04b8c8
JR
87152003-01-20 David Ponce <david@dponce.com>
8716
8717 * w32menu.c (digest_single_submenu): Declare all args.
8718
8719 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
8720 changes in xmenu.c:
8721
8722 (parse_single_submenu): Use individual keymap's prompt
8723 string as pane name, if there is one.
8724 (set_frame_menubar): Save menu_items_n_panes from each call to
8725 parse_single_submenu and use it when calling digest_single_submenu.
8726
539e69a9
ST
87272003-01-20 Steven Tamm <steventamm@mac.com>
8728
8729 * macterm.c (XTread_socket): Checks for valid, visible window
8730 before sending a scroll-wheel event.
8731
675d000f
RS
87322003-01-20 Richard M. Stallman <rms@gnu.org>
8733
8734 * xdisp.c (redisplay_window): If mini window's buffer is not
8735 a minibuffer, then redisplay it like other windows.
8736
a97e4138 87372003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
8738
8739 * gtkutil.c (xg_create_frame_widgets): Check if there is an
8740 external tool bar before setting tool bar height.
8741
048addec
JD
87422003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8743
8744 * xterm.c (handle_one_xevent): Surround popup_activated
8745 with #ifdef:s for non-toolkit version.
8746
8747 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
8748 (gtkutil.o): New file.
8749 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
8750 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
8751
8752 * gtkutil.c: New file for GTK version.
8753
8754 * gtkutil.h: New file for GTK version.
8755
8756 * xterm.h: Add xt_or_gtk_widget.
8757 Include gtk files for USE_GTK.
8758 (struct x_output): Add toolbar_height.
8759 (struct x_output): Add GTK widgets and Gdk size_hints.
8760 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
8761 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
8762 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
8763
8764 * xterm.c: Include gtkutil.h for USE_GTK.
8765 Declare extern void free_frame_menubar for USE_GTK.
8766 (note_mouse_highlight): Check popup_activated for USE_GTK.
8767 (xt_action_hook): Don't compile if USE_GTK.
8768 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
8769 (xg_scroll_callback): New function.
8770 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
8771 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
8772 for USE_GTK.
8773 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
8774 xg_show_scroll_bar for USE_GTK.
8775 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
8776 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
8777 (event_handler_gdk): New function for USE_GTK.
8778 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
8779 (handle_one_xevent): Make sure widget is mapped before
8780 calling x_real_positions for USE_GTK.
8781 (XTread_socket): Add GTK event loop for USE_GTK.
8782 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
8783 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
8784 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
8785 (x_iconify_frame): Add code for USE_GTK.
8786 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
8787 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
8788 is in gtkutil.c.
8789 (x_term_init): Add initialization for GTK.
8790 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
8791
8792 * xmenu.c: Include gtkutil.h for USE_GTK.
8793 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
8794 (single_menu_item, single_menu_item, Fx_popup_dialog):
8795 Check for USE_GTK.
048addec
JD
8796 (popup_widget_loop): New function for USE_GTK.
8797 (x_activate_menubar): Add code for USE_GTK.
8798 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
8799 (menu_highlight_callback, menubar_selection_callback):
8800 Add USE_GTK versions.
048addec
JD
8801 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
8802 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
8803 (free_frame_menubar): Only compile if not USE_GTK. GTK version
8804 is in gtkutil.c.
8805 (popup_selection_callback): New version for USE_GTK.
8806 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 8807 one USE_X_TOOLKIT version.
048addec
JD
8808 (xmenu_show): Call create_and_show_popup_menu.
8809 (dialog_selection_callback): New version for USE_GTK.
8810 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 8811 one USE_X_TOOLKIT version.
048addec
JD
8812 (xdialog_show): Call create_and_show_dialog.
8813
8814 * xfns.c: Include gtkutil for USE_GTK.
8815 (x_window_to_frame, x_any_window_to_frame)
8816 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8817 (x_top_window_to_frame): Add code for USE_GTK.
8818 (x_set_background_color): Call xg_set_background_color for GTK.
8819 (x_set_menu_bar_lines): Check for USE_GTK.
8820 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
8821 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
8822 (x_window): Call xg_create_frame_widgets for USE_GTK.
8823 (Fx_create_frame): Check for USE_GTK
8824 (Fx_file_dialog): New implementation for USE_GTK.
8825
8826 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
8827 (update_menu_bar): Add check for USE_GTK.
8828 (update_tool_bar): Add check for USE_GTK and external tool bar.
8829 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
8830 (redisplay_internal): Add check for USE_GTK and popup_activated.
8831 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
8832 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
8833 (display_menu_bar): Add check for USE_GTK
8834
8835 * lisp.h: Declare Vx_resource_name extern.
8836
a64387ee 8837 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
8838 for USE_GTK.
8839 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
8840
8841 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
8842 (FRAME_EXTERNAL_TOOL_BAR): New macro.
8843 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
8844
8845 * fileio.c (Fread_file_name): Add check for USE_GTK.
8846
6bdb309a
SM
8847 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
8848 Add check for USE_GTK.
048addec
JD
8849
8850 * config.in: Added HAVE_GTK
8851
8852 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
8853
88542003-01-18 Stefan Monnier <monnier@cs.yale.edu>
8855
8856 * charset.h (Funibyte_char_to_multibyte): Export.
8857
88582003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8859
8860 * xmenu.c (mouse_position_for_popup): New function.
8861 (Fx_popup_menu): Call mouse_position_for_popup for X and
8862 mouse_position_hook for others.
8863
88642003-01-17 Kim F. Storm <storm@cua.dk>
8865
8866 * editfns.c (Finsert): Mention `string-make-multibyte' and
8867 `string-as-multibyte' in doc string.
8868
88692003-01-17 Kenichi Handa <handa@m17n.org>
8870
8871 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 8872
048addec
JD
8873 * editfns.c (Fformat): Convert an unibyte char argument that is
8874 formatted by "%c" to multibyte if the total result must be a
8875 multibyte string.
cd7df9c0 8876
048addec 88772003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 8878
048addec
JD
8879 * process.c (set-process-filter): Document unibyte/multibyte-ness
8880 of string argument.
56210ecd 8881
048addec 88822003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 8883
048addec 8884 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 8885
048addec
JD
8886 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
8887 (re_search_2): Likewise.
6df8b9fe 8888
048addec 88892003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 8890
048addec
JD
8891 * xdisp.c (message_dolog): Fix bug of the case that *Message*
8892 buffer is unibyte.
292ddc31 8893
048addec 88942003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 8895
048addec 8896 * fns.c (Fsubstring): Clarify doc string.
292ddc31 8897
048addec
JD
8898 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
8899 (Fprevious_char_property_change)
8900 (Fnext_single_char_property_change)
8901 (Fprevious_single_char_property_change, Fnext_property_change)
8902 (Fnext_single_property_change, Fprevious_property_change)
8903 (Fprevious_single_property_change, Fadd_text_properties)
8904 (Fput_text_property, Fset_text_properties)
8905 (Fremove_text_properties, Fremove_list_of_text_properties)
8906 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 8907
048addec 89082003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 8909
048addec
JD
8910 * process.h (struct Lisp_Process): New member plist replaces old
8911 member private_vars. All uses changed.
63e4e4c6 8912
048addec 8913 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 8914 (QCplist): Rename from QCvars. Change all uses.
048addec 8915 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 8916 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 8917 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 8918 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 8919
048addec 89202003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 8921
6bdb309a 8922 * m/delta.h: Remove (obsolete).
e833850f 8923
048addec 89242003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 8925
048addec
JD
8926 * fileio.c (Fdelete_directory, Fdelete_file): Document the
8927 behaviour in front of symlinks.
8928 (Fdelete_file): Raise an error on directories.
817cb127 8929
048addec 89302003-01-13 Dave Love <fx@gnu.org>
817cb127 8931
048addec 8932 * fns.c (Freverse): Use QUIT.
3e8cf2ea 8933
048addec 89342003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 8935
048addec
JD
8936 * minibuf.c (minibuffer_completion_contents):
8937 Error if point is inside prompt.
3e8cf2ea 8938
048addec
JD
8939 * keyboard.c (command_loop_1): Don't redisplay directly
8940 if there's a post-command-hook.
3e8cf2ea 8941
048addec
JD
8942 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
8943 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 8944
048addec 89452003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 8946
048addec 8947 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 8948
048addec
JD
8949 * process.c (QCvars): New variable.
8950 (syms_of_process): Intern and staticpro it.
8951 (Fset_process_contact): Removed function.
8952 (Fprocess_variable, Fset_process_variable): New functions.
8953 (syms_of_process): Defsubr them.
8954 (Fstart_process): Initialize private_vars plist to nil.
8955 (Fmake_network_process): New arg :vars to setup the private
8956 variables for new network process.
8957 (server_accept_connection): Copy server's private variables to
8958 client process.
2c10f029 8959
048addec
JD
8960 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
8961 crashes). Code rewritten and simplified. Now directly aligns the
8962 pointer and recalculates pure_bytes_used, rather than aligning the
8963 size and adjusting the pointer.
b8a76c6c 8964
048addec 89652003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 8966
048addec
JD
8967 * process.c (Fset_process_contact): New function.
8968 (syms_of_process): defsubr it.
8969 (make-network-process): Update doc.
3a8d0899 8970
048addec 89712003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 8972
048addec
JD
8973 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
8974 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 8975
048addec 89762003-01-10 Dave Love <fx@gnu.org>
4abc7470 8977
048addec 8978 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 8979
048addec 89802003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 8981
048addec
JD
8982 * process.c (Fmake_network_process): Convert new port number
8983 to host byte order for `:service t' case. From Mario Lang.
bf338245 8984
048addec 89852003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 8986
048addec
JD
8987 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
8988 instead of XtAppProcessEvent.
bf338245 8989
048addec
JD
8990 * xterm.c (handle_one_xevent): New function.
8991 (x_dispatch_event): New function.
8992 (XTread_socket): Call handle_one_xevent.
bf338245 8993
048addec 8994 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 8995
048addec
JD
8996 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
8997 call XQueryPointer to get coordinates.
8998 (popup_get_selection): Do not set popup_activated_flag to zero,
8999 let popup_deactivate_callback do that. Needed for Motif.
9000 Call x_dispatch_event instead of XtDispatchEvent.
9001 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 9002
048addec 90032003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 9004
6bdb309a 9005 * process.c (server_accept_connection): Fix recording of new
048addec
JD
9006 connection's local address in :local property of contact info.
9007 (Fmake_network_process): Record local network address for new
9008 client processes in :local property of contact info.
6bdb309a 9009 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 9010
048addec 90112003-01-07 Dave Love <fx@gnu.org>
00e3ab56 9012
048addec 9013 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 9014
048addec 90152003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 9016
048addec 9017 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 9018
048addec
JD
9019 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9020 use the same test as for custom-variable-p.
8c6d74c6 9021
048addec 90222003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 9023
048addec
JD
9024 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9025 Count LAST_LINE_MISFIT in scroll margin for end of window.
9026 Move label too_near_end before setting SCROLL_MARGIN_POS.
9027 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 9028
048addec
JD
9029 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9030 scroll_conservatively case. If scrolling that much doesn't change
9031 STARTP, move it down one line.
e833850f 9032
048addec
JD
9033 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9034 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 9035
048addec
JD
9036 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9037 selected frame.
8c6d74c6 9038
048addec
JD
9039 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9040 (syms_of_keymap): staticpro them.
9041 (Fapropos_internal): Initialize them and clear them out.
9042 Don't GCPRO them.
8c6d74c6 9043
048addec
JD
9044 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9045 Doc fixes.
8c6d74c6 9046
048addec
JD
9047 * lisp.h: New misc type Lisp_Save_Value.
9048 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9049 (XSAVE_VALUE): New macro.
9050 (struct Lisp_Save_Value): New data type.
9051 (union Lisp_Misc): Add u_save_value alternative.
9052 (make_save_value): Declared.
8c6d74c6 9053
048addec 9054 * alloc.c (make_save_value): New function.
8c6d74c6 9055
048addec
JD
9056 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9057 (x_catch_errors_unwind): Call XSync.
8c6d74c6 9058
048addec 90592003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 9060
048addec 9061 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 9062
048addec
JD
9063 * keyboard.c (command_loop_1): Call adjust_point_for_property
9064 in direct action cases for Qforward_char and Qbackward_char.
9065 Set already_adjusted so it won't be done twice.
8c6d74c6 9066
b6189c3b 90672002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 9068
048addec
JD
9069 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
9070 type definition of size_t.
8c609cff 9071
048addec 90722003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 9073
048addec
JD
9074 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
9075 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 9076
048addec 90772002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 9078
048addec
JD
9079 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
9080 to default to t.
fa634a5e 9081
048addec 90822002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 9083
048addec 9084 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 9085
048addec 90862002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 9087
048addec
JD
9088 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
9089 allow building in a different directory than source. Uses some
9090 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 9091
048addec 90922002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 9093
048addec
JD
9094 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
9095 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
9096 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
9097 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 9098
048addec 90992002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 9100
048addec
JD
9101 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
9102 <scroll-down-aggressively>: Doc fix.
2155ecf3 9103
048addec
JD
9104 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
9105 string as pane name, if there is one.
9106 (set_frame_menubar): Save menu_items_n_panes from each call to
9107 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 9108
048addec
JD
9109 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
9110 Don't try to make last line fully visible if it is past end of window.
61f1d295 9111
048addec 91122002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 9113
048addec
JD
9114 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
9115 (mac_menu_show): Add support for hierarchical popup menus.
9116 (add_menu_item): Remove indentation support.
9117 (fill_submenu, fill_menu): Create hierarchical menus
9118 instead of using indentation.
0b17a217 9119
048addec 91202002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 9121
048addec
JD
9122 * xdisp.c (try_cursor_movement): Don't call try_window here.
9123 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 9124
048addec 9125 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 9126
048addec 91272002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 9128
048addec
JD
9129 * macterm.c (XTread_socket): Call KeyTranslate for control and
9130 meta to deal correctly shifted non-alpha characters, like C-S-5
9131 being treated like C-%. Does not look for shift key to deal
9132 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 9133
048addec 91342002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 9135
048addec
JD
9136 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
9137 If it is non-nil, run timers. Use an unwind-protect to requeue
9138 the events that were read ahead.
9139 (popup_get_selection_unwind): New subroutine.
9140 (popup_get_selection_queue): File-scope variable now holds that queue.
9141 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
9142 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
9143 Use an unwind-protect to pop down the dialog box.
9144 (xdialog_show_unwind): New subroutine implements that.
f02cac82 9145
048addec
JD
9146 * xdisp.c (row_containing_pos): Change exit test using last_y.
9147 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 9148
048addec
JD
9149 * lread.c (load_error_handler): New function.
9150 (Fload): Handle errors in Fsubstitute_in_file_name.
9151 Don't expect Fsignal to return.
f02cac82 9152
048addec
JD
9153 * eval.c: Errors and throws work right with interrupt blocking.
9154 (struct catchtag): New elt interrupt_input_blocked.
9155 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
9156 (internal_catch, Fcondition_case, internal_condition_case)
9157 (internal_condition_case_1, internal_condition_case_2): Save it.
9158 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 9159
048addec 9160 * editfns.c (Fformat): Add parens.
f02cac82 9161
048addec
JD
9162 * dired.c (file_name_completion): Fix that change.
9163 Delete special quit-handling code; just use QUIT.
f02cac82 9164
b6189c3b 91652002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 9166
048addec
JD
9167 * dired.c (file_name_completion): Close directory on error
9168 just as in directory_files_internal.
1a590729 9169
048addec 91702002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 9171
048addec
JD
9172 * window.c (Fset_window_configuration): Set old_point to correct
9173 value when new_current_buffer == current_buffer.
f02cac82 9174
048addec 91752002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 9176
048addec
JD
9177 Revisited my earlier fix for the following entry in etc/PROBLEMS:
9178 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9179 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 9180
048addec
JD
9181 These changes were in part based upon suggestions made by Peter
9182 'Luna' Runestig [peter@runestig.com].
9785d95b 9183
048addec
JD
9184 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
9185 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 9186 g_b_init_get_sid_identifier_authority ): Add several static
048addec 9187 global variables.
9785d95b 9188
048addec
JD
9189 * w32.c (globals_of_w32): New function. Used to initialize those
9190 global variables that must always be initialized on startup even
9191 when the global variable initialized is non zero. Its primary
9192 purpose at this time is to set the global variables
9193 g_b_init_is_windows_9x, g_b_init_open_process_token,
9194 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
9195 g_b_init_get_sid_identifier_authority to 0 on startup.
9196 Called from main.
9785d95b 9197
048addec
JD
9198 * w32.c (is_windows_9x): Perform initialization only if
9199 g_b_init_is_windows_9x is equal to 0. On initialization set
9200 g_b_init_is_windows_9x equal to 1.
2308af15 9201
048addec
JD
9202 * w32.c (open_process_token): Perform initialization only if
9203 g_b_init_open_process_token is equal to 0. On initialization set
9204 g_b_init_open_process_token equal to 1.
2308af15 9205
048addec
JD
9206 * w32.c (get_token_information): Perform initialization only if
9207 g_b_init_get_token_information is equal to 0. On initialization
9208 set g_b_init_get_token_information equal to 1.
9785d95b 9209
048addec
JD
9210 * w32.c (lookup_account_sid): Perform initialization only if
9211 g_b_init_lookup_account_sid is equal to 0. On initialization
9212 set g_b_init_lookup_account_sid equal to 1.
9785d95b 9213
048addec
JD
9214 * w32.c (get_sid_identifier_authority): Perform initialization
9215 only if g_b_init_get_sid_identifier_authority is equal to 0.
9216 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 9217
f63fd14e 9218 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
9219 those global variables that must always be initialized on startup
9220 even when the global variable initialized is non zero.
9221 Its primary purpose at this time is to initialize the global variable
9222 track_mouse_event_fn.
9785d95b 9223
a64387ee 9224 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 9225 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 9226
048addec 9227 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 9228
f63fd14e 9229 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
9230 initialize those global variables that must always be initialized
9231 on startup even when the global variable initialized is non zero.
9232 Its primary purpose at this time is to initialize the global
9233 variables get_menu_item_info and set_menu_item_info.
9785d95b 9234
048addec
JD
9235 * w32menu.c (initialize_frame_menubar): Remove initialization of
9236 get_menu_item_info and set_menu_item_info.
9785d95b 9237
048addec 9238 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 9239
048addec
JD
9240 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
9241 Declare them.
9785d95b 9242
048addec
JD
9243 * emacs.c (main): Call globals_of_w32 prior to calling
9244 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
9245 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
9246 is defined.
9785d95b 9247
048addec
JD
9248 * w32term.c (x_update_window_begin): Fix Windows API error
9249 detected by BoundsChecker. Test to determine if
9250 w32_system_caret_hwnd is NULL prior to attempting to use
9251 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 9252
048addec
JD
9253 * w32term.c (x_update_window_end): Fix Windows API error
9254 detected by BoundsChecker. Test to determine if
9255 w32_system_caret_hwnd is NULL prior to attempting to use
9256 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 9257
048addec 92582002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 9259
048addec
JD
9260 * coding.c (coding_system_require_warning): New variable.
9261 (syms_of_coding): DEFVAR it.
b6da19ef 9262
048addec 9263 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 9264
048addec
JD
9265 * fileio.c (choose_write_coding_system): Even if
9266 Vcoding_system_for_write is non-nil, if
9267 coding_system_require_warning is nonzero, call
9268 Vselect_safe_coding_system_function.
bfcf6dbe 9269
048addec 92702002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 9271
048addec
JD
9272 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
9273 (lisp): Add font-core.
2c568af5 9274
048addec 92752002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 9276
048addec
JD
9277 * textprop.c (text_read_only): New arg `propval'.
9278 (get_char_property_and_overlay): Remove unused var `next_overlay'.
9279 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 9280
048addec 92812002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 9282
048addec 9283 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 9284
048addec 92852002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 9286
048addec
JD
9287 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
9288 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
9289 Be more careful about when help_events are generated.
96720f09 9290
048addec 92912002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 9292
048addec
JD
9293 * macterm.c (mac_check_for_quit_char): Correctly set the
9294 modifiers of the event to 0.
9295 * mac.c (sys_select): Duplicate rfds before calling select to
9296 ensure that rfds survive the while loop.
e5ae1c49 9297
048addec 92982002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 9299
048addec
JD
9300 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
9301 row_containing_pos returned NULL.
2eb46b2d 9302
048addec 93032002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 9304
6bdb309a 9305 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 9306 non-blocking.
6bdb309a 9307 (sys_select): Fix sys_select to not use a timeout larger than
048addec 9308 the one given.
b11f1d8a 9309
048addec 93102002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 9311
048addec 9312 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 9313
048addec 93142002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 9315
048addec
JD
9316 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
9317 as the last thing.
a4ac5b17 9318
048addec 93192002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 9320
048addec 9321 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 9322
048addec 93232002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 9324
048addec
JD
9325 * editfns.c (Fformat): Handle precision in string conversion
9326 specifiers like libc functions do (ie, print at most that many
9327 characters).
85cce843 9328
048addec 93292002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 9330
048addec
JD
9331 * xdisp.c (row_containing_pos): Check more carefully
9332 whether charpos is really in the row before returning it.
0d4d26a7 9333
048addec 93342002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 9335
048addec 9336 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 9337
048addec
JD
9338 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
9339 each stack frame. This may change as it could be time consuming.
0d4d26a7 9340
048addec
JD
9341 * macterm.c (mac_check_for_quit_char, quit_char_comp)
9342 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 9343 (mac_initialize): Add code to check for pressing of quit_char
048addec 9344 in the OS event queue.
b11f1d8a 9345
048addec
JD
9346 * mac.c (sys_select): Call mac_check_for_quit_char every second
9347 while blocking on select.
0d4d26a7 9348
048addec
JD
9349 * mac.c (sys_read): Use sys_select to test for input first
9350 before calling read, to allow C-g to break.
9252f7bc 9351
048addec 93522002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 9353
048addec 9354 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 9355
048addec 9356 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 9357
048addec 9358 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 9359
048addec
JD
9360 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
9361 autoload.
9252f7bc 9362
048addec 9363 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 9364
048addec 9365 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 9366
048addec 93672002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 9368
048addec 9369 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 9370
048addec 93712002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 9372
048addec 9373 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9374
048addec 9375 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9376
048addec 9377 * alloca.c: Don't use #error.
02d588e2 9378
048addec 93792002-12-03 Dave Love <fx@gnu.org>
02d588e2 9380
048addec
JD
9381 * buffer.c (Qucs_set_table_for_input): New.
9382 (Fget_buffer_create): Use it.
9383 (Qset_buffer_major_mode_hook): Deleted.
9384 (Fset_buffer_major_mode): Revert previous change.
9385 (init_buffer_once): Intern ucs-set-table-for-input.
9386 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
9387 Add &Qucs_set_table_for_input.
451e2697 9388
048addec 93892002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 9390
048addec
JD
9391 * callint.c (Fcall_interactively): Use next_event only if less
9392 than key_count.
72742a99 9393
048addec 93942002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 9395
048addec
JD
9396 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
9397 names to 255 characters.
72742a99 9398
048addec
JD
9399 * macterm.c (XTread_socket): If all frames have been collapsed,
9400 expand the first one before handling drag-and-drop events.
72742a99 9401
048addec
JD
9402 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
9403 which is detected by autoconf.
40e6ff95 9404
048addec 94052002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 9406
048addec
JD
9407 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
9408 offset in two hints table to allow prebinding to be redone and
9409 allow the executable to be stripped.
c02138c6 9410
048addec 94112002-11-29 Dave Love <fx@gnu.org>
c02138c6 9412
048addec
JD
9413 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
9414 already provided.
0e47bbf7 9415
048addec 94162002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 9417
048addec
JD
9418 * xdisp.c (start_display): Check more intelligently for
9419 whether the line is continued.
9420 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 9421
048addec 94222002-11-28 Dave Love <fx@gnu.org>
44129dcb 9423
048addec
JD
9424 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
9425 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 9426
048addec 94272002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 9428
048addec
JD
9429 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
9430 more descriptive error output from lread.c:Fload upon most require
9431 cycles during boostrapping.
1637fd2c 9432
048addec 94332002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 9434
048addec
JD
9435 * fileio.c (Finsert_file_contents): Give a more appropriate error
9436 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 9437
048addec
JD
9438 * dired.c (Ffile_attributes): Don't return negative file sizes for
9439 files bigger than 2Gb when off_t is 32 bit.
540c2788 9440
048addec 94412002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 9442
048addec 9443 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 9444
048addec
JD
9445 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
9446 Test GETPGRP_VOID instead.
9447 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 9448
048addec
JD
9449 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
9450 Don't define.
9451 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 9452
048addec 9453 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 9454
048addec 94552002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 9456
048addec
JD
9457 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
9458 supported.
4042a81a 9459
048addec 94602002-11-25 Dave Love <fx@gnu.org>
4042a81a 9461
048addec 9462 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 9463
048addec 9464 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 9465
048addec 94662002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 9467
048addec 9468 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 9469
048addec 94702002-11-24 Steven Tamm <steventamm@mac.com>
82122254 9471
048addec
JD
9472 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
9473 determine the size of pointers alloced in unexed space instead
9474 of using possibly invalid emacs_zone pointers. This fixes the
9475 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 9476
048addec 94772002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 9478
048addec 9479 * search.c (Fstring_match): Doc fix.
c1ee53bc 9480
048addec
JD
9481 * callint.c (Fcall_interactively): If a command fails because
9482 `*' detects a read-only buffer, but RECORD_FLAG is set,
9483 record it anyway if the args don't actually do tty input.
5598c32e 9484
048addec 94852002-11-22 Dave Love <fx@gnu.org>
5598c32e 9486
048addec 9487 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 9488
048addec
JD
9489 * keyboard.c (interrupt_signal): Provide forward declaration.
9490 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 9491
048addec 9492 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 9493
048addec 94942002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 9495
048addec
JD
9496 * eval.c (interactive_p): Skip any number of bytecode
9497 and special form frames, in any order.
516eea8e 9498
048addec 94992002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 9500
048addec
JD
9501 * w32fns.c (convert_mono_to_color_image): New function.
9502 (xbm_load, xbm_load_image): Use it when foreground or background
9503 is explicitly set.
04dbfa08 9504
048addec 95052002-11-19 Dave Love <fx@gnu.org>
04dbfa08 9506
048addec 9507 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 9508
048addec 95092002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 9510
048addec
JD
9511 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
9512 (XPutPixel): Swap blue and red.
9513 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
9514 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9515 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
9516 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 9517
048addec 95182002-11-18 Dave Love <fx@gnu.org>
d824beee 9519
048addec 9520 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 9521
048addec 9522 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 9523
048addec 9524 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 9525
048addec
JD
9526 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
9527 malloc, realloc, calloc.
d824beee 9528
048addec
JD
9529 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
9530 (bcmp): Don't define.
d824beee 9531
048addec 9532 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 9533
048addec 9534 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 9535
048addec 9536 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 9537
048addec 9538 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 9539
048addec
JD
9540 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
9541 Don't include alloca.h.
d824beee 9542
048addec 9543 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 9544
048addec 9545 * regex.c (_GNU_SOURCE): Don't define.
1998560a 9546
048addec 9547 * process.c (_GNU_SOURCE): Don't define.
1998560a 9548
048addec 9549 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 9550
048addec 95512002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 9552
048addec 9553 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 9554
048addec 95552002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 9556
048addec
JD
9557 * dispextern.h (struct face): Add `overstrike' field.
9558 * xterm.c (x_draw_glyph_string_foreground)
9559 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9560 * xfaces.c (load_face_font): Set `face->overstrike' based on
9561 result from choose_face_font.
9562 (best_matching_font, choose_face_font): Add `needs_overstrike'
9563 argument, and use it to return whether overstriking is desirable
9564 for this face/font combo.
9565 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 9566
048addec 95672002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 9568
048addec
JD
9569 This change is my fix for the following entry in etc/PROBLEMS:
9570 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9571 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 9572
048addec
JD
9573 * w32.c: Added wrapper functions around the win32 API functions
9574 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
9575 GetSidIdentifierAuthority. These wrapper functions serve two
9576 purposes:
9577 1. They ensure that the wrapped function can never be called
9578 when Emacs is running on an operating system on which they are
9579 not supported (Microsoft Windows 95 / 98 / ME).
9580 2. They call the wrapped functions via function pointers rather
9581 than calling them directly. This avoids taking advantage of the
9582 undocumented fact that although these functions are not supported
9583 in the 9x branch of Microsoft Windows, the functions do exist in
9584 the version of advapi32.dll that is found in the 9x branch of
9585 Microsoft Windows.
f60ae425 9586
6bdb309a 9587 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
9588 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
9589 and GetSidIdentifierAuthority with calls to the newly added
9590 wrapper functions.
f60ae425 9591
048addec
JD
9592 * w32.h: Added extern declarations for the following functions:
9593 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
9594 syms_of_w32menu, and void syms_of_fontset.
f60ae425 9595
6bdb309a 9596 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
9597 function pointer track_mouse_event_fn in the handler for the
9598 WM_SETFOCUS message.
3582b6a3 9599
6bdb309a 9600 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
9601 reinitialize the function pointers set_menu_item_info and
9602 get_menu_item_info.
f60ae425 9603
048addec 96042002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 9605
048addec
JD
9606 * sound.c: Added a partial implementation of play-sound-internal
9607 for Microsoft Windows. Added various #ifdef / #else / #endif
9608 code blocks to separate the code that will compile under
9609 Microsoft Windows from the code that is specific to Gnu/Linux.
9610 Moved several blocks of code around to make this separation of code
9611 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 9612
048addec 9613 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 9614
048addec
JD
9615 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
9616 added support for play-sound-internal under Windows would be
9617 included in the build of Emacs.
517f42a0 9618
048addec 96192002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 9620
048addec 9621 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 9622
048addec 9623 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 9624
048addec 96252002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 9626
048addec
JD
9627 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
9628 (adjust_point_for_property): Move out of display and invisible even if
9629 we were already inside before (in case a property was added while
9630 we weren't looking). Be more careful when handling invisible props.
9631 Skip invisible text as if it really wasn't there at all.
aab83f91 9632
048addec 96332002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 9634
048addec
JD
9635 * w32term.c (x_draw_image_foreground)
9636 (w32_draw_image_foreground_1): Use standard copy and invert
9637 operations to draw images.
aab83f91 9638
048addec
JD
9639 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
9640 depth of 1.
9641 (xbm_read_bitmap_data): Invert bits as xbm is read in.
9642 (XPutPixel): Don't invert bits here.
a4478a76 9643
048addec 96442002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 9645
048addec
JD
9646 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
9647 (w32_draw_image_foreground_1): Handle image masks.
9648 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 9649
048addec
JD
9650 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
9651 (x_from_xcolors): Adjust RGB values for W32.
9652 (image_background, image_background_transparent)
9653 (postprocess_image, x_to_xcolors, x_disable_image)
9654 (x_build_heuristic_mask): Adapt for W32 and enable.
9655 (x_create_x_image_and_pixmap): Mark images with palettes as such.
9656 (xbm_load): Remove unused variable.
03670a65 9657
048addec 96582002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 9659
048addec 9660 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 9661
048addec 96622002-11-14 Dave Love <fx@gnu.org>
59daa29a 9663
048addec 9664 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 9665
048addec
JD
9666 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
9667 * xmenu.c (unuse_menu_items, digest_single_submenu):
9668 * xfns.c (x_put_x_image):
9669 * xdisp.c (message2_nolog, set_message):
9670 * undo.c (record_point):
9671 * terminfo.c (tparam):
9672 * syntax.c (scan_sexps_forward):
9673 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9674 * composite.c (update_compositions):
9675 * cm.c (calccost, cmgoto):
9676 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 9677
048addec 9678 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 9679
048addec
JD
9680 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
9681 Don't declare.
59daa29a 9682
048addec 9683 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 9684
048addec
JD
9685 * fns.c (Fcopy_sequence): Doc fix.
9686 (Fmap_char_table): Cast `call2'.
3947677c 9687
048addec
JD
96882002-11-14 Francesco Potorti` <pot@gnu.org>
9689
9690 * s/sol2-8.h: New file.
9691
96922002-11-14 Kim F. Storm <storm@cua.dk>
9693
9694 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
9695 dependency on `risky-local-variable' and the :propertize form.
9696
96972002-11-12 Stefan Monnier <monnier@cs.yale.edu>
9698
9699 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
9700
9701 * syntax.c (scan_sexps_forward): Undo last patch.
9702 Use a more obvious fix: check eob before updating the syntax table.
9703
97042002-11-09 Stefan Monnier <monnier@cs.yale.edu>
9705
9706 * syntax.c (scan_sexps_forward): Update syntax table before reading
9707 a char rather than after so we don't update the table past eob.
9708
97092002-11-09 Dave Love <fx@gnu.org>
9710
9711 * buffer.c (Fset_buffer_major_mode): Fix last change.
9712
9713 * regex.c (regexec): Fix pmatch declaration.
9714
9715 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
9716
9717 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
9718 to self-inserting characters.
9719 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
9720
9721 * coding.c (Vtranslation_table_for_input): New.
9722 (syms_of_coding): DEFVAR it.
9723
97242002-11-08 Juanma Barranquero <lektu@terra.es>
9725
9726 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
9727 window.
9728
97292002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9730
6bdb309a 9731 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
9732 cp, and i.
9733
97342002-11-06 Dave Love <fx@gnu.org>
9735
9736 * buffer.c (Qset_buffer_major_mode_hook): New.
9737 (Fset_buffer_major_mode): Use it.
9738
97392002-11-06 Richard M. Stallman <rms@gnu.org>
9740
9741 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
9742 and stop_polling.
9743
9744 * process.c (wait_reading_process_input):
9745 Test POLLING_PROBLEM_IN_SELECT, not hpux.
9746 Avoid initialization for auto Lisp_Object var.
9747
9748 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
9749
9750 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
9751
97522002-11-05 Richard M. Stallman <rms@gnu.org>
9753
9754 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
9755
9756 * callint.c (Fcall_interactively): New local filter_specs.
9757 (Fcall_interactively): Check for progn as well as let.
9758 Add a gcpro.
9759 (Qprogn): New variable.
9760 (syms_of_callint): Staticpro and init Qprogn.
9761
97622002-11-04 John Paul Wallington <jpw@shootybangbang.com>
9763
9764 * lread.c (Feval_buffer): Doc fix.
9765
97662002-11-04 Dave Love <fx@gnu.org>
9767
9768 * keyboard.c (read_char): Always translate iff
9769 Vkeyboard_translate_table is a char table and c is valid.
9770
9771 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9772 and fix C types.
9773
97742002-11-03 Stefan Monnier <monnier@cs.yale.edu>
9775
9776 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
9777
9778 * editfns.c (get_pos_property): Don't hardcode Qfield.
9779
9780 * keyboard.c (adjust_point_for_property): Handle `display' prop on
9781 overlays. Also handle `invisible' prop.
9782
97832002-11-02 Stefan Monnier <monnier@cs.yale.edu>
9784
9785 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
9786 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
9787
97882002-11-01 Andreas Schwab <schwab@suse.de>
9789
9790 * editfns.c (Fmessage): Revert last change to properly handle %%.
9791
97922002-11-01 Stefan Monnier <monnier@cs.yale.edu>
9793
9794 * xmenu.c (unuse_menu_items): New fun.
9795 (menu_items_inuse): New var.
9796 (syms_of_xmenu): Initialize it.
9797 (init_menu_items): Use it to detect re-entrance.
9798 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
9799 (Fx_popup_menu): Remove spurious XSETFRAME.
9800
9801 * editfns.c (find_field): Make an exception for nil fields.
9802
98032002-11-01 Dave Love <fx@gnu.org>
9804
9805 * m/gec63.h: Deleted.
9806
98072002-10-31 Dave Love <fx@gnu.org>
9808
9809 * xterm.c (XTread_socket): Fix last change.
9810 (xaw_scroll_callback): Cast call_data to long to avoid warning.
9811
98122002-10-31 Stefan Monnier <monnier@cs.yale.edu>
9813
9814 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
9815
98162002-10-30 Stefan Monnier <monnier@cs.yale.edu>
9817
9818 * editfns.c (overlays_around, get_pos_property): New funs.
9819 (find_field): Use them.
9820 Also be careful not to modify POS before its last use.
9821 (Fmessage): Don't Fformat if there's nothing to format.
9822
98232002-10-30 Dave Love <fx@gnu.org>
9824
9825 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
9826 [HAVE_PTY_H]; Include pty.h.
9827
9828 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
9829
9830 * xterm.c (Qeql): Declare.
9831 (Vx_keysym_table): New.
9832 (syms_of_xterm): Initialize it.
9833 (XTread_socket): Use it. Deal with ASCII keysyms.
9834 (XSetIMValues) [HAVE_X11R6]: Prototype.
9835
9836 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
9837 (lispy_kana_keys): Comment out.
9838 (make_lispy_event) [XK_kana_A]: Comment out.
9839 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
9840 Fix sprintf call.
9841
9842 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
9843 regexp.h change).
9844 (TERMINFO, LIBS_TERMCAP): Define.
9845
9846 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
9847 (bcmp): Define conditional on HAVE_BCMP.
9848 (NO_SIOCTL_H): Don't define.
9849 (TIOCSIGSEND): Don't make conditional on IRIX6.
9850
9851 * s/sol2-5.h: Don't include strings.h.
9852 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
9853
9854 * s/irix6-0.h (IRIX6): Don't define.
9855 (bcopy, bcmp, bzero): Don't undef.
9856
9857 * s/irix6-5.h: Don't include strings.h.
9858 (IRIX6): Don't define.
9859 (bcopy, bcmp, bzero): Don't undef.
9860
9861 * syntax.c (Fforward_comment): Doc fix.
9862
98632002-10-29 Kim F. Storm <storm@cua.dk>
9864
9865 * process.c (Fsignal_process): Allow PROCESS to be specified by
9866 name in addition to pid (as integer or string).
9867
98682002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
9869
9870 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
9871 environments.
9872
98732002-10-27 Kim F. Storm <storm@cua.dk>
9874
9875 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9876
9877 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
9878
9879 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
9880
9881 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9882
98832002-10-26 Richard M. Stallman <rms@gnu.org>
9884
9885 * editfns.c (Fformat): Detect invalid format letters for floats.
9886
98872002-10-25 Kenichi Handa <handa@m17n.org>
9888
9889 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
9890 (x_set_title): Likewise.
9891
98922002-10-25 Juanma Barranquero <lektu@terra.es>
9893
9894 * macgui.h:
9895 * w32gui.h: Remove definition of XColor.
9896
9897 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
9898
98992002-10-24 Kim F. Storm <storm@cua.dk>
9900
9901 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
9902 Callers changed (supply dummy arg).
9903
9904 * lisp.h (get_window_cursor_type): Update prototype.
9905
9906 * w32term.c (x_display_and_set_cursor): Get active_cursor from
9907 get_window_cursor_type to track system caret.
9908
99092002-10-24 Kim F. Storm <storm@cua.dk>
9910
9911 * process.c (Fformat_network_address): New function.
9912 (syms_of_process): Defsubr it.
9913 (list_processes_1): Use it to format :local/:remote address if
f9711de4 9914 service/host is not set; before Emacs would crash in that case.
048addec
JD
9915 (Fmake_network_process): Don't use Ffind_operation_coding_system
9916 to setup coding system if host or service is not set.
9917
99182002-10-23 Juanma Barranquero <lektu@terra.es>
9919
9920 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
9921
9922 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
9923 COLORREF.
9924
9925 * macgui.h:
9926 * w32gui.h: Add definition of XColor.
9927
9928 * macfns.c:
9929 * w32fns.c:
9930 * xfaces.c: Remove definition of XColor.
9931
99322002-10-22 Stefan Monnier <monnier@cs.yale.edu>
9933
9934 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
9935
9936 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
9937 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
9938 window if it is dedicated.
9939 (Fshrink_window): Add preserve_before as was done for enlarge_window.
9940 (Vspecial_display_function): Update docstring.
9941
9942 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
9943 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
9944 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
9945
99462002-10-21 Stefan Monnier <monnier@cs.yale.edu>
9947
9948 * casefiddle.c (casify_region): Don't treat a prefix char as part
9949 of a word when at the beginning.
9950
99512002-10-17 Juanma Barranquero <lektu@terra.es>
9952
9953 * lread.c (syms_of_lread): Fix typos.
9954
99552002-10-17 Dave Love <fx@gnu.org>
9956
9957 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
9958
99592002-10-16 Richard M. Stallman <rms@gnu.org>
9960
9961 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
9962
99632002-10-14 Juanma Barranquero <lektu@terra.es>
9964
9965 * w16select.c (syms_of_win16select): Fix docstring for
9966 `selection-coding-system'.
9967
9968 * w32select.c (syms_of_w32select): Likewise.
9969
99702002-10-14 Stefan Monnier <monnier@cs.yale.edu>
9971
9972 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
9973 a backslash-quoted char.
9974 (scan_lists, scan_sexps_forward): Pacify the compiler.
9975
99762002-10-13 Richard M. Stallman <rms@gnu.org>
9977
9978 * window.c (window_scroll): Set immediate_quit.
9979
9980 * print.c (print): When backquote form is the car of a list,
9981 output in old style. Use old_backquote_output to output all
9982 comma forms inside it in old style too.
9983
9984 * buffer.h (struct buffer): Move `undo_list' down below `name'.
9985
99862002-10-11 Markus Rost <rost@math.ohio-state.edu>
9987
9988 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
9989 batch mode).
9990
9991 * lread.c (Fload): Doc fix (load-suffixes).
9992
99932002-10-10 Steven Tamm <steventamm@mac.com>
9994
9995 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
9996 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
9997 Also switch the default to Qnil from Qt.
9998
99992002-10-08 Kenichi Handa <handa@m17n.org>
10000
10001 * coding.c (code_convert_region): When we need more GAP for
10002 conversion, pay attention to the case that coding->produced is not
10003 greater than coding->consumed.
10004
100052002-10-07 Richard M. Stallman <rms@gnu.org>
10006
10007 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10008
100092002-10-06 Andrew Choi <akochoi@shaw.ca>
10010
10011 * macmenu.c (mac_menu_show): Add j to count menu items; match
10012 menu_item_selection to it to find selected item.
10013
100142002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10015
10016 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10017 cases. The correct fix is to pass ReparentNotify to Xt.
10018 The shell widget interprets ConfigureNotify differently depending
10019 on if it has been reparented or not.
10020
100212002-10-05 Markus Rost <rost@math.ohio-state.edu>
10022
10023 * editfns.c (Fformat_time_string): Doc fix.
10024
100252002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10026
10027 * fns.c (Flength): Doc fix.
10028
100292002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10030
10031 * keyboard.c (keyremap): New struct.
10032 (read_key_sequence): Use it: globally replace keytran_foo with
10033 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10034 keytran_next and fkey_next to just `next'.
10035
100362002-10-04 Steven Tamm <steventamm@mac.com>
10037
10038 * macterm.c (keycode_to_xkeysym_table): Change return to be
10039 treated like an X keysym.
10040
100412002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10042
10043 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10044 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10045 This is to also handle x/y changes that occur because of a resize.
10046
100472002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10048
10049 * frame.c (Vdelete_frame_functions): New variable.
10050 (syms_of_frame): Initialize and defvar it.
10051 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10052 it when frame's `tooltip' parameter is non-nil.
10053
10054 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10055
10056 * w32fns.c (x_create_tip_frame): Likewise.
10057
10058 * macfns.c (x_create_tip_frame): Likewise.
10059
100602002-09-30 Kenichi Handa <handa@m17n.org>
10061
10062 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
10063 -1 before calling ccl_driver.
10064
10065 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
10066 Only when it is non-nil, handle composition sequence.
10067 (setup_coding_system) <0>: Don't force composition handling.
10068
10069 * Makefile.in (lisp, shortlisp): Add utf-16.elc
10070
100712002-09-29 Richard M. Stallman <rms@gnu.org>
10072
10073 * search.c (Freplace_match): Adjust match data for the substitution
10074 just made in the buffer.
10075
10076 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
10077 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
10078
100792002-09-27 Richard M. Stallman <rms@gnu.org>
10080
10081 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
10082 (read_char): Use them. Do all exits thru the end of the function.
10083
100842002-09-27 Kenichi Handa <handa@etl.go.jp>
10085
10086 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
10087 is nil.
10088
100892002-09-26 Richard M. Stallman <rms@gnu.org>
10090
10091 * regex.h (__restrict_arr): Don't define if already defined.
10092
10093 * coding.c (run_pre_post_conversion_on_str):
10094 Save and restore Vdeactivate_mark.
10095
100962002-09-26 John Paul Wallington <jpw@shootybangbang.com>
10097
10098 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
10099
101002002-09-26 Kenichi Handa <handa@etl.go.jp>
10101
10102 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
10103 nonzero, try face's family at first. Otherwise try FAMILY at first.
10104 (choose_face_font): If C is a single byte char or latin-1, call
10105 try_font_list with PREFER_FACE_FAMILY 1.
10106
101072002-09-21 Richard M. Stallman <rms@gnu.org>
10108
10109 * window.c (select_window_1): Don't select frame.
10110 Set frame's selected window only when frame itself is selected.
10111 (Fselect_window): Doc fix.
10112
101132002-09-18 Kim F. Storm <storm@cua.dk>
10114
10115 * process.c (make-network-process): Doc fix (there is no
10116 network-server-log-function hook).
10117
101182002-09-18 Richard M. Stallman <rms@gnu.org>
10119
10120 * print.c (print): Clear out the unused parts of Vprint_number_table.
10121 (syms_of_print): Doc fix for `print-number-table'.
10122
10123 * unexelf.c (unexec): Undo previous change.
10124
101252002-09-17 Andreas Schwab <schwab@suse.de>
10126
10127 * m/alpha.h [LINUX]: Don't define DATA_START.
10128
101292002-09-16 Dave Love <fx@gnu.org>
10130
10131 * unexelf.c (unexec): Deal with .got, reinstating change from
10132 25-08-1999.
10133
101342002-09-13 Richard M. Stallman <rms@gnu.org>
10135
10136 * s/sol2-6.h (UNEXEC): Comment out definition.
10137
10138 * unexsol.c (unexec): Don't downcase first letter of error msg.
10139
10140 * xfaces.c (Fcolor_supported_p): Just one arg is required.
10141
101422002-09-12 Markus Rost <rost@math.ohio-state.edu>
10143
10144 * unexsol.c: Include buffer.h, charset.h, coding.h.
10145
101462002-09-11 Richard M. Stallman <rms@gnu.org>
10147
10148 * unexsol.c: Don't use report_file_error; do it by hand
10149 using dlerror.
10150
10151 * process.c (wait_reading_process_input, both versions):
10152 Before calling turn_on_atimers, call stop_polling.
10153
10154 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
10155
10156 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
10157 we go to too_near_end, call clear_glyph_matrix.
10158 (redisplay_window): After make_cursor_line_fully_visible,
10159 call clear_glyph_matrix and bypass `goto done'.
10160
10161 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
10162 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
10163
101642002-09-10 Richard M. Stallman <rms@gnu.org>
10165
10166 * fileio.c (Fdo_auto_save): Catch error making directory.
10167 Only call push_message if we need to.
10168 At the same time, make an unwind-protect to pop it.
10169 Rename local message_p to old_message_p.
10170 (do_auto_save_make_dir, do_auto_save_eh): New functions.
10171 (do_auto_save_unwind): Don't call pop_message.
10172
10173 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
10174
10175 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
10176
10177 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
10178
10179 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
10180
101812002-09-10 Stefan Monnier <monnier@cs.yale.edu>
10182
10183 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
10184 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
10185 (re_match_2_internal): Be more careful with infinite loops.
10186
101872002-09-10 Kim F. Storm <storm@cua.dk>
10188
10189 * macros.c (end_kbd_macro): New function.
10190 (Fend_kbd_macro): Use it.
10191
10192 * macros.h (end_kbd_macro): Declare extern.
10193
10194 * keyboard.c (Fdiscard_input): If defining keyboard macro,
10195 end and save it instead of discarding it.
10196
101972002-09-09 Markus Rost <rost@math.ohio-state.edu>
10198
10199 * s/sol2-6.h: Fix typo. Add comment.
10200
102012002-09-09 Richard M. Stallman <rms@gnu.org>
10202
10203 * regex.c (regnum_t): Use signed int, not unsigned int.
10204
10205 * s/sol2-6.h: New file.
10206
10207 * s/sol2-5.h (UNEXEC): Definition deleted.
10208
102092002-09-08 Kim F. Storm <storm@cua.dk>
10210
10211 * macros.c (executing_macro_index): Change type to EMACS_INT.
10212 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
10213
10214 * macros.h (executing_macro_index): Change type to EMACS_INT.
10215
102162002-09-06 Richard M. Stallman <rms@gnu.org>
10217
10218 * casetab.c (set_case_table): Make canon table point to eqv table.
10219
102202002-09-06 Juanma Barranquero <lektu@terra.es>
10221
10222 * coding.c (syms_of_coding): Fix spacing.
10223
10224 * composite.c (Fcompose_region_internal)
10225 (Fcompose_string_internal): Likewise.
10226
10227 * data.c (Flsh): Likewise.
10228
10229 * fontset.c (Fset_fontset_font): Likewise.
10230
10231 * macfns.c (Fx_server_max_request_size): Likewise.
10232
10233 * w16select.c (syms_of_win16select): Likewise.
10234
10235 * w32select.c (syms_of_w32select): Likewise.
10236
10237 * xselect.c (syms_of_xselect): Likewise.
10238
102392002-09-05 Richard M. Stallman <rms@gnu.org>
10240
10241 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
10242 call EXTEND_RANGE_TABLE and return a proper value.
10243 (set_image_of_range): Don't call set_image_of_range_1
10244 if no TRANSLATE or if range includes all of Latin-1.
10245 Only call it for the Latin-1 part of the range.
10246 For other cases, make two separate ranges,
10247 one for the original specified characters and one for
10248 their case-conversions.
10249
102502002-09-04 Richard M. Stallman <rms@gnu.org>
10251
10252 * s/sol2-5.h (UNEXEC): Use unexsol.o.
10253
10254 * window.c (displayed_window_lines): Correct for one-off bug
10255 in HEIGHT on non-window displays.
10256
10257 * regex.c (set_image_of_range_1): New function.
10258 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
10259 Return a value to indicate running out of memory.
10260 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
10261 (extend_range_table_work_area): New subroutine.
10262 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
10263 Different calling conventions, and used from set_image_of_range{,_1}.
10264 (IMMEDIATE_QUIT_CHECK): Definitions moved.
10265
102662002-09-04 Juanma Barranquero <lektu@terra.es>
10267
10268 * makefile.w32-in: All dependencies updated.
10269
102702002-09-01 Richard M. Stallman <rms@gnu.org>
10271
10272 * unexsol.c: New file.
10273
10274 * xfns.c (Qbox): Declare external, don't define.
10275
10276 * xdisp.c (redisplay_window) <force-start case>:
10277 If point is on semi-visible last line, reposition
10278 it at previous line.
10279
10280 * alloc.c (display_malloc_warning): Use display-warning.
10281 (malloc_warning_1): Function deleted.
10282
10283 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
10284
10285 * lread.c (read1): Handle #! by skipping the line.
10286
102872002-08-31 Richard M. Stallman <rms@gnu.org>
10288
10289 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
10290 Don't include LDFLAGS.
10291 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
10292
102932002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
10294
10295 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
10296 member of x_display_info unless we compile for some window system.
10297
102982002-08-31 Kim F. Storm <storm@cua.dk>
10299
10300 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
10301 (get_window_cursor_type): Don't use them.
10302 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
10303
103042002-08-30 Kenichi Handa <handa@etl.go.jp>
10305
10306 * xdisp.c (get_next_display_element): Fix previous change.
10307
103082002-08-30 Andrew Choi <akochoi@shaw.ca>
10309
10310 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
10311 (expose_window): Use it to fix the display of overlapping
10312 rows (merge code from xterm.c).
10313
10314 * macfns.c (Qbox): Add extern declaration.
10315
103162002-08-30 Juanma Barranquero <lektu@terra.es>
10317
10318 * w32fns.c (Qbox): Make extern.
10319 (syms_of_w32fns): Remove initialization of Qbox.
10320
103212002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
10322
10323 * xfns.c (Fx_open_connection): Fix error message.
10324
103252002-08-30 Kim F. Storm <storm@cua.dk>
10326
10327 The following changes consolidates the handling of the cursor
10328 type in xdisp.c, moving duplicate code and functionality from
10329 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
10330
10331 * frame.h (enum text_cursor_kinds): Consolidated here.
10332 Added DEFAULT_CURSOR value.
10333 (struct frame) <desired_cursor, cursor_width>
10334 <blink_off_cursor, blink_off_cursor_width>: New fields.
10335 Consolidated from output_x, output_w32 and output_mac structs.
10336 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10337 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
10338
10339 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
10340 Variables consolidated here.
10341 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
10342 (Vcursor_in_non_selected_windows): Renamed from
10343 cursor_in_non_selected_windows and changed to Lisp_Object.
10344 (syms_of_xdisp): Define and staticpro new and moved variables.
10345 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
10346 consolidated here. Recognize Qhollow setting.
10347 (set_frame_cursor_types): New function to set frame cursor types
10348 based on the frame parameters.
10349 (get_window_cursor_type): New function to calculate new cursor
10350 type and width for the specified window. Based on duplicated
10351 code consolidated here.
10352 Enhancements: cursor-in-non-selected-windows may be a cursor type,
10353 check buffer-local alternate-cursor-type and blink-cursor-alist
10354 before using built-in blink off methods.
10355
10356 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
10357
10358 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
10359 (get_specified_cursor_type, get_window_cursor_type)
10360 (set_frame_cursor_types): Added prototypes.
10361
10362 * macfns.c (x_specified_cursor_type): Removed.
10363 (x_set_cursor_type): Use set_frame_cursor_types.
10364 (Qbar, Qbox): Removed.
10365 (syms_of_macfns): Don't intern or staticpro them.
10366
10367 * macterm.c (x_specified_cursor_type): Remove prototype.
10368 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10369 (x_display_and_set_cursor): Use get_window_cursor_type.
10370 Remove unused local variables cursor_non_selected, active_cursor.
10371 Redraw cursor if hbar cursor width changes.
10372 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
10373
10374 * macterm.h (enum text_cursor_kinds): Removed.
10375 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
10376 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10377 (FRAME_DESIRED_CURSOR): Macro removed.
10378
10379 * w32fns.c (Vblink_cursor_alist): Removed.
10380 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10381 (syms_of_w32fns): Don't intern, staticpro, or define them.
10382 (x_specified_cursor_type): Removed.
10383 (x_set_cursor_type): Use set_frame_cursor_types.
10384
10385 * w32term.c (x_specified_cursor_type): Remove prototype.
10386 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10387 (x_display_and_set_cursor): Use get_window_cursor_type.
10388 Remove unused local variables cursor_off_state.
10389 Redraw cursor if hbar cursor width changes.
10390 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
10391
10392 * w32term.h (enum text_cursor_kinds): Removed.
10393 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
10394 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10395 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10396 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10397 (struct w32_display_info) <x_highlight_frame>: Renamed member from
10398 w32_highlight_frame.
10399
10400 * xfns.c (Vblink_cursor_alist): Removed.
10401 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10402 (syms_of_xfns): Don't intern, staticpro, or define them.
10403 (x_specified_cursor_type): Removed.
10404 (x_set_cursor_type): Use set_frame_cursor_types.
10405
10406 * xterm.c (x_specified_cursor_type): Remove prototype.
10407 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10408 (x_display_and_set_cursor): Use get_window_cursor_type.
10409 Remove unused local variables cursor_off_state.
10410 Redraw cursor if hbar cursor width changes.
10411
10412 * xterm.h (enum text_cursor_kinds): Removed.
10413 (struct output_x) <current_cursor, desired_cursor, cursor_width>
10414 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10415 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10416 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10417 (x_specified_cursor_type): Remove prototype.
10418
104192002-08-28 Richard M. Stallman <rms@gnu.org>
10420
10421 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10422 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10423 (Vblink_cursor_alist): New variable.
10424 (syms_of_w32fns): Initialize and defvar it.
10425 (x_specified_cursor_type): Recognize Qbox for filled box.
10426 Exceptions are hollow boxes.
10427 (Qbox, Qhollow): New variables.
10428 (syms_of_w32fns): Initialize and staticpro them.
10429
10430 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10431 New macros.
10432 (struct w32_output): New fields blink_off_cursor,
10433 blink_off_cursor_width.
10434 (FRAME_CURSOR_WIDTH): New macro.
10435
10436 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10437 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10438
10439 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10440 for bar cursor.
10441
10442 * w32term.c (expose_overlaps): New function.
10443 (expose_window): Use it to fix the display of overlapping rows.
10444
104452002-08-28 Simon Josefsson <jas@extundo.com>
10446
10447 * xfns.c (Fx_open_connection): Improve help when X connection
10448 fails, xhost is insecure and xauth is better.
10449
104502002-08-28 Juanma Barranquero <lektu@terra.es>
10451
10452 * makefile.w32-in: Add missing dependencies on w32term.h and
10453 composite.h.
10454
10455 * emacs.c (USAGE1): Add missing newline.
10456
104572002-08-27 Andrew Choi <akochoi@shaw.ca>
10458
10459 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
10460
104612002-08-27 Richard M. Stallman <rms@gnu.org>
10462
10463 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10464 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10465 (Vblink_cursor_alist): New variable.
10466 (syms_of_xfns): Initialize and defvar it.
10467 (x_specified_cursor_type): Recognize Qbox for filled box.
10468 Exceptions are hollow boxes.
10469 (Qbox, Qhollow): New variables.
10470 (syms_of_xfns): Initialize and staticpro them.
10471
10472 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10473 New macros.
10474 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
10475
10476 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10477 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10478
10479 * emacs.c (main): Handle --script.
10480 (USAGE1): Mention --script.
10481 (standard_args): Define sort order for --script.
10482
104832002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
10484
10485 * xdisp.c (redisplay_updating_p): Variable removed.
10486 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
10487 New variables.
10488 (init_iterator): Don't free realized faces if
10489 inhibit_free_realized_faces is set.
10490 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
10491 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
10492 initialize Qinhibit_free_realized_faces.
10493
10494 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
10495 when iterator is adding glyphs to a glyph matrix.
10496
104972002-08-27 Kenichi Handa <handa@etl.go.jp>
10498
10499 * xdisp.c (get_next_display_element): In unibyte case, don't use
10500 octal form for such eight-bit characters that can be converted to
10501 multibyte char.
10502
105032002-08-26 Kim F. Storm <storm@cua.dk>
10504
b6189c3b
KS
10505 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
10506 foreground and background colors. From Joe Buehler.
048addec
JD
10507
105082002-08-26 Miles Bader <miles@gnu.org>
10509
10510 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
10511
105122002-08-25 Andrew Choi <akochoi@shaw.ca>
10513
10514 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
10515 defined instead of MAC_OSX.
10516
10517 * s/darwin.h (select): Define select to sys_select only if
10518 HAVE_CARBON is defined.
10519 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
10520 (DONT_REOPEN_PTY): #def it.
10521
10522 * macterm.c (XTread_socket): Remove code to call
10523 SendEventToEventTarget for keys with command modifiers when
10524 mac_command_key_is_meta is nil.
10525
105262002-08-24 Andreas Schwab <schwab@suse.de>
10527
10528 * eval.c (Fdefvar): Fix last change.
10529
105302002-08-23 Richard M. Stallman <rms@gnu.org>
10531
10532 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
10533 Record variables in load history as (defvar . VAR).
10534 (Fdefvar): Don't record in load history if no initial value.
10535 (Qdefvar): New variable.
10536 (syms_of_eval): Init and staticpro it.
10537
10538 * lread.c (syms_of_lread): Doc fix.
10539 (build_load_history): Use Fmember to see if a definition
10540 is already in the Vload_history element.
10541
10542 * process.c (Fstart_process): Remove /: from program name.
10543
10544 * emacs.c (decode_env_path): Don't add /: if file name handler
10545 has a `safe-magic' property.
10546
10547 * callproc.c (Fcall_process): Remove /: from program name.
10548
105492002-08-23 Stefan Monnier <monnier@cs.yale.edu>
10550
10551 * regex.c (PATFETCH): Remove the translating fetch.
10552 (PATFETCH_RAW): Rename to PATFETCH.
10553 (set_image_of_range): New fun.
10554 (SET_RANGE_TABLE_WORK_AREA): Use it.
10555 (regex_compile): Don't translate the pattern chars so eagerly.
10556 Only do it when inserting an `exactn' bytecode or when handling
10557 a char-range.
10558 (mutually_exclusive_p): Avoid empty statement.
10559
105602002-08-22 Kim F. Storm <storm@cua.dk>
10561
10562 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
10563 end up on a partially visible line; this reverts a specific part
10564 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
10565 display error which has been reported several times now.
10566 However it introduces the problem that changes was supposed to fix.
10567 See my comments in the source if you want to debug this further.
10568
105692002-08-20 Kenichi Handa <handa@etl.go.jp>
10570
10571 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10572
105732002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
10574
10575 * msdos.c (croak): Add `void' to definition.
10576
c1380aa6 10577 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
10578 Don't define them, they are defined in msdos.c.
10579
10580 * mem-limits.h [MSDOS]: Declare etext.
10581
10582 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
10583 `const' since CORRECT_DIR_SEPS modifies its target.
10584
105852002-08-19 Kim F. Storm <storm@cua.dk>
10586
2fb0ce67 10587 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
10588 KEEP-RECORD to avoid clearing lossage when we just want to clear
10589 the current key sequence (kmacro needs this).
10590
105912002-08-19 Kenichi Handa <handa@localhost>
10592
10593 * composite.c (run_composition_function): Call FUNC if it is fboundp.
10594
10595 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
10596 cons, return Qnil.
10597
105982002-08-17 Richard M. Stallman <rms@gnu.org>
10599
10600 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
10601
10602 * sysdep.c [!VMS]: Include sys/files.h.
10603
10604 * editfns.c (save_restriction_restore): Defend from unchained marker.
10605
10606 * buffer.c (overlays_at): Handle extending vec uniformly.
10607 (overlays_in): Handle extending vec from length 0 as in overlays_at.
10608
106092002-08-15 Andrew Choi <akochoi@shaw.ca>
10610
10611 * mac.c (init_mac_osx_environment): New function.
10612
10613 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
10614
106152002-08-14 Kim F. Storm <storm@cua.dk>
10616
10617 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
10618 executing macro before appending to it (when used from Lisp).
10619 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
10620 which is called prior to each iteration of macro (for kmacro.el).
10621 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
10622
10623 * lisp.h (Fexecute_kbd_macro): Update prototype.
10624
10625 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
10626
106272002-08-14 Kenichi Handa <handa@etl.go.jp>
10628
10629 * xselect.c (QUTF8_STRING): New variable.
10630 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
10631 (x_atom_to_symbol): Likewise.
10632 (x_get_local_selection): New argument local_request. If it is
10633 nonzero, call handler_fn with the second arg nil.
10634 (x_handle_selection_request): Call x_get_local_selection with
10635 local_request 0.
10636 (lisp_data_to_selection_data): Don't encode the string here.
10637 (Fx_get_selection_internal): Call x_get_local_selection with
10638 local_request 1.
10639 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
10640
10641 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
10642
10643 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
10644
106452002-08-13 Richard M. Stallman <rms@gnu.org>
10646
10647 * minibuf.c (Fminibufferp): New function.
10648 (syms_of_minibuf): Defsubr it.
10649 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
10650
106512002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
10652
10653 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
10654
106552002-08-12 Richard M. Stallman <rms@gnu.org>
10656
10657 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
10658 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
10659 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
10660 already.
10661
10662 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
10663
106642002-08-11 Andrew Choi <akochoi@shaw.ca>
10665
10666 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
10667 (Vmac_pass_command_to_system): New variable.
10668 (Vmac_pass_control_to_system): New variable.
10669 (do_mouse_moved): Check wp with is_emacs_window.
10670 (XTread_socket): Check window_ptr with is_emacs_window.
10671 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
10672 events back to Mac Toolbox for processing, depending on values of
10673 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
10674 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
10675 Vmac_pass_control_to_system.
10676
106772002-08-10 Kenichi Handa <handa@etl.go.jp>
10678
10679 * coding.c (unencodable_char_position): New function.
10680 (Funencodable_char_position): New function.
10681 (syms_of_coding): Defsubr Funencodable_char_position.
10682
106832002-08-10 Andrew Choi <akochoi@shaw.ca>
10684
10685 * mac.c (sys_select) [MAC_OSX]: New function.
10686
10687 * macterm.c (MakeMeTheFrontProcess): New function.
10688 (mac_initialize): Call MakeMeTheFrontProcess.
10689
10690 * s/darwin.h: Define select to sys_select.
10691
106922002-08-09 Richard M. Stallman <rms@gnu.org>
10693
10694 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
10695
106962002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
10697
10698 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
10699 end of the buffer.
10700
107012002-08-08 Ken Raeburn <raeburn@mit.edu>
10702
10703 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
10704
10705 * puresize.h (BASE_PURESIZE): Increase to 910000.
10706
107072002-08-08 Kenichi Handa <handa@etl.go.jp>
10708
10709 * coding.c (Ffind_operation_coding_system): For write-region, if
10710 VISIT is a filename, make it the target.
10711
107122002-08-07 Richard M. Stallman <rms@gnu.org>
10713
10714 * alloc.c (mark_object): Detect long lists for debugging.
10715 (mark_object_loop_halt): New variable.
10716
10717 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
10718
10719 * data.c (Fmake_variable_frame_local): Doc fix.
10720
107212002-08-01 David Ponce <david@dponce.com>
10722
10723 * w32menu.c (local_heap, local_alloc, local_free): New macros.
10724 (malloc_widget_value, free_widget_value)
10725 (w32_free_submenu_strings): Use them.
10726
10727 (push_submenu_start, push_submenu_end, push_left_right_boundary)
10728 (push_menu_pane, push_menu_item, single_keymap_panes)
10729 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
10730 (single_submenu, set_frame_menubar)
10731 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
10732
10733 (Fx_popup_menu): Don't show pop up menu until preceding one is
10734 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
10735
10736 * w32menu.c: Changes adapted from xmenu.c
10737 (set_frame_menubar): First parse all submenus,
10738 then make widget_value trees from them.
10739 Don't allocate any widget_value objects
10740 until we are done with the parsing.
10741 (parse_single_submenu): New function.
10742 (digest_single_submenu): New function.
10743 (single_submenu): Function deleted, replaced by those two.
10744
107452002-08-04 Andrew Choi <akochoi@shaw.ca>
10746
10747 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
10748 returns a valid window pointer before proceeding for keyDown and
10749 autoKey events.
10750
107512002-08-03 Andrew Choi <akochoi@shaw.ca>
10752
10753 * macterm.c (USE_CARBON_EVENTS): New macro.
10754 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
10755 (x_iconify_frame): Call CollapseWindow.
10756 (Vmac_reverse_ctrl_meta): New variable.
10757 (Vmac_wheel_button_is_mouse_2): New variable.
10758 (init_mac_drag_n_drop): New function.
10759 (mac_do_receive_drag): New function.
10760 (mac_handle_service_event): New function.
10761 (init_service_handler): New function.
10762 (mac_to_emacs_modifiers): New function.
10763 (mac_event_to_emacs_modifiers): New function.
10764 (mac_get_mouse_btn): New function.
10765 (mac_convert_event_ref): New function.
10766 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
10767 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
10768 mac_get_mouse_btn.
10769 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
10770
10771 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
10772 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
10773 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
10774 TOOL_BAR_EVENT for MAC_OS as well.
10775 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
10776 as for WINDOWS_NT.
10777 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
10778
10779 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
10780
107812002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
10782
10783 * xdisp.c (forward_to_next_line_start): Fix a condition that
10784 lead to a newline being skipped.
10785
107862002-08-02 Andrew Choi <akochoi@shaw.ca>
10787
10788 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
10789
107902002-08-01 Richard M. Stallman <rms@gnu.org>
10791
10792 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
10793
107942002-07-31 Andrew Choi <akochoi@shaw.ca>
10795
10796 * macfns.c: #undef init_process before #define-ing it.
10797
10798 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
10799 HAVE_CARBON is defined.
10800
108012002-07-31 Richard M. Stallman <rms@gnu.org>
10802
10803 * xmenu.c (set_frame_menubar): First parse all submenus,
10804 then make widget_value trees from them.
10805 Don't allocate any widget_value objects
10806 until we are done with the parsing.
10807 (parse_single_submenu): New function.
10808 (digest_single_submenu): New function.
10809 (single_submenu): Function deleted, replaced by those two.
10810
108112002-07-30 Juanma Barranquero <lektu@terra.es>
10812
10813 * w32proc.c (syms_of_ntproc): Fix docstring of
10814 `w32-get-true-file-attributes'.
10815
108162002-07-28 Richard M. Stallman <rms@gnu.org>
10817
10818 * s/hpux8.h (HPUX8): Define this before including hpux.h.
10819 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
10820
10821 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
10822
10823 * keyboard.c (make_lispy_event):
10824 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
10825 Explicitly clear up_modifier in event->modifiers.
10826
108272002-07-27 Richard M. Stallman <rms@gnu.org>
10828
10829 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
10830
10831 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10832 for bar cursor.
10833
108342002-07-26 Kenichi Handa <handa@etl.go.jp>
10835
10836 * coding.c (detect_coding_iso2022): While checking a byte sequence
10837 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
10838 it in the normal loop.
10839
108402002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
10841
10842 * xterm.c (expose_overlaps): New function.
10843 (expose_window): Use it to fix the display of overlapping rows.
10844
10845 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
10846
108472002-07-23 Ken Raeburn <raeburn@gnu.org>
10848
10849 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
10850 since it only depends on XUINT.
10851
10852 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
10853 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
10854 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
10855 Macros deleted.
3947677c 10856
77d1daf2
AS
10857 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
10858 its value over other approaches.
10859 * sysdep.c (start_of_data): Don't define the function if a macro
10860 form has been defined.
8a8e19a3 10861
048addec
JD
108622002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
10863
10864 * xdisp.c (redisplay_updating_p): New variable.
10865 (init_iterator): Don't free realized faces when
10866 redisplay_updating_p is set.
10867 (redisplay_internal): Set redisplay_updating_p while updating
10868 the display.
10869
108702002-07-23 Richard M. Stallman <rms@gnu.org>
10871
10872 * editfns.c (Fmessage): Treat "" like nil.
10873
108742002-07-23 Kenichi Handa <handa@etl.go.jp>
10875
10876 * xdisp.c (face_before_or_after_it_pos):
10877 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10878
108792002-07-22 Juanma Barranquero <lektu@terra.es>
10880
10881 * callproc.c (init_callproc) [DOS_NT]:
10882 Initialize Vshared_game_score_directory to nil.
10883 (syms_of_callproc) [DOS_NT]: Likewise.
10884
108852002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
10886
10887 * xdisp.c (display_line): Replace an abort with xassert.
10888
108892002-07-21 Richard M. Stallman <rms@gnu.org>
10890
10891 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
10892 and END_UNCHANGED when setting buffer_unchanged_p.
10893 Use current_matrix_up_to_date_p to decide whether to use
10894 try_cursor_movement.
10895
10896 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
10897
10898 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
10899
10900 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
10901 Set to nil if dir does not exist.
10902 (syms_of_callproc): Init unconditionally and simply.
10903
10904 * buffer.c (Fbuffer_list): Doc fix.
10905
109062002-07-21 Ken Raeburn <raeburn@gnu.org>
10907
10908 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
10909
10910 * buffer.c (mmap_realloc): When shrinking, make sure number of
10911 pages to unmap is rounded towards zero.
10912
10913 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
10914 (XSETINT): Deleted.
10915
10916 * m/att3b.h (XINT): Don't define.
10917 (VALBITS, VALMASK, XTYPE): Deleted.
10918 (DATA_SEG_BITS): Define.
10919 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
10920 ARRAY_MARK_FLAG): Deleted.
10921 (DATA_SEG_BITS): Define.
10922 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
10923 (DATA_SEG_BITS): Define.
10924
109252002-07-20 Richard M. Stallman <rms@gnu.org>
10926
10927 * print.c (print_error_message): New args CONTEXT and CALLER.
10928 Calls changed.
10929
10930 * lisp.h (print_error_message): Declare new args.
10931
10932 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
10933 and CONTEXT to print_error_message, don't print them here.
10934 For a Quit, don't use Vsignaling_function.
10935 Call message_log_maybe_newline.
10936
10937 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
10938
109392002-07-20 Kim F. Storm <storm@cua.dk>
10940
10941 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
10942
109432002-07-19 Ken Raeburn <raeburn@gnu.org>
10944
10945 * bytecode.c (struct byte_stack): Pointers into byte string now
10946 point to const.
10947 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
10948 const.
10949 * charset.h (BCOPY_SHORT): Source pointer now points to const.
10950 * coding.c (encode_eol, detect_coding, detect_eol):
10951 (decode_coding, encode_coding, detect_coding_system):
10952 Source strings now treated as const.
10953 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
10954 modify Lisp string contents.
10955 * coding.h (decode_coding, encode_coding, detect_coding,
10956 detect_eol): Declarations updated.
10957 * composite.c (compose_chars_in_text): Treat Lisp string contents
10958 as const.
10959 * dispnew.c (safe_bcopy): Source pointer now points to const.
10960 * lisp.h (STRING_COPYIN): New macro.
10961 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
10962 (internal_with_output_to_temp_buffer): Declarations updated.
10963 * print.c (temp_output_buffer_setup):
10964 (internal_with_output_to_temp_buffer): Buffer name argument is now
10965 pointer to const.
10966 * sound.c (struct sound_device): Function pointer field "write"
10967 buffer argument now points to const.
10968 (vox_write): Buffer argument points to const.
10969 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
10970 contents as const.
10971 * sysdep.c (emacs_write): Buffer pointer now const.
10972 * term.c (encode_terminal_code): Buffer pointer now const.
10973 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
10974 (x_face_list_fonts, x_update_menu_appearance):
10975 (hash_string_case_insensitive): Treat Lisp string contents as const.
10976
109772002-07-19 Juanma Barranquero <lektu@terra.es>
10978
048addec
JD
10979 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
10980
10981 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
10982 (Ffile_name_as_directory): Fix argument name in docstring.
10983 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
10984
109852002-07-18 Richard M. Stallman <rms@gnu.org>
10986
10987 * data.c (Fdefalias): Doc fix.
10988
109892002-07-17 Dave Love <fx@gnu.org>
10990
10991 * intervals.h (text_property_stickiness): Use P_.
10992
10993 * ccl.c: Remove `emacs' conditionals.
10994 (ccl_backtrace_table): Fix size spec.
10995 (ccl_driver): Fix type errors.
10996
109972002-07-16 Ken Raeburn <raeburn@gnu.org>
10998
10999 * alloc.c (xstrdup, make_string, make_unibyte_string)
11000 (make_multibyte_string, build_string): String pointer args now
11001 point to const.
11002 * charset.c (find_charset_in_text, c_string_width):
11003 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11004 * fileio.c (report_file_error):
11005 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11006 (count_combining_before, count_combining_after, insert_1_both):
11007 (insert, insert_and_inherit, insert_string):
11008 (insert_before_markers, insert_before_markers_and_inherit):
11009 * lread.c (intern, oblookup, hash_string):
11010 * minibuf.c (temp_echo_area_glyphs):
11011 * search.c (fast_c_string_match_ignore_case):
11012 * sysdep.c (emacs_open, set_file_times):
11013 * xfaces.c (xstricmp):
11014 * xdisp.c (store_frame_title, string_char_and_length):
11015 (message_dolog, message2, message2_nolog, set_message): Likewise.
11016 (set_message_1): Cast message string argument to const pointer.
11017 * editfns.c (general_insert_function): Insertion function now
11018 takes pointer to const for input data.
11019 * charset.h (find_charset_in_text, c_string_width):
11020 (parse_str_as_multibyte): Declarations updated.
11021 * dispextern.h (xstricmp): Declaration updated.
11022 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11023 (count_size_as_multibyte, count_combining_before):
11024 (count_combining_after, insert_1, insert_1_both, message_dolog):
11025 (insert, insert_and_inherit, insert_before_markers)
11026 (insert_before_markers_and_inherit, set_message, message2):
11027 (message2_dolog, build_string, make_string, make_unibyte_string):
11028 (make_multibyte_string, intern, oblookup, report_file_error):
11029 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11030 (emacs_open, xstrdup): Declarations updated.
11031 * systime.h (set_file_times): Declaration updated.
11032
11033 * charset.c (find_charset_in_text, lisp_string_width): Use const
11034 for pointer to lisp string data.
11035 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11036 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11037 * coding.c (Ffind_coding_systems_region_interval):
11038 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11039 (Fmake_directory_internal, Fdelete_directory):
11040 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11041 * fontset.c (font_family_registry, fs_query_fontset):
11042 (list_fontsets):
11043 * frame.c (Fframe_parameter):
11044 * keyboard.c (cmd_error_internal):
11045 * keymap.c (Fdescribe_buffer_bindings):
11046 * lread.c (complete_filename_p, openp):
11047 * minibuf.c (Fminibuffer_complete_word):
11048 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11049 (face_before_or_after_it_pos, next_element_from_string):
11050 (get_overlay_arrow_glyph_row, display_mode_element):
11051 (decode_mode_spec_coding):
11052 * xterm.c (same_x_server): Likewise.
11053
11054 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11055 settings of non-existent fields.
11056
11057 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11058 copy a lisp value.
11059
11060 * lread.c (Fintern_soft): Use string macros instead of
11061 Lisp_String fields.
11062 * keyboard.c (echo_char, parse_modifiers_uncached):
11063 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
11064 * textprop.c (validate_interval_range, interval_of): Likewise.
11065
11066 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
11067
11068 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11069 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
11070 XSTRING()->size_byte.
11071
11072 * lisp.h (SDATA, SREF): Produce rvalue.
11073 (SSET): New macro.
11074 * alloc.c (make_event_array): Use SSET for storing into a string.
11075 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
11076 a string.
11077 * casefiddle.c (casify_object): Use SSET.
11078 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11079 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
11080 address of string contents.
11081 * data.c (Faref): Use SDATA.
11082 (Faset): Use SDATA, SSET.
11083 * dired.c (directory_files_internal): Use SSET.
11084 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
11085 (Fread_file_name): Use SREF, SSET.
11086 * fns.c (concat): Use SSET.
11087 (concat, Fdelete): Use SDATA.
11088 * insdel.c (insert_from_string_1): Use SDATA.
11089 * keyboard.c (Fevent_convert_list): Use SREF.
11090 * lread.c (Fload): Use SDATA, SSET.
11091 * macfns.c (validate_x_resource_name): Use SSET.
11092 * process.c (status_message): Use SSET.
11093 * search.c (wordify): Use SDATA.
11094 (Freplace_match): Use SREF.
11095 * w32fns.c (validate_x_resource_name): Use SSET.
11096 * xfns.c (validate_x_resource_name): Use SSET.
11097 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
11098
110992002-07-16 Richard M. Stallman <rms@gnu.org>
11100
11101 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
11102
11103 * xdisp.c (reconsider_clip_changes):
11104 Don't test prevent_redisplay_optimizations_p.
11105 (redisplay_internal): Test prevent_redisplay_optimizations_p
11106 along with clip_changed in some cases.
11107 (try_window_id): Likewise.
11108 (redisplay_window): New local var buffer_unchanged_p.
11109
11110 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
11111
11112 * process.c (create_process): Test USG_SUBTTY_WORKS.
11113 (process_send_signal): Clean up handling of GID.
11114 Detect errors in ioctls meant to set GID.
11115
11116 * window.c (temp_output_buffer_show):
11117 Don't set prevent_redisplay_optimizations_p.
11118
111192002-07-15 Juanma Barranquero <lektu@terra.es>
11120
11121 * eval.c (Fdefvaralias): Add docstring argument.
11122
111232002-07-15 Ken Raeburn <raeburn@gnu.org>
11124
11125 * lisp.h (STRING_INTERVALS): Produce rvalue.
11126 (STRING_SET_INTERVALS): New macro.
11127 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
11128 * fns.c (Fstring_as_multibyte): Likewise.
11129 * intervals.c (balance_possible_root_interval, delete_interval)
11130 (create_root_interval, copy_intervals_to_string): Likewise.
11131 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
11132 instead of 0.
11133
111342002-07-14 Ken Raeburn <raeburn@gnu.org>
11135
11136 * lisp.h (STRING_SET_CHARS): New macro.
11137 (SCHARS, SBYTES): Produce rvalues.
11138 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
11139 * fns.c (concat): Likewise.
11140 * lread.c (read_vector): Likewise.
11141
11142 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
11143 (STRING_SET_UNIBYTE): New macro.
11144 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
11145 length of -1) changed to use STRING_SET_UNIBYTE.
11146 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
11147 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
11148 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
11149 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
11150 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
11151 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
11152 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
11153 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
11154 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
11155 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
11156 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
11157 STRING_BYTES or indirection changed to SCHARS, SBYTES,
11158 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
11159 unchanged for now.
11160
111612002-07-13 Kim F. Storm <storm@cua.dk>
11162
11163 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
11164
111652002-07-12 Richard M. Stallman <rms@gnu.org>
11166
11167 * fileio.c (Fwrite_region): Doc fix.
11168
11169 * print.c (print_error_message): Don't handle Vsignaling_function here.
11170
11171 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
11172 (command_loop_1): Avoid certain actions after memory-full error.
11173
11174 * eval.c (Fsignal): Don't call cancel_hourglass.
11175 For a memory-full error, don't call Vsignal_hook_function
11176 and don't set Vsignaling_function.
11177
11178 * process.c (process_send_signal): Add abort call.
11179
111802002-07-11 Markus Rost <rost@math.ohio-state.edu>
11181
11182 * keymap.c (Fkey_binding): Fix typo.
11183
111842002-07-11 Richard M. Stallman <rms@gnu.org>
11185
11186 * alloc.c (Vmemory_full): New variable.
11187 (Vmemory_signal_data): Renamed from memory_signal_data.
11188 Uses changed.
11189 (syms_of_alloc): Defvar them.
11190 (memory_full, buffer_memory_full): Set Vmemory_full.
11191
11192 * lisp.h (Vmemory_full): Add declaration.
11193 (current_column, indented_beyond_p): Change declaration.
11194
11195 * indent.c (last_known_column): Declare as double, not float.
11196 (current_column, current_column_1, string_display_width)
11197 (position_indentation): Return `double'.
11198 (indented_beyond_p): Arg `column' is `double'. Callers changed.
11199
11200 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
11201 (back_to_previous_visible_line_start)
11202 (reseat_at_next_visible_line_start, next_element_from_buffer):
11203 Use `double', not `float', when calling indented_beyond_p.
11204
11205 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
11206
11207 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
11208
112092002-07-11 Juanma Barranquero <lektu@terra.es>
11210
11211 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
11212 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
11213 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
11214 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
11215 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
11216 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
11217
112182002-07-10 Juanma Barranquero <lektu@terra.es>
11219
d814862a
JB
11220 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
11221 All callers changed.
048addec
JD
11222
112232002-07-09 Stefan Monnier <monnier@cs.yale.edu>
11224
11225 * data.c (Fdefalias): Add an optional `docstring' argument.
11226 (set_internal, Fsetq_default): Use XCAR/XCDR.
11227
11228 * composite.c (HASH_VALUE, HASH_KEY):
11229 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
11230
112312002-07-09 Kenichi Handa <handa@etl.go.jp>
11232
11233 * callproc.c (Fcall_process): Fix previous change.
11234
112352002-07-07 Stefan Monnier <monnier@cs.yale.edu>
11236
11237 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11238 Add support for hash-tables.
11239 (Ftry_completion): Return t even if the string appears multiple times.
11240
11241 * fns.c (Fnconc): Use XCDR.
11242 (Fprovide): Use CONSP and XCDR.
11243 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11244 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
11245 (Fmake_hash_table): Accept `:size nil'.
11246 (Fmakehash): Delete: moved to subr.el.
11247 (syms_of_fns): Don't defsubr makehash.
11248
11249 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11250 (HASH_TABLE_SIZE): Move from fns.c.
11251
112522002-07-07 Richard M. Stallman <rms@gnu.org>
11253
11254 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
11255 Instead just return 0 when there is something to be done.
11256 (try_scrolling): If make_cursor_line_fully_visible returns 0,
11257 retry scrolling as if cursor were off the bottom.
11258 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
11259 return CURSOR_MOVEMENT_MUST_SCROLL.
11260 (redisplay_window): If make_cursor_line_fully_visible returns 0,
11261 go to try_to_scroll.
11262
11263 * buffer.c (Fbuffer_local_value): Store current value into its binding
11264 so we get the up-to-date value for the binding that is loaded.
11265
11266 * eval.c (Fdefmacro): Doc fix.
11267
112682002-07-05 Dave Love <fx@gnu.org>
11269
11270 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
11271 correctly.
11272
11273 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
11274 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
11275 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
11276 CCL_LookupCharConstTbl.
11277 (syms_of_ccl): Defvar translation-hash-table-vector.
11278
112792002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11280
11281 * xdisp.c: Remove unused variable `face'.
11282
112832002-07-04 Juanma Barranquero <lektu@terra.es>
11284
11285 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
11286 obsolescence information.
11287
112882002-07-03 Andrew Choi <akochoi@shaw.ca>
11289
11290 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
11291 pattern. Search cache first.
11292 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
11293 for Japanese font.
11294 (XLoadQueryFont): Use it.
11295
112962002-07-02 Richard M. Stallman <rms@gnu.org>
11297
11298 * keymap.c (Fdefine_key): Doc fix.
11299
11300 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
11301
113022002-07-02 Juanma Barranquero <lektu@terra.es>
11303
11304 * keymap.c (syms_of_keymap): Fix typo.
11305
113062002-07-01 Andrew Choi <akochoi@shaw.ca>
11307
11308 * s/darwin.h: Define POSIX_SIGNALS.
11309
11310 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
11311 and FSRefMakePath to convert FSSpec returned with Apple Event to
11312 Posix pathname.
11313 (mac_initialize) [TARGET_API_MAC_CARBON]:
11314 Call init_required_apple_events and disable the `Quit' menu item
11315 provided automatically by the Carbon Toolbox.
11316
113172002-07-01 Dave Love <fx@gnu.org>
11318
11319 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11320 for K&R.
11321
11322 * xterm.c: Fix prototype for K&R.
11323
11324 * term.c (costs_set): Declare static, non-initialized for pcc.
11325
113262002-07-01 Richard M. Stallman <rms@gnu.org>
11327
11328 * keyboard.c (timer_last_idleness_start_time): New variable.
11329 (timer_start_idle): Set that.
11330 (read_key_sequence): Use that to reset timer_idleness_start_time
11331 to previous value.
11332
11333 * window.c (Frecenter): With arg, set optional_new_start.
11334
11335 * xdisp.c (redisplay_internal): Make optional_new_start really work.
11336
11337 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
11338 buffer for completion.
11339
113402002-06-29 Ken Raeburn <raeburn@gnu.org>
11341
11342 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
11343
113442002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11345
11346 * keyboard.c (readable_filtered_events): New function that filters
11347 FOCUS_IN_EVENT depending on parameter.
11348 (readable_events): Calls readable_filtered_events, not filtering
11349 FOCUS_IN_EVENT.
11350 (get_filtered_input_pending): New function, filtering parameter passed
11351 to readable_filtered_events.
11352 (get_input_pending): Calls get_filtered_input_pending, not filtering
11353 FOCUS_IN_EVENT.
11354 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
11355 FOCUS_IN_EVENT.
11356
11357 * xterm.h (struct x_output): Add focus_state.
11358
11359 * xterm.c (x_focus_changed): New function.
11360 (x_detect_focus_change): New function.
11361 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
11362 EnterNotify and LeaveNotify to track X focus changes.
11363
113642002-06-28 Andreas Schwab <schwab@suse.de>
11365
11366 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
11367
113682002-06-27 Kim F. Storm <storm@cua.dk>
11369
11370 * xdisp.c: (mode_line_string_list, mode_line_string_face)
11371 (mode_line_string_face_prop): New variables.
11372 (store_mode_line_string): New function.
11373 (display_mode_element): Use store_mode_line_string to
11374 add mode-line string elements to mode_line_string_list
11375 when mode_line_string_list is non-nil.
11376 (Fformat_mode_line): Now returns propertized string by
11377 default. New arg NO-PROPS to ignore properties.
11378 (decode_mode_spec): Only add two dashes for %- in propertized
11379 mode-line string.
11380 (syms_of_xdisp): Init and staticpro mode_line_string_list.
11381
113822002-06-27 Stefan Monnier <monnier@cs.yale.edu>
11383
11384 * minibuf.c (minibuffer_completion_contents): Add return type.
11385
113862002-06-27 Juanma Barranquero <lektu@terra.es>
11387
11388 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
11389
113902002-06-26 Juanma Barranquero <lektu@terra.es>
11391
11392 * fileio.c (read_file_name_cleanup): Add missing return.
11393
113942002-06-26 Richard M. Stallman <rms@gnu.org>
11395
11396 * window.c (Frecenter): Don't set force_start flag.
11397
11398 * minibuf.c (do_completion, Fminibuffer_complete_word)
11399 (Fminibuffer_completion_help): Complete just the text before point.
11400 (minibuffer_completion_contents): New function.
11401
11402 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
11403
11404 * frame.c (frames_bury_buffer): Function deleted.
11405
114062002-06-25 Miles Bader <miles@gnu.org>
11407
11408 * callint.c (Fcall_interactively): When checking to see if doprnt hit
11409 the end of callint_message, allow for a terminating '\0'.
11410
114112002-06-24 Juanma Barranquero <lektu@terra.es>
11412
11413 * w32select.c: Include composite.h
11414
11415 * w16select.c: Likewise.
11416
114172002-06-24 Kenichi Handa <handa@etl.go.jp>
11418
11419 * callproc.c (Fcall_process): If code detection is necessary,
11420 call detect_coding directly here.
11421
11422 * coding.c (detect_eol): Preserve coding->cmp_data.
11423
11424 * w16select.c (Fw16_get_clipboard_data):
11425 * w32fns.c (w32_to_x_font):
11426 * w32select.c (Fw32_get_clipboard_data):
11427 * xselect.c (selection_data_to_lisp_data):
11428 * xterm.c (XTread_socket): Disable composition handling.
11429
114302002-06-24 Stefan Monnier <monnier@cs.yale.edu>
11431
11432 * print.c (temp_output_buffer_setup): Kill all local variables.
11433
114342002-06-22 Stefan Monnier <monnier@cs.yale.edu>
11435
11436 * lread.c (Fread): Remove redundant and imprecise declaration.
11437
11438 * xfns.c (check_x_display_info): Use check_x_frame.
11439
11440 * .gdbinit (xprintsym): Use the new `xname' field.
11441 (xsymbol): Use it.
11442
114432002-06-22 Jason Rumney <jasonr@gnu.org>
11444
11445 * w32fns.c (file_dialog_callback): New function.
11446 (Fx_file_dialog): Allow selecting directories as well as files.
11447
114482002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11449
11450 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 11451 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
11452
114532002-06-17 Andrew Choi <akochoi@shaw.ca>
11454
11455 * macterm.c (mac_scroll_area): Set foreground and backcolor to
11456 black and white before scrolling. Restore frame background and
11457 foreground color after scrolling.
11458 (do_window_update): Call XClearWindow before calling expose_frame.
11459 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
11460 FRAME_FOREGROUND_PIXEL of frame.
11461
11462 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11463 test Mac command key as <ALT> key.
11464
114652002-06-17 Stefan Monnier <monnier@cs.yale.edu>
11466
11467 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
11468
11469 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
11470 Lookup keys in function-key-map immediately so that key-translation-map
11471 can be applied earlier.
11472 Remove function_key_possible and key_translation_possible, replaced
11473 by checking `keytran_start < t'.
11474
11475 * .gdbinit (xsymbol): Use the new `xname' field.
11476
114772002-06-17 Andrew Choi <akochoi@shaw.ca>
11478
11479 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11480 test Mac command key as <ALT> key.
11481
11482 * mac.c (do_applescript): Call initialize_applescript if necessary
11483 when first called. Dispose of result_desc only when there is no error.
11484 (Fdo_applescript): Use %d format specifier instead of %ld.
11485
114862002-06-16 Andrew Choi <akochoi@shaw.ca>
11487
11488 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
11489 of FrontWindow for cases keyDown and autoKey.
11490
11491 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
11492 Vdefault_fontset to Monaco with mac-roman coding.
11493
11494 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
11495 init_process before and after inclusion of Carbon/Carbon.h, resp.
11496
11497 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
11498 cursor_gc.
11499 (add_font_name_table_entry): New function.
11500 (init_font_name_table): Use add_font_name_table_entry; add italic,
11501 bold, and bold-italic entries for truetype fonts.
11502
11503 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
11504 for Mac too.
11505 (try_font_list) [MAC_OS]: If no font matches given registry, try
11506 fonts with any registry matching face_family.
11507 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
11508
11509 * s/darwin.h: If autoconf detects the Ncurses library, define
11510 LIBS_TERMCAP to -lncurses to use it.
11511
115122002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
11513
11514 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
11515
115162002-06-15 Richard M. Stallman <rms@gnu.org>
11517
11518 * window.c (Fset_window_configuration): Explicitly preserve
11519 the point value that new_current_buffer had at the start.
11520
115212002-06-14 Juanma Barranquero <lektu@terra.es>
11522
11523 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
11524 Fix typos.
11525
115262002-06-14 Kim F. Storm <storm@cua.dk>
11527
11528 * insdel.c (insert_1_both, insert_from_string_1)
11529 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
11530 insert happened in the end_unchanged region. Otherwise, the
11531 redisplay may be confused and duplicate the last line in the
11532 buffer [seen after save-buffer when require-final-newline==t].
11533
115342002-06-13 Jason Rumney <jasonr@gnu.org>
11535
11536 * w32.c (init_environment): Remove EMACSLOCKDIR.
11537 (stat): Swap _S_IFDIR and _S_IFREG.
11538
115392002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11540
11541 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
11542 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
11543 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
11544 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
11545 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
11546 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
11547 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
11548 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
11549 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
11550 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
11551 SELECTION_REQUEST_EVENT, selection_clear_event to
11552 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
11553 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
11554 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
11555 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
11556 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
11557 no_event to NO_EVENT.
11558
115592002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11560
11561 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
11562
115632002-06-12 Stefan Monnier <monnier@cs.yale.edu>
11564
11565 * intervals.c (textget): Don't forget to `return'.
11566 (lookup_char_property): Use XCAR/XCDR.
11567
115682002-06-12 Juanma Barranquero <lektu@terra.es>
11569
11570 * xdisp.c (Fformat_mode_line): Fix typo.
11571
115722002-06-12 Kim F. Storm <storm@cua.dk>
11573
11574 * xdisp.c (Fformat_mode_line): New function.
11575 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
11576 (store_frame_title_char, store_frame_title): Use unconditionally.
11577 (init_xdisp): Defsubr Fformat_mode_line.
11578 Initialize frame_title_buf etc. unconditionally.
11579
115802002-06-11 Stefan Monnier <monnier@cs.yale.edu>
11581
11582 * keyboard.c (read_key_sequence):
11583 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
11584 things through those maps after downcasing events.
11585 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
11586 applies after function-key-map.
11587 Make sure that keytran can be done in the middle in the sequence.
11588 Be careful not to throw away events past the one we downcase.
11589
11590 * lread.c (read_integer): Remove unused var `tem'.
11591 (read1): Fix int/Lisp_Object mixup.
11592
11593 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
11594
115952002-06-11 Richard M. Stallman <rms@gnu.org>
11596
11597 * keyboard.c (readable_events): Ignore any number of
11598 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
11599
116002002-06-09 Miles Bader <miles@gnu.org>
11601
11602 * xfaces.c (Ftty_supports_face_attributes_p): New function.
11603 (parse_rgb_list, tty_lookup_color): New functions.
11604 (tty_defined_color): Use `tty_lookup_color' to do all the work.
11605 (color_distance, Fcolor_distance): New functions.
11606 (TTY_SAME_COLOR_THRESHOLD): New macro.
11607 (Qtty_color_standard_values): New variable.
11608 (syms_of_xfaces): Initialize new vars & functions.
11609
116102002-06-08 Colin Walters <walters@verbum.org>
11611
11612 * textprop.c (Vchar_property_alias_alist): New variable.
11613 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
11614
11615 * intervals.c (lookup_char_property): New function for looking up
11616 overlay and text properties, created from textget.
11617 (textget): Use it.
11618
11619 * intervals.h (lookup_char_property): Declare.
11620 (Vchar_property_alias_alist): Declare.
11621
11622 * buffer.c (Foverlay_get): Use lookup_char_property.
11623
116242002-06-07 Sam Steingold <sds@gnu.org>
11625
11626 * xselect.c (lisp_data_to_selection_data): Fix last change:
11627 *data_ret is not a Lisp string, while unibyte_string is.
11628
116292002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
11630
11631 * xselect.c (lisp_data_to_selection_data): Fix last change:
11632 set size_ret.
11633
116342002-06-07 Andreas Schwab <schwab@suse.de>
11635
11636 * m/amdx86-64.h: New file.
11637
116382002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
11639
11640 * fns.c (Fstring_make_unibyte): Doc fix.
11641
11642 * xselect.c (lisp_data_to_selection_data): If the requested type
11643 is STRING, call string_make_unibyte to encode the selected text
11644 as a string.
11645
11646 * window.c (Fset_window_hscroll): Doc fix.
11647
116482002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11649
11650 * fileio.c (choose_write_coding_system):
11651 Call select-safe-coding-system properly.
11652
116532002-06-03 Richard M. Stallman <rms@gnu.org>
11654
11655 * xdisp.c (message_with_string): Error if STRING is not a string.
11656
11657 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
11658
11659 * fileio.c (choose_write_coding_system): Pass FILE arg to
11660 Vselect_safe_coding_system_function.
11661
116622002-06-03 Ken Raeburn <raeburn@gnu.org>
11663
11664 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
11665
116662002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
11667
11668 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
11669 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
11670 * keymap.c (describe_command): Likewise.
11671 * minibuf.c (read_minibuf): Likewise.
11672
11673 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
11674 Cast `current_column' return value to int.
11675 (back_to_previous_visible_line_start)
11676 (reseat_at_next_visible_line_start, next_element_from_buffer):
11677 Cast `indented_beyond_p' 3rd arg to float.
11678
11679 * indent.c (last_known_column): Now a float.
11680 (current_column_1, position_indentation, current_column)
11681 (string_display_width): Return float.
11682 (Fcurrent_column): Cast `current_column' return value to int.
11683 (Fcurrent_indentation): Cast `position_indentation' retval to int.
11684 (indented_beyond_p): Third arg now a float.
11685 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
11686
11687 * lisp.h (current_column): Now returns float.
11688 (indented_beyond_p): 3rd arg now a float.
11689
116902002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
11691
11692 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
11693 is Qcompound_text_with_extensions.
11694
11695 * xselect.c (lisp_data_to_selection_data): Always set selection
11696 type as string if x_encode_text returns streingp non-NULL.
11697
11698 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
11699
117002002-05-30 Richard M. Stallman <rms@gnu.org>
11701
11702 * window.c (Fset_window_configuration): Correct the handling
11703 of point in current buffer, to work with multiple windows.
11704
117052002-05-29 Colin Walters <walters@verbum.org>
11706
11707 * lread.c (Fread_from_string): Don't depend on order of evaluation
11708 for C function parameters.
11709
117102002-05-28 Richard M. Stallman <rms@gnu.org>
11711
11712 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
11713 way for blinked-off state and for a nonselected window.
11714
11715 * window.c (window_scroll_pixel_based): Don't call Fbolp;
11716 instead, see if the new start pos is at beginning of line.
11717
11718 * fileio.c (Fwrite_region): If START is a string, don't
11719 make any annotations.
11720
11721 * eval.c (syms_of_eval): Doc fix.
11722
117232002-05-28 Colin Walters <walters@debian.org>
11724
11725 * emacs.c (USAGE1): Add --no-splash.
11726 (standard_args): Ditto.
11727
117282002-05-28 Colin Walters <walters@gnu.org>
11729
11730 * lread.c (readchar_count): New variable.
11731 (readchar): Increment it.
11732 (unreadchar): Decrement it.
11733 (read_multibyte): Decrement it.
11734 (Vread_with_symbol_positions): New variable.
11735 (Vread_symbol_positions_list): New variable.
11736 (read_internal_start): New function, created from Fread and
11737 Fread_from_string. Handle Vread_symbol_positions_list and
11738 Vread_with_symbol_positions.
11739 (readevalloop, Fread, Fread_from_string): Use it.
11740 (read1): Use readchar_count to add symbol positions to
11741 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
11742 (syms_of_lread): DEFVAR_LISP and initialize them.
11743
11744 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
11745 (substitute_object_recurse, substitute_object_in_subtree)
11746 (substitute_in_interval): Prototype.
11747 (read_multibyte): Return c if it's less than zero.
11748
117492002-05-28 Kim F. Storm <storm@cua.dk>
11750
11751 * fileio.c (Fread_file_name_internal): Added brute-force
11752 speed up for using predicate file-directory-p.
11753
117542002-05-28 Kim F. Storm <storm@cua.dk>
11755
11756 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
11757 New variables.
11758 (syms_of_fileio): DEFVAR_LISP them.
11759 (read_file_name_cleanup): New unwind function.
11760 (Fread_file_name_internal): Only return completions satifying
11761 Vread_file_name_predicate. Temporarily unwind protect and rebind
11762 default-directory while checking completions against the predicate.
11763 (Fread_file_name): Added PREDICATE argument. Specbind it to
11764 Vread_file_name_predicate during completion.
11765 Call Vread_file_name_function to read the file name if non-nil.
11766
11767 * lisp.h (Fread_file_name): Now has 6 args.
11768
11769 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
11770 predicate for Fread_file_name when reading directory name.
11771 Supply Qnil for predicate in other calls to Fread_file_name.
11772
117732002-05-26 Miles Bader <miles@gnu.org>
11774
11775 * term.c (tty_capable_p): New function.
11776 * dispextern.h (tty_capable_p): New function declaration.
11777 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
11778 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
11779
117802002-05-23 Stefan Monnier <monnier@cs.yale.edu>
11781
11782 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
11783 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
11784 (Vwrite_region_annotate_functions): Docstring fix.
11785
117862002-05-23 Kim F. Storm <storm@cua.dk>
11787
11788 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
11789 phys_cursor's hpos is overwritten. This is still not completely
11790 correct, as it doesn't really make sense to use hpos at all to
11791 get the cursor glyph (as that is relative to the width of the
11792 characters on the line, which may have changed during the update).
11793
117942002-05-22 Jason Rumney <jasonr@gnu.org>
11795
11796 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
11797 Lisp_Object.
11798 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
11799 Use modified enumfont_t struct.
11800
11801 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11802
11803 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
11804 Handle the `hbar' cursor type.
11805 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11806
11807 * w32fns.c (Qhbar): New variable.
11808 (x_specified_cursor_type): Use it.
11809
118102002-05-21 Ken Raeburn <raeburn@gnu.org>
11811
11812 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
11813 now, when the address is needed.
11814
118152002-05-21 Colin Walters <walters@gnu.org>
11816
11817 * Makefile.in (shortlisp): Add font-core.el.
11818
118192002-05-20 Richard M. Stallman <rms@gnu.org>
11820
11821 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
11822
11823 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
11824 equivalent key bindings here.
11825
118262002-05-20 Ken Raeburn <raeburn@gnu.org>
11827
11828 Change symbol structure to contain a lisp object for the symbol
11829 name:
11830 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
11831 object field named "xname".
11832 (SYMBOL_NAME): New macro.
11833 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
11834 name field.
11835 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
11836 (mark_object, gc_sweep): Use symbol xname field and XSTRING
11837 instead of name field.
11838 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
11839 SYMBOL_NAME instead of XSYMBOL and name field.
11840 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
11841 instead of XSYMBOL and name field.
11842 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
11843 and SYMBOL_NAME instead of XSYMBOL and name field.
11844 * coding.c (Fread_coding_system, code_convert_region1)
11845 (code_convert_string1, code_convert_string_norecord)
11846 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
11847 XSYMBOL and name field.
11848 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
11849 (Fmake_variable_buffer_local, Fmake_local_variable)
11850 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
11851 of XSYMBOL and name field.
11852 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
11853 XSYMBOL and name field.
11854 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
11855 instead of XSYMBOL and name field.
11856 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
11857 XSYMBOL and name field.
11858 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
11859 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11860 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
11861 instead of XSYMBOL and name field.
11862 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
11863 (parse_modifiers, apply_modifiers, Fevent_convert_list)
11864 (parse_solitary_modifier, Fexecute_extended_command):
11865 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11866 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
11867 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
11868 of XSYMBOL and name field.
11869 (describe_command, describe_translation): Use SYMBOL_NAME and
11870 assignment instead of XSYMBOL and name field and XSETSTRING.
11871 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
11872 instead of XSYMBOL and name field.
11873 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
11874 name field and XSETSTRING.
11875 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11876 of XSYMBOL and name field.
11877 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
11878 assignment instead of XSYMBOL and name field and XSETSTRING.
11879 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
11880 XSTRING instead of XSYMBOL and name field.
11881 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
11882 and XSTRING instead of XSYMBOL and name field.
11883 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
11884 and XSTRING instead of XSYMBOL and name field.
11885 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
11886 XSTRING instead of XSYMBOL and name field.
11887 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11888 of XSYMBOL and name field.
11889 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
11890 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11891
118922002-05-19 Ken Raeburn <raeburn@gnu.org>
11893
11894 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
11895 and XCDR real rvalues in most configurations.
11896
11897 * buffer.c (fix_overlays_in_range, fix_overlays_before):
11898 Don't take the address of the cdr part of a cons cell; instead, track
11899 the parent cell and call XSETCDR, or set the variable for the head
11900 of the list if we haven't started down the list yet.
11901
119022002-05-19 Richard M. Stallman <rms@gnu.org>
11903
11904 * doc.c (reread_doc_file): Don't ask for confirmation.
11905
119062002-05-18 Jason Rumney <jasonr@gnu.org>
11907
11908 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
11909 (xbm_load_image): Use it.
11910 (xbm_load): Ditto.
11911 (xbm_read_bitmap_data): Reverted to xfns.c version.
11912 From David Ponce <david@dponce.com>.
11913
119142002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
11915
11916 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
11917 2.02 and later.
11918
119192002-05-16 Juanma Barranquero <lektu@terra.es>
11920
11921 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
11922
119232002-05-15 Stefan Monnier <monnier@cs.yale.edu>
11924
11925 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
11926 meaningful test.
11927 (read_char_minibuf_menu_prompt): Fix typo.
11928
119292002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11930
11931 * eval.c (Fcommandp): Doc fix.
11932
119332002-05-13 Stefan Monnier <monnier@cs.yale.edu>
11934
11935 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
11936 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
11937 (Fset_keymap_parent): Gcpro a bit more.
11938 (access_keymap): Gcpro around meta_map call and around the main loop.
11939 (get_keyelt): Gcpro when following indirect references.
11940 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
11941 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
11942 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
11943 Remove useless ad-hoc remap code.
11944
119452002-05-13 Richard M. Stallman <rms@gnu.org>
11946
11947 * search.c (search_buffer): Give up boyer moore search if inverse
11948 translation change charset_base.
11949
119502002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
11951
11952 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
11953 characters is carried over from the previous block of text, adjust
11954 coding->produced to account for the extra character.
11955
119562002-05-11 Andreas Schwab <schwab@suse.de>
11957
11958 * coding.c (intersection): Keep the elements of the returned list
11959 in the same order as in the first list.
11960
119612002-05-11 Kim F. Storm <storm@cua.dk>
11962
11963 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
11964 only update cmm_size if realloc actually succeeds.
11965 Testing with initial size of 2 elements revealed that using
11966 realloc on GNU/Linux would cause a random trap in xmalloc
11967 later on, so I rewrote the code to use malloc/bcopy/free instead
11968 of realloc.
11969
119702002-05-10 Jason Rumney <jasonr@gnu.org>
11971
11972 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
11973
119742002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
11975
11976 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
11977 parens, to ensure correct evaluation order.
11978
119792002-05-10 Kim F. Storm <storm@cua.dk>
11980
11981 * keymap.c (Vemulation_mode_map_alists): New variable.
11982 (syms_of_keymap): DEFVAR_LISP it.
11983 (current_minor_maps): Process keymap alists in that list before
11984 minor-mode-overriding-map-alist and minor-mode-map-alist.
11985
119862002-05-09 Richard M. Stallman <rms@gnu.org>
11987
11988 * search.c (Freplace_match): Doc fix.
11989
119902002-05-09 Kim F. Storm <storm@cua.dk>
11991
11992 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11993 Enlarge cursor rectangle drawn around image with non-zero relief.
11994
11995 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
11996 Enlarge cursor rectangle drawn around image with non-zero relief.
11997
11998 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11999 Enlarge cursor rectangle drawn around image with non-zero relief.
12000
120012002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12002
12003 * xselect.c (lisp_data_to_selection_data): Don't set selection
12004 type if comes from the Lisp object's car. If the selection
12005 contains a pure ASCII text, always return QSTRING as its type.
12006
120072002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12008
12009 * mac.c (mac-cut-function): Doc fix.
12010
120112002-05-05 Richard M. Stallman <rms@gnu.org>
12012
12013 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12014
120152002-05-04 Jason Rumney <jasonr@gnu.org>
12016
12017 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12018 for event-click-count.
12019
12020 * process.c (init_process): Only add server subfeature if we can
12021 use non-blocking I/O.
12022
120232002-05-04 Andrew Choi <akochoi@shaw.ca>
12024
12025 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12026 repeatedly.
12027
120282002-05-03 Jason Rumney <jasonr@gnu.org>
12029
12030 * process.c (Fmake_network_process): Only support server sockets
12031 when we can make them non-blocking.
12032
12033 * s/ms-w32.h (HAVE_SELECT): Define.
12034
12035 * w32.h (FILE_NDELAY): New flag.
12036
12037 * w32.c (sys_getpeername, fcntl): New functions.
12038 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12039
12040 * w32proc.c: include sys/file.h.
12041
120422002-05-03 Colin Walters <walters@verbum.org>
12043
12044 * callproc.c (Vgame_score_directory): Renamed to
12045 Vshared_game_score_directory.
12046
120472002-04-30 Richard M. Stallman <rms@gnu.org>
12048
12049 * s/gnu.h [emacs]: Include stdio.h.
12050 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12051
12052 * eval.c (do_autoload): Error if called while preparing to dump.
12053
12054 * fns.c (Frequire): Error if need to load while preparing to dump.
12055
120562002-04-28 Colin Walters <walters@verbum.org>
12057
12058 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12059 Default to "~/.emacs.d/games".
12060
120612002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12062
12063 * lread.c (openp): Change arg exec_only to predicate.
12064 (build_load_history): Use XCAR/XCDR.
12065 (Flocate_file_internal): New fun.
12066 (syms_of_lread): Defsubr it.
12067 (Fload): Update call to openp.
12068
12069 * lisp.h (openp): Update prototype.
12070
12071 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
12072 * w32proc.c (sys_spawnve):
12073 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
12074 * w32.c (check_windows_init_file):
12075 * sound.c (Fplay_sound_internal):
12076 * process.c (Fstart_process):
12077 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
12078 * mac.c (run_mac_command):
12079 * emacs.c (init_cmdargs):
12080 * callproc.c (Fcall_process): Update call to openp.
12081
12082 * textprop.c (remove_properties): Don't use XCAR without CONSP.
12083
12084 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
12085
120862002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12087
12088 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
12089 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
12090
120912002-04-28 Richard M. Stallman <rms@gnu.org>
12092
12093 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
12094
12095 * eval.c (Fcommandp): New arg for_call_interactively.
12096 * lisp.h (Fcommandp): Declare new arg.
12097
120982002-04-28 Jason Rumney <jasonr@gnu.org>
12099
12100 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
12101
12102 * w32.c (stat, fstat): Use file index information to generate
12103 inodes for directories where available.
12104
121052002-04-26 Andrew Choi <akochoi@shaw.ca>
12106
12107 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
12108 [HAVE_CARBON]: Include Mac object files.
12109
12110 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
12111 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
12112 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
12113 MAC_OSX, and MAC_OS instead of macintosh.
12114
12115 * editfns.c [MAC_OS8]: Include stdio.h.
12116
12117 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
12118
12119 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
12120 Apple Monaco.
12121
12122 * process.c: Declare QCfamily and QCfilter as extern.
12123 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
12124 calling select.
12125
12126 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
12127
12128 * tparam.c [MAC_OSX]: Don't define BC and UP.
12129
12130 * config.in [HAVE_CARBON]: Add.
12131
12132 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
12133 Move here from mac/src and mac/inc.
12134
12135 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
12136
121372002-04-26 Gerd Moellmann <gerd@gnu.org>
12138
12139 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
12140 Compute phys_cursor_width from the x position returned
12141 by x_draw_glyhs, which is cheaper.
12142 (x_display_and_set_cursor): Compute the buffer-local value
12143 of `cursor-in-non-selected-windows' only when needed.
12144
121452002-04-25 Gerd Moellmann <gerd@gnu.org>
12146
12147 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
12148 cursor on a stretch glyph has a width that depends on
12149 x_stretch_cursor_p.
12150
121512002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12152
12153 * abbrev.c (abbrev-start-location): Doc fix.
12154
12155 * indent.c (Fvertical_motion): Fix last change.
12156
121572002-04-25 Gerd Moellmann <gerd@gnu.org>
12158
12159 * indent.c (Fvertical_motion): Move to the start of the line
12160 containing PT before moving up or down.
12161
121622002-04-24 Gerd Moellmann <gerd@gnu.org>
12163
12164 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
12165 case of writing a whole row, more or less analogous to the case of
12166 writing only parts of a row.
12167
12168 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
12169 0 for NO_CURSOR.
12170
12171 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
12172
121732002-04-23 Colin Walters <walters@verbum.org>
12174
12175 * buffer.c (syms_of_buffer): Doc fix.
12176
121772002-04-23 Gerd Moellmann <gerd@gnu.org>
12178
12179 * xterm.c (notice_overwritten_cursor): Handle the special case
12180 of the cursor being in the first blank non-text line at the
12181 end of a window.
12182
12183 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12184 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12185 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
12186 bar cursors only, to make phys_cursor_width contain what its name
12187 suggests.
12188 (notice_overwritten_cursor): Consider the cursor image erased if
12189 the output area intersects the cursor image in y-direction.
12190
121912002-04-23 Simon Marshall <simon@gnu.org>
12192
12193 * xfns.c (x_set_mouse_color): Change default for cross_cursor
12194 to XC_hand2.
12195
121962002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12197
12198 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
12199
122002002-04-22 Kim F. Storm <storm@cua.dk>
12201
12202 * textprop.c (remove_properties): Fixed trap for malformed plist.
12203
122042002-04-22 Richard M. Stallman <rms@gnu.org>
12205
12206 * cmds.c (Fend_of_line): Handle intangible text in mid line.
12207
12208 * window.c (make_window): Initialize height_fixed_p,
12209 last_cursor_off_p, and p->cursor_off_p slots.
12210
122112002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12212
12213 * fns.c (use-dialog-box): Doc fix.
12214
122152002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12216
12217 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
12218 variables `row', `i' and `area'.
12219 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
12220 toolkit library.
12221
122222002-04-19 Stefan Monnier <monnier@cs.yale.edu>
12223
12224 * xfaces.c (clear_font_table): Don't free the default font of
12225 a frame even if it's on another display.
12226 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
12227 that could be Qt.
12228
122292002-04-19 Juanma Barranquero <lektu@terra.es>
12230
12231 * indent.c (Fmove_to_column): Remove unused local variable
12232 `next_boundary_byte'.
12233 (current_column_1): Likewise.
12234
122352002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
12236
12237 * msdos.c (Qhbar): New variable.
12238 (syms_of_msdos): Intern and staticpro it.
12239 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
12240 cursor type.
12241
122422002-04-19 Dave Lambert <dlambert@acm.org>
12243
12244 Theses change implement an underscore-like (`hbar') cursor.
12245
12246 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12247
12248 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
12249 Handle the `hbar' cursor type.
12250 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12251
12252 * xfns.c (Qhbar): New variable.
12253 (syms_of_xfns): Intern and staticpro it.
12254 (x_specified_cursor_type): Handle `hbar' cursor.
12255
12256 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
12257 not defined.
12258
122592002-04-18 Richard M. Stallman <rms@gnu.org>
12260
12261 * textprop.c (remove_properties): New arg LIST allows scanning
12262 either a list or a plist.
12263 (interval_has_some_properties_list): New function, like
12264 interval_has_some_properties using list instead of plist.
12265 All callers changed.
12266 (Fremove_list_of_text_properties): New function.
12267 (syms_of_textprop): Defsubr it.
12268
122692002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12270
12271 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
12272
122732002-04-17 Juanma Barranquero <lektu@terra.es>
12274
12275 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
12276
122772002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12278
12279 * window.c (coordinates_in_window): Don't report on margin area
12280 if its width is zero.
12281
122822002-04-16 Jason Rumney <jasonr@gnu.org>
12283
12284 * w32fns.c (Fx_file_dialog): Decode file name before using.
12285
12286 * w32term.c (construct_drag_n_drop): Likewise.
12287
122882002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
12289
12290 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
12291 store load-history in pure space.
12292
12293 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
12294
122952002-04-16 Stefan Monnier <monnier@cs.yale.edu>
12296
12297 * xterm.c (Qlatin_1, Qutf_8): New vars.
12298 (syms_of_xterm): Initialize them.
12299 (XTread_socket): Eliminate incorrect optimization that tried to avoid
12300 decoding the output of X*LookupString.
12301 Always use latin-1 to decode the output of XLookupString.
12302 Try Xutf8LookupString if XmbLookupString failed.
12303
12304 * region-cache.c (new_region_cache): Use BEG.
12305
123062002-04-16 Gerd Moellmann <gerd@gnu.org>
12307
12308 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
12309 configuration files.
12310 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
12311 returns 0.
12312
123132002-04-15 Andreas Schwab <schwab@suse.de>
12314
12315 * config.in: Regenerated using autoheader.
12316
12317 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
12318 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
12319 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
12320 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
12321 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
12322 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
12323 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
12324 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
12325 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
12326 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
12327 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
12328 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
12329 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
12330 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
12331 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
12332 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
12333 STACK_DIRECTION, now set by autoconf.
12334
123352002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12336
12337 * dispnew.c (marginal_area_string): Sort arguments.
12338
12339 * dispextern.h (marginal_area_string): Add prototype.
12340
123412002-04-13 Richard M. Stallman <rms@gnu.org>
12342
12343 * fileio.c (Finsert_file_contents):
12344 Don't call temp_output_buffer_setup--do just part, by hand.
12345
12346 * coding.c (run_pre_post_conversion_on_str):
12347 Don't call temp_output_buffer_setup--do just part, by hand.
12348
12349 * keyboard.c (command_loop_1): Don't call start_hourglass
12350 or cancel_hourglass when executing a macro.
12351
12352 * marker.c (count_markers): New function.
12353
12354 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
12355 grow without limit. Move recently used elements to the front.
12356
123572002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12358
12359 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
12360
123612002-04-12 Gerd Moellmann <gerd@gnu.org>
12362
12363 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
12364 rows marginal areas.
12365 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
12366 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12367
12368 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
12369
123702002-04-12 Dave Love <fx@gnu.org>
12371
12372 * dispnew.c (marginal_area_string): New.
12373
12374 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
12375 (Qleft_margin, Qright_margin): Declare.
12376 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
12377
12378 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
12379 note_mode_line_highlight and extended.
12380
12381 * keyboard.c (Qleft_margin, Qright_margin): Declare.
12382 (make_lispy_event): Deal with mouse events in margins.
12383
123842002-04-12 Stefan Monnier <monnier@cs.yale.edu>
12385
12386 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
12387
12388 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
12389 than deactivating the mark if tmm is set to `lambda'.
12390 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
12391 Use a single event for HELP_EVENT.
12392 (Fexecute_extended_command): Save last_point_position.
12393
123942002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12395
12396 * lisp.h (Fpropertize): Add prototype.
12397
12398 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
12399
124002002-04-10 Colin Walters <walters@verbum.org>
12401
12402 * config.in: Add HAVE_SHARED_GAME_DIR.
12403
12404 * callproc.c: (Vgame_score_directory): New variable.
12405 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
12406
124072002-04-10 Richard M. Stallman <rms@gnu.org>
12408
12409 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
12410
124112002-04-09 Stefan Monnier <monnier@cs.yale.edu>
12412
12413 * minibuf.c (read_minibuf): Use empty_string.
12414 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
12415 Short-circuit the search as soon as it "failed".
12416 (Fall_completions): Allow lambda forms and lists of strings for alist.
12417 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
12418 when require_match is nil.
12419 (Ftest_completion): Rename from `test_completion' and export to elisp.
12420 Call the predicate also when alist is a list.
12421 Obey Vcompletion_regexp_list.
12422 (do_completion, Fminibuffer_complete_and_exit): Use it.
12423 (Fassoc_string): Rename from `assoc_for_completion'.
12424 Allow list of strings as well and export to elisp.
12425
124262002-04-08 Stefan Monnier <monnier@cs.yale.edu>
12427
12428 * puresize.h (BASE_PURESIZE): Increase to 900KB.
12429
124302002-04-08 Juanma Barranquero <lektu@terra.es>
12431
12432 * w32.c (sys_accept): Don't hide variable `s'.
12433
124342002-04-05 Gerd Moellmann <gerd@gnu.org>
12435
12436 * callint.c (Fcall_interactively): Use INTEGERP instead of
12437 NUMBERP for checking Vhistory_length.
12438
124392002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12440
12441 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
12442 Doc fix to reflect it.
12443
124442002-04-04 Richard M. Stallman <rms@gnu.org>
12445
12446 * xdisp.c (display_mode_element): New arg RISKY.
12447 Disregard text props found or specified within a variable
12448 that isn't marked risky-local-variable.
12449 (Qrisky_local_variable): New variable.
12450 (syms_of_xdisp): Init and staticpro it.
12451
124522002-04-04 Stefan Monnier <monnier@cs.yale.edu>
12453
12454 * undo.c (record_point): New fun.
12455 (record_delete, record_insert): Use it.
12456
124572002-04-03 Juanma Barranquero <lektu@terra.es>
12458
12459 * doc.c (Fdocumentation): Add missing parentheses.
12460 (Fdocumentation_property): Likewise.
12461
124622002-04-03 Stefan Monnier <monnier@cs.yale.edu>
12463
12464 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
12465 data is 0, just return nil.
12466
124672002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
12468
12469 * msdos.c (syms_of_msdos): Fix last change with
12470 mouse_autoselect_window.
12471
124722002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12473
12474 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
12475 mouse_autoselect_window.
12476
124772002-04-02 Stefan Monnier <monnier@cs.yale.edu>
12478
12479 * keyboard.c (make_lispy_event): Handle unknown keysyms together
12480 with system-specific keysyms. Use it also for unknown function keys.
12481
12482 * doc.c (reread_doc_file): Return whether reload was attempted.
12483 (Fdocumentation, Fdocumentation_property): Don't try to reload
12484 if the doc is 0 and only ask once.
12485
12486 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
12487
124882002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
12489
12490 * keyboard.c (read_char): If the event was Qselect_window,
12491 restore timer_idleness_start_time to its previous value.
12492
12493 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
12494
124952002-04-01 Stefan Monnier <monnier@cs.yale.edu>
12496
12497 * region-cache.c (new_region_cache): Use BEG.
12498
12499 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
12500 Use BEG and BEG_BYTE.
12501
12502 * doc.c (get_doc_string): Return nil if the location is wrong.
12503 (reread_doc_file): New fun.
12504 (Fdocumentation, Fdocumentation_property):
12505 Call it if get_doc_string fails.
12506 (Fsnarf_documentation): Make it work for a dumped Emacs.
12507
12508 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
12509 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
12510
12511 * charset.c (Fstring): Allow 0 arguments.
12512
12513 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
12514
12515 * process.c (DATAGRAM_CONN_P, list_processes_1)
12516 (Fprocess_datagram_address, Fset_process_datagram_address)
12517 (Fset_network_process_options, server_accept_connection):
12518 Fix some int/Lisp_Object confusions (thank you union types).
12519
125202002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12521
12522 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
12523
12524 * w32term.c: Likewise.
12525 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
12526
12527 * keyboard.c (Qselect_window): New symbol.
12528 (head_table): Use it.
12529 (keys_of_keyboard): Bound select-window event to handle-select-window.
12530 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
12531
12532 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
12533 (last_window): New variable.
12534 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
12535 (note_mouse_movement): Remove reimplemented code in #if 0.
12536 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
12537 Emacs windows.
12538
12539 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
12540
125412002-03-31 Gerd Moellmann <gerd@gnu.org>
12542
12543 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
12544 Callers changed.
12545
125462002-03-30 Richard M. Stallman <rms@gnu.org>
12547
12548 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
12549 loop whenever it stops making progress.
12550
12551 * widget.c (set_frame_size): Don't call change_frame_size.
12552
125532002-03-30 Gerd Moellmann <gerd@gnu.org>
12554
12555 * dispnew.c (direct_output_for_insert):
12556 Call mark_window_display_accurate.
12557
125582002-03-29 Jason Rumney <jasonr@gnu.org>
12559
12560 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
12561
125622002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
12563
12564 * Makefile.in (lread.o): Depend on coding.h.
12565
12566 * lread.c (openp, Fload): Encode the file name before passing it
12567 to `stat', `access', and `emacs_open'.
12568 (openp): GCPRO the encoded file name. Don't recompute Lisp
12569 strings unnecessarily.
12570
125712002-03-29 Kim F. Storm <storm@cua.dk>
12572
12573 * fns.c (Flax_plist_put): Doc fix.
12574
125752002-03-28 Miles Bader <miles@gnu.org>
12576
12577 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
12578
125792002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12580
12581 * process.c (set-network-process-options): Add usage.
12582 (make-network-process): Doc fix.
12583
125842002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
12585
12586 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
12587
125882002-03-26 Richard M. Stallman <rms@gnu.org>
12589
12590 * fns.c (Fsubstring_no_properties): New function.
12591 (Flax_plist_get, Flax_plist_put): New functions.
12592 (syms_of_fns): defsubr them.
12593
12594 * xdisp.c (update_menu_bar): Test only update_mode_lines;
12595 don't test or alter w->update_mode_line.
12596
12597 * window.c (Fdisplay_buffer): Doc fix.
12598
125992002-03-24 Richard M. Stallman <rms@gnu.org>
12600
12601 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
12602
126032002-03-24 Gerd Moellmann <gerd@gnu.org>
12604
12605 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
12606 (Fdefmacro): Handle `(declare ...)'.
12607 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
12608 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
12609
126102002-03-24 Jason Rumney <jasonr@gnu.org>
12611
12612 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
12613 (xbm_file_p): Add prototypes.
12614 (xbm_format, xbm_image_p): Sync with xfns.c.
12615 (reflect_byte): New function.
12616 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
12617 (xbm_load_image): Create bitmaps with a depth of 1.
12618 (init_xfns): Enable XBM images.
12619
126202002-03-23 Jason Rumney <jasonr@gnu.org>
12621
12622 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
12623 correctly. Do not pass up_modifier to keyboard buffer.
12624
12625 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
12626
126272002-03-22 Stefan Monnier <monnier@cs.yale.edu>
12628
12629 * Makefile.in (bootstrapclean): New target.
12630 (bootstrap-temacs, bootstrap-doc): Remove.
12631 (bootstrap-emacs): Use a bog-standard `temacs'.
12632 Don't bother to build a DOC file.
12633
12634 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
12635
12636 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
12637 in temacs even if !CANNOT_DUMP.
12638 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
12639
12640 * alloc.c (check_pure_size): Only output a warning.
12641
126422002-03-22 Jason Rumney <jasonr@gnu.org>
12643
12644 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
12645 supported.
12646
12647 * w32term.c (zv_bits): Declare as short, for word alignment.
12648 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
12649 (syms_of_w32term): Define x-use-underline-position-properties.
12650
12651 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
12652 (clear_image_cache): Block input, fix logic, clear matrices in
12653 all frames that share this cache.
12654
126552002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
12656
12657 * emacs.c (main): Update the Copyright year in the blurb printed
12658 by "emacs --version".
12659
12660 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
12661
12662 * xterm.c (XTread_socket): If XK_ISO_Lock and
12663 XK_ISO_Last_Group_Lock are defined, handle keysyms between
12664 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
12665
126662002-03-21 Kim F. Storm <storm@cua.dk>
12667
12668 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
12669 menu-bar bindings in keymap and local-map properties _are_ used.
12670 But try keymap property first in accordance with 2002-01-03 patch.
12671 Added comment describing why this is not always reliable.
12672 (tool_bar_items): Ditto for tool-bar.
12673
126742002-03-21 Jason Rumney <jasonr@gnu.org>
12675
12676 * w32fns.c (x_clear_image_1): Disable color table code.
12677
126782002-03-21 Kim F. Storm <storm@cua.dk>
12679
12680 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
12681 removed the wrong version of the DEFUN macro; fixed it.
12682
12683 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
12684 Fmember rather than Fmemq).
12685 (Fprovide): Check that subfeatures is a list.
12686
12687 * process.c (QCfeature, QCdatagram): Removed variables.
12688 (QCtype, Qdatagram): New variables.
12689 (network_process_featurep): Removed function.
12690 (Fmake_network_process): Removed :feature check.
12691 Use :type 'datagram instead of :datagram t to create a datagram
12692 socket. This allows us to add other connection types (e.g. raw
12693 sockets) later in a consistent manner.
12694 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
12695 supported subfeatures for feature make-network-process.
12696 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
12697 Intern and staticpro QCtype and Qdatagram.
12698 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
12699
12700 * xfns.c: (QCtype): Remove duplicate declaration and
12701 initialization (is now declared in process.c).
12702
12703 * w32fns.c: (QCtype): Remove duplicate declaration and
12704 initialization (is now declared in process.c).
12705
127062002-03-21 Richard M. Stallman <rms@gnu.org>
12707
12708 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
12709 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
12710 when jumping to `fail' to avoid undoing reg changes in the
12711 last iteration of the loop.
12712 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
12713
12714 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
12715 Depend on process.h.
12716
127172002-03-20 Jason Rumney <jasonr@gnu.org>
12718
12719 Most of the following changes are still conditional on HAVE_IMAGES
12720 which is not set by default on Windows.
12721
12722 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
12723
12724 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
12725 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
12726 (four_corners_best, x_clear_image_1, x_clear_image)
12727 (x_alloc_image_color, postprocess_image)
12728 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
12729 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
12730 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
12731
12732 * w32gui.h (struct XImage): Define.
12733
12734 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
12735 extract mouse co-ordinates.
12736
127372002-03-20 Jason Rumney <jasonr@gnu.org>
12738
12739 * w32.c (init_winsock): Dynamically load new server and UDP
12740 socket functions.
12741 (socket_to_fd): New function.
12742 (sys_socket): Use it.
12743 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
12744 (sys_recvfrom, sys_sendto): New wrapper functions.
12745
12746 * process.c (QCfamily, QCfilter): Remove duplicate declaration
12747 and initialization.
12748
12749 * makefile.w32-in (LIBS): Remove $(WSOCK32).
12750
127512002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
12752
12753 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
12754 Don't use "sun" as a variable, it's a predefined constant on Sun
12755 machines.
12756
127572002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12758
12759 * bytecode.c (Fbyte_code): Revert last change.
12760
127612002-03-19 Kim F. Storm <storm@cua.dk>
12762
12763 * makefile.w32-in (LIBS): Add $(WSOCK32).
12764 From David Ponce <dponce@voila.fr>.
12765
127662002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12767
12768 * process.c (wait_reading_process_input): Move variables `pname'
12769 and `pnamelen' down where they are used.
12770
12771 * bytecode.c (Fbyte_code): Discard unused computed value to
12772 prevent gcc warning.
12773
12774 * lisp.h (Fplist_member): Add prototype.
12775
127762002-03-18 Kim F. Storm <storm@cua.dk>
12777
12778 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
12779 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
12780
12781 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
12782 Remove explicit GNU_LINUX settings for datagram support.
12783
127842002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12785
12786 * process.c (Fmake_network_process): Remove unused variable `sa'.
12787 Doc fix. Add usage:.
12788 (set_socket_options): Remove unused variables `optnum' and `opttype'.
12789
127902002-03-17 Richard M. Stallman <rms@gnu.org>
12791
12792 * xdisp.c (cursor_type_changed): New variable.
12793 (redisplay_internal): Redisplay all windows if cursor_type_changed.
12794 Clear it when clearing windows_or_buffers_changed.
12795 (try_cursor_movement, redisplay_window, try_window_id)
12796 (try_window_reusing_current_matrix): Test cursor_type_changed
12797 along with windows_or_buffers_changed.
12798
12799 * window.h (cursor_type_changed): New variable.
12800
12801 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
12802 not update_mode_lines, and always set it to 1.
12803
12804 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
12805 if no frames needed redrawing.
12806
128072002-03-17 Kim F. Storm <storm@cua.dk>
12808
12809 The following changes add support for network server processes,
12810 datagram connections, and local (unix) sockets.
12811
12812 * process.h (struct Lisp_Process): New member log.
12813 Doc fix: Member command used to indicate stopped network process.
12814 Doc fix: Member childp contains plist for network process.
12815 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
12816
12817 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
12818 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
12819 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
12820 New variables.
12821 (NETCONN1_P): New macro.
12822 (DATAGRAM_SOCKETS): New conditional symbol.
12823 (datagram_address): New array.
12824 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
12825 (status_message): Use concat3.
12826 (Fprocess_status): Add `listen' status to doc string. Return `stop'
12827 for a stopped network process.
12828 (Fset_process_buffer): Update contact plist for network process.
12829 (Fset_process_filter): Ditto. Don't enable input for stopped
12830 network processes. Server must listen, even if filter is t.
12831 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
12832 New functions.
12833 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
12834 (Fprocess_contact): Added KEY argument. Handle datagrams.
12835 (list_processes_1): Optionally show only processes with the query
12836 on exit flag set. Dynamically adjust column widths. Omit tty
12837 column if not needed. Report stopped network processes.
12838 Identify server and datagram network processes.
12839 (Flist_processes): New optional arg `query-only'.
12840 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
12841 (conv_lisp_to_sockaddr, set_socket_options)
12842 (network_process_featurep, unwind_request_sigio): New helper functions.
12843 (Fprocess_datagram_address, Fset_process_datagram_address):
12844 (Fset_network_process_options): New lisp functions.
12845 (Fopen_network_stream): Removed. Now defined in simple.el.
12846 (Fmake_network_process): New lisp function. Code is based on previous
12847 Fopen_network_stream, but heavily reworked with new property list based
12848 argument list, support for datagrams, server processes, and local
12849 sockets in addition to old client-only functionality.
12850 (server_accept_connection): New function.
12851 (wait_reading_process_input): Use it to handle incoming connects.
12852 Do not enable input on a new connection if process is stopped.
f63fd14e 12853 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
12854 (send_process): Handle datagram sockets.
12855 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
12856 network process is indicated by setting command field to t .
12857 (Fprocess_send_eof): No-op if datagram connection.
12858 (Fstatus_notify): Don't read input for a stream server socket or a
12859 stopped network process.
12860 (init_process): Initialize datagram_address array.
12861 (syms_of_process): Intern and staticpro new variables, defsubr new
12862 functions.
12863
128642002-03-16 Jason Rumney <jasonr@gnu.org>
12865
12866 * w32fns.c (w32_to_all_x_charsets): Return correct type in
12867 startup case.
12868
128692002-03-16 Richard M. Stallman <rms@gnu.org>
12870
12871 * xdisp.c (redisplay_internal, redisplay_windows):
12872 Use list_of_error to call internal_condition_case_1.
12873 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
12874 so as to catch all errors with no possibility of debugger redisplay.
12875 (list_of_error): New variable.
12876 (syms_of_xdisp): Init and staticpro it.
12877
12878 * print.c (print_object): Delete `\ ' from printed rep of frame.
12879
128802002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
12881
12882 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
12883 until its implementation is fixed.
12884
128852002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12886
12887 * xfns.c (png_load): Remove unused variable `gamma_str'.
12888
128892002-03-14 Richard M. Stallman <rms@gnu.org>
12890
12891 * xfns.c (x_real_positions): Handle failure in XQueryTree.
12892
128932002-03-14 Miles Bader <miles@gnu.org>
12894
12895 * intervals.c (adjust_for_invis_intang): New function.
12896 (set_point_both): Use `adjust_for_invis_intang' to do most of the
12897 work for dealing with invisible+intangible regions. Do so before
12898 and after both forward and backward movements, to handle both
12899 front-sticky and rear-sticky cases.
12900 * textprop.c (text_property_stickiness): Function moved here from
12901 `editfns.c'.
12902 * intervals.h (text_property_stickiness): New declaration.
12903 * editfns.c (char_property_eq): Function removed.
12904 (text_property_stickiness): Function moved to `textprop.c'.
12905
129062002-03-13 Jason Rumney <jasonr@gnu.org>
12907
12908 * config.in: Add STRFTIME_NO_POSIX2.
12909
12910 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
12911 and %OX when underlying strftime does not.
12912
129132002-03-13 Stefan Monnier <monnier@cs.yale.edu>
12914
12915 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
12916 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
12917 line) to avoid annoying flicker.
12918 (xm_scroll_callback): Get rid of the now unnecessary kludge.
12919 (XTread_socket): Mark it static.
12920
12921 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
12922
129232002-03-13 Kim F. Storm <storm@cua.dk>
12924
12925 * puresize.h (BASE_PURESIZE): Increase to 775000.
12926
129272002-03-12 Juanma Barranquero <lektu@terra.es>
12928
12929 * editfns.c (syms_of_editfns): Fix typo.
12930
129312002-03-12 Gerd Moellmann <gerd@gnu.org>
12932
12933 * xsmfns.c: Include stdio.h because termhooks.h needs it.
12934 Include termopt.h for interrupt_input.
12935
129362002-03-11 Andreas Schwab <schwab@suse.de>
12937
12938 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
12939
129402002-03-11 Gerd Moellmann <gerd@gnu.org>
12941
12942 * xterm.c (note_mouse_movement): Put code for
12943 x_autoselect_window_p in #if 0.
12944
12945 * lread.c (Fload): Don't assume that message_with_string uses the
12946 string it is given like a C string.
12947
129482002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12949
12950 * xterm.h (x_session_check_input, x_session_initialize): Declared.
12951
12952 * xterm.c: (XTread_socket): Add call to x_session_check_input and
12953 x_session_have_connection.
12954 (x_initialize): Add call to x_session_initialize.
12955
12956 * termhooks.h (enum event_kind): Add save_session_event.
12957
12958 * keyboard.c: Add Emacs event save_session_event.
12959
12960 * emacs.c (main): Add call to syms_of_xsmfns.
12961
12962 * lisp.h: Declare syms_of_xsmfns as extern.
12963
12964 * config.in: Add HAVE_X_SM.
12965
12966 * Makefile.in (LIBXT): Add -lSM -lICE
12967 if HAVE_X_SM and not USE_X_TOOLKIT.
12968 (XOBJ): New file xsmfns.c added.
12969
12970 * xsmfns.c: New file for X session management.
12971
129722002-03-09 Jason Rumney <jasonr@gnu.org>
12973
12974 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
12975 read-only when setting modified time.
12976
129772002-03-08 Gerd Moellmann <gerd@gnu.org>
12978
12979 * xdisp.c (move_it_vertically_backward): At the end of the function,
12980 when moving forward by lines, treat terminal frames specially.
12981
12982 * keyboard.c (echo_char): Make sure to add a separator between
12983 keys even if echo_dash hasn't been called.
12984
12985 * xdisp.c: Use new string macros.
12986 (update_echo_area): Pass number of bytes to message3 instead of
12987 number of chars.
12988 (set_message_1): Don't access a string's size_byte directly.
12989 (decode_mode_spec_coding): Use number of bytes of eoltype string
12990 instead number of chars.
12991
12992 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
12993
129942002-03-08 Juanma Barranquero <lektu@terra.es>
12995
12996 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
12997 24-bit.
12998
129992002-03-06 Jason Rumney <jasonr@gnu.org>
13000
13001 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13002
130032002-03-06 Gerd Moellmann <gerd@gnu.org>
13004
13005 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13006 (cancel_echoing, echo_length, echo_truncate): Changed to
13007 work with new kboard definition.
13008 (echo_now): Use message3_nolog instead of message2_nolog.
13009
13010 * alloc.c (mark_kboards): Mark echo_string.
13011
13012 * keyboard.h (ECHOBUFSIZE): Removed.
13013 (struct kboard): Member echoptr removed, member echobuf renamed
13014 to echo_string.
13015
13016 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13017 message3 instead of message2 to display the message using STRING's
13018 text properties.
13019
130202002-03-05 Andreas Schwab <schwab@suse.de>
13021
13022 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13023
130242002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13025
13026 * frame.c (default-frame-alist): Explain that setting it doesn't
13027 affect existing frames.
13028
130292002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13030
13031 * indent.c (skip_invisible): Fix my brain fart.
13032
13033 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13034
130352002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13036
13037 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13038 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13039 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13040 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13041 and variables to use EMACS_INT instead of just int.
13042
13043 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13044
130452002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13046
13047 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13048 environment, pass it down with corrected value.
13049
130502002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13051
13052 * lread.c (read_filtered_event): Do not call start_hourglass
13053 before returning.
13054
130552002-03-04 Juanma Barranquero <lektu@terra.es>
13056
13057 * w32term.c (x_display_and_set_cursor): Fix typo.
13058
130592002-03-03 Richard M. Stallman <rms@gnu.org>
13060
13061 * fileio.c (Fmake_temp_name): Doc fix.
13062
130632002-03-03 Gary Wong <gtw@gnu.org>
13064
13065 * termcap.c [!emacs]: Replace ospeed for building standalone
13066 libtermcap, for binary compatibility.
13067
13068 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
13069
130702002-03-03 Richard M. Stallman <rms@gnu.org>
13071
13072 * xrdb.c (file_p): Rename arg `path' to `filename'.
13073
13074 * abbrev.c (Fexpand_abbrev): Increment plist as use count
13075 only if it is an integer.
13076
13077 * xfns.c (png_load): Set screen_gamma based on f->gamma.
13078 If png_get_sRGB gives an answer, call png_set_gamma
13079 using the default image gamma value.
13080
13081 * lread.c (read1): When reading from a file, default string to
13082 multibyte only if it has some multibyte characters.
13083
13084 * print.c (print_object): Output multibyte chars 128...255
13085 using \x even if ! print_escape_multibyte.
13086
13087 * xdisp.c (display_mode_element): Move the places where
13088 bytepos, charpos, this, and lisp_string are set.
13089 Use lisp_string to set bytepos.
13090
13091 * xdisp.c (redisplay_internal):
13092 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
13093
13094 * xdisp.c (display_mode_element): Merge properties specified with
13095 :propertize onto those that come with the string.
13096
130972002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
13098
13099 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
13100 automatic-hscrolling. Users changed.
13101 <hscroll-margin>: Renamed from automatic-hscroll-margin.
13102 Users changed.
13103 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
13104
131052002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13106
13107 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
13108
131092002-03-02 Kim F. Storm <storm@cua.dk>
13110
13111 * window.c (Fminibuffer_selected_window): New function.
13112 (syms_of_window): Defsubr it.
13113
131142002-03-01 Kim F. Storm <storm@cua.dk>
13115
13116 * window.h (struct window): New member phys_cursor_width.
13117
13118 * window.c (make_window, replace_window): Init phys_cursor_width.
13119
13120 * xterm.c (x_display_and_set_cursor): Blink box cursor using
13121 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13122
13123 * w32term.c (x_display_and_set_cursor): Blink box cursor using
13124 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13125
13126 * lisp.h (GCPRO6): New macro.
13127
13128 * process.c (Fopen_network_stream): Use GCPRO6.
13129
131302002-03-01 Kim F. Storm <storm@cua.dk>
13131
13132 * process.c (Qconnect, Qfailed): New variables.
13133 (syms_of_process): Intern and staticpro them.
13134 (Fprocess_status): Document connect and failed return values.
13135 [NON_BLOCKING_CONNECT]: New conditional.
13136 (connect_wait_mask, num_pending_connects): New variables.
13137 (status_message): Convert Qfailed status.
13138 (Fopen_network_stream): Added support for non-blocking connect.
13139 New optional args: filter, sentinel, non_blocking. Doc updated.
13140 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
13141 (deactivate_process): Handle pending non-blocking connect.
13142 (wait_reading_process_input): Poll for status of non-blocking
13143 connects. Exec sentinel directly when connect succeeds.
13144 (status_notify): Don't read process output if not yet connected.
13145
131462002-02-28 Kim F. Storm <storm@cua.dk>
13147
13148 * window.c: (minibuf_selected_window): Renamed from
13149 Vminibuf_selected_window. Users changed.
13150 (syms_of_window): Staticpro it.
13151
131522002-02-26 Kim F. Storm <storm@cua.dk>
13153
13154 The following changes add a new Vminibuf_selected_window variable
13155 which is similar to Vminibuf_scroll_window, but which is only set
13156 on entry to the minibuffer (from a non-minibuffer window):
13157
13158 * window.c: (Vminibuf_selected_window): New variable.
13159 (struct save_window_data): New member minibuf_selected_window.
13160 (Fset_window_configuration): Restore Vminibuf_selected_window.
13161 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
13162 Set minibuf_scroll_window member to nil if minibuf_level is 0.
13163 (compare_window_configurations): Compare minibuf_selected_window.
13164
13165 * window.h: (Vminibuf_selected_window): Declare extern.
13166
13167 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
13168 entry to minibuffer or on entry from a non-minibuffer window.
13169
13170 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
13171 Vminibuf_selected_window instead of Vminibuf_scroll_window.
13172
13173 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
13174 instead of Vminibuf_scroll_window when deciding in which window
13175 the region should be highlighted. Consequently, the region remains
13176 highlighteded even when a completion buffer is also displayed.
13177
131782002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
13179
13180 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
13181
13182 * xselect.c (Qcompound_text_with_extensions): Renamed from
13183 Qcompound_text_no_extensions.
13184 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
13185
131862002-02-26 Juanma Barranquero <lektu@terra.es>
13187
13188 * w32proc.c (syms_of_ntproc): Doc fix.
13189
131902002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13191
13192 * intervals.h: Include "dispextern.h" unconditionally.
13193
131942002-02-24 Jason Rumney <jasonr@gnu.org>
13195
13196 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
13197 and disp-table.elc.
13198 (lisp): Add emacs-lisp/backquote.elc.
13199
132002002-02-24 Kim F. Storm <storm@cua.dk>
13201
13202 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
13203 The validation of the event type was too strict as it didn't
13204 allow string events; buffer names are used in bindings for
13205 menu-bar-select-buffer (see `menu-bar-update-buffers').
13206
132072002-02-23 Kim F. Storm <storm@cua.dk>
13208
13209 The following changes rework my patch of 2002-02-06 which
13210 added command remapping by entering the commands directly into
13211 the keymaps. Now, command remapping uses an explicit `remap'
13212 prefix in the keymaps, i.e. [remap COMMAND].
13213
13214 * keymap.c (Qremap, remap_command_vector): New variables.
13215 (is_command_symbol): Removed function.
13216 (Fdefine_key): No longer accept a symbol for KEY.
13217 Added validation of [remap COMMAND] argument for KEY.
13218 The DEF is no longer required to be a symbol when remapping a command.
13219 (Fremap_command): New function to remap command through keymaps.
13220 (Flookup_key): Perform command remapping initiated by
13221 Fremap_command directly for speed.
13222 (Fkey_binding): Use Fremap_command for command remapping.
13223 (where_is_internal): Handle new command remapping representation.
13224 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
13225 staticpro them. Defsubr Fremap_command.
13226
13227 * keymap.h (Fremap_command): Declare extern.
13228 (is_command_symbol): Remove extern.
13229
13230 * keyboard.c (command_loop_1): Use Fremap_command for command
13231 remapping; now try command remapping for all symbols.
13232
132332002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13234
13235 * coding.h (run_pre_post_conversion_on_str): Add prototype.
13236
132372002-02-23 Jason Rumney <jasonr@gnu.org>
13238
13239 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
13240 on the string before encoding it.
13241 (Fw32_get_clipboard_data): Run post-read-conversion on the string
13242 after decoding it.
13243
13244 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
13245
132462002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13247
13248 * w32term.c (enter_timestamp): Remove unused static variable to
13249 prevent warning.
13250
13251 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
13252
132532002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13254
13255 * w16select.c (Fw16_get_clipboard_data): Fix last change.
13256
13257 * xselect.c (selection_data_to_lisp_data): Fix last change.
13258
132592002-02-22 Jason Rumney <jasonr@gnu.org>
13260
13261 * w32term.h (struct w32_output): New member menu_command_in_progress.
13262
13263 * w32menu.c (menubar_selection_callback): Free the menu and
13264 clear the menu_command_in_progress flag.
13265
13266 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
13267 (menu_free_timer): New variable.
13268 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
13269 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
13270 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
13271 menu command is in progress.
13272 <WM_COMMAND>: Set the menu_command_in_progress flag.
13273 Kill any menu_free_timer that is running.
13274
13275 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
13276 Call ExtTextOutA rather than ExtTextOut.
13277
132782002-02-22 Eli Zaretskii <eliz@gnu.org>
13279
13280 * puresize.h (BASE_PURESIZE): Increase to 755000.
13281
132822002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13283
13284 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
13285 on the string before encoding it.
13286 (Fw16_get_clipboard_data): Run post-read-conversion on the string
13287 after decoding it.
13288
132892002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13290
13291 Support for ICCCM Extended Segments in X selections:
13292
13293 * xselect.c <Qcompound_text_no_extensions>: New variable.
13294 (syms_of_xselect): Intern and staticpro it.
13295 (selection_data_to_lisp_data): Run post-read-conversion on decoded
13296 selection text.
13297 (lisp_data_to_selection_data): If next-selection-coding-system is
13298 compound-text-no-extensions, set the type of selection to be
13299 compound-text.
13300
13301 * xterm.h (x_encode_text): Update prototype.
13302
13303 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
13304 callers changed. If SELECTIONP is non-zero, run the
13305 pre-write-conversion function before encoding the selection text.
13306
133072002-02-21 Kim F. Storm <storm@cua.dk>
13308
13309 * frame.c (syms_of_frame): Change mouse-highlight default to t.
13310
13311 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
13312 Correct composing of language-change event.
13313
133142002-02-20 Kim F. Storm <storm@cua.dk>
13315
13316 * keyboard.c (menu_bar_items): Don't include keymap or local-map
13317 bindings at PT when building menu (the menu is not updated often
13318 enough for this to work reliable).
13319 (tool_bar_items): Likewise.
13320 (current_active_maps): Removed unused (and buggy) function.
13321
133222002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13323
13324 * xfns.c (gif_load): Use correct width and height for GIF images.
13325
133262002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
13327
13328 * floatfns.c (Fatan): Accept an optional second arg and call
13329 atan2 if passed 2 args.
13330
133312002-02-18 Jason Rumney <jasonr@gnu.org>
13332
13333 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
13334
133352002-02-17 Jason Rumney <jasonr@gnu.org>
13336
13337 * w32term.c (x_autoselect_window_p): New variable.
13338 (syms_of_w32term): DEFVAR_BOOL and initialize it.
13339 (note_mouse_movement): Use it.
13340
13341 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
13342
13343 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
13344
13345 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13346 New variables.
13347 (syms_of_w32fns): Intern and staticpro them.
13348 (x_frame_parms) <"fullscreen">: New parameter.
13349 (x_fullscreen_move, x_set_fullscreen): New functions.
13350 (x_set_frame_parameters): Support Qfullscreen.
13351 (x_real_positions): Save x/y_pixels_diff frame params.
13352 (x_figure_window_size): Support full-screen frames.
13353 (Fx_create_frame): Default the fullscreen parameter.
13354
13355 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
13356 (x_fullscreen_adjust): New functions.
13357 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
13358 fullscreen. Call x_check_fullscreen_move, and set the
13359 want_fullscreen member of output_data.w32
13360 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
13361
13362 * w32term.h: New enum for FULLSCREEN_* constants.
13363 (struct w32_output): New members want_fullscreen, x_pixels_diff,
13364 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
13365 (x-fullscreen-adjust): New prototype.
13366
133672002-02-17 Kim F. Storm <storm@cua.dk>
13368
13369 * frame.c: (Vmouse_highlight): New variable.
13370 (syms_of_frame): DEFVAR_LISP it.
13371
13372 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 13373
048addec 13374 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 13375
048addec
JD
13376 * xterm.c (disable_mouse_highlight): Removed variable.
13377 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13378 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13379 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
13380 and on after keyboard input.
13381 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 13382
048addec 13383 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 13384
048addec
JD
13385 * msdos.c (disable_mouse_highlight): Removed variable.
13386 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13387 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13388 (internal_terminal_init): Initialize mouse_face_hidden.
13389 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
13390 and on after keyboard input.
4f1b1854 13391
048addec 13392 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 13393
048addec
JD
13394 * w32term.c (disable_mouse_highlight): Removed variable.
13395 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
13396 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13397 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
13398 and on after keyboard input.
13399 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 13400
048addec 134012002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 13402
048addec
JD
13403 * msdos.c (last_mouse_window): New variable.
13404 (dos_rawgetc): Fix last change--if the mouse is in the same window
13405 as recorded in last_mouse_window, don't select this window.
5cb6905d 13406
048addec 13407 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 13408
048addec
JD
13409 * msdos.c (x_autoselect_window_p): New variable.
13410 (syms_of_msdos): Defvar it.
13411 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
13412 which the last mouse movement occured, unless it is already selected.
437dfb9f 13413
048addec
JD
13414 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
13415 New variables.
13416 (syms_of_xdisp): DEVFAR them.
13417 (hscroll_window_tree): Use automatic_hscroll_margin and
13418 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 13419
048addec 134202002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 13421
048addec
JD
13422 * xterm.c (x-autoselect-window): New variable.
13423 (note_mouse_movement): Use it.
9f696a00 13424
048addec 13425 * keyboard.c: Do not include "systime.h" twice.
d57966d7 13426
048addec 134272002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 13428
bfa02563 13429 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 13430
048addec 13431 * alloc.c (NSTATICS): Increase to 1280.
74779f52 13432
048addec 134332002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 13434
048addec 13435 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 13436
048addec
JD
13437 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
13438 (Vx_super_keysym): New variables.
13439 (syms_of_xterm): DEFVAR_LISP them.
13440 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
13441 variables to determine which keys to use for the various modifiers.
a474d59c 13442
048addec 134432002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 13444
048addec
JD
13445 * window.c: (Vmode_line_in_non_selected_windows): Removed.
13446 (mode_line_in_non_selected_windows): New variable.
13447 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 13448
048addec
JD
13449 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
13450 Use mode_line_in_non_selected_windows.
13451 (mode_line_in_non_selected_windows): Declare extern.
13452 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 13453
048addec 134542002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 13455
048addec
JD
13456 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
13457 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
13458 (Fclear_this_command_keys): Doc fixes.
2d10309f 13459
048addec
JD
13460 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
13461 (update_face_from_frame_parameter): Increment face_change_count
13462 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 13463
048addec
JD
13464 * xdisp.c (QCpropertize): New variable.
13465 (mode_line_proptrans_alist): New variable.
13466 (display_mode_element): New arg PROPS; all calls changed.
13467 Implement this, for strings.
13468 Handle literal output of strings by sharing the
13469 main-line code for strings, using local var `literal'.
13470 Handle :propertize feature.
13471 (syms_of_xdisp): Initialze and staticpro QCpropertize and
13472 mode_line_proptrans_alist.
0b1e6b54 13473
048addec 134742002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 13475
048addec
JD
13476 * window.c: (Vmode_line_in_non_selected_windows): New variable.
13477 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 13478
048addec
JD
13479 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
13480 (CURRENT_MODE_LINE_FACE_ID): Use it.
13481 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 13482
048addec
JD
13483 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
13484 to get mode line face.
e17144de 13485
048addec 134862002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13487
048addec
JD
13488 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
13489 variables; cus-start.el doesn't need them anymore.
44368f8f 13490
048addec 134912002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 13492
048addec
JD
13493 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
13494 reduction. This fixes a display problem where stray newlines were
13495 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 13496
048addec 134972002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13498
048addec 13499 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 13500
048addec 13501 * xdisp.c (display_mode_lines): Fix last change.
453c5510 13502
048addec 135032002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 13504
048addec
JD
13505 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
13506 match each other.
13507 (w32_load_system_font): Prevent Cleartype fonts from loading.
13508 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 13509
048addec 135102002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 13511
048addec
JD
13512 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
13513 (CURRENT_MODE_LINE_HEIGHT): Use it.
13514 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13515
048addec
JD
13516 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
13517 (pos_visible_p, handle_face_prop): Likewise.
13518 (display_mode_lines): Likewise, but for the real selected window.
13519 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13520
048addec
JD
13521 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
13522 in non-selected windows.
13523 (realize_basic_faces): Realize it.
13524 (syms_of_term): Intern and staticpro it.
308dd672 13525
048addec 135262002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 13527
048addec
JD
13528 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
13529 Changed mail addresses to emacs-devel@gnu.org.
308dd672 13530
048addec 135312002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 13532
048addec
JD
13533 * fileio.c (Fsubstitute_in_file_name): If the file name includes
13534 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 13535
048addec 13536 * floatfns.c (Fround): Doc fix.
3c1e6b46 13537
048addec 135382002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 13539
048addec 13540 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 13541
048addec 135422002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 13543
048addec 13544 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 13545
048addec 135462002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 13547
048addec
JD
13548 * keymap.c (where_is_internal): Only check whether definition is
13549 remapped if it fulfills is_command_symbol.
0065bb74 13550
048addec 135512002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 13552
048addec 13553 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 13554
048addec 13555 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 13556
048addec 135572002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 13558
048addec
JD
13559 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
13560 defining command remapping. Doc updated.
13561 (Flookup_key): Remap command through keymap if KEY is a symbol.
13562 (is_command_symbol): New function.
13563 (Fkey_binding): Use it. New optional argument NO-REMAP.
13564 Doc updated. Callers changed. Perform command remapping via
13565 recursive call unless that arg is non-nil.
13566 (where_is_internal): New argument no_remap. Callers changed.
13567 Call recursively to find original key bindings for a remapped
13568 comand unless that arg is non-nil.
13569 (Fwhere_is_internal): New optional argument NO-REMAP.
13570 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 13571
048addec
JD
13572 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
13573 (is_command_symbol): Added prototype.
0d8466cc 13574
048addec
JD
13575 * keyboard.c (Vthis_original_command): New variable.
13576 (syms_of_keyboard): DEFVAR_LISP it.
13577 (command_loop_1): Set it, and perform command remapping.
15fff01d 13578
048addec 135792002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 13580
048addec 13581 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 13582
048addec 135832002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 13584
048addec 13585 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 13586
048addec 135872002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 13588
048addec 13589 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 13590
048addec 135912002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 13592
048addec 13593 * filelock.c (S_ISLNK): Define if not defined.
3a232704 13594
048addec 135952002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 13596
048addec 13597 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 13598
048addec
JD
13599 * lread.c (read1): Redesign strategy for force_multibyte and
13600 force_singlebyte. Now is_multibyte records whether read_buffer
13601 is multibyte. Encountering any multibyte character makes it so.
4e02881b 13602
048addec 136032002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 13604
048addec
JD
13605 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
13606 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 13607
048addec 136082002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 13609
048addec
JD
13610 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
13611 latter never being defined on GNU/Linux.
749f499f 13612
048addec 136132002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 13614
048addec
JD
13615 * xfaces.c (realize_default_face): Don't set the weight and slant of
13616 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 13617
048addec 136182002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 13619
048addec
JD
13620 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
13621 Call cancel_hourglass unconditionally.
d0fd26dd 13622
048addec
JD
13623 * eval.c (Fsignal): Remove duplicated declaration of
13624 the variable `display_hourglass_p'.
b4c45162 13625
048addec 136262002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 13627
048addec 13628 * editfns.c (region_limit): Nicer error message.
c95eaa61 13629
048addec
JD
13630 * coding.c (decode_composition_emacs_mule):
13631 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 13632
048addec
JD
13633 * callint.c (check_mark): New arg to specify clearer error message.
13634 Callers changed.
c95eaa61 13635
048addec 136362002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 13637
048addec 13638 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 13639
048addec 136402002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 13641
048addec
JD
13642 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
13643 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
13644 Fix doc-strings.
c95eaa61 13645
048addec 136462002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 13647
048addec 13648 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 13649
048addec
JD
13650 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
13651 and scroll_up_aggressively.
c95eaa61 13652
048addec 136532002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 13654
048addec 13655 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 13656
048addec 136572002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 13658
048addec
JD
13659 * textprop.c (Fnext_property_change, Fnext_single_property_change)
13660 (Fprevious_property_change, Fprevious_single_property_change):
13661 Stay within the narrowed-buffer boundaries.
e2c3786a 13662
048addec 136632002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 13664
048addec
JD
13665 * term.c (Ftty_display_color_cells): New function.
13666 (syms_of_term): Defsubr it.
13667 (Ftty_display_color_cells, Ftty_display_color_p): Change the
13668 argument name to DISPLAY. Doc fix.
bf794306 13669
048addec
JD
13670 * dispextern.h: Add prototype for set_tty_color_mode and
13671 tty_setup_colors.
bf794306 13672
048addec 136732002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 13674
048addec
JD
13675 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
13676 If region left to draw is not what was expected, mark the frame as
13677 garbaged.
62582985 13678
048addec
JD
13679 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
13680 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 13681
048addec 136822002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 13683
048addec
JD
13684 * w32term.c (x_update_window_begin): Only hide caret if
13685 w32_use_visible_system_caret is set.
13686 (x_update_window_end): Only show caret if
13687 w32_use_visible_system_caret is set.
13688 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 13689
048addec 13690 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 13691
048addec 136922002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 13693
048addec
JD
13694 * unexelf.c (unexec): Define n so as to cause compilation error
13695 for the code where people have often written n instead of nn.
1e9a6186 13696
048addec 13697 * .gdbinit (hookpost-run): Defined.
1e9a6186 13698
048addec 136992002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 13700
048addec 13701 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 13702
048addec 137032002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 13704
048addec
JD
13705 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
13706 if fullscreen is being set.
7c75be36 13707
048addec 137082002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 13709
048addec
JD
13710 * minibuf.c (Fminibuffer_contents)
13711 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
13712 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 13713
048addec 137142002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 13715
048addec 13716 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 13717
048addec 137182002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 13719
048addec
JD
13720 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
13721 height before comparison.
13722 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 13723
048addec 137242002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 13725
048addec
JD
13726 * w32term.c (w32_system_caret_width): Remove.
13727 (w32_use_visible_system_caret): New user flag.
13728 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
13729 Windows reports a screen reader running.
13730 (x_update_window_begin): Hide the system caret.
13731 (x_update_window_end): Show the system caret.
13732 (x_display_and_set_cursor): Don't draw a cursor when
13733 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 13734
048addec
JD
13735 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
13736 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
13737 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
13738 the user requests it. Use system default width when creating.
13739 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 13740
048addec
JD
13741 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
13742 New window messages.
905cc05a 13743
048addec 137442002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 13745
048addec 13746 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 13747
048addec 137482002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 13749
048addec 13750 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 13751
048addec 137522002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 13753
048addec 13754 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 13755
048addec 137562002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 13757
048addec
JD
13758 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
13759 that Windows returns. If a double check fails, try to guess how
13760 ExtTextOut is going to act.
4d0fa4f3 13761
048addec
JD
13762 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
13763 in place of stricmp.
13764 (w32_list_synthesized_fonts): Removed.
13765 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
13766 (struct enumfont_t): New element; list.
13767 (enum_font_cb2): List all style and charset variations of a font.
13768 (Fw32_select_font): New optional argument; include_proportional.
13769 Exclude vertical fonts. Exclude proportional fonts unless
13770 include_proportional is non-nil.
13771 (w32_enable_synthesized_fonts): Change to a boolean.
13772 (Fw32_send_sys_command): Doc fix.
493faf20 13773
048addec 137742002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 13775
048addec
JD
13776 * dispnew.c (update_frame): Move the variable `tem' to the block
13777 where it is used.
4971e491 13778
048addec 137792002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 13780
048addec
JD
13781 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
13782 call to face-set-after-frame-default.
4971e491 13783
048addec 137842002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 13785
048addec
JD
13786 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
13787 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 13788
048addec 137892002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 13790
048addec
JD
13791 * window.c (enlarge_window): When exceeding size of parent,
13792 directly delete all the siblings instead of trying to resize it.
201c831a 13793
048addec 137942002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 13795
048addec 13796 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 13797
048addec 137982002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 13799
048addec 13800 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 13801
048addec 138022002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 13803
048addec
JD
13804 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
13805 is invisible. This can happen if cursor is on top line of a
13806 window, and we switch to a buffer with a header line.
d77fbc16 13807
048addec 13808 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 13809
048addec 138102002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 13811
048addec
JD
13812 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
13813 `dont_resize' only when used.
61e3b944 13814
048addec 13815 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 13816
048addec 138172002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 13818
048addec
JD
13819 * xdisp.c (display_mode_element): When computing charpos, depend
13820 on multibyteness of elt, not the text in field.
8af01033 13821
048addec 138222002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 13823
048addec
JD
13824 * buffer.c (Fkill_all_local_variables):
13825 Increment `update_mode_lines' only once.
7363986a 13826
048addec 138272002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 13828
048addec
JD
13829 * lisp.h (adjust_after_replace_noundo)
13830 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 13831
048addec 13832 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 13833
048addec 138342002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 13835
048addec
JD
13836 Support for the --color command-line argument and tty-color-mode
13837 frame parameter:
f1a85b89 13838
048addec
JD
13839 * term.c (tty_default_color_capabilities, tty_setup_colors)
13840 (set_tty_color_mode): New functions.
13841 (term_init): Call tty_default_color_capabilities.
13842 (Qtty_color_mode_alist): New variable.
13843 (syms_of_term): Intern and staticpro it.
f1a85b89 13844
048addec
JD
13845 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
13846 frames.
13847 (do_switch_frame): For termcap frames, switch the tty
13848 color mode as specified by the frame's parameters.
13849 (Qtty_color_mode): New variable.
13850 (syms_of_frame): Intern and staticpro it.
3a62677f 13851
048addec
JD
13852 * emacs.c (USAGE2): Add the --color option.
13853 (standard_args): Ditto.
72244db2 13854
048addec
JD
138552002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13856
13857 * xterm.h (struct x_output): New members want_fullscreen,
13858 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
13859 y_pixels_outer_diff.
13860 New enum for FULLSCREEN_* constants.
13861 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
13862 is NULL.
13863 (x_fullscreen_adjust): Add prototype.
3a62677f 13864
048addec
JD
13865 * emacs.c (USAGE2): Add the new full-screen arguments.
13866 (standard_args): Ditto.
3a62677f 13867
048addec
JD
13868 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13869 New variables.
13870 (syms_of_xfns): Intern and staticpro them.
13871 (x_frame_parms) <"fullscreen">: New parameter.
13872 (x_fullscreen_move, x_set_fullscreen): New functions.
13873 (x_set_frame_parameters): Support for Qfullscreen.
13874 (x_real_positions): More accurate computation of the frame position.
13875 (x_figure_window_size): Support full-screen frames.
13876 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 13877
048addec
JD
13878 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
13879 (XTread_socket) <Expose>: Call x_check_fullscreen.
13880 <ConfigureNotify>: Don't resize to fullscreen.
13881 Call x_check_fullscreen_move, and set the want_fullscreen member of
13882 output_data.x.
3a62677f 13883
048addec 138842002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 13885
048addec
JD
13886 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
13887 for mice with more than 3 buttons.
b8523839 13888
048addec
JD
13889 * w32term.c (parse_button): New parameter xbutton. Callers changed.
13890 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 13891
048addec
JD
13892 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
13893 (syms_of_w32fns): DEFVAR_BOOL it.
13894 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 13895
048addec 138962002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 13897
048addec 13898 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 13899
048addec 139002002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 13901
048addec 13902 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 13903
048addec 139042002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 13905
048addec
JD
13906 * .gdbinit (xbuffer): Remove address operator since data is now a
13907 pointer.
c93674bb 13908
048addec 139092002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 13910
048addec 13911 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 13912
048addec 13913 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 13914
048addec 139152002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 13916
048addec
JD
13917 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
13918 when checking for multiple frames.
91175673 13919
048addec 139202002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 13921
048addec
JD
13922 * window.c (delete_window): Rewrite the code for changing the
13923 selected window to handle the case where WINDOW is not a leaf.
91175673 13924
048addec 139252002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 13926
048addec
JD
13927 * process.c (send_process): Set src_multibyte to 1 after the call
13928 top setup_coding_system, not before the call.
e0fead5d 13929
048addec 139302002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 13931
048addec
JD
13932 * xmenu.c (set_frame_menubar, xmenu_show):
13933 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 13934
048addec
JD
13935 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
13936 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 13937
048addec 139382002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 13939
048addec 13940 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 13941
048addec 13942 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 13943
048addec 13944 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 13945
048addec 139462002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 13947
048addec
JD
13948 * insdel.c (make_gap_larger): Make sure buffer size does not
13949 overflow range of int.
62854fe2 13950
048addec 139512002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 13952
048addec
JD
13953 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13954 OVERLAPS_P.
656f46bb 13955
048addec 13956 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 13957
048addec
JD
13958 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
13959 to the left or to the right of the pointer, put it against
13960 the left screen edge.
13961 (x_frame_parms): Add missing braces around initializer.
036e218d 13962
048addec
JD
13963 * w32term.c (x_setup_relief_colors): Don't compute an image's
13964 background color if it doesn't have a Pixmap.
13965 (notice_overwritten_cursor): Don't depend on
13966 output_cursor and updated_area. Compare pixel coordinates with
13967 window's cursor pixel coordinates.
13968 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13969 Call notice_overwritten_cursor with new arg list.
13970 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13971 unconditionally.
13972 (x_draw_image_relief): Use predefined macro instead of
13973 constant when the value of `tool_bar_button_relief' is negative.
036e218d 13974
048addec 13975 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 13976
048addec 139772002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 13978
048addec 13979 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 13980
048addec 139812002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 13982
048addec
JD
13983 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
13984 (Fkey_binding): Try the `keymap' property map first.
13985 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
13986 minor mode bindings.
90647b07 13987
048addec 139882002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 13989
048addec 13990 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 13991
048addec 139922002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 13993
048addec
JD
13994 * keyboard.c (read_key_sequence): Handle the keymap property
13995 before minor mode maps.
9fbc32aa 13996
048addec
JD
13997 * editfns.c (Fformat): Update thissize from field_width
13998 based on the actual width, in the string case.
036e218d 13999
048addec 140002002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 14001
048addec
JD
14002 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14003 when used as truth value to prevent gcc warnings.
9fbc32aa 14004
048addec
JD
14005 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14006 * w32proc.c: Include <config.h>.
9fbc32aa 14007
048addec 140082002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 14009
048addec
JD
14010 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14011 not EMACS_INT, to make them compatible with DEFVAR_INT.
14012 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 14013
048addec 140142002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14015
048addec
JD
14016 * print.c (print_object): Test print_escape_nonascii only for
14017 unibyte strings.
14018 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14019 when outputting to a multibyte buffer.
9fbc32aa 14020
048addec 140212001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14022
048addec
JD
14023 * print.c (print_object): In multibyte string, use hex escapes.
14024 Use octal only for unibyte strings.
14025 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 14026
048addec
JD
14027 * lread.c (read_escape): New arg BYTEREP for reporting whether
14028 escape forces unibyte or multibyte.
14029 (read1): When reading a string, take note of that info.
0142178a 14030
048addec 140312001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 14032
048addec
JD
14033 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14034 comparison to test lisp value returned by Fget.
d4824a5d 14035
048addec 140362001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 14037
048addec 14038 * lisp.h (max_specpdl_size): Add declaration.
b1356234 14039
048addec 14040 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 14041
048addec
JD
14042 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14043 Handle modifier bits. Correct typo in error message.
99e380ee 14044
048addec 140452001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 14046
048addec
JD
14047 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14048 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14049 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14050 Update calls to Fdefine_abbrev.
14051 (write_abbrev): Update for changed data format.
14052 Don't list "system" abbrevs.
14053 (Fexpand_abbrev): Update use count with new data format.
14054 (describe_abbrev): Update for changed data format.
14055 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 14056
048addec 14057 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 14058
048addec 14059 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 14060
048addec
JD
14061 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14062 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 14063
048addec
JD
14064 * keymap.c (Flookup_key): Error message if key has wrong data type.
14065 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
14066 (exclude_key): New variable.
59a86c99 14067
048addec 140682001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 14069
048addec
JD
14070 * xterm.c (x_setup_relief_colors): Don't compute an image's
14071 background color if it doesn't have a Pixmap.
eb77a5f4 14072
048addec
JD
14073 * xterm.c (notice_overwritten_cursor): Don't depend on
14074 output_cursor and updated_area. Compare pixel coordinates with
14075 window's cursor pixel coordinates.
14076 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14077 Call notice_overwritten_cursor with new arg list.
14078 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14079 unconditionally.
eb77a5f4 14080
048addec
JD
14081 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
14082 height of the cursor line to the amount to scroll.
eb77a5f4 14083
048addec 140842001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 14085
048addec
JD
14086 * intervals.c (set_point_both): The position after an invisible,
14087 intangible character is not an acceptable stopping point.
bb313871 14088
048addec 140892001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 14090
048addec
JD
14091 * window.c (enlarge_window): In new preserve_before code, convert
14092 CURBEG from lisp object to integer before doing arithmetic.
6052529b 14093
048addec 140942001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 14095
048addec 14096 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 14097
048addec 140982001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 14099
048addec
JD
14100 * keyboard.c (record_char): Ignore duplicate help-echo events only
14101 separated by mouse-movement. When tracking mouse, only record
14102 first and last mouse-movement event in same window.
14103 Don't record mouse-movement events in keyboard macros.
3ce081f5 14104
048addec 141052001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 14106
048addec
JD
14107 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
14108 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 14109
048addec
JD
14110 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
14111 instead of Fstring_as_unibyte.
9fabb2f5 14112
048addec 141132001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 14114
048addec 14115 The following changes remove mocklisp support:
9fabb2f5 14116
048addec 14117 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 14118
048addec
JD
14119 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
14120 `Qmocklisp' and `Qmocklisp_arguments'.
14121 Remove prototype of syms_of_mocklisp.
2fa0eedf 14122
048addec 14123 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 14124
048addec
JD
14125 * callint.c: Do not include mocklisp.h.
14126 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 14127
048addec
JD
14128 * eval.c: Remove variables `Qmocklisp_arguments',
14129 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
14130 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
14131 Do not test for mocklisp case.
14132 (Fwhile): Remove unused variable `tem'.
14133 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 14134
048addec 14135 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 14136
048addec 14137 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 14138
048addec 14139 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 14140
048addec 141412001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 14142
048addec
JD
14143 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
14144 to the left or to the right of the pointer, put it against
14145 the left screen edge.
6108b49c 14146
048addec 141472001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 14148
048addec
JD
14149 * Makefile.in (distclean): Remove .gdbinit if we are building
14150 outside the source tree.
5eea19a4 14151
048addec 141522001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 14153
048addec 14154 * w32.c (emacs_root_dir): New function.
5eea19a4 14155
048addec 14156 * msdos.c (emacs_root_dir): New function.
5eea19a4 14157
048addec
JD
14158 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
14159 of the current drive as the fallback for default_directory.
438e57dd 14160
048addec
JD
14161 * dired.c (file_name_completion): Run the elements of
14162 completion-ignored-extensions through ENCODE_FILE.
438e57dd 14163
048addec
JD
14164 * lisp.h (scmp): Remove prototype, since it's now a static
14165 function private to dired.c.
c88e5347 14166
048addec 141672001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 14168
048addec
JD
14169 * dired.c (scmp): Function moved from minibuf.c.
14170 Delete multibyte handling--used only on encoded strings.
59ce1461 14171
048addec 14172 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 14173
048addec 14174 * fns.c (merge): Add QUIT call.
59ce1461 14175
048addec 141762001-12-18 Dave Love <fx@gnu.org>
8727d588 14177
048addec
JD
14178 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
14179 language/georgian.el.
8727d588 14180
048addec 141812001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 14182
048addec
JD
14183 * Makefile.in (lisp, shortlisp): Synchronize with changes to
14184 lisp/Makefile.in:DONTCOMPILE.
cc63037e 14185
048addec 141862001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 14187
048addec
JD
14188 * xdisp.c (window_box_height): Do not return negative values.
14189 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 14190
048addec 14191 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 14192
048addec 14193 * term.c (keys): Likewise.
deece6f5 14194
048addec 14195 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 14196
048addec 141972001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 14198
048addec
JD
14199 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
14200 patch (COMPOSING_P, not COMPOSING).
28ff4293 14201
048addec 142022001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 14203
048addec 14204 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 14205
048addec
JD
14206 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
14207 before calling decode_coding.
9b46de40 14208
048addec 14209 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 14210
048addec
JD
14211 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
14212 instead of only for COMPOSITION_DISABLED.
9b46de40 14213
048addec 142142001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 14215
048addec 14216 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 14217
048addec 14218 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 14219
048addec
JD
14220 * buffer.h (struct buffer): New field `display_error_modiff'.
14221 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 14222
048addec 14223 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 14224
048addec
JD
14225 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
14226 Call redisplay_window, but not if display_error_modiff field says no.
14227 (redisplay_window_error): New function.
14228 (displayed_buffer): New variable.
14229 (redisplay_internal, redisplay_windows): Call the new functions
14230 instead of redisplay_window directly.
2cd23960 14231
048addec 142322001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 14233
048addec 14234 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 14235
048addec 142362001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 14237
048addec 14238 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 14239 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 14240 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 14241
048addec 142422001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 14243
048addec
JD
14244 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
14245 parameter have a numeric value all the time.
f6fa0866 14246
048addec 14247 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 14248
048addec 142492001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 14250
048addec 14251 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 14252
048addec
JD
14253 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
14254 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 14255
048addec 142562001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 14257
048addec
JD
14258 * xdisp.c (move_it_vertically_backward): Change heuristic
14259 for the case that we didn't move far enough initially.
91c153e2 14260
048addec
JD
14261 * window.c (Frecenter): Simplify computation in the case of window
14262 system frames and ARG < 0; use window_box_height.
65b7d3e7 14263
048addec 142642001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 14265
048addec
JD
14266 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
14267 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 14268
048addec 142692001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 14270
048addec
JD
14271 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
14272 arg is negative.
be676094 14273
048addec 142742001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 14275
048addec
JD
14276 * m/hp800.h: Split the __hpux conditional into the parts
14277 that are right for GNU/Linux too and the parts that are not.
14278 Use the former if GNU_LINUX.
14279 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 14280
048addec 14281 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 14282
048addec 142832001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 14284
048addec
JD
14285 * macros.c, msdos.c, w16select.c: Change doc-string comments to
14286 `new style' [w/`doc:' keyword].
032a857d 14287
048addec 142882001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 14289
048addec
JD
14290 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
14291 before using.
b6270150 14292
048addec 142932001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 14294
048addec
JD
14295 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
14296 keyword].
98cbb9fa 14297
048addec 142982001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 14299
048addec 14300 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 14301
048addec 14302 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 14303
048addec 143042001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 14305
048addec
JD
14306 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
14307 Add comment to explain where the struct came from.
14308 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
14309 (add_menu_item): Process pop-up menus first to avoid memory leak.
14310 (add_menu_item, w32_menu_display_help): Use `help' field as
14311 Lisp_Object.
14312 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 14313
048addec 143142001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 14315
048addec 14316 * COPYING: Moved back.
fa336b91 14317
048addec
JD
14318 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
14319 Add parentheses around && within ||.
077907d4 14320
048addec 14321 * indent.c (compute_motion): Likewise.
aa2af83a 14322
048addec 14323 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 14324
048addec
JD
14325 * coding.c (setup_coding_system, shrink_encoding_region)
14326 (Fdecode_sjis_char): Likewise.
60a653f1 14327
048addec 143282001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 14329
048addec
JD
14330 * xdisp.c (display_mode_element): Don't read past end of string if
14331 it ends with '%'.
60a653f1 14332
048addec
JD
14333 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
14334 can hold.
60a653f1 14335
048addec
JD
14336 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
14337 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
14338 type changed to Lisp_Object.
14339 (syms_of_data): DEFVAR_LISP them.
60a653f1 14340
048addec 143412001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 14342
048addec
JD
14343 * callproc.c (init_callproc): Set Vdata_directory based on the source
14344 location whenever Emacs was run uninstalled.
60a653f1 14345
048addec 143462001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 14347
048addec
JD
14348 * config.in (HAVE_WORKING_VFORK): New #undefs.
14349 * process.c (create_process):
14350 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
14351 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
14352 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
14353 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
14354 * m/intel386.h (HAVE_VFORK): Likewise.
14355 * m/mips-siemens.h (HAVE_VFORK): Likewise.
14356 * m/mips.h (HAVE_VFORK): Likewise.
14357 * s/freebsd.h (vfork): Remove #define.
14358 * s/lynxos.h (HAVE_VFORK): Remove #undef.
14359 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 14360
048addec 143612001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 14362
048addec
JD
14363 * s/hpux10.h (random): Add undef.
14364 (HAVE_RANDOM): Define it just once.
60a653f1 14365
048addec 143662001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14367
048addec 14368 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 14369
048addec 143702001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14371
048addec
JD
14372 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
14373 scroll bars of the frame before deleting the frame itself. If the
14374 frame has a widget, delete the frame with XtDestroyWidget, and do
14375 not call XDestroyWindow before that.
60a653f1 14376
048addec 143772001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 14378
048addec 14379 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14380
048addec 14381 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14382
048addec 143832001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 14384
048addec
JD
14385 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
14386 excessively large.
60a653f1 14387
048addec
JD
14388 * insdel.c (make_gap_larger): New function.
14389 (make_gap_smaller): New function.
14390 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
14391 Call make_gap_smaller if arg is negative.
60a653f1 14392
048addec 143932001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14394
048addec
JD
14395 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
14396 Pass a dummy argument when calling interrupt_signal.
14397 (parse_menu_item): Mark disabled items before checking for empty def.
14398 (read_char_minibuf_menu_prompt): Make safety more visible.
14399 (read_key_sequence): Add a `first_unbound' variable.
14400 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
14401 unbound prefix as soon as we can detect it.
60a653f1 14402
048addec
JD
14403 * doc.c (Fsnarf_documentation): Add prototype.
14404 (get_doc_string): Handle negative arguments.
14405 (Fdocumentation): Use AREF and ASIZE.
14406 Move the calls to get_doc_string to a single place.
14407 Don't confuse an interactive-spec for a docstring reference.
14408 (Fdocumentation_property): Take advantage of the fact that
14409 get_doc_string now ignores the sign of the docstring position.
60a653f1 14410
048addec 14411 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 14412
048addec 144132001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14414
a64387ee 14415 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 14416
048addec 144172001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14418
048addec
JD
14419 * xterm.c (x_draw_image_relief): Use predefined macro instead of
14420 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 14421
048addec 144222001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 14423
048addec
JD
14424 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
14425 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 14426
048addec 14427 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 14428
048addec 144292001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14430
048addec 14431 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 14432
048addec 144332001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 14434
048addec 14435 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 14436
048addec 144372001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 14438
f63fd14e 14439 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 14440
048addec
JD
14441 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
14442 [!WM_MOUSELEAVE]: Define.
60a653f1 14443
048addec
JD
14444 * w32menu.c (current_popup_menu, get_menu_item_info):
14445 (set_menu_item_info): New vars.
14446 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
14447 (w32_menu_show): Set current_popup_menu.
14448 (add_menu_item): Allocate new strings for owner-drawn menu items
14449 and help strings.
14450 Use owner-draw for disabled menu items again.
14451 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
14452 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 14453
048addec
JD
14454 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
14455 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
14456 <WM_EXITMENULOOP>: Free menu strings.
14457 <WM_MOUSELEAVE>: Stop tracking mouse.
14458 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 14459
048addec
JD
14460 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
14461 and mouse face.
60a653f1 14462
048addec 144632001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 14464
048addec
JD
14465 The following changes add left-fringe and right-fringe
14466 frame parameters to adjust fringe widths, or remove one or
14467 both fringes.
60a653f1 14468
048addec
JD
14469 * frame.h (struct frame): Remove trunc_area_pixel_width and
14470 trunc_area_cols fields.
14471 (Qleft_fringe, Qright_fringe): Declare.
14472 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 14473
048addec
JD
14474 * frame.c (Qleft_fringe, Qright_fringe): New vars.
14475 (syms_of_frame): Initialize them.
60a653f1 14476
048addec
JD
14477 * window.c (coordinates_in_window): Handle separate left and right
14478 fringe widths.
60a653f1 14479
048addec
JD
14480 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
14481 and fringe_cols fields.
14482 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
14483 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
14484 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
14485 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
14486 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
14487 (x_compute_fringe_widths): Add prototype.
60a653f1 14488
048addec
JD
14489 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
14490 fill fringe evenly with small dashes.
f63fd14e 14491 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
14492 clip the new ZV bitmap to avoid jitter between rows.
14493 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
14494 background. Don't draw fringe bitmaps if fringe width is zero.
14495 (x_compute_fringe_widths): New function.
14496 (x_new_font, x_set_window_size_1): Use it.
60a653f1 14497
048addec
JD
14498 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
14499 (x_set_frame_parameters): Process `font' parameter before other
14500 parameters as fringe widths depend on it.
14501 (x_set_fringe_width): New function.
14502 (x_figure_window_size): Use x_compute_fringe_widths.
14503 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
14504 parameters.
60a653f1 14505
048addec
JD
14506 * widget.c (set_frame_size): Use x_compute_fringe_widths.
14507 (EmacsFrameSetCharSize): Ditto.
60a653f1 14508
048addec
JD
14509 * w32term.h: Merged changes from xterm.h.
14510 * w32term.c: Merged changes from xterm.c.
14511 * w32fns.c: Merged changes from xfns.c.
60a653f1 14512
048addec 145132001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14514
048addec 14515 * COPYING: Removed.
60a653f1 14516
048addec 145172001-11-29 Dave Love <fx@gnu.org>
60a653f1 14518
048addec
JD
14519 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
14520 extra extra slot.
14521 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 14522
048addec 145232001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14524
048addec
JD
14525 * fileio.c (file-name-coding-system)
14526 (default-file-name-coding-system): Doc fix (links to referenced
14527 variables added).
60a653f1 14528
048addec 145292001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14530
048addec
JD
14531 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
14532 Add dummy uses of gcproN variables.
60a653f1 14533
048addec
JD
14534 * category.c (describe_category, describe_category_1)
14535 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
14536 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 14537
048addec 145382001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 14539
048addec 14540 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 14541
048addec
JD
14542 * Makefile.in (lispdir): New variable, referring to build dir.
14543 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 14544
048addec 145452001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 14546
048addec
JD
14547 * w32menu.c (w32_menu_display_help): Actually add the new argument
14548 OWNER.
60a653f1 14549
048addec 145502001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 14551
048addec
JD
14552 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
14553 menu items. From David Ponce <dponce@wanadoo.fr>.
14554 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
14555 conditionally.
f63fd14e 14556 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 14557 help event in the owner frame's keyboard buffer.
60a653f1 14558
048addec
JD
14559 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
14560 (Fx_show_tip): Don't subtract last width from row width.
14561
14562 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
14563 (w32_read_socket): Use EQ to compare frames.
60a653f1 14564
048addec 145652001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 14566
048addec
JD
14567 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14568 OVERLAPS_P.
60a653f1 14569
048addec 145702001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14571
048addec
JD
14572 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
14573 `gcpro3' and `gcpro4'.
60a653f1 14574
048addec 14575 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 14576
048addec 145772001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14578
048addec 14579 * ccl.c: Use AREF and ASIZE.
60a653f1 14580
048addec 145812001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14582
048addec
JD
14583 * lisp.h (run_hook_list_with_args): Remove.
14584 (LIST_END_P): Fix call to wrong_type_argument.
14585 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 14586
048addec 145872001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14588
048addec
JD
14589 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
14590 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 14591
048addec
JD
14592 * eval.c: Use AREF and ASIZE.
14593 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 14594
048addec
JD
14595 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
14596 which match the end of the file-name.
14597 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
14598 is not a valid env var, but leave it as is instead.
60a653f1 14599
048addec
JD
14600 * keymap.c (access_keymap): Handle t bindings like nil bindings.
14601 Make nil bindings in char-tables transparent.
14602 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 14603
048addec 146042001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 14605
048addec
JD
14606 * textprop.c (set_text_properties_1): Allow START, END in either order.
14607 Do nothing if range is empty.
60a653f1 14608
048addec 14609 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 14610
048addec
JD
14611 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
14612 (clean): Not here.
60a653f1 14613
048addec 146142001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14615
048addec
JD
14616 * textprop.c (set_text_properties_1): Clearly mark that the
14617 interval should not be empty.
60a653f1 14618
048addec
JD
14619 * intervals.c (graft_intervals_into_buffer):
14620 Don't call set_text_properties_1 on an empty interval.
60a653f1 14621
048addec 146222001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 14623
048addec 14624 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 14625
048addec
JD
14626 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
14627 don't lose the data in it.
60a653f1 14628
048addec 146292001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 14630
048addec 14631 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 14632
c62aec78 14633 * buffer.c (Fkill_buffer): Likewise.
60a653f1 14634
c62aec78 14635 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 14636
048addec 146372001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14638
048addec 14639 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 14640
048addec 146412001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14642
048addec
JD
14643 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
14644 Niemitalo <kon@iki.fi>.
60a653f1 14645
048addec 146462001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 14647
048addec 14648 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 14649
048addec
JD
14650 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
14651 (Fx_show_tip): Block input during frame creation.
14652 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 14653
048addec 146542001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 14655
048addec
JD
14656 * lread.c (Fload): Detect recursive load error for more than 3
14657 nestings of the same file.
14658 (Vrecursive_load_depth_limit): Variable deleted.
14659 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 14660
048addec 146612001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 14662
048addec
JD
14663 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
14664 mouse position if either left or top is not specified.
60a653f1 14665
048addec
JD
14666 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
14667 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
14668 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
14669 (my_create_tip_window): Assign tip_window.
14670 (x_create_tip_frame): Use same defaults as X.
14671 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 14672 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 14673
048addec
JD
14674 * w32term.c (x_after_update_window_line): Doc fix.
14675 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
14676 frames.
14677 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 14678
048addec
JD
14679 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
14680 for all Windowed systems.
60a653f1 14681
048addec 146822001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14683
048addec
JD
14684 * msdos.c (IT_clear_screen): If the frame's faces are not yet
14685 realized, use the initial screen colors to clear the screen.
60a653f1 14686
048addec 146872001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14688
048addec
JD
14689 * textprop.c (Fset_text_properties): Remove unused variables
14690 `unchanged', `prev_changed', `s' and `len'.
60a653f1 14691
048addec
JD
14692 * search.c (Freplace_match): Remove unused variable `inslen'.
14693
14694 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
14695
146962001-11-22 Jason Rumney <jasonr@gnu.org>
14697
14698 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
14699 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
14700 (my_create_tip_window): New function.
14701 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
14702 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
14703
147042001-11-20 Jason Rumney <jasonr@gnu.org>
14705
14706 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
14707 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
14708
14709 * w32fns.c (Vw32_system_coding_system): Remove.
14710 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
14711
147122001-11-19 Stefan Monnier <monnier@cs.yale.edu>
14713
14714 * fileio.c (Fwrite_region): Move choose_write_coding_system to
14715 after build_annotations.
14716
14717 * syntax.c (describe_syntax): Add dummy arg.
14718 (describe_syntax_1): Update call to describe_vector.
14719
14720 * category.c (describe_category): Add dummy arg.
14721 (describe_category_1): Update call to describe_vector.
14722
14723 * keymap.c (Fdescribe_vector): Add `describer' parameter.
14724 (describe_command, describe_translation): Add dummy second param.
14725 (describe_map): Call elt_describer with two arguments.
14726 (describe_vector_princ): Add `fun' parameter.
14727 Call it instead of the hardcoded `princ'.
14728 (describe_vector): Add arg `args'.
14729 Pass it as a new second argument to elt_describer.
60a653f1 14730
048addec 14731 * keymap.h (describe_vector): Update prototype.
60a653f1 14732
048addec
JD
14733 * frame.c: Don't include keymap.h any more.
14734 (keys_of_frame): Remove.
60a653f1 14735
048addec 14736 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 14737
048addec 14738 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 14739
048addec 147402001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 14741
048addec
JD
14742 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
14743 if defined, 0 otherwise.
14744 (MAP_FAILED): Define if not defined and use it to test mmap failure.
14745 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 14746
048addec 147472001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 14748
048addec 14749 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 14750
048addec 147512001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 14752
048addec
JD
14753 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
14754 (x_draw_bar_cursor): If the background color of the glyph under
14755 the cursor equals the frame's cursor color, use the glyph's
14756 foreground color for drawing the bar cursor.
14757 (x_after_update_window_line): Clear internal border in different
14758 circumstances.
14759 (w32_set_vertical_scroll_bar): Check for width and height > 0.
14760 (w32_draw_relief_rect): Correct relief by 1 pixel.
14761 (x_set_glyph_string_background_width):
14762 Set extends_to_end_of_line_p if the row's fill_line_p is set and
14763 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
14764 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
14765 if cursor_in_non_selected_windows is false.
14766 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
14767 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
14768 Notice if cursor gets overwritten.
14769 (notice_overwritten_cursor): Renamed from
14770 note_overwritten_text_cursor. Rewritten to take glyph widths
14771 into account, and to take X positions as parameters.
14772 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14773 around call to x_draw_glyphs.
14774 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14775 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14776 color to use for image glyph reliefs.
14777 (x_draw_image_relief): Accept zero tool_bar_button_relief.
14778 (glyph_rect): Remove unused variable `area'.
60a653f1 14779
048addec
JD
14780 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
14781 some items.
14782 (x_set_internal_border_width): Set frame garbaged when window
14783 doesn't exist yet.
14784 (Fx_create_frame): Accept zero tool_bar_button_relief.
14785 (x_clear_image_1, four_corners_best, image_background)
14786 (image_background_transparent): New functions.
14787 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14788 (gs_format): Add `:background' entry.
14789 (lookup_image): Set IMG's background color if specified.
14790 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14791 when appropriate.
14792 (x_clear_image_1): Reset `background_valid' and
14793 `background_transparent_valid' fields.
14794 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14795 calculating it here. Set IMG's background_transparent field.
14796 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14797 (enum png_keyword_index): Add PNG_BACKGROUND.
14798 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14799 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14800 (enum gif_keyword_index): Add GIF_BACKGROUND.
14801 (enum gs_keyword_index): Add GS_BACKGROUND.
14802 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14803 Pre-calculate image background color where necessary.
14804 (x_create_x_image_and_pixmap, xbm_load, gs_load):
14805 Use display info's n_cbits entry for screen depth.
14806 (Fx_show_tip): Remove unused variables `buffer', `top',
14807 `left', `max_width' and `max_height'.
60a653f1 14808
048addec 14809 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 14810
048addec 148112001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 14812
048addec 14813 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 14814
048addec 148152001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14816
048addec 14817 * frame.c (Fframe_live_p): Doc fix.
60a653f1 14818
048addec 148192001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 14820
048addec
JD
14821 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
14822 (message_dolog_marker3): New static variables hold three markers.
14823 (syms_of_xdisp): Initialize and staticpro them.
14824 (message_dolog): Use message_dolog_marker1..3 instead of
14825 allocating markers each time. Unchain them when done.
60a653f1 14826
048addec 148272001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14828
048addec 14829 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 14830
048addec 148312001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 14832
048addec 14833 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 14834
048addec 148352001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14836
048addec 14837 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 14838
048addec 148392001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 14840
048addec 14841 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 14842
048addec 148432001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 14844
048addec
JD
14845 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
14846 with invalid position.
60a653f1 14847
048addec 148482001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 14849
048addec 14850 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 14851
048addec
JD
14852 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
14853 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
14854 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 14855
048addec 14856 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 14857
048addec 148582001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14859
048addec
JD
14860 * fileio.c (build_annotations): Split off the tail.
14861 (build_annotations_2): New fun. Extracted from build_annotations.
14862 (Fwrite_region): Split the call to build_annotations into two
14863 calls to build_annotations and build_annotations_2.
077907d4 14864
048addec 148652001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 14866
048addec
JD
14867 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
14868 clear_waiting_for_input with argument.
1756e2fb 14869
048addec 14870 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 14871
048addec 14872 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 14873
048addec 14874 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 14875
048addec 14876 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 14877
048addec 148782001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 14879
048addec
JD
14880 * fileio.c (choose_write_coding_system): New fun, extracted
14881 from Fwrite_region.
14882 (Fwrite_region): Use it.
fa336b91 14883
048addec
JD
14884 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
14885 (funcall_lambda, run_hook_with_args): Make static and add prototype.
14886 (ml_apply, find_handler_clause): Add prototype.
fa336b91 14887
048addec 148882001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 14889
048addec 14890 * config.in: Add #undef HAVE_COFF_H.
fa336b91 14891
048addec
JD
14892 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
14893 Required for ISC 4.1.
fa336b91 14894
048addec 148952001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 14896
048addec
JD
14897 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
14898 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 14899
048addec 149002001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 14901
048addec
JD
14902 The following changes are made to clean up the various internal
14903 references to the fringes to actually use the term `fringe' for
14904 them. Previously, they were called `flags areas', `bitmap areas',
14905 `left/right side of windows', or implicitly as `flags' or
14906 `bitmaps':
fa336b91 14907
048addec 14908 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 14909 Comments fixed. Use renamed symbols.
06e8f738 14910
f63fd14e 14911 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 14912
048addec
JD
14913 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
14914 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
14915 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 14916
048addec 14917 * msdos.c: Comment fix.
9ce647f4 14918
048addec 14919 * w32fns.c: Use renamed symbols.
9b784ab8 14920
f63fd14e 14921 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
14922 (fringe_bitmap_type): Renamed from bitmap_type.
14923 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14924 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
14925 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 14926
f63fd14e 14927 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
14928 (fringes_extra): Renamed from flags_areas_extra.
14929 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14930 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14931 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14932 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14933 (FRAME_X_LEFT_FRINGE_WIDTH):
14934 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14935 (FRAME_X_RIGHT_FRINGE_WIDTH):
14936 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 14937
048addec 14938 * widget.c: Use renamed symbols.
9f7e52b4 14939
f63fd14e 14940 * window.c: Comment fixes. Use renamed symbols.
048addec 14941 (coordinates-in-window-p): Doc fix.
fa336b91 14942
f63fd14e 14943 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 14944
048addec 14945 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 14946
048addec 14947 * xfns.c: Use renamed symbols.
89512fcd 14948
f63fd14e 14949 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
14950 (fringe_bitmap_type): Renamed from bitmap_type.
14951 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14952 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
14953 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 14954
f63fd14e 14955 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
14956 (fringes_extra): Renamed from flags_areas_extra.
14957 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14958 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14959 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14960 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14961 (FRAME_X_LEFT_FRINGE_WIDTH):
14962 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14963 (FRAME_X_RIGHT_FRINGE_WIDTH):
14964 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
14965
149662001-11-15 Jason Rumney <jasonr@gnu.org>
14967
14968 * w32menu.c (add-menu-item): Make help_echo and radio buttons
14969 work for most menu items. From David Ponce
14970 <david.ponce@wanadoo.fr>.
14971
149722001-11-15 Gerd Moellmann <gerd@gnu.org>
14973
14974 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
14975 Some x_set_* function expect to be called even if old and new
14976 value are equal.
14977
14978 * xdisp.c (build_desired_tool_bar_string): Accept zero
14979 tool_bar_button_relief.
14980
14981 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
14982
14983 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
14984
14985 * xterm.c (x_draw_bar_cursor): If the background color of the
14986 glyph under the cursor equals the frame's cursor color, use
14987 the glyph's foreground color for drawing the bar cursor.
14988
14989 * dispnew.c (direct_output_forward_char): Fix character/byte
14990 position comparison.
7d18891d 14991
048addec 149922001-11-15 Miles Bader <miles@gnu.org>
d2936d21 14993
048addec
JD
14994 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
14995 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
14996 Update arguments to find_field.
14997 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
14998 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
14999 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15000 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 15001
048addec 150022001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 15003
048addec 15004 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 15005
048addec
JD
15006 * dispextern.h (image_background, image_background_transparent):
15007 Conditionalize on HAVE_X_WINDOWS.
7d18891d 15008
048addec 150092001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 15010
048addec 15011 * print.c (Fprin1_to_string): Doc fix.
7d18891d 15012
048addec 15013 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 15014
048addec 15015 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 15016
048addec 15017 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 15018
048addec 15019 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 15020
048addec 15021 * eval.c (syms_of_eval): Doc fix.
7d18891d 15022
048addec 15023 * coding.c (syms_of_coding): Doc fix.
7d18891d 15024
048addec 15025 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 15026
048addec 15027 * dispnew.c (syms_of_display): Doc fix.
9474c847 15028
048addec 15029 * category.c (Fget_unused_category): Doc fix.
9474c847 15030
048addec 15031 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 15032
048addec 150332001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 15034
048addec 15035 * print.c (prin1, print): Doc fix.
e3059a5d 15036
048addec 150372001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 15038
048addec
JD
15039 * fontset.h: Remove declarations of variables
15040 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 15041
048addec
JD
15042 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15043 `Vclip_large_size_font'.
eae936e2 15044
048addec 150452001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 15046
048addec 15047 * w32fns.c: Doc fix.
ddb67bdc 15048
048addec 150492001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 15050
048addec 15051 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 15052
048addec 15053 * fns.c: Doc fix.
6e1b91d7 15054
048addec 15055 * emacs.c: Doc fix.
1c1d3d69 15056
048addec 15057 * coding.c: Doc fix.
1c1d3d69 15058
048addec
JD
15059 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15060 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15061 `new style' [w/`doc:' keyword].
b6f4c7ba 15062
048addec 150632001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 15064
048addec
JD
15065 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
15066 LeaveNotify events. Only FocusIn and FocusOut do that now.
15067 (x_display_and_set_cursor): Do display hollow cursors in active
15068 minibuffer windows when they are not selected.
b6f4c7ba 15069
048addec 150702001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 15071
048addec 15072 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
15073 * w32term.c: Change doc-string comments to `new style'
15074 [w/`doc:' keyword]. Doc fixes.
a89f435d 15075
048addec
JD
15076 * w32fns.c: Don't define max.
15077 (Fx_open_connection): Only execute once.
a4cd0cd7 15078
048addec 150792001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 15080
048addec
JD
15081 * ccl.c: Change macros to use do-while block instead of if-else.
15082 Use braces to follow GNU Coding Standards.
eafb659a 15083
048addec 150842001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 15085
048addec 15086 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 15087
048addec 15088 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 15089
048addec
JD
15090 * insdel.c (replace_range): Use adjust_markers_for_replace
15091 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 15092
048addec 15093 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 15094
048addec
JD
15095 * textprop.c (set_text_properties_1): New subroutine
15096 broken out of set_text_properties.
15097 (set_text_properties): Use set_text_properties_1.
91823618 15098
048addec
JD
15099 * intervals.c (graft_intervals_into_buffer):
15100 Use set_text_properties_1 to clear out properties.
91823618 15101
048addec
JD
15102 * search.c (Freplace_match): Use replace_range to insert
15103 and delete. Don't request property inheritance from
15104 surrounding text.
86928dfb 15105
048addec 151062001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 15107
048addec 15108 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 15109 vertical fonts. Allow them if face name is explicitly specified.
048addec 15110 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 15111
048addec 151122001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 15113
048addec
JD
15114 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
15115 instead of malloc/free.
a78e0303 15116
048addec 151172001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 15118
048addec
JD
15119 * xfaces.c (merge_face_vectors): Use braces to follow GNU
15120 Coding Standards.
15121 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 15122
048addec 15123 * buffer.c (Fbury_buffer): Likewise.
0c99b139 15124
048addec 15125 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 15126
048addec
JD
15127 * coding.c (encode_coding): Use precomputed value of `src'.
15128 (encode_coding): Remove unused variable `src_end'.
15129 (code_convert_region): Remove unused variables `count'.
830ddd77 15130
048addec 151312001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 15132
048addec
JD
15133 * w32term.c (x_display_and_set_cursor): Do not move system caret
15134 if cursor_glyph is NULL.
55c6d645 15135
048addec 151362001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 15137
048addec 15138 * keymap.c (access_keymap): Fix compilation error.
5de38842 15139
048addec 151402001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 15141
048addec 15142 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 15143
048addec 151442001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 15145
048addec
JD
15146 * intervals.c (graft_intervals_into_buffer):
15147 Remove #ifdef'd-out code.
15148 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 15149
048addec
JD
15150 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
15151 code (eval-current-buffer).
15152 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 15153
048addec 151542001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 15155
048addec 15156 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 15157
048addec 151582001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 15159
048addec 15160 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 15161
048addec
JD
15162 * keyboard.c (make_lispy_event): Check integerness and fix
15163 Lisp_Object/int mixup.
17893c65 15164
048addec 151652001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 15166
048addec 15167 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 15168
048addec
JD
15169 * fontset.c (fontset_font_pattern): Remove unused variable
15170 `family_registry'.
d5360cc7 15171
048addec 15172 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 15173
048addec 151742001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 15175
048addec 15176 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 15177
048addec
JD
15178 * buffer.c (Fkill_buffer): Don't delete auto save file
15179 if buffer is modified.
d9d54213 15180
048addec 151812001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 15182
048addec
JD
15183 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
15184 CHECK_NUMBER_CDR.
b116830b 15185
048addec 151862001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 15187
048addec 15188 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 15189
048addec 151902001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 15191
048addec 15192 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 15193
048addec 151942001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 15195
048addec 15196 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 15197
048addec 151982001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 15199
048addec
JD
15200 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
15201 the program image directly.
982f6c7e 15202
048addec 152032001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 15204
048addec 15205 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 15206
048addec 152072001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 15208
048addec
JD
15209 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
15210 and CHECK_BUFFER.
d31053f9 15211
048addec
JD
15212 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
15213 (record_char): Likewise.
d31053f9 15214
048addec
JD
15215 * keyboard.c (make_lispy_event): Don't insist a drag event must
15216 move to a different buffer position. Instead, check for moving at
15217 least double_click_fuzz.
982f6c7e 15218
048addec 15219 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 15220
048addec 15221 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 15222
048addec
JD
15223 * indent.c (current_column_1, Fmove_to_column): Separate the code
15224 for display-table glyphs from the code for buffer text, to fix
15225 bugs in the former.
830047fd 15226
048addec 152272001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 15228
048addec
JD
15229 * buffer.c (Fbuffer_local_value): New function.
15230 (syms_of_buffer): Defsubr it.
2df5238c 15231
048addec
JD
15232 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
15233 value of `cursor-in-non-selected-windows'.
4e397688 15234
048addec
JD
15235 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
15236 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
15237 (syms_of_xdisp): Initialize it.
48b0f3ae 15238
048addec 152392001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 15240
048addec 15241 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 15242
048addec
JD
15243 * coding.c: Change doc-string comments to `new style' [w/`doc:'
15244 keyword].
3ecaf7e5 15245
048addec
JD
15246 * eval.c (top_level_value, top_level_set): Remove commented and
15247 #ifdef'd-out code.
15248 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 15249
048addec 152502001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 15251
048addec 15252 * xfns.c: Include unistd.h, if it exists.
8db2e33b 15253
048addec 15254 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 15255
048addec 15256 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 15257
048addec 152582001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 15259
048addec
JD
15260 * lisp.h (CHECK_STRING_CAR): New macro.
15261 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
15262 treating XCAR and XCDR as lvalues.
15263 (openp): Use CHECK_STRING_CAR.
15264 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 15265
048addec 152662001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 15267
048addec
JD
15268 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
15269 (SIGMASKTYPE): Define.
1b1acc13 15270
048addec 15271 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 15272
048addec 152732001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 15274
048addec
JD
15275 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
15276 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
15277 Fix typos in comments.
6cb16f95 15278
048addec
JD
15279 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
15280 and #ifdef'd-out code.
15281 Fix and reindent comments.
6cb16f95 15282
048addec 15283 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 15284
048addec
JD
15285 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
15286 argument `i' in macros.
6cb16f95 15287
048addec
JD
15288 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
15289 `i' in macros.
7e9d3c2f 15290
048addec
JD
15291 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
15292 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
15293 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
15294 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
15295 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
15296 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
15297 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
15298 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
15299 in macros.
7e9d3c2f 15300
048addec
JD
15301 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
15302 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
15303 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
15304 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
15305 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
15306 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
15307 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
15308 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
15309 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
15310 (remove unused second argument).
7e9d3c2f 15311
048addec 153122001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15313
048addec
JD
15314 * syntax.c (describe_syntax): New wrapper.
15315 (Finternal_describe_syntax_value): Rename from describe_syntax.
15316 Don't insert space at front and \n at the end.
15317 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 15318
048addec
JD
15319 * regex.c (re_wctype): Try to fix some warnings.
15320 (regcomp, regexec): Don't forget the __restrict.
9ba48103 15321
048addec 153222001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 15323
048addec 15324 * textprop.c (Fget_char_property): Doc fix.
9ba48103 15325
048addec 153262001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 15327
048addec 15328 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 15329
048addec 15330 * data.c (Fsetq_default): Ditto.
c22e59e1 15331
048addec 15332 * callint.c (Finteractive): Ditto.
9271ed2c 15333
048addec 153342001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15335
048addec
JD
15336 * macros.c: Don't include keymap.h any more.
15337
153382001-11-01 Richard M. Stallman <rms@gnu.org>
15339
15340 * data.c (Fmake_local_variable): Doc fix.
15341
15342 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
15343 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 15344
048addec 15345 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
15346 bindings along with or instead of the buffer local map.
15347 Make the overriding maps override what they should.
15348
f00691a3 153492001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
15350
15351 * window.c (grow_mini_window): Fix typo in comment.
15352
27188d11
GM
153532001-11-01 Gerd Moellmann <gerd@gnu.org>
15354
7b49b9d2
GM
15355 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
15356 (XTset_vertical_scroll_bar): Likewise.
15357
43f7c3ea
GM
15358 * xfns.c (x_build_heuristic_mask): Use four_corners_best
15359 instead of IMAGE_BACKGROUND.
c22e59e1 15360
b350c2e5
GM
15361 * xfns.c (four_corners_best): Reindent.
15362
c22e59e1 15363 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
15364 Handle :box so that it is possible to specify sexprs.
15365
bf00d461
EZ
153662001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
15367
15368 * s/hpux11.h: New file.
15369
f00691a3 153702001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 15371
2b209b97
PJ
15372 * emacs.c (USAGE1): Show command line option --no-window-system
15373 instead of --no-windows in usage.
15374 (standard_args): Rename --no-windows to --no-window-system.
15375 (bug_reporting_address): Follow Emacs coding conventions.
15376
9dbc9081
PJ
15377 * eval.c (Fcommandp): Doc fix.
15378 Change doc-string comments to `new style' [w/`doc:' keyword].
15379
4e10df59
PJ
15380 * frame.c (Fframe_live_p): Doc fix.
15381
15382 * buffer.c (selective-display-ellipses): Doc fix.
15383
dd387b25
GM
153842001-10-31 Gerd Moellmann <gerd@gnu.org>
15385
fe957e65
GM
15386 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
15387
dd387b25
GM
15388 * xfaces.c (realize_x_face): If C is not a single-byte character,
15389 set the face's colors_copied_bitwise_p instead of the defaulted_p
15390 members which have a different meaning.
15391 (free_face_colors): Do nothing for a face whose colors have been
15392 copied bitwise.
15393
c22e59e1 15394 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 15395
f00691a3 153962001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 15397
687784e8
PJ
15398 * marker.c, mocklisp.c: Change doc-string comments to `new style'
15399 [w/`doc:' keyword].
2e1280f8 15400
b9d9a9b9
GM
154012001-10-31 Gerd Moellmann <gerd@gnu.org>
15402
15403 * fns.c (require_unwind): Return Lisp_Object.
15404
f00691a3 154052001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 15406
fa1361cb
PJ
15407 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
15408 (last-input-char): Revert doc-string to be the same as the
15409 doc-string of `last-input-event'.
15410
6c465a15 15411 * xdisp.c: Fix typos in comments.
48400103 15412
eafa3196
GM
154132001-10-31 Gerd Moellmann <gerd@gnu.org>
15414
15415 * window.c (grow_mini_window): Handle case that the root
15416 window is already smaller than the nominal mininum height.
15417
747d3f2a
SM
154182001-10-30 Stefan Monnier <monnier@cs.yale.edu>
15419
bf9bb76f
SM
15420 * emacs.c (main): Don't call keys_of_macros any more.
15421
15422 * lisp.h (keys_of_macros): Remove.
15423
15424 * macros.c (keys_of_macros): Remove.
15425
747d3f2a
SM
15426 * xfaces.c (Fface_attribute_relative_p): Declare args.
15427
5e905a57
JR
154282001-10-30 Jason Rumney <jasonr@gnu.org>
15429
15430 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
15431 (enum_font_cb2): Ignore fonts with vertical orientation.
15432
3a426197
RS
154332001-10-30 Richard M. Stallman <rms@gnu.org>
15434
15435 * keyboard.c (Finput_pending_p): Doc fix.
15436
a742d646
GM
154372001-10-30 Gerd Moellmann <gerd@gnu.org>
15438
259cf6bc
GM
15439 * xterm.c (x_after_update_window_line): Don't run the code
15440 clearing in borders for rows whose visible height is 0.
15441
3f99f948
GM
15442 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
15443 resized_p flag is set. If not set, use the much less flickering
15444 method previously used.
15445
15446 * dispnew.c (change_frame_size_1): Set frame's resized_p.
15447
15448 * frame.h (struct frame) <resized_p>: New member.
15449
b4a3be43
GM
15450 * lread.c (to_multibyte): Ensure read_buffer is at least twice
15451 as large as the number of bytes to convert.
747d3f2a 15452
a742d646
GM
15453 * lread.c (to_multibyte): New function.
15454 (read1): Use it.
15455
cacbb9e9
EZ
154562001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
15457
15458 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
15459
99cb6b2f
GM
154602001-10-30 Gerd Moellmann <gerd@gnu.org>
15461
327f42ee 15462 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
15463 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
15464 if the row's fill_line_p is set and drawing the last glyph with
15465 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 15466
99cb6b2f
GM
15467 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
15468
8e8223e2
SM
154692001-10-29 Stefan Monnier <monnier@cs.yale.edu>
15470
15471 * xmenu.c: Include coding.h and charset.h.
15472 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
15473 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
15474 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
15475 Explicitly set wv->help. Use `TRUE' rather than `True'.
15476 (menu_help_callback): Use empty_string.
15477
15478 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
15479 (Fx_popup_dialog): Explicitly init f.
15480 (w32_menu_display_help): Use empty_string.
15481
4d083a8f
RS
154822001-10-29 Richard M. Stallman <rms@gnu.org>
15483
b2304472
RS
15484 * fns.c (Frequire): Detect recursive try to require the same
15485 feature 3 or more levels deep, and get error.
15486 (require_unwind): New subroutine.
15487 (require_nesting_list): New variable.
15488 (syms_of_fns): Init and staticpro it.
15489
4d083a8f
RS
15490 * print.c (print_object): Clarify indication of insertion type.
15491
2fe41216
EZ
154922001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
15493
90480000
EZ
15494 * coding.c (syms_of_coding): Document that locale-coding-system is
15495 used for decoding input on X.
15496
2fe41216
EZ
15497 * window.c (Fscroll_left, Fscroll_right): Doc fix.
15498
f00691a3 154992001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
15500
15501 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
15502 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
15503
60ebcfe8
GM
155042001-10-29 Gerd Moellmann <gerd@gnu.org>
15505
9a7bdceb
GM
15506 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
15507 use NO_CURSOR if cursor_in_non_selected_windows is false.
15508
3f08fcd2
GM
15509 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
15510 the slant attribute if FRAME is t.
15511
0ccfdad2
GM
15512 * xfns.c (x_set_internal_border_width): Set frame garbaged
15513 when X window doesn't exist yet.
15514
ef253080
GM
15515 * xterm.c (x_after_update_window_line): Clear internal border
15516 in different circumstances.
b116830b 15517
60ebcfe8
GM
15518 * xterm.c (XTread_socket) <KeyPress>: Don't use
15519 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
15520 <handa@etl.go.jp>.
15521
73d25f9c
EZ
155222001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
15523
15524 * m/ibms390.h: New file. From Adam Thornton
15525 <athornton@sinenomine.net>.
15526
cac1daf0
GM
155272001-10-28 Gerd Moellmann <gerd@gnu.org>
15528
053b3256 15529 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 15530
cac1daf0
GM
15531 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
15532 a loop counter.
15533
f00691a3 155342001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 15535
f9711de4 15536 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 15537
4707d2d0
PJ
15538 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
15539 keyword].
15540 Fix typos in comments.
b116830b 15541
d883731c
PJ
15542 * emacs.c (bug_reporting_address): New function.
15543 Use it when displaying usage message.
15544
04012254
PJ
15545 * minibuf.c (read_minibuf): Remove unused external declaration of
15546 variable `Qread_only'.
15547
13b1a09c
PJ
15548 * keymap.c (access_keymap): Remove unused variable `charset'.
15549
5bbf4378
MB
155502001-10-28 Miles Bader <miles@gnu.org>
15551
15552 * xfaces.c (merge_face_heights): Handle TO being relative as well.
15553 Remove #ifdef'd-out code.
15554 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
15555 (syms_of_xfaces): Initialize them.
15556
1ce1e4ee
JR
155572001-10-27 Jason Rumney <jasonr@gnu.org>
15558
15559 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
15560 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
15561 position using the system caret.
15562
15563 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
15564 (w32_system_caret_height, w32_system_caret_x)
15565 (w32_system_caret_y): New variables for tracking system caret.
15566 (w32_initialize): Initialize them.
c2d53558 15567 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 15568
c2d53558
SM
15569 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
15570 New messages types.
1ce1e4ee
JR
15571
15572 * w32term.c (note_mouse_highlight): Clear old help_echo.
15573
f00691a3 155742001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 15575
bb4600a4
PJ
15576 * xterm.c: Fix typo in a comment.
15577
7db35a48
PJ
15578 * emacs.c: Fix typos in comments.
15579 Remove unnecessary spaces.
15580 Change doc-string comments to `new style' [w/`doc:' keyword].
15581 (USAGE2): Fix typos in usage string.
15582
a7248e4f
PJ
15583 * xterm.c: Fix typo in a comment.
15584
4e30ce42
PJ
15585 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
15586 emacs.c.
15587
62725a92
GM
155882001-10-27 Gerd Moellmann <gerd@gnu.org>
15589
798dbe1f 15590 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 15591 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
15592 farther backward when target_y was not reached.
15593
62725a92
GM
15594 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
15595 Display errno only if non-zero.
15596 (sound_warning): New function.
15597 (vox_configure): Don't treat failing to set sample rate as error.
15598 (various places): Improve error messages.
15599
d4e34d24
EZ
156002001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
15601
944e6f60
EZ
15602 * fileio.c (Faccess_file): Run the argument filename through
15603 Fexpand_file_name, before using it.
15604
d4e34d24
EZ
15605 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
15606 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
15607
38d2af0c
GM
156082001-10-26 Gerd Moellmann <gerd@gnu.org>
15609
da80a8d5
GM
15610 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
15611
38d2af0c
GM
15612 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15613 Fix clearing in the case of scroll bars on the right.
c2d53558 15614
45de4a6f 156152001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
15616
15617 * w32gui.h (XImage): Add a dummy typedef.
15618
fbd5ceb2
GM
156192001-10-26 Gerd Moellmann <gerd@gnu.org>
15620
c2d53558 15621 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 15622
b23236fb
EZ
156232001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
15624
15625 * frame.c (Fframe_parameter): Fix last change.
15626
5d991fc4
EZ
15627 * fileio.c: Revert last change (which removed old commented-out
15628 version of expand-file-name). Add a comment that explains why
15629 this old version should not be removed.
15630
879eadc3
GM
156312001-10-25 Gerd Moellmann <gerd@gnu.org>
15632
75700ff2
GM
15633 * frame.c (Fframe_parameter): Fix a bug whereby some
15634 ``artificial'' frame parameters, like `minibuffer' were not
15635 obtained by calling Fframe_parameters.
15636
dfe92a6a
GM
15637 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
15638 cursor differently.
15639
879eadc3
GM
15640 * xdisp.c (move_it_vertically_backward): Compute line height
15641 differently. Add heuristic to try to be more compatible to 20.x.
15642
e1010ebe
SM
156432001-10-25 Stefan Monnier <monnier@cs.yale.edu>
15644
d73a471b
SM
15645 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
15646
d6da5a06
GM
15647 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
15648 boolean.
e1010ebe 15649
f66bd220
MB
156502001-10-25 Miles Bader <miles@gnu.org>
15651
15652 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
15653 BG is a pointer to a structure, not a structure.
15654 (gif_format, png_format): Add missing commas.
15655
d436d538
RS
156562001-10-24 Richard M. Stallman <rms@gnu.org>
15657
15658 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 15659 (syms_of_xfaces): Defsubr it.
d436d538 15660
f00691a3 156612001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
15662
15663 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
15664 variable `area'.
15665
f00691a3 156662001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 15667
c2d53558 15668 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 15669
e2a57b34
MB
156702001-10-25 Miles Bader <miles@gnu.org>
15671
15672 * dispextern.h (struct image): Add `background',
15673 `background_valid', and `background_transparent' fields.
15674 (image_background, image_background_transparent): New declarations.
15675 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
15676 * xfns.c (image_background, image_background_transparent)
15677 (four_corners_best): New functions.
c2d53558 15678 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
15679 (gs_format): Add `:background' entry.
15680 (lookup_image): Set IMG's background color if specified.
15681 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15682 when appropriate.
15683 (x_clear_image_1): Reset `background_valid' and
15684 `background_transparent_valid' fields.
15685 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15686 calculating it here. Set IMG's background_transparent field.
15687 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15688 (enum png_keyword_index): Add PNG_BACKGROUND.
15689 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15690 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15691 (enum gif_keyword_index): Add GIF_BACKGROUND.
15692 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 15693 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
15694 Pre-calculate image background color where necessary.
15695 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15696 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15697 color to use for image glyph reliefs.
15698
b547b6e8
GM
156992001-10-24 Gerd Moellmann <gerd@gnu.org>
15700
d9e3b8c6
GM
15701 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
15702 in full-width rows.
c2d53558 15703
b547b6e8
GM
15704 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15705 Fix clearing of area not covered by scroll bar.
15706
f00691a3 157072001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
15708
15709 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
15710 and `real_start'.
c2d53558 15711 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
15712 (glyph_rect): Remove unused variable `area'.
15713
76cb5e06
GM
157142001-10-24 Gerd Moellmann <gerd@gnu.org>
15715
bdbdebff 15716 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
15717
15718 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
15719 (row_containing_pos): Take additional argument DY.
15720 Treat rows ending in middle of char differently.
62e33982
GM
15721 (display_line): Handle tabs on window systems differently.
15722
15723 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
15724 with additional argument.
15725
15726 * dispextern.h (row_containing_pos): Adjust prototype.
15727
76cb5e06
GM
15728 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
15729 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
15730 (try_window_id, try_window_reusing_current_matrix)
15731 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 15732 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 15733
f00691a3 157342001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 15735
c9e60620
PJ
15736 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
15737 gnuemacs).
15738 (HAVE_BOXES): Fix typo in comment.
15739 (push_menu_pane): Fix typo in comment.
15740
3b552d56
PJ
15741 * xdisp.c: (display_prop_string_p): Remove unused local declaration
15742 of `Qwhen'.
15743 (single_display_prop_string_p): Remove unused local declarations
15744 of `Qwhen' and `Qmargin'.
15745 (string_buffer_position): Remove unused variable `around'.
15746 (store_frame_title): Remove unused variable `width'.
15747
15c565ac
PJ
15748 * window.c: Don't define max.
15749 (coordinates_in_window): Remove unused variable `uy'.
15750
a8818eb9
PJ
15751 * widget.c: Don't define max.
15752
996fee11
PJ
15753 * process.c: Don't define max.
15754 (create_process): Remove unused variable `buffer'.
15755
496e1a5b
GM
157562001-10-23 Gerd Moellmann <gerd@gnu.org>
15757
c2d53558 15758 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 15759
5905ae8b
EZ
157602001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
15761
15762 * xfaces.c (Finternal_set_lisp_face_attribute)
15763 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
15764 frame is on a windowed display.
15765
24db49fb
GM
157662001-10-23 Gerd Moellmann <gerd@gnu.org>
15767
c2d53558
SM
15768 * dispnew.c (sync_window_with_frame_matrix_rows):
15769 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
15770 of marginal areas.
15771
c2d53558 15772 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 15773
f0487f05
EZ
157742001-10-23 Andreas Schwab <schwab@suse.de>
15775
15776 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
15777 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
15778
f0a48a01
GM
157792001-10-23 Gerd Moellmann <gerd@gnu.org>
15780
c2d53558 15781 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
15782 REAL_END. Notice if cursor gets overwritten.
15783 (notice_overwritten_cursor): Take X positions as parameters.
15784 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15785 around call to x_draw_glyphs.
15786
f00691a3 157872001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 15788
fc11dff0
PJ
15789 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
15790 instead of C) and usage.
a50a10a0 15791
fc11dff0
PJ
15792 * editfns.c (char-to-string): Fix argument names (use CHAR instead
15793 of C) and usage.
a50a10a0
PJ
15794
15795 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
15796 `left', `max_width' and `max_height'.
15797
8738febd
GM
157982001-10-23 Gerd Moellmann <gerd@gnu.org>
15799
15800 * xdisp.c (display_line): For a tab continued to the next line,
15801 set row's ends_in_middle_of_char_p.
15802
653c329b
GM
158032001-10-22 Gerd Moellmann <gerd@gnu.org>
15804
15805 * xdisp.c (display_line): Fix computation of continuation lines
15806 width for TABs.
15807
f00691a3 158082001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 15809
7ba51063
PJ
15810 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
15811 `Qlaplace'.
15812
f958c5ac
PJ
15813 * fileio.c: Remove unused code.
15814
eb360291
MB
158152001-10-22 Miles Bader <miles@gnu.org>
15816
15817 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
15818 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
15819 Remove `DOC_STRINGS_IN_COMMENTS' cases.
15820
98515cf0
JR
158212001-10-21 Jason Rumney <jasonr@gnu.org>
15822
15823 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
15824
93026d88
EZ
158252001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
15826
15827 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
15828 (Finsert_string): Avoid the multi-line string literals warning.
15829
c9a95b79
MB
158302001-10-22 Miles Bader <miles@gnu.org>
15831
15832 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
15833 (Fdocumentation): Don't use it.
15834 (syms_of_doc): Don't initialize it.
15835
15836 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
15837 * print.c (Fwith_output_to_temp_buffer): Likewise.
15838 * window.c (Fsave_window_excursion): Likewise.
c2d53558 15839 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 15840 (Fsave_restriction): Likewise.
c2d53558
SM
15841 * eval.c (Frun_hooks, Frun_hook_with_args)
15842 (Frun_hook_with_args_until_failure)
15843 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
15844 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
15845 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
15846 (Funwind_protect, Fcondition_case): Likewise.
15847 * coding.c (Ffind_operation_coding_system): Likewise.
15848 * keyboard.c (Ftrack_mouse): Likewise.
15849
a3b10252
MB
158502001-10-21 Miles Bader <miles@gnu.org>
15851
c2d53558 15852 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
15853 (Fmake_hash_table): Add usage: string to doc string.
15854 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 15855 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
15856 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
15857 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
15858 (Fml_prefix_argument_loop): Likewise.
15859
f00691a3 158602001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 15861
c2d53558 15862 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 15863
c6f73eec
PJ
15864 * sysdep.c (init_sys_modes): Change doc-string comments to `new
15865 style' [w/`doc:' keyword].
15866
15867 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
15868 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
15869 comments to `new style' [w/`doc:' keyword].
15870
3cf3436e
JR
158712001-10-21 Jason Rumney <jasonr@gnu.org>
15872
15873 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
15874
c169b8f1
JR
15875 * w32term.c (remember_mouse_glyph): New function.
15876 (w32_mouse_position): Use it.
15877 (note_mouse_movement): If the mouse moved off the glyph, remember
15878 its new position.
c2d53558 15879
4fdd691b
JR
15880 * w32term.h (struct w32_output): Correct spelling of x_compatible.
15881 (w32_display_info): Add mouse_face_overlay.
15882
c169b8f1
JR
15883 * w32term.c (notice_overwritten_cursor): Renamed from
15884 note_overwritten_text_cursor. Rewritten to take glyph widths into
15885 account.
15886 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
15887 (fast_find_string_pos): New function.
15888 (fast_find_position): Return the correct vpos. Add parameter
15889 STOP. In the final row, stop before glyphs having STOP as object.
15890 Don't consider glyphs that are not from a buffer.
15891 (fast_find_position) [0]: Add a presumably more correct version
15892 for after 21.1.
15893 (expose_window_tree, expose_frame): Don't compute intersections here.
15894 (expose_window): Do it here instead.
15895 (expose_window_tree, expose_window, expose_line): Return 1 when
15896 overwriting mouse-face.
15897 (expose_window): If W is the window currently being updated, mark
15898 the frame garbaged.
15899 (expose_frame): If mouse-face was overwritten, redo it.
15900 (x_use_underline_position_properties): New variable.
15901 (syms_of_xterm): DEFVAR_BOOL it.
15902 (x_draw_glyph_string): Add comment to use it in future.
15903 (x_draw_glyph_string): Restore clipping after drawing box.
15904 Fix a computation of the underline position.
15905 (w32_get_glyph_string_clip_rect): Minor cleanup.
15906 (x_fill_stretch_glyph_string): Remove an assertion.
15907 (x_produce_glyphs): Don't convert multibyte characters
15908 to unibyte characters in unibyte buffers.
15909 (cursor_in_mouse_face_p): New function.
15910 (x_draw_stretch_glyph_string): Use it to choose a different GC
15911 when drawing a cursor within highlighted text. Don't draw
15912 background again if it has already been drawn.
15913 (x_draw_glyph_string_box): Don't draw a full-width
15914 box just because the glyph row's full_width_p flag is set.
15915 (x_draw_glyphs): Fix computation of rightmost x for
15916 full-width rows.
15917 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
15918 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 15919 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
15920 (x_update_window_end): Handle overwritten mouse face
15921 also for tool bar windows.
15922 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
15923 DRAW is DRAW_IMAGE_RAISED.
15924 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
15925 actually redrawn. Make the function static.
15926 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
15927 optimize away highlighting if we pass over that same overlay again.
15928 (note_mouse_highlight): Call mouse_face_overlay_overlaps
15929 to detect a case where we have to highlight a different region
15930 despite not having left the currently highlighted region.
15931 Set mouse_face_overlay in the x_display_info. Avoid changing the
15932 mouse pointer shape when show_mouse_face has already done it, or
15933 there is no need. Handle mouse-face and help-echo in strings.
15934 (glyph_rect): New function.
15935 (w32_mouse_position): Use it to raise the threshold for mouse
15936 movement event generation.
15937 (w32_initialize_display_info): Initialize the x_display_info's
15938 mouse_face_overlay.
15939 (w32_set_vertical_scroll_bar): Don't clear a zero height
15940 or width area.
15941 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
15942 a widget to zero height.
15943
3cf3436e 15944 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 15945 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
15946 equivalents in menu_items.
15947 (w32_menu_show): Don't overwrite an item's name with its key
15948 description in case the description is a multibyte string.
15949 (single_submenu): Some cleanup.
15950
15951 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
15952 (postprocess_image): New function.
15953 (lookup_image): Call it for all image types except PostScript.
15954 (x_kill_gs_process): Call postprocess_image.
15955 (tiff_error_handler, tiff_warning_handler): New functions.
15956 (tiff_load): Install them as handlers.
15957 (x_kill_gs_process): Recognize if someone has cleared the image
15958 cache under us.
15959 (valid_image_p): Protect better against invalid image
15960 specifications. Previous code could signal an error.
15961 (Fx_hide_tip, Fshow_tip): Doc fix.
15962 (Fv_max_tooltip_size): New variable.
15963 (syns_of_xfns): DEFVAR_LISP it.
15964 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 15965 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
15966 window_width. Use a maximum tooltip size specified by
15967 Vx_max_tooltip_size, if that has valid contents.
15968 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
15969 Make sure the tooltip is completely visible.
15970 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
15971 (Fx_create_frame): Adjust the frame's height for presence
15972 of the tool bar before calling x_figure_window_size.
15973 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
15974 when the window gets smaller.
15975 (x_set_foreground_color): Set frame's cursor_pixel.
15976 (x_set_foreground_color, x_set_background_color): Cleaned up.
15977 (x_set_font): Handle case of x_new_fontset returning the same name
15978 as before, although there was a change in fontsets.
15979
386ca361
MB
159802001-10-21 Miles Bader <miles@gnu.org>
15981
c2d53558 15982 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
15983 (Flogxor): Add usage: string to doc string.
15984 * charset.c (Fstring): Likewise.
15985 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
15986 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
15987
f00691a3 159882001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 15989
03be2694
PJ
15990 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
15991
15992 * alloc.c: Reindent DEFUNs with doc: keywords.
15993
15994 * abbrev.c (Finsert_abbrev_table_description): Reindent.
15995
14ff1ee0
PJ
15996 * frame.c: Change doc-string comments to `new style' [w/`doc:'
15997 keyword].
15998
2f147815 15999See ChangeLog.9 for earlier changes.
6922b018
KH
16000
16001;; Local Variables:
49b3bd82 16002;; coding: iso-2022-7bit
6922b018 16003;; End:
2a34a036 16004
2f147815 16005 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16006 Copying and distribution of this file, with or without modification,
16007 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
16008
16009;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4