*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ce50a847
SM
12004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * alloc.c (struct backtrace): Remove.
4 (Fgarbage_collect): Use the new mark_backtrace.
5
6 * eval.c (mark_backtrace): New function.
7
8 * minibuf.c (run_exit_minibuf_hook): New function.
9 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
10 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
11
1e8dae36
KS
122004-05-27 Kim F. Storm <storm@cua.dk>
13
14 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
15 over display properties, e.g. images, that replace buffer text.
16
846faa3b
KS
172004-05-25 Kim F. Storm <storm@cua.dk>
18
19 * alloc.c (marker_blocks_pending_free): New var.
20 (gc_sweep): Store free marker blocks on that list.
21 (Fgarbage_collect): Free them after undo-list cleanup.
22
23 * process.c (wait_reading_process_input): Check connect_wait_mask
24 before actually accepting connection in case it has already been
25 accepted due to recursion.
26
6239a668
KH
272004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
28
ce50a847
SM
29 * coding.c (Fset_safe_terminal_coding_system_internal):
30 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 31
71d5a208
RS
322004-05-22 Richard M. Stallman <rms@gnu.org>
33
34 * alloc.c (Fmake_string): Doc fix.
35
36 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
37 and the alist pairs too.
38
39 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
40
41 * emacs.c (main): Update copyright year.
42
43 * fileio.c (Fread_file_name): Expand DIR if not absolute.
44
45 * insdel.c (del_range_2, replace_range): Don't write an anchor
46 if the gap is empty.
47
48 * xdisp.c (try_scrolling): If scroll-up-aggressively or
49 scroll-down-aggressively is small but positive, put point
50 near the screen edge.
51
f63fd14e
JB
522004-05-22 Juanma Barranquero <lektu@terra.es>
53
54 * keymap.c (Fdefine_key): Doc fix.
55
4d12067c
KS
562004-05-22 Kim F. Storm <storm@cua.dk>
57
58 * alloc.c (struct backtrace): Add debug_on_exit member.
59 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
60 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
61 the removed cons cells.
62 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
63 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
64 any cons cells pointing to unallocated stings.
65 Do not lisp_free any marker blocks, as there may still be pointers
66 to them from buffer undo lists at this stage of GC.
67
68 * keyboard.c (struct backtrace): Add debug_on_exit member.
69 (Fcommand_execute): Clear it.
70
931285e2
LT
712004-05-20 Luc Teirlinck <teirllm@auburn.edu>
72
73 * intervals.c (lookup_char_property): Do not prematurely return nil.
74
669fa600
SM
752004-05-19 Jim Blandy <jimb@redhat.com>
76
77 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 78 beginning and end of symbols.
4d12067c 79
669fa600
SM
80 * regex.c (enum syntaxcode): Add Ssymbol.
81 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
82 (re_opcode_t): New opcodes `symbeg' and `symend'.
83 (print_partial_compiled_pattern): Print the new opcodes properly.
84 (regex_compile): Parse the new operators.
ce50a847 85 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
86 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
87 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
88 (re_match_2_internal): Match symbeg and symend.
89
90 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
91
0d8c2e5c
KS
922004-05-19 Kim F. Storm <storm@cua.dk>
93
94 * .gdbinit (xsymbol): Fix last change.
95
669fa600
SM
962004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
97
98 * .gdbinit (xprintstr): New fun.
99 (xstring, xprintsym): Use it.
100
101 * w32proc.c (create_child): Use INTMASK.
102
103 * alloc.c (Fgarbage_collect): Do all the marking before flushing
104 unmarked elements of the undo list.
105
9a6a4c40
DP
1062004-05-18 David Ponce <david@dponce.com>
107
108 * print.c (print): Reset print_depth before to call print_object.
109
f3c4ec74
JR
1102004-05-18 Jason Rumney <jasonr@gnu.org>
111
112 * w32console.c: Prefix RIF functions with w32con_ to avoid
113 namespace clash with functions in term.c and w32term.c.
114
115 * w32menu.c (add_menu_item, w32_menu_display_help)
116 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
117
0d8c2e5c 118 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 119
6be49c3a
EZ
1202004-05-18 Eli Zaretskii <eliz@gnu.org>
121
4d0b9a0a
EZ
122 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
123
6be49c3a
EZ
124 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
125 with make_number.
126 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
127 with XINT.
128
0bc90bba
KS
1292004-05-18 Kim F. Storm <storm@cua.dk>
130
89d19988
KS
131 * blockinput.h (INPUT_BLOCKED_P): New macros.
132
133 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
134 (Ftop_level): Unblock input if blocked.
135
0bc90bba
KS
136 * buffer.h (GET_OVERLAYS_AT): New macro.
137 * msdos.c (IT_note_mouse_highlight): Use it.
138 * textprop.c (get_char_property_and_overlay): Use it.
139 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
140 * xfaces.c (face_at_buffer_position): Use it.
141
142 * print.c (print_object): Increase buf size.
143
653bd0f6
JR
1442004-05-17 Jason Rumney <jasonr@gnu.org>
145
146 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
147 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
148 Lisp_Object using i member.
149 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
150 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
151 consistently.
152
153 * w32proc.c (create_child): Use make_number instead of masking pid.
154
155 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
156 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
157 Use EQ to compare Lisp_Objects.
158 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
159
160 * w32term.c (w32_num_mouse_buttons): Rename from
161 Vw32_num_mouse_buttons and make it an int.
162
163 * w32.c (init_environment): Use it.
164
165 * w32fns.c (w32_wnd_proc): Likewise.
166
167 * w32proc.c (w32_pipe_read_delay): Rename from
168 Vw32_pipe_read_delay and make it an int.
169
170 * w32.c (_sys_read_ahead): Use it.
171
172 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
173
174 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
175
176 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
177 (key_event): Don't mix Lisp_Object and int.
178
179 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
180
181 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
182 modifiers in language change event.
183
54b53ba7
KS
1842004-05-17 Kim F. Storm <storm@cua.dk>
185
186 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
187 Such objects may be freed markers which still exist on an undo list.
188
6e86a75d
JB
1892004-05-16 Juanma Barranquero <lektu@terra.es>
190
191 * data.c (Fset_default): Make argument names match their use in
192 docstring.
193
fc80da24
AS
1942004-05-15 Andreas Schwab <schwab@suse.de>
195
196 * emacs.c (gdb_array_mark_flag): Define.
197 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
198
c1380aa6
EZ
1992004-05-15 Eli Zaretskii <eliz@gnu.org>
200
201 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
202 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
203 defined for the MS-DOS build.
204
89458937
SM
2052004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
206
207 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
208
08020f9a
KH
2092004-05-14 Kenichi Handa <handa@m17n.org>
210
211 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
212
a433994a
ST
2132004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
214
215 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
216 section to frame.c section.
217 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 218 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 219
a433994a 220 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 221
a433994a 222 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 223
a433994a
ST
224 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
225 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
226 (XTread_socket): Fix int/Lisp_Object mixup.
227 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 228
a433994a
ST
229 * macterm.h (struct frame, struct face, struct image)
230 (display_x_get_resource, Fx_display_color_p)
89458937
SM
231 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
232 Add prototypes.
a433994a 233
b51a51b9
KS
2342004-05-14 Kim F. Storm <storm@cua.dk>
235
236 * process.c (wait_reading_process_input): Make reentrant.
237 Make Available and Connecting non-static. Save and restore value
238 of waiting_for_user_input_p.
239
2bde1dd8
KS
2402004-05-13 Kim F. Storm <storm@cua.dk>
241
242 * keyboard.c (mark_kboards): Don't mark x and y members
243 that are overloaded in selection request events.
244
a267ab4d
SM
2452004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
246
247 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
248
eb15ce9e
GM
2492004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
250
251 * window.c (Fdisplay_buffer, Fsplit_window)
252 (split-height-threshold): Doc fix.
253
7fc92635
JB
2542004-05-13 Juanma Barranquero <lektu@terra.es>
255
256 * xfaces.c (Ftty_supports_face_attributes_p)
257 (Finternal_copy_lisp_face): Fix typo in docstring.
258 (Finternal_get_lisp_face_attribute): Fix docstring.
259
1ec2a572
JD
2602004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
261
262 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
263
ae9292e0
ST
2642004-05-11 Steven Tamm <steventamm@mac.com>
265
266 * macfns.c (Fx_create_frame): Default to using tool-bar by
267 setting tool-bar-lines to 1 in default-frame-alist.
268
2692004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
270
271 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
272 (xpm_get_color_table_v, xpm_make_color_table_h)
273 (xpm_put_color_table_h, xpm_get_color_table_h)
274 (xpm_str_to_color_key, xpm_load_image, xpm_load)
275 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 276 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 277
fe97e8df
ST
2782004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
279
a267ab4d 280 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
281 instead of FRAME_X_P
282
b47e779e
KS
2832004-05-11 Kim F. Storm <storm@cua.dk>
284
285 * process.c (read_process_output): Grow decoding_buf when needed;
286 this could cause a crash in allocate_string and compact_small_strings.
287
cdc9b845
EZ
2882004-04-29 Jim Blandy <jimb@redhat.com>
289
290 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
291 against proper opcode.
292
aa7094ba
JB
2932004-05-10 Juanma Barranquero <lektu@terra.es>
294
295 * process.c (Fstart_process): Fix docstring.
296
297 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
298 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
299 (Fsplit_char, Fchar_charset): Make argument names match their use
300 in docstring.
301
e109331a
RS
3022004-05-10 Richard M. Stallman <rms@gnu.org>
303
304 * print.c (print_preprocess): Use being_printed, loop_count and
305 halftail to detect overdeep nesting and cyclic cdr chains.
306
9a28b921
AS
3072004-05-10 Andreas Schwab <schwab@suse.de>
308
309 * lisp.h: Declare Fmake_symbolic_link.
310
311 * fileio.c (Frename_file): Remove extra argument in call to
312 Fmake_symbolic_link.
313
e2c02c1a
KS
3142004-05-10 Kim F. Storm <storm@cua.dk>
315
316 * xdisp.c (calc_line_height_property): Use string position when
317 object is a string.
318
cfe9d13e
KH
3192004-05-10 Kenichi Handa <handa@m17n.org>
320
a57e8159
KH
321 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
322 inhibit-modification-hooks to t temporarily before calling
323 Ferase_buffer.
324
325 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
326 inhibit-modification-hooks to t temporarily before calling
327 Ferase_buffer.
328
329 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
330 inhibit-modification-hooks to t temporarily before calling
331 Ferase_buffer.
332
cfe9d13e
KH
333 * fns.c (count_combining): Delete it.
334 (concat): Don't check combining bytes.
335
ceb96489
JR
3362004-05-09 Jason Rumney <jasonr@gnu.org>
337
338 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
339 (globals_of_w32fns): Set it.
340
b1c661c7
JB
3412004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
342
343 * data.c (Fquo): Simplify.
344
28712a21
JB
3452004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
346
347 * data.c (Fquo): If any argument is float, do the computation in
348 floating point.
349
0f0af7a8
JB
3502004-05-08 Juanma Barranquero <lektu@terra.es>
351
88214ef6
JB
352 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
353 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
354 Fix spelling of Emacs on docstring.
355 (Fset_process_coding_system, Fprocess_coding_system)
356 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
357 Make argument names match their use in docstring.
358 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
359 Fix docstring.
360
0f0af7a8
JB
361 * editfns.c (Finsert_buffer_substring): Make argument names match their
362 use in docstring.
363
364 * syntax.c (Fmodify_syntax_entry): Fix docstring.
365
2a316a84
ST
3662004-05-07 Steven Tamm <steventamm@mac.com>
367
368 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
369 around call to ReceiveEvent to avoid certain crashes.
370
3712004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 372
2a316a84
ST
373 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
374 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
375 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
376 Save/restore the current graphics port and device handle when
377 drawing into an offscreen graphics world.
378
379 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
380 (gif_load): Likewise.
381
ab80314b
JB
3822004-05-07 Juanma Barranquero <lektu@terra.es>
383
384 * window.c (Fset_window_buffer): Fix docstring.
385
70646bb5
TTN
3862004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
387
388 * emacs.c (main) [VMS]: Fix var ref.
389
b03a4fdd
JB
3902004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
391
392 * data.c (Fsetq_default): Fix docstring.
393
279d3293
JR
3942004-05-06 Jason Rumney <jasonr@gnu.org>
395
396 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
397 to avoid name clash.
398
f72b5416
JD
3992004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
400
401 * fileio.c (barf_or_query_if_file_exists): Use lstat.
402 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 403 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 404
6ab66799
KS
4052004-05-04 Kim F. Storm <storm@cua.dk>
406
407 * xdisp.c (Qtotal): New var.
408 (syms_of_xdisp): Intern and staticpro it.
409 (calc_line_height_property): New arg total. Set it if
410 line-spacing property has format (total . VALUE).
411 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
412 Handle total line-spacing property.
413
ab2d724b
JD
4142004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
415
416 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
417 "under" scroll bar when size/position changes.
418
238add5e
JR
4192004-05-03 Jason Rumney <jasonr@gnu.org>
420
421 * makefile.nt: Remove.
422
1644f4e4
EZ
4232004-05-02 Eli Zaretskii <eliz@gnu.org>
424
a267ab4d
SM
425 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
426 Avoid compiler warnings.
05fdbeb8 427
1644f4e4
EZ
428 * Makefile.in (region-cache.o): Depend on config.h.
429
6cbc951e
SM
4302004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
431
432 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
433 with continuation lines, too.
434
2b98b088
TTN
4352004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
436
437 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
438
d9bf7950
SM
4392004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
440
441 * xdisp.c (calc_line_height_property): YAILOM (yet another
442 int/Lisp_Object mixup).
443
affa509c
EZ
4442004-05-01 Eli Zaretskii <eliz@gnu.org>
445
446 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
447 undo bad effect of pack(4) in some versions of system headers.
448
07c07cfe
JR
4492004-05-01 Jason Rumney <jasonr@gnu.org>
450
451 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
452
e71caa4e
KS
4532004-04-30 Kim F. Storm <storm@cua.dk>
454
455 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 456 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
457
458 * dispextern.h (struct it): Remove member use_default_face.
459 Add members override_ascent, override_descent, override_boff.
460
461 * xdisp.c (init_iterator): Handle line-spacing float value.
462 Initialize override_ascent member.
463 (append_space_for_newline): Reset override_ascent.
464 Remove use_default_face.
465 (calc_line_height_property): New function to calculate value of
466 line-height and line-spacing properties. Look at overlays, too.
467 Set override_ascent, override_descent, override_boff members when
468 using another face than the current face. Float values are now
469 relative to the frame default font, by default; accept a cons
470 of ratio and face name to specify value relative to a specific face.
471 (x_produce_glyphs): Use calc_line_height_property.
472 Use override_ascent etc. when set to handle different face heights.
473 A negative line-spacing property value is interpreted as a total
474 line height, rather than inter-line spacing.
475 (note_mouse_highlight): Allocate room for 40 overlays initially.
476
0fddae66
SM
4772004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
478
479 * data.c (Fsubr_name): New fun.
480 (syms_of_data): Defsubr it.
481
712d23dc
KS
4822004-04-29 Kim F. Storm <storm@cua.dk>
483
484 * xdisp.c (null_glyph_slice): New var.
485 (append_glyph, append_composite_glyph, append_stretch_glyph):
486 Use it to initialize glyph slice.
487
033ad8c6
SM
4882004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
489
490 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
491 (on_hot_spot_p): Make sure we always return a value.
492 (Flookup_image_map): Remove unused var ix and iy.
493 (note_mode_line_or_margin_highlight): Remove unused var `image'.
494
93397360
EZ
4952004-04-27 Eli Zaretskii <eliz@gnu.org>
496
497 * msdos.c (init_environment): If one of the TMP... environment
498 variables is set to a drive letter without a trailing slash,
499 append a slash.
500
0c54865e
EZ
5012004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
502
503 * editfns.c (lisp_time_argument): Provide externally.
504
505 * fileio.c (Fset_file_times): New function.
506 (syms_of_fileio): Intern and staticpro it.
507
d3b111bd
KS
5082004-04-27 Kim F. Storm <storm@cua.dk>
509
07dc1231
KS
510 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
511 header line strings.
512
360fe9d2
KS
513 * dispextern.h (struct it): New member use_default_face.
514
d3b111bd
KS
515 * xdisp.c (Qline_height): New variable.
516 (syms_of_xdisp): Intern and staticpro it.
517 (append_space_for_newline): Partially undo 2004-04-25 change;
518 add default_face_p arg, and restore callers.
519 Clear it->use_default_face after use.
520 (x_produce_glyphs): Set default font for ascii char if
521 it->use_default_font is set. Change line-spacing property to set
522 just extra line spacing. Handle new line-height property.
523
0448588b
AS
5242004-04-26 Andreas Schwab <schwab@suse.de>
525
526 * print.c (print_object): Print non-ascii characters in bool
527 vector representation as octal escapes.
528
529 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
530 * print.c (print_object): Use it instead of BITS_PER_CHAR for
531 bool vectors.
532 * lread.c (read1): Likewise.
533 * alloc.c (Fmake_bool_vector): Likewise.
534 * data.c (Faref, Faset): Likewise.
535 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
536 (mapcar1): Likewise.
d3b111bd 537
536d6baa
ST
5382004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
539
540 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
541
ae11577a
MB
5422004-04-26 Miles Bader <miles@gnu.org>
543
544 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
545
e198ba87
JB
5462004-04-26 Juanma Barranquero <lektu@terra.es>
547
548 * buffer.c (Fpop_to_buffer): Fix docstring.
549
f3d5f92d 5502004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 551
f3d5f92d
ST
552 * lread.c (init_lread): Don't display missing lisp directory
553 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 554 may be built without correct installation path.
f3d5f92d 555
03e35edc
KS
5562004-04-25 Kim F. Storm <storm@cua.dk>
557
9ff3aa31
KS
558 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
559
560 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
561
03e35edc
KS
562 * xdisp.c (append_space_for_newline): Rename from append_space.
563 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
564 (x_produce_glyphs): Handle line-spacing property on newline char.
565 If value is t, adjust ascent and descent to fit current row height.
566 If value is an integer or float, set extra_line_spacing to integer
567 value, or to float value x current line height.
568
f24814e0
KH
5692004-04-23 Kenichi Handa <handa@m17n.org>
570
571 * fontset.c (Finternal_char_font): If POSITION is nil, return
572 font for displaying CH with the default face.
573
d814862a
JB
5742004-04-23 Juanma Barranquero <lektu@terra.es>
575
576 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
577
063a45c5
SM
5782004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
579
580 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
581 Don't make assumptions about the relative place of i and val.
582 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
583
ae7ab2d3
KS
5842004-04-21 Kim F. Storm <storm@cua.dk>
585
586 * dispextern.h (struct glyph_slice): New struct.
587 (struct glyph): New member slice.
588 (GLYPH_SLICE_EQUAL_P): New macro.
589 (GLYPH_EQUAL_P): Use it.
590 (struct glyph_string): New member slice.
591 (struct it_slice): New struct.
592 (struct it): New member slice, add member to stack too.
593 New member constrain_row_ascent_descent_p.
594 (image_ascent): Add prototype.
595
596 * dispnew.c (buffer_posn_from_coords): Return full image width
597 and height even for image slices (posn is relative to full image).
598 (marginal_area_string): Adjust x0,y0 for image slice.
599
600 * image.c (image_ascent): Add slice arg; calculate ascent for
601 image slice (or full image).
602
603 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
604 (syms_of_keyboard): Defsubr them.
605
606 * lisp.h (pos_visible_p): Fix prototype.
607
c62aec78 608 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
609 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
610 (x_draw_image_foreground, x_draw_image_relief)
611 (x_draw_image_foreground_1, x_draw_image_glyph_string):
612 Draw sliced images.
613
614 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
615 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
616 (x_draw_image_foreground, x_draw_image_relief)
617 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
618 Draw sliced images.
619
620 * w32term.h (image_ascent): Remove prototype.
621
622 * window.c (Fpos_visible_in_window_p): Return pixel position if
623 PARTIALLY arg is non-nil. Simplify. Doc fix.
624 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
625 to return/set vscroll in pixels.
626
627 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
628
629 * xdisp.c (Qslice): New variable.
630 (syms_of_xdisp): Intern and staticpro it.
631 (pos_visible_p): Return pixel position in new x and y args.
632 (init_iterator): Reset it->slice info.
633 (handle_display_prop): Parse (slice ...) property.
634 (push_it, pop_it): Save/restore slice info.
635 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
636 force repositioning of tall row if window is vscrolled, as that
637 would reset vscroll.
638 (append_space): Set it->constrain_row_ascent_descent_p to avoid
639 increasing row height if row is non-empty.
640 (fill_image_glyph_string): Copy slice info.
641 (take_vertical_position_into_account): Simplify.
642 (produce_image_glyph): Handle iterator slice info, setup glyph
643 slice info. Do not force minimum line height.
644 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
645 do not increase height (ascent/descent) of non-empty row when
646 adding normal character glyph; instead reduce glyph ascent/descent
647 appropriately; if row is higher than current glyph, adjust glyph
648 descent/ascent to reposition glyph within the existing row.
649 Likewise, when char is newline, only set ascent/descent if row is
650 currently empty.
651 (note_mouse_highlight): Handle hotspots with sliced image.
652
653 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
654 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
655 (x_draw_image_foreground, x_draw_image_relief)
656 (x_draw_image_foreground_1, x_draw_image_glyph_string):
657 Draw sliced images.
658
659 * xterm.h (image_ascent): Remove prototype.
660
d58f8753
SM
6612004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
662
663 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
664
4ce2719d
JPW
6652004-04-20 John Paul Wallington <jpw@gnu.org>
666
667 * fns.c (Fassoc, Feql): Fix indentation.
668
d58f8753 669 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 670
95f8c3b9
JPW
6712004-04-19 John Paul Wallington <jpw@gnu.org>
672
673 * fns.c (Feql): New function.
d58f8753 674 (syms_of_fns): Defsubr it.
95f8c3b9 675
b7e85537
JR
6762004-04-18 Jason Rumney <jasonr@gnu.org>
677
678 * w32select.c (Fw32_set_clipboard_data): Get sequence number
679 after closing the clipboard.
680
5a72efd4
LT
6812004-04-16 Luc Teirlinck <teirllm@auburn.edu>
682
683 * buffer.c (Fbuffer_base_buffer): Doc fix.
684
20dc8583
KS
6852004-04-17 Kim F. Storm <storm@cua.dk>
686
60962ec4
KS
687 * keymap.c (Fkey_description): Add optional PREFIX arg.
688 Combine prefix with KEYS to make up the full key sequence to describe.
689 Correlate meta_prefix_char and following (simple) key to describe
690 as meta modifier. All callers changed.
691 (describe_map): Rename arg `keys' to `prefix'. Remove local
692 `elt_prefix' var. Use Fkey_description with prefix instead of
693 elt_prefix combined with Fsingle_key_description.
694 (describe_vector): Declare static. Replace arg `elt_prefix' with
695 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
696 if !KEYMAP_P. Use Fkey_description with prefix instead of
697 Fsingle_key_description.
698
699 * keymap.h (Fkey_description): Fix prototype.
700 (describe_vector): Remove prototype.
701
409368b9
KS
702 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
703
20dc8583
KS
704 * image.c (PNG_BG_COLOR_SHIFT): Remove.
705 (png_load): Fix calculation of transparent background color on X
706 and W32 platforms.
707
75c5501b
JB
7082004-04-16 Juanma Barranquero <lektu@terra.es>
709
710 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
711 not too large before computing how much to scroll.
712
da879ae8
SM
7132004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
714
715 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
716
d01ca4a8
LT
7172004-04-14 Luc Teirlinck <teirllm@auburn.edu>
718
719 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
720 Add hyperlink to Elisp manual to the docstring.
721
572943b3
SM
7222004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
723
724 * callint.c (fix_command): Use XDCR.
725
5e30a0fb
NR
7262004-04-14 Nick Roberts <nick@nick.uklinux.net>
727
728 * window.c (Fget_lru_window): Doc fix.
729
a27ddfaf
KS
7302004-04-14 Kim F. Storm <storm@cua.dk>
731
732 * editfns.c (Fformat): Fix allocation size of precision array.
733
734 * dispnew.c (update_window): Only set changed_p if
735 scrolling_window actually did scroll.
736 (scrolling_window): Only return 1 if we actually did scroll.
737
738 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
739 height to glyph height when cursor row is not fully visible.
740 (make_cursor_line_fully_visible): Add FORCE_P arg to return
741 failure in case row is higher than window. Callers changed.
742 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
743 Try to scroll partially visible, higher-than-window cursor row.
744 (redisplay_window): Always try to scroll partially visible,
745 higher-than-window cursor row - both initially and again with
746 centering_position = 0.
747 Clear desired matrix before retrying with centering_position = 0.
748
da879ae8
SM
7492004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
750
751 * syntax.c (scan_lists): Simplify backward string scan.
752 Fix off-by-one boundary check for string and comment fences.
753
5fc16e8e
SM
7542004-04-13 Joe Buehler <jbuehler@hekimian.com>
755
756 * sheap.c, unexcw.c: New files.
757
c9aac8e6
LT
7582004-04-12 Luc Teirlinck <teirllm@auburn.edu>
759
760 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
761 base buffer has been killed. Correct the error message if the
762 base buffer does not exist.
763
1e88a355
SM
7642004-04-12 Joe Buehler <jbuehler@hekimian.com>
765
766 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
767 Cygwin itself. Add support for Xaw3d scrollbars.
768
769 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
770
771 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
772
773 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
774 before Cygwin unexec.
775
776 * Makefile.in: Link changes for Cygwin unexec() support.
777
8dbff9a0
AS
7782004-04-12 Andreas Schwab <schwab@suse.de>
779
780 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
781
54dffe35
LT
7822004-04-11 Luc Teirlinck <teirllm@auburn.edu>
783
784 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
785 IGNORE argument equals NAME. Doc fix.
786
99a72bdf
MY
7872004-04-11 Masatake YAMATO <jet@gyve.org>
788
1e88a355 789 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
790 empty if they are backwards.
791
40899d7b
SM
7922004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
793
794 * xfaces.c (face_color_supported_p): Fix compilation without X11.
795
f8f853de
SM
7962004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
797
798 * doc.c (Fsnarf_documentation): Ignore new file name entries.
799
c953fe1b
KS
8002004-04-06 Kim F. Storm <storm@cua.dk>
801
661e85c1
KS
802 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
803 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
804
805 * w32term.c (w32_read_socket): Set mouse_face_hidden after
806 clearing highlight.
807
808 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
809
810 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
811 clearing highlight.
812
c953fe1b
KS
813 * indent.c (vmotion): Do not reserve one column for continuation
814 marks on window frames.
815
c1994268
EZ
8162004-04-04 Eli Zaretskii <eliz@gnu.org>
817
818 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
819 from GCC.
820
9f691b0d
SM
8212004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
822
823 * .gdbinit-union: Remove.
824
825 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
826 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
827 ($nonvalbits): Remove.
828 ($valmask): Set it by calling xreload to avoid redundancy.
829
830 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
831 (gdb_emacs_intbits): Remove.
832
7a8560d7
JD
8332004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
834
9f691b0d 835 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 836
3c8111fc
KH
8372004-03-30 Kenichi Handa <handa@m17n.org>
838
839 * editfns.c (Fformat): Fix initialization of the array info.
840
48a0bce4
KS
8412004-03-30 Kim F. Storm <storm@cua.dk>
842
843 * xterm.c (x_mouse_click_focus_ignore_position): New var.
844 (syms_of_xterm): DEFVAR_BOOL it.
845 (ignore_next_mouse_click_timeout): New var.
846 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
847 Use it to filter mouse clicks following focus event.
848
1cd0066c
KS
8492004-03-29 David Ponce <david@dponce.com>
850
851 * callint.c (Fcall_interactively): Fix last change.
852
adb3b353
SM
8532004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
854
855 * eval.c (Fcommandp): Simplify.
856
857 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
858 Extend to handle all kinds of functions.
859
860 * lisp.h (Finteractive_form): Declare.
861
862 * callint.c (Fcall_interactively): Use it.
863
6fc4c9c9
KS
8642004-03-26 Kim F. Storm <storm@cua.dk>
865
866 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
867 to catch errors in calc_pixel_width_or_height during redisplay.
868
abdb9b83
MY
8692004-03-26 Masatake YAMATO <jet@gyve.org>
870
b17856dd 871 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 872
b17856dd 873 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 874
b17856dd 875 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 876
b17856dd 877 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 878
e8a84b6c
JD
8792004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
880
b17856dd 881 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 882
36a3fd05
RS
8832004-03-19 Richard M. Stallman <rms@gnu.org>
884
885 * s/sol2-6.h: Delete previous change.
886
ab24c127
KS
8872004-03-19 Kim F. Storm <storm@cua.dk>
888
889 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
890 to_charpos corresponds to newline in right fringe. Use local
891 BUFFER_POS_REACHED_P macro.
892
992126de
JD
8932004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
894
895 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
896 to compile on non-window system.
897
45dbfc84
KS
8982004-03-19 Kim F. Storm <storm@cua.dk>
899
900 * dispextern.h (calc_pixel_width_or_height): Add prototype.
901
902 * image.c (Qcenter): Move to xdisp.c.
903
904 * xdisp.c (Qcenter): Declare here.
adb3b353 905 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
906 (handle_single_display_prop): Allow space display property on all
907 platforms.
908 (display_mode_line): Set mode_line_p before displaying line.
909 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
910 handling. Remove complex cases for fringes and scroll-bars.
911 Add left, right, and center alignment positions. Add text (area)
912 width/height. Return width or height for image specs.
913 (produce_stretch_glyph): Improve handling of :align-to. Is now
914 relative to left of text area by default, but other base offsets
915 can be specified -- also for text lines.
916
917 * term.c (produce_glyphs): Handle IT_STRETCH.
918 (produce_stretch_glyph): New function to handle space width and
919 align-to display properties on non-window systems.
920
37264101
SM
9212004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
922
923 * fileio.c (Fread_file_name): Set completion-ignore-case for
924 case-insensitive systems.
925
73bc43da
MY
9262004-03-14 Masatake YAMATO <jet@gyve.org>
927
928 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
929 when keymap and cursor are setup.
930
9062aa89
ST
9312004-03-14 Steven Tamm <steventamm@mac.com>
932
b17856dd 933 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 934
e4b1b5ab
KS
9352004-03-14 Kim F. Storm <storm@cua.dk>
936
937 * dispextern.h (x_find_image_file): Add prototype.
938
939 * image.c (x_find_image_file): Make extern.
940
941 * xfns.c (x_find_image_file): Remove prototype.
942
a6eeaa81 9432004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 944
37264101 945 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 946
37264101 947 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 948
e69cfac2
RS
9492004-03-12 Richard M. Stallman <rms@gnu.org>
950
951 * fns.c (internal_equal): New arg PROPS controls comparing
952 text properties. All callers changed.
953 (Fequal_including_properties): New function.
954 (syms_of_fns): defsubr it.
955
45034953
KS
9562004-03-12 Kim F. Storm <storm@cua.dk>
957
958 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 959
45034953
KS
960 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
961 (image_background, image_background_transparent): Fix prototypes.
962
37264101 963 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
964
965 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
966 (x_query_font, x_find_ccl_program, x_set_window_size)
967 (x_make_frame_visible, mac_initialize, XCreatePixmap)
968 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
969 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
970
971 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
972 (x_query_font, x_find_ccl_program, x_set_window_size)
973 (x_make_frame_visible, mac_initialize, XCreatePixmap)
974 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
975 (mac_draw_line_to_pixmap): Add prototypes.
976
9772004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
978
979 * macterm.c (XTread_socket): Fix mouse click on tool bar.
980
a12d3d87
KS
9812004-03-11 Kim F. Storm <storm@cua.dk>
982
d3ab1cf1
KS
983 * dispextern.h: Move image related prototypes from xfns.c section
984 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
985 HAVE_X_WINDOWS.
37264101 986
37de9f51 987 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 988 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
989 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
990 (GTK_OBJ) [USE_GTK]: New declaration.
991 (obj): Add $(GTK_OBJ) to list.
992
5243c06a 9932004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 994
5243c06a
ST
995 * image.c [MAC_OSX]: Include sys/stat.h
996
997 * macfns.c (syms_of_macfns): Remove definitions of things now
998 defined in image.c
999
c0f97789
KS
10002004-03-11 Kim F. Storm <storm@cua.dk>
1001
1002 The following changes consolidates the identical/similar image
1003 support code previously found in xfns.c, w32fns.c, and macfns.c
1004 into a new file image.c.
1005
1006 * makefile.w32-in (OBJ1): Add image.o.
1007 ($(BLD)/image.$(O)): Add dependencies.
1008
1009 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1010 (image.o): Add dependencies.
37264101 1011
c0f97789
KS
1012 * image.c: New file with consolidated image support code.
1013 (COLOR_TABLE_SUPPORT): New define to control whether
1014 color table support is available (X only).
1015 (Bitmap_Record): Common name for x_bitmap_record,
1016 w32_bitmap_record, and mac_bitmap_record.
1017 (XImagePtr): Common name for pointer to XImage or equivalent.
1018 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1019 to XImagePtr on X+MAC, and to HDC on W32.
1020 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1021 (NO_PIXMAP): Common name for "None" or equivalent.
1022 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1023 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1024 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
1025 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1026 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
1027 (XDrawLine): Define on MAC for code sharing.
1028 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1029 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1030 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1031 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1032 (x_reference_bitmap, x_create_bitmap_from_data)
1033 (x_create_bitmap_from_file, x_destroy_bitmap)
1034 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1035 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1036 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1037 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1038 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1039 (define_image_type, lookup_image_type, valid_image_p)
1040 (image_error, enum image_value_type, struct image_keyword)
1041 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1042 (make_image, free_image, prepare_image_for_display, image_ascent)
1043 (four_corners_best, image_background, image_background_transparent)
1044 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1045 (make_image_cache, free_image_cache, clear_image_cache)
1046 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1047 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1048 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1049 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1050 (init_image_func_pointer, image_load_quartz2d)
1051 (struct ct_color, init_color_table, free_color_table)
1052 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1053 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1054 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1055 (x_disable_image, x_build_heuristic_mask)
1056 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1057 (TIFF support, GIF support, Ghostscript support): Consolidate image
1058 code from xfns.c, w32fns.c, and macfns.c.
1059 (syms_of_image): Consolidate image related symbol setup here.
1060 (init_image): Consolidate image related initializations here.
37264101 1061
c0f97789
KS
1062 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1063 and init_image. Remove call to init_xfns.
1064
37264101
SM
1065 * macterm.h (struct mac_bitmap_record): Add file member.
1066 Not currently used, but simplifies code sharing.
c0f97789
KS
1067
1068 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1069 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1070 (x_reference_bitmap, x_create_bitmap_from_data)
1071 (x_create_bitmap_from_file, x_destroy_bitmap)
1072 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1073 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1074 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1075 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1076 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1077 (define_image_type, lookup_image_type, valid_image_p)
1078 (image_error, enum image_value_type, struct image_keyword)
1079 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1080 (make_image, free_image, prepare_image_for_display, image_ascent)
1081 (four_corners_best, image_background, image_background_transparent)
1082 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1083 (make_image_cache, free_image_cache, clear_image_cache)
1084 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1085 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1086 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1087 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1088 (init_image_func_pointer, image_load_quartz2d)
1089 (struct ct_color, init_color_table, free_color_table)
1090 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1091 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1092 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1093 (x_disable_image, x_build_heuristic_mask)
1094 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1095 (TIFF support, GIF support, Ghostscript support): Merge with image
1096 code from xfns.c and macfns.c into image.c.
1097 (syms_of_xfns): Move image related symbols to image.c.
1098 (init_external_image_libraries, init_xfns): Remove; initialization
1099 moved to init_image in image.c.
1100
1101 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1102 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1103 (x_reference_bitmap, x_create_bitmap_from_data)
1104 (x_create_bitmap_from_file, x_destroy_bitmap)
1105 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1106 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1107 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1108 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1109 (define_image_type, lookup_image_type, valid_image_p)
1110 (image_error, enum image_value_type, struct image_keyword)
1111 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1112 (make_image, free_image, prepare_image_for_display, image_ascent)
1113 (four_corners_best, image_background, image_background_transparent)
1114 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1115 (make_image_cache, free_image_cache, clear_image_cache)
1116 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1117 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1118 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1119 (struct ct_color, init_color_table, free_color_table)
1120 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1121 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1122 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1123 (x_disable_image, x_build_heuristic_mask)
1124 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1125 (TIFF support, GIF support, Ghostscript support): Merge with image
1126 code from xfns.c and macfns.c into image.c.
1127 (syms_of_xfns): Move image related symbols to image.c.
1128 (init_external_image_libraries, init_xfns): Remove; initialization
1129 moved to init_image in image.c.
1130
1131 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1132 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1133 (x_reference_bitmap, x_create_bitmap_from_data)
1134 (x_create_bitmap_from_file, x_destroy_bitmap)
1135 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1136 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1137 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1138 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1139 (define_image_type, lookup_image_type, valid_image_p)
1140 (image_error, enum image_value_type, struct image_keyword)
1141 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1142 (make_image, free_image, prepare_image_for_display, image_ascent)
1143 (four_corners_best, image_background, image_background_transparent)
1144 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1145 (make_image_cache, free_image_cache, clear_image_cache)
1146 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1147 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1148 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1149 (struct ct_color, init_color_table, free_color_table)
1150 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1151 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1152 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1153 (x_disable_image, x_build_heuristic_mask)
1154 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1155 (TIFF support, GIF support, Ghostscript support): Merge with
1156 w32fns.c and macfns.c image code into image.c.
1157 (syms_of_xfns): Move image related symbols to image.c.
1158 (init_xfns): Remove; initialization moved to init_image in image.c.
1159
1160 * lisp.h (syms_of_image, init_image): Add protoypes.
1161 (init_xfns): Remove prototype.
1162
1163 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1164 (x_reference_bitmap, x_create_bitmap_from_data)
1165 (x_create_bitmap_from_file, x_destroy_bitmap)
1166 (x_create_bitmap_mask): Move prototypes from dispextern.h.
1167 (gamma_correct) [MAC_OS]: Add prototype.
1168
1169 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1170 (x_reference_bitmap, x_create_bitmap_from_data)
1171 (x_create_bitmap_from_file, x_destroy_bitmap)
1172 (x_create_bitmap_mask): Move prototypes to dispextern.h.
1173
6eced09c
KH
11742004-03-09 Kenichi Handa <handa@etlken2>
1175
1176 * coding.c (decode_coding_emacs_mule): Handle insufficent source
1177 correctly.
1178
9a7e95f3
RS
11792004-03-04 Richard M. Stallman <rms@gnu.org>
1180
04a6e76b
RS
1181 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
1182
9a7e95f3
RS
1183 * window.c (Fdisplay_buffer): Doc fix.
1184
1185 * buffer.c (Fpop_to_buffer): Doc fix.
1186
6c2488df
KS
11872004-03-03 Kim F. Storm <storm@cua.dk>
1188
1189 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
1190
d8d95bc7
SM
11912004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
1192
1193 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
1194
357589bf
RS
11952004-03-02 Richard M. Stallman <rms@gnu.org>
1196
1197 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
1198
409949b5
KH
11992004-03-02 Kenichi Handa <handa@m17n.org>
1200
1201 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
1202
d24bc50f
KS
12032004-03-02 Kim F. Storm <storm@cua.dk>
1204
1205 * window.h (struct window): New member overlay_arrow_bitmap.
1206
1207 * window.c (make_window): Initialize overlay_arrow_bitmap.
1208
1209 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
1210 implement and integrate multiple overlay arrows with redisplay.
1211 (syms_of_xdisp): DEFVAR_LISP and initialize it.
1212 (last_arrow_position, last_arrow_string): Replace by properties.
1213 (Qlast_arrow_position, Qlast_arrow_string)
1214 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
1215 (syms_of_xdisp): Intern and staticpro them.
1216 (overlay_arrow_string_or_property, update_overlay_arrows)
1217 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
1218 (overlay_arrow_at_row): New functions for multiple overlay arrows.
1219 (redisplay_internal): Use them instead of directly accessing
1220 Voverlay_arrow_position etc. for multiple overlay arrows.
1221 (mark_window_display_accurate): Use update_overlay_arrows.
1222 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
1223 (try_window_id): Use overlay_arrows_changed_p.
1224 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
1225 (display_line): Use overlay_arrow_at_row to check multiple
1226 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 1227 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
1228 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
1229 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
1230
1231 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
1232 (update_window_fringes): Remove unused code.
1233
c1464661
JR
12342004-03-01 Jason Rumney <jasonr@gnu.org>
1235
1236 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
1237
a64387ee
JB
12382004-03-01 Juanma Barranquero <lektu@terra.es>
1239
1240 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
1241
1242 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
1243
334faa08
JD
12442004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1245
1246 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
1247 how many colors can be displayed.
1248
bb62616f
KH
12492004-03-01 Kenichi Handa <handa@m17n.org>
1250
1251 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
1252 correctly.
1253
0fd16104
KS
12542004-02-28 Kim F. Storm <storm@cua.dk>
1255
1256 * dispnew.c (update_window): Update header line also if there are
1257 no other changes in window (move code after set_cursor label).
1258
1259 * lisp.h (mark_window_display_accurate): Remove prototype.
1260
1261 * window.c (window_loop, Fforce_window_update): Force mode line
1262 updates by setting prevent_redisplay_optimizations_p and
1263 update_mode_lines.
1264
b59dd9c8
JD
12652004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1266
d8d95bc7 1267 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
1268
1269 * xterm.c (x_calc_absolute_position): Call x_real_positions
1270 to get WM window sizes and use those to calculate position.
d8d95bc7 1271 (x_set_offset): Remove code commented out.
b59dd9c8 1272
a874691c
MB
12732004-02-28 Miles Bader <miles@gnu.org>
1274
1275 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
1276
3e0c6482
KS
12772004-02-28 Kim F. Storm <storm@cua.dk>
1278
1279 * keyboard.c (kbd_buffer_store_event_hold): New function to store
1280 an event into kbd fifo, but with special handling of quit event;
1281 a quit event is saved for later, and further events are discarded
1282 until the saved quit event has been processed.
1283 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
1284 (gen_help_event): Store help event in kbd fifo.
1285 (NREAD_INPUT_EVENTS): Remove.
1286 (read_avail_input): Adapt to new read_socket_hook interface.
1287 Remove allocation and initialization of local input_event buffer,
1288 as read_socket_hook stores events directly in fifo. Allocate and
1289 initialize local hold_quit event to handle postponed quit event
1290 (and store it if set by kbd_buffer_store_event_hold).
1291
1292 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
1293 (gen_help_event): Fix prototype.
1294
a64387ee 1295 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 1296 numcharsp args. Add hold_quit arg.
f63fd14e 1297 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
1298 directly in fifo using kbd_buffer_store_event_hold.
1299
1300 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
1301 (read_input_waiting): Adapt to new read_socket_hook interface.
1302 Remove allocation and initialization of local input_event buffer,
1303 as read_socket_hook stores events directly in fifo. Allocate and
1304 initialize local hold_quit event to handle postponed quit event
1305 (and store it if set by kbd_buffer_store_event_hold).
1306
a64387ee 1307 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
1308
1309 * termhooks.h (read_socket_hook): Fix prototype.
1310
1311 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
1312 numcharsp args. Add hold_quit arg.
f63fd14e 1313 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
1314 directly in fifo using kbd_buffer_store_event_hold.
1315
1316 * w32inevt.h (w32_console_mouse_position): Fix prototype.
1317
1318 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
1319 Add hold_quit arg. Rework to use just one, local, inev
1320 input_event. Store inev directly in fifo using
3e0c6482
KS
1321 kbd_buffer_store_event_hold. Update count in one place.
1322 Postpone call to gen_help_event until inev is stored; use new
1323 local do_help for this.
1324 Remove local emacs_event in handing of ButtonPress event; just use
1325 inev instead (so no reason to copy it later).
1326
1327 * xsmfns.c (x_session_check_input): Remove numchars arg.
1328
d8d95bc7
SM
1329 * xterm.c (x_focus_changed, x_detect_focus_change):
1330 Remove numchars arg. Always store event into bufp arg.
1331 Return nothing. Callers changed accordingly.
3e0c6482
KS
1332 (glyph_rect): Simplify.
1333 (STORE_KEYSYM_FOR_DEBUG): New macro.
1334 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
1335 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
1336 (current_hold_quit) [USE_GTK]: Add.
1337 (event_handler_gdk): Adapt to new handle_one_xevent.
1338 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
1339 Add hold_quit arg. Rework to use just one, local, inev
1340 input_event. Store inev directly in fifo using
3e0c6482
KS
1341 kbd_buffer_store_event_hold. Update count in one place.
1342 Postpone call to gen_help_event until inev is stored; use new
1343 local do_help for this.
1344 Simplify handling of keysyms (consolidate common code). Fix bug
1345 where count was updated with nchars instead of nbytes.
1346 Remove local emacs_event in handing of ButtonPress event; just use
1347 inev instead (so no reason to copy it later).
1348 Remove `out' label. Rename label `ret' to `done'; add various
1349 `goto done' to clarify code flow in deeply nested blocks.
1350 (x_dispatch_event): Simplify as handle_one_xevent now calls
1351 kbd_buffer_store_event itself.
f63fd14e 1352 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
1353 arg. Call handle_one_xevent with new arglist. Store event from
1354 x_session_check_input in fifo.
1355 [USE_GTK]: Setup current_hold_quit.
1356 Decrement handling_signal before unblocking input.
1357 (x_initialize) [USE_GTK]: Initialize current_count.
1358
1359 * xterm.h (x_session_check_input): Fix prototype.
1360
e3564461 13612004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 1362
d8d95bc7 1363 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 1364
e3564461
ST
1365 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
1366 macgui.h).
a64387ee 1367
e3564461 1368 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 1369
e3564461
ST
1370 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
1371 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
1372 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
1373 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
1374 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
1375 (Bitmap): Remove typedef.
1376 (Pixmap): Change int to GWorldPtr.
1377
d8d95bc7 1378 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 1379
d8d95bc7
SM
1380 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1381 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
1382 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
1383 long representation.
1384 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
1385 colors used for masks.
1386 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 1387
e3564461
ST
1388 * macfns.c: Include sys/types.h and sys/stat.h.
1389 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
1390 Include QuickTime/QuickTime.h.
1391 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1392 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
1393 functions defined in macterm.c.
1394 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
1395 (ZPixmap): New #define for compatibility with xfns.c.
1396 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1397 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
1398 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
1399 New functions.
e3564461 1400 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
1401 (x_destroy_x_image, unwind_create_frame, x_disable_image)
1402 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
1403 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
1404 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
1405 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
1406 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
1407 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
1408 long mixup.
1409 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
1410 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
1411 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
1412 (x_set_cursor_type, Fxw_color_values, valid_image_p)
1413 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
1414 (x_alloc_image_color, clear_image_cache, lookup_image)
1415 (x_find_image_file, xbm_read_bitmap_file_data)
1416 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
1417 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
1418 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
1419 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
1420 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 1421 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
1422 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
1423 #if 0.
1424 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
1425 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
1426 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
1427 New functions (from xfns.c).
e3564461
ST
1428 (Fx_create_frame): Record unwind_create_frame.
1429 (Fxw_display_color_p): Use dpyinfo->color_p.
1430 (Fx_display_grayscale_p, Fx_display_planes): Don't use
1431 dpyinfo->n_cbits.
1432 (Fx_display_color_cells): Use dpyinfo->n_planes;
1433 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
1434 (Qheuristic, cross_disabled_images, emboss_matrix)
1435 (laplace_matrix): New variables (from xfns.c).
1436 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
1437 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
1438 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
1439 (image_background_transparent): New function (from xfns.c).
1440 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1441 (image_load_quicktime): Add declaration.
1442 [MAC_OSX] (image_load_quartz2d): Likewise.
1443 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
1444 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 1445 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
1446 (xbm_load_image_from_file, x_laplace_read_row)
1447 (x_laplace_write_row, pbm_read_file): Remove functions.
1448 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
1449 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
1450 (colors_in_color_table): Sync with xfns.c (although not used).
1451 (lookup_rgb_color): Don't lookup color table. Just do gamma
1452 correction.
1453 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
1454 (x_disable_image): New function (from xfns.c).
1455 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1456 (x_build_heuristic_mask): Sync with xfns.c.
1457 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1458 (HAVE_PBM): Remove #ifdef.
1459 (pbm_load): Sync with xfns.c. Set img->width and img->height
1460 before IMAGE_BACKGROUND.
d8d95bc7 1461 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
1462 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
1463 Don't enclose with #if HAVE_PNG.
1464 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
1465 symbol _CGImageCreateWithPNGDataProvider is defined.
1466 Otherwise use image_load_quicktime.
e3564461 1467 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
1468 [HAVE_PNG] (png_load): Sync with xfns.c.
1469 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1470 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
1471 HAVE_JPEG.
1472 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
1473 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
1474 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
1475 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
1476 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
1477 (tiff_image_p, tiff_load): Don't enclose declarations with #if
1478 HAVE_TIFF.
1479 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
1480 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
1481 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
1482 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
1483 New functions (from xfns.c).
e3564461 1484 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 1485 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
1486 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
1487 Don't enclose with #if HAVE_GIF.
1488 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
1489 animated gif. Otherwise use image_load_quicktime.
1490 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
1491 gif_DrawText to avoid conflict with QuickdrawText.h.
1492 [HAVE_GIF] (gif_load): Sync with xfns.c.
1493 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
1494 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
1495 Ghostscript is not supported yet).
1496 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
1497 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
1498 cross_disabled_images (from xfns.c). Remove #if 0 for supported
1499 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
1500 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
1501 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
1502 HAVE_PNG. Call EnterMovies to support animated gifs.
1503 Call init_image_func_pointer to bind a symbol
e3564461 1504 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 1505
d8d95bc7 1506 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
1507 (x_draw_bar_cursor): Sync declaration with xterm.c.
1508 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
1509 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
1510 graphics).
1511 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
1512 (mac_draw_line_to_pixmap, XCreatePixmap)
1513 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
1514 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
1515 New functions.
1516 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
1517 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
1518 Cast bits to char *.
e3564461
ST
1519 (reflect_byte): New function (from w32fns.c).
1520 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
1521 due to byte alignment.
d8d95bc7
SM
1522 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
1523 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
1524 (XSetForeground): Remove static (now used in macfns.c).
1525 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
1526 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
1527 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
1528 (x_draw_glyph_string_box, x_draw_image_foreground)
1529 (x_draw_image_foreground_1, x_draw_image_glyph_string)
1530 (x_draw_stretch_glyph_string, x_draw_glyph_string)
1531 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
1532 Sync with xterm.c.
1533 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
1534 than the xterm.c version when a strictly horizontal or vertical
1535 line is drawn.
1536 (XTset_terminal_window): Add static.
1537 (x_make_frame_visible): Add UNBLOCK_INPUT.
1538 (x_free_frame_resources): New funcion (from xterm.c).
1539 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
1540 occurs in tool bar area.
d8d95bc7
SM
1541 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
1542 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
1543 Initialize image cache.
1544 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
1545 Enclose unused functions with #if 0.
1546 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
1547 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 1548 from a mac font name to an XLFD font name according to its script code.
e3564461 1549 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 1550 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
1551 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
1552 whose name starts with `.'.
1553 (init_font_name_table): Use decode_mac_font_name. Add both
1554 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
1555 of a font is smJapanese.
1556 (mac_do_list_fonts): New function to list fonts that match a given
1557 pattern.
1558 (x_list_fonts, XLoadQueryFont): Use it.
1559 (XLoadQueryFont): Set rbearing field for each variable width
1560 character to avoid needless redraw.
1561 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
1562
446f5f3d
KS
15632004-02-26 Kim F. Storm <storm@cua.dk>
1564
af617d0f
KS
1565 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
1566 as read_socket_hook handler on X aborts if buffer is too small
1567 and W32 handler doesn't always check buffer limit.
1568
446f5f3d
KS
1569 * xdisp.c (handle_single_display_prop): Handle left-fringe and
1570 right-fringe similar to a display margin image. Specifically,
1571 the characters having the fringe prop are no longer shown, and
1572 we use IT_IMAGE/next_element_from_image with image_id = -1 to
1573 do this. Set fringe bitmap face_id in it->face_id.
1574 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
1575 still realize it->face (i.e. the fringe bitmap face).
1576
7d8a0b55
MB
15772004-02-25 Miles Bader <miles@gnu.org>
1578
1579 * xdisp.c (check_it): Check string/string_pos consistency.
1580 (init_iterator): Initialize string-related fields properly.
1581
15822004-02-11 Miles Bader <miles@gnu.org>
1583
1584 * xdisp.c (produce_image_glyph): Force negative descents to zero.
1585
15862004-02-10 Miles Bader <miles@gnu.org>
1587
1588 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
1589 BLOCK_INPUT can be nested, so it doesn't make much sense.
1590
a64387ee 15912004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
1592
1593 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
1594 (xbm_read_bitmap_data): Use unsigned char for image data.
1595
92f5fba2
LT
15962004-02-23 Luc Teirlinck <teirllm@auburn.edu>
1597
1598 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
1599
8565fb3d
JR
16002004-02-22 Jason Rumney <jasonr@gnu.org>
1601
1602 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
1603 correctly over other bitmaps.
1604
a6eeaa81 16052004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
1606
1607 * emacs.c (USAGE1): Split into two halves.
1608 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
1609 (USAGE3): Rename from USAGE2.
1610 (USAGE4): Rename from USAGE3.
f8125c39 1611
4effffca
EZ
16122004-02-21 Juri Linkov <juri@jurta.org>
1613
1614 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
1615 Fix --multibyte. Move --help, --version to USAGE2. Add alias
1616 --file. Fix -f, -l. Sort options. Untabify.
1617 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
1618
923c1e6f
LT
16192004-02-19 Luc Teirlinck <teirllm@auburn.edu>
1620
1621 * category.c (Fdefine_category, Fcategory_docstring)
1622 (Fget_unused_category, Fset_category_table)
1623 (Fcategory_set_mnemonics): Doc fixes.
1624
b0e225fd
KS
16252004-02-20 Kim F. Storm <storm@cua.dk>
1626
1627 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
1628 The following changes are relative to the 2004-01-21 revision.
1629 (NREAD_INPUT_EVENTS): Define as max number of input events to read
1630 in one call to read_socket_hook. Value is 8.
1631 (read_avail_input): Separate and rework handling of read_socket_hook
1632 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
1633 in read_socket_hook case, and repeat if full buffer is read.
1634 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
1635 In non-read_socket_hook case, just use a single input_event, and
1636 call kbd_buffer_store_event on the fly for each character.
1637
b15aa9f9
SM
16382004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
1639
1640 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
1641 Remove unused `gu' alternative.
1642
83c9aa95
AS
16432004-02-19 Andreas Schwab <schwab@suse.de>
1644
1645 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
1646 warning.
1647
cc808173
KS
16482004-02-18 Kim F. Storm <storm@cua.dk>
1649
1650 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
1651 Fix last change.
1652
ab90a54d
KS
16532004-02-17 Kim F. Storm <storm@cua.dk>
1654
b26f249f
KS
1655 * xdisp.c (fast_find_position): Fix return value of new version;
1656 it was inverted compared to the 21.1 version.
1657 (get_window_cursor_type): Don't look at glyph if NULL.
1658 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 1659
ab90a54d
KS
1660 * keyboard.c: Rework previous change; it didn't consider that the
1661 buf array was allocated on the stack.
1662 (prev_read): Remove variable.
1663 (read_avail_input_buf): New static event buffer array.
b9568dfc 1664 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 1665 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
1666 Use in_read_avail_input to handle re-entrance; when re-entered,
1667 fully initialize and use tmp_buf array instead of read_avail_input_buf.
1668 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
1669 is always cleared on entry. To ensure that, we clear (just) the
1670 entries that were used before we return.
1671 (init_keyboard): Initialize read_avail_input_buf here.
1672
4e039f3f
EZ
16732004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
1674
1675 * cmds.c (Fend_of_line): Doc fix.
1676
7b5368c1
EZ
16772004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
1678
1679 * keyboard.c (prev_read): New static variable.
1680 (read_avail_input): Use it to zero out only those slots in buf[]
1681 that were used last time we were called.
1682
a6eeaa81 16832004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
1684
1685 * Makefile.in (obj): Move fringe.o from here...
1686 (XOBJ, MAC_OBJ): ...to here.
1687
159c348e
SE
16882004-02-16 Stephen Eglen <stephen@gnu.org>
1689
1690 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
1691
d2f14999
SM
16922004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
1693
b15aa9f9
SM
1694 * data.c (Fbyteorder):
1695 * fringe.c (Fdefine_fringe_bitmap):
1696 * xdisp.c (handle_single_display_prop):
d2f14999
SM
1697 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
1698
8d50508a
JR
16992004-02-16 Jason Rumney <jasonr@gnu.org>
1700
1701 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
1702
dd4497dc
ST
17032004-02-15 Steven Tamm <steventamm@mac.com>
1704
1705 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
1706 controlling emulation of a three button mouse with option and
1707 command keys.
1708 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 1709 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 1710
c9159cb3
KS
17112004-02-15 Kim F. Storm <storm@cua.dk>
1712
2cc52658
KS
1713 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
1714
c9159cb3
KS
1715 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
1716 Perform byte-swapping.
1717
12fde2dc
KS
17182004-02-14 Kim F. Storm <storm@cua.dk>
1719
1720 * dispextern.h (struct draw_fringe_bitmap_params): Change member
1721 bits from char to short to facilitate wider bitmaps.
1722 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
1723 member.
1724
1725 * fringe.c (struct fringe_bitmap): Change member bits from char to
1726 short to facilitate 16 bits wide bitmaps. Modify all standard
1727 bitmaps accordingly.
1728 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
1729 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
1730 (draw_fringe_bitmap): Ditto.
1731 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
1732 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
1733 handle up to 16 bits wide bitmaps.
1734 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 1735 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
1736
1737 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
1738 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
1739 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
1740
1741 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
1742 so it is no longer necessary to expand them here.
1743
1744 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
1745
9d7271e8
KS
17462004-02-12 Kim F. Storm <storm@cua.dk>
1747
1748 * window.c (Fwindow_fringes): Doc fix.
1749
706c1e4f
JD
17502004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1751
1752 * xselect.c (x_get_foreign_selection): Add new optional parameter
1753 time_stamp.
1754 (Fx_get_selection_internal): Ditto, pass time_stamp to
1755 x_get_foreign_selection.
1756
1757 * data.c (Fbyteorder): New function.
1758
c2d12b5d
JD
17592004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1760
1761 * atimer.c: Move include stdio.h to same place as in other files.
1762
1763 * region-cache.c: Ditto.
1764
1765 * sysdep.c: Ditto.
1766
1767 * xfaces.c: Ditto.
1768
4c1947b9
SS
17692004-02-09 Sam Steingold <sds@gnu.org>
1770
89458937 1771 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 1772
82722af3
KS
17732004-02-09 Kim F. Storm <storm@cua.dk>
1774
1775 * fringe.c: New file. Move original fringe related declarations
1776 and code from dispextern.h and xdisp.c here.
1777 Rework code to support user defined fringe bitmaps, redefining
1778 standard bitmaps, ability to overlay user defined bitmap with
1779 overlay arrow bitmap, and add faces to bitmaps.
1780 (Voverflow_newline_into_fringe): Declare here.
1781 (enum fringe_bitmap_align): New enum.
1782 (..._bits): All bitmaps are now defined without bitswapping; that
1783 is now done in init_fringe_once (if necessary).
1784 (standard_bitmaps): New array with specifications for the
1785 standard fringe bitmaps.
1786 (fringe_faces): New array.
1787 (valid_fringe_bitmap_id_p): New function.
1788 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
1789 (draw_fringe_bitmap): New function which draws fringe bitmap,
1790 possibly overlaying bitmap with cursor in right fringe or the
1791 overlay arrow in the left fringe.
1792 (update_window_fringes): Do not handle overlay arrow here.
1793 Compare and copy fringe bitmap faces.
1794 (init_fringe_bitmap): New function.
1795 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
1796 define and destroy user defined fringe bitmaps.
1797 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
1798 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
1799 (syms_of_fringe): New function. Defsubr new DEFUNs.
1800 DEFVAR_LISP Voverflow_newline_into_fringe.
1801 (init_fringe_once, init_fringe): New functions.
1802 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 1803
82722af3
KS
1804 * Makefile.in (obj): Add fringe.o.
1805 (fringe.o): New dependencies.
1806
1807 * dispextern.h (FRINGE_ID_BITS): New definition for number of
1808 bits allocated to hold a fringe number. Increase number of bits
1809 from 4 to 8 to allow user defined fringe bitmaps.
1810 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
1811 left_user_fringe_face_id, right_user_fringe_bitmap,
1812 right_user_fringe_face_id.
1813 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
1814 Move to new file fringe.c.
1815 (MAX_FRINGE_BITMAPS): Define here.
1816 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
1817 and overlay_p. Change member which to int.
1818 (struct redisplay_interface): New members define_fringe_bitmap
1819 and destroy_fringe_bitmap.
1820 (valid_fringe_bitmap_id_p): Add prototype.
1821 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
1822
1823 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
1824 arrows.
1825 (update_frame): Do flush_display if force_flush_display_p to
1826 ensure display (specifically fringes) are updated in a timely
1827 manner when resizing the frame by dragging the mouse.
1828 (update_window_line): Update row if overlay arrow changed.
1829 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
1830 or overlay arrow changed.
1831
1832 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
1833 syms_of_fringe, and init_fringe.
1834
1835 * frame.h (struct frame): New member force_flush_display_p.
1836
1837 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
1838 Add prototypes.
1839
a3993cc8 1840 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 1841 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
1842 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
1843 Use cursor color for displaying cursor in fringe.
82722af3
KS
1844 (x_redisplay_interface): Add null handlers for
1845 define_fringe_bitmap and destroy_fringe_bitmap functions.
1846
1847 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
1848 xterm.c to handle overlayed fringe bitmaps and to use cursor color
1849 for displaying cursor in fringe.
1850 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
1851 specific functions to define and destroy fringe bitmaps in fringe_bmp.
1852 (w32_redisplay_interface): Add them to redisplay_interface.
1853 (w32_term_init): Call w32_init_fringe instead of explicitly
1854 defining fringe bitmaps in fringe_bmp array.
1855 (x_delete_display): Call w32_reset_fringes instead of explicitly
1856 destroying fringe bitmaps in fringe_bmp array.
1857
1858 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
1859 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
1860 (continued_bits, continuation_bits, ov_bits, first_line_bits)
1861 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
1862 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
1863 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
1864 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
1865 Move fringe handling vars and code to new file fringe.c.
1866 (handle_display_prop): Handle left-fringe and right-fringe
1867 display properties; store user fringe bitmaps in iterator.
1868 (move_it_in_display_line_to): Handle cursor in fringe at eob.
1869 (clear_garbaged_frames): Set force_flush_display_p if resized.
1870 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
1871 (display_line): Handle cursor in fringe at eob.
1872 (display_line): Set row user fringe bitmaps from iterator.
1873
1874 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
1875 Use cursor color for displaying cursor in fringe.
1876 (x_redisplay_interface): Add null handlers for
1877 define_fringe_bitmap and destroy_fringe_bitmap functions.
1878
030400eb
JD
18792004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1880
1881 * macfns.c (Fx_change_window_property): Make doc string and
1882 parameters same as for X version.
1883
1884 * w32fns.c (Fx_change_window_property): Ditto.
1885
3af55251
KS
18862004-02-07 Kim F. Storm <storm@cua.dk>
1887
ec110e9e
KS
1888 * xdisp.c (hscroll_window_tree): Position cursor near to right
1889 margin in hscrolled window when jumping to end of line (rather
1890 than centering cursor).
1891
3af55251
KS
1892 * process.c (wait_reading_process_input): Don't do adaptive read
1893 buffering if waiting for a specific process.
1894
b0c138ce
LT
18952004-02-05 Luc Teirlinck <teirllm@auburn.edu>
1896
1897 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
1898 (Fread_minibuffer, Feval_minibuffer)
1899 (Fread_string, Fread_no_blanks_input)
1900 (Fcompleting_read): Doc fixes.
1901 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
1902 completion-regexp-list. Define Qcase_fold_search and staticpro it.
1903 (read_minibuf): Fix initial comment.
1904 (Ftry_completion, Fall_completions, Ftest_completion): Bind
1905 case-fold-serach to the value of completion-ignore-case when
1906 checking completion-regexp-list.
1907 (Fdisplay_completion_list): Make it handle arguments that are
1908 symbols. Doc fix.
1909
9676f5ad 19102004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 1911
9676f5ad 1912 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 1913
9676f5ad
JD
1914 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
1915 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 1916 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 1917 format. Remove unused variable cons.
5b698285
JD
1918
1919 * xselect.c: Include stdio,h.
1920
fc1d15f6
KH
19212004-02-05 Kenichi Handa <handa@m17n.org>
1922
ebaff4af
KH
1923 * fns.c (Fset_char_table_range): Fix previous change.
1924
fc1d15f6
KH
1925 * buffer.c (Fset_buffer_multibyte): Fix docstring.
1926
9676f5ad
JD
19272004-02-04 Luc Teirlinck <teirllm@auburn.edu>
1928
1929 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
1930
da75761f
SM
19312004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
1932
1933 * keymap.c (Vmouse_events): Rename from Vmenu_events.
1934 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
1935
13c5d120
KH
19362004-02-04 Kenichi Handa <handa@m17n.org>
1937
1938 * fns.c (Fset_char_table_range): Handle charsets ascii,
1939 eight-bit-control, and eight-bit-graphic correctly.
1940
2883d842
JR
19412004-02-03 Jason Rumney <jasonr@gnu.org>
1942
1943 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
1944
1945 * w32fns.c (x_to_w32_font): Likewise.
1946
69eff41f
JD
19472004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1948
1949 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
1950 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
1951
1952 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
1953 ClientMessages.
1954
1955 * xselect.c: Include termhooks.h and X11/Xproto.h
1956 (x_check_property_data, x_fill_property_data)
1957 (x_property_data_to_lisp, mouse_position_for_drop)
1958 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 1959 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
1960 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
1961
da75761f 1962 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
1963 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
1964 OUTER_P.
1965 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
1966 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
1967 if vector_ret_p is true.
1968 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 1969
a6eeaa81 19702004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
1971
1972 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
1973 basename of FILE relative to it, not FILE itself.
1974
09721b31
KH
19752004-02-02 Kenichi Handa <handa@m17n.org>
1976
1977 * coding.c (coding_restore_composition): Check invalid
1978 composition data more rigidly.
1979
eb996101
LT
19802004-01-30 Luc Teirlinck <teirllm@auburn.edu>
1981
1982 * fileio.c (Fread_file_name_internal): Correctly handle the case
1983 where insert-default-directory is nil.
1984 (Fread_file_name): Always return an empty string if the user exits
1985 with an empty minibuffer. Adapt the docstring accordingly.
1986 (syms_of_fileio): Adapt the docstring of insert-default-directory
1987 to the change in Fread_file_name.
1988
a6eeaa81 19892004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
1990
1991 * alloca.c [!alloca]: Fix the prototype for xfree.
1992
13f52ed8
KH
19932004-01-29 Kenichi Handa <handa@m17n.org>
1994
1995 * fns.c (string_char_to_byte): Optimize for ASCII only string.
1996 (string_byte_to_char): Likewise.
1997
d57625a0
JR
19982004-01-28 Peter Runestig <peter@runestig.com>
1999
2000 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2001
a64387ee 20022004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
2003
2004 * unexmacosx.c (unexec_copy): Do not copy more than was
2005 requested to prevent overwriting during unexec.
2006
eb37b8fd
JD
20072004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2008
ce38070a
JD
2009 * process.c (sigchld_handler): Add comment about not calling malloc.
2010
eb37b8fd
JD
2011 * process.h: Add extern to synch_process_termsig.
2012
a64387ee 20132004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 2014
da75761f
SM
2015 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2016 Move setting of scroll bars from make_mac_frame to
2017 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 2018
d62a265d
RS
20192004-01-26 Richard M. Stallman <rms@gnu.org>
2020
2021 * search.c (Freplace_match): Handle nonexistent
2022 back-references properly.
2023
20242004-01-03 Richard M. Stallman <rms@gnu.org>
2025
2026 * window.c (decode_any_window): New function.
2027 (Fwindow_height, Fwindow_width, Fwindow_edges)
2028 (Fwindow_pixel_edges, Fwindow_inside_edges)
2029 (Fwindow_inside_pixel_edges): Use decode_any_window.
2030
ff236419
JD
20312004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2032
2033 * process.h: synch_process_termsig new variable.
2034
2035 * callproc.c: Define synch_process_termsig.
2036 (Fcall_process): Initiate synch_process_termsig to zero and
2037 check if non-zero and get signal name after subprocess has ended.
2038
2039 * process.c (sigchld_handler): Set synch_process_termsig
2040 if terminated by a signal. synch_process_death setting removed.
2041
2042 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2043
41b867ea
AS
20442004-01-26 Andreas Schwab <schwab@suse.de>
2045
2046 * print.c (print_preprocess): Declare size as EMACS_INT to not
2047 lose bits.
2048 (print_object): Likewise.
2049 * alloc.c (Fpurecopy): Likewise.
2050
a08084ff
LT
20512004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2052
2053 * window.c (Fwindow_minibuffer_p): Doc fix.
2054
b19ac475
JY
20552004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2056
2057 * editfns.c (Fformat): Make both passes accept the same set of flags.
2058
fe905025
KH
20592004-01-23 Kenichi Handa <handa@m17n.org>
2060
2061 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2062 one, set buffer to OBJECT temporarily.
2063
438fc6c0
SM
20642004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2065
455316e2
SM
2066 * keyboard.c (kbd_buffer_gcpro): Remove.
2067 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2068 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2069 Don't initialize and/or maintain the variable any more. It was made
2070 redundant by my commit of 2003-06-15.
2071
438fc6c0
SM
2072 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2073
5335a4ee
JD
20742004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2075
2076 * lisp.h: Add undef DECL_ALIGN.
2077
dcdaeebc
SM
20782004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2079
2080 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2081 Check interrupt_input_pending explicitly.
2082
2083 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2084
2085 * keyboard.c (handle_async_input): New fun,
2086 extracted from input_available_signal.
2087 (input_available_signal, reinvoke_input_signal): Use it.
2088
9076a823
SM
20892004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2090
d7107586
SM
2091 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2092
2093 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2094 manipulation macros for when tags are in the lower bits.
2095 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2096 (DECL_ALIGN): New macro.
2097 (DEFUN): Use it.
2098
2099 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2100
2101 * s/darwin.h (__attribute__): Remove outdated workaround.
2102
2103 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
2104
2105 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
2106 Don't check range of malloc address.
2107 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2108
9076a823
SM
2109 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
2110
2111 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
2112
ba029065
KH
21132004-01-19 Kenichi Handa <handa@m17n.org>
2114
2115 * fontset.c (fontset_font_pattern): Fix previous change.
2116
7af0e8d7
MB
21172004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
2118
2119 * xdisp.c (Voverflow_newline_into_fringe)
2120 (move_it_in_display_line_to, redisplay_internal)
2121 (update_window_fringes, redisplay_window, display_line, window):
2122 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
2123 that it compiles without a window-system.
2124 * dispnew.c (direct_output_for_insert, update_window): Likewise.
2125
77a9cf69
KS
21262004-01-16 Kim F. Storm <storm@cua.dk>
2127
2128 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
2129
a64387ee 2130 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
2131 buffer_local_flags for indicate_buffer_boundaries.
2132 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
2133 default- variable for it.
2134
2135 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
2136 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 2137 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
2138 overflowing newlines into right fringe.
2139 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
2140 and indicate_bottom_line_p for buffer boundaries and scrolling.
2141 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
2142 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
2143 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
2144 and HOLLOW_SQUARE_BITMAP.
2145 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
2146 Add prototypes.
2147
2148 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
2149 instead of related indicator fields.
2150 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
2151 (direct_output_for_insert): Handle exact width lines like
2152 contined lines. Call update_window_fringes.
2153 (update_window): Call update_window_fringes.
2154 (scrolling_window): Don't skip desired rows with changed bitmaps.
2155 Check if fringe bitmaps changes when assigning scrolled rows.
2156
2157 * xdisp.c (Voverflow_newline_into_fringe): New variable.
2158 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
2159 (move_it_in_display_line_to): Overflow newline into fringe for
2160 rows that are exactly as wide as the window.
2161 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
2162 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
2163 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
2164 (fringe_bitmaps): Add new bitmaps.
2165 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
2166 Select proper bitmap for cursor in fringe when appropriate.
2167 Handle alignment of bitmap to top or bottom of row.
2168 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
2169 done by update_window_fringes.
2170 (update_window_fringes, draw_window_fringes): New functions.
2171 (redisplay_internal): Call update_window_fringes in case only
2172 cursor row is updated.
2173 (redisplay_window): Call update_window_fringes.
2174 Explicitly call draw_window_fringes if redisplay was done using
2175 the current matrix or the overlay arrow is in the window.
2176 (try_window_reusing_current_matrix): Mark scrolled rows for
2177 fringe update (to update buffer-boundaries / scrolling icons).
2178 (find_last_unchanged_at_beg_row): Handle exact width lines line
2179 continued lines.
2180 (display_line): Overflow newline into fringe for rows that are
2181 exactly as wide as the window. Don't append space for newline
d7107586 2182 in this case.
77a9cf69
KS
2183 (notice_overwritten_cursor): Explicitly clear cursor bitmap
2184 in fringe as if it had been overwritten.
2185 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 2186 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
2187 void-text-area-pointer as user options.
2188 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 2189
77a9cf69
KS
2190 * xterm.c (x_update_window_end): Call draw_window_fringes.
2191 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2192 in row instead of actually drawing fringe bitmaps.
2193 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2194 (x_draw_window_cursor): Draw cursor in fringe.
2195
2196 * w32term.c (x_update_window_end): Call draw_window_fringes.
2197 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2198 in row instead of actually drawing fringe bitmaps.
2199 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2200 (w32_draw_window_cursor): Draw cursor in fringe.
2201
2202 * macterm.c (x_update_window_end): Call draw_window_fringes.
2203 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2204 in row instead of actually drawing fringe bitmaps.
2205 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2206 (mac_draw_window_cursor): Draw cursor in fringe.
2207
a633a954
JD
22082004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2209
2210 * xterm.c (handle_one_xevent): Don't handle characters that are part
2211 of an old style (XLookupString) compose sequence.
2212
80460525
KH
22132004-01-15 Kenichi Handa <handa@m17n.org>
2214
2215 * search.c (Freplace_match): Use make_multibyte_string or
2216 make_unibyte_string according to the buffer multibyteness.
2217
7fc34f85
SM
22182004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
2219
2220 * alloc.c (struct interval_block, struct string_block)
2221 (struct symbol_block, struct marker_block, live_string_p)
2222 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
2223 Better preserve alignment for objects in blocks.
2224 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
2225
2226 * lread.c (defvar_per_buffer): Remove dead declaration.
2227
2228 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
2229 space size.
2230
66070bd1
JD
22312004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2232
2233 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
2234 if a key press should pop down. Only pop down if a key is pressed
2235 outside the menu/dialog.
2236 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
2237 popup_get_selection.
2238 (create_and_show_dialog): Pass 1 for down_on_keypress to
2239 popup_get_selection.
2240
de7515d6
JD
22412004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2242
2243 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
2244 BLOCK/UNBLOCK_INPUT.
2245
160b1b50
JD
22462004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2247
2248 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
2249 specified.
2250
3a9f36e6
KH
22512004-01-08 Kenichi Handa <handa@m17n.org>
2252
2253 * editfns.c (Fformat): Fix '&' to '&&'.
2254
3803eb32
AS
22552004-01-08 Andreas Schwab <schwab@suse.de>
2256
2257 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
2258 size if PSEUDOVECTOR_FLAG is set.
2259
9da88f37
KH
22602004-01-07 Kenichi Handa <handa@m17n.org>
2261
74ac5074
KH
2262 * charset.c (Fdeclare_equiv_charset): Fix docstring.
2263
9da88f37
KH
2264 * fontset.c (fontset_ref_via_base): Fix previous change.
2265
05faee07
KS
22662004-01-07 Kim F. Storm <storm@cua.dk>
2267
2268 * process.c (read_process_output): Only activate adaptive
2269 buffering if we read less than 256 bytes at a time.
2270
634910c8
KS
22712004-01-06 Kim F. Storm <storm@cua.dk>
2272
2273 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
2274 object and image object. Return glyph width and height.
2275 (mode_line_string, marginal_area_string): Ditto.
2276
2277 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2278 (marginal_area_string): Fix prototypes.
2279
2280 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 2281 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
2282 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
2283
2284 * keyboard.c (make_lispy_position): Use modified mode_line_string,
2285 buffer_posn_from_coords, and marginal_area_string functions to
2286 include both string object and image object in the lispy position.
2287 Also add actual glyph width and height to position.
2288 (read_key_sequence): Use real buffer position from mouse
2289 event to find keymap property even when click is in marginal area.
2290
2291 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
2292 mode_line_string and marginal_area_string functions to handle
2293 both string object and image object properties.
d7107586 2294
57951c2e
AS
22952004-01-06 Andreas Schwab <schwab@suse.de>
2296
2297 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
2298 character.
2299
181e6a61
AS
23002004-01-02 Andreas Schwab <schwab@suse.de>
2301
d7107586
SM
2302 * macterm.c (emacs_options, x_initialized, same_x_server):
2303 Remove unused (and duplicated) definitions.
181e6a61 2304
31e0fbdd
KS
23052004-01-02 Kim F. Storm <storm@cua.dk>
2306
2307 * process.h (struct Lisp_Process): New members for adaptive read
2308 buffering: adaptive_read_buffering, read_output_delay, and
2309 read_output_skip.
2310
2311 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
2312 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
2313 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
2314 (process_output_delay_count, process_output_skip): New vars.
2315 (Vprocess_adaptive_read_buffering): New variable.
2316 (make_process): Initialize adaptive read buffering members.
2317 (Fstart_process): Set adaptive_read_buffering member.
2318 (deactivate_process): Cleanup adaptive read buffering.
2319 (wait_reading_process_input): Temporarily omit delayed
2320 subprocesses from the set of file descriptors to read from;
2321 adjust the select timeout if we skipped any subprocesses.
2322 (read_process_output): Increase adaptive read buffering delay if
2323 we read less than a full buffer; reduce delay when we read a
2324 full buffer.
2325 (send_process): Simplify using local Lisp_Process var.
2326 Reset adaptive read buffering delay after write.
2327 (init_process): Initialize process_output_delay_count and
2328 process_output_skip.
2329 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
2330
68c6a789
JR
23312004-01-01 Jason Rumney <jasonr@gnu.org>
2332
d7107586 2333 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 2334
3f70fe82
LT
23352003-12-30 Luc Teirlinck <teirllm@auburn.edu>
2336
2337 * print.c (Ferror_message_string): Add hyperlink in the docstring
2338 to the definition of `signal' in the Elisp manual.
2339 * eval.c (Fsignal): Ditto.
2340
a64387ee 23412003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
2342
2343 * fns.c (internal_equal): Return t for two NaN arguments.
2344
7abd90ea
RS
23452003-12-29 Richard M. Stallman <rms@gnu.org>
2346
2347 * data.c (store_symval_forwarding): Handle setting
2348 default-fill-column, etc., by changing the value in
2349 buffers that use the default.
2350
2351 * minibuf.c (Fset_minibuffer_window): Doc fix.
2352
2353 * fileio.c (choose_write_coding_system): Ignore auto_saving
2354 if using the visited file for auto saves.
2355 (Fwrite_region): Don't update SAVE_MODIFF
2356 if auto-saving in visited file.
2357
3e7cfcdc
KH
23582003-12-29 Kenichi Handa <handa@m17n.org>
2359
2360 * dispextern.h (face_font_available_p): Extern it.
2361
2362 * fontset.c (Voverriding_fontspec_alist): New variable.
2363 (lookup_overriding_fontspec): New function.
d7107586 2364 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
2365 (fontset_font_pattern): Likewise.
2366 (regulalize_fontname): New function.
2367 (Fset_fontset_font): Call regulalize_fontname.
2368 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
2369 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
2370 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
2371
2372 * xfaces.c (face_font_available_p): New function.
2373
7abd90ea
RS
23742003-12-28 Richard M. Stallman <rms@gnu.org>
2375
2376 * buffer.c (Fother_buffer): Don't crash if BUF is nil
2377 or if its name is nil.
2378
2379 * buffer.c (Fkill_buffer): Don't delete auto-save file
2380 if it's the same as the visited file.
2381
de1d1a40
LT
23822003-12-28 Luc Teirlinck <teirllm@auburn.edu>
2383
2384 * coding.c (Fcheck_coding_system): Doc fix.
2385
204fb75e
KS
23862003-12-28 Kim F. Storm <storm@cua.dk>
2387
2388 * Makefile.in (eval.o): Depend on dispextern.h.
2389
2390 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
2391 image glyph using image's ascent.
2392 (mode_line_string): Return image glyph as object clicked on.
2393 Adjust y0 for image glyph using image's ascent.
2394
2395 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
2396 (struct glyph): New members, ascent and descent. Used to save
2397 this glyph's ascent and descent, instead of having.
2398 (struct glyph): Declare member face_id using FACE_ID_BITS.
2399 (find_hot_spot): Add prototype.
2400
2401 * keyboard.c (Qimage): Remove extern (now in lisp.h).
2402 (QCmap): Declare extern.
2403 (make_lispy_position): When position is inside image hot-spot,
2404 use hot-spot element's id as posn element.
2405
2406 * lisp.h (IMAGEP): New macro to test for image object type.
2407 (Qimage): Declare extern.
2408
2409 * macfns.c (Qimage): Remove extern (now in lisp.h).
2410 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2411
2412 * macterm.c (Qface, Qmouse_face): Remove unused externs.
2413
2414 * w32fns.c (Qimage): Remove extern (now in lisp.h).
2415 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2416
2417 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
2418
2419 * w32term.c (Qface, Qmouse_face): Remove unused externs.
2420
2421 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
2422 pointer types.
2423 (Qrelative_width, Qalign_to): Remove unused variables.
2424 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
2425 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
2426 image maps.
d7107586 2427 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
2428 new dx and dy args.
2429 Remove buffer_only_p arg (always 0). Simplify code accordingly.
2430 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
2431 than row's ascent and height, to get sensible height on tall rows.
2432 (build_desired_tool_bar_string): Remove Qimage extern.
2433 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
2434 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
2435 image glyph is alone on the last line.
2436 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 2437 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 2438 (on_hot_spot_p): New function to check if position is inside an
d7107586 2439 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
2440 (find_hot_spot): New function to search for image hot-spot.
2441 (Flookup_image_map): New defun to search for image hot-spot.
2442 (define_frame_cursor1): New aux function to determine frame pointer.
2443 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2444 Handle `pointer' text property and :pointer image property to
2445 control frame pointer shape. Detect image hot-spots for pointer
2446 and help_echo properties. Use define_frame_cursor1.
2447 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 2448 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
2449 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
2450
2451 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
2452
2453 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
2454 (Qimage): Remove extern (now in lisp.h).
2455 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2456
2457 * xmenu.c (show_help_event): Remove unused code.
2458
2459 * xterm.c (Qface, Qmouse_face): Remove unused externs.
2460 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
2461 row's ascent and descent, to get a sensible height on tall rows.
2462
fc052137
LT
24632003-12-25 Luc Teirlinck <teirllm@auburn.edu>
2464
2465 * minibuf.c (Fcompleting_read): Undo previous change.
2466
a64387ee 24672003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
2468
2469 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
2470 Arguments GCPRO'ed in call to file name handler.
2471
56ffd194
TTN
24722003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
2473
2474 * termcap.c (tgetst1): Scan for "%pN"; if all
2475 N are continuous in [1,9], remove all "%pN".
2476
5202d23d
JD
24772003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2478
f26fab36
JD
2479 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
2480
5202d23d
JD
2481 * xfaces.c (lface_fully_specified_p): Take into account that
2482 MAC OS always have unspecified stipple.
2483
8babaa59
TTN
24842003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2485
2486 * tparam.c (tparam1): Add handling for `%pN', which
2487 means use param N for the next substitution.
2488
2d176448
TTN
24892003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2490
2491 * xfaces.c (Fcolor_gray_p): Fix omission bug:
2492 In case `frame' is nil, consult the selected frame.
2493 (Fcolor_supported_p): Likewise.
2494
adb0708c
LT
24952003-12-23 Luc Teirlinck <teirllm@auburn.edu>
2496
000eeb15
LT
2497 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
2498 Doc fixes.
0dc72b11
LT
2499
2500 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
2501 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
2502 (Fread_from_minibuffer): Delete code moved into read_minibuf.
2503 Doc fix.
2504 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
2505 read_minibuf.
2506 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 2507 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 2508
2e4d132b
KH
25092003-12-03 Kenichi Handa <handa@m17n.org>
2510
2511 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
2512 encoding sequence.
2513
3999c705
KH
25142003-12-01 Kenichi Handa <handa@m17n.org>
2515
2516 * composite.c (syms_of_composite): Don't make the compostion hash
2517 table week.
2518
d344ecbb
LT
25192003-11-30 Luc Teirlinck <teirllm@auburn.edu>
2520
2521 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
2522 * textprop.c (Fget_char_property_and_overlay): New function.
2523 (syms_of_textprop): Defsubr it.
2524
03d6484e
JD
25252003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2526
019b1f0e
JD
2527 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
2528 to compile on terminal configuration.
2529
03d6484e
JD
2530 * fileio.c (Fread_file_name): Check use_file_dialog also before
2531 calling Fx_file_dialog.
2532
2533 * fns.c: use_file_dialog: New variable.
2534 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
2535
442d3fd0
KS
25362003-11-29 Kim F. Storm <storm@cua.dk>
2537
2538 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
2539 (syms_of_msdos): Don't intern and staticpro them.
2540
0f6a07a8
KS
25412003-11-27 Kim F. Storm <storm@cua.dk>
2542
2543 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
2544 coordinates relative to glyph at posn. If glyph is an image,
2545 return that as object at posn. Callers changed.
2546 (mode_line_string, marginal_area_string): Calculate and return
2547 pixel coordinates relative to glyph. Callers changed.
2548
2549 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2550 (marginal_area_string): Fix prototypes.
2551 (window_box_left_offset, window_box_right_offset): Add prototypes.
2552
2553 * frame.h (get_specified_cursor_type, get_window_cursor_type):
2554 Remove prototypes.
2555
2556 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
2557
2558 * keyboard.c (make_lispy_position): Add x and y coordinates
2559 relative to the current glyph as 7th element of position.
2560 If glyph is an image, return it in the object element.
2561 (read_key_sequence): Skip checks for keymap property in cases
2562 where POSN_STRING is not a string (e.g. an image).
2563
2564 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
2565 (Vshow_text_cursor_in_void): New variable.
2566 (glyph_to_pixel_coords): Don't use negative hpos.
2567 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
2568 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 2569 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
2570 (calc_pixel_width_or_height): New aux function, implementing
2571 pixel based artihmetic for glyph widths and heights.
2572 (produce_stretch_glyph): Use calc_pixel_width_or_height for
2573 :width, :height, :align-to, and :ascent, thus allowing these to
2574 be specified in pixels as well as multiples of characters.
2575 Don't produce stretch glyphs with zero width or height.
2576 (get_specified_cursor_type): Declare static.
2577 (get_window_cursor_type): Declare static. Add glyph arg to be
2578 able to know when cursor is on an image; always substitute
2579 hollow-box cursor for filled-box cursor on images, to avoid
2580 negative images and flicker when blinking the cursor.
2581 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
2582 (note_mode_line_or_margin_highlight): Use non-text cursor rather
2583 than vertical scroll-bar cursor in display margins.
2584 (note_mouse_highlight): Use non-text cursor rather than text
2585 cursor in fringes and over images in the text area.
2586 Use non-text cursor when mouse pointer is outside editable text,
2587 i.e. in the void after end-of-line or end-of-buffer; this was
2588 already done for W32, but is now standard for all systems --
2589 user can toggle show-text-cursor-in-void to get old behaviour.
2590 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
2591 Vdisplay_pixels_per_inch.
2592
00498bfc
AS
25932003-11-25 Andreas Schwab <schwab@suse.de>
2594
2595 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
2596 EMACS_INT to not lose bits.
2597 (Ffillarray): Don't set bits beyond the size of a bool vector.
2598
edaa824d
KS
25992003-11-25 Kim F. Storm <storm@cua.dk>
2600
2601 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
2602 define this defun on systems that cannot use stderr as lvalue.
2603
74d6f539
GM
26042003-11-24 Gerd Moellmann <gerd@gnu.org>
2605
2606 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
2607 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
2608 ld's default is incompatible with unexec.
2609
6a1ff3ba
KS
26102003-11-23 Kim F. Storm <storm@cua.dk>
2611
63dc7c6b
KS
2612 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
2613 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
2614 (Fforce_window_update): New defun.
2615 (syms_of_window): Defsubr it.
2616 (Fset_window_margins, Fset_window_fringes): Doc fix.
2617
6a1ff3ba
KS
2618 * print.c (Fredirect_debugging_output): New defun.
2619 (syms_of_print): Defsubr it.
2620
aef109b7
LT
26212003-11-22 Luc Teirlinck <teirllm@auburn.edu>
2622
2623 * fns.c (Fset_char_table_parent): Doc fix.
2624
6a1ff3ba 26252003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
2626
2627 * dispnew.c (buffer_posn_from_coords): Return actual row/column
2628 for glyph clicked on, rather than (unused) pixel positions.
2629 (mode_line_string, marginal_area_string): Change X and Y args to
2630 pointers for returning actual row/column for glyph clicked on.
2631 Simplify and optimize loops.
2632
aef109b7
LT
2633 * dispextern.h (mode_line_string, marginal_area_string):
2634 Update prototypes.
63ccbe21
KS
2635
2636 * keyboard.c (make_lispy_position): New function for generating
2637 mouse click positions from frame and pixel coordinates.
2638 Enhanced to return buffer position and actual row/column for
2639 events outside the text area using updated mode_line_string and
2640 marginal_area_string functions.
2641 Return left-fringe and right-fringe clicks as such, rather than
2642 clicks in text area.
2643 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
2644 pixel_to_glyph_coords, as we never use the results.
2645 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
2646 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
2647 Eliminate unused code in WHEEL_EVENT handling.
2648 (make_lispy_movement): Use make_lispy_position.
2649
2650 * window.c (coordinates_in_window): Remove redundant tests.
2651 Fix returned X pixel value for left-margin.
2652
2653 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
2654 mode_line_string and marginal_area_string parameters.
2655
a64387ee 26562003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 2657
d7107586
SM
2658 * w32.c (struct the_group, getgrgid): Add.
2659 * mac.c (struct my_group, getgrgid): Add.
aef109b7 2660
3dbf3426
LT
26612003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2662
2663 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
2664
cae8ddbb 26652003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 2666
d7107586
SM
2667 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
2668 include in call to file name handler. Optionally translate numeric
2669 UID and GID to strings. Update docstring.
2670 (directory_files_internal): Add parameter ID-FORMAT.
2671 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
2672 include in call to file name handler and call to
2673 directory_files_internal. Update Docstring.
2674 (Fdirectory_files): Add dummy parameter in call to
2675 directory_files_internal.
2676 * lisp.h (Qinteger): Add.
2677 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
2678 (Ffile_attributes): Add parameter.
2679 * data.c (Qinteger): Export.
cae8ddbb 2680
2550b848
LT
26812003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2682
3dbf3426 2683 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 2684
88380018
KS
26852003-11-19 Kim F. Storm <storm@cua.dk>
2686
2687 * xdisp.c (init_iterator): Initialize it->start to position
2688 before reseating (in case start position is invisible).
2689 (init_to_row_start): Set it->start to row-start.
2690 (redisplay_window): Accept optional_new_start if start position
2691 is invisible (in which case IT_CHARPOS overshoots PT).
2692 (display_line): Setup row->start from it->start (rather than
2693 it->current which is wrong if first char on line is invisible).
2694 When done, reseat it->start to it->current (= start of next row).
2695 (expose_area): Fix exposure of text area when first char (e.g. TAB)
2696 is only partially visible.
2697
2698 * dispextern.h (struct it): New member start.
2699
854c1a59
SM
27002003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2701
455316e2
SM
2702 * alloc.c (make_float, Fcons): Clear the markbit at init time.
2703 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
2704 of block_index outside of the macro call.
2705 (Fgarbage_collect): Remove null code.
2706
2707 * m/amdx86-64.h: Don't redefine XPNTR.
2708
854c1a59
SM
2709 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
2710 of VALMASK.
2711
2712 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
2713 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
2714 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
2715
2716 * lisp.h (VALMASK): Only define for non-union type.
2717 (MARKBIT): Remove.
2718 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
2719 (XTYPE): Define unconditionally.
2720 (XSETTYPE): Remove one more remnant.
2721 (EQ): Define differently for the union and non-union cases.
2722 (INTMASK): New bit mask.
2723 (struct Lisp_Marker): Move down to prepare for upcoming patch.
2724 (GC_EQ): Delegate to EQ.
2725
2726 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
2727
a0c6ef2d
JD
27282003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2729
2730 * xterm.c (x_window_to_scroll_bar): Move check of display to
2731 where window_id is compared.
2732
859492c4
KS
27332003-11-17 Kim F. Storm <storm@cua.dk>
2734
2735 * dispextern.h (struct it): New member first_vpos.
2736
2737 * xdisp.c (start_display): Set it->first_vpos.
2738 (try_window_id): Use first_vpos to start display in first _text_
2739 line if no reusable lines at start of window with header line.
2740
810f2256
JD
27412003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2742
7c402969 2743 * w32fns.c (XPutPixel):
854c1a59
SM
2744 * w32bdf.c (w32_init_bdf_font):
2745 * sunfns.c (sel_read):
2746 * process.c (Fmake_network_process):
2747 * frame.c (store_frame_param):
2748 * fontset.c (Fset_fontset_font):
2749 * emacs.c (shut_down_emacs):
a64387ee 2750 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 2751
a32e9bfd
JD
2752 * config.in: Regenerate.
2753
810f2256
JD
2754 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2755 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2756 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
2757 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
2758 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
2759
2760 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
2761
2762 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
2763 (XTmouse_position, handle_one_xevent): Pass Display* to
2764 x_window_to_scroll_bar.
2765 (x_window_to_scroll_bar): Take a Display* argument.
2766 Check that display for frame is equal to Display* argument.
854c1a59 2767 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
2768 x_display_info_for_display instead. Use Display in xev instead
2769 of GDK_DISPLAY.
2770 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 2771 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
2772 (x_connection_closed): Call xg_display_close for GTK.
2773 (x_term_init): Call xg_display_open for additional displays.
2774 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
2775 for GTK.
2776
2777 * xmenu.c (single_menu_item, mouse_position_for_popup)
2778 (x_activate_menubar): Formatting adjustments.
2779
2780 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
2781 adjustments.
2782
2783 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
2784 (xg_display_close, xg_create_default_cursor)
2785 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
2786 handling.
854c1a59
SM
2787 (xg_left_ptr_cursor): Remove.
2788 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
2789 cursor here.
2790 (xg_win_to_widget): Take Display* argument, call
2791 gdk_xid_table_lookup_for_display.
2792 (xg_create_frame_widgets, xg_get_file_name, create_menus)
2793 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
2794 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
2795 in FRAME_X_DISPLAY_INFO.
2796 (xg_get_scroll_id_for_window): Take Display* argument.
2797 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 2798 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
2799
2800 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
2801 Display* argument also. Declare xg_display_open,
2802 xg_display_close, xg_create_default_cursor.
2803
0b03cc78
JD
28042003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2805
2806 * xterm.c (x_detect_focus_change): Do not change focus frame for
2807 Enter/LeaveNotify if the current focus frame has explicit focus.
2808
77e688fa
KS
28092003-11-14 Kim F. Storm <storm@cua.dk>
2810
2811 * dispnew.c (update_text_area): Fix redisplay error when hscroll
2812 is active and first glyph is only partially visible.
854c1a59 2813
dd429b03
KH
28142003-11-13 Kenichi Handa <handa@m17n.org>
2815
2816 * xdisp.c (select_frame_for_redisplay): New function.
2817 (redisplay_internal): Record also selected_frame for
2818 unwind_redisplay. Call select_frame_for_redisplay before
2819 redrawing each frame.
2820 (unwind_redisplay): Argument changed to a cons.
2821
6d9266f4
LT
28222003-11-12 Luc Teirlinck <teirllm@auburn.edu>
2823
2824 * fns.c (Fstring_to_multibyte): Doc fix.
2825
80060eb3
KH
28262003-11-11 Kenichi Handa <handa@m17n.org>
2827
2828 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
2829
74305183
JD
28302003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2831
2832 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
2833 program specified positions.
2834
cfda993e
JD
28352003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2836
2837 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
2838
df211069
KH
28392003-11-08 Kenichi Handa <handa@m17n.org>
2840
2841 * Makefile.in (lisp): Add kannada.el.
2842 (shortlisp): Likewise.
2843
4307d534
KH
28442003-11-07 Kenichi Handa <handa@m17n.org>
2845
854c1a59
SM
2846 * coding.c (coding_allocate_composition_data):
2847 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
2848 (coding_restore_composition): Detect invalid composition data.
2849 Give Fstring and Fvector a Lispy integer, not C int.
2850
854c1a59
SM
28512003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2852
2853 * floatfns.c (Flogb): Don't use VALMASK.
2854
2855 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
2856 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
2857
2858 * lisp.h (XINT): Move the cast to clarify what is going on.
2859 (GCTYPEMASK, XSETTYPE): Remove.
2860 (XGCTYPE): Make it an alias of XTYPE.
2861
d04103a1
JD
28622003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2863
2864 * xterm.c (x_term_init): Fix formatting.
2865
da18b5ac
JD
28662003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2867
2868 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
2869 and xg_did_tearoff.
2870
2871 * gtkutil.c: Remove variable xg_did_tearoff.
2872 (xg_have_tear_offs): New function.
2873 (tearoff_remove): Just decrease xg_detached_menus.
2874 (tearoff_activate): Increase xg_detached_menus and call
2875 tearoff_remove when tearoff is removed.
854c1a59 2876 (xg_keep_popup): Remove function.
da18b5ac
JD
2877 (create_menus): Give add_tearoff_p as argument to recursive
2878 call to create_menus.
2879 (xg_create_widget): Use variables instead of multiple
2880 strcmp. Tell create_menus to create tear off only for
2881 menu bar menus.
2882 (xg_update_menubar): Change title for a detached menu also.
2883 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
2884 of deep_p.
2885 (xg_initialize): Initialize xg_detached_menus, remove
2886 initialization of xg_did_tearoff.
2887
2888 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
2889 xg_have_tear_offs returns non-zero.
2890 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
2891 call to xg_keep_popup.
2892
64d4923e
AC
28932003-11-01 Andrew Choi <akochoi@shaw.ca>
2894
2895 * macterm.c (XTread_socket): Handle menubar selection and grow
2896 window only for mouseDown events.
854c1a59 2897
6cc8bc07
JD
28982003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2899
2900 * xterm.c (x_term_init): For GTK part, increase x_initialized
2901 to check for more than one display. Use error instead of return 0.
2902
043131c4
AC
29032003-10-31 Andrew Choi <akochoi@shaw.ca>
2904
854c1a59 2905 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
2906 (copy_dysymtab): Call it.
2907
bdda99a1
LT
29082003-10-31 Luc Teirlinck <teirllm@auburn.edu>
2909
2910 * eval.c (Fdefvaralias): Doc fix.
2911
800f42ff 29122003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
2913
2914 * data.c (Fsetplist): Doc fix.
2915
ef35b389
LK
29162003-10-14 Lute Kamstra <lute@gnu.org>
2917
2918 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 2919
ef35b389 29202003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 2921
07107abc
KS
2922 * window.c (Fset_window_margins): Simplify arg checking.
2923
f7005886
RS
29242003-10-13 Richard M. Stallman <rms@gnu.org>
2925
2926 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
2927 (print_partial_compiled_pattern): Replace assert with a printout.
2928 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
2929
2930 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
2931
2932 * window.c (Fset_window_margins): Allow only integers as args.
2933 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
2934 Doc fixes.
2935
9c0c2af5
LK
29362003-10-13 Lute Kamstra <lute@gnu.org>
2937
2938 * window.c (Fset_window_fringes): Elaborate docstring.
2939
3f080e4e
AC
29402003-10-12 Andrew Choi <akochoi@shaw.ca>
2941
854c1a59 2942 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 2943
3f080e4e
AC
2944 * s/darwin.h (GC_MARK_STACK): Define.
2945
0aa513ed
JD
29462003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2947
2948 * window.c (shrink_windows): New function.
2949 (size_window): Call shrink_windows to calculate window sizes when
2950 shrinking frame with more than one window.
2951
6aa8858a
KS
29522003-10-12 Kim F. Storm <storm@cua.dk>
2953
2954 * xdisp.c (compute_fringe_widths): Doc fix.
2955
c2164d91
KH
29562003-10-08 Kenichi Handa <handa@m17n.org>
2957
854c1a59 2958 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 2959
f82ac129
KH
29602003-10-07 Kenichi Handa <handa@m17n.org>
2961
2962 * coding.c (Qcoding_system_define_form): New variable.
2963 (syms_of_coding): Intern and staticpro it.
2964 (Fcheck_coding_system): Try to autoload the definition of
2965 CODING-SYSTEM.
2966
9296c947
LT
29672003-10-05 Luc Teirlinck <teirllm@auburn.edu>
2968
2969 * fns.c (Frequire): Doc fix.
2970
c1f0671a
JD
29712003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2972
3d8c3826
JD
2973 * xfns.c (Fx_send_client_event): New function as a base for
2974 manipulating extended window manager hints.
6dc15d98 2975 (Fx_send_client_event): Remove unused variable s.
3d8c3826 2976
068ae0fd
JD
2977 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
2978 that function is removed.
2979
2980 * xterm.c (x_set_offset): Use move_offset_left/top instead of
2981 x/y_pixels_outer_diff.
2982 (x_check_expected_move): Calculate move_offset_left/top.
2983
2984 * xterm.h (struct x_output): New members: move_offset_top/left.
2985
854c1a59 2986 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
2987 call x_set_offset directly.
2988
2989 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
2990
96f09305
JD
2991 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
2992
2993 * xterm.c (x_delete_display): Free font names and font_encoder
2994 in dpyinfo->font_table.
2995
854c1a59
SM
2996 * xfns.c (Fx_close_connection): Only call XFreeFont here.
2997 Move xfree of font names to x_delete_display.
96f09305 2998
c1f0671a
JD
2999 * xterm.h (struct x_display_info): New member, wm_type.
3000 (struct x_output): New members, expected_top/left and
3001 check_expected_move.
3002
3003 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3004 is received.
854c1a59
SM
3005 (handle_one_xevent): Rename x_check_expected_move from
3006 x_check_fullscreen_move.
c1f0671a
JD
3007 (x_set_offset): Only add WM decoration sizes to modified_top/left
3008 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 3009 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
3010 Removed fullscreen specific code. Use check_expected_move,
3011 expected_left/top instead. Also, set wm_type.
3012 (x_term_init): Initialize wm_type to unknown.
3013
3014 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3015 sizes to move_x/y.
3016
be2fdba9
KH
30172003-10-03 Kenichi Handa <handa@m17n.org>
3018
3019 * macterm.c (x_load_font): Clear all members of FONTP before start
3020 filling them.
3021
30222003-10-02 Kenichi Handa <handa@m17n.org>
3023
3024 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3025 before calling find_ccl_program_func. Call find_ccl_program_func
3026 only when fontp->font_encoder is not NULL.
3027
3028 * xterm.c (x_load_font): Clear all members of FONTP before start
3029 filling them.
3030
26a6e439
JPW
30312003-10-03 John Paul Wallington <jpw@gnu.org>
3032
3033 * keymap.c (map_keymap): Don't abort when binding is a vector.
3034
0d4c2dc2
JR
30352003-10-02 Jason Rumney <jasonr@gnu.org>
3036
854c1a59
SM
3037 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3038 Sync dependencies with Makefile.in.
a63cf46f
JR
3039 (alloca.o): Remove.
3040
0d4c2dc2
JR
3041 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3042 filling them.
3043
3044 * w32bdf.c (w32_load_bdf_font): Likewise.
3045
ab8f7d5c
RS
30462003-09-30 Richard M. Stallman <rms@gnu.org>
3047
3048 * term.c (set_tty_color_mode): Calculate current_mode_spec
3049 regardless of value of VAL.
3050
854c1a59 3051 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
3052 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3053 Handle over_used when splitting UNDER.
3054
a64387ee 30552003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
3056
3057 * regex.c (regex_compile): Free the stack when returning from function.
3058
3413f972
KH
30592003-09-28 Kenichi Handa <handa@m17n.org>
3060
3061 * fontset.c (Finternal_char_font): Change return value to
3062 cons (FONT-NAME . GLYPH-CODE).
3063
a6eeaa81 30642003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
3065
3066 * term.c (tty_setup_colors): Treat any negative argument as -1.
3067
f98ddc99
KH
30682003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3069
3070 * process.c (send_process): Delete unused temp_buf.
3071
66c8f1a8
DL
30722003-09-26 Dave Love <fx@gnu.org>
3073
3074 * xterm.c (x_bitmap_mask): Declare.
3075
ca716c26
DL
30762003-09-25 Dave Love <fx@gnu.org>
3077
3078 * Makefile.in (fns.o): Depend on md5.h.
3079
fbe57420
KS
30802003-09-25 Kim F. Storm <storm@cua.dk>
3081
3082 * window.c (set_window_buffer): Fix redisplay problems when
3083 switching between buffers with different display margin widths.
3084
ef6ae4ff
KS
30852003-09-23 Kim F. Storm <storm@cua.dk>
3086
3087 * process.c (set_socket_option): Fix :bindtodevice option.
3088 (Fset_network_process_option): Update process contact list when
3089 setting option succeeds.
3090 (Fmake_network_process): Doc fix.
3091
68e03c1c
DL
30922003-09-23 Dave Love <fx@gnu.org>
3093
7146d1c1 3094 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 3095
a6eeaa81 30962003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
3097
3098 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3099 color mode is an integer number (it could be -1).
3100
8fe7d8c8
RS
31012003-09-22 Richard M. Stallman <rms@gnu.org>
3102
3103 * intervals.c (graft_intervals_into_buffer): Correct the main loop
3104 in the case where OVER is longer than UNDER.
3105
2f71b5ea
MY
31062003-09-22 Masatake YAMATO <jet@gyve.org>
3107
7146d1c1 3108 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 3109 `vertical_type'.
7146d1c1 3110
0c4da023
KS
31112003-09-21 Kim F. Storm <storm@cua.dk>
3112
3113 * frame.c (Vdefault_frame_scroll_bars): New variable.
3114 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
3115 (syms_of_frame): DEFVAR_LISP it, and initialize according to
3116 window-system default scroll bar position.
3117
b648413b
KS
3118 * window.c (Fwindow_scroll_bars): Doc fix.
3119
8f5b9e34
JD
31202003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3121
854c1a59 3122 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 3123
b0f23edf
RS
31242003-09-19 Richard M. Stallman <rms@gnu.org>
3125
3126 * atimer.h: Don't include lisp.h.
3127 (P_): Define it here (as well as elsewhere).
3128
3129 * print.c (Fprin1_to_string): Move the PRINTPREPARE
3130 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
3131
3132 * data.c (Fvariable_binding_locus): New function.
3133 (syms_of_data): defsubr it.
3134 (Flocal_variable_p): Delete duplicate call to indirect_variable.
3135
e1283999
DL
31362003-09-18 Dave Love <fx@gnu.org>
3137
ad5f3636
DL
3138 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
3139
e1283999
DL
3140 * process.c (Fnetwork_interface_info): Fix type error.
3141 (Fnetwork_interface_list): Doc fix.
3142 (read_process_output, read_process_output): Delete unused var.
3143
b8c7fd71
KS
31442003-09-17 Kim F. Storm <storm@cua.dk>
3145
3146 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
3147 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
3148 (Fnetwork_interface_info): Check that ifreq struct has required
3149 fields before accessing them; this requires that those fields are
3150 defined as macros, which may be too restrictive on some platforms,
3151 but it is better than failing on other platforms.
3152 (syms_of_process): Only defsubr above fns when included.
3153
11e0a411
DL
31542003-09-17 Dave Love <fx@gnu.org>
3155
3156 * unexalpha.c: Don't include varargs.h.
3157
e9c50801
KS
31582003-09-17 Kim F. Storm <storm@cua.dk>
3159
3160 * process.c (Fset_process_sentinel): Add sentinel to childp plist
3161 for network process.
3162 (socket_options): Add `:' prefix to option names. Add optbit field.
3163 (set_socket_option): Remove no_error arg and special handling of s < 0.
3164 Return 1<<optbit for known option, 0 for unknown.
3165 Do not interpret 0 as false for boolean option (only nil).
3166 Pass failed option and value to report_file_error.
7146d1c1 3167 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
3168 (Fset_network_process_option): New function to set just one option.
3169 (Fmake_network_process): Allow :coding arg to be a cons.
3170 Allow :server arg to be an integer specifying backlog size.
3171 Remove :options arg, and allow options to be specified directly
3172 as :KEY, VALUE pairs. Parse these options before binding socket.
3173 As before, :reuseaddr t is default for a server process, but this
3174 can now be disabled by specifying :reuseaddr nil.
3175 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
3176 (init_process): Availability of network options is now checked with
3177 simpler syntax (featurep 'make-network-process :OPTION); use loop to
3178 setup features.
3179 (syms_of_process): Fix defsubr's for the replaced functions.
3180
a0fc3644
DL
31812003-09-16 Dave Love <fx@gnu.org>
3182
3183 * Makefile.in: Depend on coding.h.
3184
6df2a645
KS
31852003-09-14 Kim F. Storm <storm@cua.dk>
3186
3187 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
3188 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
3189 (syms_of_process): Defsubr them.
3190
3191 * config.in: Regenerate.
7146d1c1
SM
3192
31932003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3194
3195 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
3196 * m/news-r6.h (XUNMARK): Remove.
3197 * m/mips.h (XUNMARK): Remove.
3198 * m/mips-siemens.h (XUNMARK): Remove.
3199 * m/iris4d.h (XUNMARK): Remove.
3200 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
3201
0930c1a1
SM
32022003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3203
31003b9e
SM
3204 * lisp.h (VALBITS): Don't remove 1 for the markbit.
3205 (union Lisp_Object): Use unsigned int for types. Remove markbit.
3206 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
3207 (XTYPE): Use unsigned right-shift.
3208 (XMARKBIT, XMARK, XUNMARK): Remove.
3209
0930c1a1
SM
3210 * alloc.c (init_intervals, init_symbol, init_marker):
3211 Don't preallocate anything.
3212 (Fgarbage_collect, mark_object): Ignore the markbit.
3213
3214 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
3215
19bb0fcd 32162003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
3217
3218 * xdisp.c (pint2hrstr): New function.
3219 (decode_mode_spec): Add `%i' and `%I' specs.
3220 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
3221 for `mode-line-format'.
3222
03bb6a06
AS
32232003-09-07 Andreas Schwab <schwab@suse.de>
3224
3225 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
3226 avoid warning.
3227
a6eeaa81 32282003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 3229
0930c1a1 3230 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 3231
ed159bbf
KS
32322003-09-03 Kim F. Storm <storm@cua.dk>
3233
3234 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
3235 change (superseded by 2002-08-30 change); the default blink-off
3236 cursor is now again "no cursor".
3237
fe64a394
JR
32382003-09-01 Jason Rumney <jasonr@gnu.org>
3239
3240 * makefile.w32-in (alloca.o): Remove.
3241 (coding.o): Depend on intervals.h
3242 (emacs.o, bytecode.o): Depend on window.h
3243
c0175e24
DL
32442003-09-01 Dave Love <fx@gnu.org>
3245
3246 * Makefile.in (alloca.o): Remove commands.
3247 (coding.o): Depend on intervals.h composite.h window.h.
3248 (emacs.o): Depend on window.h keyboard.h keymap.h.
3249 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
3250 (bytecode.o): Depend on window.h.
3251
a24d4cb2
JR
32522003-08-31 Jason Rumney <jasonr@gnu.org>
3253
4bc2315e
JR
3254 * w32term.c (w32_per_char_metric): Allow cached metrics to be
3255 returned even when font_type is unknown.
3256
a24d4cb2
JR
3257 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
3258
9d35adc7
JD
32592003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3260
3261 * xterm.c (x_term_init): Initialize new fields in x_display_info.
3262
3263 * xterm.h (struct x_display_info): Add red/green/blue_bits and
3264 *_offset.
3265
3266 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
3267 calculate pixel value.
3268
6f68b035
GM
32692003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
3270
0930c1a1
SM
3271 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
3272 Don't tell redisplay display is accurate when it's actually been
3273 paused for pending input.
6f68b035 3274
4828b4d7
RS
32752003-08-29 Richard M. Stallman <rms@gnu.org>
3276
3277 * dispnew.c (adjust_glyph_matrix): Call window_box
3278 whenever W is nonzero.
3279
3280 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3281 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 3282 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
3283 Use indirect_variable to trace thru variable aliases.
3284
3285 * config.in: Updated.
3286
3287 * callint.c (Fcall_interactively): Save and restore
3288 Vthis_command, Vthis_original_command, real_this_command,
3289 and current_kboard->Vlast_command.
3290
3291 * abbrev.c (Fexpand_abbrev): Insert before deleting.
3292
e019878d
GM
32932003-08-29 Gerd Moellmann <gerd@gnu.org>
3294
3295 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
3296
85478bc6
KH
32972003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
3298
0930c1a1 3299 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
3300 (decode_coding_sjis_big5): Likewise.
3301
07ce82d3
JR
33022003-08-27 Jason Rumney <jasonr@gnu.org>
3303
d3703de3
JR
3304 * w32.c (sys_pipe): Protect against file descriptor overflow.
3305
ee4a01d1
JR
3306 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
3307
07ce82d3
JR
3308 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
3309
a64387ee 33102003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
3311
3312 * xfns.c (Vgtk_version_string): New variable.
3313 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
3314
a6eeaa81 33152003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 3316
0930c1a1 3317 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 3318
5459e42a
EZ
3319 * Makefile.in (msdos.o): Depend on intervals.h.
3320
0930c1a1 3321 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 3322
231d6cfb
JD
33232003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3324
3325 * xterm.h (struct x_display_info): New fields: client_leader_window
3326 and Xatom_wm_client_leader.
3327
3328 * xterm.c (x_initialize): Move call to x_session_initialize to ...
3329 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
3330
3331 * xsmfns.c (create_client_leader_window): New function.
3332 (x_session_initialize): Call create_client_leader_window, take
3333 dpyinfo as argument.
3334
3335 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
3336
3337 * Makefile.in (xsmfns.o): Add more depenedencies.
3338
afa88464
DL
33392003-08-21 Dave Love <fx@gnu.org>
3340
3341 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
3342
f730033e
KH
33432003-08-21 Kenichi Handa <handa@m17n.org>
3344
3345 * term.c (term_init): Fix previous change; don't rely on the
3346 length of `buffer' if TERMINFO is defined.
3347
6dca786c
DL
33482003-08-20 Dave Love <fx@gnu.org>
3349
3350 * atimer.h: Include lisp.h.
3351
3352 * lisp.h (EMACS_LISP_H): New.
3353 (popup_activated_flag): Don't declare.
3354
3355 * alloca.c: Some merging with gnulib. Change logic and doc
3356 concerning (x)malloc/(x)free -- no longer Emacs-specific.
3357 [DO_BLOCK_INPUT]: Don't include lisp.h.
3358 (xmalloc, xfree): Declare.
3359 (malloc): Don't declare.
3360
0930c1a1 3361 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
3362 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
3363 atimer.h, blockinput.h.
3364
3365 * alloc.c (lisp_align_malloc): Change type of `aligned'.
3366
3367 * alloca.s: Removed.
3368
3a06a6d9
RS
33692003-08-19 Gerd Moellmann <gerd@gnu.org>
3370
3371 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
3372 use -lncurses.
3373
3374 * term.c (term_init): Use a buffer of size 4096 for tgetent since
3375 FreeBSD returns something longer than 2044. Abort if the end of
3376 the buffer is overwritten.
3377
27eeee55
MB
33782003-08-19 Miles Bader <miles@gnu.org>
3379
3380 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
3381
2f297815
GM
33822003-08-19 Gerd Moellmann <gerd@gnu.org>
3383
f4446bbf
GM
3384 * alloc.c (lisp_align_malloc): Check for memory full when
3385 allocating ablocks, which also avoids freeing a pointer into an
3386 ablocks structure.
3387
3388 * puresize.h (BASE_PURESIZE): Increase to 1100000.
3389
0930c1a1 3390 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 3391
0e7d7aae
RS
33922003-08-16 Richard M. Stallman <rms@gnu.org>
3393
3394 * editfns.c (Fencode_time): Doc fix.
3395
33962003-08-16 David Ponce <david@dponce.com>
3397
3398 * fileio.c (Fwrite_region): Fix conditional expression to issue
3399 the right message.
3400
34012003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
3402
3403 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 3404 Set default value to 1.
0e7d7aae 3405
5d551295
KH
34062003-08-15 Kenichi Handa <handa@m17n.org>
3407
3408 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
3409 what autoscaled.
3410 (best_matching_font): Once we find a better scalable font, set
3411 non_scalable_has_exact_height_p to 1.
3412 (try_font_list): Call try_alternative_families to try any family
3413 with the given registry.
3414
1661e56b
AS
34152003-08-09 Andreas Schwab <schwab@suse.de>
3416
f29181dc
AS
3417 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
3418
1661e56b
AS
3419 * print.c (print_string): Fix printing of multibyte string with
3420 nontrivial printcharfun.
3421
465aa50a
JD
34222003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3423
3424 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
3425
3426 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
3427
e430e5ba
KH
34282003-07-31 Kenichi Handa <handa@m17n.org>
3429
3430 * process.c (read_process_output): Return the actually read bytes
3431 instead of the result of decoding.
3432
97e7188e
KH
34332003-07-31 Kenichi Handa <handa@m17n.org>
3434
3435 * xterm.h (struct x_bitmap_record): New member have_mask.
3436
3437 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
3438 to 0.
3439 (x_create_bitmap_from_file): Likewise.
3440 (x_destroy_bitmap): Check have_mask member before freeing a mask.
3441 (x_destroy_all_bitmaps): Likewise.
3442 (x_create_bitmap_mask): Set have_mask member to 1.
3443
b53094d6
RS
34442003-07-30 Richard M. Stallman <rms@gnu.org>
3445
3446 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
3447
631f2082
JD
34482003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3449
3450 * gtkutil.c (xg_mark_data): Update calls to mark_object.
3451
c855f2ca
RS
34522003-07-29 Richard M. Stallman <rms@gnu.org>
3453
3454 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
3455 Conditionalize XIM code on HAVE_XIM.
3456
3457 * fns.c (Fclear_string): New function.
3458 (syms_of_fns): defsubr it.
3459
17e6d491
KH
34602003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3461
0930c1a1 3462 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 3463
29ea8ae9
SM
34642003-07-22 Stefan Monnier <monnier@cs.yale.edu>
3465
3466 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
3467
3468 * buffer.c (delete_all_overlays): New function.
3469 * buffer.h (delete_all_overlays): Declare.
3470 * coding.c (run_pre_post_conversion_on_str):
3471 * print.c (temp_output_buffer_setup):
3472 * fileio.c (Finsert_file_contents):
3473 * minibuf.c (get_minibuffer): Use it.
3474
1dd7ccf2
AC
34752003-07-22 Andrew Choi <akochoi@shaw.ca>
3476
3477 * unexmacosx.c (unexec_regions_sort_compare):
3478 (unexec_regions_merge): New functions. Sort and merge unexec
3479 regions before dumping them.
3480
f57bd967
DL
34812003-07-22 Dave Love <fx@gnu.org>
3482
3483 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
3484
7cdee936
SM
34852003-07-21 Stefan Monnier <monnier@cs.yale.edu>
3486
3487 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
3488 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
3489 MARKBIT as the gcmarkbit for strings.
3490
e50886d3
RS
34912003-07-21 Richard M. Stallman <rms@gnu.org>
3492
3493 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
3494
29ea8ae9 3495 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
3496 (syms_of_fns): Corresponding change.
3497
3498 * alloc.c (syms_of_alloc): Doc fixes.
3499
35002003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
3501
3502 * s/netbsd.h: Use -Wl syntax.
3503
fdc39b59
RS
35042003-07-17 Richard M. Stallman <rms@gnu.org>
3505
3506 * xterm.c (xim_initialize): Redo 6/24 change.
3507
9c53385f
SM
35082003-07-15 Stefan Monnier <monnier@cs.yale.edu>
3509
3510 * buffer.c (copy_overlays): Use EMACS_INT for positions.
3511 (Fswitch_to_buffer): Don't signal an error when switching to the same
3512 buffer in a dedicated window.
3513
3514 * alloc.c: Use bitmaps for cons, as was done for floats.
3515 (init_float, init_cons): Let the normal code allocate the first block.
3516 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
3517 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
3518 New macros.
3519 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
3520 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
3521 (live_cons_p): Check the pointer is not past the `conses' array.
3522 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
3523 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
3524 (survives_gc_p): Use CONS_MARKED_P and simplify.
3525 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
3526
dde13196
PE
35272003-07-13 Paul Eggert <eggert@twinsun.com>
3528
3529 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
3530 puts it into BSS instead, at least on Solaris 8 and 9.
3531 This is a valid optimization, and it may occur on other platforms,
3532 so Emacs should not assume that initializing a static variable to
3533 zero puts it into data.
3534 * alloc.c (pure, staticvec):
3535 Initialize these arrays to nonzero, so that they're not
3536 put into BSS by that optimization.
3537
a801bc34
SM
35382003-07-13 Stefan Monnier <monnier@cs.yale.edu>
3539
3540 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
3541 (lisp_align_malloc): Use posix_memalign is available.
3542 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
3543 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
3544 for consistency. Update users.
3545
0c8b2afa
RS
35462003-07-13 Richard M. Stallman <rms@gnu.org>
3547
3548 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
3549
668c2ab0
JB
35502003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
3551
3552 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
3553 and use the Gtk+ function gtk_window_icon_from_file if available.
3554
3555 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
3556 handle mask of bitmaps.
3557 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
3558 mask property.
3559 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
3560
3561 * xterm.h (xg_set_icon): New function.
3562
800bebe3
RS
35632003-07-12 Paul Eggert <eggert@twinsun.com>
3564
3565 * unexelf.c (unexec): Consider a section to precede the .bss
3566 section if its addresses overlap that of .bss.
3567
69e38995
RS
35682003-07-12 Richard M. Stallman <rms@gnu.org>
3569
3570 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
3571
3572 * config.in (HAVE_CRTIN): Add #undef.
3573 (INLINE): Really inline only if OPTIMIZE is defined.
3574
3575 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
3576 END_FILES_1.
3577 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 3578 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
3579
3580 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
3581 (TERMINFO): Define.
3582 (LIBS_TERMCAP): Define.
3583 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
3584
3585 * xfns.c: Include libpng/png.h instead of png.h.
3586
f1d0c238
AS
35872003-07-11 Andreas Schwab <schwab@suse.de>
3588
3589 * buffer.c (modify_overlay): Update prototype.
3590 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
3591 Likewise.
3592
5f6bf5fe
SM
35932003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3594
3595 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
3596 (struct interval): Move to intervals.h.
3597 (struct Lisp_Marker): Use EMACS_INT for position info.
3598 (forward_point): Remove prototype of defunct function.
3599 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
3600 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
3601 (syms_of_textprop, set_text_properties): Remove prototypes that are
3602 already in intervals.h.
3603
3604 * intervals.h (struct interval): Move from lisp.h.
3605 Use EMACS_INT for position and size info.
3606
3607 * coding.c: Include intervals.h for Fset_text_properties.
3608
3609 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3610 position and length information.
3611
2765b457
SM
36122003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3613
3614 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3615 position and length information.
3616
2410d73a
SM
36172003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3618
3619 Change overlays_after and overlays_before so the overlays themselves
3620 are linked into lists, rather than using cons cells. After all each
3621 Lisp_Misc already occupies 5 words, so we can add a `next' field to
3622 Lisp_Overlay for free and save up one cons cell per overlay (not
3623 to mention one indirection when traversing the list of overlay).
3624
3625 * lisp.h (struct Lisp_Overlay): New field `next'.
3626
3627 * buffer.h (struct buffer): Change overlays_before and overlays_after
3628 from Lisp lists of overlays to pointers to overlays.
3629
3630 * buffer.c (overlay_strings, recenter_overlay_lists):
3631 Fix typo in eassert in last commit.
3632 (unchain_overlay): New function.
3633 (add_overlay_mod_hooklist): Use AREF.
3634 (copy_overlays, reset_buffer, overlays_at, overlays_in)
3635 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
3636 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
3637 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
3638 (report_overlay_modification, evaporate_overlays, init_buffer_once):
3639 Adjust to new type of overlays_(before|after).
3640
3641 * alloc.c (mark_object): Mark the new `next' field of overlays.
3642 (mark_buffer): Manually mark the overlays_(after|before) fields.
3643
3644 * coding.c (run_pre_post_conversion_on_str):
3645 * editfns.c (overlays_around):
3646 * xdisp.c (load_overlay_strings):
3647 * fileio.c (Finsert_file_contents):
3648 * indent.c (current_column):
3649 * insdel.c (signal_before_change, signal_after_change):
3650 * intervals.c (set_point_both):
3651 * print.c (temp_output_buffer_setup): Use new type for
3652 overlays_(before|after).
3653
04812929
SM
36542003-07-08 Stefan Monnier <monnier@cs.yale.edu>
3655
3656 * buffer.c (report_overlay_modification): Don't run hooks while
3657 traversing the list of overlays.
3658
3659 * buffer.h (struct buffer): Use an int for overlay_center.
3660 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3661 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3662
3663 * buffer.c (reset_buffer, recenter_overlay_lists)
3664 (adjust_overlays_for_insert, adjust_overlays_for_delete)
3665 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
3666 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
3667 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3668 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3669
3670 * xdisp.c (fast_find_position): Remove unused var.
3671
3672 * cmds.c (Qexpand_abbrev): New sym.
3673 (syms_of_cmds): Initialize it.
3674 (internal_self_insert): Use it to call expand-abbrev.
3675
2e7ecf15
KS
36762003-07-09 Kim F. Storm <storm@cua.dk>
3677
3678 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if emacs
3679 was configured with --without-xim.
42f81f64 3680 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 3681
c6de56a0
RS
36822003-07-07 Richard M. Stallman <rms@gnu.org>
3683
3684 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
3685
3686 * alloc.c (Fgarbage_collect): Doc fix.
3687
b93fb365
KH
36882003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
3689
3690 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
3691
bfe1a3f7
SM
36922003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3693
04812929
SM
3694 * minibuf.c (read_minibuf): UNGCPRO before returning.
3695 (Ftry_completion, Fall_completions): Doc fix.
3696
bfe1a3f7
SM
3697 * alloc.c (live_float_p): Check that p is not past the `floats' array,
3698 now that `floats' is not the last element of the struct any more.
3699
ee79d1aa
JR
37002003-07-06 Jason Rumney <jasonr@gnu.org>
3701
3702 * w32term.h (ClipboardSequence_Proc): New type.
3703
3704 * w32fns.c (clipboard_sequence_fn): New variable.
3705 (globals_of_w32fns): Initialize it.
3706
3707 * w32select.c (last_clipboard_sequence_number): New variable.
3708 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
3709 number if possible.
3710
49723c04
SM
37112003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3712
4698665f
SM
3713 * m/amdx86-64.h (MARKBIT):
3714 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
3715 MARKBIT and ARRAY_MARK_FLAG any more.
3716
3717 * m/hp800.h (XSETMARKBIT):
3718 * m/sr2k.h (XSETMARKBIT):
3719 * lisp.h (XSETMARKBIT): Remove unused macro.
3720
49723c04
SM
3721 * lisp.h (mark_object): Change prototype.
3722
3723 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
3724 (last_marked): Change accordingly.
3725 (mark_interval, mark_maybe_object, mark_maybe_pointer)
3726 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
3727 (mark_buffer): Update calls to mark_object.
3728
3729 * bytecode.c (mark_byte_stack):
3730 * fns.c (sweep_weak_table):
3731 * keyboard.c (mark_kboards): Update calls to mark_object.
3732
1d660eca
JR
37332003-07-06 Jason Rumney <jasonr@gnu.org>
3734
3735 * alloc.c (struct ablock): Only include padding when there is some.
3736
618b5ae4
SM
37372003-07-04 Stefan Monnier <monnier@cs.yale.edu>
3738
3739 * alloc.c (ALIGN): Add casts to simplify usage.
3740 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
3741 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
3742 (struct ablock, struct ablocks): New types.
3743 (free_ablock): New global var.
3744 (lisp_align_malloc, lisp_align_free): New functions.
3745 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
3746 (struct float_block): Reorder and add gcmarkbits.
3747 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
3748 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
3749 (init_float, make_float): Use lisp_align_malloc.
3750 (free_float, live_float_p): Don't use `type' any more.
3751 (make_float): Use FLOAT_UNMARK to access to mark bit.
3752 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
3753 Use FLOAT_MARKED_P to access the mark bit.
3754 (pure_alloc): Simplify use of ALIGN.
3755 (mark_object): Use FLOAT_MARK to access the mark bit.
3756 (gc_sweep): Use new macros to access the float's mark bit.
3757 (init_alloc_once): Init free_ablock.
3758
3759 * lisp.h (struct Lisp_Float): Remove unused field `type'.
3760
3ef06d12
SM
37612003-06-27 Stefan Monnier <monnier@cs.yale.edu>
3762
3763 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
3764 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
3765 (allocate_buffer): Move.
3766 (string_bytes): Don't mask markbit of `size_byte'.
3767 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3768 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
3769 Use the `size' field of buffers (rather than the `name' field) for
3770 the mark bit, as is done for all other vectorlike objects.
3771 Use the new macros to access the mark bit of vectorlike objects.
3772
e81043aa
RS
37732003-06-26 Richard M. Stallman <rms@gnu.org>
3774
3775 * puresize.h (BASE_PURESIZE): Increment base size.
3776
3777 * xdisp.c (fast_find_position): Enable Gerd's new definition.
3778
3779 * xterm.c (xim_initialize): Undo previous change.
3780
2d0834cc
SM
37812003-06-26 Stefan Monnier <monnier@cs.yale.edu>
3782
3783 * alloc.c (survives_gc_p): Simplify.
3784
3785 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
3786
3787 * window.c (Fset_window_dedicated_p): Simplify.
3788 (display_buffer_1): Don't raise the win from which minibuf was entered.
3789 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
3790 (Fminibuffer_selected_window): Simplify.
3791
3792 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
3793
3794 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
3795 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
3796
3797 * insdel.c (check_markers, adjust_markers_for_delete)
3798 (adjust_markers_for_insert, adjust_markers_for_replace)
3799 (prepare_to_modify_buffer, RESTORE_VALUE):
3800 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
3801 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
3802 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
3803 * alloc.c (Fmake_marker, free_marker, gc_sweep):
3804 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
3805 * editfns.c (save_excursion_restore, transpose_markers):
3806 * window.c (delete_window):
3807 * xdisp.c (message_dolog): Update for new types.
3808
d54ae3d8
JD
38092003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3810
a5f696ac
JD
3811 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
3812 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 3813 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
3814
3815 * frame.c (make_frame): Initialize default_face_done_p.
3816
3817 * frame.h (struct frame): Add default_face_done_p.
3818
d54ae3d8
JD
3819 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
3820 will be defined.
3821
2336fe58
SM
38222003-06-25 Stefan Monnier <monnier@cs.yale.edu>
3823
3824 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
3825 Initialize the new field `gcmarkbit'.
3826 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
3827 (mark_interval_tree): Don't mark the tree separately from the nodes.
3828 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
3829 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3830 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
3831
3832 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
3833 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
3834 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
3835 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
3836 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
3837
bcea31c2
DL
38382003-06-24 Dave Love <fx@gnu.org>
3839
3840 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
3841
3842 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
3843 from gnulib.
3844
2601f59e
RS
38452003-06-21 Richard M. Stallman <rms@gnu.org>
3846
3847 * fileio.c (Fwrite_region): Alternate messages
3848 for append and partial write.
3849
3850 * keyboard.c (read_key_sequence): When converting upcase fn key to
3851 downcase, update fkey and keytran so `backspace' gets translated.
3852
3853 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
3854
3855 * process.c (wait_reading_process_input): Don't signal SIGIO
3856 in batch mode.
3857
b5d2c621
KH
38582003-06-17 Kenichi Handa <handa@m17n.org>
3859
3860 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
3861 composite.h.
3862
3863 * xselect.c: Don't include charset.h, coding.h, composite.h.
3864 (Qforeign_selection): New variable.
3865 (syms_of_xselect): Intern and static it.
3866 (selection_data_to_lisp_data): Return a unibyte string made from
3867 data with `foreign-selection' text property.
3868
6793bc63
SM
38692003-06-15 Stefan Monnier <monnier@cs.yale.edu>
3870
3871 * termhooks.h (EVENT_INIT): New macro.
3872
3873 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
3874
3875 * alloc.c (mark_kboards): Move to keyboard.c.
3876
3877 * keyboard.c (record_asynch_buffer_change, read_avail_input):
3878 * xterm.c (x_dispatch_event):
3879 * xmenu.c (find_and_call_menu_selection):
3880 * xdisp.c (handle_tool_bar_click):
3881 * w32menu.c (menubar_selection_callback):
3882 * sysdep.c (kbd_input_ast, read_input_waiting):
3883 * msdos.c (dos_rawgetc):
3884 * macterm.c (mac_check_for_quit_char):
3885 * macmenu.c (menubar_selection_callback):
3886 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
3887 data to kbd_buffer_store_event.
3888
b3ea810c
KS
38892003-06-15 Kim F. Storm <storm@cua.dk>
3890
3891 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 3892 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 3893
b8f75eda
KG
38942003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
3895
3896 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
3897
ba92ce48
KH
38982003-06-12 Kenichi Handa <handa@m17n.org>
3899
3900 * fileio.c (Fwrite_region): Save and restore restriction.
3901
b80263be
DL
39022003-06-12 Dave Love <fx@gnu.org>
3903
3904 * alloca.c (alloca): Declare arg as size_t.
3905
6793bc63
SM
3906 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
3907 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 3908
b23c0a83
DL
39092003-06-11 Dave Love <fx@gnu.org>
3910
3911 * search.c (shrink_regexp_cache): Use xrealloc.
3912 (syms_of_search): Use xmalloc.
3913
700e47c2
KS
39142003-06-10 Kim F. Storm <storm@cua.dk>
3915
3916 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
3917 Adjust phys_cursor.x to be relative to window box, rather than
3918 text area before checking -- to ensure cursor is redrawn when
3919 exposing window.
3920 Note: This also fixes a similar (older) bug if display margins
3921 are present.
3922
f11aa0b2
KH
39232003-06-06 Kenichi Handa <handa@m17n.org>
3924
3925 * coding.c (encoding_buffer_size): If coding->type is
3926 coding_type_ccl, double magnification on CRLF encoding.
3927
3d143690
JR
39282003-06-06 Jason Rumney <jasonr@gnu.org>
3929
3930 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
3931 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
3932
3933 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
3934 Mac too.
3935
f16205ca
DL
39362003-06-05 Dave Love <fx@gnu.org>
3937
b23c0a83
DL
3938 * strftime.c: Merge changes from gnulib.
3939
f16205ca
DL
3940 * mktime.c (__mktime_internal): Merge changes from gnulib
3941 involving year 69 and dst2.
3942
3943 Changes to merge with gnulib version and be consistent with the
3944 autoconf test:
3945
6793bc63
SM
3946 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
3947 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
3948 [HAVE_LOCALE_H]: Include locale.h.
3949 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
3950
9b87a0bc
KS
39512003-06-05 Kim F. Storm <storm@cua.dk>
3952
3953 * window.c (coordinates_in_window): Convert X and Y to window
3954 relative coordinates inside mode-line and header-line parts.
3955 Convert X and Y to margin area relative coordinates inside left
3956 and right display margin parts.
3957
5a8a15ec
JR
39582003-06-05 Jason Rumney <jasonr@gnu.org>
3959
3960 * w32fns.c (add_system_logical_colors_to_map): New function.
3961 (Fx_open_connection): Use it.
3962
01ed8ff1
SM
39632003-06-04 Stefan Monnier <monnier@cs.yale.edu>
3964
3965 * process.c (allocate_pty): Revert part of the previous patch.
3966 (Faccept_process_output): Simplify.
3967
b427b65d
JR
39682003-06-04 Jason Rumney <jasonr@gnu.org>
3969
3970 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
3971
3972 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
3973 (lispy_mouse_wheel_names): Remove.
3974 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
3975 Always define drag_and_drop_syms.
3976
3977 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
3978 WHEEL_EVENT events.
3979
914a8c47
SM
39802003-06-03 Stefan Monnier <monnier@cs.yale.edu>
3981
01ed8ff1
SM
3982 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
3983
914a8c47
SM
3984 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
3985
adcb132c
JD
39862003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3987
3988 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
3989 menu item label.
3990
be781fa7
RS
39912003-06-03 Richard M. Stallman <rms@gnu.org>
3992
3993 * window.c (Fwindow_edges): Doc fix.
3994 (Fwindow_pixel_edges, Fwindow_inside_edges)
3995 (Fwindow_inside_pixel_edges): New functions.
3996 (syms_of_window): defsubr them.
3997
3998 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
3999 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4000
914a8c47
SM
40012003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4002
4003 * dispnew.c (Fsit_for): Don't lie about the number of args.
4004
5b07197a
DL
40052003-06-02 Dave Love <fx@gnu.org>
4006
4007 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4008 (syms_of_callproc) <process-environment>: Doc fix.
4009
4010 * doc.c: Use HAVE_FCNTL_H, not USG5.
4011
4012 * xfaces.c (font_rescale_ratio): Fix for K&R.
4013
4014 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4015
4016 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4017
4018 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4019
4020 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4021 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4022
d7107586 4023 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
4024
4025 * xmenu.c (ENCODE_MENU_STRING): New.
4026 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4027 Use it.
4028
4029 * coding.h (ENCODE_UTF_8): New.
4030 (Qutf_8): Declare.
4031
4032 * coding.c (Qutf_8): New.
4033 (syms_of_coding): Intern it.
4034
4035 * fns.c: Doc fixes.
4036
7335b336
KH
40372003-06-02 Kenichi Handa <handa@m17n.org>
4038
4039 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4040
914a8c47
SM
40412003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4042
4043 * lread.c (openp): Make sure STR is a string.
4044
9862c135
JR
40452003-06-01 David Ponce <david@dponce.com>
4046
4047 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4048 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4049
4050 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4051 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4052 (discard_mouse_events): Discard WHEEL_EVENT events too.
4053 (lispy_wheel_names, wheel_syms): New.
4054 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4055 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4056 defined.
914a8c47 4057 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
4058
4059 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4060 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4061 WHEEL_EVENT events.
4062
f984e73e
JPW
40632003-05-31 John Paul Wallington <jpw@gnu.org>
4064
4065 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4066 timer are in lisp/emacs-lisp.
4067
1efcd78f
KH
40682003-05-31 Kenichi Handa <handa@m17n.org>
4069
458c8af4
KH
4070 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4071 region when a buffer is changed to unibyte.
4072
1efcd78f
KH
4073 * charset.h (VALID_LEADING_CODE_P): New macro.
4074 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4075
778e2804
KH
4076 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4077 is nonzero, accept multibyte form of eight-bit-control chars.
4078 (decode_composition_emacs_mule): Likewise.
4079 (decode_coding_emacs_mule): Likewise.
4080 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4081 multibyte form of eight-bit-control chars.
4082
4083 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4084 (Finsert_file_contents): If coding-system-for-read is bound to
4085 Qauto_save_coding, use the coding system emacs-mule with special
4086 setting for recovering a file.
4087 (choose_write_coding_system): On auto saving, use the coding
4088 system emacs-mule with special setting for auto saving.
4089 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4090
034060e4
KH
40912003-05-30 Kenichi Handa <handa@m17n.org>
4092
4093 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4094 properly before calling ccl_driver.
4095
778e2804 4096 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
4097
4098 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4099 nonzero.
4100 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4101 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4102
595f5aa5
GM
41032003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
4104
4105 * xfaces.c (realize_default_face): Do not abort if lface is
4106 non-existent - reverts change from 2003-05-19.
4107
103e0180
KH
41082003-05-29 Kenichi Handa <handa@m17n.org>
4109
4110 * coding.c (decode_coding_iso2022): Pay attention to the byte
4111 sequence of CTEXT extended segment, and retain those bytes as is.
4112
41132003-05-28 Kenichi Handa <handa@m17n.org>
4114
4115 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
4116 of CODING_REPLACEMENT_CHARACTER.
4117 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
4118 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
4119 check this flag on encoding.
4120 (encode_coding_sjis_big5): Check
4121 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
4122 (Fset_terminal_coding_system_internal): Set
4123 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
4124 instead of setting CODING_FLAG_ISO_SAFE flag in
4125 terminal_coding.flags.
4126
4127 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
4128 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4129 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
4130
ff6a3bfb 41312003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 4132
ff6a3bfb
RS
4133 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
4134
4135 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 4136
1963c428
KS
41372003-05-28 Kim F. Storm <storm@cua.dk>
4138
4139 * xdisp.c (expose_window): Fix error in calculation of
4140 window relative coordinates of area to redisplay.
4141
2b5d4601
JR
41422003-05-27 Jason Rumney <jasonr@gnu.org>
4143
4144 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
4145
1c64a4a2
JB
41462003-05-27 David Ponce <david@dponce.com>
4147
4148 Handle W32 mouse wheel events as mouse click events, like in X.
4149
4150 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
4151 MOUSE_WHEEL_EVENT anymore.
4152
4153 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
4154 Scrolling down/up the mouse wheel is respectively mapped to mouse
4155 button 4 and 5.
4156 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4157 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
4158 WM_MOUSEWHEEL events.
4159
2d031b89
AS
41602003-05-27 Andreas Schwab <schwab@suse.de>
4161
20464fdf
AS
4162 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
4163
2d031b89
AS
4164 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
4165 partially visible line.
4166
4167 * alloc.c (Fgarbage_collect): Fix last change.
4168
97bc76d4
JPW
41692003-05-26 John Paul Wallington <jpw@gnu.org>
4170
4171 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
4172
56613f06
SM
41732003-05-25 Stefan Monnier <monnier@cs.yale.edu>
4174
4175 * window.c (Fset_window_buffer): Add type of `keep_margins'.
4176 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
4177
4178 * window.h (window_box_text_cols): Declare.
4179
4180 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
4181 (x_draw_vertical_border): Remove unused var `f'.
4182
4183 * xfaces.c (build_scalable_font_name): Remove `unused var
4184 pixel_size' warning.
4185
4186 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
4187
4188 * unexelf.c (unexec): Remove `unused var n' warning.
4189
4190 * strftime.c (my_strftime_localtime_r): Remove `defined but
4191 unused' warning.
4192
4193 * process.c (allocate_pty): Remove `unused var stb' and
4194 `cp might be used uninitialized' warnings.
4195
4196 * dispnew.c (mode_line_string): Remove unused var `f'.
4197
4198 * coding.c (find_safe_codings): Remove unused var `i'.
4199
4200 * bytecode.c (Fbyte_code): Remove `unused val' warning.
4201
4202 * buffer.c (Fkill_buffer): Remove unused var `list'.
4203
4204 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
4205
93421a1f
JD
42062003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4207
4208 * frame.c (make_frame): Condition want_fullscreen with
4209 HAVE_WINDOW_SYSTEM.
4210
c4b8aebc
JB
42112003-05-25 Juanma Barranquero <lektu@terra.es>
4212
4213 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
4214 (Fwindow_scroll_bars): Fix typo in docstring.
4215
0416870b
KS
42162003-05-24 Kim F. Storm <storm@cua.dk>
4217
4218 The following changes serve several purposes:
4219
4220 1) Swap the position of fringes and display margins in windows, i.e.
4221 the fringes are now displayed between the margins and the text area
4222 (by default).
4223
4224 2) Allow fringe and scroll bar parameters to be set per-buffer and
4225 per-window (like display margins). Such settings are now stored
4226 in window configurations, preserved when frames are resized, and
9018a88e 4227 copied when windows are split vertically or horizontally.
0416870b
KS
4228 Several bugs related to display margins have been fixed.
4229
4230 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 4231
0416870b
KS
4232 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
4233 rather than FRAME_WIDTH (FRAME_FONT (f)).
4234
4235 5) Introduce a consistent naming of variables, members and macros
4236 depending on whether their value is measured in pixels or in
4237 canonical columns/lines. Pixel dimensions are named *_width and
4238 *_height, while canonical columns/lines are named *_cols and
4239 *_lines. Pixel positions are named *_x and *_y, while column/line
4240 positions are named *_col and *_line.
4241
4242 6) Consolidate more of the X, W32, and MAC gui code by moving
4243 common data into struct frame, and generalize it for the non-gui
4244 case by using suitable defaults.
4245
4246 7) Cleanup and consolidate the macros controlling frame and window
4247 layout into frame.h and window.h, and generalize the use of the
4248 various window_box_* functions (enhanced to handle the new fringe
4249 position and the per-window fringe and scroll bar settings).
4250
4251 * frame.h (struct frame): Rename members height to text_lines,
4252 width to text_cols, window_height to total_lines, window_width to
4253 total_cols, new_height to new_text_lines, new_width to
4254 new_text_cols. All uses changed.
4255 (struct frame): New members which consolidate common members of
4256 x_output, w32_output, and mac_output structures: left_pos,
4257 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
4258 win_gravity, size_hint_flags, border_width, internal_border_width,
4259 line_height, fringe_cols, left_fringe_width, right_fringe_width,
4260 want_fullscreen. All uses changed.
4261 (struct frame): New member column_width contaning the canonical
4262 column width, analogue to line_height. All uses changed.
4263 (struct frame): Rename members scroll_bar_pixel_width to
4264 config_scroll_bar_width, and scroll_bar_cols to
4265 config_scroll_bar_cols. All uses changed.
4266 (struct frame): New member scroll_bar_actual_width which
4267 consolidates and renames the vertical_scroll_bar_extra member of
4268 x_output, w32_output, and mac_output structures. All uses changed.
4269 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
4270 from x/w32/macterm.h files. All uses changed. Also change code
4271 which referred to f->output_data...->pixel_height.
4272 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 4273 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
4274 which referred to f->output_data...->pixel_width.
4275 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
4276 Also change code which referred to f->height.
4277 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
4278 Also change code which referred to f->width.
4279 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
4280 to update new_text_lines and new_text_cols members directly.
4281 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
4282 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
4283 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
4284 FRAME_SCROLL_BAR_COLS. All uses changed.
4285 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
4286 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
4287 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
4288 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
4289 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
4290 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
4291 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
4292 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
4293 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
4294 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
4295 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
4296 return line_height member (it now has proper value also for
4297 non-window frames).
4298 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
4299 return new column_width member (rather than the default font width).
4300 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
4301 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
4302 from x/w32/macterm.h files. Unconditionally return corresponding
4303 member of frame structure (they now have proper values also for
4304 non-window frames).
4305 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
4306 Calculate return value from left and right widths.
4307 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
4308 internal_border_width member (has proper value for non-window frame).
4309 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
4310 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
4311 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
4312 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
4313 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
4314 consolidated from xterm.h, macterm.h, and w32term.h.
4315 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
4316 consolidated from xterm.h, macterm.h, and w32term.h.
4317 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
4318 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
4319 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
4320 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
4321 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
4322 consolidated from x/mac/w32term.h.
4323 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
4324 consolidated from x/mac/w32term.h.
4325 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
4326 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
4327 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
4328 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
4329
4330 * window.h (struct window): Rename members left to left_col,
4331 top to top_line, height to total_lines, width to total_cols,
4332 left_margin_width to left_margin_cols, right_margin_width to
4333 right_margin_cols, orig_height to orig_total_lines, orig_top to
4334 orig_top_line. All uses changed.
4335 (struct window): New members left_fringe_width, right_fringe_width,
4336 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
4337 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
4338 New macros primarily used to simplify other macros.
4339 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
4340 referred to XINT (w->width).
4341 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
4342 referred to XINT (w->height).
4343 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
4344 referred to XINT (w->width) * canon_x_unit.
4345 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
4346 referred to XINT (w->height) * canon_y_unit.
4347 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
4348 referred to XINT (w->left).
4349 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
4350 all uses and code that referred to XINT (w->left) + XINT (w->width).
4351 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
4352 referred to XINT (w->top).
4353 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
4354 referred to XINT (w->top) + XINT (w->height).
4355 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
4356 referred to XINT (w->left) * canon_x_unit.
4357 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
4358 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
4359 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
4360 referred to XINT (w->top) * canon_y_unit.
4361 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
4362 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
4363 (WINDOW_LEFTMOST_P): New macro.
4364 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
4365 All uses changed.
4366 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
4367 All uses changed.
4368 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
4369 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
4370 Do not exclude left fringe width.
4371 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
4372 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
4373 Do not exclude fringe widths.
4374 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
4375 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
4376 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
4377 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
4378 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
4379 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
4380 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
4381 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
4382 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
4383 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
4384 New macros. Change code which referenced corresponding
4385 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
4386 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
4387 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
4388 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
4389 allow per-window scroll-bar settings.
4390 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
4391 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
4392 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
4393 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
4394 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
4395 FRAME_SCROLL_BAR_WIDTH.
4396 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 4397 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
4398 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
4399 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
4400 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
4401 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
4402 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
4403 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
4404 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4405 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4406 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
4407 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
4408 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4409 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
4410 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4411 (window_from_coordinates): Update prototype.
4412 (Fset_window_buffer): Update EXFUN.
4413 (set_window_buffer): Update prototype.
9018a88e 4414
0416870b 4415 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 4416 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
4417 changed.
4418 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
4419 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
4420 internal_border_width is now set to 0 for non-window frames.
4421 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
4422 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
4423 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
4424 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
4425 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
4426 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4427 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4428 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
4429 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 4430 Move to window.h and renamed [see window.h changes].
0416870b
KS
4431 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
4432 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
4433 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
4434 Use WINDOW_TOTAL_LINES.
0416870b
KS
4435 (frame_update_line_height): Remove prototype.
4436
4437 * buffer.h (struct buffer): Rename members measured in columns:
4438 left_margin_width to left_margin_cols, right_margin_width to
4439 right_margin_cols. All uses changed.
4440 New members left_fringe_width, right_fringe_width,
4441 fringes_outside_margins for per-buffer fringe settings.
4442 New members scroll_bar_width and vertical_scroll_bar_type for
4443 per-buffer scroll bar settings.
4444
4445 * buffer.c (init_buffer_once): Set buffer_defaults and
4446 buffer_local_flags for new buffer-local variables
4447 left_fringe_width, right_fringe_width, fringes_outside_margins,
4448 scroll_bar_width, and vertical_scroll_bar_type.
4449 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
4450 default-* variables for them.
4451
4452 * dispnew.c: Make (many) trivial substitutions for renamed and
4453 new macros in dispextern.h, frame.h and window.h.
4454 (mode_line_string): No need to adjust width for mode lines, as it
4455 is already adjusted by the caller.
4456 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 4457
0416870b
KS
4458 * frame.c: Make (many) trivial substitutions for renamed and
4459 new macros in dispextern.h, frame.h and window.h.
4460 (make_frame): Initialize left_fringe_width, right_fringe_width,
4461 fringe_cols, scroll_bar_actual_width, border_width,
4462 internal_border_width, column_width, line_height, x_pixels_diff,
4463 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
4464 members with values suitable for a non-window frames.
4465
4466 * gtkutil.c: Make (many) trivial substitutions for renamed and
4467 new macros in dispextern.h, frame.h and window.h.
9018a88e 4468
0416870b
KS
4469 * indent.c: Make (few) trivial substitutions for renamed and
4470 new macros in dispextern.h, frame.h and window.h.
4471
4472 * keyboard.c: Make (many) trivial substitutions for renamed and
4473 new macros in dispextern.h, frame.h and window.h.
4474 (make_lispy_event): Use window positions returned from
4475 window_from_coordinates when constructing the lisp event for
4476 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
4477 (incorrect) values locally.
4478 (make_lispy_movement): Use window positions returned from
4479 window_from_coordinates when constructing the lisp event, rather
4480 than calculating (incorrect) values locally.
4481
4482 * scroll.c: Make (some) trivial substitutions for renamed and
4483 new macros in dispextern.h, frame.h and window.h.
4484
4485 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
4486 scroll-bars.
4487
4488 * sysdep.c: Make (few) trivial substitutions for renamed and
4489 new macros in dispextern.h, frame.h and window.h.
4490
4491 * term.c: Make (some) trivial substitutions for renamed and
4492 new macros in dispextern.h, frame.h and window.h.
4493
4494 * widget.c: Make (few) trivial substitutions for renamed and
4495 new macros in dispextern.h, frame.h and window.h.
4496
4497 * window.c: Make (many) trivial substitutions for renamed and
4498 new macros in dispextern.h, frame.h and window.h.
4499 (make_window): Initialize new members
4500 left_margin_cols, right_margin_cols, left_fringe_width,
4501 right_fringe_width, fringes_outside_margins, scroll_bar_width,
4502 and vertical_scroll_bar_type.
4503 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 4504 and per-window fringes and scroll-bars.
0416870b 4505 Fix bug related to incorrectly adjusting coordinates by
9018a88e 4506 frame's internal_border_width (the effect normally negible since
0416870b
KS
4507 the internal_border_width is typically 0 or 1 pixel, but very
4508 noticeable for an internal_border_width of e.g. 25 pixels).
4509 Upon successful return (other than ON_NOTHING), the coordinates
4510 are now always properly converted to window relative for the
4511 given display element.
4512 (window_from_coordinates): Add new parameters wx and wy to
4513 return the window relative x and y position in the returned
4514 window and part. A null arg means, don't return the position.
4515 All callers changed.
4516 (adjust_window_margins): New function which may reduce the width
4517 of the display margins if a window's text area is too small after
4518 resizing or splitting windows.
4519 (size_window): Fix bug that did not account for display margin
4520 widths when checking the minimum width of a window; use
4521 adjust_window_margins.
4522 (set_window_buffer): Call Fset_window_fringes and
4523 Fset_window_scroll_bars to setup per-window elements.
4524 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
4525 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
4526 (e.g. after splitting a window or resizing the frame).
4527 All callers changed.
0416870b
KS
4528 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
4529 (Fsplit_window): Duplicate original window's display margin,
4530 fringe, and scroll-bar settings; then call Fset_window_buffer with
4531 KEEP_MARGINS non-nil. This fixes a bug which caused a split
4532 window to only preserve the display margins in one of the windows.
c4b8aebc 4533 When splitting horizontally, call adjust_window_margins on both
0416870b
KS
4534 windows to ensure that the text area of the new windows is non too
4535 narrow. This fixes a bug which could cause emacs to trap if the
4536 width of the split window was less than the width of the display
4537 margins.
9018a88e
SM
4538 (window_box_text_cols): Renamed from window_internal_width.
4539 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
4540 Fix bug that caused vertical separator to be subtracted also on
4541 window frames. Fix another bug that did not reduce the returned
4542 value by the columns used for display margins.
4543 (window_scroll_line_based): Fix bug related to scrolling too much
4544 when display margins are present (implicitly fixed by the fix to
4545 window_box_text_cols).
4546 (scroll_left, scroll_right): Fix bug related to scrolling too far
4547 by default when display margins are present (implicitly fixed by
4548 the fix to window_box_text_cols).
4549 (struct saved_window): Rename members left to left_col, top to
4550 top_line, width to total_cols, height to total_lines, orig_top to
4551 orig_top_line, orig_height to orig_total_lines. All uses changed.
4552 New members left_margin_cols, right_margin_cols,
4553 left_fringe_width, right_fringe_width, fringes_outside_margins,
4554 scroll_bar_width, and vertical_scroll_bar_type for saving
4555 per-window display elements.
4556 (Fset_window_configuration): Restore display margins, fringes,
4557 and scroll bar settings. This fixes a bug which caused display
4558 margins to be discarded when saving and restoring a window
4559 configuration.
4560 (save_window_save): Save display margins, fringes, and scroll bar
4561 settings. This fixes a bug which caused display margins to be
4562 discarded when saving and restoring a window configuration.
4563 (Fset_window_margins): Do nothing if display margins are not
4564 really changed. Otherwise, call adjust_window_margins to ensure
4565 the text area doesn't get too narrow. This fixes a bug which
4566 could cause emacs to trap if setting display margins wider than
4567 the width of the window.
4568 (Fset_window_fringes): New defun to allow user to specifically set
4569 this window's fringe widths and position vs. display margins.
4570 (Fwindow_fringes): New defun to return window's actual fringe
4571 settings.
4572 (Fset_window_scroll_bars): New defun to allow user to specifically
4573 set this window's scroll bar width and position.
4574 (Fwindow_scroll_bars): New defun to return window's actual scroll
4575 bar settings.
4576 (compare_window_configurations): Also compare display margins,
4577 fringes, and scroll bar settings.
4578 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
4579
4580 * xdisp.c: Make (many) trivial substitutions for renamed and
4581 new macros in dispextern.h, frame.h and window.h.
4582 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 4583 and new fringe vs. display margin position. Note that returned
0416870b
KS
4584 value is no longer guaranteed to be a whole multiple of the frame
4585 column width, since per-window fringes may now be any width.
4586 (window_box_left_offset): New function like window_box_left, but
4587 value is relative to left border of window (rather than frame).
4588 (window_box_right_offset): New function like window_box_right,
4589 but value is relative to left border of window.
4590 (window_box_left): Adapt to per-window fringes and scroll bars,
4591 and new fringe vs. display margin position. Simplify by using
4592 WINDOW_LEFT_EDGE_X and window_box_left_offset.
4593 (window_box): Allow null args for unnecessary return values;
4594 change/simplify relevant callers.
4595 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
4596 and new fringe vs. display margin position.
4597 Use window_box_left_offset and window_box_right_offset
0416870b 4598 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
4599 scroll bars, and new fringe vs. display margin position.
4600 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
4601 (draw_fringe_bitmap): Rework to handle per-window fringes and new
4602 fringe vs. display margin position.
4603 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
4604 (redisplay_window): Adapt to per-window scroll bars.
4605 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
4606 bars, and new fringe vs. display margin position.
4607 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 4608 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
4609 bars, and new fringe vs. display margin position. Fix bug which
4610 increased total width of full_width rows by width of scroll bars
4611 although window's total width already includes that.
4612 (x_fix_overlapping_area): Simplify using window_box_left_offset.
4613 (expose_area): Simplify using window_box_left_offset.
4614 (x_draw_vertical_border): Handle per-window scroll bar settings,
4615 mixing windows with left, right and no scroll bars.
4616
4617 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
4618 where it's used in x_list_fonts (for clarity).
4619 (frame_update_line_height): Remove unused function; functionality
4620 is now done directly when setting the default font in x_set_font.
4621
4622 * xfns.c: Make (many) trivial substitutions for renamed and
4623 new macros in dispextern.h, frame.h and window.h.
4624
4625 * xmenu.c: Make (some) trivial substitutions for renamed and
4626 new macros in dispextern.h, frame.h and window.h.
4627
4628 * xterm.h (struct x_output): Move members left_pos, top_pos,
4629 border_width, pixel_height, pixel_width, line_height,
4630 internal_border_width, vertical_scroll_bar_extra,
4631 left_fringe_width, right_fringe_width, fringe_cols,
4632 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4633 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4634 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4635 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4636 (PIXEL_WIDTH, PIXEL_HEIGHT)
4637 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4638 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4639 frame.h and renamed [see frame.h changes].
4640 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4641 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4642 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4643 and renamed [see frame.h changes].
9018a88e 4644
0416870b
KS
4645 * xterm.c: Make (several) trivial substitutions for renamed and
4646 new macros in dispextern.h, frame.h and window.h.
4647 (x_draw_glyph_string_box): Adapt to per-window fringes and
4648 scroll-bars.
4649 (scroll_run): Adapt to new fringe position.
4650 (glyph_rect): Use window coordinates returned from
4651 window_from_coordinates rather than frame_to_window_pixel_xy.
4652 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4653 scroll-bars.
4654 (handle_one_xevent): Simplify a USE_GTK conditional.
4655 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4656 (fringes are now inside margins, i.e. always in the clipping area).
4657 All callers changed.
4658 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4659 directly, then call compute_fringe_widths. Don't call
4660 frame_update_line_height.
4661
4662 * w32term.h (struct w32_output): Move members left_pos, top_pos,
4663 border_width, pixel_height, pixel_width, line_height,
4664 internal_border_width, vertical_scroll_bar_extra,
4665 left_fringe_width, right_fringe_width, fringe_cols,
4666 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4667 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4668 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4669 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4670 (PIXEL_WIDTH, PIXEL_HEIGHT)
4671 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4672 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4673 frame.h and renamed [see frame.h changes].
4674 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4675 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4676 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4677 and renamed [see frame.h changes].
9018a88e 4678
0416870b
KS
4679 * w32term.c: Make (several) trivial substitutions for renamed and
4680 new macros in dispextern.h, frame.h and window.h.
4681 (x_draw_glyph_string_box): Adapt to per-window fringes and
4682 scroll-bars.
4683 (glyph_rect): Use window coordinates returned from
4684 window_from_coordinates rather than frame_to_window_pixel_xy.
4685 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4686 scroll-bars.
4687 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
4688 (fringes are now inside margins, i.e. always in the clipping area).
4689 All callers changed.
4690 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4691 directly, then call compute_fringe_widths. Don't call
4692 frame_update_line_height.
4693
4694 * w32console.c: Make (few) trivial substitutions for renamed and
4695 new macros in dispextern.h, frame.h and window.h.
4696
4697 * w32fns.c: Make (many) trivial substitutions for renamed and
4698 new macros in dispextern.h, frame.h and window.h.
4699
4700 * w32menu.c: Make (few) trivial substitutions for renamed and
4701 new macros in dispextern.h, frame.h and window.h.
4702
4703 * macterm.h (struct mac_output): Move members left_pos, top_pos,
4704 border_width, pixel_height, pixel_width, line_height,
4705 internal_border_width, vertical_scroll_bar_extra,
4706 left_fringe_width, right_fringe_width, fringe_cols,
4707 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4708 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
4709 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4710 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4711 (PIXEL_WIDTH, PIXEL_HEIGHT)
4712 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4713 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4714 frame.h and renamed [see frame.h changes].
4715 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4716 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4717 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4718 and renamed [see frame.h changes].
9018a88e 4719
0416870b
KS
4720 * macterm.c: Make (several) trivial substitutions for renamed and
4721 new macros in dispextern.h, frame.h and window.h.
4722 (x_draw_glyph_string_box): Adapt to per-window fringes and
4723 scroll-bars.
4724 (glyph_rect): Use window coordinates returned from
4725 window_from_coordinates rather than frame_to_window_pixel_xy.
4726 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4727 scroll-bars.
4728 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4729 (fringes are now inside margins, i.e. always in the clipping area).
4730 All callers changed.
4731 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4732 directly, then call compute_fringe_widths. Don't call
4733 frame_update_line_height.
4734
4735 * macfns.c: Make (several) trivial substitutions for renamed and
4736 new macros in dispextern.h, frame.h and window.h.
9018a88e 4737 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
4738
4739 * macmenu.c: Make (few) trivial substitutions for renamed and
4740 new macros in dispextern.h, frame.h and window.h.
4741
4742 * msdos.h (struct x_output): Remove members left_pos, top_pos,
4743 and line_height, and use corresponding new members in struct
4744 frame. All uses changed.
4745 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
4746 superseeded by corresponding macros in frame.h.
4747
4748 * msdos.c: Make (several) trivial substitutions for renamed and
4749 new macros in dispextern.h, frame.h and window.h.
4750 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 4751 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
4752 (internal_terminal_init): No need to initialize line_height here;
4753 it now defaults to 1.
4754
9018a88e
SM
47552003-05-24 Stefan Monnier <monnier@cs.yale.edu>
4756
4757 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
4758 dropping `down' events.
4759
016bd3c0
AS
47602003-05-24 Andreas Schwab <schwab@suse.de>
4761
4762 * coding.c (find_safe_codings): Fix last change.
4763
4dacadcc
TTN
47642003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
4765
4766 * xfns.c (x_window): Fix typo from 2003-05-21 change.
4767
319830ce
SM
47682003-05-23 Stefan Monnier <monnier@cs.yale.edu>
4769
9018a88e
SM
4770 * xdisp.c (display_mode_element): Increase max depth.
4771 Simplify the error handling code. Use a different error string
4772 for the case where we hit the depth limit.
4773
319830ce
SM
4774 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
4775
4776 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
4777
47782003-05-21 Stefan Monnier <monnier@cs.yale.edu>
4779
4780 * intervals.c (get_local_map): Don't get char-property of previous
4781 point any more: get_pos_property already does it and better.
4782
c67de8ba
DL
47832003-05-21 Dave Love <fx@gnu.org>
4784
4785 [Merged from unicode branch.]
4786
4787 * xfns.c (x_window, x_window): Use use_xim.
4788
4789 * xterm.c (use_xim): Initialize.
4790 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
4791 (x_term_init): Maybe set use_xim.
4792
4793 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
4794
edd3ff1d
JR
47952003-05-21 Jason Rumney <jasonr@gnu.org>
4796
4797 * unexw32.c (_start): Remove _fmode initialization.
4798
4799 * emacs.c (main) [WINDOWSNT]: Move it here.
4800
463f55ee
DL
48012003-05-20 Dave Love <fx@gnu.org>
4802
4803 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
4804
af253914
RS
48052003-05-19 Richard M. Stallman <rms@gnu.org>
4806
4807 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
4808 as value for QCfont attribute.
4809 (realize_default_face): lface should already exist; crash if not.
4810 Specify 0 for FORCE_P when calling set_lface_from_font_name.
4811
4812 * frame.c (Fignore_event): Doc fix.
4813
1d211019
KH
48142003-05-19 Kenichi Handa <handa@m17n.org>
4815
4816 * coding.c (decode_coding_string): Handle post-read-conversion
4817 even if the coding doesn't require decoding.
4818
4dd68254
RS
48192003-05-18 Richard M. Stallman <rms@gnu.org>
4820
4821 * callproc.c (Fcall_process_region): Doc fix.
4822
14d87dc9
SM
48232003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4824
deca5d96
SM
4825 * lread.c (Fload): Print a message if package is obsolete.
4826
14d87dc9
SM
4827 * window.c (Fselect_window): Add optional `norecord' arg.
4828 (select_window_1): Fold into Fselect_window.
4829 (select_window_norecord): New function.
4830 (temp_output_buffer_show): Use it. Preserve current buffer.
4831
4832 * window.h (Fselect_window): Update declaration.
4833
4834 * window.c (delete_window, Fother_window, Fset_window_configuration):
4835 * minibuf.c (read_minibuf):
4836 * macterm.c (x_new_focus_frame):
4837 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
4838 * callint.c (Fcall_interactively):
4839 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
4840
4841 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
4842
78f52183
DK
48432003-05-17 David Kastrup <dak@gnu.org>
4844
4845 * process.c (read_process_output): Back out change from 2003-03-09.
4846
14d87dc9
SM
48472003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4848
4849 * editfns.c (get_pos_property): Don't assume that `object' = nil.
4850
4851 * textprop.c (text_property_stickiness): New arg `buffer'.
4852
4853 * intervals.h (text_property_stickiness): New arg `buffer'.
4854 (get_pos_property): Declare.
4855
4856 * intervals.c (get_local_map): Use get_pos_property, to obey
4857 stickiness and empty overlays.
4858 (create_root_interval, graft_intervals_into_buffer): Use BEG.
4859 (merge_properties, intervals_equal, merge_properties_sticky):
4860 Use XCAR, XCDR.
4861 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
4862
1fd1cc2f
RS
48632003-05-17 Richard M. Stallman <rms@gnu.org>
4864
4f9f637a
RS
4865 * minibuf.c (read_minibuf): If buffer is empty, record the default
4866 in the history.
4867 (Fminibuffer_complete_word): When deleting the overlap, take account
4868 of its real position.
4869
4870 * fns.c (map_char_table): Fix previous change.
4871
1fd1cc2f
RS
4872 * syntax.c (find_defun_start):
4873 When open_paren_in_column_0_is_defun_start,
4874 return beginning of buffer.
4875
4876 * lisp.h (map_char_table): Declare added arg.
4877
4878 * fns.c (map_char_table): New arg TABLE gets the master table.
4879 All calls changed.
4880 Process default and inheritance, resorting to Faref if necessary.
4881
4882 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
4883 (Faccessible_keymaps): Pass new arg to map_char_table.
4884
4885 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
4886
4887 * casetab.c (set_case_table): Pass new arg to map_char_table.
4888
4889 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
4890
4891 * lisp.h (specbinding_func): New typedef.
4892 (struct specbinding): Use specbinding_func, to put the `volatile'
4893 in the right place.
4894
4895 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
4896 to avoid GCC warning.
14d87dc9 4897
b4bd27c5
RS
48982003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
4899
14d87dc9 4900 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 4901
35fb885d
SM
49022003-05-15 Stefan Monnier <monnier@cs.yale.edu>
4903
4904 * keyboard.c (apply_modifiers): Don't fill the other cache.
4905
9a274fbd
SM
49062003-05-14 Stefan Monnier <monnier@cs.yale.edu>
4907
c55b5fad
SM
4908 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
4909
9a274fbd
SM
4910 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
4911 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
4912 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
4913 (Fset_window_configuration, Fcurrent_window_configuration)
4914 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
4915 (Fpos_visible_in_window_p, mark_window_cursors_off)
4916 (window_internal_height, window_internal_width, Frecenter)
4917 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
4918 (replace_buffer_in_all_windows, init_window_once, init_window)
4919 (syms_of_window, keys_of_window): Move from lisp.h.
4920 * lisp.h: Move window.c declarations to window.h.
4921
4922 * bytecode.c: Include window.h.
4923 * emacs.c: Include window.h.
4924
14d87dc9 4925 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
4926 (keyremap): Add `parent' field.
4927 (keyremap_step): Use it. Remove `parent' argument.
4928 (read_key_sequence): Setup and use the new `parent' field.
4929
fd93e331
SM
49302003-05-11 Stefan Monnier <monnier@cs.yale.edu>
4931
4932 * keyboard.c (adjust_point_for_property): Ensure termination.
4933
1c4001a1
SM
49342003-05-10 Stefan Monnier <monnier@cs.yale.edu>
4935
4936 * keyboard.c (follow_key): Remove dead variable `did_meta'.
4937 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
4938 duplicated handling of function-key-map and key-translation-map
4939 in read_key_sequence.
4940 (read_key_sequence): Use them.
4941
4942 * keyboard.c (adjust_point_for_property): Try harder to move point
4943 to the non-sticky end of an invisible property.
4944
4945 * xdisp.c (single_display_prop_intangible_p): Make `space' display
4946 property intangible as well.
4947
780379b1
AS
49482003-05-10 Andreas Schwab <schwab@suse.de>
4949
4950 * xmenu.c (single_menu_item): Change last parameter to void* to
4951 avoid warning.
4952
ca2de342
RS
49532003-05-09 Richard M. Stallman <rms@gnu.org>
4954
4955 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
4956 Bind Qinhibit_modification_hooks to t so there will be no GC.
4957 Rename local `tem' to `save_deactivate_mark'.
4958
4959 * eval.c (specpdl_ptr): Declare volatile.
4960 (unbind_to): Copy the whole binding and decrement specpdl_ptr
4961 before doing the work of unbinding it.
4962
4963 * lisp.h (struct specbinding): Declare elements volatile.
4964 (specpdl_ptr): Declare volatile.
4965
4966 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
4967
4968 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
4969 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
4970
347003be
DL
49712003-05-08 Dave Love <fx@gnu.org>
4972
4973 * coding.c (Vlast_coding_system_used): Doc fix.
4974
5adcec23
JR
49752003-05-07 Jason Rumney <jasonr@gnu.org>
4976
4977 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
4978 when system does not support them.
4979
5fe3b8a4
SM
49802003-05-05 Stefan Monnier <monnier@cs.yale.edu>
4981
4982 * fileio.c (Qwrite_region_annotate_functions): New var.
4983 (build_annotations): Use it to process the global part of the hook.
4984 (syms_of_fileio): Init and staticpro it.
4985
4986 * keyboard.c (safe_run_hooks_error): Display a message instead of
4987 silently ignoring the error.
4988
49892003-05-03 Stefan Monnier <monnier@cs.yale.edu>
4990
4991 * keyboard.c (input_available_signal): Mark static.
4992 (menu_bar_items): Use map_keymap.
4993 (menu_bar_one_keymap): Remove.
4994 (menu_bar_item): Adjust arglist (for use in map_keymap).
4995 Properly hide a second binding when not both are keymaps.
4996
4997 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
4998 (single_keymap_panes): Use it and map_keymap.
4999 (single_menu_item): Use skp as well.
5000
5001 * keymap.h (map_keymap_function_t): New type.
5002 (map_keymap): Declare.
5003
5004 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5005 (map_keymap_call, Fmap_keymap): New functions.
5006 (syms_of_keymap): Defsubr map-keymap.
5007
4b1b4443
JD
50082003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5009
5010 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5011 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5012 ..._with_mnemonic functions for menu items.
5013
1f816871
KH
50142003-05-01 Kenichi Handa <handa@m17n.org>
5015
5016 * coding.c (coding_system_accept_latin_extra_p): Delete this
5017 function.
5018 (find_safe_codings): Pay attention to
5019 the property tranlsation-table-for-encode of each codings.
5020 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5021
5ed6ba5b
SM
50222003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5023
5024 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5025
32c06229
SM
50262003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5027
5028 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5029
5030 * lisp.h (CHECK): Wrap args in parenthesis.
5031 (specbind): Fix doc: symbol = Qnil is not supported any more.
5032
5033 * bytecode.c (Fbyte_code) <unwind-protect>:
5034 Use Fprogn rather than 0 and Qnil.
5035
5036 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5037 `double', and `triple' modifiers as well.
5038
ed3c3314
RS
50392003-04-30 Richard M. Stallman <rms@gnu.org>
5040
5041 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5042
5043 * alloc.c (abort_on_gc): New variable.
5044 (Fgarbage_collect): Abort if abort_on_gc is set.
5045
5046 * lisp.h (abort_on_gc): Add decl.
5047
5048 * eval.c (Fsignal): Clear abort_on_gc.
5049
5050 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 5051 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
5052
5053 * xdisp.c (move_it_vertically_backward): Do the final big else
5054 even if nlines is 0.
5055
5056 * xdisp.c (redisplay_internal): Finish the per-frame loop
5057 even if redisplay is suspended by input.
5058
0b325c12
AC
50592003-04-24 Andrew Choi <akochoi@shaw.ca>
5060
5061 * macterm.c (x_list_fonts): Return all fonts that match if
5062 maxnames = -1.
5063
4e837cd0
KH
50642003-04-25 Kenichi Handa <handa@m17n.org>
5065
5066 * syntax.c (skip_chars): Fix previous change.
5067
9af7511a
KH
50682003-04-24 Kenichi Handa <handa@m17n.org>
5069
5070 * syntax.c (skip_chars): Make the code faster by using the common
5071 technique of *p, *stop, and *endp.
5072
e3b2c21f
JD
50732003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5074
5075 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 5076 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
5077 being updated.
5078
32c06229
SM
50792003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5080
5081 * eval.c (Fapply): Undo last change and add a comment about why.
5082
c6464167
MB
50832003-04-18 Miles Bader <miles@gnu.org>
5084
5085 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5086 pickier PARSE_MULTIBYTE_SEQ.
5087
e509f168
SM
50882003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5089
5090 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5091 Use XCDR, XCAR, CONSP.
5092 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5093 (Fapply): Remove unnecessary GCPRO.
5094
5095 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5096
5097 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5098
5099 * buffer.h: Don't hardcode BEG==1.
5100
5101 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5102
5ceea398
RS
51032003-04-16 Richard M. Stallman <rms@gnu.org>
5104
5105 * xdisp.c (try_window, try_window_reusing_current_matrix):
5106 When at end of window, set window_end_pos to Z-ZV.
5107
5108 * buffer.c (Foverlay_recenter): Doc fix.
5109
e509f168
SM
51102003-04-14 Stefan Monnier <monnier@cs.yale.edu>
5111
5112 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
5113
d243e605
AC
51142003-04-14 Andrew Choi <akochoi@shaw.ca>
5115
5116 * macterm.c (mac_check_for_quit_char): Don't check more often than
5117 once a second.
5118
6901b111
SM
51192003-04-11 Stefan Monnier <monnier@cs.yale.edu>
5120
5121 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
5122 specially, so that they can't hide an implicit switch-frame event.
5123 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
5124 (head_table): Use switch-frame as event_kind for select-window.
5125 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
5126
5127 * editfns.c (Fformat): Lisp_Object/int mixup.
5128 (format2): Remove unused var numargs.
5129
e301806f 51302003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 5131
6901b111 5132 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
5133 (Qafter_insert_file_set_coding): New variable.
5134 (syms_of_fileio): Initialize and staticpro it. Delete declaration
5135 for after-insert-file-adjust-coding-function.
5136 (Finsert_file_contents): Call Qafter_insert_file_set_coding
5137 instead of Vafter_insert_file_adjust_coding_function.
5138
38914424
KH
51392003-04-11 Kenichi Handa <handa@m17n.org>
5140
5141 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
5142
5143 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
5144 string. Callers changed.
5145
51462003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 5147
6901b111 5148 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 5149 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
5150 (Finsert_file_contents):
5151 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
5152 decode-format.
5153
f979dc05
JD
51542003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5155
5156 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
5157 get GtkAdjustment as widget now is a GtkRange.
5158
5159 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
5160 GtkRange to avoid memory leak.
5161
f8c6b4c2 51622003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 5163
50ebc53d
KH
5164 * xfaces.c (Vface_font_rescale_alist): New variable.
5165 (struct font_name): New member rescale_ratio.
5166 (font_rescale_ratio): New function.
6901b111 5167 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
5168 (better_font_p): On comparing point sized, pay attention to
5169 recale_ratio member of fonts.
5170 (build_scalable_font_name): Reflect font->rescale_ratio in the
5171 font name.
6901b111 5172 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 5173
cb98871c
KH
5174 * lread.c (read1): Before calling index, check if the 2nd
5175 arguemnt is in ASCII range.
5176
4773b8ca
RS
51772003-04-08 Richard M. Stallman <rms@gnu.org>
5178
b0ada147
RS
5179 * fileio.c (Ffile_symlink_p): Doc fix.
5180
5181 * editfns.c (Fformat): Translate positions of text properties
5182 in the format string to apply them to the result.
5183
4773b8ca
RS
5184 * fileio.c (Finsert_file_contents): Doc fix.
5185 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
5186
51872003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 5188
4773b8ca
RS
5189 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
5190
e8f25745 51912003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 5192
e8f25745
ST
5193 * mac.c (init_mac_osx_environment): Switch libexec and bin so
5194 that self-contained application finds libexec files.
5195
f8c6b4c2 51962003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 5197
6901b111
SM
5198 * coding.c (code_convert_region_unwind):
5199 Set Vlast_coding_system_used to the argument.
2310d84c
KH
5200 (code_convert_region): If post-read-conversion function changed
5201 the value of last-coding-sytem, keep the new value in
5202 coding->symbol so that it won't be overridden.
5203 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
5204 (coding_system_accept_latin_extra_p): New function.
5205 (find_safe_codings): Pay attention to characters registered in
5206 latin-extra-code-table.
2310d84c 5207
39c9a034
TTN
52082003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
5209
5210 * Makefile.in (md5.o): Add missing dependency info.
5211
eb67c5d6
RS
52122003-04-06 Richard M. Stallman <rms@gnu.org>
5213
5214 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
5215
5216 * marker.c (verify_bytepos): New function.
5217
5218 * intervals.c (set_intervals_multibyte_1): When becoming
5219 multibyte, adjust right and left child sizes to a whole set of
5220 characters. If an interval gets zero total-length, delete it.
5221 If an interval consists of just its children, delete one of them.
5222
5223 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
5224 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 5225
eb67c5d6
RS
5226 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
5227 All calls deleted.
5228 (lisp_malloc): Do the work here directly.
5229
b1f81fc5
JB
52302003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
5231
5232 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
5233 char tables.
5234
52352003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
5236
5237 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
5238 destructively change "%S" to "%s".
5239
774666fb
MB
52402003-04-03 Miles Bader <miles@gnu.org>
5241
5242 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
5243 always set.
5244
19c37f01
DL
52452003-04-01 Dave Love <fx@gnu.org>
5246
5247 * xfns.c (xpm_lookup_color): Grok "opaque".
5248
2f4b24c3
AC
52492003-03-31 Andrew Choi <akochoi@shaw.ca>
5250
5251 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
5252 parent window ID.
5253
5254 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
5255
5256 * macterm.h (struct mac_output): Define x_pixels_diff and
5257 y_pixels_diff.
b1f81fc5 5258
9443fcf6
JB
52592003-03-31 Juanma Barranquero <lektu@terra.es>
5260
5261 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
5262 blockinput.h and files included from it.
5263
e072891b
KS
52642003-03-31 Kim F. Storm <storm@cua.dk>
5265
5266 The following changes consolidates the common code related to
5267 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
5268 files into frame.c.
9443fcf6 5269
e072891b
KS
5270 * frame.c: Include blockinput.h.
5271 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
5272 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
5273 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
5274 related vars here.
5275 (struct frame_parm_table, frame_parms): New table for describing
5276 frame parameters and their associated Q-variable.
5277 The order of the parameters corresponds to the sequence of the
5278 frame_parm_handlers table in redisplay_interface.
5279 (x_fullscreen_move, x_set_frame_parameters)
5280 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
5281 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
5282 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5283 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
5284 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
5285 Generic functions for processing of frame parameters.
5286 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
5287 (display_x_get_resource, x_get_resource_string): Functions for
5288 generic access to X resources.
5289 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5290 (x_default_parameter, Fx_parse_geometry): Functions for generic
5291 access to frame parameters.
6901b111
SM
5292 (x_figure_window_size): Generic calculation of frame size.
5293 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
5294 (syms_of_frame): Intern and staticpro frame parameter variables.
5295 Defvar_lisp Vx_resource_class and Vx_resource_name here.
5296 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 5297
e072891b
KS
5298 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
5299 parameter related vars defined in frame.c.
5300 (EMACS_CLASS): Define here.
5301 (enum FULLSCREEN_*): Define here.
5302 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
5303 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
5304 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
5305 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
5306 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
5307 (x_set_visibility, x_set_autoraise, x_set_autolower)
5308 (x_set_unsplittable, x_set_vertical_scroll_bars)
5309 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
5310 (x_figure_window_size): Add prototypes.
5311
5312 * dispextern.h (frame_parm_handler): New typedef.
5313 (struct redisplay_interface): New member frame_parm_handlers.
5314 (enum resource_types): Move declaration here.
5315 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5316 (x_default_parameter): Add prototypes.
5317
5318 * window.c: Remove extern decl for frame parameter vars.
5319 (change_window_heights): New generic function;
5320 replaces x_change_window_heights. All users changed.
5321
5322 * window.h (change_window_heights): Add prototype.
5323
5324 * xfaces.c: Remove extern decl for frame parameter vars.
5325
5326 * xterm.h (EMACS_CLASS): Remove. Use generic define.
5327 (struct w32_display_info): Fix type of xrdb member.
5328 (enum FULLSCREEN_*): Remove.
5329 Remove prototypes for generic functions (in frame.h).
5330
5331 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5332 parameters now defined in frame.h and frame.c.
f63fd14e 5333 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
5334 (enum x_frame_parms): Remove (bogus, unused enum).
5335 (check_x_display_info): Make non-static (for frame.c).
5336 (struct x_frame_parm_table, x_frame_parms): Remove.
5337 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5338 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5339 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5340 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5341 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5342 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5343 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5344 Remove. Use generic functions instead.
5345 (enum resource_types): Remove.
5346 (x_set_scroll_bar_default_width): New global function (for frame.c).
5347 (Fx_create_frame): Depend on x_figure_window_size to add space for
5348 toolbar and setup size_hint_flags.
5349 (x_frame_parm_handlers): New table for redisplay_interface.
5350 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 5351
e072891b 5352 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 5353 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
5354 (x_redisplay_interface): Add x_frame_parm_handlers member.
5355
5356 * w32gui.h (XrmDatabase): New (dummy) typedef.
5357
5358 * w32term.h (EMACS_CLASS): Remove. Use generic define.
5359 (struct w32_display_info): Fix type of xrdb member.
5360 (enum FULLSCREEN_*): Remove.
5361 (x_fullscreen_adjust): Remove prototype.
5362
5363 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5364 parameters now defined in frame.h and frame.c.
f63fd14e 5365 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
5366 (enum x_frame_parms): Remove (bogus, unused enum).
5367 (check_x_display_info): Make non-static (for frame.c).
5368 (struct x_frame_parm_table, x_frame_parms): Remove.
5369 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5370 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5371 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5372 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5373 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5374 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5375 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5376 Remove. Use generic functions instead.
5377 (enum resource_types): Remove.
5378 (x_set_scroll_bar_default_width): New global function (for frame.c).
5379 (Fx_create_frame): Depend on x_figure_window_size to add space for
5380 toolbar and setup size_hint_flags.
5381 (w32_frame_parm_handlers): New table for redisplay_interface.
5382 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 5383
e072891b
KS
5384 * w32term.c: Remove unnecessary extern declarations.
5385 (x_fullscreen_adjust): Remove. Use generic instead.
5386 (x_redisplay_interface): Add w32_frame_parm_handlers member.
5387
5388 * w32reg.c (x_get_string_resource): Use XrmDatabase.
5389
5390 * macgui.h (XrmDatabase): New (dummy) typedef.
5391
5392 * macterm.h (EMACS_CLASS): Remove.
5393 (struct mac_display_info): Add xrdb member.
5394 (struct mac_output): Add want_fullscreen member.
5395
5396 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5397 parameters now defined in frame.h and frame.c.
f63fd14e 5398 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
5399 (check_x_display_info): Make non-static (for frame.c).
5400 (struct x_frame_parm_table, x_frame_parms): Remove.
5401 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5402 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5403 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5404 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5405 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5406 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5407 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5408 Remove. Use generic functions instead.
5409 (enum resource_types): Remove.
5410 (x_set_scroll_bar_default_width): New global function (for frame.c).
5411 (mac_frame_parm_handlers): New table for redisplay_interface.
5412 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 5413
e072891b
KS
5414 * macterm.c: Remove unnecessary extern declarations.
5415 (x_redisplay_interface): Add mac_frame_parm_handlers member.
5416
3e6a560b
KS
5417 * Makefile.in (frame.o): Add dependency on blockinput.h and files
5418 included from it (atimer.h and systime.h).
5419
7b7b454e
AS
54202003-03-30 Andreas Schwab <schwab@suse.de>
5421
5422 * xdisp.c (x_insert_glyphs): Fix swapped width and height
5423 parameters for shift_glyphs_for_insert.
5424
5425 * macterm.c (x_redisplay_interface): Add missing entry for
5426 draw_vertical_window_border.
5427
beb402de
KG
54282003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5429
5430 * fileio.c (Fexpand_file_name): In the no-handler case, after
5431 expanding, look again for a handler and invoke it. This is needed
5432 for filenames like "/foo/../user@host:/bar/../baz" -- the first
5433 expansion produces "/user@host:/bar/../baz" which needs to be
5434 expanded again for the finame result "/user@host:/baz".
5435
b676f356
JD
54362003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5437
5438 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
5439 of area to be redrawn for better performance.
5440
3c671a56
SM
54412003-03-28 Stefan Monnier <monnier@cs.yale.edu>
5442
5443 * xterm.c (take_vertical_position_into_account): Remove.
5444 (xt_action_hook): Call set_vertical_scroll_bar if needed.
5445 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
5446 (xm_scroll_callback, x_create_toolkit_scroll_bar)
5447 (x_set_toolkit_scroll_bar_thumb): Simplify.
5448 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
5449 (XTread_socket): Remove unused var.
5450 (x_make_frame_invisible): Replace goto with else.
5451
5452 * xdisp.c (set_vertical_scroll_bar): New fun.
5453 (redisplay_window): Use it.
5454
84f2e615
RS
54552003-03-26 Richard M. Stallman <rms@gnu.org>
5456
5457 * xdisp.c (update_tool_bar): Recompute tool bar if
5458 update_mode_lines is set. Set w->update_mode_line
5459 only if the tool bar contents actually change.
5460 (update_menu_bar): Undo previous change.
5461
70b6104c
JD
54622003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5463
5fd6f727
JD
5464 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
5465 (xg_frame_set_char_size): Calculate scroll bar width before frame
5466 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
5467 (xg_separator_p): Check for all documented separator types.
5468 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
5469 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
5470
70b6104c
JD
5471 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
5472 so tool bar gets updated.
5473
d9b36d19
SM
54742003-03-26 Stefan Monnier <monnier@cs.yale.edu>
5475
5476 * data.c (store_symval_forwarding): Re-instate part of the code
5477 that was deleted with too much enthusiasm.
5478
54792003-03-25 Stefan Monnier <monnier@cs.yale.edu>
5480
5481 * data.c (store_symval_forwarding): Delete special read-only
5482 hack for type == -1, since we now use ->constant instead.
5483 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
5484
5485 * buffer.c (overlays_in): Declare static.
5486 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
5487 `constant' field rather than the variable's `type' field.
5488
365fa1b3
AC
54892003-03-24 Andrew Choi <akochoi@shaw.ca>
5490
5491 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
5492
5493 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
5494
5495 * fns.c [MAC_OSX]: Do not redefine vector.
5496
5497 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
5498
5499 * macgui.h: Remove definition of No_Cursor.
5500
d9b36d19 5501 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
5502
5503 * xdisp.c: Define No_Cursor.
5504 (x_write_glyphs, notice_overwritten_cursor)
5505 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
5506 (note_mouse_highlight): Remove Mac-specific code.
5507 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 5508
c0bcce6f
JPW
55092003-03-24 John Paul Wallington <jpw@gnu.org>
5510
5511 * xdisp.c (redisplay_window): If mini window's buffer is not
5512 empty, then redisplay it like other windows.
5513
a526b96c
KS
55142003-03-23 Kim F. Storm <storm@cua.dk>
5515
5516 * w32term.c (w32_draw_window_cursor): Fix last change.
5517
37ab321e
KH
55182003-03-23 Kenichi Handa <handa@m17n.org>
5519
a526b96c
KS
5520 * alloc.c (make_string_from_bytes, make_specified_string):
5521 Add `const' for the arg CONTENTS.
37ab321e
KH
5522
5523 * lisp.h (make_string_from_bytes, make_specified_string):
5524 Prototypes adjusted.
5525
7863d625
JD
55262003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5527
a526b96c 5528 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 5529
7863d625
JD
5530 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
5531 (XG_SB_RANGE): New define.
5532
5533 * gtkutil.c (xg_fixed_handle_expose): New function.
5534 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
5535 expose events.
5536 (xg_update_scrollbar_pos): Take two more arguments, left and width
5537 of scroll bar including borders.
5538 Clear left and right part outside scroll bar separately as some
5539 themes have bars that are not an even number of pixels.
d9b36d19 5540 Don't set reallocate_redraws, don't call
7863d625
JD
5541 gdk_window_process_all_updates.
5542 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
5543 so no need to change it. Calculate size and value with XG_SB_RANGE.
5544
d9b36d19
SM
5545 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
5546 Pass left and width of scroll bar including borders to
7863d625
JD
5547 xg_update_scrollbar_pos.
5548
af0ad939
TTN
55492003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
5550
5551 * Makefile.in: Make sure space precedes end-of-line backslashes.
5552
b22139fd
KS
55532003-03-22 Kim F. Storm <storm@cua.dk>
5554
5555 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
5556 Add generic versions here. Remove system specific versions
5557 defined elsewhere.
5558
5559 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
5560 Add prototypes.
5561
6e6410cf
KS
5562 * xterm.h (STORE_NATIVE_RECT): New macro.
5563
5c9cc435
KS
55642003-03-21 Kim F. Storm <storm@cua.dk>
5565
00c64fab
SM
5566 * xdisp.c (get_glyph_string_clip_rect):
5567 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
5568
5569 * dispextern.h (struct redisplay_interface): Add active_p
5570 argument to draw_window_cursor member. All uses changed.
5571
acd37560
KS
55722003-03-21 Kim F. Storm <storm@cua.dk>
5573
5574 The following changes consolidate code related to writing and
5575 inserting glyphs, exposing frame, the tool bar, the mouse face,
5576 the output cursor, and help echo from xterm.c, w32term.c and
5577 macterm.c into xdisp.c. It also generalizes the use of the
5578 window_part enum instead of using numeric values throughout.
af0ad939 5579
acd37560
KS
5580 * xdisp.c: Consolidate gui-independent code here.
5581 Include keymap.h.
5582 (Qhelp_echo): Import.
5583 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
5584 (help_echo_string, help_echo_window, help_echo_object)
5585 (previous_help_echo_string, help_echo_pos): Declare here.
5586 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
5587 (estimate_mode_line_height): Define here. Handle windowing
5588 systems directly (without using estimate_mode_line_height_hook).
5589 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
5590 (update_window_cursor, update_cursor_in_window_tree)
5591 (fast_find_position, fast_find_string_pos)
5592 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
5593 (expose_area, expose_line, expose_overlaps, expose_window)
5594 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
5595 declared static as they are only used locally in xdisp.c.
5596 (draw_glyphs): Rename from x_draw_glyphs and make static.
5597 (tool_bar_item_info, notice_overwritten_cursor): Make static.
5598 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5599 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 5600 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
5601 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5602 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
5603 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
5604 (note_mouse_highlight, x_clear_window_mouse_face)
5605 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
5606 (x_intersect_rectangles): New generic functions for use by xdisp.c
5607 and GUI front-ends.
5608 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
5609 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
5610
5611 * dispextern.h (Display_Info): Generic typedef for *_display_info.
5612 (NativeRectangle): Generic typedef for rectangle type.
5613 (enum window_part): Move here from window.c.
5614 (struct redisplay_interface): New members flush_display_optional,
5615 define_frame_cursor, clear_frame_area, draw_window_cursor,
5616 draw_vertical_window_border, shift_glyphs_for_insert.
5617 Rename member clear_mouse_face to clear_window_mouse_face.
5618 (estimate_mode_line_height_hook): Remove hook.
5619 (auto_raise_tool_bar_buttons_p): Don't declare extern.
5620 (tool_bar_item_info): Remove prototype.
5621 (help_echo_string, help_echo_window, help_echo_object)
5622 (previous_help_echo_string, help_echo_pos)
5623 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
5624 (x_stretch_cursor_p, output_cursor): Declare extern.
5625 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
5626 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
5627 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5628 (display_and_set_cursor, set_output_cursor, x_cursor_to)
5629 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
5630 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5631 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
5632 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
5633 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
5634 Add prototypes.
5635 (mode_line_string, marginal_area_string): Fix prototypes.
5636
5637 * window.c (enum window_part): Move to dispextern.h.
5638 (coordinates_in_window): Use enum window_part member names
5639 instead of numbers to describe return value.
5640 (struct check_window_data): Change part member to window_part.
5641 (check_window_containing): Return window_part unaltered.
5642 (window_from_coordinates): Change part arg from int to enum
5643 window_part. Allow part arg to be null. All users changed.
5644
5645 * window.h (window_from_coordinates): Fix prototype.
5646
5647 * term.c (estimate_mode_line_height): Move to xdisp.c.
5648
5649 * keyboard.c (make_lispy_event): Use enum window_part.
5650
5651 * dispnew.c (mode_line_string, marginal_area_string): Use enum
5652 window_part instead of int in arg list. Users changed.
5653
5654 * xterm.h (No_Cursor): Declare as None for X.
5655 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 5656
acd37560
KS
5657 * xterm.c: Remove consolidated defines and code.
5658 (BETWEEN): Remove unused macro.
5659 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
5660 (x_define_frame_cursor, x_clear_frame_area)
5661 (x_draw_window_cursor): New X-specific functions for RIF.
5662 (x_redisplay_interface): Add new members.
5663
5664 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
5665
5666 * w32term.h (struct w32_output): Remove cross_cursor member.
5667
5668 * w32term.c: Remove consolidated defines and code.
5669 (BETWEEN): Remove unused macro.
5670 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
5671 (w32_define_frame_cursor, w32_clear_frame_area)
5672 (w32_draw_window_cursor): New W32-specific functions for RIF.
5673 (w32_redisplay_interface): Add new members.
5674
a64387ee 5675 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
5676 (XRectangle): Add X compatible rectangle type.
5677 (NativeRectangle): Declare as RECT for W32.
5678 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5679
5680 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
5681
5682 * w32console.c: Remove consolidated defines and code.
af0ad939 5683
acd37560
KS
5684 * msdos.h (Display_Info): Add generic typedef.
5685
5686 * msdos.c: Remove consolidated defines and code.
5687 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
5688
5689 * macterm.h (struct mac_output): Replace member cross_cursor by
5690 hand_cursor.
5691 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
5692
5693 * macterm.c: Remove consolidated defines and code.
5694 (BETWEEN): Remove unused macro.
5695 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
5696 (mac_define_frame_cursor, mac_clear_frame_area)
5697 (mac_draw_window_cursor): New Mac-specific functions for RIF.
5698 (x_redisplay_interface): Add new members.
5699
5700 * macgui.h (No_Cursor): Define as 0 for Mac.
5701 (XRectangle): Add X compatible rectangle type.
5702 (NativeRectangle): Declare as Rect for Mac.
5703 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5704
204ccab1
KS
5705 * macfns.c (x_set_mouse_color): Setup hand_cursor.
5706 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 5707
9443fcf6 5708 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
5709 included from it. Add dependency on keymap.h.
5710
5711 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
5712
8ba01a70 57132003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
5714
5715 * fileio.c (Fexpand_file_name): Fix previous change.
5716
8ba01a70 57172003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
5718
5719 * fileio.c (Ffile_name_directory): Reconstruct file name by
5720 make_specified_string.
5721 (Ffile_name_nondirectory, Ffile_name_as_directory)
5722 (Fdirectory_file_name, Fexpand_file_name)
5723 (Fsubstitute_in_file_name): Likewise.
5724 (Fread_file_name): Compare decoded homedir with DIR and
5725 DEFAULT_FILENAME.
5726
5727 * alloc.c (make_specified_string): If NCHARS is negative, count
5728 the number of characters.
5729
19536747
JD
57302003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5731
de38ae5a
JD
5732 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
5733 all widgets.
5734
19536747
JD
5735 * gtkutil.h: Removed xg_ignore_next_thumb.
5736
37ab321e 57372003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
5738
5739 * coding.c (Vchar_coding_system_table): Remove this variable.
5740 (Vcoding_system_safe_chars): New variable.
5741 (intersection): Remove this function.
5742 (find_safe_codings): Don't use Vchar_coding_system_table, but try
5743 all codings in SAFE_CODINGS.
00c64fab 5744 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
5745 find_safe_codings. Get generic coding systems from
5746 Vcoding_system_safe_chars.
5747 (Fdefine_coding_system_internal): New function.
5748 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
5749 Initialize and staticpro Vcoding_system_safe_chars.
5750
17097258
JD
57512003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5752
2a2071c3
JD
5753 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
5754 equal old values before updating.
5755
17097258
JD
5756 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
5757
5758 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
5759
57602003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5761
5762 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
5763 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
5764 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
5765 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
5766 (xg_create_scroll_bar): Pass bar to button event callback.
5767 (xg_find_top_left_in_fixed): New function.
5768 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
5769 whole scroll bar area. Get old position with
5770 xg_find_top_left_in_fixed, calculate and only clear needed areas.
5771 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
5772 dragging is in progress. Calculate whole as for Motif.
5773 Remove code that saved last values. Call gtk_range functions to
5774 set scroll bar sizes.
5775
5776 * gtkutil.h: Removed xg_ignore_next_thumb.
5777
8cb9dfbf
JB
57782003-03-17 Juanma Barranquero <lektu@terra.es>
5779
5780 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
5781 and files included from it.
5782
00c64fab
SM
57832003-03-18 Stefan Monnier <monnier@cs.yale.edu>
5784
5785 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
5786 multiple occurrences of the same keymap under different prefixes.
5787 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
5788
c45bb3b2
JR
57892003-03-16 Jason Rumney <jasonr@gnu.org>
5790
5791 * w32gui.h: Use HDC for Display.
5792
5793 * w32term.c (w32_encode_char): Prevent double-byte chars from
5794 crashing Emacs.
5795
5796 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
5797 as binary.
5798
2a6d0874
JB
57992003-03-16 Juanma Barranquero <lektu@terra.es>
5800
5801 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
5802
03eb5fab
KS
58032003-03-16 Kim F. Storm <storm@cua.dk>
5804
5805 The following changes consolidate some of the gui-independent
5806 parts of the processing and drawing of "glyph strings" from
5807 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 5808
03eb5fab
KS
5809 * dispextern.h (struct glyph): Reduce face_id member from 22 to
5810 21 bits (this reduces number of faces from 4M to 2M).
5811 Replace W32 specific w32_font_type member (2 bits) by generic
5812 font_type member (3 bits) for portability.
5813 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
5814 (enum draw_glyphs_face): Define here.
5815 (struct glyph_string): Define here. Merge W32 and X versions.
5816 (struct redisplay_interface): New members per_char_metric,
5817 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
5818 (VCENTER_BASELINE_OFFSET): Define here.
5819 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
5820 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
5821
5822 * xdisp.c: Consolidate gui-independent "glyph string" code here.
5823 (dump_glyph_string): Moved here.
5824 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
5825 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
5826 (fill_composite_glyph_string, fill_glyph_string)
5827 (fill_image_glyph_string, fill_stretch_glyph_string)
5828 (left_overwritten, left_overwriting, right_overwritten)
5829 (right_overwriting, get_char_face_and_encoding)
5830 (set_glyph_string_background_width, compute_overhangs_and_x)
5831 (append_glyph, append_composite_glyph, produce_image_glyph)
5832 (take_vertical_position_into_account, append_stretch_glyph)
5833 (produce_stretch_glyph): New generic functions (based on X version).
5834 Call platform specific functions through rif.
5835 (INIT_GLYPH_STRING): New macro, hides W32 details.
5836 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
5837 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
5838 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
5839 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
5840 (notice_overwritten_cursor):
5841 Generic functions exported to platform modules. Users changed.
5842
5843 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
5844 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
5845 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 5846 New macros for consolidated code.
2a6d0874 5847
03eb5fab
KS
5848 * xterm.c: Remove consolidated defines and code.
5849 (x_per_char_metric, x_encode_char)
5850 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
5851 (x_redisplay_interface): Add new members.
5852
5853 * w32gui.h (Display): Add dummy typedef for consolidation.
5854 (XChar2b): Define alias for wchar_t for consolidation.
5855 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5856
5857 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 5858 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
5859 New macros for consolidation.
5860
fad49844 5861 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
5862 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
5863 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
5864 (w32_per_char_metric): Change font_type arg to int for RIF.
5865 (w32_encode_char): Return int according to RIF requirements.
5866 (w32_compute_glyph_string_overhangs): Adapt to RIF.
5867 (w32_get_glyph_overhangs): New function for RIF. Uses generic
5868 x_get_glyph_overhangs.
5869 (w32_redisplay_interface): Add new members.
5870
5871 * macgui.h (XChar2b): Move typedef here for consolidation.
5872 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5873
5874 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
5875 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
5876 consolidation.
5877
5878 * macterm.c: Remove consolidated defines and code.
5879 (mac_per_char_metric): New function for RIF.
00c64fab 5880 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
5881 (mac_compute_glyph_string_overhangs): Adapt for RIF.
5882 (x_redisplay_interface): Add new members.
5883
00c64fab
SM
58842003-03-15 Stefan Monnier <monnier@cs.yale.edu>
5885
5886 * keymap.c (Vmenu_events): New var.
5887 (syms_of_keymap): Initialize it.
5888 (where_is_internal): Check more carefully what is a menu event.
5889
225c7a07
RS
58902003-03-14 Richard M. Stallman <rms@gnu.org>
5891
5892 * lread.c (read1): After #!, exit loop on eof.
5893
cea9be54
JD
58942003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5895
9ea0e54d
JD
5896 * gtkutil.h: Add declaration for xg_frame_cleared.
5897
0cb35f4e
JD
5898 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
5899
cea9be54
JD
5900 * gtkutil.c (struct xg_last_sb_pos): New structure.
5901 (handle_fixed_child): New function.
5902 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
5903 and force a redraw on them.
5904 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
5905 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
5906 so we can avoid unneeded redraws.
5907 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
5908 and force a redraw on the scroll bar.
5909 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
5910 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 5911 (xg_frame_cleared): New function.
cea9be54 5912
20b853f3
KH
59132003-03-13 Kenichi Handa <handa@m17n.org>
5914
5915 * coding.c (Fdetect_coding_region): Fix docstring.
5916 (Fdetect_coding_string): Fix docstring.
5917
7a555aff
AS
59182003-03-13 Andreas Schwab <schwab@suse.de>
5919
25cc0080
AS
5920 * gtkutil.c: Add prototype for create_menus.
5921
30225431
AS
5922 * data.c (long_to_cons): Fix type of top.
5923
5924 * xselect.c (selection_data_to_lisp_data): Use int instead of
5925 long for an integer of size 4.
5926
7a555aff 5927 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 5928 (xg_tool_bar_help_callback): Likewise.
7a555aff 5929
a3e4741f
AS
59302003-03-12 Andreas Schwab <schwab@suse.de>
5931
5932 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
5933
9668be7c
KS
59342003-03-12 Kim F. Storm <storm@cua.dk>
5935
03eb5fab 5936 The following changes consolidate the fringe handling from
9668be7c 5937 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 5938
9668be7c
KS
5939 * xdisp.c: Consolidate fringe handling code here.
5940 (left_bits, right_bits, continued_bits, continuation_bits)
5941 (ov_bits, zv_bits): Define fringe bitmaps.
5942 (fringe_bitmaps): New array holding fringe bitmaps.
5943 (draw_fringe_bitmap): Draw a specific bitmap; call display
5944 specific drawing routine via rif->draw_fringe_bitmap.
5945 (draw_row_fringe_bitmaps): Generic replacement for
5946 x_draw_row_fringe_bitmaps; all callers changed.
5947 (compute_fringe_widths): Generic replacement for
5948 x_compute_fringe_widths; all callers changed.
5949
5950 * dispextern.h (enum fringe_bitmap_type): Define here.
5951 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
5952 (fringe_bitmaps): Declare extern.
5953 (struct redisplay_interface): New member draw_fringe_bitmap.
5954 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
5955
5956 * xterm.c: Remove generic fringe code.
5957 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5958 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5959
5960 * w32term.c: Remove generic fringe code.
5961 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
5962 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 5963
9668be7c
KS
5964 * macterm.c: Remove generic fringe code.
5965 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5966 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5967
00a88f32
SM
59682003-03-11 Stefan Monnier <monnier@cs.yale.edu>
5969
5970 * print.c (Fprin1_to_string): Return unibyte string if possible.
5971
1d1de695
DK
59722003-03-09 David Kastrup <dak@gnu.org>
5973
5974 * process.c (read_process_output): We have allocated enough space
5975 for readmax and carryover, so actually use the alloted space.
5976
257f40f2
JD
59772003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5978
5979 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
5980 toolkit scrollbar click.
5981
5982 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
5983 for USE_GTK.
5984 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
5985 also.
5986 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
5987 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 5988
257f40f2
JD
5989 * gtkutil.h: Declare xg_get_scroll_id_for_window.
5990
5991 * gtkutil.c (xg_get_scroll_id_for_window): New function.
5992 (xg_tool_bar_item_expose_callback): New function.
5993 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
5994 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
5995 on the tool bar widget.
5996 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
5997 to expose on the tool bar item widgets.
5998
15213141
JD
59992003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6000
26b74a0b 6001 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 6002 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
6003 deleted from the image cache).
6004
15213141
JD
6005 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6006 the event isn't for a frame (i.e. for dialogs).
6007
20b853f3 60082003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
6009
6010 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6011 composition components reaches the limit, terminate composing.
6012 (COMPOSITION_OK): New macro.
00a88f32 6013 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
6014 composition is found.
6015 (coding_restore_composition): Adjust the number of composition
6016 components if it is not sane.
6017
c9029fe5
JB
60182003-03-06 Juanma Barranquero <lektu@terra.es>
6019
6020 * w32term.h (struct w32_display_info): Add xrdb member to support
6021 passing resources via -xrm on Windows.
6022
6023 * w32term.c (w32_make_rdb): New function.
6024 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6025 struct. Delete leftover code.
6026
6027 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6028 for resources passed on the command line.
6029
6030 * w32reg.c (w32_get_rdb_resource): New function.
6031 (x_get_string_resource): Use it, so resources passed with -xrm
6032 supercede the ones in the registry.
6033
9d00001f
JD
60342003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6035
6036 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6037 instead of x_top_window_to_frame.
6038
ca2417b9
JD
60392003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6040
6041 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6042 when restarting Emacs.
6043
5b20caf0
RS
60442003-03-03 Richard M. Stallman <rms@gnu.org>
6045
6046 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6047 to run kill-buffer-query-functions.
6048 (Qkill_buffer_query_functions): New var.
6049 (syms_of_buffer): Init and staticpro it.
6050
58e91b77
JD
60512003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6052
6053 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6054
932357b4
KS
60552003-02-25 Kim F. Storm <storm@cua.dk>
6056
6057 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6058 If centering point failed to make whole line visible and vscroll
6059 is non-zero, disable vscroll and try centering point again.
6060
6061 * lread.c (read1): Accept `single space' syntax like (? x).
6062
bb8db7e1
JD
60632003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6064
6065 * keyboard.c (cancel_hourglass_unwind): Surround with
6066 #ifdef HAVE_X_WINDOWS
6067
47d77aab
KH
60682003-02-25 Kenichi Handa <handa@m17n.org>
6069
6070 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6071 process only when "subprocesses" is defined.
6072
6a097c0c
SM
60732003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6074
6075 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6076
0b063c27
JB
60772003-02-24 Juanma Barranquero <lektu@terra.es>
6078
d1135afc
JB
6079 * callint.c (fix_command): Declare as static void and move before
6080 Fcall_interactively.
6081
0b063c27
JB
6082 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6083 (syms_of_xdisp): Don't initialize Qwhen.
6084
0af912f0
JD
60852003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6086
6087 * keyboard.c (cancel_hourglass_unwind): New function.
6088 (command_loop_1): Cancel hourglass with unwind-protect.
6089
120d0a23
RS
60902003-02-23 Richard M. Stallman <rms@gnu.org>
6091
6092 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6093 Detect (when ... (region-beginning)) etc.
6094 (Fcall_interactively): Call fix_command.
6095 (Qif, Qwhen): New variables.
6096 (syms_of_callint): Init and staticpro them.
0b063c27 6097
120d0a23
RS
6098 * regex.c (print_partial_compiled_pattern): Output to stderr.
6099
4ece81a6
KG
61002003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6101
6102 * dired.c (directory_files_internal): Don't expand directory.
6103 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
6104 instead. From Lars Hansen <larsh@math.ku.dk>.
6105
e52bd6b7
SM
61062003-02-22 Stefan Monnier <monnier@cs.yale.edu>
6107
6108 * fns.c (string_to_multibyte): Remove unused var i.
6109 (Flanginfo): Fix int/Lisp_Object mixup.
6110 (void_call2): New fun.
6111 (Fmap_char_table): Use it in place of call2.
6112
6113 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
6114
6115 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
6116
6117 * keymap.c (copy_keymap_1): Make it static.
6118
6119 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
6120
c33ef7c4
JB
61212003-02-22 David Ponce <david@dponce.com>
6122
6123 * lread.c (Fload): Don't check STRING_MULTIBYTE.
6124
16782258
JD
61252003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6126
6127 * process.h: Removed subtty field from struct Lisp_Process.
6128
6129 * process.c (create_process): Remove setting of subtty.
6130 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
6131 (Fprocess_running_child_p, process_send_signal):
6132 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
6133 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
6134
3abeca61
KG
61352003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6136
6137 * keymap.c (Fdefine_key): Doc fix.
6138
92a8ce63
JB
61392003-02-21 Juanma Barranquero <lektu@terra.es>
6140
6141 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
6142
6143 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
6144 POLLING_PROBLEM_IN_SELECT.
6145
6146 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
6147 Delete #undef of POLLING_PROBLEM_IN_SELECT.
6148
6149 * s/hpux10-20.h: New file.
6150
e52bd6b7
SM
6151 * process.c (wait_reading_process_input):
6152 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 6153
20f1ef2e
KH
61542003-02-20 Kenichi Handa <handa@m17n.org>
6155
32d0a9dc
KH
6156 * fontset.c (check_fontset_name): If NAME is nil, return the
6157 default fontset.
6158 (override_font_info): New function.
e52bd6b7 6159 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
6160 (Ffontset_info): If FONTSET is not the default fontset, merge
6161 FONTSET onto the copy of the default fontset, and work on that
6162 copy. Document that NAME nil means the default fontset.
6163 (Ffontset_font): Document that NAME nil means the default fontset.
6164
20f1ef2e
KH
6165 * process.c (setup_process_coding_systems): If the process's
6166 in/out descriptor is -1, do nothing.
6167
77d1daf2
AS
61682003-02-19 Andreas Schwab <schwab@suse.de>
6169
e52bd6b7
SM
6170 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
6171 Add prototypes.
77d1daf2 6172
f9a45bb3
KH
61732003-02-19 Kenichi Handa <handa@m17n.org>
6174
6175 * xfaces.c (try_alternative_families): Try all scalable fonts if
6176 Vscalable_fonts_allowed is not Qt.
6177
72ecb43c
JD
61782003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6179
6180 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
6181
ee5be7c3
JD
61822003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6183
6184 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
6185 names.
6186
6187 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 6188 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
6189 x_face_list_fonts.
6190 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
6191 (Fx_list_fonts): Set maxnames to -1 to get all font names.
6192
4cd519a7
KS
61932003-02-18 Kim F. Storm <storm@cua.dk>
6194
068f9882
KS
6195 * lread.c (read1): Fix last change.
6196 "`" is not always special. Allow "?" after a character constant.
4cd519a7 6197
7290a344
AC
61982003-02-18 Andrew Choi <akochoi@shaw.ca>
6199
6200 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
6201
1f7fa69b
AS
62022003-02-18 Andreas Schwab <schwab@suse.de>
6203
6204 * window.c (window_scroll_pixel_based): Move outside a
6205 multi-glyph character before setting new window start.
6206
6207 * xdisp.c (in_display_vector_p): New function.
6208 * dispextern.h (in_display_vector_p): Declare.
6209
23e21195
KS
62102003-02-18 Kim F. Storm <storm@cua.dk>
6211
6212 * lread.c (read1): Fix and relax read syntax.
6213 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
6214 Only recognize "," after dotted-pair dot if inside backquote.
6215 Never include "`" or "," (inside backquote) in a symbol.
6216 Allow dotted-pair dot after a character constant.
6217 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 6218
f098b121
JD
62192003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6220
6221 * gtkutil.c (xg_tool_bar_expose_callback): New function.
6222 (xg_create_tool_bar): Force style of tool bar to be horizontal with
6223 icons. Set name of tool bar to emacs-toolbar.
6224 (update_frame_tool_bar): Connect expose event to
6225 xg_tool_bar_expose_callback.
6226
63020c46
RS
62272003-02-17 Richard M. Stallman <rms@gnu.org>
6228
6229 * keyboard.c (this_command_key_count_reset): New variable.
6230 Initiatize to 0 where this_command_key_count is set.
6231 (read_char): Save and restore this_command_key_count_reset
6232 around input method code.
6233 (read_char): If this_command_key_count_reset, echo reread commands.
6234 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
6235
fb4452cc
KH
62362003-02-17 Kenichi Handa <handa@m17n.org>
6237
6238 * fns.c (string_to_multibyte): Always return a multibyte string.
6239
bd11cc09
JR
62402003-02-16 Jason Rumney <jasonr@gnu.org>
6241
e52bd6b7
SM
6242 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
6243 Negative max_fonts parameter means list all.
bd11cc09 6244
4cdf4bde
DL
62452003-02-14 Dave Love <fx@gnu.org>
6246
6247 * fns.c (Flanginfo): Doc fix.
6248
023b93f6
KS
62492003-02-13 Kim F. Storm <storm@cua.dk>
6250
37cd4238
KS
6251 * lread.c (read_escape): Interpret \s as a SPACE character, except
6252 for \s-X in a character constant which still is the super modifier.
6253 (read1): Signal an `invalid read syntax' error if a character
6254 constant is immediately followed by a digit or symbol character.
6255
140a6b7e
KS
6256 * search.c (Fmatch_data): Doc fix. Explicitly state that
6257 match-data is undefined if last search failed.
6258
023b93f6
KS
6259 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
6260 All uses changed.
6261
7d5c86e5
JB
62622003-02-12 Juanma Barranquero <lektu@terra.es>
6263
6264 * eval.c (Fdefmacro): Fix typo.
6265
295fff2c
KS
62662003-02-12 Kim F. Storm <storm@cua.dk>
6267
6268 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
6269 macro is a string, convert meta modifiers in string when copying
6270 the string into a vector.
6271
60f3202d
KS
62722003-02-11 Kim F. Storm <storm@cua.dk>
6273
6274 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
6275
61cb0b53
KH
62762003-02-11 Kenichi Handa <handa@m17n.org>
6277
6278 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
6279
7392e23c
KS
62802003-02-10 Kim F. Storm <storm@cua.dk>
6281
6282 * process.c: Doc fixes.
6283 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
6284
ce4254bd
KH
62852003-02-10 Kenichi Handa <handa@m17n.org>
6286
9c7a329a
KH
6287 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
6288
ce4254bd
KH
6289 * process.c (QCfilter_multibyte): New variable.
6290 (setup_process_coding_systems): New function.
e52bd6b7
SM
6291 (Fset_process_buffer, Fset_process_filter):
6292 Call setup_process_coding_systems.
ce4254bd
KH
6293 (Fstart_process): Initialize the member `filter_multibyte' of
6294 struct Lisp_Process.
6295 (create_process): Call setup_process_coding_systems.
6296 (Fmake_network_process): New keyward `:filter-multibyte'.
6297 Initialize the member `filter_multibyte' of struct Lisp_Process.
6298 Call setup_process_coding_systems.
6299 (server_accept_connection): Call setup_process_coding_systems.
6300 (read_process_output): If the process has a filter, decide the
6301 multibyteness of a string to given to the filter by
6302 `filter_multibyte' member of the process. If the process doesn't
6303 have a filter and the result of conversion is unibyte, use
6304 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
6305 multibyte form.
6306 (Fset_process_coding_system): Call setup_process_coding_systems.
6307 (Fset_process_filter_multibyte): New function.
6308 (Fprocess_filter_multibyte_p): New function.
6309 (syms_of_process): Intern and staticpro QCfilter_multibyte.
6310 Defsubr Sset_process_filter_multibyte and
6311 Sprocess_filter_multibyte_p.
6312
6313 * process.h (struct Lisp_Process): New member filter_multibyte.
6314
6315 * lisp.h (setup_process_coding_systems): Add prototype.
6316
6317 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
6318 process, update coding systems for the process.
6319
b08d5f59
KH
63202003-02-09 Kenichi Handa <handa@m17n.org>
6321
6322 * fns.c (string_to_multibyte): New function.
6323 (Fstring_to_multibyte): New function.
6324 (syms_of_fns): Defsubr it.
6325
0dfd93c0
AS
63262003-02-08 Andreas Schwab <schwab@suse.de>
6327
6328 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
6329 instead of the substitution.
6330
7b76ca1c
JD
63312003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6332
6333 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
6334
6335 * xmenu.c (menu_position_func): Adjust menu popup position so that
6336 the menu is fully visible.
7b76ca1c 6337
2436a4e4
JD
63382003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6339
6340 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
6341 (x_make_frame_invisible, x_wm_set_icon_position):
6342 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
6343
6344 * xfns.c (x_set_name, x_set_title): Ditto.
6345
37d1e680
RS
63462003-02-04 Richard M. Stallman <rms@gnu.org>
6347
6348 * keyboard.c (echo_now): Update before_command_echo_length.
6349 (Freset_this_command_lengths): Reset this_command_key_count etc.
6350 immediately rather than arranging to do it later.
6351 (before_command_key_count_1, before_command_echo_length_1)
6352 (before_command_restore_flag): Vars deleted.
6353 (add_command_key): Don't handle before_command_restore_flag.
6354 (read_char, record_menu_key): Don't update before_command_key_count or
6355 before_command_echo_length.
6356 (read_char): Don't handle before_command_restore_flag.
6357
6358 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
6359 in direct-output clauses if it wouldn't be called in the ordinary case.
6360
578846a3
KS
63612003-02-04 Kim F. Storm <storm@cua.dk>
6362
6363 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
6364
49853a4d
JD
63652003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6366
6367 * gtkutil.c (remove_from_container): Copying list is not needed.
6368 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
6369 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
6370 on list returned from gtk_container_get_children to avoid memory leak.
6371
8b53dc06
JR
63722003-02-01 Jason Rumney <jasonr@gnu.org>
6373
5d54d177
JR
6374 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
6375 local malloc.
6376 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
6377 definitions in xpm.h.
6378 (init_xpm_functions): New function.
f63fd14e 6379 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
6380 (init_external_image_libraries): Try to load libXpm.dll.
6381
8b53dc06
JR
6382 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
6383 timestamp.
6384
b222e415
DL
63852003-01-31 Dave Love <fx@gnu.org>
6386
6387 * syntax.c (Fskip_chars_forward)
6388 (open-paren-in-column-0-is-defun-start): Doc fix.
6389
c60ee5e7
JB
63902003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
6391
6392 * fileio.c: Support // at start of name for Cygwin (just added proper
6393 preprocessor tests).
6394
6395 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
6396
6397 * Makefile.in: Use @EXEEXT@ for Cygwin.
6398
6399 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
6400
6401 * s/cygwin.h: Added for Cygwin port.
6402
53b37591
JB
64032003-01-31 Juanma Barranquero <lektu@terra.es>
6404
6405 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
6406 when including gif_lib.h.
fe929957 6407 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
6408 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
6409 Windows. Disable color table lookups. Call library functions
53b37591 6410 through pointers determined at runtime.
fe929957
JB
6411 (init_external_image_libraries): Try to load libungif.dll and
6412 libtiff.dll.
53b37591 6413
45415a8f
KH
64142003-01-31 Kenichi Handa <handa@m17n.org>
6415
6416 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 6417 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 6418
a97e4138
JD
64192003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6420
e52bd6b7 6421 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 6422
6eed9bed
DL
64232003-01-30 Dave Love <fx@gnu.org>
6424
6425 * alloc.c (Vgc_elapsed, gcs_done): New variables.
6426 (Fgarbage_collect): Use them.
6427 (init_alloc, syms_of_alloc): Set them up.
6428
100dcd40
JB
64292003-01-30 Juanma Barranquero <lektu@terra.es>
6430
6431 * w32fns.c (init_external_image_libraries): Add missing operator.
6432
fbd852af
JR
64332003-01-29 Jason Rumney <jasonr@gnu.org>
6434
6435 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
6436 an alternative name for jpeg.dll.
6437
8a2d8020
KH
64382003-01-29 Kenichi Handa <handa@m17n.org>
6439
6440 * xdisp.c (set_cursor_from_row): Pay attention to string display
6441 properties.
6442
058c18c7
AC
64432003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6444
6445 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
6446 <escape>.
6447 (keycode_to_xkeysym_table): Reformat and add more comments.
6448 (XTread_socket): Drop special case for backspace.
6449
385f11cf
AC
64502003-01-28 Andrew Choi <akochoi@shaw.ca>
6451
6452 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
6453 values in old-style RGB specs.
6454
c922a224
JB
64552003-01-27 Juanma Barranquero <lektu@terra.es>
6456
6457 * w32fns.c (init_external_image_libraries): Try alternate names for the
6458 jpeg dll.
6459
0a1d6de0
JD
64602003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6461
6462 * gtkutil.c (create_dialog, xg_separator_p)
6463 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
6464 before calling strcmp or strlen.
6465
a97e4138 64662003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
6467
6468 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
6469 and handle image load failure.
6470
28908312
JR
64712003-01-26 Jason Rumney <jasonr@gnu.org>
6472
6473 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
6474 New functions.
f63fd14e
JB
6475 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
6476 Disable color table lookups. Call jpeg library functions
28908312
JR
6477 through pointers determined at runtime.
6478 (init_external_image_libraries): Try to load jpeg.dll.
6479
84e47416
RS
64802003-01-25 Richard M. Stallman <rms@gnu.org>
6481
6482 * lisp.h: Declare format2 instead of format1.
6483
6484 * fileio.c (barf_or_query_if_file_exists):
6485 Call format2 instead of format1.
6486
6487 * editfns.c (format2): New function, replaces format1
6488 but takes exactly two Lisp Objects as format args.
6489
6490 * buffer.c (Fkill_buffer): Call format2 instead of format1.
6491
a97e4138 64922003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
6493
6494 * xterm.h: Change to return value of x_dispatch_event to int.
6495
6496 * xterm.c (x_filter_event): New function.
6497 (event_handler_gdk, XTread_socket): Call x_filter_event.
6498 (x_dispatch_event): Change to return value of finish.
6499 (event_handler_gdk): Use return value from x_dispatch_event.
6500
6501 * xfns.c (x_window): Call create_frame_xic for GTK version to
6502 initialize input methods.
6503
6504 * gtkutil.h: Add (void) prototypes.
6505
6506 * gtkutil.c (create_menus): Remove code that puts the help menu to
6507 the right.
6508
54eefef1
JR
65092003-01-25 Jason Rumney <jasonr@gnu.org>
6510
6511 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
6512 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
6513 (png_load): Adjust colors for Windows. Use Windows
6514 bitmaps. Disable color table lookups.
c262430d
JR
6515 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
6516 (init_png_functions): New function.
6517 (png_read_from_memory, png_load): Call png library functions
6518 through pointers determined at runtime.
6519 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
6520 (init_external_image_libraries): New function.
6521 (init_xfns): Call it.
54eefef1 6522
1a9e275b
AS
65232003-01-24 Andreas Schwab <schwab@suse.de>
6524
6525 * minibuf.c (Fminibuffer_message): Verify type of parameter.
6526
a97e4138 65272003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
6528
6529 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
6530 of static initializer.
6531
422eec7e
DL
65322003-01-24 Dave Love <fx@gnu.org>
6533
6534 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
6535 architectures.
6536
6537 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
6538 Use __alignof__.
6539
2a026b04
KH
65402003-01-24 Kenichi Handa <handa@m17n.org>
6541
6542 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 6543 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
6544 (command_loop_1): Call adjust_point_for_property with proper
6545 second arg.
6546
a18bb28d
JR
65472003-01-22 Jason Rumney <jasonr@gnu.org>
6548
6549 Sync changes with xterm.c and xfns.c.
6550
6551 * w32term.c (x_draw_glyph_string_foreground)
6552 (x_draw_composite_glyph_string_foreground): Implement overstriking.
6553
6554 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
6555 phys_cursor's hpos is overwritten. This is still not completely
6556 correct, as it doesn't really make sense to use hpos at all to
6557 get the cursor glyph (as that is relative to the width of the
6558 characters on the line, which may have changed during the update).
6559
6560 * w32term.c (notice_overwritten_cursor): Handle the special case
6561 of the cursor being in the first blank non-text line at the
6562 end of a window.
6563
6564 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6565 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6566 Compute from the x position returned by x_draw_glyphs.
6567
6568 (x_display_and_set_cursor): Don't set phys_cursor_width here,
6569 except for NO_CURSOR and system caret, to make phys_cursor_width
6570 contain what its name suggests.
6571 (notice_overwritten_cursor): Consider the cursor image erased if
6572 the output area intersects the cursor image in y-direction.
6573
6a097c0c
SM
6574 * w32term.c (note_mode_line_or_margin_highlight): Rename from
6575 note_mode_line_highlight and extend.
a18bb28d
JR
6576
6577 * w32term.c (last_window): New variable.
6578 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
6579 (note_mouse_movement): Remove reimplemented code in #if 0.
6580
6581 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
6582 not update_mode_lines, and always set it to 1.
6583
ac6e47ef
JR
65842003-01-21 Jason Rumney <jasonr@gnu.org>
6585
6586 * w32fns.c (IDC_HAND): Define it if system headers don't.
6587
65882003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6589
6590 * w32term.h (struct w32_output): New member hand_cursor.
6591 (WM_EMACS_SETCURSOR): New message definition.
6592
6593 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
6594 function w32_define_cursor.
6595 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
6596 position, change member name output_data.x to output_data.w32 and
6597 add function w32_define_cursor.
6598 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
6599 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
6600 (w32_initialize_display_info):
6601 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
6602
6603 * w32fns.c (Vx_hand_shape): New variable.
6604 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
6605 WM_EMACS_SETCURSOR.
6606 (x-create-frame): Setup Cursor types.
6607
ceb39a17
JB
66082003-01-21 David Ponce <david@dponce.com>
6609
ac6e47ef 6610 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 6611 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 6612 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 6613 2002-09-30.)
ac6e47ef
JR
6614 (w32_draw_relief_rect): Declare all args.
6615 (w32_define_cursor): New.
6616
6617 * w32fns.c (w32_load_cursor): New function.
6618 (w32_init_class): Use it.
6619 (x_put_x_image): Declare all args.
6620
46cf0bed
JB
66212003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
6622
6623 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
6624
a97e4138 66252003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
6626
6627 * gtkutil.c: Must include stdio.h before termhooks.h
6628
83fc9c63
DL
66292003-01-21 Dave Love <fx@gnu.org>
6630
6631 * alloc.c (Fgc_status): Print zombie list.
6632 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6633 Fix assignment of zombies.
6634 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6635 Don't take car of non-cons.
6636
6637 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6638
6639 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6640
fe04b8c8
JR
66412003-01-20 David Ponce <david@dponce.com>
6642
6643 * w32menu.c (digest_single_submenu): Declare all args.
6644
6645 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
6646 changes in xmenu.c:
6647
6648 (parse_single_submenu): Use individual keymap's prompt
6649 string as pane name, if there is one.
6650 (set_frame_menubar): Save menu_items_n_panes from each call to
6651 parse_single_submenu and use it when calling digest_single_submenu.
6652
539e69a9
ST
66532003-01-20 Steven Tamm <steventamm@mac.com>
6654
6655 * macterm.c (XTread_socket): Checks for valid, visible window
6656 before sending a scroll-wheel event.
6657
675d000f
RS
66582003-01-20 Richard M. Stallman <rms@gnu.org>
6659
6660 * xdisp.c (redisplay_window): If mini window's buffer is not
6661 a minibuffer, then redisplay it like other windows.
6662
a97e4138 66632003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
6664
6665 * gtkutil.c (xg_create_frame_widgets): Check if there is an
6666 external tool bar before setting tool bar height.
6667
048addec
JD
66682003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6669
6670 * xterm.c (handle_one_xevent): Surround popup_activated
6671 with #ifdef:s for non-toolkit version.
6672
6673 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
6674 (gtkutil.o): New file.
6675 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
6676 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
6677
6678 * gtkutil.c: New file for GTK version.
6679
6680 * gtkutil.h: New file for GTK version.
6681
6682 * xterm.h: Add xt_or_gtk_widget.
6683 Include gtk files for USE_GTK.
6684 (struct x_output): Add toolbar_height.
6685 (struct x_output): Add GTK widgets and Gdk size_hints.
6686 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
6687 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
6688 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
6689
6690 * xterm.c: Include gtkutil.h for USE_GTK.
6691 Declare extern void free_frame_menubar for USE_GTK.
6692 (note_mouse_highlight): Check popup_activated for USE_GTK.
6693 (xt_action_hook): Don't compile if USE_GTK.
6694 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
6695 (xg_scroll_callback): New function.
6696 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
6697 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
6698 for USE_GTK.
6699 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
6700 xg_show_scroll_bar for USE_GTK.
6701 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
6702 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
6703 (event_handler_gdk): New function for USE_GTK.
6704 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
6705 (handle_one_xevent): Make sure widget is mapped before
6706 calling x_real_positions for USE_GTK.
6707 (XTread_socket): Add GTK event loop for USE_GTK.
6708 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
6709 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
6710 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
6711 (x_iconify_frame): Add code for USE_GTK.
6712 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
6713 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
6714 is in gtkutil.c.
6715 (x_term_init): Add initialization for GTK.
6716 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
6717
6718 * xmenu.c: Include gtkutil.h for USE_GTK.
6719 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
6720 (single_menu_item, single_menu_item, Fx_popup_dialog):
6721 Check for USE_GTK.
048addec
JD
6722 (popup_widget_loop): New function for USE_GTK.
6723 (x_activate_menubar): Add code for USE_GTK.
6724 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
6725 (menu_highlight_callback, menubar_selection_callback):
6726 Add USE_GTK versions.
048addec
JD
6727 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
6728 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
6729 (free_frame_menubar): Only compile if not USE_GTK. GTK version
6730 is in gtkutil.c.
6731 (popup_selection_callback): New version for USE_GTK.
6732 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 6733 one USE_X_TOOLKIT version.
048addec
JD
6734 (xmenu_show): Call create_and_show_popup_menu.
6735 (dialog_selection_callback): New version for USE_GTK.
6736 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 6737 one USE_X_TOOLKIT version.
048addec
JD
6738 (xdialog_show): Call create_and_show_dialog.
6739
6740 * xfns.c: Include gtkutil for USE_GTK.
6741 (x_window_to_frame, x_any_window_to_frame)
6742 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6743 (x_top_window_to_frame): Add code for USE_GTK.
6744 (x_set_background_color): Call xg_set_background_color for GTK.
6745 (x_set_menu_bar_lines): Check for USE_GTK.
6746 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
6747 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
6748 (x_window): Call xg_create_frame_widgets for USE_GTK.
6749 (Fx_create_frame): Check for USE_GTK
6750 (Fx_file_dialog): New implementation for USE_GTK.
6751
6752 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
6753 (update_menu_bar): Add check for USE_GTK.
6754 (update_tool_bar): Add check for USE_GTK and external tool bar.
6755 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
6756 (redisplay_internal): Add check for USE_GTK and popup_activated.
6757 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
6758 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
6759 (display_menu_bar): Add check for USE_GTK
6760
6761 * lisp.h: Declare Vx_resource_name extern.
6762
a64387ee 6763 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
6764 for USE_GTK.
6765 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
6766
6767 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
6768 (FRAME_EXTERNAL_TOOL_BAR): New macro.
6769 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
6770
6771 * fileio.c (Fread_file_name): Add check for USE_GTK.
6772
6bdb309a
SM
6773 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
6774 Add check for USE_GTK.
048addec
JD
6775
6776 * config.in: Added HAVE_GTK
6777
6778 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
6779
67802003-01-18 Stefan Monnier <monnier@cs.yale.edu>
6781
6782 * charset.h (Funibyte_char_to_multibyte): Export.
6783
67842003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6785
6786 * xmenu.c (mouse_position_for_popup): New function.
6787 (Fx_popup_menu): Call mouse_position_for_popup for X and
6788 mouse_position_hook for others.
6789
67902003-01-17 Kim F. Storm <storm@cua.dk>
6791
6792 * editfns.c (Finsert): Mention `string-make-multibyte' and
6793 `string-as-multibyte' in doc string.
6794
67952003-01-17 Kenichi Handa <handa@m17n.org>
6796
6797 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 6798
048addec
JD
6799 * editfns.c (Fformat): Convert an unibyte char argument that is
6800 formatted by "%c" to multibyte if the total result must be a
6801 multibyte string.
cd7df9c0 6802
048addec 68032003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 6804
048addec
JD
6805 * process.c (set-process-filter): Document unibyte/multibyte-ness
6806 of string argument.
56210ecd 6807
048addec 68082003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 6809
048addec 6810 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 6811
048addec
JD
6812 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
6813 (re_search_2): Likewise.
6df8b9fe 6814
048addec 68152003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 6816
048addec
JD
6817 * xdisp.c (message_dolog): Fix bug of the case that *Message*
6818 buffer is unibyte.
292ddc31 6819
048addec 68202003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 6821
048addec 6822 * fns.c (Fsubstring): Clarify doc string.
292ddc31 6823
048addec
JD
6824 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
6825 (Fprevious_char_property_change)
6826 (Fnext_single_char_property_change)
6827 (Fprevious_single_char_property_change, Fnext_property_change)
6828 (Fnext_single_property_change, Fprevious_property_change)
6829 (Fprevious_single_property_change, Fadd_text_properties)
6830 (Fput_text_property, Fset_text_properties)
6831 (Fremove_text_properties, Fremove_list_of_text_properties)
6832 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 6833
048addec 68342003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 6835
048addec
JD
6836 * process.h (struct Lisp_Process): New member plist replaces old
6837 member private_vars. All uses changed.
63e4e4c6 6838
048addec 6839 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 6840 (QCplist): Rename from QCvars. Change all uses.
048addec 6841 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 6842 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 6843 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 6844 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 6845
048addec 68462003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 6847
6bdb309a 6848 * m/delta.h: Remove (obsolete).
e833850f 6849
048addec 68502003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 6851
048addec
JD
6852 * fileio.c (Fdelete_directory, Fdelete_file): Document the
6853 behaviour in front of symlinks.
6854 (Fdelete_file): Raise an error on directories.
817cb127 6855
048addec 68562003-01-13 Dave Love <fx@gnu.org>
817cb127 6857
048addec 6858 * fns.c (Freverse): Use QUIT.
3e8cf2ea 6859
048addec 68602003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 6861
048addec
JD
6862 * minibuf.c (minibuffer_completion_contents):
6863 Error if point is inside prompt.
3e8cf2ea 6864
048addec
JD
6865 * keyboard.c (command_loop_1): Don't redisplay directly
6866 if there's a post-command-hook.
3e8cf2ea 6867
048addec
JD
6868 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
6869 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 6870
048addec 68712003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 6872
048addec 6873 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 6874
048addec
JD
6875 * process.c (QCvars): New variable.
6876 (syms_of_process): Intern and staticpro it.
6877 (Fset_process_contact): Removed function.
6878 (Fprocess_variable, Fset_process_variable): New functions.
6879 (syms_of_process): Defsubr them.
6880 (Fstart_process): Initialize private_vars plist to nil.
6881 (Fmake_network_process): New arg :vars to setup the private
6882 variables for new network process.
6883 (server_accept_connection): Copy server's private variables to
6884 client process.
2c10f029 6885
048addec
JD
6886 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
6887 crashes). Code rewritten and simplified. Now directly aligns the
6888 pointer and recalculates pure_bytes_used, rather than aligning the
6889 size and adjusting the pointer.
b8a76c6c 6890
048addec 68912003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 6892
048addec
JD
6893 * process.c (Fset_process_contact): New function.
6894 (syms_of_process): defsubr it.
6895 (make-network-process): Update doc.
3a8d0899 6896
048addec 68972003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 6898
048addec
JD
6899 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
6900 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 6901
048addec 69022003-01-10 Dave Love <fx@gnu.org>
4abc7470 6903
048addec 6904 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 6905
048addec 69062003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 6907
048addec
JD
6908 * process.c (Fmake_network_process): Convert new port number
6909 to host byte order for `:service t' case. From Mario Lang.
bf338245 6910
048addec 69112003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 6912
048addec
JD
6913 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
6914 instead of XtAppProcessEvent.
bf338245 6915
048addec
JD
6916 * xterm.c (handle_one_xevent): New function.
6917 (x_dispatch_event): New function.
6918 (XTread_socket): Call handle_one_xevent.
bf338245 6919
048addec 6920 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 6921
048addec
JD
6922 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
6923 call XQueryPointer to get coordinates.
6924 (popup_get_selection): Do not set popup_activated_flag to zero,
6925 let popup_deactivate_callback do that. Needed for Motif.
6926 Call x_dispatch_event instead of XtDispatchEvent.
6927 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 6928
048addec 69292003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 6930
6bdb309a 6931 * process.c (server_accept_connection): Fix recording of new
048addec
JD
6932 connection's local address in :local property of contact info.
6933 (Fmake_network_process): Record local network address for new
6934 client processes in :local property of contact info.
6bdb309a 6935 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 6936
048addec 69372003-01-07 Dave Love <fx@gnu.org>
00e3ab56 6938
048addec 6939 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 6940
048addec 69412003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 6942
048addec 6943 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 6944
048addec
JD
6945 * eval.c (Fuser_variable_p): Doc change. For custom variables,
6946 use the same test as for custom-variable-p.
8c6d74c6 6947
048addec 69482003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 6949
048addec
JD
6950 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
6951 Count LAST_LINE_MISFIT in scroll margin for end of window.
6952 Move label too_near_end before setting SCROLL_MARGIN_POS.
6953 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 6954
048addec
JD
6955 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
6956 scroll_conservatively case. If scrolling that much doesn't change
6957 STARTP, move it down one line.
e833850f 6958
048addec
JD
6959 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
6960 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 6961
048addec
JD
6962 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
6963 selected frame.
8c6d74c6 6964
048addec
JD
6965 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
6966 (syms_of_keymap): staticpro them.
6967 (Fapropos_internal): Initialize them and clear them out.
6968 Don't GCPRO them.
8c6d74c6 6969
048addec
JD
6970 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
6971 Doc fixes.
8c6d74c6 6972
048addec
JD
6973 * lisp.h: New misc type Lisp_Save_Value.
6974 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
6975 (XSAVE_VALUE): New macro.
6976 (struct Lisp_Save_Value): New data type.
6977 (union Lisp_Misc): Add u_save_value alternative.
6978 (make_save_value): Declared.
8c6d74c6 6979
048addec 6980 * alloc.c (make_save_value): New function.
8c6d74c6 6981
048addec
JD
6982 * xterm.c (x_catch_errors): Save dpy using make_save_value.
6983 (x_catch_errors_unwind): Call XSync.
8c6d74c6 6984
048addec 69852003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 6986
048addec 6987 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 6988
048addec
JD
6989 * keyboard.c (command_loop_1): Call adjust_point_for_property
6990 in direct action cases for Qforward_char and Qbackward_char.
6991 Set already_adjusted so it won't be done twice.
8c6d74c6 6992
048addec 69932002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 6994
048addec
JD
6995 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
6996 type definition of size_t.
8c609cff 6997
048addec 69982003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 6999
048addec
JD
7000 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7001 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 7002
048addec 70032002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 7004
048addec
JD
7005 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7006 to default to t.
fa634a5e 7007
048addec 70082002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 7009
048addec 7010 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 7011
048addec 70122002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 7013
048addec
JD
7014 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7015 allow building in a different directory than source. Uses some
7016 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 7017
048addec 70182002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 7019
048addec
JD
7020 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7021 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7022 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7023 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 7024
048addec 70252002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 7026
048addec
JD
7027 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7028 <scroll-down-aggressively>: Doc fix.
2155ecf3 7029
048addec
JD
7030 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7031 string as pane name, if there is one.
7032 (set_frame_menubar): Save menu_items_n_panes from each call to
7033 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 7034
048addec
JD
7035 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7036 Don't try to make last line fully visible if it is past end of window.
61f1d295 7037
048addec 70382002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 7039
048addec
JD
7040 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7041 (mac_menu_show): Add support for hierarchical popup menus.
7042 (add_menu_item): Remove indentation support.
7043 (fill_submenu, fill_menu): Create hierarchical menus
7044 instead of using indentation.
0b17a217 7045
048addec 70462002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 7047
048addec
JD
7048 * xdisp.c (try_cursor_movement): Don't call try_window here.
7049 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 7050
048addec 7051 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 7052
048addec 70532002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 7054
048addec
JD
7055 * macterm.c (XTread_socket): Call KeyTranslate for control and
7056 meta to deal correctly shifted non-alpha characters, like C-S-5
7057 being treated like C-%. Does not look for shift key to deal
7058 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 7059
048addec 70602002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 7061
048addec
JD
7062 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7063 If it is non-nil, run timers. Use an unwind-protect to requeue
7064 the events that were read ahead.
7065 (popup_get_selection_unwind): New subroutine.
7066 (popup_get_selection_queue): File-scope variable now holds that queue.
7067 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7068 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7069 Use an unwind-protect to pop down the dialog box.
7070 (xdialog_show_unwind): New subroutine implements that.
f02cac82 7071
048addec
JD
7072 * xdisp.c (row_containing_pos): Change exit test using last_y.
7073 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 7074
048addec
JD
7075 * lread.c (load_error_handler): New function.
7076 (Fload): Handle errors in Fsubstitute_in_file_name.
7077 Don't expect Fsignal to return.
f02cac82 7078
048addec
JD
7079 * eval.c: Errors and throws work right with interrupt blocking.
7080 (struct catchtag): New elt interrupt_input_blocked.
7081 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7082 (internal_catch, Fcondition_case, internal_condition_case)
7083 (internal_condition_case_1, internal_condition_case_2): Save it.
7084 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 7085
048addec 7086 * editfns.c (Fformat): Add parens.
f02cac82 7087
048addec
JD
7088 * dired.c (file_name_completion): Fix that change.
7089 Delete special quit-handling code; just use QUIT.
f02cac82 7090
048addec 70912002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 7092
048addec
JD
7093 * dired.c (file_name_completion): Close directory on error
7094 just as in directory_files_internal.
1a590729 7095
048addec 70962002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 7097
048addec
JD
7098 * window.c (Fset_window_configuration): Set old_point to correct
7099 value when new_current_buffer == current_buffer.
f02cac82 7100
048addec 71012002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 7102
048addec
JD
7103 Revisited my earlier fix for the following entry in etc/PROBLEMS:
7104 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7105 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 7106
048addec
JD
7107 These changes were in part based upon suggestions made by Peter
7108 'Luna' Runestig [peter@runestig.com].
9785d95b 7109
048addec
JD
7110 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
7111 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 7112 g_b_init_get_sid_identifier_authority ): Add several static
048addec 7113 global variables.
9785d95b 7114
048addec
JD
7115 * w32.c (globals_of_w32): New function. Used to initialize those
7116 global variables that must always be initialized on startup even
7117 when the global variable initialized is non zero. Its primary
7118 purpose at this time is to set the global variables
7119 g_b_init_is_windows_9x, g_b_init_open_process_token,
7120 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
7121 g_b_init_get_sid_identifier_authority to 0 on startup.
7122 Called from main.
9785d95b 7123
048addec
JD
7124 * w32.c (is_windows_9x): Perform initialization only if
7125 g_b_init_is_windows_9x is equal to 0. On initialization set
7126 g_b_init_is_windows_9x equal to 1.
2308af15 7127
048addec
JD
7128 * w32.c (open_process_token): Perform initialization only if
7129 g_b_init_open_process_token is equal to 0. On initialization set
7130 g_b_init_open_process_token equal to 1.
2308af15 7131
048addec
JD
7132 * w32.c (get_token_information): Perform initialization only if
7133 g_b_init_get_token_information is equal to 0. On initialization
7134 set g_b_init_get_token_information equal to 1.
9785d95b 7135
048addec
JD
7136 * w32.c (lookup_account_sid): Perform initialization only if
7137 g_b_init_lookup_account_sid is equal to 0. On initialization
7138 set g_b_init_lookup_account_sid equal to 1.
9785d95b 7139
048addec
JD
7140 * w32.c (get_sid_identifier_authority): Perform initialization
7141 only if g_b_init_get_sid_identifier_authority is equal to 0.
7142 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 7143
f63fd14e 7144 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
7145 those global variables that must always be initialized on startup
7146 even when the global variable initialized is non zero.
7147 Its primary purpose at this time is to initialize the global variable
7148 track_mouse_event_fn.
9785d95b 7149
a64387ee 7150 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 7151 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 7152
048addec 7153 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 7154
f63fd14e 7155 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
7156 initialize those global variables that must always be initialized
7157 on startup even when the global variable initialized is non zero.
7158 Its primary purpose at this time is to initialize the global
7159 variables get_menu_item_info and set_menu_item_info.
9785d95b 7160
048addec
JD
7161 * w32menu.c (initialize_frame_menubar): Remove initialization of
7162 get_menu_item_info and set_menu_item_info.
9785d95b 7163
048addec 7164 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 7165
048addec
JD
7166 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
7167 Declare them.
9785d95b 7168
048addec
JD
7169 * emacs.c (main): Call globals_of_w32 prior to calling
7170 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
7171 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
7172 is defined.
9785d95b 7173
048addec
JD
7174 * w32term.c (x_update_window_begin): Fix Windows API error
7175 detected by BoundsChecker. Test to determine if
7176 w32_system_caret_hwnd is NULL prior to attempting to use
7177 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 7178
048addec
JD
7179 * w32term.c (x_update_window_end): Fix Windows API error
7180 detected by BoundsChecker. Test to determine if
7181 w32_system_caret_hwnd is NULL prior to attempting to use
7182 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 7183
048addec 71842002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 7185
048addec
JD
7186 * coding.c (coding_system_require_warning): New variable.
7187 (syms_of_coding): DEFVAR it.
b6da19ef 7188
048addec 7189 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 7190
048addec
JD
7191 * fileio.c (choose_write_coding_system): Even if
7192 Vcoding_system_for_write is non-nil, if
7193 coding_system_require_warning is nonzero, call
7194 Vselect_safe_coding_system_function.
bfcf6dbe 7195
048addec 71962002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 7197
048addec
JD
7198 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
7199 (lisp): Add font-core.
2c568af5 7200
048addec 72012002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 7202
048addec
JD
7203 * textprop.c (text_read_only): New arg `propval'.
7204 (get_char_property_and_overlay): Remove unused var `next_overlay'.
7205 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 7206
048addec 72072002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 7208
048addec 7209 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 7210
048addec 72112002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 7212
048addec
JD
7213 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
7214 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
7215 Be more careful about when help_events are generated.
96720f09 7216
048addec 72172002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 7218
048addec
JD
7219 * macterm.c (mac_check_for_quit_char): Correctly set the
7220 modifiers of the event to 0.
7221 * mac.c (sys_select): Duplicate rfds before calling select to
7222 ensure that rfds survive the while loop.
e5ae1c49 7223
048addec 72242002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 7225
048addec
JD
7226 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
7227 row_containing_pos returned NULL.
2eb46b2d 7228
048addec 72292002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 7230
6bdb309a 7231 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 7232 non-blocking.
6bdb309a 7233 (sys_select): Fix sys_select to not use a timeout larger than
048addec 7234 the one given.
b11f1d8a 7235
048addec 72362002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 7237
048addec 7238 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 7239
048addec 72402002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 7241
048addec
JD
7242 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
7243 as the last thing.
a4ac5b17 7244
048addec 72452002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 7246
048addec 7247 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 7248
048addec 72492002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 7250
048addec
JD
7251 * editfns.c (Fformat): Handle precision in string conversion
7252 specifiers like libc functions do (ie, print at most that many
7253 characters).
85cce843 7254
048addec 72552002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 7256
048addec
JD
7257 * xdisp.c (row_containing_pos): Check more carefully
7258 whether charpos is really in the row before returning it.
0d4d26a7 7259
048addec 72602002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 7261
048addec 7262 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 7263
048addec
JD
7264 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
7265 each stack frame. This may change as it could be time consuming.
0d4d26a7 7266
048addec
JD
7267 * macterm.c (mac_check_for_quit_char, quit_char_comp)
7268 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 7269 (mac_initialize): Add code to check for pressing of quit_char
048addec 7270 in the OS event queue.
b11f1d8a 7271
048addec
JD
7272 * mac.c (sys_select): Call mac_check_for_quit_char every second
7273 while blocking on select.
0d4d26a7 7274
048addec
JD
7275 * mac.c (sys_read): Use sys_select to test for input first
7276 before calling read, to allow C-g to break.
9252f7bc 7277
048addec 72782002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 7279
048addec 7280 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 7281
048addec 7282 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 7283
048addec 7284 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 7285
048addec
JD
7286 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
7287 autoload.
9252f7bc 7288
048addec 7289 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 7290
048addec 7291 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 7292
048addec 72932002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 7294
048addec 7295 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 7296
048addec 72972002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 7298
048addec 7299 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 7300
048addec 7301 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 7302
048addec 7303 * alloca.c: Don't use #error.
02d588e2 7304
048addec 73052002-12-03 Dave Love <fx@gnu.org>
02d588e2 7306
048addec
JD
7307 * buffer.c (Qucs_set_table_for_input): New.
7308 (Fget_buffer_create): Use it.
7309 (Qset_buffer_major_mode_hook): Deleted.
7310 (Fset_buffer_major_mode): Revert previous change.
7311 (init_buffer_once): Intern ucs-set-table-for-input.
7312 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
7313 Add &Qucs_set_table_for_input.
451e2697 7314
048addec 73152002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 7316
048addec
JD
7317 * callint.c (Fcall_interactively): Use next_event only if less
7318 than key_count.
72742a99 7319
048addec 73202002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 7321
048addec
JD
7322 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
7323 names to 255 characters.
72742a99 7324
048addec
JD
7325 * macterm.c (XTread_socket): If all frames have been collapsed,
7326 expand the first one before handling drag-and-drop events.
72742a99 7327
048addec
JD
7328 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
7329 which is detected by autoconf.
40e6ff95 7330
048addec 73312002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 7332
048addec
JD
7333 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
7334 offset in two hints table to allow prebinding to be redone and
7335 allow the executable to be stripped.
c02138c6 7336
048addec 73372002-11-29 Dave Love <fx@gnu.org>
c02138c6 7338
048addec
JD
7339 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
7340 already provided.
0e47bbf7 7341
048addec 73422002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 7343
048addec
JD
7344 * xdisp.c (start_display): Check more intelligently for
7345 whether the line is continued.
7346 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 7347
048addec 73482002-11-28 Dave Love <fx@gnu.org>
44129dcb 7349
048addec
JD
7350 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
7351 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 7352
048addec 73532002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 7354
048addec
JD
7355 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
7356 more descriptive error output from lread.c:Fload upon most require
7357 cycles during boostrapping.
1637fd2c 7358
048addec 73592002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 7360
048addec
JD
7361 * fileio.c (Finsert_file_contents): Give a more appropriate error
7362 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 7363
048addec
JD
7364 * dired.c (Ffile_attributes): Don't return negative file sizes for
7365 files bigger than 2Gb when off_t is 32 bit.
540c2788 7366
048addec 73672002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 7368
048addec 7369 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 7370
048addec
JD
7371 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
7372 Test GETPGRP_VOID instead.
7373 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 7374
048addec
JD
7375 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
7376 Don't define.
7377 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 7378
048addec 7379 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 7380
048addec 73812002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 7382
048addec
JD
7383 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
7384 supported.
4042a81a 7385
048addec 73862002-11-25 Dave Love <fx@gnu.org>
4042a81a 7387
048addec 7388 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 7389
048addec 7390 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 7391
048addec 73922002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 7393
048addec 7394 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 7395
048addec 73962002-11-24 Steven Tamm <steventamm@mac.com>
82122254 7397
048addec
JD
7398 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
7399 determine the size of pointers alloced in unexed space instead
7400 of using possibly invalid emacs_zone pointers. This fixes the
7401 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 7402
048addec 74032002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 7404
048addec 7405 * search.c (Fstring_match): Doc fix.
c1ee53bc 7406
048addec
JD
7407 * callint.c (Fcall_interactively): If a command fails because
7408 `*' detects a read-only buffer, but RECORD_FLAG is set,
7409 record it anyway if the args don't actually do tty input.
5598c32e 7410
048addec 74112002-11-22 Dave Love <fx@gnu.org>
5598c32e 7412
048addec 7413 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 7414
048addec
JD
7415 * keyboard.c (interrupt_signal): Provide forward declaration.
7416 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 7417
048addec 7418 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 7419
048addec 74202002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 7421
048addec
JD
7422 * eval.c (interactive_p): Skip any number of bytecode
7423 and special form frames, in any order.
516eea8e 7424
048addec 74252002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 7426
048addec
JD
7427 * w32fns.c (convert_mono_to_color_image): New function.
7428 (xbm_load, xbm_load_image): Use it when foreground or background
7429 is explicitly set.
04dbfa08 7430
048addec 74312002-11-19 Dave Love <fx@gnu.org>
04dbfa08 7432
048addec 7433 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 7434
048addec 74352002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 7436
048addec
JD
7437 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
7438 (XPutPixel): Swap blue and red.
7439 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
7440 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
7441 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
7442 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 7443
048addec 74442002-11-18 Dave Love <fx@gnu.org>
d824beee 7445
048addec 7446 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 7447
048addec 7448 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 7449
048addec 7450 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 7451
048addec
JD
7452 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
7453 malloc, realloc, calloc.
d824beee 7454
048addec
JD
7455 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
7456 (bcmp): Don't define.
d824beee 7457
048addec 7458 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 7459
048addec 7460 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 7461
048addec 7462 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 7463
048addec 7464 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 7465
048addec
JD
7466 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
7467 Don't include alloca.h.
d824beee 7468
048addec 7469 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 7470
048addec 7471 * regex.c (_GNU_SOURCE): Don't define.
1998560a 7472
048addec 7473 * process.c (_GNU_SOURCE): Don't define.
1998560a 7474
048addec 7475 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 7476
048addec 74772002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 7478
048addec 7479 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 7480
048addec 74812002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 7482
048addec
JD
7483 * dispextern.h (struct face): Add `overstrike' field.
7484 * xterm.c (x_draw_glyph_string_foreground)
7485 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7486 * xfaces.c (load_face_font): Set `face->overstrike' based on
7487 result from choose_face_font.
7488 (best_matching_font, choose_face_font): Add `needs_overstrike'
7489 argument, and use it to return whether overstriking is desirable
7490 for this face/font combo.
7491 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 7492
048addec 74932002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 7494
048addec
JD
7495 This change is my fix for the following entry in etc/PROBLEMS:
7496 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7497 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 7498
048addec
JD
7499 * w32.c: Added wrapper functions around the win32 API functions
7500 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
7501 GetSidIdentifierAuthority. These wrapper functions serve two
7502 purposes:
7503 1. They ensure that the wrapped function can never be called
7504 when Emacs is running on an operating system on which they are
7505 not supported (Microsoft Windows 95 / 98 / ME).
7506 2. They call the wrapped functions via function pointers rather
7507 than calling them directly. This avoids taking advantage of the
7508 undocumented fact that although these functions are not supported
7509 in the 9x branch of Microsoft Windows, the functions do exist in
7510 the version of advapi32.dll that is found in the 9x branch of
7511 Microsoft Windows.
f60ae425 7512
6bdb309a 7513 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
7514 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
7515 and GetSidIdentifierAuthority with calls to the newly added
7516 wrapper functions.
f60ae425 7517
048addec
JD
7518 * w32.h: Added extern declarations for the following functions:
7519 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
7520 syms_of_w32menu, and void syms_of_fontset.
f60ae425 7521
6bdb309a 7522 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
7523 function pointer track_mouse_event_fn in the handler for the
7524 WM_SETFOCUS message.
3582b6a3 7525
6bdb309a 7526 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
7527 reinitialize the function pointers set_menu_item_info and
7528 get_menu_item_info.
f60ae425 7529
048addec 75302002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 7531
048addec
JD
7532 * sound.c: Added a partial implementation of play-sound-internal
7533 for Microsoft Windows. Added various #ifdef / #else / #endif
7534 code blocks to separate the code that will compile under
7535 Microsoft Windows from the code that is specific to Gnu/Linux.
7536 Moved several blocks of code around to make this separation of code
7537 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 7538
048addec 7539 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 7540
048addec
JD
7541 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
7542 added support for play-sound-internal under Windows would be
7543 included in the build of Emacs.
517f42a0 7544
048addec 75452002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 7546
048addec 7547 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 7548
048addec 7549 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 7550
048addec 75512002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 7552
048addec
JD
7553 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
7554 (adjust_point_for_property): Move out of display and invisible even if
7555 we were already inside before (in case a property was added while
7556 we weren't looking). Be more careful when handling invisible props.
7557 Skip invisible text as if it really wasn't there at all.
aab83f91 7558
048addec 75592002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 7560
048addec
JD
7561 * w32term.c (x_draw_image_foreground)
7562 (w32_draw_image_foreground_1): Use standard copy and invert
7563 operations to draw images.
aab83f91 7564
048addec
JD
7565 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
7566 depth of 1.
7567 (xbm_read_bitmap_data): Invert bits as xbm is read in.
7568 (XPutPixel): Don't invert bits here.
a4478a76 7569
048addec 75702002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 7571
048addec
JD
7572 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
7573 (w32_draw_image_foreground_1): Handle image masks.
7574 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 7575
048addec
JD
7576 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
7577 (x_from_xcolors): Adjust RGB values for W32.
7578 (image_background, image_background_transparent)
7579 (postprocess_image, x_to_xcolors, x_disable_image)
7580 (x_build_heuristic_mask): Adapt for W32 and enable.
7581 (x_create_x_image_and_pixmap): Mark images with palettes as such.
7582 (xbm_load): Remove unused variable.
03670a65 7583
048addec 75842002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 7585
048addec 7586 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 7587
048addec 75882002-11-14 Dave Love <fx@gnu.org>
59daa29a 7589
048addec 7590 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 7591
048addec
JD
7592 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
7593 * xmenu.c (unuse_menu_items, digest_single_submenu):
7594 * xfns.c (x_put_x_image):
7595 * xdisp.c (message2_nolog, set_message):
7596 * undo.c (record_point):
7597 * terminfo.c (tparam):
7598 * syntax.c (scan_sexps_forward):
7599 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7600 * composite.c (update_compositions):
7601 * cm.c (calccost, cmgoto):
7602 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 7603
048addec 7604 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 7605
048addec
JD
7606 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
7607 Don't declare.
59daa29a 7608
048addec 7609 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 7610
048addec
JD
7611 * fns.c (Fcopy_sequence): Doc fix.
7612 (Fmap_char_table): Cast `call2'.
3947677c 7613
048addec
JD
76142002-11-14 Francesco Potorti` <pot@gnu.org>
7615
7616 * s/sol2-8.h: New file.
7617
76182002-11-14 Kim F. Storm <storm@cua.dk>
7619
7620 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
7621 dependency on `risky-local-variable' and the :propertize form.
7622
76232002-11-12 Stefan Monnier <monnier@cs.yale.edu>
7624
7625 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
7626
7627 * syntax.c (scan_sexps_forward): Undo last patch.
7628 Use a more obvious fix: check eob before updating the syntax table.
7629
76302002-11-09 Stefan Monnier <monnier@cs.yale.edu>
7631
7632 * syntax.c (scan_sexps_forward): Update syntax table before reading
7633 a char rather than after so we don't update the table past eob.
7634
76352002-11-09 Dave Love <fx@gnu.org>
7636
7637 * buffer.c (Fset_buffer_major_mode): Fix last change.
7638
7639 * regex.c (regexec): Fix pmatch declaration.
7640
7641 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
7642
7643 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
7644 to self-inserting characters.
7645 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
7646
7647 * coding.c (Vtranslation_table_for_input): New.
7648 (syms_of_coding): DEFVAR it.
7649
76502002-11-08 Juanma Barranquero <lektu@terra.es>
7651
7652 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
7653 window.
7654
76552002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7656
6bdb309a 7657 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
7658 cp, and i.
7659
76602002-11-06 Dave Love <fx@gnu.org>
7661
7662 * buffer.c (Qset_buffer_major_mode_hook): New.
7663 (Fset_buffer_major_mode): Use it.
7664
76652002-11-06 Richard M. Stallman <rms@gnu.org>
7666
7667 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
7668 and stop_polling.
7669
7670 * process.c (wait_reading_process_input):
7671 Test POLLING_PROBLEM_IN_SELECT, not hpux.
7672 Avoid initialization for auto Lisp_Object var.
7673
7674 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
7675
7676 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
7677
76782002-11-05 Richard M. Stallman <rms@gnu.org>
7679
7680 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
7681
7682 * callint.c (Fcall_interactively): New local filter_specs.
7683 (Fcall_interactively): Check for progn as well as let.
7684 Add a gcpro.
7685 (Qprogn): New variable.
7686 (syms_of_callint): Staticpro and init Qprogn.
7687
76882002-11-04 John Paul Wallington <jpw@shootybangbang.com>
7689
7690 * lread.c (Feval_buffer): Doc fix.
7691
76922002-11-04 Dave Love <fx@gnu.org>
7693
7694 * keyboard.c (read_char): Always translate iff
7695 Vkeyboard_translate_table is a char table and c is valid.
7696
7697 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7698 and fix C types.
7699
77002002-11-03 Stefan Monnier <monnier@cs.yale.edu>
7701
7702 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
7703
7704 * editfns.c (get_pos_property): Don't hardcode Qfield.
7705
7706 * keyboard.c (adjust_point_for_property): Handle `display' prop on
7707 overlays. Also handle `invisible' prop.
7708
77092002-11-02 Stefan Monnier <monnier@cs.yale.edu>
7710
7711 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
7712 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
7713
77142002-11-01 Andreas Schwab <schwab@suse.de>
7715
7716 * editfns.c (Fmessage): Revert last change to properly handle %%.
7717
77182002-11-01 Stefan Monnier <monnier@cs.yale.edu>
7719
7720 * xmenu.c (unuse_menu_items): New fun.
7721 (menu_items_inuse): New var.
7722 (syms_of_xmenu): Initialize it.
7723 (init_menu_items): Use it to detect re-entrance.
7724 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
7725 (Fx_popup_menu): Remove spurious XSETFRAME.
7726
7727 * editfns.c (find_field): Make an exception for nil fields.
7728
77292002-11-01 Dave Love <fx@gnu.org>
7730
7731 * m/gec63.h: Deleted.
7732
77332002-10-31 Dave Love <fx@gnu.org>
7734
7735 * xterm.c (XTread_socket): Fix last change.
7736 (xaw_scroll_callback): Cast call_data to long to avoid warning.
7737
77382002-10-31 Stefan Monnier <monnier@cs.yale.edu>
7739
7740 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
7741
77422002-10-30 Stefan Monnier <monnier@cs.yale.edu>
7743
7744 * editfns.c (overlays_around, get_pos_property): New funs.
7745 (find_field): Use them.
7746 Also be careful not to modify POS before its last use.
7747 (Fmessage): Don't Fformat if there's nothing to format.
7748
77492002-10-30 Dave Love <fx@gnu.org>
7750
7751 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
7752 [HAVE_PTY_H]; Include pty.h.
7753
7754 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
7755
7756 * xterm.c (Qeql): Declare.
7757 (Vx_keysym_table): New.
7758 (syms_of_xterm): Initialize it.
7759 (XTread_socket): Use it. Deal with ASCII keysyms.
7760 (XSetIMValues) [HAVE_X11R6]: Prototype.
7761
7762 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
7763 (lispy_kana_keys): Comment out.
7764 (make_lispy_event) [XK_kana_A]: Comment out.
7765 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
7766 Fix sprintf call.
7767
7768 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
7769 regexp.h change).
7770 (TERMINFO, LIBS_TERMCAP): Define.
7771
7772 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
7773 (bcmp): Define conditional on HAVE_BCMP.
7774 (NO_SIOCTL_H): Don't define.
7775 (TIOCSIGSEND): Don't make conditional on IRIX6.
7776
7777 * s/sol2-5.h: Don't include strings.h.
7778 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
7779
7780 * s/irix6-0.h (IRIX6): Don't define.
7781 (bcopy, bcmp, bzero): Don't undef.
7782
7783 * s/irix6-5.h: Don't include strings.h.
7784 (IRIX6): Don't define.
7785 (bcopy, bcmp, bzero): Don't undef.
7786
7787 * syntax.c (Fforward_comment): Doc fix.
7788
77892002-10-29 Kim F. Storm <storm@cua.dk>
7790
7791 * process.c (Fsignal_process): Allow PROCESS to be specified by
7792 name in addition to pid (as integer or string).
7793
77942002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
7795
7796 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
7797 environments.
7798
77992002-10-27 Kim F. Storm <storm@cua.dk>
7800
7801 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7802
7803 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
7804
7805 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
7806
7807 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7808
78092002-10-26 Richard M. Stallman <rms@gnu.org>
7810
7811 * editfns.c (Fformat): Detect invalid format letters for floats.
7812
78132002-10-25 Kenichi Handa <handa@m17n.org>
7814
7815 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
7816 (x_set_title): Likewise.
7817
78182002-10-25 Juanma Barranquero <lektu@terra.es>
7819
7820 * macgui.h:
7821 * w32gui.h: Remove definition of XColor.
7822
7823 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
7824
78252002-10-24 Kim F. Storm <storm@cua.dk>
7826
7827 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
7828 Callers changed (supply dummy arg).
7829
7830 * lisp.h (get_window_cursor_type): Update prototype.
7831
7832 * w32term.c (x_display_and_set_cursor): Get active_cursor from
7833 get_window_cursor_type to track system caret.
7834
78352002-10-24 Kim F. Storm <storm@cua.dk>
7836
7837 * process.c (Fformat_network_address): New function.
7838 (syms_of_process): Defsubr it.
7839 (list_processes_1): Use it to format :local/:remote address if
7840 service/host is not set; before emacs would crash in that case.
7841 (Fmake_network_process): Don't use Ffind_operation_coding_system
7842 to setup coding system if host or service is not set.
7843
78442002-10-23 Juanma Barranquero <lektu@terra.es>
7845
7846 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
7847
7848 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
7849 COLORREF.
7850
7851 * macgui.h:
7852 * w32gui.h: Add definition of XColor.
7853
7854 * macfns.c:
7855 * w32fns.c:
7856 * xfaces.c: Remove definition of XColor.
7857
78582002-10-22 Stefan Monnier <monnier@cs.yale.edu>
7859
7860 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
7861
7862 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
7863 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
7864 window if it is dedicated.
7865 (Fshrink_window): Add preserve_before as was done for enlarge_window.
7866 (Vspecial_display_function): Update docstring.
7867
7868 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
7869 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
7870 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
7871
78722002-10-21 Stefan Monnier <monnier@cs.yale.edu>
7873
7874 * casefiddle.c (casify_region): Don't treat a prefix char as part
7875 of a word when at the beginning.
7876
78772002-10-17 Juanma Barranquero <lektu@terra.es>
7878
7879 * lread.c (syms_of_lread): Fix typos.
7880
78812002-10-17 Dave Love <fx@gnu.org>
7882
7883 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
7884
78852002-10-16 Richard M. Stallman <rms@gnu.org>
7886
7887 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
7888
78892002-10-14 Juanma Barranquero <lektu@terra.es>
7890
7891 * w16select.c (syms_of_win16select): Fix docstring for
7892 `selection-coding-system'.
7893
7894 * w32select.c (syms_of_w32select): Likewise.
7895
78962002-10-14 Stefan Monnier <monnier@cs.yale.edu>
7897
7898 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
7899 a backslash-quoted char.
7900 (scan_lists, scan_sexps_forward): Pacify the compiler.
7901
79022002-10-13 Richard M. Stallman <rms@gnu.org>
7903
7904 * window.c (window_scroll): Set immediate_quit.
7905
7906 * print.c (print): When backquote form is the car of a list,
7907 output in old style. Use old_backquote_output to output all
7908 comma forms inside it in old style too.
7909
7910 * buffer.h (struct buffer): Move `undo_list' down below `name'.
7911
79122002-10-11 Markus Rost <rost@math.ohio-state.edu>
7913
7914 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
7915 batch mode).
7916
7917 * lread.c (Fload): Doc fix (load-suffixes).
7918
79192002-10-10 Steven Tamm <steventamm@mac.com>
7920
7921 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
7922 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
7923 Also switch the default to Qnil from Qt.
7924
79252002-10-08 Kenichi Handa <handa@m17n.org>
7926
7927 * coding.c (code_convert_region): When we need more GAP for
7928 conversion, pay attention to the case that coding->produced is not
7929 greater than coding->consumed.
7930
79312002-10-07 Richard M. Stallman <rms@gnu.org>
7932
7933 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
7934
79352002-10-06 Andrew Choi <akochoi@shaw.ca>
7936
7937 * macmenu.c (mac_menu_show): Add j to count menu items; match
7938 menu_item_selection to it to find selected item.
7939
79402002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7941
7942 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
7943 cases. The correct fix is to pass ReparentNotify to Xt.
7944 The shell widget interprets ConfigureNotify differently depending
7945 on if it has been reparented or not.
7946
79472002-10-05 Markus Rost <rost@math.ohio-state.edu>
7948
7949 * editfns.c (Fformat_time_string): Doc fix.
7950
79512002-10-05 John Paul Wallington <jpw@shootybangbang.com>
7952
7953 * fns.c (Flength): Doc fix.
7954
79552002-10-04 Stefan Monnier <monnier@cs.yale.edu>
7956
7957 * keyboard.c (keyremap): New struct.
7958 (read_key_sequence): Use it: globally replace keytran_foo with
7959 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
7960 keytran_next and fkey_next to just `next'.
7961
79622002-10-04 Steven Tamm <steventamm@mac.com>
7963
7964 * macterm.c (keycode_to_xkeysym_table): Change return to be
7965 treated like an X keysym.
7966
79672002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7968
7969 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
7970 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
7971 This is to also handle x/y changes that occur because of a resize.
7972
79732002-10-02 John Paul Wallington <jpw@shootybangbang.com>
7974
7975 * frame.c (Vdelete_frame_functions): New variable.
7976 (syms_of_frame): Initialize and defvar it.
7977 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
7978 it when frame's `tooltip' parameter is non-nil.
7979
7980 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
7981
7982 * w32fns.c (x_create_tip_frame): Likewise.
7983
7984 * macfns.c (x_create_tip_frame): Likewise.
7985
79862002-09-30 Kenichi Handa <handa@m17n.org>
7987
7988 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
7989 -1 before calling ccl_driver.
7990
7991 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
7992 Only when it is non-nil, handle composition sequence.
7993 (setup_coding_system) <0>: Don't force composition handling.
7994
7995 * Makefile.in (lisp, shortlisp): Add utf-16.elc
7996
79972002-09-29 Richard M. Stallman <rms@gnu.org>
7998
7999 * search.c (Freplace_match): Adjust match data for the substitution
8000 just made in the buffer.
8001
8002 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8003 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8004
80052002-09-27 Richard M. Stallman <rms@gnu.org>
8006
8007 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8008 (read_char): Use them. Do all exits thru the end of the function.
8009
80102002-09-27 Kenichi Handa <handa@etl.go.jp>
8011
8012 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8013 is nil.
8014
80152002-09-26 Richard M. Stallman <rms@gnu.org>
8016
8017 * regex.h (__restrict_arr): Don't define if already defined.
8018
8019 * coding.c (run_pre_post_conversion_on_str):
8020 Save and restore Vdeactivate_mark.
8021
80222002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8023
8024 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8025
80262002-09-26 Kenichi Handa <handa@etl.go.jp>
8027
8028 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8029 nonzero, try face's family at first. Otherwise try FAMILY at first.
8030 (choose_face_font): If C is a single byte char or latin-1, call
8031 try_font_list with PREFER_FACE_FAMILY 1.
8032
80332002-09-21 Richard M. Stallman <rms@gnu.org>
8034
8035 * window.c (select_window_1): Don't select frame.
8036 Set frame's selected window only when frame itself is selected.
8037 (Fselect_window): Doc fix.
8038
80392002-09-18 Kim F. Storm <storm@cua.dk>
8040
8041 * process.c (make-network-process): Doc fix (there is no
8042 network-server-log-function hook).
8043
80442002-09-18 Richard M. Stallman <rms@gnu.org>
8045
8046 * print.c (print): Clear out the unused parts of Vprint_number_table.
8047 (syms_of_print): Doc fix for `print-number-table'.
8048
8049 * unexelf.c (unexec): Undo previous change.
8050
80512002-09-17 Andreas Schwab <schwab@suse.de>
8052
8053 * m/alpha.h [LINUX]: Don't define DATA_START.
8054
80552002-09-16 Dave Love <fx@gnu.org>
8056
8057 * unexelf.c (unexec): Deal with .got, reinstating change from
8058 25-08-1999.
8059
80602002-09-13 Richard M. Stallman <rms@gnu.org>
8061
8062 * s/sol2-6.h (UNEXEC): Comment out definition.
8063
8064 * unexsol.c (unexec): Don't downcase first letter of error msg.
8065
8066 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8067
80682002-09-12 Markus Rost <rost@math.ohio-state.edu>
8069
8070 * unexsol.c: Include buffer.h, charset.h, coding.h.
8071
80722002-09-11 Richard M. Stallman <rms@gnu.org>
8073
8074 * unexsol.c: Don't use report_file_error; do it by hand
8075 using dlerror.
8076
8077 * process.c (wait_reading_process_input, both versions):
8078 Before calling turn_on_atimers, call stop_polling.
8079
8080 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8081
8082 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8083 we go to too_near_end, call clear_glyph_matrix.
8084 (redisplay_window): After make_cursor_line_fully_visible,
8085 call clear_glyph_matrix and bypass `goto done'.
8086
8087 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8088 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8089
80902002-09-10 Richard M. Stallman <rms@gnu.org>
8091
8092 * fileio.c (Fdo_auto_save): Catch error making directory.
8093 Only call push_message if we need to.
8094 At the same time, make an unwind-protect to pop it.
8095 Rename local message_p to old_message_p.
8096 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8097 (do_auto_save_unwind): Don't call pop_message.
8098
8099 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8100
8101 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8102
8103 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
8104
8105 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
8106
81072002-09-10 Stefan Monnier <monnier@cs.yale.edu>
8108
8109 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
8110 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
8111 (re_match_2_internal): Be more careful with infinite loops.
8112
81132002-09-10 Kim F. Storm <storm@cua.dk>
8114
8115 * macros.c (end_kbd_macro): New function.
8116 (Fend_kbd_macro): Use it.
8117
8118 * macros.h (end_kbd_macro): Declare extern.
8119
8120 * keyboard.c (Fdiscard_input): If defining keyboard macro,
8121 end and save it instead of discarding it.
8122
81232002-09-09 Markus Rost <rost@math.ohio-state.edu>
8124
8125 * s/sol2-6.h: Fix typo. Add comment.
8126
81272002-09-09 Richard M. Stallman <rms@gnu.org>
8128
8129 * regex.c (regnum_t): Use signed int, not unsigned int.
8130
8131 * s/sol2-6.h: New file.
8132
8133 * s/sol2-5.h (UNEXEC): Definition deleted.
8134
81352002-09-08 Kim F. Storm <storm@cua.dk>
8136
8137 * macros.c (executing_macro_index): Change type to EMACS_INT.
8138 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
8139
8140 * macros.h (executing_macro_index): Change type to EMACS_INT.
8141
81422002-09-06 Richard M. Stallman <rms@gnu.org>
8143
8144 * casetab.c (set_case_table): Make canon table point to eqv table.
8145
81462002-09-06 Juanma Barranquero <lektu@terra.es>
8147
8148 * coding.c (syms_of_coding): Fix spacing.
8149
8150 * composite.c (Fcompose_region_internal)
8151 (Fcompose_string_internal): Likewise.
8152
8153 * data.c (Flsh): Likewise.
8154
8155 * fontset.c (Fset_fontset_font): Likewise.
8156
8157 * macfns.c (Fx_server_max_request_size): Likewise.
8158
8159 * w16select.c (syms_of_win16select): Likewise.
8160
8161 * w32select.c (syms_of_w32select): Likewise.
8162
8163 * xselect.c (syms_of_xselect): Likewise.
8164
81652002-09-05 Richard M. Stallman <rms@gnu.org>
8166
8167 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
8168 call EXTEND_RANGE_TABLE and return a proper value.
8169 (set_image_of_range): Don't call set_image_of_range_1
8170 if no TRANSLATE or if range includes all of Latin-1.
8171 Only call it for the Latin-1 part of the range.
8172 For other cases, make two separate ranges,
8173 one for the original specified characters and one for
8174 their case-conversions.
8175
81762002-09-04 Richard M. Stallman <rms@gnu.org>
8177
8178 * s/sol2-5.h (UNEXEC): Use unexsol.o.
8179
8180 * window.c (displayed_window_lines): Correct for one-off bug
8181 in HEIGHT on non-window displays.
8182
8183 * regex.c (set_image_of_range_1): New function.
8184 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
8185 Return a value to indicate running out of memory.
8186 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
8187 (extend_range_table_work_area): New subroutine.
8188 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
8189 Different calling conventions, and used from set_image_of_range{,_1}.
8190 (IMMEDIATE_QUIT_CHECK): Definitions moved.
8191
81922002-09-04 Juanma Barranquero <lektu@terra.es>
8193
8194 * makefile.w32-in: All dependencies updated.
8195
81962002-09-01 Richard M. Stallman <rms@gnu.org>
8197
8198 * unexsol.c: New file.
8199
8200 * xfns.c (Qbox): Declare external, don't define.
8201
8202 * xdisp.c (redisplay_window) <force-start case>:
8203 If point is on semi-visible last line, reposition
8204 it at previous line.
8205
8206 * alloc.c (display_malloc_warning): Use display-warning.
8207 (malloc_warning_1): Function deleted.
8208
8209 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
8210
8211 * lread.c (read1): Handle #! by skipping the line.
8212
82132002-08-31 Richard M. Stallman <rms@gnu.org>
8214
8215 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
8216 Don't include LDFLAGS.
8217 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
8218
82192002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
8220
8221 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
8222 member of x_display_info unless we compile for some window system.
8223
82242002-08-31 Kim F. Storm <storm@cua.dk>
8225
8226 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
8227 (get_window_cursor_type): Don't use them.
8228 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
8229
82302002-08-30 Kenichi Handa <handa@etl.go.jp>
8231
8232 * xdisp.c (get_next_display_element): Fix previous change.
8233
82342002-08-30 Andrew Choi <akochoi@shaw.ca>
8235
8236 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
8237 (expose_window): Use it to fix the display of overlapping
8238 rows (merge code from xterm.c).
8239
8240 * macfns.c (Qbox): Add extern declaration.
8241
82422002-08-30 Juanma Barranquero <lektu@terra.es>
8243
8244 * w32fns.c (Qbox): Make extern.
8245 (syms_of_w32fns): Remove initialization of Qbox.
8246
82472002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
8248
8249 * xfns.c (Fx_open_connection): Fix error message.
8250
82512002-08-30 Kim F. Storm <storm@cua.dk>
8252
8253 The following changes consolidates the handling of the cursor
8254 type in xdisp.c, moving duplicate code and functionality from
8255 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
8256
8257 * frame.h (enum text_cursor_kinds): Consolidated here.
8258 Added DEFAULT_CURSOR value.
8259 (struct frame) <desired_cursor, cursor_width>
8260 <blink_off_cursor, blink_off_cursor_width>: New fields.
8261 Consolidated from output_x, output_w32 and output_mac structs.
8262 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8263 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
8264
8265 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
8266 Variables consolidated here.
8267 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
8268 (Vcursor_in_non_selected_windows): Renamed from
8269 cursor_in_non_selected_windows and changed to Lisp_Object.
8270 (syms_of_xdisp): Define and staticpro new and moved variables.
8271 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
8272 consolidated here. Recognize Qhollow setting.
8273 (set_frame_cursor_types): New function to set frame cursor types
8274 based on the frame parameters.
8275 (get_window_cursor_type): New function to calculate new cursor
8276 type and width for the specified window. Based on duplicated
8277 code consolidated here.
8278 Enhancements: cursor-in-non-selected-windows may be a cursor type,
8279 check buffer-local alternate-cursor-type and blink-cursor-alist
8280 before using built-in blink off methods.
8281
8282 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
8283
8284 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
8285 (get_specified_cursor_type, get_window_cursor_type)
8286 (set_frame_cursor_types): Added prototypes.
8287
8288 * macfns.c (x_specified_cursor_type): Removed.
8289 (x_set_cursor_type): Use set_frame_cursor_types.
8290 (Qbar, Qbox): Removed.
8291 (syms_of_macfns): Don't intern or staticpro them.
8292
8293 * macterm.c (x_specified_cursor_type): Remove prototype.
8294 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8295 (x_display_and_set_cursor): Use get_window_cursor_type.
8296 Remove unused local variables cursor_non_selected, active_cursor.
8297 Redraw cursor if hbar cursor width changes.
8298 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
8299
8300 * macterm.h (enum text_cursor_kinds): Removed.
8301 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
8302 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8303 (FRAME_DESIRED_CURSOR): Macro removed.
8304
8305 * w32fns.c (Vblink_cursor_alist): Removed.
8306 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8307 (syms_of_w32fns): Don't intern, staticpro, or define them.
8308 (x_specified_cursor_type): Removed.
8309 (x_set_cursor_type): Use set_frame_cursor_types.
8310
8311 * w32term.c (x_specified_cursor_type): Remove prototype.
8312 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8313 (x_display_and_set_cursor): Use get_window_cursor_type.
8314 Remove unused local variables cursor_off_state.
8315 Redraw cursor if hbar cursor width changes.
8316 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
8317
8318 * w32term.h (enum text_cursor_kinds): Removed.
8319 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
8320 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8321 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8322 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8323 (struct w32_display_info) <x_highlight_frame>: Renamed member from
8324 w32_highlight_frame.
8325
8326 * xfns.c (Vblink_cursor_alist): Removed.
8327 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8328 (syms_of_xfns): Don't intern, staticpro, or define them.
8329 (x_specified_cursor_type): Removed.
8330 (x_set_cursor_type): Use set_frame_cursor_types.
8331
8332 * xterm.c (x_specified_cursor_type): Remove prototype.
8333 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8334 (x_display_and_set_cursor): Use get_window_cursor_type.
8335 Remove unused local variables cursor_off_state.
8336 Redraw cursor if hbar cursor width changes.
8337
8338 * xterm.h (enum text_cursor_kinds): Removed.
8339 (struct output_x) <current_cursor, desired_cursor, cursor_width>
8340 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8341 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8342 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8343 (x_specified_cursor_type): Remove prototype.
8344
83452002-08-28 Richard M. Stallman <rms@gnu.org>
8346
8347 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8348 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8349 (Vblink_cursor_alist): New variable.
8350 (syms_of_w32fns): Initialize and defvar it.
8351 (x_specified_cursor_type): Recognize Qbox for filled box.
8352 Exceptions are hollow boxes.
8353 (Qbox, Qhollow): New variables.
8354 (syms_of_w32fns): Initialize and staticpro them.
8355
8356 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8357 New macros.
8358 (struct w32_output): New fields blink_off_cursor,
8359 blink_off_cursor_width.
8360 (FRAME_CURSOR_WIDTH): New macro.
8361
8362 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8363 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8364
8365 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8366 for bar cursor.
8367
8368 * w32term.c (expose_overlaps): New function.
8369 (expose_window): Use it to fix the display of overlapping rows.
8370
83712002-08-28 Simon Josefsson <jas@extundo.com>
8372
8373 * xfns.c (Fx_open_connection): Improve help when X connection
8374 fails, xhost is insecure and xauth is better.
8375
83762002-08-28 Juanma Barranquero <lektu@terra.es>
8377
8378 * makefile.w32-in: Add missing dependencies on w32term.h and
8379 composite.h.
8380
8381 * emacs.c (USAGE1): Add missing newline.
8382
83832002-08-27 Andrew Choi <akochoi@shaw.ca>
8384
8385 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
8386
83872002-08-27 Richard M. Stallman <rms@gnu.org>
8388
8389 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8390 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8391 (Vblink_cursor_alist): New variable.
8392 (syms_of_xfns): Initialize and defvar it.
8393 (x_specified_cursor_type): Recognize Qbox for filled box.
8394 Exceptions are hollow boxes.
8395 (Qbox, Qhollow): New variables.
8396 (syms_of_xfns): Initialize and staticpro them.
8397
8398 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8399 New macros.
8400 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
8401
8402 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8403 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8404
8405 * emacs.c (main): Handle --script.
8406 (USAGE1): Mention --script.
8407 (standard_args): Define sort order for --script.
8408
84092002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
8410
8411 * xdisp.c (redisplay_updating_p): Variable removed.
8412 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
8413 New variables.
8414 (init_iterator): Don't free realized faces if
8415 inhibit_free_realized_faces is set.
8416 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
8417 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
8418 initialize Qinhibit_free_realized_faces.
8419
8420 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
8421 when iterator is adding glyphs to a glyph matrix.
8422
84232002-08-27 Kenichi Handa <handa@etl.go.jp>
8424
8425 * xdisp.c (get_next_display_element): In unibyte case, don't use
8426 octal form for such eight-bit characters that can be converted to
8427 multibyte char.
8428
84292002-08-26 Kim F. Storm <storm@cua.dk>
8430
8431 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
8432 and background colors. From Joe Buehler (tiny change).
8433
84342002-08-26 Miles Bader <miles@gnu.org>
8435
8436 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
8437
84382002-08-25 Andrew Choi <akochoi@shaw.ca>
8439
8440 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
8441 defined instead of MAC_OSX.
8442
8443 * s/darwin.h (select): Define select to sys_select only if
8444 HAVE_CARBON is defined.
8445 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
8446 (DONT_REOPEN_PTY): #def it.
8447
8448 * macterm.c (XTread_socket): Remove code to call
8449 SendEventToEventTarget for keys with command modifiers when
8450 mac_command_key_is_meta is nil.
8451
84522002-08-24 Andreas Schwab <schwab@suse.de>
8453
8454 * eval.c (Fdefvar): Fix last change.
8455
84562002-08-23 Richard M. Stallman <rms@gnu.org>
8457
8458 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
8459 Record variables in load history as (defvar . VAR).
8460 (Fdefvar): Don't record in load history if no initial value.
8461 (Qdefvar): New variable.
8462 (syms_of_eval): Init and staticpro it.
8463
8464 * lread.c (syms_of_lread): Doc fix.
8465 (build_load_history): Use Fmember to see if a definition
8466 is already in the Vload_history element.
8467
8468 * process.c (Fstart_process): Remove /: from program name.
8469
8470 * emacs.c (decode_env_path): Don't add /: if file name handler
8471 has a `safe-magic' property.
8472
8473 * callproc.c (Fcall_process): Remove /: from program name.
8474
84752002-08-23 Stefan Monnier <monnier@cs.yale.edu>
8476
8477 * regex.c (PATFETCH): Remove the translating fetch.
8478 (PATFETCH_RAW): Rename to PATFETCH.
8479 (set_image_of_range): New fun.
8480 (SET_RANGE_TABLE_WORK_AREA): Use it.
8481 (regex_compile): Don't translate the pattern chars so eagerly.
8482 Only do it when inserting an `exactn' bytecode or when handling
8483 a char-range.
8484 (mutually_exclusive_p): Avoid empty statement.
8485
84862002-08-22 Kim F. Storm <storm@cua.dk>
8487
8488 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
8489 end up on a partially visible line; this reverts a specific part
8490 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
8491 display error which has been reported several times now.
8492 However it introduces the problem that changes was supposed to fix.
8493 See my comments in the source if you want to debug this further.
8494
84952002-08-20 Kenichi Handa <handa@etl.go.jp>
8496
8497 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8498
84992002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
8500
8501 * msdos.c (croak): Add `void' to definition.
8502
c1380aa6 8503 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
8504 Don't define them, they are defined in msdos.c.
8505
8506 * mem-limits.h [MSDOS]: Declare etext.
8507
8508 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
8509 `const' since CORRECT_DIR_SEPS modifies its target.
8510
85112002-08-19 Kim F. Storm <storm@cua.dk>
8512
8513 * keyboard.c (Fclear_this_command_keys): Added optional arg
8514 KEEP-RECORD to avoid clearing lossage when we just want to clear
8515 the current key sequence (kmacro needs this).
8516
85172002-08-19 Kenichi Handa <handa@localhost>
8518
8519 * composite.c (run_composition_function): Call FUNC if it is fboundp.
8520
8521 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
8522 cons, return Qnil.
8523
85242002-08-17 Richard M. Stallman <rms@gnu.org>
8525
8526 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
8527
8528 * sysdep.c [!VMS]: Include sys/files.h.
8529
8530 * editfns.c (save_restriction_restore): Defend from unchained marker.
8531
8532 * buffer.c (overlays_at): Handle extending vec uniformly.
8533 (overlays_in): Handle extending vec from length 0 as in overlays_at.
8534
85352002-08-15 Andrew Choi <akochoi@shaw.ca>
8536
8537 * mac.c (init_mac_osx_environment): New function.
8538
8539 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
8540
85412002-08-14 Kim F. Storm <storm@cua.dk>
8542
8543 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
8544 executing macro before appending to it (when used from Lisp).
8545 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
8546 which is called prior to each iteration of macro (for kmacro.el).
8547 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
8548
8549 * lisp.h (Fexecute_kbd_macro): Update prototype.
8550
8551 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
8552
85532002-08-14 Kenichi Handa <handa@etl.go.jp>
8554
8555 * xselect.c (QUTF8_STRING): New variable.
8556 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
8557 (x_atom_to_symbol): Likewise.
8558 (x_get_local_selection): New argument local_request. If it is
8559 nonzero, call handler_fn with the second arg nil.
8560 (x_handle_selection_request): Call x_get_local_selection with
8561 local_request 0.
8562 (lisp_data_to_selection_data): Don't encode the string here.
8563 (Fx_get_selection_internal): Call x_get_local_selection with
8564 local_request 1.
8565 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
8566
8567 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
8568
8569 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
8570
85712002-08-13 Richard M. Stallman <rms@gnu.org>
8572
8573 * minibuf.c (Fminibufferp): New function.
8574 (syms_of_minibuf): Defsubr it.
8575 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
8576
85772002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
8578
8579 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
8580
85812002-08-12 Richard M. Stallman <rms@gnu.org>
8582
8583 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
8584 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
8585 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
8586 already.
8587
8588 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
8589
85902002-08-11 Andrew Choi <akochoi@shaw.ca>
8591
8592 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
8593 (Vmac_pass_command_to_system): New variable.
8594 (Vmac_pass_control_to_system): New variable.
8595 (do_mouse_moved): Check wp with is_emacs_window.
8596 (XTread_socket): Check window_ptr with is_emacs_window.
8597 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
8598 events back to Mac Toolbox for processing, depending on values of
8599 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
8600 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
8601 Vmac_pass_control_to_system.
8602
86032002-08-10 Kenichi Handa <handa@etl.go.jp>
8604
8605 * coding.c (unencodable_char_position): New function.
8606 (Funencodable_char_position): New function.
8607 (syms_of_coding): Defsubr Funencodable_char_position.
8608
86092002-08-10 Andrew Choi <akochoi@shaw.ca>
8610
8611 * mac.c (sys_select) [MAC_OSX]: New function.
8612
8613 * macterm.c (MakeMeTheFrontProcess): New function.
8614 (mac_initialize): Call MakeMeTheFrontProcess.
8615
8616 * s/darwin.h: Define select to sys_select.
8617
86182002-08-09 Richard M. Stallman <rms@gnu.org>
8619
8620 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
8621
86222002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
8623
8624 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
8625 end of the buffer.
8626
86272002-08-08 Ken Raeburn <raeburn@mit.edu>
8628
8629 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
8630
8631 * puresize.h (BASE_PURESIZE): Increase to 910000.
8632
86332002-08-08 Kenichi Handa <handa@etl.go.jp>
8634
8635 * coding.c (Ffind_operation_coding_system): For write-region, if
8636 VISIT is a filename, make it the target.
8637
86382002-08-07 Richard M. Stallman <rms@gnu.org>
8639
8640 * alloc.c (mark_object): Detect long lists for debugging.
8641 (mark_object_loop_halt): New variable.
8642
8643 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
8644
8645 * data.c (Fmake_variable_frame_local): Doc fix.
8646
86472002-08-01 David Ponce <david@dponce.com>
8648
8649 * w32menu.c (local_heap, local_alloc, local_free): New macros.
8650 (malloc_widget_value, free_widget_value)
8651 (w32_free_submenu_strings): Use them.
8652
8653 (push_submenu_start, push_submenu_end, push_left_right_boundary)
8654 (push_menu_pane, push_menu_item, single_keymap_panes)
8655 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
8656 (single_submenu, set_frame_menubar)
8657 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
8658
8659 (Fx_popup_menu): Don't show pop up menu until preceding one is
8660 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
8661
8662 * w32menu.c: Changes adapted from xmenu.c
8663 (set_frame_menubar): First parse all submenus,
8664 then make widget_value trees from them.
8665 Don't allocate any widget_value objects
8666 until we are done with the parsing.
8667 (parse_single_submenu): New function.
8668 (digest_single_submenu): New function.
8669 (single_submenu): Function deleted, replaced by those two.
8670
86712002-08-04 Andrew Choi <akochoi@shaw.ca>
8672
8673 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
8674 returns a valid window pointer before proceeding for keyDown and
8675 autoKey events.
8676
86772002-08-03 Andrew Choi <akochoi@shaw.ca>
8678
8679 * macterm.c (USE_CARBON_EVENTS): New macro.
8680 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
8681 (x_iconify_frame): Call CollapseWindow.
8682 (Vmac_reverse_ctrl_meta): New variable.
8683 (Vmac_wheel_button_is_mouse_2): New variable.
8684 (init_mac_drag_n_drop): New function.
8685 (mac_do_receive_drag): New function.
8686 (mac_handle_service_event): New function.
8687 (init_service_handler): New function.
8688 (mac_to_emacs_modifiers): New function.
8689 (mac_event_to_emacs_modifiers): New function.
8690 (mac_get_mouse_btn): New function.
8691 (mac_convert_event_ref): New function.
8692 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
8693 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
8694 mac_get_mouse_btn.
8695 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
8696
8697 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
8698 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
8699 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
8700 TOOL_BAR_EVENT for MAC_OS as well.
8701 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
8702 as for WINDOWS_NT.
8703 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
8704
8705 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
8706
87072002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
8708
8709 * xdisp.c (forward_to_next_line_start): Fix a condition that
8710 lead to a newline being skipped.
8711
87122002-08-02 Andrew Choi <akochoi@shaw.ca>
8713
8714 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
8715
87162002-08-01 Richard M. Stallman <rms@gnu.org>
8717
8718 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
8719
87202002-07-31 Andrew Choi <akochoi@shaw.ca>
8721
8722 * macfns.c: #undef init_process before #define-ing it.
8723
8724 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
8725 HAVE_CARBON is defined.
8726
87272002-07-31 Richard M. Stallman <rms@gnu.org>
8728
8729 * xmenu.c (set_frame_menubar): First parse all submenus,
8730 then make widget_value trees from them.
8731 Don't allocate any widget_value objects
8732 until we are done with the parsing.
8733 (parse_single_submenu): New function.
8734 (digest_single_submenu): New function.
8735 (single_submenu): Function deleted, replaced by those two.
8736
87372002-07-30 Juanma Barranquero <lektu@terra.es>
8738
8739 * w32proc.c (syms_of_ntproc): Fix docstring of
8740 `w32-get-true-file-attributes'.
8741
87422002-07-28 Richard M. Stallman <rms@gnu.org>
8743
8744 * s/hpux8.h (HPUX8): Define this before including hpux.h.
8745 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
8746
8747 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
8748
8749 * keyboard.c (make_lispy_event):
8750 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
8751 Explicitly clear up_modifier in event->modifiers.
8752
87532002-07-27 Richard M. Stallman <rms@gnu.org>
8754
8755 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
8756
8757 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8758 for bar cursor.
8759
87602002-07-26 Kenichi Handa <handa@etl.go.jp>
8761
8762 * coding.c (detect_coding_iso2022): While checking a byte sequence
8763 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
8764 it in the normal loop.
8765
87662002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
8767
8768 * xterm.c (expose_overlaps): New function.
8769 (expose_window): Use it to fix the display of overlapping rows.
8770
8771 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
8772
87732002-07-23 Ken Raeburn <raeburn@gnu.org>
8774
8775 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
8776 since it only depends on XUINT.
8777
8778 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
8779 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
8780 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
8781 Macros deleted.
3947677c 8782
77d1daf2
AS
8783 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
8784 its value over other approaches.
8785 * sysdep.c (start_of_data): Don't define the function if a macro
8786 form has been defined.
8a8e19a3 8787
048addec
JD
87882002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
8789
8790 * xdisp.c (redisplay_updating_p): New variable.
8791 (init_iterator): Don't free realized faces when
8792 redisplay_updating_p is set.
8793 (redisplay_internal): Set redisplay_updating_p while updating
8794 the display.
8795
87962002-07-23 Richard M. Stallman <rms@gnu.org>
8797
8798 * editfns.c (Fmessage): Treat "" like nil.
8799
88002002-07-23 Kenichi Handa <handa@etl.go.jp>
8801
8802 * xdisp.c (face_before_or_after_it_pos):
8803 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8804
88052002-07-22 Juanma Barranquero <lektu@terra.es>
8806
8807 * callproc.c (init_callproc) [DOS_NT]:
8808 Initialize Vshared_game_score_directory to nil.
8809 (syms_of_callproc) [DOS_NT]: Likewise.
8810
88112002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
8812
8813 * xdisp.c (display_line): Replace an abort with xassert.
8814
88152002-07-21 Richard M. Stallman <rms@gnu.org>
8816
8817 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
8818 and END_UNCHANGED when setting buffer_unchanged_p.
8819 Use current_matrix_up_to_date_p to decide whether to use
8820 try_cursor_movement.
8821
8822 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
8823
8824 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
8825
8826 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
8827 Set to nil if dir does not exist.
8828 (syms_of_callproc): Init unconditionally and simply.
8829
8830 * buffer.c (Fbuffer_list): Doc fix.
8831
88322002-07-21 Ken Raeburn <raeburn@gnu.org>
8833
8834 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
8835
8836 * buffer.c (mmap_realloc): When shrinking, make sure number of
8837 pages to unmap is rounded towards zero.
8838
8839 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
8840 (XSETINT): Deleted.
8841
8842 * m/att3b.h (XINT): Don't define.
8843 (VALBITS, VALMASK, XTYPE): Deleted.
8844 (DATA_SEG_BITS): Define.
8845 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
8846 ARRAY_MARK_FLAG): Deleted.
8847 (DATA_SEG_BITS): Define.
8848 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
8849 (DATA_SEG_BITS): Define.
8850
88512002-07-20 Richard M. Stallman <rms@gnu.org>
8852
8853 * print.c (print_error_message): New args CONTEXT and CALLER.
8854 Calls changed.
8855
8856 * lisp.h (print_error_message): Declare new args.
8857
8858 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
8859 and CONTEXT to print_error_message, don't print them here.
8860 For a Quit, don't use Vsignaling_function.
8861 Call message_log_maybe_newline.
8862
8863 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
8864
88652002-07-20 Kim F. Storm <storm@cua.dk>
8866
8867 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
8868
88692002-07-19 Ken Raeburn <raeburn@gnu.org>
8870
8871 * bytecode.c (struct byte_stack): Pointers into byte string now
8872 point to const.
8873 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
8874 const.
8875 * charset.h (BCOPY_SHORT): Source pointer now points to const.
8876 * coding.c (encode_eol, detect_coding, detect_eol):
8877 (decode_coding, encode_coding, detect_coding_system):
8878 Source strings now treated as const.
8879 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
8880 modify Lisp string contents.
8881 * coding.h (decode_coding, encode_coding, detect_coding,
8882 detect_eol): Declarations updated.
8883 * composite.c (compose_chars_in_text): Treat Lisp string contents
8884 as const.
8885 * dispnew.c (safe_bcopy): Source pointer now points to const.
8886 * lisp.h (STRING_COPYIN): New macro.
8887 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
8888 (internal_with_output_to_temp_buffer): Declarations updated.
8889 * print.c (temp_output_buffer_setup):
8890 (internal_with_output_to_temp_buffer): Buffer name argument is now
8891 pointer to const.
8892 * sound.c (struct sound_device): Function pointer field "write"
8893 buffer argument now points to const.
8894 (vox_write): Buffer argument points to const.
8895 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
8896 contents as const.
8897 * sysdep.c (emacs_write): Buffer pointer now const.
8898 * term.c (encode_terminal_code): Buffer pointer now const.
8899 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
8900 (x_face_list_fonts, x_update_menu_appearance):
8901 (hash_string_case_insensitive): Treat Lisp string contents as const.
8902
89032002-07-19 Juanma Barranquero <lektu@terra.es>
8904
048addec
JD
8905 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
8906
8907 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
8908 (Ffile_name_as_directory): Fix argument name in docstring.
8909 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
8910
89112002-07-18 Richard M. Stallman <rms@gnu.org>
8912
8913 * data.c (Fdefalias): Doc fix.
8914
89152002-07-17 Dave Love <fx@gnu.org>
8916
8917 * intervals.h (text_property_stickiness): Use P_.
8918
8919 * ccl.c: Remove `emacs' conditionals.
8920 (ccl_backtrace_table): Fix size spec.
8921 (ccl_driver): Fix type errors.
8922
89232002-07-16 Ken Raeburn <raeburn@gnu.org>
8924
8925 * alloc.c (xstrdup, make_string, make_unibyte_string)
8926 (make_multibyte_string, build_string): String pointer args now
8927 point to const.
8928 * charset.c (find_charset_in_text, c_string_width):
8929 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
8930 * fileio.c (report_file_error):
8931 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
8932 (count_combining_before, count_combining_after, insert_1_both):
8933 (insert, insert_and_inherit, insert_string):
8934 (insert_before_markers, insert_before_markers_and_inherit):
8935 * lread.c (intern, oblookup, hash_string):
8936 * minibuf.c (temp_echo_area_glyphs):
8937 * search.c (fast_c_string_match_ignore_case):
8938 * sysdep.c (emacs_open, set_file_times):
8939 * xfaces.c (xstricmp):
8940 * xdisp.c (store_frame_title, string_char_and_length):
8941 (message_dolog, message2, message2_nolog, set_message): Likewise.
8942 (set_message_1): Cast message string argument to const pointer.
8943 * editfns.c (general_insert_function): Insertion function now
8944 takes pointer to const for input data.
8945 * charset.h (find_charset_in_text, c_string_width):
8946 (parse_str_as_multibyte): Declarations updated.
8947 * dispextern.h (xstricmp): Declaration updated.
8948 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
8949 (count_size_as_multibyte, count_combining_before):
8950 (count_combining_after, insert_1, insert_1_both, message_dolog):
8951 (insert, insert_and_inherit, insert_before_markers)
8952 (insert_before_markers_and_inherit, set_message, message2):
8953 (message2_dolog, build_string, make_string, make_unibyte_string):
8954 (make_multibyte_string, intern, oblookup, report_file_error):
8955 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
8956 (emacs_open, xstrdup): Declarations updated.
8957 * systime.h (set_file_times): Declaration updated.
8958
8959 * charset.c (find_charset_in_text, lisp_string_width): Use const
8960 for pointer to lisp string data.
8961 * charset.h (FETCH_STRING_CHAR_ADVANCE):
8962 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
8963 * coding.c (Ffind_coding_systems_region_interval):
8964 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
8965 (Fmake_directory_internal, Fdelete_directory):
8966 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
8967 * fontset.c (font_family_registry, fs_query_fontset):
8968 (list_fontsets):
8969 * frame.c (Fframe_parameter):
8970 * keyboard.c (cmd_error_internal):
8971 * keymap.c (Fdescribe_buffer_bindings):
8972 * lread.c (complete_filename_p, openp):
8973 * minibuf.c (Fminibuffer_complete_word):
8974 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
8975 (face_before_or_after_it_pos, next_element_from_string):
8976 (get_overlay_arrow_glyph_row, display_mode_element):
8977 (decode_mode_spec_coding):
8978 * xterm.c (same_x_server): Likewise.
8979
8980 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
8981 settings of non-existent fields.
8982
8983 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
8984 copy a lisp value.
8985
8986 * lread.c (Fintern_soft): Use string macros instead of
8987 Lisp_String fields.
8988 * keyboard.c (echo_char, parse_modifiers_uncached):
8989 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
8990 * textprop.c (validate_interval_range, interval_of): Likewise.
8991
8992 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
8993
8994 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8995 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
8996 XSTRING()->size_byte.
8997
8998 * lisp.h (SDATA, SREF): Produce rvalue.
8999 (SSET): New macro.
9000 * alloc.c (make_event_array): Use SSET for storing into a string.
9001 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9002 a string.
9003 * casefiddle.c (casify_object): Use SSET.
9004 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9005 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9006 address of string contents.
9007 * data.c (Faref): Use SDATA.
9008 (Faset): Use SDATA, SSET.
9009 * dired.c (directory_files_internal): Use SSET.
9010 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9011 (Fread_file_name): Use SREF, SSET.
9012 * fns.c (concat): Use SSET.
9013 (concat, Fdelete): Use SDATA.
9014 * insdel.c (insert_from_string_1): Use SDATA.
9015 * keyboard.c (Fevent_convert_list): Use SREF.
9016 * lread.c (Fload): Use SDATA, SSET.
9017 * macfns.c (validate_x_resource_name): Use SSET.
9018 * process.c (status_message): Use SSET.
9019 * search.c (wordify): Use SDATA.
9020 (Freplace_match): Use SREF.
9021 * w32fns.c (validate_x_resource_name): Use SSET.
9022 * xfns.c (validate_x_resource_name): Use SSET.
9023 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9024
90252002-07-16 Richard M. Stallman <rms@gnu.org>
9026
9027 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9028
9029 * xdisp.c (reconsider_clip_changes):
9030 Don't test prevent_redisplay_optimizations_p.
9031 (redisplay_internal): Test prevent_redisplay_optimizations_p
9032 along with clip_changed in some cases.
9033 (try_window_id): Likewise.
9034 (redisplay_window): New local var buffer_unchanged_p.
9035
9036 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9037
9038 * process.c (create_process): Test USG_SUBTTY_WORKS.
9039 (process_send_signal): Clean up handling of GID.
9040 Detect errors in ioctls meant to set GID.
9041
9042 * window.c (temp_output_buffer_show):
9043 Don't set prevent_redisplay_optimizations_p.
9044
90452002-07-15 Juanma Barranquero <lektu@terra.es>
9046
9047 * eval.c (Fdefvaralias): Add docstring argument.
9048
90492002-07-15 Ken Raeburn <raeburn@gnu.org>
9050
9051 * lisp.h (STRING_INTERVALS): Produce rvalue.
9052 (STRING_SET_INTERVALS): New macro.
9053 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9054 * fns.c (Fstring_as_multibyte): Likewise.
9055 * intervals.c (balance_possible_root_interval, delete_interval)
9056 (create_root_interval, copy_intervals_to_string): Likewise.
9057 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9058 instead of 0.
9059
90602002-07-14 Ken Raeburn <raeburn@gnu.org>
9061
9062 * lisp.h (STRING_SET_CHARS): New macro.
9063 (SCHARS, SBYTES): Produce rvalues.
9064 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9065 * fns.c (concat): Likewise.
9066 * lread.c (read_vector): Likewise.
9067
9068 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9069 (STRING_SET_UNIBYTE): New macro.
9070 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9071 length of -1) changed to use STRING_SET_UNIBYTE.
9072 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9073 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9074 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9075 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9076 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9077 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9078 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9079 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9080 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9081 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9082 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9083 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9084 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9085 unchanged for now.
9086
90872002-07-13 Kim F. Storm <storm@cua.dk>
9088
9089 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9090
90912002-07-12 Richard M. Stallman <rms@gnu.org>
9092
9093 * fileio.c (Fwrite_region): Doc fix.
9094
9095 * print.c (print_error_message): Don't handle Vsignaling_function here.
9096
9097 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9098 (command_loop_1): Avoid certain actions after memory-full error.
9099
9100 * eval.c (Fsignal): Don't call cancel_hourglass.
9101 For a memory-full error, don't call Vsignal_hook_function
9102 and don't set Vsignaling_function.
9103
9104 * process.c (process_send_signal): Add abort call.
9105
91062002-07-11 Markus Rost <rost@math.ohio-state.edu>
9107
9108 * keymap.c (Fkey_binding): Fix typo.
9109
91102002-07-11 Richard M. Stallman <rms@gnu.org>
9111
9112 * alloc.c (Vmemory_full): New variable.
9113 (Vmemory_signal_data): Renamed from memory_signal_data.
9114 Uses changed.
9115 (syms_of_alloc): Defvar them.
9116 (memory_full, buffer_memory_full): Set Vmemory_full.
9117
9118 * lisp.h (Vmemory_full): Add declaration.
9119 (current_column, indented_beyond_p): Change declaration.
9120
9121 * indent.c (last_known_column): Declare as double, not float.
9122 (current_column, current_column_1, string_display_width)
9123 (position_indentation): Return `double'.
9124 (indented_beyond_p): Arg `column' is `double'. Callers changed.
9125
9126 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
9127 (back_to_previous_visible_line_start)
9128 (reseat_at_next_visible_line_start, next_element_from_buffer):
9129 Use `double', not `float', when calling indented_beyond_p.
9130
9131 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
9132
9133 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
9134
91352002-07-11 Juanma Barranquero <lektu@terra.es>
9136
9137 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
d814862a
JB
9138 composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
9139 fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
9140 macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
9141 textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
9142 xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
9143
91442002-07-10 Juanma Barranquero <lektu@terra.es>
9145
d814862a
JB
9146 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
9147 All callers changed.
048addec
JD
9148
91492002-07-09 Stefan Monnier <monnier@cs.yale.edu>
9150
9151 * data.c (Fdefalias): Add an optional `docstring' argument.
9152 (set_internal, Fsetq_default): Use XCAR/XCDR.
9153
9154 * composite.c (HASH_VALUE, HASH_KEY):
9155 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
9156
91572002-07-09 Kenichi Handa <handa@etl.go.jp>
9158
9159 * callproc.c (Fcall_process): Fix previous change.
9160
91612002-07-07 Stefan Monnier <monnier@cs.yale.edu>
9162
9163 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9164 Add support for hash-tables.
9165 (Ftry_completion): Return t even if the string appears multiple times.
9166
9167 * fns.c (Fnconc): Use XCDR.
9168 (Fprovide): Use CONSP and XCDR.
9169 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9170 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
9171 (Fmake_hash_table): Accept `:size nil'.
9172 (Fmakehash): Delete: moved to subr.el.
9173 (syms_of_fns): Don't defsubr makehash.
9174
9175 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9176 (HASH_TABLE_SIZE): Move from fns.c.
9177
91782002-07-07 Richard M. Stallman <rms@gnu.org>
9179
9180 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
9181 Instead just return 0 when there is something to be done.
9182 (try_scrolling): If make_cursor_line_fully_visible returns 0,
9183 retry scrolling as if cursor were off the bottom.
9184 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
9185 return CURSOR_MOVEMENT_MUST_SCROLL.
9186 (redisplay_window): If make_cursor_line_fully_visible returns 0,
9187 go to try_to_scroll.
9188
9189 * buffer.c (Fbuffer_local_value): Store current value into its binding
9190 so we get the up-to-date value for the binding that is loaded.
9191
9192 * eval.c (Fdefmacro): Doc fix.
9193
91942002-07-05 Dave Love <fx@gnu.org>
9195
9196 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
9197 correctly.
9198
9199 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
9200 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
9201 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
9202 CCL_LookupCharConstTbl.
9203 (syms_of_ccl): Defvar translation-hash-table-vector.
9204
92052002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9206
9207 * xdisp.c: Remove unused variable `face'.
9208
92092002-07-04 Juanma Barranquero <lektu@terra.es>
9210
9211 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
9212 obsolescence information.
9213
92142002-07-03 Andrew Choi <akochoi@shaw.ca>
9215
9216 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
9217 pattern. Search cache first.
9218 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
9219 for Japanese font.
9220 (XLoadQueryFont): Use it.
9221
92222002-07-02 Richard M. Stallman <rms@gnu.org>
9223
9224 * keymap.c (Fdefine_key): Doc fix.
9225
9226 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
9227
92282002-07-02 Juanma Barranquero <lektu@terra.es>
9229
9230 * keymap.c (syms_of_keymap): Fix typo.
9231
92322002-07-01 Andrew Choi <akochoi@shaw.ca>
9233
9234 * s/darwin.h: Define POSIX_SIGNALS.
9235
9236 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
9237 and FSRefMakePath to convert FSSpec returned with Apple Event to
9238 Posix pathname.
9239 (mac_initialize) [TARGET_API_MAC_CARBON]:
9240 Call init_required_apple_events and disable the `Quit' menu item
9241 provided automatically by the Carbon Toolbox.
9242
92432002-07-01 Dave Love <fx@gnu.org>
9244
9245 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9246 for K&R.
9247
9248 * xterm.c: Fix prototype for K&R.
9249
9250 * term.c (costs_set): Declare static, non-initialized for pcc.
9251
92522002-07-01 Richard M. Stallman <rms@gnu.org>
9253
9254 * keyboard.c (timer_last_idleness_start_time): New variable.
9255 (timer_start_idle): Set that.
9256 (read_key_sequence): Use that to reset timer_idleness_start_time
9257 to previous value.
9258
9259 * window.c (Frecenter): With arg, set optional_new_start.
9260
9261 * xdisp.c (redisplay_internal): Make optional_new_start really work.
9262
9263 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
9264 buffer for completion.
9265
92662002-06-29 Ken Raeburn <raeburn@gnu.org>
9267
9268 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
9269
92702002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9271
9272 * keyboard.c (readable_filtered_events): New function that filters
9273 FOCUS_IN_EVENT depending on parameter.
9274 (readable_events): Calls readable_filtered_events, not filtering
9275 FOCUS_IN_EVENT.
9276 (get_filtered_input_pending): New function, filtering parameter passed
9277 to readable_filtered_events.
9278 (get_input_pending): Calls get_filtered_input_pending, not filtering
9279 FOCUS_IN_EVENT.
9280 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
9281 FOCUS_IN_EVENT.
9282
9283 * xterm.h (struct x_output): Add focus_state.
9284
9285 * xterm.c (x_focus_changed): New function.
9286 (x_detect_focus_change): New function.
9287 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
9288 EnterNotify and LeaveNotify to track X focus changes.
9289
92902002-06-28 Andreas Schwab <schwab@suse.de>
9291
9292 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
9293
92942002-06-27 Kim F. Storm <storm@cua.dk>
9295
9296 * xdisp.c: (mode_line_string_list, mode_line_string_face)
9297 (mode_line_string_face_prop): New variables.
9298 (store_mode_line_string): New function.
9299 (display_mode_element): Use store_mode_line_string to
9300 add mode-line string elements to mode_line_string_list
9301 when mode_line_string_list is non-nil.
9302 (Fformat_mode_line): Now returns propertized string by
9303 default. New arg NO-PROPS to ignore properties.
9304 (decode_mode_spec): Only add two dashes for %- in propertized
9305 mode-line string.
9306 (syms_of_xdisp): Init and staticpro mode_line_string_list.
9307
93082002-06-27 Stefan Monnier <monnier@cs.yale.edu>
9309
9310 * minibuf.c (minibuffer_completion_contents): Add return type.
9311
93122002-06-27 Juanma Barranquero <lektu@terra.es>
9313
9314 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
9315
93162002-06-26 Juanma Barranquero <lektu@terra.es>
9317
9318 * fileio.c (read_file_name_cleanup): Add missing return.
9319
93202002-06-26 Richard M. Stallman <rms@gnu.org>
9321
9322 * window.c (Frecenter): Don't set force_start flag.
9323
9324 * minibuf.c (do_completion, Fminibuffer_complete_word)
9325 (Fminibuffer_completion_help): Complete just the text before point.
9326 (minibuffer_completion_contents): New function.
9327
9328 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
9329
9330 * frame.c (frames_bury_buffer): Function deleted.
9331
93322002-06-25 Miles Bader <miles@gnu.org>
9333
9334 * callint.c (Fcall_interactively): When checking to see if doprnt hit
9335 the end of callint_message, allow for a terminating '\0'.
9336
93372002-06-24 Juanma Barranquero <lektu@terra.es>
9338
9339 * w32select.c: Include composite.h
9340
9341 * w16select.c: Likewise.
9342
93432002-06-24 Kenichi Handa <handa@etl.go.jp>
9344
9345 * callproc.c (Fcall_process): If code detection is necessary,
9346 call detect_coding directly here.
9347
9348 * coding.c (detect_eol): Preserve coding->cmp_data.
9349
9350 * w16select.c (Fw16_get_clipboard_data):
9351 * w32fns.c (w32_to_x_font):
9352 * w32select.c (Fw32_get_clipboard_data):
9353 * xselect.c (selection_data_to_lisp_data):
9354 * xterm.c (XTread_socket): Disable composition handling.
9355
93562002-06-24 Stefan Monnier <monnier@cs.yale.edu>
9357
9358 * print.c (temp_output_buffer_setup): Kill all local variables.
9359
93602002-06-22 Stefan Monnier <monnier@cs.yale.edu>
9361
9362 * lread.c (Fread): Remove redundant and imprecise declaration.
9363
9364 * xfns.c (check_x_display_info): Use check_x_frame.
9365
9366 * .gdbinit (xprintsym): Use the new `xname' field.
9367 (xsymbol): Use it.
9368
93692002-06-22 Jason Rumney <jasonr@gnu.org>
9370
9371 * w32fns.c (file_dialog_callback): New function.
9372 (Fx_file_dialog): Allow selecting directories as well as files.
9373
93742002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9375
9376 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 9377 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
9378
93792002-06-17 Andrew Choi <akochoi@shaw.ca>
9380
9381 * macterm.c (mac_scroll_area): Set foreground and backcolor to
9382 black and white before scrolling. Restore frame background and
9383 foreground color after scrolling.
9384 (do_window_update): Call XClearWindow before calling expose_frame.
9385 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
9386 FRAME_FOREGROUND_PIXEL of frame.
9387
9388 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9389 test Mac command key as <ALT> key.
9390
93912002-06-17 Stefan Monnier <monnier@cs.yale.edu>
9392
9393 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
9394
9395 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
9396 Lookup keys in function-key-map immediately so that key-translation-map
9397 can be applied earlier.
9398 Remove function_key_possible and key_translation_possible, replaced
9399 by checking `keytran_start < t'.
9400
9401 * .gdbinit (xsymbol): Use the new `xname' field.
9402
94032002-06-17 Andrew Choi <akochoi@shaw.ca>
9404
9405 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9406 test Mac command key as <ALT> key.
9407
9408 * mac.c (do_applescript): Call initialize_applescript if necessary
9409 when first called. Dispose of result_desc only when there is no error.
9410 (Fdo_applescript): Use %d format specifier instead of %ld.
9411
94122002-06-16 Andrew Choi <akochoi@shaw.ca>
9413
9414 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
9415 of FrontWindow for cases keyDown and autoKey.
9416
9417 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
9418 Vdefault_fontset to Monaco with mac-roman coding.
9419
9420 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
9421 init_process before and after inclusion of Carbon/Carbon.h, resp.
9422
9423 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
9424 cursor_gc.
9425 (add_font_name_table_entry): New function.
9426 (init_font_name_table): Use add_font_name_table_entry; add italic,
9427 bold, and bold-italic entries for truetype fonts.
9428
9429 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
9430 for Mac too.
9431 (try_font_list) [MAC_OS]: If no font matches given registry, try
9432 fonts with any registry matching face_family.
9433 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
9434
9435 * s/darwin.h: If autoconf detects the Ncurses library, define
9436 LIBS_TERMCAP to -lncurses to use it.
9437
94382002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
9439
9440 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
9441
94422002-06-15 Richard M. Stallman <rms@gnu.org>
9443
9444 * window.c (Fset_window_configuration): Explicitly preserve
9445 the point value that new_current_buffer had at the start.
9446
94472002-06-14 Juanma Barranquero <lektu@terra.es>
9448
9449 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
9450 Fix typos.
9451
94522002-06-14 Kim F. Storm <storm@cua.dk>
9453
9454 * insdel.c (insert_1_both, insert_from_string_1)
9455 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
9456 insert happened in the end_unchanged region. Otherwise, the
9457 redisplay may be confused and duplicate the last line in the
9458 buffer [seen after save-buffer when require-final-newline==t].
9459
94602002-06-13 Jason Rumney <jasonr@gnu.org>
9461
9462 * w32.c (init_environment): Remove EMACSLOCKDIR.
9463 (stat): Swap _S_IFDIR and _S_IFREG.
9464
94652002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9466
9467 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
9468 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
9469 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
9470 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
9471 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
9472 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
9473 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
9474 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
9475 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
9476 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
9477 SELECTION_REQUEST_EVENT, selection_clear_event to
9478 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
9479 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
9480 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
9481 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
9482 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
9483 no_event to NO_EVENT.
9484
94852002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9486
9487 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
9488
94892002-06-12 Stefan Monnier <monnier@cs.yale.edu>
9490
9491 * intervals.c (textget): Don't forget to `return'.
9492 (lookup_char_property): Use XCAR/XCDR.
9493
94942002-06-12 Juanma Barranquero <lektu@terra.es>
9495
9496 * xdisp.c (Fformat_mode_line): Fix typo.
9497
94982002-06-12 Kim F. Storm <storm@cua.dk>
9499
9500 * xdisp.c (Fformat_mode_line): New function.
9501 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
9502 (store_frame_title_char, store_frame_title): Use unconditionally.
9503 (init_xdisp): Defsubr Fformat_mode_line.
9504 Initialize frame_title_buf etc. unconditionally.
9505
95062002-06-11 Stefan Monnier <monnier@cs.yale.edu>
9507
9508 * keyboard.c (read_key_sequence):
9509 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
9510 things through those maps after downcasing events.
9511 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
9512 applies after function-key-map.
9513 Make sure that keytran can be done in the middle in the sequence.
9514 Be careful not to throw away events past the one we downcase.
9515
9516 * lread.c (read_integer): Remove unused var `tem'.
9517 (read1): Fix int/Lisp_Object mixup.
9518
9519 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
9520
95212002-06-11 Richard M. Stallman <rms@gnu.org>
9522
9523 * keyboard.c (readable_events): Ignore any number of
9524 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
9525
95262002-06-09 Miles Bader <miles@gnu.org>
9527
9528 * xfaces.c (Ftty_supports_face_attributes_p): New function.
9529 (parse_rgb_list, tty_lookup_color): New functions.
9530 (tty_defined_color): Use `tty_lookup_color' to do all the work.
9531 (color_distance, Fcolor_distance): New functions.
9532 (TTY_SAME_COLOR_THRESHOLD): New macro.
9533 (Qtty_color_standard_values): New variable.
9534 (syms_of_xfaces): Initialize new vars & functions.
9535
95362002-06-08 Colin Walters <walters@verbum.org>
9537
9538 * textprop.c (Vchar_property_alias_alist): New variable.
9539 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
9540
9541 * intervals.c (lookup_char_property): New function for looking up
9542 overlay and text properties, created from textget.
9543 (textget): Use it.
9544
9545 * intervals.h (lookup_char_property): Declare.
9546 (Vchar_property_alias_alist): Declare.
9547
9548 * buffer.c (Foverlay_get): Use lookup_char_property.
9549
95502002-06-07 Sam Steingold <sds@gnu.org>
9551
9552 * xselect.c (lisp_data_to_selection_data): Fix last change:
9553 *data_ret is not a Lisp string, while unibyte_string is.
9554
95552002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
9556
9557 * xselect.c (lisp_data_to_selection_data): Fix last change:
9558 set size_ret.
9559
95602002-06-07 Andreas Schwab <schwab@suse.de>
9561
9562 * m/amdx86-64.h: New file.
9563
95642002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
9565
9566 * fns.c (Fstring_make_unibyte): Doc fix.
9567
9568 * xselect.c (lisp_data_to_selection_data): If the requested type
9569 is STRING, call string_make_unibyte to encode the selected text
9570 as a string.
9571
9572 * window.c (Fset_window_hscroll): Doc fix.
9573
95742002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9575
9576 * fileio.c (choose_write_coding_system):
9577 Call select-safe-coding-system properly.
9578
95792002-06-03 Richard M. Stallman <rms@gnu.org>
9580
9581 * xdisp.c (message_with_string): Error if STRING is not a string.
9582
9583 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
9584
9585 * fileio.c (choose_write_coding_system): Pass FILE arg to
9586 Vselect_safe_coding_system_function.
9587
95882002-06-03 Ken Raeburn <raeburn@gnu.org>
9589
9590 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
9591
95922002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
9593
9594 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
9595 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
9596 * keymap.c (describe_command): Likewise.
9597 * minibuf.c (read_minibuf): Likewise.
9598
9599 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
9600 Cast `current_column' return value to int.
9601 (back_to_previous_visible_line_start)
9602 (reseat_at_next_visible_line_start, next_element_from_buffer):
9603 Cast `indented_beyond_p' 3rd arg to float.
9604
9605 * indent.c (last_known_column): Now a float.
9606 (current_column_1, position_indentation, current_column)
9607 (string_display_width): Return float.
9608 (Fcurrent_column): Cast `current_column' return value to int.
9609 (Fcurrent_indentation): Cast `position_indentation' retval to int.
9610 (indented_beyond_p): Third arg now a float.
9611 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
9612
9613 * lisp.h (current_column): Now returns float.
9614 (indented_beyond_p): 3rd arg now a float.
9615
96162002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
9617
9618 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
9619 is Qcompound_text_with_extensions.
9620
9621 * xselect.c (lisp_data_to_selection_data): Always set selection
9622 type as string if x_encode_text returns streingp non-NULL.
9623
9624 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
9625
96262002-05-30 Richard M. Stallman <rms@gnu.org>
9627
9628 * window.c (Fset_window_configuration): Correct the handling
9629 of point in current buffer, to work with multiple windows.
9630
96312002-05-29 Colin Walters <walters@verbum.org>
9632
9633 * lread.c (Fread_from_string): Don't depend on order of evaluation
9634 for C function parameters.
9635
96362002-05-28 Richard M. Stallman <rms@gnu.org>
9637
9638 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
9639 way for blinked-off state and for a nonselected window.
9640
9641 * window.c (window_scroll_pixel_based): Don't call Fbolp;
9642 instead, see if the new start pos is at beginning of line.
9643
9644 * fileio.c (Fwrite_region): If START is a string, don't
9645 make any annotations.
9646
9647 * eval.c (syms_of_eval): Doc fix.
9648
96492002-05-28 Colin Walters <walters@debian.org>
9650
9651 * emacs.c (USAGE1): Add --no-splash.
9652 (standard_args): Ditto.
9653
96542002-05-28 Colin Walters <walters@gnu.org>
9655
9656 * lread.c (readchar_count): New variable.
9657 (readchar): Increment it.
9658 (unreadchar): Decrement it.
9659 (read_multibyte): Decrement it.
9660 (Vread_with_symbol_positions): New variable.
9661 (Vread_symbol_positions_list): New variable.
9662 (read_internal_start): New function, created from Fread and
9663 Fread_from_string. Handle Vread_symbol_positions_list and
9664 Vread_with_symbol_positions.
9665 (readevalloop, Fread, Fread_from_string): Use it.
9666 (read1): Use readchar_count to add symbol positions to
9667 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
9668 (syms_of_lread): DEFVAR_LISP and initialize them.
9669
9670 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
9671 (substitute_object_recurse, substitute_object_in_subtree)
9672 (substitute_in_interval): Prototype.
9673 (read_multibyte): Return c if it's less than zero.
9674
96752002-05-28 Kim F. Storm <storm@cua.dk>
9676
9677 * fileio.c (Fread_file_name_internal): Added brute-force
9678 speed up for using predicate file-directory-p.
9679
96802002-05-28 Kim F. Storm <storm@cua.dk>
9681
9682 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
9683 New variables.
9684 (syms_of_fileio): DEFVAR_LISP them.
9685 (read_file_name_cleanup): New unwind function.
9686 (Fread_file_name_internal): Only return completions satifying
9687 Vread_file_name_predicate. Temporarily unwind protect and rebind
9688 default-directory while checking completions against the predicate.
9689 (Fread_file_name): Added PREDICATE argument. Specbind it to
9690 Vread_file_name_predicate during completion.
9691 Call Vread_file_name_function to read the file name if non-nil.
9692
9693 * lisp.h (Fread_file_name): Now has 6 args.
9694
9695 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
9696 predicate for Fread_file_name when reading directory name.
9697 Supply Qnil for predicate in other calls to Fread_file_name.
9698
96992002-05-26 Miles Bader <miles@gnu.org>
9700
9701 * term.c (tty_capable_p): New function.
9702 * dispextern.h (tty_capable_p): New function declaration.
9703 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
9704 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
9705
97062002-05-23 Stefan Monnier <monnier@cs.yale.edu>
9707
9708 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
9709 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
9710 (Vwrite_region_annotate_functions): Docstring fix.
9711
97122002-05-23 Kim F. Storm <storm@cua.dk>
9713
9714 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
9715 phys_cursor's hpos is overwritten. This is still not completely
9716 correct, as it doesn't really make sense to use hpos at all to
9717 get the cursor glyph (as that is relative to the width of the
9718 characters on the line, which may have changed during the update).
9719
97202002-05-22 Jason Rumney <jasonr@gnu.org>
9721
9722 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
9723 Lisp_Object.
9724 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
9725 Use modified enumfont_t struct.
9726
9727 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9728
9729 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
9730 Handle the `hbar' cursor type.
9731 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9732
9733 * w32fns.c (Qhbar): New variable.
9734 (x_specified_cursor_type): Use it.
9735
97362002-05-21 Ken Raeburn <raeburn@gnu.org>
9737
9738 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
9739 now, when the address is needed.
9740
97412002-05-21 Colin Walters <walters@gnu.org>
9742
9743 * Makefile.in (shortlisp): Add font-core.el.
9744
97452002-05-20 Richard M. Stallman <rms@gnu.org>
9746
9747 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9748
9749 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
9750 equivalent key bindings here.
9751
97522002-05-20 Ken Raeburn <raeburn@gnu.org>
9753
9754 Change symbol structure to contain a lisp object for the symbol
9755 name:
9756 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
9757 object field named "xname".
9758 (SYMBOL_NAME): New macro.
9759 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
9760 name field.
9761 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
9762 (mark_object, gc_sweep): Use symbol xname field and XSTRING
9763 instead of name field.
9764 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
9765 SYMBOL_NAME instead of XSYMBOL and name field.
9766 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
9767 instead of XSYMBOL and name field.
9768 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
9769 and SYMBOL_NAME instead of XSYMBOL and name field.
9770 * coding.c (Fread_coding_system, code_convert_region1)
9771 (code_convert_string1, code_convert_string_norecord)
9772 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
9773 XSYMBOL and name field.
9774 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
9775 (Fmake_variable_buffer_local, Fmake_local_variable)
9776 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
9777 of XSYMBOL and name field.
9778 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
9779 XSYMBOL and name field.
9780 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
9781 instead of XSYMBOL and name field.
9782 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
9783 XSYMBOL and name field.
9784 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
9785 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9786 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
9787 instead of XSYMBOL and name field.
9788 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
9789 (parse_modifiers, apply_modifiers, Fevent_convert_list)
9790 (parse_solitary_modifier, Fexecute_extended_command):
9791 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9792 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
9793 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
9794 of XSYMBOL and name field.
9795 (describe_command, describe_translation): Use SYMBOL_NAME and
9796 assignment instead of XSYMBOL and name field and XSETSTRING.
9797 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
9798 instead of XSYMBOL and name field.
9799 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
9800 name field and XSETSTRING.
9801 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9802 of XSYMBOL and name field.
9803 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
9804 assignment instead of XSYMBOL and name field and XSETSTRING.
9805 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
9806 XSTRING instead of XSYMBOL and name field.
9807 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
9808 and XSTRING instead of XSYMBOL and name field.
9809 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
9810 and XSTRING instead of XSYMBOL and name field.
9811 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
9812 XSTRING instead of XSYMBOL and name field.
9813 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9814 of XSYMBOL and name field.
9815 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
9816 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9817
98182002-05-19 Ken Raeburn <raeburn@gnu.org>
9819
9820 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
9821 and XCDR real rvalues in most configurations.
9822
9823 * buffer.c (fix_overlays_in_range, fix_overlays_before):
9824 Don't take the address of the cdr part of a cons cell; instead, track
9825 the parent cell and call XSETCDR, or set the variable for the head
9826 of the list if we haven't started down the list yet.
9827
98282002-05-19 Richard M. Stallman <rms@gnu.org>
9829
9830 * doc.c (reread_doc_file): Don't ask for confirmation.
9831
98322002-05-18 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
9835 (xbm_load_image): Use it.
9836 (xbm_load): Ditto.
9837 (xbm_read_bitmap_data): Reverted to xfns.c version.
9838 From David Ponce <david@dponce.com>.
9839
98402002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
9841
9842 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
9843 2.02 and later.
9844
98452002-05-16 Juanma Barranquero <lektu@terra.es>
9846
9847 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
9848
98492002-05-15 Stefan Monnier <monnier@cs.yale.edu>
9850
9851 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
9852 meaningful test.
9853 (read_char_minibuf_menu_prompt): Fix typo.
9854
98552002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9856
9857 * eval.c (Fcommandp): Doc fix.
9858
98592002-05-13 Stefan Monnier <monnier@cs.yale.edu>
9860
9861 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
9862 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
9863 (Fset_keymap_parent): Gcpro a bit more.
9864 (access_keymap): Gcpro around meta_map call and around the main loop.
9865 (get_keyelt): Gcpro when following indirect references.
9866 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
9867 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
9868 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
9869 Remove useless ad-hoc remap code.
9870
98712002-05-13 Richard M. Stallman <rms@gnu.org>
9872
9873 * search.c (search_buffer): Give up boyer moore search if inverse
9874 translation change charset_base.
9875
98762002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
9877
9878 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
9879 characters is carried over from the previous block of text, adjust
9880 coding->produced to account for the extra character.
9881
98822002-05-11 Andreas Schwab <schwab@suse.de>
9883
9884 * coding.c (intersection): Keep the elements of the returned list
9885 in the same order as in the first list.
9886
98872002-05-11 Kim F. Storm <storm@cua.dk>
9888
9889 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
9890 only update cmm_size if realloc actually succeeds.
9891 Testing with initial size of 2 elements revealed that using
9892 realloc on GNU/Linux would cause a random trap in xmalloc
9893 later on, so I rewrote the code to use malloc/bcopy/free instead
9894 of realloc.
9895
98962002-05-10 Jason Rumney <jasonr@gnu.org>
9897
9898 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
9899
99002002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
9901
9902 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
9903 parens, to ensure correct evaluation order.
9904
99052002-05-10 Kim F. Storm <storm@cua.dk>
9906
9907 * keymap.c (Vemulation_mode_map_alists): New variable.
9908 (syms_of_keymap): DEFVAR_LISP it.
9909 (current_minor_maps): Process keymap alists in that list before
9910 minor-mode-overriding-map-alist and minor-mode-map-alist.
9911
99122002-05-09 Richard M. Stallman <rms@gnu.org>
9913
9914 * search.c (Freplace_match): Doc fix.
9915
99162002-05-09 Kim F. Storm <storm@cua.dk>
9917
9918 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9919 Enlarge cursor rectangle drawn around image with non-zero relief.
9920
9921 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
9922 Enlarge cursor rectangle drawn around image with non-zero relief.
9923
9924 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9925 Enlarge cursor rectangle drawn around image with non-zero relief.
9926
99272002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
9928
9929 * xselect.c (lisp_data_to_selection_data): Don't set selection
9930 type if comes from the Lisp object's car. If the selection
9931 contains a pure ASCII text, always return QSTRING as its type.
9932
99332002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9934
9935 * mac.c (mac-cut-function): Doc fix.
9936
99372002-05-05 Richard M. Stallman <rms@gnu.org>
9938
9939 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
9940
99412002-05-04 Jason Rumney <jasonr@gnu.org>
9942
9943 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
9944 for event-click-count.
9945
9946 * process.c (init_process): Only add server subfeature if we can
9947 use non-blocking I/O.
9948
99492002-05-04 Andrew Choi <akochoi@shaw.ca>
9950
9951 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
9952 repeatedly.
9953
99542002-05-03 Jason Rumney <jasonr@gnu.org>
9955
9956 * process.c (Fmake_network_process): Only support server sockets
9957 when we can make them non-blocking.
9958
9959 * s/ms-w32.h (HAVE_SELECT): Define.
9960
9961 * w32.h (FILE_NDELAY): New flag.
9962
9963 * w32.c (sys_getpeername, fcntl): New functions.
9964 (_sys_read_ahead): Temporarily block on non-blocking sockets.
9965
9966 * w32proc.c: include sys/file.h.
9967
99682002-05-03 Colin Walters <walters@verbum.org>
9969
9970 * callproc.c (Vgame_score_directory): Renamed to
9971 Vshared_game_score_directory.
9972
99732002-04-30 Richard M. Stallman <rms@gnu.org>
9974
9975 * s/gnu.h [emacs]: Include stdio.h.
9976 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
9977
9978 * eval.c (do_autoload): Error if called while preparing to dump.
9979
9980 * fns.c (Frequire): Error if need to load while preparing to dump.
9981
99822002-04-28 Colin Walters <walters@verbum.org>
9983
9984 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
9985 Default to "~/.emacs.d/games".
9986
99872002-04-29 Stefan Monnier <monnier@cs.yale.edu>
9988
9989 * lread.c (openp): Change arg exec_only to predicate.
9990 (build_load_history): Use XCAR/XCDR.
9991 (Flocate_file_internal): New fun.
9992 (syms_of_lread): Defsubr it.
9993 (Fload): Update call to openp.
9994
9995 * lisp.h (openp): Update prototype.
9996
9997 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
9998 * w32proc.c (sys_spawnve):
9999 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10000 * w32.c (check_windows_init_file):
10001 * sound.c (Fplay_sound_internal):
10002 * process.c (Fstart_process):
10003 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10004 * mac.c (run_mac_command):
10005 * emacs.c (init_cmdargs):
10006 * callproc.c (Fcall_process): Update call to openp.
10007
10008 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10009
10010 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10011
100122002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10013
10014 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10015 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10016
100172002-04-28 Richard M. Stallman <rms@gnu.org>
10018
10019 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10020
10021 * eval.c (Fcommandp): New arg for_call_interactively.
10022 * lisp.h (Fcommandp): Declare new arg.
10023
100242002-04-28 Jason Rumney <jasonr@gnu.org>
10025
10026 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10027
10028 * w32.c (stat, fstat): Use file index information to generate
10029 inodes for directories where available.
10030
100312002-04-26 Andrew Choi <akochoi@shaw.ca>
10032
10033 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10034 [HAVE_CARBON]: Include Mac object files.
10035
10036 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10037 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10038 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10039 MAC_OSX, and MAC_OS instead of macintosh.
10040
10041 * editfns.c [MAC_OS8]: Include stdio.h.
10042
10043 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10044
10045 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10046 Apple Monaco.
10047
10048 * process.c: Declare QCfamily and QCfilter as extern.
10049 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10050 calling select.
10051
10052 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10053
10054 * tparam.c [MAC_OSX]: Don't define BC and UP.
10055
10056 * config.in [HAVE_CARBON]: Add.
10057
10058 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10059 Move here from mac/src and mac/inc.
10060
10061 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10062
100632002-04-26 Gerd Moellmann <gerd@gnu.org>
10064
10065 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10066 Compute phys_cursor_width from the x position returned
10067 by x_draw_glyhs, which is cheaper.
10068 (x_display_and_set_cursor): Compute the buffer-local value
10069 of `cursor-in-non-selected-windows' only when needed.
10070
100712002-04-25 Gerd Moellmann <gerd@gnu.org>
10072
10073 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10074 cursor on a stretch glyph has a width that depends on
10075 x_stretch_cursor_p.
10076
100772002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10078
10079 * abbrev.c (abbrev-start-location): Doc fix.
10080
10081 * indent.c (Fvertical_motion): Fix last change.
10082
100832002-04-25 Gerd Moellmann <gerd@gnu.org>
10084
10085 * indent.c (Fvertical_motion): Move to the start of the line
10086 containing PT before moving up or down.
10087
100882002-04-24 Gerd Moellmann <gerd@gnu.org>
10089
10090 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10091 case of writing a whole row, more or less analogous to the case of
10092 writing only parts of a row.
10093
10094 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10095 0 for NO_CURSOR.
10096
10097 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10098
100992002-04-23 Colin Walters <walters@verbum.org>
10100
10101 * buffer.c (syms_of_buffer): Doc fix.
10102
101032002-04-23 Gerd Moellmann <gerd@gnu.org>
10104
10105 * xterm.c (notice_overwritten_cursor): Handle the special case
10106 of the cursor being in the first blank non-text line at the
10107 end of a window.
10108
10109 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10110 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10111 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
10112 bar cursors only, to make phys_cursor_width contain what its name
10113 suggests.
10114 (notice_overwritten_cursor): Consider the cursor image erased if
10115 the output area intersects the cursor image in y-direction.
10116
101172002-04-23 Simon Marshall <simon@gnu.org>
10118
10119 * xfns.c (x_set_mouse_color): Change default for cross_cursor
10120 to XC_hand2.
10121
101222002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10123
10124 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
10125
101262002-04-22 Kim F. Storm <storm@cua.dk>
10127
10128 * textprop.c (remove_properties): Fixed trap for malformed plist.
10129
101302002-04-22 Richard M. Stallman <rms@gnu.org>
10131
10132 * cmds.c (Fend_of_line): Handle intangible text in mid line.
10133
10134 * window.c (make_window): Initialize height_fixed_p,
10135 last_cursor_off_p, and p->cursor_off_p slots.
10136
101372002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10138
10139 * fns.c (use-dialog-box): Doc fix.
10140
101412002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10142
10143 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
10144 variables `row', `i' and `area'.
10145 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
10146 toolkit library.
10147
101482002-04-19 Stefan Monnier <monnier@cs.yale.edu>
10149
10150 * xfaces.c (clear_font_table): Don't free the default font of
10151 a frame even if it's on another display.
10152 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
10153 that could be Qt.
10154
101552002-04-19 Juanma Barranquero <lektu@terra.es>
10156
10157 * indent.c (Fmove_to_column): Remove unused local variable
10158 `next_boundary_byte'.
10159 (current_column_1): Likewise.
10160
101612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10162
10163 * msdos.c (Qhbar): New variable.
10164 (syms_of_msdos): Intern and staticpro it.
10165 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
10166 cursor type.
10167
101682002-04-19 Dave Lambert <dlambert@acm.org>
10169
10170 Theses change implement an underscore-like (`hbar') cursor.
10171
10172 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10173
10174 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
10175 Handle the `hbar' cursor type.
10176 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10177
10178 * xfns.c (Qhbar): New variable.
10179 (syms_of_xfns): Intern and staticpro it.
10180 (x_specified_cursor_type): Handle `hbar' cursor.
10181
10182 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
10183 not defined.
10184
101852002-04-18 Richard M. Stallman <rms@gnu.org>
10186
10187 * textprop.c (remove_properties): New arg LIST allows scanning
10188 either a list or a plist.
10189 (interval_has_some_properties_list): New function, like
10190 interval_has_some_properties using list instead of plist.
10191 All callers changed.
10192 (Fremove_list_of_text_properties): New function.
10193 (syms_of_textprop): Defsubr it.
10194
101952002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10196
10197 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
10198
101992002-04-17 Juanma Barranquero <lektu@terra.es>
10200
10201 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
10202
102032002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10204
10205 * window.c (coordinates_in_window): Don't report on margin area
10206 if its width is zero.
10207
102082002-04-16 Jason Rumney <jasonr@gnu.org>
10209
10210 * w32fns.c (Fx_file_dialog): Decode file name before using.
10211
10212 * w32term.c (construct_drag_n_drop): Likewise.
10213
102142002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
10215
10216 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
10217 store load-history in pure space.
10218
10219 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
10220
102212002-04-16 Stefan Monnier <monnier@cs.yale.edu>
10222
10223 * xterm.c (Qlatin_1, Qutf_8): New vars.
10224 (syms_of_xterm): Initialize them.
10225 (XTread_socket): Eliminate incorrect optimization that tried to avoid
10226 decoding the output of X*LookupString.
10227 Always use latin-1 to decode the output of XLookupString.
10228 Try Xutf8LookupString if XmbLookupString failed.
10229
10230 * region-cache.c (new_region_cache): Use BEG.
10231
102322002-04-16 Gerd Moellmann <gerd@gnu.org>
10233
10234 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
10235 configuration files.
10236 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
10237 returns 0.
10238
102392002-04-15 Andreas Schwab <schwab@suse.de>
10240
10241 * config.in: Regenerated using autoheader.
10242
10243 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
10244 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
10245 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
10246 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
10247 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
10248 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
10249 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
10250 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
10251 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
10252 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
10253 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
10254 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
10255 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
10256 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
10257 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
10258 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
10259 STACK_DIRECTION, now set by autoconf.
10260
102612002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10262
10263 * dispnew.c (marginal_area_string): Sort arguments.
10264
10265 * dispextern.h (marginal_area_string): Add prototype.
10266
102672002-04-13 Richard M. Stallman <rms@gnu.org>
10268
10269 * fileio.c (Finsert_file_contents):
10270 Don't call temp_output_buffer_setup--do just part, by hand.
10271
10272 * coding.c (run_pre_post_conversion_on_str):
10273 Don't call temp_output_buffer_setup--do just part, by hand.
10274
10275 * keyboard.c (command_loop_1): Don't call start_hourglass
10276 or cancel_hourglass when executing a macro.
10277
10278 * marker.c (count_markers): New function.
10279
10280 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
10281 grow without limit. Move recently used elements to the front.
10282
102832002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10284
10285 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
10286
102872002-04-12 Gerd Moellmann <gerd@gnu.org>
10288
10289 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
10290 rows marginal areas.
10291 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
10292 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10293
10294 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
10295
102962002-04-12 Dave Love <fx@gnu.org>
10297
10298 * dispnew.c (marginal_area_string): New.
10299
10300 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
10301 (Qleft_margin, Qright_margin): Declare.
10302 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
10303
10304 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
10305 note_mode_line_highlight and extended.
10306
10307 * keyboard.c (Qleft_margin, Qright_margin): Declare.
10308 (make_lispy_event): Deal with mouse events in margins.
10309
103102002-04-12 Stefan Monnier <monnier@cs.yale.edu>
10311
10312 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
10313
10314 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
10315 than deactivating the mark if tmm is set to `lambda'.
10316 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
10317 Use a single event for HELP_EVENT.
10318 (Fexecute_extended_command): Save last_point_position.
10319
103202002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10321
10322 * lisp.h (Fpropertize): Add prototype.
10323
10324 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
10325
103262002-04-10 Colin Walters <walters@verbum.org>
10327
10328 * config.in: Add HAVE_SHARED_GAME_DIR.
10329
10330 * callproc.c: (Vgame_score_directory): New variable.
10331 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
10332
103332002-04-10 Richard M. Stallman <rms@gnu.org>
10334
10335 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
10336
103372002-04-09 Stefan Monnier <monnier@cs.yale.edu>
10338
10339 * minibuf.c (read_minibuf): Use empty_string.
10340 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
10341 Short-circuit the search as soon as it "failed".
10342 (Fall_completions): Allow lambda forms and lists of strings for alist.
10343 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
10344 when require_match is nil.
10345 (Ftest_completion): Rename from `test_completion' and export to elisp.
10346 Call the predicate also when alist is a list.
10347 Obey Vcompletion_regexp_list.
10348 (do_completion, Fminibuffer_complete_and_exit): Use it.
10349 (Fassoc_string): Rename from `assoc_for_completion'.
10350 Allow list of strings as well and export to elisp.
10351
103522002-04-08 Stefan Monnier <monnier@cs.yale.edu>
10353
10354 * puresize.h (BASE_PURESIZE): Increase to 900KB.
10355
103562002-04-08 Juanma Barranquero <lektu@terra.es>
10357
10358 * w32.c (sys_accept): Don't hide variable `s'.
10359
103602002-04-05 Gerd Moellmann <gerd@gnu.org>
10361
10362 * callint.c (Fcall_interactively): Use INTEGERP instead of
10363 NUMBERP for checking Vhistory_length.
10364
103652002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10366
10367 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
10368 Doc fix to reflect it.
10369
103702002-04-04 Richard M. Stallman <rms@gnu.org>
10371
10372 * xdisp.c (display_mode_element): New arg RISKY.
10373 Disregard text props found or specified within a variable
10374 that isn't marked risky-local-variable.
10375 (Qrisky_local_variable): New variable.
10376 (syms_of_xdisp): Init and staticpro it.
10377
103782002-04-04 Stefan Monnier <monnier@cs.yale.edu>
10379
10380 * undo.c (record_point): New fun.
10381 (record_delete, record_insert): Use it.
10382
103832002-04-03 Juanma Barranquero <lektu@terra.es>
10384
10385 * doc.c (Fdocumentation): Add missing parentheses.
10386 (Fdocumentation_property): Likewise.
10387
103882002-04-03 Stefan Monnier <monnier@cs.yale.edu>
10389
10390 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
10391 data is 0, just return nil.
10392
103932002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
10394
10395 * msdos.c (syms_of_msdos): Fix last change with
10396 mouse_autoselect_window.
10397
103982002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10399
10400 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
10401 mouse_autoselect_window.
10402
104032002-04-02 Stefan Monnier <monnier@cs.yale.edu>
10404
10405 * keyboard.c (make_lispy_event): Handle unknown keysyms together
10406 with system-specific keysyms. Use it also for unknown function keys.
10407
10408 * doc.c (reread_doc_file): Return whether reload was attempted.
10409 (Fdocumentation, Fdocumentation_property): Don't try to reload
10410 if the doc is 0 and only ask once.
10411
10412 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
10413
104142002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
10415
10416 * keyboard.c (read_char): If the event was Qselect_window,
10417 restore timer_idleness_start_time to its previous value.
10418
10419 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
10420
104212002-04-01 Stefan Monnier <monnier@cs.yale.edu>
10422
10423 * region-cache.c (new_region_cache): Use BEG.
10424
10425 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
10426 Use BEG and BEG_BYTE.
10427
10428 * doc.c (get_doc_string): Return nil if the location is wrong.
10429 (reread_doc_file): New fun.
10430 (Fdocumentation, Fdocumentation_property):
10431 Call it if get_doc_string fails.
10432 (Fsnarf_documentation): Make it work for a dumped Emacs.
10433
10434 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
10435 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
10436
10437 * charset.c (Fstring): Allow 0 arguments.
10438
10439 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
10440
10441 * process.c (DATAGRAM_CONN_P, list_processes_1)
10442 (Fprocess_datagram_address, Fset_process_datagram_address)
10443 (Fset_network_process_options, server_accept_connection):
10444 Fix some int/Lisp_Object confusions (thank you union types).
10445
104462002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10447
10448 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
10449
10450 * w32term.c: Likewise.
10451 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
10452
10453 * keyboard.c (Qselect_window): New symbol.
10454 (head_table): Use it.
10455 (keys_of_keyboard): Bound select-window event to handle-select-window.
10456 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
10457
10458 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
10459 (last_window): New variable.
10460 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
10461 (note_mouse_movement): Remove reimplemented code in #if 0.
10462 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
10463 Emacs windows.
10464
10465 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
10466
104672002-03-31 Gerd Moellmann <gerd@gnu.org>
10468
10469 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
10470 Callers changed.
10471
104722002-03-30 Richard M. Stallman <rms@gnu.org>
10473
10474 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
10475 loop whenever it stops making progress.
10476
10477 * widget.c (set_frame_size): Don't call change_frame_size.
10478
104792002-03-30 Gerd Moellmann <gerd@gnu.org>
10480
10481 * dispnew.c (direct_output_for_insert):
10482 Call mark_window_display_accurate.
10483
104842002-03-29 Jason Rumney <jasonr@gnu.org>
10485
10486 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
10487
104882002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
10489
10490 * Makefile.in (lread.o): Depend on coding.h.
10491
10492 * lread.c (openp, Fload): Encode the file name before passing it
10493 to `stat', `access', and `emacs_open'.
10494 (openp): GCPRO the encoded file name. Don't recompute Lisp
10495 strings unnecessarily.
10496
104972002-03-29 Kim F. Storm <storm@cua.dk>
10498
10499 * fns.c (Flax_plist_put): Doc fix.
10500
105012002-03-28 Miles Bader <miles@gnu.org>
10502
10503 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
10504
105052002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10506
10507 * process.c (set-network-process-options): Add usage.
10508 (make-network-process): Doc fix.
10509
105102002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
10511
10512 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
10513
105142002-03-26 Richard M. Stallman <rms@gnu.org>
10515
10516 * fns.c (Fsubstring_no_properties): New function.
10517 (Flax_plist_get, Flax_plist_put): New functions.
10518 (syms_of_fns): defsubr them.
10519
10520 * xdisp.c (update_menu_bar): Test only update_mode_lines;
10521 don't test or alter w->update_mode_line.
10522
10523 * window.c (Fdisplay_buffer): Doc fix.
10524
105252002-03-24 Richard M. Stallman <rms@gnu.org>
10526
10527 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
10528
105292002-03-24 Gerd Moellmann <gerd@gnu.org>
10530
10531 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
10532 (Fdefmacro): Handle `(declare ...)'.
10533 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
10534 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
10535
105362002-03-24 Jason Rumney <jasonr@gnu.org>
10537
10538 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
10539 (xbm_file_p): Add prototypes.
10540 (xbm_format, xbm_image_p): Sync with xfns.c.
10541 (reflect_byte): New function.
10542 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
10543 (xbm_load_image): Create bitmaps with a depth of 1.
10544 (init_xfns): Enable XBM images.
10545
105462002-03-23 Jason Rumney <jasonr@gnu.org>
10547
10548 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
10549 correctly. Do not pass up_modifier to keyboard buffer.
10550
10551 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
10552
105532002-03-22 Stefan Monnier <monnier@cs.yale.edu>
10554
10555 * Makefile.in (bootstrapclean): New target.
10556 (bootstrap-temacs, bootstrap-doc): Remove.
10557 (bootstrap-emacs): Use a bog-standard `temacs'.
10558 Don't bother to build a DOC file.
10559
10560 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
10561
10562 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
10563 in temacs even if !CANNOT_DUMP.
10564 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
10565
10566 * alloc.c (check_pure_size): Only output a warning.
10567
105682002-03-22 Jason Rumney <jasonr@gnu.org>
10569
10570 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
10571 supported.
10572
10573 * w32term.c (zv_bits): Declare as short, for word alignment.
10574 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
10575 (syms_of_w32term): Define x-use-underline-position-properties.
10576
10577 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
10578 (clear_image_cache): Block input, fix logic, clear matrices in
10579 all frames that share this cache.
10580
105812002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
10582
10583 * emacs.c (main): Update the Copyright year in the blurb printed
10584 by "emacs --version".
10585
10586 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
10587
10588 * xterm.c (XTread_socket): If XK_ISO_Lock and
10589 XK_ISO_Last_Group_Lock are defined, handle keysyms between
10590 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
10591
105922002-03-21 Kim F. Storm <storm@cua.dk>
10593
10594 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
10595 menu-bar bindings in keymap and local-map properties _are_ used.
10596 But try keymap property first in accordance with 2002-01-03 patch.
10597 Added comment describing why this is not always reliable.
10598 (tool_bar_items): Ditto for tool-bar.
10599
106002002-03-21 Jason Rumney <jasonr@gnu.org>
10601
10602 * w32fns.c (x_clear_image_1): Disable color table code.
10603
106042002-03-21 Kim F. Storm <storm@cua.dk>
10605
10606 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
10607 removed the wrong version of the DEFUN macro; fixed it.
10608
10609 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
10610 Fmember rather than Fmemq).
10611 (Fprovide): Check that subfeatures is a list.
10612
10613 * process.c (QCfeature, QCdatagram): Removed variables.
10614 (QCtype, Qdatagram): New variables.
10615 (network_process_featurep): Removed function.
10616 (Fmake_network_process): Removed :feature check.
10617 Use :type 'datagram instead of :datagram t to create a datagram
10618 socket. This allows us to add other connection types (e.g. raw
10619 sockets) later in a consistent manner.
10620 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
10621 supported subfeatures for feature make-network-process.
10622 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
10623 Intern and staticpro QCtype and Qdatagram.
10624 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
10625
10626 * xfns.c: (QCtype): Remove duplicate declaration and
10627 initialization (is now declared in process.c).
10628
10629 * w32fns.c: (QCtype): Remove duplicate declaration and
10630 initialization (is now declared in process.c).
10631
106322002-03-21 Richard M. Stallman <rms@gnu.org>
10633
10634 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
10635 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
10636 when jumping to `fail' to avoid undoing reg changes in the
10637 last iteration of the loop.
10638 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
10639
10640 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
10641 Depend on process.h.
10642
106432002-03-20 Jason Rumney <jasonr@gnu.org>
10644
10645 Most of the following changes are still conditional on HAVE_IMAGES
10646 which is not set by default on Windows.
10647
10648 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
10649
10650 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
10651 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
10652 (four_corners_best, x_clear_image_1, x_clear_image)
10653 (x_alloc_image_color, postprocess_image)
10654 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
10655 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
10656 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
10657
10658 * w32gui.h (struct XImage): Define.
10659
10660 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
10661 extract mouse co-ordinates.
10662
106632002-03-20 Jason Rumney <jasonr@gnu.org>
10664
10665 * w32.c (init_winsock): Dynamically load new server and UDP
10666 socket functions.
10667 (socket_to_fd): New function.
10668 (sys_socket): Use it.
10669 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
10670 (sys_recvfrom, sys_sendto): New wrapper functions.
10671
10672 * process.c (QCfamily, QCfilter): Remove duplicate declaration
10673 and initialization.
10674
10675 * makefile.w32-in (LIBS): Remove $(WSOCK32).
10676
106772002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
10678
10679 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
10680 Don't use "sun" as a variable, it's a predefined constant on Sun
10681 machines.
10682
106832002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10684
10685 * bytecode.c (Fbyte_code): Revert last change.
10686
106872002-03-19 Kim F. Storm <storm@cua.dk>
10688
10689 * makefile.w32-in (LIBS): Add $(WSOCK32).
10690 From David Ponce <dponce@voila.fr>.
10691
106922002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10693
10694 * process.c (wait_reading_process_input): Move variables `pname'
10695 and `pnamelen' down where they are used.
10696
10697 * bytecode.c (Fbyte_code): Discard unused computed value to
10698 prevent gcc warning.
10699
10700 * lisp.h (Fplist_member): Add prototype.
10701
107022002-03-18 Kim F. Storm <storm@cua.dk>
10703
10704 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
10705 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
10706
10707 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10708 Remove explicit GNU_LINUX settings for datagram support.
10709
107102002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10711
10712 * process.c (Fmake_network_process): Remove unused variable `sa'.
10713 Doc fix. Add usage:.
10714 (set_socket_options): Remove unused variables `optnum' and `opttype'.
10715
107162002-03-17 Richard M. Stallman <rms@gnu.org>
10717
10718 * xdisp.c (cursor_type_changed): New variable.
10719 (redisplay_internal): Redisplay all windows if cursor_type_changed.
10720 Clear it when clearing windows_or_buffers_changed.
10721 (try_cursor_movement, redisplay_window, try_window_id)
10722 (try_window_reusing_current_matrix): Test cursor_type_changed
10723 along with windows_or_buffers_changed.
10724
10725 * window.h (cursor_type_changed): New variable.
10726
10727 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
10728 not update_mode_lines, and always set it to 1.
10729
10730 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
10731 if no frames needed redrawing.
10732
107332002-03-17 Kim F. Storm <storm@cua.dk>
10734
10735 The following changes add support for network server processes,
10736 datagram connections, and local (unix) sockets.
10737
10738 * process.h (struct Lisp_Process): New member log.
10739 Doc fix: Member command used to indicate stopped network process.
10740 Doc fix: Member childp contains plist for network process.
10741 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
10742
10743 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
10744 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
10745 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
10746 New variables.
10747 (NETCONN1_P): New macro.
10748 (DATAGRAM_SOCKETS): New conditional symbol.
10749 (datagram_address): New array.
10750 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
10751 (status_message): Use concat3.
10752 (Fprocess_status): Add `listen' status to doc string. Return `stop'
10753 for a stopped network process.
10754 (Fset_process_buffer): Update contact plist for network process.
10755 (Fset_process_filter): Ditto. Don't enable input for stopped
10756 network processes. Server must listen, even if filter is t.
10757 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
10758 New functions.
10759 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
10760 (Fprocess_contact): Added KEY argument. Handle datagrams.
10761 (list_processes_1): Optionally show only processes with the query
10762 on exit flag set. Dynamically adjust column widths. Omit tty
10763 column if not needed. Report stopped network processes.
10764 Identify server and datagram network processes.
10765 (Flist_processes): New optional arg `query-only'.
10766 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
10767 (conv_lisp_to_sockaddr, set_socket_options)
10768 (network_process_featurep, unwind_request_sigio): New helper functions.
10769 (Fprocess_datagram_address, Fset_process_datagram_address):
10770 (Fset_network_process_options): New lisp functions.
10771 (Fopen_network_stream): Removed. Now defined in simple.el.
10772 (Fmake_network_process): New lisp function. Code is based on previous
10773 Fopen_network_stream, but heavily reworked with new property list based
10774 argument list, support for datagrams, server processes, and local
10775 sockets in addition to old client-only functionality.
10776 (server_accept_connection): New function.
10777 (wait_reading_process_input): Use it to handle incoming connects.
10778 Do not enable input on a new connection if process is stopped.
f63fd14e 10779 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
10780 (send_process): Handle datagram sockets.
10781 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
10782 network process is indicated by setting command field to t .
10783 (Fprocess_send_eof): No-op if datagram connection.
10784 (Fstatus_notify): Don't read input for a stream server socket or a
10785 stopped network process.
10786 (init_process): Initialize datagram_address array.
10787 (syms_of_process): Intern and staticpro new variables, defsubr new
10788 functions.
10789
107902002-03-16 Jason Rumney <jasonr@gnu.org>
10791
10792 * w32fns.c (w32_to_all_x_charsets): Return correct type in
10793 startup case.
10794
107952002-03-16 Richard M. Stallman <rms@gnu.org>
10796
10797 * xdisp.c (redisplay_internal, redisplay_windows):
10798 Use list_of_error to call internal_condition_case_1.
10799 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
10800 so as to catch all errors with no possibility of debugger redisplay.
10801 (list_of_error): New variable.
10802 (syms_of_xdisp): Init and staticpro it.
10803
10804 * print.c (print_object): Delete `\ ' from printed rep of frame.
10805
108062002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
10807
10808 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
10809 until its implementation is fixed.
10810
108112002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10812
10813 * xfns.c (png_load): Remove unused variable `gamma_str'.
10814
108152002-03-14 Richard M. Stallman <rms@gnu.org>
10816
10817 * xfns.c (x_real_positions): Handle failure in XQueryTree.
10818
108192002-03-14 Miles Bader <miles@gnu.org>
10820
10821 * intervals.c (adjust_for_invis_intang): New function.
10822 (set_point_both): Use `adjust_for_invis_intang' to do most of the
10823 work for dealing with invisible+intangible regions. Do so before
10824 and after both forward and backward movements, to handle both
10825 front-sticky and rear-sticky cases.
10826 * textprop.c (text_property_stickiness): Function moved here from
10827 `editfns.c'.
10828 * intervals.h (text_property_stickiness): New declaration.
10829 * editfns.c (char_property_eq): Function removed.
10830 (text_property_stickiness): Function moved to `textprop.c'.
10831
108322002-03-13 Jason Rumney <jasonr@gnu.org>
10833
10834 * config.in: Add STRFTIME_NO_POSIX2.
10835
10836 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
10837 and %OX when underlying strftime does not.
10838
108392002-03-13 Stefan Monnier <monnier@cs.yale.edu>
10840
10841 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
10842 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
10843 line) to avoid annoying flicker.
10844 (xm_scroll_callback): Get rid of the now unnecessary kludge.
10845 (XTread_socket): Mark it static.
10846
10847 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
10848
108492002-03-13 Kim F. Storm <storm@cua.dk>
10850
10851 * puresize.h (BASE_PURESIZE): Increase to 775000.
10852
108532002-03-12 Juanma Barranquero <lektu@terra.es>
10854
10855 * editfns.c (syms_of_editfns): Fix typo.
10856
108572002-03-12 Gerd Moellmann <gerd@gnu.org>
10858
10859 * xsmfns.c: Include stdio.h because termhooks.h needs it.
10860 Include termopt.h for interrupt_input.
10861
108622002-03-11 Andreas Schwab <schwab@suse.de>
10863
10864 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
10865
108662002-03-11 Gerd Moellmann <gerd@gnu.org>
10867
10868 * xterm.c (note_mouse_movement): Put code for
10869 x_autoselect_window_p in #if 0.
10870
10871 * lread.c (Fload): Don't assume that message_with_string uses the
10872 string it is given like a C string.
10873
108742002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10875
10876 * xterm.h (x_session_check_input, x_session_initialize): Declared.
10877
10878 * xterm.c: (XTread_socket): Add call to x_session_check_input and
10879 x_session_have_connection.
10880 (x_initialize): Add call to x_session_initialize.
10881
10882 * termhooks.h (enum event_kind): Add save_session_event.
10883
10884 * keyboard.c: Add Emacs event save_session_event.
10885
10886 * emacs.c (main): Add call to syms_of_xsmfns.
10887
10888 * lisp.h: Declare syms_of_xsmfns as extern.
10889
10890 * config.in: Add HAVE_X_SM.
10891
10892 * Makefile.in (LIBXT): Add -lSM -lICE
10893 if HAVE_X_SM and not USE_X_TOOLKIT.
10894 (XOBJ): New file xsmfns.c added.
10895
10896 * xsmfns.c: New file for X session management.
10897
108982002-03-09 Jason Rumney <jasonr@gnu.org>
10899
10900 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
10901 read-only when setting modified time.
10902
109032002-03-08 Gerd Moellmann <gerd@gnu.org>
10904
10905 * xdisp.c (move_it_vertically_backward): At the end of the function,
10906 when moving forward by lines, treat terminal frames specially.
10907
10908 * keyboard.c (echo_char): Make sure to add a separator between
10909 keys even if echo_dash hasn't been called.
10910
10911 * xdisp.c: Use new string macros.
10912 (update_echo_area): Pass number of bytes to message3 instead of
10913 number of chars.
10914 (set_message_1): Don't access a string's size_byte directly.
10915 (decode_mode_spec_coding): Use number of bytes of eoltype string
10916 instead number of chars.
10917
10918 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
10919
109202002-03-08 Juanma Barranquero <lektu@terra.es>
10921
10922 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
10923 24-bit.
10924
109252002-03-06 Jason Rumney <jasonr@gnu.org>
10926
10927 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
10928
109292002-03-06 Gerd Moellmann <gerd@gnu.org>
10930
10931 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
10932 (cancel_echoing, echo_length, echo_truncate): Changed to
10933 work with new kboard definition.
10934 (echo_now): Use message3_nolog instead of message2_nolog.
10935
10936 * alloc.c (mark_kboards): Mark echo_string.
10937
10938 * keyboard.h (ECHOBUFSIZE): Removed.
10939 (struct kboard): Member echoptr removed, member echobuf renamed
10940 to echo_string.
10941
10942 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
10943 message3 instead of message2 to display the message using STRING's
10944 text properties.
10945
109462002-03-05 Andreas Schwab <schwab@suse.de>
10947
10948 * xdisp.c (hscroll_margin): Change to EMACS_INT.
10949
109502002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
10951
10952 * frame.c (default-frame-alist): Explain that setting it doesn't
10953 affect existing frames.
10954
109552002-03-05 Stefan Monnier <monnier@cs.yale.edu>
10956
10957 * indent.c (skip_invisible): Fix my brain fart.
10958
10959 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
10960
109612002-03-04 Stefan Monnier <monnier@cs.yale.edu>
10962
10963 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
10964 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
10965 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
10966 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
10967 and variables to use EMACS_INT instead of just int.
10968
10969 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
10970
109712002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
10972
10973 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
10974 environment, pass it down with corrected value.
10975
109762002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10977
10978 * lread.c (read_filtered_event): Do not call start_hourglass
10979 before returning.
10980
109812002-03-04 Juanma Barranquero <lektu@terra.es>
10982
10983 * w32term.c (x_display_and_set_cursor): Fix typo.
10984
109852002-03-03 Richard M. Stallman <rms@gnu.org>
10986
10987 * fileio.c (Fmake_temp_name): Doc fix.
10988
109892002-03-03 Gary Wong <gtw@gnu.org>
10990
10991 * termcap.c [!emacs]: Replace ospeed for building standalone
10992 libtermcap, for binary compatibility.
10993
10994 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
10995
109962002-03-03 Richard M. Stallman <rms@gnu.org>
10997
10998 * xrdb.c (file_p): Rename arg `path' to `filename'.
10999
11000 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11001 only if it is an integer.
11002
11003 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11004 If png_get_sRGB gives an answer, call png_set_gamma
11005 using the default image gamma value.
11006
11007 * lread.c (read1): When reading from a file, default string to
11008 multibyte only if it has some multibyte characters.
11009
11010 * print.c (print_object): Output multibyte chars 128...255
11011 using \x even if ! print_escape_multibyte.
11012
11013 * xdisp.c (display_mode_element): Move the places where
11014 bytepos, charpos, this, and lisp_string are set.
11015 Use lisp_string to set bytepos.
11016
11017 * xdisp.c (redisplay_internal):
11018 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11019
11020 * xdisp.c (display_mode_element): Merge properties specified with
11021 :propertize onto those that come with the string.
11022
110232002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11024
11025 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11026 automatic-hscrolling. Users changed.
11027 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11028 Users changed.
11029 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11030
110312002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11032
11033 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11034
110352002-03-02 Kim F. Storm <storm@cua.dk>
11036
11037 * window.c (Fminibuffer_selected_window): New function.
11038 (syms_of_window): Defsubr it.
11039
110402002-03-01 Kim F. Storm <storm@cua.dk>
11041
11042 * window.h (struct window): New member phys_cursor_width.
11043
11044 * window.c (make_window, replace_window): Init phys_cursor_width.
11045
11046 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11047 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11048
11049 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11050 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11051
11052 * lisp.h (GCPRO6): New macro.
11053
11054 * process.c (Fopen_network_stream): Use GCPRO6.
11055
110562002-03-01 Kim F. Storm <storm@cua.dk>
11057
11058 * process.c (Qconnect, Qfailed): New variables.
11059 (syms_of_process): Intern and staticpro them.
11060 (Fprocess_status): Document connect and failed return values.
11061 [NON_BLOCKING_CONNECT]: New conditional.
11062 (connect_wait_mask, num_pending_connects): New variables.
11063 (status_message): Convert Qfailed status.
11064 (Fopen_network_stream): Added support for non-blocking connect.
11065 New optional args: filter, sentinel, non_blocking. Doc updated.
11066 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11067 (deactivate_process): Handle pending non-blocking connect.
11068 (wait_reading_process_input): Poll for status of non-blocking
11069 connects. Exec sentinel directly when connect succeeds.
11070 (status_notify): Don't read process output if not yet connected.
11071
110722002-02-28 Kim F. Storm <storm@cua.dk>
11073
11074 * window.c: (minibuf_selected_window): Renamed from
11075 Vminibuf_selected_window. Users changed.
11076 (syms_of_window): Staticpro it.
11077
110782002-02-26 Kim F. Storm <storm@cua.dk>
11079
11080 The following changes add a new Vminibuf_selected_window variable
11081 which is similar to Vminibuf_scroll_window, but which is only set
11082 on entry to the minibuffer (from a non-minibuffer window):
11083
11084 * window.c: (Vminibuf_selected_window): New variable.
11085 (struct save_window_data): New member minibuf_selected_window.
11086 (Fset_window_configuration): Restore Vminibuf_selected_window.
11087 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11088 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11089 (compare_window_configurations): Compare minibuf_selected_window.
11090
11091 * window.h: (Vminibuf_selected_window): Declare extern.
11092
11093 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11094 entry to minibuffer or on entry from a non-minibuffer window.
11095
11096 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11097 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11098
11099 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11100 instead of Vminibuf_scroll_window when deciding in which window
11101 the region should be highlighted. Consequently, the region remains
11102 highlighteded even when a completion buffer is also displayed.
11103
111042002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
11105
11106 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
11107
11108 * xselect.c (Qcompound_text_with_extensions): Renamed from
11109 Qcompound_text_no_extensions.
11110 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
11111
111122002-02-26 Juanma Barranquero <lektu@terra.es>
11113
11114 * w32proc.c (syms_of_ntproc): Doc fix.
11115
111162002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11117
11118 * intervals.h: Include "dispextern.h" unconditionally.
11119
111202002-02-24 Jason Rumney <jasonr@gnu.org>
11121
11122 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
11123 and disp-table.elc.
11124 (lisp): Add emacs-lisp/backquote.elc.
11125
111262002-02-24 Kim F. Storm <storm@cua.dk>
11127
11128 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
11129 The validation of the event type was too strict as it didn't
11130 allow string events; buffer names are used in bindings for
11131 menu-bar-select-buffer (see `menu-bar-update-buffers').
11132
111332002-02-23 Kim F. Storm <storm@cua.dk>
11134
11135 The following changes rework my patch of 2002-02-06 which
11136 added command remapping by entering the commands directly into
11137 the keymaps. Now, command remapping uses an explicit `remap'
11138 prefix in the keymaps, i.e. [remap COMMAND].
11139
11140 * keymap.c (Qremap, remap_command_vector): New variables.
11141 (is_command_symbol): Removed function.
11142 (Fdefine_key): No longer accept a symbol for KEY.
11143 Added validation of [remap COMMAND] argument for KEY.
11144 The DEF is no longer required to be a symbol when remapping a command.
11145 (Fremap_command): New function to remap command through keymaps.
11146 (Flookup_key): Perform command remapping initiated by
11147 Fremap_command directly for speed.
11148 (Fkey_binding): Use Fremap_command for command remapping.
11149 (where_is_internal): Handle new command remapping representation.
11150 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
11151 staticpro them. Defsubr Fremap_command.
11152
11153 * keymap.h (Fremap_command): Declare extern.
11154 (is_command_symbol): Remove extern.
11155
11156 * keyboard.c (command_loop_1): Use Fremap_command for command
11157 remapping; now try command remapping for all symbols.
11158
111592002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11160
11161 * coding.h (run_pre_post_conversion_on_str): Add prototype.
11162
111632002-02-23 Jason Rumney <jasonr@gnu.org>
11164
11165 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
11166 on the string before encoding it.
11167 (Fw32_get_clipboard_data): Run post-read-conversion on the string
11168 after decoding it.
11169
11170 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
11171
111722002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11173
11174 * w32term.c (enter_timestamp): Remove unused static variable to
11175 prevent warning.
11176
11177 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
11178
111792002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11180
11181 * w16select.c (Fw16_get_clipboard_data): Fix last change.
11182
11183 * xselect.c (selection_data_to_lisp_data): Fix last change.
11184
111852002-02-22 Jason Rumney <jasonr@gnu.org>
11186
11187 * w32term.h (struct w32_output): New member menu_command_in_progress.
11188
11189 * w32menu.c (menubar_selection_callback): Free the menu and
11190 clear the menu_command_in_progress flag.
11191
11192 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
11193 (menu_free_timer): New variable.
11194 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
11195 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
11196 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
11197 menu command is in progress.
11198 <WM_COMMAND>: Set the menu_command_in_progress flag.
11199 Kill any menu_free_timer that is running.
11200
11201 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
11202 Call ExtTextOutA rather than ExtTextOut.
11203
112042002-02-22 Eli Zaretskii <eliz@gnu.org>
11205
11206 * puresize.h (BASE_PURESIZE): Increase to 755000.
11207
112082002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11209
11210 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
11211 on the string before encoding it.
11212 (Fw16_get_clipboard_data): Run post-read-conversion on the string
11213 after decoding it.
11214
112152002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11216
11217 Support for ICCCM Extended Segments in X selections:
11218
11219 * xselect.c <Qcompound_text_no_extensions>: New variable.
11220 (syms_of_xselect): Intern and staticpro it.
11221 (selection_data_to_lisp_data): Run post-read-conversion on decoded
11222 selection text.
11223 (lisp_data_to_selection_data): If next-selection-coding-system is
11224 compound-text-no-extensions, set the type of selection to be
11225 compound-text.
11226
11227 * xterm.h (x_encode_text): Update prototype.
11228
11229 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
11230 callers changed. If SELECTIONP is non-zero, run the
11231 pre-write-conversion function before encoding the selection text.
11232
112332002-02-21 Kim F. Storm <storm@cua.dk>
11234
11235 * frame.c (syms_of_frame): Change mouse-highlight default to t.
11236
11237 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
11238 Correct composing of language-change event.
11239
112402002-02-20 Kim F. Storm <storm@cua.dk>
11241
11242 * keyboard.c (menu_bar_items): Don't include keymap or local-map
11243 bindings at PT when building menu (the menu is not updated often
11244 enough for this to work reliable).
11245 (tool_bar_items): Likewise.
11246 (current_active_maps): Removed unused (and buggy) function.
11247
112482002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11249
11250 * xfns.c (gif_load): Use correct width and height for GIF images.
11251
112522002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
11253
11254 * floatfns.c (Fatan): Accept an optional second arg and call
11255 atan2 if passed 2 args.
11256
112572002-02-18 Jason Rumney <jasonr@gnu.org>
11258
11259 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
11260
112612002-02-17 Jason Rumney <jasonr@gnu.org>
11262
11263 * w32term.c (x_autoselect_window_p): New variable.
11264 (syms_of_w32term): DEFVAR_BOOL and initialize it.
11265 (note_mouse_movement): Use it.
11266
11267 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
11268
11269 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
11270
11271 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11272 New variables.
11273 (syms_of_w32fns): Intern and staticpro them.
11274 (x_frame_parms) <"fullscreen">: New parameter.
11275 (x_fullscreen_move, x_set_fullscreen): New functions.
11276 (x_set_frame_parameters): Support Qfullscreen.
11277 (x_real_positions): Save x/y_pixels_diff frame params.
11278 (x_figure_window_size): Support full-screen frames.
11279 (Fx_create_frame): Default the fullscreen parameter.
11280
11281 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
11282 (x_fullscreen_adjust): New functions.
11283 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
11284 fullscreen. Call x_check_fullscreen_move, and set the
11285 want_fullscreen member of output_data.w32
11286 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
11287
11288 * w32term.h: New enum for FULLSCREEN_* constants.
11289 (struct w32_output): New members want_fullscreen, x_pixels_diff,
11290 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
11291 (x-fullscreen-adjust): New prototype.
11292
112932002-02-17 Kim F. Storm <storm@cua.dk>
11294
11295 * frame.c: (Vmouse_highlight): New variable.
11296 (syms_of_frame): DEFVAR_LISP it.
11297
11298 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 11299
048addec 11300 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 11301
048addec
JD
11302 * xterm.c (disable_mouse_highlight): Removed variable.
11303 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11304 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11305 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
11306 and on after keyboard input.
11307 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 11308
048addec 11309 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 11310
048addec
JD
11311 * msdos.c (disable_mouse_highlight): Removed variable.
11312 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11313 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11314 (internal_terminal_init): Initialize mouse_face_hidden.
11315 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
11316 and on after keyboard input.
4f1b1854 11317
048addec 11318 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 11319
048addec
JD
11320 * w32term.c (disable_mouse_highlight): Removed variable.
11321 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
11322 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11323 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
11324 and on after keyboard input.
11325 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 11326
048addec 113272002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 11328
048addec
JD
11329 * msdos.c (last_mouse_window): New variable.
11330 (dos_rawgetc): Fix last change--if the mouse is in the same window
11331 as recorded in last_mouse_window, don't select this window.
5cb6905d 11332
048addec 11333 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 11334
048addec
JD
11335 * msdos.c (x_autoselect_window_p): New variable.
11336 (syms_of_msdos): Defvar it.
11337 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
11338 which the last mouse movement occured, unless it is already selected.
437dfb9f 11339
048addec
JD
11340 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
11341 New variables.
11342 (syms_of_xdisp): DEVFAR them.
11343 (hscroll_window_tree): Use automatic_hscroll_margin and
11344 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 11345
048addec 113462002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 11347
048addec
JD
11348 * xterm.c (x-autoselect-window): New variable.
11349 (note_mouse_movement): Use it.
9f696a00 11350
048addec 11351 * keyboard.c: Do not include "systime.h" twice.
d57966d7 11352
048addec 113532002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 11354
048addec 11355 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 11356
048addec 11357 * alloc.c (NSTATICS): Increase to 1280.
74779f52 11358
048addec 113592002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 11360
048addec 11361 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 11362
048addec
JD
11363 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
11364 (Vx_super_keysym): New variables.
11365 (syms_of_xterm): DEFVAR_LISP them.
11366 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
11367 variables to determine which keys to use for the various modifiers.
a474d59c 11368
048addec 113692002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 11370
048addec
JD
11371 * window.c: (Vmode_line_in_non_selected_windows): Removed.
11372 (mode_line_in_non_selected_windows): New variable.
11373 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 11374
048addec
JD
11375 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
11376 Use mode_line_in_non_selected_windows.
11377 (mode_line_in_non_selected_windows): Declare extern.
11378 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 11379
048addec 113802002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 11381
048addec
JD
11382 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
11383 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
11384 (Fclear_this_command_keys): Doc fixes.
2d10309f 11385
048addec
JD
11386 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
11387 (update_face_from_frame_parameter): Increment face_change_count
11388 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 11389
048addec
JD
11390 * xdisp.c (QCpropertize): New variable.
11391 (mode_line_proptrans_alist): New variable.
11392 (display_mode_element): New arg PROPS; all calls changed.
11393 Implement this, for strings.
11394 Handle literal output of strings by sharing the
11395 main-line code for strings, using local var `literal'.
11396 Handle :propertize feature.
11397 (syms_of_xdisp): Initialze and staticpro QCpropertize and
11398 mode_line_proptrans_alist.
0b1e6b54 11399
048addec 114002002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 11401
048addec
JD
11402 * window.c: (Vmode_line_in_non_selected_windows): New variable.
11403 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 11404
048addec
JD
11405 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
11406 (CURRENT_MODE_LINE_FACE_ID): Use it.
11407 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 11408
048addec
JD
11409 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
11410 to get mode line face.
e17144de 11411
048addec 114122002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11413
048addec
JD
11414 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
11415 variables; cus-start.el doesn't need them anymore.
44368f8f 11416
048addec 114172002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 11418
048addec
JD
11419 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
11420 reduction. This fixes a display problem where stray newlines were
11421 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 11422
048addec 114232002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11424
048addec 11425 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 11426
048addec 11427 * xdisp.c (display_mode_lines): Fix last change.
453c5510 11428
048addec 114292002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 11430
048addec
JD
11431 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
11432 match each other.
11433 (w32_load_system_font): Prevent Cleartype fonts from loading.
11434 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 11435
048addec 114362002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 11437
048addec
JD
11438 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
11439 (CURRENT_MODE_LINE_HEIGHT): Use it.
11440 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11441
048addec
JD
11442 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
11443 (pos_visible_p, handle_face_prop): Likewise.
11444 (display_mode_lines): Likewise, but for the real selected window.
11445 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11446
048addec
JD
11447 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
11448 in non-selected windows.
11449 (realize_basic_faces): Realize it.
11450 (syms_of_term): Intern and staticpro it.
308dd672 11451
048addec 114522002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 11453
048addec
JD
11454 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
11455 Changed mail addresses to emacs-devel@gnu.org.
308dd672 11456
048addec 114572002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 11458
048addec
JD
11459 * fileio.c (Fsubstitute_in_file_name): If the file name includes
11460 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 11461
048addec 11462 * floatfns.c (Fround): Doc fix.
3c1e6b46 11463
048addec 114642002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 11465
048addec 11466 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 11467
048addec 114682002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 11469
048addec 11470 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 11471
048addec 114722002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 11473
048addec
JD
11474 * keymap.c (where_is_internal): Only check whether definition is
11475 remapped if it fulfills is_command_symbol.
0065bb74 11476
048addec 114772002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 11478
048addec 11479 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 11480
048addec 11481 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 11482
048addec 114832002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 11484
048addec
JD
11485 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
11486 defining command remapping. Doc updated.
11487 (Flookup_key): Remap command through keymap if KEY is a symbol.
11488 (is_command_symbol): New function.
11489 (Fkey_binding): Use it. New optional argument NO-REMAP.
11490 Doc updated. Callers changed. Perform command remapping via
11491 recursive call unless that arg is non-nil.
11492 (where_is_internal): New argument no_remap. Callers changed.
11493 Call recursively to find original key bindings for a remapped
11494 comand unless that arg is non-nil.
11495 (Fwhere_is_internal): New optional argument NO-REMAP.
11496 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 11497
048addec
JD
11498 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
11499 (is_command_symbol): Added prototype.
0d8466cc 11500
048addec
JD
11501 * keyboard.c (Vthis_original_command): New variable.
11502 (syms_of_keyboard): DEFVAR_LISP it.
11503 (command_loop_1): Set it, and perform command remapping.
15fff01d 11504
048addec 115052002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 11506
048addec 11507 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 11508
048addec 115092002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 11510
048addec 11511 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 11512
048addec 115132002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 11514
048addec 11515 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 11516
048addec 115172002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 11518
048addec 11519 * filelock.c (S_ISLNK): Define if not defined.
3a232704 11520
048addec 115212002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 11522
048addec 11523 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 11524
048addec
JD
11525 * lread.c (read1): Redesign strategy for force_multibyte and
11526 force_singlebyte. Now is_multibyte records whether read_buffer
11527 is multibyte. Encountering any multibyte character makes it so.
4e02881b 11528
048addec 115292002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 11530
048addec
JD
11531 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
11532 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 11533
048addec 115342002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 11535
048addec
JD
11536 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
11537 latter never being defined on GNU/Linux.
749f499f 11538
048addec 115392002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 11540
048addec
JD
11541 * xfaces.c (realize_default_face): Don't set the weight and slant of
11542 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 11543
048addec 115442002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 11545
048addec
JD
11546 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
11547 Call cancel_hourglass unconditionally.
d0fd26dd 11548
048addec
JD
11549 * eval.c (Fsignal): Remove duplicated declaration of
11550 the variable `display_hourglass_p'.
b4c45162 11551
048addec 115522002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 11553
048addec 11554 * editfns.c (region_limit): Nicer error message.
c95eaa61 11555
048addec
JD
11556 * coding.c (decode_composition_emacs_mule):
11557 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 11558
048addec
JD
11559 * callint.c (check_mark): New arg to specify clearer error message.
11560 Callers changed.
c95eaa61 11561
048addec 115622002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 11563
048addec 11564 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 11565
048addec 115662002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 11567
048addec
JD
11568 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
11569 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
11570 Fix doc-strings.
c95eaa61 11571
048addec 115722002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 11573
048addec 11574 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 11575
048addec
JD
11576 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
11577 and scroll_up_aggressively.
c95eaa61 11578
048addec 115792002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 11580
048addec 11581 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 11582
048addec 115832002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 11584
048addec
JD
11585 * textprop.c (Fnext_property_change, Fnext_single_property_change)
11586 (Fprevious_property_change, Fprevious_single_property_change):
11587 Stay within the narrowed-buffer boundaries.
e2c3786a 11588
048addec 115892002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 11590
048addec
JD
11591 * term.c (Ftty_display_color_cells): New function.
11592 (syms_of_term): Defsubr it.
11593 (Ftty_display_color_cells, Ftty_display_color_p): Change the
11594 argument name to DISPLAY. Doc fix.
bf794306 11595
048addec
JD
11596 * dispextern.h: Add prototype for set_tty_color_mode and
11597 tty_setup_colors.
bf794306 11598
048addec 115992002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 11600
048addec
JD
11601 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
11602 If region left to draw is not what was expected, mark the frame as
11603 garbaged.
62582985 11604
048addec
JD
11605 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
11606 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 11607
048addec 116082002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 11609
048addec
JD
11610 * w32term.c (x_update_window_begin): Only hide caret if
11611 w32_use_visible_system_caret is set.
11612 (x_update_window_end): Only show caret if
11613 w32_use_visible_system_caret is set.
11614 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 11615
048addec 11616 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 11617
048addec 116182002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 11619
048addec
JD
11620 * unexelf.c (unexec): Define n so as to cause compilation error
11621 for the code where people have often written n instead of nn.
1e9a6186 11622
048addec 11623 * .gdbinit (hookpost-run): Defined.
1e9a6186 11624
048addec 116252002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 11626
048addec 11627 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 11628
048addec 116292002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 11630
048addec
JD
11631 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
11632 if fullscreen is being set.
7c75be36 11633
048addec 116342002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 11635
048addec
JD
11636 * minibuf.c (Fminibuffer_contents)
11637 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
11638 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 11639
048addec 116402002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 11641
048addec 11642 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 11643
048addec 116442002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 11645
048addec
JD
11646 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
11647 height before comparison.
11648 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 11649
048addec 116502002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 11651
048addec
JD
11652 * w32term.c (w32_system_caret_width): Remove.
11653 (w32_use_visible_system_caret): New user flag.
11654 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
11655 Windows reports a screen reader running.
11656 (x_update_window_begin): Hide the system caret.
11657 (x_update_window_end): Show the system caret.
11658 (x_display_and_set_cursor): Don't draw a cursor when
11659 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 11660
048addec
JD
11661 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
11662 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
11663 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
11664 the user requests it. Use system default width when creating.
11665 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 11666
048addec
JD
11667 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
11668 New window messages.
905cc05a 11669
048addec 116702002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 11671
048addec 11672 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 11673
048addec 116742002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 11675
048addec 11676 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 11677
048addec 116782002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 11679
048addec 11680 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 11681
048addec 116822002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 11683
048addec
JD
11684 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
11685 that Windows returns. If a double check fails, try to guess how
11686 ExtTextOut is going to act.
4d0fa4f3 11687
048addec
JD
11688 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
11689 in place of stricmp.
11690 (w32_list_synthesized_fonts): Removed.
11691 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
11692 (struct enumfont_t): New element; list.
11693 (enum_font_cb2): List all style and charset variations of a font.
11694 (Fw32_select_font): New optional argument; include_proportional.
11695 Exclude vertical fonts. Exclude proportional fonts unless
11696 include_proportional is non-nil.
11697 (w32_enable_synthesized_fonts): Change to a boolean.
11698 (Fw32_send_sys_command): Doc fix.
493faf20 11699
048addec 117002002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 11701
048addec
JD
11702 * dispnew.c (update_frame): Move the variable `tem' to the block
11703 where it is used.
4971e491 11704
048addec 117052002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 11706
048addec
JD
11707 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
11708 call to face-set-after-frame-default.
4971e491 11709
048addec 117102002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 11711
048addec
JD
11712 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
11713 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 11714
048addec 117152002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 11716
048addec
JD
11717 * window.c (enlarge_window): When exceeding size of parent,
11718 directly delete all the siblings instead of trying to resize it.
201c831a 11719
048addec 117202002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 11721
048addec 11722 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 11723
048addec 117242002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 11725
048addec 11726 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 11727
048addec 117282002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 11729
048addec
JD
11730 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
11731 is invisible. This can happen if cursor is on top line of a
11732 window, and we switch to a buffer with a header line.
d77fbc16 11733
048addec 11734 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 11735
048addec 117362002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 11737
048addec
JD
11738 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
11739 `dont_resize' only when used.
61e3b944 11740
048addec 11741 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 11742
048addec 117432002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 11744
048addec
JD
11745 * xdisp.c (display_mode_element): When computing charpos, depend
11746 on multibyteness of elt, not the text in field.
8af01033 11747
048addec 117482002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 11749
048addec
JD
11750 * buffer.c (Fkill_all_local_variables):
11751 Increment `update_mode_lines' only once.
7363986a 11752
048addec 117532002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 11754
048addec
JD
11755 * lisp.h (adjust_after_replace_noundo)
11756 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 11757
048addec 11758 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 11759
048addec 117602002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 11761
048addec
JD
11762 Support for the --color command-line argument and tty-color-mode
11763 frame parameter:
f1a85b89 11764
048addec
JD
11765 * term.c (tty_default_color_capabilities, tty_setup_colors)
11766 (set_tty_color_mode): New functions.
11767 (term_init): Call tty_default_color_capabilities.
11768 (Qtty_color_mode_alist): New variable.
11769 (syms_of_term): Intern and staticpro it.
f1a85b89 11770
048addec
JD
11771 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
11772 frames.
11773 (do_switch_frame): For termcap frames, switch the tty
11774 color mode as specified by the frame's parameters.
11775 (Qtty_color_mode): New variable.
11776 (syms_of_frame): Intern and staticpro it.
3a62677f 11777
048addec
JD
11778 * emacs.c (USAGE2): Add the --color option.
11779 (standard_args): Ditto.
72244db2 11780
048addec
JD
117812002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11782
11783 * xterm.h (struct x_output): New members want_fullscreen,
11784 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
11785 y_pixels_outer_diff.
11786 New enum for FULLSCREEN_* constants.
11787 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
11788 is NULL.
11789 (x_fullscreen_adjust): Add prototype.
3a62677f 11790
048addec
JD
11791 * emacs.c (USAGE2): Add the new full-screen arguments.
11792 (standard_args): Ditto.
3a62677f 11793
048addec
JD
11794 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11795 New variables.
11796 (syms_of_xfns): Intern and staticpro them.
11797 (x_frame_parms) <"fullscreen">: New parameter.
11798 (x_fullscreen_move, x_set_fullscreen): New functions.
11799 (x_set_frame_parameters): Support for Qfullscreen.
11800 (x_real_positions): More accurate computation of the frame position.
11801 (x_figure_window_size): Support full-screen frames.
11802 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 11803
048addec
JD
11804 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
11805 (XTread_socket) <Expose>: Call x_check_fullscreen.
11806 <ConfigureNotify>: Don't resize to fullscreen.
11807 Call x_check_fullscreen_move, and set the want_fullscreen member of
11808 output_data.x.
3a62677f 11809
048addec 118102002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 11811
048addec
JD
11812 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
11813 for mice with more than 3 buttons.
b8523839 11814
048addec
JD
11815 * w32term.c (parse_button): New parameter xbutton. Callers changed.
11816 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 11817
048addec
JD
11818 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
11819 (syms_of_w32fns): DEFVAR_BOOL it.
11820 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 11821
048addec 118222002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 11823
048addec 11824 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 11825
048addec 118262002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 11827
048addec 11828 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 11829
048addec 118302002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 11831
048addec
JD
11832 * .gdbinit (xbuffer): Remove address operator since data is now a
11833 pointer.
c93674bb 11834
048addec 118352002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 11836
048addec 11837 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 11838
048addec 11839 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 11840
048addec 118412002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 11842
048addec
JD
11843 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
11844 when checking for multiple frames.
91175673 11845
048addec 118462002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 11847
048addec
JD
11848 * window.c (delete_window): Rewrite the code for changing the
11849 selected window to handle the case where WINDOW is not a leaf.
91175673 11850
048addec 118512002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 11852
048addec
JD
11853 * process.c (send_process): Set src_multibyte to 1 after the call
11854 top setup_coding_system, not before the call.
e0fead5d 11855
048addec 118562002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 11857
048addec
JD
11858 * xmenu.c (set_frame_menubar, xmenu_show):
11859 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 11860
048addec
JD
11861 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
11862 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 11863
048addec 118642002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 11865
048addec 11866 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 11867
048addec 11868 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 11869
048addec 11870 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 11871
048addec 118722002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 11873
048addec
JD
11874 * insdel.c (make_gap_larger): Make sure buffer size does not
11875 overflow range of int.
62854fe2 11876
048addec 118772002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 11878
048addec
JD
11879 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
11880 OVERLAPS_P.
656f46bb 11881
048addec 11882 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 11883
048addec
JD
11884 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
11885 to the left or to the right of the pointer, put it against
11886 the left screen edge.
11887 (x_frame_parms): Add missing braces around initializer.
036e218d 11888
048addec
JD
11889 * w32term.c (x_setup_relief_colors): Don't compute an image's
11890 background color if it doesn't have a Pixmap.
11891 (notice_overwritten_cursor): Don't depend on
11892 output_cursor and updated_area. Compare pixel coordinates with
11893 window's cursor pixel coordinates.
11894 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11895 Call notice_overwritten_cursor with new arg list.
11896 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11897 unconditionally.
11898 (x_draw_image_relief): Use predefined macro instead of
11899 constant when the value of `tool_bar_button_relief' is negative.
036e218d 11900
048addec 11901 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 11902
048addec 119032002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 11904
048addec 11905 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 11906
048addec 119072002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 11908
048addec
JD
11909 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
11910 (Fkey_binding): Try the `keymap' property map first.
11911 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
11912 minor mode bindings.
90647b07 11913
048addec 119142002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 11915
048addec 11916 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 11917
048addec 119182002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 11919
048addec
JD
11920 * keyboard.c (read_key_sequence): Handle the keymap property
11921 before minor mode maps.
9fbc32aa 11922
048addec
JD
11923 * editfns.c (Fformat): Update thissize from field_width
11924 based on the actual width, in the string case.
036e218d 11925
048addec 119262002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 11927
048addec
JD
11928 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
11929 when used as truth value to prevent gcc warnings.
9fbc32aa 11930
048addec
JD
11931 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
11932 * w32proc.c: Include <config.h>.
9fbc32aa 11933
048addec 119342002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 11935
048addec
JD
11936 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
11937 not EMACS_INT, to make them compatible with DEFVAR_INT.
11938 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 11939
048addec 119402002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 11941
048addec
JD
11942 * print.c (print_object): Test print_escape_nonascii only for
11943 unibyte strings.
11944 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
11945 when outputting to a multibyte buffer.
9fbc32aa 11946
048addec 119472001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 11948
048addec
JD
11949 * print.c (print_object): In multibyte string, use hex escapes.
11950 Use octal only for unibyte strings.
11951 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 11952
048addec
JD
11953 * lread.c (read_escape): New arg BYTEREP for reporting whether
11954 escape forces unibyte or multibyte.
11955 (read1): When reading a string, take note of that info.
0142178a 11956
048addec 119572001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 11958
048addec
JD
11959 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
11960 comparison to test lisp value returned by Fget.
d4824a5d 11961
048addec 119622001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 11963
048addec 11964 * lisp.h (max_specpdl_size): Add declaration.
b1356234 11965
048addec 11966 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 11967
048addec
JD
11968 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
11969 Handle modifier bits. Correct typo in error message.
99e380ee 11970
048addec 119712001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 11972
048addec
JD
11973 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
11974 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
11975 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11976 Update calls to Fdefine_abbrev.
11977 (write_abbrev): Update for changed data format.
11978 Don't list "system" abbrevs.
11979 (Fexpand_abbrev): Update use count with new data format.
11980 (describe_abbrev): Update for changed data format.
11981 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 11982
048addec 11983 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 11984
048addec 11985 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 11986
048addec
JD
11987 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
11988 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 11989
048addec
JD
11990 * keymap.c (Flookup_key): Error message if key has wrong data type.
11991 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
11992 (exclude_key): New variable.
59a86c99 11993
048addec 119942001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 11995
048addec
JD
11996 * xterm.c (x_setup_relief_colors): Don't compute an image's
11997 background color if it doesn't have a Pixmap.
eb77a5f4 11998
048addec
JD
11999 * xterm.c (notice_overwritten_cursor): Don't depend on
12000 output_cursor and updated_area. Compare pixel coordinates with
12001 window's cursor pixel coordinates.
12002 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12003 Call notice_overwritten_cursor with new arg list.
12004 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12005 unconditionally.
eb77a5f4 12006
048addec
JD
12007 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12008 height of the cursor line to the amount to scroll.
eb77a5f4 12009
048addec 120102001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 12011
048addec
JD
12012 * intervals.c (set_point_both): The position after an invisible,
12013 intangible character is not an acceptable stopping point.
bb313871 12014
048addec 120152001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 12016
048addec
JD
12017 * window.c (enlarge_window): In new preserve_before code, convert
12018 CURBEG from lisp object to integer before doing arithmetic.
6052529b 12019
048addec 120202001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 12021
048addec 12022 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 12023
048addec 120242001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 12025
048addec
JD
12026 * keyboard.c (record_char): Ignore duplicate help-echo events only
12027 separated by mouse-movement. When tracking mouse, only record
12028 first and last mouse-movement event in same window.
12029 Don't record mouse-movement events in keyboard macros.
3ce081f5 12030
048addec 120312001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 12032
048addec
JD
12033 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12034 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 12035
048addec
JD
12036 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12037 instead of Fstring_as_unibyte.
9fabb2f5 12038
048addec 120392001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 12040
048addec 12041 The following changes remove mocklisp support:
9fabb2f5 12042
048addec 12043 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 12044
048addec
JD
12045 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12046 `Qmocklisp' and `Qmocklisp_arguments'.
12047 Remove prototype of syms_of_mocklisp.
2fa0eedf 12048
048addec 12049 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 12050
048addec
JD
12051 * callint.c: Do not include mocklisp.h.
12052 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 12053
048addec
JD
12054 * eval.c: Remove variables `Qmocklisp_arguments',
12055 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12056 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12057 Do not test for mocklisp case.
12058 (Fwhile): Remove unused variable `tem'.
12059 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 12060
048addec 12061 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 12062
048addec 12063 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 12064
048addec 12065 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 12066
048addec 120672001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 12068
048addec
JD
12069 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12070 to the left or to the right of the pointer, put it against
12071 the left screen edge.
6108b49c 12072
048addec 120732001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 12074
048addec
JD
12075 * Makefile.in (distclean): Remove .gdbinit if we are building
12076 outside the source tree.
5eea19a4 12077
048addec 120782001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 12079
048addec 12080 * w32.c (emacs_root_dir): New function.
5eea19a4 12081
048addec 12082 * msdos.c (emacs_root_dir): New function.
5eea19a4 12083
048addec
JD
12084 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12085 of the current drive as the fallback for default_directory.
438e57dd 12086
048addec
JD
12087 * dired.c (file_name_completion): Run the elements of
12088 completion-ignored-extensions through ENCODE_FILE.
438e57dd 12089
048addec
JD
12090 * lisp.h (scmp): Remove prototype, since it's now a static
12091 function private to dired.c.
c88e5347 12092
048addec 120932001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 12094
048addec
JD
12095 * dired.c (scmp): Function moved from minibuf.c.
12096 Delete multibyte handling--used only on encoded strings.
59ce1461 12097
048addec 12098 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 12099
048addec 12100 * fns.c (merge): Add QUIT call.
59ce1461 12101
048addec 121022001-12-18 Dave Love <fx@gnu.org>
8727d588 12103
048addec
JD
12104 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
12105 language/georgian.el.
8727d588 12106
048addec 121072001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 12108
048addec
JD
12109 * Makefile.in (lisp, shortlisp): Synchronize with changes to
12110 lisp/Makefile.in:DONTCOMPILE.
cc63037e 12111
048addec 121122001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 12113
048addec
JD
12114 * xdisp.c (window_box_height): Do not return negative values.
12115 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 12116
048addec 12117 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 12118
048addec 12119 * term.c (keys): Likewise.
deece6f5 12120
048addec 12121 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 12122
048addec 121232001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 12124
048addec
JD
12125 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
12126 patch (COMPOSING_P, not COMPOSING).
28ff4293 12127
048addec 121282001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 12129
048addec 12130 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 12131
048addec
JD
12132 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
12133 before calling decode_coding.
9b46de40 12134
048addec 12135 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 12136
048addec
JD
12137 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
12138 instead of only for COMPOSITION_DISABLED.
9b46de40 12139
048addec 121402001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 12141
048addec 12142 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 12143
048addec 12144 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 12145
048addec
JD
12146 * buffer.h (struct buffer): New field `display_error_modiff'.
12147 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 12148
048addec 12149 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 12150
048addec
JD
12151 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
12152 Call redisplay_window, but not if display_error_modiff field says no.
12153 (redisplay_window_error): New function.
12154 (displayed_buffer): New variable.
12155 (redisplay_internal, redisplay_windows): Call the new functions
12156 instead of redisplay_window directly.
2cd23960 12157
048addec 121582001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 12159
048addec 12160 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 12161
048addec 121622001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 12163
048addec
JD
12164 * makefile.w32-in (EMACSLOADPATH): Define.
12165 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
12166 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 12167
048addec 121682001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 12169
048addec
JD
12170 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
12171 parameter have a numeric value all the time.
f6fa0866 12172
048addec 12173 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 12174
048addec 121752001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 12176
048addec 12177 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 12178
048addec
JD
12179 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
12180 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 12181
048addec 121822001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 12183
048addec
JD
12184 * xdisp.c (move_it_vertically_backward): Change heuristic
12185 for the case that we didn't move far enough initially.
91c153e2 12186
048addec
JD
12187 * window.c (Frecenter): Simplify computation in the case of window
12188 system frames and ARG < 0; use window_box_height.
65b7d3e7 12189
048addec 121902001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 12191
048addec
JD
12192 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
12193 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 12194
048addec 121952001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 12196
048addec
JD
12197 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
12198 arg is negative.
be676094 12199
048addec 122002001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 12201
048addec
JD
12202 * m/hp800.h: Split the __hpux conditional into the parts
12203 that are right for GNU/Linux too and the parts that are not.
12204 Use the former if GNU_LINUX.
12205 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 12206
048addec 12207 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 12208
048addec 122092001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 12210
048addec
JD
12211 * macros.c, msdos.c, w16select.c: Change doc-string comments to
12212 `new style' [w/`doc:' keyword].
032a857d 12213
048addec 122142001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 12215
048addec
JD
12216 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
12217 before using.
b6270150 12218
048addec 122192001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 12220
048addec
JD
12221 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
12222 keyword].
98cbb9fa 12223
048addec 122242001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 12225
048addec 12226 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 12227
048addec 12228 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 12229
048addec 122302001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 12231
048addec
JD
12232 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
12233 Add comment to explain where the struct came from.
12234 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
12235 (add_menu_item): Process pop-up menus first to avoid memory leak.
12236 (add_menu_item, w32_menu_display_help): Use `help' field as
12237 Lisp_Object.
12238 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 12239
048addec 122402001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 12241
048addec 12242 * COPYING: Moved back.
fa336b91 12243
048addec
JD
12244 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
12245 Add parentheses around && within ||.
077907d4 12246
048addec 12247 * indent.c (compute_motion): Likewise.
aa2af83a 12248
048addec 12249 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 12250
048addec
JD
12251 * coding.c (setup_coding_system, shrink_encoding_region)
12252 (Fdecode_sjis_char): Likewise.
60a653f1 12253
048addec 122542001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 12255
048addec
JD
12256 * xdisp.c (display_mode_element): Don't read past end of string if
12257 it ends with '%'.
60a653f1 12258
048addec
JD
12259 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
12260 can hold.
60a653f1 12261
048addec
JD
12262 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
12263 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
12264 type changed to Lisp_Object.
12265 (syms_of_data): DEFVAR_LISP them.
60a653f1 12266
048addec 122672001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 12268
048addec
JD
12269 * callproc.c (init_callproc): Set Vdata_directory based on the source
12270 location whenever Emacs was run uninstalled.
60a653f1 12271
048addec 122722001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 12273
048addec
JD
12274 * config.in (HAVE_WORKING_VFORK): New #undefs.
12275 * process.c (create_process):
12276 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
12277 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
12278 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
12279 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
12280 * m/intel386.h (HAVE_VFORK): Likewise.
12281 * m/mips-siemens.h (HAVE_VFORK): Likewise.
12282 * m/mips.h (HAVE_VFORK): Likewise.
12283 * s/freebsd.h (vfork): Remove #define.
12284 * s/lynxos.h (HAVE_VFORK): Remove #undef.
12285 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 12286
048addec 122872001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 12288
048addec
JD
12289 * s/hpux10.h (random): Add undef.
12290 (HAVE_RANDOM): Define it just once.
60a653f1 12291
048addec 122922001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12293
048addec 12294 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 12295
048addec 122962001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12297
048addec
JD
12298 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
12299 scroll bars of the frame before deleting the frame itself. If the
12300 frame has a widget, delete the frame with XtDestroyWidget, and do
12301 not call XDestroyWindow before that.
60a653f1 12302
048addec 123032001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 12304
048addec 12305 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 12306
048addec 12307 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 12308
048addec 123092001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 12310
048addec
JD
12311 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
12312 excessively large.
60a653f1 12313
048addec
JD
12314 * insdel.c (make_gap_larger): New function.
12315 (make_gap_smaller): New function.
12316 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
12317 Call make_gap_smaller if arg is negative.
60a653f1 12318
048addec 123192001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12320
048addec
JD
12321 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
12322 Pass a dummy argument when calling interrupt_signal.
12323 (parse_menu_item): Mark disabled items before checking for empty def.
12324 (read_char_minibuf_menu_prompt): Make safety more visible.
12325 (read_key_sequence): Add a `first_unbound' variable.
12326 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
12327 unbound prefix as soon as we can detect it.
60a653f1 12328
048addec
JD
12329 * doc.c (Fsnarf_documentation): Add prototype.
12330 (get_doc_string): Handle negative arguments.
12331 (Fdocumentation): Use AREF and ASIZE.
12332 Move the calls to get_doc_string to a single place.
12333 Don't confuse an interactive-spec for a docstring reference.
12334 (Fdocumentation_property): Take advantage of the fact that
12335 get_doc_string now ignores the sign of the docstring position.
60a653f1 12336
048addec 12337 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 12338
048addec 123392001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12340
a64387ee 12341 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 12342
048addec 123432001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12344
048addec
JD
12345 * xterm.c (x_draw_image_relief): Use predefined macro instead of
12346 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 12347
048addec 123482001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 12349
048addec
JD
12350 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
12351 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 12352
048addec 12353 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 12354
048addec 123552001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12356
048addec 12357 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 12358
048addec 123592001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 12360
048addec 12361 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 12362
048addec 123632001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 12364
f63fd14e 12365 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 12366
048addec
JD
12367 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
12368 [!WM_MOUSELEAVE]: Define.
60a653f1 12369
048addec
JD
12370 * w32menu.c (current_popup_menu, get_menu_item_info):
12371 (set_menu_item_info): New vars.
12372 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
12373 (w32_menu_show): Set current_popup_menu.
12374 (add_menu_item): Allocate new strings for owner-drawn menu items
12375 and help strings.
12376 Use owner-draw for disabled menu items again.
12377 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
12378 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 12379
048addec
JD
12380 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
12381 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
12382 <WM_EXITMENULOOP>: Free menu strings.
12383 <WM_MOUSELEAVE>: Stop tracking mouse.
12384 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 12385
048addec
JD
12386 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
12387 and mouse face.
60a653f1 12388
048addec 123892001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 12390
048addec
JD
12391 The following changes add left-fringe and right-fringe
12392 frame parameters to adjust fringe widths, or remove one or
12393 both fringes.
60a653f1 12394
048addec
JD
12395 * frame.h (struct frame): Remove trunc_area_pixel_width and
12396 trunc_area_cols fields.
12397 (Qleft_fringe, Qright_fringe): Declare.
12398 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 12399
048addec
JD
12400 * frame.c (Qleft_fringe, Qright_fringe): New vars.
12401 (syms_of_frame): Initialize them.
60a653f1 12402
048addec
JD
12403 * window.c (coordinates_in_window): Handle separate left and right
12404 fringe widths.
60a653f1 12405
048addec
JD
12406 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
12407 and fringe_cols fields.
12408 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
12409 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
12410 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
12411 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
12412 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
12413 (x_compute_fringe_widths): Add prototype.
60a653f1 12414
048addec
JD
12415 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
12416 fill fringe evenly with small dashes.
f63fd14e 12417 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
12418 clip the new ZV bitmap to avoid jitter between rows.
12419 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
12420 background. Don't draw fringe bitmaps if fringe width is zero.
12421 (x_compute_fringe_widths): New function.
12422 (x_new_font, x_set_window_size_1): Use it.
60a653f1 12423
048addec
JD
12424 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
12425 (x_set_frame_parameters): Process `font' parameter before other
12426 parameters as fringe widths depend on it.
12427 (x_set_fringe_width): New function.
12428 (x_figure_window_size): Use x_compute_fringe_widths.
12429 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
12430 parameters.
60a653f1 12431
048addec
JD
12432 * widget.c (set_frame_size): Use x_compute_fringe_widths.
12433 (EmacsFrameSetCharSize): Ditto.
60a653f1 12434
048addec
JD
12435 * w32term.h: Merged changes from xterm.h.
12436 * w32term.c: Merged changes from xterm.c.
12437 * w32fns.c: Merged changes from xfns.c.
60a653f1 12438
048addec 124392001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12440
048addec 12441 * COPYING: Removed.
60a653f1 12442
048addec 124432001-11-29 Dave Love <fx@gnu.org>
60a653f1 12444
048addec
JD
12445 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
12446 extra extra slot.
12447 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 12448
048addec 124492001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12450
048addec
JD
12451 * fileio.c (file-name-coding-system)
12452 (default-file-name-coding-system): Doc fix (links to referenced
12453 variables added).
60a653f1 12454
048addec 124552001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12456
048addec
JD
12457 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
12458 Add dummy uses of gcproN variables.
60a653f1 12459
048addec
JD
12460 * category.c (describe_category, describe_category_1)
12461 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
12462 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 12463
048addec 124642001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 12465
048addec 12466 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 12467
048addec
JD
12468 * Makefile.in (lispdir): New variable, referring to build dir.
12469 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 12470
048addec 124712001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 12472
048addec
JD
12473 * w32menu.c (w32_menu_display_help): Actually add the new argument
12474 OWNER.
60a653f1 12475
048addec 124762001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 12477
048addec
JD
12478 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
12479 menu items. From David Ponce <dponce@wanadoo.fr>.
12480 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
12481 conditionally.
f63fd14e 12482 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 12483 help event in the owner frame's keyboard buffer.
60a653f1 12484
048addec
JD
12485 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
12486 (Fx_show_tip): Don't subtract last width from row width.
12487
12488 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
12489 (w32_read_socket): Use EQ to compare frames.
60a653f1 12490
048addec 124912001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 12492
048addec
JD
12493 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12494 OVERLAPS_P.
60a653f1 12495
048addec 124962001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12497
048addec
JD
12498 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
12499 `gcpro3' and `gcpro4'.
60a653f1 12500
048addec 12501 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 12502
048addec 125032001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12504
048addec 12505 * ccl.c: Use AREF and ASIZE.
60a653f1 12506
048addec 125072001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12508
048addec
JD
12509 * lisp.h (run_hook_list_with_args): Remove.
12510 (LIST_END_P): Fix call to wrong_type_argument.
12511 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 12512
048addec 125132001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12514
048addec
JD
12515 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
12516 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 12517
048addec
JD
12518 * eval.c: Use AREF and ASIZE.
12519 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 12520
048addec
JD
12521 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
12522 which match the end of the file-name.
12523 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
12524 is not a valid env var, but leave it as is instead.
60a653f1 12525
048addec
JD
12526 * keymap.c (access_keymap): Handle t bindings like nil bindings.
12527 Make nil bindings in char-tables transparent.
12528 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 12529
048addec 125302001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 12531
048addec
JD
12532 * textprop.c (set_text_properties_1): Allow START, END in either order.
12533 Do nothing if range is empty.
60a653f1 12534
048addec 12535 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 12536
048addec
JD
12537 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
12538 (clean): Not here.
60a653f1 12539
048addec 125402001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12541
048addec
JD
12542 * textprop.c (set_text_properties_1): Clearly mark that the
12543 interval should not be empty.
60a653f1 12544
048addec
JD
12545 * intervals.c (graft_intervals_into_buffer):
12546 Don't call set_text_properties_1 on an empty interval.
60a653f1 12547
048addec 125482001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 12549
048addec 12550 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 12551
048addec
JD
12552 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
12553 don't lose the data in it.
60a653f1 12554
048addec 125552001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 12556
048addec 12557 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 12558
c62aec78 12559 * buffer.c (Fkill_buffer): Likewise.
60a653f1 12560
c62aec78 12561 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 12562
048addec 125632001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12564
048addec 12565 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 12566
048addec 125672001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12568
048addec
JD
12569 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
12570 Niemitalo <kon@iki.fi>.
60a653f1 12571
048addec 125722001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 12573
048addec 12574 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 12575
048addec
JD
12576 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
12577 (Fx_show_tip): Block input during frame creation.
12578 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 12579
048addec 125802001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 12581
048addec
JD
12582 * lread.c (Fload): Detect recursive load error for more than 3
12583 nestings of the same file.
12584 (Vrecursive_load_depth_limit): Variable deleted.
12585 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 12586
048addec 125872001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 12588
048addec
JD
12589 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
12590 mouse position if either left or top is not specified.
60a653f1 12591
048addec
JD
12592 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
12593 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
12594 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
12595 (my_create_tip_window): Assign tip_window.
12596 (x_create_tip_frame): Use same defaults as X.
12597 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 12598 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 12599
048addec
JD
12600 * w32term.c (x_after_update_window_line): Doc fix.
12601 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
12602 frames.
12603 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 12604
048addec
JD
12605 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
12606 for all Windowed systems.
60a653f1 12607
048addec 126082001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12609
048addec
JD
12610 * msdos.c (IT_clear_screen): If the frame's faces are not yet
12611 realized, use the initial screen colors to clear the screen.
60a653f1 12612
048addec 126132001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12614
048addec
JD
12615 * textprop.c (Fset_text_properties): Remove unused variables
12616 `unchanged', `prev_changed', `s' and `len'.
60a653f1 12617
048addec
JD
12618 * search.c (Freplace_match): Remove unused variable `inslen'.
12619
12620 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
12621
126222001-11-22 Jason Rumney <jasonr@gnu.org>
12623
12624 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
12625 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
12626 (my_create_tip_window): New function.
12627 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
12628 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
12629
126302001-11-20 Jason Rumney <jasonr@gnu.org>
12631
12632 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
12633 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
12634
12635 * w32fns.c (Vw32_system_coding_system): Remove.
12636 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
12637
126382001-11-19 Stefan Monnier <monnier@cs.yale.edu>
12639
12640 * fileio.c (Fwrite_region): Move choose_write_coding_system to
12641 after build_annotations.
12642
12643 * syntax.c (describe_syntax): Add dummy arg.
12644 (describe_syntax_1): Update call to describe_vector.
12645
12646 * category.c (describe_category): Add dummy arg.
12647 (describe_category_1): Update call to describe_vector.
12648
12649 * keymap.c (Fdescribe_vector): Add `describer' parameter.
12650 (describe_command, describe_translation): Add dummy second param.
12651 (describe_map): Call elt_describer with two arguments.
12652 (describe_vector_princ): Add `fun' parameter.
12653 Call it instead of the hardcoded `princ'.
12654 (describe_vector): Add arg `args'.
12655 Pass it as a new second argument to elt_describer.
60a653f1 12656
048addec 12657 * keymap.h (describe_vector): Update prototype.
60a653f1 12658
048addec
JD
12659 * frame.c: Don't include keymap.h any more.
12660 (keys_of_frame): Remove.
60a653f1 12661
048addec 12662 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 12663
048addec 12664 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 12665
048addec 126662001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 12667
048addec
JD
12668 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
12669 if defined, 0 otherwise.
12670 (MAP_FAILED): Define if not defined and use it to test mmap failure.
12671 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 12672
048addec 126732001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 12674
048addec 12675 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 12676
048addec 126772001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 12678
048addec
JD
12679 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
12680 (x_draw_bar_cursor): If the background color of the glyph under
12681 the cursor equals the frame's cursor color, use the glyph's
12682 foreground color for drawing the bar cursor.
12683 (x_after_update_window_line): Clear internal border in different
12684 circumstances.
12685 (w32_set_vertical_scroll_bar): Check for width and height > 0.
12686 (w32_draw_relief_rect): Correct relief by 1 pixel.
12687 (x_set_glyph_string_background_width):
12688 Set extends_to_end_of_line_p if the row's fill_line_p is set and
12689 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
12690 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
12691 if cursor_in_non_selected_windows is false.
12692 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
12693 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
12694 Notice if cursor gets overwritten.
12695 (notice_overwritten_cursor): Renamed from
12696 note_overwritten_text_cursor. Rewritten to take glyph widths
12697 into account, and to take X positions as parameters.
12698 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
12699 around call to x_draw_glyphs.
12700 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
12701 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
12702 color to use for image glyph reliefs.
12703 (x_draw_image_relief): Accept zero tool_bar_button_relief.
12704 (glyph_rect): Remove unused variable `area'.
60a653f1 12705
048addec
JD
12706 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
12707 some items.
12708 (x_set_internal_border_width): Set frame garbaged when window
12709 doesn't exist yet.
12710 (Fx_create_frame): Accept zero tool_bar_button_relief.
12711 (x_clear_image_1, four_corners_best, image_background)
12712 (image_background_transparent): New functions.
12713 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
12714 (gs_format): Add `:background' entry.
12715 (lookup_image): Set IMG's background color if specified.
12716 (pbm_load, xbm_load_image, png_load): Set IMG's background field
12717 when appropriate.
12718 (x_clear_image_1): Reset `background_valid' and
12719 `background_transparent_valid' fields.
12720 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
12721 calculating it here. Set IMG's background_transparent field.
12722 (enum xpm_keyword_index): Add XPM_BACKGROUND.
12723 (enum png_keyword_index): Add PNG_BACKGROUND.
12724 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
12725 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
12726 (enum gif_keyword_index): Add GIF_BACKGROUND.
12727 (enum gs_keyword_index): Add GS_BACKGROUND.
12728 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
12729 Pre-calculate image background color where necessary.
12730 (x_create_x_image_and_pixmap, xbm_load, gs_load):
12731 Use display info's n_cbits entry for screen depth.
12732 (Fx_show_tip): Remove unused variables `buffer', `top',
12733 `left', `max_width' and `max_height'.
60a653f1 12734
048addec 12735 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 12736
048addec 127372001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 12738
048addec 12739 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 12740
048addec 127412001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12742
048addec 12743 * frame.c (Fframe_live_p): Doc fix.
60a653f1 12744
048addec 127452001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 12746
048addec
JD
12747 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
12748 (message_dolog_marker3): New static variables hold three markers.
12749 (syms_of_xdisp): Initialize and staticpro them.
12750 (message_dolog): Use message_dolog_marker1..3 instead of
12751 allocating markers each time. Unchain them when done.
60a653f1 12752
048addec 127532001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 12754
048addec 12755 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 12756
048addec 127572001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 12758
048addec 12759 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 12760
048addec 127612001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 12762
048addec 12763 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 12764
048addec 127652001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 12766
048addec 12767 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 12768
048addec 127692001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 12770
048addec
JD
12771 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
12772 with invalid position.
60a653f1 12773
048addec 127742001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 12775
048addec 12776 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 12777
048addec
JD
12778 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
12779 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
12780 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 12781
048addec 12782 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 12783
048addec 127842001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12785
048addec
JD
12786 * fileio.c (build_annotations): Split off the tail.
12787 (build_annotations_2): New fun. Extracted from build_annotations.
12788 (Fwrite_region): Split the call to build_annotations into two
12789 calls to build_annotations and build_annotations_2.
077907d4 12790
048addec 127912001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 12792
048addec
JD
12793 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
12794 clear_waiting_for_input with argument.
1756e2fb 12795
048addec 12796 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 12797
048addec 12798 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 12799
048addec 12800 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 12801
048addec 12802 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 12803
048addec 128042001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 12805
048addec
JD
12806 * fileio.c (choose_write_coding_system): New fun, extracted
12807 from Fwrite_region.
12808 (Fwrite_region): Use it.
fa336b91 12809
048addec
JD
12810 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
12811 (funcall_lambda, run_hook_with_args): Make static and add prototype.
12812 (ml_apply, find_handler_clause): Add prototype.
fa336b91 12813
048addec 128142001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 12815
048addec 12816 * config.in: Add #undef HAVE_COFF_H.
fa336b91 12817
048addec
JD
12818 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
12819 Required for ISC 4.1.
fa336b91 12820
048addec 128212001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 12822
048addec
JD
12823 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
12824 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 12825
048addec 128262001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 12827
048addec
JD
12828 The following changes are made to clean up the various internal
12829 references to the fringes to actually use the term `fringe' for
12830 them. Previously, they were called `flags areas', `bitmap areas',
12831 `left/right side of windows', or implicitly as `flags' or
12832 `bitmaps':
fa336b91 12833
048addec 12834 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 12835 Comments fixed. Use renamed symbols.
06e8f738 12836
f63fd14e 12837 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 12838
048addec
JD
12839 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
12840 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
12841 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 12842
048addec 12843 * msdos.c: Comment fix.
9ce647f4 12844
048addec 12845 * w32fns.c: Use renamed symbols.
9b784ab8 12846
f63fd14e 12847 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
12848 (fringe_bitmap_type): Renamed from bitmap_type.
12849 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12850 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
12851 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 12852
f63fd14e 12853 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
12854 (fringes_extra): Renamed from flags_areas_extra.
12855 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12856 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12857 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12858 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12859 (FRAME_X_LEFT_FRINGE_WIDTH):
12860 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12861 (FRAME_X_RIGHT_FRINGE_WIDTH):
12862 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 12863
048addec 12864 * widget.c: Use renamed symbols.
9f7e52b4 12865
f63fd14e 12866 * window.c: Comment fixes. Use renamed symbols.
048addec 12867 (coordinates-in-window-p): Doc fix.
fa336b91 12868
f63fd14e 12869 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 12870
048addec 12871 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 12872
048addec 12873 * xfns.c: Use renamed symbols.
89512fcd 12874
f63fd14e 12875 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
12876 (fringe_bitmap_type): Renamed from bitmap_type.
12877 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12878 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
12879 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 12880
f63fd14e 12881 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
12882 (fringes_extra): Renamed from flags_areas_extra.
12883 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12884 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12885 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12886 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12887 (FRAME_X_LEFT_FRINGE_WIDTH):
12888 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12889 (FRAME_X_RIGHT_FRINGE_WIDTH):
12890 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
12891
128922001-11-15 Jason Rumney <jasonr@gnu.org>
12893
12894 * w32menu.c (add-menu-item): Make help_echo and radio buttons
12895 work for most menu items. From David Ponce
12896 <david.ponce@wanadoo.fr>.
12897
128982001-11-15 Gerd Moellmann <gerd@gnu.org>
12899
12900 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
12901 Some x_set_* function expect to be called even if old and new
12902 value are equal.
12903
12904 * xdisp.c (build_desired_tool_bar_string): Accept zero
12905 tool_bar_button_relief.
12906
12907 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
12908
12909 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
12910
12911 * xterm.c (x_draw_bar_cursor): If the background color of the
12912 glyph under the cursor equals the frame's cursor color, use
12913 the glyph's foreground color for drawing the bar cursor.
12914
12915 * dispnew.c (direct_output_forward_char): Fix character/byte
12916 position comparison.
7d18891d 12917
048addec 129182001-11-15 Miles Bader <miles@gnu.org>
d2936d21 12919
048addec
JD
12920 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
12921 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
12922 Update arguments to find_field.
12923 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
12924 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
12925 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
12926 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 12927
048addec 129282001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 12929
048addec 12930 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 12931
048addec
JD
12932 * dispextern.h (image_background, image_background_transparent):
12933 Conditionalize on HAVE_X_WINDOWS.
7d18891d 12934
048addec 129352001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 12936
048addec 12937 * print.c (Fprin1_to_string): Doc fix.
7d18891d 12938
048addec 12939 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 12940
048addec 12941 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 12942
048addec 12943 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 12944
048addec 12945 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 12946
048addec 12947 * eval.c (syms_of_eval): Doc fix.
7d18891d 12948
048addec 12949 * coding.c (syms_of_coding): Doc fix.
7d18891d 12950
048addec 12951 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 12952
048addec 12953 * dispnew.c (syms_of_display): Doc fix.
9474c847 12954
048addec 12955 * category.c (Fget_unused_category): Doc fix.
9474c847 12956
048addec 12957 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 12958
048addec 129592001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 12960
048addec 12961 * print.c (prin1, print): Doc fix.
e3059a5d 12962
048addec 129632001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 12964
048addec
JD
12965 * fontset.h: Remove declarations of variables
12966 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 12967
048addec
JD
12968 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
12969 `Vclip_large_size_font'.
eae936e2 12970
048addec 129712001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 12972
048addec 12973 * w32fns.c: Doc fix.
ddb67bdc 12974
048addec 129752001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 12976
048addec 12977 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 12978
048addec 12979 * fns.c: Doc fix.
6e1b91d7 12980
048addec 12981 * emacs.c: Doc fix.
1c1d3d69 12982
048addec 12983 * coding.c: Doc fix.
1c1d3d69 12984
048addec
JD
12985 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
12986 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
12987 `new style' [w/`doc:' keyword].
b6f4c7ba 12988
048addec 129892001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 12990
048addec
JD
12991 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
12992 LeaveNotify events. Only FocusIn and FocusOut do that now.
12993 (x_display_and_set_cursor): Do display hollow cursors in active
12994 minibuffer windows when they are not selected.
b6f4c7ba 12995
048addec 129962001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 12997
048addec 12998 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
12999 * w32term.c: Change doc-string comments to `new style'
13000 [w/`doc:' keyword]. Doc fixes.
a89f435d 13001
048addec
JD
13002 * w32fns.c: Don't define max.
13003 (Fx_open_connection): Only execute once.
a4cd0cd7 13004
048addec 130052001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 13006
048addec
JD
13007 * ccl.c: Change macros to use do-while block instead of if-else.
13008 Use braces to follow GNU Coding Standards.
eafb659a 13009
048addec 130102001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 13011
048addec 13012 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 13013
048addec 13014 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 13015
048addec
JD
13016 * insdel.c (replace_range): Use adjust_markers_for_replace
13017 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 13018
048addec 13019 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 13020
048addec
JD
13021 * textprop.c (set_text_properties_1): New subroutine
13022 broken out of set_text_properties.
13023 (set_text_properties): Use set_text_properties_1.
91823618 13024
048addec
JD
13025 * intervals.c (graft_intervals_into_buffer):
13026 Use set_text_properties_1 to clear out properties.
91823618 13027
048addec
JD
13028 * search.c (Freplace_match): Use replace_range to insert
13029 and delete. Don't request property inheritance from
13030 surrounding text.
86928dfb 13031
048addec 130322001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 13033
048addec 13034 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 13035 vertical fonts. Allow them if face name is explicitly specified.
048addec 13036 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 13037
048addec 130382001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 13039
048addec
JD
13040 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13041 instead of malloc/free.
a78e0303 13042
048addec 130432001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 13044
048addec
JD
13045 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13046 Coding Standards.
13047 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 13048
048addec 13049 * buffer.c (Fbury_buffer): Likewise.
0c99b139 13050
048addec 13051 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 13052
048addec
JD
13053 * coding.c (encode_coding): Use precomputed value of `src'.
13054 (encode_coding): Remove unused variable `src_end'.
13055 (code_convert_region): Remove unused variables `count'.
830ddd77 13056
048addec 130572001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 13058
048addec
JD
13059 * w32term.c (x_display_and_set_cursor): Do not move system caret
13060 if cursor_glyph is NULL.
55c6d645 13061
048addec 130622001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 13063
048addec 13064 * keymap.c (access_keymap): Fix compilation error.
5de38842 13065
048addec 130662001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 13067
048addec 13068 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 13069
048addec 130702001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 13071
048addec
JD
13072 * intervals.c (graft_intervals_into_buffer):
13073 Remove #ifdef'd-out code.
13074 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 13075
048addec
JD
13076 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13077 code (eval-current-buffer).
13078 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 13079
048addec 130802001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 13081
048addec 13082 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 13083
048addec 130842001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 13085
048addec 13086 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 13087
048addec
JD
13088 * keyboard.c (make_lispy_event): Check integerness and fix
13089 Lisp_Object/int mixup.
17893c65 13090
048addec 130912001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 13092
048addec 13093 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 13094
048addec
JD
13095 * fontset.c (fontset_font_pattern): Remove unused variable
13096 `family_registry'.
d5360cc7 13097
048addec 13098 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 13099
048addec 131002001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 13101
048addec 13102 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 13103
048addec
JD
13104 * buffer.c (Fkill_buffer): Don't delete auto save file
13105 if buffer is modified.
d9d54213 13106
048addec 131072001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 13108
048addec
JD
13109 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
13110 CHECK_NUMBER_CDR.
b116830b 13111
048addec 131122001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 13113
048addec 13114 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 13115
048addec 131162001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 13117
048addec 13118 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 13119
048addec 131202001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 13121
048addec 13122 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 13123
048addec 131242001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 13125
048addec
JD
13126 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
13127 the program image directly.
982f6c7e 13128
048addec 131292001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 13130
048addec 13131 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 13132
048addec 131332001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 13134
048addec
JD
13135 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
13136 and CHECK_BUFFER.
d31053f9 13137
048addec
JD
13138 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
13139 (record_char): Likewise.
d31053f9 13140
048addec
JD
13141 * keyboard.c (make_lispy_event): Don't insist a drag event must
13142 move to a different buffer position. Instead, check for moving at
13143 least double_click_fuzz.
982f6c7e 13144
048addec 13145 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 13146
048addec 13147 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 13148
048addec
JD
13149 * indent.c (current_column_1, Fmove_to_column): Separate the code
13150 for display-table glyphs from the code for buffer text, to fix
13151 bugs in the former.
830047fd 13152
048addec 131532001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 13154
048addec
JD
13155 * buffer.c (Fbuffer_local_value): New function.
13156 (syms_of_buffer): Defsubr it.
2df5238c 13157
048addec
JD
13158 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
13159 value of `cursor-in-non-selected-windows'.
4e397688 13160
048addec
JD
13161 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
13162 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
13163 (syms_of_xdisp): Initialize it.
48b0f3ae 13164
048addec 131652001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 13166
048addec 13167 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 13168
048addec
JD
13169 * coding.c: Change doc-string comments to `new style' [w/`doc:'
13170 keyword].
3ecaf7e5 13171
048addec
JD
13172 * eval.c (top_level_value, top_level_set): Remove commented and
13173 #ifdef'd-out code.
13174 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 13175
048addec 131762001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 13177
048addec 13178 * xfns.c: Include unistd.h, if it exists.
8db2e33b 13179
048addec 13180 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 13181
048addec 13182 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 13183
048addec 131842001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 13185
048addec
JD
13186 * lisp.h (CHECK_STRING_CAR): New macro.
13187 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
13188 treating XCAR and XCDR as lvalues.
13189 (openp): Use CHECK_STRING_CAR.
13190 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 13191
048addec 131922001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 13193
048addec
JD
13194 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13195 (SIGMASKTYPE): Define.
1b1acc13 13196
048addec 13197 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 13198
048addec 131992001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 13200
048addec
JD
13201 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
13202 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
13203 Fix typos in comments.
6cb16f95 13204
048addec
JD
13205 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
13206 and #ifdef'd-out code.
13207 Fix and reindent comments.
6cb16f95 13208
048addec 13209 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 13210
048addec
JD
13211 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
13212 argument `i' in macros.
6cb16f95 13213
048addec
JD
13214 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
13215 `i' in macros.
7e9d3c2f 13216
048addec
JD
13217 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
13218 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
13219 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
13220 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
13221 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
13222 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
13223 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
13224 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
13225 in macros.
7e9d3c2f 13226
048addec
JD
13227 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13228 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
13229 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
13230 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
13231 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
13232 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
13233 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
13234 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
13235 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
13236 (remove unused second argument).
7e9d3c2f 13237
048addec 132382001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 13239
048addec
JD
13240 * syntax.c (describe_syntax): New wrapper.
13241 (Finternal_describe_syntax_value): Rename from describe_syntax.
13242 Don't insert space at front and \n at the end.
13243 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 13244
048addec
JD
13245 * regex.c (re_wctype): Try to fix some warnings.
13246 (regcomp, regexec): Don't forget the __restrict.
9ba48103 13247
048addec 132482001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 13249
048addec 13250 * textprop.c (Fget_char_property): Doc fix.
9ba48103 13251
048addec 132522001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 13253
048addec 13254 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 13255
048addec 13256 * data.c (Fsetq_default): Ditto.
c22e59e1 13257
048addec 13258 * callint.c (Finteractive): Ditto.
9271ed2c 13259
048addec 132602001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 13261
048addec
JD
13262 * macros.c: Don't include keymap.h any more.
13263
132642001-11-01 Richard M. Stallman <rms@gnu.org>
13265
13266 * data.c (Fmake_local_variable): Doc fix.
13267
13268 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
13269 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 13270
048addec 13271 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
13272 bindings along with or instead of the buffer local map.
13273 Make the overriding maps override what they should.
13274
f00691a3 132752001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
13276
13277 * window.c (grow_mini_window): Fix typo in comment.
13278
27188d11
GM
132792001-11-01 Gerd Moellmann <gerd@gnu.org>
13280
7b49b9d2
GM
13281 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
13282 (XTset_vertical_scroll_bar): Likewise.
13283
43f7c3ea
GM
13284 * xfns.c (x_build_heuristic_mask): Use four_corners_best
13285 instead of IMAGE_BACKGROUND.
c22e59e1 13286
b350c2e5
GM
13287 * xfns.c (four_corners_best): Reindent.
13288
c22e59e1 13289 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
13290 Handle :box so that it is possible to specify sexprs.
13291
bf00d461
EZ
132922001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
13293
13294 * s/hpux11.h: New file.
13295
f00691a3 132962001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 13297
2b209b97
PJ
13298 * emacs.c (USAGE1): Show command line option --no-window-system
13299 instead of --no-windows in usage.
13300 (standard_args): Rename --no-windows to --no-window-system.
13301 (bug_reporting_address): Follow Emacs coding conventions.
13302
9dbc9081
PJ
13303 * eval.c (Fcommandp): Doc fix.
13304 Change doc-string comments to `new style' [w/`doc:' keyword].
13305
4e10df59
PJ
13306 * frame.c (Fframe_live_p): Doc fix.
13307
13308 * buffer.c (selective-display-ellipses): Doc fix.
13309
dd387b25
GM
133102001-10-31 Gerd Moellmann <gerd@gnu.org>
13311
fe957e65
GM
13312 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
13313
dd387b25
GM
13314 * xfaces.c (realize_x_face): If C is not a single-byte character,
13315 set the face's colors_copied_bitwise_p instead of the defaulted_p
13316 members which have a different meaning.
13317 (free_face_colors): Do nothing for a face whose colors have been
13318 copied bitwise.
13319
c22e59e1 13320 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 13321
f00691a3 133222001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 13323
687784e8
PJ
13324 * marker.c, mocklisp.c: Change doc-string comments to `new style'
13325 [w/`doc:' keyword].
2e1280f8 13326
b9d9a9b9
GM
133272001-10-31 Gerd Moellmann <gerd@gnu.org>
13328
13329 * fns.c (require_unwind): Return Lisp_Object.
13330
f00691a3 133312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 13332
fa1361cb
PJ
13333 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
13334 (last-input-char): Revert doc-string to be the same as the
13335 doc-string of `last-input-event'.
13336
6c465a15 13337 * xdisp.c: Fix typos in comments.
48400103 13338
eafa3196
GM
133392001-10-31 Gerd Moellmann <gerd@gnu.org>
13340
13341 * window.c (grow_mini_window): Handle case that the root
13342 window is already smaller than the nominal mininum height.
13343
747d3f2a
SM
133442001-10-30 Stefan Monnier <monnier@cs.yale.edu>
13345
bf9bb76f
SM
13346 * emacs.c (main): Don't call keys_of_macros any more.
13347
13348 * lisp.h (keys_of_macros): Remove.
13349
13350 * macros.c (keys_of_macros): Remove.
13351
747d3f2a
SM
13352 * xfaces.c (Fface_attribute_relative_p): Declare args.
13353
5e905a57
JR
133542001-10-30 Jason Rumney <jasonr@gnu.org>
13355
13356 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
13357 (enum_font_cb2): Ignore fonts with vertical orientation.
13358
3a426197
RS
133592001-10-30 Richard M. Stallman <rms@gnu.org>
13360
13361 * keyboard.c (Finput_pending_p): Doc fix.
13362
a742d646
GM
133632001-10-30 Gerd Moellmann <gerd@gnu.org>
13364
259cf6bc
GM
13365 * xterm.c (x_after_update_window_line): Don't run the code
13366 clearing in borders for rows whose visible height is 0.
13367
3f99f948
GM
13368 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
13369 resized_p flag is set. If not set, use the much less flickering
13370 method previously used.
13371
13372 * dispnew.c (change_frame_size_1): Set frame's resized_p.
13373
13374 * frame.h (struct frame) <resized_p>: New member.
13375
b4a3be43
GM
13376 * lread.c (to_multibyte): Ensure read_buffer is at least twice
13377 as large as the number of bytes to convert.
747d3f2a 13378
a742d646
GM
13379 * lread.c (to_multibyte): New function.
13380 (read1): Use it.
13381
cacbb9e9
EZ
133822001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
13383
13384 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
13385
99cb6b2f
GM
133862001-10-30 Gerd Moellmann <gerd@gnu.org>
13387
327f42ee 13388 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
13389 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
13390 if the row's fill_line_p is set and drawing the last glyph with
13391 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 13392
99cb6b2f
GM
13393 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
13394
8e8223e2
SM
133952001-10-29 Stefan Monnier <monnier@cs.yale.edu>
13396
13397 * xmenu.c: Include coding.h and charset.h.
13398 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
13399 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
13400 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
13401 Explicitly set wv->help. Use `TRUE' rather than `True'.
13402 (menu_help_callback): Use empty_string.
13403
13404 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
13405 (Fx_popup_dialog): Explicitly init f.
13406 (w32_menu_display_help): Use empty_string.
13407
4d083a8f
RS
134082001-10-29 Richard M. Stallman <rms@gnu.org>
13409
b2304472
RS
13410 * fns.c (Frequire): Detect recursive try to require the same
13411 feature 3 or more levels deep, and get error.
13412 (require_unwind): New subroutine.
13413 (require_nesting_list): New variable.
13414 (syms_of_fns): Init and staticpro it.
13415
4d083a8f
RS
13416 * print.c (print_object): Clarify indication of insertion type.
13417
2fe41216
EZ
134182001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
13419
90480000
EZ
13420 * coding.c (syms_of_coding): Document that locale-coding-system is
13421 used for decoding input on X.
13422
2fe41216
EZ
13423 * window.c (Fscroll_left, Fscroll_right): Doc fix.
13424
f00691a3 134252001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
13426
13427 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
13428 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
13429
60ebcfe8
GM
134302001-10-29 Gerd Moellmann <gerd@gnu.org>
13431
9a7bdceb
GM
13432 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
13433 use NO_CURSOR if cursor_in_non_selected_windows is false.
13434
3f08fcd2
GM
13435 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
13436 the slant attribute if FRAME is t.
13437
0ccfdad2
GM
13438 * xfns.c (x_set_internal_border_width): Set frame garbaged
13439 when X window doesn't exist yet.
13440
ef253080
GM
13441 * xterm.c (x_after_update_window_line): Clear internal border
13442 in different circumstances.
b116830b 13443
60ebcfe8
GM
13444 * xterm.c (XTread_socket) <KeyPress>: Don't use
13445 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
13446 <handa@etl.go.jp>.
13447
73d25f9c
EZ
134482001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
13449
13450 * m/ibms390.h: New file. From Adam Thornton
13451 <athornton@sinenomine.net>.
13452
cac1daf0
GM
134532001-10-28 Gerd Moellmann <gerd@gnu.org>
13454
053b3256 13455 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 13456
cac1daf0
GM
13457 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
13458 a loop counter.
13459
f00691a3 134602001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 13461
186486eb
PJ
13462 * emacs.c: Use argv[0] instead of emacs when -t was specified.
13463
4707d2d0
PJ
13464 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
13465 keyword].
13466 Fix typos in comments.
b116830b 13467
d883731c
PJ
13468 * emacs.c (bug_reporting_address): New function.
13469 Use it when displaying usage message.
13470
04012254
PJ
13471 * minibuf.c (read_minibuf): Remove unused external declaration of
13472 variable `Qread_only'.
13473
13b1a09c
PJ
13474 * keymap.c (access_keymap): Remove unused variable `charset'.
13475
5bbf4378
MB
134762001-10-28 Miles Bader <miles@gnu.org>
13477
13478 * xfaces.c (merge_face_heights): Handle TO being relative as well.
13479 Remove #ifdef'd-out code.
13480 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
13481 (syms_of_xfaces): Initialize them.
13482
1ce1e4ee
JR
134832001-10-27 Jason Rumney <jasonr@gnu.org>
13484
13485 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
13486 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
13487 position using the system caret.
13488
13489 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
13490 (w32_system_caret_height, w32_system_caret_x)
13491 (w32_system_caret_y): New variables for tracking system caret.
13492 (w32_initialize): Initialize them.
c2d53558 13493 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 13494
c2d53558
SM
13495 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
13496 New messages types.
1ce1e4ee
JR
13497
13498 * w32term.c (note_mouse_highlight): Clear old help_echo.
13499
f00691a3 135002001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 13501
bb4600a4
PJ
13502 * xterm.c: Fix typo in a comment.
13503
7db35a48
PJ
13504 * emacs.c: Fix typos in comments.
13505 Remove unnecessary spaces.
13506 Change doc-string comments to `new style' [w/`doc:' keyword].
13507 (USAGE2): Fix typos in usage string.
13508
a7248e4f
PJ
13509 * xterm.c: Fix typo in a comment.
13510
4e30ce42
PJ
13511 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
13512 emacs.c.
13513
62725a92
GM
135142001-10-27 Gerd Moellmann <gerd@gnu.org>
13515
798dbe1f 13516 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 13517 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
13518 farther backward when target_y was not reached.
13519
62725a92
GM
13520 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
13521 Display errno only if non-zero.
13522 (sound_warning): New function.
13523 (vox_configure): Don't treat failing to set sample rate as error.
13524 (various places): Improve error messages.
13525
d4e34d24
EZ
135262001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
13527
944e6f60
EZ
13528 * fileio.c (Faccess_file): Run the argument filename through
13529 Fexpand_file_name, before using it.
13530
d4e34d24
EZ
13531 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
13532 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
13533
38d2af0c
GM
135342001-10-26 Gerd Moellmann <gerd@gnu.org>
13535
da80a8d5
GM
13536 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
13537
38d2af0c
GM
13538 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13539 Fix clearing in the case of scroll bars on the right.
c2d53558 13540
45de4a6f 135412001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
13542
13543 * w32gui.h (XImage): Add a dummy typedef.
13544
fbd5ceb2
GM
135452001-10-26 Gerd Moellmann <gerd@gnu.org>
13546
c2d53558 13547 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 13548
b23236fb
EZ
135492001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
13550
13551 * frame.c (Fframe_parameter): Fix last change.
13552
5d991fc4
EZ
13553 * fileio.c: Revert last change (which removed old commented-out
13554 version of expand-file-name). Add a comment that explains why
13555 this old version should not be removed.
13556
879eadc3
GM
135572001-10-25 Gerd Moellmann <gerd@gnu.org>
13558
75700ff2
GM
13559 * frame.c (Fframe_parameter): Fix a bug whereby some
13560 ``artificial'' frame parameters, like `minibuffer' were not
13561 obtained by calling Fframe_parameters.
13562
dfe92a6a
GM
13563 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
13564 cursor differently.
13565
879eadc3
GM
13566 * xdisp.c (move_it_vertically_backward): Compute line height
13567 differently. Add heuristic to try to be more compatible to 20.x.
13568
e1010ebe
SM
135692001-10-25 Stefan Monnier <monnier@cs.yale.edu>
13570
d73a471b
SM
13571 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
13572
d6da5a06
GM
13573 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
13574 boolean.
e1010ebe 13575
f66bd220
MB
135762001-10-25 Miles Bader <miles@gnu.org>
13577
13578 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
13579 BG is a pointer to a structure, not a structure.
13580 (gif_format, png_format): Add missing commas.
13581
d436d538
RS
135822001-10-24 Richard M. Stallman <rms@gnu.org>
13583
13584 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 13585 (syms_of_xfaces): Defsubr it.
d436d538 13586
f00691a3 135872001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
13588
13589 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
13590 variable `area'.
13591
f00691a3 135922001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 13593
c2d53558 13594 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 13595
e2a57b34
MB
135962001-10-25 Miles Bader <miles@gnu.org>
13597
13598 * dispextern.h (struct image): Add `background',
13599 `background_valid', and `background_transparent' fields.
13600 (image_background, image_background_transparent): New declarations.
13601 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
13602 * xfns.c (image_background, image_background_transparent)
13603 (four_corners_best): New functions.
c2d53558 13604 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
13605 (gs_format): Add `:background' entry.
13606 (lookup_image): Set IMG's background color if specified.
13607 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13608 when appropriate.
13609 (x_clear_image_1): Reset `background_valid' and
13610 `background_transparent_valid' fields.
13611 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13612 calculating it here. Set IMG's background_transparent field.
13613 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13614 (enum png_keyword_index): Add PNG_BACKGROUND.
13615 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13616 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13617 (enum gif_keyword_index): Add GIF_BACKGROUND.
13618 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 13619 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
13620 Pre-calculate image background color where necessary.
13621 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13622 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13623 color to use for image glyph reliefs.
13624
b547b6e8
GM
136252001-10-24 Gerd Moellmann <gerd@gnu.org>
13626
d9e3b8c6
GM
13627 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
13628 in full-width rows.
c2d53558 13629
b547b6e8
GM
13630 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13631 Fix clearing of area not covered by scroll bar.
13632
f00691a3 136332001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
13634
13635 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
13636 and `real_start'.
c2d53558 13637 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
13638 (glyph_rect): Remove unused variable `area'.
13639
76cb5e06
GM
136402001-10-24 Gerd Moellmann <gerd@gnu.org>
13641
bdbdebff 13642 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
13643
13644 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
13645 (row_containing_pos): Take additional argument DY.
13646 Treat rows ending in middle of char differently.
62e33982
GM
13647 (display_line): Handle tabs on window systems differently.
13648
13649 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
13650 with additional argument.
13651
13652 * dispextern.h (row_containing_pos): Adjust prototype.
13653
76cb5e06
GM
13654 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
13655 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
13656 (try_window_id, try_window_reusing_current_matrix)
13657 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 13658 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 13659
f00691a3 136602001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 13661
c9e60620
PJ
13662 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
13663 gnuemacs).
13664 (HAVE_BOXES): Fix typo in comment.
13665 (push_menu_pane): Fix typo in comment.
13666
3b552d56
PJ
13667 * xdisp.c: (display_prop_string_p): Remove unused local declaration
13668 of `Qwhen'.
13669 (single_display_prop_string_p): Remove unused local declarations
13670 of `Qwhen' and `Qmargin'.
13671 (string_buffer_position): Remove unused variable `around'.
13672 (store_frame_title): Remove unused variable `width'.
13673
15c565ac
PJ
13674 * window.c: Don't define max.
13675 (coordinates_in_window): Remove unused variable `uy'.
13676
a8818eb9
PJ
13677 * widget.c: Don't define max.
13678
996fee11
PJ
13679 * process.c: Don't define max.
13680 (create_process): Remove unused variable `buffer'.
13681
496e1a5b
GM
136822001-10-23 Gerd Moellmann <gerd@gnu.org>
13683
c2d53558 13684 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 13685
5905ae8b
EZ
136862001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
13687
13688 * xfaces.c (Finternal_set_lisp_face_attribute)
13689 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
13690 frame is on a windowed display.
13691
24db49fb
GM
136922001-10-23 Gerd Moellmann <gerd@gnu.org>
13693
c2d53558
SM
13694 * dispnew.c (sync_window_with_frame_matrix_rows):
13695 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
13696 of marginal areas.
13697
c2d53558 13698 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 13699
f0487f05
EZ
137002001-10-23 Andreas Schwab <schwab@suse.de>
13701
13702 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
13703 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
13704
f0a48a01
GM
137052001-10-23 Gerd Moellmann <gerd@gnu.org>
13706
c2d53558 13707 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
13708 REAL_END. Notice if cursor gets overwritten.
13709 (notice_overwritten_cursor): Take X positions as parameters.
13710 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13711 around call to x_draw_glyphs.
13712
f00691a3 137132001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 13714
fc11dff0
PJ
13715 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
13716 instead of C) and usage.
a50a10a0 13717
fc11dff0
PJ
13718 * editfns.c (char-to-string): Fix argument names (use CHAR instead
13719 of C) and usage.
a50a10a0
PJ
13720
13721 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
13722 `left', `max_width' and `max_height'.
13723
8738febd
GM
137242001-10-23 Gerd Moellmann <gerd@gnu.org>
13725
13726 * xdisp.c (display_line): For a tab continued to the next line,
13727 set row's ends_in_middle_of_char_p.
13728
653c329b
GM
137292001-10-22 Gerd Moellmann <gerd@gnu.org>
13730
13731 * xdisp.c (display_line): Fix computation of continuation lines
13732 width for TABs.
13733
f00691a3 137342001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 13735
7ba51063
PJ
13736 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
13737 `Qlaplace'.
13738
f958c5ac
PJ
13739 * fileio.c: Remove unused code.
13740
eb360291
MB
137412001-10-22 Miles Bader <miles@gnu.org>
13742
13743 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
13744 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
13745 Remove `DOC_STRINGS_IN_COMMENTS' cases.
13746
98515cf0
JR
137472001-10-21 Jason Rumney <jasonr@gnu.org>
13748
13749 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
13750
93026d88
EZ
137512001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
13752
13753 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
13754 (Finsert_string): Avoid the multi-line string literals warning.
13755
c9a95b79
MB
137562001-10-22 Miles Bader <miles@gnu.org>
13757
13758 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
13759 (Fdocumentation): Don't use it.
13760 (syms_of_doc): Don't initialize it.
13761
13762 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
13763 * print.c (Fwith_output_to_temp_buffer): Likewise.
13764 * window.c (Fsave_window_excursion): Likewise.
c2d53558 13765 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 13766 (Fsave_restriction): Likewise.
c2d53558
SM
13767 * eval.c (Frun_hooks, Frun_hook_with_args)
13768 (Frun_hook_with_args_until_failure)
13769 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
13770 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
13771 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
13772 (Funwind_protect, Fcondition_case): Likewise.
13773 * coding.c (Ffind_operation_coding_system): Likewise.
13774 * keyboard.c (Ftrack_mouse): Likewise.
13775
a3b10252
MB
137762001-10-21 Miles Bader <miles@gnu.org>
13777
c2d53558 13778 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
13779 (Fmake_hash_table): Add usage: string to doc string.
13780 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 13781 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
13782 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
13783 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
13784 (Fml_prefix_argument_loop): Likewise.
13785
f00691a3 137862001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 13787
c2d53558 13788 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 13789
c6f73eec
PJ
13790 * sysdep.c (init_sys_modes): Change doc-string comments to `new
13791 style' [w/`doc:' keyword].
13792
13793 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
13794 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
13795 comments to `new style' [w/`doc:' keyword].
13796
3cf3436e
JR
137972001-10-21 Jason Rumney <jasonr@gnu.org>
13798
13799 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
13800
c169b8f1
JR
13801 * w32term.c (remember_mouse_glyph): New function.
13802 (w32_mouse_position): Use it.
13803 (note_mouse_movement): If the mouse moved off the glyph, remember
13804 its new position.
c2d53558 13805
4fdd691b
JR
13806 * w32term.h (struct w32_output): Correct spelling of x_compatible.
13807 (w32_display_info): Add mouse_face_overlay.
13808
c169b8f1
JR
13809 * w32term.c (notice_overwritten_cursor): Renamed from
13810 note_overwritten_text_cursor. Rewritten to take glyph widths into
13811 account.
13812 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
13813 (fast_find_string_pos): New function.
13814 (fast_find_position): Return the correct vpos. Add parameter
13815 STOP. In the final row, stop before glyphs having STOP as object.
13816 Don't consider glyphs that are not from a buffer.
13817 (fast_find_position) [0]: Add a presumably more correct version
13818 for after 21.1.
13819 (expose_window_tree, expose_frame): Don't compute intersections here.
13820 (expose_window): Do it here instead.
13821 (expose_window_tree, expose_window, expose_line): Return 1 when
13822 overwriting mouse-face.
13823 (expose_window): If W is the window currently being updated, mark
13824 the frame garbaged.
13825 (expose_frame): If mouse-face was overwritten, redo it.
13826 (x_use_underline_position_properties): New variable.
13827 (syms_of_xterm): DEFVAR_BOOL it.
13828 (x_draw_glyph_string): Add comment to use it in future.
13829 (x_draw_glyph_string): Restore clipping after drawing box.
13830 Fix a computation of the underline position.
13831 (w32_get_glyph_string_clip_rect): Minor cleanup.
13832 (x_fill_stretch_glyph_string): Remove an assertion.
13833 (x_produce_glyphs): Don't convert multibyte characters
13834 to unibyte characters in unibyte buffers.
13835 (cursor_in_mouse_face_p): New function.
13836 (x_draw_stretch_glyph_string): Use it to choose a different GC
13837 when drawing a cursor within highlighted text. Don't draw
13838 background again if it has already been drawn.
13839 (x_draw_glyph_string_box): Don't draw a full-width
13840 box just because the glyph row's full_width_p flag is set.
13841 (x_draw_glyphs): Fix computation of rightmost x for
13842 full-width rows.
13843 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
13844 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 13845 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
13846 (x_update_window_end): Handle overwritten mouse face
13847 also for tool bar windows.
13848 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
13849 DRAW is DRAW_IMAGE_RAISED.
13850 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
13851 actually redrawn. Make the function static.
13852 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
13853 optimize away highlighting if we pass over that same overlay again.
13854 (note_mouse_highlight): Call mouse_face_overlay_overlaps
13855 to detect a case where we have to highlight a different region
13856 despite not having left the currently highlighted region.
13857 Set mouse_face_overlay in the x_display_info. Avoid changing the
13858 mouse pointer shape when show_mouse_face has already done it, or
13859 there is no need. Handle mouse-face and help-echo in strings.
13860 (glyph_rect): New function.
13861 (w32_mouse_position): Use it to raise the threshold for mouse
13862 movement event generation.
13863 (w32_initialize_display_info): Initialize the x_display_info's
13864 mouse_face_overlay.
13865 (w32_set_vertical_scroll_bar): Don't clear a zero height
13866 or width area.
13867 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
13868 a widget to zero height.
13869
3cf3436e 13870 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 13871 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
13872 equivalents in menu_items.
13873 (w32_menu_show): Don't overwrite an item's name with its key
13874 description in case the description is a multibyte string.
13875 (single_submenu): Some cleanup.
13876
13877 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
13878 (postprocess_image): New function.
13879 (lookup_image): Call it for all image types except PostScript.
13880 (x_kill_gs_process): Call postprocess_image.
13881 (tiff_error_handler, tiff_warning_handler): New functions.
13882 (tiff_load): Install them as handlers.
13883 (x_kill_gs_process): Recognize if someone has cleared the image
13884 cache under us.
13885 (valid_image_p): Protect better against invalid image
13886 specifications. Previous code could signal an error.
13887 (Fx_hide_tip, Fshow_tip): Doc fix.
13888 (Fv_max_tooltip_size): New variable.
13889 (syns_of_xfns): DEFVAR_LISP it.
13890 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 13891 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
13892 window_width. Use a maximum tooltip size specified by
13893 Vx_max_tooltip_size, if that has valid contents.
13894 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
13895 Make sure the tooltip is completely visible.
13896 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
13897 (Fx_create_frame): Adjust the frame's height for presence
13898 of the tool bar before calling x_figure_window_size.
13899 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
13900 when the window gets smaller.
13901 (x_set_foreground_color): Set frame's cursor_pixel.
13902 (x_set_foreground_color, x_set_background_color): Cleaned up.
13903 (x_set_font): Handle case of x_new_fontset returning the same name
13904 as before, although there was a change in fontsets.
13905
386ca361
MB
139062001-10-21 Miles Bader <miles@gnu.org>
13907
c2d53558 13908 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
13909 (Flogxor): Add usage: string to doc string.
13910 * charset.c (Fstring): Likewise.
13911 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
13912 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
13913
f00691a3 139142001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 13915
03be2694
PJ
13916 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
13917
13918 * alloc.c: Reindent DEFUNs with doc: keywords.
13919
13920 * abbrev.c (Finsert_abbrev_table_description): Reindent.
13921
14ff1ee0
PJ
13922 * frame.c: Change doc-string comments to `new style' [w/`doc:'
13923 keyword].
13924
2f147815 13925See ChangeLog.9 for earlier changes.
6922b018
KH
13926
13927;; Local Variables:
49b3bd82 13928;; coding: iso-2022-7bit
6922b018 13929;; End:
2a34a036 13930
2f147815 13931 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
13932 Copying and distribution of this file, with or without modification,
13933 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
13934
13935;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4