(x_draw_vertical_border): Do not draw line if frame has scroll bars.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
904db1a2
KS
12004-10-04 Kim F. Storm <storm@cua.dk>
2
562020fe
KS
3 * xdisp.c (define_frame_cursor1): Do not change frame cursor
4 while tracking/dragging mouse.
5 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
6
37e34af7
KS
7 * window.c (coordinates_in_window): Relax check for cursor
8 on vertial border between mode lines.
9 (Fset_window_fringes): Do not allow negative widths.
10 (Fset_window_scroll_bars): Likewise.
11
904db1a2
KS
12 * .gdbinit (pp): Shorthand for p ARG + pr.
13 (ff): New command: flush frame updates (X only).
14
38fe4f64
MA
152004-10-03 Michael Albinus <michael.albinus@gmx.de>
16
17 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
18
9de36315
KH
192004-09-30 Kenichi Handa <handa@m17n.org>
20
07c381ad 21 * process.c (send_process): Free composition data.
9de36315 22
07c381ad 23 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
24
25 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
26 compositions to encode.
27 (encode_coding_string): Likewise. Free composition data.
28
292004-09-30 Florian Weimer <fw@deneb.enyo.de> (tiny change)
30
31 * coding.c (code_convert_region): Free composition data.
9de36315 32
f2a54fbc
KS
332004-09-29 Kim F. Storm <storm@cua.dk>
34
dc5d6435
KS
35 * fringe.c: Remove limit on number of bitmaps.
36 (fringe_bitmaps, fringe_faces): Change to pointers.
37 (max_fringe_bitmaps): New var.
38 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
39 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
40
41 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
42 (struct glyph_row): Reorder fringe_bitmap related fields.
43 (struct it): Likewise.
44
45 * w32term.c (fringe_bmp): Change to pointer.
46 (max_fringe_bmp): New var.
47 (w32_define_fringe_bitmap): Expand fringe_bmp.
48 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
49 (w32_destroy_fringe_bitmap): Likewise.
50
512004-09-29 Kim F. Storm <storm@cua.dk>
52
53 * fringe.c: Simplify last change.
f2a54fbc
KS
54 (lookup_fringe_bitmap): New function.
55 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
56 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
57 Keep standard bitmaps in Vfringe_bitmaps.
58 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
59 (Fset_fringe_bitmap_face): Likewise.
60
61 * dispextern.h (lookup_fringe_bitmap): Add prototype.
62 (valid_fringe_bitmap_p): Remove prototype.
63
64 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
65
841a8bca
KS
662004-09-29 Kim F. Storm <storm@cua.dk>
67
1f2da365
KS
68 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
69 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
70
841a8bca
KS
71 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
72
73 * fringe.c (Vfringe_bitmaps): New variable.
74 (syms_of_fringe): DEFVAR_LISP it.
75 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
76 Change arg to Lisp_Object and fail if not an integer.
77 (get_fringe_bitmap_name, resolve_fringe_bitmap)
78 (destroy_fringe_bitmap): New functions.
79 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol. Use
80 destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
81 clear its fringe property.
82 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
83 Fdestroy_fringe_bitmap.
84 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
85 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
86 and set fringe property. Signal error if no free slots.
87 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
88 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
89
90 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
91 symbols with a fringe property.
92
4d965590
KS
932004-09-27 Kim F. Storm <storm@cua.dk>
94
95 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
96 Doc fix. Format may now be a symbol or alist, not a cons.
97
98 * fringe.c (update_window_fringes): Handle new formats of
99 indicate-buffer-boundaries (symbol or alist). No longer
100 allow a simple cons.
101 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
102
e888c2b3
JD
1032004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
104
105 * config.in: Rebuild
106
83f1cb94
JD
1072004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
108
109 * config.in: Rebuild.
110
dd3b1d60 111 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 112
2c51754c
SM
1132004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
114
115 * xterm.c (x_term_init): Work around a bug in some X servers.
116
3df5f8aa
RS
1172004-09-18 Richard M. Stallman <rms@gnu.org>
118
557ca2c1
RS
119 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
120
3df5f8aa
RS
121 * xdisp.c (try_window_reusing_current_matrix):
122 Handle the case where we reach the old displayed text,
123 out of sync with the old line boundary.
124
4b70e2c9
SM
1252004-09-14 Stefan <monnier@iro.umontreal.ca>
126
127 * fileio.c (Finsert_file_contents): Fix case of replacement in a
128 narrowed buffer.
129
bfa02563
KS
1302004-09-14 Kim F. Storm <storm@cua.dk>
131
a25fe164
KS
132 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
133
bfa02563
KS
134 * xfaces.c (Qface_no_inherit): New var.
135 (syms_of_xfaces): Intern and staticpro it.
136 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
137 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
138 Don't increment face_change_count when face has non-nil
139 face-no-inherit property.
140
126f9c02
SM
1412004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
142
892a8eb5
SM
143 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
144 (Fbyte_code): Remove dead code after `wrong_type_argument'.
145
126f9c02
SM
146 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
147 before doing the mark_stack_check_gcpros since they are not on the stack.
148
c0ad3b38
KS
1492004-09-12 Kim F. Storm <storm@cua.dk>
150
151 * editfns.c (Fformat): Handle format strings with multiple text
152 properties. Reverse text property list from the format string,
153 so the positions are in increasing order.
154
844fc085
JD
1552004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
156
157 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
158 x_uncatch_errors so that possible protocol errors are delivered.
159
b106731c
EZ
1602004-09-10 Eli Zaretskii <eliz@gnu.org>
161
21065c92
EZ
162 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
163 blockinput.h.
164 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
165 charset.h, and coding.h
166 (w16select.o): Depend on buffer.h, charset.h, coding.h, and
167 composite.h.
168 (term.o): Depend on window.h and keymap.h.
169 (abbrev.o): Depend on syntax.h.
170 (callint.o): Depend on keymap.h.
171 (casefiddle.o): Depend on charset.h and keymap.h.
172 (category.o): Depend on keymap.h.
173 (coding.o): Depend on dispextern.h.
174 (cmds.o): Depend on keyboard.h and keymap.h.
175 (dispnew.o): Depend on indent.h and intervals.h.
176 (doc.o): Depend on keymap.h.
177 (editfns.o): Depend on frame.h.
178 (emacs.o): Depend on dispextern.h.
179 (fileio.o): Don't depend on ccl.h.
180 (filelock.o): Depend on charset.h and coding.h.
181 (frame.o): Depend on w32term.h and macterm.h.
182 (insdel.o): Depend on region-cache.h.
183 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
184 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
185 (search.o): Depend on $(INTERVALS_SRC).
186 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
187 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
188 xterm.h, w32term.h, and macterm.h.
189 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
190 w32term.h, and macterm.h.
191 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
192 region-cache.h, xterm.h, w32term.h, and macterm.h.
193 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
194 (data.o): Depend on frame.h.
195 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
196 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
197 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
198 (intervals.o): Depend on keymap.h.
199
412ee2fa
EZ
200 * msdos.c (msdos_set_cursor_shape, IT_display_cursor): Add
201 debugging print-out to termscript.
b106731c 202
64b7122d
RS
2032004-09-09 Richard M. Stallman <rms@gnu.org>
204
205 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
206
5670531e
RS
2072004-09-08 Richard M. Stallman <rms@gnu.org>
208
6cb4a892
RS
209 * window.c (Fset_window_buffer): Doc fix.
210
5670531e
RS
211 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
212
7e388eb7
JL
2132004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
214
215 * minibuf.c (history_delete_duplicates): New variable.
216 (read_minibuf): Use it.
217 (syms_of_minibuf): Create the corresponding lisp variable.
218
370e3587
KS
2192004-09-08 Kim F. Storm <storm@cua.dk>
220
221 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
222 overlay just before point.
223
f844ba4e
LT
2242004-09-07 Luc Teirlinck <teirllm@auburn.edu>
225
226 * buffer.h (struct buffer): Add auto_save_file_format field.
f844ba4e
LT
227 * buffer.c (reset_buffer, init_buffer_once): Handle
228 auto_save_file_format field.
229 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
230 `buffer-auto-save-file-format'.
f844ba4e
LT
231 * fileio.c: Delete declaration for removed Vauto_save_file_format.
232 (build_annotations): Adapt to replacement of
233 `auto-save-file-format' with the new buffer-local variable
234 `buffer-auto-save-file-format'.
235 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
236
f0f90717
JR
2372004-09-07 Jason Rumney <jasonr@gnu.org>
238
239 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
240
241 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]: Handle
242 Unicode menu titles.
243
4e14f66c
KS
2442004-09-07 Kim F. Storm <storm@cua.dk>
245
246 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
247 property from text property or overlay strings at point.
248
1806714a
SM
2492004-09-07 Stefan <monnier@iro.umontreal.ca>
250
251 * xmenu.c (update_submenu_strings): YAILOM.
252 (set_frame_menubar): Make sure last_i is initialized.
253
1f06d367
JR
2542004-09-03 Jason Rumney <jasonr@gnu.org>
255
1806714a 256 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
257 (digest_single_submenu): Set lname and lkey in widget_value
258 instead of name and key.
259 (update_submenu_strings): New function.
260 (set_frame_menubar): Remove call to inhibit_garbage_collection,
261 call update_submenu_strings.
262
263 * w32menu.c (globals_of_w32menu): Check for Unicode API.
264 (digest_single_submenu, w32_menu_show): Encode menu strings as
265 UTF-8 if Unicode API is available.
266 (utf8to16): New function.
267 (add_menu_item): Use it when calling Unicode API.
1806714a 268
46540080
KS
2692004-09-03 Kim F. Storm <storm@cua.dk>
270
271 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
272 in overlay or text-property strings; set cursor on corresponding
273 glyph rather than at end of the string.
274
9277ba61 2752004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 276
9277ba61 277 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
278 set a new one before obtaining the global coordinate.
279 Use FRAME_MAC_WINDOW.
280 (x_set_name, x_set_title): Encode title to UTF8.
281 Use SetWindowTitleWithCFString.
9277ba61
ST
282 (Fx_server_version): Get correct OS version.
283
1806714a
SM
284 * macmenu.c (add_menu_item): Remove unused variable `i'.
285 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
286
287 * macterm.c (x_update_end): Move SetPortWindowPort to inside
288 BLOCK_INPUT.
289 (x_set_offset): Use FRAME_MAC_WINDOW.
290
291 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
292 nontext_cursor if it is on a scroll bar.
293
294 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
295 Carbon support.
1806714a
SM
296 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
297 Use LIBS_CARBON.
9277ba61 298
b10daec7
JD
2992004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
300
301 * xfns.c (x_set_name_internal): New function. Check if we shall call
302 xfree before ENCODE_UTF_8.
303 (x_set_name, x_set_title): Call x_set_name_internal.
304
f7e22385
JR
3052004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
306
307 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
308 reload it.
309
2bf436c3
JD
3102004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
311
1806714a 312 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
313 (single_submenu): Set lname and lkey in widget_value
314 instead of name and key.
315 (update_submenu_strings): New function.
316 (set_frame_menubar): Remove call to inhibit_garbage_collection,
317 call update_submenu_strings.
318
2bf436c3
JD
319 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
320 instead of name and key.
321 (update_submenu_strings): New function.
322 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 323 call update_submenu_strings.
2bf436c3
JD
324
325 * gtkutil.h (_widget_value): Added lname and lkey.
326
11715f92
ST
3272004-08-30 Steven Tamm <steventamm@mac.com>
328
329 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
330 by using different names for inner loop variables.
331
5500be54
JD
3322004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
333
059cd329
JD
334 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
335 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
336
5500be54
JD
337 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
338 tool bar items is 0.
339
383418e5
ST
3402004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
341
342 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
343 strings in menu items.
344 (single_submenu): Use ENCODE_MENU_STRING
345 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
346 button release isn't passed to event loop
347 (add_menu_item): Use SetMenuItemWithCFString
348
6eb3ee72
ST
3492004-08-26 Steven Tamm <steventamm@mac.com>
350
351 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
352 tool-bar/menu click
353 * macfns.c (Fx_file_dialog): Implemented using NavServices
354
10b43ac3
JD
3552004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
356
2728b5d0
JD
357 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
358
10b43ac3
JD
359 * xfns.c (x_window_to_frame, x_any_window_to_frame)
360 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
361 (x_top_window_to_frame): Return 0 if wdesc is None.
362
2ee3b79e
RS
3632004-08-22 Richard M. Stallman <rms@gnu.org>
364
365 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
366 HAVE_TERMIOS]: If there's no char for this signal, drop through
367 and use system calls.
368
369 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
370
9a1ba2ea
KS
3712004-08-20 Kim F. Storm <storm@cua.dk>
372
373 * process.c (wait_reading_process_output): Rename from
374 wait_reading_process_input. All uses changed.
375 (wait_reading_process_output_1): Rename from
376 wait_reading_process_input_1. All uses changed.
377
378 * dispnew.c (Fsleep_for): Remove obsolete code.
379
295f3b30
KH
3802004-08-20 Kenichi Handa <handa@m17n.org>
381
382 * syntax.c (skip_chars): Fix for unibyte case.
383
27615979
SM
3842004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
385
386 * syntax.c (char_quoted): Mixup byte/char pos.
387 (back_comment): Fixup globals in all cases.
388
00267f94
JD
3892004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
390
391 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
392 passing it to gtk_window_set_title.
393
2439909e
KS
3942004-08-19 Kim F. Storm <storm@cua.dk>
395
6ba0f14c
KS
396 * process.c (wait_reading_process_input): Clean up.
397 Add wait_for_cell, wait_proc, and just_wait_proc args
398 to avoid overloading `read_kbd' and `do_display' args.
399 Change read_kbd arg to int. All callers changed.
400
2439909e
KS
401 * process.c (process_send_signal): Use CDISABLE.
402
403 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
404
101c421e
KS
4052004-08-18 Kim F. Storm <storm@cua.dk>
406
407 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
408 forward to wait_reading_process_input via DO_DISPLAY arg.
409 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
410 object, only process output from that process; also inhibit
411 running timers if DO_DISPLAY==-2.
412
c438dc33
KS
4132004-08-17 Kim F. Storm <storm@cua.dk>
414
415 * process.c (process_send_signal): Fix last change--use
416 _POSIX_VDISABLE instead of CVDISABLE when available.
417
8afc13c6
RS
4182004-08-16 Richard M. Stallman <rms@gnu.org>
419
420 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
421 Set VQUIT and VINTR chars to the standard ones if they are unset.
422 [AIX]: Don't do that here. And don't force VINTR to standard
423 when SIGNALS_VIA_CHARACTERS.
424
c438dc33 425 * process.c (process_send_signal)
8afc13c6
RS
426 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
427 Do nothing if the character is CVDISABLE.
428
429 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
430
c438dc33 431 * intervals.c (move_if_not_intangible):
8afc13c6
RS
432 Force POSITION to be between BEGV and ZV.
433
6dad1714
JPW
4342004-08-14 John Paul Wallington <jpw@gnu.org>
435
436 * buffer.c (Frestore_buffer_modified_p): Doc fix.
437
438 * fileio.c (Fread_file_name): Doc fix.
439
440 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
441
2bd77330
LT
4422004-08-09 Luc Teirlinck <teirllm@auburn.edu>
443
444 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
445
c90e7e43
LT
4462004-08-08 Luc Teirlinck <teirllm@auburn.edu>
447
448 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 449 Qdisabled_command_hook.
c90e7e43 450 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 451 Qdisabled_command_hook.
c90e7e43
LT
452 (syms_of_keyboard): Ditto.
453
81909a1a
LT
4542004-08-07 Luc Teirlinck <teirllm@auburn.edu>
455
456 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
457 (syms_of_keymap) <key-translation-map>: Doc fixes.
458
0cedd530
SM
4592004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
460
1725a7c9
SM
461 * window.c (window_list_1): YAILOM.
462
0cedd530
SM
463 * fileio.c (make_temp_name): Handle multibyte prefixes.
464
2515a131
LT
4652004-08-06 Luc Teirlinck <teirllm@auburn.edu>
466
467 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
468 Doc fix.
469
c8b20fb7
KH
4702004-08-03 Kenichi Handa <handa@m17n.org>
471
472 * coding.c (decode_coding_string): Adjust coding->consumed, and
473 etc. with shrinked_bytes.
474
fb8b092b
KS
4752004-08-03 Kim F. Storm <storm@cua.dk>
476
477 * indent.c (compute_motion): Fix check for full width window
478 in non-window case. Do not count left truncation glyph on
479 window systems.
480
df133612
LT
4812004-08-02 Luc Teirlinck <teirllm@auburn.edu>
482
483 * data.c (Finteractive_form): Doc fix.
484
0f7a93c1
KS
4852004-08-02 Kim F. Storm <storm@cua.dk>
486
487 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
488 properly accounting for continuation glyph on non-window systems.
489 (Fcompute_motion): Use actual window width if WIDTH is nil, and
490 actual window width/height if TOPOS is nil, properly accounting for
491 continuation glyphs on non-window systems, and optional header lines.
492 (vmotion): Let compute_motion calculate actual window width.
493
494 * window.c (window_scroll_line_based): Let compute_motion
495 calculate actual window width.
496
f491e1ed
KS
4972004-08-02 Kim F. Storm <storm@cua.dk>
498
499 * process.c (read_process_output): Use whole read buffer.
500 Don't trigger adaptive read buffering on errors.
501
83f64226
LT
5022004-07-31 Luc Teirlinck <teirllm@auburn.edu>
503
504 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
505
506 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
507
508 * callint.c (Fcall_interactively): Doc fix.
509
8afc13c6
RS
5102004-07-30 Richard M. Stallman <rms@gnu.org>
511
512 * abbrev.c (Fexpand_abbrev): Undo previous change.
513
7c111482
KS
5142004-07-30 Kim F. Storm <storm@cua.dk>
515
516 * editfns.c (Fformat): Allocate extra (dummy) element in info.
517
ee945d08
LT
5182004-07-28 Luc Teirlinck <teirllm@auburn.edu>
519
520 * eval.c (Fdefvar, Fdefconst): Doc fixes.
521
3f911c94
KS
5222004-07-27 Kim F. Storm <storm@cua.dk>
523
524 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
525 we have ensured that the glyph fits on the current line (or returned
526 MOVE_LINE_CONTINUED otherwise).
527
f29ff8c7
KS
5282004-07-26 Kim F. Storm <storm@cua.dk>
529
530 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
531 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
532 if target position is at end of display line but char is not a newline.
533
81159bb9
RS
5342004-07-25 Richard M. Stallman <rms@gnu.org>
535
ab431b61
RS
536 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
537 instead of ON_VERTICAL_BORDER, when on scroll bar.
538 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
539
540 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
541
f29ff8c7 542 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
543 Take account of FRAME_INTERNAL_BORDER_WIDTH.
544
545 * alloc.c (check_cons_list): New function (contents commented out).
546
fc820cc5
LT
5472004-07-24 Luc Teirlinck <teirllm@auburn.edu>
548
549 * xfaces.c (Fcolor_supported_p): Doc fix.
550
551 * frame.c (Fselect_frame, Fset_frame_selected_window)
552 (Fframe_visible_p, Fraise_frame): Doc fixes.
553
289978b5
LT
5542004-07-24 Richard M. Stallman <rms@gnu.org>
555
7630911d
RS
556 * keyboard.h (not_single_kboard_state): Declared.
557
558 * fileio.c (Fwrite_region): Doc fix.
559
560 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
561
562 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
563 only when a real abbrev is present.
564
289978b5
LT
565 * xfns.c (x_icon_verify): New function.
566 (Fx_create_frame): Use it.
567
63cc10ae
KS
5682004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
569
570 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
571
36f826d4
KS
5722004-07-21 Kim F. Storm <storm@cua.dk>
573
574 * window.h (struct glyph_matrix): New members nrows_scale_factor
575 and ncols_scale_factor.
576
577 * window.c (make_window): Initialize nrows_scale_factor and
578 ncols_scale_factor members.
579
580 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
581 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
582 (required_matrix_height): Apply nrows_scale_factor.
583 (required_matrix_width): Apply ncols_scale_factor.
584
585 * xdisp.c (display_line): Increment nrows_scale_factor and set
586 fonts_changed_p if past last allocated row.
587 (append_glyph, append_composite_glyph, produce_image_glyph)
588 (append_stretch_glyph): Increment ncols_scale_factor and set
589 fonts_changed_p if current area is full.
590
5fc1c546
JD
5912004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
592
593 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
594
cb7516e5
LT
5952004-07-19 Luc Teirlinck <teirllm@auburn.edu>
596
597 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
598 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
599 (Fset_window_start, Fscroll_up, Fscroll_down)
600 (Fother_window_for_scrolling, Fscroll_other_window)
601 (Fsave_window_excursion, Fset_window_vscroll)
602 (syms_of_window) <window-size-fixed>: Doc fixes.
603
dda741ec
JR
6042004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
605
606 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
607 ENCODE_SYSTEM for filenames.
608
bfcf6608
ST
6092004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
610
611 * mac.c (sys_select): Block input around call to
612 ReceiveNextEvent to prevent breakage. Correctly handle
613 blocking on event queue only by calling ReceiveNextEvent
614 instead of select (since GUI events aren't on an fd).
615 (sys_read): Remove function
616 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
617
e082ac9d
ST
6182004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
619
620 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 621 polling instead of 1 sec timeouts (like solaris).
e082ac9d 622
cb7516e5 623 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
624 frame creation.
625
626 * keyboard.c: Undef SIGIO on Carbon
627
628 * atimer.c (alarm_signal_handler): Call alarm handlers after
629 scheduling.
630
631 * eval.c (Feval): Remove quit_char test
632
633 * process.c (wait_reading_process_input): Remove clearing
634 stdin for select call on process input.
635
4b9da0fb
LT
6362004-07-18 Luc Teirlinck <teirllm@auburn.edu>
637
1204e81c
LT
638 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
639 capitalization error in docstring.
4b9da0fb 640
26503ad2
JB
6412004-07-17 Juanma Barranquero <lektu@terra.es>
642
643 * keyboard.c (not_single_kboard_state): Do nothing unless
644 MULTI_KBOARD is defined.
645
3751eb00
RS
6462004-07-17 Richard M. Stallman <rms@gnu.org>
647
648 * window.c (coordinates_in_window): Inside the window but outside
649 its box to the L or R, return ON_VERTICAL_BORDER.
650 (window_list_1): Rotate the list to start with WINDOW.
651
652 * print.c (print_preprocess): Test for print_depth at limit
653 before entering in being_printed.
654
655 * keyboard.c (not_single_kboard_state): New function.
656 (stuff_buffered_input): Now no-op only if no SIGTSTP.
657
658 * frame.c (Fdelete_frame): If we're in single_bboard_state on
659 this kboard, and we delete its last frame, go to any_kboard_state.
660
661 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
662
62eb6ca9
JR
6632004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
664
665 * w32fns.c (Fx_file_dialog): Encode strings in system coding
666 system before passing them to OS functions for display.
667
0f6af254
DK
6682004-07-15 David Kastrup <dak@gnu.org>
669
f9253326
KS
670 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
671 Apparently fixes an abort condition.
0f6af254 672
386c8f42
LT
6732004-07-14 Luc Teirlinck <teirllm@auburn.edu>
674
675 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
676 instead of a cons.
677
366511da
MB
6782004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
679
680 * keyboard.c (echo_dash): Do nothing if there already is a dash
681 at the end of the echo string.
682
f85409d3
KS
6832004-07-12 Kim F. Storm <storm@cua.dk>
684
685 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
686 if GC_MARK_STACK.
687
0ba2e87b
LT
6882004-07-10 Luc Teirlinck <teirllm@auburn.edu>
689
da38045d
LT
690 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
691
0ba2e87b
LT
692 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
693 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
694 (Freplace_buffer_in_windows, Fset_window_buffer)
695 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
696 (syms_of_window): Expand docstring of `display-buffer-function'.
697
5668fbb8
LT
6982004-07-09 Luc Teirlinck <teirllm@auburn.edu>
699
700 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
701 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
702 that time values of the type (HIGH . LOW) are considered obsolete.
703
a085bf9d
LT
7042004-07-06 Luc Teirlinck <teirllm@auburn.edu>
705
669de2fb
LT
706 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
707 docstring.
708
bac66325 709 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 710
8e975df9
JPW
7112004-07-06 John Paul Wallington <jpw@gnu.org>
712
713 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
714
fa164e6a
JPW
715 * fns.c (Fclear_string): Signal an error if STRING is not a string.
716
2bac9bb1
JD
7172004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
718
719 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
720 instead of CGMainDisplayID (only in OSX 10.2 and later).
721
316ef0dc
JPW
7222004-07-04 John Paul Wallington <jpw@gnu.org>
723
724 * fileio.c (read_file_name_completion_ignore_case): New variable.
725 (syms_of_fileio): Declare and initialise it.
726 (Fread_file_name): Bind `completion-ignore-case' to respect it.
727
2a1a35c6
EZ
7282004-07-03 Eli Zaretskii <eliz@gnu.org>
729
730 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
731 for event.x and event.y.
732
33a72331
KH
7332004-07-01 Kenichi Handa <handa@m17n.org>
734
735 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
736 after getting a new string by pre-write-conversion.
737
07a6ab76
SM
7382004-06-30 Stefan <monnier@iro.umontreal.ca>
739
740 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
741 (x_calc_absolute_position): Remove unused var `child'.
742
743 * xfaces.c (x_supports_face_attributes_p)
744 (Fdisplay_supports_face_attributes_p): YAILOM.
745 (tty_supports_face_attributes_p): Remove unused var `i'.
746
747 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
748 back_unibyte_ok.
749
750 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
751
752 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
753
754 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
755
f96ec754
AS
7562004-06-30 Andreas Schwab <schwab@suse.de>
757
758 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
759 (Finit_image_library): Pass LIBRARIES through to
760 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
761 (lookup_image_type): Pass Qnil as second argument to
762 Finit_image_library.
763
764 * lisp.h: Declare Finit_image_library.
765
59feca74 7662004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 767
31983645
AS
768 * macterm.c (do_window_activate, do_window_deactivate): Remove.
769 (XTread_socket): Send mouse button events to the toolbox
770 dispatcher even when the mouse is grabbed. Don't process window
771 activate events for non-Emacs windows. Replace function calls to
772 do_window_activate and do_window_deactivate with their contents.
773 Reset mouse grabbing status when a window is deactivated.
59feca74 774
c61278bb
ST
7752004-06-29 Steven Tamm <steventamm@mac.com>
776
777 * macterm.c (mac_get_emulated_btn)
778 (mac_event_to_emacs_modifiers): Fix emulated mouse button
779 support to correctly mask out modifiers.
780
c3762cbd
DK
7812004-06-29 David Kastrup <dak@gnu.org>
782
783 * search.c (Fset_match_data): Allow buffer before end of list
784 which can happen if set-match-data is using a pre-consed list.
785
c61278bb 7862004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
787
788 * macterm.c (XTread_socket): Correctly set the frame position
789 after the window is moved.
790
74cdfe05
JD
7912004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
792
793 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
794 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
795 (xg_get_image_for_pixmap): Add workaround for monochrome displays
796 so insensitive and activated icons look ok.
74cdfe05 797
ef544dc8
JR
7982004-06-27 Jason Rumney <jasonr@gnu.org>
799
800 * w32fns.c (file_dialog_callback): Disable edit control if set
801 to directories only on CDN_INITDONE message.
802 (Fx_file_dialog): Default to directories only when prompt starts
803 with "Dired".
804
7b7990cc
KS
8052004-06-25 Kim F. Storm <storm@cua.dk>
806
807 * alloc.c (allocate_misc): Update total_free_markers.
808 (free_misc): New function.
809 (safe_alloca_unwind, free_marker): Use it.
810
811 * lisp.h (free_misc): Add prototype.
812
813 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
814
d8c379f8
RS
8152004-06-24 Richard M. Stallman <rms@gnu.org>
816
817 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
818 (syms_of_emacs): Lisp variables deleted.
819
559cdd07
DK
8202004-06-23 David Kastrup <dak@gnu.org>
821
94939b84
DK
822 * search.c (Freplace_match): Adjust the match-data more thoroughly
823 when replacing strings in the buffer.
824 (Fmatch_data): When INTEGERS is non-nil and the last match was in
825 a buffer, add the buffer as last element to the match data.
826 (Fset_match_data): If an additional element of the match-data is a
827 buffer, restore it to last_thing_searched.
c8d09ad8 828 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
829 (restore_match_data): Restore it again.
830
dce417e7
LT
8312004-06-23 Luc Teirlinck <teirllm@auburn.edu>
832
833 * keymap.c (Ftext_char_description): Doc fix.
834 * doc.c (Fsnarf_documentation): Doc fix.
835
ef54b2d0
KS
8362004-06-22 Kim F. Storm <storm@cua.dk>
837
b5bc4d05
KS
838 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
839
ef54b2d0
KS
840 * lisp.h (struct Lisp_Save_Value): New member dogc.
841 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
842 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
843 (SAFE_FREE_LISP): New macro.
844
845 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
846 (make_save_value): Init new dogc member.
847 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
848
849 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
850 SAFE_FREE_LISP macros.
851
3d33d993
KS
8522004-06-22 Kim F. Storm <storm@cua.dk>
853
854 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
855 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
856 in that memory area are unknown to GC. Add comments.
857
858 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
859
5c917f98
KS
8602004-06-21 Kim F. Storm <storm@cua.dk>
861
862 * lisp.h (MAX_ALLOCA): Define here.
863 (safe_alloca_unwind): Add prototype.
864 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
865
866 * alloc.c (safe_alloca_unwind): New function.
867
868 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
869
870 * charset.c (Fstring): Use SAFE_ALLOCA.
871
872 * coding.c (MAX_ALLOCA): Remove define.
873
874 * data.c (MAX_ALLOCA): Remove define.
875 (Faset): Use SAFE_ALLOCA.
876
877 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
878
879 * fns.c (string_make_multibyte, string_to_multibyte)
880 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
881 (MAX_ALLOCA): Remove define.
882 (Fbase64_encode_region, Fbase64_encode_string)
883 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
884 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
885 memory leak if encoding fails.
886
887 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
888
9a09408e
EZ
8892004-06-21 Eli Zaretskii <eliz@gnu.org>
890
891 * print.c (Fwith_output_to_temp_buffer): Doc fix.
892
376de739
RS
8932004-06-20 Richard M. Stallman <rms@gnu.org>
894
895 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
896
897 * search.c (match_limit): Cleaner err msg when no match data available.
898
899 * window.c (syms_of_window): Doc fix.
900
901 * keyboard.c (command_loop_1): Handle values `only' and `identity'
902 for Vtransient_mark_mode.
903
904 * buffer.c (syms_of_buffer): Doc fix.
905
acd81db9
DK
9062004-06-21 David Kastrup <dak@gnu.org>
907
908 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
909 and unbinding of `case-fold-search' according to
910 `completion-ignore-case' around calls of string-match and
911 predicates, respectively. Should give satisfactory performance
912 in all relevant cases.
913
f303762d
JD
9142004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
915
95911c74
JD
916 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
917 clip_x/y_origin.
918
a6cb6b78
JD
919 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
920
f303762d
JD
921 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
922
923 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
924 on Mac OSX.
925
bbdb2684
LT
9262004-06-16 Luc Teirlinck <teirllm@auburn.edu>
927
928 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
929
5ea48b1c
KS
9302004-06-16 Kim F. Storm <storm@cua.dk>
931
932 * dispextern.h (Vimage_types): Remove extern.
933
803aac3e
MB
9342004-06-16 Miles Bader <miles@gnu.org>
935
936 * image.c (lookup_image_type): Initialize image type if necessary.
937
cdc97764
KS
9382004-06-15 Kim F. Storm <storm@cua.dk>
939
c4a5739c
KS
940 * xdisp.c (try_cursor_movement): Exclude header line from scroll
941 margin at top of window.
942 (try_window_reusing_current_matrix): Calculate proper cursor position
943 after scrolling up with non-zero scroll margin, as the old cursor
944 position corresponds to value of PT before executing this command.
945 (try_window_id): Consider scroll margin at bottom of window too;
946 otherwise we fail to scroll when hl-line-mode is enabled.
947
cdc97764
KS
948 * syntax.c (skip_chars): Only recognize [:class:] when it has the
949 proper format and class is a lower-case word.
950
5b166323
JD
9512004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
952
953 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 954 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
955 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
956 xg_get_gdk_pixmap_and_mask.
cdc97764 957
5b166323
JD
958 * xterm.h (struct x_display_info): Typo in comment fixed.
959
1ebd4f78
JB
9602004-06-14 Juanma Barranquero <lektu@terra.es>
961
962 * dispextern.h (Vimage_types): Make it conditional on
963 HAVE_WINDOW_SYSTEM.
964
965 * image.c (Vimage_types): Move from xdisp.c.
966 (Vimage_type_cache): New variable.
967 (define_image_type): New argument indicating whether an image
968 library was loaded; cache loaded status and return t on success,
969 nil otherwise.
970 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
971 (w32_delayed_load): New function to load an image library from a
972 list of possible filenames.
973 (init_xpm_functions, init_png_functions, init_jpeg_functions)
974 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 975 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
976 (Finit_image_library): New function, extracted from `init_image'.
977 Try to initialize an image library on demand and cache whether we
978 were successful or not.
979 (syms_of_image): Initialize `Vimage_types' and
980 `Vimage_type_cache'. Add recognized image types to Vimage_types.
981 Export `init-image-library'.
982 (init_image): Remove initialization of all image types, except xbm
983 and pbm.
984
985 * xdisp.c (Vimage_types): Delete (moved to image.c).
986
904ee128
AS
9872004-06-14 Andreas Schwab <schwab@suse.de>
988
989 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
990 Avoid calling specbind when completion-regexp-list is empty.
991
092de21d
RS
9922004-06-13 Richard M. Stallman <rms@gnu.org>
993
994 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
995 (re_wctype, re_iswctype, re_wctype_to_bit):
996 Non-function definitions moved here from regex.c.
1ebd4f78 997
092de21d
RS
998 * regex.c (re_wctype, re_iswctype): Function defs longer static.
999 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1000 (re_wctype, re_iswctype, re_wctype_to_bit):
1001 Non-function definitions moved to regex.h.
1002
1003 * window.c (Fselect_window): Doc fix.
1004
1005 * syntax.c: Include regex.h.
1006 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
1007 If requested, make a list of classes, then check the scanned
1008 chars for membership in them.
1009 (in_classes): New function.
1010 Doc fix.
1011
1012 * keyboard.c (cmd_error): Don't call any_kboard_state
1013 if inside a recursive edit level.
1014
10152004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
1016
1017 * keyboard.c (command_loop): Call any_kboard_state before
1018 command_loop_2 when at top level.
1019
3ebc0939
AS
10202004-06-13 Andreas Schwab <schwab@suse.de>
1021
cea5d0d4
AS
1022 * print.c (print_object): Always use %ld for printing EMACS_INT.
1023
1024 * keyboard.c (cancel_hourglass_unwind): Return a value.
1025 (modify_event_symbol): Always use %ld for printing EMACS_INT.
1026 (Fexecute_extended_command): Likewise.
1027
1028 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
1029 avoid clashes.
1030 (SYNTAX): Likewise.
1031 (SYNTAX_WITH_FLAGS): Likewise.
1032 (SYNTAX_MATCH): Likewise.
1033
1034 * syntax.c (char_quoted): Avoid warning about undefined operation.
1035 (find_defun_start): Likewise.
1036 (scan_lists): Likewise.
1037 (INC_FROM): Likewise.
1038 (scan_sexps_forward): Likewise.
1039
be8c4ce4
AS
1040 * image.c: Include <ctype.h>.
1041
3ebc0939
AS
1042 * xfaces.c (face_attr_equal_p): Declare parameters.
1043
6fb41b5b
KH
10442004-06-13 Kenichi Handa <handa@m17n.org>
1045
1046 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
1047
fc3095ce
EZ
10482004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
1049
1050 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
1051
66189a40
KH
10522004-06-12 Kenichi Handa <handa@m17n.org>
1053
1054 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
1055 ccl_prog_stack_struct and update it.
1056 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
1057 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
1058 ccl->eof_ic on EOF.
1059 (ccl_debug_hook): New function.
1060 (struct ccl_prog_stack): New member eof_ic.
1061 (ccl_driver): Handle EOF in subrountine call correctly.
1062
10632004-06-11 Kenichi Handa <handa@m17n.org>
1064
1065 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
1066
1da71023
KS
10672004-06-11 Kim F. Storm <storm@cua.dk>
1068
1069 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
1070
e9efcef4
JB
10712004-06-11 Juanma Barranquero <lektu@terra.es>
1072
1073 * keyboard.c (Fposn_at_point): Doc fix.
1074
9b9ceb61
DK
10752004-06-11 David Kastrup <dak@gnu.org>
1076
1077 * search.c (match_limit): Don't flag an error if match-data
1078 exceeding the allocated search_regs.num_regs gets requested, just
1079 return Qnil.
1080
6e87ac8f
MB
10812004-06-08 Miles Bader <miles@gnu.org>
1082
1083 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
1084
0b0dea7b
JB
10852004-06-07 Juanma Barranquero <lektu@terra.es>
1086
1087 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
1088 (Fcurrent_time_string, Fcurrent_time_zone)
1089 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
1090
a0a23346
MB
10912004-06-07 Miles Bader <miles@gnu.org>
1092
08384afd 1093 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
1094 (push_named_merge_point): New function.
1095 (merge_named_face): New function.
1096 (merge_face_ref, face_at_buffer_position, face_at_string_position):
1097 Use `merge_named_face'.
1098 (merge_face_inheritance): Function removed.
c8d09ad8 1099 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
1100 Add new `err_msgs' and `named_merge_points' args. Return error
1101 status. Only print error messages if ERR_MSGS is true. Don't try to
1102 do :inherit attribute validation.
1103 (merge_face_heights): Handle `unspecified' in both directions.
1104 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
1105 Call `merge_face_ref' instead of `merge_face_inheritance'.
1106 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
1107 (compute_char_face, face_at_buffer_position)
1108 (face_at_string_position): Call `merge_face_ref' instead of
1109 `merge_face_vector_with_property'.
1110
12d5b185
KH
11112004-06-07 Kenichi Handa <handa@m17n.org>
1112
1113 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
1114 the necessary places.
1115
2e2d7ee6
KS
11162004-06-07 Kim F. Storm <storm@cua.dk>
1117
1118 * process.c (Fdelete_process): Undo 2004-05-28 change.
1119 Instead, call status_notify also for network process.
1120 (status_message): Use process instead of status as arg.
1121 Give messages "deleted" or "connection broken by remote peer" for
1122 an exited network process.
1123 (status_notify): Change call to status_message.
1124 (read_process_output): Increase readmax to 4096. Do not increase
1125 buffer size for datagram channels (default is now large enough).
1126
fcf0d299
ST
11272004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1128
1129 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
1130 problem due to newly defined variable.
1131
0722292b
MB
11322004-06-06 Miles Bader <miles@gnu.org>
1133
1134 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
1135 immediately if non-interactive or not initialized.
1136
ddfb8369
RS
11372004-06-05 Richard M. Stallman <rms@gnu.org>
1138
1139 * minibuf.c (Fcompleting_read): Doc fix.
1140
57015754
AS
11412004-06-05 Andreas Schwab <schwab@suse.de>
1142
1143 * macfns.c (x_create_tip_frame): Fix declaration after statement.
1144
23715ea6
JB
11452004-06-05 Juanma Barranquero <lektu@terra.es>
1146
1147 * keymap.c (Fdescribe_vector): Fix docstring.
1148 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
1149
8e330b22
MB
11502004-06-05 Miles Bader <miles@gnu.org>
1151
1152 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
1153 attributes have different values than the default face.
1154
9742a3a6
EZ
11552004-06-04 Eli Zaretskii <eliz@gnu.org>
1156
1157 * xfaces.c (x_supports_face_attributes_p): Make this function
1158 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
1159 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
1160 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 1161
9717e36c
MB
11622004-06-04 Miles Bader <miles@gnu.org>
1163
1164 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
1165 from Ftty_supports_face_attributes_p.
1166 (x_supports_face_attributes_p): New function.
1167 (Ftty_supports_face_attributes_p): Function deleted.
1168 (Fdisplay_supports_face_attributes_p): New function.
1169 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 1170 (face_attr_equal_p): New function.
9717e36c
MB
1171 (lface_equal_p): Use it.
1172
52deb19f
JB
11732004-06-03 Juanma Barranquero <lektu@terra.es>
1174
1175 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
1176 (Vw32_color_map): Fix typo in docstring.
1177 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
1178 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
1179 Make argument names match their use in docstring.
1180
86d373e6
JB
11812004-06-02 Juanma Barranquero <lektu@terra.es>
1182
1183 Work around bugs/problems with MinGW builds of graphics libraries
1184 called from MSVC builds of Emacs.
1185
1186 * image.c (lookup_image): Make pointer to img static.
1187 (png_read_from_memory): Disable "global" optimization.
1188
2fb0ce67
SM
11892004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1190
c8d09ad8
SM
1191 * eval.c (Fcondition_case): Fix usage. Simplify.
1192
2fb0ce67
SM
1193 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
1194
50bf7673
ST
11952004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1196
1197 * macfns.c: Don't include ccl.h.
1198 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
1199 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
1200 TextUtils.h.
c8d09ad8 1201 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
1202 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
1203 display height/width.
1204 (compute_tip_xy, Vx_max_tooltip_size): Declare.
1205 (unwind_create_tip_frame, compute_tip_xy): New functions.
1206 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
1207 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
1208 and last_show_tip_args.
2fb0ce67 1209
50bf7673
ST
1210 * macgui.h [!MAC_OSX]: Include Gestalt.h.
1211 (Cursor, No_Cursor): New defines.
c8d09ad8 1212 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
1213 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
1214
1215 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
1216
1217 * macterm.c: Don't include Gestalt.h.
1218 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
1219 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
1220 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
1221 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
1222 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
1223 (construct_mouse_click, XTmouse_position)
1224 (x_scroll_bar_report_motion, x_calc_absolute_position)
1225 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
1226 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
1227 (note_mouse_movement): Clear the mouse face and reset the pointer
1228 shape when the pointer goes outside the frame without grabbing.
1229 (mac_front_window): New function.
1230 (mac_window_to_frame): New macro.
1231 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
1232 (do_window_activate, do_window_deactivate, do_app_resume)
1233 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
1234 (do_zoom_window, mac_do_receive_drag, XTread_socket)
1235 (mac_check_for_quit_char): Use mac_front_window and/or
1236 mac_window_to_frame.
1237 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
1238 scroll-bar click event.
1239 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 1240 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 1241 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 1242 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
1243 (do_window_update): Don't do anything if the updated window is the
1244 tooltip window.
1245 (do_mouse_moved): Handle mouse movement events here (previously in
1246 XTread_socket). Clear the mouse face if
1247 dpyinfo->mouse_face_hidden is set.
1248 (do_os_event, do_events): Remove (now in XTread_socket).
1249 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
1250 Loop until all the events in the queue are processed.
1251 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
1252 contents of do_os_event and do_events. Remove mouse movement
1253 handling (now in do_mouse_moved). Add the case where
1254 Vmouse_highlight has an integer value.
1255 (NewMacWindow): Remove.
1256 (make_mac_frame): Do what NewMacWindow previously did. Don't do
1257 excess initializations.
1258 (make_mac_terminal_frame): Previous initializations in
1259 make_mac_frame are moved here.
c8d09ad8
SM
1260 (mac_initialize_display_info):
1261 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
1262
1263 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
1264 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
1265
08fd1251
RS
12662004-05-29 Richard M. Stallman <rms@gnu.org>
1267
1268 * lisp.h (truncate_undo_list): Update decl.
1269
1270 * alloc.c (undo_outer_limit): New variable.
1271 (syms_of_alloc): Defvar it.
1272 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
1273
1274 * undo.c (truncate_undo_list): New arg LIMITSIZE.
1275
1276 * alloc.c (lisp_align_malloc): Check for base == 0
1277 regardless of HAVE_POSIX_MEMALIGN.
1278 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
1279
227ef0ff
SM
12802004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
1283 (marker_blocks_pending_free): Remove.
1284 (Fgarbage_collect): Sweep after cleaning up undo-lists.
1285 Mark the undo lists after claning them up.
1286 Don't free block in marker_blocks_pending_free.
1287 (mark_buffer): Don't mark undo_list.
1288 (gc_sweep): Sweep hash-tables and strings first.
1289 Do free marker blocks that are empty.
1290
034a6113
SM
12912004-05-28 Jim Blandy <jimb@redhat.com>
1292
1293 * regex.c (print_partial_compiled_pattern): Add missing 'break'
1294 after 'case wordend'. For symbeg and symend, print to stderr,
1295 like the other cases.
1296
33594a8d
NF
12972004-05-28 Noah Friedman <friedman@splode.com>
1298
1299 * process.c (Fdelete_process): Do not call remove_process.
1300
ce50a847
SM
13012004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1302
1303 * alloc.c (struct backtrace): Remove.
1304 (Fgarbage_collect): Use the new mark_backtrace.
1305
1306 * eval.c (mark_backtrace): New function.
1307
1308 * minibuf.c (run_exit_minibuf_hook): New function.
1309 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
1310 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
1311
1e8dae36
KS
13122004-05-27 Kim F. Storm <storm@cua.dk>
1313
1314 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
1315 over display properties, e.g. images, that replace buffer text.
1316
846faa3b
KS
13172004-05-25 Kim F. Storm <storm@cua.dk>
1318
1319 * alloc.c (marker_blocks_pending_free): New var.
1320 (gc_sweep): Store free marker blocks on that list.
1321 (Fgarbage_collect): Free them after undo-list cleanup.
1322
1323 * process.c (wait_reading_process_input): Check connect_wait_mask
1324 before actually accepting connection in case it has already been
1325 accepted due to recursion.
1326
6239a668
KH
13272004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
1328
ce50a847
SM
1329 * coding.c (Fset_safe_terminal_coding_system_internal):
1330 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 1331
71d5a208
RS
13322004-05-22 Richard M. Stallman <rms@gnu.org>
1333
1334 * alloc.c (Fmake_string): Doc fix.
1335
1336 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
1337 and the alist pairs too.
1338
1339 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
1340
1341 * emacs.c (main): Update copyright year.
1342
1343 * fileio.c (Fread_file_name): Expand DIR if not absolute.
1344
1345 * insdel.c (del_range_2, replace_range): Don't write an anchor
1346 if the gap is empty.
1347
1348 * xdisp.c (try_scrolling): If scroll-up-aggressively or
1349 scroll-down-aggressively is small but positive, put point
1350 near the screen edge.
1351
f63fd14e
JB
13522004-05-22 Juanma Barranquero <lektu@terra.es>
1353
1354 * keymap.c (Fdefine_key): Doc fix.
1355
4d12067c
KS
13562004-05-22 Kim F. Storm <storm@cua.dk>
1357
1358 * alloc.c (struct backtrace): Add debug_on_exit member.
1359 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
1360 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
1361 the removed cons cells.
1362 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
1363 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
1364 any cons cells pointing to unallocated stings.
1365 Do not lisp_free any marker blocks, as there may still be pointers
1366 to them from buffer undo lists at this stage of GC.
1367
1368 * keyboard.c (struct backtrace): Add debug_on_exit member.
1369 (Fcommand_execute): Clear it.
1370
931285e2
LT
13712004-05-20 Luc Teirlinck <teirllm@auburn.edu>
1372
1373 * intervals.c (lookup_char_property): Do not prematurely return nil.
1374
669fa600
SM
13752004-05-19 Jim Blandy <jimb@redhat.com>
1376
1377 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 1378 beginning and end of symbols.
4d12067c 1379
669fa600
SM
1380 * regex.c (enum syntaxcode): Add Ssymbol.
1381 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
1382 (re_opcode_t): New opcodes `symbeg' and `symend'.
1383 (print_partial_compiled_pattern): Print the new opcodes properly.
1384 (regex_compile): Parse the new operators.
ce50a847 1385 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
1386 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
1387 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
1388 (re_match_2_internal): Match symbeg and symend.
1389
1390 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
1391
0d8c2e5c
KS
13922004-05-19 Kim F. Storm <storm@cua.dk>
1393
1394 * .gdbinit (xsymbol): Fix last change.
1395
669fa600
SM
13962004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
1397
1398 * .gdbinit (xprintstr): New fun.
1399 (xstring, xprintsym): Use it.
1400
1401 * w32proc.c (create_child): Use INTMASK.
1402
1403 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1404 unmarked elements of the undo list.
1405
9a6a4c40
DP
14062004-05-18 David Ponce <david@dponce.com>
1407
1408 * print.c (print): Reset print_depth before to call print_object.
1409
f3c4ec74
JR
14102004-05-18 Jason Rumney <jasonr@gnu.org>
1411
1412 * w32console.c: Prefix RIF functions with w32con_ to avoid
1413 namespace clash with functions in term.c and w32term.c.
1414
1415 * w32menu.c (add_menu_item, w32_menu_display_help)
1416 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
1417
0d8c2e5c 1418 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 1419
6be49c3a
EZ
14202004-05-18 Eli Zaretskii <eliz@gnu.org>
1421
4d0b9a0a
EZ
1422 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
1423
6be49c3a
EZ
1424 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
1425 with make_number.
1426 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
1427 with XINT.
1428
0bc90bba
KS
14292004-05-18 Kim F. Storm <storm@cua.dk>
1430
89d19988
KS
1431 * blockinput.h (INPUT_BLOCKED_P): New macros.
1432
1433 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
1434 (Ftop_level): Unblock input if blocked.
1435
0bc90bba
KS
1436 * buffer.h (GET_OVERLAYS_AT): New macro.
1437 * msdos.c (IT_note_mouse_highlight): Use it.
1438 * textprop.c (get_char_property_and_overlay): Use it.
1439 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
1440 * xfaces.c (face_at_buffer_position): Use it.
1441
1442 * print.c (print_object): Increase buf size.
1443
653bd0f6
JR
14442004-05-17 Jason Rumney <jasonr@gnu.org>
1445
1446 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1447 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1448 Lisp_Object using i member.
1449 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1450 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1451 consistently.
1452
1453 * w32proc.c (create_child): Use make_number instead of masking pid.
1454
1455 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1456 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1457 Use EQ to compare Lisp_Objects.
1458 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1459
1460 * w32term.c (w32_num_mouse_buttons): Rename from
1461 Vw32_num_mouse_buttons and make it an int.
1462
1463 * w32.c (init_environment): Use it.
1464
1465 * w32fns.c (w32_wnd_proc): Likewise.
1466
1467 * w32proc.c (w32_pipe_read_delay): Rename from
1468 Vw32_pipe_read_delay and make it an int.
1469
1470 * w32.c (_sys_read_ahead): Use it.
1471
1472 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1473
1474 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1475
1476 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1477 (key_event): Don't mix Lisp_Object and int.
1478
1479 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1480
1481 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1482 modifiers in language change event.
1483
54b53ba7
KS
14842004-05-17 Kim F. Storm <storm@cua.dk>
1485
1486 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1487 Such objects may be freed markers which still exist on an undo list.
1488
6e86a75d
JB
14892004-05-16 Juanma Barranquero <lektu@terra.es>
1490
1491 * data.c (Fset_default): Make argument names match their use in
1492 docstring.
1493
fc80da24
AS
14942004-05-15 Andreas Schwab <schwab@suse.de>
1495
1496 * emacs.c (gdb_array_mark_flag): Define.
1497 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1498
c1380aa6
EZ
14992004-05-15 Eli Zaretskii <eliz@gnu.org>
1500
1501 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1502 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1503 defined for the MS-DOS build.
1504
89458937
SM
15052004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1506
1507 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1508
08020f9a
KH
15092004-05-14 Kenichi Handa <handa@m17n.org>
1510
1511 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1512
a433994a
ST
15132004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1514
1515 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1516 section to frame.c section.
1517 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1518 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1519
a433994a 1520 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1521
a433994a 1522 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1523
a433994a
ST
1524 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1525 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1526 (XTread_socket): Fix int/Lisp_Object mixup.
1527 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1528
a433994a
ST
1529 * macterm.h (struct frame, struct face, struct image)
1530 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1531 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1532 Add prototypes.
a433994a 1533
b51a51b9
KS
15342004-05-14 Kim F. Storm <storm@cua.dk>
1535
1536 * process.c (wait_reading_process_input): Make reentrant.
1537 Make Available and Connecting non-static. Save and restore value
1538 of waiting_for_user_input_p.
1539
2bde1dd8
KS
15402004-05-13 Kim F. Storm <storm@cua.dk>
1541
1542 * keyboard.c (mark_kboards): Don't mark x and y members
1543 that are overloaded in selection request events.
1544
a267ab4d
SM
15452004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1546
1547 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1548
eb15ce9e
GM
15492004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1550
1551 * window.c (Fdisplay_buffer, Fsplit_window)
1552 (split-height-threshold): Doc fix.
1553
7fc92635
JB
15542004-05-13 Juanma Barranquero <lektu@terra.es>
1555
1556 * xfaces.c (Ftty_supports_face_attributes_p)
1557 (Finternal_copy_lisp_face): Fix typo in docstring.
1558 (Finternal_get_lisp_face_attribute): Fix docstring.
1559
1ec2a572
JD
15602004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1561
1562 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1563
ae9292e0
ST
15642004-05-11 Steven Tamm <steventamm@mac.com>
1565
1566 * macfns.c (Fx_create_frame): Default to using tool-bar by
1567 setting tool-bar-lines to 1 in default-frame-alist.
1568
15692004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1570
1571 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1572 (xpm_get_color_table_v, xpm_make_color_table_h)
1573 (xpm_put_color_table_h, xpm_get_color_table_h)
1574 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1575 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1576 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1577
fe97e8df
ST
15782004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1579
a267ab4d 1580 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1581 instead of FRAME_X_P
1582
b47e779e
KS
15832004-05-11 Kim F. Storm <storm@cua.dk>
1584
1585 * process.c (read_process_output): Grow decoding_buf when needed;
1586 this could cause a crash in allocate_string and compact_small_strings.
1587
cdc9b845
EZ
15882004-04-29 Jim Blandy <jimb@redhat.com>
1589
1590 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1591 against proper opcode.
1592
aa7094ba
JB
15932004-05-10 Juanma Barranquero <lektu@terra.es>
1594
1595 * process.c (Fstart_process): Fix docstring.
1596
1597 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1598 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1599 (Fsplit_char, Fchar_charset): Make argument names match their use
1600 in docstring.
1601
e109331a
RS
16022004-05-10 Richard M. Stallman <rms@gnu.org>
1603
1604 * print.c (print_preprocess): Use being_printed, loop_count and
1605 halftail to detect overdeep nesting and cyclic cdr chains.
1606
9a28b921
AS
16072004-05-10 Andreas Schwab <schwab@suse.de>
1608
1609 * lisp.h: Declare Fmake_symbolic_link.
1610
1611 * fileio.c (Frename_file): Remove extra argument in call to
1612 Fmake_symbolic_link.
1613
e2c02c1a
KS
16142004-05-10 Kim F. Storm <storm@cua.dk>
1615
1616 * xdisp.c (calc_line_height_property): Use string position when
1617 object is a string.
1618
cfe9d13e
KH
16192004-05-10 Kenichi Handa <handa@m17n.org>
1620
a57e8159
KH
1621 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1622 inhibit-modification-hooks to t temporarily before calling
1623 Ferase_buffer.
1624
1625 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1626 inhibit-modification-hooks to t temporarily before calling
1627 Ferase_buffer.
1628
1629 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1630 inhibit-modification-hooks to t temporarily before calling
1631 Ferase_buffer.
1632
cfe9d13e
KH
1633 * fns.c (count_combining): Delete it.
1634 (concat): Don't check combining bytes.
1635
ceb96489
JR
16362004-05-09 Jason Rumney <jasonr@gnu.org>
1637
1638 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1639 (globals_of_w32fns): Set it.
1640
b1c661c7
JB
16412004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1642
1643 * data.c (Fquo): Simplify.
1644
28712a21
JB
16452004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1646
1647 * data.c (Fquo): If any argument is float, do the computation in
1648 floating point.
1649
0f0af7a8
JB
16502004-05-08 Juanma Barranquero <lektu@terra.es>
1651
88214ef6
JB
1652 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1653 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1654 Fix spelling of Emacs on docstring.
1655 (Fset_process_coding_system, Fprocess_coding_system)
1656 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1657 Make argument names match their use in docstring.
1658 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1659 Fix docstring.
1660
0f0af7a8
JB
1661 * editfns.c (Finsert_buffer_substring): Make argument names match their
1662 use in docstring.
1663
1664 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1665
2a316a84
ST
16662004-05-07 Steven Tamm <steventamm@mac.com>
1667
1668 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1669 around call to ReceiveEvent to avoid certain crashes.
1670
16712004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 1672
2a316a84
ST
1673 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1674 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1675 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1676 Save/restore the current graphics port and device handle when
1677 drawing into an offscreen graphics world.
1678
1679 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1680 (gif_load): Likewise.
1681
ab80314b
JB
16822004-05-07 Juanma Barranquero <lektu@terra.es>
1683
1684 * window.c (Fset_window_buffer): Fix docstring.
1685
70646bb5
TTN
16862004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1687
1688 * emacs.c (main) [VMS]: Fix var ref.
1689
b03a4fdd
JB
16902004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1691
1692 * data.c (Fsetq_default): Fix docstring.
1693
279d3293
JR
16942004-05-06 Jason Rumney <jasonr@gnu.org>
1695
1696 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1697 to avoid name clash.
1698
f72b5416
JD
16992004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1700
1701 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1702 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 1703 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 1704
6ab66799
KS
17052004-05-04 Kim F. Storm <storm@cua.dk>
1706
1707 * xdisp.c (Qtotal): New var.
1708 (syms_of_xdisp): Intern and staticpro it.
1709 (calc_line_height_property): New arg total. Set it if
1710 line-spacing property has format (total . VALUE).
1711 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1712 Handle total line-spacing property.
1713
ab2d724b
JD
17142004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1715
1716 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1717 "under" scroll bar when size/position changes.
1718
238add5e
JR
17192004-05-03 Jason Rumney <jasonr@gnu.org>
1720
1721 * makefile.nt: Remove.
1722
1644f4e4
EZ
17232004-05-02 Eli Zaretskii <eliz@gnu.org>
1724
a267ab4d
SM
1725 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1726 Avoid compiler warnings.
05fdbeb8 1727
1644f4e4
EZ
1728 * Makefile.in (region-cache.o): Depend on config.h.
1729
6cbc951e
SM
17302004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1731
1732 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1733 with continuation lines, too.
1734
2b98b088
TTN
17352004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1736
1737 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1738
d9bf7950
SM
17392004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * xdisp.c (calc_line_height_property): YAILOM (yet another
1742 int/Lisp_Object mixup).
1743
affa509c
EZ
17442004-05-01 Eli Zaretskii <eliz@gnu.org>
1745
1746 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1747 undo bad effect of pack(4) in some versions of system headers.
1748
07c07cfe
JR
17492004-05-01 Jason Rumney <jasonr@gnu.org>
1750
1751 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1752
e71caa4e
KS
17532004-04-30 Kim F. Storm <storm@cua.dk>
1754
1755 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 1756 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
1757
1758 * dispextern.h (struct it): Remove member use_default_face.
1759 Add members override_ascent, override_descent, override_boff.
1760
1761 * xdisp.c (init_iterator): Handle line-spacing float value.
1762 Initialize override_ascent member.
1763 (append_space_for_newline): Reset override_ascent.
1764 Remove use_default_face.
1765 (calc_line_height_property): New function to calculate value of
1766 line-height and line-spacing properties. Look at overlays, too.
1767 Set override_ascent, override_descent, override_boff members when
1768 using another face than the current face. Float values are now
1769 relative to the frame default font, by default; accept a cons
1770 of ratio and face name to specify value relative to a specific face.
1771 (x_produce_glyphs): Use calc_line_height_property.
1772 Use override_ascent etc. when set to handle different face heights.
1773 A negative line-spacing property value is interpreted as a total
1774 line height, rather than inter-line spacing.
1775 (note_mouse_highlight): Allocate room for 40 overlays initially.
1776
0fddae66
SM
17772004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1778
1779 * data.c (Fsubr_name): New fun.
1780 (syms_of_data): Defsubr it.
1781
712d23dc
KS
17822004-04-29 Kim F. Storm <storm@cua.dk>
1783
1784 * xdisp.c (null_glyph_slice): New var.
1785 (append_glyph, append_composite_glyph, append_stretch_glyph):
1786 Use it to initialize glyph slice.
1787
033ad8c6
SM
17882004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1789
1790 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1791 (on_hot_spot_p): Make sure we always return a value.
1792 (Flookup_image_map): Remove unused var ix and iy.
1793 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1794
93397360
EZ
17952004-04-27 Eli Zaretskii <eliz@gnu.org>
1796
1797 * msdos.c (init_environment): If one of the TMP... environment
1798 variables is set to a drive letter without a trailing slash,
1799 append a slash.
1800
0c54865e
EZ
18012004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1802
1803 * editfns.c (lisp_time_argument): Provide externally.
1804
1805 * fileio.c (Fset_file_times): New function.
1806 (syms_of_fileio): Intern and staticpro it.
1807
d3b111bd
KS
18082004-04-27 Kim F. Storm <storm@cua.dk>
1809
07dc1231
KS
1810 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
1811 header line strings.
1812
360fe9d2
KS
1813 * dispextern.h (struct it): New member use_default_face.
1814
d3b111bd
KS
1815 * xdisp.c (Qline_height): New variable.
1816 (syms_of_xdisp): Intern and staticpro it.
1817 (append_space_for_newline): Partially undo 2004-04-25 change;
1818 add default_face_p arg, and restore callers.
1819 Clear it->use_default_face after use.
1820 (x_produce_glyphs): Set default font for ascii char if
1821 it->use_default_font is set. Change line-spacing property to set
1822 just extra line spacing. Handle new line-height property.
1823
0448588b
AS
18242004-04-26 Andreas Schwab <schwab@suse.de>
1825
1826 * print.c (print_object): Print non-ascii characters in bool
1827 vector representation as octal escapes.
1828
1829 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
1830 * print.c (print_object): Use it instead of BITS_PER_CHAR for
1831 bool vectors.
1832 * lread.c (read1): Likewise.
1833 * alloc.c (Fmake_bool_vector): Likewise.
1834 * data.c (Faref, Faset): Likewise.
1835 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
1836 (mapcar1): Likewise.
d3b111bd 1837
536d6baa
ST
18382004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1839
1840 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
1841
ae11577a
MB
18422004-04-26 Miles Bader <miles@gnu.org>
1843
1844 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
1845
e198ba87
JB
18462004-04-26 Juanma Barranquero <lektu@terra.es>
1847
1848 * buffer.c (Fpop_to_buffer): Fix docstring.
1849
f3d5f92d 18502004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 1851
f3d5f92d
ST
1852 * lread.c (init_lread): Don't display missing lisp directory
1853 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 1854 may be built without correct installation path.
f3d5f92d 1855
03e35edc
KS
18562004-04-25 Kim F. Storm <storm@cua.dk>
1857
9ff3aa31
KS
1858 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1859
1860 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1861
03e35edc
KS
1862 * xdisp.c (append_space_for_newline): Rename from append_space.
1863 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1864 (x_produce_glyphs): Handle line-spacing property on newline char.
1865 If value is t, adjust ascent and descent to fit current row height.
1866 If value is an integer or float, set extra_line_spacing to integer
1867 value, or to float value x current line height.
1868
f24814e0
KH
18692004-04-23 Kenichi Handa <handa@m17n.org>
1870
1871 * fontset.c (Finternal_char_font): If POSITION is nil, return
1872 font for displaying CH with the default face.
1873
d814862a
JB
18742004-04-23 Juanma Barranquero <lektu@terra.es>
1875
1876 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1877
063a45c5
SM
18782004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1879
1880 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1881 Don't make assumptions about the relative place of i and val.
1882 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1883
ae7ab2d3
KS
18842004-04-21 Kim F. Storm <storm@cua.dk>
1885
1886 * dispextern.h (struct glyph_slice): New struct.
1887 (struct glyph): New member slice.
1888 (GLYPH_SLICE_EQUAL_P): New macro.
1889 (GLYPH_EQUAL_P): Use it.
1890 (struct glyph_string): New member slice.
1891 (struct it_slice): New struct.
1892 (struct it): New member slice, add member to stack too.
1893 New member constrain_row_ascent_descent_p.
1894 (image_ascent): Add prototype.
1895
1896 * dispnew.c (buffer_posn_from_coords): Return full image width
1897 and height even for image slices (posn is relative to full image).
1898 (marginal_area_string): Adjust x0,y0 for image slice.
1899
1900 * image.c (image_ascent): Add slice arg; calculate ascent for
1901 image slice (or full image).
1902
1903 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1904 (syms_of_keyboard): Defsubr them.
1905
1906 * lisp.h (pos_visible_p): Fix prototype.
1907
c62aec78 1908 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
1909 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1910 (x_draw_image_foreground, x_draw_image_relief)
1911 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1912 Draw sliced images.
1913
1914 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1915 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1916 (x_draw_image_foreground, x_draw_image_relief)
1917 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1918 Draw sliced images.
1919
1920 * w32term.h (image_ascent): Remove prototype.
1921
1922 * window.c (Fpos_visible_in_window_p): Return pixel position if
1923 PARTIALLY arg is non-nil. Simplify. Doc fix.
1924 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1925 to return/set vscroll in pixels.
1926
1927 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1928
1929 * xdisp.c (Qslice): New variable.
1930 (syms_of_xdisp): Intern and staticpro it.
1931 (pos_visible_p): Return pixel position in new x and y args.
1932 (init_iterator): Reset it->slice info.
1933 (handle_display_prop): Parse (slice ...) property.
1934 (push_it, pop_it): Save/restore slice info.
1935 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1936 force repositioning of tall row if window is vscrolled, as that
1937 would reset vscroll.
1938 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1939 increasing row height if row is non-empty.
1940 (fill_image_glyph_string): Copy slice info.
1941 (take_vertical_position_into_account): Simplify.
1942 (produce_image_glyph): Handle iterator slice info, setup glyph
1943 slice info. Do not force minimum line height.
1944 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1945 do not increase height (ascent/descent) of non-empty row when
1946 adding normal character glyph; instead reduce glyph ascent/descent
1947 appropriately; if row is higher than current glyph, adjust glyph
1948 descent/ascent to reposition glyph within the existing row.
1949 Likewise, when char is newline, only set ascent/descent if row is
1950 currently empty.
1951 (note_mouse_highlight): Handle hotspots with sliced image.
1952
1953 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1954 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1955 (x_draw_image_foreground, x_draw_image_relief)
1956 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1957 Draw sliced images.
1958
1959 * xterm.h (image_ascent): Remove prototype.
1960
d58f8753
SM
19612004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1962
1963 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1964
4ce2719d
JPW
19652004-04-20 John Paul Wallington <jpw@gnu.org>
1966
1967 * fns.c (Fassoc, Feql): Fix indentation.
1968
d58f8753 1969 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 1970
95f8c3b9
JPW
19712004-04-19 John Paul Wallington <jpw@gnu.org>
1972
1973 * fns.c (Feql): New function.
d58f8753 1974 (syms_of_fns): Defsubr it.
95f8c3b9 1975
b7e85537
JR
19762004-04-18 Jason Rumney <jasonr@gnu.org>
1977
1978 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1979 after closing the clipboard.
1980
5a72efd4
LT
19812004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1982
1983 * buffer.c (Fbuffer_base_buffer): Doc fix.
1984
20dc8583
KS
19852004-04-17 Kim F. Storm <storm@cua.dk>
1986
60962ec4
KS
1987 * keymap.c (Fkey_description): Add optional PREFIX arg.
1988 Combine prefix with KEYS to make up the full key sequence to describe.
1989 Correlate meta_prefix_char and following (simple) key to describe
1990 as meta modifier. All callers changed.
1991 (describe_map): Rename arg `keys' to `prefix'. Remove local
1992 `elt_prefix' var. Use Fkey_description with prefix instead of
1993 elt_prefix combined with Fsingle_key_description.
1994 (describe_vector): Declare static. Replace arg `elt_prefix' with
1995 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1996 if !KEYMAP_P. Use Fkey_description with prefix instead of
1997 Fsingle_key_description.
1998
1999 * keymap.h (Fkey_description): Fix prototype.
2000 (describe_vector): Remove prototype.
2001
409368b9
KS
2002 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
2003
20dc8583
KS
2004 * image.c (PNG_BG_COLOR_SHIFT): Remove.
2005 (png_load): Fix calculation of transparent background color on X
2006 and W32 platforms.
2007
75c5501b
JB
20082004-04-16 Juanma Barranquero <lektu@terra.es>
2009
2010 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
2011 not too large before computing how much to scroll.
2012
da879ae8
SM
20132004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2014
2015 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
2016
d01ca4a8
LT
20172004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2018
2019 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
2020 Add hyperlink to Elisp manual to the docstring.
2021
572943b3
SM
20222004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
2023
2024 * callint.c (fix_command): Use XDCR.
2025
5e30a0fb
NR
20262004-04-14 Nick Roberts <nick@nick.uklinux.net>
2027
2028 * window.c (Fget_lru_window): Doc fix.
2029
a27ddfaf
KS
20302004-04-14 Kim F. Storm <storm@cua.dk>
2031
2032 * editfns.c (Fformat): Fix allocation size of precision array.
2033
2034 * dispnew.c (update_window): Only set changed_p if
2035 scrolling_window actually did scroll.
2036 (scrolling_window): Only return 1 if we actually did scroll.
2037
2038 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
2039 height to glyph height when cursor row is not fully visible.
2040 (make_cursor_line_fully_visible): Add FORCE_P arg to return
2041 failure in case row is higher than window. Callers changed.
2042 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
2043 Try to scroll partially visible, higher-than-window cursor row.
2044 (redisplay_window): Always try to scroll partially visible,
2045 higher-than-window cursor row - both initially and again with
2046 centering_position = 0.
2047 Clear desired matrix before retrying with centering_position = 0.
2048
da879ae8
SM
20492004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2050
2051 * syntax.c (scan_lists): Simplify backward string scan.
2052 Fix off-by-one boundary check for string and comment fences.
2053
5fc16e8e
SM
20542004-04-13 Joe Buehler <jbuehler@hekimian.com>
2055
2056 * sheap.c, unexcw.c: New files.
2057
c9aac8e6
LT
20582004-04-12 Luc Teirlinck <teirllm@auburn.edu>
2059
2060 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
2061 base buffer has been killed. Correct the error message if the
2062 base buffer does not exist.
2063
1e88a355
SM
20642004-04-12 Joe Buehler <jbuehler@hekimian.com>
2065
2066 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
2067 Cygwin itself. Add support for Xaw3d scrollbars.
2068
2069 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
2070
2071 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
2072
2073 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
2074 before Cygwin unexec.
2075
2076 * Makefile.in: Link changes for Cygwin unexec() support.
2077
8dbff9a0
AS
20782004-04-12 Andreas Schwab <schwab@suse.de>
2079
2080 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
2081
54dffe35
LT
20822004-04-11 Luc Teirlinck <teirllm@auburn.edu>
2083
2084 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
2085 IGNORE argument equals NAME. Doc fix.
2086
99a72bdf
MY
20872004-04-11 Masatake YAMATO <jet@gyve.org>
2088
1e88a355 2089 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
2090 empty if they are backwards.
2091
40899d7b
SM
20922004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2093
2094 * xfaces.c (face_color_supported_p): Fix compilation without X11.
2095
f8f853de
SM
20962004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2097
2098 * doc.c (Fsnarf_documentation): Ignore new file name entries.
2099
c953fe1b
KS
21002004-04-06 Kim F. Storm <storm@cua.dk>
2101
661e85c1
KS
2102 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2103 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
2104
2105 * w32term.c (w32_read_socket): Set mouse_face_hidden after
2106 clearing highlight.
2107
2108 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2109
2110 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
2111 clearing highlight.
2112
c953fe1b
KS
2113 * indent.c (vmotion): Do not reserve one column for continuation
2114 marks on window frames.
2115
c1994268
EZ
21162004-04-04 Eli Zaretskii <eliz@gnu.org>
2117
2118 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
2119 from GCC.
2120
9f691b0d
SM
21212004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2122
2123 * .gdbinit-union: Remove.
2124
2125 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
2126 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
2127 ($nonvalbits): Remove.
2128 ($valmask): Set it by calling xreload to avoid redundancy.
2129
2130 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
2131 (gdb_emacs_intbits): Remove.
2132
7a8560d7
JD
21332004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2134
9f691b0d 2135 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 2136
3c8111fc
KH
21372004-03-30 Kenichi Handa <handa@m17n.org>
2138
2139 * editfns.c (Fformat): Fix initialization of the array info.
2140
48a0bce4
KS
21412004-03-30 Kim F. Storm <storm@cua.dk>
2142
2143 * xterm.c (x_mouse_click_focus_ignore_position): New var.
2144 (syms_of_xterm): DEFVAR_BOOL it.
2145 (ignore_next_mouse_click_timeout): New var.
2146 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
2147 Use it to filter mouse clicks following focus event.
2148
1cd0066c
KS
21492004-03-29 David Ponce <david@dponce.com>
2150
2151 * callint.c (Fcall_interactively): Fix last change.
2152
adb3b353
SM
21532004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2154
2155 * eval.c (Fcommandp): Simplify.
2156
2157 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
2158 Extend to handle all kinds of functions.
2159
2160 * lisp.h (Finteractive_form): Declare.
2161
2162 * callint.c (Fcall_interactively): Use it.
2163
6fc4c9c9
KS
21642004-03-26 Kim F. Storm <storm@cua.dk>
2165
2166 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
2167 to catch errors in calc_pixel_width_or_height during redisplay.
2168
abdb9b83
MY
21692004-03-26 Masatake YAMATO <jet@gyve.org>
2170
b17856dd 2171 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 2172
b17856dd 2173 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 2174
b17856dd 2175 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 2176
b17856dd 2177 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 2178
e8a84b6c
JD
21792004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2180
b17856dd 2181 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 2182
36a3fd05
RS
21832004-03-19 Richard M. Stallman <rms@gnu.org>
2184
2185 * s/sol2-6.h: Delete previous change.
2186
ab24c127
KS
21872004-03-19 Kim F. Storm <storm@cua.dk>
2188
2189 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
2190 to_charpos corresponds to newline in right fringe. Use local
2191 BUFFER_POS_REACHED_P macro.
2192
992126de
JD
21932004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2194
2195 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
2196 to compile on non-window system.
2197
45dbfc84
KS
21982004-03-19 Kim F. Storm <storm@cua.dk>
2199
2200 * dispextern.h (calc_pixel_width_or_height): Add prototype.
2201
2202 * image.c (Qcenter): Move to xdisp.c.
2203
2204 * xdisp.c (Qcenter): Declare here.
adb3b353 2205 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
2206 (handle_single_display_prop): Allow space display property on all
2207 platforms.
2208 (display_mode_line): Set mode_line_p before displaying line.
2209 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
2210 handling. Remove complex cases for fringes and scroll-bars.
2211 Add left, right, and center alignment positions. Add text (area)
2212 width/height. Return width or height for image specs.
2213 (produce_stretch_glyph): Improve handling of :align-to. Is now
2214 relative to left of text area by default, but other base offsets
2215 can be specified -- also for text lines.
2216
2217 * term.c (produce_glyphs): Handle IT_STRETCH.
2218 (produce_stretch_glyph): New function to handle space width and
2219 align-to display properties on non-window systems.
2220
37264101
SM
22212004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2222
2223 * fileio.c (Fread_file_name): Set completion-ignore-case for
2224 case-insensitive systems.
2225
73bc43da
MY
22262004-03-14 Masatake YAMATO <jet@gyve.org>
2227
2228 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
2229 when keymap and cursor are setup.
2230
9062aa89
ST
22312004-03-14 Steven Tamm <steventamm@mac.com>
2232
b17856dd 2233 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 2234
e4b1b5ab
KS
22352004-03-14 Kim F. Storm <storm@cua.dk>
2236
2237 * dispextern.h (x_find_image_file): Add prototype.
2238
2239 * image.c (x_find_image_file): Make extern.
2240
2241 * xfns.c (x_find_image_file): Remove prototype.
2242
a6eeaa81 22432004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 2244
37264101 2245 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 2246
37264101 2247 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 2248
e69cfac2
RS
22492004-03-12 Richard M. Stallman <rms@gnu.org>
2250
2251 * fns.c (internal_equal): New arg PROPS controls comparing
2252 text properties. All callers changed.
2253 (Fequal_including_properties): New function.
2254 (syms_of_fns): defsubr it.
2255
45034953
KS
22562004-03-12 Kim F. Storm <storm@cua.dk>
2257
2258 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 2259
45034953
KS
2260 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
2261 (image_background, image_background_transparent): Fix prototypes.
2262
37264101 2263 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
2264
2265 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
2266 (x_query_font, x_find_ccl_program, x_set_window_size)
2267 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2268 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2269 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
2270
2271 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
2272 (x_query_font, x_find_ccl_program, x_set_window_size)
2273 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2274 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2275 (mac_draw_line_to_pixmap): Add prototypes.
2276
22772004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2278
2279 * macterm.c (XTread_socket): Fix mouse click on tool bar.
2280
a12d3d87
KS
22812004-03-11 Kim F. Storm <storm@cua.dk>
2282
d3ab1cf1
KS
2283 * dispextern.h: Move image related prototypes from xfns.c section
2284 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
2285 HAVE_X_WINDOWS.
37264101 2286
37de9f51 2287 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 2288 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
2289 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
2290 (GTK_OBJ) [USE_GTK]: New declaration.
2291 (obj): Add $(GTK_OBJ) to list.
2292
5243c06a 22932004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 2294
5243c06a
ST
2295 * image.c [MAC_OSX]: Include sys/stat.h
2296
2297 * macfns.c (syms_of_macfns): Remove definitions of things now
2298 defined in image.c
2299
c0f97789
KS
23002004-03-11 Kim F. Storm <storm@cua.dk>
2301
2302 The following changes consolidates the identical/similar image
2303 support code previously found in xfns.c, w32fns.c, and macfns.c
2304 into a new file image.c.
2305
2306 * makefile.w32-in (OBJ1): Add image.o.
2307 ($(BLD)/image.$(O)): Add dependencies.
2308
2309 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
2310 (image.o): Add dependencies.
37264101 2311
c0f97789
KS
2312 * image.c: New file with consolidated image support code.
2313 (COLOR_TABLE_SUPPORT): New define to control whether
2314 color table support is available (X only).
2315 (Bitmap_Record): Common name for x_bitmap_record,
2316 w32_bitmap_record, and mac_bitmap_record.
2317 (XImagePtr): Common name for pointer to XImage or equivalent.
2318 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
2319 to XImagePtr on X+MAC, and to HDC on W32.
2320 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
2321 (NO_PIXMAP): Common name for "None" or equivalent.
2322 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
2323 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
2324 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
2325 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
2326 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
2327 (XDrawLine): Define on MAC for code sharing.
2328 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
2329 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
2330 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2331 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2332 (x_reference_bitmap, x_create_bitmap_from_data)
2333 (x_create_bitmap_from_file, x_destroy_bitmap)
2334 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2335 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2336 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2337 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2338 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2339 (define_image_type, lookup_image_type, valid_image_p)
2340 (image_error, enum image_value_type, struct image_keyword)
2341 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2342 (make_image, free_image, prepare_image_for_display, image_ascent)
2343 (four_corners_best, image_background, image_background_transparent)
2344 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2345 (make_image_cache, free_image_cache, clear_image_cache)
2346 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2347 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2348 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2349 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2350 (init_image_func_pointer, image_load_quartz2d)
2351 (struct ct_color, init_color_table, free_color_table)
2352 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2353 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2354 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2355 (x_disable_image, x_build_heuristic_mask)
2356 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2357 (TIFF support, GIF support, Ghostscript support): Consolidate image
2358 code from xfns.c, w32fns.c, and macfns.c.
2359 (syms_of_image): Consolidate image related symbol setup here.
2360 (init_image): Consolidate image related initializations here.
37264101 2361
c0f97789
KS
2362 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
2363 and init_image. Remove call to init_xfns.
2364
37264101
SM
2365 * macterm.h (struct mac_bitmap_record): Add file member.
2366 Not currently used, but simplifies code sharing.
c0f97789
KS
2367
2368 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2369 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2370 (x_reference_bitmap, x_create_bitmap_from_data)
2371 (x_create_bitmap_from_file, x_destroy_bitmap)
2372 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2373 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2374 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2375 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2376 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2377 (define_image_type, lookup_image_type, valid_image_p)
2378 (image_error, enum image_value_type, struct image_keyword)
2379 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2380 (make_image, free_image, prepare_image_for_display, image_ascent)
2381 (four_corners_best, image_background, image_background_transparent)
2382 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2383 (make_image_cache, free_image_cache, clear_image_cache)
2384 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2385 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2386 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2387 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2388 (init_image_func_pointer, image_load_quartz2d)
2389 (struct ct_color, init_color_table, free_color_table)
2390 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2391 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2392 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2393 (x_disable_image, x_build_heuristic_mask)
2394 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2395 (TIFF support, GIF support, Ghostscript support): Merge with image
2396 code from xfns.c and macfns.c into image.c.
2397 (syms_of_xfns): Move image related symbols to image.c.
2398 (init_external_image_libraries, init_xfns): Remove; initialization
2399 moved to init_image in image.c.
2400
2401 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2402 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2403 (x_reference_bitmap, x_create_bitmap_from_data)
2404 (x_create_bitmap_from_file, x_destroy_bitmap)
2405 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2406 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2407 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2408 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2409 (define_image_type, lookup_image_type, valid_image_p)
2410 (image_error, enum image_value_type, struct image_keyword)
2411 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2412 (make_image, free_image, prepare_image_for_display, image_ascent)
2413 (four_corners_best, image_background, image_background_transparent)
2414 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2415 (make_image_cache, free_image_cache, clear_image_cache)
2416 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2417 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2418 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2419 (struct ct_color, init_color_table, free_color_table)
2420 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2421 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2422 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2423 (x_disable_image, x_build_heuristic_mask)
2424 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2425 (TIFF support, GIF support, Ghostscript support): Merge with image
2426 code from xfns.c and macfns.c into image.c.
2427 (syms_of_xfns): Move image related symbols to image.c.
2428 (init_external_image_libraries, init_xfns): Remove; initialization
2429 moved to init_image in image.c.
2430
2431 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2432 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2433 (x_reference_bitmap, x_create_bitmap_from_data)
2434 (x_create_bitmap_from_file, x_destroy_bitmap)
2435 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2436 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2437 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2438 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2439 (define_image_type, lookup_image_type, valid_image_p)
2440 (image_error, enum image_value_type, struct image_keyword)
2441 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2442 (make_image, free_image, prepare_image_for_display, image_ascent)
2443 (four_corners_best, image_background, image_background_transparent)
2444 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2445 (make_image_cache, free_image_cache, clear_image_cache)
2446 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2447 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2448 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2449 (struct ct_color, init_color_table, free_color_table)
2450 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2451 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2452 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2453 (x_disable_image, x_build_heuristic_mask)
2454 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2455 (TIFF support, GIF support, Ghostscript support): Merge with
2456 w32fns.c and macfns.c image code into image.c.
2457 (syms_of_xfns): Move image related symbols to image.c.
2458 (init_xfns): Remove; initialization moved to init_image in image.c.
2459
2460 * lisp.h (syms_of_image, init_image): Add protoypes.
2461 (init_xfns): Remove prototype.
2462
2463 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2464 (x_reference_bitmap, x_create_bitmap_from_data)
2465 (x_create_bitmap_from_file, x_destroy_bitmap)
2466 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2467 (gamma_correct) [MAC_OS]: Add prototype.
2468
2469 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2470 (x_reference_bitmap, x_create_bitmap_from_data)
2471 (x_create_bitmap_from_file, x_destroy_bitmap)
2472 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2473
6eced09c
KH
24742004-03-09 Kenichi Handa <handa@etlken2>
2475
2476 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2477 correctly.
2478
9a7e95f3
RS
24792004-03-04 Richard M. Stallman <rms@gnu.org>
2480
04a6e76b
RS
2481 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2482
9a7e95f3
RS
2483 * window.c (Fdisplay_buffer): Doc fix.
2484
2485 * buffer.c (Fpop_to_buffer): Doc fix.
2486
6c2488df
KS
24872004-03-03 Kim F. Storm <storm@cua.dk>
2488
2489 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2490
d8d95bc7
SM
24912004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2492
2493 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2494
357589bf
RS
24952004-03-02 Richard M. Stallman <rms@gnu.org>
2496
2497 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2498
409949b5
KH
24992004-03-02 Kenichi Handa <handa@m17n.org>
2500
2501 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2502
d24bc50f
KS
25032004-03-02 Kim F. Storm <storm@cua.dk>
2504
2505 * window.h (struct window): New member overlay_arrow_bitmap.
2506
2507 * window.c (make_window): Initialize overlay_arrow_bitmap.
2508
2509 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2510 implement and integrate multiple overlay arrows with redisplay.
2511 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2512 (last_arrow_position, last_arrow_string): Replace by properties.
2513 (Qlast_arrow_position, Qlast_arrow_string)
2514 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2515 (syms_of_xdisp): Intern and staticpro them.
2516 (overlay_arrow_string_or_property, update_overlay_arrows)
2517 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2518 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2519 (redisplay_internal): Use them instead of directly accessing
2520 Voverlay_arrow_position etc. for multiple overlay arrows.
2521 (mark_window_display_accurate): Use update_overlay_arrows.
2522 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2523 (try_window_id): Use overlay_arrows_changed_p.
2524 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2525 (display_line): Use overlay_arrow_at_row to check multiple
2526 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2527 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2528 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2529 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2530
2531 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2532 (update_window_fringes): Remove unused code.
2533
c1464661
JR
25342004-03-01 Jason Rumney <jasonr@gnu.org>
2535
2536 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2537
a64387ee
JB
25382004-03-01 Juanma Barranquero <lektu@terra.es>
2539
2540 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2541
2542 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2543
334faa08
JD
25442004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2545
2546 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2547 how many colors can be displayed.
2548
bb62616f
KH
25492004-03-01 Kenichi Handa <handa@m17n.org>
2550
2551 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2552 correctly.
2553
0fd16104
KS
25542004-02-28 Kim F. Storm <storm@cua.dk>
2555
2556 * dispnew.c (update_window): Update header line also if there are
2557 no other changes in window (move code after set_cursor label).
2558
2559 * lisp.h (mark_window_display_accurate): Remove prototype.
2560
2561 * window.c (window_loop, Fforce_window_update): Force mode line
2562 updates by setting prevent_redisplay_optimizations_p and
2563 update_mode_lines.
2564
b59dd9c8
JD
25652004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2566
d8d95bc7 2567 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2568
2569 * xterm.c (x_calc_absolute_position): Call x_real_positions
2570 to get WM window sizes and use those to calculate position.
d8d95bc7 2571 (x_set_offset): Remove code commented out.
b59dd9c8 2572
a874691c
MB
25732004-02-28 Miles Bader <miles@gnu.org>
2574
2575 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2576
3e0c6482
KS
25772004-02-28 Kim F. Storm <storm@cua.dk>
2578
2579 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2580 an event into kbd fifo, but with special handling of quit event;
2581 a quit event is saved for later, and further events are discarded
2582 until the saved quit event has been processed.
2583 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2584 (gen_help_event): Store help event in kbd fifo.
2585 (NREAD_INPUT_EVENTS): Remove.
2586 (read_avail_input): Adapt to new read_socket_hook interface.
2587 Remove allocation and initialization of local input_event buffer,
2588 as read_socket_hook stores events directly in fifo. Allocate and
2589 initialize local hold_quit event to handle postponed quit event
2590 (and store it if set by kbd_buffer_store_event_hold).
2591
2592 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2593 (gen_help_event): Fix prototype.
2594
a64387ee 2595 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2596 numcharsp args. Add hold_quit arg.
f63fd14e 2597 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2598 directly in fifo using kbd_buffer_store_event_hold.
2599
2600 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2601 (read_input_waiting): Adapt to new read_socket_hook interface.
2602 Remove allocation and initialization of local input_event buffer,
2603 as read_socket_hook stores events directly in fifo. Allocate and
2604 initialize local hold_quit event to handle postponed quit event
2605 (and store it if set by kbd_buffer_store_event_hold).
2606
a64387ee 2607 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2608
2609 * termhooks.h (read_socket_hook): Fix prototype.
2610
2611 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2612 numcharsp args. Add hold_quit arg.
f63fd14e 2613 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2614 directly in fifo using kbd_buffer_store_event_hold.
2615
2616 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2617
2618 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2619 Add hold_quit arg. Rework to use just one, local, inev
2620 input_event. Store inev directly in fifo using
3e0c6482
KS
2621 kbd_buffer_store_event_hold. Update count in one place.
2622 Postpone call to gen_help_event until inev is stored; use new
2623 local do_help for this.
2624 Remove local emacs_event in handing of ButtonPress event; just use
2625 inev instead (so no reason to copy it later).
2626
2627 * xsmfns.c (x_session_check_input): Remove numchars arg.
2628
d8d95bc7
SM
2629 * xterm.c (x_focus_changed, x_detect_focus_change):
2630 Remove numchars arg. Always store event into bufp arg.
2631 Return nothing. Callers changed accordingly.
3e0c6482
KS
2632 (glyph_rect): Simplify.
2633 (STORE_KEYSYM_FOR_DEBUG): New macro.
2634 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2635 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2636 (current_hold_quit) [USE_GTK]: Add.
2637 (event_handler_gdk): Adapt to new handle_one_xevent.
2638 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
2639 Add hold_quit arg. Rework to use just one, local, inev
2640 input_event. Store inev directly in fifo using
3e0c6482
KS
2641 kbd_buffer_store_event_hold. Update count in one place.
2642 Postpone call to gen_help_event until inev is stored; use new
2643 local do_help for this.
2644 Simplify handling of keysyms (consolidate common code). Fix bug
2645 where count was updated with nchars instead of nbytes.
2646 Remove local emacs_event in handing of ButtonPress event; just use
2647 inev instead (so no reason to copy it later).
2648 Remove `out' label. Rename label `ret' to `done'; add various
2649 `goto done' to clarify code flow in deeply nested blocks.
2650 (x_dispatch_event): Simplify as handle_one_xevent now calls
2651 kbd_buffer_store_event itself.
f63fd14e 2652 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
2653 arg. Call handle_one_xevent with new arglist. Store event from
2654 x_session_check_input in fifo.
2655 [USE_GTK]: Setup current_hold_quit.
2656 Decrement handling_signal before unblocking input.
2657 (x_initialize) [USE_GTK]: Initialize current_count.
2658
2659 * xterm.h (x_session_check_input): Fix prototype.
2660
e3564461 26612004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 2662
d8d95bc7 2663 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 2664
e3564461
ST
2665 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2666 macgui.h).
a64387ee 2667
e3564461 2668 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 2669
e3564461
ST
2670 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2671 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2672 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2673 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2674 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2675 (Bitmap): Remove typedef.
2676 (Pixmap): Change int to GWorldPtr.
2677
d8d95bc7 2678 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 2679
d8d95bc7
SM
2680 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2681 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2682 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
2683 long representation.
2684 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2685 colors used for masks.
2686 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 2687
e3564461
ST
2688 * macfns.c: Include sys/types.h and sys/stat.h.
2689 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2690 Include QuickTime/QuickTime.h.
2691 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2692 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2693 functions defined in macterm.c.
2694 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2695 (ZPixmap): New #define for compatibility with xfns.c.
2696 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2697 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
2698 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2699 New functions.
e3564461 2700 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
2701 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2702 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
2703 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2704 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2705 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2706 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2707 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2708 long mixup.
2709 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2710 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2711 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2712 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2713 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2714 (x_alloc_image_color, clear_image_cache, lookup_image)
2715 (x_find_image_file, xbm_read_bitmap_file_data)
2716 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2717 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2718 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2719 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2720 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 2721 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
2722 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2723 #if 0.
2724 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2725 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
2726 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2727 New functions (from xfns.c).
e3564461
ST
2728 (Fx_create_frame): Record unwind_create_frame.
2729 (Fxw_display_color_p): Use dpyinfo->color_p.
2730 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2731 dpyinfo->n_cbits.
2732 (Fx_display_color_cells): Use dpyinfo->n_planes;
2733 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2734 (Qheuristic, cross_disabled_images, emboss_matrix)
2735 (laplace_matrix): New variables (from xfns.c).
2736 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2737 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2738 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
2739 (image_background_transparent): New function (from xfns.c).
2740 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2741 (image_load_quicktime): Add declaration.
2742 [MAC_OSX] (image_load_quartz2d): Likewise.
2743 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2744 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 2745 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
2746 (xbm_load_image_from_file, x_laplace_read_row)
2747 (x_laplace_write_row, pbm_read_file): Remove functions.
2748 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2749 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2750 (colors_in_color_table): Sync with xfns.c (although not used).
2751 (lookup_rgb_color): Don't lookup color table. Just do gamma
2752 correction.
2753 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
2754 (x_disable_image): New function (from xfns.c).
2755 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2756 (x_build_heuristic_mask): Sync with xfns.c.
2757 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2758 (HAVE_PBM): Remove #ifdef.
2759 (pbm_load): Sync with xfns.c. Set img->width and img->height
2760 before IMAGE_BACKGROUND.
d8d95bc7 2761 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
2762 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2763 Don't enclose with #if HAVE_PNG.
2764 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
2765 symbol _CGImageCreateWithPNGDataProvider is defined.
2766 Otherwise use image_load_quicktime.
e3564461 2767 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
2768 [HAVE_PNG] (png_load): Sync with xfns.c.
2769 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2770 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2771 HAVE_JPEG.
2772 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2773 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2774 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2775 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2776 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2777 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2778 HAVE_TIFF.
2779 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2780 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2781 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
2782 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2783 New functions (from xfns.c).
e3564461 2784 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 2785 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
2786 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2787 Don't enclose with #if HAVE_GIF.
2788 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2789 animated gif. Otherwise use image_load_quicktime.
2790 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2791 gif_DrawText to avoid conflict with QuickdrawText.h.
2792 [HAVE_GIF] (gif_load): Sync with xfns.c.
2793 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2794 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2795 Ghostscript is not supported yet).
2796 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2797 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2798 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2799 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2800 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2801 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
2802 HAVE_PNG. Call EnterMovies to support animated gifs.
2803 Call init_image_func_pointer to bind a symbol
e3564461 2804 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 2805
d8d95bc7 2806 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
2807 (x_draw_bar_cursor): Sync declaration with xterm.c.
2808 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2809 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
2810 graphics).
2811 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
2812 (mac_draw_line_to_pixmap, XCreatePixmap)
2813 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
2814 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
2815 New functions.
2816 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
2817 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2818 Cast bits to char *.
e3564461
ST
2819 (reflect_byte): New function (from w32fns.c).
2820 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
2821 due to byte alignment.
d8d95bc7
SM
2822 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
2823 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
2824 (XSetForeground): Remove static (now used in macfns.c).
2825 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
2826 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
2827 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
2828 (x_draw_glyph_string_box, x_draw_image_foreground)
2829 (x_draw_image_foreground_1, x_draw_image_glyph_string)
2830 (x_draw_stretch_glyph_string, x_draw_glyph_string)
2831 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
2832 Sync with xterm.c.
2833 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
2834 than the xterm.c version when a strictly horizontal or vertical
2835 line is drawn.
2836 (XTset_terminal_window): Add static.
2837 (x_make_frame_visible): Add UNBLOCK_INPUT.
2838 (x_free_frame_resources): New funcion (from xterm.c).
2839 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
2840 occurs in tool bar area.
d8d95bc7
SM
2841 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
2842 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
2843 Initialize image cache.
2844 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
2845 Enclose unused functions with #if 0.
2846 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
2847 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 2848 from a mac font name to an XLFD font name according to its script code.
e3564461 2849 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 2850 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
2851 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
2852 whose name starts with `.'.
2853 (init_font_name_table): Use decode_mac_font_name. Add both
2854 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
2855 of a font is smJapanese.
2856 (mac_do_list_fonts): New function to list fonts that match a given
2857 pattern.
2858 (x_list_fonts, XLoadQueryFont): Use it.
2859 (XLoadQueryFont): Set rbearing field for each variable width
2860 character to avoid needless redraw.
2861 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2862
446f5f3d
KS
28632004-02-26 Kim F. Storm <storm@cua.dk>
2864
af617d0f
KS
2865 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2866 as read_socket_hook handler on X aborts if buffer is too small
2867 and W32 handler doesn't always check buffer limit.
2868
446f5f3d
KS
2869 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2870 right-fringe similar to a display margin image. Specifically,
2871 the characters having the fringe prop are no longer shown, and
2872 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2873 do this. Set fringe bitmap face_id in it->face_id.
2874 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2875 still realize it->face (i.e. the fringe bitmap face).
2876
7d8a0b55
MB
28772004-02-25 Miles Bader <miles@gnu.org>
2878
2879 * xdisp.c (check_it): Check string/string_pos consistency.
2880 (init_iterator): Initialize string-related fields properly.
2881
28822004-02-11 Miles Bader <miles@gnu.org>
2883
2884 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2885
28862004-02-10 Miles Bader <miles@gnu.org>
2887
2888 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2889 BLOCK_INPUT can be nested, so it doesn't make much sense.
2890
a64387ee 28912004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
2892
2893 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2894 (xbm_read_bitmap_data): Use unsigned char for image data.
2895
92f5fba2
LT
28962004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2897
2898 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2899
8565fb3d
JR
29002004-02-22 Jason Rumney <jasonr@gnu.org>
2901
2902 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2903 correctly over other bitmaps.
2904
a6eeaa81 29052004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
2906
2907 * emacs.c (USAGE1): Split into two halves.
2908 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
2909 (USAGE3): Rename from USAGE2.
2910 (USAGE4): Rename from USAGE3.
f8125c39 2911
4effffca
EZ
29122004-02-21 Juri Linkov <juri@jurta.org>
2913
2914 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2915 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2916 --file. Fix -f, -l. Sort options. Untabify.
2917 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2918
923c1e6f
LT
29192004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2920
2921 * category.c (Fdefine_category, Fcategory_docstring)
2922 (Fget_unused_category, Fset_category_table)
2923 (Fcategory_set_mnemonics): Doc fixes.
2924
b0e225fd
KS
29252004-02-20 Kim F. Storm <storm@cua.dk>
2926
2927 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2928 The following changes are relative to the 2004-01-21 revision.
2929 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2930 in one call to read_socket_hook. Value is 8.
2931 (read_avail_input): Separate and rework handling of read_socket_hook
2932 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
2933 in read_socket_hook case, and repeat if full buffer is read.
2934 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
2935 In non-read_socket_hook case, just use a single input_event, and
2936 call kbd_buffer_store_event on the fly for each character.
2937
b15aa9f9
SM
29382004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2939
2940 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2941 Remove unused `gu' alternative.
2942
83c9aa95
AS
29432004-02-19 Andreas Schwab <schwab@suse.de>
2944
2945 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2946 warning.
2947
cc808173
KS
29482004-02-18 Kim F. Storm <storm@cua.dk>
2949
2950 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2951 Fix last change.
2952
ab90a54d
KS
29532004-02-17 Kim F. Storm <storm@cua.dk>
2954
b26f249f
KS
2955 * xdisp.c (fast_find_position): Fix return value of new version;
2956 it was inverted compared to the 21.1 version.
2957 (get_window_cursor_type): Don't look at glyph if NULL.
2958 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 2959
ab90a54d
KS
2960 * keyboard.c: Rework previous change; it didn't consider that the
2961 buf array was allocated on the stack.
2962 (prev_read): Remove variable.
2963 (read_avail_input_buf): New static event buffer array.
b9568dfc 2964 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 2965 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
2966 Use in_read_avail_input to handle re-entrance; when re-entered,
2967 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2968 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
2969 is always cleared on entry. To ensure that, we clear (just) the
2970 entries that were used before we return.
2971 (init_keyboard): Initialize read_avail_input_buf here.
2972
4e039f3f
EZ
29732004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2974
2975 * cmds.c (Fend_of_line): Doc fix.
2976
7b5368c1
EZ
29772004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2978
2979 * keyboard.c (prev_read): New static variable.
2980 (read_avail_input): Use it to zero out only those slots in buf[]
2981 that were used last time we were called.
2982
a6eeaa81 29832004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
2984
2985 * Makefile.in (obj): Move fringe.o from here...
2986 (XOBJ, MAC_OBJ): ...to here.
2987
159c348e
SE
29882004-02-16 Stephen Eglen <stephen@gnu.org>
2989
2990 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2991
d2f14999
SM
29922004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2993
b15aa9f9
SM
2994 * data.c (Fbyteorder):
2995 * fringe.c (Fdefine_fringe_bitmap):
2996 * xdisp.c (handle_single_display_prop):
d2f14999
SM
2997 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2998
8d50508a
JR
29992004-02-16 Jason Rumney <jasonr@gnu.org>
3000
3001 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
3002
dd4497dc
ST
30032004-02-15 Steven Tamm <steventamm@mac.com>
3004
3005 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
3006 controlling emulation of a three button mouse with option and
3007 command keys.
3008 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 3009 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 3010
c9159cb3
KS
30112004-02-15 Kim F. Storm <storm@cua.dk>
3012
2cc52658
KS
3013 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
3014
c9159cb3
KS
3015 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
3016 Perform byte-swapping.
3017
12fde2dc
KS
30182004-02-14 Kim F. Storm <storm@cua.dk>
3019
3020 * dispextern.h (struct draw_fringe_bitmap_params): Change member
3021 bits from char to short to facilitate wider bitmaps.
3022 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
3023 member.
3024
3025 * fringe.c (struct fringe_bitmap): Change member bits from char to
3026 short to facilitate 16 bits wide bitmaps. Modify all standard
3027 bitmaps accordingly.
3028 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
3029 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
3030 (draw_fringe_bitmap): Ditto.
3031 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
3032 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
3033 handle up to 16 bits wide bitmaps.
3034 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 3035 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
3036
3037 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
3038 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
3039 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
3040
3041 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
3042 so it is no longer necessary to expand them here.
3043
3044 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
3045
9d7271e8
KS
30462004-02-12 Kim F. Storm <storm@cua.dk>
3047
3048 * window.c (Fwindow_fringes): Doc fix.
3049
706c1e4f
JD
30502004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3051
3052 * xselect.c (x_get_foreign_selection): Add new optional parameter
3053 time_stamp.
3054 (Fx_get_selection_internal): Ditto, pass time_stamp to
3055 x_get_foreign_selection.
3056
3057 * data.c (Fbyteorder): New function.
3058
c2d12b5d
JD
30592004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3060
3061 * atimer.c: Move include stdio.h to same place as in other files.
3062
3063 * region-cache.c: Ditto.
3064
3065 * sysdep.c: Ditto.
3066
3067 * xfaces.c: Ditto.
3068
4c1947b9
SS
30692004-02-09 Sam Steingold <sds@gnu.org>
3070
89458937 3071 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 3072
82722af3
KS
30732004-02-09 Kim F. Storm <storm@cua.dk>
3074
3075 * fringe.c: New file. Move original fringe related declarations
3076 and code from dispextern.h and xdisp.c here.
3077 Rework code to support user defined fringe bitmaps, redefining
3078 standard bitmaps, ability to overlay user defined bitmap with
3079 overlay arrow bitmap, and add faces to bitmaps.
3080 (Voverflow_newline_into_fringe): Declare here.
3081 (enum fringe_bitmap_align): New enum.
3082 (..._bits): All bitmaps are now defined without bitswapping; that
3083 is now done in init_fringe_once (if necessary).
3084 (standard_bitmaps): New array with specifications for the
3085 standard fringe bitmaps.
3086 (fringe_faces): New array.
3087 (valid_fringe_bitmap_id_p): New function.
3088 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
3089 (draw_fringe_bitmap): New function which draws fringe bitmap,
3090 possibly overlaying bitmap with cursor in right fringe or the
3091 overlay arrow in the left fringe.
3092 (update_window_fringes): Do not handle overlay arrow here.
3093 Compare and copy fringe bitmap faces.
3094 (init_fringe_bitmap): New function.
3095 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
3096 define and destroy user defined fringe bitmaps.
3097 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
3098 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
3099 (syms_of_fringe): New function. Defsubr new DEFUNs.
3100 DEFVAR_LISP Voverflow_newline_into_fringe.
3101 (init_fringe_once, init_fringe): New functions.
3102 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 3103
82722af3
KS
3104 * Makefile.in (obj): Add fringe.o.
3105 (fringe.o): New dependencies.
3106
3107 * dispextern.h (FRINGE_ID_BITS): New definition for number of
3108 bits allocated to hold a fringe number. Increase number of bits
3109 from 4 to 8 to allow user defined fringe bitmaps.
3110 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
3111 left_user_fringe_face_id, right_user_fringe_bitmap,
3112 right_user_fringe_face_id.
3113 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
3114 Move to new file fringe.c.
3115 (MAX_FRINGE_BITMAPS): Define here.
3116 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
3117 and overlay_p. Change member which to int.
3118 (struct redisplay_interface): New members define_fringe_bitmap
3119 and destroy_fringe_bitmap.
3120 (valid_fringe_bitmap_id_p): Add prototype.
3121 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
3122
3123 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
3124 arrows.
3125 (update_frame): Do flush_display if force_flush_display_p to
3126 ensure display (specifically fringes) are updated in a timely
3127 manner when resizing the frame by dragging the mouse.
3128 (update_window_line): Update row if overlay arrow changed.
3129 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
3130 or overlay arrow changed.
3131
3132 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
3133 syms_of_fringe, and init_fringe.
3134
3135 * frame.h (struct frame): New member force_flush_display_p.
3136
3137 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
3138 Add prototypes.
3139
a3993cc8 3140 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 3141 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
3142 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
3143 Use cursor color for displaying cursor in fringe.
82722af3
KS
3144 (x_redisplay_interface): Add null handlers for
3145 define_fringe_bitmap and destroy_fringe_bitmap functions.
3146
3147 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
3148 xterm.c to handle overlayed fringe bitmaps and to use cursor color
3149 for displaying cursor in fringe.
3150 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
3151 specific functions to define and destroy fringe bitmaps in fringe_bmp.
3152 (w32_redisplay_interface): Add them to redisplay_interface.
3153 (w32_term_init): Call w32_init_fringe instead of explicitly
3154 defining fringe bitmaps in fringe_bmp array.
3155 (x_delete_display): Call w32_reset_fringes instead of explicitly
3156 destroying fringe bitmaps in fringe_bmp array.
3157
3158 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
3159 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
3160 (continued_bits, continuation_bits, ov_bits, first_line_bits)
3161 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
3162 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
3163 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
3164 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
3165 Move fringe handling vars and code to new file fringe.c.
3166 (handle_display_prop): Handle left-fringe and right-fringe
3167 display properties; store user fringe bitmaps in iterator.
3168 (move_it_in_display_line_to): Handle cursor in fringe at eob.
3169 (clear_garbaged_frames): Set force_flush_display_p if resized.
3170 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
3171 (display_line): Handle cursor in fringe at eob.
3172 (display_line): Set row user fringe bitmaps from iterator.
3173
3174 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
3175 Use cursor color for displaying cursor in fringe.
3176 (x_redisplay_interface): Add null handlers for
3177 define_fringe_bitmap and destroy_fringe_bitmap functions.
3178
030400eb
JD
31792004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3180
3181 * macfns.c (Fx_change_window_property): Make doc string and
3182 parameters same as for X version.
3183
3184 * w32fns.c (Fx_change_window_property): Ditto.
3185
3af55251
KS
31862004-02-07 Kim F. Storm <storm@cua.dk>
3187
ec110e9e
KS
3188 * xdisp.c (hscroll_window_tree): Position cursor near to right
3189 margin in hscrolled window when jumping to end of line (rather
3190 than centering cursor).
3191
3af55251
KS
3192 * process.c (wait_reading_process_input): Don't do adaptive read
3193 buffering if waiting for a specific process.
3194
b0c138ce
LT
31952004-02-05 Luc Teirlinck <teirllm@auburn.edu>
3196
3197 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
3198 (Fread_minibuffer, Feval_minibuffer)
3199 (Fread_string, Fread_no_blanks_input)
3200 (Fcompleting_read): Doc fixes.
3201 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
3202 completion-regexp-list. Define Qcase_fold_search and staticpro it.
3203 (read_minibuf): Fix initial comment.
3204 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 3205 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
3206 checking completion-regexp-list.
3207 (Fdisplay_completion_list): Make it handle arguments that are
3208 symbols. Doc fix.
3209
9676f5ad 32102004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 3211
9676f5ad 3212 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 3213
9676f5ad
JD
3214 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
3215 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 3216 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 3217 format. Remove unused variable cons.
5b698285
JD
3218
3219 * xselect.c: Include stdio,h.
3220
fc1d15f6
KH
32212004-02-05 Kenichi Handa <handa@m17n.org>
3222
ebaff4af
KH
3223 * fns.c (Fset_char_table_range): Fix previous change.
3224
fc1d15f6
KH
3225 * buffer.c (Fset_buffer_multibyte): Fix docstring.
3226
9676f5ad
JD
32272004-02-04 Luc Teirlinck <teirllm@auburn.edu>
3228
3229 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
3230
da75761f
SM
32312004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
3232
3233 * keymap.c (Vmouse_events): Rename from Vmenu_events.
3234 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
3235
13c5d120
KH
32362004-02-04 Kenichi Handa <handa@m17n.org>
3237
3238 * fns.c (Fset_char_table_range): Handle charsets ascii,
3239 eight-bit-control, and eight-bit-graphic correctly.
3240
2883d842
JR
32412004-02-03 Jason Rumney <jasonr@gnu.org>
3242
3243 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
3244
3245 * w32fns.c (x_to_w32_font): Likewise.
3246
69eff41f
JD
32472004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3248
3249 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
3250 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
3251
3252 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
3253 ClientMessages.
3254
3255 * xselect.c: Include termhooks.h and X11/Xproto.h
3256 (x_check_property_data, x_fill_property_data)
3257 (x_property_data_to_lisp, mouse_position_for_drop)
3258 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 3259 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
3260 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
3261
da75761f 3262 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
3263 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
3264 OUTER_P.
3265 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
3266 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
3267 if vector_ret_p is true.
3268 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 3269
a6eeaa81 32702004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
3271
3272 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
3273 basename of FILE relative to it, not FILE itself.
3274
09721b31
KH
32752004-02-02 Kenichi Handa <handa@m17n.org>
3276
3277 * coding.c (coding_restore_composition): Check invalid
3278 composition data more rigidly.
3279
eb996101
LT
32802004-01-30 Luc Teirlinck <teirllm@auburn.edu>
3281
3282 * fileio.c (Fread_file_name_internal): Correctly handle the case
3283 where insert-default-directory is nil.
3284 (Fread_file_name): Always return an empty string if the user exits
3285 with an empty minibuffer. Adapt the docstring accordingly.
3286 (syms_of_fileio): Adapt the docstring of insert-default-directory
3287 to the change in Fread_file_name.
3288
a6eeaa81 32892004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
3290
3291 * alloca.c [!alloca]: Fix the prototype for xfree.
3292
13f52ed8
KH
32932004-01-29 Kenichi Handa <handa@m17n.org>
3294
3295 * fns.c (string_char_to_byte): Optimize for ASCII only string.
3296 (string_byte_to_char): Likewise.
3297
d57625a0
JR
32982004-01-28 Peter Runestig <peter@runestig.com>
3299
3300 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
3301
a64387ee 33022004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
3303
3304 * unexmacosx.c (unexec_copy): Do not copy more than was
3305 requested to prevent overwriting during unexec.
3306
eb37b8fd
JD
33072004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3308
ce38070a
JD
3309 * process.c (sigchld_handler): Add comment about not calling malloc.
3310
eb37b8fd
JD
3311 * process.h: Add extern to synch_process_termsig.
3312
a64387ee 33132004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 3314
da75761f
SM
3315 * macterm.c (make_mac_frame, make_mac_terminal_frame):
3316 Move setting of scroll bars from make_mac_frame to
3317 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 3318
d62a265d
RS
33192004-01-26 Richard M. Stallman <rms@gnu.org>
3320
3321 * search.c (Freplace_match): Handle nonexistent
3322 back-references properly.
3323
33242004-01-03 Richard M. Stallman <rms@gnu.org>
3325
3326 * window.c (decode_any_window): New function.
3327 (Fwindow_height, Fwindow_width, Fwindow_edges)
3328 (Fwindow_pixel_edges, Fwindow_inside_edges)
3329 (Fwindow_inside_pixel_edges): Use decode_any_window.
3330
ff236419
JD
33312004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3332
3333 * process.h: synch_process_termsig new variable.
3334
3335 * callproc.c: Define synch_process_termsig.
3336 (Fcall_process): Initiate synch_process_termsig to zero and
3337 check if non-zero and get signal name after subprocess has ended.
3338
3339 * process.c (sigchld_handler): Set synch_process_termsig
3340 if terminated by a signal. synch_process_death setting removed.
3341
3342 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
3343
41b867ea
AS
33442004-01-26 Andreas Schwab <schwab@suse.de>
3345
3346 * print.c (print_preprocess): Declare size as EMACS_INT to not
3347 lose bits.
3348 (print_object): Likewise.
3349 * alloc.c (Fpurecopy): Likewise.
3350
a08084ff
LT
33512004-01-25 Luc Teirlinck <teirllm@auburn.edu>
3352
3353 * window.c (Fwindow_minibuffer_p): Doc fix.
3354
b19ac475
JY
33552004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
3356
3357 * editfns.c (Fformat): Make both passes accept the same set of flags.
3358
fe905025
KH
33592004-01-23 Kenichi Handa <handa@m17n.org>
3360
3361 * fns.c (Fmd5): If OBJECT is a buffer different from the current
3362 one, set buffer to OBJECT temporarily.
3363
438fc6c0
SM
33642004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3365
455316e2
SM
3366 * keyboard.c (kbd_buffer_gcpro): Remove.
3367 (kbd_buffer_store_event, clear_event, Fdiscard_input)
3368 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
3369 Don't initialize and/or maintain the variable any more. It was made
3370 redundant by my commit of 2003-06-15.
3371
438fc6c0
SM
3372 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
3373
5335a4ee
JD
33742004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3375
3376 * lisp.h: Add undef DECL_ALIGN.
3377
dcdaeebc
SM
33782004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3379
3380 * process.c (wait_reading_process_input) [SYNC_INPUT]:
3381 Check interrupt_input_pending explicitly.
3382
3383 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
3384
3385 * keyboard.c (handle_async_input): New fun,
3386 extracted from input_available_signal.
3387 (input_available_signal, reinvoke_input_signal): Use it.
3388
9076a823
SM
33892004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3390
d7107586
SM
3391 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
3392
3393 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
3394 manipulation macros for when tags are in the lower bits.
3395 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
3396 (DECL_ALIGN): New macro.
3397 (DEFUN): Use it.
3398
3399 * lisp.h [ENABLE_CHECKING]: Don't force union type.
3400
3401 * s/darwin.h (__attribute__): Remove outdated workaround.
3402
3403 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3404
3405 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3406 Don't check range of malloc address.
3407 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3408
9076a823
SM
3409 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3410
3411 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3412
ba029065
KH
34132004-01-19 Kenichi Handa <handa@m17n.org>
3414
3415 * fontset.c (fontset_font_pattern): Fix previous change.
3416
7af0e8d7
MB
34172004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
3418
3419 * xdisp.c (Voverflow_newline_into_fringe)
3420 (move_it_in_display_line_to, redisplay_internal)
3421 (update_window_fringes, redisplay_window, display_line, window):
3422 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
3423 that it compiles without a window-system.
3424 * dispnew.c (direct_output_for_insert, update_window): Likewise.
3425
77a9cf69
KS
34262004-01-16 Kim F. Storm <storm@cua.dk>
3427
3428 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
3429
a64387ee 3430 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
3431 buffer_local_flags for indicate_buffer_boundaries.
3432 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
3433 default- variable for it.
3434
3435 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
3436 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 3437 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
3438 overflowing newlines into right fringe.
3439 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
3440 and indicate_bottom_line_p for buffer boundaries and scrolling.
3441 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
3442 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
3443 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
3444 and HOLLOW_SQUARE_BITMAP.
3445 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3446 Add prototypes.
3447
3448 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3449 instead of related indicator fields.
3450 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3451 (direct_output_for_insert): Handle exact width lines like
3452 contined lines. Call update_window_fringes.
3453 (update_window): Call update_window_fringes.
3454 (scrolling_window): Don't skip desired rows with changed bitmaps.
3455 Check if fringe bitmaps changes when assigning scrolled rows.
3456
3457 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3458 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3459 (move_it_in_display_line_to): Overflow newline into fringe for
3460 rows that are exactly as wide as the window.
3461 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3462 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3463 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3464 (fringe_bitmaps): Add new bitmaps.
3465 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3466 Select proper bitmap for cursor in fringe when appropriate.
3467 Handle alignment of bitmap to top or bottom of row.
3468 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3469 done by update_window_fringes.
3470 (update_window_fringes, draw_window_fringes): New functions.
3471 (redisplay_internal): Call update_window_fringes in case only
3472 cursor row is updated.
3473 (redisplay_window): Call update_window_fringes.
3474 Explicitly call draw_window_fringes if redisplay was done using
3475 the current matrix or the overlay arrow is in the window.
3476 (try_window_reusing_current_matrix): Mark scrolled rows for
3477 fringe update (to update buffer-boundaries / scrolling icons).
3478 (find_last_unchanged_at_beg_row): Handle exact width lines line
3479 continued lines.
3480 (display_line): Overflow newline into fringe for rows that are
3481 exactly as wide as the window. Don't append space for newline
d7107586 3482 in this case.
77a9cf69
KS
3483 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3484 in fringe as if it had been overwritten.
3485 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3486 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3487 void-text-area-pointer as user options.
3488 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3489
77a9cf69
KS
3490 * xterm.c (x_update_window_end): Call draw_window_fringes.
3491 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3492 in row instead of actually drawing fringe bitmaps.
3493 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3494 (x_draw_window_cursor): Draw cursor in fringe.
3495
3496 * w32term.c (x_update_window_end): Call draw_window_fringes.
3497 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3498 in row instead of actually drawing fringe bitmaps.
3499 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3500 (w32_draw_window_cursor): Draw cursor in fringe.
3501
3502 * macterm.c (x_update_window_end): Call draw_window_fringes.
3503 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3504 in row instead of actually drawing fringe bitmaps.
3505 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3506 (mac_draw_window_cursor): Draw cursor in fringe.
3507
a633a954
JD
35082004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3509
3510 * xterm.c (handle_one_xevent): Don't handle characters that are part
3511 of an old style (XLookupString) compose sequence.
3512
80460525
KH
35132004-01-15 Kenichi Handa <handa@m17n.org>
3514
3515 * search.c (Freplace_match): Use make_multibyte_string or
3516 make_unibyte_string according to the buffer multibyteness.
3517
7fc34f85
SM
35182004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3519
3520 * alloc.c (struct interval_block, struct string_block)
3521 (struct symbol_block, struct marker_block, live_string_p)
3522 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3523 Better preserve alignment for objects in blocks.
3524 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3525
3526 * lread.c (defvar_per_buffer): Remove dead declaration.
3527
3528 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3529 space size.
3530
66070bd1
JD
35312004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3532
3533 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3534 if a key press should pop down. Only pop down if a key is pressed
3535 outside the menu/dialog.
3536 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3537 popup_get_selection.
3538 (create_and_show_dialog): Pass 1 for down_on_keypress to
3539 popup_get_selection.
3540
de7515d6
JD
35412004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3542
3543 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3544 BLOCK/UNBLOCK_INPUT.
3545
160b1b50
JD
35462004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3547
3548 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3549 specified.
3550
3a9f36e6
KH
35512004-01-08 Kenichi Handa <handa@m17n.org>
3552
3553 * editfns.c (Fformat): Fix '&' to '&&'.
3554
3803eb32
AS
35552004-01-08 Andreas Schwab <schwab@suse.de>
3556
3557 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3558 size if PSEUDOVECTOR_FLAG is set.
3559
9da88f37
KH
35602004-01-07 Kenichi Handa <handa@m17n.org>
3561
74ac5074
KH
3562 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3563
9da88f37
KH
3564 * fontset.c (fontset_ref_via_base): Fix previous change.
3565
05faee07
KS
35662004-01-07 Kim F. Storm <storm@cua.dk>
3567
3568 * process.c (read_process_output): Only activate adaptive
3569 buffering if we read less than 256 bytes at a time.
3570
634910c8
KS
35712004-01-06 Kim F. Storm <storm@cua.dk>
3572
3573 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3574 object and image object. Return glyph width and height.
3575 (mode_line_string, marginal_area_string): Ditto.
3576
3577 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3578 (marginal_area_string): Fix prototypes.
3579
3580 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3581 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3582 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3583
3584 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3585 buffer_posn_from_coords, and marginal_area_string functions to
3586 include both string object and image object in the lispy position.
3587 Also add actual glyph width and height to position.
3588 (read_key_sequence): Use real buffer position from mouse
3589 event to find keymap property even when click is in marginal area.
3590
3591 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3592 mode_line_string and marginal_area_string functions to handle
3593 both string object and image object properties.
d7107586 3594
57951c2e
AS
35952004-01-06 Andreas Schwab <schwab@suse.de>
3596
3597 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3598 character.
3599
181e6a61
AS
36002004-01-02 Andreas Schwab <schwab@suse.de>
3601
d7107586
SM
3602 * macterm.c (emacs_options, x_initialized, same_x_server):
3603 Remove unused (and duplicated) definitions.
181e6a61 3604
31e0fbdd
KS
36052004-01-02 Kim F. Storm <storm@cua.dk>
3606
3607 * process.h (struct Lisp_Process): New members for adaptive read
3608 buffering: adaptive_read_buffering, read_output_delay, and
3609 read_output_skip.
3610
3611 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3612 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3613 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3614 (process_output_delay_count, process_output_skip): New vars.
3615 (Vprocess_adaptive_read_buffering): New variable.
3616 (make_process): Initialize adaptive read buffering members.
3617 (Fstart_process): Set adaptive_read_buffering member.
3618 (deactivate_process): Cleanup adaptive read buffering.
3619 (wait_reading_process_input): Temporarily omit delayed
3620 subprocesses from the set of file descriptors to read from;
3621 adjust the select timeout if we skipped any subprocesses.
3622 (read_process_output): Increase adaptive read buffering delay if
3623 we read less than a full buffer; reduce delay when we read a
3624 full buffer.
3625 (send_process): Simplify using local Lisp_Process var.
3626 Reset adaptive read buffering delay after write.
3627 (init_process): Initialize process_output_delay_count and
3628 process_output_skip.
3629 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3630
68c6a789
JR
36312004-01-01 Jason Rumney <jasonr@gnu.org>
3632
d7107586 3633 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 3634
3f70fe82
LT
36352003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3636
3637 * print.c (Ferror_message_string): Add hyperlink in the docstring
3638 to the definition of `signal' in the Elisp manual.
3639 * eval.c (Fsignal): Ditto.
3640
a64387ee 36412003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
3642
3643 * fns.c (internal_equal): Return t for two NaN arguments.
3644
7abd90ea
RS
36452003-12-29 Richard M. Stallman <rms@gnu.org>
3646
3647 * data.c (store_symval_forwarding): Handle setting
3648 default-fill-column, etc., by changing the value in
3649 buffers that use the default.
3650
3651 * minibuf.c (Fset_minibuffer_window): Doc fix.
3652
3653 * fileio.c (choose_write_coding_system): Ignore auto_saving
3654 if using the visited file for auto saves.
3655 (Fwrite_region): Don't update SAVE_MODIFF
3656 if auto-saving in visited file.
3657
3e7cfcdc
KH
36582003-12-29 Kenichi Handa <handa@m17n.org>
3659
3660 * dispextern.h (face_font_available_p): Extern it.
3661
3662 * fontset.c (Voverriding_fontspec_alist): New variable.
3663 (lookup_overriding_fontspec): New function.
d7107586 3664 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
3665 (fontset_font_pattern): Likewise.
3666 (regulalize_fontname): New function.
3667 (Fset_fontset_font): Call regulalize_fontname.
3668 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
3669 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3670 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
3671
3672 * xfaces.c (face_font_available_p): New function.
3673
7abd90ea
RS
36742003-12-28 Richard M. Stallman <rms@gnu.org>
3675
3676 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3677 or if its name is nil.
3678
3679 * buffer.c (Fkill_buffer): Don't delete auto-save file
3680 if it's the same as the visited file.
3681
de1d1a40
LT
36822003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3683
3684 * coding.c (Fcheck_coding_system): Doc fix.
3685
204fb75e
KS
36862003-12-28 Kim F. Storm <storm@cua.dk>
3687
3688 * Makefile.in (eval.o): Depend on dispextern.h.
3689
3690 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3691 image glyph using image's ascent.
3692 (mode_line_string): Return image glyph as object clicked on.
3693 Adjust y0 for image glyph using image's ascent.
3694
3695 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3696 (struct glyph): New members, ascent and descent. Used to save
3697 this glyph's ascent and descent, instead of having.
3698 (struct glyph): Declare member face_id using FACE_ID_BITS.
3699 (find_hot_spot): Add prototype.
3700
3701 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3702 (QCmap): Declare extern.
3703 (make_lispy_position): When position is inside image hot-spot,
3704 use hot-spot element's id as posn element.
3705
3706 * lisp.h (IMAGEP): New macro to test for image object type.
3707 (Qimage): Declare extern.
3708
3709 * macfns.c (Qimage): Remove extern (now in lisp.h).
3710 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3711
3712 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3713
3714 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3715 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3716
3717 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3718
3719 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3720
3721 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3722 pointer types.
3723 (Qrelative_width, Qalign_to): Remove unused variables.
3724 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3725 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3726 image maps.
d7107586 3727 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
3728 new dx and dy args.
3729 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3730 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3731 than row's ascent and height, to get sensible height on tall rows.
3732 (build_desired_tool_bar_string): Remove Qimage extern.
3733 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3734 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3735 image glyph is alone on the last line.
3736 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 3737 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 3738 (on_hot_spot_p): New function to check if position is inside an
d7107586 3739 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
3740 (find_hot_spot): New function to search for image hot-spot.
3741 (Flookup_image_map): New defun to search for image hot-spot.
3742 (define_frame_cursor1): New aux function to determine frame pointer.
3743 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3744 Handle `pointer' text property and :pointer image property to
3745 control frame pointer shape. Detect image hot-spots for pointer
3746 and help_echo properties. Use define_frame_cursor1.
3747 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 3748 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
3749 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3750
3751 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3752
3753 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3754 (Qimage): Remove extern (now in lisp.h).
3755 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3756
3757 * xmenu.c (show_help_event): Remove unused code.
3758
3759 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3760 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3761 row's ascent and descent, to get a sensible height on tall rows.
3762
fc052137
LT
37632003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3764
3765 * minibuf.c (Fcompleting_read): Undo previous change.
3766
a64387ee 37672003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
3768
3769 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3770 Arguments GCPRO'ed in call to file name handler.
3771
56ffd194
TTN
37722003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3773
3774 * termcap.c (tgetst1): Scan for "%pN"; if all
3775 N are continuous in [1,9], remove all "%pN".
3776
5202d23d
JD
37772003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3778
f26fab36
JD
3779 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3780
5202d23d
JD
3781 * xfaces.c (lface_fully_specified_p): Take into account that
3782 MAC OS always have unspecified stipple.
3783
8babaa59
TTN
37842003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3785
3786 * tparam.c (tparam1): Add handling for `%pN', which
3787 means use param N for the next substitution.
3788
2d176448
TTN
37892003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3790
3791 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3792 In case `frame' is nil, consult the selected frame.
3793 (Fcolor_supported_p): Likewise.
3794
adb0708c
LT
37952003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3796
000eeb15
LT
3797 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3798 Doc fixes.
0dc72b11
LT
3799
3800 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3801 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
3802 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3803 Doc fix.
3804 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3805 read_minibuf.
3806 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 3807 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 3808
2e4d132b
KH
38092003-12-03 Kenichi Handa <handa@m17n.org>
3810
3811 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
3812 encoding sequence.
3813
3999c705
KH
38142003-12-01 Kenichi Handa <handa@m17n.org>
3815
3816 * composite.c (syms_of_composite): Don't make the compostion hash
3817 table week.
3818
d344ecbb
LT
38192003-11-30 Luc Teirlinck <teirllm@auburn.edu>
3820
3821 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
3822 * textprop.c (Fget_char_property_and_overlay): New function.
3823 (syms_of_textprop): Defsubr it.
3824
03d6484e
JD
38252003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3826
019b1f0e
JD
3827 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
3828 to compile on terminal configuration.
3829
03d6484e
JD
3830 * fileio.c (Fread_file_name): Check use_file_dialog also before
3831 calling Fx_file_dialog.
3832
3833 * fns.c: use_file_dialog: New variable.
3834 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
3835
442d3fd0
KS
38362003-11-29 Kim F. Storm <storm@cua.dk>
3837
3838 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
3839 (syms_of_msdos): Don't intern and staticpro them.
3840
0f6a07a8
KS
38412003-11-27 Kim F. Storm <storm@cua.dk>
3842
3843 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
3844 coordinates relative to glyph at posn. If glyph is an image,
3845 return that as object at posn. Callers changed.
3846 (mode_line_string, marginal_area_string): Calculate and return
3847 pixel coordinates relative to glyph. Callers changed.
3848
3849 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3850 (marginal_area_string): Fix prototypes.
3851 (window_box_left_offset, window_box_right_offset): Add prototypes.
3852
3853 * frame.h (get_specified_cursor_type, get_window_cursor_type):
3854 Remove prototypes.
3855
3856 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3857
3858 * keyboard.c (make_lispy_position): Add x and y coordinates
3859 relative to the current glyph as 7th element of position.
3860 If glyph is an image, return it in the object element.
3861 (read_key_sequence): Skip checks for keymap property in cases
3862 where POSN_STRING is not a string (e.g. an image).
3863
3864 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3865 (Vshow_text_cursor_in_void): New variable.
3866 (glyph_to_pixel_coords): Don't use negative hpos.
3867 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3868 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 3869 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
3870 (calc_pixel_width_or_height): New aux function, implementing
3871 pixel based artihmetic for glyph widths and heights.
3872 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3873 :width, :height, :align-to, and :ascent, thus allowing these to
3874 be specified in pixels as well as multiples of characters.
3875 Don't produce stretch glyphs with zero width or height.
3876 (get_specified_cursor_type): Declare static.
3877 (get_window_cursor_type): Declare static. Add glyph arg to be
3878 able to know when cursor is on an image; always substitute
3879 hollow-box cursor for filled-box cursor on images, to avoid
3880 negative images and flicker when blinking the cursor.
3881 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3882 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3883 than vertical scroll-bar cursor in display margins.
3884 (note_mouse_highlight): Use non-text cursor rather than text
3885 cursor in fringes and over images in the text area.
3886 Use non-text cursor when mouse pointer is outside editable text,
3887 i.e. in the void after end-of-line or end-of-buffer; this was
3888 already done for W32, but is now standard for all systems --
3889 user can toggle show-text-cursor-in-void to get old behaviour.
3890 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3891 Vdisplay_pixels_per_inch.
3892
00498bfc
AS
38932003-11-25 Andreas Schwab <schwab@suse.de>
3894
3895 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3896 EMACS_INT to not lose bits.
3897 (Ffillarray): Don't set bits beyond the size of a bool vector.
3898
edaa824d
KS
38992003-11-25 Kim F. Storm <storm@cua.dk>
3900
3901 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3902 define this defun on systems that cannot use stderr as lvalue.
3903
74d6f539
GM
39042003-11-24 Gerd Moellmann <gerd@gnu.org>
3905
3906 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3907 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3908 ld's default is incompatible with unexec.
3909
6a1ff3ba
KS
39102003-11-23 Kim F. Storm <storm@cua.dk>
3911
63dc7c6b
KS
3912 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3913 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3914 (Fforce_window_update): New defun.
3915 (syms_of_window): Defsubr it.
3916 (Fset_window_margins, Fset_window_fringes): Doc fix.
3917
6a1ff3ba
KS
3918 * print.c (Fredirect_debugging_output): New defun.
3919 (syms_of_print): Defsubr it.
3920
aef109b7
LT
39212003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3922
3923 * fns.c (Fset_char_table_parent): Doc fix.
3924
6a1ff3ba 39252003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
3926
3927 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3928 for glyph clicked on, rather than (unused) pixel positions.
3929 (mode_line_string, marginal_area_string): Change X and Y args to
3930 pointers for returning actual row/column for glyph clicked on.
3931 Simplify and optimize loops.
3932
aef109b7
LT
3933 * dispextern.h (mode_line_string, marginal_area_string):
3934 Update prototypes.
63ccbe21
KS
3935
3936 * keyboard.c (make_lispy_position): New function for generating
3937 mouse click positions from frame and pixel coordinates.
3938 Enhanced to return buffer position and actual row/column for
3939 events outside the text area using updated mode_line_string and
3940 marginal_area_string functions.
3941 Return left-fringe and right-fringe clicks as such, rather than
3942 clicks in text area.
3943 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3944 pixel_to_glyph_coords, as we never use the results.
3945 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3946 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3947 Eliminate unused code in WHEEL_EVENT handling.
3948 (make_lispy_movement): Use make_lispy_position.
3949
3950 * window.c (coordinates_in_window): Remove redundant tests.
3951 Fix returned X pixel value for left-margin.
3952
3953 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3954 mode_line_string and marginal_area_string parameters.
3955
a64387ee 39562003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 3957
d7107586
SM
3958 * w32.c (struct the_group, getgrgid): Add.
3959 * mac.c (struct my_group, getgrgid): Add.
aef109b7 3960
3dbf3426
LT
39612003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3962
3963 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3964
cae8ddbb 39652003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 3966
d7107586
SM
3967 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3968 include in call to file name handler. Optionally translate numeric
3969 UID and GID to strings. Update docstring.
3970 (directory_files_internal): Add parameter ID-FORMAT.
3971 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3972 include in call to file name handler and call to
3973 directory_files_internal. Update Docstring.
3974 (Fdirectory_files): Add dummy parameter in call to
3975 directory_files_internal.
3976 * lisp.h (Qinteger): Add.
3977 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3978 (Ffile_attributes): Add parameter.
3979 * data.c (Qinteger): Export.
cae8ddbb 3980
2550b848
LT
39812003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3982
3dbf3426 3983 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 3984
88380018
KS
39852003-11-19 Kim F. Storm <storm@cua.dk>
3986
3987 * xdisp.c (init_iterator): Initialize it->start to position
3988 before reseating (in case start position is invisible).
3989 (init_to_row_start): Set it->start to row-start.
3990 (redisplay_window): Accept optional_new_start if start position
3991 is invisible (in which case IT_CHARPOS overshoots PT).
3992 (display_line): Setup row->start from it->start (rather than
3993 it->current which is wrong if first char on line is invisible).
3994 When done, reseat it->start to it->current (= start of next row).
3995 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3996 is only partially visible.
3997
3998 * dispextern.h (struct it): New member start.
3999
854c1a59
SM
40002003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4001
455316e2
SM
4002 * alloc.c (make_float, Fcons): Clear the markbit at init time.
4003 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
4004 of block_index outside of the macro call.
4005 (Fgarbage_collect): Remove null code.
4006
4007 * m/amdx86-64.h: Don't redefine XPNTR.
4008
854c1a59
SM
4009 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
4010 of VALMASK.
4011
4012 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
4013 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
4014 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
4015
4016 * lisp.h (VALMASK): Only define for non-union type.
4017 (MARKBIT): Remove.
4018 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
4019 (XTYPE): Define unconditionally.
4020 (XSETTYPE): Remove one more remnant.
4021 (EQ): Define differently for the union and non-union cases.
4022 (INTMASK): New bit mask.
4023 (struct Lisp_Marker): Move down to prepare for upcoming patch.
4024 (GC_EQ): Delegate to EQ.
4025
4026 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
4027
a0c6ef2d
JD
40282003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4029
4030 * xterm.c (x_window_to_scroll_bar): Move check of display to
4031 where window_id is compared.
4032
859492c4
KS
40332003-11-17 Kim F. Storm <storm@cua.dk>
4034
4035 * dispextern.h (struct it): New member first_vpos.
4036
4037 * xdisp.c (start_display): Set it->first_vpos.
4038 (try_window_id): Use first_vpos to start display in first _text_
4039 line if no reusable lines at start of window with header line.
4040
810f2256
JD
40412003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4042
7c402969 4043 * w32fns.c (XPutPixel):
854c1a59
SM
4044 * w32bdf.c (w32_init_bdf_font):
4045 * sunfns.c (sel_read):
4046 * process.c (Fmake_network_process):
4047 * frame.c (store_frame_param):
4048 * fontset.c (Fset_fontset_font):
4049 * emacs.c (shut_down_emacs):
a64387ee 4050 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 4051
a32e9bfd
JD
4052 * config.in: Regenerate.
4053
810f2256
JD
4054 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4055 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4056 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
4057 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
4058 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
4059
4060 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
4061
4062 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
4063 (XTmouse_position, handle_one_xevent): Pass Display* to
4064 x_window_to_scroll_bar.
4065 (x_window_to_scroll_bar): Take a Display* argument.
4066 Check that display for frame is equal to Display* argument.
854c1a59 4067 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
4068 x_display_info_for_display instead. Use Display in xev instead
4069 of GDK_DISPLAY.
4070 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 4071 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
4072 (x_connection_closed): Call xg_display_close for GTK.
4073 (x_term_init): Call xg_display_open for additional displays.
4074 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
4075 for GTK.
4076
4077 * xmenu.c (single_menu_item, mouse_position_for_popup)
4078 (x_activate_menubar): Formatting adjustments.
4079
4080 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
4081 adjustments.
4082
4083 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
4084 (xg_display_close, xg_create_default_cursor)
4085 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
4086 handling.
854c1a59
SM
4087 (xg_left_ptr_cursor): Remove.
4088 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
4089 cursor here.
4090 (xg_win_to_widget): Take Display* argument, call
4091 gdk_xid_table_lookup_for_display.
4092 (xg_create_frame_widgets, xg_get_file_name, create_menus)
4093 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
4094 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
4095 in FRAME_X_DISPLAY_INFO.
4096 (xg_get_scroll_id_for_window): Take Display* argument.
4097 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 4098 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
4099
4100 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
4101 Display* argument also. Declare xg_display_open,
4102 xg_display_close, xg_create_default_cursor.
4103
0b03cc78
JD
41042003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4105
4106 * xterm.c (x_detect_focus_change): Do not change focus frame for
4107 Enter/LeaveNotify if the current focus frame has explicit focus.
4108
77e688fa
KS
41092003-11-14 Kim F. Storm <storm@cua.dk>
4110
4111 * dispnew.c (update_text_area): Fix redisplay error when hscroll
4112 is active and first glyph is only partially visible.
854c1a59 4113
dd429b03
KH
41142003-11-13 Kenichi Handa <handa@m17n.org>
4115
4116 * xdisp.c (select_frame_for_redisplay): New function.
4117 (redisplay_internal): Record also selected_frame for
4118 unwind_redisplay. Call select_frame_for_redisplay before
4119 redrawing each frame.
4120 (unwind_redisplay): Argument changed to a cons.
4121
6d9266f4
LT
41222003-11-12 Luc Teirlinck <teirllm@auburn.edu>
4123
4124 * fns.c (Fstring_to_multibyte): Doc fix.
4125
80060eb3
KH
41262003-11-11 Kenichi Handa <handa@m17n.org>
4127
4128 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4129
74305183
JD
41302003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4131
4132 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4133 program specified positions.
4134
cfda993e
JD
41352003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4136
4137 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
4138
df211069
KH
41392003-11-08 Kenichi Handa <handa@m17n.org>
4140
4141 * Makefile.in (lisp): Add kannada.el.
4142 (shortlisp): Likewise.
4143
4307d534
KH
41442003-11-07 Kenichi Handa <handa@m17n.org>
4145
854c1a59
SM
4146 * coding.c (coding_allocate_composition_data):
4147 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
4148 (coding_restore_composition): Detect invalid composition data.
4149 Give Fstring and Fvector a Lispy integer, not C int.
4150
854c1a59
SM
41512003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
4152
4153 * floatfns.c (Flogb): Don't use VALMASK.
4154
4155 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
4156 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
4157
4158 * lisp.h (XINT): Move the cast to clarify what is going on.
4159 (GCTYPEMASK, XSETTYPE): Remove.
4160 (XGCTYPE): Make it an alias of XTYPE.
4161
d04103a1
JD
41622003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4163
4164 * xterm.c (x_term_init): Fix formatting.
4165
da18b5ac
JD
41662003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4167
4168 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
4169 and xg_did_tearoff.
4170
4171 * gtkutil.c: Remove variable xg_did_tearoff.
4172 (xg_have_tear_offs): New function.
4173 (tearoff_remove): Just decrease xg_detached_menus.
4174 (tearoff_activate): Increase xg_detached_menus and call
4175 tearoff_remove when tearoff is removed.
854c1a59 4176 (xg_keep_popup): Remove function.
da18b5ac
JD
4177 (create_menus): Give add_tearoff_p as argument to recursive
4178 call to create_menus.
4179 (xg_create_widget): Use variables instead of multiple
4180 strcmp. Tell create_menus to create tear off only for
4181 menu bar menus.
4182 (xg_update_menubar): Change title for a detached menu also.
4183 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
4184 of deep_p.
4185 (xg_initialize): Initialize xg_detached_menus, remove
4186 initialization of xg_did_tearoff.
4187
4188 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
4189 xg_have_tear_offs returns non-zero.
4190 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
4191 call to xg_keep_popup.
4192
64d4923e
AC
41932003-11-01 Andrew Choi <akochoi@shaw.ca>
4194
4195 * macterm.c (XTread_socket): Handle menubar selection and grow
4196 window only for mouseDown events.
854c1a59 4197
6cc8bc07
JD
41982003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4199
4200 * xterm.c (x_term_init): For GTK part, increase x_initialized
4201 to check for more than one display. Use error instead of return 0.
4202
043131c4
AC
42032003-10-31 Andrew Choi <akochoi@shaw.ca>
4204
854c1a59 4205 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
4206 (copy_dysymtab): Call it.
4207
bdda99a1
LT
42082003-10-31 Luc Teirlinck <teirllm@auburn.edu>
4209
4210 * eval.c (Fdefvaralias): Doc fix.
4211
800f42ff 42122003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
4213
4214 * data.c (Fsetplist): Doc fix.
4215
ef35b389
LK
42162003-10-14 Lute Kamstra <lute@gnu.org>
4217
4218 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 4219
ef35b389 42202003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 4221
07107abc
KS
4222 * window.c (Fset_window_margins): Simplify arg checking.
4223
f7005886
RS
42242003-10-13 Richard M. Stallman <rms@gnu.org>
4225
4226 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
4227 (print_partial_compiled_pattern): Replace assert with a printout.
4228 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
4229
4230 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
4231
4232 * window.c (Fset_window_margins): Allow only integers as args.
4233 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
4234 Doc fixes.
4235
9c0c2af5
LK
42362003-10-13 Lute Kamstra <lute@gnu.org>
4237
4238 * window.c (Fset_window_fringes): Elaborate docstring.
4239
3f080e4e
AC
42402003-10-12 Andrew Choi <akochoi@shaw.ca>
4241
854c1a59 4242 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 4243
3f080e4e
AC
4244 * s/darwin.h (GC_MARK_STACK): Define.
4245
0aa513ed
JD
42462003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4247
4248 * window.c (shrink_windows): New function.
4249 (size_window): Call shrink_windows to calculate window sizes when
4250 shrinking frame with more than one window.
4251
6aa8858a
KS
42522003-10-12 Kim F. Storm <storm@cua.dk>
4253
4254 * xdisp.c (compute_fringe_widths): Doc fix.
4255
c2164d91
KH
42562003-10-08 Kenichi Handa <handa@m17n.org>
4257
854c1a59 4258 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 4259
f82ac129
KH
42602003-10-07 Kenichi Handa <handa@m17n.org>
4261
4262 * coding.c (Qcoding_system_define_form): New variable.
4263 (syms_of_coding): Intern and staticpro it.
4264 (Fcheck_coding_system): Try to autoload the definition of
4265 CODING-SYSTEM.
4266
9296c947
LT
42672003-10-05 Luc Teirlinck <teirllm@auburn.edu>
4268
4269 * fns.c (Frequire): Doc fix.
4270
c1f0671a
JD
42712003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4272
3d8c3826
JD
4273 * xfns.c (Fx_send_client_event): New function as a base for
4274 manipulating extended window manager hints.
6dc15d98 4275 (Fx_send_client_event): Remove unused variable s.
3d8c3826 4276
068ae0fd
JD
4277 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
4278 that function is removed.
4279
4280 * xterm.c (x_set_offset): Use move_offset_left/top instead of
4281 x/y_pixels_outer_diff.
4282 (x_check_expected_move): Calculate move_offset_left/top.
4283
4284 * xterm.h (struct x_output): New members: move_offset_top/left.
4285
854c1a59 4286 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
4287 call x_set_offset directly.
4288
4289 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
4290
96f09305
JD
4291 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
4292
4293 * xterm.c (x_delete_display): Free font names and font_encoder
4294 in dpyinfo->font_table.
4295
854c1a59
SM
4296 * xfns.c (Fx_close_connection): Only call XFreeFont here.
4297 Move xfree of font names to x_delete_display.
96f09305 4298
c1f0671a
JD
4299 * xterm.h (struct x_display_info): New member, wm_type.
4300 (struct x_output): New members, expected_top/left and
4301 check_expected_move.
4302
4303 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
4304 is received.
854c1a59
SM
4305 (handle_one_xevent): Rename x_check_expected_move from
4306 x_check_fullscreen_move.
c1f0671a
JD
4307 (x_set_offset): Only add WM decoration sizes to modified_top/left
4308 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 4309 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
4310 Removed fullscreen specific code. Use check_expected_move,
4311 expected_left/top instead. Also, set wm_type.
4312 (x_term_init): Initialize wm_type to unknown.
4313
4314 * frame.c (x_fullscreen_move): Remove addition of WM decoration
4315 sizes to move_x/y.
4316
be2fdba9
KH
43172003-10-03 Kenichi Handa <handa@m17n.org>
4318
4319 * macterm.c (x_load_font): Clear all members of FONTP before start
4320 filling them.
4321
43222003-10-02 Kenichi Handa <handa@m17n.org>
4323
4324 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
4325 before calling find_ccl_program_func. Call find_ccl_program_func
4326 only when fontp->font_encoder is not NULL.
4327
4328 * xterm.c (x_load_font): Clear all members of FONTP before start
4329 filling them.
4330
26a6e439
JPW
43312003-10-03 John Paul Wallington <jpw@gnu.org>
4332
4333 * keymap.c (map_keymap): Don't abort when binding is a vector.
4334
0d4c2dc2
JR
43352003-10-02 Jason Rumney <jasonr@gnu.org>
4336
854c1a59
SM
4337 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
4338 Sync dependencies with Makefile.in.
a63cf46f
JR
4339 (alloca.o): Remove.
4340
0d4c2dc2
JR
4341 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
4342 filling them.
4343
4344 * w32bdf.c (w32_load_bdf_font): Likewise.
4345
ab8f7d5c
RS
43462003-09-30 Richard M. Stallman <rms@gnu.org>
4347
4348 * term.c (set_tty_color_mode): Calculate current_mode_spec
4349 regardless of value of VAL.
4350
854c1a59 4351 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
4352 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
4353 Handle over_used when splitting UNDER.
4354
a64387ee 43552003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
4356
4357 * regex.c (regex_compile): Free the stack when returning from function.
4358
3413f972
KH
43592003-09-28 Kenichi Handa <handa@m17n.org>
4360
4361 * fontset.c (Finternal_char_font): Change return value to
4362 cons (FONT-NAME . GLYPH-CODE).
4363
a6eeaa81 43642003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
4365
4366 * term.c (tty_setup_colors): Treat any negative argument as -1.
4367
f98ddc99
KH
43682003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
4369
4370 * process.c (send_process): Delete unused temp_buf.
4371
66c8f1a8
DL
43722003-09-26 Dave Love <fx@gnu.org>
4373
4374 * xterm.c (x_bitmap_mask): Declare.
4375
ca716c26
DL
43762003-09-25 Dave Love <fx@gnu.org>
4377
4378 * Makefile.in (fns.o): Depend on md5.h.
4379
fbe57420
KS
43802003-09-25 Kim F. Storm <storm@cua.dk>
4381
4382 * window.c (set_window_buffer): Fix redisplay problems when
4383 switching between buffers with different display margin widths.
4384
ef6ae4ff
KS
43852003-09-23 Kim F. Storm <storm@cua.dk>
4386
4387 * process.c (set_socket_option): Fix :bindtodevice option.
4388 (Fset_network_process_option): Update process contact list when
4389 setting option succeeds.
4390 (Fmake_network_process): Doc fix.
4391
68e03c1c
DL
43922003-09-23 Dave Love <fx@gnu.org>
4393
7146d1c1 4394 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 4395
a6eeaa81 43962003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
4397
4398 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
4399 color mode is an integer number (it could be -1).
4400
8fe7d8c8
RS
44012003-09-22 Richard M. Stallman <rms@gnu.org>
4402
4403 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4404 in the case where OVER is longer than UNDER.
4405
2f71b5ea
MY
44062003-09-22 Masatake YAMATO <jet@gyve.org>
4407
7146d1c1 4408 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4409 `vertical_type'.
7146d1c1 4410
0c4da023
KS
44112003-09-21 Kim F. Storm <storm@cua.dk>
4412
4413 * frame.c (Vdefault_frame_scroll_bars): New variable.
4414 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
4415 (syms_of_frame): DEFVAR_LISP it, and initialize according to
4416 window-system default scroll bar position.
4417
b648413b
KS
4418 * window.c (Fwindow_scroll_bars): Doc fix.
4419
8f5b9e34
JD
44202003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4421
854c1a59 4422 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 4423
b0f23edf
RS
44242003-09-19 Richard M. Stallman <rms@gnu.org>
4425
4426 * atimer.h: Don't include lisp.h.
4427 (P_): Define it here (as well as elsewhere).
4428
4429 * print.c (Fprin1_to_string): Move the PRINTPREPARE
4430 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
4431
4432 * data.c (Fvariable_binding_locus): New function.
4433 (syms_of_data): defsubr it.
4434 (Flocal_variable_p): Delete duplicate call to indirect_variable.
4435
e1283999
DL
44362003-09-18 Dave Love <fx@gnu.org>
4437
ad5f3636
DL
4438 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
4439
e1283999
DL
4440 * process.c (Fnetwork_interface_info): Fix type error.
4441 (Fnetwork_interface_list): Doc fix.
4442 (read_process_output, read_process_output): Delete unused var.
4443
b8c7fd71
KS
44442003-09-17 Kim F. Storm <storm@cua.dk>
4445
4446 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4447 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4448 (Fnetwork_interface_info): Check that ifreq struct has required
4449 fields before accessing them; this requires that those fields are
4450 defined as macros, which may be too restrictive on some platforms,
4451 but it is better than failing on other platforms.
4452 (syms_of_process): Only defsubr above fns when included.
4453
11e0a411
DL
44542003-09-17 Dave Love <fx@gnu.org>
4455
4456 * unexalpha.c: Don't include varargs.h.
4457
e9c50801
KS
44582003-09-17 Kim F. Storm <storm@cua.dk>
4459
4460 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4461 for network process.
4462 (socket_options): Add `:' prefix to option names. Add optbit field.
4463 (set_socket_option): Remove no_error arg and special handling of s < 0.
4464 Return 1<<optbit for known option, 0 for unknown.
4465 Do not interpret 0 as false for boolean option (only nil).
4466 Pass failed option and value to report_file_error.
7146d1c1 4467 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4468 (Fset_network_process_option): New function to set just one option.
4469 (Fmake_network_process): Allow :coding arg to be a cons.
4470 Allow :server arg to be an integer specifying backlog size.
4471 Remove :options arg, and allow options to be specified directly
4472 as :KEY, VALUE pairs. Parse these options before binding socket.
4473 As before, :reuseaddr t is default for a server process, but this
4474 can now be disabled by specifying :reuseaddr nil.
4475 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4476 (init_process): Availability of network options is now checked with
4477 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4478 setup features.
4479 (syms_of_process): Fix defsubr's for the replaced functions.
4480
a0fc3644
DL
44812003-09-16 Dave Love <fx@gnu.org>
4482
4483 * Makefile.in: Depend on coding.h.
4484
6df2a645
KS
44852003-09-14 Kim F. Storm <storm@cua.dk>
4486
4487 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4488 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4489 (syms_of_process): Defsubr them.
4490
4491 * config.in: Regenerate.
7146d1c1
SM
4492
44932003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4494
4495 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4496 * m/news-r6.h (XUNMARK): Remove.
4497 * m/mips.h (XUNMARK): Remove.
4498 * m/mips-siemens.h (XUNMARK): Remove.
4499 * m/iris4d.h (XUNMARK): Remove.
4500 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4501
0930c1a1
SM
45022003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4503
31003b9e
SM
4504 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4505 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4506 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4507 (XTYPE): Use unsigned right-shift.
4508 (XMARKBIT, XMARK, XUNMARK): Remove.
4509
0930c1a1
SM
4510 * alloc.c (init_intervals, init_symbol, init_marker):
4511 Don't preallocate anything.
4512 (Fgarbage_collect, mark_object): Ignore the markbit.
4513
4514 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4515
19bb0fcd 45162003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4517
4518 * xdisp.c (pint2hrstr): New function.
4519 (decode_mode_spec): Add `%i' and `%I' specs.
4520 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4521 for `mode-line-format'.
4522
03bb6a06
AS
45232003-09-07 Andreas Schwab <schwab@suse.de>
4524
4525 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4526 avoid warning.
4527
a6eeaa81 45282003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4529
0930c1a1 4530 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4531
ed159bbf
KS
45322003-09-03 Kim F. Storm <storm@cua.dk>
4533
4534 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4535 change (superseded by 2002-08-30 change); the default blink-off
4536 cursor is now again "no cursor".
4537
fe64a394
JR
45382003-09-01 Jason Rumney <jasonr@gnu.org>
4539
4540 * makefile.w32-in (alloca.o): Remove.
4541 (coding.o): Depend on intervals.h
4542 (emacs.o, bytecode.o): Depend on window.h
4543
c0175e24
DL
45442003-09-01 Dave Love <fx@gnu.org>
4545
4546 * Makefile.in (alloca.o): Remove commands.
4547 (coding.o): Depend on intervals.h composite.h window.h.
4548 (emacs.o): Depend on window.h keyboard.h keymap.h.
4549 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4550 (bytecode.o): Depend on window.h.
4551
a24d4cb2
JR
45522003-08-31 Jason Rumney <jasonr@gnu.org>
4553
4bc2315e
JR
4554 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4555 returned even when font_type is unknown.
4556
a24d4cb2
JR
4557 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4558
9d35adc7
JD
45592003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4560
4561 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4562
4563 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4564 *_offset.
4565
4566 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4567 calculate pixel value.
4568
6f68b035
GM
45692003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4570
0930c1a1
SM
4571 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4572 Don't tell redisplay display is accurate when it's actually been
4573 paused for pending input.
6f68b035 4574
4828b4d7
RS
45752003-08-29 Richard M. Stallman <rms@gnu.org>
4576
4577 * dispnew.c (adjust_glyph_matrix): Call window_box
4578 whenever W is nonzero.
4579
4580 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4581 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4582 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4583 Use indirect_variable to trace thru variable aliases.
4584
4585 * config.in: Updated.
4586
4587 * callint.c (Fcall_interactively): Save and restore
4588 Vthis_command, Vthis_original_command, real_this_command,
4589 and current_kboard->Vlast_command.
4590
4591 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4592
e019878d
GM
45932003-08-29 Gerd Moellmann <gerd@gnu.org>
4594
4595 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4596
85478bc6
KH
45972003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4598
0930c1a1 4599 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4600 (decode_coding_sjis_big5): Likewise.
4601
07ce82d3
JR
46022003-08-27 Jason Rumney <jasonr@gnu.org>
4603
d3703de3
JR
4604 * w32.c (sys_pipe): Protect against file descriptor overflow.
4605
ee4a01d1
JR
4606 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4607
07ce82d3
JR
4608 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4609
a64387ee 46102003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4611
4612 * xfns.c (Vgtk_version_string): New variable.
4613 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4614
a6eeaa81 46152003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4616
0930c1a1 4617 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4618
5459e42a
EZ
4619 * Makefile.in (msdos.o): Depend on intervals.h.
4620
0930c1a1 4621 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4622
231d6cfb
JD
46232003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4624
4625 * xterm.h (struct x_display_info): New fields: client_leader_window
4626 and Xatom_wm_client_leader.
4627
4628 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4629 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4630
4631 * xsmfns.c (create_client_leader_window): New function.
4632 (x_session_initialize): Call create_client_leader_window, take
4633 dpyinfo as argument.
4634
4635 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4636
4637 * Makefile.in (xsmfns.o): Add more depenedencies.
4638
afa88464
DL
46392003-08-21 Dave Love <fx@gnu.org>
4640
4641 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4642
f730033e
KH
46432003-08-21 Kenichi Handa <handa@m17n.org>
4644
4645 * term.c (term_init): Fix previous change; don't rely on the
4646 length of `buffer' if TERMINFO is defined.
4647
6dca786c
DL
46482003-08-20 Dave Love <fx@gnu.org>
4649
4650 * atimer.h: Include lisp.h.
4651
4652 * lisp.h (EMACS_LISP_H): New.
4653 (popup_activated_flag): Don't declare.
4654
4655 * alloca.c: Some merging with gnulib. Change logic and doc
4656 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4657 [DO_BLOCK_INPUT]: Don't include lisp.h.
4658 (xmalloc, xfree): Declare.
4659 (malloc): Don't declare.
4660
0930c1a1 4661 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
4662 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4663 atimer.h, blockinput.h.
4664
4665 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4666
4667 * alloca.s: Removed.
4668
3a06a6d9
RS
46692003-08-19 Gerd Moellmann <gerd@gnu.org>
4670
4671 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4672 use -lncurses.
4673
4674 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4675 FreeBSD returns something longer than 2044. Abort if the end of
4676 the buffer is overwritten.
4677
27eeee55
MB
46782003-08-19 Miles Bader <miles@gnu.org>
4679
4680 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4681
2f297815
GM
46822003-08-19 Gerd Moellmann <gerd@gnu.org>
4683
f4446bbf
GM
4684 * alloc.c (lisp_align_malloc): Check for memory full when
4685 allocating ablocks, which also avoids freeing a pointer into an
4686 ablocks structure.
4687
4688 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4689
0930c1a1 4690 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 4691
0e7d7aae
RS
46922003-08-16 Richard M. Stallman <rms@gnu.org>
4693
4694 * editfns.c (Fencode_time): Doc fix.
4695
46962003-08-16 David Ponce <david@dponce.com>
4697
4698 * fileio.c (Fwrite_region): Fix conditional expression to issue
4699 the right message.
4700
47012003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4702
4703 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 4704 Set default value to 1.
0e7d7aae 4705
5d551295
KH
47062003-08-15 Kenichi Handa <handa@m17n.org>
4707
4708 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4709 what autoscaled.
4710 (best_matching_font): Once we find a better scalable font, set
4711 non_scalable_has_exact_height_p to 1.
4712 (try_font_list): Call try_alternative_families to try any family
4713 with the given registry.
4714
1661e56b
AS
47152003-08-09 Andreas Schwab <schwab@suse.de>
4716
f29181dc
AS
4717 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4718
1661e56b
AS
4719 * print.c (print_string): Fix printing of multibyte string with
4720 nontrivial printcharfun.
4721
465aa50a
JD
47222003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4723
4724 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4725
4726 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4727
e430e5ba
KH
47282003-07-31 Kenichi Handa <handa@m17n.org>
4729
4730 * process.c (read_process_output): Return the actually read bytes
4731 instead of the result of decoding.
4732
97e7188e
KH
47332003-07-31 Kenichi Handa <handa@m17n.org>
4734
4735 * xterm.h (struct x_bitmap_record): New member have_mask.
4736
4737 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4738 to 0.
4739 (x_create_bitmap_from_file): Likewise.
4740 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4741 (x_destroy_all_bitmaps): Likewise.
4742 (x_create_bitmap_mask): Set have_mask member to 1.
4743
b53094d6
RS
47442003-07-30 Richard M. Stallman <rms@gnu.org>
4745
4746 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4747
631f2082
JD
47482003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4749
4750 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4751
c855f2ca
RS
47522003-07-29 Richard M. Stallman <rms@gnu.org>
4753
4754 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4755 Conditionalize XIM code on HAVE_XIM.
4756
4757 * fns.c (Fclear_string): New function.
4758 (syms_of_fns): defsubr it.
4759
17e6d491
KH
47602003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4761
0930c1a1 4762 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 4763
29ea8ae9
SM
47642003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4765
4766 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4767
4768 * buffer.c (delete_all_overlays): New function.
4769 * buffer.h (delete_all_overlays): Declare.
4770 * coding.c (run_pre_post_conversion_on_str):
4771 * print.c (temp_output_buffer_setup):
4772 * fileio.c (Finsert_file_contents):
4773 * minibuf.c (get_minibuffer): Use it.
4774
1dd7ccf2
AC
47752003-07-22 Andrew Choi <akochoi@shaw.ca>
4776
4777 * unexmacosx.c (unexec_regions_sort_compare):
4778 (unexec_regions_merge): New functions. Sort and merge unexec
4779 regions before dumping them.
4780
f57bd967
DL
47812003-07-22 Dave Love <fx@gnu.org>
4782
4783 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4784
7cdee936
SM
47852003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4786
4787 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4788 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4789 MARKBIT as the gcmarkbit for strings.
4790
e50886d3
RS
47912003-07-21 Richard M. Stallman <rms@gnu.org>
4792
4793 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4794
29ea8ae9 4795 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
4796 (syms_of_fns): Corresponding change.
4797
4798 * alloc.c (syms_of_alloc): Doc fixes.
4799
48002003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4801
4802 * s/netbsd.h: Use -Wl syntax.
4803
fdc39b59
RS
48042003-07-17 Richard M. Stallman <rms@gnu.org>
4805
4806 * xterm.c (xim_initialize): Redo 6/24 change.
4807
9c53385f
SM
48082003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4809
4810 * buffer.c (copy_overlays): Use EMACS_INT for positions.
4811 (Fswitch_to_buffer): Don't signal an error when switching to the same
4812 buffer in a dedicated window.
4813
4814 * alloc.c: Use bitmaps for cons, as was done for floats.
4815 (init_float, init_cons): Let the normal code allocate the first block.
4816 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
4817 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
4818 New macros.
4819 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
4820 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
4821 (live_cons_p): Check the pointer is not past the `conses' array.
4822 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
4823 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
4824 (survives_gc_p): Use CONS_MARKED_P and simplify.
4825 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
4826
dde13196
PE
48272003-07-13 Paul Eggert <eggert@twinsun.com>
4828
4829 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
4830 puts it into BSS instead, at least on Solaris 8 and 9.
4831 This is a valid optimization, and it may occur on other platforms,
4832 so Emacs should not assume that initializing a static variable to
4833 zero puts it into data.
4834 * alloc.c (pure, staticvec):
4835 Initialize these arrays to nonzero, so that they're not
4836 put into BSS by that optimization.
4837
a801bc34
SM
48382003-07-13 Stefan Monnier <monnier@cs.yale.edu>
4839
4840 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
4841 (lisp_align_malloc): Use posix_memalign is available.
4842 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
4843 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
4844 for consistency. Update users.
4845
0c8b2afa
RS
48462003-07-13 Richard M. Stallman <rms@gnu.org>
4847
4848 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
4849
668c2ab0
JB
48502003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
4851
4852 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
4853 and use the Gtk+ function gtk_window_icon_from_file if available.
4854
4855 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4856 handle mask of bitmaps.
4857 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4858 mask property.
4859 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4860
4861 * xterm.h (xg_set_icon): New function.
4862
800bebe3
RS
48632003-07-12 Paul Eggert <eggert@twinsun.com>
4864
4865 * unexelf.c (unexec): Consider a section to precede the .bss
4866 section if its addresses overlap that of .bss.
4867
69e38995
RS
48682003-07-12 Richard M. Stallman <rms@gnu.org>
4869
4870 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4871
4872 * config.in (HAVE_CRTIN): Add #undef.
4873 (INLINE): Really inline only if OPTIMIZE is defined.
4874
4875 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4876 END_FILES_1.
4877 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 4878 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
4879
4880 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
4881 (TERMINFO): Define.
4882 (LIBS_TERMCAP): Define.
4883 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
4884
4885 * xfns.c: Include libpng/png.h instead of png.h.
4886
f1d0c238
AS
48872003-07-11 Andreas Schwab <schwab@suse.de>
4888
4889 * buffer.c (modify_overlay): Update prototype.
4890 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4891 Likewise.
4892
5f6bf5fe
SM
48932003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4894
4895 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4896 (struct interval): Move to intervals.h.
4897 (struct Lisp_Marker): Use EMACS_INT for position info.
4898 (forward_point): Remove prototype of defunct function.
4899 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4900 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4901 (syms_of_textprop, set_text_properties): Remove prototypes that are
4902 already in intervals.h.
4903
4904 * intervals.h (struct interval): Move from lisp.h.
4905 Use EMACS_INT for position and size info.
4906
4907 * coding.c: Include intervals.h for Fset_text_properties.
4908
4909 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4910 position and length information.
4911
2765b457
SM
49122003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4913
4914 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4915 position and length information.
4916
2410d73a
SM
49172003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4918
4919 Change overlays_after and overlays_before so the overlays themselves
4920 are linked into lists, rather than using cons cells. After all each
4921 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4922 Lisp_Overlay for free and save up one cons cell per overlay (not
4923 to mention one indirection when traversing the list of overlay).
4924
4925 * lisp.h (struct Lisp_Overlay): New field `next'.
4926
4927 * buffer.h (struct buffer): Change overlays_before and overlays_after
4928 from Lisp lists of overlays to pointers to overlays.
4929
4930 * buffer.c (overlay_strings, recenter_overlay_lists):
4931 Fix typo in eassert in last commit.
4932 (unchain_overlay): New function.
4933 (add_overlay_mod_hooklist): Use AREF.
4934 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4935 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4936 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4937 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4938 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4939 Adjust to new type of overlays_(before|after).
4940
4941 * alloc.c (mark_object): Mark the new `next' field of overlays.
4942 (mark_buffer): Manually mark the overlays_(after|before) fields.
4943
4944 * coding.c (run_pre_post_conversion_on_str):
4945 * editfns.c (overlays_around):
4946 * xdisp.c (load_overlay_strings):
4947 * fileio.c (Finsert_file_contents):
4948 * indent.c (current_column):
4949 * insdel.c (signal_before_change, signal_after_change):
4950 * intervals.c (set_point_both):
4951 * print.c (temp_output_buffer_setup): Use new type for
4952 overlays_(before|after).
4953
04812929
SM
49542003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4955
4956 * buffer.c (report_overlay_modification): Don't run hooks while
4957 traversing the list of overlays.
4958
4959 * buffer.h (struct buffer): Use an int for overlay_center.
4960 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4961 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4962
4963 * buffer.c (reset_buffer, recenter_overlay_lists)
4964 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4965 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4966 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4967 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4968 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4969
4970 * xdisp.c (fast_find_position): Remove unused var.
4971
4972 * cmds.c (Qexpand_abbrev): New sym.
4973 (syms_of_cmds): Initialize it.
4974 (internal_self_insert): Use it to call expand-abbrev.
4975
2e7ecf15
KS
49762003-07-09 Kim F. Storm <storm@cua.dk>
4977
f9711de4 4978 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 4979 was configured with --without-xim.
42f81f64 4980 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 4981
c6de56a0
RS
49822003-07-07 Richard M. Stallman <rms@gnu.org>
4983
4984 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4985
4986 * alloc.c (Fgarbage_collect): Doc fix.
4987
b93fb365
KH
49882003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4989
4990 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4991
bfe1a3f7
SM
49922003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4993
04812929
SM
4994 * minibuf.c (read_minibuf): UNGCPRO before returning.
4995 (Ftry_completion, Fall_completions): Doc fix.
4996
bfe1a3f7
SM
4997 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4998 now that `floats' is not the last element of the struct any more.
4999
ee79d1aa
JR
50002003-07-06 Jason Rumney <jasonr@gnu.org>
5001
5002 * w32term.h (ClipboardSequence_Proc): New type.
5003
5004 * w32fns.c (clipboard_sequence_fn): New variable.
5005 (globals_of_w32fns): Initialize it.
5006
5007 * w32select.c (last_clipboard_sequence_number): New variable.
5008 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
5009 number if possible.
5010
49723c04
SM
50112003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5012
4698665f
SM
5013 * m/amdx86-64.h (MARKBIT):
5014 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
5015 MARKBIT and ARRAY_MARK_FLAG any more.
5016
5017 * m/hp800.h (XSETMARKBIT):
5018 * m/sr2k.h (XSETMARKBIT):
5019 * lisp.h (XSETMARKBIT): Remove unused macro.
5020
49723c04
SM
5021 * lisp.h (mark_object): Change prototype.
5022
5023 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
5024 (last_marked): Change accordingly.
5025 (mark_interval, mark_maybe_object, mark_maybe_pointer)
5026 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
5027 (mark_buffer): Update calls to mark_object.
5028
5029 * bytecode.c (mark_byte_stack):
5030 * fns.c (sweep_weak_table):
5031 * keyboard.c (mark_kboards): Update calls to mark_object.
5032
1d660eca
JR
50332003-07-06 Jason Rumney <jasonr@gnu.org>
5034
5035 * alloc.c (struct ablock): Only include padding when there is some.
5036
618b5ae4
SM
50372003-07-04 Stefan Monnier <monnier@cs.yale.edu>
5038
5039 * alloc.c (ALIGN): Add casts to simplify usage.
5040 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
5041 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
5042 (struct ablock, struct ablocks): New types.
5043 (free_ablock): New global var.
5044 (lisp_align_malloc, lisp_align_free): New functions.
5045 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
5046 (struct float_block): Reorder and add gcmarkbits.
5047 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
5048 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
5049 (init_float, make_float): Use lisp_align_malloc.
5050 (free_float, live_float_p): Don't use `type' any more.
5051 (make_float): Use FLOAT_UNMARK to access to mark bit.
5052 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
5053 Use FLOAT_MARKED_P to access the mark bit.
5054 (pure_alloc): Simplify use of ALIGN.
5055 (mark_object): Use FLOAT_MARK to access the mark bit.
5056 (gc_sweep): Use new macros to access the float's mark bit.
5057 (init_alloc_once): Init free_ablock.
5058
5059 * lisp.h (struct Lisp_Float): Remove unused field `type'.
5060
3ef06d12
SM
50612003-06-27 Stefan Monnier <monnier@cs.yale.edu>
5062
5063 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
5064 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
5065 (allocate_buffer): Move.
5066 (string_bytes): Don't mask markbit of `size_byte'.
5067 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5068 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
5069 Use the `size' field of buffers (rather than the `name' field) for
5070 the mark bit, as is done for all other vectorlike objects.
5071 Use the new macros to access the mark bit of vectorlike objects.
5072
e81043aa
RS
50732003-06-26 Richard M. Stallman <rms@gnu.org>
5074
5075 * puresize.h (BASE_PURESIZE): Increment base size.
5076
5077 * xdisp.c (fast_find_position): Enable Gerd's new definition.
5078
5079 * xterm.c (xim_initialize): Undo previous change.
5080
2d0834cc
SM
50812003-06-26 Stefan Monnier <monnier@cs.yale.edu>
5082
5083 * alloc.c (survives_gc_p): Simplify.
5084
5085 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
5086
5087 * window.c (Fset_window_dedicated_p): Simplify.
5088 (display_buffer_1): Don't raise the win from which minibuf was entered.
5089 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
5090 (Fminibuffer_selected_window): Simplify.
5091
5092 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
5093
5094 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
5095 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
5096
5097 * insdel.c (check_markers, adjust_markers_for_delete)
5098 (adjust_markers_for_insert, adjust_markers_for_replace)
5099 (prepare_to_modify_buffer, RESTORE_VALUE):
5100 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
5101 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
5102 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
5103 * alloc.c (Fmake_marker, free_marker, gc_sweep):
5104 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
5105 * editfns.c (save_excursion_restore, transpose_markers):
5106 * window.c (delete_window):
5107 * xdisp.c (message_dolog): Update for new types.
5108
d54ae3d8
JD
51092003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5110
a5f696ac
JD
5111 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
5112 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 5113 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
5114
5115 * frame.c (make_frame): Initialize default_face_done_p.
5116
5117 * frame.h (struct frame): Add default_face_done_p.
5118
d54ae3d8
JD
5119 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
5120 will be defined.
5121
2336fe58
SM
51222003-06-25 Stefan Monnier <monnier@cs.yale.edu>
5123
5124 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
5125 Initialize the new field `gcmarkbit'.
5126 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
5127 (mark_interval_tree): Don't mark the tree separately from the nodes.
5128 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
5129 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5130 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
5131
5132 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
5133 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
5134 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
5135 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
5136 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
5137
bcea31c2
DL
51382003-06-24 Dave Love <fx@gnu.org>
5139
5140 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
5141
5142 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
5143 from gnulib.
5144
2601f59e
RS
51452003-06-21 Richard M. Stallman <rms@gnu.org>
5146
5147 * fileio.c (Fwrite_region): Alternate messages
5148 for append and partial write.
5149
5150 * keyboard.c (read_key_sequence): When converting upcase fn key to
5151 downcase, update fkey and keytran so `backspace' gets translated.
5152
5153 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
5154
5155 * process.c (wait_reading_process_input): Don't signal SIGIO
5156 in batch mode.
5157
b5d2c621
KH
51582003-06-17 Kenichi Handa <handa@m17n.org>
5159
5160 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
5161 composite.h.
5162
5163 * xselect.c: Don't include charset.h, coding.h, composite.h.
5164 (Qforeign_selection): New variable.
5165 (syms_of_xselect): Intern and static it.
5166 (selection_data_to_lisp_data): Return a unibyte string made from
5167 data with `foreign-selection' text property.
5168
6793bc63
SM
51692003-06-15 Stefan Monnier <monnier@cs.yale.edu>
5170
5171 * termhooks.h (EVENT_INIT): New macro.
5172
5173 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
5174
5175 * alloc.c (mark_kboards): Move to keyboard.c.
5176
5177 * keyboard.c (record_asynch_buffer_change, read_avail_input):
5178 * xterm.c (x_dispatch_event):
5179 * xmenu.c (find_and_call_menu_selection):
5180 * xdisp.c (handle_tool_bar_click):
5181 * w32menu.c (menubar_selection_callback):
5182 * sysdep.c (kbd_input_ast, read_input_waiting):
5183 * msdos.c (dos_rawgetc):
5184 * macterm.c (mac_check_for_quit_char):
5185 * macmenu.c (menubar_selection_callback):
5186 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
5187 data to kbd_buffer_store_event.
5188
b3ea810c
KS
51892003-06-15 Kim F. Storm <storm@cua.dk>
5190
5191 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 5192 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 5193
b8f75eda
KG
51942003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5195
5196 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
5197
ba92ce48
KH
51982003-06-12 Kenichi Handa <handa@m17n.org>
5199
5200 * fileio.c (Fwrite_region): Save and restore restriction.
5201
b80263be
DL
52022003-06-12 Dave Love <fx@gnu.org>
5203
5204 * alloca.c (alloca): Declare arg as size_t.
5205
6793bc63
SM
5206 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
5207 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 5208
b23c0a83
DL
52092003-06-11 Dave Love <fx@gnu.org>
5210
5211 * search.c (shrink_regexp_cache): Use xrealloc.
5212 (syms_of_search): Use xmalloc.
5213
700e47c2
KS
52142003-06-10 Kim F. Storm <storm@cua.dk>
5215
5216 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
5217 Adjust phys_cursor.x to be relative to window box, rather than
5218 text area before checking -- to ensure cursor is redrawn when
5219 exposing window.
5220 Note: This also fixes a similar (older) bug if display margins
5221 are present.
5222
f11aa0b2
KH
52232003-06-06 Kenichi Handa <handa@m17n.org>
5224
5225 * coding.c (encoding_buffer_size): If coding->type is
5226 coding_type_ccl, double magnification on CRLF encoding.
5227
3d143690
JR
52282003-06-06 Jason Rumney <jasonr@gnu.org>
5229
5230 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
5231 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
5232
5233 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
5234 Mac too.
5235
f16205ca
DL
52362003-06-05 Dave Love <fx@gnu.org>
5237
b23c0a83
DL
5238 * strftime.c: Merge changes from gnulib.
5239
f16205ca
DL
5240 * mktime.c (__mktime_internal): Merge changes from gnulib
5241 involving year 69 and dst2.
5242
5243 Changes to merge with gnulib version and be consistent with the
5244 autoconf test:
5245
6793bc63
SM
5246 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
5247 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
5248 [HAVE_LOCALE_H]: Include locale.h.
5249 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
5250
9b87a0bc
KS
52512003-06-05 Kim F. Storm <storm@cua.dk>
5252
5253 * window.c (coordinates_in_window): Convert X and Y to window
5254 relative coordinates inside mode-line and header-line parts.
5255 Convert X and Y to margin area relative coordinates inside left
5256 and right display margin parts.
5257
5a8a15ec
JR
52582003-06-05 Jason Rumney <jasonr@gnu.org>
5259
5260 * w32fns.c (add_system_logical_colors_to_map): New function.
5261 (Fx_open_connection): Use it.
5262
01ed8ff1
SM
52632003-06-04 Stefan Monnier <monnier@cs.yale.edu>
5264
5265 * process.c (allocate_pty): Revert part of the previous patch.
5266 (Faccept_process_output): Simplify.
5267
b427b65d
JR
52682003-06-04 Jason Rumney <jasonr@gnu.org>
5269
5270 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
5271
5272 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
5273 (lispy_mouse_wheel_names): Remove.
5274 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
5275 Always define drag_and_drop_syms.
5276
5277 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
5278 WHEEL_EVENT events.
5279
914a8c47
SM
52802003-06-03 Stefan Monnier <monnier@cs.yale.edu>
5281
01ed8ff1
SM
5282 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
5283
914a8c47
SM
5284 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
5285
adcb132c
JD
52862003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5287
5288 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
5289 menu item label.
5290
be781fa7
RS
52912003-06-03 Richard M. Stallman <rms@gnu.org>
5292
5293 * window.c (Fwindow_edges): Doc fix.
5294 (Fwindow_pixel_edges, Fwindow_inside_edges)
5295 (Fwindow_inside_pixel_edges): New functions.
5296 (syms_of_window): defsubr them.
5297
5298 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
5299 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
5300
914a8c47
SM
53012003-06-02 Stefan Monnier <monnier@cs.yale.edu>
5302
5303 * dispnew.c (Fsit_for): Don't lie about the number of args.
5304
5b07197a
DL
53052003-06-02 Dave Love <fx@gnu.org>
5306
5307 * callproc.c: Use HAVE_FCNTL_H, not USG5.
5308 (syms_of_callproc) <process-environment>: Doc fix.
5309
5310 * doc.c: Use HAVE_FCNTL_H, not USG5.
5311
5312 * xfaces.c (font_rescale_ratio): Fix for K&R.
5313
5314 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
5315
5316 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
5317
5318 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
5319
5320 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
5321 (xg_create_frame_widgets): Use ENCODE_UTF_8.
5322
d7107586 5323 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
5324
5325 * xmenu.c (ENCODE_MENU_STRING): New.
5326 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
5327 Use it.
5328
5329 * coding.h (ENCODE_UTF_8): New.
5330 (Qutf_8): Declare.
5331
5332 * coding.c (Qutf_8): New.
5333 (syms_of_coding): Intern it.
5334
5335 * fns.c: Doc fixes.
5336
7335b336
KH
53372003-06-02 Kenichi Handa <handa@m17n.org>
5338
5339 * buffer.c (Fset_buffer_multibyte): Fix previous change.
5340
914a8c47
SM
53412003-06-01 Stefan Monnier <monnier@cs.yale.edu>
5342
5343 * lread.c (openp): Make sure STR is a string.
5344
9862c135
JR
53452003-06-01 David Ponce <david@dponce.com>
5346
5347 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
5348 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
5349
5350 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
5351 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
5352 (discard_mouse_events): Discard WHEEL_EVENT events too.
5353 (lispy_wheel_names, wheel_syms): New.
5354 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
5355 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
5356 defined.
914a8c47 5357 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
5358
5359 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
5360 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5361 WHEEL_EVENT events.
5362
f984e73e
JPW
53632003-05-31 John Paul Wallington <jpw@gnu.org>
5364
5365 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
5366 timer are in lisp/emacs-lisp.
5367
1efcd78f
KH
53682003-05-31 Kenichi Handa <handa@m17n.org>
5369
458c8af4
KH
5370 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
5371 region when a buffer is changed to unibyte.
5372
1efcd78f
KH
5373 * charset.h (VALID_LEADING_CODE_P): New macro.
5374 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5375
778e2804
KH
5376 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
5377 is nonzero, accept multibyte form of eight-bit-control chars.
5378 (decode_composition_emacs_mule): Likewise.
5379 (decode_coding_emacs_mule): Likewise.
5380 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
5381 multibyte form of eight-bit-control chars.
5382
5383 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
5384 (Finsert_file_contents): If coding-system-for-read is bound to
5385 Qauto_save_coding, use the coding system emacs-mule with special
5386 setting for recovering a file.
5387 (choose_write_coding_system): On auto saving, use the coding
5388 system emacs-mule with special setting for auto saving.
5389 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
5390
034060e4
KH
53912003-05-30 Kenichi Handa <handa@m17n.org>
5392
5393 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
5394 properly before calling ccl_driver.
5395
778e2804 5396 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
5397
5398 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
5399 nonzero.
5400 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
5401 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
5402
595f5aa5
GM
54032003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5404
5405 * xfaces.c (realize_default_face): Do not abort if lface is
5406 non-existent - reverts change from 2003-05-19.
5407
103e0180
KH
54082003-05-29 Kenichi Handa <handa@m17n.org>
5409
5410 * coding.c (decode_coding_iso2022): Pay attention to the byte
5411 sequence of CTEXT extended segment, and retain those bytes as is.
5412
54132003-05-28 Kenichi Handa <handa@m17n.org>
5414
5415 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
5416 of CODING_REPLACEMENT_CHARACTER.
5417 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
5418 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
5419 check this flag on encoding.
5420 (encode_coding_sjis_big5): Check
5421 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
5422 (Fset_terminal_coding_system_internal): Set
5423 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
5424 instead of setting CODING_FLAG_ISO_SAFE flag in
5425 terminal_coding.flags.
5426
5427 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
5428 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
5429 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
5430
ff6a3bfb 54312003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 5432
ff6a3bfb
RS
5433 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
5434
5435 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 5436
1963c428
KS
54372003-05-28 Kim F. Storm <storm@cua.dk>
5438
5439 * xdisp.c (expose_window): Fix error in calculation of
5440 window relative coordinates of area to redisplay.
5441
2b5d4601
JR
54422003-05-27 Jason Rumney <jasonr@gnu.org>
5443
5444 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5445
1c64a4a2
JB
54462003-05-27 David Ponce <david@dponce.com>
5447
5448 Handle W32 mouse wheel events as mouse click events, like in X.
5449
5450 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5451 MOUSE_WHEEL_EVENT anymore.
5452
5453 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5454 Scrolling down/up the mouse wheel is respectively mapped to mouse
5455 button 4 and 5.
5456 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5457 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5458 WM_MOUSEWHEEL events.
5459
2d031b89
AS
54602003-05-27 Andreas Schwab <schwab@suse.de>
5461
20464fdf
AS
5462 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5463
2d031b89
AS
5464 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5465 partially visible line.
5466
5467 * alloc.c (Fgarbage_collect): Fix last change.
5468
97bc76d4
JPW
54692003-05-26 John Paul Wallington <jpw@gnu.org>
5470
5471 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5472
56613f06
SM
54732003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5474
5475 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5476 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5477
5478 * window.h (window_box_text_cols): Declare.
5479
5480 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5481 (x_draw_vertical_border): Remove unused var `f'.
5482
5483 * xfaces.c (build_scalable_font_name): Remove `unused var
5484 pixel_size' warning.
5485
5486 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5487
5488 * unexelf.c (unexec): Remove `unused var n' warning.
5489
5490 * strftime.c (my_strftime_localtime_r): Remove `defined but
5491 unused' warning.
5492
5493 * process.c (allocate_pty): Remove `unused var stb' and
5494 `cp might be used uninitialized' warnings.
5495
5496 * dispnew.c (mode_line_string): Remove unused var `f'.
5497
5498 * coding.c (find_safe_codings): Remove unused var `i'.
5499
5500 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5501
5502 * buffer.c (Fkill_buffer): Remove unused var `list'.
5503
5504 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5505
93421a1f
JD
55062003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5507
5508 * frame.c (make_frame): Condition want_fullscreen with
5509 HAVE_WINDOW_SYSTEM.
5510
c4b8aebc
JB
55112003-05-25 Juanma Barranquero <lektu@terra.es>
5512
5513 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5514 (Fwindow_scroll_bars): Fix typo in docstring.
5515
0416870b
KS
55162003-05-24 Kim F. Storm <storm@cua.dk>
5517
5518 The following changes serve several purposes:
5519
5520 1) Swap the position of fringes and display margins in windows, i.e.
5521 the fringes are now displayed between the margins and the text area
5522 (by default).
5523
5524 2) Allow fringe and scroll bar parameters to be set per-buffer and
5525 per-window (like display margins). Such settings are now stored
5526 in window configurations, preserved when frames are resized, and
9018a88e 5527 copied when windows are split vertically or horizontally.
0416870b
KS
5528 Several bugs related to display margins have been fixed.
5529
5530 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5531
0416870b
KS
5532 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5533 rather than FRAME_WIDTH (FRAME_FONT (f)).
5534
5535 5) Introduce a consistent naming of variables, members and macros
5536 depending on whether their value is measured in pixels or in
5537 canonical columns/lines. Pixel dimensions are named *_width and
5538 *_height, while canonical columns/lines are named *_cols and
5539 *_lines. Pixel positions are named *_x and *_y, while column/line
5540 positions are named *_col and *_line.
5541
5542 6) Consolidate more of the X, W32, and MAC gui code by moving
5543 common data into struct frame, and generalize it for the non-gui
5544 case by using suitable defaults.
5545
5546 7) Cleanup and consolidate the macros controlling frame and window
5547 layout into frame.h and window.h, and generalize the use of the
5548 various window_box_* functions (enhanced to handle the new fringe
5549 position and the per-window fringe and scroll bar settings).
5550
5551 * frame.h (struct frame): Rename members height to text_lines,
5552 width to text_cols, window_height to total_lines, window_width to
5553 total_cols, new_height to new_text_lines, new_width to
5554 new_text_cols. All uses changed.
5555 (struct frame): New members which consolidate common members of
5556 x_output, w32_output, and mac_output structures: left_pos,
5557 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5558 win_gravity, size_hint_flags, border_width, internal_border_width,
5559 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5560 want_fullscreen. All uses changed.
5561 (struct frame): New member column_width contaning the canonical
5562 column width, analogue to line_height. All uses changed.
5563 (struct frame): Rename members scroll_bar_pixel_width to
5564 config_scroll_bar_width, and scroll_bar_cols to
5565 config_scroll_bar_cols. All uses changed.
5566 (struct frame): New member scroll_bar_actual_width which
5567 consolidates and renames the vertical_scroll_bar_extra member of
5568 x_output, w32_output, and mac_output structures. All uses changed.
5569 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5570 from x/w32/macterm.h files. All uses changed. Also change code
5571 which referred to f->output_data...->pixel_height.
5572 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5573 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5574 which referred to f->output_data...->pixel_width.
5575 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5576 Also change code which referred to f->height.
5577 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5578 Also change code which referred to f->width.
5579 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5580 to update new_text_lines and new_text_cols members directly.
5581 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5582 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5583 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5584 FRAME_SCROLL_BAR_COLS. All uses changed.
5585 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5586 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5587 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5588 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5589 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5590 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5591 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5592 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5593 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5594 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5595 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5596 return line_height member (it now has proper value also for
5597 non-window frames).
5598 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5599 return new column_width member (rather than the default font width).
5600 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5601 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5602 from x/w32/macterm.h files. Unconditionally return corresponding
5603 member of frame structure (they now have proper values also for
5604 non-window frames).
5605 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5606 Calculate return value from left and right widths.
5607 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5608 internal_border_width member (has proper value for non-window frame).
5609 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5610 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5611 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5612 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5613 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5614 consolidated from xterm.h, macterm.h, and w32term.h.
5615 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5616 consolidated from xterm.h, macterm.h, and w32term.h.
5617 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5618 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5619 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5620 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5621 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5622 consolidated from x/mac/w32term.h.
5623 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5624 consolidated from x/mac/w32term.h.
5625 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5626 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5627 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5628 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5629
5630 * window.h (struct window): Rename members left to left_col,
5631 top to top_line, height to total_lines, width to total_cols,
5632 left_margin_width to left_margin_cols, right_margin_width to
5633 right_margin_cols, orig_height to orig_total_lines, orig_top to
5634 orig_top_line. All uses changed.
5635 (struct window): New members left_fringe_width, right_fringe_width,
5636 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5637 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5638 New macros primarily used to simplify other macros.
5639 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5640 referred to XINT (w->width).
5641 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5642 referred to XINT (w->height).
5643 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5644 referred to XINT (w->width) * canon_x_unit.
5645 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5646 referred to XINT (w->height) * canon_y_unit.
5647 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5648 referred to XINT (w->left).
5649 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5650 all uses and code that referred to XINT (w->left) + XINT (w->width).
5651 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5652 referred to XINT (w->top).
5653 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5654 referred to XINT (w->top) + XINT (w->height).
5655 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5656 referred to XINT (w->left) * canon_x_unit.
5657 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5658 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5659 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5660 referred to XINT (w->top) * canon_y_unit.
5661 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5662 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5663 (WINDOW_LEFTMOST_P): New macro.
5664 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5665 All uses changed.
5666 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5667 All uses changed.
5668 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5669 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5670 Do not exclude left fringe width.
5671 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5672 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5673 Do not exclude fringe widths.
5674 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5675 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5676 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5677 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5678 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5679 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5680 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5681 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5682 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5683 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5684 New macros. Change code which referenced corresponding
5685 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5686 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5687 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5688 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5689 allow per-window scroll-bar settings.
5690 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5691 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5692 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5693 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5694 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5695 FRAME_SCROLL_BAR_WIDTH.
5696 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 5697 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
5698 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5699 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5700 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5701 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5702 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5703 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5704 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5705 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5706 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5707 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5708 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5709 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5710 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5711 (window_from_coordinates): Update prototype.
5712 (Fset_window_buffer): Update EXFUN.
5713 (set_window_buffer): Update prototype.
9018a88e 5714
0416870b 5715 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 5716 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
5717 changed.
5718 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5719 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5720 internal_border_width is now set to 0 for non-window frames.
5721 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5722 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5723 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5724 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5725 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5726 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5727 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5728 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5729 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 5730 Move to window.h and renamed [see window.h changes].
0416870b
KS
5731 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5732 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
5733 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5734 Use WINDOW_TOTAL_LINES.
0416870b
KS
5735 (frame_update_line_height): Remove prototype.
5736
5737 * buffer.h (struct buffer): Rename members measured in columns:
5738 left_margin_width to left_margin_cols, right_margin_width to
5739 right_margin_cols. All uses changed.
5740 New members left_fringe_width, right_fringe_width,
5741 fringes_outside_margins for per-buffer fringe settings.
5742 New members scroll_bar_width and vertical_scroll_bar_type for
5743 per-buffer scroll bar settings.
5744
5745 * buffer.c (init_buffer_once): Set buffer_defaults and
5746 buffer_local_flags for new buffer-local variables
5747 left_fringe_width, right_fringe_width, fringes_outside_margins,
5748 scroll_bar_width, and vertical_scroll_bar_type.
5749 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5750 default-* variables for them.
5751
5752 * dispnew.c: Make (many) trivial substitutions for renamed and
5753 new macros in dispextern.h, frame.h and window.h.
5754 (mode_line_string): No need to adjust width for mode lines, as it
5755 is already adjusted by the caller.
5756 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 5757
0416870b
KS
5758 * frame.c: Make (many) trivial substitutions for renamed and
5759 new macros in dispextern.h, frame.h and window.h.
5760 (make_frame): Initialize left_fringe_width, right_fringe_width,
5761 fringe_cols, scroll_bar_actual_width, border_width,
5762 internal_border_width, column_width, line_height, x_pixels_diff,
5763 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5764 members with values suitable for a non-window frames.
5765
5766 * gtkutil.c: Make (many) trivial substitutions for renamed and
5767 new macros in dispextern.h, frame.h and window.h.
9018a88e 5768
0416870b
KS
5769 * indent.c: Make (few) trivial substitutions for renamed and
5770 new macros in dispextern.h, frame.h and window.h.
5771
5772 * keyboard.c: Make (many) trivial substitutions for renamed and
5773 new macros in dispextern.h, frame.h and window.h.
5774 (make_lispy_event): Use window positions returned from
5775 window_from_coordinates when constructing the lisp event for
5776 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5777 (incorrect) values locally.
5778 (make_lispy_movement): Use window positions returned from
5779 window_from_coordinates when constructing the lisp event, rather
5780 than calculating (incorrect) values locally.
5781
5782 * scroll.c: Make (some) trivial substitutions for renamed and
5783 new macros in dispextern.h, frame.h and window.h.
5784
5785 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5786 scroll-bars.
5787
5788 * sysdep.c: Make (few) trivial substitutions for renamed and
5789 new macros in dispextern.h, frame.h and window.h.
5790
5791 * term.c: Make (some) trivial substitutions for renamed and
5792 new macros in dispextern.h, frame.h and window.h.
5793
5794 * widget.c: Make (few) trivial substitutions for renamed and
5795 new macros in dispextern.h, frame.h and window.h.
5796
5797 * window.c: Make (many) trivial substitutions for renamed and
5798 new macros in dispextern.h, frame.h and window.h.
5799 (make_window): Initialize new members
5800 left_margin_cols, right_margin_cols, left_fringe_width,
5801 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5802 and vertical_scroll_bar_type.
5803 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 5804 and per-window fringes and scroll-bars.
0416870b 5805 Fix bug related to incorrectly adjusting coordinates by
9018a88e 5806 frame's internal_border_width (the effect normally negible since
0416870b
KS
5807 the internal_border_width is typically 0 or 1 pixel, but very
5808 noticeable for an internal_border_width of e.g. 25 pixels).
5809 Upon successful return (other than ON_NOTHING), the coordinates
5810 are now always properly converted to window relative for the
5811 given display element.
5812 (window_from_coordinates): Add new parameters wx and wy to
5813 return the window relative x and y position in the returned
5814 window and part. A null arg means, don't return the position.
5815 All callers changed.
5816 (adjust_window_margins): New function which may reduce the width
5817 of the display margins if a window's text area is too small after
5818 resizing or splitting windows.
5819 (size_window): Fix bug that did not account for display margin
5820 widths when checking the minimum width of a window; use
5821 adjust_window_margins.
5822 (set_window_buffer): Call Fset_window_fringes and
5823 Fset_window_scroll_bars to setup per-window elements.
5824 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
5825 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
5826 (e.g. after splitting a window or resizing the frame).
5827 All callers changed.
0416870b
KS
5828 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
5829 (Fsplit_window): Duplicate original window's display margin,
5830 fringe, and scroll-bar settings; then call Fset_window_buffer with
5831 KEEP_MARGINS non-nil. This fixes a bug which caused a split
5832 window to only preserve the display margins in one of the windows.
c4b8aebc 5833 When splitting horizontally, call adjust_window_margins on both
0416870b 5834 windows to ensure that the text area of the new windows is non too
f9711de4 5835 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
5836 width of the split window was less than the width of the display
5837 margins.
9018a88e
SM
5838 (window_box_text_cols): Renamed from window_internal_width.
5839 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
5840 Fix bug that caused vertical separator to be subtracted also on
5841 window frames. Fix another bug that did not reduce the returned
5842 value by the columns used for display margins.
5843 (window_scroll_line_based): Fix bug related to scrolling too much
5844 when display margins are present (implicitly fixed by the fix to
5845 window_box_text_cols).
5846 (scroll_left, scroll_right): Fix bug related to scrolling too far
5847 by default when display margins are present (implicitly fixed by
5848 the fix to window_box_text_cols).
5849 (struct saved_window): Rename members left to left_col, top to
5850 top_line, width to total_cols, height to total_lines, orig_top to
5851 orig_top_line, orig_height to orig_total_lines. All uses changed.
5852 New members left_margin_cols, right_margin_cols,
5853 left_fringe_width, right_fringe_width, fringes_outside_margins,
5854 scroll_bar_width, and vertical_scroll_bar_type for saving
5855 per-window display elements.
5856 (Fset_window_configuration): Restore display margins, fringes,
5857 and scroll bar settings. This fixes a bug which caused display
5858 margins to be discarded when saving and restoring a window
5859 configuration.
5860 (save_window_save): Save display margins, fringes, and scroll bar
5861 settings. This fixes a bug which caused display margins to be
5862 discarded when saving and restoring a window configuration.
5863 (Fset_window_margins): Do nothing if display margins are not
5864 really changed. Otherwise, call adjust_window_margins to ensure
5865 the text area doesn't get too narrow. This fixes a bug which
f9711de4 5866 could cause Emacs to trap if setting display margins wider than
0416870b
KS
5867 the width of the window.
5868 (Fset_window_fringes): New defun to allow user to specifically set
5869 this window's fringe widths and position vs. display margins.
5870 (Fwindow_fringes): New defun to return window's actual fringe
5871 settings.
5872 (Fset_window_scroll_bars): New defun to allow user to specifically
5873 set this window's scroll bar width and position.
5874 (Fwindow_scroll_bars): New defun to return window's actual scroll
5875 bar settings.
5876 (compare_window_configurations): Also compare display margins,
5877 fringes, and scroll bar settings.
5878 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5879
5880 * xdisp.c: Make (many) trivial substitutions for renamed and
5881 new macros in dispextern.h, frame.h and window.h.
5882 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 5883 and new fringe vs. display margin position. Note that returned
0416870b
KS
5884 value is no longer guaranteed to be a whole multiple of the frame
5885 column width, since per-window fringes may now be any width.
5886 (window_box_left_offset): New function like window_box_left, but
5887 value is relative to left border of window (rather than frame).
5888 (window_box_right_offset): New function like window_box_right,
5889 but value is relative to left border of window.
5890 (window_box_left): Adapt to per-window fringes and scroll bars,
5891 and new fringe vs. display margin position. Simplify by using
5892 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5893 (window_box): Allow null args for unnecessary return values;
5894 change/simplify relevant callers.
5895 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
5896 and new fringe vs. display margin position.
5897 Use window_box_left_offset and window_box_right_offset
0416870b 5898 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
5899 scroll bars, and new fringe vs. display margin position.
5900 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
5901 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5902 fringe vs. display margin position.
5903 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
5904 (redisplay_window): Adapt to per-window scroll bars.
5905 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
5906 bars, and new fringe vs. display margin position.
5907 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 5908 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
5909 bars, and new fringe vs. display margin position. Fix bug which
5910 increased total width of full_width rows by width of scroll bars
5911 although window's total width already includes that.
5912 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5913 (expose_area): Simplify using window_box_left_offset.
5914 (x_draw_vertical_border): Handle per-window scroll bar settings,
5915 mixing windows with left, right and no scroll bars.
5916
5917 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5918 where it's used in x_list_fonts (for clarity).
5919 (frame_update_line_height): Remove unused function; functionality
5920 is now done directly when setting the default font in x_set_font.
5921
5922 * xfns.c: Make (many) trivial substitutions for renamed and
5923 new macros in dispextern.h, frame.h and window.h.
5924
5925 * xmenu.c: Make (some) trivial substitutions for renamed and
5926 new macros in dispextern.h, frame.h and window.h.
5927
5928 * xterm.h (struct x_output): Move members left_pos, top_pos,
5929 border_width, pixel_height, pixel_width, line_height,
5930 internal_border_width, vertical_scroll_bar_extra,
5931 left_fringe_width, right_fringe_width, fringe_cols,
5932 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5933 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5934 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5935 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5936 (PIXEL_WIDTH, PIXEL_HEIGHT)
5937 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5938 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5939 frame.h and renamed [see frame.h changes].
5940 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5941 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5942 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5943 and renamed [see frame.h changes].
9018a88e 5944
0416870b
KS
5945 * xterm.c: Make (several) trivial substitutions for renamed and
5946 new macros in dispextern.h, frame.h and window.h.
5947 (x_draw_glyph_string_box): Adapt to per-window fringes and
5948 scroll-bars.
5949 (scroll_run): Adapt to new fringe position.
5950 (glyph_rect): Use window coordinates returned from
5951 window_from_coordinates rather than frame_to_window_pixel_xy.
5952 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5953 scroll-bars.
5954 (handle_one_xevent): Simplify a USE_GTK conditional.
5955 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5956 (fringes are now inside margins, i.e. always in the clipping area).
5957 All callers changed.
5958 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5959 directly, then call compute_fringe_widths. Don't call
5960 frame_update_line_height.
5961
5962 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5963 border_width, pixel_height, pixel_width, line_height,
5964 internal_border_width, vertical_scroll_bar_extra,
5965 left_fringe_width, right_fringe_width, fringe_cols,
5966 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5967 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5968 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5969 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5970 (PIXEL_WIDTH, PIXEL_HEIGHT)
5971 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5972 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5973 frame.h and renamed [see frame.h changes].
5974 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5975 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5976 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5977 and renamed [see frame.h changes].
9018a88e 5978
0416870b
KS
5979 * w32term.c: Make (several) trivial substitutions for renamed and
5980 new macros in dispextern.h, frame.h and window.h.
5981 (x_draw_glyph_string_box): Adapt to per-window fringes and
5982 scroll-bars.
5983 (glyph_rect): Use window coordinates returned from
5984 window_from_coordinates rather than frame_to_window_pixel_xy.
5985 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5986 scroll-bars.
5987 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5988 (fringes are now inside margins, i.e. always in the clipping area).
5989 All callers changed.
5990 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5991 directly, then call compute_fringe_widths. Don't call
5992 frame_update_line_height.
5993
5994 * w32console.c: Make (few) trivial substitutions for renamed and
5995 new macros in dispextern.h, frame.h and window.h.
5996
5997 * w32fns.c: Make (many) trivial substitutions for renamed and
5998 new macros in dispextern.h, frame.h and window.h.
5999
6000 * w32menu.c: Make (few) trivial substitutions for renamed and
6001 new macros in dispextern.h, frame.h and window.h.
6002
6003 * macterm.h (struct mac_output): Move members left_pos, top_pos,
6004 border_width, pixel_height, pixel_width, line_height,
6005 internal_border_width, vertical_scroll_bar_extra,
6006 left_fringe_width, right_fringe_width, fringe_cols,
6007 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6008 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
6009 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6010 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6011 (PIXEL_WIDTH, PIXEL_HEIGHT)
6012 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6013 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6014 frame.h and renamed [see frame.h changes].
6015 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6016 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6017 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6018 and renamed [see frame.h changes].
9018a88e 6019
0416870b
KS
6020 * macterm.c: Make (several) trivial substitutions for renamed and
6021 new macros in dispextern.h, frame.h and window.h.
6022 (x_draw_glyph_string_box): Adapt to per-window fringes and
6023 scroll-bars.
6024 (glyph_rect): Use window coordinates returned from
6025 window_from_coordinates rather than frame_to_window_pixel_xy.
6026 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6027 scroll-bars.
6028 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6029 (fringes are now inside margins, i.e. always in the clipping area).
6030 All callers changed.
6031 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6032 directly, then call compute_fringe_widths. Don't call
6033 frame_update_line_height.
6034
6035 * macfns.c: Make (several) trivial substitutions for renamed and
6036 new macros in dispextern.h, frame.h and window.h.
9018a88e 6037 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
6038
6039 * macmenu.c: Make (few) trivial substitutions for renamed and
6040 new macros in dispextern.h, frame.h and window.h.
6041
6042 * msdos.h (struct x_output): Remove members left_pos, top_pos,
6043 and line_height, and use corresponding new members in struct
6044 frame. All uses changed.
6045 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
6046 superseeded by corresponding macros in frame.h.
6047
6048 * msdos.c: Make (several) trivial substitutions for renamed and
6049 new macros in dispextern.h, frame.h and window.h.
6050 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 6051 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
6052 (internal_terminal_init): No need to initialize line_height here;
6053 it now defaults to 1.
6054
9018a88e
SM
60552003-05-24 Stefan Monnier <monnier@cs.yale.edu>
6056
6057 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
6058 dropping `down' events.
6059
016bd3c0
AS
60602003-05-24 Andreas Schwab <schwab@suse.de>
6061
6062 * coding.c (find_safe_codings): Fix last change.
6063
4dacadcc
TTN
60642003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
6065
6066 * xfns.c (x_window): Fix typo from 2003-05-21 change.
6067
319830ce
SM
60682003-05-23 Stefan Monnier <monnier@cs.yale.edu>
6069
9018a88e
SM
6070 * xdisp.c (display_mode_element): Increase max depth.
6071 Simplify the error handling code. Use a different error string
6072 for the case where we hit the depth limit.
6073
319830ce
SM
6074 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
6075
6076 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
6077
60782003-05-21 Stefan Monnier <monnier@cs.yale.edu>
6079
6080 * intervals.c (get_local_map): Don't get char-property of previous
6081 point any more: get_pos_property already does it and better.
6082
c67de8ba
DL
60832003-05-21 Dave Love <fx@gnu.org>
6084
6085 [Merged from unicode branch.]
6086
6087 * xfns.c (x_window, x_window): Use use_xim.
6088
6089 * xterm.c (use_xim): Initialize.
6090 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6091 (x_term_init): Maybe set use_xim.
6092
6093 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6094
edd3ff1d
JR
60952003-05-21 Jason Rumney <jasonr@gnu.org>
6096
6097 * unexw32.c (_start): Remove _fmode initialization.
6098
6099 * emacs.c (main) [WINDOWSNT]: Move it here.
6100
463f55ee
DL
61012003-05-20 Dave Love <fx@gnu.org>
6102
6103 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
6104
af253914
RS
61052003-05-19 Richard M. Stallman <rms@gnu.org>
6106
6107 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
6108 as value for QCfont attribute.
6109 (realize_default_face): lface should already exist; crash if not.
6110 Specify 0 for FORCE_P when calling set_lface_from_font_name.
6111
6112 * frame.c (Fignore_event): Doc fix.
6113
1d211019
KH
61142003-05-19 Kenichi Handa <handa@m17n.org>
6115
6116 * coding.c (decode_coding_string): Handle post-read-conversion
6117 even if the coding doesn't require decoding.
6118
4dd68254
RS
61192003-05-18 Richard M. Stallman <rms@gnu.org>
6120
6121 * callproc.c (Fcall_process_region): Doc fix.
6122
14d87dc9
SM
61232003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6124
deca5d96
SM
6125 * lread.c (Fload): Print a message if package is obsolete.
6126
14d87dc9
SM
6127 * window.c (Fselect_window): Add optional `norecord' arg.
6128 (select_window_1): Fold into Fselect_window.
6129 (select_window_norecord): New function.
6130 (temp_output_buffer_show): Use it. Preserve current buffer.
6131
6132 * window.h (Fselect_window): Update declaration.
6133
6134 * window.c (delete_window, Fother_window, Fset_window_configuration):
6135 * minibuf.c (read_minibuf):
6136 * macterm.c (x_new_focus_frame):
6137 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
6138 * callint.c (Fcall_interactively):
6139 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
6140
6141 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
6142
78f52183
DK
61432003-05-17 David Kastrup <dak@gnu.org>
6144
6145 * process.c (read_process_output): Back out change from 2003-03-09.
6146
14d87dc9
SM
61472003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6148
6149 * editfns.c (get_pos_property): Don't assume that `object' = nil.
6150
6151 * textprop.c (text_property_stickiness): New arg `buffer'.
6152
6153 * intervals.h (text_property_stickiness): New arg `buffer'.
6154 (get_pos_property): Declare.
6155
6156 * intervals.c (get_local_map): Use get_pos_property, to obey
6157 stickiness and empty overlays.
6158 (create_root_interval, graft_intervals_into_buffer): Use BEG.
6159 (merge_properties, intervals_equal, merge_properties_sticky):
6160 Use XCAR, XCDR.
6161 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
6162
1fd1cc2f
RS
61632003-05-17 Richard M. Stallman <rms@gnu.org>
6164
4f9f637a
RS
6165 * minibuf.c (read_minibuf): If buffer is empty, record the default
6166 in the history.
6167 (Fminibuffer_complete_word): When deleting the overlap, take account
6168 of its real position.
6169
6170 * fns.c (map_char_table): Fix previous change.
6171
1fd1cc2f
RS
6172 * syntax.c (find_defun_start):
6173 When open_paren_in_column_0_is_defun_start,
6174 return beginning of buffer.
6175
6176 * lisp.h (map_char_table): Declare added arg.
6177
6178 * fns.c (map_char_table): New arg TABLE gets the master table.
6179 All calls changed.
6180 Process default and inheritance, resorting to Faref if necessary.
6181
6182 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6183 (Faccessible_keymaps): Pass new arg to map_char_table.
6184
6185 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
6186
6187 * casetab.c (set_case_table): Pass new arg to map_char_table.
6188
6189 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
6190
6191 * lisp.h (specbinding_func): New typedef.
6192 (struct specbinding): Use specbinding_func, to put the `volatile'
6193 in the right place.
6194
6195 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
6196 to avoid GCC warning.
14d87dc9 6197
b4bd27c5
RS
61982003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
6199
14d87dc9 6200 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 6201
35fb885d
SM
62022003-05-15 Stefan Monnier <monnier@cs.yale.edu>
6203
6204 * keyboard.c (apply_modifiers): Don't fill the other cache.
6205
9a274fbd
SM
62062003-05-14 Stefan Monnier <monnier@cs.yale.edu>
6207
c55b5fad
SM
6208 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
6209
9a274fbd
SM
6210 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
6211 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
6212 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
6213 (Fset_window_configuration, Fcurrent_window_configuration)
6214 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
6215 (Fpos_visible_in_window_p, mark_window_cursors_off)
6216 (window_internal_height, window_internal_width, Frecenter)
6217 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
6218 (replace_buffer_in_all_windows, init_window_once, init_window)
6219 (syms_of_window, keys_of_window): Move from lisp.h.
6220 * lisp.h: Move window.c declarations to window.h.
6221
6222 * bytecode.c: Include window.h.
6223 * emacs.c: Include window.h.
6224
14d87dc9 6225 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
6226 (keyremap): Add `parent' field.
6227 (keyremap_step): Use it. Remove `parent' argument.
6228 (read_key_sequence): Setup and use the new `parent' field.
6229
fd93e331
SM
62302003-05-11 Stefan Monnier <monnier@cs.yale.edu>
6231
6232 * keyboard.c (adjust_point_for_property): Ensure termination.
6233
1c4001a1
SM
62342003-05-10 Stefan Monnier <monnier@cs.yale.edu>
6235
6236 * keyboard.c (follow_key): Remove dead variable `did_meta'.
6237 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
6238 duplicated handling of function-key-map and key-translation-map
6239 in read_key_sequence.
6240 (read_key_sequence): Use them.
6241
6242 * keyboard.c (adjust_point_for_property): Try harder to move point
6243 to the non-sticky end of an invisible property.
6244
6245 * xdisp.c (single_display_prop_intangible_p): Make `space' display
6246 property intangible as well.
6247
780379b1
AS
62482003-05-10 Andreas Schwab <schwab@suse.de>
6249
6250 * xmenu.c (single_menu_item): Change last parameter to void* to
6251 avoid warning.
6252
ca2de342
RS
62532003-05-09 Richard M. Stallman <rms@gnu.org>
6254
6255 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
6256 Bind Qinhibit_modification_hooks to t so there will be no GC.
6257 Rename local `tem' to `save_deactivate_mark'.
6258
6259 * eval.c (specpdl_ptr): Declare volatile.
6260 (unbind_to): Copy the whole binding and decrement specpdl_ptr
6261 before doing the work of unbinding it.
6262
6263 * lisp.h (struct specbinding): Declare elements volatile.
6264 (specpdl_ptr): Declare volatile.
6265
6266 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
6267
6268 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
6269 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
6270
347003be
DL
62712003-05-08 Dave Love <fx@gnu.org>
6272
6273 * coding.c (Vlast_coding_system_used): Doc fix.
6274
5adcec23
JR
62752003-05-07 Jason Rumney <jasonr@gnu.org>
6276
6277 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
6278 when system does not support them.
6279
5fe3b8a4
SM
62802003-05-05 Stefan Monnier <monnier@cs.yale.edu>
6281
6282 * fileio.c (Qwrite_region_annotate_functions): New var.
6283 (build_annotations): Use it to process the global part of the hook.
6284 (syms_of_fileio): Init and staticpro it.
6285
6286 * keyboard.c (safe_run_hooks_error): Display a message instead of
6287 silently ignoring the error.
6288
62892003-05-03 Stefan Monnier <monnier@cs.yale.edu>
6290
6291 * keyboard.c (input_available_signal): Mark static.
6292 (menu_bar_items): Use map_keymap.
6293 (menu_bar_one_keymap): Remove.
6294 (menu_bar_item): Adjust arglist (for use in map_keymap).
6295 Properly hide a second binding when not both are keymaps.
6296
6297 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
6298 (single_keymap_panes): Use it and map_keymap.
6299 (single_menu_item): Use skp as well.
6300
6301 * keymap.h (map_keymap_function_t): New type.
6302 (map_keymap): Declare.
6303
6304 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
6305 (map_keymap_call, Fmap_keymap): New functions.
6306 (syms_of_keymap): Defsubr map-keymap.
6307
4b1b4443
JD
63082003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6309
6310 * gtkutil.c (create_dialog, make_widget_for_menu_item)
6311 (make_menu_item, create_menus, xg_update_menu_item): Don't call
6312 ..._with_mnemonic functions for menu items.
6313
1f816871
KH
63142003-05-01 Kenichi Handa <handa@m17n.org>
6315
6316 * coding.c (coding_system_accept_latin_extra_p): Delete this
6317 function.
6318 (find_safe_codings): Pay attention to
6319 the property tranlsation-table-for-encode of each codings.
6320 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
6321
5ed6ba5b
SM
63222003-05-01 Stefan Monnier <monnier@cs.yale.edu>
6323
6324 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
6325
32c06229
SM
63262003-04-30 Stefan Monnier <monnier@cs.yale.edu>
6327
6328 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
6329
6330 * lisp.h (CHECK): Wrap args in parenthesis.
6331 (specbind): Fix doc: symbol = Qnil is not supported any more.
6332
6333 * bytecode.c (Fbyte_code) <unwind-protect>:
6334 Use Fprogn rather than 0 and Qnil.
6335
6336 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
6337 `double', and `triple' modifiers as well.
6338
ed3c3314
RS
63392003-04-30 Richard M. Stallman <rms@gnu.org>
6340
6341 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
6342
6343 * alloc.c (abort_on_gc): New variable.
6344 (Fgarbage_collect): Abort if abort_on_gc is set.
6345
6346 * lisp.h (abort_on_gc): Add decl.
6347
6348 * eval.c (Fsignal): Clear abort_on_gc.
6349
6350 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 6351 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
6352
6353 * xdisp.c (move_it_vertically_backward): Do the final big else
6354 even if nlines is 0.
6355
6356 * xdisp.c (redisplay_internal): Finish the per-frame loop
6357 even if redisplay is suspended by input.
6358
0b325c12
AC
63592003-04-24 Andrew Choi <akochoi@shaw.ca>
6360
6361 * macterm.c (x_list_fonts): Return all fonts that match if
6362 maxnames = -1.
6363
4e837cd0
KH
63642003-04-25 Kenichi Handa <handa@m17n.org>
6365
6366 * syntax.c (skip_chars): Fix previous change.
6367
9af7511a
KH
63682003-04-24 Kenichi Handa <handa@m17n.org>
6369
6370 * syntax.c (skip_chars): Make the code faster by using the common
6371 technique of *p, *stop, and *endp.
6372
e3b2c21f
JD
63732003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6374
6375 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 6376 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
6377 being updated.
6378
32c06229
SM
63792003-04-19 Stefan Monnier <monnier@cs.yale.edu>
6380
6381 * eval.c (Fapply): Undo last change and add a comment about why.
6382
c6464167
MB
63832003-04-18 Miles Bader <miles@gnu.org>
6384
6385 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
6386 pickier PARSE_MULTIBYTE_SEQ.
6387
e509f168
SM
63882003-04-17 Stefan Monnier <monnier@cs.yale.edu>
6389
6390 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
6391 Use XCDR, XCAR, CONSP.
6392 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
6393 (Fapply): Remove unnecessary GCPRO.
6394
6395 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
6396
6397 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
6398
6399 * buffer.h: Don't hardcode BEG==1.
6400
6401 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
6402
5ceea398
RS
64032003-04-16 Richard M. Stallman <rms@gnu.org>
6404
6405 * xdisp.c (try_window, try_window_reusing_current_matrix):
6406 When at end of window, set window_end_pos to Z-ZV.
6407
6408 * buffer.c (Foverlay_recenter): Doc fix.
6409
e509f168
SM
64102003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6411
6412 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6413
d243e605
AC
64142003-04-14 Andrew Choi <akochoi@shaw.ca>
6415
6416 * macterm.c (mac_check_for_quit_char): Don't check more often than
6417 once a second.
6418
6901b111
SM
64192003-04-11 Stefan Monnier <monnier@cs.yale.edu>
6420
6421 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
6422 specially, so that they can't hide an implicit switch-frame event.
6423 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
6424 (head_table): Use switch-frame as event_kind for select-window.
6425 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
6426
6427 * editfns.c (Fformat): Lisp_Object/int mixup.
6428 (format2): Remove unused var numargs.
6429
e301806f 64302003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 6431
6901b111 6432 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
6433 (Qafter_insert_file_set_coding): New variable.
6434 (syms_of_fileio): Initialize and staticpro it. Delete declaration
6435 for after-insert-file-adjust-coding-function.
6436 (Finsert_file_contents): Call Qafter_insert_file_set_coding
6437 instead of Vafter_insert_file_adjust_coding_function.
6438
38914424
KH
64392003-04-11 Kenichi Handa <handa@m17n.org>
6440
6441 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
6442
6443 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
6444 string. Callers changed.
6445
64462003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6447
6901b111 6448 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6449 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6450 (Finsert_file_contents):
6451 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6452 decode-format.
6453
f979dc05
JD
64542003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6455
6456 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6457 get GtkAdjustment as widget now is a GtkRange.
6458
6459 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6460 GtkRange to avoid memory leak.
6461
f8c6b4c2 64622003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6463
50ebc53d
KH
6464 * xfaces.c (Vface_font_rescale_alist): New variable.
6465 (struct font_name): New member rescale_ratio.
6466 (font_rescale_ratio): New function.
6901b111 6467 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6468 (better_font_p): On comparing point sized, pay attention to
6469 recale_ratio member of fonts.
6470 (build_scalable_font_name): Reflect font->rescale_ratio in the
6471 font name.
6901b111 6472 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6473
cb98871c
KH
6474 * lread.c (read1): Before calling index, check if the 2nd
6475 arguemnt is in ASCII range.
6476
4773b8ca
RS
64772003-04-08 Richard M. Stallman <rms@gnu.org>
6478
b0ada147
RS
6479 * fileio.c (Ffile_symlink_p): Doc fix.
6480
6481 * editfns.c (Fformat): Translate positions of text properties
6482 in the format string to apply them to the result.
6483
4773b8ca
RS
6484 * fileio.c (Finsert_file_contents): Doc fix.
6485 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6486
64872003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6488
4773b8ca
RS
6489 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6490
e8f25745 64912003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6492
e8f25745
ST
6493 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6494 that self-contained application finds libexec files.
6495
f8c6b4c2 64962003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6497
6901b111
SM
6498 * coding.c (code_convert_region_unwind):
6499 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6500 (code_convert_region): If post-read-conversion function changed
6501 the value of last-coding-sytem, keep the new value in
6502 coding->symbol so that it won't be overridden.
6503 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6504 (coding_system_accept_latin_extra_p): New function.
6505 (find_safe_codings): Pay attention to characters registered in
6506 latin-extra-code-table.
2310d84c 6507
39c9a034
TTN
65082003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6509
6510 * Makefile.in (md5.o): Add missing dependency info.
6511
eb67c5d6
RS
65122003-04-06 Richard M. Stallman <rms@gnu.org>
6513
6514 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6515
6516 * marker.c (verify_bytepos): New function.
6517
6518 * intervals.c (set_intervals_multibyte_1): When becoming
6519 multibyte, adjust right and left child sizes to a whole set of
6520 characters. If an interval gets zero total-length, delete it.
6521 If an interval consists of just its children, delete one of them.
6522
6523 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6524 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6525
eb67c5d6
RS
6526 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6527 All calls deleted.
6528 (lisp_malloc): Do the work here directly.
6529
b1f81fc5
JB
65302003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6531
6532 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6533 char tables.
6534
65352003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6536
6537 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6538 destructively change "%S" to "%s".
6539
774666fb
MB
65402003-04-03 Miles Bader <miles@gnu.org>
6541
6542 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6543 always set.
6544
19c37f01
DL
65452003-04-01 Dave Love <fx@gnu.org>
6546
6547 * xfns.c (xpm_lookup_color): Grok "opaque".
6548
2f4b24c3
AC
65492003-03-31 Andrew Choi <akochoi@shaw.ca>
6550
6551 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6552 parent window ID.
6553
6554 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6555
6556 * macterm.h (struct mac_output): Define x_pixels_diff and
6557 y_pixels_diff.
b1f81fc5 6558
9443fcf6
JB
65592003-03-31 Juanma Barranquero <lektu@terra.es>
6560
6561 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6562 blockinput.h and files included from it.
6563
e072891b
KS
65642003-03-31 Kim F. Storm <storm@cua.dk>
6565
6566 The following changes consolidates the common code related to
6567 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6568 files into frame.c.
9443fcf6 6569
e072891b
KS
6570 * frame.c: Include blockinput.h.
6571 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6572 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6573 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6574 related vars here.
6575 (struct frame_parm_table, frame_parms): New table for describing
6576 frame parameters and their associated Q-variable.
6577 The order of the parameters corresponds to the sequence of the
6578 frame_parm_handlers table in redisplay_interface.
6579 (x_fullscreen_move, x_set_frame_parameters)
6580 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6581 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6582 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6583 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6584 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6585 Generic functions for processing of frame parameters.
6586 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6587 (display_x_get_resource, x_get_resource_string): Functions for
6588 generic access to X resources.
6589 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6590 (x_default_parameter, Fx_parse_geometry): Functions for generic
6591 access to frame parameters.
6901b111
SM
6592 (x_figure_window_size): Generic calculation of frame size.
6593 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6594 (syms_of_frame): Intern and staticpro frame parameter variables.
6595 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6596 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6597
e072891b
KS
6598 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6599 parameter related vars defined in frame.c.
6600 (EMACS_CLASS): Define here.
6601 (enum FULLSCREEN_*): Define here.
6602 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6603 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6604 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6605 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6606 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6607 (x_set_visibility, x_set_autoraise, x_set_autolower)
6608 (x_set_unsplittable, x_set_vertical_scroll_bars)
6609 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6610 (x_figure_window_size): Add prototypes.
6611
6612 * dispextern.h (frame_parm_handler): New typedef.
6613 (struct redisplay_interface): New member frame_parm_handlers.
6614 (enum resource_types): Move declaration here.
6615 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6616 (x_default_parameter): Add prototypes.
6617
6618 * window.c: Remove extern decl for frame parameter vars.
6619 (change_window_heights): New generic function;
6620 replaces x_change_window_heights. All users changed.
6621
6622 * window.h (change_window_heights): Add prototype.
6623
6624 * xfaces.c: Remove extern decl for frame parameter vars.
6625
6626 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6627 (struct w32_display_info): Fix type of xrdb member.
6628 (enum FULLSCREEN_*): Remove.
6629 Remove prototypes for generic functions (in frame.h).
6630
6631 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6632 parameters now defined in frame.h and frame.c.
f63fd14e 6633 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6634 (enum x_frame_parms): Remove (bogus, unused enum).
6635 (check_x_display_info): Make non-static (for frame.c).
6636 (struct x_frame_parm_table, x_frame_parms): Remove.
6637 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6638 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6639 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6640 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6641 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6642 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6643 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6644 Remove. Use generic functions instead.
6645 (enum resource_types): Remove.
6646 (x_set_scroll_bar_default_width): New global function (for frame.c).
6647 (Fx_create_frame): Depend on x_figure_window_size to add space for
6648 toolbar and setup size_hint_flags.
6649 (x_frame_parm_handlers): New table for redisplay_interface.
6650 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 6651
e072891b 6652 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 6653 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
6654 (x_redisplay_interface): Add x_frame_parm_handlers member.
6655
6656 * w32gui.h (XrmDatabase): New (dummy) typedef.
6657
6658 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6659 (struct w32_display_info): Fix type of xrdb member.
6660 (enum FULLSCREEN_*): Remove.
6661 (x_fullscreen_adjust): Remove prototype.
6662
6663 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6664 parameters now defined in frame.h and frame.c.
f63fd14e 6665 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6666 (enum x_frame_parms): Remove (bogus, unused enum).
6667 (check_x_display_info): Make non-static (for frame.c).
6668 (struct x_frame_parm_table, x_frame_parms): Remove.
6669 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6670 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6671 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6672 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6673 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6674 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6675 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6676 Remove. Use generic functions instead.
6677 (enum resource_types): Remove.
6678 (x_set_scroll_bar_default_width): New global function (for frame.c).
6679 (Fx_create_frame): Depend on x_figure_window_size to add space for
6680 toolbar and setup size_hint_flags.
6681 (w32_frame_parm_handlers): New table for redisplay_interface.
6682 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 6683
e072891b
KS
6684 * w32term.c: Remove unnecessary extern declarations.
6685 (x_fullscreen_adjust): Remove. Use generic instead.
6686 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6687
6688 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6689
6690 * macgui.h (XrmDatabase): New (dummy) typedef.
6691
6692 * macterm.h (EMACS_CLASS): Remove.
6693 (struct mac_display_info): Add xrdb member.
6694 (struct mac_output): Add want_fullscreen member.
6695
6696 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6697 parameters now defined in frame.h and frame.c.
f63fd14e 6698 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6699 (check_x_display_info): Make non-static (for frame.c).
6700 (struct x_frame_parm_table, x_frame_parms): Remove.
6701 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6702 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6703 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6704 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6705 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6706 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6707 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6708 Remove. Use generic functions instead.
6709 (enum resource_types): Remove.
6710 (x_set_scroll_bar_default_width): New global function (for frame.c).
6711 (mac_frame_parm_handlers): New table for redisplay_interface.
6712 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 6713
e072891b
KS
6714 * macterm.c: Remove unnecessary extern declarations.
6715 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6716
3e6a560b
KS
6717 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6718 included from it (atimer.h and systime.h).
6719
7b7b454e
AS
67202003-03-30 Andreas Schwab <schwab@suse.de>
6721
6722 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6723 parameters for shift_glyphs_for_insert.
6724
6725 * macterm.c (x_redisplay_interface): Add missing entry for
6726 draw_vertical_window_border.
6727
beb402de
KG
67282003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6729
6730 * fileio.c (Fexpand_file_name): In the no-handler case, after
6731 expanding, look again for a handler and invoke it. This is needed
6732 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6733 expansion produces "/user@host:/bar/../baz" which needs to be
6734 expanded again for the finame result "/user@host:/baz".
6735
b676f356
JD
67362003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6737
6738 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6739 of area to be redrawn for better performance.
6740
3c671a56
SM
67412003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6742
6743 * xterm.c (take_vertical_position_into_account): Remove.
6744 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6745 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6746 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6747 (x_set_toolkit_scroll_bar_thumb): Simplify.
6748 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6749 (XTread_socket): Remove unused var.
6750 (x_make_frame_invisible): Replace goto with else.
6751
6752 * xdisp.c (set_vertical_scroll_bar): New fun.
6753 (redisplay_window): Use it.
6754
84f2e615
RS
67552003-03-26 Richard M. Stallman <rms@gnu.org>
6756
6757 * xdisp.c (update_tool_bar): Recompute tool bar if
6758 update_mode_lines is set. Set w->update_mode_line
6759 only if the tool bar contents actually change.
6760 (update_menu_bar): Undo previous change.
6761
70b6104c
JD
67622003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6763
5fd6f727
JD
6764 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6765 (xg_frame_set_char_size): Calculate scroll bar width before frame
6766 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6767 (xg_separator_p): Check for all documented separator types.
6768 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6769 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6770
70b6104c
JD
6771 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6772 so tool bar gets updated.
6773
d9b36d19
SM
67742003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6775
6776 * data.c (store_symval_forwarding): Re-instate part of the code
6777 that was deleted with too much enthusiasm.
6778
67792003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6780
6781 * data.c (store_symval_forwarding): Delete special read-only
6782 hack for type == -1, since we now use ->constant instead.
6783 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6784
6785 * buffer.c (overlays_in): Declare static.
6786 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6787 `constant' field rather than the variable's `type' field.
6788
365fa1b3
AC
67892003-03-24 Andrew Choi <akochoi@shaw.ca>
6790
6791 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6792
6793 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6794
6795 * fns.c [MAC_OSX]: Do not redefine vector.
6796
6797 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6798
6799 * macgui.h: Remove definition of No_Cursor.
6800
d9b36d19 6801 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
6802
6803 * xdisp.c: Define No_Cursor.
6804 (x_write_glyphs, notice_overwritten_cursor)
6805 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6806 (note_mouse_highlight): Remove Mac-specific code.
6807 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 6808
c0bcce6f
JPW
68092003-03-24 John Paul Wallington <jpw@gnu.org>
6810
6811 * xdisp.c (redisplay_window): If mini window's buffer is not
6812 empty, then redisplay it like other windows.
6813
a526b96c
KS
68142003-03-23 Kim F. Storm <storm@cua.dk>
6815
6816 * w32term.c (w32_draw_window_cursor): Fix last change.
6817
37ab321e
KH
68182003-03-23 Kenichi Handa <handa@m17n.org>
6819
a526b96c
KS
6820 * alloc.c (make_string_from_bytes, make_specified_string):
6821 Add `const' for the arg CONTENTS.
37ab321e
KH
6822
6823 * lisp.h (make_string_from_bytes, make_specified_string):
6824 Prototypes adjusted.
6825
7863d625
JD
68262003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6827
a526b96c 6828 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 6829
7863d625
JD
6830 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
6831 (XG_SB_RANGE): New define.
6832
6833 * gtkutil.c (xg_fixed_handle_expose): New function.
6834 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
6835 expose events.
6836 (xg_update_scrollbar_pos): Take two more arguments, left and width
6837 of scroll bar including borders.
6838 Clear left and right part outside scroll bar separately as some
6839 themes have bars that are not an even number of pixels.
d9b36d19 6840 Don't set reallocate_redraws, don't call
7863d625
JD
6841 gdk_window_process_all_updates.
6842 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
6843 so no need to change it. Calculate size and value with XG_SB_RANGE.
6844
d9b36d19
SM
6845 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
6846 Pass left and width of scroll bar including borders to
7863d625
JD
6847 xg_update_scrollbar_pos.
6848
af0ad939
TTN
68492003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
6850
6851 * Makefile.in: Make sure space precedes end-of-line backslashes.
6852
b22139fd
KS
68532003-03-22 Kim F. Storm <storm@cua.dk>
6854
6855 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6856 Add generic versions here. Remove system specific versions
6857 defined elsewhere.
6858
6859 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6860 Add prototypes.
6861
6e6410cf
KS
6862 * xterm.h (STORE_NATIVE_RECT): New macro.
6863
5c9cc435
KS
68642003-03-21 Kim F. Storm <storm@cua.dk>
6865
00c64fab
SM
6866 * xdisp.c (get_glyph_string_clip_rect):
6867 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
6868
6869 * dispextern.h (struct redisplay_interface): Add active_p
6870 argument to draw_window_cursor member. All uses changed.
6871
acd37560
KS
68722003-03-21 Kim F. Storm <storm@cua.dk>
6873
6874 The following changes consolidate code related to writing and
6875 inserting glyphs, exposing frame, the tool bar, the mouse face,
6876 the output cursor, and help echo from xterm.c, w32term.c and
6877 macterm.c into xdisp.c. It also generalizes the use of the
6878 window_part enum instead of using numeric values throughout.
af0ad939 6879
acd37560
KS
6880 * xdisp.c: Consolidate gui-independent code here.
6881 Include keymap.h.
6882 (Qhelp_echo): Import.
6883 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6884 (help_echo_string, help_echo_window, help_echo_object)
6885 (previous_help_echo_string, help_echo_pos): Declare here.
6886 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6887 (estimate_mode_line_height): Define here. Handle windowing
6888 systems directly (without using estimate_mode_line_height_hook).
6889 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6890 (update_window_cursor, update_cursor_in_window_tree)
6891 (fast_find_position, fast_find_string_pos)
6892 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6893 (expose_area, expose_line, expose_overlaps, expose_window)
6894 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6895 declared static as they are only used locally in xdisp.c.
6896 (draw_glyphs): Rename from x_draw_glyphs and make static.
6897 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6898 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6899 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 6900 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
6901 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6902 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6903 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6904 (note_mouse_highlight, x_clear_window_mouse_face)
6905 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6906 (x_intersect_rectangles): New generic functions for use by xdisp.c
6907 and GUI front-ends.
6908 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6909 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6910
6911 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6912 (NativeRectangle): Generic typedef for rectangle type.
6913 (enum window_part): Move here from window.c.
6914 (struct redisplay_interface): New members flush_display_optional,
6915 define_frame_cursor, clear_frame_area, draw_window_cursor,
6916 draw_vertical_window_border, shift_glyphs_for_insert.
6917 Rename member clear_mouse_face to clear_window_mouse_face.
6918 (estimate_mode_line_height_hook): Remove hook.
6919 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6920 (tool_bar_item_info): Remove prototype.
6921 (help_echo_string, help_echo_window, help_echo_object)
6922 (previous_help_echo_string, help_echo_pos)
6923 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6924 (x_stretch_cursor_p, output_cursor): Declare extern.
6925 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6926 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6927 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6928 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6929 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6930 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6931 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6932 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6933 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6934 Add prototypes.
6935 (mode_line_string, marginal_area_string): Fix prototypes.
6936
6937 * window.c (enum window_part): Move to dispextern.h.
6938 (coordinates_in_window): Use enum window_part member names
6939 instead of numbers to describe return value.
6940 (struct check_window_data): Change part member to window_part.
6941 (check_window_containing): Return window_part unaltered.
6942 (window_from_coordinates): Change part arg from int to enum
6943 window_part. Allow part arg to be null. All users changed.
6944
6945 * window.h (window_from_coordinates): Fix prototype.
6946
6947 * term.c (estimate_mode_line_height): Move to xdisp.c.
6948
6949 * keyboard.c (make_lispy_event): Use enum window_part.
6950
6951 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6952 window_part instead of int in arg list. Users changed.
6953
6954 * xterm.h (No_Cursor): Declare as None for X.
6955 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 6956
acd37560
KS
6957 * xterm.c: Remove consolidated defines and code.
6958 (BETWEEN): Remove unused macro.
6959 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6960 (x_define_frame_cursor, x_clear_frame_area)
6961 (x_draw_window_cursor): New X-specific functions for RIF.
6962 (x_redisplay_interface): Add new members.
6963
6964 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6965
6966 * w32term.h (struct w32_output): Remove cross_cursor member.
6967
6968 * w32term.c: Remove consolidated defines and code.
6969 (BETWEEN): Remove unused macro.
6970 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6971 (w32_define_frame_cursor, w32_clear_frame_area)
6972 (w32_draw_window_cursor): New W32-specific functions for RIF.
6973 (w32_redisplay_interface): Add new members.
6974
a64387ee 6975 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
6976 (XRectangle): Add X compatible rectangle type.
6977 (NativeRectangle): Declare as RECT for W32.
6978 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6979
6980 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6981
6982 * w32console.c: Remove consolidated defines and code.
af0ad939 6983
acd37560
KS
6984 * msdos.h (Display_Info): Add generic typedef.
6985
6986 * msdos.c: Remove consolidated defines and code.
6987 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6988
6989 * macterm.h (struct mac_output): Replace member cross_cursor by
6990 hand_cursor.
6991 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6992
6993 * macterm.c: Remove consolidated defines and code.
6994 (BETWEEN): Remove unused macro.
6995 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6996 (mac_define_frame_cursor, mac_clear_frame_area)
6997 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6998 (x_redisplay_interface): Add new members.
6999
7000 * macgui.h (No_Cursor): Define as 0 for Mac.
7001 (XRectangle): Add X compatible rectangle type.
7002 (NativeRectangle): Declare as Rect for Mac.
7003 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7004
204ccab1
KS
7005 * macfns.c (x_set_mouse_color): Setup hand_cursor.
7006 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 7007
9443fcf6 7008 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
7009 included from it. Add dependency on keymap.h.
7010
7011 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
7012
8ba01a70 70132003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
7014
7015 * fileio.c (Fexpand_file_name): Fix previous change.
7016
8ba01a70 70172003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
7018
7019 * fileio.c (Ffile_name_directory): Reconstruct file name by
7020 make_specified_string.
7021 (Ffile_name_nondirectory, Ffile_name_as_directory)
7022 (Fdirectory_file_name, Fexpand_file_name)
7023 (Fsubstitute_in_file_name): Likewise.
7024 (Fread_file_name): Compare decoded homedir with DIR and
7025 DEFAULT_FILENAME.
7026
7027 * alloc.c (make_specified_string): If NCHARS is negative, count
7028 the number of characters.
7029
19536747
JD
70302003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7031
de38ae5a
JD
7032 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
7033 all widgets.
7034
19536747
JD
7035 * gtkutil.h: Removed xg_ignore_next_thumb.
7036
37ab321e 70372003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
7038
7039 * coding.c (Vchar_coding_system_table): Remove this variable.
7040 (Vcoding_system_safe_chars): New variable.
7041 (intersection): Remove this function.
7042 (find_safe_codings): Don't use Vchar_coding_system_table, but try
7043 all codings in SAFE_CODINGS.
00c64fab 7044 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
7045 find_safe_codings. Get generic coding systems from
7046 Vcoding_system_safe_chars.
7047 (Fdefine_coding_system_internal): New function.
7048 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
7049 Initialize and staticpro Vcoding_system_safe_chars.
7050
17097258
JD
70512003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7052
2a2071c3
JD
7053 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
7054 equal old values before updating.
7055
17097258
JD
7056 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
7057
7058 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
7059
70602003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7061
7062 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
7063 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
7064 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
7065 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
7066 (xg_create_scroll_bar): Pass bar to button event callback.
7067 (xg_find_top_left_in_fixed): New function.
7068 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
7069 whole scroll bar area. Get old position with
7070 xg_find_top_left_in_fixed, calculate and only clear needed areas.
7071 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
7072 dragging is in progress. Calculate whole as for Motif.
7073 Remove code that saved last values. Call gtk_range functions to
7074 set scroll bar sizes.
7075
7076 * gtkutil.h: Removed xg_ignore_next_thumb.
7077
8cb9dfbf
JB
70782003-03-17 Juanma Barranquero <lektu@terra.es>
7079
7080 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
7081 and files included from it.
7082
00c64fab
SM
70832003-03-18 Stefan Monnier <monnier@cs.yale.edu>
7084
7085 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
7086 multiple occurrences of the same keymap under different prefixes.
7087 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
7088
c45bb3b2
JR
70892003-03-16 Jason Rumney <jasonr@gnu.org>
7090
7091 * w32gui.h: Use HDC for Display.
7092
7093 * w32term.c (w32_encode_char): Prevent double-byte chars from
7094 crashing Emacs.
7095
7096 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
7097 as binary.
7098
2a6d0874
JB
70992003-03-16 Juanma Barranquero <lektu@terra.es>
7100
7101 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
7102
03eb5fab
KS
71032003-03-16 Kim F. Storm <storm@cua.dk>
7104
7105 The following changes consolidate some of the gui-independent
7106 parts of the processing and drawing of "glyph strings" from
7107 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 7108
03eb5fab
KS
7109 * dispextern.h (struct glyph): Reduce face_id member from 22 to
7110 21 bits (this reduces number of faces from 4M to 2M).
7111 Replace W32 specific w32_font_type member (2 bits) by generic
7112 font_type member (3 bits) for portability.
7113 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
7114 (enum draw_glyphs_face): Define here.
7115 (struct glyph_string): Define here. Merge W32 and X versions.
7116 (struct redisplay_interface): New members per_char_metric,
7117 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
7118 (VCENTER_BASELINE_OFFSET): Define here.
7119 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
7120 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
7121
7122 * xdisp.c: Consolidate gui-independent "glyph string" code here.
7123 (dump_glyph_string): Moved here.
7124 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
7125 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
7126 (fill_composite_glyph_string, fill_glyph_string)
7127 (fill_image_glyph_string, fill_stretch_glyph_string)
7128 (left_overwritten, left_overwriting, right_overwritten)
7129 (right_overwriting, get_char_face_and_encoding)
7130 (set_glyph_string_background_width, compute_overhangs_and_x)
7131 (append_glyph, append_composite_glyph, produce_image_glyph)
7132 (take_vertical_position_into_account, append_stretch_glyph)
7133 (produce_stretch_glyph): New generic functions (based on X version).
7134 Call platform specific functions through rif.
7135 (INIT_GLYPH_STRING): New macro, hides W32 details.
7136 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
7137 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
7138 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
7139 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
7140 (notice_overwritten_cursor):
7141 Generic functions exported to platform modules. Users changed.
7142
7143 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
7144 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
7145 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 7146 New macros for consolidated code.
2a6d0874 7147
03eb5fab
KS
7148 * xterm.c: Remove consolidated defines and code.
7149 (x_per_char_metric, x_encode_char)
7150 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
7151 (x_redisplay_interface): Add new members.
7152
7153 * w32gui.h (Display): Add dummy typedef for consolidation.
7154 (XChar2b): Define alias for wchar_t for consolidation.
7155 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7156
7157 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 7158 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
7159 New macros for consolidation.
7160
fad49844 7161 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
7162 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
7163 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
7164 (w32_per_char_metric): Change font_type arg to int for RIF.
7165 (w32_encode_char): Return int according to RIF requirements.
7166 (w32_compute_glyph_string_overhangs): Adapt to RIF.
7167 (w32_get_glyph_overhangs): New function for RIF. Uses generic
7168 x_get_glyph_overhangs.
7169 (w32_redisplay_interface): Add new members.
7170
7171 * macgui.h (XChar2b): Move typedef here for consolidation.
7172 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7173
7174 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
7175 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
7176 consolidation.
7177
7178 * macterm.c: Remove consolidated defines and code.
7179 (mac_per_char_metric): New function for RIF.
00c64fab 7180 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
7181 (mac_compute_glyph_string_overhangs): Adapt for RIF.
7182 (x_redisplay_interface): Add new members.
7183
00c64fab
SM
71842003-03-15 Stefan Monnier <monnier@cs.yale.edu>
7185
7186 * keymap.c (Vmenu_events): New var.
7187 (syms_of_keymap): Initialize it.
7188 (where_is_internal): Check more carefully what is a menu event.
7189
225c7a07
RS
71902003-03-14 Richard M. Stallman <rms@gnu.org>
7191
7192 * lread.c (read1): After #!, exit loop on eof.
7193
cea9be54
JD
71942003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7195
9ea0e54d
JD
7196 * gtkutil.h: Add declaration for xg_frame_cleared.
7197
0cb35f4e
JD
7198 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
7199
cea9be54
JD
7200 * gtkutil.c (struct xg_last_sb_pos): New structure.
7201 (handle_fixed_child): New function.
7202 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
7203 and force a redraw on them.
7204 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
7205 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
7206 so we can avoid unneeded redraws.
7207 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
7208 and force a redraw on the scroll bar.
7209 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
7210 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 7211 (xg_frame_cleared): New function.
cea9be54 7212
20b853f3
KH
72132003-03-13 Kenichi Handa <handa@m17n.org>
7214
7215 * coding.c (Fdetect_coding_region): Fix docstring.
7216 (Fdetect_coding_string): Fix docstring.
7217
7a555aff
AS
72182003-03-13 Andreas Schwab <schwab@suse.de>
7219
25cc0080
AS
7220 * gtkutil.c: Add prototype for create_menus.
7221
30225431
AS
7222 * data.c (long_to_cons): Fix type of top.
7223
7224 * xselect.c (selection_data_to_lisp_data): Use int instead of
7225 long for an integer of size 4.
7226
7a555aff 7227 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 7228 (xg_tool_bar_help_callback): Likewise.
7a555aff 7229
a3e4741f
AS
72302003-03-12 Andreas Schwab <schwab@suse.de>
7231
7232 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
7233
9668be7c
KS
72342003-03-12 Kim F. Storm <storm@cua.dk>
7235
03eb5fab 7236 The following changes consolidate the fringe handling from
9668be7c 7237 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 7238
9668be7c
KS
7239 * xdisp.c: Consolidate fringe handling code here.
7240 (left_bits, right_bits, continued_bits, continuation_bits)
7241 (ov_bits, zv_bits): Define fringe bitmaps.
7242 (fringe_bitmaps): New array holding fringe bitmaps.
7243 (draw_fringe_bitmap): Draw a specific bitmap; call display
7244 specific drawing routine via rif->draw_fringe_bitmap.
7245 (draw_row_fringe_bitmaps): Generic replacement for
7246 x_draw_row_fringe_bitmaps; all callers changed.
7247 (compute_fringe_widths): Generic replacement for
7248 x_compute_fringe_widths; all callers changed.
7249
7250 * dispextern.h (enum fringe_bitmap_type): Define here.
7251 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
7252 (fringe_bitmaps): Declare extern.
7253 (struct redisplay_interface): New member draw_fringe_bitmap.
7254 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
7255
7256 * xterm.c: Remove generic fringe code.
7257 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7258 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7259
7260 * w32term.c: Remove generic fringe code.
7261 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
7262 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 7263
9668be7c
KS
7264 * macterm.c: Remove generic fringe code.
7265 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7266 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7267
00a88f32
SM
72682003-03-11 Stefan Monnier <monnier@cs.yale.edu>
7269
7270 * print.c (Fprin1_to_string): Return unibyte string if possible.
7271
1d1de695
DK
72722003-03-09 David Kastrup <dak@gnu.org>
7273
7274 * process.c (read_process_output): We have allocated enough space
7275 for readmax and carryover, so actually use the alloted space.
7276
257f40f2
JD
72772003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7278
7279 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
7280 toolkit scrollbar click.
7281
7282 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
7283 for USE_GTK.
7284 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
7285 also.
7286 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
7287 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 7288
257f40f2
JD
7289 * gtkutil.h: Declare xg_get_scroll_id_for_window.
7290
7291 * gtkutil.c (xg_get_scroll_id_for_window): New function.
7292 (xg_tool_bar_item_expose_callback): New function.
7293 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
7294 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
7295 on the tool bar widget.
7296 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
7297 to expose on the tool bar item widgets.
7298
15213141
JD
72992003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7300
26b74a0b 7301 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 7302 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
7303 deleted from the image cache).
7304
15213141
JD
7305 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
7306 the event isn't for a frame (i.e. for dialogs).
7307
20b853f3 73082003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
7309
7310 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
7311 composition components reaches the limit, terminate composing.
7312 (COMPOSITION_OK): New macro.
00a88f32 7313 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
7314 composition is found.
7315 (coding_restore_composition): Adjust the number of composition
7316 components if it is not sane.
7317
c9029fe5
JB
73182003-03-06 Juanma Barranquero <lektu@terra.es>
7319
7320 * w32term.h (struct w32_display_info): Add xrdb member to support
7321 passing resources via -xrm on Windows.
7322
7323 * w32term.c (w32_make_rdb): New function.
7324 (w32_term_init): Use it to initialize xrdb member of w32_display_info
7325 struct. Delete leftover code.
7326
7327 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
7328 for resources passed on the command line.
7329
7330 * w32reg.c (w32_get_rdb_resource): New function.
7331 (x_get_string_resource): Use it, so resources passed with -xrm
7332 supercede the ones in the registry.
7333
9d00001f
JD
73342003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7335
7336 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
7337 instead of x_top_window_to_frame.
7338
ca2417b9
JD
73392003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7340
7341 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
7342 when restarting Emacs.
7343
5b20caf0
RS
73442003-03-03 Richard M. Stallman <rms@gnu.org>
7345
7346 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
7347 to run kill-buffer-query-functions.
7348 (Qkill_buffer_query_functions): New var.
7349 (syms_of_buffer): Init and staticpro it.
7350
58e91b77
JD
73512003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7352
7353 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
7354
932357b4
KS
73552003-02-25 Kim F. Storm <storm@cua.dk>
7356
7357 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
7358 If centering point failed to make whole line visible and vscroll
7359 is non-zero, disable vscroll and try centering point again.
7360
7361 * lread.c (read1): Accept `single space' syntax like (? x).
7362
bb8db7e1
JD
73632003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7364
7365 * keyboard.c (cancel_hourglass_unwind): Surround with
7366 #ifdef HAVE_X_WINDOWS
7367
47d77aab
KH
73682003-02-25 Kenichi Handa <handa@m17n.org>
7369
7370 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
7371 process only when "subprocesses" is defined.
7372
6a097c0c
SM
73732003-02-24 Stefan Monnier <monnier@cs.yale.edu>
7374
7375 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
7376
0b063c27
JB
73772003-02-24 Juanma Barranquero <lektu@terra.es>
7378
d1135afc
JB
7379 * callint.c (fix_command): Declare as static void and move before
7380 Fcall_interactively.
7381
0b063c27
JB
7382 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
7383 (syms_of_xdisp): Don't initialize Qwhen.
7384
0af912f0
JD
73852003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7386
7387 * keyboard.c (cancel_hourglass_unwind): New function.
7388 (command_loop_1): Cancel hourglass with unwind-protect.
7389
120d0a23
RS
73902003-02-23 Richard M. Stallman <rms@gnu.org>
7391
7392 * callint.c (fix_command): New subroutine, from Fcall_interactively.
7393 Detect (when ... (region-beginning)) etc.
7394 (Fcall_interactively): Call fix_command.
7395 (Qif, Qwhen): New variables.
7396 (syms_of_callint): Init and staticpro them.
0b063c27 7397
120d0a23
RS
7398 * regex.c (print_partial_compiled_pattern): Output to stderr.
7399
4ece81a6
KG
74002003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7401
7402 * dired.c (directory_files_internal): Don't expand directory.
7403 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7404 instead. From Lars Hansen <larsh@math.ku.dk>.
7405
e52bd6b7
SM
74062003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7407
7408 * fns.c (string_to_multibyte): Remove unused var i.
7409 (Flanginfo): Fix int/Lisp_Object mixup.
7410 (void_call2): New fun.
7411 (Fmap_char_table): Use it in place of call2.
7412
7413 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7414
7415 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
7416
7417 * keymap.c (copy_keymap_1): Make it static.
7418
7419 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
7420
c33ef7c4
JB
74212003-02-22 David Ponce <david@dponce.com>
7422
7423 * lread.c (Fload): Don't check STRING_MULTIBYTE.
7424
16782258
JD
74252003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7426
7427 * process.h: Removed subtty field from struct Lisp_Process.
7428
7429 * process.c (create_process): Remove setting of subtty.
7430 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
7431 (Fprocess_running_child_p, process_send_signal):
7432 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
7433 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
7434
3abeca61
KG
74352003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7436
7437 * keymap.c (Fdefine_key): Doc fix.
7438
92a8ce63
JB
74392003-02-21 Juanma Barranquero <lektu@terra.es>
7440
7441 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
7442
7443 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
7444 POLLING_PROBLEM_IN_SELECT.
7445
7446 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7447 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7448
7449 * s/hpux10-20.h: New file.
7450
e52bd6b7
SM
7451 * process.c (wait_reading_process_input):
7452 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7453
20f1ef2e
KH
74542003-02-20 Kenichi Handa <handa@m17n.org>
7455
32d0a9dc
KH
7456 * fontset.c (check_fontset_name): If NAME is nil, return the
7457 default fontset.
7458 (override_font_info): New function.
e52bd6b7 7459 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7460 (Ffontset_info): If FONTSET is not the default fontset, merge
7461 FONTSET onto the copy of the default fontset, and work on that
7462 copy. Document that NAME nil means the default fontset.
7463 (Ffontset_font): Document that NAME nil means the default fontset.
7464
20f1ef2e
KH
7465 * process.c (setup_process_coding_systems): If the process's
7466 in/out descriptor is -1, do nothing.
7467
77d1daf2
AS
74682003-02-19 Andreas Schwab <schwab@suse.de>
7469
e52bd6b7
SM
7470 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7471 Add prototypes.
77d1daf2 7472
f9a45bb3
KH
74732003-02-19 Kenichi Handa <handa@m17n.org>
7474
7475 * xfaces.c (try_alternative_families): Try all scalable fonts if
7476 Vscalable_fonts_allowed is not Qt.
7477
72ecb43c
JD
74782003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7479
7480 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7481
ee5be7c3
JD
74822003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7483
7484 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7485 names.
7486
7487 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7488 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7489 x_face_list_fonts.
7490 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7491 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7492
4cd519a7
KS
74932003-02-18 Kim F. Storm <storm@cua.dk>
7494
068f9882
KS
7495 * lread.c (read1): Fix last change.
7496 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7497
7290a344
AC
74982003-02-18 Andrew Choi <akochoi@shaw.ca>
7499
7500 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7501
1f7fa69b
AS
75022003-02-18 Andreas Schwab <schwab@suse.de>
7503
7504 * window.c (window_scroll_pixel_based): Move outside a
7505 multi-glyph character before setting new window start.
7506
7507 * xdisp.c (in_display_vector_p): New function.
7508 * dispextern.h (in_display_vector_p): Declare.
7509
23e21195
KS
75102003-02-18 Kim F. Storm <storm@cua.dk>
7511
7512 * lread.c (read1): Fix and relax read syntax.
7513 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7514 Only recognize "," after dotted-pair dot if inside backquote.
7515 Never include "`" or "," (inside backquote) in a symbol.
7516 Allow dotted-pair dot after a character constant.
7517 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7518
f098b121
JD
75192003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7520
7521 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7522 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7523 icons. Set name of tool bar to emacs-toolbar.
7524 (update_frame_tool_bar): Connect expose event to
7525 xg_tool_bar_expose_callback.
7526
63020c46
RS
75272003-02-17 Richard M. Stallman <rms@gnu.org>
7528
7529 * keyboard.c (this_command_key_count_reset): New variable.
7530 Initiatize to 0 where this_command_key_count is set.
7531 (read_char): Save and restore this_command_key_count_reset
7532 around input method code.
7533 (read_char): If this_command_key_count_reset, echo reread commands.
7534 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7535
fb4452cc
KH
75362003-02-17 Kenichi Handa <handa@m17n.org>
7537
7538 * fns.c (string_to_multibyte): Always return a multibyte string.
7539
bd11cc09
JR
75402003-02-16 Jason Rumney <jasonr@gnu.org>
7541
e52bd6b7
SM
7542 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7543 Negative max_fonts parameter means list all.
bd11cc09 7544
4cdf4bde
DL
75452003-02-14 Dave Love <fx@gnu.org>
7546
7547 * fns.c (Flanginfo): Doc fix.
7548
023b93f6
KS
75492003-02-13 Kim F. Storm <storm@cua.dk>
7550
37cd4238
KS
7551 * lread.c (read_escape): Interpret \s as a SPACE character, except
7552 for \s-X in a character constant which still is the super modifier.
7553 (read1): Signal an `invalid read syntax' error if a character
7554 constant is immediately followed by a digit or symbol character.
7555
140a6b7e
KS
7556 * search.c (Fmatch_data): Doc fix. Explicitly state that
7557 match-data is undefined if last search failed.
7558
023b93f6
KS
7559 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7560 All uses changed.
7561
7d5c86e5
JB
75622003-02-12 Juanma Barranquero <lektu@terra.es>
7563
7564 * eval.c (Fdefmacro): Fix typo.
7565
295fff2c
KS
75662003-02-12 Kim F. Storm <storm@cua.dk>
7567
7568 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7569 macro is a string, convert meta modifiers in string when copying
7570 the string into a vector.
7571
60f3202d
KS
75722003-02-11 Kim F. Storm <storm@cua.dk>
7573
7574 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7575
61cb0b53
KH
75762003-02-11 Kenichi Handa <handa@m17n.org>
7577
7578 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7579
7392e23c
KS
75802003-02-10 Kim F. Storm <storm@cua.dk>
7581
7582 * process.c: Doc fixes.
7583 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7584
ce4254bd
KH
75852003-02-10 Kenichi Handa <handa@m17n.org>
7586
9c7a329a
KH
7587 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7588
ce4254bd
KH
7589 * process.c (QCfilter_multibyte): New variable.
7590 (setup_process_coding_systems): New function.
e52bd6b7
SM
7591 (Fset_process_buffer, Fset_process_filter):
7592 Call setup_process_coding_systems.
ce4254bd
KH
7593 (Fstart_process): Initialize the member `filter_multibyte' of
7594 struct Lisp_Process.
7595 (create_process): Call setup_process_coding_systems.
7596 (Fmake_network_process): New keyward `:filter-multibyte'.
7597 Initialize the member `filter_multibyte' of struct Lisp_Process.
7598 Call setup_process_coding_systems.
7599 (server_accept_connection): Call setup_process_coding_systems.
7600 (read_process_output): If the process has a filter, decide the
7601 multibyteness of a string to given to the filter by
7602 `filter_multibyte' member of the process. If the process doesn't
7603 have a filter and the result of conversion is unibyte, use
7604 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7605 multibyte form.
7606 (Fset_process_coding_system): Call setup_process_coding_systems.
7607 (Fset_process_filter_multibyte): New function.
7608 (Fprocess_filter_multibyte_p): New function.
7609 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7610 Defsubr Sset_process_filter_multibyte and
7611 Sprocess_filter_multibyte_p.
7612
7613 * process.h (struct Lisp_Process): New member filter_multibyte.
7614
7615 * lisp.h (setup_process_coding_systems): Add prototype.
7616
7617 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7618 process, update coding systems for the process.
7619
b08d5f59
KH
76202003-02-09 Kenichi Handa <handa@m17n.org>
7621
7622 * fns.c (string_to_multibyte): New function.
7623 (Fstring_to_multibyte): New function.
7624 (syms_of_fns): Defsubr it.
7625
0dfd93c0
AS
76262003-02-08 Andreas Schwab <schwab@suse.de>
7627
7628 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7629 instead of the substitution.
7630
7b76ca1c
JD
76312003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7632
7633 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7634
7635 * xmenu.c (menu_position_func): Adjust menu popup position so that
7636 the menu is fully visible.
7b76ca1c 7637
2436a4e4
JD
76382003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7639
7640 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
7641 (x_make_frame_invisible, x_wm_set_icon_position):
7642 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
7643
7644 * xfns.c (x_set_name, x_set_title): Ditto.
7645
37d1e680
RS
76462003-02-04 Richard M. Stallman <rms@gnu.org>
7647
7648 * keyboard.c (echo_now): Update before_command_echo_length.
7649 (Freset_this_command_lengths): Reset this_command_key_count etc.
7650 immediately rather than arranging to do it later.
7651 (before_command_key_count_1, before_command_echo_length_1)
7652 (before_command_restore_flag): Vars deleted.
7653 (add_command_key): Don't handle before_command_restore_flag.
7654 (read_char, record_menu_key): Don't update before_command_key_count or
7655 before_command_echo_length.
7656 (read_char): Don't handle before_command_restore_flag.
7657
7658 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7659 in direct-output clauses if it wouldn't be called in the ordinary case.
7660
578846a3
KS
76612003-02-04 Kim F. Storm <storm@cua.dk>
7662
7663 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7664
49853a4d
JD
76652003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7666
7667 * gtkutil.c (remove_from_container): Copying list is not needed.
7668 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7669 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7670 on list returned from gtk_container_get_children to avoid memory leak.
7671
8b53dc06
JR
76722003-02-01 Jason Rumney <jasonr@gnu.org>
7673
5d54d177
JR
7674 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7675 local malloc.
7676 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7677 definitions in xpm.h.
7678 (init_xpm_functions): New function.
f63fd14e 7679 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
7680 (init_external_image_libraries): Try to load libXpm.dll.
7681
8b53dc06
JR
7682 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7683 timestamp.
7684
b222e415
DL
76852003-01-31 Dave Love <fx@gnu.org>
7686
7687 * syntax.c (Fskip_chars_forward)
7688 (open-paren-in-column-0-is-defun-start): Doc fix.
7689
c60ee5e7
JB
76902003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7691
7692 * fileio.c: Support // at start of name for Cygwin (just added proper
7693 preprocessor tests).
7694
7695 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7696
7697 * Makefile.in: Use @EXEEXT@ for Cygwin.
7698
7699 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7700
7701 * s/cygwin.h: Added for Cygwin port.
7702
53b37591
JB
77032003-01-31 Juanma Barranquero <lektu@terra.es>
7704
7705 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7706 when including gif_lib.h.
fe929957 7707 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
7708 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7709 Windows. Disable color table lookups. Call library functions
53b37591 7710 through pointers determined at runtime.
fe929957
JB
7711 (init_external_image_libraries): Try to load libungif.dll and
7712 libtiff.dll.
53b37591 7713
45415a8f
KH
77142003-01-31 Kenichi Handa <handa@m17n.org>
7715
7716 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 7717 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 7718
a97e4138
JD
77192003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7720
e52bd6b7 7721 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 7722
6eed9bed
DL
77232003-01-30 Dave Love <fx@gnu.org>
7724
7725 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7726 (Fgarbage_collect): Use them.
7727 (init_alloc, syms_of_alloc): Set them up.
7728
100dcd40
JB
77292003-01-30 Juanma Barranquero <lektu@terra.es>
7730
7731 * w32fns.c (init_external_image_libraries): Add missing operator.
7732
fbd852af
JR
77332003-01-29 Jason Rumney <jasonr@gnu.org>
7734
7735 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7736 an alternative name for jpeg.dll.
7737
8a2d8020
KH
77382003-01-29 Kenichi Handa <handa@m17n.org>
7739
7740 * xdisp.c (set_cursor_from_row): Pay attention to string display
7741 properties.
7742
058c18c7
AC
77432003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7744
7745 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7746 <escape>.
7747 (keycode_to_xkeysym_table): Reformat and add more comments.
7748 (XTread_socket): Drop special case for backspace.
7749
385f11cf
AC
77502003-01-28 Andrew Choi <akochoi@shaw.ca>
7751
7752 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7753 values in old-style RGB specs.
7754
c922a224
JB
77552003-01-27 Juanma Barranquero <lektu@terra.es>
7756
7757 * w32fns.c (init_external_image_libraries): Try alternate names for the
7758 jpeg dll.
7759
0a1d6de0
JD
77602003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7761
7762 * gtkutil.c (create_dialog, xg_separator_p)
7763 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7764 before calling strcmp or strlen.
7765
a97e4138 77662003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
7767
7768 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7769 and handle image load failure.
7770
28908312
JR
77712003-01-26 Jason Rumney <jasonr@gnu.org>
7772
7773 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7774 New functions.
f63fd14e
JB
7775 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7776 Disable color table lookups. Call jpeg library functions
28908312
JR
7777 through pointers determined at runtime.
7778 (init_external_image_libraries): Try to load jpeg.dll.
7779
84e47416
RS
77802003-01-25 Richard M. Stallman <rms@gnu.org>
7781
7782 * lisp.h: Declare format2 instead of format1.
7783
7784 * fileio.c (barf_or_query_if_file_exists):
7785 Call format2 instead of format1.
7786
7787 * editfns.c (format2): New function, replaces format1
7788 but takes exactly two Lisp Objects as format args.
7789
7790 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7791
a97e4138 77922003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
7793
7794 * xterm.h: Change to return value of x_dispatch_event to int.
7795
7796 * xterm.c (x_filter_event): New function.
7797 (event_handler_gdk, XTread_socket): Call x_filter_event.
7798 (x_dispatch_event): Change to return value of finish.
7799 (event_handler_gdk): Use return value from x_dispatch_event.
7800
7801 * xfns.c (x_window): Call create_frame_xic for GTK version to
7802 initialize input methods.
7803
7804 * gtkutil.h: Add (void) prototypes.
7805
7806 * gtkutil.c (create_menus): Remove code that puts the help menu to
7807 the right.
7808
54eefef1
JR
78092003-01-25 Jason Rumney <jasonr@gnu.org>
7810
7811 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
7812 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
7813 (png_load): Adjust colors for Windows. Use Windows
7814 bitmaps. Disable color table lookups.
c262430d
JR
7815 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
7816 (init_png_functions): New function.
7817 (png_read_from_memory, png_load): Call png library functions
7818 through pointers determined at runtime.
7819 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
7820 (init_external_image_libraries): New function.
7821 (init_xfns): Call it.
54eefef1 7822
1a9e275b
AS
78232003-01-24 Andreas Schwab <schwab@suse.de>
7824
7825 * minibuf.c (Fminibuffer_message): Verify type of parameter.
7826
a97e4138 78272003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
7828
7829 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
7830 of static initializer.
7831
422eec7e
DL
78322003-01-24 Dave Love <fx@gnu.org>
7833
7834 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
7835 architectures.
7836
7837 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
7838 Use __alignof__.
7839
2a026b04
KH
78402003-01-24 Kenichi Handa <handa@m17n.org>
7841
7842 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 7843 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
7844 (command_loop_1): Call adjust_point_for_property with proper
7845 second arg.
7846
a18bb28d
JR
78472003-01-22 Jason Rumney <jasonr@gnu.org>
7848
7849 Sync changes with xterm.c and xfns.c.
7850
7851 * w32term.c (x_draw_glyph_string_foreground)
7852 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7853
7854 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
7855 phys_cursor's hpos is overwritten. This is still not completely
7856 correct, as it doesn't really make sense to use hpos at all to
7857 get the cursor glyph (as that is relative to the width of the
7858 characters on the line, which may have changed during the update).
7859
7860 * w32term.c (notice_overwritten_cursor): Handle the special case
7861 of the cursor being in the first blank non-text line at the
7862 end of a window.
7863
7864 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7865 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7866 Compute from the x position returned by x_draw_glyphs.
7867
7868 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7869 except for NO_CURSOR and system caret, to make phys_cursor_width
7870 contain what its name suggests.
7871 (notice_overwritten_cursor): Consider the cursor image erased if
7872 the output area intersects the cursor image in y-direction.
7873
6a097c0c
SM
7874 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7875 note_mode_line_highlight and extend.
a18bb28d
JR
7876
7877 * w32term.c (last_window): New variable.
7878 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7879 (note_mouse_movement): Remove reimplemented code in #if 0.
7880
7881 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7882 not update_mode_lines, and always set it to 1.
7883
ac6e47ef
JR
78842003-01-21 Jason Rumney <jasonr@gnu.org>
7885
7886 * w32fns.c (IDC_HAND): Define it if system headers don't.
7887
78882003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7889
7890 * w32term.h (struct w32_output): New member hand_cursor.
7891 (WM_EMACS_SETCURSOR): New message definition.
7892
7893 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7894 function w32_define_cursor.
7895 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7896 position, change member name output_data.x to output_data.w32 and
7897 add function w32_define_cursor.
7898 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7899 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
7900 (w32_initialize_display_info):
7901 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
7902
7903 * w32fns.c (Vx_hand_shape): New variable.
7904 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7905 WM_EMACS_SETCURSOR.
7906 (x-create-frame): Setup Cursor types.
7907
ceb39a17
JB
79082003-01-21 David Ponce <david@dponce.com>
7909
ac6e47ef 7910 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 7911 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 7912 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 7913 2002-09-30.)
ac6e47ef
JR
7914 (w32_draw_relief_rect): Declare all args.
7915 (w32_define_cursor): New.
7916
7917 * w32fns.c (w32_load_cursor): New function.
7918 (w32_init_class): Use it.
7919 (x_put_x_image): Declare all args.
7920
46cf0bed
JB
79212003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7922
7923 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7924
a97e4138 79252003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
7926
7927 * gtkutil.c: Must include stdio.h before termhooks.h
7928
83fc9c63
DL
79292003-01-21 Dave Love <fx@gnu.org>
7930
7931 * alloc.c (Fgc_status): Print zombie list.
7932 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7933 Fix assignment of zombies.
7934 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7935 Don't take car of non-cons.
7936
7937 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7938
7939 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7940
fe04b8c8
JR
79412003-01-20 David Ponce <david@dponce.com>
7942
7943 * w32menu.c (digest_single_submenu): Declare all args.
7944
7945 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7946 changes in xmenu.c:
7947
7948 (parse_single_submenu): Use individual keymap's prompt
7949 string as pane name, if there is one.
7950 (set_frame_menubar): Save menu_items_n_panes from each call to
7951 parse_single_submenu and use it when calling digest_single_submenu.
7952
539e69a9
ST
79532003-01-20 Steven Tamm <steventamm@mac.com>
7954
7955 * macterm.c (XTread_socket): Checks for valid, visible window
7956 before sending a scroll-wheel event.
7957
675d000f
RS
79582003-01-20 Richard M. Stallman <rms@gnu.org>
7959
7960 * xdisp.c (redisplay_window): If mini window's buffer is not
7961 a minibuffer, then redisplay it like other windows.
7962
a97e4138 79632003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
7964
7965 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7966 external tool bar before setting tool bar height.
7967
048addec
JD
79682003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7969
7970 * xterm.c (handle_one_xevent): Surround popup_activated
7971 with #ifdef:s for non-toolkit version.
7972
7973 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7974 (gtkutil.o): New file.
7975 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7976 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7977
7978 * gtkutil.c: New file for GTK version.
7979
7980 * gtkutil.h: New file for GTK version.
7981
7982 * xterm.h: Add xt_or_gtk_widget.
7983 Include gtk files for USE_GTK.
7984 (struct x_output): Add toolbar_height.
7985 (struct x_output): Add GTK widgets and Gdk size_hints.
7986 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7987 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7988 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7989
7990 * xterm.c: Include gtkutil.h for USE_GTK.
7991 Declare extern void free_frame_menubar for USE_GTK.
7992 (note_mouse_highlight): Check popup_activated for USE_GTK.
7993 (xt_action_hook): Don't compile if USE_GTK.
7994 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7995 (xg_scroll_callback): New function.
7996 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7997 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7998 for USE_GTK.
7999 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
8000 xg_show_scroll_bar for USE_GTK.
8001 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
8002 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
8003 (event_handler_gdk): New function for USE_GTK.
8004 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
8005 (handle_one_xevent): Make sure widget is mapped before
8006 calling x_real_positions for USE_GTK.
8007 (XTread_socket): Add GTK event loop for USE_GTK.
8008 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
8009 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
8010 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
8011 (x_iconify_frame): Add code for USE_GTK.
8012 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
8013 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
8014 is in gtkutil.c.
8015 (x_term_init): Add initialization for GTK.
8016 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
8017
8018 * xmenu.c: Include gtkutil.h for USE_GTK.
8019 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
8020 (single_menu_item, single_menu_item, Fx_popup_dialog):
8021 Check for USE_GTK.
048addec
JD
8022 (popup_widget_loop): New function for USE_GTK.
8023 (x_activate_menubar): Add code for USE_GTK.
8024 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
8025 (menu_highlight_callback, menubar_selection_callback):
8026 Add USE_GTK versions.
048addec
JD
8027 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
8028 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
8029 (free_frame_menubar): Only compile if not USE_GTK. GTK version
8030 is in gtkutil.c.
8031 (popup_selection_callback): New version for USE_GTK.
8032 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 8033 one USE_X_TOOLKIT version.
048addec
JD
8034 (xmenu_show): Call create_and_show_popup_menu.
8035 (dialog_selection_callback): New version for USE_GTK.
8036 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 8037 one USE_X_TOOLKIT version.
048addec
JD
8038 (xdialog_show): Call create_and_show_dialog.
8039
8040 * xfns.c: Include gtkutil for USE_GTK.
8041 (x_window_to_frame, x_any_window_to_frame)
8042 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8043 (x_top_window_to_frame): Add code for USE_GTK.
8044 (x_set_background_color): Call xg_set_background_color for GTK.
8045 (x_set_menu_bar_lines): Check for USE_GTK.
8046 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
8047 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
8048 (x_window): Call xg_create_frame_widgets for USE_GTK.
8049 (Fx_create_frame): Check for USE_GTK
8050 (Fx_file_dialog): New implementation for USE_GTK.
8051
8052 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
8053 (update_menu_bar): Add check for USE_GTK.
8054 (update_tool_bar): Add check for USE_GTK and external tool bar.
8055 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
8056 (redisplay_internal): Add check for USE_GTK and popup_activated.
8057 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
8058 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
8059 (display_menu_bar): Add check for USE_GTK
8060
8061 * lisp.h: Declare Vx_resource_name extern.
8062
a64387ee 8063 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
8064 for USE_GTK.
8065 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
8066
8067 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
8068 (FRAME_EXTERNAL_TOOL_BAR): New macro.
8069 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
8070
8071 * fileio.c (Fread_file_name): Add check for USE_GTK.
8072
6bdb309a
SM
8073 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
8074 Add check for USE_GTK.
048addec
JD
8075
8076 * config.in: Added HAVE_GTK
8077
8078 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
8079
80802003-01-18 Stefan Monnier <monnier@cs.yale.edu>
8081
8082 * charset.h (Funibyte_char_to_multibyte): Export.
8083
80842003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8085
8086 * xmenu.c (mouse_position_for_popup): New function.
8087 (Fx_popup_menu): Call mouse_position_for_popup for X and
8088 mouse_position_hook for others.
8089
80902003-01-17 Kim F. Storm <storm@cua.dk>
8091
8092 * editfns.c (Finsert): Mention `string-make-multibyte' and
8093 `string-as-multibyte' in doc string.
8094
80952003-01-17 Kenichi Handa <handa@m17n.org>
8096
8097 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 8098
048addec
JD
8099 * editfns.c (Fformat): Convert an unibyte char argument that is
8100 formatted by "%c" to multibyte if the total result must be a
8101 multibyte string.
cd7df9c0 8102
048addec 81032003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 8104
048addec
JD
8105 * process.c (set-process-filter): Document unibyte/multibyte-ness
8106 of string argument.
56210ecd 8107
048addec 81082003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 8109
048addec 8110 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 8111
048addec
JD
8112 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
8113 (re_search_2): Likewise.
6df8b9fe 8114
048addec 81152003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 8116
048addec
JD
8117 * xdisp.c (message_dolog): Fix bug of the case that *Message*
8118 buffer is unibyte.
292ddc31 8119
048addec 81202003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 8121
048addec 8122 * fns.c (Fsubstring): Clarify doc string.
292ddc31 8123
048addec
JD
8124 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
8125 (Fprevious_char_property_change)
8126 (Fnext_single_char_property_change)
8127 (Fprevious_single_char_property_change, Fnext_property_change)
8128 (Fnext_single_property_change, Fprevious_property_change)
8129 (Fprevious_single_property_change, Fadd_text_properties)
8130 (Fput_text_property, Fset_text_properties)
8131 (Fremove_text_properties, Fremove_list_of_text_properties)
8132 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 8133
048addec 81342003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 8135
048addec
JD
8136 * process.h (struct Lisp_Process): New member plist replaces old
8137 member private_vars. All uses changed.
63e4e4c6 8138
048addec 8139 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 8140 (QCplist): Rename from QCvars. Change all uses.
048addec 8141 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 8142 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 8143 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 8144 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 8145
048addec 81462003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 8147
6bdb309a 8148 * m/delta.h: Remove (obsolete).
e833850f 8149
048addec 81502003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 8151
048addec
JD
8152 * fileio.c (Fdelete_directory, Fdelete_file): Document the
8153 behaviour in front of symlinks.
8154 (Fdelete_file): Raise an error on directories.
817cb127 8155
048addec 81562003-01-13 Dave Love <fx@gnu.org>
817cb127 8157
048addec 8158 * fns.c (Freverse): Use QUIT.
3e8cf2ea 8159
048addec 81602003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 8161
048addec
JD
8162 * minibuf.c (minibuffer_completion_contents):
8163 Error if point is inside prompt.
3e8cf2ea 8164
048addec
JD
8165 * keyboard.c (command_loop_1): Don't redisplay directly
8166 if there's a post-command-hook.
3e8cf2ea 8167
048addec
JD
8168 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
8169 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 8170
048addec 81712003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 8172
048addec 8173 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 8174
048addec
JD
8175 * process.c (QCvars): New variable.
8176 (syms_of_process): Intern and staticpro it.
8177 (Fset_process_contact): Removed function.
8178 (Fprocess_variable, Fset_process_variable): New functions.
8179 (syms_of_process): Defsubr them.
8180 (Fstart_process): Initialize private_vars plist to nil.
8181 (Fmake_network_process): New arg :vars to setup the private
8182 variables for new network process.
8183 (server_accept_connection): Copy server's private variables to
8184 client process.
2c10f029 8185
048addec
JD
8186 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
8187 crashes). Code rewritten and simplified. Now directly aligns the
8188 pointer and recalculates pure_bytes_used, rather than aligning the
8189 size and adjusting the pointer.
b8a76c6c 8190
048addec 81912003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 8192
048addec
JD
8193 * process.c (Fset_process_contact): New function.
8194 (syms_of_process): defsubr it.
8195 (make-network-process): Update doc.
3a8d0899 8196
048addec 81972003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 8198
048addec
JD
8199 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
8200 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 8201
048addec 82022003-01-10 Dave Love <fx@gnu.org>
4abc7470 8203
048addec 8204 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 8205
048addec 82062003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 8207
048addec
JD
8208 * process.c (Fmake_network_process): Convert new port number
8209 to host byte order for `:service t' case. From Mario Lang.
bf338245 8210
048addec 82112003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 8212
048addec
JD
8213 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
8214 instead of XtAppProcessEvent.
bf338245 8215
048addec
JD
8216 * xterm.c (handle_one_xevent): New function.
8217 (x_dispatch_event): New function.
8218 (XTread_socket): Call handle_one_xevent.
bf338245 8219
048addec 8220 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 8221
048addec
JD
8222 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
8223 call XQueryPointer to get coordinates.
8224 (popup_get_selection): Do not set popup_activated_flag to zero,
8225 let popup_deactivate_callback do that. Needed for Motif.
8226 Call x_dispatch_event instead of XtDispatchEvent.
8227 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 8228
048addec 82292003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 8230
6bdb309a 8231 * process.c (server_accept_connection): Fix recording of new
048addec
JD
8232 connection's local address in :local property of contact info.
8233 (Fmake_network_process): Record local network address for new
8234 client processes in :local property of contact info.
6bdb309a 8235 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 8236
048addec 82372003-01-07 Dave Love <fx@gnu.org>
00e3ab56 8238
048addec 8239 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 8240
048addec 82412003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 8242
048addec 8243 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 8244
048addec
JD
8245 * eval.c (Fuser_variable_p): Doc change. For custom variables,
8246 use the same test as for custom-variable-p.
8c6d74c6 8247
048addec 82482003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 8249
048addec
JD
8250 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
8251 Count LAST_LINE_MISFIT in scroll margin for end of window.
8252 Move label too_near_end before setting SCROLL_MARGIN_POS.
8253 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 8254
048addec
JD
8255 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
8256 scroll_conservatively case. If scrolling that much doesn't change
8257 STARTP, move it down one line.
e833850f 8258
048addec
JD
8259 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
8260 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 8261
048addec
JD
8262 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
8263 selected frame.
8c6d74c6 8264
048addec
JD
8265 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
8266 (syms_of_keymap): staticpro them.
8267 (Fapropos_internal): Initialize them and clear them out.
8268 Don't GCPRO them.
8c6d74c6 8269
048addec
JD
8270 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
8271 Doc fixes.
8c6d74c6 8272
048addec
JD
8273 * lisp.h: New misc type Lisp_Save_Value.
8274 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
8275 (XSAVE_VALUE): New macro.
8276 (struct Lisp_Save_Value): New data type.
8277 (union Lisp_Misc): Add u_save_value alternative.
8278 (make_save_value): Declared.
8c6d74c6 8279
048addec 8280 * alloc.c (make_save_value): New function.
8c6d74c6 8281
048addec
JD
8282 * xterm.c (x_catch_errors): Save dpy using make_save_value.
8283 (x_catch_errors_unwind): Call XSync.
8c6d74c6 8284
048addec 82852003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 8286
048addec 8287 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 8288
048addec
JD
8289 * keyboard.c (command_loop_1): Call adjust_point_for_property
8290 in direct action cases for Qforward_char and Qbackward_char.
8291 Set already_adjusted so it won't be done twice.
8c6d74c6 8292
048addec 82932002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 8294
048addec
JD
8295 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
8296 type definition of size_t.
8c609cff 8297
048addec 82982003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 8299
048addec
JD
8300 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
8301 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 8302
048addec 83032002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 8304
048addec
JD
8305 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
8306 to default to t.
fa634a5e 8307
048addec 83082002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 8309
048addec 8310 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 8311
048addec 83122002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 8313
048addec
JD
8314 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
8315 allow building in a different directory than source. Uses some
8316 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 8317
048addec 83182002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 8319
048addec
JD
8320 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
8321 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
8322 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
8323 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 8324
048addec 83252002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 8326
048addec
JD
8327 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
8328 <scroll-down-aggressively>: Doc fix.
2155ecf3 8329
048addec
JD
8330 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
8331 string as pane name, if there is one.
8332 (set_frame_menubar): Save menu_items_n_panes from each call to
8333 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 8334
048addec
JD
8335 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
8336 Don't try to make last line fully visible if it is past end of window.
61f1d295 8337
048addec 83382002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 8339
048addec
JD
8340 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
8341 (mac_menu_show): Add support for hierarchical popup menus.
8342 (add_menu_item): Remove indentation support.
8343 (fill_submenu, fill_menu): Create hierarchical menus
8344 instead of using indentation.
0b17a217 8345
048addec 83462002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 8347
048addec
JD
8348 * xdisp.c (try_cursor_movement): Don't call try_window here.
8349 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 8350
048addec 8351 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 8352
048addec 83532002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 8354
048addec
JD
8355 * macterm.c (XTread_socket): Call KeyTranslate for control and
8356 meta to deal correctly shifted non-alpha characters, like C-S-5
8357 being treated like C-%. Does not look for shift key to deal
8358 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 8359
048addec 83602002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 8361
048addec
JD
8362 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
8363 If it is non-nil, run timers. Use an unwind-protect to requeue
8364 the events that were read ahead.
8365 (popup_get_selection_unwind): New subroutine.
8366 (popup_get_selection_queue): File-scope variable now holds that queue.
8367 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
8368 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
8369 Use an unwind-protect to pop down the dialog box.
8370 (xdialog_show_unwind): New subroutine implements that.
f02cac82 8371
048addec
JD
8372 * xdisp.c (row_containing_pos): Change exit test using last_y.
8373 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 8374
048addec
JD
8375 * lread.c (load_error_handler): New function.
8376 (Fload): Handle errors in Fsubstitute_in_file_name.
8377 Don't expect Fsignal to return.
f02cac82 8378
048addec
JD
8379 * eval.c: Errors and throws work right with interrupt blocking.
8380 (struct catchtag): New elt interrupt_input_blocked.
8381 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
8382 (internal_catch, Fcondition_case, internal_condition_case)
8383 (internal_condition_case_1, internal_condition_case_2): Save it.
8384 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 8385
048addec 8386 * editfns.c (Fformat): Add parens.
f02cac82 8387
048addec
JD
8388 * dired.c (file_name_completion): Fix that change.
8389 Delete special quit-handling code; just use QUIT.
f02cac82 8390
048addec 83912002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 8392
048addec
JD
8393 * dired.c (file_name_completion): Close directory on error
8394 just as in directory_files_internal.
1a590729 8395
048addec 83962002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 8397
048addec
JD
8398 * window.c (Fset_window_configuration): Set old_point to correct
8399 value when new_current_buffer == current_buffer.
f02cac82 8400
048addec 84012002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 8402
048addec
JD
8403 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8404 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8405 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8406
048addec
JD
8407 These changes were in part based upon suggestions made by Peter
8408 'Luna' Runestig [peter@runestig.com].
9785d95b 8409
048addec
JD
8410 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8411 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8412 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8413 global variables.
9785d95b 8414
048addec
JD
8415 * w32.c (globals_of_w32): New function. Used to initialize those
8416 global variables that must always be initialized on startup even
8417 when the global variable initialized is non zero. Its primary
8418 purpose at this time is to set the global variables
8419 g_b_init_is_windows_9x, g_b_init_open_process_token,
8420 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
8421 g_b_init_get_sid_identifier_authority to 0 on startup.
8422 Called from main.
9785d95b 8423
048addec
JD
8424 * w32.c (is_windows_9x): Perform initialization only if
8425 g_b_init_is_windows_9x is equal to 0. On initialization set
8426 g_b_init_is_windows_9x equal to 1.
2308af15 8427
048addec
JD
8428 * w32.c (open_process_token): Perform initialization only if
8429 g_b_init_open_process_token is equal to 0. On initialization set
8430 g_b_init_open_process_token equal to 1.
2308af15 8431
048addec
JD
8432 * w32.c (get_token_information): Perform initialization only if
8433 g_b_init_get_token_information is equal to 0. On initialization
8434 set g_b_init_get_token_information equal to 1.
9785d95b 8435
048addec
JD
8436 * w32.c (lookup_account_sid): Perform initialization only if
8437 g_b_init_lookup_account_sid is equal to 0. On initialization
8438 set g_b_init_lookup_account_sid equal to 1.
9785d95b 8439
048addec
JD
8440 * w32.c (get_sid_identifier_authority): Perform initialization
8441 only if g_b_init_get_sid_identifier_authority is equal to 0.
8442 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 8443
f63fd14e 8444 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8445 those global variables that must always be initialized on startup
8446 even when the global variable initialized is non zero.
8447 Its primary purpose at this time is to initialize the global variable
8448 track_mouse_event_fn.
9785d95b 8449
a64387ee 8450 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8451 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8452
048addec 8453 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8454
f63fd14e 8455 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8456 initialize those global variables that must always be initialized
8457 on startup even when the global variable initialized is non zero.
8458 Its primary purpose at this time is to initialize the global
8459 variables get_menu_item_info and set_menu_item_info.
9785d95b 8460
048addec
JD
8461 * w32menu.c (initialize_frame_menubar): Remove initialization of
8462 get_menu_item_info and set_menu_item_info.
9785d95b 8463
048addec 8464 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8465
048addec
JD
8466 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8467 Declare them.
9785d95b 8468
048addec
JD
8469 * emacs.c (main): Call globals_of_w32 prior to calling
8470 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8471 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8472 is defined.
9785d95b 8473
048addec
JD
8474 * w32term.c (x_update_window_begin): Fix Windows API error
8475 detected by BoundsChecker. Test to determine if
8476 w32_system_caret_hwnd is NULL prior to attempting to use
8477 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8478
048addec
JD
8479 * w32term.c (x_update_window_end): Fix Windows API error
8480 detected by BoundsChecker. Test to determine if
8481 w32_system_caret_hwnd is NULL prior to attempting to use
8482 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8483
048addec 84842002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8485
048addec
JD
8486 * coding.c (coding_system_require_warning): New variable.
8487 (syms_of_coding): DEFVAR it.
b6da19ef 8488
048addec 8489 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8490
048addec
JD
8491 * fileio.c (choose_write_coding_system): Even if
8492 Vcoding_system_for_write is non-nil, if
8493 coding_system_require_warning is nonzero, call
8494 Vselect_safe_coding_system_function.
bfcf6dbe 8495
048addec 84962002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8497
048addec
JD
8498 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8499 (lisp): Add font-core.
2c568af5 8500
048addec 85012002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8502
048addec
JD
8503 * textprop.c (text_read_only): New arg `propval'.
8504 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8505 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8506
048addec 85072002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8508
048addec 8509 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8510
048addec 85112002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8512
048addec
JD
8513 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8514 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8515 Be more careful about when help_events are generated.
96720f09 8516
048addec 85172002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8518
048addec
JD
8519 * macterm.c (mac_check_for_quit_char): Correctly set the
8520 modifiers of the event to 0.
8521 * mac.c (sys_select): Duplicate rfds before calling select to
8522 ensure that rfds survive the while loop.
e5ae1c49 8523
048addec 85242002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8525
048addec
JD
8526 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8527 row_containing_pos returned NULL.
2eb46b2d 8528
048addec 85292002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8530
6bdb309a 8531 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8532 non-blocking.
6bdb309a 8533 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8534 the one given.
b11f1d8a 8535
048addec 85362002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8537
048addec 8538 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8539
048addec 85402002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8541
048addec
JD
8542 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8543 as the last thing.
a4ac5b17 8544
048addec 85452002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8546
048addec 8547 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8548
048addec 85492002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8550
048addec
JD
8551 * editfns.c (Fformat): Handle precision in string conversion
8552 specifiers like libc functions do (ie, print at most that many
8553 characters).
85cce843 8554
048addec 85552002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8556
048addec
JD
8557 * xdisp.c (row_containing_pos): Check more carefully
8558 whether charpos is really in the row before returning it.
0d4d26a7 8559
048addec 85602002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8561
048addec 8562 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8563
048addec
JD
8564 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8565 each stack frame. This may change as it could be time consuming.
0d4d26a7 8566
048addec
JD
8567 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8568 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8569 (mac_initialize): Add code to check for pressing of quit_char
048addec 8570 in the OS event queue.
b11f1d8a 8571
048addec
JD
8572 * mac.c (sys_select): Call mac_check_for_quit_char every second
8573 while blocking on select.
0d4d26a7 8574
048addec
JD
8575 * mac.c (sys_read): Use sys_select to test for input first
8576 before calling read, to allow C-g to break.
9252f7bc 8577
048addec 85782002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8579
048addec 8580 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8581
048addec 8582 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8583
048addec 8584 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8585
048addec
JD
8586 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8587 autoload.
9252f7bc 8588
048addec 8589 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8590
048addec 8591 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8592
048addec 85932002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8594
048addec 8595 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8596
048addec 85972002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8598
048addec 8599 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8600
048addec 8601 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8602
048addec 8603 * alloca.c: Don't use #error.
02d588e2 8604
048addec 86052002-12-03 Dave Love <fx@gnu.org>
02d588e2 8606
048addec
JD
8607 * buffer.c (Qucs_set_table_for_input): New.
8608 (Fget_buffer_create): Use it.
8609 (Qset_buffer_major_mode_hook): Deleted.
8610 (Fset_buffer_major_mode): Revert previous change.
8611 (init_buffer_once): Intern ucs-set-table-for-input.
8612 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8613 Add &Qucs_set_table_for_input.
451e2697 8614
048addec 86152002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8616
048addec
JD
8617 * callint.c (Fcall_interactively): Use next_event only if less
8618 than key_count.
72742a99 8619
048addec 86202002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8621
048addec
JD
8622 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8623 names to 255 characters.
72742a99 8624
048addec
JD
8625 * macterm.c (XTread_socket): If all frames have been collapsed,
8626 expand the first one before handling drag-and-drop events.
72742a99 8627
048addec
JD
8628 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8629 which is detected by autoconf.
40e6ff95 8630
048addec 86312002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 8632
048addec
JD
8633 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8634 offset in two hints table to allow prebinding to be redone and
8635 allow the executable to be stripped.
c02138c6 8636
048addec 86372002-11-29 Dave Love <fx@gnu.org>
c02138c6 8638
048addec
JD
8639 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8640 already provided.
0e47bbf7 8641
048addec 86422002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 8643
048addec
JD
8644 * xdisp.c (start_display): Check more intelligently for
8645 whether the line is continued.
8646 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 8647
048addec 86482002-11-28 Dave Love <fx@gnu.org>
44129dcb 8649
048addec
JD
8650 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8651 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 8652
048addec 86532002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 8654
048addec
JD
8655 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8656 more descriptive error output from lread.c:Fload upon most require
8657 cycles during boostrapping.
1637fd2c 8658
048addec 86592002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 8660
048addec
JD
8661 * fileio.c (Finsert_file_contents): Give a more appropriate error
8662 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 8663
048addec
JD
8664 * dired.c (Ffile_attributes): Don't return negative file sizes for
8665 files bigger than 2Gb when off_t is 32 bit.
540c2788 8666
048addec 86672002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 8668
048addec 8669 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 8670
048addec
JD
8671 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8672 Test GETPGRP_VOID instead.
8673 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 8674
048addec
JD
8675 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8676 Don't define.
8677 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 8678
048addec 8679 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 8680
048addec 86812002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 8682
048addec
JD
8683 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8684 supported.
4042a81a 8685
048addec 86862002-11-25 Dave Love <fx@gnu.org>
4042a81a 8687
048addec 8688 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 8689
048addec 8690 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 8691
048addec 86922002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 8693
048addec 8694 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 8695
048addec 86962002-11-24 Steven Tamm <steventamm@mac.com>
82122254 8697
048addec
JD
8698 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8699 determine the size of pointers alloced in unexed space instead
8700 of using possibly invalid emacs_zone pointers. This fixes the
8701 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 8702
048addec 87032002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 8704
048addec 8705 * search.c (Fstring_match): Doc fix.
c1ee53bc 8706
048addec
JD
8707 * callint.c (Fcall_interactively): If a command fails because
8708 `*' detects a read-only buffer, but RECORD_FLAG is set,
8709 record it anyway if the args don't actually do tty input.
5598c32e 8710
048addec 87112002-11-22 Dave Love <fx@gnu.org>
5598c32e 8712
048addec 8713 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 8714
048addec
JD
8715 * keyboard.c (interrupt_signal): Provide forward declaration.
8716 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 8717
048addec 8718 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 8719
048addec 87202002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 8721
048addec
JD
8722 * eval.c (interactive_p): Skip any number of bytecode
8723 and special form frames, in any order.
516eea8e 8724
048addec 87252002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 8726
048addec
JD
8727 * w32fns.c (convert_mono_to_color_image): New function.
8728 (xbm_load, xbm_load_image): Use it when foreground or background
8729 is explicitly set.
04dbfa08 8730
048addec 87312002-11-19 Dave Love <fx@gnu.org>
04dbfa08 8732
048addec 8733 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 8734
048addec 87352002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 8736
048addec
JD
8737 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8738 (XPutPixel): Swap blue and red.
8739 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8740 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8741 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8742 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 8743
048addec 87442002-11-18 Dave Love <fx@gnu.org>
d824beee 8745
048addec 8746 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 8747
048addec 8748 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 8749
048addec 8750 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 8751
048addec
JD
8752 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8753 malloc, realloc, calloc.
d824beee 8754
048addec
JD
8755 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8756 (bcmp): Don't define.
d824beee 8757
048addec 8758 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 8759
048addec 8760 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 8761
048addec 8762 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 8763
048addec 8764 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 8765
048addec
JD
8766 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8767 Don't include alloca.h.
d824beee 8768
048addec 8769 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 8770
048addec 8771 * regex.c (_GNU_SOURCE): Don't define.
1998560a 8772
048addec 8773 * process.c (_GNU_SOURCE): Don't define.
1998560a 8774
048addec 8775 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 8776
048addec 87772002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 8778
048addec 8779 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 8780
048addec 87812002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 8782
048addec
JD
8783 * dispextern.h (struct face): Add `overstrike' field.
8784 * xterm.c (x_draw_glyph_string_foreground)
8785 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8786 * xfaces.c (load_face_font): Set `face->overstrike' based on
8787 result from choose_face_font.
8788 (best_matching_font, choose_face_font): Add `needs_overstrike'
8789 argument, and use it to return whether overstriking is desirable
8790 for this face/font combo.
8791 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 8792
048addec 87932002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 8794
048addec
JD
8795 This change is my fix for the following entry in etc/PROBLEMS:
8796 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8797 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 8798
048addec
JD
8799 * w32.c: Added wrapper functions around the win32 API functions
8800 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8801 GetSidIdentifierAuthority. These wrapper functions serve two
8802 purposes:
8803 1. They ensure that the wrapped function can never be called
8804 when Emacs is running on an operating system on which they are
8805 not supported (Microsoft Windows 95 / 98 / ME).
8806 2. They call the wrapped functions via function pointers rather
8807 than calling them directly. This avoids taking advantage of the
8808 undocumented fact that although these functions are not supported
8809 in the 9x branch of Microsoft Windows, the functions do exist in
8810 the version of advapi32.dll that is found in the 9x branch of
8811 Microsoft Windows.
f60ae425 8812
6bdb309a 8813 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
8814 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
8815 and GetSidIdentifierAuthority with calls to the newly added
8816 wrapper functions.
f60ae425 8817
048addec
JD
8818 * w32.h: Added extern declarations for the following functions:
8819 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
8820 syms_of_w32menu, and void syms_of_fontset.
f60ae425 8821
6bdb309a 8822 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
8823 function pointer track_mouse_event_fn in the handler for the
8824 WM_SETFOCUS message.
3582b6a3 8825
6bdb309a 8826 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
8827 reinitialize the function pointers set_menu_item_info and
8828 get_menu_item_info.
f60ae425 8829
048addec 88302002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 8831
048addec
JD
8832 * sound.c: Added a partial implementation of play-sound-internal
8833 for Microsoft Windows. Added various #ifdef / #else / #endif
8834 code blocks to separate the code that will compile under
8835 Microsoft Windows from the code that is specific to Gnu/Linux.
8836 Moved several blocks of code around to make this separation of code
8837 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 8838
048addec 8839 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 8840
048addec
JD
8841 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
8842 added support for play-sound-internal under Windows would be
8843 included in the build of Emacs.
517f42a0 8844
048addec 88452002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 8846
048addec 8847 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 8848
048addec 8849 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 8850
048addec 88512002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 8852
048addec
JD
8853 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
8854 (adjust_point_for_property): Move out of display and invisible even if
8855 we were already inside before (in case a property was added while
8856 we weren't looking). Be more careful when handling invisible props.
8857 Skip invisible text as if it really wasn't there at all.
aab83f91 8858
048addec 88592002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 8860
048addec
JD
8861 * w32term.c (x_draw_image_foreground)
8862 (w32_draw_image_foreground_1): Use standard copy and invert
8863 operations to draw images.
aab83f91 8864
048addec
JD
8865 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8866 depth of 1.
8867 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8868 (XPutPixel): Don't invert bits here.
a4478a76 8869
048addec 88702002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 8871
048addec
JD
8872 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8873 (w32_draw_image_foreground_1): Handle image masks.
8874 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 8875
048addec
JD
8876 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8877 (x_from_xcolors): Adjust RGB values for W32.
8878 (image_background, image_background_transparent)
8879 (postprocess_image, x_to_xcolors, x_disable_image)
8880 (x_build_heuristic_mask): Adapt for W32 and enable.
8881 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8882 (xbm_load): Remove unused variable.
03670a65 8883
048addec 88842002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 8885
048addec 8886 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 8887
048addec 88882002-11-14 Dave Love <fx@gnu.org>
59daa29a 8889
048addec 8890 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 8891
048addec
JD
8892 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8893 * xmenu.c (unuse_menu_items, digest_single_submenu):
8894 * xfns.c (x_put_x_image):
8895 * xdisp.c (message2_nolog, set_message):
8896 * undo.c (record_point):
8897 * terminfo.c (tparam):
8898 * syntax.c (scan_sexps_forward):
8899 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8900 * composite.c (update_compositions):
8901 * cm.c (calccost, cmgoto):
8902 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 8903
048addec 8904 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 8905
048addec
JD
8906 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8907 Don't declare.
59daa29a 8908
048addec 8909 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 8910
048addec
JD
8911 * fns.c (Fcopy_sequence): Doc fix.
8912 (Fmap_char_table): Cast `call2'.
3947677c 8913
048addec
JD
89142002-11-14 Francesco Potorti` <pot@gnu.org>
8915
8916 * s/sol2-8.h: New file.
8917
89182002-11-14 Kim F. Storm <storm@cua.dk>
8919
8920 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8921 dependency on `risky-local-variable' and the :propertize form.
8922
89232002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8924
8925 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8926
8927 * syntax.c (scan_sexps_forward): Undo last patch.
8928 Use a more obvious fix: check eob before updating the syntax table.
8929
89302002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8931
8932 * syntax.c (scan_sexps_forward): Update syntax table before reading
8933 a char rather than after so we don't update the table past eob.
8934
89352002-11-09 Dave Love <fx@gnu.org>
8936
8937 * buffer.c (Fset_buffer_major_mode): Fix last change.
8938
8939 * regex.c (regexec): Fix pmatch declaration.
8940
8941 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8942
8943 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8944 to self-inserting characters.
8945 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8946
8947 * coding.c (Vtranslation_table_for_input): New.
8948 (syms_of_coding): DEFVAR it.
8949
89502002-11-08 Juanma Barranquero <lektu@terra.es>
8951
8952 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8953 window.
8954
89552002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8956
6bdb309a 8957 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
8958 cp, and i.
8959
89602002-11-06 Dave Love <fx@gnu.org>
8961
8962 * buffer.c (Qset_buffer_major_mode_hook): New.
8963 (Fset_buffer_major_mode): Use it.
8964
89652002-11-06 Richard M. Stallman <rms@gnu.org>
8966
8967 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8968 and stop_polling.
8969
8970 * process.c (wait_reading_process_input):
8971 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8972 Avoid initialization for auto Lisp_Object var.
8973
8974 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8975
8976 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8977
89782002-11-05 Richard M. Stallman <rms@gnu.org>
8979
8980 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8981
8982 * callint.c (Fcall_interactively): New local filter_specs.
8983 (Fcall_interactively): Check for progn as well as let.
8984 Add a gcpro.
8985 (Qprogn): New variable.
8986 (syms_of_callint): Staticpro and init Qprogn.
8987
89882002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8989
8990 * lread.c (Feval_buffer): Doc fix.
8991
89922002-11-04 Dave Love <fx@gnu.org>
8993
8994 * keyboard.c (read_char): Always translate iff
8995 Vkeyboard_translate_table is a char table and c is valid.
8996
8997 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8998 and fix C types.
8999
90002002-11-03 Stefan Monnier <monnier@cs.yale.edu>
9001
9002 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
9003
9004 * editfns.c (get_pos_property): Don't hardcode Qfield.
9005
9006 * keyboard.c (adjust_point_for_property): Handle `display' prop on
9007 overlays. Also handle `invisible' prop.
9008
90092002-11-02 Stefan Monnier <monnier@cs.yale.edu>
9010
9011 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
9012 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
9013
90142002-11-01 Andreas Schwab <schwab@suse.de>
9015
9016 * editfns.c (Fmessage): Revert last change to properly handle %%.
9017
90182002-11-01 Stefan Monnier <monnier@cs.yale.edu>
9019
9020 * xmenu.c (unuse_menu_items): New fun.
9021 (menu_items_inuse): New var.
9022 (syms_of_xmenu): Initialize it.
9023 (init_menu_items): Use it to detect re-entrance.
9024 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
9025 (Fx_popup_menu): Remove spurious XSETFRAME.
9026
9027 * editfns.c (find_field): Make an exception for nil fields.
9028
90292002-11-01 Dave Love <fx@gnu.org>
9030
9031 * m/gec63.h: Deleted.
9032
90332002-10-31 Dave Love <fx@gnu.org>
9034
9035 * xterm.c (XTread_socket): Fix last change.
9036 (xaw_scroll_callback): Cast call_data to long to avoid warning.
9037
90382002-10-31 Stefan Monnier <monnier@cs.yale.edu>
9039
9040 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
9041
90422002-10-30 Stefan Monnier <monnier@cs.yale.edu>
9043
9044 * editfns.c (overlays_around, get_pos_property): New funs.
9045 (find_field): Use them.
9046 Also be careful not to modify POS before its last use.
9047 (Fmessage): Don't Fformat if there's nothing to format.
9048
90492002-10-30 Dave Love <fx@gnu.org>
9050
9051 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
9052 [HAVE_PTY_H]; Include pty.h.
9053
9054 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
9055
9056 * xterm.c (Qeql): Declare.
9057 (Vx_keysym_table): New.
9058 (syms_of_xterm): Initialize it.
9059 (XTread_socket): Use it. Deal with ASCII keysyms.
9060 (XSetIMValues) [HAVE_X11R6]: Prototype.
9061
9062 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
9063 (lispy_kana_keys): Comment out.
9064 (make_lispy_event) [XK_kana_A]: Comment out.
9065 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
9066 Fix sprintf call.
9067
9068 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
9069 regexp.h change).
9070 (TERMINFO, LIBS_TERMCAP): Define.
9071
9072 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
9073 (bcmp): Define conditional on HAVE_BCMP.
9074 (NO_SIOCTL_H): Don't define.
9075 (TIOCSIGSEND): Don't make conditional on IRIX6.
9076
9077 * s/sol2-5.h: Don't include strings.h.
9078 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
9079
9080 * s/irix6-0.h (IRIX6): Don't define.
9081 (bcopy, bcmp, bzero): Don't undef.
9082
9083 * s/irix6-5.h: Don't include strings.h.
9084 (IRIX6): Don't define.
9085 (bcopy, bcmp, bzero): Don't undef.
9086
9087 * syntax.c (Fforward_comment): Doc fix.
9088
90892002-10-29 Kim F. Storm <storm@cua.dk>
9090
9091 * process.c (Fsignal_process): Allow PROCESS to be specified by
9092 name in addition to pid (as integer or string).
9093
90942002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
9095
9096 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
9097 environments.
9098
90992002-10-27 Kim F. Storm <storm@cua.dk>
9100
9101 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9102
9103 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
9104
9105 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
9106
9107 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9108
91092002-10-26 Richard M. Stallman <rms@gnu.org>
9110
9111 * editfns.c (Fformat): Detect invalid format letters for floats.
9112
91132002-10-25 Kenichi Handa <handa@m17n.org>
9114
9115 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
9116 (x_set_title): Likewise.
9117
91182002-10-25 Juanma Barranquero <lektu@terra.es>
9119
9120 * macgui.h:
9121 * w32gui.h: Remove definition of XColor.
9122
9123 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
9124
91252002-10-24 Kim F. Storm <storm@cua.dk>
9126
9127 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
9128 Callers changed (supply dummy arg).
9129
9130 * lisp.h (get_window_cursor_type): Update prototype.
9131
9132 * w32term.c (x_display_and_set_cursor): Get active_cursor from
9133 get_window_cursor_type to track system caret.
9134
91352002-10-24 Kim F. Storm <storm@cua.dk>
9136
9137 * process.c (Fformat_network_address): New function.
9138 (syms_of_process): Defsubr it.
9139 (list_processes_1): Use it to format :local/:remote address if
f9711de4 9140 service/host is not set; before Emacs would crash in that case.
048addec
JD
9141 (Fmake_network_process): Don't use Ffind_operation_coding_system
9142 to setup coding system if host or service is not set.
9143
91442002-10-23 Juanma Barranquero <lektu@terra.es>
9145
9146 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
9147
9148 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
9149 COLORREF.
9150
9151 * macgui.h:
9152 * w32gui.h: Add definition of XColor.
9153
9154 * macfns.c:
9155 * w32fns.c:
9156 * xfaces.c: Remove definition of XColor.
9157
91582002-10-22 Stefan Monnier <monnier@cs.yale.edu>
9159
9160 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
9161
9162 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
9163 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
9164 window if it is dedicated.
9165 (Fshrink_window): Add preserve_before as was done for enlarge_window.
9166 (Vspecial_display_function): Update docstring.
9167
9168 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
9169 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
9170 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
9171
91722002-10-21 Stefan Monnier <monnier@cs.yale.edu>
9173
9174 * casefiddle.c (casify_region): Don't treat a prefix char as part
9175 of a word when at the beginning.
9176
91772002-10-17 Juanma Barranquero <lektu@terra.es>
9178
9179 * lread.c (syms_of_lread): Fix typos.
9180
91812002-10-17 Dave Love <fx@gnu.org>
9182
9183 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
9184
91852002-10-16 Richard M. Stallman <rms@gnu.org>
9186
9187 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
9188
91892002-10-14 Juanma Barranquero <lektu@terra.es>
9190
9191 * w16select.c (syms_of_win16select): Fix docstring for
9192 `selection-coding-system'.
9193
9194 * w32select.c (syms_of_w32select): Likewise.
9195
91962002-10-14 Stefan Monnier <monnier@cs.yale.edu>
9197
9198 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
9199 a backslash-quoted char.
9200 (scan_lists, scan_sexps_forward): Pacify the compiler.
9201
92022002-10-13 Richard M. Stallman <rms@gnu.org>
9203
9204 * window.c (window_scroll): Set immediate_quit.
9205
9206 * print.c (print): When backquote form is the car of a list,
9207 output in old style. Use old_backquote_output to output all
9208 comma forms inside it in old style too.
9209
9210 * buffer.h (struct buffer): Move `undo_list' down below `name'.
9211
92122002-10-11 Markus Rost <rost@math.ohio-state.edu>
9213
9214 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
9215 batch mode).
9216
9217 * lread.c (Fload): Doc fix (load-suffixes).
9218
92192002-10-10 Steven Tamm <steventamm@mac.com>
9220
9221 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
9222 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
9223 Also switch the default to Qnil from Qt.
9224
92252002-10-08 Kenichi Handa <handa@m17n.org>
9226
9227 * coding.c (code_convert_region): When we need more GAP for
9228 conversion, pay attention to the case that coding->produced is not
9229 greater than coding->consumed.
9230
92312002-10-07 Richard M. Stallman <rms@gnu.org>
9232
9233 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
9234
92352002-10-06 Andrew Choi <akochoi@shaw.ca>
9236
9237 * macmenu.c (mac_menu_show): Add j to count menu items; match
9238 menu_item_selection to it to find selected item.
9239
92402002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9241
9242 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
9243 cases. The correct fix is to pass ReparentNotify to Xt.
9244 The shell widget interprets ConfigureNotify differently depending
9245 on if it has been reparented or not.
9246
92472002-10-05 Markus Rost <rost@math.ohio-state.edu>
9248
9249 * editfns.c (Fformat_time_string): Doc fix.
9250
92512002-10-05 John Paul Wallington <jpw@shootybangbang.com>
9252
9253 * fns.c (Flength): Doc fix.
9254
92552002-10-04 Stefan Monnier <monnier@cs.yale.edu>
9256
9257 * keyboard.c (keyremap): New struct.
9258 (read_key_sequence): Use it: globally replace keytran_foo with
9259 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
9260 keytran_next and fkey_next to just `next'.
9261
92622002-10-04 Steven Tamm <steventamm@mac.com>
9263
9264 * macterm.c (keycode_to_xkeysym_table): Change return to be
9265 treated like an X keysym.
9266
92672002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9268
9269 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
9270 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
9271 This is to also handle x/y changes that occur because of a resize.
9272
92732002-10-02 John Paul Wallington <jpw@shootybangbang.com>
9274
9275 * frame.c (Vdelete_frame_functions): New variable.
9276 (syms_of_frame): Initialize and defvar it.
9277 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
9278 it when frame's `tooltip' parameter is non-nil.
9279
9280 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
9281
9282 * w32fns.c (x_create_tip_frame): Likewise.
9283
9284 * macfns.c (x_create_tip_frame): Likewise.
9285
92862002-09-30 Kenichi Handa <handa@m17n.org>
9287
9288 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
9289 -1 before calling ccl_driver.
9290
9291 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
9292 Only when it is non-nil, handle composition sequence.
9293 (setup_coding_system) <0>: Don't force composition handling.
9294
9295 * Makefile.in (lisp, shortlisp): Add utf-16.elc
9296
92972002-09-29 Richard M. Stallman <rms@gnu.org>
9298
9299 * search.c (Freplace_match): Adjust match data for the substitution
9300 just made in the buffer.
9301
9302 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
9303 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
9304
93052002-09-27 Richard M. Stallman <rms@gnu.org>
9306
9307 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
9308 (read_char): Use them. Do all exits thru the end of the function.
9309
93102002-09-27 Kenichi Handa <handa@etl.go.jp>
9311
9312 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
9313 is nil.
9314
93152002-09-26 Richard M. Stallman <rms@gnu.org>
9316
9317 * regex.h (__restrict_arr): Don't define if already defined.
9318
9319 * coding.c (run_pre_post_conversion_on_str):
9320 Save and restore Vdeactivate_mark.
9321
93222002-09-26 John Paul Wallington <jpw@shootybangbang.com>
9323
9324 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
9325
93262002-09-26 Kenichi Handa <handa@etl.go.jp>
9327
9328 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
9329 nonzero, try face's family at first. Otherwise try FAMILY at first.
9330 (choose_face_font): If C is a single byte char or latin-1, call
9331 try_font_list with PREFER_FACE_FAMILY 1.
9332
93332002-09-21 Richard M. Stallman <rms@gnu.org>
9334
9335 * window.c (select_window_1): Don't select frame.
9336 Set frame's selected window only when frame itself is selected.
9337 (Fselect_window): Doc fix.
9338
93392002-09-18 Kim F. Storm <storm@cua.dk>
9340
9341 * process.c (make-network-process): Doc fix (there is no
9342 network-server-log-function hook).
9343
93442002-09-18 Richard M. Stallman <rms@gnu.org>
9345
9346 * print.c (print): Clear out the unused parts of Vprint_number_table.
9347 (syms_of_print): Doc fix for `print-number-table'.
9348
9349 * unexelf.c (unexec): Undo previous change.
9350
93512002-09-17 Andreas Schwab <schwab@suse.de>
9352
9353 * m/alpha.h [LINUX]: Don't define DATA_START.
9354
93552002-09-16 Dave Love <fx@gnu.org>
9356
9357 * unexelf.c (unexec): Deal with .got, reinstating change from
9358 25-08-1999.
9359
93602002-09-13 Richard M. Stallman <rms@gnu.org>
9361
9362 * s/sol2-6.h (UNEXEC): Comment out definition.
9363
9364 * unexsol.c (unexec): Don't downcase first letter of error msg.
9365
9366 * xfaces.c (Fcolor_supported_p): Just one arg is required.
9367
93682002-09-12 Markus Rost <rost@math.ohio-state.edu>
9369
9370 * unexsol.c: Include buffer.h, charset.h, coding.h.
9371
93722002-09-11 Richard M. Stallman <rms@gnu.org>
9373
9374 * unexsol.c: Don't use report_file_error; do it by hand
9375 using dlerror.
9376
9377 * process.c (wait_reading_process_input, both versions):
9378 Before calling turn_on_atimers, call stop_polling.
9379
9380 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
9381
9382 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
9383 we go to too_near_end, call clear_glyph_matrix.
9384 (redisplay_window): After make_cursor_line_fully_visible,
9385 call clear_glyph_matrix and bypass `goto done'.
9386
9387 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
9388 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
9389
93902002-09-10 Richard M. Stallman <rms@gnu.org>
9391
9392 * fileio.c (Fdo_auto_save): Catch error making directory.
9393 Only call push_message if we need to.
9394 At the same time, make an unwind-protect to pop it.
9395 Rename local message_p to old_message_p.
9396 (do_auto_save_make_dir, do_auto_save_eh): New functions.
9397 (do_auto_save_unwind): Don't call pop_message.
9398
9399 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
9400
9401 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
9402
9403 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9404
9405 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9406
94072002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9408
9409 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9410 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9411 (re_match_2_internal): Be more careful with infinite loops.
9412
94132002-09-10 Kim F. Storm <storm@cua.dk>
9414
9415 * macros.c (end_kbd_macro): New function.
9416 (Fend_kbd_macro): Use it.
9417
9418 * macros.h (end_kbd_macro): Declare extern.
9419
9420 * keyboard.c (Fdiscard_input): If defining keyboard macro,
9421 end and save it instead of discarding it.
9422
94232002-09-09 Markus Rost <rost@math.ohio-state.edu>
9424
9425 * s/sol2-6.h: Fix typo. Add comment.
9426
94272002-09-09 Richard M. Stallman <rms@gnu.org>
9428
9429 * regex.c (regnum_t): Use signed int, not unsigned int.
9430
9431 * s/sol2-6.h: New file.
9432
9433 * s/sol2-5.h (UNEXEC): Definition deleted.
9434
94352002-09-08 Kim F. Storm <storm@cua.dk>
9436
9437 * macros.c (executing_macro_index): Change type to EMACS_INT.
9438 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
9439
9440 * macros.h (executing_macro_index): Change type to EMACS_INT.
9441
94422002-09-06 Richard M. Stallman <rms@gnu.org>
9443
9444 * casetab.c (set_case_table): Make canon table point to eqv table.
9445
94462002-09-06 Juanma Barranquero <lektu@terra.es>
9447
9448 * coding.c (syms_of_coding): Fix spacing.
9449
9450 * composite.c (Fcompose_region_internal)
9451 (Fcompose_string_internal): Likewise.
9452
9453 * data.c (Flsh): Likewise.
9454
9455 * fontset.c (Fset_fontset_font): Likewise.
9456
9457 * macfns.c (Fx_server_max_request_size): Likewise.
9458
9459 * w16select.c (syms_of_win16select): Likewise.
9460
9461 * w32select.c (syms_of_w32select): Likewise.
9462
9463 * xselect.c (syms_of_xselect): Likewise.
9464
94652002-09-05 Richard M. Stallman <rms@gnu.org>
9466
9467 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9468 call EXTEND_RANGE_TABLE and return a proper value.
9469 (set_image_of_range): Don't call set_image_of_range_1
9470 if no TRANSLATE or if range includes all of Latin-1.
9471 Only call it for the Latin-1 part of the range.
9472 For other cases, make two separate ranges,
9473 one for the original specified characters and one for
9474 their case-conversions.
9475
94762002-09-04 Richard M. Stallman <rms@gnu.org>
9477
9478 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9479
9480 * window.c (displayed_window_lines): Correct for one-off bug
9481 in HEIGHT on non-window displays.
9482
9483 * regex.c (set_image_of_range_1): New function.
9484 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9485 Return a value to indicate running out of memory.
9486 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9487 (extend_range_table_work_area): New subroutine.
9488 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9489 Different calling conventions, and used from set_image_of_range{,_1}.
9490 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9491
94922002-09-04 Juanma Barranquero <lektu@terra.es>
9493
9494 * makefile.w32-in: All dependencies updated.
9495
94962002-09-01 Richard M. Stallman <rms@gnu.org>
9497
9498 * unexsol.c: New file.
9499
9500 * xfns.c (Qbox): Declare external, don't define.
9501
9502 * xdisp.c (redisplay_window) <force-start case>:
9503 If point is on semi-visible last line, reposition
9504 it at previous line.
9505
9506 * alloc.c (display_malloc_warning): Use display-warning.
9507 (malloc_warning_1): Function deleted.
9508
9509 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9510
9511 * lread.c (read1): Handle #! by skipping the line.
9512
95132002-08-31 Richard M. Stallman <rms@gnu.org>
9514
9515 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9516 Don't include LDFLAGS.
9517 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9518
95192002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9520
9521 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9522 member of x_display_info unless we compile for some window system.
9523
95242002-08-31 Kim F. Storm <storm@cua.dk>
9525
9526 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9527 (get_window_cursor_type): Don't use them.
9528 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9529
95302002-08-30 Kenichi Handa <handa@etl.go.jp>
9531
9532 * xdisp.c (get_next_display_element): Fix previous change.
9533
95342002-08-30 Andrew Choi <akochoi@shaw.ca>
9535
9536 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9537 (expose_window): Use it to fix the display of overlapping
9538 rows (merge code from xterm.c).
9539
9540 * macfns.c (Qbox): Add extern declaration.
9541
95422002-08-30 Juanma Barranquero <lektu@terra.es>
9543
9544 * w32fns.c (Qbox): Make extern.
9545 (syms_of_w32fns): Remove initialization of Qbox.
9546
95472002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9548
9549 * xfns.c (Fx_open_connection): Fix error message.
9550
95512002-08-30 Kim F. Storm <storm@cua.dk>
9552
9553 The following changes consolidates the handling of the cursor
9554 type in xdisp.c, moving duplicate code and functionality from
9555 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9556
9557 * frame.h (enum text_cursor_kinds): Consolidated here.
9558 Added DEFAULT_CURSOR value.
9559 (struct frame) <desired_cursor, cursor_width>
9560 <blink_off_cursor, blink_off_cursor_width>: New fields.
9561 Consolidated from output_x, output_w32 and output_mac structs.
9562 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9563 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9564
9565 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9566 Variables consolidated here.
9567 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9568 (Vcursor_in_non_selected_windows): Renamed from
9569 cursor_in_non_selected_windows and changed to Lisp_Object.
9570 (syms_of_xdisp): Define and staticpro new and moved variables.
9571 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9572 consolidated here. Recognize Qhollow setting.
9573 (set_frame_cursor_types): New function to set frame cursor types
9574 based on the frame parameters.
9575 (get_window_cursor_type): New function to calculate new cursor
9576 type and width for the specified window. Based on duplicated
9577 code consolidated here.
9578 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9579 check buffer-local alternate-cursor-type and blink-cursor-alist
9580 before using built-in blink off methods.
9581
9582 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9583
9584 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9585 (get_specified_cursor_type, get_window_cursor_type)
9586 (set_frame_cursor_types): Added prototypes.
9587
9588 * macfns.c (x_specified_cursor_type): Removed.
9589 (x_set_cursor_type): Use set_frame_cursor_types.
9590 (Qbar, Qbox): Removed.
9591 (syms_of_macfns): Don't intern or staticpro them.
9592
9593 * macterm.c (x_specified_cursor_type): Remove prototype.
9594 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9595 (x_display_and_set_cursor): Use get_window_cursor_type.
9596 Remove unused local variables cursor_non_selected, active_cursor.
9597 Redraw cursor if hbar cursor width changes.
9598 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9599
9600 * macterm.h (enum text_cursor_kinds): Removed.
9601 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9602 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9603 (FRAME_DESIRED_CURSOR): Macro removed.
9604
9605 * w32fns.c (Vblink_cursor_alist): Removed.
9606 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9607 (syms_of_w32fns): Don't intern, staticpro, or define them.
9608 (x_specified_cursor_type): Removed.
9609 (x_set_cursor_type): Use set_frame_cursor_types.
9610
9611 * w32term.c (x_specified_cursor_type): Remove prototype.
9612 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9613 (x_display_and_set_cursor): Use get_window_cursor_type.
9614 Remove unused local variables cursor_off_state.
9615 Redraw cursor if hbar cursor width changes.
9616 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9617
9618 * w32term.h (enum text_cursor_kinds): Removed.
9619 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9620 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9621 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9622 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9623 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9624 w32_highlight_frame.
9625
9626 * xfns.c (Vblink_cursor_alist): Removed.
9627 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9628 (syms_of_xfns): Don't intern, staticpro, or define them.
9629 (x_specified_cursor_type): Removed.
9630 (x_set_cursor_type): Use set_frame_cursor_types.
9631
9632 * xterm.c (x_specified_cursor_type): Remove prototype.
9633 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9634 (x_display_and_set_cursor): Use get_window_cursor_type.
9635 Remove unused local variables cursor_off_state.
9636 Redraw cursor if hbar cursor width changes.
9637
9638 * xterm.h (enum text_cursor_kinds): Removed.
9639 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9640 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9641 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9642 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9643 (x_specified_cursor_type): Remove prototype.
9644
96452002-08-28 Richard M. Stallman <rms@gnu.org>
9646
9647 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9648 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9649 (Vblink_cursor_alist): New variable.
9650 (syms_of_w32fns): Initialize and defvar it.
9651 (x_specified_cursor_type): Recognize Qbox for filled box.
9652 Exceptions are hollow boxes.
9653 (Qbox, Qhollow): New variables.
9654 (syms_of_w32fns): Initialize and staticpro them.
9655
9656 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9657 New macros.
9658 (struct w32_output): New fields blink_off_cursor,
9659 blink_off_cursor_width.
9660 (FRAME_CURSOR_WIDTH): New macro.
9661
9662 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9663 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9664
9665 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9666 for bar cursor.
9667
9668 * w32term.c (expose_overlaps): New function.
9669 (expose_window): Use it to fix the display of overlapping rows.
9670
96712002-08-28 Simon Josefsson <jas@extundo.com>
9672
9673 * xfns.c (Fx_open_connection): Improve help when X connection
9674 fails, xhost is insecure and xauth is better.
9675
96762002-08-28 Juanma Barranquero <lektu@terra.es>
9677
9678 * makefile.w32-in: Add missing dependencies on w32term.h and
9679 composite.h.
9680
9681 * emacs.c (USAGE1): Add missing newline.
9682
96832002-08-27 Andrew Choi <akochoi@shaw.ca>
9684
9685 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9686
96872002-08-27 Richard M. Stallman <rms@gnu.org>
9688
9689 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9690 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9691 (Vblink_cursor_alist): New variable.
9692 (syms_of_xfns): Initialize and defvar it.
9693 (x_specified_cursor_type): Recognize Qbox for filled box.
9694 Exceptions are hollow boxes.
9695 (Qbox, Qhollow): New variables.
9696 (syms_of_xfns): Initialize and staticpro them.
9697
9698 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9699 New macros.
9700 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9701
9702 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9703 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9704
9705 * emacs.c (main): Handle --script.
9706 (USAGE1): Mention --script.
9707 (standard_args): Define sort order for --script.
9708
97092002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9710
9711 * xdisp.c (redisplay_updating_p): Variable removed.
9712 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9713 New variables.
9714 (init_iterator): Don't free realized faces if
9715 inhibit_free_realized_faces is set.
9716 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9717 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9718 initialize Qinhibit_free_realized_faces.
9719
9720 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9721 when iterator is adding glyphs to a glyph matrix.
9722
97232002-08-27 Kenichi Handa <handa@etl.go.jp>
9724
9725 * xdisp.c (get_next_display_element): In unibyte case, don't use
9726 octal form for such eight-bit characters that can be converted to
9727 multibyte char.
9728
97292002-08-26 Kim F. Storm <storm@cua.dk>
9730
9731 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9732 and background colors. From Joe Buehler (tiny change).
9733
97342002-08-26 Miles Bader <miles@gnu.org>
9735
9736 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9737
97382002-08-25 Andrew Choi <akochoi@shaw.ca>
9739
9740 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9741 defined instead of MAC_OSX.
9742
9743 * s/darwin.h (select): Define select to sys_select only if
9744 HAVE_CARBON is defined.
9745 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9746 (DONT_REOPEN_PTY): #def it.
9747
9748 * macterm.c (XTread_socket): Remove code to call
9749 SendEventToEventTarget for keys with command modifiers when
9750 mac_command_key_is_meta is nil.
9751
97522002-08-24 Andreas Schwab <schwab@suse.de>
9753
9754 * eval.c (Fdefvar): Fix last change.
9755
97562002-08-23 Richard M. Stallman <rms@gnu.org>
9757
9758 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9759 Record variables in load history as (defvar . VAR).
9760 (Fdefvar): Don't record in load history if no initial value.
9761 (Qdefvar): New variable.
9762 (syms_of_eval): Init and staticpro it.
9763
9764 * lread.c (syms_of_lread): Doc fix.
9765 (build_load_history): Use Fmember to see if a definition
9766 is already in the Vload_history element.
9767
9768 * process.c (Fstart_process): Remove /: from program name.
9769
9770 * emacs.c (decode_env_path): Don't add /: if file name handler
9771 has a `safe-magic' property.
9772
9773 * callproc.c (Fcall_process): Remove /: from program name.
9774
97752002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9776
9777 * regex.c (PATFETCH): Remove the translating fetch.
9778 (PATFETCH_RAW): Rename to PATFETCH.
9779 (set_image_of_range): New fun.
9780 (SET_RANGE_TABLE_WORK_AREA): Use it.
9781 (regex_compile): Don't translate the pattern chars so eagerly.
9782 Only do it when inserting an `exactn' bytecode or when handling
9783 a char-range.
9784 (mutually_exclusive_p): Avoid empty statement.
9785
97862002-08-22 Kim F. Storm <storm@cua.dk>
9787
9788 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9789 end up on a partially visible line; this reverts a specific part
9790 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9791 display error which has been reported several times now.
9792 However it introduces the problem that changes was supposed to fix.
9793 See my comments in the source if you want to debug this further.
9794
97952002-08-20 Kenichi Handa <handa@etl.go.jp>
9796
9797 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9798
97992002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9800
9801 * msdos.c (croak): Add `void' to definition.
9802
c1380aa6 9803 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
9804 Don't define them, they are defined in msdos.c.
9805
9806 * mem-limits.h [MSDOS]: Declare etext.
9807
9808 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9809 `const' since CORRECT_DIR_SEPS modifies its target.
9810
98112002-08-19 Kim F. Storm <storm@cua.dk>
9812
2fb0ce67 9813 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
9814 KEEP-RECORD to avoid clearing lossage when we just want to clear
9815 the current key sequence (kmacro needs this).
9816
98172002-08-19 Kenichi Handa <handa@localhost>
9818
9819 * composite.c (run_composition_function): Call FUNC if it is fboundp.
9820
9821 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
9822 cons, return Qnil.
9823
98242002-08-17 Richard M. Stallman <rms@gnu.org>
9825
9826 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
9827
9828 * sysdep.c [!VMS]: Include sys/files.h.
9829
9830 * editfns.c (save_restriction_restore): Defend from unchained marker.
9831
9832 * buffer.c (overlays_at): Handle extending vec uniformly.
9833 (overlays_in): Handle extending vec from length 0 as in overlays_at.
9834
98352002-08-15 Andrew Choi <akochoi@shaw.ca>
9836
9837 * mac.c (init_mac_osx_environment): New function.
9838
9839 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
9840
98412002-08-14 Kim F. Storm <storm@cua.dk>
9842
9843 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
9844 executing macro before appending to it (when used from Lisp).
9845 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
9846 which is called prior to each iteration of macro (for kmacro.el).
9847 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
9848
9849 * lisp.h (Fexecute_kbd_macro): Update prototype.
9850
9851 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
9852
98532002-08-14 Kenichi Handa <handa@etl.go.jp>
9854
9855 * xselect.c (QUTF8_STRING): New variable.
9856 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9857 (x_atom_to_symbol): Likewise.
9858 (x_get_local_selection): New argument local_request. If it is
9859 nonzero, call handler_fn with the second arg nil.
9860 (x_handle_selection_request): Call x_get_local_selection with
9861 local_request 0.
9862 (lisp_data_to_selection_data): Don't encode the string here.
9863 (Fx_get_selection_internal): Call x_get_local_selection with
9864 local_request 1.
9865 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9866
9867 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9868
9869 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9870
98712002-08-13 Richard M. Stallman <rms@gnu.org>
9872
9873 * minibuf.c (Fminibufferp): New function.
9874 (syms_of_minibuf): Defsubr it.
9875 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9876
98772002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9878
9879 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9880
98812002-08-12 Richard M. Stallman <rms@gnu.org>
9882
9883 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9884 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9885 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9886 already.
9887
9888 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9889
98902002-08-11 Andrew Choi <akochoi@shaw.ca>
9891
9892 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9893 (Vmac_pass_command_to_system): New variable.
9894 (Vmac_pass_control_to_system): New variable.
9895 (do_mouse_moved): Check wp with is_emacs_window.
9896 (XTread_socket): Check window_ptr with is_emacs_window.
9897 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9898 events back to Mac Toolbox for processing, depending on values of
9899 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9900 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9901 Vmac_pass_control_to_system.
9902
99032002-08-10 Kenichi Handa <handa@etl.go.jp>
9904
9905 * coding.c (unencodable_char_position): New function.
9906 (Funencodable_char_position): New function.
9907 (syms_of_coding): Defsubr Funencodable_char_position.
9908
99092002-08-10 Andrew Choi <akochoi@shaw.ca>
9910
9911 * mac.c (sys_select) [MAC_OSX]: New function.
9912
9913 * macterm.c (MakeMeTheFrontProcess): New function.
9914 (mac_initialize): Call MakeMeTheFrontProcess.
9915
9916 * s/darwin.h: Define select to sys_select.
9917
99182002-08-09 Richard M. Stallman <rms@gnu.org>
9919
9920 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9921
99222002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9923
9924 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9925 end of the buffer.
9926
99272002-08-08 Ken Raeburn <raeburn@mit.edu>
9928
9929 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9930
9931 * puresize.h (BASE_PURESIZE): Increase to 910000.
9932
99332002-08-08 Kenichi Handa <handa@etl.go.jp>
9934
9935 * coding.c (Ffind_operation_coding_system): For write-region, if
9936 VISIT is a filename, make it the target.
9937
99382002-08-07 Richard M. Stallman <rms@gnu.org>
9939
9940 * alloc.c (mark_object): Detect long lists for debugging.
9941 (mark_object_loop_halt): New variable.
9942
9943 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9944
9945 * data.c (Fmake_variable_frame_local): Doc fix.
9946
99472002-08-01 David Ponce <david@dponce.com>
9948
9949 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9950 (malloc_widget_value, free_widget_value)
9951 (w32_free_submenu_strings): Use them.
9952
9953 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9954 (push_menu_pane, push_menu_item, single_keymap_panes)
9955 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9956 (single_submenu, set_frame_menubar)
9957 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9958
9959 (Fx_popup_menu): Don't show pop up menu until preceding one is
9960 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9961
9962 * w32menu.c: Changes adapted from xmenu.c
9963 (set_frame_menubar): First parse all submenus,
9964 then make widget_value trees from them.
9965 Don't allocate any widget_value objects
9966 until we are done with the parsing.
9967 (parse_single_submenu): New function.
9968 (digest_single_submenu): New function.
9969 (single_submenu): Function deleted, replaced by those two.
9970
99712002-08-04 Andrew Choi <akochoi@shaw.ca>
9972
9973 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9974 returns a valid window pointer before proceeding for keyDown and
9975 autoKey events.
9976
99772002-08-03 Andrew Choi <akochoi@shaw.ca>
9978
9979 * macterm.c (USE_CARBON_EVENTS): New macro.
9980 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9981 (x_iconify_frame): Call CollapseWindow.
9982 (Vmac_reverse_ctrl_meta): New variable.
9983 (Vmac_wheel_button_is_mouse_2): New variable.
9984 (init_mac_drag_n_drop): New function.
9985 (mac_do_receive_drag): New function.
9986 (mac_handle_service_event): New function.
9987 (init_service_handler): New function.
9988 (mac_to_emacs_modifiers): New function.
9989 (mac_event_to_emacs_modifiers): New function.
9990 (mac_get_mouse_btn): New function.
9991 (mac_convert_event_ref): New function.
9992 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9993 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9994 mac_get_mouse_btn.
9995 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9996
9997 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9998 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9999 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
10000 TOOL_BAR_EVENT for MAC_OS as well.
10001 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
10002 as for WINDOWS_NT.
10003 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
10004
10005 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
10006
100072002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
10008
10009 * xdisp.c (forward_to_next_line_start): Fix a condition that
10010 lead to a newline being skipped.
10011
100122002-08-02 Andrew Choi <akochoi@shaw.ca>
10013
10014 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
10015
100162002-08-01 Richard M. Stallman <rms@gnu.org>
10017
10018 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
10019
100202002-07-31 Andrew Choi <akochoi@shaw.ca>
10021
10022 * macfns.c: #undef init_process before #define-ing it.
10023
10024 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
10025 HAVE_CARBON is defined.
10026
100272002-07-31 Richard M. Stallman <rms@gnu.org>
10028
10029 * xmenu.c (set_frame_menubar): First parse all submenus,
10030 then make widget_value trees from them.
10031 Don't allocate any widget_value objects
10032 until we are done with the parsing.
10033 (parse_single_submenu): New function.
10034 (digest_single_submenu): New function.
10035 (single_submenu): Function deleted, replaced by those two.
10036
100372002-07-30 Juanma Barranquero <lektu@terra.es>
10038
10039 * w32proc.c (syms_of_ntproc): Fix docstring of
10040 `w32-get-true-file-attributes'.
10041
100422002-07-28 Richard M. Stallman <rms@gnu.org>
10043
10044 * s/hpux8.h (HPUX8): Define this before including hpux.h.
10045 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
10046
10047 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
10048
10049 * keyboard.c (make_lispy_event):
10050 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
10051 Explicitly clear up_modifier in event->modifiers.
10052
100532002-07-27 Richard M. Stallman <rms@gnu.org>
10054
10055 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
10056
10057 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10058 for bar cursor.
10059
100602002-07-26 Kenichi Handa <handa@etl.go.jp>
10061
10062 * coding.c (detect_coding_iso2022): While checking a byte sequence
10063 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
10064 it in the normal loop.
10065
100662002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
10067
10068 * xterm.c (expose_overlaps): New function.
10069 (expose_window): Use it to fix the display of overlapping rows.
10070
10071 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
10072
100732002-07-23 Ken Raeburn <raeburn@gnu.org>
10074
10075 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
10076 since it only depends on XUINT.
10077
10078 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
10079 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
10080 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
10081 Macros deleted.
3947677c 10082
77d1daf2
AS
10083 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
10084 its value over other approaches.
10085 * sysdep.c (start_of_data): Don't define the function if a macro
10086 form has been defined.
8a8e19a3 10087
048addec
JD
100882002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
10089
10090 * xdisp.c (redisplay_updating_p): New variable.
10091 (init_iterator): Don't free realized faces when
10092 redisplay_updating_p is set.
10093 (redisplay_internal): Set redisplay_updating_p while updating
10094 the display.
10095
100962002-07-23 Richard M. Stallman <rms@gnu.org>
10097
10098 * editfns.c (Fmessage): Treat "" like nil.
10099
101002002-07-23 Kenichi Handa <handa@etl.go.jp>
10101
10102 * xdisp.c (face_before_or_after_it_pos):
10103 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10104
101052002-07-22 Juanma Barranquero <lektu@terra.es>
10106
10107 * callproc.c (init_callproc) [DOS_NT]:
10108 Initialize Vshared_game_score_directory to nil.
10109 (syms_of_callproc) [DOS_NT]: Likewise.
10110
101112002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
10112
10113 * xdisp.c (display_line): Replace an abort with xassert.
10114
101152002-07-21 Richard M. Stallman <rms@gnu.org>
10116
10117 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
10118 and END_UNCHANGED when setting buffer_unchanged_p.
10119 Use current_matrix_up_to_date_p to decide whether to use
10120 try_cursor_movement.
10121
10122 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
10123
10124 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
10125
10126 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
10127 Set to nil if dir does not exist.
10128 (syms_of_callproc): Init unconditionally and simply.
10129
10130 * buffer.c (Fbuffer_list): Doc fix.
10131
101322002-07-21 Ken Raeburn <raeburn@gnu.org>
10133
10134 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
10135
10136 * buffer.c (mmap_realloc): When shrinking, make sure number of
10137 pages to unmap is rounded towards zero.
10138
10139 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
10140 (XSETINT): Deleted.
10141
10142 * m/att3b.h (XINT): Don't define.
10143 (VALBITS, VALMASK, XTYPE): Deleted.
10144 (DATA_SEG_BITS): Define.
10145 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
10146 ARRAY_MARK_FLAG): Deleted.
10147 (DATA_SEG_BITS): Define.
10148 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
10149 (DATA_SEG_BITS): Define.
10150
101512002-07-20 Richard M. Stallman <rms@gnu.org>
10152
10153 * print.c (print_error_message): New args CONTEXT and CALLER.
10154 Calls changed.
10155
10156 * lisp.h (print_error_message): Declare new args.
10157
10158 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
10159 and CONTEXT to print_error_message, don't print them here.
10160 For a Quit, don't use Vsignaling_function.
10161 Call message_log_maybe_newline.
10162
10163 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
10164
101652002-07-20 Kim F. Storm <storm@cua.dk>
10166
10167 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
10168
101692002-07-19 Ken Raeburn <raeburn@gnu.org>
10170
10171 * bytecode.c (struct byte_stack): Pointers into byte string now
10172 point to const.
10173 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
10174 const.
10175 * charset.h (BCOPY_SHORT): Source pointer now points to const.
10176 * coding.c (encode_eol, detect_coding, detect_eol):
10177 (decode_coding, encode_coding, detect_coding_system):
10178 Source strings now treated as const.
10179 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
10180 modify Lisp string contents.
10181 * coding.h (decode_coding, encode_coding, detect_coding,
10182 detect_eol): Declarations updated.
10183 * composite.c (compose_chars_in_text): Treat Lisp string contents
10184 as const.
10185 * dispnew.c (safe_bcopy): Source pointer now points to const.
10186 * lisp.h (STRING_COPYIN): New macro.
10187 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
10188 (internal_with_output_to_temp_buffer): Declarations updated.
10189 * print.c (temp_output_buffer_setup):
10190 (internal_with_output_to_temp_buffer): Buffer name argument is now
10191 pointer to const.
10192 * sound.c (struct sound_device): Function pointer field "write"
10193 buffer argument now points to const.
10194 (vox_write): Buffer argument points to const.
10195 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
10196 contents as const.
10197 * sysdep.c (emacs_write): Buffer pointer now const.
10198 * term.c (encode_terminal_code): Buffer pointer now const.
10199 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
10200 (x_face_list_fonts, x_update_menu_appearance):
10201 (hash_string_case_insensitive): Treat Lisp string contents as const.
10202
102032002-07-19 Juanma Barranquero <lektu@terra.es>
10204
048addec
JD
10205 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
10206
10207 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
10208 (Ffile_name_as_directory): Fix argument name in docstring.
10209 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
10210
102112002-07-18 Richard M. Stallman <rms@gnu.org>
10212
10213 * data.c (Fdefalias): Doc fix.
10214
102152002-07-17 Dave Love <fx@gnu.org>
10216
10217 * intervals.h (text_property_stickiness): Use P_.
10218
10219 * ccl.c: Remove `emacs' conditionals.
10220 (ccl_backtrace_table): Fix size spec.
10221 (ccl_driver): Fix type errors.
10222
102232002-07-16 Ken Raeburn <raeburn@gnu.org>
10224
10225 * alloc.c (xstrdup, make_string, make_unibyte_string)
10226 (make_multibyte_string, build_string): String pointer args now
10227 point to const.
10228 * charset.c (find_charset_in_text, c_string_width):
10229 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
10230 * fileio.c (report_file_error):
10231 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
10232 (count_combining_before, count_combining_after, insert_1_both):
10233 (insert, insert_and_inherit, insert_string):
10234 (insert_before_markers, insert_before_markers_and_inherit):
10235 * lread.c (intern, oblookup, hash_string):
10236 * minibuf.c (temp_echo_area_glyphs):
10237 * search.c (fast_c_string_match_ignore_case):
10238 * sysdep.c (emacs_open, set_file_times):
10239 * xfaces.c (xstricmp):
10240 * xdisp.c (store_frame_title, string_char_and_length):
10241 (message_dolog, message2, message2_nolog, set_message): Likewise.
10242 (set_message_1): Cast message string argument to const pointer.
10243 * editfns.c (general_insert_function): Insertion function now
10244 takes pointer to const for input data.
10245 * charset.h (find_charset_in_text, c_string_width):
10246 (parse_str_as_multibyte): Declarations updated.
10247 * dispextern.h (xstricmp): Declaration updated.
10248 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
10249 (count_size_as_multibyte, count_combining_before):
10250 (count_combining_after, insert_1, insert_1_both, message_dolog):
10251 (insert, insert_and_inherit, insert_before_markers)
10252 (insert_before_markers_and_inherit, set_message, message2):
10253 (message2_dolog, build_string, make_string, make_unibyte_string):
10254 (make_multibyte_string, intern, oblookup, report_file_error):
10255 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
10256 (emacs_open, xstrdup): Declarations updated.
10257 * systime.h (set_file_times): Declaration updated.
10258
10259 * charset.c (find_charset_in_text, lisp_string_width): Use const
10260 for pointer to lisp string data.
10261 * charset.h (FETCH_STRING_CHAR_ADVANCE):
10262 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
10263 * coding.c (Ffind_coding_systems_region_interval):
10264 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
10265 (Fmake_directory_internal, Fdelete_directory):
10266 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
10267 * fontset.c (font_family_registry, fs_query_fontset):
10268 (list_fontsets):
10269 * frame.c (Fframe_parameter):
10270 * keyboard.c (cmd_error_internal):
10271 * keymap.c (Fdescribe_buffer_bindings):
10272 * lread.c (complete_filename_p, openp):
10273 * minibuf.c (Fminibuffer_complete_word):
10274 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
10275 (face_before_or_after_it_pos, next_element_from_string):
10276 (get_overlay_arrow_glyph_row, display_mode_element):
10277 (decode_mode_spec_coding):
10278 * xterm.c (same_x_server): Likewise.
10279
10280 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
10281 settings of non-existent fields.
10282
10283 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
10284 copy a lisp value.
10285
10286 * lread.c (Fintern_soft): Use string macros instead of
10287 Lisp_String fields.
10288 * keyboard.c (echo_char, parse_modifiers_uncached):
10289 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
10290 * textprop.c (validate_interval_range, interval_of): Likewise.
10291
10292 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
10293
10294 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10295 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
10296 XSTRING()->size_byte.
10297
10298 * lisp.h (SDATA, SREF): Produce rvalue.
10299 (SSET): New macro.
10300 * alloc.c (make_event_array): Use SSET for storing into a string.
10301 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
10302 a string.
10303 * casefiddle.c (casify_object): Use SSET.
10304 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10305 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
10306 address of string contents.
10307 * data.c (Faref): Use SDATA.
10308 (Faset): Use SDATA, SSET.
10309 * dired.c (directory_files_internal): Use SSET.
10310 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
10311 (Fread_file_name): Use SREF, SSET.
10312 * fns.c (concat): Use SSET.
10313 (concat, Fdelete): Use SDATA.
10314 * insdel.c (insert_from_string_1): Use SDATA.
10315 * keyboard.c (Fevent_convert_list): Use SREF.
10316 * lread.c (Fload): Use SDATA, SSET.
10317 * macfns.c (validate_x_resource_name): Use SSET.
10318 * process.c (status_message): Use SSET.
10319 * search.c (wordify): Use SDATA.
10320 (Freplace_match): Use SREF.
10321 * w32fns.c (validate_x_resource_name): Use SSET.
10322 * xfns.c (validate_x_resource_name): Use SSET.
10323 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
10324
103252002-07-16 Richard M. Stallman <rms@gnu.org>
10326
10327 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
10328
10329 * xdisp.c (reconsider_clip_changes):
10330 Don't test prevent_redisplay_optimizations_p.
10331 (redisplay_internal): Test prevent_redisplay_optimizations_p
10332 along with clip_changed in some cases.
10333 (try_window_id): Likewise.
10334 (redisplay_window): New local var buffer_unchanged_p.
10335
10336 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
10337
10338 * process.c (create_process): Test USG_SUBTTY_WORKS.
10339 (process_send_signal): Clean up handling of GID.
10340 Detect errors in ioctls meant to set GID.
10341
10342 * window.c (temp_output_buffer_show):
10343 Don't set prevent_redisplay_optimizations_p.
10344
103452002-07-15 Juanma Barranquero <lektu@terra.es>
10346
10347 * eval.c (Fdefvaralias): Add docstring argument.
10348
103492002-07-15 Ken Raeburn <raeburn@gnu.org>
10350
10351 * lisp.h (STRING_INTERVALS): Produce rvalue.
10352 (STRING_SET_INTERVALS): New macro.
10353 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
10354 * fns.c (Fstring_as_multibyte): Likewise.
10355 * intervals.c (balance_possible_root_interval, delete_interval)
10356 (create_root_interval, copy_intervals_to_string): Likewise.
10357 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
10358 instead of 0.
10359
103602002-07-14 Ken Raeburn <raeburn@gnu.org>
10361
10362 * lisp.h (STRING_SET_CHARS): New macro.
10363 (SCHARS, SBYTES): Produce rvalues.
10364 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
10365 * fns.c (concat): Likewise.
10366 * lread.c (read_vector): Likewise.
10367
10368 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
10369 (STRING_SET_UNIBYTE): New macro.
10370 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
10371 length of -1) changed to use STRING_SET_UNIBYTE.
10372 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10373 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10374 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
10375 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
10376 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
10377 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
10378 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
10379 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
10380 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10381 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
10382 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
10383 STRING_BYTES or indirection changed to SCHARS, SBYTES,
10384 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
10385 unchanged for now.
10386
103872002-07-13 Kim F. Storm <storm@cua.dk>
10388
10389 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
10390
103912002-07-12 Richard M. Stallman <rms@gnu.org>
10392
10393 * fileio.c (Fwrite_region): Doc fix.
10394
10395 * print.c (print_error_message): Don't handle Vsignaling_function here.
10396
10397 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
10398 (command_loop_1): Avoid certain actions after memory-full error.
10399
10400 * eval.c (Fsignal): Don't call cancel_hourglass.
10401 For a memory-full error, don't call Vsignal_hook_function
10402 and don't set Vsignaling_function.
10403
10404 * process.c (process_send_signal): Add abort call.
10405
104062002-07-11 Markus Rost <rost@math.ohio-state.edu>
10407
10408 * keymap.c (Fkey_binding): Fix typo.
10409
104102002-07-11 Richard M. Stallman <rms@gnu.org>
10411
10412 * alloc.c (Vmemory_full): New variable.
10413 (Vmemory_signal_data): Renamed from memory_signal_data.
10414 Uses changed.
10415 (syms_of_alloc): Defvar them.
10416 (memory_full, buffer_memory_full): Set Vmemory_full.
10417
10418 * lisp.h (Vmemory_full): Add declaration.
10419 (current_column, indented_beyond_p): Change declaration.
10420
10421 * indent.c (last_known_column): Declare as double, not float.
10422 (current_column, current_column_1, string_display_width)
10423 (position_indentation): Return `double'.
10424 (indented_beyond_p): Arg `column' is `double'. Callers changed.
10425
10426 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
10427 (back_to_previous_visible_line_start)
10428 (reseat_at_next_visible_line_start, next_element_from_buffer):
10429 Use `double', not `float', when calling indented_beyond_p.
10430
10431 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
10432
10433 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
10434
104352002-07-11 Juanma Barranquero <lektu@terra.es>
10436
10437 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
10438 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
10439 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
10440 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
10441 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
10442 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
10443
104442002-07-10 Juanma Barranquero <lektu@terra.es>
10445
d814862a
JB
10446 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10447 All callers changed.
048addec
JD
10448
104492002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10450
10451 * data.c (Fdefalias): Add an optional `docstring' argument.
10452 (set_internal, Fsetq_default): Use XCAR/XCDR.
10453
10454 * composite.c (HASH_VALUE, HASH_KEY):
10455 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10456
104572002-07-09 Kenichi Handa <handa@etl.go.jp>
10458
10459 * callproc.c (Fcall_process): Fix previous change.
10460
104612002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10462
10463 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10464 Add support for hash-tables.
10465 (Ftry_completion): Return t even if the string appears multiple times.
10466
10467 * fns.c (Fnconc): Use XCDR.
10468 (Fprovide): Use CONSP and XCDR.
10469 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10470 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10471 (Fmake_hash_table): Accept `:size nil'.
10472 (Fmakehash): Delete: moved to subr.el.
10473 (syms_of_fns): Don't defsubr makehash.
10474
10475 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10476 (HASH_TABLE_SIZE): Move from fns.c.
10477
104782002-07-07 Richard M. Stallman <rms@gnu.org>
10479
10480 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10481 Instead just return 0 when there is something to be done.
10482 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10483 retry scrolling as if cursor were off the bottom.
10484 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10485 return CURSOR_MOVEMENT_MUST_SCROLL.
10486 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10487 go to try_to_scroll.
10488
10489 * buffer.c (Fbuffer_local_value): Store current value into its binding
10490 so we get the up-to-date value for the binding that is loaded.
10491
10492 * eval.c (Fdefmacro): Doc fix.
10493
104942002-07-05 Dave Love <fx@gnu.org>
10495
10496 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10497 correctly.
10498
10499 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10500 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10501 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10502 CCL_LookupCharConstTbl.
10503 (syms_of_ccl): Defvar translation-hash-table-vector.
10504
105052002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10506
10507 * xdisp.c: Remove unused variable `face'.
10508
105092002-07-04 Juanma Barranquero <lektu@terra.es>
10510
10511 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10512 obsolescence information.
10513
105142002-07-03 Andrew Choi <akochoi@shaw.ca>
10515
10516 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10517 pattern. Search cache first.
10518 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10519 for Japanese font.
10520 (XLoadQueryFont): Use it.
10521
105222002-07-02 Richard M. Stallman <rms@gnu.org>
10523
10524 * keymap.c (Fdefine_key): Doc fix.
10525
10526 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10527
105282002-07-02 Juanma Barranquero <lektu@terra.es>
10529
10530 * keymap.c (syms_of_keymap): Fix typo.
10531
105322002-07-01 Andrew Choi <akochoi@shaw.ca>
10533
10534 * s/darwin.h: Define POSIX_SIGNALS.
10535
10536 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10537 and FSRefMakePath to convert FSSpec returned with Apple Event to
10538 Posix pathname.
10539 (mac_initialize) [TARGET_API_MAC_CARBON]:
10540 Call init_required_apple_events and disable the `Quit' menu item
10541 provided automatically by the Carbon Toolbox.
10542
105432002-07-01 Dave Love <fx@gnu.org>
10544
10545 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10546 for K&R.
10547
10548 * xterm.c: Fix prototype for K&R.
10549
10550 * term.c (costs_set): Declare static, non-initialized for pcc.
10551
105522002-07-01 Richard M. Stallman <rms@gnu.org>
10553
10554 * keyboard.c (timer_last_idleness_start_time): New variable.
10555 (timer_start_idle): Set that.
10556 (read_key_sequence): Use that to reset timer_idleness_start_time
10557 to previous value.
10558
10559 * window.c (Frecenter): With arg, set optional_new_start.
10560
10561 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10562
10563 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10564 buffer for completion.
10565
105662002-06-29 Ken Raeburn <raeburn@gnu.org>
10567
10568 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10569
105702002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10571
10572 * keyboard.c (readable_filtered_events): New function that filters
10573 FOCUS_IN_EVENT depending on parameter.
10574 (readable_events): Calls readable_filtered_events, not filtering
10575 FOCUS_IN_EVENT.
10576 (get_filtered_input_pending): New function, filtering parameter passed
10577 to readable_filtered_events.
10578 (get_input_pending): Calls get_filtered_input_pending, not filtering
10579 FOCUS_IN_EVENT.
10580 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10581 FOCUS_IN_EVENT.
10582
10583 * xterm.h (struct x_output): Add focus_state.
10584
10585 * xterm.c (x_focus_changed): New function.
10586 (x_detect_focus_change): New function.
10587 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10588 EnterNotify and LeaveNotify to track X focus changes.
10589
105902002-06-28 Andreas Schwab <schwab@suse.de>
10591
10592 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10593
105942002-06-27 Kim F. Storm <storm@cua.dk>
10595
10596 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10597 (mode_line_string_face_prop): New variables.
10598 (store_mode_line_string): New function.
10599 (display_mode_element): Use store_mode_line_string to
10600 add mode-line string elements to mode_line_string_list
10601 when mode_line_string_list is non-nil.
10602 (Fformat_mode_line): Now returns propertized string by
10603 default. New arg NO-PROPS to ignore properties.
10604 (decode_mode_spec): Only add two dashes for %- in propertized
10605 mode-line string.
10606 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10607
106082002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10609
10610 * minibuf.c (minibuffer_completion_contents): Add return type.
10611
106122002-06-27 Juanma Barranquero <lektu@terra.es>
10613
10614 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10615
106162002-06-26 Juanma Barranquero <lektu@terra.es>
10617
10618 * fileio.c (read_file_name_cleanup): Add missing return.
10619
106202002-06-26 Richard M. Stallman <rms@gnu.org>
10621
10622 * window.c (Frecenter): Don't set force_start flag.
10623
10624 * minibuf.c (do_completion, Fminibuffer_complete_word)
10625 (Fminibuffer_completion_help): Complete just the text before point.
10626 (minibuffer_completion_contents): New function.
10627
10628 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10629
10630 * frame.c (frames_bury_buffer): Function deleted.
10631
106322002-06-25 Miles Bader <miles@gnu.org>
10633
10634 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10635 the end of callint_message, allow for a terminating '\0'.
10636
106372002-06-24 Juanma Barranquero <lektu@terra.es>
10638
10639 * w32select.c: Include composite.h
10640
10641 * w16select.c: Likewise.
10642
106432002-06-24 Kenichi Handa <handa@etl.go.jp>
10644
10645 * callproc.c (Fcall_process): If code detection is necessary,
10646 call detect_coding directly here.
10647
10648 * coding.c (detect_eol): Preserve coding->cmp_data.
10649
10650 * w16select.c (Fw16_get_clipboard_data):
10651 * w32fns.c (w32_to_x_font):
10652 * w32select.c (Fw32_get_clipboard_data):
10653 * xselect.c (selection_data_to_lisp_data):
10654 * xterm.c (XTread_socket): Disable composition handling.
10655
106562002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10657
10658 * print.c (temp_output_buffer_setup): Kill all local variables.
10659
106602002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10661
10662 * lread.c (Fread): Remove redundant and imprecise declaration.
10663
10664 * xfns.c (check_x_display_info): Use check_x_frame.
10665
10666 * .gdbinit (xprintsym): Use the new `xname' field.
10667 (xsymbol): Use it.
10668
106692002-06-22 Jason Rumney <jasonr@gnu.org>
10670
10671 * w32fns.c (file_dialog_callback): New function.
10672 (Fx_file_dialog): Allow selecting directories as well as files.
10673
106742002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10675
10676 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 10677 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
10678
106792002-06-17 Andrew Choi <akochoi@shaw.ca>
10680
10681 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10682 black and white before scrolling. Restore frame background and
10683 foreground color after scrolling.
10684 (do_window_update): Call XClearWindow before calling expose_frame.
10685 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10686 FRAME_FOREGROUND_PIXEL of frame.
10687
10688 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10689 test Mac command key as <ALT> key.
10690
106912002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10692
10693 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10694
10695 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10696 Lookup keys in function-key-map immediately so that key-translation-map
10697 can be applied earlier.
10698 Remove function_key_possible and key_translation_possible, replaced
10699 by checking `keytran_start < t'.
10700
10701 * .gdbinit (xsymbol): Use the new `xname' field.
10702
107032002-06-17 Andrew Choi <akochoi@shaw.ca>
10704
10705 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10706 test Mac command key as <ALT> key.
10707
10708 * mac.c (do_applescript): Call initialize_applescript if necessary
10709 when first called. Dispose of result_desc only when there is no error.
10710 (Fdo_applescript): Use %d format specifier instead of %ld.
10711
107122002-06-16 Andrew Choi <akochoi@shaw.ca>
10713
10714 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10715 of FrontWindow for cases keyDown and autoKey.
10716
10717 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10718 Vdefault_fontset to Monaco with mac-roman coding.
10719
10720 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10721 init_process before and after inclusion of Carbon/Carbon.h, resp.
10722
10723 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10724 cursor_gc.
10725 (add_font_name_table_entry): New function.
10726 (init_font_name_table): Use add_font_name_table_entry; add italic,
10727 bold, and bold-italic entries for truetype fonts.
10728
10729 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10730 for Mac too.
10731 (try_font_list) [MAC_OS]: If no font matches given registry, try
10732 fonts with any registry matching face_family.
10733 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10734
10735 * s/darwin.h: If autoconf detects the Ncurses library, define
10736 LIBS_TERMCAP to -lncurses to use it.
10737
107382002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10739
10740 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10741
107422002-06-15 Richard M. Stallman <rms@gnu.org>
10743
10744 * window.c (Fset_window_configuration): Explicitly preserve
10745 the point value that new_current_buffer had at the start.
10746
107472002-06-14 Juanma Barranquero <lektu@terra.es>
10748
10749 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10750 Fix typos.
10751
107522002-06-14 Kim F. Storm <storm@cua.dk>
10753
10754 * insdel.c (insert_1_both, insert_from_string_1)
10755 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10756 insert happened in the end_unchanged region. Otherwise, the
10757 redisplay may be confused and duplicate the last line in the
10758 buffer [seen after save-buffer when require-final-newline==t].
10759
107602002-06-13 Jason Rumney <jasonr@gnu.org>
10761
10762 * w32.c (init_environment): Remove EMACSLOCKDIR.
10763 (stat): Swap _S_IFDIR and _S_IFREG.
10764
107652002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10766
10767 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10768 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10769 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10770 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10771 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10772 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10773 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10774 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10775 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10776 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10777 SELECTION_REQUEST_EVENT, selection_clear_event to
10778 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10779 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10780 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10781 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10782 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10783 no_event to NO_EVENT.
10784
107852002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10786
10787 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10788
107892002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10790
10791 * intervals.c (textget): Don't forget to `return'.
10792 (lookup_char_property): Use XCAR/XCDR.
10793
107942002-06-12 Juanma Barranquero <lektu@terra.es>
10795
10796 * xdisp.c (Fformat_mode_line): Fix typo.
10797
107982002-06-12 Kim F. Storm <storm@cua.dk>
10799
10800 * xdisp.c (Fformat_mode_line): New function.
10801 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10802 (store_frame_title_char, store_frame_title): Use unconditionally.
10803 (init_xdisp): Defsubr Fformat_mode_line.
10804 Initialize frame_title_buf etc. unconditionally.
10805
108062002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10807
10808 * keyboard.c (read_key_sequence):
10809 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
10810 things through those maps after downcasing events.
10811 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
10812 applies after function-key-map.
10813 Make sure that keytran can be done in the middle in the sequence.
10814 Be careful not to throw away events past the one we downcase.
10815
10816 * lread.c (read_integer): Remove unused var `tem'.
10817 (read1): Fix int/Lisp_Object mixup.
10818
10819 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
10820
108212002-06-11 Richard M. Stallman <rms@gnu.org>
10822
10823 * keyboard.c (readable_events): Ignore any number of
10824 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
10825
108262002-06-09 Miles Bader <miles@gnu.org>
10827
10828 * xfaces.c (Ftty_supports_face_attributes_p): New function.
10829 (parse_rgb_list, tty_lookup_color): New functions.
10830 (tty_defined_color): Use `tty_lookup_color' to do all the work.
10831 (color_distance, Fcolor_distance): New functions.
10832 (TTY_SAME_COLOR_THRESHOLD): New macro.
10833 (Qtty_color_standard_values): New variable.
10834 (syms_of_xfaces): Initialize new vars & functions.
10835
108362002-06-08 Colin Walters <walters@verbum.org>
10837
10838 * textprop.c (Vchar_property_alias_alist): New variable.
10839 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
10840
10841 * intervals.c (lookup_char_property): New function for looking up
10842 overlay and text properties, created from textget.
10843 (textget): Use it.
10844
10845 * intervals.h (lookup_char_property): Declare.
10846 (Vchar_property_alias_alist): Declare.
10847
10848 * buffer.c (Foverlay_get): Use lookup_char_property.
10849
108502002-06-07 Sam Steingold <sds@gnu.org>
10851
10852 * xselect.c (lisp_data_to_selection_data): Fix last change:
10853 *data_ret is not a Lisp string, while unibyte_string is.
10854
108552002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10856
10857 * xselect.c (lisp_data_to_selection_data): Fix last change:
10858 set size_ret.
10859
108602002-06-07 Andreas Schwab <schwab@suse.de>
10861
10862 * m/amdx86-64.h: New file.
10863
108642002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10865
10866 * fns.c (Fstring_make_unibyte): Doc fix.
10867
10868 * xselect.c (lisp_data_to_selection_data): If the requested type
10869 is STRING, call string_make_unibyte to encode the selected text
10870 as a string.
10871
10872 * window.c (Fset_window_hscroll): Doc fix.
10873
108742002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10875
10876 * fileio.c (choose_write_coding_system):
10877 Call select-safe-coding-system properly.
10878
108792002-06-03 Richard M. Stallman <rms@gnu.org>
10880
10881 * xdisp.c (message_with_string): Error if STRING is not a string.
10882
10883 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10884
10885 * fileio.c (choose_write_coding_system): Pass FILE arg to
10886 Vselect_safe_coding_system_function.
10887
108882002-06-03 Ken Raeburn <raeburn@gnu.org>
10889
10890 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10891
108922002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10893
10894 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10895 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10896 * keymap.c (describe_command): Likewise.
10897 * minibuf.c (read_minibuf): Likewise.
10898
10899 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10900 Cast `current_column' return value to int.
10901 (back_to_previous_visible_line_start)
10902 (reseat_at_next_visible_line_start, next_element_from_buffer):
10903 Cast `indented_beyond_p' 3rd arg to float.
10904
10905 * indent.c (last_known_column): Now a float.
10906 (current_column_1, position_indentation, current_column)
10907 (string_display_width): Return float.
10908 (Fcurrent_column): Cast `current_column' return value to int.
10909 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10910 (indented_beyond_p): Third arg now a float.
10911 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10912
10913 * lisp.h (current_column): Now returns float.
10914 (indented_beyond_p): 3rd arg now a float.
10915
109162002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10917
10918 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10919 is Qcompound_text_with_extensions.
10920
10921 * xselect.c (lisp_data_to_selection_data): Always set selection
10922 type as string if x_encode_text returns streingp non-NULL.
10923
10924 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10925
109262002-05-30 Richard M. Stallman <rms@gnu.org>
10927
10928 * window.c (Fset_window_configuration): Correct the handling
10929 of point in current buffer, to work with multiple windows.
10930
109312002-05-29 Colin Walters <walters@verbum.org>
10932
10933 * lread.c (Fread_from_string): Don't depend on order of evaluation
10934 for C function parameters.
10935
109362002-05-28 Richard M. Stallman <rms@gnu.org>
10937
10938 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10939 way for blinked-off state and for a nonselected window.
10940
10941 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10942 instead, see if the new start pos is at beginning of line.
10943
10944 * fileio.c (Fwrite_region): If START is a string, don't
10945 make any annotations.
10946
10947 * eval.c (syms_of_eval): Doc fix.
10948
109492002-05-28 Colin Walters <walters@debian.org>
10950
10951 * emacs.c (USAGE1): Add --no-splash.
10952 (standard_args): Ditto.
10953
109542002-05-28 Colin Walters <walters@gnu.org>
10955
10956 * lread.c (readchar_count): New variable.
10957 (readchar): Increment it.
10958 (unreadchar): Decrement it.
10959 (read_multibyte): Decrement it.
10960 (Vread_with_symbol_positions): New variable.
10961 (Vread_symbol_positions_list): New variable.
10962 (read_internal_start): New function, created from Fread and
10963 Fread_from_string. Handle Vread_symbol_positions_list and
10964 Vread_with_symbol_positions.
10965 (readevalloop, Fread, Fread_from_string): Use it.
10966 (read1): Use readchar_count to add symbol positions to
10967 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10968 (syms_of_lread): DEFVAR_LISP and initialize them.
10969
10970 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10971 (substitute_object_recurse, substitute_object_in_subtree)
10972 (substitute_in_interval): Prototype.
10973 (read_multibyte): Return c if it's less than zero.
10974
109752002-05-28 Kim F. Storm <storm@cua.dk>
10976
10977 * fileio.c (Fread_file_name_internal): Added brute-force
10978 speed up for using predicate file-directory-p.
10979
109802002-05-28 Kim F. Storm <storm@cua.dk>
10981
10982 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10983 New variables.
10984 (syms_of_fileio): DEFVAR_LISP them.
10985 (read_file_name_cleanup): New unwind function.
10986 (Fread_file_name_internal): Only return completions satifying
10987 Vread_file_name_predicate. Temporarily unwind protect and rebind
10988 default-directory while checking completions against the predicate.
10989 (Fread_file_name): Added PREDICATE argument. Specbind it to
10990 Vread_file_name_predicate during completion.
10991 Call Vread_file_name_function to read the file name if non-nil.
10992
10993 * lisp.h (Fread_file_name): Now has 6 args.
10994
10995 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10996 predicate for Fread_file_name when reading directory name.
10997 Supply Qnil for predicate in other calls to Fread_file_name.
10998
109992002-05-26 Miles Bader <miles@gnu.org>
11000
11001 * term.c (tty_capable_p): New function.
11002 * dispextern.h (tty_capable_p): New function declaration.
11003 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
11004 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
11005
110062002-05-23 Stefan Monnier <monnier@cs.yale.edu>
11007
11008 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
11009 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
11010 (Vwrite_region_annotate_functions): Docstring fix.
11011
110122002-05-23 Kim F. Storm <storm@cua.dk>
11013
11014 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
11015 phys_cursor's hpos is overwritten. This is still not completely
11016 correct, as it doesn't really make sense to use hpos at all to
11017 get the cursor glyph (as that is relative to the width of the
11018 characters on the line, which may have changed during the update).
11019
110202002-05-22 Jason Rumney <jasonr@gnu.org>
11021
11022 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
11023 Lisp_Object.
11024 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
11025 Use modified enumfont_t struct.
11026
11027 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11028
11029 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
11030 Handle the `hbar' cursor type.
11031 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11032
11033 * w32fns.c (Qhbar): New variable.
11034 (x_specified_cursor_type): Use it.
11035
110362002-05-21 Ken Raeburn <raeburn@gnu.org>
11037
11038 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
11039 now, when the address is needed.
11040
110412002-05-21 Colin Walters <walters@gnu.org>
11042
11043 * Makefile.in (shortlisp): Add font-core.el.
11044
110452002-05-20 Richard M. Stallman <rms@gnu.org>
11046
11047 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
11048
11049 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
11050 equivalent key bindings here.
11051
110522002-05-20 Ken Raeburn <raeburn@gnu.org>
11053
11054 Change symbol structure to contain a lisp object for the symbol
11055 name:
11056 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
11057 object field named "xname".
11058 (SYMBOL_NAME): New macro.
11059 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
11060 name field.
11061 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
11062 (mark_object, gc_sweep): Use symbol xname field and XSTRING
11063 instead of name field.
11064 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
11065 SYMBOL_NAME instead of XSYMBOL and name field.
11066 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
11067 instead of XSYMBOL and name field.
11068 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
11069 and SYMBOL_NAME instead of XSYMBOL and name field.
11070 * coding.c (Fread_coding_system, code_convert_region1)
11071 (code_convert_string1, code_convert_string_norecord)
11072 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
11073 XSYMBOL and name field.
11074 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
11075 (Fmake_variable_buffer_local, Fmake_local_variable)
11076 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
11077 of XSYMBOL and name field.
11078 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
11079 XSYMBOL and name field.
11080 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
11081 instead of XSYMBOL and name field.
11082 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
11083 XSYMBOL and name field.
11084 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
11085 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11086 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
11087 instead of XSYMBOL and name field.
11088 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
11089 (parse_modifiers, apply_modifiers, Fevent_convert_list)
11090 (parse_solitary_modifier, Fexecute_extended_command):
11091 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11092 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
11093 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
11094 of XSYMBOL and name field.
11095 (describe_command, describe_translation): Use SYMBOL_NAME and
11096 assignment instead of XSYMBOL and name field and XSETSTRING.
11097 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
11098 instead of XSYMBOL and name field.
11099 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
11100 name field and XSETSTRING.
11101 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11102 of XSYMBOL and name field.
11103 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
11104 assignment instead of XSYMBOL and name field and XSETSTRING.
11105 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
11106 XSTRING instead of XSYMBOL and name field.
11107 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
11108 and XSTRING instead of XSYMBOL and name field.
11109 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
11110 and XSTRING instead of XSYMBOL and name field.
11111 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
11112 XSTRING instead of XSYMBOL and name field.
11113 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11114 of XSYMBOL and name field.
11115 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
11116 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11117
111182002-05-19 Ken Raeburn <raeburn@gnu.org>
11119
11120 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
11121 and XCDR real rvalues in most configurations.
11122
11123 * buffer.c (fix_overlays_in_range, fix_overlays_before):
11124 Don't take the address of the cdr part of a cons cell; instead, track
11125 the parent cell and call XSETCDR, or set the variable for the head
11126 of the list if we haven't started down the list yet.
11127
111282002-05-19 Richard M. Stallman <rms@gnu.org>
11129
11130 * doc.c (reread_doc_file): Don't ask for confirmation.
11131
111322002-05-18 Jason Rumney <jasonr@gnu.org>
11133
11134 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
11135 (xbm_load_image): Use it.
11136 (xbm_load): Ditto.
11137 (xbm_read_bitmap_data): Reverted to xfns.c version.
11138 From David Ponce <david@dponce.com>.
11139
111402002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
11141
11142 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
11143 2.02 and later.
11144
111452002-05-16 Juanma Barranquero <lektu@terra.es>
11146
11147 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
11148
111492002-05-15 Stefan Monnier <monnier@cs.yale.edu>
11150
11151 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
11152 meaningful test.
11153 (read_char_minibuf_menu_prompt): Fix typo.
11154
111552002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11156
11157 * eval.c (Fcommandp): Doc fix.
11158
111592002-05-13 Stefan Monnier <monnier@cs.yale.edu>
11160
11161 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
11162 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
11163 (Fset_keymap_parent): Gcpro a bit more.
11164 (access_keymap): Gcpro around meta_map call and around the main loop.
11165 (get_keyelt): Gcpro when following indirect references.
11166 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
11167 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
11168 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
11169 Remove useless ad-hoc remap code.
11170
111712002-05-13 Richard M. Stallman <rms@gnu.org>
11172
11173 * search.c (search_buffer): Give up boyer moore search if inverse
11174 translation change charset_base.
11175
111762002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
11177
11178 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
11179 characters is carried over from the previous block of text, adjust
11180 coding->produced to account for the extra character.
11181
111822002-05-11 Andreas Schwab <schwab@suse.de>
11183
11184 * coding.c (intersection): Keep the elements of the returned list
11185 in the same order as in the first list.
11186
111872002-05-11 Kim F. Storm <storm@cua.dk>
11188
11189 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
11190 only update cmm_size if realloc actually succeeds.
11191 Testing with initial size of 2 elements revealed that using
11192 realloc on GNU/Linux would cause a random trap in xmalloc
11193 later on, so I rewrote the code to use malloc/bcopy/free instead
11194 of realloc.
11195
111962002-05-10 Jason Rumney <jasonr@gnu.org>
11197
11198 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
11199
112002002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
11201
11202 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
11203 parens, to ensure correct evaluation order.
11204
112052002-05-10 Kim F. Storm <storm@cua.dk>
11206
11207 * keymap.c (Vemulation_mode_map_alists): New variable.
11208 (syms_of_keymap): DEFVAR_LISP it.
11209 (current_minor_maps): Process keymap alists in that list before
11210 minor-mode-overriding-map-alist and minor-mode-map-alist.
11211
112122002-05-09 Richard M. Stallman <rms@gnu.org>
11213
11214 * search.c (Freplace_match): Doc fix.
11215
112162002-05-09 Kim F. Storm <storm@cua.dk>
11217
11218 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11219 Enlarge cursor rectangle drawn around image with non-zero relief.
11220
11221 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
11222 Enlarge cursor rectangle drawn around image with non-zero relief.
11223
11224 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11225 Enlarge cursor rectangle drawn around image with non-zero relief.
11226
112272002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
11228
11229 * xselect.c (lisp_data_to_selection_data): Don't set selection
11230 type if comes from the Lisp object's car. If the selection
11231 contains a pure ASCII text, always return QSTRING as its type.
11232
112332002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11234
11235 * mac.c (mac-cut-function): Doc fix.
11236
112372002-05-05 Richard M. Stallman <rms@gnu.org>
11238
11239 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11240
112412002-05-04 Jason Rumney <jasonr@gnu.org>
11242
11243 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
11244 for event-click-count.
11245
11246 * process.c (init_process): Only add server subfeature if we can
11247 use non-blocking I/O.
11248
112492002-05-04 Andrew Choi <akochoi@shaw.ca>
11250
11251 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
11252 repeatedly.
11253
112542002-05-03 Jason Rumney <jasonr@gnu.org>
11255
11256 * process.c (Fmake_network_process): Only support server sockets
11257 when we can make them non-blocking.
11258
11259 * s/ms-w32.h (HAVE_SELECT): Define.
11260
11261 * w32.h (FILE_NDELAY): New flag.
11262
11263 * w32.c (sys_getpeername, fcntl): New functions.
11264 (_sys_read_ahead): Temporarily block on non-blocking sockets.
11265
11266 * w32proc.c: include sys/file.h.
11267
112682002-05-03 Colin Walters <walters@verbum.org>
11269
11270 * callproc.c (Vgame_score_directory): Renamed to
11271 Vshared_game_score_directory.
11272
112732002-04-30 Richard M. Stallman <rms@gnu.org>
11274
11275 * s/gnu.h [emacs]: Include stdio.h.
11276 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
11277
11278 * eval.c (do_autoload): Error if called while preparing to dump.
11279
11280 * fns.c (Frequire): Error if need to load while preparing to dump.
11281
112822002-04-28 Colin Walters <walters@verbum.org>
11283
11284 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
11285 Default to "~/.emacs.d/games".
11286
112872002-04-29 Stefan Monnier <monnier@cs.yale.edu>
11288
11289 * lread.c (openp): Change arg exec_only to predicate.
11290 (build_load_history): Use XCAR/XCDR.
11291 (Flocate_file_internal): New fun.
11292 (syms_of_lread): Defsubr it.
11293 (Fload): Update call to openp.
11294
11295 * lisp.h (openp): Update prototype.
11296
11297 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
11298 * w32proc.c (sys_spawnve):
11299 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
11300 * w32.c (check_windows_init_file):
11301 * sound.c (Fplay_sound_internal):
11302 * process.c (Fstart_process):
11303 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
11304 * mac.c (run_mac_command):
11305 * emacs.c (init_cmdargs):
11306 * callproc.c (Fcall_process): Update call to openp.
11307
11308 * textprop.c (remove_properties): Don't use XCAR without CONSP.
11309
11310 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
11311
113122002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11313
11314 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
11315 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
11316
113172002-04-28 Richard M. Stallman <rms@gnu.org>
11318
11319 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
11320
11321 * eval.c (Fcommandp): New arg for_call_interactively.
11322 * lisp.h (Fcommandp): Declare new arg.
11323
113242002-04-28 Jason Rumney <jasonr@gnu.org>
11325
11326 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
11327
11328 * w32.c (stat, fstat): Use file index information to generate
11329 inodes for directories where available.
11330
113312002-04-26 Andrew Choi <akochoi@shaw.ca>
11332
11333 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
11334 [HAVE_CARBON]: Include Mac object files.
11335
11336 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
11337 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
11338 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
11339 MAC_OSX, and MAC_OS instead of macintosh.
11340
11341 * editfns.c [MAC_OS8]: Include stdio.h.
11342
11343 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
11344
11345 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
11346 Apple Monaco.
11347
11348 * process.c: Declare QCfamily and QCfilter as extern.
11349 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
11350 calling select.
11351
11352 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
11353
11354 * tparam.c [MAC_OSX]: Don't define BC and UP.
11355
11356 * config.in [HAVE_CARBON]: Add.
11357
11358 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
11359 Move here from mac/src and mac/inc.
11360
11361 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
11362
113632002-04-26 Gerd Moellmann <gerd@gnu.org>
11364
11365 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
11366 Compute phys_cursor_width from the x position returned
11367 by x_draw_glyhs, which is cheaper.
11368 (x_display_and_set_cursor): Compute the buffer-local value
11369 of `cursor-in-non-selected-windows' only when needed.
11370
113712002-04-25 Gerd Moellmann <gerd@gnu.org>
11372
11373 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
11374 cursor on a stretch glyph has a width that depends on
11375 x_stretch_cursor_p.
11376
113772002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11378
11379 * abbrev.c (abbrev-start-location): Doc fix.
11380
11381 * indent.c (Fvertical_motion): Fix last change.
11382
113832002-04-25 Gerd Moellmann <gerd@gnu.org>
11384
11385 * indent.c (Fvertical_motion): Move to the start of the line
11386 containing PT before moving up or down.
11387
113882002-04-24 Gerd Moellmann <gerd@gnu.org>
11389
11390 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
11391 case of writing a whole row, more or less analogous to the case of
11392 writing only parts of a row.
11393
11394 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
11395 0 for NO_CURSOR.
11396
11397 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
11398
113992002-04-23 Colin Walters <walters@verbum.org>
11400
11401 * buffer.c (syms_of_buffer): Doc fix.
11402
114032002-04-23 Gerd Moellmann <gerd@gnu.org>
11404
11405 * xterm.c (notice_overwritten_cursor): Handle the special case
11406 of the cursor being in the first blank non-text line at the
11407 end of a window.
11408
11409 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11410 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11411 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11412 bar cursors only, to make phys_cursor_width contain what its name
11413 suggests.
11414 (notice_overwritten_cursor): Consider the cursor image erased if
11415 the output area intersects the cursor image in y-direction.
11416
114172002-04-23 Simon Marshall <simon@gnu.org>
11418
11419 * xfns.c (x_set_mouse_color): Change default for cross_cursor
11420 to XC_hand2.
11421
114222002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11423
11424 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
11425
114262002-04-22 Kim F. Storm <storm@cua.dk>
11427
11428 * textprop.c (remove_properties): Fixed trap for malformed plist.
11429
114302002-04-22 Richard M. Stallman <rms@gnu.org>
11431
11432 * cmds.c (Fend_of_line): Handle intangible text in mid line.
11433
11434 * window.c (make_window): Initialize height_fixed_p,
11435 last_cursor_off_p, and p->cursor_off_p slots.
11436
114372002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11438
11439 * fns.c (use-dialog-box): Doc fix.
11440
114412002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11442
11443 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
11444 variables `row', `i' and `area'.
11445 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11446 toolkit library.
11447
114482002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11449
11450 * xfaces.c (clear_font_table): Don't free the default font of
11451 a frame even if it's on another display.
11452 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11453 that could be Qt.
11454
114552002-04-19 Juanma Barranquero <lektu@terra.es>
11456
11457 * indent.c (Fmove_to_column): Remove unused local variable
11458 `next_boundary_byte'.
11459 (current_column_1): Likewise.
11460
114612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11462
11463 * msdos.c (Qhbar): New variable.
11464 (syms_of_msdos): Intern and staticpro it.
11465 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11466 cursor type.
11467
114682002-04-19 Dave Lambert <dlambert@acm.org>
11469
11470 Theses change implement an underscore-like (`hbar') cursor.
11471
11472 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11473
11474 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11475 Handle the `hbar' cursor type.
11476 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11477
11478 * xfns.c (Qhbar): New variable.
11479 (syms_of_xfns): Intern and staticpro it.
11480 (x_specified_cursor_type): Handle `hbar' cursor.
11481
11482 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11483 not defined.
11484
114852002-04-18 Richard M. Stallman <rms@gnu.org>
11486
11487 * textprop.c (remove_properties): New arg LIST allows scanning
11488 either a list or a plist.
11489 (interval_has_some_properties_list): New function, like
11490 interval_has_some_properties using list instead of plist.
11491 All callers changed.
11492 (Fremove_list_of_text_properties): New function.
11493 (syms_of_textprop): Defsubr it.
11494
114952002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11496
11497 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11498
114992002-04-17 Juanma Barranquero <lektu@terra.es>
11500
11501 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11502
115032002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11504
11505 * window.c (coordinates_in_window): Don't report on margin area
11506 if its width is zero.
11507
115082002-04-16 Jason Rumney <jasonr@gnu.org>
11509
11510 * w32fns.c (Fx_file_dialog): Decode file name before using.
11511
11512 * w32term.c (construct_drag_n_drop): Likewise.
11513
115142002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11515
11516 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11517 store load-history in pure space.
11518
11519 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11520
115212002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11522
11523 * xterm.c (Qlatin_1, Qutf_8): New vars.
11524 (syms_of_xterm): Initialize them.
11525 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11526 decoding the output of X*LookupString.
11527 Always use latin-1 to decode the output of XLookupString.
11528 Try Xutf8LookupString if XmbLookupString failed.
11529
11530 * region-cache.c (new_region_cache): Use BEG.
11531
115322002-04-16 Gerd Moellmann <gerd@gnu.org>
11533
11534 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11535 configuration files.
11536 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11537 returns 0.
11538
115392002-04-15 Andreas Schwab <schwab@suse.de>
11540
11541 * config.in: Regenerated using autoheader.
11542
11543 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11544 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11545 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11546 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11547 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11548 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11549 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11550 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11551 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11552 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11553 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11554 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11555 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11556 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11557 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11558 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11559 STACK_DIRECTION, now set by autoconf.
11560
115612002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11562
11563 * dispnew.c (marginal_area_string): Sort arguments.
11564
11565 * dispextern.h (marginal_area_string): Add prototype.
11566
115672002-04-13 Richard M. Stallman <rms@gnu.org>
11568
11569 * fileio.c (Finsert_file_contents):
11570 Don't call temp_output_buffer_setup--do just part, by hand.
11571
11572 * coding.c (run_pre_post_conversion_on_str):
11573 Don't call temp_output_buffer_setup--do just part, by hand.
11574
11575 * keyboard.c (command_loop_1): Don't call start_hourglass
11576 or cancel_hourglass when executing a macro.
11577
11578 * marker.c (count_markers): New function.
11579
11580 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11581 grow without limit. Move recently used elements to the front.
11582
115832002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11584
11585 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11586
115872002-04-12 Gerd Moellmann <gerd@gnu.org>
11588
11589 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11590 rows marginal areas.
11591 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11592 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11593
11594 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11595
115962002-04-12 Dave Love <fx@gnu.org>
11597
11598 * dispnew.c (marginal_area_string): New.
11599
11600 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11601 (Qleft_margin, Qright_margin): Declare.
11602 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11603
11604 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11605 note_mode_line_highlight and extended.
11606
11607 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11608 (make_lispy_event): Deal with mouse events in margins.
11609
116102002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11611
11612 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11613
11614 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11615 than deactivating the mark if tmm is set to `lambda'.
11616 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11617 Use a single event for HELP_EVENT.
11618 (Fexecute_extended_command): Save last_point_position.
11619
116202002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11621
11622 * lisp.h (Fpropertize): Add prototype.
11623
11624 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11625
116262002-04-10 Colin Walters <walters@verbum.org>
11627
11628 * config.in: Add HAVE_SHARED_GAME_DIR.
11629
11630 * callproc.c: (Vgame_score_directory): New variable.
11631 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11632
116332002-04-10 Richard M. Stallman <rms@gnu.org>
11634
11635 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11636
116372002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11638
11639 * minibuf.c (read_minibuf): Use empty_string.
11640 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11641 Short-circuit the search as soon as it "failed".
11642 (Fall_completions): Allow lambda forms and lists of strings for alist.
11643 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11644 when require_match is nil.
11645 (Ftest_completion): Rename from `test_completion' and export to elisp.
11646 Call the predicate also when alist is a list.
11647 Obey Vcompletion_regexp_list.
11648 (do_completion, Fminibuffer_complete_and_exit): Use it.
11649 (Fassoc_string): Rename from `assoc_for_completion'.
11650 Allow list of strings as well and export to elisp.
11651
116522002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11653
11654 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11655
116562002-04-08 Juanma Barranquero <lektu@terra.es>
11657
11658 * w32.c (sys_accept): Don't hide variable `s'.
11659
116602002-04-05 Gerd Moellmann <gerd@gnu.org>
11661
11662 * callint.c (Fcall_interactively): Use INTEGERP instead of
11663 NUMBERP for checking Vhistory_length.
11664
116652002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11666
11667 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11668 Doc fix to reflect it.
11669
116702002-04-04 Richard M. Stallman <rms@gnu.org>
11671
11672 * xdisp.c (display_mode_element): New arg RISKY.
11673 Disregard text props found or specified within a variable
11674 that isn't marked risky-local-variable.
11675 (Qrisky_local_variable): New variable.
11676 (syms_of_xdisp): Init and staticpro it.
11677
116782002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11679
11680 * undo.c (record_point): New fun.
11681 (record_delete, record_insert): Use it.
11682
116832002-04-03 Juanma Barranquero <lektu@terra.es>
11684
11685 * doc.c (Fdocumentation): Add missing parentheses.
11686 (Fdocumentation_property): Likewise.
11687
116882002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11689
11690 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11691 data is 0, just return nil.
11692
116932002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11694
11695 * msdos.c (syms_of_msdos): Fix last change with
11696 mouse_autoselect_window.
11697
116982002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11699
11700 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11701 mouse_autoselect_window.
11702
117032002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11704
11705 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11706 with system-specific keysyms. Use it also for unknown function keys.
11707
11708 * doc.c (reread_doc_file): Return whether reload was attempted.
11709 (Fdocumentation, Fdocumentation_property): Don't try to reload
11710 if the doc is 0 and only ask once.
11711
11712 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11713
117142002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11715
11716 * keyboard.c (read_char): If the event was Qselect_window,
11717 restore timer_idleness_start_time to its previous value.
11718
11719 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11720
117212002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11722
11723 * region-cache.c (new_region_cache): Use BEG.
11724
11725 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11726 Use BEG and BEG_BYTE.
11727
11728 * doc.c (get_doc_string): Return nil if the location is wrong.
11729 (reread_doc_file): New fun.
11730 (Fdocumentation, Fdocumentation_property):
11731 Call it if get_doc_string fails.
11732 (Fsnarf_documentation): Make it work for a dumped Emacs.
11733
11734 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11735 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11736
11737 * charset.c (Fstring): Allow 0 arguments.
11738
11739 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11740
11741 * process.c (DATAGRAM_CONN_P, list_processes_1)
11742 (Fprocess_datagram_address, Fset_process_datagram_address)
11743 (Fset_network_process_options, server_accept_connection):
11744 Fix some int/Lisp_Object confusions (thank you union types).
11745
117462002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11747
11748 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11749
11750 * w32term.c: Likewise.
11751 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11752
11753 * keyboard.c (Qselect_window): New symbol.
11754 (head_table): Use it.
11755 (keys_of_keyboard): Bound select-window event to handle-select-window.
11756 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11757
11758 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11759 (last_window): New variable.
11760 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11761 (note_mouse_movement): Remove reimplemented code in #if 0.
11762 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11763 Emacs windows.
11764
11765 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11766
117672002-03-31 Gerd Moellmann <gerd@gnu.org>
11768
11769 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11770 Callers changed.
11771
117722002-03-30 Richard M. Stallman <rms@gnu.org>
11773
11774 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11775 loop whenever it stops making progress.
11776
11777 * widget.c (set_frame_size): Don't call change_frame_size.
11778
117792002-03-30 Gerd Moellmann <gerd@gnu.org>
11780
11781 * dispnew.c (direct_output_for_insert):
11782 Call mark_window_display_accurate.
11783
117842002-03-29 Jason Rumney <jasonr@gnu.org>
11785
11786 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11787
117882002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11789
11790 * Makefile.in (lread.o): Depend on coding.h.
11791
11792 * lread.c (openp, Fload): Encode the file name before passing it
11793 to `stat', `access', and `emacs_open'.
11794 (openp): GCPRO the encoded file name. Don't recompute Lisp
11795 strings unnecessarily.
11796
117972002-03-29 Kim F. Storm <storm@cua.dk>
11798
11799 * fns.c (Flax_plist_put): Doc fix.
11800
118012002-03-28 Miles Bader <miles@gnu.org>
11802
11803 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11804
118052002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11806
11807 * process.c (set-network-process-options): Add usage.
11808 (make-network-process): Doc fix.
11809
118102002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
11811
11812 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
11813
118142002-03-26 Richard M. Stallman <rms@gnu.org>
11815
11816 * fns.c (Fsubstring_no_properties): New function.
11817 (Flax_plist_get, Flax_plist_put): New functions.
11818 (syms_of_fns): defsubr them.
11819
11820 * xdisp.c (update_menu_bar): Test only update_mode_lines;
11821 don't test or alter w->update_mode_line.
11822
11823 * window.c (Fdisplay_buffer): Doc fix.
11824
118252002-03-24 Richard M. Stallman <rms@gnu.org>
11826
11827 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
11828
118292002-03-24 Gerd Moellmann <gerd@gnu.org>
11830
11831 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
11832 (Fdefmacro): Handle `(declare ...)'.
11833 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
11834 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
11835
118362002-03-24 Jason Rumney <jasonr@gnu.org>
11837
11838 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
11839 (xbm_file_p): Add prototypes.
11840 (xbm_format, xbm_image_p): Sync with xfns.c.
11841 (reflect_byte): New function.
11842 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
11843 (xbm_load_image): Create bitmaps with a depth of 1.
11844 (init_xfns): Enable XBM images.
11845
118462002-03-23 Jason Rumney <jasonr@gnu.org>
11847
11848 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
11849 correctly. Do not pass up_modifier to keyboard buffer.
11850
11851 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
11852
118532002-03-22 Stefan Monnier <monnier@cs.yale.edu>
11854
11855 * Makefile.in (bootstrapclean): New target.
11856 (bootstrap-temacs, bootstrap-doc): Remove.
11857 (bootstrap-emacs): Use a bog-standard `temacs'.
11858 Don't bother to build a DOC file.
11859
11860 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11861
11862 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11863 in temacs even if !CANNOT_DUMP.
11864 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11865
11866 * alloc.c (check_pure_size): Only output a warning.
11867
118682002-03-22 Jason Rumney <jasonr@gnu.org>
11869
11870 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11871 supported.
11872
11873 * w32term.c (zv_bits): Declare as short, for word alignment.
11874 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11875 (syms_of_w32term): Define x-use-underline-position-properties.
11876
11877 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11878 (clear_image_cache): Block input, fix logic, clear matrices in
11879 all frames that share this cache.
11880
118812002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11882
11883 * emacs.c (main): Update the Copyright year in the blurb printed
11884 by "emacs --version".
11885
11886 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11887
11888 * xterm.c (XTread_socket): If XK_ISO_Lock and
11889 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11890 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11891
118922002-03-21 Kim F. Storm <storm@cua.dk>
11893
11894 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11895 menu-bar bindings in keymap and local-map properties _are_ used.
11896 But try keymap property first in accordance with 2002-01-03 patch.
11897 Added comment describing why this is not always reliable.
11898 (tool_bar_items): Ditto for tool-bar.
11899
119002002-03-21 Jason Rumney <jasonr@gnu.org>
11901
11902 * w32fns.c (x_clear_image_1): Disable color table code.
11903
119042002-03-21 Kim F. Storm <storm@cua.dk>
11905
11906 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11907 removed the wrong version of the DEFUN macro; fixed it.
11908
11909 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11910 Fmember rather than Fmemq).
11911 (Fprovide): Check that subfeatures is a list.
11912
11913 * process.c (QCfeature, QCdatagram): Removed variables.
11914 (QCtype, Qdatagram): New variables.
11915 (network_process_featurep): Removed function.
11916 (Fmake_network_process): Removed :feature check.
11917 Use :type 'datagram instead of :datagram t to create a datagram
11918 socket. This allows us to add other connection types (e.g. raw
11919 sockets) later in a consistent manner.
11920 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11921 supported subfeatures for feature make-network-process.
11922 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11923 Intern and staticpro QCtype and Qdatagram.
11924 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11925
11926 * xfns.c: (QCtype): Remove duplicate declaration and
11927 initialization (is now declared in process.c).
11928
11929 * w32fns.c: (QCtype): Remove duplicate declaration and
11930 initialization (is now declared in process.c).
11931
119322002-03-21 Richard M. Stallman <rms@gnu.org>
11933
11934 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11935 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11936 when jumping to `fail' to avoid undoing reg changes in the
11937 last iteration of the loop.
11938 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11939
11940 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11941 Depend on process.h.
11942
119432002-03-20 Jason Rumney <jasonr@gnu.org>
11944
11945 Most of the following changes are still conditional on HAVE_IMAGES
11946 which is not set by default on Windows.
11947
11948 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11949
11950 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11951 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11952 (four_corners_best, x_clear_image_1, x_clear_image)
11953 (x_alloc_image_color, postprocess_image)
11954 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11955 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11956 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11957
11958 * w32gui.h (struct XImage): Define.
11959
11960 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11961 extract mouse co-ordinates.
11962
119632002-03-20 Jason Rumney <jasonr@gnu.org>
11964
11965 * w32.c (init_winsock): Dynamically load new server and UDP
11966 socket functions.
11967 (socket_to_fd): New function.
11968 (sys_socket): Use it.
11969 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11970 (sys_recvfrom, sys_sendto): New wrapper functions.
11971
11972 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11973 and initialization.
11974
11975 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11976
119772002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11978
11979 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11980 Don't use "sun" as a variable, it's a predefined constant on Sun
11981 machines.
11982
119832002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11984
11985 * bytecode.c (Fbyte_code): Revert last change.
11986
119872002-03-19 Kim F. Storm <storm@cua.dk>
11988
11989 * makefile.w32-in (LIBS): Add $(WSOCK32).
11990 From David Ponce <dponce@voila.fr>.
11991
119922002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11993
11994 * process.c (wait_reading_process_input): Move variables `pname'
11995 and `pnamelen' down where they are used.
11996
11997 * bytecode.c (Fbyte_code): Discard unused computed value to
11998 prevent gcc warning.
11999
12000 * lisp.h (Fplist_member): Add prototype.
12001
120022002-03-18 Kim F. Storm <storm@cua.dk>
12003
12004 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
12005 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
12006
12007 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
12008 Remove explicit GNU_LINUX settings for datagram support.
12009
120102002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12011
12012 * process.c (Fmake_network_process): Remove unused variable `sa'.
12013 Doc fix. Add usage:.
12014 (set_socket_options): Remove unused variables `optnum' and `opttype'.
12015
120162002-03-17 Richard M. Stallman <rms@gnu.org>
12017
12018 * xdisp.c (cursor_type_changed): New variable.
12019 (redisplay_internal): Redisplay all windows if cursor_type_changed.
12020 Clear it when clearing windows_or_buffers_changed.
12021 (try_cursor_movement, redisplay_window, try_window_id)
12022 (try_window_reusing_current_matrix): Test cursor_type_changed
12023 along with windows_or_buffers_changed.
12024
12025 * window.h (cursor_type_changed): New variable.
12026
12027 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
12028 not update_mode_lines, and always set it to 1.
12029
12030 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
12031 if no frames needed redrawing.
12032
120332002-03-17 Kim F. Storm <storm@cua.dk>
12034
12035 The following changes add support for network server processes,
12036 datagram connections, and local (unix) sockets.
12037
12038 * process.h (struct Lisp_Process): New member log.
12039 Doc fix: Member command used to indicate stopped network process.
12040 Doc fix: Member childp contains plist for network process.
12041 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
12042
12043 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
12044 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
12045 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
12046 New variables.
12047 (NETCONN1_P): New macro.
12048 (DATAGRAM_SOCKETS): New conditional symbol.
12049 (datagram_address): New array.
12050 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
12051 (status_message): Use concat3.
12052 (Fprocess_status): Add `listen' status to doc string. Return `stop'
12053 for a stopped network process.
12054 (Fset_process_buffer): Update contact plist for network process.
12055 (Fset_process_filter): Ditto. Don't enable input for stopped
12056 network processes. Server must listen, even if filter is t.
12057 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
12058 New functions.
12059 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
12060 (Fprocess_contact): Added KEY argument. Handle datagrams.
12061 (list_processes_1): Optionally show only processes with the query
12062 on exit flag set. Dynamically adjust column widths. Omit tty
12063 column if not needed. Report stopped network processes.
12064 Identify server and datagram network processes.
12065 (Flist_processes): New optional arg `query-only'.
12066 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
12067 (conv_lisp_to_sockaddr, set_socket_options)
12068 (network_process_featurep, unwind_request_sigio): New helper functions.
12069 (Fprocess_datagram_address, Fset_process_datagram_address):
12070 (Fset_network_process_options): New lisp functions.
12071 (Fopen_network_stream): Removed. Now defined in simple.el.
12072 (Fmake_network_process): New lisp function. Code is based on previous
12073 Fopen_network_stream, but heavily reworked with new property list based
12074 argument list, support for datagrams, server processes, and local
12075 sockets in addition to old client-only functionality.
12076 (server_accept_connection): New function.
12077 (wait_reading_process_input): Use it to handle incoming connects.
12078 Do not enable input on a new connection if process is stopped.
f63fd14e 12079 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
12080 (send_process): Handle datagram sockets.
12081 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
12082 network process is indicated by setting command field to t .
12083 (Fprocess_send_eof): No-op if datagram connection.
12084 (Fstatus_notify): Don't read input for a stream server socket or a
12085 stopped network process.
12086 (init_process): Initialize datagram_address array.
12087 (syms_of_process): Intern and staticpro new variables, defsubr new
12088 functions.
12089
120902002-03-16 Jason Rumney <jasonr@gnu.org>
12091
12092 * w32fns.c (w32_to_all_x_charsets): Return correct type in
12093 startup case.
12094
120952002-03-16 Richard M. Stallman <rms@gnu.org>
12096
12097 * xdisp.c (redisplay_internal, redisplay_windows):
12098 Use list_of_error to call internal_condition_case_1.
12099 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
12100 so as to catch all errors with no possibility of debugger redisplay.
12101 (list_of_error): New variable.
12102 (syms_of_xdisp): Init and staticpro it.
12103
12104 * print.c (print_object): Delete `\ ' from printed rep of frame.
12105
121062002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
12107
12108 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
12109 until its implementation is fixed.
12110
121112002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12112
12113 * xfns.c (png_load): Remove unused variable `gamma_str'.
12114
121152002-03-14 Richard M. Stallman <rms@gnu.org>
12116
12117 * xfns.c (x_real_positions): Handle failure in XQueryTree.
12118
121192002-03-14 Miles Bader <miles@gnu.org>
12120
12121 * intervals.c (adjust_for_invis_intang): New function.
12122 (set_point_both): Use `adjust_for_invis_intang' to do most of the
12123 work for dealing with invisible+intangible regions. Do so before
12124 and after both forward and backward movements, to handle both
12125 front-sticky and rear-sticky cases.
12126 * textprop.c (text_property_stickiness): Function moved here from
12127 `editfns.c'.
12128 * intervals.h (text_property_stickiness): New declaration.
12129 * editfns.c (char_property_eq): Function removed.
12130 (text_property_stickiness): Function moved to `textprop.c'.
12131
121322002-03-13 Jason Rumney <jasonr@gnu.org>
12133
12134 * config.in: Add STRFTIME_NO_POSIX2.
12135
12136 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
12137 and %OX when underlying strftime does not.
12138
121392002-03-13 Stefan Monnier <monnier@cs.yale.edu>
12140
12141 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
12142 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
12143 line) to avoid annoying flicker.
12144 (xm_scroll_callback): Get rid of the now unnecessary kludge.
12145 (XTread_socket): Mark it static.
12146
12147 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
12148
121492002-03-13 Kim F. Storm <storm@cua.dk>
12150
12151 * puresize.h (BASE_PURESIZE): Increase to 775000.
12152
121532002-03-12 Juanma Barranquero <lektu@terra.es>
12154
12155 * editfns.c (syms_of_editfns): Fix typo.
12156
121572002-03-12 Gerd Moellmann <gerd@gnu.org>
12158
12159 * xsmfns.c: Include stdio.h because termhooks.h needs it.
12160 Include termopt.h for interrupt_input.
12161
121622002-03-11 Andreas Schwab <schwab@suse.de>
12163
12164 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
12165
121662002-03-11 Gerd Moellmann <gerd@gnu.org>
12167
12168 * xterm.c (note_mouse_movement): Put code for
12169 x_autoselect_window_p in #if 0.
12170
12171 * lread.c (Fload): Don't assume that message_with_string uses the
12172 string it is given like a C string.
12173
121742002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12175
12176 * xterm.h (x_session_check_input, x_session_initialize): Declared.
12177
12178 * xterm.c: (XTread_socket): Add call to x_session_check_input and
12179 x_session_have_connection.
12180 (x_initialize): Add call to x_session_initialize.
12181
12182 * termhooks.h (enum event_kind): Add save_session_event.
12183
12184 * keyboard.c: Add Emacs event save_session_event.
12185
12186 * emacs.c (main): Add call to syms_of_xsmfns.
12187
12188 * lisp.h: Declare syms_of_xsmfns as extern.
12189
12190 * config.in: Add HAVE_X_SM.
12191
12192 * Makefile.in (LIBXT): Add -lSM -lICE
12193 if HAVE_X_SM and not USE_X_TOOLKIT.
12194 (XOBJ): New file xsmfns.c added.
12195
12196 * xsmfns.c: New file for X session management.
12197
121982002-03-09 Jason Rumney <jasonr@gnu.org>
12199
12200 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
12201 read-only when setting modified time.
12202
122032002-03-08 Gerd Moellmann <gerd@gnu.org>
12204
12205 * xdisp.c (move_it_vertically_backward): At the end of the function,
12206 when moving forward by lines, treat terminal frames specially.
12207
12208 * keyboard.c (echo_char): Make sure to add a separator between
12209 keys even if echo_dash hasn't been called.
12210
12211 * xdisp.c: Use new string macros.
12212 (update_echo_area): Pass number of bytes to message3 instead of
12213 number of chars.
12214 (set_message_1): Don't access a string's size_byte directly.
12215 (decode_mode_spec_coding): Use number of bytes of eoltype string
12216 instead number of chars.
12217
12218 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
12219
122202002-03-08 Juanma Barranquero <lektu@terra.es>
12221
12222 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
12223 24-bit.
12224
122252002-03-06 Jason Rumney <jasonr@gnu.org>
12226
12227 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
12228
122292002-03-06 Gerd Moellmann <gerd@gnu.org>
12230
12231 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
12232 (cancel_echoing, echo_length, echo_truncate): Changed to
12233 work with new kboard definition.
12234 (echo_now): Use message3_nolog instead of message2_nolog.
12235
12236 * alloc.c (mark_kboards): Mark echo_string.
12237
12238 * keyboard.h (ECHOBUFSIZE): Removed.
12239 (struct kboard): Member echoptr removed, member echobuf renamed
12240 to echo_string.
12241
12242 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
12243 message3 instead of message2 to display the message using STRING's
12244 text properties.
12245
122462002-03-05 Andreas Schwab <schwab@suse.de>
12247
12248 * xdisp.c (hscroll_margin): Change to EMACS_INT.
12249
122502002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
12251
12252 * frame.c (default-frame-alist): Explain that setting it doesn't
12253 affect existing frames.
12254
122552002-03-05 Stefan Monnier <monnier@cs.yale.edu>
12256
12257 * indent.c (skip_invisible): Fix my brain fart.
12258
12259 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
12260
122612002-03-04 Stefan Monnier <monnier@cs.yale.edu>
12262
12263 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
12264 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
12265 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
12266 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
12267 and variables to use EMACS_INT instead of just int.
12268
12269 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
12270
122712002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
12272
12273 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
12274 environment, pass it down with corrected value.
12275
122762002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12277
12278 * lread.c (read_filtered_event): Do not call start_hourglass
12279 before returning.
12280
122812002-03-04 Juanma Barranquero <lektu@terra.es>
12282
12283 * w32term.c (x_display_and_set_cursor): Fix typo.
12284
122852002-03-03 Richard M. Stallman <rms@gnu.org>
12286
12287 * fileio.c (Fmake_temp_name): Doc fix.
12288
122892002-03-03 Gary Wong <gtw@gnu.org>
12290
12291 * termcap.c [!emacs]: Replace ospeed for building standalone
12292 libtermcap, for binary compatibility.
12293
12294 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
12295
122962002-03-03 Richard M. Stallman <rms@gnu.org>
12297
12298 * xrdb.c (file_p): Rename arg `path' to `filename'.
12299
12300 * abbrev.c (Fexpand_abbrev): Increment plist as use count
12301 only if it is an integer.
12302
12303 * xfns.c (png_load): Set screen_gamma based on f->gamma.
12304 If png_get_sRGB gives an answer, call png_set_gamma
12305 using the default image gamma value.
12306
12307 * lread.c (read1): When reading from a file, default string to
12308 multibyte only if it has some multibyte characters.
12309
12310 * print.c (print_object): Output multibyte chars 128...255
12311 using \x even if ! print_escape_multibyte.
12312
12313 * xdisp.c (display_mode_element): Move the places where
12314 bytepos, charpos, this, and lisp_string are set.
12315 Use lisp_string to set bytepos.
12316
12317 * xdisp.c (redisplay_internal):
12318 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
12319
12320 * xdisp.c (display_mode_element): Merge properties specified with
12321 :propertize onto those that come with the string.
12322
123232002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
12324
12325 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
12326 automatic-hscrolling. Users changed.
12327 <hscroll-margin>: Renamed from automatic-hscroll-margin.
12328 Users changed.
12329 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
12330
123312002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12332
12333 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
12334
123352002-03-02 Kim F. Storm <storm@cua.dk>
12336
12337 * window.c (Fminibuffer_selected_window): New function.
12338 (syms_of_window): Defsubr it.
12339
123402002-03-01 Kim F. Storm <storm@cua.dk>
12341
12342 * window.h (struct window): New member phys_cursor_width.
12343
12344 * window.c (make_window, replace_window): Init phys_cursor_width.
12345
12346 * xterm.c (x_display_and_set_cursor): Blink box cursor using
12347 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12348
12349 * w32term.c (x_display_and_set_cursor): Blink box cursor using
12350 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12351
12352 * lisp.h (GCPRO6): New macro.
12353
12354 * process.c (Fopen_network_stream): Use GCPRO6.
12355
123562002-03-01 Kim F. Storm <storm@cua.dk>
12357
12358 * process.c (Qconnect, Qfailed): New variables.
12359 (syms_of_process): Intern and staticpro them.
12360 (Fprocess_status): Document connect and failed return values.
12361 [NON_BLOCKING_CONNECT]: New conditional.
12362 (connect_wait_mask, num_pending_connects): New variables.
12363 (status_message): Convert Qfailed status.
12364 (Fopen_network_stream): Added support for non-blocking connect.
12365 New optional args: filter, sentinel, non_blocking. Doc updated.
12366 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
12367 (deactivate_process): Handle pending non-blocking connect.
12368 (wait_reading_process_input): Poll for status of non-blocking
12369 connects. Exec sentinel directly when connect succeeds.
12370 (status_notify): Don't read process output if not yet connected.
12371
123722002-02-28 Kim F. Storm <storm@cua.dk>
12373
12374 * window.c: (minibuf_selected_window): Renamed from
12375 Vminibuf_selected_window. Users changed.
12376 (syms_of_window): Staticpro it.
12377
123782002-02-26 Kim F. Storm <storm@cua.dk>
12379
12380 The following changes add a new Vminibuf_selected_window variable
12381 which is similar to Vminibuf_scroll_window, but which is only set
12382 on entry to the minibuffer (from a non-minibuffer window):
12383
12384 * window.c: (Vminibuf_selected_window): New variable.
12385 (struct save_window_data): New member minibuf_selected_window.
12386 (Fset_window_configuration): Restore Vminibuf_selected_window.
12387 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
12388 Set minibuf_scroll_window member to nil if minibuf_level is 0.
12389 (compare_window_configurations): Compare minibuf_selected_window.
12390
12391 * window.h: (Vminibuf_selected_window): Declare extern.
12392
12393 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
12394 entry to minibuffer or on entry from a non-minibuffer window.
12395
12396 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
12397 Vminibuf_selected_window instead of Vminibuf_scroll_window.
12398
12399 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
12400 instead of Vminibuf_scroll_window when deciding in which window
12401 the region should be highlighted. Consequently, the region remains
12402 highlighteded even when a completion buffer is also displayed.
12403
124042002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12405
12406 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12407
12408 * xselect.c (Qcompound_text_with_extensions): Renamed from
12409 Qcompound_text_no_extensions.
12410 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12411
124122002-02-26 Juanma Barranquero <lektu@terra.es>
12413
12414 * w32proc.c (syms_of_ntproc): Doc fix.
12415
124162002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12417
12418 * intervals.h: Include "dispextern.h" unconditionally.
12419
124202002-02-24 Jason Rumney <jasonr@gnu.org>
12421
12422 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
12423 and disp-table.elc.
12424 (lisp): Add emacs-lisp/backquote.elc.
12425
124262002-02-24 Kim F. Storm <storm@cua.dk>
12427
12428 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
12429 The validation of the event type was too strict as it didn't
12430 allow string events; buffer names are used in bindings for
12431 menu-bar-select-buffer (see `menu-bar-update-buffers').
12432
124332002-02-23 Kim F. Storm <storm@cua.dk>
12434
12435 The following changes rework my patch of 2002-02-06 which
12436 added command remapping by entering the commands directly into
12437 the keymaps. Now, command remapping uses an explicit `remap'
12438 prefix in the keymaps, i.e. [remap COMMAND].
12439
12440 * keymap.c (Qremap, remap_command_vector): New variables.
12441 (is_command_symbol): Removed function.
12442 (Fdefine_key): No longer accept a symbol for KEY.
12443 Added validation of [remap COMMAND] argument for KEY.
12444 The DEF is no longer required to be a symbol when remapping a command.
12445 (Fremap_command): New function to remap command through keymaps.
12446 (Flookup_key): Perform command remapping initiated by
12447 Fremap_command directly for speed.
12448 (Fkey_binding): Use Fremap_command for command remapping.
12449 (where_is_internal): Handle new command remapping representation.
12450 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12451 staticpro them. Defsubr Fremap_command.
12452
12453 * keymap.h (Fremap_command): Declare extern.
12454 (is_command_symbol): Remove extern.
12455
12456 * keyboard.c (command_loop_1): Use Fremap_command for command
12457 remapping; now try command remapping for all symbols.
12458
124592002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12460
12461 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12462
124632002-02-23 Jason Rumney <jasonr@gnu.org>
12464
12465 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12466 on the string before encoding it.
12467 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12468 after decoding it.
12469
12470 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12471
124722002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12473
12474 * w32term.c (enter_timestamp): Remove unused static variable to
12475 prevent warning.
12476
12477 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12478
124792002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12480
12481 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12482
12483 * xselect.c (selection_data_to_lisp_data): Fix last change.
12484
124852002-02-22 Jason Rumney <jasonr@gnu.org>
12486
12487 * w32term.h (struct w32_output): New member menu_command_in_progress.
12488
12489 * w32menu.c (menubar_selection_callback): Free the menu and
12490 clear the menu_command_in_progress flag.
12491
12492 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12493 (menu_free_timer): New variable.
12494 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12495 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12496 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12497 menu command is in progress.
12498 <WM_COMMAND>: Set the menu_command_in_progress flag.
12499 Kill any menu_free_timer that is running.
12500
12501 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12502 Call ExtTextOutA rather than ExtTextOut.
12503
125042002-02-22 Eli Zaretskii <eliz@gnu.org>
12505
12506 * puresize.h (BASE_PURESIZE): Increase to 755000.
12507
125082002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12509
12510 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12511 on the string before encoding it.
12512 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12513 after decoding it.
12514
125152002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12516
12517 Support for ICCCM Extended Segments in X selections:
12518
12519 * xselect.c <Qcompound_text_no_extensions>: New variable.
12520 (syms_of_xselect): Intern and staticpro it.
12521 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12522 selection text.
12523 (lisp_data_to_selection_data): If next-selection-coding-system is
12524 compound-text-no-extensions, set the type of selection to be
12525 compound-text.
12526
12527 * xterm.h (x_encode_text): Update prototype.
12528
12529 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12530 callers changed. If SELECTIONP is non-zero, run the
12531 pre-write-conversion function before encoding the selection text.
12532
125332002-02-21 Kim F. Storm <storm@cua.dk>
12534
12535 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12536
12537 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12538 Correct composing of language-change event.
12539
125402002-02-20 Kim F. Storm <storm@cua.dk>
12541
12542 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12543 bindings at PT when building menu (the menu is not updated often
12544 enough for this to work reliable).
12545 (tool_bar_items): Likewise.
12546 (current_active_maps): Removed unused (and buggy) function.
12547
125482002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12549
12550 * xfns.c (gif_load): Use correct width and height for GIF images.
12551
125522002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12553
12554 * floatfns.c (Fatan): Accept an optional second arg and call
12555 atan2 if passed 2 args.
12556
125572002-02-18 Jason Rumney <jasonr@gnu.org>
12558
12559 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12560
125612002-02-17 Jason Rumney <jasonr@gnu.org>
12562
12563 * w32term.c (x_autoselect_window_p): New variable.
12564 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12565 (note_mouse_movement): Use it.
12566
12567 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12568
12569 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12570
12571 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12572 New variables.
12573 (syms_of_w32fns): Intern and staticpro them.
12574 (x_frame_parms) <"fullscreen">: New parameter.
12575 (x_fullscreen_move, x_set_fullscreen): New functions.
12576 (x_set_frame_parameters): Support Qfullscreen.
12577 (x_real_positions): Save x/y_pixels_diff frame params.
12578 (x_figure_window_size): Support full-screen frames.
12579 (Fx_create_frame): Default the fullscreen parameter.
12580
12581 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12582 (x_fullscreen_adjust): New functions.
12583 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12584 fullscreen. Call x_check_fullscreen_move, and set the
12585 want_fullscreen member of output_data.w32
12586 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12587
12588 * w32term.h: New enum for FULLSCREEN_* constants.
12589 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12590 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12591 (x-fullscreen-adjust): New prototype.
12592
125932002-02-17 Kim F. Storm <storm@cua.dk>
12594
12595 * frame.c: (Vmouse_highlight): New variable.
12596 (syms_of_frame): DEFVAR_LISP it.
12597
12598 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12599
048addec 12600 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12601
048addec
JD
12602 * xterm.c (disable_mouse_highlight): Removed variable.
12603 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12604 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12605 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12606 and on after keyboard input.
12607 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12608
048addec 12609 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12610
048addec
JD
12611 * msdos.c (disable_mouse_highlight): Removed variable.
12612 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12613 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12614 (internal_terminal_init): Initialize mouse_face_hidden.
12615 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12616 and on after keyboard input.
4f1b1854 12617
048addec 12618 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12619
048addec
JD
12620 * w32term.c (disable_mouse_highlight): Removed variable.
12621 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12622 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12623 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12624 and on after keyboard input.
12625 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 12626
048addec 126272002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 12628
048addec
JD
12629 * msdos.c (last_mouse_window): New variable.
12630 (dos_rawgetc): Fix last change--if the mouse is in the same window
12631 as recorded in last_mouse_window, don't select this window.
5cb6905d 12632
048addec 12633 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 12634
048addec
JD
12635 * msdos.c (x_autoselect_window_p): New variable.
12636 (syms_of_msdos): Defvar it.
12637 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12638 which the last mouse movement occured, unless it is already selected.
437dfb9f 12639
048addec
JD
12640 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12641 New variables.
12642 (syms_of_xdisp): DEVFAR them.
12643 (hscroll_window_tree): Use automatic_hscroll_margin and
12644 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 12645
048addec 126462002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 12647
048addec
JD
12648 * xterm.c (x-autoselect-window): New variable.
12649 (note_mouse_movement): Use it.
9f696a00 12650
048addec 12651 * keyboard.c: Do not include "systime.h" twice.
d57966d7 12652
048addec 126532002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 12654
bfa02563 12655 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 12656
048addec 12657 * alloc.c (NSTATICS): Increase to 1280.
74779f52 12658
048addec 126592002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 12660
048addec 12661 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 12662
048addec
JD
12663 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12664 (Vx_super_keysym): New variables.
12665 (syms_of_xterm): DEFVAR_LISP them.
12666 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12667 variables to determine which keys to use for the various modifiers.
a474d59c 12668
048addec 126692002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 12670
048addec
JD
12671 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12672 (mode_line_in_non_selected_windows): New variable.
12673 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 12674
048addec
JD
12675 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12676 Use mode_line_in_non_selected_windows.
12677 (mode_line_in_non_selected_windows): Declare extern.
12678 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 12679
048addec 126802002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 12681
048addec
JD
12682 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12683 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12684 (Fclear_this_command_keys): Doc fixes.
2d10309f 12685
048addec
JD
12686 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12687 (update_face_from_frame_parameter): Increment face_change_count
12688 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 12689
048addec
JD
12690 * xdisp.c (QCpropertize): New variable.
12691 (mode_line_proptrans_alist): New variable.
12692 (display_mode_element): New arg PROPS; all calls changed.
12693 Implement this, for strings.
12694 Handle literal output of strings by sharing the
12695 main-line code for strings, using local var `literal'.
12696 Handle :propertize feature.
12697 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12698 mode_line_proptrans_alist.
0b1e6b54 12699
048addec 127002002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 12701
048addec
JD
12702 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12703 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 12704
048addec
JD
12705 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12706 (CURRENT_MODE_LINE_FACE_ID): Use it.
12707 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 12708
048addec
JD
12709 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12710 to get mode line face.
e17144de 12711
048addec 127122002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12713
048addec
JD
12714 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12715 variables; cus-start.el doesn't need them anymore.
44368f8f 12716
048addec 127172002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 12718
048addec
JD
12719 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12720 reduction. This fixes a display problem where stray newlines were
12721 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 12722
048addec 127232002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12724
048addec 12725 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 12726
048addec 12727 * xdisp.c (display_mode_lines): Fix last change.
453c5510 12728
048addec 127292002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 12730
048addec
JD
12731 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12732 match each other.
12733 (w32_load_system_font): Prevent Cleartype fonts from loading.
12734 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 12735
048addec 127362002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 12737
048addec
JD
12738 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12739 (CURRENT_MODE_LINE_HEIGHT): Use it.
12740 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12741
048addec
JD
12742 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12743 (pos_visible_p, handle_face_prop): Likewise.
12744 (display_mode_lines): Likewise, but for the real selected window.
12745 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12746
048addec
JD
12747 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12748 in non-selected windows.
12749 (realize_basic_faces): Realize it.
12750 (syms_of_term): Intern and staticpro it.
308dd672 12751
048addec 127522002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 12753
048addec
JD
12754 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12755 Changed mail addresses to emacs-devel@gnu.org.
308dd672 12756
048addec 127572002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 12758
048addec
JD
12759 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12760 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 12761
048addec 12762 * floatfns.c (Fround): Doc fix.
3c1e6b46 12763
048addec 127642002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 12765
048addec 12766 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 12767
048addec 127682002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 12769
048addec 12770 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 12771
048addec 127722002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 12773
048addec
JD
12774 * keymap.c (where_is_internal): Only check whether definition is
12775 remapped if it fulfills is_command_symbol.
0065bb74 12776
048addec 127772002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 12778
048addec 12779 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 12780
048addec 12781 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 12782
048addec 127832002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 12784
048addec
JD
12785 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12786 defining command remapping. Doc updated.
12787 (Flookup_key): Remap command through keymap if KEY is a symbol.
12788 (is_command_symbol): New function.
12789 (Fkey_binding): Use it. New optional argument NO-REMAP.
12790 Doc updated. Callers changed. Perform command remapping via
12791 recursive call unless that arg is non-nil.
12792 (where_is_internal): New argument no_remap. Callers changed.
12793 Call recursively to find original key bindings for a remapped
12794 comand unless that arg is non-nil.
12795 (Fwhere_is_internal): New optional argument NO-REMAP.
12796 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 12797
048addec
JD
12798 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12799 (is_command_symbol): Added prototype.
0d8466cc 12800
048addec
JD
12801 * keyboard.c (Vthis_original_command): New variable.
12802 (syms_of_keyboard): DEFVAR_LISP it.
12803 (command_loop_1): Set it, and perform command remapping.
15fff01d 12804
048addec 128052002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 12806
048addec 12807 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 12808
048addec 128092002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 12810
048addec 12811 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 12812
048addec 128132002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 12814
048addec 12815 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 12816
048addec 128172002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 12818
048addec 12819 * filelock.c (S_ISLNK): Define if not defined.
3a232704 12820
048addec 128212002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 12822
048addec 12823 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 12824
048addec
JD
12825 * lread.c (read1): Redesign strategy for force_multibyte and
12826 force_singlebyte. Now is_multibyte records whether read_buffer
12827 is multibyte. Encountering any multibyte character makes it so.
4e02881b 12828
048addec 128292002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 12830
048addec
JD
12831 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
12832 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 12833
048addec 128342002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 12835
048addec
JD
12836 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
12837 latter never being defined on GNU/Linux.
749f499f 12838
048addec 128392002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 12840
048addec
JD
12841 * xfaces.c (realize_default_face): Don't set the weight and slant of
12842 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 12843
048addec 128442002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 12845
048addec
JD
12846 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
12847 Call cancel_hourglass unconditionally.
d0fd26dd 12848
048addec
JD
12849 * eval.c (Fsignal): Remove duplicated declaration of
12850 the variable `display_hourglass_p'.
b4c45162 12851
048addec 128522002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 12853
048addec 12854 * editfns.c (region_limit): Nicer error message.
c95eaa61 12855
048addec
JD
12856 * coding.c (decode_composition_emacs_mule):
12857 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 12858
048addec
JD
12859 * callint.c (check_mark): New arg to specify clearer error message.
12860 Callers changed.
c95eaa61 12861
048addec 128622002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 12863
048addec 12864 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 12865
048addec 128662002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 12867
048addec
JD
12868 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12869 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12870 Fix doc-strings.
c95eaa61 12871
048addec 128722002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 12873
048addec 12874 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 12875
048addec
JD
12876 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12877 and scroll_up_aggressively.
c95eaa61 12878
048addec 128792002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 12880
048addec 12881 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 12882
048addec 128832002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 12884
048addec
JD
12885 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12886 (Fprevious_property_change, Fprevious_single_property_change):
12887 Stay within the narrowed-buffer boundaries.
e2c3786a 12888
048addec 128892002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 12890
048addec
JD
12891 * term.c (Ftty_display_color_cells): New function.
12892 (syms_of_term): Defsubr it.
12893 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12894 argument name to DISPLAY. Doc fix.
bf794306 12895
048addec
JD
12896 * dispextern.h: Add prototype for set_tty_color_mode and
12897 tty_setup_colors.
bf794306 12898
048addec 128992002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 12900
048addec
JD
12901 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12902 If region left to draw is not what was expected, mark the frame as
12903 garbaged.
62582985 12904
048addec
JD
12905 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12906 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 12907
048addec 129082002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 12909
048addec
JD
12910 * w32term.c (x_update_window_begin): Only hide caret if
12911 w32_use_visible_system_caret is set.
12912 (x_update_window_end): Only show caret if
12913 w32_use_visible_system_caret is set.
12914 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 12915
048addec 12916 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 12917
048addec 129182002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 12919
048addec
JD
12920 * unexelf.c (unexec): Define n so as to cause compilation error
12921 for the code where people have often written n instead of nn.
1e9a6186 12922
048addec 12923 * .gdbinit (hookpost-run): Defined.
1e9a6186 12924
048addec 129252002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 12926
048addec 12927 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 12928
048addec 129292002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 12930
048addec
JD
12931 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12932 if fullscreen is being set.
7c75be36 12933
048addec 129342002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 12935
048addec
JD
12936 * minibuf.c (Fminibuffer_contents)
12937 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12938 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 12939
048addec 129402002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 12941
048addec 12942 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 12943
048addec 129442002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 12945
048addec
JD
12946 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12947 height before comparison.
12948 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 12949
048addec 129502002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 12951
048addec
JD
12952 * w32term.c (w32_system_caret_width): Remove.
12953 (w32_use_visible_system_caret): New user flag.
12954 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12955 Windows reports a screen reader running.
12956 (x_update_window_begin): Hide the system caret.
12957 (x_update_window_end): Show the system caret.
12958 (x_display_and_set_cursor): Don't draw a cursor when
12959 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 12960
048addec
JD
12961 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12962 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12963 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12964 the user requests it. Use system default width when creating.
12965 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 12966
048addec
JD
12967 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12968 New window messages.
905cc05a 12969
048addec 129702002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 12971
048addec 12972 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 12973
048addec 129742002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 12975
048addec 12976 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 12977
048addec 129782002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 12979
048addec 12980 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 12981
048addec 129822002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 12983
048addec
JD
12984 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12985 that Windows returns. If a double check fails, try to guess how
12986 ExtTextOut is going to act.
4d0fa4f3 12987
048addec
JD
12988 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12989 in place of stricmp.
12990 (w32_list_synthesized_fonts): Removed.
12991 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12992 (struct enumfont_t): New element; list.
12993 (enum_font_cb2): List all style and charset variations of a font.
12994 (Fw32_select_font): New optional argument; include_proportional.
12995 Exclude vertical fonts. Exclude proportional fonts unless
12996 include_proportional is non-nil.
12997 (w32_enable_synthesized_fonts): Change to a boolean.
12998 (Fw32_send_sys_command): Doc fix.
493faf20 12999
048addec 130002002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 13001
048addec
JD
13002 * dispnew.c (update_frame): Move the variable `tem' to the block
13003 where it is used.
4971e491 13004
048addec 130052002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 13006
048addec
JD
13007 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
13008 call to face-set-after-frame-default.
4971e491 13009
048addec 130102002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 13011
048addec
JD
13012 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
13013 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 13014
048addec 130152002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 13016
048addec
JD
13017 * window.c (enlarge_window): When exceeding size of parent,
13018 directly delete all the siblings instead of trying to resize it.
201c831a 13019
048addec 130202002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 13021
048addec 13022 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 13023
048addec 130242002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 13025
048addec 13026 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 13027
048addec 130282002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 13029
048addec
JD
13030 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
13031 is invisible. This can happen if cursor is on top line of a
13032 window, and we switch to a buffer with a header line.
d77fbc16 13033
048addec 13034 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 13035
048addec 130362002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 13037
048addec
JD
13038 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
13039 `dont_resize' only when used.
61e3b944 13040
048addec 13041 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 13042
048addec 130432002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 13044
048addec
JD
13045 * xdisp.c (display_mode_element): When computing charpos, depend
13046 on multibyteness of elt, not the text in field.
8af01033 13047
048addec 130482002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 13049
048addec
JD
13050 * buffer.c (Fkill_all_local_variables):
13051 Increment `update_mode_lines' only once.
7363986a 13052
048addec 130532002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 13054
048addec
JD
13055 * lisp.h (adjust_after_replace_noundo)
13056 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 13057
048addec 13058 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 13059
048addec 130602002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 13061
048addec
JD
13062 Support for the --color command-line argument and tty-color-mode
13063 frame parameter:
f1a85b89 13064
048addec
JD
13065 * term.c (tty_default_color_capabilities, tty_setup_colors)
13066 (set_tty_color_mode): New functions.
13067 (term_init): Call tty_default_color_capabilities.
13068 (Qtty_color_mode_alist): New variable.
13069 (syms_of_term): Intern and staticpro it.
f1a85b89 13070
048addec
JD
13071 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
13072 frames.
13073 (do_switch_frame): For termcap frames, switch the tty
13074 color mode as specified by the frame's parameters.
13075 (Qtty_color_mode): New variable.
13076 (syms_of_frame): Intern and staticpro it.
3a62677f 13077
048addec
JD
13078 * emacs.c (USAGE2): Add the --color option.
13079 (standard_args): Ditto.
72244db2 13080
048addec
JD
130812002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13082
13083 * xterm.h (struct x_output): New members want_fullscreen,
13084 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
13085 y_pixels_outer_diff.
13086 New enum for FULLSCREEN_* constants.
13087 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
13088 is NULL.
13089 (x_fullscreen_adjust): Add prototype.
3a62677f 13090
048addec
JD
13091 * emacs.c (USAGE2): Add the new full-screen arguments.
13092 (standard_args): Ditto.
3a62677f 13093
048addec
JD
13094 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13095 New variables.
13096 (syms_of_xfns): Intern and staticpro them.
13097 (x_frame_parms) <"fullscreen">: New parameter.
13098 (x_fullscreen_move, x_set_fullscreen): New functions.
13099 (x_set_frame_parameters): Support for Qfullscreen.
13100 (x_real_positions): More accurate computation of the frame position.
13101 (x_figure_window_size): Support full-screen frames.
13102 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 13103
048addec
JD
13104 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
13105 (XTread_socket) <Expose>: Call x_check_fullscreen.
13106 <ConfigureNotify>: Don't resize to fullscreen.
13107 Call x_check_fullscreen_move, and set the want_fullscreen member of
13108 output_data.x.
3a62677f 13109
048addec 131102002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 13111
048addec
JD
13112 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
13113 for mice with more than 3 buttons.
b8523839 13114
048addec
JD
13115 * w32term.c (parse_button): New parameter xbutton. Callers changed.
13116 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 13117
048addec
JD
13118 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
13119 (syms_of_w32fns): DEFVAR_BOOL it.
13120 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 13121
048addec 131222002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 13123
048addec 13124 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 13125
048addec 131262002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 13127
048addec 13128 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 13129
048addec 131302002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 13131
048addec
JD
13132 * .gdbinit (xbuffer): Remove address operator since data is now a
13133 pointer.
c93674bb 13134
048addec 131352002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 13136
048addec 13137 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 13138
048addec 13139 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 13140
048addec 131412002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 13142
048addec
JD
13143 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
13144 when checking for multiple frames.
91175673 13145
048addec 131462002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 13147
048addec
JD
13148 * window.c (delete_window): Rewrite the code for changing the
13149 selected window to handle the case where WINDOW is not a leaf.
91175673 13150
048addec 131512002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 13152
048addec
JD
13153 * process.c (send_process): Set src_multibyte to 1 after the call
13154 top setup_coding_system, not before the call.
e0fead5d 13155
048addec 131562002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 13157
048addec
JD
13158 * xmenu.c (set_frame_menubar, xmenu_show):
13159 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 13160
048addec
JD
13161 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
13162 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 13163
048addec 131642002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 13165
048addec 13166 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 13167
048addec 13168 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 13169
048addec 13170 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 13171
048addec 131722002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 13173
048addec
JD
13174 * insdel.c (make_gap_larger): Make sure buffer size does not
13175 overflow range of int.
62854fe2 13176
048addec 131772002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 13178
048addec
JD
13179 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13180 OVERLAPS_P.
656f46bb 13181
048addec 13182 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 13183
048addec
JD
13184 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
13185 to the left or to the right of the pointer, put it against
13186 the left screen edge.
13187 (x_frame_parms): Add missing braces around initializer.
036e218d 13188
048addec
JD
13189 * w32term.c (x_setup_relief_colors): Don't compute an image's
13190 background color if it doesn't have a Pixmap.
13191 (notice_overwritten_cursor): Don't depend on
13192 output_cursor and updated_area. Compare pixel coordinates with
13193 window's cursor pixel coordinates.
13194 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13195 Call notice_overwritten_cursor with new arg list.
13196 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13197 unconditionally.
13198 (x_draw_image_relief): Use predefined macro instead of
13199 constant when the value of `tool_bar_button_relief' is negative.
036e218d 13200
048addec 13201 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 13202
048addec 132032002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 13204
048addec 13205 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 13206
048addec 132072002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 13208
048addec
JD
13209 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
13210 (Fkey_binding): Try the `keymap' property map first.
13211 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
13212 minor mode bindings.
90647b07 13213
048addec 132142002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 13215
048addec 13216 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 13217
048addec 132182002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 13219
048addec
JD
13220 * keyboard.c (read_key_sequence): Handle the keymap property
13221 before minor mode maps.
9fbc32aa 13222
048addec
JD
13223 * editfns.c (Fformat): Update thissize from field_width
13224 based on the actual width, in the string case.
036e218d 13225
048addec 132262002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 13227
048addec
JD
13228 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
13229 when used as truth value to prevent gcc warnings.
9fbc32aa 13230
048addec
JD
13231 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
13232 * w32proc.c: Include <config.h>.
9fbc32aa 13233
048addec 132342002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 13235
048addec
JD
13236 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
13237 not EMACS_INT, to make them compatible with DEFVAR_INT.
13238 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 13239
048addec 132402002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13241
048addec
JD
13242 * print.c (print_object): Test print_escape_nonascii only for
13243 unibyte strings.
13244 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
13245 when outputting to a multibyte buffer.
9fbc32aa 13246
048addec 132472001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13248
048addec
JD
13249 * print.c (print_object): In multibyte string, use hex escapes.
13250 Use octal only for unibyte strings.
13251 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 13252
048addec
JD
13253 * lread.c (read_escape): New arg BYTEREP for reporting whether
13254 escape forces unibyte or multibyte.
13255 (read1): When reading a string, take note of that info.
0142178a 13256
048addec 132572001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 13258
048addec
JD
13259 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
13260 comparison to test lisp value returned by Fget.
d4824a5d 13261
048addec 132622001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 13263
048addec 13264 * lisp.h (max_specpdl_size): Add declaration.
b1356234 13265
048addec 13266 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 13267
048addec
JD
13268 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
13269 Handle modifier bits. Correct typo in error message.
99e380ee 13270
048addec 132712001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 13272
048addec
JD
13273 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
13274 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
13275 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13276 Update calls to Fdefine_abbrev.
13277 (write_abbrev): Update for changed data format.
13278 Don't list "system" abbrevs.
13279 (Fexpand_abbrev): Update use count with new data format.
13280 (describe_abbrev): Update for changed data format.
13281 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 13282
048addec 13283 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 13284
048addec 13285 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 13286
048addec
JD
13287 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
13288 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 13289
048addec
JD
13290 * keymap.c (Flookup_key): Error message if key has wrong data type.
13291 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
13292 (exclude_key): New variable.
59a86c99 13293
048addec 132942001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 13295
048addec
JD
13296 * xterm.c (x_setup_relief_colors): Don't compute an image's
13297 background color if it doesn't have a Pixmap.
eb77a5f4 13298
048addec
JD
13299 * xterm.c (notice_overwritten_cursor): Don't depend on
13300 output_cursor and updated_area. Compare pixel coordinates with
13301 window's cursor pixel coordinates.
13302 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13303 Call notice_overwritten_cursor with new arg list.
13304 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13305 unconditionally.
eb77a5f4 13306
048addec
JD
13307 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
13308 height of the cursor line to the amount to scroll.
eb77a5f4 13309
048addec 133102001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 13311
048addec
JD
13312 * intervals.c (set_point_both): The position after an invisible,
13313 intangible character is not an acceptable stopping point.
bb313871 13314
048addec 133152001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 13316
048addec
JD
13317 * window.c (enlarge_window): In new preserve_before code, convert
13318 CURBEG from lisp object to integer before doing arithmetic.
6052529b 13319
048addec 133202001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 13321
048addec 13322 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 13323
048addec 133242001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 13325
048addec
JD
13326 * keyboard.c (record_char): Ignore duplicate help-echo events only
13327 separated by mouse-movement. When tracking mouse, only record
13328 first and last mouse-movement event in same window.
13329 Don't record mouse-movement events in keyboard macros.
3ce081f5 13330
048addec 133312001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 13332
048addec
JD
13333 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
13334 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 13335
048addec
JD
13336 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
13337 instead of Fstring_as_unibyte.
9fabb2f5 13338
048addec 133392001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 13340
048addec 13341 The following changes remove mocklisp support:
9fabb2f5 13342
048addec 13343 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 13344
048addec
JD
13345 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
13346 `Qmocklisp' and `Qmocklisp_arguments'.
13347 Remove prototype of syms_of_mocklisp.
2fa0eedf 13348
048addec 13349 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 13350
048addec
JD
13351 * callint.c: Do not include mocklisp.h.
13352 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 13353
048addec
JD
13354 * eval.c: Remove variables `Qmocklisp_arguments',
13355 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
13356 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
13357 Do not test for mocklisp case.
13358 (Fwhile): Remove unused variable `tem'.
13359 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 13360
048addec 13361 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 13362
048addec 13363 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 13364
048addec 13365 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 13366
048addec 133672001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 13368
048addec
JD
13369 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
13370 to the left or to the right of the pointer, put it against
13371 the left screen edge.
6108b49c 13372
048addec 133732001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 13374
048addec
JD
13375 * Makefile.in (distclean): Remove .gdbinit if we are building
13376 outside the source tree.
5eea19a4 13377
048addec 133782001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 13379
048addec 13380 * w32.c (emacs_root_dir): New function.
5eea19a4 13381
048addec 13382 * msdos.c (emacs_root_dir): New function.
5eea19a4 13383
048addec
JD
13384 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
13385 of the current drive as the fallback for default_directory.
438e57dd 13386
048addec
JD
13387 * dired.c (file_name_completion): Run the elements of
13388 completion-ignored-extensions through ENCODE_FILE.
438e57dd 13389
048addec
JD
13390 * lisp.h (scmp): Remove prototype, since it's now a static
13391 function private to dired.c.
c88e5347 13392
048addec 133932001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 13394
048addec
JD
13395 * dired.c (scmp): Function moved from minibuf.c.
13396 Delete multibyte handling--used only on encoded strings.
59ce1461 13397
048addec 13398 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 13399
048addec 13400 * fns.c (merge): Add QUIT call.
59ce1461 13401
048addec 134022001-12-18 Dave Love <fx@gnu.org>
8727d588 13403
048addec
JD
13404 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13405 language/georgian.el.
8727d588 13406
048addec 134072001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13408
048addec
JD
13409 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13410 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13411
048addec 134122001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13413
048addec
JD
13414 * xdisp.c (window_box_height): Do not return negative values.
13415 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 13416
048addec 13417 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 13418
048addec 13419 * term.c (keys): Likewise.
deece6f5 13420
048addec 13421 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 13422
048addec 134232001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 13424
048addec
JD
13425 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
13426 patch (COMPOSING_P, not COMPOSING).
28ff4293 13427
048addec 134282001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 13429
048addec 13430 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 13431
048addec
JD
13432 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
13433 before calling decode_coding.
9b46de40 13434
048addec 13435 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 13436
048addec
JD
13437 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
13438 instead of only for COMPOSITION_DISABLED.
9b46de40 13439
048addec 134402001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 13441
048addec 13442 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 13443
048addec 13444 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13445
048addec
JD
13446 * buffer.h (struct buffer): New field `display_error_modiff'.
13447 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13448
048addec 13449 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13450
048addec
JD
13451 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13452 Call redisplay_window, but not if display_error_modiff field says no.
13453 (redisplay_window_error): New function.
13454 (displayed_buffer): New variable.
13455 (redisplay_internal, redisplay_windows): Call the new functions
13456 instead of redisplay_window directly.
2cd23960 13457
048addec 134582001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13459
048addec 13460 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13461
048addec 134622001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13463
048addec 13464 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13465 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13466 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13467
048addec 134682001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13469
048addec
JD
13470 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13471 parameter have a numeric value all the time.
f6fa0866 13472
048addec 13473 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13474
048addec 134752001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13476
048addec 13477 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13478
048addec
JD
13479 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13480 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13481
048addec 134822001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13483
048addec
JD
13484 * xdisp.c (move_it_vertically_backward): Change heuristic
13485 for the case that we didn't move far enough initially.
91c153e2 13486
048addec
JD
13487 * window.c (Frecenter): Simplify computation in the case of window
13488 system frames and ARG < 0; use window_box_height.
65b7d3e7 13489
048addec 134902001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13491
048addec
JD
13492 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13493 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13494
048addec 134952001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13496
048addec
JD
13497 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13498 arg is negative.
be676094 13499
048addec 135002001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13501
048addec
JD
13502 * m/hp800.h: Split the __hpux conditional into the parts
13503 that are right for GNU/Linux too and the parts that are not.
13504 Use the former if GNU_LINUX.
13505 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13506
048addec 13507 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13508
048addec 135092001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13510
048addec
JD
13511 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13512 `new style' [w/`doc:' keyword].
032a857d 13513
048addec 135142001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13515
048addec
JD
13516 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13517 before using.
b6270150 13518
048addec 135192001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13520
048addec
JD
13521 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13522 keyword].
98cbb9fa 13523
048addec 135242001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13525
048addec 13526 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13527
048addec 13528 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13529
048addec 135302001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13531
048addec
JD
13532 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13533 Add comment to explain where the struct came from.
13534 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13535 (add_menu_item): Process pop-up menus first to avoid memory leak.
13536 (add_menu_item, w32_menu_display_help): Use `help' field as
13537 Lisp_Object.
13538 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13539
048addec 135402001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13541
048addec 13542 * COPYING: Moved back.
fa336b91 13543
048addec
JD
13544 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13545 Add parentheses around && within ||.
077907d4 13546
048addec 13547 * indent.c (compute_motion): Likewise.
aa2af83a 13548
048addec 13549 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13550
048addec
JD
13551 * coding.c (setup_coding_system, shrink_encoding_region)
13552 (Fdecode_sjis_char): Likewise.
60a653f1 13553
048addec 135542001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13555
048addec
JD
13556 * xdisp.c (display_mode_element): Don't read past end of string if
13557 it ends with '%'.
60a653f1 13558
048addec
JD
13559 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13560 can hold.
60a653f1 13561
048addec
JD
13562 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13563 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13564 type changed to Lisp_Object.
13565 (syms_of_data): DEFVAR_LISP them.
60a653f1 13566
048addec 135672001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13568
048addec
JD
13569 * callproc.c (init_callproc): Set Vdata_directory based on the source
13570 location whenever Emacs was run uninstalled.
60a653f1 13571
048addec 135722001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13573
048addec
JD
13574 * config.in (HAVE_WORKING_VFORK): New #undefs.
13575 * process.c (create_process):
13576 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13577 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13578 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13579 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13580 * m/intel386.h (HAVE_VFORK): Likewise.
13581 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13582 * m/mips.h (HAVE_VFORK): Likewise.
13583 * s/freebsd.h (vfork): Remove #define.
13584 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13585 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13586
048addec 135872001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13588
048addec
JD
13589 * s/hpux10.h (random): Add undef.
13590 (HAVE_RANDOM): Define it just once.
60a653f1 13591
048addec 135922001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13593
048addec 13594 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13595
048addec 135962001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13597
048addec
JD
13598 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13599 scroll bars of the frame before deleting the frame itself. If the
13600 frame has a widget, delete the frame with XtDestroyWidget, and do
13601 not call XDestroyWindow before that.
60a653f1 13602
048addec 136032001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13604
048addec 13605 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13606
048addec 13607 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13608
048addec 136092001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13610
048addec
JD
13611 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13612 excessively large.
60a653f1 13613
048addec
JD
13614 * insdel.c (make_gap_larger): New function.
13615 (make_gap_smaller): New function.
13616 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13617 Call make_gap_smaller if arg is negative.
60a653f1 13618
048addec 136192001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13620
048addec
JD
13621 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13622 Pass a dummy argument when calling interrupt_signal.
13623 (parse_menu_item): Mark disabled items before checking for empty def.
13624 (read_char_minibuf_menu_prompt): Make safety more visible.
13625 (read_key_sequence): Add a `first_unbound' variable.
13626 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13627 unbound prefix as soon as we can detect it.
60a653f1 13628
048addec
JD
13629 * doc.c (Fsnarf_documentation): Add prototype.
13630 (get_doc_string): Handle negative arguments.
13631 (Fdocumentation): Use AREF and ASIZE.
13632 Move the calls to get_doc_string to a single place.
13633 Don't confuse an interactive-spec for a docstring reference.
13634 (Fdocumentation_property): Take advantage of the fact that
13635 get_doc_string now ignores the sign of the docstring position.
60a653f1 13636
048addec 13637 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 13638
048addec 136392001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13640
a64387ee 13641 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 13642
048addec 136432001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13644
048addec
JD
13645 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13646 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 13647
048addec 136482001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 13649
048addec
JD
13650 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13651 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 13652
048addec 13653 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 13654
048addec 136552001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13656
048addec 13657 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 13658
048addec 136592001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 13660
048addec 13661 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 13662
048addec 136632001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 13664
f63fd14e 13665 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 13666
048addec
JD
13667 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13668 [!WM_MOUSELEAVE]: Define.
60a653f1 13669
048addec
JD
13670 * w32menu.c (current_popup_menu, get_menu_item_info):
13671 (set_menu_item_info): New vars.
13672 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13673 (w32_menu_show): Set current_popup_menu.
13674 (add_menu_item): Allocate new strings for owner-drawn menu items
13675 and help strings.
13676 Use owner-draw for disabled menu items again.
13677 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13678 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 13679
048addec
JD
13680 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13681 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13682 <WM_EXITMENULOOP>: Free menu strings.
13683 <WM_MOUSELEAVE>: Stop tracking mouse.
13684 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 13685
048addec
JD
13686 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13687 and mouse face.
60a653f1 13688
048addec 136892001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 13690
048addec
JD
13691 The following changes add left-fringe and right-fringe
13692 frame parameters to adjust fringe widths, or remove one or
13693 both fringes.
60a653f1 13694
048addec
JD
13695 * frame.h (struct frame): Remove trunc_area_pixel_width and
13696 trunc_area_cols fields.
13697 (Qleft_fringe, Qright_fringe): Declare.
13698 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 13699
048addec
JD
13700 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13701 (syms_of_frame): Initialize them.
60a653f1 13702
048addec
JD
13703 * window.c (coordinates_in_window): Handle separate left and right
13704 fringe widths.
60a653f1 13705
048addec
JD
13706 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13707 and fringe_cols fields.
13708 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13709 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13710 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13711 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13712 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13713 (x_compute_fringe_widths): Add prototype.
60a653f1 13714
048addec
JD
13715 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13716 fill fringe evenly with small dashes.
f63fd14e 13717 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
13718 clip the new ZV bitmap to avoid jitter between rows.
13719 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13720 background. Don't draw fringe bitmaps if fringe width is zero.
13721 (x_compute_fringe_widths): New function.
13722 (x_new_font, x_set_window_size_1): Use it.
60a653f1 13723
048addec
JD
13724 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13725 (x_set_frame_parameters): Process `font' parameter before other
13726 parameters as fringe widths depend on it.
13727 (x_set_fringe_width): New function.
13728 (x_figure_window_size): Use x_compute_fringe_widths.
13729 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13730 parameters.
60a653f1 13731
048addec
JD
13732 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13733 (EmacsFrameSetCharSize): Ditto.
60a653f1 13734
048addec
JD
13735 * w32term.h: Merged changes from xterm.h.
13736 * w32term.c: Merged changes from xterm.c.
13737 * w32fns.c: Merged changes from xfns.c.
60a653f1 13738
048addec 137392001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13740
048addec 13741 * COPYING: Removed.
60a653f1 13742
048addec 137432001-11-29 Dave Love <fx@gnu.org>
60a653f1 13744
048addec
JD
13745 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13746 extra extra slot.
13747 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 13748
048addec 137492001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13750
048addec
JD
13751 * fileio.c (file-name-coding-system)
13752 (default-file-name-coding-system): Doc fix (links to referenced
13753 variables added).
60a653f1 13754
048addec 137552001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13756
048addec
JD
13757 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13758 Add dummy uses of gcproN variables.
60a653f1 13759
048addec
JD
13760 * category.c (describe_category, describe_category_1)
13761 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13762 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 13763
048addec 137642001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 13765
048addec 13766 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 13767
048addec
JD
13768 * Makefile.in (lispdir): New variable, referring to build dir.
13769 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 13770
048addec 137712001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 13772
048addec
JD
13773 * w32menu.c (w32_menu_display_help): Actually add the new argument
13774 OWNER.
60a653f1 13775
048addec 137762001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 13777
048addec
JD
13778 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13779 menu items. From David Ponce <dponce@wanadoo.fr>.
13780 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13781 conditionally.
f63fd14e 13782 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 13783 help event in the owner frame's keyboard buffer.
60a653f1 13784
048addec
JD
13785 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13786 (Fx_show_tip): Don't subtract last width from row width.
13787
13788 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13789 (w32_read_socket): Use EQ to compare frames.
60a653f1 13790
048addec 137912001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 13792
048addec
JD
13793 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13794 OVERLAPS_P.
60a653f1 13795
048addec 137962001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13797
048addec
JD
13798 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13799 `gcpro3' and `gcpro4'.
60a653f1 13800
048addec 13801 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 13802
048addec 138032001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13804
048addec 13805 * ccl.c: Use AREF and ASIZE.
60a653f1 13806
048addec 138072001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13808
048addec
JD
13809 * lisp.h (run_hook_list_with_args): Remove.
13810 (LIST_END_P): Fix call to wrong_type_argument.
13811 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 13812
048addec 138132001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13814
048addec
JD
13815 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
13816 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 13817
048addec
JD
13818 * eval.c: Use AREF and ASIZE.
13819 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 13820
048addec
JD
13821 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
13822 which match the end of the file-name.
13823 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
13824 is not a valid env var, but leave it as is instead.
60a653f1 13825
048addec
JD
13826 * keymap.c (access_keymap): Handle t bindings like nil bindings.
13827 Make nil bindings in char-tables transparent.
13828 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 13829
048addec 138302001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 13831
048addec
JD
13832 * textprop.c (set_text_properties_1): Allow START, END in either order.
13833 Do nothing if range is empty.
60a653f1 13834
048addec 13835 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 13836
048addec
JD
13837 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
13838 (clean): Not here.
60a653f1 13839
048addec 138402001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13841
048addec
JD
13842 * textprop.c (set_text_properties_1): Clearly mark that the
13843 interval should not be empty.
60a653f1 13844
048addec
JD
13845 * intervals.c (graft_intervals_into_buffer):
13846 Don't call set_text_properties_1 on an empty interval.
60a653f1 13847
048addec 138482001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 13849
048addec 13850 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 13851
048addec
JD
13852 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
13853 don't lose the data in it.
60a653f1 13854
048addec 138552001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 13856
048addec 13857 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 13858
c62aec78 13859 * buffer.c (Fkill_buffer): Likewise.
60a653f1 13860
c62aec78 13861 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 13862
048addec 138632001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13864
048addec 13865 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 13866
048addec 138672001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13868
048addec
JD
13869 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13870 Niemitalo <kon@iki.fi>.
60a653f1 13871
048addec 138722001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 13873
048addec 13874 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 13875
048addec
JD
13876 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13877 (Fx_show_tip): Block input during frame creation.
13878 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 13879
048addec 138802001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 13881
048addec
JD
13882 * lread.c (Fload): Detect recursive load error for more than 3
13883 nestings of the same file.
13884 (Vrecursive_load_depth_limit): Variable deleted.
13885 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 13886
048addec 138872001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 13888
048addec
JD
13889 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13890 mouse position if either left or top is not specified.
60a653f1 13891
048addec
JD
13892 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13893 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13894 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13895 (my_create_tip_window): Assign tip_window.
13896 (x_create_tip_frame): Use same defaults as X.
13897 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 13898 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 13899
048addec
JD
13900 * w32term.c (x_after_update_window_line): Doc fix.
13901 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13902 frames.
13903 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 13904
048addec
JD
13905 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13906 for all Windowed systems.
60a653f1 13907
048addec 139082001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13909
048addec
JD
13910 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13911 realized, use the initial screen colors to clear the screen.
60a653f1 13912
048addec 139132001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13914
048addec
JD
13915 * textprop.c (Fset_text_properties): Remove unused variables
13916 `unchanged', `prev_changed', `s' and `len'.
60a653f1 13917
048addec
JD
13918 * search.c (Freplace_match): Remove unused variable `inslen'.
13919
13920 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13921
139222001-11-22 Jason Rumney <jasonr@gnu.org>
13923
13924 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13925 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13926 (my_create_tip_window): New function.
13927 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13928 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13929
139302001-11-20 Jason Rumney <jasonr@gnu.org>
13931
13932 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13933 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13934
13935 * w32fns.c (Vw32_system_coding_system): Remove.
13936 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13937
139382001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13939
13940 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13941 after build_annotations.
13942
13943 * syntax.c (describe_syntax): Add dummy arg.
13944 (describe_syntax_1): Update call to describe_vector.
13945
13946 * category.c (describe_category): Add dummy arg.
13947 (describe_category_1): Update call to describe_vector.
13948
13949 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13950 (describe_command, describe_translation): Add dummy second param.
13951 (describe_map): Call elt_describer with two arguments.
13952 (describe_vector_princ): Add `fun' parameter.
13953 Call it instead of the hardcoded `princ'.
13954 (describe_vector): Add arg `args'.
13955 Pass it as a new second argument to elt_describer.
60a653f1 13956
048addec 13957 * keymap.h (describe_vector): Update prototype.
60a653f1 13958
048addec
JD
13959 * frame.c: Don't include keymap.h any more.
13960 (keys_of_frame): Remove.
60a653f1 13961
048addec 13962 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 13963
048addec 13964 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 13965
048addec 139662001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 13967
048addec
JD
13968 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13969 if defined, 0 otherwise.
13970 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13971 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 13972
048addec 139732001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 13974
048addec 13975 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 13976
048addec 139772001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 13978
048addec
JD
13979 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13980 (x_draw_bar_cursor): If the background color of the glyph under
13981 the cursor equals the frame's cursor color, use the glyph's
13982 foreground color for drawing the bar cursor.
13983 (x_after_update_window_line): Clear internal border in different
13984 circumstances.
13985 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13986 (w32_draw_relief_rect): Correct relief by 1 pixel.
13987 (x_set_glyph_string_background_width):
13988 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13989 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13990 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13991 if cursor_in_non_selected_windows is false.
13992 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13993 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13994 Notice if cursor gets overwritten.
13995 (notice_overwritten_cursor): Renamed from
13996 note_overwritten_text_cursor. Rewritten to take glyph widths
13997 into account, and to take X positions as parameters.
13998 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13999 around call to x_draw_glyphs.
14000 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14001 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14002 color to use for image glyph reliefs.
14003 (x_draw_image_relief): Accept zero tool_bar_button_relief.
14004 (glyph_rect): Remove unused variable `area'.
60a653f1 14005
048addec
JD
14006 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
14007 some items.
14008 (x_set_internal_border_width): Set frame garbaged when window
14009 doesn't exist yet.
14010 (Fx_create_frame): Accept zero tool_bar_button_relief.
14011 (x_clear_image_1, four_corners_best, image_background)
14012 (image_background_transparent): New functions.
14013 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14014 (gs_format): Add `:background' entry.
14015 (lookup_image): Set IMG's background color if specified.
14016 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14017 when appropriate.
14018 (x_clear_image_1): Reset `background_valid' and
14019 `background_transparent_valid' fields.
14020 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14021 calculating it here. Set IMG's background_transparent field.
14022 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14023 (enum png_keyword_index): Add PNG_BACKGROUND.
14024 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14025 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14026 (enum gif_keyword_index): Add GIF_BACKGROUND.
14027 (enum gs_keyword_index): Add GS_BACKGROUND.
14028 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14029 Pre-calculate image background color where necessary.
14030 (x_create_x_image_and_pixmap, xbm_load, gs_load):
14031 Use display info's n_cbits entry for screen depth.
14032 (Fx_show_tip): Remove unused variables `buffer', `top',
14033 `left', `max_width' and `max_height'.
60a653f1 14034
048addec 14035 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 14036
048addec 140372001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 14038
048addec 14039 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 14040
048addec 140412001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14042
048addec 14043 * frame.c (Fframe_live_p): Doc fix.
60a653f1 14044
048addec 140452001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 14046
048addec
JD
14047 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
14048 (message_dolog_marker3): New static variables hold three markers.
14049 (syms_of_xdisp): Initialize and staticpro them.
14050 (message_dolog): Use message_dolog_marker1..3 instead of
14051 allocating markers each time. Unchain them when done.
60a653f1 14052
048addec 140532001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14054
048addec 14055 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 14056
048addec 140572001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 14058
048addec 14059 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 14060
048addec 140612001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14062
048addec 14063 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 14064
048addec 140652001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 14066
048addec 14067 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 14068
048addec 140692001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 14070
048addec
JD
14071 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
14072 with invalid position.
60a653f1 14073
048addec 140742001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 14075
048addec 14076 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 14077
048addec
JD
14078 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
14079 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
14080 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 14081
048addec 14082 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 14083
048addec 140842001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14085
048addec
JD
14086 * fileio.c (build_annotations): Split off the tail.
14087 (build_annotations_2): New fun. Extracted from build_annotations.
14088 (Fwrite_region): Split the call to build_annotations into two
14089 calls to build_annotations and build_annotations_2.
077907d4 14090
048addec 140912001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 14092
048addec
JD
14093 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
14094 clear_waiting_for_input with argument.
1756e2fb 14095
048addec 14096 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 14097
048addec 14098 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 14099
048addec 14100 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 14101
048addec 14102 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 14103
048addec 141042001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 14105
048addec
JD
14106 * fileio.c (choose_write_coding_system): New fun, extracted
14107 from Fwrite_region.
14108 (Fwrite_region): Use it.
fa336b91 14109
048addec
JD
14110 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
14111 (funcall_lambda, run_hook_with_args): Make static and add prototype.
14112 (ml_apply, find_handler_clause): Add prototype.
fa336b91 14113
048addec 141142001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 14115
048addec 14116 * config.in: Add #undef HAVE_COFF_H.
fa336b91 14117
048addec
JD
14118 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
14119 Required for ISC 4.1.
fa336b91 14120
048addec 141212001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 14122
048addec
JD
14123 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
14124 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 14125
048addec 141262001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 14127
048addec
JD
14128 The following changes are made to clean up the various internal
14129 references to the fringes to actually use the term `fringe' for
14130 them. Previously, they were called `flags areas', `bitmap areas',
14131 `left/right side of windows', or implicitly as `flags' or
14132 `bitmaps':
fa336b91 14133
048addec 14134 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 14135 Comments fixed. Use renamed symbols.
06e8f738 14136
f63fd14e 14137 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 14138
048addec
JD
14139 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
14140 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
14141 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 14142
048addec 14143 * msdos.c: Comment fix.
9ce647f4 14144
048addec 14145 * w32fns.c: Use renamed symbols.
9b784ab8 14146
f63fd14e 14147 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
14148 (fringe_bitmap_type): Renamed from bitmap_type.
14149 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14150 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
14151 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 14152
f63fd14e 14153 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
14154 (fringes_extra): Renamed from flags_areas_extra.
14155 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14156 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14157 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14158 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14159 (FRAME_X_LEFT_FRINGE_WIDTH):
14160 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14161 (FRAME_X_RIGHT_FRINGE_WIDTH):
14162 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 14163
048addec 14164 * widget.c: Use renamed symbols.
9f7e52b4 14165
f63fd14e 14166 * window.c: Comment fixes. Use renamed symbols.
048addec 14167 (coordinates-in-window-p): Doc fix.
fa336b91 14168
f63fd14e 14169 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 14170
048addec 14171 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 14172
048addec 14173 * xfns.c: Use renamed symbols.
89512fcd 14174
f63fd14e 14175 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
14176 (fringe_bitmap_type): Renamed from bitmap_type.
14177 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14178 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
14179 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 14180
f63fd14e 14181 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
14182 (fringes_extra): Renamed from flags_areas_extra.
14183 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14184 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14185 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14186 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14187 (FRAME_X_LEFT_FRINGE_WIDTH):
14188 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14189 (FRAME_X_RIGHT_FRINGE_WIDTH):
14190 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
14191
141922001-11-15 Jason Rumney <jasonr@gnu.org>
14193
14194 * w32menu.c (add-menu-item): Make help_echo and radio buttons
14195 work for most menu items. From David Ponce
14196 <david.ponce@wanadoo.fr>.
14197
141982001-11-15 Gerd Moellmann <gerd@gnu.org>
14199
14200 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
14201 Some x_set_* function expect to be called even if old and new
14202 value are equal.
14203
14204 * xdisp.c (build_desired_tool_bar_string): Accept zero
14205 tool_bar_button_relief.
14206
14207 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
14208
14209 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
14210
14211 * xterm.c (x_draw_bar_cursor): If the background color of the
14212 glyph under the cursor equals the frame's cursor color, use
14213 the glyph's foreground color for drawing the bar cursor.
14214
14215 * dispnew.c (direct_output_forward_char): Fix character/byte
14216 position comparison.
7d18891d 14217
048addec 142182001-11-15 Miles Bader <miles@gnu.org>
d2936d21 14219
048addec
JD
14220 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
14221 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
14222 Update arguments to find_field.
14223 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
14224 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
14225 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
14226 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 14227
048addec 142282001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 14229
048addec 14230 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 14231
048addec
JD
14232 * dispextern.h (image_background, image_background_transparent):
14233 Conditionalize on HAVE_X_WINDOWS.
7d18891d 14234
048addec 142352001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 14236
048addec 14237 * print.c (Fprin1_to_string): Doc fix.
7d18891d 14238
048addec 14239 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 14240
048addec 14241 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 14242
048addec 14243 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 14244
048addec 14245 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 14246
048addec 14247 * eval.c (syms_of_eval): Doc fix.
7d18891d 14248
048addec 14249 * coding.c (syms_of_coding): Doc fix.
7d18891d 14250
048addec 14251 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 14252
048addec 14253 * dispnew.c (syms_of_display): Doc fix.
9474c847 14254
048addec 14255 * category.c (Fget_unused_category): Doc fix.
9474c847 14256
048addec 14257 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 14258
048addec 142592001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 14260
048addec 14261 * print.c (prin1, print): Doc fix.
e3059a5d 14262
048addec 142632001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 14264
048addec
JD
14265 * fontset.h: Remove declarations of variables
14266 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 14267
048addec
JD
14268 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
14269 `Vclip_large_size_font'.
eae936e2 14270
048addec 142712001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 14272
048addec 14273 * w32fns.c: Doc fix.
ddb67bdc 14274
048addec 142752001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 14276
048addec 14277 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 14278
048addec 14279 * fns.c: Doc fix.
6e1b91d7 14280
048addec 14281 * emacs.c: Doc fix.
1c1d3d69 14282
048addec 14283 * coding.c: Doc fix.
1c1d3d69 14284
048addec
JD
14285 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
14286 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
14287 `new style' [w/`doc:' keyword].
b6f4c7ba 14288
048addec 142892001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 14290
048addec
JD
14291 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
14292 LeaveNotify events. Only FocusIn and FocusOut do that now.
14293 (x_display_and_set_cursor): Do display hollow cursors in active
14294 minibuffer windows when they are not selected.
b6f4c7ba 14295
048addec 142962001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 14297
048addec 14298 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
14299 * w32term.c: Change doc-string comments to `new style'
14300 [w/`doc:' keyword]. Doc fixes.
a89f435d 14301
048addec
JD
14302 * w32fns.c: Don't define max.
14303 (Fx_open_connection): Only execute once.
a4cd0cd7 14304
048addec 143052001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 14306
048addec
JD
14307 * ccl.c: Change macros to use do-while block instead of if-else.
14308 Use braces to follow GNU Coding Standards.
eafb659a 14309
048addec 143102001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 14311
048addec 14312 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 14313
048addec 14314 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 14315
048addec
JD
14316 * insdel.c (replace_range): Use adjust_markers_for_replace
14317 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 14318
048addec 14319 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 14320
048addec
JD
14321 * textprop.c (set_text_properties_1): New subroutine
14322 broken out of set_text_properties.
14323 (set_text_properties): Use set_text_properties_1.
91823618 14324
048addec
JD
14325 * intervals.c (graft_intervals_into_buffer):
14326 Use set_text_properties_1 to clear out properties.
91823618 14327
048addec
JD
14328 * search.c (Freplace_match): Use replace_range to insert
14329 and delete. Don't request property inheritance from
14330 surrounding text.
86928dfb 14331
048addec 143322001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 14333
048addec 14334 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 14335 vertical fonts. Allow them if face name is explicitly specified.
048addec 14336 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 14337
048addec 143382001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 14339
048addec
JD
14340 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
14341 instead of malloc/free.
a78e0303 14342
048addec 143432001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 14344
048addec
JD
14345 * xfaces.c (merge_face_vectors): Use braces to follow GNU
14346 Coding Standards.
14347 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 14348
048addec 14349 * buffer.c (Fbury_buffer): Likewise.
0c99b139 14350
048addec 14351 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 14352
048addec
JD
14353 * coding.c (encode_coding): Use precomputed value of `src'.
14354 (encode_coding): Remove unused variable `src_end'.
14355 (code_convert_region): Remove unused variables `count'.
830ddd77 14356
048addec 143572001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 14358
048addec
JD
14359 * w32term.c (x_display_and_set_cursor): Do not move system caret
14360 if cursor_glyph is NULL.
55c6d645 14361
048addec 143622001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 14363
048addec 14364 * keymap.c (access_keymap): Fix compilation error.
5de38842 14365
048addec 143662001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 14367
048addec 14368 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 14369
048addec 143702001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 14371
048addec
JD
14372 * intervals.c (graft_intervals_into_buffer):
14373 Remove #ifdef'd-out code.
14374 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 14375
048addec
JD
14376 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
14377 code (eval-current-buffer).
14378 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 14379
048addec 143802001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 14381
048addec 14382 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 14383
048addec 143842001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 14385
048addec 14386 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 14387
048addec
JD
14388 * keyboard.c (make_lispy_event): Check integerness and fix
14389 Lisp_Object/int mixup.
17893c65 14390
048addec 143912001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 14392
048addec 14393 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 14394
048addec
JD
14395 * fontset.c (fontset_font_pattern): Remove unused variable
14396 `family_registry'.
d5360cc7 14397
048addec 14398 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 14399
048addec 144002001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 14401
048addec 14402 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 14403
048addec
JD
14404 * buffer.c (Fkill_buffer): Don't delete auto save file
14405 if buffer is modified.
d9d54213 14406
048addec 144072001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14408
048addec
JD
14409 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14410 CHECK_NUMBER_CDR.
b116830b 14411
048addec 144122001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14413
048addec 14414 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 14415
048addec 144162001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 14417
048addec 14418 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 14419
048addec 144202001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 14421
048addec 14422 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 14423
048addec 144242001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 14425
048addec
JD
14426 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
14427 the program image directly.
982f6c7e 14428
048addec 144292001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 14430
048addec 14431 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 14432
048addec 144332001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 14434
048addec
JD
14435 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
14436 and CHECK_BUFFER.
d31053f9 14437
048addec
JD
14438 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
14439 (record_char): Likewise.
d31053f9 14440
048addec
JD
14441 * keyboard.c (make_lispy_event): Don't insist a drag event must
14442 move to a different buffer position. Instead, check for moving at
14443 least double_click_fuzz.
982f6c7e 14444
048addec 14445 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14446
048addec 14447 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14448
048addec
JD
14449 * indent.c (current_column_1, Fmove_to_column): Separate the code
14450 for display-table glyphs from the code for buffer text, to fix
14451 bugs in the former.
830047fd 14452
048addec 144532001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14454
048addec
JD
14455 * buffer.c (Fbuffer_local_value): New function.
14456 (syms_of_buffer): Defsubr it.
2df5238c 14457
048addec
JD
14458 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14459 value of `cursor-in-non-selected-windows'.
4e397688 14460
048addec
JD
14461 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14462 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14463 (syms_of_xdisp): Initialize it.
48b0f3ae 14464
048addec 144652001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14466
048addec 14467 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14468
048addec
JD
14469 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14470 keyword].
3ecaf7e5 14471
048addec
JD
14472 * eval.c (top_level_value, top_level_set): Remove commented and
14473 #ifdef'd-out code.
14474 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14475
048addec 144762001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14477
048addec 14478 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14479
048addec 14480 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14481
048addec 14482 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14483
048addec 144842001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14485
048addec
JD
14486 * lisp.h (CHECK_STRING_CAR): New macro.
14487 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14488 treating XCAR and XCDR as lvalues.
14489 (openp): Use CHECK_STRING_CAR.
14490 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14491
048addec 144922001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14493
048addec
JD
14494 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14495 (SIGMASKTYPE): Define.
1b1acc13 14496
048addec 14497 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14498
048addec 144992001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14500
048addec
JD
14501 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14502 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14503 Fix typos in comments.
6cb16f95 14504
048addec
JD
14505 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14506 and #ifdef'd-out code.
14507 Fix and reindent comments.
6cb16f95 14508
048addec 14509 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14510
048addec
JD
14511 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14512 argument `i' in macros.
6cb16f95 14513
048addec
JD
14514 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14515 `i' in macros.
7e9d3c2f 14516
048addec
JD
14517 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14518 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14519 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14520 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14521 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14522 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14523 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14524 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14525 in macros.
7e9d3c2f 14526
048addec
JD
14527 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14528 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14529 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14530 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14531 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14532 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14533 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14534 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14535 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14536 (remove unused second argument).
7e9d3c2f 14537
048addec 145382001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14539
048addec
JD
14540 * syntax.c (describe_syntax): New wrapper.
14541 (Finternal_describe_syntax_value): Rename from describe_syntax.
14542 Don't insert space at front and \n at the end.
14543 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14544
048addec
JD
14545 * regex.c (re_wctype): Try to fix some warnings.
14546 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14547
048addec 145482001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14549
048addec 14550 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14551
048addec 145522001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14553
048addec 14554 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14555
048addec 14556 * data.c (Fsetq_default): Ditto.
c22e59e1 14557
048addec 14558 * callint.c (Finteractive): Ditto.
9271ed2c 14559
048addec 145602001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14561
048addec
JD
14562 * macros.c: Don't include keymap.h any more.
14563
145642001-11-01 Richard M. Stallman <rms@gnu.org>
14565
14566 * data.c (Fmake_local_variable): Doc fix.
14567
14568 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14569 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14570
048addec 14571 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14572 bindings along with or instead of the buffer local map.
14573 Make the overriding maps override what they should.
14574
f00691a3 145752001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14576
14577 * window.c (grow_mini_window): Fix typo in comment.
14578
27188d11
GM
145792001-11-01 Gerd Moellmann <gerd@gnu.org>
14580
7b49b9d2
GM
14581 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14582 (XTset_vertical_scroll_bar): Likewise.
14583
43f7c3ea
GM
14584 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14585 instead of IMAGE_BACKGROUND.
c22e59e1 14586
b350c2e5
GM
14587 * xfns.c (four_corners_best): Reindent.
14588
c22e59e1 14589 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14590 Handle :box so that it is possible to specify sexprs.
14591
bf00d461
EZ
145922001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14593
14594 * s/hpux11.h: New file.
14595
f00691a3 145962001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14597
2b209b97
PJ
14598 * emacs.c (USAGE1): Show command line option --no-window-system
14599 instead of --no-windows in usage.
14600 (standard_args): Rename --no-windows to --no-window-system.
14601 (bug_reporting_address): Follow Emacs coding conventions.
14602
9dbc9081
PJ
14603 * eval.c (Fcommandp): Doc fix.
14604 Change doc-string comments to `new style' [w/`doc:' keyword].
14605
4e10df59
PJ
14606 * frame.c (Fframe_live_p): Doc fix.
14607
14608 * buffer.c (selective-display-ellipses): Doc fix.
14609
dd387b25
GM
146102001-10-31 Gerd Moellmann <gerd@gnu.org>
14611
fe957e65
GM
14612 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14613
dd387b25
GM
14614 * xfaces.c (realize_x_face): If C is not a single-byte character,
14615 set the face's colors_copied_bitwise_p instead of the defaulted_p
14616 members which have a different meaning.
14617 (free_face_colors): Do nothing for a face whose colors have been
14618 copied bitwise.
14619
c22e59e1 14620 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14621
f00691a3 146222001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14623
687784e8
PJ
14624 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14625 [w/`doc:' keyword].
2e1280f8 14626
b9d9a9b9
GM
146272001-10-31 Gerd Moellmann <gerd@gnu.org>
14628
14629 * fns.c (require_unwind): Return Lisp_Object.
14630
f00691a3 146312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 14632
fa1361cb
PJ
14633 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14634 (last-input-char): Revert doc-string to be the same as the
14635 doc-string of `last-input-event'.
14636
6c465a15 14637 * xdisp.c: Fix typos in comments.
48400103 14638
eafa3196
GM
146392001-10-31 Gerd Moellmann <gerd@gnu.org>
14640
14641 * window.c (grow_mini_window): Handle case that the root
14642 window is already smaller than the nominal mininum height.
14643
747d3f2a
SM
146442001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14645
bf9bb76f
SM
14646 * emacs.c (main): Don't call keys_of_macros any more.
14647
14648 * lisp.h (keys_of_macros): Remove.
14649
14650 * macros.c (keys_of_macros): Remove.
14651
747d3f2a
SM
14652 * xfaces.c (Fface_attribute_relative_p): Declare args.
14653
5e905a57
JR
146542001-10-30 Jason Rumney <jasonr@gnu.org>
14655
14656 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14657 (enum_font_cb2): Ignore fonts with vertical orientation.
14658
3a426197
RS
146592001-10-30 Richard M. Stallman <rms@gnu.org>
14660
14661 * keyboard.c (Finput_pending_p): Doc fix.
14662
a742d646
GM
146632001-10-30 Gerd Moellmann <gerd@gnu.org>
14664
259cf6bc
GM
14665 * xterm.c (x_after_update_window_line): Don't run the code
14666 clearing in borders for rows whose visible height is 0.
14667
3f99f948
GM
14668 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14669 resized_p flag is set. If not set, use the much less flickering
14670 method previously used.
14671
14672 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14673
14674 * frame.h (struct frame) <resized_p>: New member.
14675
b4a3be43
GM
14676 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14677 as large as the number of bytes to convert.
747d3f2a 14678
a742d646
GM
14679 * lread.c (to_multibyte): New function.
14680 (read1): Use it.
14681
cacbb9e9
EZ
146822001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14683
14684 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14685
99cb6b2f
GM
146862001-10-30 Gerd Moellmann <gerd@gnu.org>
14687
327f42ee 14688 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
14689 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14690 if the row's fill_line_p is set and drawing the last glyph with
14691 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 14692
99cb6b2f
GM
14693 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14694
8e8223e2
SM
146952001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14696
14697 * xmenu.c: Include coding.h and charset.h.
14698 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14699 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14700 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14701 Explicitly set wv->help. Use `TRUE' rather than `True'.
14702 (menu_help_callback): Use empty_string.
14703
14704 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14705 (Fx_popup_dialog): Explicitly init f.
14706 (w32_menu_display_help): Use empty_string.
14707
4d083a8f
RS
147082001-10-29 Richard M. Stallman <rms@gnu.org>
14709
b2304472
RS
14710 * fns.c (Frequire): Detect recursive try to require the same
14711 feature 3 or more levels deep, and get error.
14712 (require_unwind): New subroutine.
14713 (require_nesting_list): New variable.
14714 (syms_of_fns): Init and staticpro it.
14715
4d083a8f
RS
14716 * print.c (print_object): Clarify indication of insertion type.
14717
2fe41216
EZ
147182001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14719
90480000
EZ
14720 * coding.c (syms_of_coding): Document that locale-coding-system is
14721 used for decoding input on X.
14722
2fe41216
EZ
14723 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14724
f00691a3 147252001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
14726
14727 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14728 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14729
60ebcfe8
GM
147302001-10-29 Gerd Moellmann <gerd@gnu.org>
14731
9a7bdceb
GM
14732 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14733 use NO_CURSOR if cursor_in_non_selected_windows is false.
14734
3f08fcd2
GM
14735 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14736 the slant attribute if FRAME is t.
14737
0ccfdad2
GM
14738 * xfns.c (x_set_internal_border_width): Set frame garbaged
14739 when X window doesn't exist yet.
14740
ef253080
GM
14741 * xterm.c (x_after_update_window_line): Clear internal border
14742 in different circumstances.
b116830b 14743
60ebcfe8
GM
14744 * xterm.c (XTread_socket) <KeyPress>: Don't use
14745 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14746 <handa@etl.go.jp>.
14747
73d25f9c
EZ
147482001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14749
14750 * m/ibms390.h: New file. From Adam Thornton
14751 <athornton@sinenomine.net>.
14752
cac1daf0
GM
147532001-10-28 Gerd Moellmann <gerd@gnu.org>
14754
053b3256 14755 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 14756
cac1daf0
GM
14757 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14758 a loop counter.
14759
f00691a3 147602001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 14761
f9711de4 14762 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 14763
4707d2d0
PJ
14764 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14765 keyword].
14766 Fix typos in comments.
b116830b 14767
d883731c
PJ
14768 * emacs.c (bug_reporting_address): New function.
14769 Use it when displaying usage message.
14770
04012254
PJ
14771 * minibuf.c (read_minibuf): Remove unused external declaration of
14772 variable `Qread_only'.
14773
13b1a09c
PJ
14774 * keymap.c (access_keymap): Remove unused variable `charset'.
14775
5bbf4378
MB
147762001-10-28 Miles Bader <miles@gnu.org>
14777
14778 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14779 Remove #ifdef'd-out code.
14780 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14781 (syms_of_xfaces): Initialize them.
14782
1ce1e4ee
JR
147832001-10-27 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14786 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14787 position using the system caret.
14788
14789 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14790 (w32_system_caret_height, w32_system_caret_x)
14791 (w32_system_caret_y): New variables for tracking system caret.
14792 (w32_initialize): Initialize them.
c2d53558 14793 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 14794
c2d53558
SM
14795 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14796 New messages types.
1ce1e4ee
JR
14797
14798 * w32term.c (note_mouse_highlight): Clear old help_echo.
14799
f00691a3 148002001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 14801
bb4600a4
PJ
14802 * xterm.c: Fix typo in a comment.
14803
7db35a48
PJ
14804 * emacs.c: Fix typos in comments.
14805 Remove unnecessary spaces.
14806 Change doc-string comments to `new style' [w/`doc:' keyword].
14807 (USAGE2): Fix typos in usage string.
14808
a7248e4f
PJ
14809 * xterm.c: Fix typo in a comment.
14810
4e30ce42
PJ
14811 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
14812 emacs.c.
14813
62725a92
GM
148142001-10-27 Gerd Moellmann <gerd@gnu.org>
14815
798dbe1f 14816 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 14817 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
14818 farther backward when target_y was not reached.
14819
62725a92
GM
14820 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
14821 Display errno only if non-zero.
14822 (sound_warning): New function.
14823 (vox_configure): Don't treat failing to set sample rate as error.
14824 (various places): Improve error messages.
14825
d4e34d24
EZ
148262001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
14827
944e6f60
EZ
14828 * fileio.c (Faccess_file): Run the argument filename through
14829 Fexpand_file_name, before using it.
14830
d4e34d24
EZ
14831 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
14832 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
14833
38d2af0c
GM
148342001-10-26 Gerd Moellmann <gerd@gnu.org>
14835
da80a8d5
GM
14836 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
14837
38d2af0c
GM
14838 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14839 Fix clearing in the case of scroll bars on the right.
c2d53558 14840
45de4a6f 148412001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
14842
14843 * w32gui.h (XImage): Add a dummy typedef.
14844
fbd5ceb2
GM
148452001-10-26 Gerd Moellmann <gerd@gnu.org>
14846
c2d53558 14847 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 14848
b23236fb
EZ
148492001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
14850
14851 * frame.c (Fframe_parameter): Fix last change.
14852
5d991fc4
EZ
14853 * fileio.c: Revert last change (which removed old commented-out
14854 version of expand-file-name). Add a comment that explains why
14855 this old version should not be removed.
14856
879eadc3
GM
148572001-10-25 Gerd Moellmann <gerd@gnu.org>
14858
75700ff2
GM
14859 * frame.c (Fframe_parameter): Fix a bug whereby some
14860 ``artificial'' frame parameters, like `minibuffer' were not
14861 obtained by calling Fframe_parameters.
14862
dfe92a6a
GM
14863 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14864 cursor differently.
14865
879eadc3
GM
14866 * xdisp.c (move_it_vertically_backward): Compute line height
14867 differently. Add heuristic to try to be more compatible to 20.x.
14868
e1010ebe
SM
148692001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14870
d73a471b
SM
14871 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14872
d6da5a06
GM
14873 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14874 boolean.
e1010ebe 14875
f66bd220
MB
148762001-10-25 Miles Bader <miles@gnu.org>
14877
14878 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14879 BG is a pointer to a structure, not a structure.
14880 (gif_format, png_format): Add missing commas.
14881
d436d538
RS
148822001-10-24 Richard M. Stallman <rms@gnu.org>
14883
14884 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 14885 (syms_of_xfaces): Defsubr it.
d436d538 14886
f00691a3 148872001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
14888
14889 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14890 variable `area'.
14891
f00691a3 148922001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 14893
c2d53558 14894 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 14895
e2a57b34
MB
148962001-10-25 Miles Bader <miles@gnu.org>
14897
14898 * dispextern.h (struct image): Add `background',
14899 `background_valid', and `background_transparent' fields.
14900 (image_background, image_background_transparent): New declarations.
14901 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14902 * xfns.c (image_background, image_background_transparent)
14903 (four_corners_best): New functions.
c2d53558 14904 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
14905 (gs_format): Add `:background' entry.
14906 (lookup_image): Set IMG's background color if specified.
14907 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14908 when appropriate.
14909 (x_clear_image_1): Reset `background_valid' and
14910 `background_transparent_valid' fields.
14911 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14912 calculating it here. Set IMG's background_transparent field.
14913 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14914 (enum png_keyword_index): Add PNG_BACKGROUND.
14915 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14916 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14917 (enum gif_keyword_index): Add GIF_BACKGROUND.
14918 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 14919 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
14920 Pre-calculate image background color where necessary.
14921 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14922 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14923 color to use for image glyph reliefs.
14924
b547b6e8
GM
149252001-10-24 Gerd Moellmann <gerd@gnu.org>
14926
d9e3b8c6
GM
14927 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14928 in full-width rows.
c2d53558 14929
b547b6e8
GM
14930 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14931 Fix clearing of area not covered by scroll bar.
14932
f00691a3 149332001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
14934
14935 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14936 and `real_start'.
c2d53558 14937 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
14938 (glyph_rect): Remove unused variable `area'.
14939
76cb5e06
GM
149402001-10-24 Gerd Moellmann <gerd@gnu.org>
14941
bdbdebff 14942 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
14943
14944 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14945 (row_containing_pos): Take additional argument DY.
14946 Treat rows ending in middle of char differently.
62e33982
GM
14947 (display_line): Handle tabs on window systems differently.
14948
14949 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14950 with additional argument.
14951
14952 * dispextern.h (row_containing_pos): Adjust prototype.
14953
76cb5e06
GM
14954 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14955 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14956 (try_window_id, try_window_reusing_current_matrix)
14957 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 14958 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 14959
f00691a3 149602001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 14961
c9e60620
PJ
14962 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14963 gnuemacs).
14964 (HAVE_BOXES): Fix typo in comment.
14965 (push_menu_pane): Fix typo in comment.
14966
3b552d56
PJ
14967 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14968 of `Qwhen'.
14969 (single_display_prop_string_p): Remove unused local declarations
14970 of `Qwhen' and `Qmargin'.
14971 (string_buffer_position): Remove unused variable `around'.
14972 (store_frame_title): Remove unused variable `width'.
14973
15c565ac
PJ
14974 * window.c: Don't define max.
14975 (coordinates_in_window): Remove unused variable `uy'.
14976
a8818eb9
PJ
14977 * widget.c: Don't define max.
14978
996fee11
PJ
14979 * process.c: Don't define max.
14980 (create_process): Remove unused variable `buffer'.
14981
496e1a5b
GM
149822001-10-23 Gerd Moellmann <gerd@gnu.org>
14983
c2d53558 14984 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 14985
5905ae8b
EZ
149862001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14987
14988 * xfaces.c (Finternal_set_lisp_face_attribute)
14989 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14990 frame is on a windowed display.
14991
24db49fb
GM
149922001-10-23 Gerd Moellmann <gerd@gnu.org>
14993
c2d53558
SM
14994 * dispnew.c (sync_window_with_frame_matrix_rows):
14995 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
14996 of marginal areas.
14997
c2d53558 14998 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 14999
f0487f05
EZ
150002001-10-23 Andreas Schwab <schwab@suse.de>
15001
15002 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
15003 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
15004
f0a48a01
GM
150052001-10-23 Gerd Moellmann <gerd@gnu.org>
15006
c2d53558 15007 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
15008 REAL_END. Notice if cursor gets overwritten.
15009 (notice_overwritten_cursor): Take X positions as parameters.
15010 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15011 around call to x_draw_glyphs.
15012
f00691a3 150132001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 15014
fc11dff0
PJ
15015 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
15016 instead of C) and usage.
a50a10a0 15017
fc11dff0
PJ
15018 * editfns.c (char-to-string): Fix argument names (use CHAR instead
15019 of C) and usage.
a50a10a0
PJ
15020
15021 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
15022 `left', `max_width' and `max_height'.
15023
8738febd
GM
150242001-10-23 Gerd Moellmann <gerd@gnu.org>
15025
15026 * xdisp.c (display_line): For a tab continued to the next line,
15027 set row's ends_in_middle_of_char_p.
15028
653c329b
GM
150292001-10-22 Gerd Moellmann <gerd@gnu.org>
15030
15031 * xdisp.c (display_line): Fix computation of continuation lines
15032 width for TABs.
15033
f00691a3 150342001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 15035
7ba51063
PJ
15036 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
15037 `Qlaplace'.
15038
f958c5ac
PJ
15039 * fileio.c: Remove unused code.
15040
eb360291
MB
150412001-10-22 Miles Bader <miles@gnu.org>
15042
15043 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
15044 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
15045 Remove `DOC_STRINGS_IN_COMMENTS' cases.
15046
98515cf0
JR
150472001-10-21 Jason Rumney <jasonr@gnu.org>
15048
15049 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
15050
93026d88
EZ
150512001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
15052
15053 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
15054 (Finsert_string): Avoid the multi-line string literals warning.
15055
c9a95b79
MB
150562001-10-22 Miles Bader <miles@gnu.org>
15057
15058 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
15059 (Fdocumentation): Don't use it.
15060 (syms_of_doc): Don't initialize it.
15061
15062 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
15063 * print.c (Fwith_output_to_temp_buffer): Likewise.
15064 * window.c (Fsave_window_excursion): Likewise.
c2d53558 15065 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 15066 (Fsave_restriction): Likewise.
c2d53558
SM
15067 * eval.c (Frun_hooks, Frun_hook_with_args)
15068 (Frun_hook_with_args_until_failure)
15069 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
15070 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
15071 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
15072 (Funwind_protect, Fcondition_case): Likewise.
15073 * coding.c (Ffind_operation_coding_system): Likewise.
15074 * keyboard.c (Ftrack_mouse): Likewise.
15075
a3b10252
MB
150762001-10-21 Miles Bader <miles@gnu.org>
15077
c2d53558 15078 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
15079 (Fmake_hash_table): Add usage: string to doc string.
15080 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 15081 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
15082 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
15083 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
15084 (Fml_prefix_argument_loop): Likewise.
15085
f00691a3 150862001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 15087
c2d53558 15088 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 15089
c6f73eec
PJ
15090 * sysdep.c (init_sys_modes): Change doc-string comments to `new
15091 style' [w/`doc:' keyword].
15092
15093 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
15094 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
15095 comments to `new style' [w/`doc:' keyword].
15096
3cf3436e
JR
150972001-10-21 Jason Rumney <jasonr@gnu.org>
15098
15099 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
15100
c169b8f1
JR
15101 * w32term.c (remember_mouse_glyph): New function.
15102 (w32_mouse_position): Use it.
15103 (note_mouse_movement): If the mouse moved off the glyph, remember
15104 its new position.
c2d53558 15105
4fdd691b
JR
15106 * w32term.h (struct w32_output): Correct spelling of x_compatible.
15107 (w32_display_info): Add mouse_face_overlay.
15108
c169b8f1
JR
15109 * w32term.c (notice_overwritten_cursor): Renamed from
15110 note_overwritten_text_cursor. Rewritten to take glyph widths into
15111 account.
15112 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
15113 (fast_find_string_pos): New function.
15114 (fast_find_position): Return the correct vpos. Add parameter
15115 STOP. In the final row, stop before glyphs having STOP as object.
15116 Don't consider glyphs that are not from a buffer.
15117 (fast_find_position) [0]: Add a presumably more correct version
15118 for after 21.1.
15119 (expose_window_tree, expose_frame): Don't compute intersections here.
15120 (expose_window): Do it here instead.
15121 (expose_window_tree, expose_window, expose_line): Return 1 when
15122 overwriting mouse-face.
15123 (expose_window): If W is the window currently being updated, mark
15124 the frame garbaged.
15125 (expose_frame): If mouse-face was overwritten, redo it.
15126 (x_use_underline_position_properties): New variable.
15127 (syms_of_xterm): DEFVAR_BOOL it.
15128 (x_draw_glyph_string): Add comment to use it in future.
15129 (x_draw_glyph_string): Restore clipping after drawing box.
15130 Fix a computation of the underline position.
15131 (w32_get_glyph_string_clip_rect): Minor cleanup.
15132 (x_fill_stretch_glyph_string): Remove an assertion.
15133 (x_produce_glyphs): Don't convert multibyte characters
15134 to unibyte characters in unibyte buffers.
15135 (cursor_in_mouse_face_p): New function.
15136 (x_draw_stretch_glyph_string): Use it to choose a different GC
15137 when drawing a cursor within highlighted text. Don't draw
15138 background again if it has already been drawn.
15139 (x_draw_glyph_string_box): Don't draw a full-width
15140 box just because the glyph row's full_width_p flag is set.
15141 (x_draw_glyphs): Fix computation of rightmost x for
15142 full-width rows.
15143 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
15144 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 15145 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
15146 (x_update_window_end): Handle overwritten mouse face
15147 also for tool bar windows.
15148 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
15149 DRAW is DRAW_IMAGE_RAISED.
15150 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
15151 actually redrawn. Make the function static.
15152 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
15153 optimize away highlighting if we pass over that same overlay again.
15154 (note_mouse_highlight): Call mouse_face_overlay_overlaps
15155 to detect a case where we have to highlight a different region
15156 despite not having left the currently highlighted region.
15157 Set mouse_face_overlay in the x_display_info. Avoid changing the
15158 mouse pointer shape when show_mouse_face has already done it, or
15159 there is no need. Handle mouse-face and help-echo in strings.
15160 (glyph_rect): New function.
15161 (w32_mouse_position): Use it to raise the threshold for mouse
15162 movement event generation.
15163 (w32_initialize_display_info): Initialize the x_display_info's
15164 mouse_face_overlay.
15165 (w32_set_vertical_scroll_bar): Don't clear a zero height
15166 or width area.
15167 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
15168 a widget to zero height.
15169
3cf3436e 15170 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 15171 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
15172 equivalents in menu_items.
15173 (w32_menu_show): Don't overwrite an item's name with its key
15174 description in case the description is a multibyte string.
15175 (single_submenu): Some cleanup.
15176
15177 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
15178 (postprocess_image): New function.
15179 (lookup_image): Call it for all image types except PostScript.
15180 (x_kill_gs_process): Call postprocess_image.
15181 (tiff_error_handler, tiff_warning_handler): New functions.
15182 (tiff_load): Install them as handlers.
15183 (x_kill_gs_process): Recognize if someone has cleared the image
15184 cache under us.
15185 (valid_image_p): Protect better against invalid image
15186 specifications. Previous code could signal an error.
15187 (Fx_hide_tip, Fshow_tip): Doc fix.
15188 (Fv_max_tooltip_size): New variable.
15189 (syns_of_xfns): DEFVAR_LISP it.
15190 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 15191 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
15192 window_width. Use a maximum tooltip size specified by
15193 Vx_max_tooltip_size, if that has valid contents.
15194 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
15195 Make sure the tooltip is completely visible.
15196 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
15197 (Fx_create_frame): Adjust the frame's height for presence
15198 of the tool bar before calling x_figure_window_size.
15199 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
15200 when the window gets smaller.
15201 (x_set_foreground_color): Set frame's cursor_pixel.
15202 (x_set_foreground_color, x_set_background_color): Cleaned up.
15203 (x_set_font): Handle case of x_new_fontset returning the same name
15204 as before, although there was a change in fontsets.
15205
386ca361
MB
152062001-10-21 Miles Bader <miles@gnu.org>
15207
c2d53558 15208 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
15209 (Flogxor): Add usage: string to doc string.
15210 * charset.c (Fstring): Likewise.
15211 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
15212 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
15213
f00691a3 152142001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 15215
03be2694
PJ
15216 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
15217
15218 * alloc.c: Reindent DEFUNs with doc: keywords.
15219
15220 * abbrev.c (Finsert_abbrev_table_description): Reindent.
15221
14ff1ee0
PJ
15222 * frame.c: Change doc-string comments to `new style' [w/`doc:'
15223 keyword].
15224
2f147815 15225See ChangeLog.9 for earlier changes.
6922b018
KH
15226
15227;; Local Variables:
49b3bd82 15228;; coding: iso-2022-7bit
6922b018 15229;; End:
2a34a036 15230
2f147815 15231 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
15232 Copying and distribution of this file, with or without modification,
15233 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
15234
15235;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4