(blink-matching-open): Obey syntax-table text properties.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d8f96db8
ST
12004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macterm.h (cfstring_create_with_utf8_cstring): Added prototype.
4 * image.c (image_load_quartz2d): Use
5 cfstring_create_with_utf8_cstring
6 * macmenu.c (add_menu_item): Use
7 cfstring_create_with_utf8_cstring
8 * macfns.c (x_set_name, x_set_title): Use
9 cfstring_create_with_utf8_cstring
10 (Fx_file_dialog): Use cfstring_create_with_utf8_cstring and use
11 constant CFRefs instead of creating them each time for labels.
12 * mac.c (cfstring_create_with_utf8_cstring): Added to prevent
13 crashes with invalid characters.
14
ab67e8b6
RS
152004-12-02 Richard M. Stallman <rms@gnu.org>
16
17 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
18 don't use it here.
19
20 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
21 (interactive_p): Skip Scalled_interactively_p frames
22 like Sinteractive_p frames.
23
24 * data.c (Fmake_variable_buffer_local): Doc fix.
25 (Fmake_local_variable): Doc fix.
26
27 * insdel.c (insert_from_string_before_markers)
28 (insert_from_string): Don't modify buffer on empty insertion.
29
30 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
31
f86bdc80
ST
322004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
33
34 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
35 menu text as UTF8 fails.
36
1cae6d39
KS
372004-12-01 Kim F. Storm <storm@cua.dk>
38
39 * alloc.c: Add commentary for last change.
40 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
41 sizeof(size_t) != 4.
42 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
43 Use them. Also clear header and trailer of freed memory.
44 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
45 (string_overrun_cookie): Rename from string_overrun_pattern.
46 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
47
77ea0764
AS
482004-12-01 Andreas Schwab <schwab@suse.de>
49
50 * lisp.h: Declare string_to_multibyte.
51
2d5cd4e6
KH
522004-12-01 Kenichi Handa <handa@m17n.org>
53
54 * w32console.c (w32con_write_glyphs): Decide coding here.
55 Adjusted for the change of encode_terminal_code.
56
57 * term.c (encode_terminal_code): Don't make it "static".
58
25a0994a
KH
592004-11-30 Kenichi Handa <handa@m17n.org>
60
61 * term.c (encode_terminal_buf, encode_terminal_bufsize): New
62 variables.
63 (encode_terminal_code): Argument changed. Encode all
64 characters at once, and return a pointer to the result of
65 encoding.
66 (write_glyphs): Decide coding here. Adjusted for the above
67 change.
68 (insert_glyphs): Likewise.
69 (term_init): Initialize encode_terminal_bufsize to 0.
70
71 * coding.c (Vcode_conversion_workbuf_name): New variable.
72 (syms_of_coding): Initialize and staticpro it.
73 (set_conversion_work_buffer): New function.
74 (run_pre_post_conversion_on_str): Use it.
75 (run_pre_write_conversin_on_c_str): New function.
76
77 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
78
fc7a70cc
ST
792004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
80
81 * keyboard.c: Don't undef SIGIO
82 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
83 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
84 (macfns.o): Don't depend on ccl.h.
85 * macfns.c (mac_frame_parm_handlers): Set handlers for
86 Qleft_fringe and Qright_fringe.
87 * macterm.c (mac_fill_rectangle_to_pixmap)
88 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
89 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
90 Put in #if 0.
91 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
92 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
93 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
94 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
95 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
96 XDrawImageString. Always draw background and foreground separately.
97 (x_draw_image_foreground): Use clipping instead of computing the
98 intersection rectangle.
99 (x_draw_image_glyph_string): Don't draw an image with mask to a
100 pixmap.
101 (x_redisplay_interface): Set flush_display_optional member to 0.
102 (XTread_socket): Correctly reset the TEConverter
103 object.
104
fc368889
KS
1052004-11-30 Kim F. Storm <storm@cua.dk>
106
107 * lisp.h: New defines to enable buffer overrun checking.
108 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
109 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
110
111 * alloc.c: Add more checks for buffer overruns.
112 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
113 xmalloc_overrun_check_trailer, overrun_check_malloc)
114 overrun_check_realloc, overrun_check_free): Add.
115 (GC_STRING_EXTRA, string_overrun_pattern): Add.
116 (check_sblock, allocate_string_data, compact_small_strings):
117 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
118 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
119 (check_string_free_list): Add.
120 (allocate_string, sweep_strings): Call check_string_free_list.
121
122 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
123 XMALLOC_OVERRUN_CHECK to avoid crash during load.
124
0af8cfe1
KS
1252004-11-29 Kim F. Storm <storm@cua.dk>
126
127 * fns.c (concat): Use SAFE_ALLOCA.
128
77220eeb
SM
1292004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
130
131 * sysdep.c (emacs_write): Don't use QUIT.
132
a778cf63
KH
1332004-11-29 Kenichi Handa <handa@m17n.org>
134
135 * buffer.c (init_buffer): Set current_buffer->directory to a
136 multibyte string made by string_to_multibyte.
137
77220eeb 138 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 139
e3177e43
AS
1402004-11-27 Andreas Schwab <schwab@suse.de>
141
142 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
143
144 * s/gnu-linux.h: Enable no-op gcpros on ia64.
145 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
146
77220eeb
SM
147 * filelock.c (lock_file_1): Call get_boot_time early.
148 Increase buffer size.
e3177e43 149
ca5e6fef
EZ
1502004-11-27 Eli Zaretskii <eliz@gnu.org>
151
152 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
153 is not defined.
154
e2811828
KS
1552004-11-27 Kim F. Storm <storm@cua.dk>
156
157 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
158 marker out of doc string.
159
7a262394
SM
1602004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
161
162 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
163 which was not mentioned in the log.
164
f33cc5a9
KS
1652004-11-26 Kim F. Storm <storm@cua.dk>
166
048bb03f
KS
167 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
168 angle bitmaps at top/bottom line.
169
f33cc5a9
KS
170 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
171 set it when it->method is set to next_element_from_display_vector.
172 (setup_for_ellipsis): Add LEN argument. Callers changed.
173 Set it->saved_face_id.
174 (get_next_display_element): Use loop instead of recursion.
175 Set it->saved_face_id. Combine duplicate code for ctr chars.
176 (next_element_from_display_vector): Do not set it->saved_face_id.
177 (next_element_from_ellipsis): Use setup_for_ellipsis.
178
670e8906
EZ
1792004-11-26 Eli Zaretskii <eliz@gnu.org>
180
181 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
182 prevent compiler warnings.
183
275464e7
SM
1842004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
185
1bf0e604
SM
186 * keyboard.c (command_loop_1): Print a message describing the key
187 the user just pressed when this key has no binding.
188
275464e7
SM
189 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
190 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
191
192 * lread.c (readchar): Check QUIT when `getc' is interrupted.
193
261b01c6
RS
1942004-11-24 Richard M. Stallman <rms@gnu.org>
195
196 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
197
198 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
199
a5bd504e
KS
2002004-11-24 Kim F. Storm <storm@cua.dk>
201
202 * xdisp.c (move_it_in_display_line_to, display_line):
203 Restore saved_face_id also when truncate-lines or hscrolled.
204
255e4140
JD
2052004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
206
207 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
208 x-use-old-gtk-file-dialog.
209
210 * xfns.c: Define x_use_old_gtk_file_dialog.
211 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
212 outside ifdef USE_GTK.
213
cab27d04
SM
2142004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
215
216 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
217 Don't use XFASTINT blindly.
218
219 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
220
221 * indent.c (skip_invisible): Avoid non-idempotent side-effects
222 in macro arguments.
223
224 * keymap.c (Flookup_key): Check INTEGERP before XINT.
225
226 * lread.c (oblookup): Don't use XFASTINT blindly.
227
228 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
229 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
230
11e0be49
KS
2312004-11-23 Kim F. Storm <storm@cua.dk>
232
4d721114
KS
233 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
234 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
235
11e0be49
KS
236 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
237 signal_p is zero and face name is unknown.
238 (Fx_list_fonts): Don't signal error in lookup_named_face.
239 (Fface_font): Signal error in lookup_named_face.
240 (ascii_face_of_lisp_face): Likewise.
241
242 * dispextern.h (lookup_named_face): Fix prototype.
243
244 * xdisp.c (handle_single_display_prop): Don't signal error in
245 lookup_named_face for unknown fringe face name.
246 (highlight_trailing_whitespace): Don't signal error in
247 lookup_named_face if trailing-whitespace face unknown.
248 (calc_line_height_property): Don't signal error in
249 lookup_named_face if specified face name is unknown.
250
251 * fringe.c (update_window_fringes): Show top row indicator if
252 window has header-line. Don't show arrow at bob and eob
253 if the boundary indicators are not used.
254 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
255
256 * window.c (set_window_buffer): Clear display_error_modiff.
257
0960a582
KS
2582004-11-22 Kim F. Storm <storm@cua.dk>
259
260 * fringe.c (update_window_fringes): Provide sensible fall-back
261 value for non-nil indicate-buffer-boundaries setting.
262
b0e9bb28
MR
2632004-11-22 Markus Rost <rost@ias.edu>
264
265 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
266
d0bce91e
SM
2672004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
268
269 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
270
e1814672
KS
2712004-11-21 Kim F. Storm <storm@cua.dk>
272
b7fd3518
KS
273 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
274
275 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
276 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
277
278 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
279 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
280
281 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
282 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
283
d0bce91e
SM
284 * xdisp.c (move_it_in_display_line_to, display_line):
285 Restore saved_face_id if overflow-newline-into-fringe is enabled and
286 line is continued before or in middle of element from display vector.
f01d4d05 287
f1a61389
KS
288 * indent.c (Fvertical_motion): Fix last change. Use another
289 method to detect if iterator moved too far ahead after reseat.
290
e1814672
KS
291 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
292 expand matrix width for overflow in zero-width area.
293 (append_glyph, append_composite_glyph, produce_image_glyph)
294 (append_stretch_glyph): Use it to avoid loop in redisplay.
295 (note_mode_line_or_margin_highlight): Don't let help-echo from
296 string override help-echo from image map.
297
2dafe1c9
LT
2982004-11-20 Luc Teirlinck <teirllm@auburn.edu>
299
d0bce91e 300 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
301 * callint.c (Fcall_interactively): Ditto.
302
fd6866c8 3032004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
304
305 * minibuf.c (Fminibuffer_complete_and_exit):
306 Fixup the case of the completed value, for case-indep completion.
307
dedbac89
RS
3082004-11-20 Richard M. Stallman <rms@gnu.org>
309
fd6866c8
RS
310 * lisp.h (Fread_from_minibuffer): Add arg in decl.
311
9d00469f 312 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 313 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 314
dedbac89 315 * search.c (Vsearch_spaces_regexp):
d0bce91e 316 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 317
2f672bb5
TTN
3182004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
319
320 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
321
f31a9a68
RS
3222004-11-19 Richard M. Stallman <rms@gnu.org>
323
324 * search.c (Vsearch_whitespace_regexp): New variable.
325 (syms_of_search): Defvar it.
326 (compile_pattern_1): Call re_set_whitespace_regexp with it.
327 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
328 is non-nil.
6de891db
RS
329 (struct regexp_cache): New element whitespace_regexp.
330 (syms_of_search): Initialize whitespace_regexp elements.
331 (compile_pattern): Compare whitespace_regexp elements.
332 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
333
334 * regex.c (regex_compile): Substitute whitespace_regexp
335 for spaces, if it is nonzero.
336 (whitespace_regexp): New variable.
337 (re_set_whitespace_regexp): New function.
338
cbc34cb3
KS
3392004-11-19 Kim F. Storm <storm@cua.dk>
340
341 * indent.c (Fvertical_motion): Fix last change.
342
b54a7539
KS
3432004-11-18 Kim F. Storm <storm@cua.dk>
344
345 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
346 Instead, move back again if reseating moves too far ahead.
347
3482004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
349
350 * xdisp.c (message3): Call clear_message.
351
5ff504fe
KS
3522004-11-17 Kim F. Storm <storm@cua.dk>
353
354 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
355
5ae53dcf
JD
3562004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
357
d0bce91e 358 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 359
6abf3a27 360 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
361 (x_menu_set_in_use): Also set popup_activated_flag.
362
5ff504fe 363 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
364 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
365
6abf3a27 366 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 367
ee31cd78
RS
3682004-11-16 Richard M. Stallman <rms@gnu.org>
369
6abf3a27
SM
370 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
371 Use map-keymap-internal to implement that.
ee31cd78
RS
372
373 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
374
6abf3a27
SM
3752004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
376
377 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
378 a window before using XWINDOW.
379
380 * window.c (make_window, Fselect_window, make_dummy_parent)
381 (save_window_save):
382 * frame.c (make_frame):
383 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
384
385 * lisp.h (NILP): Use EQ rather than XFASTINT.
386
b4d61105
KS
3872004-11-16 Kim F. Storm <storm@cua.dk>
388
6abf3a27 389 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 390
b4d61105
KS
391 * indent.c (Fvertical_motion): Fix last change. Only reseat when
392 moving backwards.
393
3942004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
395
396 * dispextern.h: Extern reseat_at_previous_visible_line_start.
397
ab5b02b0
KH
3982004-11-16 Kenichi Handa <handa@m17n.org>
399
400 * xdisp.c (display_mode_element): Fix previous change (calculate
401 end position of substring to display correctly).
402
c482cf97
KS
4032004-11-16 Kim F. Storm <storm@cua.dk>
404
405 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
406 Reported by Andrew M. Scott.
407
9f89426b
KS
4082004-11-15 Kim F. Storm <storm@cua.dk>
409
410 * fns.c (Fsafe_plist_get): New defun.
411 (syms_of_fns): Defsubr it.
412
413 * lisp.h (Fsafe_plist_get): Add EXFUN.
414
415 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
416 Use Fsafe_plist_get.
417 (note_mode_line_or_margin_highlight, note_mouse_highlight):
418 Fix image map element parsing. Use Fsafe_plist_get.
419
27418463
RS
4202004-11-15 Richard M. Stallman <rms@gnu.org>
421
422 * xdisp.c (get_next_display_element): Fix previous change.
423
a130b901
JD
4242004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
425
ef614e04
JD
426 * window.c (shrink_windows): Handle special case of one window left
427 when trying to shrink the final reminder. Grow windows if
428 total_removed is less than total_shrink.
429
a130b901
JD
430 * xmenu.c (pop_down_menu): Remove global variable current_menu,
431 extract pointer from arg with XSAVE_VALUE.
46303896
KS
432 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
433 Construct arg to record_unwind_protect with make_save_value.
a130b901 434
d9a03ad2
RS
4352004-11-13 Richard M. Stallman <rms@gnu.org>
436
437 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
438 (get_next_display_element): Fix previous change to apply only to \n.
439
440 * indent.c (Fvertical_motion): Scan to PT from start of line to
441 make iterator consistent.
442
443 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
444
b3935289
JD
4452004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
446
447 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
448
449 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
450 Record unwind with clean_up_file_dialog.
451
78819ebb
KS
452 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
453 Declare.
b3935289
JD
454
455 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
456
af89e871
JD
4572004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
458
457a8155 459 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 460 (xg_file_sel_destroy): Remove.
46303896
KS
461 (xg_file_response_cb, pop_down_file_dialog)
462 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 463 New functions.
6abf3a27
SM
464 (xg_get_file_with_chooser, xg_get_file_with_selection):
465 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
466 Move common code to xg_get_file_name. Return widget created.
467 (xg_get_file_name): Set name, transient for, modal and destroy
468 with parent here. Connect response signal to xg_file_response_cb,
469 connect delete-event to gtk_true. Record pop_down_file_dialog
470 for unwind. Do event loop and call x_menu_wait_for_event in loop.
471 (xg_create_widget): Make dialogs modal.
472
af89e871
JD
473 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
474 Lisp_Object.
475 (popup_get_selection): Move unwind protect ...
476 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
477 Move destroy of widget to pop_down_menu.
478 (popup_widget_loop): Move unwind protect ...
479 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
480 Move destroy of widget to pop_down_menu.
481 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 482 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
483 x_mouse_leave and grabbed = 0 to pop_down_menu.
484
5596fbf1
KS
4852004-11-13 Kim F. Storm <storm@cua.dk>
486
487 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
488 (syms_of_xdisp): DEFVAR_BOOL it.
489 (make_cursor_line_fully_visible, try_cursor_movement)
490 (try_window_id): Use it.
491
b9de078a
KS
4922004-11-12 Kim F. Storm <storm@cua.dk>
493
381f7091
KS
494 * dispextern.h (struct glyph_row): New member extra_line_spacing.
495 (struct it): New member max_extra_line_spacing.
496 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
497 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
498 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
499 part of last line is only extra line spacing (so the text on the
500 line is fully visible). Use helper macros.
501 Add W arg (to use them). All callers changed.
502 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
503 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
504
6abf3a27
SM
505 * window.c (window_scroll_pixel_based, Frecenter):
506 Use move_it_vertically_backward directly.
381f7091
KS
507 (Frecenter): Fix calculation of new start pos for negative arg.
508 Before, the new start pos was sometimes chosen too far back, so
509 the last line became only partially visible, and thus would be
510 either only semi-visible or automatically scrolled to the middle
511 of the window by redisplay.
512
513 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
514 (move_it_vertically_backward): Don't recure to move further back.
515 (move_it_vertically): Remove superfluous condition.
516 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 517 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
518 (display_tool_bar_line): Clear row->extra_line_spacing.
519 (try_scrolling): Use move_it_vertically_backward directly.
520 (redisplay_window): Likewise.
521 (compute_line_metrics): Set row->extra_line_spacing.
522 (display_line, display_string): Likewise.
523 (x_produce_glyphs): Update it->max_extra_line_spacing.
524
b9de078a
KS
525 * xmenu.c (pop_down_menu): Return nil.
526
c3438661
JD
5272004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
528
529 * xmenu.c (x_menu_wait_for_event): New function.
530 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
531 to handle timers.
df00f436
JD
532 (popup_widget_loop): Add argument do_timers.
533 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
534 do_timers to popup_widget_loop.
c3438661
JD
535 (xmenu_show): Call XMenuActivateSetWaitFunction so that
536 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 537 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 538 popup_get_selection.
f1d1cd24
JD
539 (pop_down_menu): New function.
540 (popup_get_selection, popup_widget_loop): Unwind protect to
541 pop_down_menu.
542 (popup_widget_loop): Add argument widget.
543 (create_and_show_popup_menu, create_and_show_dialog): Pass new
544 argument widget to popup_widget_loop.
c3438661 545
32e2fb04
SM
5462004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
547
548 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
549
0faf6806
KS
5502004-11-09 Kim F. Storm <storm@cua.dk>
551
552 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
553 Fix various comments referring to XEvents instead of input events.
554 (x_queue_event): Fix format strings.
555 (x_stop_queuing_selection_requests): Likewise.
556
557 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
558 (pint2hrstr): Add extra braces to silence compiler.
559
560 * print.c (print_object): Fix format string.
561
562 * lread.c (read1): Fix next_char matching.
563
564 * lisp.h (Fdelete): Add EXFUN.
565 (replace_range_2): Add prototype.
566
567 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
568
569 * intervals.h (NULL_INTERVAL_P): Add separate version when
570 ENABLE_CHECKING is not defined to silence compiler.
571 (compare_string_intervals): Add prototype.
572
573 * fringe.c (destroy_fringe_bitmap): Fix return type.
574 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
575
576 * emacs.c (Fdump_emacs): Fix format string.
577
578 * doc.c: Include <ctype.h>.
579 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
580
581 * data.c (store_symval_forwarding): Remove unused variables.
582
583 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
584
16bf4e32
JD
5852004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
586
587 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
588 to ${OLDXMENU}.
589
cdb805a9
KS
5902004-11-09 Kim F. Storm <storm@cua.dk>
591
592 * process.c (Fmake_network_process): Remove kludge for interrupted
593 connects on BSD. If connect is interrupted, just close socket and
594 start over rather than sleeping and retry with same socket.
595
d87a9ab8 5962004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 597
a8b16c80
JD
598 * .cvsignore: Add buildobj.lst.
599
d87a9ab8
JD
600 * doc.c: New variable Vbuild_files.
601 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
602 file names from buildobh.lst. Only attach docstrings from files
603 that are in Vbuild_files.
604 (syms_of_doc): Defvar Vbuild_files.
605
606 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
607 and w32*.o.
608 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 609 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
610
611 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
612 is linked.
613
b6709e77
KS
6142004-11-09 Kim F. Storm <storm@cua.dk>
615
616 * fringe.c (update_window_fringes): Update fringe bitmaps if
617 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
618 also update previous row to get rid of misc. artifacts.
619
bae9677d
KS
6202004-11-08 Kim F. Storm <storm@cua.dk>
621
622 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 623 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 624
3f8ea68c
EZ
6252004-11-08 Eli Zaretskii <eliz@gnu.org>
626
627 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
628 Don't include <sys/time.h> explicitly.
629 Include <stdio.h> unconditionally, not just on MacOS.
630
a653f812
KH
6312004-11-08 Kenichi Handa <handa@m17n.org>
632
633 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
634 don't pay attention to '\' before '*'.
635 (fontset_pattern_regexp): Change the meaning of the second arg.
636 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
637 (check_fontset_name): Try NAME as literal at first, and if it
638 failes, try NAME as pattern.
639
c37caf9d
JD
6402004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
641
642 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
643
b72915a7
AS
6442004-11-07 Andreas Schwab <schwab@suse.de>
645
78819ebb
KS
646 * lisp.h (Fmsdos_downcase_filename): Declare.
647 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
648 * fileio.c: Likewise.
649
238a44a8
JD
6502004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
651
652 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
653 comparisons with integers instead of Lisp_Object address.
654 (Fmsdos_set_keyboard): Declare argument allkeys.
655
656 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
657
78819ebb 658 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
659 int/Lisp_Object mixup.
660
661 * fileio.c: Ditto.
662
31141c13
ST
6632004-11-06 Steven Tamm <steventamm@mac.com>
664
665 * editfns.c: Need to include sys/time.h before resource.h on darwin.
666
f28c1bd9
RS
6672004-11-06 Richard M. Stallman <rms@gnu.org>
668
669 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
670
671 * xfaces.c (merge_named_face): GCPRO the face_name in the
672 named_merge_point struct that we make.
673 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
674
675 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
676 before deciding whether to inactivate mark.
677
59dede22
EZ
6782004-11-06 Lars Brinkhoff <lars@nocrew.org>
679
680 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
681 * editfns.c (Fget_internal_run_time): New function.
682 (syms_of_data): Defsubr it.
683 * fns.c (sxhash): As far as possible, merge calculation of
684 hash code for symbols and strings.
59dede22 685
27540e81
EZ
6862004-11-06 Eli Zaretskii <eliz@gnu.org>
687
688 * frame.c (syms_of_frame): Fix the example in the doc string.
689
df470e3b
JD
6902004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
691
692 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
693
694 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
695 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 696
4cc8522c
LT
6972004-11-05 Luc Teirlinck <teirllm@auburn.edu>
698
699 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
700
d4a42098
KS
7012004-11-05 Kim F. Storm <storm@cua.dk>
702
a8490886
KS
703 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
704
d4a42098
KS
705 * fileio.c (Ffile_modes): Doc fix.
706 (auto_save_1): Check for Ffile_modes nil value.
707
36a2b04c
KS
7082004-11-05 Kim F. Storm <storm@cua.dk>
709
710 * xselect.c (struct selection_event_queue, selection_queue)
711 (x_queue_selection_requests, x_queue_event)
712 (x_start_queuing_selection_requests)
713 (x_stop_queuing_selection_requests): Add new queue for selection
714 input events to replace previous XEvent queue in xterm.c.
715 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
716 (x_reply_selection_request): Adapt to new queue.
717 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
718 (x_handle_selection_request, x_handle_selection_clear): Make static.
719 (x_handle_selection_event): New function. May queue selection events.
720 (wait_for_property_change_unwind): Use save_value instead of cons.
721 Clear property_change_reply_object.
722 (wait_for_property_change): Abort if already waiting.
723 Use save_value instead of cons for unwind data.
724 (x_handle_property_notify): Skip events already arrived, but don't
725 free them, as "arrived" field is checked by wait_for_property_change,
726 and it will be freed by unwind or explicit unexpect_property_change.
727 (x_get_foreign_selection): Add to new queue.
728 (receive_incremental_selection): Don't unexpect wait_object when done
729 as it has already been freed by previous wait_for_property_change.
730
731 * xterm.h (x_start_queuing_selection_requests)
732 (x_stop_queuing_selection_requests, x_handle_selection_request)
733 (x_handle_selection_clear): Remove prototypes.
734 (x_handle_selection_event): Add prototype.
735
736 * xterm.c (handle_one_xevent): Don't queue X selection events
737 here, it may be too late if we start queuing after we have already
738 stored some selection events into the kbd buffer.
739 (struct selection_event_queue, queue, x_queue_selection_requests)
740 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
741 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
742 (x_catch_errors_unwind): Block input around final XSync.
743
744 * keyboard.h (kbd_buffer_unget_event): Add prototype.
745
746 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
747 (kbd_buffer_unget_event): New function.
748 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
749 and use x_handle_selection_event.
750 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
751
9c3ad9e1
JD
7522004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
753
754 * xselect.c (TRACE3): New debug macro.
755 (x_reply_selection_request): Use it.
756 (receive_incremental_selection): In call to TRACE0, the name of
757 a symbol is in xname.
758
a33b89de
KS
7592004-11-05 Kim F. Storm <storm@cua.dk>
760
761 * fontset.c (fontset_pattern_regexp): Use unsigned char.
762
a872928c
JD
7632004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
764
88208bb8
JD
765 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
766
78819ebb 767 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
768
769 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 770 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
771 * xfns.c (syms_of_xfns): ... to here.
772
a872928c
JD
773 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
774 it doesn't start with /.
775
b912921c
KH
7762004-11-04 Kenichi Handa <handa@m17n.org>
777
778 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
779 treat it as a literal character.
780
c524d9a6
KS
7812004-11-03 Kim F. Storm <storm@cua.dk>
782
783 * .gdbinit (ppt): New function.
784
8cfd0f36
JD
7852004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
786
a11e1dce
JD
787 * xterm.c (x_window_to_scroll_bar): Only call
788 xg_get_scroll_id_for_window if toolkit scroll bars are used.
789
8cfd0f36
JD
790 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
791 of save.
792
a93563fd
AS
7932004-11-02 Andreas Schwab <schwab@suse.de>
794
795 * window.c (Fscroll_right): Fix last change.
796
2b2d59d8
KS
7972004-11-02 Kim F. Storm <storm@cua.dk>
798
799 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
800
8012004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
802
803 * callproc.c (Fcall_process): Block input around vfork.
804
ca28104d
KS
8052004-11-02 Kim F. Storm <storm@cua.dk>
806
807 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
808 (syms_of_eval): Defsubr it.
809
29bb7127
RS
8102004-11-02 Richard M. Stallman <rms@gnu.org>
811
812 * insdel.c (replace_range_2): New function.
813
814 * casefiddle.c (casify_region): Handle changes in byte-length
815 using replace_range_2.
816
817 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
818
b6189c3b 819 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
820 Subtract 1 from pos when checking previous newline for invisibility.
821
822 * window.c (window_scroll_pixel_based): Update preserve_y
823 for header line if any.
824 (Fscroll_left, Fscroll_right): Don't call interactive_p;
825 use a new second argument instead.
826
827 * eval.c (Fcall_interactive_p): New function.
828 (interactive_p): Don't test INTERACTIVE here.
829 (Finteractive_p): Doc fix.
830
831 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
832
b6189c3b 8332004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
834
835 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 836 comparing font names.
a3fe4aaf 837
2a00cdb4
JD
8382004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
839
f9d64bb3
JD
840 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
841 Fx_file_dialog if only directories should be read.
842
843 * lisp.h: Fx_file_dialog takes 5 parameters.
844
32e2fb04
SM
845 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
846 Add parameter only_dir_p.
f9d64bb3
JD
847 In Motif version, don't put DEFAULT_FILENAME in filter part of the
848 dialog, just text field part. Do not add DEFAULT_FILENAME
849 to list of files if it isn't there.
850 In GTK version, pass only_dir_p parameter to xg_get_file_name.
851
32e2fb04
SM
852 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
853 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
854 a save dialog, add option kNavDontConfirmReplacement, change title
855 to "Enter name", change text for save button to "Ok".
856
32e2fb04
SM
857 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
858 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
859
860 * gtkutil.c (xg_get_file_with_chooser)
861 (xg_get_file_with_selection): New functions, only defined ifdef
862 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
863 respectively.
864 (xg_get_file_name): Add parameter only_dir_p.
865 Call xg_get_file_with_chooser or xg_get_file_with_selection
866 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
867 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
868
869 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
870
2a00cdb4
JD
871 * config.in: Rebuild (added HAVE_GTK_FILE_*).
872
f6749d5d
KS
8732004-11-01 Kim F. Storm <storm@cua.dk>
874
32e2fb04
SM
875 * process.c (connect_wait_mask, num_pending_connects):
876 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 877 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
878 (IF_NON_BLOCKING_CONNECT): New helper macro.
879 (wait_reading_process_output): Only declare and use local vars
880 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 881
1a99fe1a
JR
8822004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
883
884 * w32term.c (x_scroll_run): Delete region objects after use.
885
fcdb28b4
JD
8862004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
887
495ef86b
JD
888 * xmenu.c: Add prototypes for forward function declarations.
889 (popup_get_selection): Remove parameter do_timers, remove call to
890 timer_check.
32e2fb04
SM
891 (create_and_show_popup_menu, create_and_show_dialog):
892 Remove parameter do_timers from call to popup_get_selection.
495ef86b 893
12e6566a
JD
894 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
895 tool_bar_items and assign the result to f->tool_bar_items if
896 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
897 tool_bar_items to assignment of result.
898
fcdb28b4
JD
899 * atimer.c (alarm_signal_handler): Do not call set_alarm if
900 pending_atmers is non-zero.
901
1a1a0c4c
KS
9022004-10-31 Kim F. Storm <storm@cua.dk>
903
904 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
905
a36f1680
JW
9062004-10-28 Will <will@glozer.net>
907
908 * macterm.c: allow user to assign key modifiers to the Mac Option
909 key via a 'mac-option-modifier' variable.
910
32e2fb04 9112004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
912
913 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
914 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
915 (x_handle_selection_request, x_handle_selection_clear)
916 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
917
4f71c13f
RS
9182004-10-28 Richard M. Stallman <rms@gnu.org>
919
920 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
921
922 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
923
068f3848
SM
9242004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
925
926 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
927 comment-starter over a 1-char one.
928
4660a9e3
RS
9292004-10-27 Richard M. Stallman <rms@gnu.org>
930
931 * xdisp.c (get_next_display_element): In mode lines,
932 treat newline and tab like other control characters.
933
934 * editfns.c (Fmessage): Doc fix.
935
936 * indent.c (vmotion): When moving up, check the newline before.
937 Make prevline an int, not a Lisp_Object.
938
233f3db6
KS
9392004-10-27 Kim F. Storm <storm@cua.dk>
940
941 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
942 Only allocate info and discarded tables once.
943
944 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
945 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
946 (SAFE_FREE): Test it to determine if we need to unwind to free.
947 Remove size arg. All users changed.
948 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
949
1442465d
JD
9502004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
951
952 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
953 (xg_destroy_widgets): Rename from remove_from_container.
954 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
955 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
956 instead of remove_from_container.
957 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
958 (free_frame_tool_bar): Add comment.
959
960 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
961 is not NULL before strcmp.
962
c8636435
KS
9632004-10-26 Kim F. Storm <storm@cua.dk>
964
965 * callint.c (Fcall_interactively): Add 'U' code to get the
966 up-event discarded by a previous 'k' or 'K' argument.
967
5629f29b
DK
9682004-10-26 David Kastrup <dak@gnu.org>
969
970 * buffer.c (syms_of_buffer): Fix a few typos.
971
4f2f546e
JD
9722004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
973
974 * xsmfns.c: Put empty line between comment and function body.
975 Use two spaces before comment end.
976
fc1062f5
KH
9772004-10-25 Kenichi Handa <handa@m17n.org>
978
979 * fontset.c (fontset_pattern_regexp): Optimize for the case that
980 PATTERN is full XLFD.
981
be13f5e5
KH
9822004-10-24 Kenichi Handa <handa@m17n.org>
983
984 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
985
986 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
987 (regex_compile): Return REG_ERANGEX if appropriate.
988
d0ee2ed3
KH
9892004-10-22 Kenichi Handa <handa@m17n.org>
990
991 * editfns.c (Ftranslate_region_internal): New function.
992 (syms_of_editfns): Defsubr it.
993
63ea8ea5
JD
9942004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
995
996 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
997
c27ed90a
JD
9982004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
999
068f3848
SM
1000 * xterm.h (x_output): New member `xic_base_fontname'.
1001 (FRAME_XIC_BASE_FONTNAME): New macro.
1002 (xic_free_xfontset): Declare.
c27ed90a 1003
068f3848
SM
1004 * xfns.c (xic_create_xfontset): Share fontsets between frames
1005 based on base_fontname.
1006 (xic_free_xfontset): New function.
1007 (free_frame_xic): Use it.
1008 (xic_set_xfontset): Ditto.
c27ed90a 1009
068f3848 1010 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1011
1012
59508699
JR
10132004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1014
1015 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1016
dede2792
JD
10172004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1018
3aca2078
JD
1019 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1020 XSync.
1021
dede2792
JD
1022 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1023 New variables and constant.
1024 (main): Calculate heap_bss_diff. If we are dumping and the
1025 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1026 and exec ourself again.
1027 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1028 print a warning.
1029
1030 * lastfile.c: Make my_endbss and my_endbss_static available on all
1031 platforms.
1032
1033 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1034 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1035
1dc5ba01
LT
10362004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1037
1038 * data.c (Flocal_variable_if_set_p): Doc fix.
1039
950090be
JR
10402004-10-19 Jason Rumney <jasonr@gnu.org>
1041
1042 * w32.c (init_environment): Set emacs_dir correctly when running
1043 emacs from the build directory.
1044
8550b998
RS
10452004-10-19 Richard M. Stallman <rms@gnu.org>
1046
1047 * editfns.c (Fdelete_and_extract_region):
1048 If region is empty, return null string.
1049
08dedea6
JD
10502004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1051
1dc5ba01 1052 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1053 and canon_width.
068f3848 1054 (xg_frame_cleared): Remove.
08dedea6 1055
068f3848
SM
1056 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1057 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1058 (xg_create_scroll_bar): Put an event box widget between
1059 the scroll bar widget and the edit widget.
1060 (xg_show_scroll_bar): Show the parent widget (the event box).
1061 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1062 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1063 Move the parent (the event box) widget inside the fixed widget.
1064 Move window clear to xterm.c.
1065
068f3848 1066 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1067
08dedea6 1068 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1069 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1070 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1071 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1072
8550b998 10732004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1074
1075 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1076
84338890
JD
10772004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1078
1079 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1080 gdk_window_clear and move gdk_window_process_all_updates after
1081 clear so events are sent to the X server in correct order.
1082
6e1b0d8c
KH
10832004-10-18 Kenichi Handa <handa@m17n.org>
1084
1085 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1086 comparing font names.
8550b998 1087 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1088 (list_fontsets): Likewise.
1089
1090 * search.c (fast_string_match_ignore_case): New function.
1091
1092 * lisp.h (fast_string_match_ignore_case): Extern it.
1093
345e75a8
KS
10942004-10-17 Kim F. Storm <storm@cua.dk>
1095
1096 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1097 than bitmap if there is not left fringe.
1098 (get_overlay_arrow_glyph_row): Also used on windows system.
1099 (display_line): Display overlay string if no left fringe.
1100
be13cbb7
JR
11012004-10-16 Jason Rumney <jasonr@gnu.org>
1102
1103 * w32fns.c (w32_font_match): Encode font name being matched.
1104
c2e2ede7
RS
11052004-10-16 Richard M. Stallman <rms@gnu.org>
1106
1107 * window.c (Fspecial_display_p): Doc fix.
1108
3584d95d
SM
11092004-10-15 Stefan <monnier@iro.umontreal.ca>
1110
1111 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1112 Don't ignore menus, because where-is-internal already does it for us.
1113
699a0392
KS
11142004-10-15 Kim F. Storm <storm@cua.dk>
1115
b3c7a89b
KS
1116 * xdisp.c (redisplay_window): Only update fringes and vertical
1117 border on window frames.
699a0392 1118
4e382b0f
AS
11192004-10-14 Andreas Schwab <schwab@suse.de>
1120
1121 * m/ia64.h (DATA_SEG_BITS): Don't define.
1122
329a7be2
KS
11232004-10-14 Kim F. Storm <storm@cua.dk>
1124
1125 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1126 in some X versions.
329a7be2 1127
982241b1
SM
11282004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1129
1130 * fns.c (map_char_table): Add missing gcpros.
1131
9238467d
SM
11322004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * keymap.c (get_keymap): An autoload form is not a keymap.
1135
1136 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1137
4440e3ca
KS
11382004-10-13 Kim F. Storm <storm@cua.dk>
1139
7cfdabde
KS
1140 * callproc.c (Fcall_process): Simplify handling of display arg.
1141 Resume `display_on_the_fly' once a coding system is determined.
1142
4440e3ca
KS
1143 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1144
1c8dec6a
KS
11452004-10-12 Kim F. Storm <storm@cua.dk>
1146
1147 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1148 caller, such as call-process, is not going to poll for input.
1149 (calc_line_height_property): Handle case where it->object is nil.
1150
1151 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1152
170b174c
KH
11532004-10-12 Kenichi Handa <handa@m17n.org>
1154
9238467d
SM
1155 * xdisp.c (get_next_display_element):
1156 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1157 chars in octal in unibyte buffer.
1158
b583964c
KS
11592004-10-12 Kim F. Storm <storm@cua.dk>
1160
1161 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1162 are no ordinary bindings.
1163
29fabd8c
JD
11642004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1165
9238467d 1166 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1167
c3f4c690
ST
11682004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1169
9238467d
SM
1170 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1171 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1172 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1173 terminal frame.
1174 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1175 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1176 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1177 Make a cancel file-open dialog be like C-g.
9238467d
SM
1178 * mac.c (mktime): Use emacs_mktime.
1179 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1180 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1181
9688f9eb
KS
11822004-10-10 Kim F. Storm <storm@cua.dk>
1183
1184 * keyboard.c (timer_resume_idle): New function to resume idle
1185 timer without resetting timers on the idle list.
1186 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1187 (timer_start_idle, timer_stop_idle): Declare static.
1188 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1189
1190 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1191
f7f3a65f
ST
11922004-10-08 Steven Tamm <steventamm@mac.com>
1193
9238467d 1194 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1195 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1196 NULL where 0 should be used.
f7f3a65f
ST
1197 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1198 objc/malloc.h
9238467d 1199 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1200
3c7d999a
KS
12012004-10-07 Kim F. Storm <storm@cua.dk>
1202
1203 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1204 windows. Update vertical line after drawing window fringes, but
1205 only if actually drawing any bitmaps--or there is no fringe.
1206
1207 * xterm.c (x_update_window_end): Likewise.
1208 * macterm.c (x_update_window_end): Likewise.
1209 * w32term.c (x_update_window_end): Likewise.
1210
1211 * fringe.c (draw_window_fringes): Return value now indicates if
1212 any fringe bitmaps were redrawn (or there are no fringes).
1213
1214 * dispextern.h (draw_window_fringes): Update prototype.
1215
bf06c82f
ST
12162004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1217
1218 * macfns.c (mac_get_window_bounds): Add extern.
1219 (x_real_positions): Use mac_get_window_bounds.
1220
1221 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1222 xmenu.c (YAILOM).
3c7d999a 1223
bf06c82f
ST
1224 * macterm.c [!MAC_OSX]: Include Windows.h.
1225 (front_emacs_window): Rename from mac_front_window. All uses
1226 changed. Return the frontmost non-tooltip emacs window.
1227 (mac_get_window_bounds): New function.
1228 (x_calc_absolute_position): Use the difference of width and height
1229 between the inner and outer window.
1230 (x_set_offset): Specify window position by the coordinae of the
1231 outer window. Adjust the position if the title bar is completely
1232 outside the screen.
1233 (app_is_suspended, app_sleep_time): Remove unused variables.
1234 (do_app_resume, do_app_suspend): Remove their contents because
1235 window-activate/deactivate events will do the job.
1236 (do_zoom_window): Remove unused variables. Make compliant to the
1237 standard way of zooming. Set f->left_pos and f->top_pos.
1238 (XTread_socket): Don't use argument `expected'. Don't use
1239 FrontWindow to determine the clicked window. Exclude unprocessed
1240 mouseUp cases in the early stage. Add parentheses to fix operator
1241 precedence.
1242 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1243
4cbbf6b7 12442004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1245
1246 * config.in: Regenerate.
1247
1248 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1249 HAVE_EXECSHIELD.
1250
b90ee8b5
JD
12512004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1252
1253 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1254 a row if Alt or Meta has been found for that row. Also stop scanning
1255 for Keysyms for that row.
1256
904db1a2
KS
12572004-10-04 Kim F. Storm <storm@cua.dk>
1258
0207b8ad
KS
1259 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1260 to list. Include overlay arrow bitmap in return value.
1261
25f7220c
KS
1262 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1263 bars with fractional column width. If scroll bar separates two
1264 windows, move it towards the window it belongs to. Only update
1265 the padding area below the scroll bar widget when necessary,
1266 i.e. when scroll bar widget is created, moved, or resized.
1267
562020fe
KS
1268 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1269 while tracking/dragging mouse.
1270 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1271
37e34af7
KS
1272 * window.c (coordinates_in_window): Relax check for cursor
1273 on vertial border between mode lines.
1274 (Fset_window_fringes): Do not allow negative widths.
1275 (Fset_window_scroll_bars): Likewise.
1276
904db1a2
KS
1277 * .gdbinit (pp): Shorthand for p ARG + pr.
1278 (ff): New command: flush frame updates (X only).
1279
38fe4f64
MA
12802004-10-03 Michael Albinus <michael.albinus@gmx.de>
1281
1282 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1283
9de36315
KH
12842004-09-30 Kenichi Handa <handa@m17n.org>
1285
07c381ad 1286 * process.c (send_process): Free composition data.
9de36315 1287
07c381ad 1288 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1289
1290 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1291 compositions to encode.
1292 (encode_coding_string): Likewise. Free composition data.
1293
b6189c3b 12942004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1295
1296 * coding.c (code_convert_region): Free composition data.
9de36315 1297
f2a54fbc
KS
12982004-09-29 Kim F. Storm <storm@cua.dk>
1299
dc5d6435
KS
1300 * fringe.c: Remove limit on number of bitmaps.
1301 (fringe_bitmaps, fringe_faces): Change to pointers.
1302 (max_fringe_bitmaps): New var.
1303 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1304 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1305
1306 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1307 (struct glyph_row): Reorder fringe_bitmap related fields.
1308 (struct it): Likewise.
1309
1310 * w32term.c (fringe_bmp): Change to pointer.
1311 (max_fringe_bmp): New var.
1312 (w32_define_fringe_bitmap): Expand fringe_bmp.
1313 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1314 (w32_destroy_fringe_bitmap): Likewise.
1315
13162004-09-29 Kim F. Storm <storm@cua.dk>
1317
1318 * fringe.c: Simplify last change.
f2a54fbc
KS
1319 (lookup_fringe_bitmap): New function.
1320 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1321 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1322 Keep standard bitmaps in Vfringe_bitmaps.
1323 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1324 (Fset_fringe_bitmap_face): Likewise.
1325
1326 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1327 (valid_fringe_bitmap_p): Remove prototype.
1328
1329 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1330
841a8bca
KS
13312004-09-29 Kim F. Storm <storm@cua.dk>
1332
1f2da365
KS
1333 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1334 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1335
841a8bca
KS
1336 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1337
1338 * fringe.c (Vfringe_bitmaps): New variable.
1339 (syms_of_fringe): DEFVAR_LISP it.
1340 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1341 Change arg to Lisp_Object and fail if not an integer.
1342 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1343 (destroy_fringe_bitmap): New functions.
9238467d
SM
1344 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1345 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1346 clear its fringe property.
1347 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1348 Fdestroy_fringe_bitmap.
1349 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1350 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1351 and set fringe property. Signal error if no free slots.
1352 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1353 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1354
1355 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1356 symbols with a fringe property.
1357
4d965590
KS
13582004-09-27 Kim F. Storm <storm@cua.dk>
1359
1360 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1361 Doc fix. Format may now be a symbol or alist, not a cons.
1362
1363 * fringe.c (update_window_fringes): Handle new formats of
1364 indicate-buffer-boundaries (symbol or alist). No longer
1365 allow a simple cons.
1366 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1367
e888c2b3
JD
13682004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1369
9238467d 1370 * config.in: Rebuild.
e888c2b3 1371
83f1cb94
JD
13722004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1373
1374 * config.in: Rebuild.
1375
dd3b1d60 1376 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1377
2c51754c
SM
13782004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1379
1380 * xterm.c (x_term_init): Work around a bug in some X servers.
1381
3df5f8aa
RS
13822004-09-18 Richard M. Stallman <rms@gnu.org>
1383
557ca2c1
RS
1384 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1385
3df5f8aa
RS
1386 * xdisp.c (try_window_reusing_current_matrix):
1387 Handle the case where we reach the old displayed text,
1388 out of sync with the old line boundary.
1389
9238467d 13902004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1391
1392 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1393 narrowed buffer.
1394
bfa02563
KS
13952004-09-14 Kim F. Storm <storm@cua.dk>
1396
a25fe164
KS
1397 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1398
bfa02563
KS
1399 * xfaces.c (Qface_no_inherit): New var.
1400 (syms_of_xfaces): Intern and staticpro it.
1401 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1402 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1403 Don't increment face_change_count when face has non-nil
1404 face-no-inherit property.
1405
126f9c02
SM
14062004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1407
892a8eb5
SM
1408 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1409 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1410
126f9c02 1411 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1412 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 1413
c0ad3b38
KS
14142004-09-12 Kim F. Storm <storm@cua.dk>
1415
1416 * editfns.c (Fformat): Handle format strings with multiple text
1417 properties. Reverse text property list from the format string,
1418 so the positions are in increasing order.
1419
844fc085
JD
14202004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1421
1422 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1423 x_uncatch_errors so that possible protocol errors are delivered.
1424
b106731c
EZ
14252004-09-10 Eli Zaretskii <eliz@gnu.org>
1426
21065c92
EZ
1427 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1428 blockinput.h.
1429 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1430 charset.h, and coding.h
9238467d 1431 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
1432 (term.o): Depend on window.h and keymap.h.
1433 (abbrev.o): Depend on syntax.h.
1434 (callint.o): Depend on keymap.h.
1435 (casefiddle.o): Depend on charset.h and keymap.h.
1436 (category.o): Depend on keymap.h.
1437 (coding.o): Depend on dispextern.h.
1438 (cmds.o): Depend on keyboard.h and keymap.h.
1439 (dispnew.o): Depend on indent.h and intervals.h.
1440 (doc.o): Depend on keymap.h.
1441 (editfns.o): Depend on frame.h.
1442 (emacs.o): Depend on dispextern.h.
1443 (fileio.o): Don't depend on ccl.h.
1444 (filelock.o): Depend on charset.h and coding.h.
1445 (frame.o): Depend on w32term.h and macterm.h.
1446 (insdel.o): Depend on region-cache.h.
1447 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1448 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1449 (search.o): Depend on $(INTERVALS_SRC).
1450 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1451 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1452 xterm.h, w32term.h, and macterm.h.
1453 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1454 w32term.h, and macterm.h.
1455 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1456 region-cache.h, xterm.h, w32term.h, and macterm.h.
1457 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1458 (data.o): Depend on frame.h.
1459 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1460 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1461 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1462 (intervals.o): Depend on keymap.h.
1463
9238467d
SM
1464 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1465 Add debugging print-out to termscript.
b106731c 1466
64b7122d
RS
14672004-09-09 Richard M. Stallman <rms@gnu.org>
1468
1469 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1470
5670531e
RS
14712004-09-08 Richard M. Stallman <rms@gnu.org>
1472
6cb4a892
RS
1473 * window.c (Fset_window_buffer): Doc fix.
1474
5670531e
RS
1475 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1476
7e388eb7
JL
14772004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1478
1479 * minibuf.c (history_delete_duplicates): New variable.
1480 (read_minibuf): Use it.
1481 (syms_of_minibuf): Create the corresponding lisp variable.
1482
370e3587
KS
14832004-09-08 Kim F. Storm <storm@cua.dk>
1484
1485 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1486 overlay just before point.
1487
f844ba4e
LT
14882004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1489
1490 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
1491 * buffer.c (reset_buffer, init_buffer_once):
1492 Handle auto_save_file_format field.
f844ba4e
LT
1493 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1494 `buffer-auto-save-file-format'.
f844ba4e
LT
1495 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1496 (build_annotations): Adapt to replacement of
1497 `auto-save-file-format' with the new buffer-local variable
1498 `buffer-auto-save-file-format'.
1499 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1500
f0f90717
JR
15012004-09-07 Jason Rumney <jasonr@gnu.org>
1502
1503 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1504
9238467d
SM
1505 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1506 Handle Unicode menu titles.
f0f90717 1507
4e14f66c
KS
15082004-09-07 Kim F. Storm <storm@cua.dk>
1509
1510 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1511 property from text property or overlay strings at point.
1512
9238467d 15132004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
1514
1515 * xmenu.c (update_submenu_strings): YAILOM.
1516 (set_frame_menubar): Make sure last_i is initialized.
1517
1f06d367
JR
15182004-09-03 Jason Rumney <jasonr@gnu.org>
1519
1806714a 1520 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
1521 (digest_single_submenu): Set lname and lkey in widget_value
1522 instead of name and key.
1523 (update_submenu_strings): New function.
1524 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1525 call update_submenu_strings.
1526
1527 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1528 (digest_single_submenu, w32_menu_show): Encode menu strings as
1529 UTF-8 if Unicode API is available.
1530 (utf8to16): New function.
1531 (add_menu_item): Use it when calling Unicode API.
1806714a 1532
46540080
KS
15332004-09-03 Kim F. Storm <storm@cua.dk>
1534
1535 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1536 in overlay or text-property strings; set cursor on corresponding
1537 glyph rather than at end of the string.
1538
9277ba61 15392004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 1540
9277ba61 1541 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
1542 set a new one before obtaining the global coordinate.
1543 Use FRAME_MAC_WINDOW.
1544 (x_set_name, x_set_title): Encode title to UTF8.
1545 Use SetWindowTitleWithCFString.
9277ba61
ST
1546 (Fx_server_version): Get correct OS version.
1547
1806714a
SM
1548 * macmenu.c (add_menu_item): Remove unused variable `i'.
1549 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
1550
1551 * macterm.c (x_update_end): Move SetPortWindowPort to inside
1552 BLOCK_INPUT.
1553 (x_set_offset): Use FRAME_MAC_WINDOW.
1554
1555 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
1556 nontext_cursor if it is on a scroll bar.
1557
1558 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
1559 Carbon support.
1806714a
SM
1560 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
1561 Use LIBS_CARBON.
9277ba61 1562
b10daec7
JD
15632004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1564
1565 * xfns.c (x_set_name_internal): New function. Check if we shall call
1566 xfree before ENCODE_UTF_8.
1567 (x_set_name, x_set_title): Call x_set_name_internal.
1568
f7e22385
JR
15692004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
1570
1571 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
1572 reload it.
1573
2bf436c3
JD
15742004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1575
1806714a 1576 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
1577 (single_submenu): Set lname and lkey in widget_value
1578 instead of name and key.
1579 (update_submenu_strings): New function.
1580 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1581 call update_submenu_strings.
1582
2bf436c3
JD
1583 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
1584 instead of name and key.
1585 (update_submenu_strings): New function.
1586 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 1587 call update_submenu_strings.
2bf436c3
JD
1588
1589 * gtkutil.h (_widget_value): Added lname and lkey.
1590
11715f92
ST
15912004-08-30 Steven Tamm <steventamm@mac.com>
1592
1593 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
1594 by using different names for inner loop variables.
1595
5500be54
JD
15962004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1597
059cd329
JD
1598 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
1599 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
1600
5500be54
JD
1601 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
1602 tool bar items is 0.
1603
383418e5
ST
16042004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1605
1606 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
1607 strings in menu items.
1608 (single_submenu): Use ENCODE_MENU_STRING
1609 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
1610 button release isn't passed to event loop
1611 (add_menu_item): Use SetMenuItemWithCFString
1612
6eb3ee72
ST
16132004-08-26 Steven Tamm <steventamm@mac.com>
1614
1615 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
1616 tool-bar/menu click
1617 * macfns.c (Fx_file_dialog): Implemented using NavServices
1618
10b43ac3
JD
16192004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1620
2728b5d0
JD
1621 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
1622
10b43ac3
JD
1623 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1624 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1625 (x_top_window_to_frame): Return 0 if wdesc is None.
1626
2ee3b79e
RS
16272004-08-22 Richard M. Stallman <rms@gnu.org>
1628
1629 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
1630 HAVE_TERMIOS]: If there's no char for this signal, drop through
1631 and use system calls.
1632
1633 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
1634
9a1ba2ea
KS
16352004-08-20 Kim F. Storm <storm@cua.dk>
1636
1637 * process.c (wait_reading_process_output): Rename from
1638 wait_reading_process_input. All uses changed.
1639 (wait_reading_process_output_1): Rename from
1640 wait_reading_process_input_1. All uses changed.
1641
1642 * dispnew.c (Fsleep_for): Remove obsolete code.
1643
295f3b30
KH
16442004-08-20 Kenichi Handa <handa@m17n.org>
1645
1646 * syntax.c (skip_chars): Fix for unibyte case.
1647
27615979
SM
16482004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1649
1650 * syntax.c (char_quoted): Mixup byte/char pos.
1651 (back_comment): Fixup globals in all cases.
1652
00267f94
JD
16532004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1654
1655 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
1656 passing it to gtk_window_set_title.
1657
2439909e
KS
16582004-08-19 Kim F. Storm <storm@cua.dk>
1659
6ba0f14c
KS
1660 * process.c (wait_reading_process_input): Clean up.
1661 Add wait_for_cell, wait_proc, and just_wait_proc args
1662 to avoid overloading `read_kbd' and `do_display' args.
1663 Change read_kbd arg to int. All callers changed.
1664
2439909e
KS
1665 * process.c (process_send_signal): Use CDISABLE.
1666
1667 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
1668
101c421e
KS
16692004-08-18 Kim F. Storm <storm@cua.dk>
1670
1671 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
1672 forward to wait_reading_process_input via DO_DISPLAY arg.
1673 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
1674 object, only process output from that process; also inhibit
1675 running timers if DO_DISPLAY==-2.
1676
c438dc33
KS
16772004-08-17 Kim F. Storm <storm@cua.dk>
1678
1679 * process.c (process_send_signal): Fix last change--use
1680 _POSIX_VDISABLE instead of CVDISABLE when available.
1681
8afc13c6
RS
16822004-08-16 Richard M. Stallman <rms@gnu.org>
1683
1684 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
1685 Set VQUIT and VINTR chars to the standard ones if they are unset.
1686 [AIX]: Don't do that here. And don't force VINTR to standard
1687 when SIGNALS_VIA_CHARACTERS.
1688
c438dc33 1689 * process.c (process_send_signal)
8afc13c6
RS
1690 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
1691 Do nothing if the character is CVDISABLE.
1692
1693 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
1694
c438dc33 1695 * intervals.c (move_if_not_intangible):
8afc13c6
RS
1696 Force POSITION to be between BEGV and ZV.
1697
6dad1714
JPW
16982004-08-14 John Paul Wallington <jpw@gnu.org>
1699
1700 * buffer.c (Frestore_buffer_modified_p): Doc fix.
1701
1702 * fileio.c (Fread_file_name): Doc fix.
1703
1704 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1705
2bd77330
LT
17062004-08-09 Luc Teirlinck <teirllm@auburn.edu>
1707
1708 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
1709
c90e7e43
LT
17102004-08-08 Luc Teirlinck <teirllm@auburn.edu>
1711
1712 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 1713 Qdisabled_command_hook.
c90e7e43 1714 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 1715 Qdisabled_command_hook.
c90e7e43
LT
1716 (syms_of_keyboard): Ditto.
1717
81909a1a
LT
17182004-08-07 Luc Teirlinck <teirllm@auburn.edu>
1719
1720 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
1721 (syms_of_keymap) <key-translation-map>: Doc fixes.
1722
0cedd530
SM
17232004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
1724
1725a7c9
SM
1725 * window.c (window_list_1): YAILOM.
1726
0cedd530
SM
1727 * fileio.c (make_temp_name): Handle multibyte prefixes.
1728
2515a131
LT
17292004-08-06 Luc Teirlinck <teirllm@auburn.edu>
1730
1731 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1732 Doc fix.
1733
c8b20fb7
KH
17342004-08-03 Kenichi Handa <handa@m17n.org>
1735
1736 * coding.c (decode_coding_string): Adjust coding->consumed, and
1737 etc. with shrinked_bytes.
1738
fb8b092b
KS
17392004-08-03 Kim F. Storm <storm@cua.dk>
1740
1741 * indent.c (compute_motion): Fix check for full width window
1742 in non-window case. Do not count left truncation glyph on
1743 window systems.
1744
df133612
LT
17452004-08-02 Luc Teirlinck <teirllm@auburn.edu>
1746
1747 * data.c (Finteractive_form): Doc fix.
1748
0f7a93c1
KS
17492004-08-02 Kim F. Storm <storm@cua.dk>
1750
1751 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
1752 properly accounting for continuation glyph on non-window systems.
1753 (Fcompute_motion): Use actual window width if WIDTH is nil, and
1754 actual window width/height if TOPOS is nil, properly accounting for
1755 continuation glyphs on non-window systems, and optional header lines.
1756 (vmotion): Let compute_motion calculate actual window width.
1757
1758 * window.c (window_scroll_line_based): Let compute_motion
1759 calculate actual window width.
1760
f491e1ed
KS
17612004-08-02 Kim F. Storm <storm@cua.dk>
1762
1763 * process.c (read_process_output): Use whole read buffer.
1764 Don't trigger adaptive read buffering on errors.
1765
83f64226
LT
17662004-07-31 Luc Teirlinck <teirllm@auburn.edu>
1767
1768 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
1769
1770 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
1771
1772 * callint.c (Fcall_interactively): Doc fix.
1773
8afc13c6
RS
17742004-07-30 Richard M. Stallman <rms@gnu.org>
1775
1776 * abbrev.c (Fexpand_abbrev): Undo previous change.
1777
7c111482
KS
17782004-07-30 Kim F. Storm <storm@cua.dk>
1779
1780 * editfns.c (Fformat): Allocate extra (dummy) element in info.
1781
ee945d08
LT
17822004-07-28 Luc Teirlinck <teirllm@auburn.edu>
1783
1784 * eval.c (Fdefvar, Fdefconst): Doc fixes.
1785
3f911c94
KS
17862004-07-27 Kim F. Storm <storm@cua.dk>
1787
1788 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
1789 we have ensured that the glyph fits on the current line (or returned
1790 MOVE_LINE_CONTINUED otherwise).
1791
f29ff8c7
KS
17922004-07-26 Kim F. Storm <storm@cua.dk>
1793
1794 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
1795 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
1796 if target position is at end of display line but char is not a newline.
1797
81159bb9
RS
17982004-07-25 Richard M. Stallman <rms@gnu.org>
1799
ab431b61
RS
1800 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
1801 instead of ON_VERTICAL_BORDER, when on scroll bar.
1802 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
1803
1804 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
1805
f29ff8c7 1806 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
1807 Take account of FRAME_INTERNAL_BORDER_WIDTH.
1808
1809 * alloc.c (check_cons_list): New function (contents commented out).
1810
fc820cc5
LT
18112004-07-24 Luc Teirlinck <teirllm@auburn.edu>
1812
1813 * xfaces.c (Fcolor_supported_p): Doc fix.
1814
1815 * frame.c (Fselect_frame, Fset_frame_selected_window)
1816 (Fframe_visible_p, Fraise_frame): Doc fixes.
1817
289978b5
LT
18182004-07-24 Richard M. Stallman <rms@gnu.org>
1819
78819ebb 1820 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
1821
1822 * fileio.c (Fwrite_region): Doc fix.
1823
1824 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
1825
1826 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
1827 only when a real abbrev is present.
1828
289978b5
LT
1829 * xfns.c (x_icon_verify): New function.
1830 (Fx_create_frame): Use it.
1831
63cc10ae
KS
18322004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
1833
1834 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
1835
36f826d4
KS
18362004-07-21 Kim F. Storm <storm@cua.dk>
1837
1838 * window.h (struct glyph_matrix): New members nrows_scale_factor
1839 and ncols_scale_factor.
1840
1841 * window.c (make_window): Initialize nrows_scale_factor and
1842 ncols_scale_factor members.
1843
1844 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
1845 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
1846 (required_matrix_height): Apply nrows_scale_factor.
1847 (required_matrix_width): Apply ncols_scale_factor.
1848
1849 * xdisp.c (display_line): Increment nrows_scale_factor and set
1850 fonts_changed_p if past last allocated row.
1851 (append_glyph, append_composite_glyph, produce_image_glyph)
1852 (append_stretch_glyph): Increment ncols_scale_factor and set
1853 fonts_changed_p if current area is full.
1854
5fc1c546
JD
18552004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1856
1857 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
1858
cb7516e5
LT
18592004-07-19 Luc Teirlinck <teirllm@auburn.edu>
1860
1861 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
1862 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
1863 (Fset_window_start, Fscroll_up, Fscroll_down)
1864 (Fother_window_for_scrolling, Fscroll_other_window)
1865 (Fsave_window_excursion, Fset_window_vscroll)
1866 (syms_of_window) <window-size-fixed>: Doc fixes.
1867
b6189c3b 18682004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
1869
1870 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
1871 ENCODE_SYSTEM for filenames.
1872
bfcf6608
ST
18732004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1874
1875 * mac.c (sys_select): Block input around call to
1876 ReceiveNextEvent to prevent breakage. Correctly handle
1877 blocking on event queue only by calling ReceiveNextEvent
1878 instead of select (since GUI events aren't on an fd).
1879 (sys_read): Remove function
1880 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
1881
e082ac9d
ST
18822004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1883
1884 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 1885 polling instead of 1 sec timeouts (like solaris).
e082ac9d 1886
cb7516e5 1887 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
1888 frame creation.
1889
1890 * keyboard.c: Undef SIGIO on Carbon
1891
1892 * atimer.c (alarm_signal_handler): Call alarm handlers after
1893 scheduling.
1894
1895 * eval.c (Feval): Remove quit_char test
1896
1897 * process.c (wait_reading_process_input): Remove clearing
1898 stdin for select call on process input.
1899
4b9da0fb
LT
19002004-07-18 Luc Teirlinck <teirllm@auburn.edu>
1901
1204e81c
LT
1902 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
1903 capitalization error in docstring.
4b9da0fb 1904
26503ad2
JB
19052004-07-17 Juanma Barranquero <lektu@terra.es>
1906
1907 * keyboard.c (not_single_kboard_state): Do nothing unless
1908 MULTI_KBOARD is defined.
1909
3751eb00
RS
19102004-07-17 Richard M. Stallman <rms@gnu.org>
1911
1912 * window.c (coordinates_in_window): Inside the window but outside
1913 its box to the L or R, return ON_VERTICAL_BORDER.
1914 (window_list_1): Rotate the list to start with WINDOW.
1915
1916 * print.c (print_preprocess): Test for print_depth at limit
1917 before entering in being_printed.
1918
1919 * keyboard.c (not_single_kboard_state): New function.
1920 (stuff_buffered_input): Now no-op only if no SIGTSTP.
1921
1922 * frame.c (Fdelete_frame): If we're in single_bboard_state on
1923 this kboard, and we delete its last frame, go to any_kboard_state.
1924
1925 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
1926
b6189c3b 19272004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
1928
1929 * w32fns.c (Fx_file_dialog): Encode strings in system coding
1930 system before passing them to OS functions for display.
1931
0f6af254
DK
19322004-07-15 David Kastrup <dak@gnu.org>
1933
f9253326
KS
1934 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
1935 Apparently fixes an abort condition.
0f6af254 1936
386c8f42
LT
19372004-07-14 Luc Teirlinck <teirllm@auburn.edu>
1938
1939 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
1940 instead of a cons.
1941
366511da
MB
19422004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
1943
1944 * keyboard.c (echo_dash): Do nothing if there already is a dash
1945 at the end of the echo string.
1946
f85409d3
KS
19472004-07-12 Kim F. Storm <storm@cua.dk>
1948
1949 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
1950 if GC_MARK_STACK.
1951
0ba2e87b
LT
19522004-07-10 Luc Teirlinck <teirllm@auburn.edu>
1953
da38045d
LT
1954 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
1955
0ba2e87b
LT
1956 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
1957 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
1958 (Freplace_buffer_in_windows, Fset_window_buffer)
1959 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
1960 (syms_of_window): Expand docstring of `display-buffer-function'.
1961
5668fbb8
LT
19622004-07-09 Luc Teirlinck <teirllm@auburn.edu>
1963
1964 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
1965 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
1966 that time values of the type (HIGH . LOW) are considered obsolete.
1967
a085bf9d
LT
19682004-07-06 Luc Teirlinck <teirllm@auburn.edu>
1969
669de2fb
LT
1970 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
1971 docstring.
1972
bac66325 1973 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 1974
8e975df9
JPW
19752004-07-06 John Paul Wallington <jpw@gnu.org>
1976
1977 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
1978
fa164e6a
JPW
1979 * fns.c (Fclear_string): Signal an error if STRING is not a string.
1980
2bac9bb1
JD
19812004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1982
1983 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
1984 instead of CGMainDisplayID (only in OSX 10.2 and later).
1985
316ef0dc
JPW
19862004-07-04 John Paul Wallington <jpw@gnu.org>
1987
1988 * fileio.c (read_file_name_completion_ignore_case): New variable.
1989 (syms_of_fileio): Declare and initialise it.
1990 (Fread_file_name): Bind `completion-ignore-case' to respect it.
1991
2a1a35c6
EZ
19922004-07-03 Eli Zaretskii <eliz@gnu.org>
1993
1994 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
1995 for event.x and event.y.
1996
33a72331
KH
19972004-07-01 Kenichi Handa <handa@m17n.org>
1998
1999 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2000 after getting a new string by pre-write-conversion.
2001
9238467d 20022004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2003
2004 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2005 (x_calc_absolute_position): Remove unused var `child'.
2006
2007 * xfaces.c (x_supports_face_attributes_p)
2008 (Fdisplay_supports_face_attributes_p): YAILOM.
2009 (tty_supports_face_attributes_p): Remove unused var `i'.
2010
2011 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2012 back_unibyte_ok.
2013
2014 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2015
2016 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2017
2018 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2019
f96ec754
AS
20202004-06-30 Andreas Schwab <schwab@suse.de>
2021
2022 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2023 (Finit_image_library): Pass LIBRARIES through to
2024 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2025 (lookup_image_type): Pass Qnil as second argument to
2026 Finit_image_library.
2027
78819ebb 2028 * lisp.h (Finit_image_library): Declare.
f96ec754 2029
59feca74 20302004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2031
31983645
AS
2032 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2033 (XTread_socket): Send mouse button events to the toolbox
2034 dispatcher even when the mouse is grabbed. Don't process window
2035 activate events for non-Emacs windows. Replace function calls to
2036 do_window_activate and do_window_deactivate with their contents.
2037 Reset mouse grabbing status when a window is deactivated.
59feca74 2038
c61278bb
ST
20392004-06-29 Steven Tamm <steventamm@mac.com>
2040
2041 * macterm.c (mac_get_emulated_btn)
2042 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2043 support to correctly mask out modifiers.
2044
c3762cbd
DK
20452004-06-29 David Kastrup <dak@gnu.org>
2046
2047 * search.c (Fset_match_data): Allow buffer before end of list
2048 which can happen if set-match-data is using a pre-consed list.
2049
c61278bb 20502004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2051
2052 * macterm.c (XTread_socket): Correctly set the frame position
2053 after the window is moved.
2054
74cdfe05
JD
20552004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2056
2057 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2058 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2059 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2060 so insensitive and activated icons look ok.
74cdfe05 2061
ef544dc8
JR
20622004-06-27 Jason Rumney <jasonr@gnu.org>
2063
2064 * w32fns.c (file_dialog_callback): Disable edit control if set
2065 to directories only on CDN_INITDONE message.
2066 (Fx_file_dialog): Default to directories only when prompt starts
2067 with "Dired".
2068
7b7990cc
KS
20692004-06-25 Kim F. Storm <storm@cua.dk>
2070
2071 * alloc.c (allocate_misc): Update total_free_markers.
2072 (free_misc): New function.
2073 (safe_alloca_unwind, free_marker): Use it.
2074
2075 * lisp.h (free_misc): Add prototype.
2076
2077 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2078
d8c379f8
RS
20792004-06-24 Richard M. Stallman <rms@gnu.org>
2080
2081 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2082 (syms_of_emacs): Lisp variables deleted.
2083
559cdd07
DK
20842004-06-23 David Kastrup <dak@gnu.org>
2085
94939b84
DK
2086 * search.c (Freplace_match): Adjust the match-data more thoroughly
2087 when replacing strings in the buffer.
2088 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2089 a buffer, add the buffer as last element to the match data.
2090 (Fset_match_data): If an additional element of the match-data is a
2091 buffer, restore it to last_thing_searched.
c8d09ad8 2092 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2093 (restore_match_data): Restore it again.
2094
dce417e7
LT
20952004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2096
2097 * keymap.c (Ftext_char_description): Doc fix.
2098 * doc.c (Fsnarf_documentation): Doc fix.
2099
ef54b2d0
KS
21002004-06-22 Kim F. Storm <storm@cua.dk>
2101
b5bc4d05
KS
2102 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2103
ef54b2d0
KS
2104 * lisp.h (struct Lisp_Save_Value): New member dogc.
2105 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2106 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2107 (SAFE_FREE_LISP): New macro.
2108
2109 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2110 (make_save_value): Init new dogc member.
2111 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2112
2113 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2114 SAFE_FREE_LISP macros.
2115
3d33d993
KS
21162004-06-22 Kim F. Storm <storm@cua.dk>
2117
2118 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2119 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2120 in that memory area are unknown to GC. Add comments.
2121
2122 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2123
5c917f98
KS
21242004-06-21 Kim F. Storm <storm@cua.dk>
2125
2126 * lisp.h (MAX_ALLOCA): Define here.
2127 (safe_alloca_unwind): Add prototype.
2128 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2129
2130 * alloc.c (safe_alloca_unwind): New function.
2131
2132 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2133
2134 * charset.c (Fstring): Use SAFE_ALLOCA.
2135
2136 * coding.c (MAX_ALLOCA): Remove define.
2137
2138 * data.c (MAX_ALLOCA): Remove define.
2139 (Faset): Use SAFE_ALLOCA.
2140
2141 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2142
2143 * fns.c (string_make_multibyte, string_to_multibyte)
2144 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2145 (MAX_ALLOCA): Remove define.
2146 (Fbase64_encode_region, Fbase64_encode_string)
2147 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2148 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2149 memory leak if encoding fails.
2150
2151 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2152
9a09408e
EZ
21532004-06-21 Eli Zaretskii <eliz@gnu.org>
2154
2155 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2156
376de739
RS
21572004-06-20 Richard M. Stallman <rms@gnu.org>
2158
2159 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2160
2161 * search.c (match_limit): Cleaner err msg when no match data available.
2162
2163 * window.c (syms_of_window): Doc fix.
2164
2165 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2166 for Vtransient_mark_mode.
2167
2168 * buffer.c (syms_of_buffer): Doc fix.
2169
acd81db9
DK
21702004-06-21 David Kastrup <dak@gnu.org>
2171
2172 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2173 and unbinding of `case-fold-search' according to
2174 `completion-ignore-case' around calls of string-match and
2175 predicates, respectively. Should give satisfactory performance
2176 in all relevant cases.
2177
f303762d
JD
21782004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2179
95911c74
JD
2180 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2181 clip_x/y_origin.
2182
a6cb6b78
JD
2183 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2184
f303762d
JD
2185 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2186
2187 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2188 on Mac OSX.
2189
bbdb2684
LT
21902004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2191
2192 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2193
5ea48b1c
KS
21942004-06-16 Kim F. Storm <storm@cua.dk>
2195
2196 * dispextern.h (Vimage_types): Remove extern.
2197
803aac3e
MB
21982004-06-16 Miles Bader <miles@gnu.org>
2199
2200 * image.c (lookup_image_type): Initialize image type if necessary.
2201
cdc97764
KS
22022004-06-15 Kim F. Storm <storm@cua.dk>
2203
c4a5739c
KS
2204 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2205 margin at top of window.
2206 (try_window_reusing_current_matrix): Calculate proper cursor position
2207 after scrolling up with non-zero scroll margin, as the old cursor
2208 position corresponds to value of PT before executing this command.
2209 (try_window_id): Consider scroll margin at bottom of window too;
2210 otherwise we fail to scroll when hl-line-mode is enabled.
2211
cdc97764
KS
2212 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2213 proper format and class is a lower-case word.
2214
5b166323
JD
22152004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2216
2217 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2218 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2219 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2220 xg_get_gdk_pixmap_and_mask.
cdc97764 2221
5b166323
JD
2222 * xterm.h (struct x_display_info): Typo in comment fixed.
2223
1ebd4f78
JB
22242004-06-14 Juanma Barranquero <lektu@terra.es>
2225
2226 * dispextern.h (Vimage_types): Make it conditional on
2227 HAVE_WINDOW_SYSTEM.
2228
2229 * image.c (Vimage_types): Move from xdisp.c.
2230 (Vimage_type_cache): New variable.
2231 (define_image_type): New argument indicating whether an image
2232 library was loaded; cache loaded status and return t on success,
2233 nil otherwise.
2234 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2235 (w32_delayed_load): New function to load an image library from a
2236 list of possible filenames.
2237 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2238 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2239 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2240 (Finit_image_library): New function, extracted from `init_image'.
2241 Try to initialize an image library on demand and cache whether we
2242 were successful or not.
2243 (syms_of_image): Initialize `Vimage_types' and
2244 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2245 Export `init-image-library'.
2246 (init_image): Remove initialization of all image types, except xbm
2247 and pbm.
2248
2249 * xdisp.c (Vimage_types): Delete (moved to image.c).
2250
904ee128
AS
22512004-06-14 Andreas Schwab <schwab@suse.de>
2252
2253 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2254 Avoid calling specbind when completion-regexp-list is empty.
2255
092de21d
RS
22562004-06-13 Richard M. Stallman <rms@gnu.org>
2257
2258 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2259 (re_wctype, re_iswctype, re_wctype_to_bit):
2260 Non-function definitions moved here from regex.c.
1ebd4f78 2261
092de21d
RS
2262 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2263 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2264 (re_wctype, re_iswctype, re_wctype_to_bit):
2265 Non-function definitions moved to regex.h.
2266
2267 * window.c (Fselect_window): Doc fix.
2268
2269 * syntax.c: Include regex.h.
2270 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2271 If requested, make a list of classes, then check the scanned
2272 chars for membership in them.
2273 (in_classes): New function.
2274 Doc fix.
2275
2276 * keyboard.c (cmd_error): Don't call any_kboard_state
2277 if inside a recursive edit level.
2278
22792004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2280
2281 * keyboard.c (command_loop): Call any_kboard_state before
2282 command_loop_2 when at top level.
2283
3ebc0939
AS
22842004-06-13 Andreas Schwab <schwab@suse.de>
2285
cea5d0d4
AS
2286 * print.c (print_object): Always use %ld for printing EMACS_INT.
2287
2288 * keyboard.c (cancel_hourglass_unwind): Return a value.
2289 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2290 (Fexecute_extended_command): Likewise.
2291
2292 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2293 avoid clashes.
2294 (SYNTAX): Likewise.
2295 (SYNTAX_WITH_FLAGS): Likewise.
2296 (SYNTAX_MATCH): Likewise.
2297
2298 * syntax.c (char_quoted): Avoid warning about undefined operation.
2299 (find_defun_start): Likewise.
2300 (scan_lists): Likewise.
2301 (INC_FROM): Likewise.
2302 (scan_sexps_forward): Likewise.
2303
be8c4ce4
AS
2304 * image.c: Include <ctype.h>.
2305
3ebc0939
AS
2306 * xfaces.c (face_attr_equal_p): Declare parameters.
2307
6fb41b5b
KH
23082004-06-13 Kenichi Handa <handa@m17n.org>
2309
2310 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2311
fc3095ce
EZ
23122004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2313
2314 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2315
66189a40
KH
23162004-06-12 Kenichi Handa <handa@m17n.org>
2317
2318 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2319 ccl_prog_stack_struct and update it.
2320 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2321 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2322 ccl->eof_ic on EOF.
2323 (ccl_debug_hook): New function.
2324 (struct ccl_prog_stack): New member eof_ic.
2325 (ccl_driver): Handle EOF in subrountine call correctly.
2326
23272004-06-11 Kenichi Handa <handa@m17n.org>
2328
2329 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2330
1da71023
KS
23312004-06-11 Kim F. Storm <storm@cua.dk>
2332
2333 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2334
e9efcef4
JB
23352004-06-11 Juanma Barranquero <lektu@terra.es>
2336
2337 * keyboard.c (Fposn_at_point): Doc fix.
2338
9b9ceb61
DK
23392004-06-11 David Kastrup <dak@gnu.org>
2340
2341 * search.c (match_limit): Don't flag an error if match-data
2342 exceeding the allocated search_regs.num_regs gets requested, just
2343 return Qnil.
2344
6e87ac8f
MB
23452004-06-08 Miles Bader <miles@gnu.org>
2346
2347 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2348
0b0dea7b
JB
23492004-06-07 Juanma Barranquero <lektu@terra.es>
2350
2351 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2352 (Fcurrent_time_string, Fcurrent_time_zone)
2353 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2354
a0a23346
MB
23552004-06-07 Miles Bader <miles@gnu.org>
2356
08384afd 2357 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2358 (push_named_merge_point): New function.
2359 (merge_named_face): New function.
2360 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2361 Use `merge_named_face'.
2362 (merge_face_inheritance): Function removed.
c8d09ad8 2363 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2364 Add new `err_msgs' and `named_merge_points' args. Return error
2365 status. Only print error messages if ERR_MSGS is true. Don't try to
2366 do :inherit attribute validation.
2367 (merge_face_heights): Handle `unspecified' in both directions.
2368 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2369 Call `merge_face_ref' instead of `merge_face_inheritance'.
2370 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2371 (compute_char_face, face_at_buffer_position)
2372 (face_at_string_position): Call `merge_face_ref' instead of
2373 `merge_face_vector_with_property'.
2374
12d5b185
KH
23752004-06-07 Kenichi Handa <handa@m17n.org>
2376
2377 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2378 the necessary places.
2379
2e2d7ee6
KS
23802004-06-07 Kim F. Storm <storm@cua.dk>
2381
2382 * process.c (Fdelete_process): Undo 2004-05-28 change.
2383 Instead, call status_notify also for network process.
2384 (status_message): Use process instead of status as arg.
2385 Give messages "deleted" or "connection broken by remote peer" for
2386 an exited network process.
2387 (status_notify): Change call to status_message.
2388 (read_process_output): Increase readmax to 4096. Do not increase
2389 buffer size for datagram channels (default is now large enough).
2390
fcf0d299
ST
23912004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2392
2393 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2394 problem due to newly defined variable.
2395
0722292b
MB
23962004-06-06 Miles Bader <miles@gnu.org>
2397
2398 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2399 immediately if non-interactive or not initialized.
2400
ddfb8369
RS
24012004-06-05 Richard M. Stallman <rms@gnu.org>
2402
2403 * minibuf.c (Fcompleting_read): Doc fix.
2404
57015754
AS
24052004-06-05 Andreas Schwab <schwab@suse.de>
2406
2407 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2408
23715ea6
JB
24092004-06-05 Juanma Barranquero <lektu@terra.es>
2410
2411 * keymap.c (Fdescribe_vector): Fix docstring.
2412 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2413
8e330b22
MB
24142004-06-05 Miles Bader <miles@gnu.org>
2415
2416 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2417 attributes have different values than the default face.
2418
9742a3a6
EZ
24192004-06-04 Eli Zaretskii <eliz@gnu.org>
2420
2421 * xfaces.c (x_supports_face_attributes_p): Make this function
2422 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
2423 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2424 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 2425
9717e36c
MB
24262004-06-04 Miles Bader <miles@gnu.org>
2427
2428 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2429 from Ftty_supports_face_attributes_p.
2430 (x_supports_face_attributes_p): New function.
2431 (Ftty_supports_face_attributes_p): Function deleted.
2432 (Fdisplay_supports_face_attributes_p): New function.
2433 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 2434 (face_attr_equal_p): New function.
9717e36c
MB
2435 (lface_equal_p): Use it.
2436
52deb19f
JB
24372004-06-03 Juanma Barranquero <lektu@terra.es>
2438
2439 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2440 (Vw32_color_map): Fix typo in docstring.
2441 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2442 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2443 Make argument names match their use in docstring.
2444
86d373e6
JB
24452004-06-02 Juanma Barranquero <lektu@terra.es>
2446
2447 Work around bugs/problems with MinGW builds of graphics libraries
2448 called from MSVC builds of Emacs.
2449
2450 * image.c (lookup_image): Make pointer to img static.
2451 (png_read_from_memory): Disable "global" optimization.
2452
2fb0ce67
SM
24532004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2454
c8d09ad8
SM
2455 * eval.c (Fcondition_case): Fix usage. Simplify.
2456
2fb0ce67
SM
2457 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2458
50bf7673
ST
24592004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2460
2461 * macfns.c: Don't include ccl.h.
2462 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
2463 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2464 TextUtils.h.
c8d09ad8 2465 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
2466 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2467 display height/width.
2468 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2469 (unwind_create_tip_frame, compute_tip_xy): New functions.
2470 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2471 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2472 and last_show_tip_args.
2fb0ce67 2473
50bf7673
ST
2474 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2475 (Cursor, No_Cursor): New defines.
c8d09ad8 2476 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
2477 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2478
2479 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2480
2481 * macterm.c: Don't include Gestalt.h.
2482 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2483 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2484 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2485 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2486 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2487 (construct_mouse_click, XTmouse_position)
2488 (x_scroll_bar_report_motion, x_calc_absolute_position)
2489 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2490 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2491 (note_mouse_movement): Clear the mouse face and reset the pointer
2492 shape when the pointer goes outside the frame without grabbing.
2493 (mac_front_window): New function.
2494 (mac_window_to_frame): New macro.
2495 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2496 (do_window_activate, do_window_deactivate, do_app_resume)
2497 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2498 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2499 (mac_check_for_quit_char): Use mac_front_window and/or
2500 mac_window_to_frame.
2501 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2502 scroll-bar click event.
2503 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 2504 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 2505 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 2506 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
2507 (do_window_update): Don't do anything if the updated window is the
2508 tooltip window.
2509 (do_mouse_moved): Handle mouse movement events here (previously in
2510 XTread_socket). Clear the mouse face if
2511 dpyinfo->mouse_face_hidden is set.
2512 (do_os_event, do_events): Remove (now in XTread_socket).
2513 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
2514 Loop until all the events in the queue are processed.
2515 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
2516 contents of do_os_event and do_events. Remove mouse movement
2517 handling (now in do_mouse_moved). Add the case where
2518 Vmouse_highlight has an integer value.
2519 (NewMacWindow): Remove.
2520 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2521 excess initializations.
2522 (make_mac_terminal_frame): Previous initializations in
2523 make_mac_frame are moved here.
c8d09ad8
SM
2524 (mac_initialize_display_info):
2525 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
2526
2527 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2528 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2529
08fd1251
RS
25302004-05-29 Richard M. Stallman <rms@gnu.org>
2531
2532 * lisp.h (truncate_undo_list): Update decl.
2533
2534 * alloc.c (undo_outer_limit): New variable.
2535 (syms_of_alloc): Defvar it.
2536 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2537
2538 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2539
2540 * alloc.c (lisp_align_malloc): Check for base == 0
2541 regardless of HAVE_POSIX_MEMALIGN.
2542 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2543
227ef0ff
SM
25442004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2545
2546 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
2547 (marker_blocks_pending_free): Remove.
2548 (Fgarbage_collect): Sweep after cleaning up undo-lists.
2549 Mark the undo lists after claning them up.
2550 Don't free block in marker_blocks_pending_free.
2551 (mark_buffer): Don't mark undo_list.
2552 (gc_sweep): Sweep hash-tables and strings first.
2553 Do free marker blocks that are empty.
2554
034a6113
SM
25552004-05-28 Jim Blandy <jimb@redhat.com>
2556
2557 * regex.c (print_partial_compiled_pattern): Add missing 'break'
2558 after 'case wordend'. For symbeg and symend, print to stderr,
2559 like the other cases.
2560
33594a8d
NF
25612004-05-28 Noah Friedman <friedman@splode.com>
2562
2563 * process.c (Fdelete_process): Do not call remove_process.
2564
ce50a847
SM
25652004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2566
2567 * alloc.c (struct backtrace): Remove.
2568 (Fgarbage_collect): Use the new mark_backtrace.
2569
2570 * eval.c (mark_backtrace): New function.
2571
2572 * minibuf.c (run_exit_minibuf_hook): New function.
2573 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
2574 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
2575
1e8dae36
KS
25762004-05-27 Kim F. Storm <storm@cua.dk>
2577
2578 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
2579 over display properties, e.g. images, that replace buffer text.
2580
846faa3b
KS
25812004-05-25 Kim F. Storm <storm@cua.dk>
2582
2583 * alloc.c (marker_blocks_pending_free): New var.
2584 (gc_sweep): Store free marker blocks on that list.
2585 (Fgarbage_collect): Free them after undo-list cleanup.
2586
2587 * process.c (wait_reading_process_input): Check connect_wait_mask
2588 before actually accepting connection in case it has already been
2589 accepted due to recursion.
2590
b6189c3b 25912004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 2592
ce50a847
SM
2593 * coding.c (Fset_safe_terminal_coding_system_internal):
2594 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 2595
71d5a208
RS
25962004-05-22 Richard M. Stallman <rms@gnu.org>
2597
2598 * alloc.c (Fmake_string): Doc fix.
2599
2600 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
2601 and the alist pairs too.
2602
2603 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
2604
2605 * emacs.c (main): Update copyright year.
2606
2607 * fileio.c (Fread_file_name): Expand DIR if not absolute.
2608
2609 * insdel.c (del_range_2, replace_range): Don't write an anchor
2610 if the gap is empty.
2611
2612 * xdisp.c (try_scrolling): If scroll-up-aggressively or
2613 scroll-down-aggressively is small but positive, put point
2614 near the screen edge.
2615
f63fd14e
JB
26162004-05-22 Juanma Barranquero <lektu@terra.es>
2617
2618 * keymap.c (Fdefine_key): Doc fix.
2619
4d12067c
KS
26202004-05-22 Kim F. Storm <storm@cua.dk>
2621
2622 * alloc.c (struct backtrace): Add debug_on_exit member.
2623 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
2624 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
2625 the removed cons cells.
2626 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
2627 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
2628 any cons cells pointing to unallocated stings.
2629 Do not lisp_free any marker blocks, as there may still be pointers
2630 to them from buffer undo lists at this stage of GC.
2631
2632 * keyboard.c (struct backtrace): Add debug_on_exit member.
2633 (Fcommand_execute): Clear it.
2634
931285e2
LT
26352004-05-20 Luc Teirlinck <teirllm@auburn.edu>
2636
2637 * intervals.c (lookup_char_property): Do not prematurely return nil.
2638
669fa600
SM
26392004-05-19 Jim Blandy <jimb@redhat.com>
2640
2641 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 2642 beginning and end of symbols.
4d12067c 2643
669fa600
SM
2644 * regex.c (enum syntaxcode): Add Ssymbol.
2645 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
2646 (re_opcode_t): New opcodes `symbeg' and `symend'.
2647 (print_partial_compiled_pattern): Print the new opcodes properly.
2648 (regex_compile): Parse the new operators.
ce50a847 2649 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
2650 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
2651 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
2652 (re_match_2_internal): Match symbeg and symend.
2653
2654 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
2655
0d8c2e5c
KS
26562004-05-19 Kim F. Storm <storm@cua.dk>
2657
2658 * .gdbinit (xsymbol): Fix last change.
2659
669fa600
SM
26602004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
2661
2662 * .gdbinit (xprintstr): New fun.
2663 (xstring, xprintsym): Use it.
2664
2665 * w32proc.c (create_child): Use INTMASK.
2666
2667 * alloc.c (Fgarbage_collect): Do all the marking before flushing
2668 unmarked elements of the undo list.
2669
9a6a4c40
DP
26702004-05-18 David Ponce <david@dponce.com>
2671
2672 * print.c (print): Reset print_depth before to call print_object.
2673
f3c4ec74
JR
26742004-05-18 Jason Rumney <jasonr@gnu.org>
2675
2676 * w32console.c: Prefix RIF functions with w32con_ to avoid
2677 namespace clash with functions in term.c and w32term.c.
2678
2679 * w32menu.c (add_menu_item, w32_menu_display_help)
2680 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
2681
0d8c2e5c 2682 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 2683
6be49c3a
EZ
26842004-05-18 Eli Zaretskii <eliz@gnu.org>
2685
4d0b9a0a
EZ
2686 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
2687
6be49c3a
EZ
2688 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
2689 with make_number.
2690 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
2691 with XINT.
2692
0bc90bba
KS
26932004-05-18 Kim F. Storm <storm@cua.dk>
2694
89d19988
KS
2695 * blockinput.h (INPUT_BLOCKED_P): New macros.
2696
2697 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
2698 (Ftop_level): Unblock input if blocked.
2699
0bc90bba
KS
2700 * buffer.h (GET_OVERLAYS_AT): New macro.
2701 * msdos.c (IT_note_mouse_highlight): Use it.
2702 * textprop.c (get_char_property_and_overlay): Use it.
2703 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
2704 * xfaces.c (face_at_buffer_position): Use it.
2705
2706 * print.c (print_object): Increase buf size.
2707
653bd0f6
JR
27082004-05-17 Jason Rumney <jasonr@gnu.org>
2709
2710 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
2711 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
2712 Lisp_Object using i member.
2713 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
2714 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
2715 consistently.
2716
2717 * w32proc.c (create_child): Use make_number instead of masking pid.
2718
2719 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
2720 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
2721 Use EQ to compare Lisp_Objects.
2722 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
2723
2724 * w32term.c (w32_num_mouse_buttons): Rename from
2725 Vw32_num_mouse_buttons and make it an int.
2726
2727 * w32.c (init_environment): Use it.
2728
2729 * w32fns.c (w32_wnd_proc): Likewise.
2730
2731 * w32proc.c (w32_pipe_read_delay): Rename from
2732 Vw32_pipe_read_delay and make it an int.
2733
2734 * w32.c (_sys_read_ahead): Use it.
2735
2736 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
2737
2738 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
2739
2740 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
2741 (key_event): Don't mix Lisp_Object and int.
2742
2743 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
2744
2745 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
2746 modifiers in language change event.
2747
54b53ba7
KS
27482004-05-17 Kim F. Storm <storm@cua.dk>
2749
2750 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
2751 Such objects may be freed markers which still exist on an undo list.
2752
6e86a75d
JB
27532004-05-16 Juanma Barranquero <lektu@terra.es>
2754
2755 * data.c (Fset_default): Make argument names match their use in
2756 docstring.
2757
fc80da24
AS
27582004-05-15 Andreas Schwab <schwab@suse.de>
2759
2760 * emacs.c (gdb_array_mark_flag): Define.
2761 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
2762
c1380aa6
EZ
27632004-05-15 Eli Zaretskii <eliz@gnu.org>
2764
2765 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
2766 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
2767 defined for the MS-DOS build.
2768
89458937
SM
27692004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2770
2771 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
2772
08020f9a
KH
27732004-05-14 Kenichi Handa <handa@m17n.org>
2774
2775 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
2776
a433994a
ST
27772004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2778
2779 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
2780 section to frame.c section.
2781 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 2782 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 2783
a433994a 2784 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 2785
a433994a 2786 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 2787
a433994a
ST
2788 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
2789 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
2790 (XTread_socket): Fix int/Lisp_Object mixup.
2791 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 2792
a433994a
ST
2793 * macterm.h (struct frame, struct face, struct image)
2794 (display_x_get_resource, Fx_display_color_p)
89458937
SM
2795 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
2796 Add prototypes.
a433994a 2797
b51a51b9
KS
27982004-05-14 Kim F. Storm <storm@cua.dk>
2799
2800 * process.c (wait_reading_process_input): Make reentrant.
2801 Make Available and Connecting non-static. Save and restore value
2802 of waiting_for_user_input_p.
2803
2bde1dd8
KS
28042004-05-13 Kim F. Storm <storm@cua.dk>
2805
2806 * keyboard.c (mark_kboards): Don't mark x and y members
2807 that are overloaded in selection request events.
2808
a267ab4d
SM
28092004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2810
2811 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
2812
eb15ce9e
GM
28132004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
2814
2815 * window.c (Fdisplay_buffer, Fsplit_window)
2816 (split-height-threshold): Doc fix.
2817
7fc92635
JB
28182004-05-13 Juanma Barranquero <lektu@terra.es>
2819
2820 * xfaces.c (Ftty_supports_face_attributes_p)
2821 (Finternal_copy_lisp_face): Fix typo in docstring.
2822 (Finternal_get_lisp_face_attribute): Fix docstring.
2823
1ec2a572
JD
28242004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2825
2826 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
2827
ae9292e0
ST
28282004-05-11 Steven Tamm <steventamm@mac.com>
2829
2830 * macfns.c (Fx_create_frame): Default to using tool-bar by
2831 setting tool-bar-lines to 1 in default-frame-alist.
2832
28332004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
2834
2835 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
2836 (xpm_get_color_table_v, xpm_make_color_table_h)
2837 (xpm_put_color_table_h, xpm_get_color_table_h)
2838 (xpm_str_to_color_key, xpm_load_image, xpm_load)
2839 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 2840 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 2841
fe97e8df
ST
28422004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2843
a267ab4d 2844 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
2845 instead of FRAME_X_P
2846
b47e779e
KS
28472004-05-11 Kim F. Storm <storm@cua.dk>
2848
2849 * process.c (read_process_output): Grow decoding_buf when needed;
2850 this could cause a crash in allocate_string and compact_small_strings.
2851
cdc9b845
EZ
28522004-04-29 Jim Blandy <jimb@redhat.com>
2853
2854 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
2855 against proper opcode.
2856
aa7094ba
JB
28572004-05-10 Juanma Barranquero <lektu@terra.es>
2858
2859 * process.c (Fstart_process): Fix docstring.
2860
2861 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
2862 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
2863 (Fsplit_char, Fchar_charset): Make argument names match their use
2864 in docstring.
2865
e109331a
RS
28662004-05-10 Richard M. Stallman <rms@gnu.org>
2867
2868 * print.c (print_preprocess): Use being_printed, loop_count and
2869 halftail to detect overdeep nesting and cyclic cdr chains.
2870
9a28b921
AS
28712004-05-10 Andreas Schwab <schwab@suse.de>
2872
78819ebb 2873 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
2874
2875 * fileio.c (Frename_file): Remove extra argument in call to
2876 Fmake_symbolic_link.
2877
e2c02c1a
KS
28782004-05-10 Kim F. Storm <storm@cua.dk>
2879
2880 * xdisp.c (calc_line_height_property): Use string position when
2881 object is a string.
2882
cfe9d13e
KH
28832004-05-10 Kenichi Handa <handa@m17n.org>
2884
a57e8159
KH
2885 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
2886 inhibit-modification-hooks to t temporarily before calling
2887 Ferase_buffer.
2888
2889 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
2890 inhibit-modification-hooks to t temporarily before calling
2891 Ferase_buffer.
2892
2893 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
2894 inhibit-modification-hooks to t temporarily before calling
2895 Ferase_buffer.
2896
cfe9d13e
KH
2897 * fns.c (count_combining): Delete it.
2898 (concat): Don't check combining bytes.
2899
ceb96489
JR
29002004-05-09 Jason Rumney <jasonr@gnu.org>
2901
2902 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
2903 (globals_of_w32fns): Set it.
2904
b6189c3b 29052004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
2906
2907 * data.c (Fquo): Simplify.
2908
28712a21
JB
29092004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
2910
2911 * data.c (Fquo): If any argument is float, do the computation in
2912 floating point.
2913
0f0af7a8
JB
29142004-05-08 Juanma Barranquero <lektu@terra.es>
2915
88214ef6
JB
2916 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
2917 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
2918 Fix spelling of Emacs on docstring.
2919 (Fset_process_coding_system, Fprocess_coding_system)
2920 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
2921 Make argument names match their use in docstring.
2922 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
2923 Fix docstring.
2924
0f0af7a8
JB
2925 * editfns.c (Finsert_buffer_substring): Make argument names match their
2926 use in docstring.
2927
2928 * syntax.c (Fmodify_syntax_entry): Fix docstring.
2929
2a316a84
ST
29302004-05-07 Steven Tamm <steventamm@mac.com>
2931
2932 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
2933 around call to ReceiveEvent to avoid certain crashes.
2934
29352004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 2936
2a316a84
ST
2937 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
2938 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
2939 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
2940 Save/restore the current graphics port and device handle when
2941 drawing into an offscreen graphics world.
2942
2943 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
2944 (gif_load): Likewise.
2945
ab80314b
JB
29462004-05-07 Juanma Barranquero <lektu@terra.es>
2947
2948 * window.c (Fset_window_buffer): Fix docstring.
2949
70646bb5
TTN
29502004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
2951
2952 * emacs.c (main) [VMS]: Fix var ref.
2953
b6189c3b 29542004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
2955
2956 * data.c (Fsetq_default): Fix docstring.
2957
279d3293
JR
29582004-05-06 Jason Rumney <jasonr@gnu.org>
2959
2960 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
2961 to avoid name clash.
2962
f72b5416
JD
29632004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2964
2965 * fileio.c (barf_or_query_if_file_exists): Use lstat.
2966 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 2967 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 2968
6ab66799
KS
29692004-05-04 Kim F. Storm <storm@cua.dk>
2970
2971 * xdisp.c (Qtotal): New var.
2972 (syms_of_xdisp): Intern and staticpro it.
2973 (calc_line_height_property): New arg total. Set it if
2974 line-spacing property has format (total . VALUE).
2975 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
2976 Handle total line-spacing property.
2977
ab2d724b
JD
29782004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2979
2980 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
2981 "under" scroll bar when size/position changes.
2982
238add5e
JR
29832004-05-03 Jason Rumney <jasonr@gnu.org>
2984
2985 * makefile.nt: Remove.
2986
1644f4e4
EZ
29872004-05-02 Eli Zaretskii <eliz@gnu.org>
2988
a267ab4d
SM
2989 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
2990 Avoid compiler warnings.
05fdbeb8 2991
1644f4e4
EZ
2992 * Makefile.in (region-cache.o): Depend on config.h.
2993
b6189c3b 29942004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
2995
2996 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
2997 with continuation lines, too.
2998
2b98b088
TTN
29992004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3000
3001 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3002
d9bf7950
SM
30032004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3004
3005 * xdisp.c (calc_line_height_property): YAILOM (yet another
3006 int/Lisp_Object mixup).
3007
affa509c
EZ
30082004-05-01 Eli Zaretskii <eliz@gnu.org>
3009
3010 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3011 undo bad effect of pack(4) in some versions of system headers.
3012
07c07cfe
JR
30132004-05-01 Jason Rumney <jasonr@gnu.org>
3014
3015 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3016
e71caa4e
KS
30172004-04-30 Kim F. Storm <storm@cua.dk>
3018
3019 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3020 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3021
3022 * dispextern.h (struct it): Remove member use_default_face.
3023 Add members override_ascent, override_descent, override_boff.
3024
3025 * xdisp.c (init_iterator): Handle line-spacing float value.
3026 Initialize override_ascent member.
3027 (append_space_for_newline): Reset override_ascent.
3028 Remove use_default_face.
3029 (calc_line_height_property): New function to calculate value of
3030 line-height and line-spacing properties. Look at overlays, too.
3031 Set override_ascent, override_descent, override_boff members when
3032 using another face than the current face. Float values are now
3033 relative to the frame default font, by default; accept a cons
3034 of ratio and face name to specify value relative to a specific face.
3035 (x_produce_glyphs): Use calc_line_height_property.
3036 Use override_ascent etc. when set to handle different face heights.
3037 A negative line-spacing property value is interpreted as a total
3038 line height, rather than inter-line spacing.
3039 (note_mouse_highlight): Allocate room for 40 overlays initially.
3040
0fddae66
SM
30412004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3042
3043 * data.c (Fsubr_name): New fun.
3044 (syms_of_data): Defsubr it.
3045
712d23dc
KS
30462004-04-29 Kim F. Storm <storm@cua.dk>
3047
3048 * xdisp.c (null_glyph_slice): New var.
3049 (append_glyph, append_composite_glyph, append_stretch_glyph):
3050 Use it to initialize glyph slice.
3051
033ad8c6
SM
30522004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3053
3054 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3055 (on_hot_spot_p): Make sure we always return a value.
3056 (Flookup_image_map): Remove unused var ix and iy.
3057 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3058
93397360
EZ
30592004-04-27 Eli Zaretskii <eliz@gnu.org>
3060
3061 * msdos.c (init_environment): If one of the TMP... environment
3062 variables is set to a drive letter without a trailing slash,
3063 append a slash.
3064
0c54865e
EZ
30652004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3066
3067 * editfns.c (lisp_time_argument): Provide externally.
3068
3069 * fileio.c (Fset_file_times): New function.
3070 (syms_of_fileio): Intern and staticpro it.
3071
d3b111bd
KS
30722004-04-27 Kim F. Storm <storm@cua.dk>
3073
07dc1231
KS
3074 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3075 header line strings.
3076
360fe9d2
KS
3077 * dispextern.h (struct it): New member use_default_face.
3078
d3b111bd
KS
3079 * xdisp.c (Qline_height): New variable.
3080 (syms_of_xdisp): Intern and staticpro it.
3081 (append_space_for_newline): Partially undo 2004-04-25 change;
3082 add default_face_p arg, and restore callers.
3083 Clear it->use_default_face after use.
3084 (x_produce_glyphs): Set default font for ascii char if
3085 it->use_default_font is set. Change line-spacing property to set
3086 just extra line spacing. Handle new line-height property.
3087
0448588b
AS
30882004-04-26 Andreas Schwab <schwab@suse.de>
3089
3090 * print.c (print_object): Print non-ascii characters in bool
3091 vector representation as octal escapes.
3092
3093 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3094 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3095 bool vectors.
3096 * lread.c (read1): Likewise.
3097 * alloc.c (Fmake_bool_vector): Likewise.
3098 * data.c (Faref, Faset): Likewise.
3099 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3100 (mapcar1): Likewise.
d3b111bd 3101
536d6baa
ST
31022004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3103
3104 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3105
ae11577a
MB
31062004-04-26 Miles Bader <miles@gnu.org>
3107
3108 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3109
e198ba87
JB
31102004-04-26 Juanma Barranquero <lektu@terra.es>
3111
3112 * buffer.c (Fpop_to_buffer): Fix docstring.
3113
f3d5f92d 31142004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3115
f3d5f92d
ST
3116 * lread.c (init_lread): Don't display missing lisp directory
3117 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3118 may be built without correct installation path.
f3d5f92d 3119
03e35edc
KS
31202004-04-25 Kim F. Storm <storm@cua.dk>
3121
9ff3aa31
KS
3122 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3123
3124 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3125
03e35edc
KS
3126 * xdisp.c (append_space_for_newline): Rename from append_space.
3127 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3128 (x_produce_glyphs): Handle line-spacing property on newline char.
3129 If value is t, adjust ascent and descent to fit current row height.
3130 If value is an integer or float, set extra_line_spacing to integer
3131 value, or to float value x current line height.
3132
f24814e0
KH
31332004-04-23 Kenichi Handa <handa@m17n.org>
3134
3135 * fontset.c (Finternal_char_font): If POSITION is nil, return
3136 font for displaying CH with the default face.
3137
d814862a
JB
31382004-04-23 Juanma Barranquero <lektu@terra.es>
3139
3140 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3141
063a45c5
SM
31422004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3143
3144 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3145 Don't make assumptions about the relative place of i and val.
3146 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3147
ae7ab2d3
KS
31482004-04-21 Kim F. Storm <storm@cua.dk>
3149
3150 * dispextern.h (struct glyph_slice): New struct.
3151 (struct glyph): New member slice.
3152 (GLYPH_SLICE_EQUAL_P): New macro.
3153 (GLYPH_EQUAL_P): Use it.
3154 (struct glyph_string): New member slice.
3155 (struct it_slice): New struct.
3156 (struct it): New member slice, add member to stack too.
3157 New member constrain_row_ascent_descent_p.
3158 (image_ascent): Add prototype.
3159
3160 * dispnew.c (buffer_posn_from_coords): Return full image width
3161 and height even for image slices (posn is relative to full image).
3162 (marginal_area_string): Adjust x0,y0 for image slice.
3163
3164 * image.c (image_ascent): Add slice arg; calculate ascent for
3165 image slice (or full image).
3166
3167 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3168 (syms_of_keyboard): Defsubr them.
3169
3170 * lisp.h (pos_visible_p): Fix prototype.
3171
c62aec78 3172 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3173 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3174 (x_draw_image_foreground, x_draw_image_relief)
3175 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3176 Draw sliced images.
3177
3178 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3179 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3180 (x_draw_image_foreground, x_draw_image_relief)
3181 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3182 Draw sliced images.
3183
3184 * w32term.h (image_ascent): Remove prototype.
3185
3186 * window.c (Fpos_visible_in_window_p): Return pixel position if
3187 PARTIALLY arg is non-nil. Simplify. Doc fix.
3188 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3189 to return/set vscroll in pixels.
3190
3191 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3192
3193 * xdisp.c (Qslice): New variable.
3194 (syms_of_xdisp): Intern and staticpro it.
3195 (pos_visible_p): Return pixel position in new x and y args.
3196 (init_iterator): Reset it->slice info.
3197 (handle_display_prop): Parse (slice ...) property.
3198 (push_it, pop_it): Save/restore slice info.
3199 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3200 force repositioning of tall row if window is vscrolled, as that
3201 would reset vscroll.
3202 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3203 increasing row height if row is non-empty.
3204 (fill_image_glyph_string): Copy slice info.
3205 (take_vertical_position_into_account): Simplify.
3206 (produce_image_glyph): Handle iterator slice info, setup glyph
3207 slice info. Do not force minimum line height.
3208 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3209 do not increase height (ascent/descent) of non-empty row when
3210 adding normal character glyph; instead reduce glyph ascent/descent
3211 appropriately; if row is higher than current glyph, adjust glyph
3212 descent/ascent to reposition glyph within the existing row.
3213 Likewise, when char is newline, only set ascent/descent if row is
3214 currently empty.
3215 (note_mouse_highlight): Handle hotspots with sliced image.
3216
3217 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3218 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3219 (x_draw_image_foreground, x_draw_image_relief)
3220 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3221 Draw sliced images.
3222
3223 * xterm.h (image_ascent): Remove prototype.
3224
d58f8753
SM
32252004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3226
3227 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3228
4ce2719d
JPW
32292004-04-20 John Paul Wallington <jpw@gnu.org>
3230
3231 * fns.c (Fassoc, Feql): Fix indentation.
3232
d58f8753 3233 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3234
95f8c3b9
JPW
32352004-04-19 John Paul Wallington <jpw@gnu.org>
3236
3237 * fns.c (Feql): New function.
d58f8753 3238 (syms_of_fns): Defsubr it.
95f8c3b9 3239
b7e85537
JR
32402004-04-18 Jason Rumney <jasonr@gnu.org>
3241
3242 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3243 after closing the clipboard.
3244
5a72efd4
LT
32452004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3246
3247 * buffer.c (Fbuffer_base_buffer): Doc fix.
3248
20dc8583
KS
32492004-04-17 Kim F. Storm <storm@cua.dk>
3250
60962ec4
KS
3251 * keymap.c (Fkey_description): Add optional PREFIX arg.
3252 Combine prefix with KEYS to make up the full key sequence to describe.
3253 Correlate meta_prefix_char and following (simple) key to describe
3254 as meta modifier. All callers changed.
3255 (describe_map): Rename arg `keys' to `prefix'. Remove local
3256 `elt_prefix' var. Use Fkey_description with prefix instead of
3257 elt_prefix combined with Fsingle_key_description.
3258 (describe_vector): Declare static. Replace arg `elt_prefix' with
3259 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3260 if !KEYMAP_P. Use Fkey_description with prefix instead of
3261 Fsingle_key_description.
3262
3263 * keymap.h (Fkey_description): Fix prototype.
3264 (describe_vector): Remove prototype.
3265
409368b9
KS
3266 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3267
20dc8583
KS
3268 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3269 (png_load): Fix calculation of transparent background color on X
3270 and W32 platforms.
3271
75c5501b
JB
32722004-04-16 Juanma Barranquero <lektu@terra.es>
3273
3274 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3275 not too large before computing how much to scroll.
3276
da879ae8
SM
32772004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3278
3279 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3280
d01ca4a8
LT
32812004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3282
3283 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3284 Add hyperlink to Elisp manual to the docstring.
3285
572943b3
SM
32862004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3287
3288 * callint.c (fix_command): Use XDCR.
3289
5e30a0fb
NR
32902004-04-14 Nick Roberts <nick@nick.uklinux.net>
3291
3292 * window.c (Fget_lru_window): Doc fix.
3293
a27ddfaf
KS
32942004-04-14 Kim F. Storm <storm@cua.dk>
3295
3296 * editfns.c (Fformat): Fix allocation size of precision array.
3297
3298 * dispnew.c (update_window): Only set changed_p if
3299 scrolling_window actually did scroll.
3300 (scrolling_window): Only return 1 if we actually did scroll.
3301
3302 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3303 height to glyph height when cursor row is not fully visible.
3304 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3305 failure in case row is higher than window. Callers changed.
3306 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3307 Try to scroll partially visible, higher-than-window cursor row.
3308 (redisplay_window): Always try to scroll partially visible,
3309 higher-than-window cursor row - both initially and again with
3310 centering_position = 0.
3311 Clear desired matrix before retrying with centering_position = 0.
3312
da879ae8
SM
33132004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3314
3315 * syntax.c (scan_lists): Simplify backward string scan.
3316 Fix off-by-one boundary check for string and comment fences.
3317
5fc16e8e
SM
33182004-04-13 Joe Buehler <jbuehler@hekimian.com>
3319
3320 * sheap.c, unexcw.c: New files.
3321
c9aac8e6
LT
33222004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3323
3324 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3325 base buffer has been killed. Correct the error message if the
3326 base buffer does not exist.
3327
1e88a355
SM
33282004-04-12 Joe Buehler <jbuehler@hekimian.com>
3329
3330 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3331 Cygwin itself. Add support for Xaw3d scrollbars.
3332
3333 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3334
3335 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3336
3337 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3338 before Cygwin unexec.
3339
3340 * Makefile.in: Link changes for Cygwin unexec() support.
3341
8dbff9a0
AS
33422004-04-12 Andreas Schwab <schwab@suse.de>
3343
3344 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3345
54dffe35
LT
33462004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3347
3348 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3349 IGNORE argument equals NAME. Doc fix.
3350
99a72bdf
MY
33512004-04-11 Masatake YAMATO <jet@gyve.org>
3352
1e88a355 3353 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3354 empty if they are backwards.
3355
40899d7b
SM
33562004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3357
3358 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3359
f8f853de
SM
33602004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3361
3362 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3363
c953fe1b
KS
33642004-04-06 Kim F. Storm <storm@cua.dk>
3365
661e85c1
KS
3366 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3367 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3368
3369 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3370 clearing highlight.
3371
3372 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3373
3374 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3375 clearing highlight.
3376
c953fe1b
KS
3377 * indent.c (vmotion): Do not reserve one column for continuation
3378 marks on window frames.
3379
c1994268
EZ
33802004-04-04 Eli Zaretskii <eliz@gnu.org>
3381
3382 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3383 from GCC.
3384
9f691b0d
SM
33852004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3386
3387 * .gdbinit-union: Remove.
3388
3389 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3390 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3391 ($nonvalbits): Remove.
3392 ($valmask): Set it by calling xreload to avoid redundancy.
3393
3394 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3395 (gdb_emacs_intbits): Remove.
3396
7a8560d7
JD
33972004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3398
9f691b0d 3399 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3400
3c8111fc
KH
34012004-03-30 Kenichi Handa <handa@m17n.org>
3402
3403 * editfns.c (Fformat): Fix initialization of the array info.
3404
48a0bce4
KS
34052004-03-30 Kim F. Storm <storm@cua.dk>
3406
3407 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3408 (syms_of_xterm): DEFVAR_BOOL it.
3409 (ignore_next_mouse_click_timeout): New var.
3410 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3411 Use it to filter mouse clicks following focus event.
3412
1cd0066c
KS
34132004-03-29 David Ponce <david@dponce.com>
3414
3415 * callint.c (Fcall_interactively): Fix last change.
3416
adb3b353
SM
34172004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3418
3419 * eval.c (Fcommandp): Simplify.
3420
3421 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3422 Extend to handle all kinds of functions.
3423
3424 * lisp.h (Finteractive_form): Declare.
3425
3426 * callint.c (Fcall_interactively): Use it.
3427
6fc4c9c9
KS
34282004-03-26 Kim F. Storm <storm@cua.dk>
3429
3430 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3431 to catch errors in calc_pixel_width_or_height during redisplay.
3432
abdb9b83
MY
34332004-03-26 Masatake YAMATO <jet@gyve.org>
3434
b17856dd 3435 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 3436
b17856dd 3437 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 3438
b17856dd 3439 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 3440
b17856dd 3441 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 3442
e8a84b6c
JD
34432004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3444
b17856dd 3445 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 3446
36a3fd05
RS
34472004-03-19 Richard M. Stallman <rms@gnu.org>
3448
3449 * s/sol2-6.h: Delete previous change.
3450
ab24c127
KS
34512004-03-19 Kim F. Storm <storm@cua.dk>
3452
3453 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3454 to_charpos corresponds to newline in right fringe. Use local
3455 BUFFER_POS_REACHED_P macro.
3456
992126de
JD
34572004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3458
3459 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3460 to compile on non-window system.
3461
45dbfc84
KS
34622004-03-19 Kim F. Storm <storm@cua.dk>
3463
3464 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3465
3466 * image.c (Qcenter): Move to xdisp.c.
3467
3468 * xdisp.c (Qcenter): Declare here.
adb3b353 3469 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
3470 (handle_single_display_prop): Allow space display property on all
3471 platforms.
3472 (display_mode_line): Set mode_line_p before displaying line.
3473 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3474 handling. Remove complex cases for fringes and scroll-bars.
3475 Add left, right, and center alignment positions. Add text (area)
3476 width/height. Return width or height for image specs.
3477 (produce_stretch_glyph): Improve handling of :align-to. Is now
3478 relative to left of text area by default, but other base offsets
3479 can be specified -- also for text lines.
3480
3481 * term.c (produce_glyphs): Handle IT_STRETCH.
3482 (produce_stretch_glyph): New function to handle space width and
3483 align-to display properties on non-window systems.
3484
37264101
SM
34852004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3486
3487 * fileio.c (Fread_file_name): Set completion-ignore-case for
3488 case-insensitive systems.
3489
73bc43da
MY
34902004-03-14 Masatake YAMATO <jet@gyve.org>
3491
3492 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3493 when keymap and cursor are setup.
3494
9062aa89
ST
34952004-03-14 Steven Tamm <steventamm@mac.com>
3496
b17856dd 3497 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 3498
e4b1b5ab
KS
34992004-03-14 Kim F. Storm <storm@cua.dk>
3500
3501 * dispextern.h (x_find_image_file): Add prototype.
3502
3503 * image.c (x_find_image_file): Make extern.
3504
3505 * xfns.c (x_find_image_file): Remove prototype.
3506
a6eeaa81 35072004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 3508
37264101 3509 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 3510
37264101 3511 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 3512
e69cfac2
RS
35132004-03-12 Richard M. Stallman <rms@gnu.org>
3514
3515 * fns.c (internal_equal): New arg PROPS controls comparing
3516 text properties. All callers changed.
3517 (Fequal_including_properties): New function.
3518 (syms_of_fns): defsubr it.
3519
45034953
KS
35202004-03-12 Kim F. Storm <storm@cua.dk>
3521
3522 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 3523
45034953
KS
3524 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3525 (image_background, image_background_transparent): Fix prototypes.
3526
37264101 3527 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
3528
3529 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3530 (x_query_font, x_find_ccl_program, x_set_window_size)
3531 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3532 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3533 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3534
3535 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3536 (x_query_font, x_find_ccl_program, x_set_window_size)
3537 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3538 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3539 (mac_draw_line_to_pixmap): Add prototypes.
3540
35412004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3542
3543 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3544
a12d3d87
KS
35452004-03-11 Kim F. Storm <storm@cua.dk>
3546
d3ab1cf1
KS
3547 * dispextern.h: Move image related prototypes from xfns.c section
3548 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
3549 HAVE_X_WINDOWS.
37264101 3550
37de9f51 3551 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 3552 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
3553 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
3554 (GTK_OBJ) [USE_GTK]: New declaration.
3555 (obj): Add $(GTK_OBJ) to list.
3556
5243c06a 35572004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 3558
5243c06a
ST
3559 * image.c [MAC_OSX]: Include sys/stat.h
3560
3561 * macfns.c (syms_of_macfns): Remove definitions of things now
3562 defined in image.c
3563
c0f97789
KS
35642004-03-11 Kim F. Storm <storm@cua.dk>
3565
3566 The following changes consolidates the identical/similar image
3567 support code previously found in xfns.c, w32fns.c, and macfns.c
3568 into a new file image.c.
3569
3570 * makefile.w32-in (OBJ1): Add image.o.
3571 ($(BLD)/image.$(O)): Add dependencies.
3572
3573 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
3574 (image.o): Add dependencies.
37264101 3575
c0f97789
KS
3576 * image.c: New file with consolidated image support code.
3577 (COLOR_TABLE_SUPPORT): New define to control whether
3578 color table support is available (X only).
3579 (Bitmap_Record): Common name for x_bitmap_record,
3580 w32_bitmap_record, and mac_bitmap_record.
3581 (XImagePtr): Common name for pointer to XImage or equivalent.
3582 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
3583 to XImagePtr on X+MAC, and to HDC on W32.
3584 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
3585 (NO_PIXMAP): Common name for "None" or equivalent.
3586 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
3587 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
3588 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
3589 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
3590 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
3591 (XDrawLine): Define on MAC for code sharing.
3592 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
3593 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
3594 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3595 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3596 (x_reference_bitmap, x_create_bitmap_from_data)
3597 (x_create_bitmap_from_file, x_destroy_bitmap)
3598 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3599 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3600 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3601 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3602 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3603 (define_image_type, lookup_image_type, valid_image_p)
3604 (image_error, enum image_value_type, struct image_keyword)
3605 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3606 (make_image, free_image, prepare_image_for_display, image_ascent)
3607 (four_corners_best, image_background, image_background_transparent)
3608 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3609 (make_image_cache, free_image_cache, clear_image_cache)
3610 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3611 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3612 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3613 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3614 (init_image_func_pointer, image_load_quartz2d)
3615 (struct ct_color, init_color_table, free_color_table)
3616 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3617 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3618 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3619 (x_disable_image, x_build_heuristic_mask)
3620 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3621 (TIFF support, GIF support, Ghostscript support): Consolidate image
3622 code from xfns.c, w32fns.c, and macfns.c.
3623 (syms_of_image): Consolidate image related symbol setup here.
3624 (init_image): Consolidate image related initializations here.
37264101 3625
c0f97789
KS
3626 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
3627 and init_image. Remove call to init_xfns.
3628
37264101
SM
3629 * macterm.h (struct mac_bitmap_record): Add file member.
3630 Not currently used, but simplifies code sharing.
c0f97789
KS
3631
3632 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3633 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3634 (x_reference_bitmap, x_create_bitmap_from_data)
3635 (x_create_bitmap_from_file, x_destroy_bitmap)
3636 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3637 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3638 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3639 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3640 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3641 (define_image_type, lookup_image_type, valid_image_p)
3642 (image_error, enum image_value_type, struct image_keyword)
3643 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3644 (make_image, free_image, prepare_image_for_display, image_ascent)
3645 (four_corners_best, image_background, image_background_transparent)
3646 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3647 (make_image_cache, free_image_cache, clear_image_cache)
3648 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3649 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3650 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3651 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3652 (init_image_func_pointer, image_load_quartz2d)
3653 (struct ct_color, init_color_table, free_color_table)
3654 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3655 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3656 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3657 (x_disable_image, x_build_heuristic_mask)
3658 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3659 (TIFF support, GIF support, Ghostscript support): Merge with image
3660 code from xfns.c and macfns.c into image.c.
3661 (syms_of_xfns): Move image related symbols to image.c.
3662 (init_external_image_libraries, init_xfns): Remove; initialization
3663 moved to init_image in image.c.
3664
3665 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3666 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3667 (x_reference_bitmap, x_create_bitmap_from_data)
3668 (x_create_bitmap_from_file, x_destroy_bitmap)
3669 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3670 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3671 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3672 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3673 (define_image_type, lookup_image_type, valid_image_p)
3674 (image_error, enum image_value_type, struct image_keyword)
3675 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3676 (make_image, free_image, prepare_image_for_display, image_ascent)
3677 (four_corners_best, image_background, image_background_transparent)
3678 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3679 (make_image_cache, free_image_cache, clear_image_cache)
3680 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3681 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3682 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3683 (struct ct_color, init_color_table, free_color_table)
3684 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3685 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3686 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3687 (x_disable_image, x_build_heuristic_mask)
3688 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3689 (TIFF support, GIF support, Ghostscript support): Merge with image
3690 code from xfns.c and macfns.c into image.c.
3691 (syms_of_xfns): Move image related symbols to image.c.
3692 (init_external_image_libraries, init_xfns): Remove; initialization
3693 moved to init_image in image.c.
3694
3695 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3696 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3697 (x_reference_bitmap, x_create_bitmap_from_data)
3698 (x_create_bitmap_from_file, x_destroy_bitmap)
3699 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3700 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3701 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3702 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3703 (define_image_type, lookup_image_type, valid_image_p)
3704 (image_error, enum image_value_type, struct image_keyword)
3705 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3706 (make_image, free_image, prepare_image_for_display, image_ascent)
3707 (four_corners_best, image_background, image_background_transparent)
3708 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3709 (make_image_cache, free_image_cache, clear_image_cache)
3710 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3711 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3712 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3713 (struct ct_color, init_color_table, free_color_table)
3714 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3715 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3716 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3717 (x_disable_image, x_build_heuristic_mask)
3718 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3719 (TIFF support, GIF support, Ghostscript support): Merge with
3720 w32fns.c and macfns.c image code into image.c.
3721 (syms_of_xfns): Move image related symbols to image.c.
3722 (init_xfns): Remove; initialization moved to init_image in image.c.
3723
3724 * lisp.h (syms_of_image, init_image): Add protoypes.
3725 (init_xfns): Remove prototype.
3726
3727 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3728 (x_reference_bitmap, x_create_bitmap_from_data)
3729 (x_create_bitmap_from_file, x_destroy_bitmap)
3730 (x_create_bitmap_mask): Move prototypes from dispextern.h.
3731 (gamma_correct) [MAC_OS]: Add prototype.
3732
3733 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3734 (x_reference_bitmap, x_create_bitmap_from_data)
3735 (x_create_bitmap_from_file, x_destroy_bitmap)
3736 (x_create_bitmap_mask): Move prototypes to dispextern.h.
3737
6eced09c
KH
37382004-03-09 Kenichi Handa <handa@etlken2>
3739
3740 * coding.c (decode_coding_emacs_mule): Handle insufficent source
3741 correctly.
3742
9a7e95f3
RS
37432004-03-04 Richard M. Stallman <rms@gnu.org>
3744
04a6e76b
RS
3745 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
3746
9a7e95f3
RS
3747 * window.c (Fdisplay_buffer): Doc fix.
3748
3749 * buffer.c (Fpop_to_buffer): Doc fix.
3750
6c2488df
KS
37512004-03-03 Kim F. Storm <storm@cua.dk>
3752
3753 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
3754
d8d95bc7
SM
37552004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
3756
3757 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
3758
357589bf
RS
37592004-03-02 Richard M. Stallman <rms@gnu.org>
3760
3761 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
3762
409949b5
KH
37632004-03-02 Kenichi Handa <handa@m17n.org>
3764
3765 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
3766
d24bc50f
KS
37672004-03-02 Kim F. Storm <storm@cua.dk>
3768
3769 * window.h (struct window): New member overlay_arrow_bitmap.
3770
3771 * window.c (make_window): Initialize overlay_arrow_bitmap.
3772
3773 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
3774 implement and integrate multiple overlay arrows with redisplay.
3775 (syms_of_xdisp): DEFVAR_LISP and initialize it.
3776 (last_arrow_position, last_arrow_string): Replace by properties.
3777 (Qlast_arrow_position, Qlast_arrow_string)
3778 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
3779 (syms_of_xdisp): Intern and staticpro them.
3780 (overlay_arrow_string_or_property, update_overlay_arrows)
3781 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
3782 (overlay_arrow_at_row): New functions for multiple overlay arrows.
3783 (redisplay_internal): Use them instead of directly accessing
3784 Voverlay_arrow_position etc. for multiple overlay arrows.
3785 (mark_window_display_accurate): Use update_overlay_arrows.
3786 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
3787 (try_window_id): Use overlay_arrows_changed_p.
3788 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
3789 (display_line): Use overlay_arrow_at_row to check multiple
3790 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 3791 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
3792 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
3793 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
3794
3795 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
3796 (update_window_fringes): Remove unused code.
3797
c1464661
JR
37982004-03-01 Jason Rumney <jasonr@gnu.org>
3799
3800 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
3801
a64387ee
JB
38022004-03-01 Juanma Barranquero <lektu@terra.es>
3803
3804 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
3805
3806 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
3807
334faa08
JD
38082004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3809
3810 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
3811 how many colors can be displayed.
3812
bb62616f
KH
38132004-03-01 Kenichi Handa <handa@m17n.org>
3814
3815 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
3816 correctly.
3817
0fd16104
KS
38182004-02-28 Kim F. Storm <storm@cua.dk>
3819
3820 * dispnew.c (update_window): Update header line also if there are
3821 no other changes in window (move code after set_cursor label).
3822
3823 * lisp.h (mark_window_display_accurate): Remove prototype.
3824
3825 * window.c (window_loop, Fforce_window_update): Force mode line
3826 updates by setting prevent_redisplay_optimizations_p and
3827 update_mode_lines.
3828
b59dd9c8
JD
38292004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3830
d8d95bc7 3831 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
3832
3833 * xterm.c (x_calc_absolute_position): Call x_real_positions
3834 to get WM window sizes and use those to calculate position.
d8d95bc7 3835 (x_set_offset): Remove code commented out.
b59dd9c8 3836
a874691c
MB
38372004-02-28 Miles Bader <miles@gnu.org>
3838
3839 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
3840
3e0c6482
KS
38412004-02-28 Kim F. Storm <storm@cua.dk>
3842
3843 * keyboard.c (kbd_buffer_store_event_hold): New function to store
3844 an event into kbd fifo, but with special handling of quit event;
3845 a quit event is saved for later, and further events are discarded
3846 until the saved quit event has been processed.
3847 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
3848 (gen_help_event): Store help event in kbd fifo.
3849 (NREAD_INPUT_EVENTS): Remove.
3850 (read_avail_input): Adapt to new read_socket_hook interface.
3851 Remove allocation and initialization of local input_event buffer,
3852 as read_socket_hook stores events directly in fifo. Allocate and
3853 initialize local hold_quit event to handle postponed quit event
3854 (and store it if set by kbd_buffer_store_event_hold).
3855
3856 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
3857 (gen_help_event): Fix prototype.
3858
a64387ee 3859 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 3860 numcharsp args. Add hold_quit arg.
f63fd14e 3861 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3862 directly in fifo using kbd_buffer_store_event_hold.
3863
3864 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
3865 (read_input_waiting): Adapt to new read_socket_hook interface.
3866 Remove allocation and initialization of local input_event buffer,
3867 as read_socket_hook stores events directly in fifo. Allocate and
3868 initialize local hold_quit event to handle postponed quit event
3869 (and store it if set by kbd_buffer_store_event_hold).
3870
a64387ee 3871 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
3872
3873 * termhooks.h (read_socket_hook): Fix prototype.
3874
3875 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
3876 numcharsp args. Add hold_quit arg.
f63fd14e 3877 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3878 directly in fifo using kbd_buffer_store_event_hold.
3879
3880 * w32inevt.h (w32_console_mouse_position): Fix prototype.
3881
3882 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
3883 Add hold_quit arg. Rework to use just one, local, inev
3884 input_event. Store inev directly in fifo using
3e0c6482
KS
3885 kbd_buffer_store_event_hold. Update count in one place.
3886 Postpone call to gen_help_event until inev is stored; use new
3887 local do_help for this.
3888 Remove local emacs_event in handing of ButtonPress event; just use
3889 inev instead (so no reason to copy it later).
3890
3891 * xsmfns.c (x_session_check_input): Remove numchars arg.
3892
d8d95bc7
SM
3893 * xterm.c (x_focus_changed, x_detect_focus_change):
3894 Remove numchars arg. Always store event into bufp arg.
3895 Return nothing. Callers changed accordingly.
3e0c6482
KS
3896 (glyph_rect): Simplify.
3897 (STORE_KEYSYM_FOR_DEBUG): New macro.
3898 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
3899 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
3900 (current_hold_quit) [USE_GTK]: Add.
3901 (event_handler_gdk): Adapt to new handle_one_xevent.
3902 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
3903 Add hold_quit arg. Rework to use just one, local, inev
3904 input_event. Store inev directly in fifo using
3e0c6482
KS
3905 kbd_buffer_store_event_hold. Update count in one place.
3906 Postpone call to gen_help_event until inev is stored; use new
3907 local do_help for this.
3908 Simplify handling of keysyms (consolidate common code). Fix bug
3909 where count was updated with nchars instead of nbytes.
3910 Remove local emacs_event in handing of ButtonPress event; just use
3911 inev instead (so no reason to copy it later).
3912 Remove `out' label. Rename label `ret' to `done'; add various
3913 `goto done' to clarify code flow in deeply nested blocks.
3914 (x_dispatch_event): Simplify as handle_one_xevent now calls
3915 kbd_buffer_store_event itself.
f63fd14e 3916 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
3917 arg. Call handle_one_xevent with new arglist. Store event from
3918 x_session_check_input in fifo.
3919 [USE_GTK]: Setup current_hold_quit.
3920 Decrement handling_signal before unblocking input.
3921 (x_initialize) [USE_GTK]: Initialize current_count.
3922
3923 * xterm.h (x_session_check_input): Fix prototype.
3924
e3564461 39252004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 3926
d8d95bc7 3927 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 3928
e3564461
ST
3929 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
3930 macgui.h).
a64387ee 3931
e3564461 3932 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 3933
e3564461
ST
3934 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
3935 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
3936 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
3937 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
3938 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
3939 (Bitmap): Remove typedef.
3940 (Pixmap): Change int to GWorldPtr.
3941
d8d95bc7 3942 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 3943
d8d95bc7
SM
3944 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
3945 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
3946 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
3947 long representation.
3948 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
3949 colors used for masks.
3950 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 3951
e3564461
ST
3952 * macfns.c: Include sys/types.h and sys/stat.h.
3953 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
3954 Include QuickTime/QuickTime.h.
3955 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3956 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
3957 functions defined in macterm.c.
3958 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
3959 (ZPixmap): New #define for compatibility with xfns.c.
3960 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3961 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
3962 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
3963 New functions.
e3564461 3964 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
3965 (x_destroy_x_image, unwind_create_frame, x_disable_image)
3966 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
3967 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
3968 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
3969 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
3970 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
3971 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
3972 long mixup.
3973 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
3974 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
3975 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
3976 (x_set_cursor_type, Fxw_color_values, valid_image_p)
3977 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
3978 (x_alloc_image_color, clear_image_cache, lookup_image)
3979 (x_find_image_file, xbm_read_bitmap_file_data)
3980 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
3981 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
3982 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
3983 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
3984 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 3985 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
3986 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
3987 #if 0.
3988 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
3989 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
3990 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
3991 New functions (from xfns.c).
e3564461
ST
3992 (Fx_create_frame): Record unwind_create_frame.
3993 (Fxw_display_color_p): Use dpyinfo->color_p.
3994 (Fx_display_grayscale_p, Fx_display_planes): Don't use
3995 dpyinfo->n_cbits.
3996 (Fx_display_color_cells): Use dpyinfo->n_planes;
3997 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
3998 (Qheuristic, cross_disabled_images, emboss_matrix)
3999 (laplace_matrix): New variables (from xfns.c).
4000 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4001 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4002 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4003 (image_background_transparent): New function (from xfns.c).
4004 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4005 (image_load_quicktime): Add declaration.
4006 [MAC_OSX] (image_load_quartz2d): Likewise.
4007 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4008 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4009 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4010 (xbm_load_image_from_file, x_laplace_read_row)
4011 (x_laplace_write_row, pbm_read_file): Remove functions.
4012 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4013 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4014 (colors_in_color_table): Sync with xfns.c (although not used).
4015 (lookup_rgb_color): Don't lookup color table. Just do gamma
4016 correction.
4017 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4018 (x_disable_image): New function (from xfns.c).
4019 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4020 (x_build_heuristic_mask): Sync with xfns.c.
4021 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4022 (HAVE_PBM): Remove #ifdef.
4023 (pbm_load): Sync with xfns.c. Set img->width and img->height
4024 before IMAGE_BACKGROUND.
d8d95bc7 4025 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4026 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4027 Don't enclose with #if HAVE_PNG.
4028 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4029 symbol _CGImageCreateWithPNGDataProvider is defined.
4030 Otherwise use image_load_quicktime.
e3564461 4031 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4032 [HAVE_PNG] (png_load): Sync with xfns.c.
4033 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4034 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4035 HAVE_JPEG.
4036 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4037 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4038 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4039 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4040 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4041 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4042 HAVE_TIFF.
4043 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4044 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4045 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4046 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4047 New functions (from xfns.c).
e3564461 4048 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4049 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4050 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4051 Don't enclose with #if HAVE_GIF.
4052 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4053 animated gif. Otherwise use image_load_quicktime.
4054 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4055 gif_DrawText to avoid conflict with QuickdrawText.h.
4056 [HAVE_GIF] (gif_load): Sync with xfns.c.
4057 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4058 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4059 Ghostscript is not supported yet).
4060 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4061 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4062 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4063 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4064 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4065 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4066 HAVE_PNG. Call EnterMovies to support animated gifs.
4067 Call init_image_func_pointer to bind a symbol
e3564461 4068 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4069
d8d95bc7 4070 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4071 (x_draw_bar_cursor): Sync declaration with xterm.c.
4072 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4073 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4074 graphics).
4075 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4076 (mac_draw_line_to_pixmap, XCreatePixmap)
4077 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4078 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4079 New functions.
4080 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4081 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4082 Cast bits to char *.
e3564461
ST
4083 (reflect_byte): New function (from w32fns.c).
4084 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4085 due to byte alignment.
d8d95bc7
SM
4086 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4087 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4088 (XSetForeground): Remove static (now used in macfns.c).
4089 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4090 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4091 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4092 (x_draw_glyph_string_box, x_draw_image_foreground)
4093 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4094 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4095 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4096 Sync with xterm.c.
4097 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4098 than the xterm.c version when a strictly horizontal or vertical
4099 line is drawn.
4100 (XTset_terminal_window): Add static.
4101 (x_make_frame_visible): Add UNBLOCK_INPUT.
4102 (x_free_frame_resources): New funcion (from xterm.c).
4103 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4104 occurs in tool bar area.
d8d95bc7
SM
4105 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4106 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4107 Initialize image cache.
4108 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4109 Enclose unused functions with #if 0.
4110 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4111 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4112 from a mac font name to an XLFD font name according to its script code.
e3564461 4113 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4114 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4115 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4116 whose name starts with `.'.
4117 (init_font_name_table): Use decode_mac_font_name. Add both
4118 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4119 of a font is smJapanese.
4120 (mac_do_list_fonts): New function to list fonts that match a given
4121 pattern.
4122 (x_list_fonts, XLoadQueryFont): Use it.
4123 (XLoadQueryFont): Set rbearing field for each variable width
4124 character to avoid needless redraw.
4125 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4126
446f5f3d
KS
41272004-02-26 Kim F. Storm <storm@cua.dk>
4128
af617d0f
KS
4129 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4130 as read_socket_hook handler on X aborts if buffer is too small
4131 and W32 handler doesn't always check buffer limit.
4132
446f5f3d
KS
4133 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4134 right-fringe similar to a display margin image. Specifically,
4135 the characters having the fringe prop are no longer shown, and
4136 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4137 do this. Set fringe bitmap face_id in it->face_id.
4138 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4139 still realize it->face (i.e. the fringe bitmap face).
4140
7d8a0b55
MB
41412004-02-25 Miles Bader <miles@gnu.org>
4142
4143 * xdisp.c (check_it): Check string/string_pos consistency.
4144 (init_iterator): Initialize string-related fields properly.
4145
41462004-02-11 Miles Bader <miles@gnu.org>
4147
4148 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4149
41502004-02-10 Miles Bader <miles@gnu.org>
4151
4152 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4153 BLOCK_INPUT can be nested, so it doesn't make much sense.
4154
a64387ee 41552004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4156
4157 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4158 (xbm_read_bitmap_data): Use unsigned char for image data.
4159
92f5fba2
LT
41602004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4161
4162 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4163
8565fb3d
JR
41642004-02-22 Jason Rumney <jasonr@gnu.org>
4165
4166 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4167 correctly over other bitmaps.
4168
a6eeaa81 41692004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4170
4171 * emacs.c (USAGE1): Split into two halves.
4172 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4173 (USAGE3): Rename from USAGE2.
4174 (USAGE4): Rename from USAGE3.
f8125c39 4175
4effffca
EZ
41762004-02-21 Juri Linkov <juri@jurta.org>
4177
4178 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4179 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4180 --file. Fix -f, -l. Sort options. Untabify.
4181 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4182
923c1e6f
LT
41832004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4184
4185 * category.c (Fdefine_category, Fcategory_docstring)
4186 (Fget_unused_category, Fset_category_table)
4187 (Fcategory_set_mnemonics): Doc fixes.
4188
b0e225fd
KS
41892004-02-20 Kim F. Storm <storm@cua.dk>
4190
4191 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4192 The following changes are relative to the 2004-01-21 revision.
4193 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4194 in one call to read_socket_hook. Value is 8.
4195 (read_avail_input): Separate and rework handling of read_socket_hook
4196 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4197 in read_socket_hook case, and repeat if full buffer is read.
4198 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4199 In non-read_socket_hook case, just use a single input_event, and
4200 call kbd_buffer_store_event on the fly for each character.
4201
b15aa9f9
SM
42022004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4203
4204 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4205 Remove unused `gu' alternative.
4206
83c9aa95
AS
42072004-02-19 Andreas Schwab <schwab@suse.de>
4208
4209 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4210 warning.
4211
cc808173
KS
42122004-02-18 Kim F. Storm <storm@cua.dk>
4213
4214 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4215 Fix last change.
4216
ab90a54d
KS
42172004-02-17 Kim F. Storm <storm@cua.dk>
4218
b26f249f
KS
4219 * xdisp.c (fast_find_position): Fix return value of new version;
4220 it was inverted compared to the 21.1 version.
4221 (get_window_cursor_type): Don't look at glyph if NULL.
4222 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4223
ab90a54d
KS
4224 * keyboard.c: Rework previous change; it didn't consider that the
4225 buf array was allocated on the stack.
4226 (prev_read): Remove variable.
4227 (read_avail_input_buf): New static event buffer array.
b9568dfc 4228 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4229 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4230 Use in_read_avail_input to handle re-entrance; when re-entered,
4231 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4232 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4233 is always cleared on entry. To ensure that, we clear (just) the
4234 entries that were used before we return.
4235 (init_keyboard): Initialize read_avail_input_buf here.
4236
b6189c3b 42372004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4238
4239 * cmds.c (Fend_of_line): Doc fix.
4240
7b5368c1
EZ
42412004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4242
4243 * keyboard.c (prev_read): New static variable.
4244 (read_avail_input): Use it to zero out only those slots in buf[]
4245 that were used last time we were called.
4246
a6eeaa81 42472004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4248
4249 * Makefile.in (obj): Move fringe.o from here...
4250 (XOBJ, MAC_OBJ): ...to here.
4251
159c348e
SE
42522004-02-16 Stephen Eglen <stephen@gnu.org>
4253
4254 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4255
d2f14999
SM
42562004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4257
b15aa9f9
SM
4258 * data.c (Fbyteorder):
4259 * fringe.c (Fdefine_fringe_bitmap):
4260 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4261 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4262
8d50508a
JR
42632004-02-16 Jason Rumney <jasonr@gnu.org>
4264
4265 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4266
dd4497dc
ST
42672004-02-15 Steven Tamm <steventamm@mac.com>
4268
4269 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4270 controlling emulation of a three button mouse with option and
4271 command keys.
4272 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4273 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4274
c9159cb3
KS
42752004-02-15 Kim F. Storm <storm@cua.dk>
4276
2cc52658
KS
4277 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4278
c9159cb3
KS
4279 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4280 Perform byte-swapping.
4281
12fde2dc
KS
42822004-02-14 Kim F. Storm <storm@cua.dk>
4283
4284 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4285 bits from char to short to facilitate wider bitmaps.
4286 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4287 member.
4288
4289 * fringe.c (struct fringe_bitmap): Change member bits from char to
4290 short to facilitate 16 bits wide bitmaps. Modify all standard
4291 bitmaps accordingly.
4292 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4293 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4294 (draw_fringe_bitmap): Ditto.
4295 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4296 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4297 handle up to 16 bits wide bitmaps.
4298 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4299 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4300
4301 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4302 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4303 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4304
4305 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4306 so it is no longer necessary to expand them here.
4307
4308 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4309
9d7271e8
KS
43102004-02-12 Kim F. Storm <storm@cua.dk>
4311
4312 * window.c (Fwindow_fringes): Doc fix.
4313
706c1e4f
JD
43142004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4315
4316 * xselect.c (x_get_foreign_selection): Add new optional parameter
4317 time_stamp.
4318 (Fx_get_selection_internal): Ditto, pass time_stamp to
4319 x_get_foreign_selection.
4320
4321 * data.c (Fbyteorder): New function.
4322
c2d12b5d
JD
43232004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4324
4325 * atimer.c: Move include stdio.h to same place as in other files.
4326
4327 * region-cache.c: Ditto.
4328
4329 * sysdep.c: Ditto.
4330
4331 * xfaces.c: Ditto.
4332
4c1947b9
SS
43332004-02-09 Sam Steingold <sds@gnu.org>
4334
89458937 4335 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4336
82722af3
KS
43372004-02-09 Kim F. Storm <storm@cua.dk>
4338
4339 * fringe.c: New file. Move original fringe related declarations
4340 and code from dispextern.h and xdisp.c here.
4341 Rework code to support user defined fringe bitmaps, redefining
4342 standard bitmaps, ability to overlay user defined bitmap with
4343 overlay arrow bitmap, and add faces to bitmaps.
4344 (Voverflow_newline_into_fringe): Declare here.
4345 (enum fringe_bitmap_align): New enum.
4346 (..._bits): All bitmaps are now defined without bitswapping; that
4347 is now done in init_fringe_once (if necessary).
4348 (standard_bitmaps): New array with specifications for the
4349 standard fringe bitmaps.
4350 (fringe_faces): New array.
4351 (valid_fringe_bitmap_id_p): New function.
4352 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4353 (draw_fringe_bitmap): New function which draws fringe bitmap,
4354 possibly overlaying bitmap with cursor in right fringe or the
4355 overlay arrow in the left fringe.
4356 (update_window_fringes): Do not handle overlay arrow here.
4357 Compare and copy fringe bitmap faces.
4358 (init_fringe_bitmap): New function.
4359 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4360 define and destroy user defined fringe bitmaps.
4361 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4362 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4363 (syms_of_fringe): New function. Defsubr new DEFUNs.
4364 DEFVAR_LISP Voverflow_newline_into_fringe.
4365 (init_fringe_once, init_fringe): New functions.
4366 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4367
82722af3
KS
4368 * Makefile.in (obj): Add fringe.o.
4369 (fringe.o): New dependencies.
4370
4371 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4372 bits allocated to hold a fringe number. Increase number of bits
4373 from 4 to 8 to allow user defined fringe bitmaps.
4374 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4375 left_user_fringe_face_id, right_user_fringe_bitmap,
4376 right_user_fringe_face_id.
4377 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4378 Move to new file fringe.c.
4379 (MAX_FRINGE_BITMAPS): Define here.
4380 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4381 and overlay_p. Change member which to int.
4382 (struct redisplay_interface): New members define_fringe_bitmap
4383 and destroy_fringe_bitmap.
4384 (valid_fringe_bitmap_id_p): Add prototype.
4385 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4386
4387 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4388 arrows.
4389 (update_frame): Do flush_display if force_flush_display_p to
4390 ensure display (specifically fringes) are updated in a timely
4391 manner when resizing the frame by dragging the mouse.
4392 (update_window_line): Update row if overlay arrow changed.
4393 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4394 or overlay arrow changed.
4395
4396 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4397 syms_of_fringe, and init_fringe.
4398
4399 * frame.h (struct frame): New member force_flush_display_p.
4400
4401 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4402 Add prototypes.
4403
a3993cc8 4404 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4405 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4406 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4407 Use cursor color for displaying cursor in fringe.
82722af3
KS
4408 (x_redisplay_interface): Add null handlers for
4409 define_fringe_bitmap and destroy_fringe_bitmap functions.
4410
4411 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4412 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4413 for displaying cursor in fringe.
4414 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4415 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4416 (w32_redisplay_interface): Add them to redisplay_interface.
4417 (w32_term_init): Call w32_init_fringe instead of explicitly
4418 defining fringe bitmaps in fringe_bmp array.
4419 (x_delete_display): Call w32_reset_fringes instead of explicitly
4420 destroying fringe bitmaps in fringe_bmp array.
4421
4422 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4423 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4424 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4425 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4426 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4427 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4428 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4429 Move fringe handling vars and code to new file fringe.c.
4430 (handle_display_prop): Handle left-fringe and right-fringe
4431 display properties; store user fringe bitmaps in iterator.
4432 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4433 (clear_garbaged_frames): Set force_flush_display_p if resized.
4434 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4435 (display_line): Handle cursor in fringe at eob.
4436 (display_line): Set row user fringe bitmaps from iterator.
4437
4438 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4439 Use cursor color for displaying cursor in fringe.
4440 (x_redisplay_interface): Add null handlers for
4441 define_fringe_bitmap and destroy_fringe_bitmap functions.
4442
030400eb
JD
44432004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4444
4445 * macfns.c (Fx_change_window_property): Make doc string and
4446 parameters same as for X version.
4447
4448 * w32fns.c (Fx_change_window_property): Ditto.
4449
3af55251
KS
44502004-02-07 Kim F. Storm <storm@cua.dk>
4451
ec110e9e
KS
4452 * xdisp.c (hscroll_window_tree): Position cursor near to right
4453 margin in hscrolled window when jumping to end of line (rather
4454 than centering cursor).
4455
3af55251
KS
4456 * process.c (wait_reading_process_input): Don't do adaptive read
4457 buffering if waiting for a specific process.
4458
b0c138ce
LT
44592004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4460
4461 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4462 (Fread_minibuffer, Feval_minibuffer)
4463 (Fread_string, Fread_no_blanks_input)
4464 (Fcompleting_read): Doc fixes.
4465 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4466 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4467 (read_minibuf): Fix initial comment.
4468 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 4469 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
4470 checking completion-regexp-list.
4471 (Fdisplay_completion_list): Make it handle arguments that are
4472 symbols. Doc fix.
4473
9676f5ad 44742004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 4475
9676f5ad 4476 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 4477
9676f5ad
JD
4478 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4479 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 4480 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 4481 format. Remove unused variable cons.
5b698285
JD
4482
4483 * xselect.c: Include stdio,h.
4484
fc1d15f6
KH
44852004-02-05 Kenichi Handa <handa@m17n.org>
4486
ebaff4af
KH
4487 * fns.c (Fset_char_table_range): Fix previous change.
4488
fc1d15f6
KH
4489 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4490
9676f5ad
JD
44912004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4492
4493 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4494
da75761f
SM
44952004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4496
4497 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4498 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4499
13c5d120
KH
45002004-02-04 Kenichi Handa <handa@m17n.org>
4501
4502 * fns.c (Fset_char_table_range): Handle charsets ascii,
4503 eight-bit-control, and eight-bit-graphic correctly.
4504
2883d842
JR
45052004-02-03 Jason Rumney <jasonr@gnu.org>
4506
4507 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4508
4509 * w32fns.c (x_to_w32_font): Likewise.
4510
69eff41f
JD
45112004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4512
4513 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4514 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4515
4516 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4517 ClientMessages.
4518
4519 * xselect.c: Include termhooks.h and X11/Xproto.h
4520 (x_check_property_data, x_fill_property_data)
4521 (x_property_data_to_lisp, mouse_position_for_drop)
4522 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 4523 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
4524 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4525
da75761f 4526 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
4527 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4528 OUTER_P.
4529 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4530 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4531 if vector_ret_p is true.
4532 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 4533
a6eeaa81 45342004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
4535
4536 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4537 basename of FILE relative to it, not FILE itself.
4538
09721b31
KH
45392004-02-02 Kenichi Handa <handa@m17n.org>
4540
4541 * coding.c (coding_restore_composition): Check invalid
4542 composition data more rigidly.
4543
eb996101
LT
45442004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4545
4546 * fileio.c (Fread_file_name_internal): Correctly handle the case
4547 where insert-default-directory is nil.
4548 (Fread_file_name): Always return an empty string if the user exits
4549 with an empty minibuffer. Adapt the docstring accordingly.
4550 (syms_of_fileio): Adapt the docstring of insert-default-directory
4551 to the change in Fread_file_name.
4552
a6eeaa81 45532004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
4554
4555 * alloca.c [!alloca]: Fix the prototype for xfree.
4556
13f52ed8
KH
45572004-01-29 Kenichi Handa <handa@m17n.org>
4558
4559 * fns.c (string_char_to_byte): Optimize for ASCII only string.
4560 (string_byte_to_char): Likewise.
4561
d57625a0
JR
45622004-01-28 Peter Runestig <peter@runestig.com>
4563
4564 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
4565
a64387ee 45662004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
4567
4568 * unexmacosx.c (unexec_copy): Do not copy more than was
4569 requested to prevent overwriting during unexec.
4570
eb37b8fd
JD
45712004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4572
ce38070a
JD
4573 * process.c (sigchld_handler): Add comment about not calling malloc.
4574
eb37b8fd
JD
4575 * process.h: Add extern to synch_process_termsig.
4576
a64387ee 45772004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 4578
da75761f
SM
4579 * macterm.c (make_mac_frame, make_mac_terminal_frame):
4580 Move setting of scroll bars from make_mac_frame to
4581 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 4582
d62a265d
RS
45832004-01-26 Richard M. Stallman <rms@gnu.org>
4584
4585 * search.c (Freplace_match): Handle nonexistent
4586 back-references properly.
4587
45882004-01-03 Richard M. Stallman <rms@gnu.org>
4589
4590 * window.c (decode_any_window): New function.
4591 (Fwindow_height, Fwindow_width, Fwindow_edges)
4592 (Fwindow_pixel_edges, Fwindow_inside_edges)
4593 (Fwindow_inside_pixel_edges): Use decode_any_window.
4594
ff236419
JD
45952004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4596
4597 * process.h: synch_process_termsig new variable.
4598
4599 * callproc.c: Define synch_process_termsig.
4600 (Fcall_process): Initiate synch_process_termsig to zero and
4601 check if non-zero and get signal name after subprocess has ended.
4602
4603 * process.c (sigchld_handler): Set synch_process_termsig
4604 if terminated by a signal. synch_process_death setting removed.
4605
4606 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
4607
41b867ea
AS
46082004-01-26 Andreas Schwab <schwab@suse.de>
4609
4610 * print.c (print_preprocess): Declare size as EMACS_INT to not
4611 lose bits.
4612 (print_object): Likewise.
4613 * alloc.c (Fpurecopy): Likewise.
4614
a08084ff
LT
46152004-01-25 Luc Teirlinck <teirllm@auburn.edu>
4616
4617 * window.c (Fwindow_minibuffer_p): Doc fix.
4618
b19ac475
JY
46192004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
4620
4621 * editfns.c (Fformat): Make both passes accept the same set of flags.
4622
fe905025
KH
46232004-01-23 Kenichi Handa <handa@m17n.org>
4624
4625 * fns.c (Fmd5): If OBJECT is a buffer different from the current
4626 one, set buffer to OBJECT temporarily.
4627
438fc6c0
SM
46282004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4629
455316e2
SM
4630 * keyboard.c (kbd_buffer_gcpro): Remove.
4631 (kbd_buffer_store_event, clear_event, Fdiscard_input)
4632 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
4633 Don't initialize and/or maintain the variable any more. It was made
4634 redundant by my commit of 2003-06-15.
4635
438fc6c0
SM
4636 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
4637
5335a4ee
JD
46382004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4639
4640 * lisp.h: Add undef DECL_ALIGN.
4641
dcdaeebc
SM
46422004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4643
4644 * process.c (wait_reading_process_input) [SYNC_INPUT]:
4645 Check interrupt_input_pending explicitly.
4646
4647 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
4648
4649 * keyboard.c (handle_async_input): New fun,
4650 extracted from input_available_signal.
4651 (input_available_signal, reinvoke_input_signal): Use it.
4652
9076a823
SM
46532004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
4654
d7107586
SM
4655 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
4656
4657 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
4658 manipulation macros for when tags are in the lower bits.
4659 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
4660 (DECL_ALIGN): New macro.
4661 (DEFUN): Use it.
4662
4663 * lisp.h [ENABLE_CHECKING]: Don't force union type.
4664
4665 * s/darwin.h (__attribute__): Remove outdated workaround.
4666
4667 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
4668
4669 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
4670 Don't check range of malloc address.
4671 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
4672
9076a823
SM
4673 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
4674
4675 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
4676
ba029065
KH
46772004-01-19 Kenichi Handa <handa@m17n.org>
4678
4679 * fontset.c (fontset_font_pattern): Fix previous change.
4680
7af0e8d7
MB
46812004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
4682
4683 * xdisp.c (Voverflow_newline_into_fringe)
4684 (move_it_in_display_line_to, redisplay_internal)
4685 (update_window_fringes, redisplay_window, display_line, window):
4686 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
4687 that it compiles without a window-system.
4688 * dispnew.c (direct_output_for_insert, update_window): Likewise.
4689
77a9cf69
KS
46902004-01-16 Kim F. Storm <storm@cua.dk>
4691
4692 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
4693
a64387ee 4694 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
4695 buffer_local_flags for indicate_buffer_boundaries.
4696 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
4697 default- variable for it.
4698
4699 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
4700 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 4701 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
4702 overflowing newlines into right fringe.
4703 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
4704 and indicate_bottom_line_p for buffer boundaries and scrolling.
4705 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
4706 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
4707 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
4708 and HOLLOW_SQUARE_BITMAP.
4709 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
4710 Add prototypes.
4711
4712 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
4713 instead of related indicator fields.
4714 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
4715 (direct_output_for_insert): Handle exact width lines like
4716 contined lines. Call update_window_fringes.
4717 (update_window): Call update_window_fringes.
4718 (scrolling_window): Don't skip desired rows with changed bitmaps.
4719 Check if fringe bitmaps changes when assigning scrolled rows.
4720
4721 * xdisp.c (Voverflow_newline_into_fringe): New variable.
4722 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
4723 (move_it_in_display_line_to): Overflow newline into fringe for
4724 rows that are exactly as wide as the window.
4725 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
4726 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
4727 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
4728 (fringe_bitmaps): Add new bitmaps.
4729 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
4730 Select proper bitmap for cursor in fringe when appropriate.
4731 Handle alignment of bitmap to top or bottom of row.
4732 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
4733 done by update_window_fringes.
4734 (update_window_fringes, draw_window_fringes): New functions.
4735 (redisplay_internal): Call update_window_fringes in case only
4736 cursor row is updated.
4737 (redisplay_window): Call update_window_fringes.
4738 Explicitly call draw_window_fringes if redisplay was done using
4739 the current matrix or the overlay arrow is in the window.
4740 (try_window_reusing_current_matrix): Mark scrolled rows for
4741 fringe update (to update buffer-boundaries / scrolling icons).
4742 (find_last_unchanged_at_beg_row): Handle exact width lines line
4743 continued lines.
4744 (display_line): Overflow newline into fringe for rows that are
4745 exactly as wide as the window. Don't append space for newline
d7107586 4746 in this case.
77a9cf69
KS
4747 (notice_overwritten_cursor): Explicitly clear cursor bitmap
4748 in fringe as if it had been overwritten.
4749 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 4750 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
4751 void-text-area-pointer as user options.
4752 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 4753
77a9cf69
KS
4754 * xterm.c (x_update_window_end): Call draw_window_fringes.
4755 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4756 in row instead of actually drawing fringe bitmaps.
4757 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4758 (x_draw_window_cursor): Draw cursor in fringe.
4759
4760 * w32term.c (x_update_window_end): Call draw_window_fringes.
4761 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4762 in row instead of actually drawing fringe bitmaps.
4763 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4764 (w32_draw_window_cursor): Draw cursor in fringe.
4765
4766 * macterm.c (x_update_window_end): Call draw_window_fringes.
4767 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4768 in row instead of actually drawing fringe bitmaps.
4769 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4770 (mac_draw_window_cursor): Draw cursor in fringe.
4771
a633a954
JD
47722004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4773
4774 * xterm.c (handle_one_xevent): Don't handle characters that are part
4775 of an old style (XLookupString) compose sequence.
4776
80460525
KH
47772004-01-15 Kenichi Handa <handa@m17n.org>
4778
4779 * search.c (Freplace_match): Use make_multibyte_string or
4780 make_unibyte_string according to the buffer multibyteness.
4781
7fc34f85
SM
47822004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
4783
4784 * alloc.c (struct interval_block, struct string_block)
4785 (struct symbol_block, struct marker_block, live_string_p)
4786 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
4787 Better preserve alignment for objects in blocks.
4788 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
4789
4790 * lread.c (defvar_per_buffer): Remove dead declaration.
4791
4792 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
4793 space size.
4794
66070bd1
JD
47952004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4796
4797 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
4798 if a key press should pop down. Only pop down if a key is pressed
4799 outside the menu/dialog.
4800 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
4801 popup_get_selection.
4802 (create_and_show_dialog): Pass 1 for down_on_keypress to
4803 popup_get_selection.
4804
de7515d6
JD
48052004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4806
4807 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
4808 BLOCK/UNBLOCK_INPUT.
4809
160b1b50
JD
48102004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4811
4812 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
4813 specified.
4814
3a9f36e6
KH
48152004-01-08 Kenichi Handa <handa@m17n.org>
4816
4817 * editfns.c (Fformat): Fix '&' to '&&'.
4818
3803eb32
AS
48192004-01-08 Andreas Schwab <schwab@suse.de>
4820
4821 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
4822 size if PSEUDOVECTOR_FLAG is set.
4823
9da88f37
KH
48242004-01-07 Kenichi Handa <handa@m17n.org>
4825
74ac5074
KH
4826 * charset.c (Fdeclare_equiv_charset): Fix docstring.
4827
9da88f37
KH
4828 * fontset.c (fontset_ref_via_base): Fix previous change.
4829
05faee07
KS
48302004-01-07 Kim F. Storm <storm@cua.dk>
4831
4832 * process.c (read_process_output): Only activate adaptive
4833 buffering if we read less than 256 bytes at a time.
4834
634910c8
KS
48352004-01-06 Kim F. Storm <storm@cua.dk>
4836
4837 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
4838 object and image object. Return glyph width and height.
4839 (mode_line_string, marginal_area_string): Ditto.
4840
4841 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4842 (marginal_area_string): Fix prototypes.
4843
4844 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 4845 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
4846 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
4847
4848 * keyboard.c (make_lispy_position): Use modified mode_line_string,
4849 buffer_posn_from_coords, and marginal_area_string functions to
4850 include both string object and image object in the lispy position.
4851 Also add actual glyph width and height to position.
4852 (read_key_sequence): Use real buffer position from mouse
4853 event to find keymap property even when click is in marginal area.
4854
4855 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
4856 mode_line_string and marginal_area_string functions to handle
4857 both string object and image object properties.
d7107586 4858
57951c2e
AS
48592004-01-06 Andreas Schwab <schwab@suse.de>
4860
4861 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
4862 character.
4863
181e6a61
AS
48642004-01-02 Andreas Schwab <schwab@suse.de>
4865
d7107586
SM
4866 * macterm.c (emacs_options, x_initialized, same_x_server):
4867 Remove unused (and duplicated) definitions.
181e6a61 4868
31e0fbdd
KS
48692004-01-02 Kim F. Storm <storm@cua.dk>
4870
4871 * process.h (struct Lisp_Process): New members for adaptive read
4872 buffering: adaptive_read_buffering, read_output_delay, and
4873 read_output_skip.
4874
4875 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
4876 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
4877 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
4878 (process_output_delay_count, process_output_skip): New vars.
4879 (Vprocess_adaptive_read_buffering): New variable.
4880 (make_process): Initialize adaptive read buffering members.
4881 (Fstart_process): Set adaptive_read_buffering member.
4882 (deactivate_process): Cleanup adaptive read buffering.
4883 (wait_reading_process_input): Temporarily omit delayed
4884 subprocesses from the set of file descriptors to read from;
4885 adjust the select timeout if we skipped any subprocesses.
4886 (read_process_output): Increase adaptive read buffering delay if
4887 we read less than a full buffer; reduce delay when we read a
4888 full buffer.
4889 (send_process): Simplify using local Lisp_Process var.
4890 Reset adaptive read buffering delay after write.
4891 (init_process): Initialize process_output_delay_count and
4892 process_output_skip.
4893 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
4894
68c6a789
JR
48952004-01-01 Jason Rumney <jasonr@gnu.org>
4896
d7107586 4897 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 4898
3f70fe82
LT
48992003-12-30 Luc Teirlinck <teirllm@auburn.edu>
4900
4901 * print.c (Ferror_message_string): Add hyperlink in the docstring
4902 to the definition of `signal' in the Elisp manual.
4903 * eval.c (Fsignal): Ditto.
4904
b6189c3b 49052003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
4906
4907 * fns.c (internal_equal): Return t for two NaN arguments.
4908
7abd90ea
RS
49092003-12-29 Richard M. Stallman <rms@gnu.org>
4910
4911 * data.c (store_symval_forwarding): Handle setting
4912 default-fill-column, etc., by changing the value in
4913 buffers that use the default.
4914
4915 * minibuf.c (Fset_minibuffer_window): Doc fix.
4916
4917 * fileio.c (choose_write_coding_system): Ignore auto_saving
4918 if using the visited file for auto saves.
4919 (Fwrite_region): Don't update SAVE_MODIFF
4920 if auto-saving in visited file.
4921
3e7cfcdc
KH
49222003-12-29 Kenichi Handa <handa@m17n.org>
4923
4924 * dispextern.h (face_font_available_p): Extern it.
4925
4926 * fontset.c (Voverriding_fontspec_alist): New variable.
4927 (lookup_overriding_fontspec): New function.
d7107586 4928 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
4929 (fontset_font_pattern): Likewise.
4930 (regulalize_fontname): New function.
4931 (Fset_fontset_font): Call regulalize_fontname.
4932 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
4933 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
4934 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
4935
4936 * xfaces.c (face_font_available_p): New function.
4937
7abd90ea
RS
49382003-12-28 Richard M. Stallman <rms@gnu.org>
4939
4940 * buffer.c (Fother_buffer): Don't crash if BUF is nil
4941 or if its name is nil.
4942
4943 * buffer.c (Fkill_buffer): Don't delete auto-save file
4944 if it's the same as the visited file.
4945
de1d1a40
LT
49462003-12-28 Luc Teirlinck <teirllm@auburn.edu>
4947
4948 * coding.c (Fcheck_coding_system): Doc fix.
4949
204fb75e
KS
49502003-12-28 Kim F. Storm <storm@cua.dk>
4951
4952 * Makefile.in (eval.o): Depend on dispextern.h.
4953
4954 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
4955 image glyph using image's ascent.
4956 (mode_line_string): Return image glyph as object clicked on.
4957 Adjust y0 for image glyph using image's ascent.
4958
4959 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
4960 (struct glyph): New members, ascent and descent. Used to save
4961 this glyph's ascent and descent, instead of having.
4962 (struct glyph): Declare member face_id using FACE_ID_BITS.
4963 (find_hot_spot): Add prototype.
4964
4965 * keyboard.c (Qimage): Remove extern (now in lisp.h).
4966 (QCmap): Declare extern.
4967 (make_lispy_position): When position is inside image hot-spot,
4968 use hot-spot element's id as posn element.
4969
4970 * lisp.h (IMAGEP): New macro to test for image object type.
4971 (Qimage): Declare extern.
4972
4973 * macfns.c (Qimage): Remove extern (now in lisp.h).
4974 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4975
4976 * macterm.c (Qface, Qmouse_face): Remove unused externs.
4977
4978 * w32fns.c (Qimage): Remove extern (now in lisp.h).
4979 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4980
4981 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
4982
4983 * w32term.c (Qface, Qmouse_face): Remove unused externs.
4984
4985 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
4986 pointer types.
4987 (Qrelative_width, Qalign_to): Remove unused variables.
4988 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
4989 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
4990 image maps.
d7107586 4991 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
4992 new dx and dy args.
4993 Remove buffer_only_p arg (always 0). Simplify code accordingly.
4994 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
4995 than row's ascent and height, to get sensible height on tall rows.
4996 (build_desired_tool_bar_string): Remove Qimage extern.
4997 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
4998 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
4999 image glyph is alone on the last line.
5000 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5001 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5002 (on_hot_spot_p): New function to check if position is inside an
d7107586 5003 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5004 (find_hot_spot): New function to search for image hot-spot.
5005 (Flookup_image_map): New defun to search for image hot-spot.
5006 (define_frame_cursor1): New aux function to determine frame pointer.
5007 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5008 Handle `pointer' text property and :pointer image property to
5009 control frame pointer shape. Detect image hot-spots for pointer
5010 and help_echo properties. Use define_frame_cursor1.
5011 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5012 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5013 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5014
5015 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5016
5017 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5018 (Qimage): Remove extern (now in lisp.h).
5019 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5020
5021 * xmenu.c (show_help_event): Remove unused code.
5022
5023 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5024 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5025 row's ascent and descent, to get a sensible height on tall rows.
5026
fc052137
LT
50272003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5028
5029 * minibuf.c (Fcompleting_read): Undo previous change.
5030
a64387ee 50312003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5032
5033 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5034 Arguments GCPRO'ed in call to file name handler.
5035
56ffd194
TTN
50362003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5037
5038 * termcap.c (tgetst1): Scan for "%pN"; if all
5039 N are continuous in [1,9], remove all "%pN".
5040
5202d23d
JD
50412003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5042
f26fab36
JD
5043 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5044
5202d23d
JD
5045 * xfaces.c (lface_fully_specified_p): Take into account that
5046 MAC OS always have unspecified stipple.
5047
8babaa59
TTN
50482003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5049
5050 * tparam.c (tparam1): Add handling for `%pN', which
5051 means use param N for the next substitution.
5052
2d176448
TTN
50532003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5054
5055 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5056 In case `frame' is nil, consult the selected frame.
5057 (Fcolor_supported_p): Likewise.
5058
adb0708c
LT
50592003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5060
000eeb15
LT
5061 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5062 Doc fixes.
0dc72b11
LT
5063
5064 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5065 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5066 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5067 Doc fix.
5068 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5069 read_minibuf.
5070 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5071 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5072
2e4d132b
KH
50732003-12-03 Kenichi Handa <handa@m17n.org>
5074
5075 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5076 encoding sequence.
5077
3999c705
KH
50782003-12-01 Kenichi Handa <handa@m17n.org>
5079
5080 * composite.c (syms_of_composite): Don't make the compostion hash
5081 table week.
5082
d344ecbb
LT
50832003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5084
5085 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5086 * textprop.c (Fget_char_property_and_overlay): New function.
5087 (syms_of_textprop): Defsubr it.
5088
03d6484e
JD
50892003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5090
019b1f0e
JD
5091 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5092 to compile on terminal configuration.
5093
03d6484e
JD
5094 * fileio.c (Fread_file_name): Check use_file_dialog also before
5095 calling Fx_file_dialog.
5096
5097 * fns.c: use_file_dialog: New variable.
5098 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5099
442d3fd0
KS
51002003-11-29 Kim F. Storm <storm@cua.dk>
5101
5102 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5103 (syms_of_msdos): Don't intern and staticpro them.
5104
0f6a07a8
KS
51052003-11-27 Kim F. Storm <storm@cua.dk>
5106
5107 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5108 coordinates relative to glyph at posn. If glyph is an image,
5109 return that as object at posn. Callers changed.
5110 (mode_line_string, marginal_area_string): Calculate and return
5111 pixel coordinates relative to glyph. Callers changed.
5112
5113 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5114 (marginal_area_string): Fix prototypes.
5115 (window_box_left_offset, window_box_right_offset): Add prototypes.
5116
5117 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5118 Remove prototypes.
5119
5120 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5121
5122 * keyboard.c (make_lispy_position): Add x and y coordinates
5123 relative to the current glyph as 7th element of position.
5124 If glyph is an image, return it in the object element.
5125 (read_key_sequence): Skip checks for keymap property in cases
5126 where POSN_STRING is not a string (e.g. an image).
5127
5128 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5129 (Vshow_text_cursor_in_void): New variable.
5130 (glyph_to_pixel_coords): Don't use negative hpos.
5131 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5132 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5133 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5134 (calc_pixel_width_or_height): New aux function, implementing
5135 pixel based artihmetic for glyph widths and heights.
5136 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5137 :width, :height, :align-to, and :ascent, thus allowing these to
5138 be specified in pixels as well as multiples of characters.
5139 Don't produce stretch glyphs with zero width or height.
5140 (get_specified_cursor_type): Declare static.
5141 (get_window_cursor_type): Declare static. Add glyph arg to be
5142 able to know when cursor is on an image; always substitute
5143 hollow-box cursor for filled-box cursor on images, to avoid
5144 negative images and flicker when blinking the cursor.
5145 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5146 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5147 than vertical scroll-bar cursor in display margins.
5148 (note_mouse_highlight): Use non-text cursor rather than text
5149 cursor in fringes and over images in the text area.
5150 Use non-text cursor when mouse pointer is outside editable text,
5151 i.e. in the void after end-of-line or end-of-buffer; this was
5152 already done for W32, but is now standard for all systems --
5153 user can toggle show-text-cursor-in-void to get old behaviour.
5154 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5155 Vdisplay_pixels_per_inch.
5156
00498bfc
AS
51572003-11-25 Andreas Schwab <schwab@suse.de>
5158
5159 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5160 EMACS_INT to not lose bits.
5161 (Ffillarray): Don't set bits beyond the size of a bool vector.
5162
edaa824d
KS
51632003-11-25 Kim F. Storm <storm@cua.dk>
5164
5165 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5166 define this defun on systems that cannot use stderr as lvalue.
5167
74d6f539
GM
51682003-11-24 Gerd Moellmann <gerd@gnu.org>
5169
5170 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5171 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5172 ld's default is incompatible with unexec.
5173
6a1ff3ba
KS
51742003-11-23 Kim F. Storm <storm@cua.dk>
5175
63dc7c6b
KS
5176 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5177 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5178 (Fforce_window_update): New defun.
5179 (syms_of_window): Defsubr it.
5180 (Fset_window_margins, Fset_window_fringes): Doc fix.
5181
6a1ff3ba
KS
5182 * print.c (Fredirect_debugging_output): New defun.
5183 (syms_of_print): Defsubr it.
5184
aef109b7
LT
51852003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5186
5187 * fns.c (Fset_char_table_parent): Doc fix.
5188
6a1ff3ba 51892003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5190
5191 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5192 for glyph clicked on, rather than (unused) pixel positions.
5193 (mode_line_string, marginal_area_string): Change X and Y args to
5194 pointers for returning actual row/column for glyph clicked on.
5195 Simplify and optimize loops.
5196
aef109b7
LT
5197 * dispextern.h (mode_line_string, marginal_area_string):
5198 Update prototypes.
63ccbe21
KS
5199
5200 * keyboard.c (make_lispy_position): New function for generating
5201 mouse click positions from frame and pixel coordinates.
5202 Enhanced to return buffer position and actual row/column for
5203 events outside the text area using updated mode_line_string and
5204 marginal_area_string functions.
5205 Return left-fringe and right-fringe clicks as such, rather than
5206 clicks in text area.
5207 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5208 pixel_to_glyph_coords, as we never use the results.
5209 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5210 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5211 Eliminate unused code in WHEEL_EVENT handling.
5212 (make_lispy_movement): Use make_lispy_position.
5213
5214 * window.c (coordinates_in_window): Remove redundant tests.
5215 Fix returned X pixel value for left-margin.
5216
5217 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5218 mode_line_string and marginal_area_string parameters.
5219
a64387ee 52202003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5221
d7107586
SM
5222 * w32.c (struct the_group, getgrgid): Add.
5223 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5224
3dbf3426
LT
52252003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5226
5227 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5228
cae8ddbb 52292003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5230
d7107586
SM
5231 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5232 include in call to file name handler. Optionally translate numeric
5233 UID and GID to strings. Update docstring.
5234 (directory_files_internal): Add parameter ID-FORMAT.
5235 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5236 include in call to file name handler and call to
5237 directory_files_internal. Update Docstring.
5238 (Fdirectory_files): Add dummy parameter in call to
5239 directory_files_internal.
5240 * lisp.h (Qinteger): Add.
5241 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5242 (Ffile_attributes): Add parameter.
5243 * data.c (Qinteger): Export.
cae8ddbb 5244
2550b848
LT
52452003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5246
3dbf3426 5247 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5248
88380018
KS
52492003-11-19 Kim F. Storm <storm@cua.dk>
5250
5251 * xdisp.c (init_iterator): Initialize it->start to position
5252 before reseating (in case start position is invisible).
5253 (init_to_row_start): Set it->start to row-start.
5254 (redisplay_window): Accept optional_new_start if start position
5255 is invisible (in which case IT_CHARPOS overshoots PT).
5256 (display_line): Setup row->start from it->start (rather than
5257 it->current which is wrong if first char on line is invisible).
5258 When done, reseat it->start to it->current (= start of next row).
5259 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5260 is only partially visible.
5261
5262 * dispextern.h (struct it): New member start.
5263
854c1a59
SM
52642003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5265
455316e2
SM
5266 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5267 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5268 of block_index outside of the macro call.
5269 (Fgarbage_collect): Remove null code.
5270
5271 * m/amdx86-64.h: Don't redefine XPNTR.
5272
854c1a59
SM
5273 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5274 of VALMASK.
5275
5276 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5277 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5278 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5279
5280 * lisp.h (VALMASK): Only define for non-union type.
5281 (MARKBIT): Remove.
5282 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5283 (XTYPE): Define unconditionally.
5284 (XSETTYPE): Remove one more remnant.
5285 (EQ): Define differently for the union and non-union cases.
5286 (INTMASK): New bit mask.
5287 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5288 (GC_EQ): Delegate to EQ.
5289
5290 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5291
a0c6ef2d
JD
52922003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5293
5294 * xterm.c (x_window_to_scroll_bar): Move check of display to
5295 where window_id is compared.
5296
859492c4
KS
52972003-11-17 Kim F. Storm <storm@cua.dk>
5298
5299 * dispextern.h (struct it): New member first_vpos.
5300
5301 * xdisp.c (start_display): Set it->first_vpos.
5302 (try_window_id): Use first_vpos to start display in first _text_
5303 line if no reusable lines at start of window with header line.
5304
810f2256
JD
53052003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5306
7c402969 5307 * w32fns.c (XPutPixel):
854c1a59
SM
5308 * w32bdf.c (w32_init_bdf_font):
5309 * sunfns.c (sel_read):
5310 * process.c (Fmake_network_process):
5311 * frame.c (store_frame_param):
5312 * fontset.c (Fset_fontset_font):
5313 * emacs.c (shut_down_emacs):
a64387ee 5314 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5315
a32e9bfd
JD
5316 * config.in: Regenerate.
5317
810f2256
JD
5318 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5319 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5320 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5321 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5322 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5323
5324 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5325
5326 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5327 (XTmouse_position, handle_one_xevent): Pass Display* to
5328 x_window_to_scroll_bar.
5329 (x_window_to_scroll_bar): Take a Display* argument.
5330 Check that display for frame is equal to Display* argument.
854c1a59 5331 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5332 x_display_info_for_display instead. Use Display in xev instead
5333 of GDK_DISPLAY.
5334 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5335 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5336 (x_connection_closed): Call xg_display_close for GTK.
5337 (x_term_init): Call xg_display_open for additional displays.
5338 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5339 for GTK.
5340
5341 * xmenu.c (single_menu_item, mouse_position_for_popup)
5342 (x_activate_menubar): Formatting adjustments.
5343
5344 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5345 adjustments.
5346
5347 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5348 (xg_display_close, xg_create_default_cursor)
5349 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5350 handling.
854c1a59
SM
5351 (xg_left_ptr_cursor): Remove.
5352 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5353 cursor here.
5354 (xg_win_to_widget): Take Display* argument, call
5355 gdk_xid_table_lookup_for_display.
5356 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5357 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5358 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5359 in FRAME_X_DISPLAY_INFO.
5360 (xg_get_scroll_id_for_window): Take Display* argument.
5361 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5362 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5363
78819ebb
KS
5364 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5365 Display* argument.
5366 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5367
0b03cc78
JD
53682003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5369
5370 * xterm.c (x_detect_focus_change): Do not change focus frame for
5371 Enter/LeaveNotify if the current focus frame has explicit focus.
5372
77e688fa
KS
53732003-11-14 Kim F. Storm <storm@cua.dk>
5374
5375 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5376 is active and first glyph is only partially visible.
854c1a59 5377
dd429b03
KH
53782003-11-13 Kenichi Handa <handa@m17n.org>
5379
5380 * xdisp.c (select_frame_for_redisplay): New function.
5381 (redisplay_internal): Record also selected_frame for
5382 unwind_redisplay. Call select_frame_for_redisplay before
5383 redrawing each frame.
5384 (unwind_redisplay): Argument changed to a cons.
5385
6d9266f4
LT
53862003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5387
5388 * fns.c (Fstring_to_multibyte): Doc fix.
5389
80060eb3
KH
53902003-11-11 Kenichi Handa <handa@m17n.org>
5391
5392 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5393
74305183
JD
53942003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5395
5396 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5397 program specified positions.
5398
cfda993e
JD
53992003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5400
5401 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5402
df211069
KH
54032003-11-08 Kenichi Handa <handa@m17n.org>
5404
5405 * Makefile.in (lisp): Add kannada.el.
5406 (shortlisp): Likewise.
5407
4307d534
KH
54082003-11-07 Kenichi Handa <handa@m17n.org>
5409
854c1a59
SM
5410 * coding.c (coding_allocate_composition_data):
5411 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5412 (coding_restore_composition): Detect invalid composition data.
5413 Give Fstring and Fvector a Lispy integer, not C int.
5414
854c1a59
SM
54152003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5416
5417 * floatfns.c (Flogb): Don't use VALMASK.
5418
5419 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5420 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5421
5422 * lisp.h (XINT): Move the cast to clarify what is going on.
5423 (GCTYPEMASK, XSETTYPE): Remove.
5424 (XGCTYPE): Make it an alias of XTYPE.
5425
d04103a1
JD
54262003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5427
5428 * xterm.c (x_term_init): Fix formatting.
5429
da18b5ac
JD
54302003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5431
78819ebb
KS
5432 * gtkutil.h (xg_have_tear_offs): Declare.
5433 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
5434
5435 * gtkutil.c: Remove variable xg_did_tearoff.
5436 (xg_have_tear_offs): New function.
5437 (tearoff_remove): Just decrease xg_detached_menus.
5438 (tearoff_activate): Increase xg_detached_menus and call
5439 tearoff_remove when tearoff is removed.
854c1a59 5440 (xg_keep_popup): Remove function.
da18b5ac
JD
5441 (create_menus): Give add_tearoff_p as argument to recursive
5442 call to create_menus.
5443 (xg_create_widget): Use variables instead of multiple
5444 strcmp. Tell create_menus to create tear off only for
5445 menu bar menus.
5446 (xg_update_menubar): Change title for a detached menu also.
5447 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5448 of deep_p.
5449 (xg_initialize): Initialize xg_detached_menus, remove
5450 initialization of xg_did_tearoff.
5451
5452 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5453 xg_have_tear_offs returns non-zero.
5454 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5455 call to xg_keep_popup.
5456
64d4923e
AC
54572003-11-01 Andrew Choi <akochoi@shaw.ca>
5458
5459 * macterm.c (XTread_socket): Handle menubar selection and grow
5460 window only for mouseDown events.
854c1a59 5461
6cc8bc07
JD
54622003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5463
5464 * xterm.c (x_term_init): For GTK part, increase x_initialized
5465 to check for more than one display. Use error instead of return 0.
5466
043131c4
AC
54672003-10-31 Andrew Choi <akochoi@shaw.ca>
5468
854c1a59 5469 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
5470 (copy_dysymtab): Call it.
5471
bdda99a1
LT
54722003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5473
5474 * eval.c (Fdefvaralias): Doc fix.
5475
800f42ff 54762003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
5477
5478 * data.c (Fsetplist): Doc fix.
5479
ef35b389
LK
54802003-10-14 Lute Kamstra <lute@gnu.org>
5481
5482 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 5483
ef35b389 54842003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 5485
07107abc
KS
5486 * window.c (Fset_window_margins): Simplify arg checking.
5487
f7005886
RS
54882003-10-13 Richard M. Stallman <rms@gnu.org>
5489
5490 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5491 (print_partial_compiled_pattern): Replace assert with a printout.
5492 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5493
5494 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5495
5496 * window.c (Fset_window_margins): Allow only integers as args.
5497 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5498 Doc fixes.
5499
9c0c2af5
LK
55002003-10-13 Lute Kamstra <lute@gnu.org>
5501
5502 * window.c (Fset_window_fringes): Elaborate docstring.
5503
3f080e4e
AC
55042003-10-12 Andrew Choi <akochoi@shaw.ca>
5505
854c1a59 5506 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 5507
3f080e4e
AC
5508 * s/darwin.h (GC_MARK_STACK): Define.
5509
0aa513ed
JD
55102003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5511
5512 * window.c (shrink_windows): New function.
5513 (size_window): Call shrink_windows to calculate window sizes when
5514 shrinking frame with more than one window.
5515
6aa8858a
KS
55162003-10-12 Kim F. Storm <storm@cua.dk>
5517
5518 * xdisp.c (compute_fringe_widths): Doc fix.
5519
c2164d91
KH
55202003-10-08 Kenichi Handa <handa@m17n.org>
5521
854c1a59 5522 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 5523
f82ac129
KH
55242003-10-07 Kenichi Handa <handa@m17n.org>
5525
5526 * coding.c (Qcoding_system_define_form): New variable.
5527 (syms_of_coding): Intern and staticpro it.
5528 (Fcheck_coding_system): Try to autoload the definition of
5529 CODING-SYSTEM.
5530
9296c947
LT
55312003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5532
5533 * fns.c (Frequire): Doc fix.
5534
c1f0671a
JD
55352003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5536
3d8c3826
JD
5537 * xfns.c (Fx_send_client_event): New function as a base for
5538 manipulating extended window manager hints.
6dc15d98 5539 (Fx_send_client_event): Remove unused variable s.
3d8c3826 5540
068ae0fd
JD
5541 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5542 that function is removed.
5543
5544 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5545 x/y_pixels_outer_diff.
5546 (x_check_expected_move): Calculate move_offset_left/top.
5547
5548 * xterm.h (struct x_output): New members: move_offset_top/left.
5549
854c1a59 5550 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
5551 call x_set_offset directly.
5552
5553 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
5554
96f09305
JD
5555 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
5556
5557 * xterm.c (x_delete_display): Free font names and font_encoder
5558 in dpyinfo->font_table.
5559
854c1a59
SM
5560 * xfns.c (Fx_close_connection): Only call XFreeFont here.
5561 Move xfree of font names to x_delete_display.
96f09305 5562
c1f0671a
JD
5563 * xterm.h (struct x_display_info): New member, wm_type.
5564 (struct x_output): New members, expected_top/left and
5565 check_expected_move.
5566
5567 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
5568 is received.
854c1a59
SM
5569 (handle_one_xevent): Rename x_check_expected_move from
5570 x_check_fullscreen_move.
c1f0671a
JD
5571 (x_set_offset): Only add WM decoration sizes to modified_top/left
5572 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 5573 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
5574 Removed fullscreen specific code. Use check_expected_move,
5575 expected_left/top instead. Also, set wm_type.
5576 (x_term_init): Initialize wm_type to unknown.
5577
5578 * frame.c (x_fullscreen_move): Remove addition of WM decoration
5579 sizes to move_x/y.
5580
be2fdba9
KH
55812003-10-03 Kenichi Handa <handa@m17n.org>
5582
5583 * macterm.c (x_load_font): Clear all members of FONTP before start
5584 filling them.
5585
55862003-10-02 Kenichi Handa <handa@m17n.org>
5587
5588 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
5589 before calling find_ccl_program_func. Call find_ccl_program_func
5590 only when fontp->font_encoder is not NULL.
5591
5592 * xterm.c (x_load_font): Clear all members of FONTP before start
5593 filling them.
5594
26a6e439
JPW
55952003-10-03 John Paul Wallington <jpw@gnu.org>
5596
5597 * keymap.c (map_keymap): Don't abort when binding is a vector.
5598
0d4c2dc2
JR
55992003-10-02 Jason Rumney <jasonr@gnu.org>
5600
854c1a59
SM
5601 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
5602 Sync dependencies with Makefile.in.
a63cf46f
JR
5603 (alloca.o): Remove.
5604
0d4c2dc2
JR
5605 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
5606 filling them.
5607
5608 * w32bdf.c (w32_load_bdf_font): Likewise.
5609
ab8f7d5c
RS
56102003-09-30 Richard M. Stallman <rms@gnu.org>
5611
5612 * term.c (set_tty_color_mode): Calculate current_mode_spec
5613 regardless of value of VAL.
5614
854c1a59 5615 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
5616 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
5617 Handle over_used when splitting UNDER.
5618
a64387ee 56192003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
5620
5621 * regex.c (regex_compile): Free the stack when returning from function.
5622
3413f972
KH
56232003-09-28 Kenichi Handa <handa@m17n.org>
5624
5625 * fontset.c (Finternal_char_font): Change return value to
5626 cons (FONT-NAME . GLYPH-CODE).
5627
a6eeaa81 56282003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
5629
5630 * term.c (tty_setup_colors): Treat any negative argument as -1.
5631
f98ddc99
KH
56322003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
5633
5634 * process.c (send_process): Delete unused temp_buf.
5635
66c8f1a8
DL
56362003-09-26 Dave Love <fx@gnu.org>
5637
5638 * xterm.c (x_bitmap_mask): Declare.
5639
ca716c26
DL
56402003-09-25 Dave Love <fx@gnu.org>
5641
5642 * Makefile.in (fns.o): Depend on md5.h.
5643
fbe57420
KS
56442003-09-25 Kim F. Storm <storm@cua.dk>
5645
5646 * window.c (set_window_buffer): Fix redisplay problems when
5647 switching between buffers with different display margin widths.
5648
ef6ae4ff
KS
56492003-09-23 Kim F. Storm <storm@cua.dk>
5650
5651 * process.c (set_socket_option): Fix :bindtodevice option.
5652 (Fset_network_process_option): Update process contact list when
5653 setting option succeeds.
5654 (Fmake_network_process): Doc fix.
5655
68e03c1c
DL
56562003-09-23 Dave Love <fx@gnu.org>
5657
7146d1c1 5658 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 5659
a6eeaa81 56602003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
5661
5662 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
5663 color mode is an integer number (it could be -1).
5664
8fe7d8c8
RS
56652003-09-22 Richard M. Stallman <rms@gnu.org>
5666
5667 * intervals.c (graft_intervals_into_buffer): Correct the main loop
5668 in the case where OVER is longer than UNDER.
5669
2f71b5ea
MY
56702003-09-22 Masatake YAMATO <jet@gyve.org>
5671
7146d1c1 5672 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 5673 `vertical_type'.
7146d1c1 5674
0c4da023
KS
56752003-09-21 Kim F. Storm <storm@cua.dk>
5676
5677 * frame.c (Vdefault_frame_scroll_bars): New variable.
5678 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
5679 (syms_of_frame): DEFVAR_LISP it, and initialize according to
5680 window-system default scroll bar position.
5681
b648413b
KS
5682 * window.c (Fwindow_scroll_bars): Doc fix.
5683
8f5b9e34
JD
56842003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5685
854c1a59 5686 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 5687
b0f23edf
RS
56882003-09-19 Richard M. Stallman <rms@gnu.org>
5689
5690 * atimer.h: Don't include lisp.h.
5691 (P_): Define it here (as well as elsewhere).
5692
5693 * print.c (Fprin1_to_string): Move the PRINTPREPARE
5694 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
5695
5696 * data.c (Fvariable_binding_locus): New function.
5697 (syms_of_data): defsubr it.
5698 (Flocal_variable_p): Delete duplicate call to indirect_variable.
5699
e1283999
DL
57002003-09-18 Dave Love <fx@gnu.org>
5701
ad5f3636
DL
5702 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
5703
e1283999
DL
5704 * process.c (Fnetwork_interface_info): Fix type error.
5705 (Fnetwork_interface_list): Doc fix.
5706 (read_process_output, read_process_output): Delete unused var.
5707
b8c7fd71
KS
57082003-09-17 Kim F. Storm <storm@cua.dk>
5709
5710 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
5711 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
5712 (Fnetwork_interface_info): Check that ifreq struct has required
5713 fields before accessing them; this requires that those fields are
5714 defined as macros, which may be too restrictive on some platforms,
5715 but it is better than failing on other platforms.
5716 (syms_of_process): Only defsubr above fns when included.
5717
11e0a411
DL
57182003-09-17 Dave Love <fx@gnu.org>
5719
5720 * unexalpha.c: Don't include varargs.h.
5721
e9c50801
KS
57222003-09-17 Kim F. Storm <storm@cua.dk>
5723
5724 * process.c (Fset_process_sentinel): Add sentinel to childp plist
5725 for network process.
5726 (socket_options): Add `:' prefix to option names. Add optbit field.
5727 (set_socket_option): Remove no_error arg and special handling of s < 0.
5728 Return 1<<optbit for known option, 0 for unknown.
5729 Do not interpret 0 as false for boolean option (only nil).
5730 Pass failed option and value to report_file_error.
7146d1c1 5731 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
5732 (Fset_network_process_option): New function to set just one option.
5733 (Fmake_network_process): Allow :coding arg to be a cons.
5734 Allow :server arg to be an integer specifying backlog size.
5735 Remove :options arg, and allow options to be specified directly
5736 as :KEY, VALUE pairs. Parse these options before binding socket.
5737 As before, :reuseaddr t is default for a server process, but this
5738 can now be disabled by specifying :reuseaddr nil.
5739 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
5740 (init_process): Availability of network options is now checked with
5741 simpler syntax (featurep 'make-network-process :OPTION); use loop to
5742 setup features.
5743 (syms_of_process): Fix defsubr's for the replaced functions.
5744
a0fc3644
DL
57452003-09-16 Dave Love <fx@gnu.org>
5746
5747 * Makefile.in: Depend on coding.h.
5748
6df2a645
KS
57492003-09-14 Kim F. Storm <storm@cua.dk>
5750
5751 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
5752 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
5753 (syms_of_process): Defsubr them.
5754
5755 * config.in: Regenerate.
7146d1c1
SM
5756
57572003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5758
5759 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
5760 * m/news-r6.h (XUNMARK): Remove.
5761 * m/mips.h (XUNMARK): Remove.
5762 * m/mips-siemens.h (XUNMARK): Remove.
5763 * m/iris4d.h (XUNMARK): Remove.
5764 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
5765
0930c1a1
SM
57662003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5767
31003b9e
SM
5768 * lisp.h (VALBITS): Don't remove 1 for the markbit.
5769 (union Lisp_Object): Use unsigned int for types. Remove markbit.
5770 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
5771 (XTYPE): Use unsigned right-shift.
5772 (XMARKBIT, XMARK, XUNMARK): Remove.
5773
0930c1a1
SM
5774 * alloc.c (init_intervals, init_symbol, init_marker):
5775 Don't preallocate anything.
5776 (Fgarbage_collect, mark_object): Ignore the markbit.
5777
5778 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
5779
19bb0fcd 57802003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
5781
5782 * xdisp.c (pint2hrstr): New function.
5783 (decode_mode_spec): Add `%i' and `%I' specs.
5784 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
5785 for `mode-line-format'.
5786
03bb6a06
AS
57872003-09-07 Andreas Schwab <schwab@suse.de>
5788
5789 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
5790 avoid warning.
5791
a6eeaa81 57922003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 5793
0930c1a1 5794 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 5795
ed159bbf
KS
57962003-09-03 Kim F. Storm <storm@cua.dk>
5797
5798 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
5799 change (superseded by 2002-08-30 change); the default blink-off
5800 cursor is now again "no cursor".
5801
fe64a394
JR
58022003-09-01 Jason Rumney <jasonr@gnu.org>
5803
5804 * makefile.w32-in (alloca.o): Remove.
5805 (coding.o): Depend on intervals.h
5806 (emacs.o, bytecode.o): Depend on window.h
5807
c0175e24
DL
58082003-09-01 Dave Love <fx@gnu.org>
5809
5810 * Makefile.in (alloca.o): Remove commands.
5811 (coding.o): Depend on intervals.h composite.h window.h.
5812 (emacs.o): Depend on window.h keyboard.h keymap.h.
5813 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
5814 (bytecode.o): Depend on window.h.
5815
a24d4cb2
JR
58162003-08-31 Jason Rumney <jasonr@gnu.org>
5817
4bc2315e
JR
5818 * w32term.c (w32_per_char_metric): Allow cached metrics to be
5819 returned even when font_type is unknown.
5820
a24d4cb2
JR
5821 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
5822
9d35adc7
JD
58232003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5824
5825 * xterm.c (x_term_init): Initialize new fields in x_display_info.
5826
5827 * xterm.h (struct x_display_info): Add red/green/blue_bits and
5828 *_offset.
5829
5830 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
5831 calculate pixel value.
5832
6f68b035
GM
58332003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
5834
0930c1a1
SM
5835 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
5836 Don't tell redisplay display is accurate when it's actually been
5837 paused for pending input.
6f68b035 5838
4828b4d7
RS
58392003-08-29 Richard M. Stallman <rms@gnu.org>
5840
5841 * dispnew.c (adjust_glyph_matrix): Call window_box
5842 whenever W is nonzero.
5843
5844 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5845 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 5846 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
5847 Use indirect_variable to trace thru variable aliases.
5848
5849 * config.in: Updated.
5850
5851 * callint.c (Fcall_interactively): Save and restore
5852 Vthis_command, Vthis_original_command, real_this_command,
5853 and current_kboard->Vlast_command.
5854
5855 * abbrev.c (Fexpand_abbrev): Insert before deleting.
5856
e019878d
GM
58572003-08-29 Gerd Moellmann <gerd@gnu.org>
5858
5859 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
5860
85478bc6
KH
58612003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
5862
0930c1a1 5863 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
5864 (decode_coding_sjis_big5): Likewise.
5865
07ce82d3
JR
58662003-08-27 Jason Rumney <jasonr@gnu.org>
5867
d3703de3
JR
5868 * w32.c (sys_pipe): Protect against file descriptor overflow.
5869
ee4a01d1
JR
5870 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
5871
07ce82d3
JR
5872 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
5873
a64387ee 58742003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
5875
5876 * xfns.c (Vgtk_version_string): New variable.
5877 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
5878
a6eeaa81 58792003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 5880
0930c1a1 5881 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 5882
5459e42a
EZ
5883 * Makefile.in (msdos.o): Depend on intervals.h.
5884
0930c1a1 5885 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 5886
231d6cfb
JD
58872003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5888
5889 * xterm.h (struct x_display_info): New fields: client_leader_window
5890 and Xatom_wm_client_leader.
5891
5892 * xterm.c (x_initialize): Move call to x_session_initialize to ...
5893 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
5894
5895 * xsmfns.c (create_client_leader_window): New function.
5896 (x_session_initialize): Call create_client_leader_window, take
5897 dpyinfo as argument.
5898
5899 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
5900
5901 * Makefile.in (xsmfns.o): Add more depenedencies.
5902
afa88464
DL
59032003-08-21 Dave Love <fx@gnu.org>
5904
5905 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
5906
f730033e
KH
59072003-08-21 Kenichi Handa <handa@m17n.org>
5908
5909 * term.c (term_init): Fix previous change; don't rely on the
5910 length of `buffer' if TERMINFO is defined.
5911
6dca786c
DL
59122003-08-20 Dave Love <fx@gnu.org>
5913
5914 * atimer.h: Include lisp.h.
5915
5916 * lisp.h (EMACS_LISP_H): New.
5917 (popup_activated_flag): Don't declare.
5918
5919 * alloca.c: Some merging with gnulib. Change logic and doc
5920 concerning (x)malloc/(x)free -- no longer Emacs-specific.
5921 [DO_BLOCK_INPUT]: Don't include lisp.h.
5922 (xmalloc, xfree): Declare.
5923 (malloc): Don't declare.
5924
0930c1a1 5925 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
5926 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
5927 atimer.h, blockinput.h.
5928
5929 * alloc.c (lisp_align_malloc): Change type of `aligned'.
5930
78819ebb 5931 * alloca.s: Remove.
6dca786c 5932
3a06a6d9
RS
59332003-08-19 Gerd Moellmann <gerd@gnu.org>
5934
5935 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
5936 use -lncurses.
5937
5938 * term.c (term_init): Use a buffer of size 4096 for tgetent since
5939 FreeBSD returns something longer than 2044. Abort if the end of
5940 the buffer is overwritten.
5941
27eeee55
MB
59422003-08-19 Miles Bader <miles@gnu.org>
5943
5944 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
5945
2f297815
GM
59462003-08-19 Gerd Moellmann <gerd@gnu.org>
5947
f4446bbf
GM
5948 * alloc.c (lisp_align_malloc): Check for memory full when
5949 allocating ablocks, which also avoids freeing a pointer into an
5950 ablocks structure.
5951
5952 * puresize.h (BASE_PURESIZE): Increase to 1100000.
5953
0930c1a1 5954 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 5955
0e7d7aae
RS
59562003-08-16 Richard M. Stallman <rms@gnu.org>
5957
5958 * editfns.c (Fencode_time): Doc fix.
5959
59602003-08-16 David Ponce <david@dponce.com>
5961
5962 * fileio.c (Fwrite_region): Fix conditional expression to issue
5963 the right message.
5964
b6189c3b 59652003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
5966
5967 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 5968 Set default value to 1.
0e7d7aae 5969
5d551295
KH
59702003-08-15 Kenichi Handa <handa@m17n.org>
5971
5972 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
5973 what autoscaled.
5974 (best_matching_font): Once we find a better scalable font, set
5975 non_scalable_has_exact_height_p to 1.
5976 (try_font_list): Call try_alternative_families to try any family
5977 with the given registry.
5978
1661e56b
AS
59792003-08-09 Andreas Schwab <schwab@suse.de>
5980
f29181dc
AS
5981 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
5982
1661e56b
AS
5983 * print.c (print_string): Fix printing of multibyte string with
5984 nontrivial printcharfun.
5985
465aa50a
JD
59862003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5987
5988 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
5989
5990 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
5991
e430e5ba
KH
59922003-07-31 Kenichi Handa <handa@m17n.org>
5993
5994 * process.c (read_process_output): Return the actually read bytes
5995 instead of the result of decoding.
5996
97e7188e
KH
59972003-07-31 Kenichi Handa <handa@m17n.org>
5998
5999 * xterm.h (struct x_bitmap_record): New member have_mask.
6000
6001 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6002 to 0.
6003 (x_create_bitmap_from_file): Likewise.
6004 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6005 (x_destroy_all_bitmaps): Likewise.
6006 (x_create_bitmap_mask): Set have_mask member to 1.
6007
b53094d6
RS
60082003-07-30 Richard M. Stallman <rms@gnu.org>
6009
6010 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6011
631f2082
JD
60122003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6013
6014 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6015
c855f2ca
RS
60162003-07-29 Richard M. Stallman <rms@gnu.org>
6017
6018 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6019 Conditionalize XIM code on HAVE_XIM.
6020
6021 * fns.c (Fclear_string): New function.
6022 (syms_of_fns): defsubr it.
6023
b6189c3b 60242003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6025
0930c1a1 6026 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6027
29ea8ae9
SM
60282003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6029
6030 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6031
6032 * buffer.c (delete_all_overlays): New function.
6033 * buffer.h (delete_all_overlays): Declare.
6034 * coding.c (run_pre_post_conversion_on_str):
6035 * print.c (temp_output_buffer_setup):
6036 * fileio.c (Finsert_file_contents):
6037 * minibuf.c (get_minibuffer): Use it.
6038
1dd7ccf2
AC
60392003-07-22 Andrew Choi <akochoi@shaw.ca>
6040
6041 * unexmacosx.c (unexec_regions_sort_compare):
6042 (unexec_regions_merge): New functions. Sort and merge unexec
6043 regions before dumping them.
6044
f57bd967
DL
60452003-07-22 Dave Love <fx@gnu.org>
6046
6047 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6048
7cdee936
SM
60492003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6050
6051 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6052 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6053 MARKBIT as the gcmarkbit for strings.
6054
e50886d3
RS
60552003-07-21 Richard M. Stallman <rms@gnu.org>
6056
6057 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6058
29ea8ae9 6059 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6060 (syms_of_fns): Corresponding change.
6061
6062 * alloc.c (syms_of_alloc): Doc fixes.
6063
60642003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6065
6066 * s/netbsd.h: Use -Wl syntax.
6067
fdc39b59
RS
60682003-07-17 Richard M. Stallman <rms@gnu.org>
6069
6070 * xterm.c (xim_initialize): Redo 6/24 change.
6071
9c53385f
SM
60722003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6073
6074 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6075 (Fswitch_to_buffer): Don't signal an error when switching to the same
6076 buffer in a dedicated window.
6077
6078 * alloc.c: Use bitmaps for cons, as was done for floats.
6079 (init_float, init_cons): Let the normal code allocate the first block.
6080 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6081 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6082 New macros.
6083 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6084 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6085 (live_cons_p): Check the pointer is not past the `conses' array.
6086 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6087 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6088 (survives_gc_p): Use CONS_MARKED_P and simplify.
6089 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6090
dde13196
PE
60912003-07-13 Paul Eggert <eggert@twinsun.com>
6092
6093 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6094 puts it into BSS instead, at least on Solaris 8 and 9.
6095 This is a valid optimization, and it may occur on other platforms,
6096 so Emacs should not assume that initializing a static variable to
6097 zero puts it into data.
6098 * alloc.c (pure, staticvec):
6099 Initialize these arrays to nonzero, so that they're not
6100 put into BSS by that optimization.
6101
a801bc34
SM
61022003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6103
6104 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6105 (lisp_align_malloc): Use posix_memalign is available.
6106 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6107 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6108 for consistency. Update users.
6109
0c8b2afa
RS
61102003-07-13 Richard M. Stallman <rms@gnu.org>
6111
6112 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6113
668c2ab0
JB
61142003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6115
6116 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6117 and use the Gtk+ function gtk_window_icon_from_file if available.
6118
6119 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6120 handle mask of bitmaps.
6121 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6122 mask property.
6123 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6124
6125 * xterm.h (xg_set_icon): New function.
6126
800bebe3
RS
61272003-07-12 Paul Eggert <eggert@twinsun.com>
6128
6129 * unexelf.c (unexec): Consider a section to precede the .bss
6130 section if its addresses overlap that of .bss.
6131
69e38995
RS
61322003-07-12 Richard M. Stallman <rms@gnu.org>
6133
6134 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6135
6136 * config.in (HAVE_CRTIN): Add #undef.
6137 (INLINE): Really inline only if OPTIMIZE is defined.
6138
6139 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6140 END_FILES_1.
6141 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6142 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6143
6144 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6145 (TERMINFO): Define.
6146 (LIBS_TERMCAP): Define.
6147 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6148
6149 * xfns.c: Include libpng/png.h instead of png.h.
6150
f1d0c238
AS
61512003-07-11 Andreas Schwab <schwab@suse.de>
6152
6153 * buffer.c (modify_overlay): Update prototype.
6154 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6155 Likewise.
6156
5f6bf5fe
SM
61572003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6158
6159 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6160 (struct interval): Move to intervals.h.
6161 (struct Lisp_Marker): Use EMACS_INT for position info.
6162 (forward_point): Remove prototype of defunct function.
6163 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6164 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6165 (syms_of_textprop, set_text_properties): Remove prototypes that are
6166 already in intervals.h.
6167
6168 * intervals.h (struct interval): Move from lisp.h.
6169 Use EMACS_INT for position and size info.
6170
6171 * coding.c: Include intervals.h for Fset_text_properties.
6172
6173 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6174 position and length information.
6175
2765b457
SM
61762003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6177
6178 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6179 position and length information.
6180
2410d73a
SM
61812003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6182
6183 Change overlays_after and overlays_before so the overlays themselves
6184 are linked into lists, rather than using cons cells. After all each
6185 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6186 Lisp_Overlay for free and save up one cons cell per overlay (not
6187 to mention one indirection when traversing the list of overlay).
6188
6189 * lisp.h (struct Lisp_Overlay): New field `next'.
6190
6191 * buffer.h (struct buffer): Change overlays_before and overlays_after
6192 from Lisp lists of overlays to pointers to overlays.
6193
6194 * buffer.c (overlay_strings, recenter_overlay_lists):
6195 Fix typo in eassert in last commit.
6196 (unchain_overlay): New function.
6197 (add_overlay_mod_hooklist): Use AREF.
6198 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6199 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6200 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6201 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6202 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6203 Adjust to new type of overlays_(before|after).
6204
6205 * alloc.c (mark_object): Mark the new `next' field of overlays.
6206 (mark_buffer): Manually mark the overlays_(after|before) fields.
6207
6208 * coding.c (run_pre_post_conversion_on_str):
6209 * editfns.c (overlays_around):
6210 * xdisp.c (load_overlay_strings):
6211 * fileio.c (Finsert_file_contents):
6212 * indent.c (current_column):
6213 * insdel.c (signal_before_change, signal_after_change):
6214 * intervals.c (set_point_both):
6215 * print.c (temp_output_buffer_setup): Use new type for
6216 overlays_(before|after).
6217
04812929
SM
62182003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6219
6220 * buffer.c (report_overlay_modification): Don't run hooks while
6221 traversing the list of overlays.
6222
6223 * buffer.h (struct buffer): Use an int for overlay_center.
6224 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6225 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6226
6227 * buffer.c (reset_buffer, recenter_overlay_lists)
6228 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6229 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6230 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6231 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6232 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6233
6234 * xdisp.c (fast_find_position): Remove unused var.
6235
6236 * cmds.c (Qexpand_abbrev): New sym.
6237 (syms_of_cmds): Initialize it.
6238 (internal_self_insert): Use it to call expand-abbrev.
6239
2e7ecf15
KS
62402003-07-09 Kim F. Storm <storm@cua.dk>
6241
f9711de4 6242 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6243 was configured with --without-xim.
42f81f64 6244 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6245
c6de56a0
RS
62462003-07-07 Richard M. Stallman <rms@gnu.org>
6247
6248 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6249
6250 * alloc.c (Fgarbage_collect): Doc fix.
6251
b6189c3b 62522003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6253
6254 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6255
bfe1a3f7
SM
62562003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6257
04812929
SM
6258 * minibuf.c (read_minibuf): UNGCPRO before returning.
6259 (Ftry_completion, Fall_completions): Doc fix.
6260
bfe1a3f7
SM
6261 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6262 now that `floats' is not the last element of the struct any more.
6263
ee79d1aa
JR
62642003-07-06 Jason Rumney <jasonr@gnu.org>
6265
6266 * w32term.h (ClipboardSequence_Proc): New type.
6267
6268 * w32fns.c (clipboard_sequence_fn): New variable.
6269 (globals_of_w32fns): Initialize it.
6270
6271 * w32select.c (last_clipboard_sequence_number): New variable.
6272 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6273 number if possible.
6274
49723c04
SM
62752003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6276
4698665f
SM
6277 * m/amdx86-64.h (MARKBIT):
6278 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6279 MARKBIT and ARRAY_MARK_FLAG any more.
6280
6281 * m/hp800.h (XSETMARKBIT):
6282 * m/sr2k.h (XSETMARKBIT):
6283 * lisp.h (XSETMARKBIT): Remove unused macro.
6284
49723c04
SM
6285 * lisp.h (mark_object): Change prototype.
6286
6287 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6288 (last_marked): Change accordingly.
6289 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6290 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6291 (mark_buffer): Update calls to mark_object.
6292
6293 * bytecode.c (mark_byte_stack):
6294 * fns.c (sweep_weak_table):
6295 * keyboard.c (mark_kboards): Update calls to mark_object.
6296
1d660eca
JR
62972003-07-06 Jason Rumney <jasonr@gnu.org>
6298
6299 * alloc.c (struct ablock): Only include padding when there is some.
6300
618b5ae4
SM
63012003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6302
6303 * alloc.c (ALIGN): Add casts to simplify usage.
6304 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6305 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6306 (struct ablock, struct ablocks): New types.
6307 (free_ablock): New global var.
6308 (lisp_align_malloc, lisp_align_free): New functions.
6309 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6310 (struct float_block): Reorder and add gcmarkbits.
6311 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6312 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6313 (init_float, make_float): Use lisp_align_malloc.
6314 (free_float, live_float_p): Don't use `type' any more.
6315 (make_float): Use FLOAT_UNMARK to access to mark bit.
6316 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6317 Use FLOAT_MARKED_P to access the mark bit.
6318 (pure_alloc): Simplify use of ALIGN.
6319 (mark_object): Use FLOAT_MARK to access the mark bit.
6320 (gc_sweep): Use new macros to access the float's mark bit.
6321 (init_alloc_once): Init free_ablock.
6322
6323 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6324
3ef06d12
SM
63252003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6326
6327 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6328 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6329 (allocate_buffer): Move.
6330 (string_bytes): Don't mask markbit of `size_byte'.
6331 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6332 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6333 Use the `size' field of buffers (rather than the `name' field) for
6334 the mark bit, as is done for all other vectorlike objects.
6335 Use the new macros to access the mark bit of vectorlike objects.
6336
e81043aa
RS
63372003-06-26 Richard M. Stallman <rms@gnu.org>
6338
6339 * puresize.h (BASE_PURESIZE): Increment base size.
6340
6341 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6342
6343 * xterm.c (xim_initialize): Undo previous change.
6344
2d0834cc
SM
63452003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6346
6347 * alloc.c (survives_gc_p): Simplify.
6348
6349 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6350
6351 * window.c (Fset_window_dedicated_p): Simplify.
6352 (display_buffer_1): Don't raise the win from which minibuf was entered.
6353 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6354 (Fminibuffer_selected_window): Simplify.
6355
6356 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6357
6358 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6359 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6360
6361 * insdel.c (check_markers, adjust_markers_for_delete)
6362 (adjust_markers_for_insert, adjust_markers_for_replace)
6363 (prepare_to_modify_buffer, RESTORE_VALUE):
6364 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6365 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6366 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6367 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6368 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6369 * editfns.c (save_excursion_restore, transpose_markers):
6370 * window.c (delete_window):
6371 * xdisp.c (message_dolog): Update for new types.
6372
d54ae3d8
JD
63732003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6374
a5f696ac
JD
6375 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6376 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6377 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6378
6379 * frame.c (make_frame): Initialize default_face_done_p.
6380
6381 * frame.h (struct frame): Add default_face_done_p.
6382
d54ae3d8
JD
6383 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6384 will be defined.
6385
2336fe58
SM
63862003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6387
6388 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6389 Initialize the new field `gcmarkbit'.
6390 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6391 (mark_interval_tree): Don't mark the tree separately from the nodes.
6392 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6393 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6394 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6395
6396 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6397 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6398 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6399 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6400 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6401
bcea31c2
DL
64022003-06-24 Dave Love <fx@gnu.org>
6403
6404 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6405
6406 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6407 from gnulib.
6408
2601f59e
RS
64092003-06-21 Richard M. Stallman <rms@gnu.org>
6410
6411 * fileio.c (Fwrite_region): Alternate messages
6412 for append and partial write.
6413
6414 * keyboard.c (read_key_sequence): When converting upcase fn key to
6415 downcase, update fkey and keytran so `backspace' gets translated.
6416
6417 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6418
6419 * process.c (wait_reading_process_input): Don't signal SIGIO
6420 in batch mode.
6421
b5d2c621
KH
64222003-06-17 Kenichi Handa <handa@m17n.org>
6423
6424 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6425 composite.h.
6426
6427 * xselect.c: Don't include charset.h, coding.h, composite.h.
6428 (Qforeign_selection): New variable.
6429 (syms_of_xselect): Intern and static it.
6430 (selection_data_to_lisp_data): Return a unibyte string made from
6431 data with `foreign-selection' text property.
6432
6793bc63
SM
64332003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6434
6435 * termhooks.h (EVENT_INIT): New macro.
6436
6437 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6438
6439 * alloc.c (mark_kboards): Move to keyboard.c.
6440
6441 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6442 * xterm.c (x_dispatch_event):
6443 * xmenu.c (find_and_call_menu_selection):
6444 * xdisp.c (handle_tool_bar_click):
6445 * w32menu.c (menubar_selection_callback):
6446 * sysdep.c (kbd_input_ast, read_input_waiting):
6447 * msdos.c (dos_rawgetc):
6448 * macterm.c (mac_check_for_quit_char):
6449 * macmenu.c (menubar_selection_callback):
6450 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6451 data to kbd_buffer_store_event.
6452
b3ea810c
KS
64532003-06-15 Kim F. Storm <storm@cua.dk>
6454
6455 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 6456 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 6457
b8f75eda
KG
64582003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6459
6460 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6461
ba92ce48
KH
64622003-06-12 Kenichi Handa <handa@m17n.org>
6463
6464 * fileio.c (Fwrite_region): Save and restore restriction.
6465
b80263be
DL
64662003-06-12 Dave Love <fx@gnu.org>
6467
6468 * alloca.c (alloca): Declare arg as size_t.
6469
6793bc63
SM
6470 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6471 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 6472
b23c0a83
DL
64732003-06-11 Dave Love <fx@gnu.org>
6474
6475 * search.c (shrink_regexp_cache): Use xrealloc.
6476 (syms_of_search): Use xmalloc.
6477
700e47c2
KS
64782003-06-10 Kim F. Storm <storm@cua.dk>
6479
6480 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6481 Adjust phys_cursor.x to be relative to window box, rather than
6482 text area before checking -- to ensure cursor is redrawn when
6483 exposing window.
6484 Note: This also fixes a similar (older) bug if display margins
6485 are present.
6486
f11aa0b2
KH
64872003-06-06 Kenichi Handa <handa@m17n.org>
6488
6489 * coding.c (encoding_buffer_size): If coding->type is
6490 coding_type_ccl, double magnification on CRLF encoding.
6491
3d143690
JR
64922003-06-06 Jason Rumney <jasonr@gnu.org>
6493
6494 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6495 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6496
6497 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6498 Mac too.
6499
f16205ca
DL
65002003-06-05 Dave Love <fx@gnu.org>
6501
b23c0a83
DL
6502 * strftime.c: Merge changes from gnulib.
6503
f16205ca
DL
6504 * mktime.c (__mktime_internal): Merge changes from gnulib
6505 involving year 69 and dst2.
6506
6507 Changes to merge with gnulib version and be consistent with the
6508 autoconf test:
6509
6793bc63
SM
6510 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6511 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
6512 [HAVE_LOCALE_H]: Include locale.h.
6513 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6514
9b87a0bc
KS
65152003-06-05 Kim F. Storm <storm@cua.dk>
6516
6517 * window.c (coordinates_in_window): Convert X and Y to window
6518 relative coordinates inside mode-line and header-line parts.
6519 Convert X and Y to margin area relative coordinates inside left
6520 and right display margin parts.
6521
5a8a15ec
JR
65222003-06-05 Jason Rumney <jasonr@gnu.org>
6523
6524 * w32fns.c (add_system_logical_colors_to_map): New function.
6525 (Fx_open_connection): Use it.
6526
01ed8ff1
SM
65272003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6528
6529 * process.c (allocate_pty): Revert part of the previous patch.
6530 (Faccept_process_output): Simplify.
6531
b427b65d
JR
65322003-06-04 Jason Rumney <jasonr@gnu.org>
6533
6534 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6535
6536 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6537 (lispy_mouse_wheel_names): Remove.
6538 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6539 Always define drag_and_drop_syms.
6540
6541 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6542 WHEEL_EVENT events.
6543
914a8c47
SM
65442003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6545
01ed8ff1
SM
6546 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
6547
914a8c47
SM
6548 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
6549
adcb132c
JD
65502003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6551
6552 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
6553 menu item label.
6554
be781fa7
RS
65552003-06-03 Richard M. Stallman <rms@gnu.org>
6556
6557 * window.c (Fwindow_edges): Doc fix.
6558 (Fwindow_pixel_edges, Fwindow_inside_edges)
6559 (Fwindow_inside_pixel_edges): New functions.
6560 (syms_of_window): defsubr them.
6561
6562 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
6563 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
6564
914a8c47
SM
65652003-06-02 Stefan Monnier <monnier@cs.yale.edu>
6566
6567 * dispnew.c (Fsit_for): Don't lie about the number of args.
6568
5b07197a
DL
65692003-06-02 Dave Love <fx@gnu.org>
6570
6571 * callproc.c: Use HAVE_FCNTL_H, not USG5.
6572 (syms_of_callproc) <process-environment>: Doc fix.
6573
6574 * doc.c: Use HAVE_FCNTL_H, not USG5.
6575
6576 * xfaces.c (font_rescale_ratio): Fix for K&R.
6577
6578 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
6579
6580 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
6581
6582 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
6583
6584 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
6585 (xg_create_frame_widgets): Use ENCODE_UTF_8.
6586
d7107586 6587 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
6588
6589 * xmenu.c (ENCODE_MENU_STRING): New.
6590 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
6591 Use it.
6592
6593 * coding.h (ENCODE_UTF_8): New.
6594 (Qutf_8): Declare.
6595
6596 * coding.c (Qutf_8): New.
6597 (syms_of_coding): Intern it.
6598
6599 * fns.c: Doc fixes.
6600
7335b336
KH
66012003-06-02 Kenichi Handa <handa@m17n.org>
6602
6603 * buffer.c (Fset_buffer_multibyte): Fix previous change.
6604
914a8c47
SM
66052003-06-01 Stefan Monnier <monnier@cs.yale.edu>
6606
6607 * lread.c (openp): Make sure STR is a string.
6608
9862c135
JR
66092003-06-01 David Ponce <david@dponce.com>
6610
cab27d04 6611 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
6612 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
6613
6614 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
6615 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
6616 (discard_mouse_events): Discard WHEEL_EVENT events too.
6617 (lispy_wheel_names, wheel_syms): New.
6618 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 6619 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 6620 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
6621
6622 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
6623 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6624 WHEEL_EVENT events.
6625
f984e73e
JPW
66262003-05-31 John Paul Wallington <jpw@gnu.org>
6627
6628 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
6629 timer are in lisp/emacs-lisp.
6630
1efcd78f
KH
66312003-05-31 Kenichi Handa <handa@m17n.org>
6632
458c8af4
KH
6633 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
6634 region when a buffer is changed to unibyte.
6635
1efcd78f
KH
6636 * charset.h (VALID_LEADING_CODE_P): New macro.
6637 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
6638
778e2804
KH
6639 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
6640 is nonzero, accept multibyte form of eight-bit-control chars.
6641 (decode_composition_emacs_mule): Likewise.
6642 (decode_coding_emacs_mule): Likewise.
6643 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
6644 multibyte form of eight-bit-control chars.
6645
6646 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
6647 (Finsert_file_contents): If coding-system-for-read is bound to
6648 Qauto_save_coding, use the coding system emacs-mule with special
6649 setting for recovering a file.
6650 (choose_write_coding_system): On auto saving, use the coding
6651 system emacs-mule with special setting for auto saving.
6652 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
6653
034060e4
KH
66542003-05-30 Kenichi Handa <handa@m17n.org>
6655
6656 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
6657 properly before calling ccl_driver.
6658
778e2804 6659 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 6660
cab27d04 6661 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
6662 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
6663 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
6664
595f5aa5
GM
66652003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
6666
6667 * xfaces.c (realize_default_face): Do not abort if lface is
6668 non-existent - reverts change from 2003-05-19.
6669
103e0180
KH
66702003-05-29 Kenichi Handa <handa@m17n.org>
6671
6672 * coding.c (decode_coding_iso2022): Pay attention to the byte
6673 sequence of CTEXT extended segment, and retain those bytes as is.
6674
66752003-05-28 Kenichi Handa <handa@m17n.org>
6676
cab27d04 6677 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
6678 of CODING_REPLACEMENT_CHARACTER.
6679 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
6680 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
6681 check this flag on encoding.
cab27d04
SM
6682 (encode_coding_sjis_big5):
6683 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
6684 (Fset_terminal_coding_system_internal):
6685 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
6686 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
6687
6688 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
6689 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
6690 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
6691
ff6a3bfb 66922003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 6693
ff6a3bfb
RS
6694 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
6695
6696 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 6697
1963c428
KS
66982003-05-28 Kim F. Storm <storm@cua.dk>
6699
6700 * xdisp.c (expose_window): Fix error in calculation of
6701 window relative coordinates of area to redisplay.
6702
2b5d4601
JR
67032003-05-27 Jason Rumney <jasonr@gnu.org>
6704
6705 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
6706
1c64a4a2
JB
67072003-05-27 David Ponce <david@dponce.com>
6708
6709 Handle W32 mouse wheel events as mouse click events, like in X.
6710
6711 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
6712 MOUSE_WHEEL_EVENT anymore.
6713
6714 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
6715 Scrolling down/up the mouse wheel is respectively mapped to mouse
6716 button 4 and 5.
6717 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6718 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
6719 WM_MOUSEWHEEL events.
6720
2d031b89
AS
67212003-05-27 Andreas Schwab <schwab@suse.de>
6722
20464fdf
AS
6723 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
6724
2d031b89
AS
6725 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
6726 partially visible line.
6727
6728 * alloc.c (Fgarbage_collect): Fix last change.
6729
97bc76d4
JPW
67302003-05-26 John Paul Wallington <jpw@gnu.org>
6731
6732 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
6733
56613f06
SM
67342003-05-25 Stefan Monnier <monnier@cs.yale.edu>
6735
6736 * window.c (Fset_window_buffer): Add type of `keep_margins'.
6737 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
6738
6739 * window.h (window_box_text_cols): Declare.
6740
6741 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
6742 (x_draw_vertical_border): Remove unused var `f'.
6743
6744 * xfaces.c (build_scalable_font_name): Remove `unused var
6745 pixel_size' warning.
6746
6747 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
6748
6749 * unexelf.c (unexec): Remove `unused var n' warning.
6750
6751 * strftime.c (my_strftime_localtime_r): Remove `defined but
6752 unused' warning.
6753
6754 * process.c (allocate_pty): Remove `unused var stb' and
6755 `cp might be used uninitialized' warnings.
6756
6757 * dispnew.c (mode_line_string): Remove unused var `f'.
6758
6759 * coding.c (find_safe_codings): Remove unused var `i'.
6760
6761 * bytecode.c (Fbyte_code): Remove `unused val' warning.
6762
6763 * buffer.c (Fkill_buffer): Remove unused var `list'.
6764
6765 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
6766
93421a1f
JD
67672003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6768
6769 * frame.c (make_frame): Condition want_fullscreen with
6770 HAVE_WINDOW_SYSTEM.
6771
c4b8aebc
JB
67722003-05-25 Juanma Barranquero <lektu@terra.es>
6773
6774 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
6775 (Fwindow_scroll_bars): Fix typo in docstring.
6776
0416870b
KS
67772003-05-24 Kim F. Storm <storm@cua.dk>
6778
6779 The following changes serve several purposes:
6780
6781 1) Swap the position of fringes and display margins in windows, i.e.
6782 the fringes are now displayed between the margins and the text area
6783 (by default).
6784
6785 2) Allow fringe and scroll bar parameters to be set per-buffer and
6786 per-window (like display margins). Such settings are now stored
6787 in window configurations, preserved when frames are resized, and
9018a88e 6788 copied when windows are split vertically or horizontally.
0416870b
KS
6789 Several bugs related to display margins have been fixed.
6790
6791 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 6792
0416870b
KS
6793 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
6794 rather than FRAME_WIDTH (FRAME_FONT (f)).
6795
6796 5) Introduce a consistent naming of variables, members and macros
6797 depending on whether their value is measured in pixels or in
6798 canonical columns/lines. Pixel dimensions are named *_width and
6799 *_height, while canonical columns/lines are named *_cols and
6800 *_lines. Pixel positions are named *_x and *_y, while column/line
6801 positions are named *_col and *_line.
6802
6803 6) Consolidate more of the X, W32, and MAC gui code by moving
6804 common data into struct frame, and generalize it for the non-gui
6805 case by using suitable defaults.
6806
6807 7) Cleanup and consolidate the macros controlling frame and window
6808 layout into frame.h and window.h, and generalize the use of the
6809 various window_box_* functions (enhanced to handle the new fringe
6810 position and the per-window fringe and scroll bar settings).
6811
6812 * frame.h (struct frame): Rename members height to text_lines,
6813 width to text_cols, window_height to total_lines, window_width to
6814 total_cols, new_height to new_text_lines, new_width to
6815 new_text_cols. All uses changed.
6816 (struct frame): New members which consolidate common members of
6817 x_output, w32_output, and mac_output structures: left_pos,
6818 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
6819 win_gravity, size_hint_flags, border_width, internal_border_width,
6820 line_height, fringe_cols, left_fringe_width, right_fringe_width,
6821 want_fullscreen. All uses changed.
6822 (struct frame): New member column_width contaning the canonical
6823 column width, analogue to line_height. All uses changed.
6824 (struct frame): Rename members scroll_bar_pixel_width to
6825 config_scroll_bar_width, and scroll_bar_cols to
6826 config_scroll_bar_cols. All uses changed.
6827 (struct frame): New member scroll_bar_actual_width which
6828 consolidates and renames the vertical_scroll_bar_extra member of
6829 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 6830 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
6831 from x/w32/macterm.h files. All uses changed. Also change code
6832 which referred to f->output_data...->pixel_height.
cab27d04 6833 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 6834 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 6835 which referred to f->output_data...->pixel_width.
cab27d04 6836 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 6837 Also change code which referred to f->height.
cab27d04 6838 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
6839 Also change code which referred to f->width.
6840 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
6841 to update new_text_lines and new_text_cols members directly.
cab27d04 6842 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 6843 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 6844 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
6845 FRAME_SCROLL_BAR_COLS. All uses changed.
6846 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 6847 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
6848 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
6849 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
6850 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
6851 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
6852 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
6853 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
6854 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
6855 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
6856 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
6857 Unconditionally return line_height member (it now has proper value
6858 also for non-window frames).
6859 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
6860 return new column_width member (rather than the default font width).
6861 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 6862 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
6863 from x/w32/macterm.h files. Unconditionally return corresponding
6864 member of frame structure (they now have proper values also for
6865 non-window frames).
cab27d04 6866 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
6867 Calculate return value from left and right widths.
6868 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
6869 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
6870 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
6871 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
6872 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
6873 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
6874 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 6875 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 6876 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 6877 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 6878 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 6879 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 6880 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 6881 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 6882 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 6883 consolidated from x/mac/w32term.h.
cab27d04 6884 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 6885 consolidated from x/mac/w32term.h.
cab27d04 6886 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 6887 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 6888 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
6889 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
6890
6891 * window.h (struct window): Rename members left to left_col,
6892 top to top_line, height to total_lines, width to total_cols,
6893 left_margin_width to left_margin_cols, right_margin_width to
6894 right_margin_cols, orig_height to orig_total_lines, orig_top to
6895 orig_top_line. All uses changed.
6896 (struct window): New members left_fringe_width, right_fringe_width,
6897 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
6898 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
6899 New macros primarily used to simplify other macros.
6900 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
6901 referred to XINT (w->width).
6902 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
6903 referred to XINT (w->height).
6904 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
6905 referred to XINT (w->width) * canon_x_unit.
6906 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
6907 referred to XINT (w->height) * canon_y_unit.
6908 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
6909 referred to XINT (w->left).
cab27d04 6910 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
6911 all uses and code that referred to XINT (w->left) + XINT (w->width).
6912 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
6913 referred to XINT (w->top).
6914 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
6915 referred to XINT (w->top) + XINT (w->height).
6916 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
6917 referred to XINT (w->left) * canon_x_unit.
6918 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
6919 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
6920 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
6921 referred to XINT (w->top) * canon_y_unit.
6922 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
6923 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
6924 (WINDOW_LEFTMOST_P): New macro.
cab27d04 6925 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 6926 All uses changed.
cab27d04 6927 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 6928 All uses changed.
cab27d04 6929 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
6930 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
6931 Do not exclude left fringe width.
cab27d04 6932 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
6933 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
6934 Do not exclude fringe widths.
6935 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
6936 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
6937 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
6938 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
6939 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
6940 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
6941 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
6942 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
6943 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
6944 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
6945 New macros. Change code which referenced corresponding
6946 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
6947 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
6948 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
6949 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
6950 allow per-window scroll-bar settings.
6951 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
6952 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
6953 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
6954 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
6955 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
6956 FRAME_SCROLL_BAR_WIDTH.
6957 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 6958 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 6959 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 6960 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 6961 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 6962 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 6963 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
6964 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
6965 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6966 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
6967 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
6968 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 6969 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 6970 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
6971 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6972 (window_from_coordinates): Update prototype.
6973 (Fset_window_buffer): Update EXFUN.
6974 (set_window_buffer): Update prototype.
9018a88e 6975
0416870b 6976 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 6977 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
6978 changed.
6979 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
6980 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
6981 internal_border_width is now set to 0 for non-window frames.
6982 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
6983 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
6984 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
6985 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
6986 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
6987 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6988 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6989 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
6990 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 6991 Move to window.h and renamed [see window.h changes].
0416870b
KS
6992 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
6993 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
6994 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
6995 Use WINDOW_TOTAL_LINES.
0416870b
KS
6996 (frame_update_line_height): Remove prototype.
6997
6998 * buffer.h (struct buffer): Rename members measured in columns:
6999 left_margin_width to left_margin_cols, right_margin_width to
7000 right_margin_cols. All uses changed.
7001 New members left_fringe_width, right_fringe_width,
7002 fringes_outside_margins for per-buffer fringe settings.
7003 New members scroll_bar_width and vertical_scroll_bar_type for
7004 per-buffer scroll bar settings.
7005
7006 * buffer.c (init_buffer_once): Set buffer_defaults and
7007 buffer_local_flags for new buffer-local variables
7008 left_fringe_width, right_fringe_width, fringes_outside_margins,
7009 scroll_bar_width, and vertical_scroll_bar_type.
7010 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7011 default-* variables for them.
7012
7013 * dispnew.c: Make (many) trivial substitutions for renamed and
7014 new macros in dispextern.h, frame.h and window.h.
7015 (mode_line_string): No need to adjust width for mode lines, as it
7016 is already adjusted by the caller.
7017 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7018
0416870b
KS
7019 * frame.c: Make (many) trivial substitutions for renamed and
7020 new macros in dispextern.h, frame.h and window.h.
7021 (make_frame): Initialize left_fringe_width, right_fringe_width,
7022 fringe_cols, scroll_bar_actual_width, border_width,
7023 internal_border_width, column_width, line_height, x_pixels_diff,
7024 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7025 members with values suitable for a non-window frames.
7026
7027 * gtkutil.c: Make (many) trivial substitutions for renamed and
7028 new macros in dispextern.h, frame.h and window.h.
9018a88e 7029
0416870b
KS
7030 * indent.c: Make (few) trivial substitutions for renamed and
7031 new macros in dispextern.h, frame.h and window.h.
7032
7033 * keyboard.c: Make (many) trivial substitutions for renamed and
7034 new macros in dispextern.h, frame.h and window.h.
7035 (make_lispy_event): Use window positions returned from
7036 window_from_coordinates when constructing the lisp event for
7037 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7038 (incorrect) values locally.
7039 (make_lispy_movement): Use window positions returned from
7040 window_from_coordinates when constructing the lisp event, rather
7041 than calculating (incorrect) values locally.
7042
7043 * scroll.c: Make (some) trivial substitutions for renamed and
7044 new macros in dispextern.h, frame.h and window.h.
7045
7046 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7047 scroll-bars.
7048
7049 * sysdep.c: Make (few) trivial substitutions for renamed and
7050 new macros in dispextern.h, frame.h and window.h.
7051
7052 * term.c: Make (some) trivial substitutions for renamed and
7053 new macros in dispextern.h, frame.h and window.h.
7054
7055 * widget.c: Make (few) trivial substitutions for renamed and
7056 new macros in dispextern.h, frame.h and window.h.
7057
7058 * window.c: Make (many) trivial substitutions for renamed and
7059 new macros in dispextern.h, frame.h and window.h.
7060 (make_window): Initialize new members
7061 left_margin_cols, right_margin_cols, left_fringe_width,
7062 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7063 and vertical_scroll_bar_type.
cab27d04 7064 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7065 and per-window fringes and scroll-bars.
0416870b 7066 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7067 frame's internal_border_width (the effect normally negible since
0416870b
KS
7068 the internal_border_width is typically 0 or 1 pixel, but very
7069 noticeable for an internal_border_width of e.g. 25 pixels).
7070 Upon successful return (other than ON_NOTHING), the coordinates
7071 are now always properly converted to window relative for the
7072 given display element.
7073 (window_from_coordinates): Add new parameters wx and wy to
7074 return the window relative x and y position in the returned
7075 window and part. A null arg means, don't return the position.
7076 All callers changed.
7077 (adjust_window_margins): New function which may reduce the width
7078 of the display margins if a window's text area is too small after
7079 resizing or splitting windows.
7080 (size_window): Fix bug that did not account for display margin
7081 widths when checking the minimum width of a window; use
7082 adjust_window_margins.
7083 (set_window_buffer): Call Fset_window_fringes and
7084 Fset_window_scroll_bars to setup per-window elements.
7085 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7086 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7087 (e.g. after splitting a window or resizing the frame).
7088 All callers changed.
0416870b
KS
7089 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7090 (Fsplit_window): Duplicate original window's display margin,
7091 fringe, and scroll-bar settings; then call Fset_window_buffer with
7092 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7093 window to only preserve the display margins in one of the windows.
c4b8aebc 7094 When splitting horizontally, call adjust_window_margins on both
0416870b 7095 windows to ensure that the text area of the new windows is non too
f9711de4 7096 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7097 width of the split window was less than the width of the display
7098 margins.
cab27d04 7099 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7100 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7101 Fix bug that caused vertical separator to be subtracted also on
7102 window frames. Fix another bug that did not reduce the returned
7103 value by the columns used for display margins.
7104 (window_scroll_line_based): Fix bug related to scrolling too much
7105 when display margins are present (implicitly fixed by the fix to
7106 window_box_text_cols).
7107 (scroll_left, scroll_right): Fix bug related to scrolling too far
7108 by default when display margins are present (implicitly fixed by
7109 the fix to window_box_text_cols).
7110 (struct saved_window): Rename members left to left_col, top to
7111 top_line, width to total_cols, height to total_lines, orig_top to
7112 orig_top_line, orig_height to orig_total_lines. All uses changed.
7113 New members left_margin_cols, right_margin_cols,
7114 left_fringe_width, right_fringe_width, fringes_outside_margins,
7115 scroll_bar_width, and vertical_scroll_bar_type for saving
7116 per-window display elements.
7117 (Fset_window_configuration): Restore display margins, fringes,
7118 and scroll bar settings. This fixes a bug which caused display
7119 margins to be discarded when saving and restoring a window
7120 configuration.
7121 (save_window_save): Save display margins, fringes, and scroll bar
7122 settings. This fixes a bug which caused display margins to be
7123 discarded when saving and restoring a window configuration.
7124 (Fset_window_margins): Do nothing if display margins are not
7125 really changed. Otherwise, call adjust_window_margins to ensure
7126 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7127 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7128 the width of the window.
7129 (Fset_window_fringes): New defun to allow user to specifically set
7130 this window's fringe widths and position vs. display margins.
cab27d04 7131 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7132 (Fset_window_scroll_bars): New defun to allow user to specifically
7133 set this window's scroll bar width and position.
7134 (Fwindow_scroll_bars): New defun to return window's actual scroll
7135 bar settings.
7136 (compare_window_configurations): Also compare display margins,
7137 fringes, and scroll bar settings.
7138 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7139
7140 * xdisp.c: Make (many) trivial substitutions for renamed and
7141 new macros in dispextern.h, frame.h and window.h.
7142 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7143 and new fringe vs. display margin position. Note that returned
0416870b
KS
7144 value is no longer guaranteed to be a whole multiple of the frame
7145 column width, since per-window fringes may now be any width.
7146 (window_box_left_offset): New function like window_box_left, but
7147 value is relative to left border of window (rather than frame).
7148 (window_box_right_offset): New function like window_box_right,
7149 but value is relative to left border of window.
7150 (window_box_left): Adapt to per-window fringes and scroll bars,
7151 and new fringe vs. display margin position. Simplify by using
7152 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7153 (window_box): Allow null args for unnecessary return values;
7154 change/simplify relevant callers.
7155 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7156 and new fringe vs. display margin position.
7157 Use window_box_left_offset and window_box_right_offset
0416870b 7158 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7159 scroll bars, and new fringe vs. display margin position.
7160 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7161 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7162 fringe vs. display margin position.
7163 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7164 (redisplay_window): Adapt to per-window scroll bars.
7165 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7166 bars, and new fringe vs. display margin position.
7167 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7168 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7169 bars, and new fringe vs. display margin position. Fix bug which
7170 increased total width of full_width rows by width of scroll bars
7171 although window's total width already includes that.
7172 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7173 (expose_area): Simplify using window_box_left_offset.
7174 (x_draw_vertical_border): Handle per-window scroll bar settings,
7175 mixing windows with left, right and no scroll bars.
7176
7177 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7178 where it's used in x_list_fonts (for clarity).
7179 (frame_update_line_height): Remove unused function; functionality
7180 is now done directly when setting the default font in x_set_font.
7181
7182 * xfns.c: Make (many) trivial substitutions for renamed and
7183 new macros in dispextern.h, frame.h and window.h.
7184
7185 * xmenu.c: Make (some) trivial substitutions for renamed and
7186 new macros in dispextern.h, frame.h and window.h.
7187
7188 * xterm.h (struct x_output): Move members left_pos, top_pos,
7189 border_width, pixel_height, pixel_width, line_height,
7190 internal_border_width, vertical_scroll_bar_extra,
7191 left_fringe_width, right_fringe_width, fringe_cols,
7192 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7193 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7194 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7195 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7196 (PIXEL_WIDTH, PIXEL_HEIGHT)
7197 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7198 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7199 frame.h and renamed [see frame.h changes].
7200 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7201 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7202 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7203 and renamed [see frame.h changes].
9018a88e 7204
0416870b
KS
7205 * xterm.c: Make (several) trivial substitutions for renamed and
7206 new macros in dispextern.h, frame.h and window.h.
cab27d04 7207 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7208 (scroll_run): Adapt to new fringe position.
7209 (glyph_rect): Use window coordinates returned from
7210 window_from_coordinates rather than frame_to_window_pixel_xy.
7211 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7212 scroll-bars.
7213 (handle_one_xevent): Simplify a USE_GTK conditional.
7214 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7215 (fringes are now inside margins, i.e. always in the clipping area).
7216 All callers changed.
7217 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7218 directly, then call compute_fringe_widths. Don't call
7219 frame_update_line_height.
7220
7221 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7222 border_width, pixel_height, pixel_width, line_height,
7223 internal_border_width, vertical_scroll_bar_extra,
7224 left_fringe_width, right_fringe_width, fringe_cols,
7225 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7226 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7227 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7228 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7229 (PIXEL_WIDTH, PIXEL_HEIGHT)
7230 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7231 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7232 frame.h and renamed [see frame.h changes].
7233 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7234 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7235 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7236 and renamed [see frame.h changes].
9018a88e 7237
0416870b
KS
7238 * w32term.c: Make (several) trivial substitutions for renamed and
7239 new macros in dispextern.h, frame.h and window.h.
cab27d04 7240 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7241 (glyph_rect): Use window coordinates returned from
7242 window_from_coordinates rather than frame_to_window_pixel_xy.
7243 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7244 scroll-bars.
7245 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7246 (fringes are now inside margins, i.e. always in the clipping area).
7247 All callers changed.
7248 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7249 directly, then call compute_fringe_widths. Don't call
7250 frame_update_line_height.
7251
7252 * w32console.c: Make (few) trivial substitutions for renamed and
7253 new macros in dispextern.h, frame.h and window.h.
7254
7255 * w32fns.c: Make (many) trivial substitutions for renamed and
7256 new macros in dispextern.h, frame.h and window.h.
7257
7258 * w32menu.c: Make (few) trivial substitutions for renamed and
7259 new macros in dispextern.h, frame.h and window.h.
7260
7261 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7262 border_width, pixel_height, pixel_width, line_height,
7263 internal_border_width, vertical_scroll_bar_extra,
7264 left_fringe_width, right_fringe_width, fringe_cols,
7265 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7266 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7267 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7268 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7269 (PIXEL_WIDTH, PIXEL_HEIGHT)
7270 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7271 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7272 frame.h and renamed [see frame.h changes].
7273 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7274 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7275 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7276 and renamed [see frame.h changes].
9018a88e 7277
0416870b
KS
7278 * macterm.c: Make (several) trivial substitutions for renamed and
7279 new macros in dispextern.h, frame.h and window.h.
cab27d04 7280 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7281 (glyph_rect): Use window coordinates returned from
7282 window_from_coordinates rather than frame_to_window_pixel_xy.
7283 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7284 scroll-bars.
7285 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7286 (fringes are now inside margins, i.e. always in the clipping area).
7287 All callers changed.
7288 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7289 directly, then call compute_fringe_widths. Don't call
7290 frame_update_line_height.
7291
7292 * macfns.c: Make (several) trivial substitutions for renamed and
7293 new macros in dispextern.h, frame.h and window.h.
9018a88e 7294 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7295
7296 * macmenu.c: Make (few) trivial substitutions for renamed and
7297 new macros in dispextern.h, frame.h and window.h.
7298
7299 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7300 and line_height, and use corresponding new members in struct
7301 frame. All uses changed.
7302 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7303 superseeded by corresponding macros in frame.h.
7304
7305 * msdos.c: Make (several) trivial substitutions for renamed and
7306 new macros in dispextern.h, frame.h and window.h.
7307 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7308 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7309 (internal_terminal_init): No need to initialize line_height here;
7310 it now defaults to 1.
7311
9018a88e
SM
73122003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7313
7314 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7315 dropping `down' events.
7316
016bd3c0
AS
73172003-05-24 Andreas Schwab <schwab@suse.de>
7318
7319 * coding.c (find_safe_codings): Fix last change.
7320
4dacadcc
TTN
73212003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7322
7323 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7324
319830ce
SM
73252003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7326
9018a88e
SM
7327 * xdisp.c (display_mode_element): Increase max depth.
7328 Simplify the error handling code. Use a different error string
7329 for the case where we hit the depth limit.
7330
319830ce
SM
7331 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7332
7333 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7334
73352003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7336
7337 * intervals.c (get_local_map): Don't get char-property of previous
7338 point any more: get_pos_property already does it and better.
7339
c67de8ba
DL
73402003-05-21 Dave Love <fx@gnu.org>
7341
7342 [Merged from unicode branch.]
7343
7344 * xfns.c (x_window, x_window): Use use_xim.
7345
7346 * xterm.c (use_xim): Initialize.
7347 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7348 (x_term_init): Maybe set use_xim.
7349
7350 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7351
edd3ff1d
JR
73522003-05-21 Jason Rumney <jasonr@gnu.org>
7353
7354 * unexw32.c (_start): Remove _fmode initialization.
7355
7356 * emacs.c (main) [WINDOWSNT]: Move it here.
7357
463f55ee
DL
73582003-05-20 Dave Love <fx@gnu.org>
7359
7360 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7361
af253914
RS
73622003-05-19 Richard M. Stallman <rms@gnu.org>
7363
7364 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7365 as value for QCfont attribute.
7366 (realize_default_face): lface should already exist; crash if not.
7367 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7368
7369 * frame.c (Fignore_event): Doc fix.
7370
1d211019
KH
73712003-05-19 Kenichi Handa <handa@m17n.org>
7372
7373 * coding.c (decode_coding_string): Handle post-read-conversion
7374 even if the coding doesn't require decoding.
7375
4dd68254
RS
73762003-05-18 Richard M. Stallman <rms@gnu.org>
7377
7378 * callproc.c (Fcall_process_region): Doc fix.
7379
14d87dc9
SM
73802003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7381
deca5d96
SM
7382 * lread.c (Fload): Print a message if package is obsolete.
7383
14d87dc9
SM
7384 * window.c (Fselect_window): Add optional `norecord' arg.
7385 (select_window_1): Fold into Fselect_window.
7386 (select_window_norecord): New function.
7387 (temp_output_buffer_show): Use it. Preserve current buffer.
7388
7389 * window.h (Fselect_window): Update declaration.
7390
7391 * window.c (delete_window, Fother_window, Fset_window_configuration):
7392 * minibuf.c (read_minibuf):
7393 * macterm.c (x_new_focus_frame):
7394 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7395 * callint.c (Fcall_interactively):
7396 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7397
7398 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7399
78f52183
DK
74002003-05-17 David Kastrup <dak@gnu.org>
7401
7402 * process.c (read_process_output): Back out change from 2003-03-09.
7403
14d87dc9
SM
74042003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7405
7406 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7407
7408 * textprop.c (text_property_stickiness): New arg `buffer'.
7409
7410 * intervals.h (text_property_stickiness): New arg `buffer'.
7411 (get_pos_property): Declare.
7412
7413 * intervals.c (get_local_map): Use get_pos_property, to obey
7414 stickiness and empty overlays.
7415 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7416 (merge_properties, intervals_equal, merge_properties_sticky):
7417 Use XCAR, XCDR.
7418 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7419
1fd1cc2f
RS
74202003-05-17 Richard M. Stallman <rms@gnu.org>
7421
4f9f637a
RS
7422 * minibuf.c (read_minibuf): If buffer is empty, record the default
7423 in the history.
7424 (Fminibuffer_complete_word): When deleting the overlap, take account
7425 of its real position.
7426
7427 * fns.c (map_char_table): Fix previous change.
7428
1fd1cc2f
RS
7429 * syntax.c (find_defun_start):
7430 When open_paren_in_column_0_is_defun_start,
7431 return beginning of buffer.
7432
7433 * lisp.h (map_char_table): Declare added arg.
7434
7435 * fns.c (map_char_table): New arg TABLE gets the master table.
7436 All calls changed.
7437 Process default and inheritance, resorting to Faref if necessary.
7438
7439 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7440 (Faccessible_keymaps): Pass new arg to map_char_table.
7441
7442 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7443
7444 * casetab.c (set_case_table): Pass new arg to map_char_table.
7445
7446 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7447
7448 * lisp.h (specbinding_func): New typedef.
7449 (struct specbinding): Use specbinding_func, to put the `volatile'
7450 in the right place.
7451
7452 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7453 to avoid GCC warning.
14d87dc9 7454
b6189c3b 74552003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 7456
14d87dc9 7457 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 7458
35fb885d
SM
74592003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7460
7461 * keyboard.c (apply_modifiers): Don't fill the other cache.
7462
9a274fbd
SM
74632003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7464
c55b5fad
SM
7465 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7466
9a274fbd
SM
7467 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7468 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7469 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7470 (Fset_window_configuration, Fcurrent_window_configuration)
7471 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7472 (Fpos_visible_in_window_p, mark_window_cursors_off)
7473 (window_internal_height, window_internal_width, Frecenter)
7474 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7475 (replace_buffer_in_all_windows, init_window_once, init_window)
7476 (syms_of_window, keys_of_window): Move from lisp.h.
7477 * lisp.h: Move window.c declarations to window.h.
7478
7479 * bytecode.c: Include window.h.
7480 * emacs.c: Include window.h.
7481
14d87dc9 7482 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
7483 (keyremap): Add `parent' field.
7484 (keyremap_step): Use it. Remove `parent' argument.
7485 (read_key_sequence): Setup and use the new `parent' field.
7486
fd93e331
SM
74872003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7488
7489 * keyboard.c (adjust_point_for_property): Ensure termination.
7490
1c4001a1
SM
74912003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7492
7493 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7494 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7495 duplicated handling of function-key-map and key-translation-map
7496 in read_key_sequence.
7497 (read_key_sequence): Use them.
7498
7499 * keyboard.c (adjust_point_for_property): Try harder to move point
7500 to the non-sticky end of an invisible property.
7501
7502 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7503 property intangible as well.
7504
780379b1
AS
75052003-05-10 Andreas Schwab <schwab@suse.de>
7506
7507 * xmenu.c (single_menu_item): Change last parameter to void* to
7508 avoid warning.
7509
ca2de342
RS
75102003-05-09 Richard M. Stallman <rms@gnu.org>
7511
7512 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7513 Bind Qinhibit_modification_hooks to t so there will be no GC.
7514 Rename local `tem' to `save_deactivate_mark'.
7515
7516 * eval.c (specpdl_ptr): Declare volatile.
7517 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7518 before doing the work of unbinding it.
7519
7520 * lisp.h (struct specbinding): Declare elements volatile.
7521 (specpdl_ptr): Declare volatile.
7522
7523 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7524
7525 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7526 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7527
347003be
DL
75282003-05-08 Dave Love <fx@gnu.org>
7529
7530 * coding.c (Vlast_coding_system_used): Doc fix.
7531
5adcec23
JR
75322003-05-07 Jason Rumney <jasonr@gnu.org>
7533
7534 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7535 when system does not support them.
7536
5fe3b8a4
SM
75372003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7538
7539 * fileio.c (Qwrite_region_annotate_functions): New var.
7540 (build_annotations): Use it to process the global part of the hook.
7541 (syms_of_fileio): Init and staticpro it.
7542
7543 * keyboard.c (safe_run_hooks_error): Display a message instead of
7544 silently ignoring the error.
7545
75462003-05-03 Stefan Monnier <monnier@cs.yale.edu>
7547
7548 * keyboard.c (input_available_signal): Mark static.
7549 (menu_bar_items): Use map_keymap.
7550 (menu_bar_one_keymap): Remove.
7551 (menu_bar_item): Adjust arglist (for use in map_keymap).
7552 Properly hide a second binding when not both are keymaps.
7553
7554 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
7555 (single_keymap_panes): Use it and map_keymap.
7556 (single_menu_item): Use skp as well.
7557
7558 * keymap.h (map_keymap_function_t): New type.
7559 (map_keymap): Declare.
7560
7561 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
7562 (map_keymap_call, Fmap_keymap): New functions.
7563 (syms_of_keymap): Defsubr map-keymap.
7564
4b1b4443
JD
75652003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7566
7567 * gtkutil.c (create_dialog, make_widget_for_menu_item)
7568 (make_menu_item, create_menus, xg_update_menu_item): Don't call
7569 ..._with_mnemonic functions for menu items.
7570
1f816871
KH
75712003-05-01 Kenichi Handa <handa@m17n.org>
7572
7573 * coding.c (coding_system_accept_latin_extra_p): Delete this
7574 function.
7575 (find_safe_codings): Pay attention to
7576 the property tranlsation-table-for-encode of each codings.
7577 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
7578
5ed6ba5b
SM
75792003-05-01 Stefan Monnier <monnier@cs.yale.edu>
7580
7581 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
7582
32c06229
SM
75832003-04-30 Stefan Monnier <monnier@cs.yale.edu>
7584
7585 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
7586
7587 * lisp.h (CHECK): Wrap args in parenthesis.
7588 (specbind): Fix doc: symbol = Qnil is not supported any more.
7589
7590 * bytecode.c (Fbyte_code) <unwind-protect>:
7591 Use Fprogn rather than 0 and Qnil.
7592
7593 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
7594 `double', and `triple' modifiers as well.
7595
ed3c3314
RS
75962003-04-30 Richard M. Stallman <rms@gnu.org>
7597
7598 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
7599
7600 * alloc.c (abort_on_gc): New variable.
7601 (Fgarbage_collect): Abort if abort_on_gc is set.
7602
7603 * lisp.h (abort_on_gc): Add decl.
7604
7605 * eval.c (Fsignal): Clear abort_on_gc.
7606
7607 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 7608 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
7609
7610 * xdisp.c (move_it_vertically_backward): Do the final big else
7611 even if nlines is 0.
7612
7613 * xdisp.c (redisplay_internal): Finish the per-frame loop
7614 even if redisplay is suspended by input.
7615
0b325c12
AC
76162003-04-24 Andrew Choi <akochoi@shaw.ca>
7617
7618 * macterm.c (x_list_fonts): Return all fonts that match if
7619 maxnames = -1.
7620
4e837cd0
KH
76212003-04-25 Kenichi Handa <handa@m17n.org>
7622
7623 * syntax.c (skip_chars): Fix previous change.
7624
9af7511a
KH
76252003-04-24 Kenichi Handa <handa@m17n.org>
7626
7627 * syntax.c (skip_chars): Make the code faster by using the common
7628 technique of *p, *stop, and *endp.
7629
e3b2c21f
JD
76302003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7631
7632 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 7633 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
7634 being updated.
7635
32c06229
SM
76362003-04-19 Stefan Monnier <monnier@cs.yale.edu>
7637
7638 * eval.c (Fapply): Undo last change and add a comment about why.
7639
c6464167
MB
76402003-04-18 Miles Bader <miles@gnu.org>
7641
7642 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
7643 pickier PARSE_MULTIBYTE_SEQ.
7644
e509f168
SM
76452003-04-17 Stefan Monnier <monnier@cs.yale.edu>
7646
7647 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
7648 Use XCDR, XCAR, CONSP.
7649 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
7650 (Fapply): Remove unnecessary GCPRO.
7651
7652 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
7653
7654 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
7655
7656 * buffer.h: Don't hardcode BEG==1.
7657
7658 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
7659
5ceea398
RS
76602003-04-16 Richard M. Stallman <rms@gnu.org>
7661
7662 * xdisp.c (try_window, try_window_reusing_current_matrix):
7663 When at end of window, set window_end_pos to Z-ZV.
7664
7665 * buffer.c (Foverlay_recenter): Doc fix.
7666
e509f168
SM
76672003-04-14 Stefan Monnier <monnier@cs.yale.edu>
7668
7669 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
7670
d243e605
AC
76712003-04-14 Andrew Choi <akochoi@shaw.ca>
7672
7673 * macterm.c (mac_check_for_quit_char): Don't check more often than
7674 once a second.
7675
6901b111
SM
76762003-04-11 Stefan Monnier <monnier@cs.yale.edu>
7677
7678 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
7679 specially, so that they can't hide an implicit switch-frame event.
7680 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
7681 (head_table): Use switch-frame as event_kind for select-window.
7682 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
7683
7684 * editfns.c (Fformat): Lisp_Object/int mixup.
7685 (format2): Remove unused var numargs.
7686
e301806f 76872003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 7688
6901b111 7689 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
7690 (Qafter_insert_file_set_coding): New variable.
7691 (syms_of_fileio): Initialize and staticpro it. Delete declaration
7692 for after-insert-file-adjust-coding-function.
7693 (Finsert_file_contents): Call Qafter_insert_file_set_coding
7694 instead of Vafter_insert_file_adjust_coding_function.
7695
38914424
KH
76962003-04-11 Kenichi Handa <handa@m17n.org>
7697
7698 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
7699
7700 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
7701 string. Callers changed.
7702
77032003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 7704
6901b111 7705 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 7706 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
7707 (Finsert_file_contents):
7708 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
7709 decode-format.
7710
f979dc05
JD
77112003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7712
7713 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
7714 get GtkAdjustment as widget now is a GtkRange.
7715
7716 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
7717 GtkRange to avoid memory leak.
7718
f8c6b4c2 77192003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 7720
50ebc53d
KH
7721 * xfaces.c (Vface_font_rescale_alist): New variable.
7722 (struct font_name): New member rescale_ratio.
7723 (font_rescale_ratio): New function.
6901b111 7724 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
7725 (better_font_p): On comparing point sized, pay attention to
7726 recale_ratio member of fonts.
7727 (build_scalable_font_name): Reflect font->rescale_ratio in the
7728 font name.
6901b111 7729 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 7730
cb98871c
KH
7731 * lread.c (read1): Before calling index, check if the 2nd
7732 arguemnt is in ASCII range.
7733
4773b8ca
RS
77342003-04-08 Richard M. Stallman <rms@gnu.org>
7735
b0ada147
RS
7736 * fileio.c (Ffile_symlink_p): Doc fix.
7737
7738 * editfns.c (Fformat): Translate positions of text properties
7739 in the format string to apply them to the result.
7740
4773b8ca
RS
7741 * fileio.c (Finsert_file_contents): Doc fix.
7742 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
7743
77442003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 7745
4773b8ca
RS
7746 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
7747
e8f25745 77482003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 7749
e8f25745
ST
7750 * mac.c (init_mac_osx_environment): Switch libexec and bin so
7751 that self-contained application finds libexec files.
7752
f8c6b4c2 77532003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 7754
6901b111
SM
7755 * coding.c (code_convert_region_unwind):
7756 Set Vlast_coding_system_used to the argument.
2310d84c
KH
7757 (code_convert_region): If post-read-conversion function changed
7758 the value of last-coding-sytem, keep the new value in
7759 coding->symbol so that it won't be overridden.
7760 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
7761 (coding_system_accept_latin_extra_p): New function.
7762 (find_safe_codings): Pay attention to characters registered in
7763 latin-extra-code-table.
2310d84c 7764
39c9a034
TTN
77652003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
7766
7767 * Makefile.in (md5.o): Add missing dependency info.
7768
eb67c5d6
RS
77692003-04-06 Richard M. Stallman <rms@gnu.org>
7770
7771 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
7772
7773 * marker.c (verify_bytepos): New function.
7774
7775 * intervals.c (set_intervals_multibyte_1): When becoming
7776 multibyte, adjust right and left child sizes to a whole set of
7777 characters. If an interval gets zero total-length, delete it.
7778 If an interval consists of just its children, delete one of them.
7779
7780 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
7781 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 7782
eb67c5d6
RS
7783 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
7784 All calls deleted.
7785 (lisp_malloc): Do the work here directly.
7786
b1f81fc5
JB
77872003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
7788
7789 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
7790 char tables.
7791
77922003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
7793
7794 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
7795 destructively change "%S" to "%s".
7796
774666fb
MB
77972003-04-03 Miles Bader <miles@gnu.org>
7798
7799 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
7800 always set.
7801
19c37f01
DL
78022003-04-01 Dave Love <fx@gnu.org>
7803
7804 * xfns.c (xpm_lookup_color): Grok "opaque".
7805
2f4b24c3
AC
78062003-03-31 Andrew Choi <akochoi@shaw.ca>
7807
7808 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
7809 parent window ID.
7810
7811 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
7812
7813 * macterm.h (struct mac_output): Define x_pixels_diff and
7814 y_pixels_diff.
b1f81fc5 7815
9443fcf6
JB
78162003-03-31 Juanma Barranquero <lektu@terra.es>
7817
7818 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
7819 blockinput.h and files included from it.
7820
e072891b
KS
78212003-03-31 Kim F. Storm <storm@cua.dk>
7822
7823 The following changes consolidates the common code related to
7824 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
7825 files into frame.c.
9443fcf6 7826
e072891b
KS
7827 * frame.c: Include blockinput.h.
7828 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
7829 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
7830 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
7831 related vars here.
7832 (struct frame_parm_table, frame_parms): New table for describing
7833 frame parameters and their associated Q-variable.
7834 The order of the parameters corresponds to the sequence of the
7835 frame_parm_handlers table in redisplay_interface.
7836 (x_fullscreen_move, x_set_frame_parameters)
7837 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
7838 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
7839 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7840 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
7841 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
7842 Generic functions for processing of frame parameters.
7843 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
7844 (display_x_get_resource, x_get_resource_string): Functions for
7845 generic access to X resources.
7846 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7847 (x_default_parameter, Fx_parse_geometry): Functions for generic
7848 access to frame parameters.
6901b111
SM
7849 (x_figure_window_size): Generic calculation of frame size.
7850 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
7851 (syms_of_frame): Intern and staticpro frame parameter variables.
7852 Defvar_lisp Vx_resource_class and Vx_resource_name here.
7853 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 7854
e072891b
KS
7855 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
7856 parameter related vars defined in frame.c.
7857 (EMACS_CLASS): Define here.
7858 (enum FULLSCREEN_*): Define here.
7859 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
7860 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
7861 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
7862 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
7863 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
7864 (x_set_visibility, x_set_autoraise, x_set_autolower)
7865 (x_set_unsplittable, x_set_vertical_scroll_bars)
7866 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
7867 (x_figure_window_size): Add prototypes.
7868
7869 * dispextern.h (frame_parm_handler): New typedef.
7870 (struct redisplay_interface): New member frame_parm_handlers.
7871 (enum resource_types): Move declaration here.
7872 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7873 (x_default_parameter): Add prototypes.
7874
7875 * window.c: Remove extern decl for frame parameter vars.
7876 (change_window_heights): New generic function;
7877 replaces x_change_window_heights. All users changed.
7878
7879 * window.h (change_window_heights): Add prototype.
7880
7881 * xfaces.c: Remove extern decl for frame parameter vars.
7882
7883 * xterm.h (EMACS_CLASS): Remove. Use generic define.
7884 (struct w32_display_info): Fix type of xrdb member.
7885 (enum FULLSCREEN_*): Remove.
7886 Remove prototypes for generic functions (in frame.h).
7887
7888 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7889 parameters now defined in frame.h and frame.c.
f63fd14e 7890 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7891 (enum x_frame_parms): Remove (bogus, unused enum).
7892 (check_x_display_info): Make non-static (for frame.c).
7893 (struct x_frame_parm_table, x_frame_parms): Remove.
7894 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7895 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7896 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7897 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7898 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7899 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7900 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7901 Remove. Use generic functions instead.
7902 (enum resource_types): Remove.
7903 (x_set_scroll_bar_default_width): New global function (for frame.c).
7904 (Fx_create_frame): Depend on x_figure_window_size to add space for
7905 toolbar and setup size_hint_flags.
7906 (x_frame_parm_handlers): New table for redisplay_interface.
7907 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 7908
e072891b 7909 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 7910 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
7911 (x_redisplay_interface): Add x_frame_parm_handlers member.
7912
7913 * w32gui.h (XrmDatabase): New (dummy) typedef.
7914
7915 * w32term.h (EMACS_CLASS): Remove. Use generic define.
7916 (struct w32_display_info): Fix type of xrdb member.
7917 (enum FULLSCREEN_*): Remove.
7918 (x_fullscreen_adjust): Remove prototype.
7919
7920 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7921 parameters now defined in frame.h and frame.c.
f63fd14e 7922 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7923 (enum x_frame_parms): Remove (bogus, unused enum).
7924 (check_x_display_info): Make non-static (for frame.c).
7925 (struct x_frame_parm_table, x_frame_parms): Remove.
7926 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7927 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7928 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7929 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7930 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7931 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7932 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7933 Remove. Use generic functions instead.
7934 (enum resource_types): Remove.
7935 (x_set_scroll_bar_default_width): New global function (for frame.c).
7936 (Fx_create_frame): Depend on x_figure_window_size to add space for
7937 toolbar and setup size_hint_flags.
7938 (w32_frame_parm_handlers): New table for redisplay_interface.
7939 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 7940
e072891b
KS
7941 * w32term.c: Remove unnecessary extern declarations.
7942 (x_fullscreen_adjust): Remove. Use generic instead.
7943 (x_redisplay_interface): Add w32_frame_parm_handlers member.
7944
7945 * w32reg.c (x_get_string_resource): Use XrmDatabase.
7946
7947 * macgui.h (XrmDatabase): New (dummy) typedef.
7948
7949 * macterm.h (EMACS_CLASS): Remove.
7950 (struct mac_display_info): Add xrdb member.
7951 (struct mac_output): Add want_fullscreen member.
7952
7953 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7954 parameters now defined in frame.h and frame.c.
f63fd14e 7955 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7956 (check_x_display_info): Make non-static (for frame.c).
7957 (struct x_frame_parm_table, x_frame_parms): Remove.
7958 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7959 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7960 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7961 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7962 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7963 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7964 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7965 Remove. Use generic functions instead.
7966 (enum resource_types): Remove.
7967 (x_set_scroll_bar_default_width): New global function (for frame.c).
7968 (mac_frame_parm_handlers): New table for redisplay_interface.
7969 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 7970
e072891b
KS
7971 * macterm.c: Remove unnecessary extern declarations.
7972 (x_redisplay_interface): Add mac_frame_parm_handlers member.
7973
3e6a560b
KS
7974 * Makefile.in (frame.o): Add dependency on blockinput.h and files
7975 included from it (atimer.h and systime.h).
7976
7b7b454e
AS
79772003-03-30 Andreas Schwab <schwab@suse.de>
7978
7979 * xdisp.c (x_insert_glyphs): Fix swapped width and height
7980 parameters for shift_glyphs_for_insert.
7981
7982 * macterm.c (x_redisplay_interface): Add missing entry for
7983 draw_vertical_window_border.
7984
beb402de
KG
79852003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7986
7987 * fileio.c (Fexpand_file_name): In the no-handler case, after
7988 expanding, look again for a handler and invoke it. This is needed
7989 for filenames like "/foo/../user@host:/bar/../baz" -- the first
7990 expansion produces "/user@host:/bar/../baz" which needs to be
7991 expanded again for the finame result "/user@host:/baz".
7992
b676f356
JD
79932003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7994
7995 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
7996 of area to be redrawn for better performance.
7997
3c671a56
SM
79982003-03-28 Stefan Monnier <monnier@cs.yale.edu>
7999
8000 * xterm.c (take_vertical_position_into_account): Remove.
8001 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8002 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8003 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8004 (x_set_toolkit_scroll_bar_thumb): Simplify.
8005 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8006 (XTread_socket): Remove unused var.
8007 (x_make_frame_invisible): Replace goto with else.
8008
8009 * xdisp.c (set_vertical_scroll_bar): New fun.
8010 (redisplay_window): Use it.
8011
84f2e615
RS
80122003-03-26 Richard M. Stallman <rms@gnu.org>
8013
8014 * xdisp.c (update_tool_bar): Recompute tool bar if
8015 update_mode_lines is set. Set w->update_mode_line
8016 only if the tool bar contents actually change.
8017 (update_menu_bar): Undo previous change.
8018
70b6104c
JD
80192003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8020
5fd6f727
JD
8021 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8022 (xg_frame_set_char_size): Calculate scroll bar width before frame
8023 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8024 (xg_separator_p): Check for all documented separator types.
8025 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8026 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8027
70b6104c
JD
8028 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8029 so tool bar gets updated.
8030
d9b36d19
SM
80312003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8032
8033 * data.c (store_symval_forwarding): Re-instate part of the code
8034 that was deleted with too much enthusiasm.
8035
80362003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8037
8038 * data.c (store_symval_forwarding): Delete special read-only
8039 hack for type == -1, since we now use ->constant instead.
8040 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8041
8042 * buffer.c (overlays_in): Declare static.
8043 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8044 `constant' field rather than the variable's `type' field.
8045
365fa1b3
AC
80462003-03-24 Andrew Choi <akochoi@shaw.ca>
8047
8048 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8049
8050 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8051
8052 * fns.c [MAC_OSX]: Do not redefine vector.
8053
8054 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8055
8056 * macgui.h: Remove definition of No_Cursor.
8057
d9b36d19 8058 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8059
8060 * xdisp.c: Define No_Cursor.
8061 (x_write_glyphs, notice_overwritten_cursor)
8062 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8063 (note_mouse_highlight): Remove Mac-specific code.
8064 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8065
c0bcce6f
JPW
80662003-03-24 John Paul Wallington <jpw@gnu.org>
8067
8068 * xdisp.c (redisplay_window): If mini window's buffer is not
8069 empty, then redisplay it like other windows.
8070
a526b96c
KS
80712003-03-23 Kim F. Storm <storm@cua.dk>
8072
8073 * w32term.c (w32_draw_window_cursor): Fix last change.
8074
37ab321e
KH
80752003-03-23 Kenichi Handa <handa@m17n.org>
8076
a526b96c
KS
8077 * alloc.c (make_string_from_bytes, make_specified_string):
8078 Add `const' for the arg CONTENTS.
37ab321e
KH
8079
8080 * lisp.h (make_string_from_bytes, make_specified_string):
8081 Prototypes adjusted.
8082
7863d625
JD
80832003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8084
a526b96c 8085 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8086
7863d625
JD
8087 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8088 (XG_SB_RANGE): New define.
8089
8090 * gtkutil.c (xg_fixed_handle_expose): New function.
8091 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8092 expose events.
8093 (xg_update_scrollbar_pos): Take two more arguments, left and width
8094 of scroll bar including borders.
8095 Clear left and right part outside scroll bar separately as some
8096 themes have bars that are not an even number of pixels.
d9b36d19 8097 Don't set reallocate_redraws, don't call
7863d625
JD
8098 gdk_window_process_all_updates.
8099 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8100 so no need to change it. Calculate size and value with XG_SB_RANGE.
8101
d9b36d19
SM
8102 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8103 Pass left and width of scroll bar including borders to
7863d625
JD
8104 xg_update_scrollbar_pos.
8105
af0ad939
TTN
81062003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8107
8108 * Makefile.in: Make sure space precedes end-of-line backslashes.
8109
b22139fd
KS
81102003-03-22 Kim F. Storm <storm@cua.dk>
8111
8112 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8113 Add generic versions here. Remove system specific versions
8114 defined elsewhere.
8115
8116 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8117 Add prototypes.
8118
6e6410cf
KS
8119 * xterm.h (STORE_NATIVE_RECT): New macro.
8120
5c9cc435
KS
81212003-03-21 Kim F. Storm <storm@cua.dk>
8122
00c64fab
SM
8123 * xdisp.c (get_glyph_string_clip_rect):
8124 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8125
8126 * dispextern.h (struct redisplay_interface): Add active_p
8127 argument to draw_window_cursor member. All uses changed.
8128
acd37560
KS
81292003-03-21 Kim F. Storm <storm@cua.dk>
8130
8131 The following changes consolidate code related to writing and
8132 inserting glyphs, exposing frame, the tool bar, the mouse face,
8133 the output cursor, and help echo from xterm.c, w32term.c and
8134 macterm.c into xdisp.c. It also generalizes the use of the
8135 window_part enum instead of using numeric values throughout.
af0ad939 8136
acd37560
KS
8137 * xdisp.c: Consolidate gui-independent code here.
8138 Include keymap.h.
8139 (Qhelp_echo): Import.
8140 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8141 (help_echo_string, help_echo_window, help_echo_object)
8142 (previous_help_echo_string, help_echo_pos): Declare here.
8143 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8144 (estimate_mode_line_height): Define here. Handle windowing
8145 systems directly (without using estimate_mode_line_height_hook).
8146 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8147 (update_window_cursor, update_cursor_in_window_tree)
8148 (fast_find_position, fast_find_string_pos)
8149 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8150 (expose_area, expose_line, expose_overlaps, expose_window)
8151 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8152 declared static as they are only used locally in xdisp.c.
8153 (draw_glyphs): Rename from x_draw_glyphs and make static.
8154 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8155 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8156 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8157 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8158 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8159 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8160 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8161 (note_mouse_highlight, x_clear_window_mouse_face)
8162 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8163 (x_intersect_rectangles): New generic functions for use by xdisp.c
8164 and GUI front-ends.
8165 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8166 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8167
8168 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8169 (NativeRectangle): Generic typedef for rectangle type.
8170 (enum window_part): Move here from window.c.
8171 (struct redisplay_interface): New members flush_display_optional,
8172 define_frame_cursor, clear_frame_area, draw_window_cursor,
8173 draw_vertical_window_border, shift_glyphs_for_insert.
8174 Rename member clear_mouse_face to clear_window_mouse_face.
8175 (estimate_mode_line_height_hook): Remove hook.
8176 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8177 (tool_bar_item_info): Remove prototype.
8178 (help_echo_string, help_echo_window, help_echo_object)
8179 (previous_help_echo_string, help_echo_pos)
8180 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8181 (x_stretch_cursor_p, output_cursor): Declare extern.
8182 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8183 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8184 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8185 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8186 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8187 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8188 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8189 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8190 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8191 Add prototypes.
8192 (mode_line_string, marginal_area_string): Fix prototypes.
8193
8194 * window.c (enum window_part): Move to dispextern.h.
8195 (coordinates_in_window): Use enum window_part member names
8196 instead of numbers to describe return value.
8197 (struct check_window_data): Change part member to window_part.
8198 (check_window_containing): Return window_part unaltered.
8199 (window_from_coordinates): Change part arg from int to enum
8200 window_part. Allow part arg to be null. All users changed.
8201
8202 * window.h (window_from_coordinates): Fix prototype.
8203
8204 * term.c (estimate_mode_line_height): Move to xdisp.c.
8205
8206 * keyboard.c (make_lispy_event): Use enum window_part.
8207
8208 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8209 window_part instead of int in arg list. Users changed.
8210
8211 * xterm.h (No_Cursor): Declare as None for X.
8212 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8213
acd37560
KS
8214 * xterm.c: Remove consolidated defines and code.
8215 (BETWEEN): Remove unused macro.
8216 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8217 (x_define_frame_cursor, x_clear_frame_area)
8218 (x_draw_window_cursor): New X-specific functions for RIF.
8219 (x_redisplay_interface): Add new members.
8220
8221 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8222
8223 * w32term.h (struct w32_output): Remove cross_cursor member.
8224
8225 * w32term.c: Remove consolidated defines and code.
8226 (BETWEEN): Remove unused macro.
8227 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8228 (w32_define_frame_cursor, w32_clear_frame_area)
8229 (w32_draw_window_cursor): New W32-specific functions for RIF.
8230 (w32_redisplay_interface): Add new members.
8231
a64387ee 8232 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8233 (XRectangle): Add X compatible rectangle type.
8234 (NativeRectangle): Declare as RECT for W32.
8235 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8236
8237 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8238
8239 * w32console.c: Remove consolidated defines and code.
af0ad939 8240
acd37560
KS
8241 * msdos.h (Display_Info): Add generic typedef.
8242
8243 * msdos.c: Remove consolidated defines and code.
8244 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8245
8246 * macterm.h (struct mac_output): Replace member cross_cursor by
8247 hand_cursor.
8248 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8249
8250 * macterm.c: Remove consolidated defines and code.
8251 (BETWEEN): Remove unused macro.
8252 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8253 (mac_define_frame_cursor, mac_clear_frame_area)
8254 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8255 (x_redisplay_interface): Add new members.
8256
8257 * macgui.h (No_Cursor): Define as 0 for Mac.
8258 (XRectangle): Add X compatible rectangle type.
8259 (NativeRectangle): Declare as Rect for Mac.
8260 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8261
204ccab1
KS
8262 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8263 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8264
9443fcf6 8265 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8266 included from it. Add dependency on keymap.h.
8267
8268 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8269
8ba01a70 82702003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8271
8272 * fileio.c (Fexpand_file_name): Fix previous change.
8273
8ba01a70 82742003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8275
8276 * fileio.c (Ffile_name_directory): Reconstruct file name by
8277 make_specified_string.
8278 (Ffile_name_nondirectory, Ffile_name_as_directory)
8279 (Fdirectory_file_name, Fexpand_file_name)
8280 (Fsubstitute_in_file_name): Likewise.
8281 (Fread_file_name): Compare decoded homedir with DIR and
8282 DEFAULT_FILENAME.
8283
8284 * alloc.c (make_specified_string): If NCHARS is negative, count
8285 the number of characters.
8286
19536747
JD
82872003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8288
de38ae5a
JD
8289 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8290 all widgets.
8291
19536747
JD
8292 * gtkutil.h: Removed xg_ignore_next_thumb.
8293
37ab321e 82942003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8295
8296 * coding.c (Vchar_coding_system_table): Remove this variable.
8297 (Vcoding_system_safe_chars): New variable.
8298 (intersection): Remove this function.
8299 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8300 all codings in SAFE_CODINGS.
00c64fab 8301 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8302 find_safe_codings. Get generic coding systems from
8303 Vcoding_system_safe_chars.
8304 (Fdefine_coding_system_internal): New function.
8305 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8306 Initialize and staticpro Vcoding_system_safe_chars.
8307
17097258
JD
83082003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8309
2a2071c3
JD
8310 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8311 equal old values before updating.
8312
17097258
JD
8313 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8314
8315 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8316
83172003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8318
8319 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8320 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8321 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8322 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8323 (xg_create_scroll_bar): Pass bar to button event callback.
8324 (xg_find_top_left_in_fixed): New function.
8325 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8326 whole scroll bar area. Get old position with
8327 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8328 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8329 dragging is in progress. Calculate whole as for Motif.
8330 Remove code that saved last values. Call gtk_range functions to
8331 set scroll bar sizes.
8332
8333 * gtkutil.h: Removed xg_ignore_next_thumb.
8334
8cb9dfbf
JB
83352003-03-17 Juanma Barranquero <lektu@terra.es>
8336
8337 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8338 and files included from it.
8339
00c64fab
SM
83402003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8341
8342 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8343 multiple occurrences of the same keymap under different prefixes.
8344 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8345
c45bb3b2
JR
83462003-03-16 Jason Rumney <jasonr@gnu.org>
8347
8348 * w32gui.h: Use HDC for Display.
8349
8350 * w32term.c (w32_encode_char): Prevent double-byte chars from
8351 crashing Emacs.
8352
8353 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8354 as binary.
8355
2a6d0874
JB
83562003-03-16 Juanma Barranquero <lektu@terra.es>
8357
8358 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8359
03eb5fab
KS
83602003-03-16 Kim F. Storm <storm@cua.dk>
8361
8362 The following changes consolidate some of the gui-independent
8363 parts of the processing and drawing of "glyph strings" from
8364 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8365
03eb5fab
KS
8366 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8367 21 bits (this reduces number of faces from 4M to 2M).
8368 Replace W32 specific w32_font_type member (2 bits) by generic
8369 font_type member (3 bits) for portability.
8370 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8371 (enum draw_glyphs_face): Define here.
8372 (struct glyph_string): Define here. Merge W32 and X versions.
8373 (struct redisplay_interface): New members per_char_metric,
8374 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8375 (VCENTER_BASELINE_OFFSET): Define here.
8376 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8377 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8378
8379 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8380 (dump_glyph_string): Moved here.
8381 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8382 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8383 (fill_composite_glyph_string, fill_glyph_string)
8384 (fill_image_glyph_string, fill_stretch_glyph_string)
8385 (left_overwritten, left_overwriting, right_overwritten)
8386 (right_overwriting, get_char_face_and_encoding)
8387 (set_glyph_string_background_width, compute_overhangs_and_x)
8388 (append_glyph, append_composite_glyph, produce_image_glyph)
8389 (take_vertical_position_into_account, append_stretch_glyph)
8390 (produce_stretch_glyph): New generic functions (based on X version).
8391 Call platform specific functions through rif.
8392 (INIT_GLYPH_STRING): New macro, hides W32 details.
8393 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8394 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8395 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8396 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8397 (notice_overwritten_cursor):
8398 Generic functions exported to platform modules. Users changed.
8399
8400 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8401 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8402 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8403 New macros for consolidated code.
2a6d0874 8404
03eb5fab
KS
8405 * xterm.c: Remove consolidated defines and code.
8406 (x_per_char_metric, x_encode_char)
8407 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8408 (x_redisplay_interface): Add new members.
8409
8410 * w32gui.h (Display): Add dummy typedef for consolidation.
8411 (XChar2b): Define alias for wchar_t for consolidation.
8412 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8413
8414 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 8415 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
8416 New macros for consolidation.
8417
fad49844 8418 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
8419 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8420 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8421 (w32_per_char_metric): Change font_type arg to int for RIF.
8422 (w32_encode_char): Return int according to RIF requirements.
8423 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8424 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8425 x_get_glyph_overhangs.
8426 (w32_redisplay_interface): Add new members.
8427
8428 * macgui.h (XChar2b): Move typedef here for consolidation.
8429 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8430
8431 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8432 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8433 consolidation.
8434
8435 * macterm.c: Remove consolidated defines and code.
8436 (mac_per_char_metric): New function for RIF.
00c64fab 8437 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
8438 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8439 (x_redisplay_interface): Add new members.
8440
00c64fab
SM
84412003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8442
8443 * keymap.c (Vmenu_events): New var.
8444 (syms_of_keymap): Initialize it.
8445 (where_is_internal): Check more carefully what is a menu event.
8446
225c7a07
RS
84472003-03-14 Richard M. Stallman <rms@gnu.org>
8448
8449 * lread.c (read1): After #!, exit loop on eof.
8450
cea9be54
JD
84512003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8452
9ea0e54d
JD
8453 * gtkutil.h: Add declaration for xg_frame_cleared.
8454
0cb35f4e
JD
8455 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8456
cea9be54
JD
8457 * gtkutil.c (struct xg_last_sb_pos): New structure.
8458 (handle_fixed_child): New function.
8459 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8460 and force a redraw on them.
8461 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8462 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8463 so we can avoid unneeded redraws.
8464 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8465 and force a redraw on the scroll bar.
8466 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8467 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 8468 (xg_frame_cleared): New function.
cea9be54 8469
20b853f3
KH
84702003-03-13 Kenichi Handa <handa@m17n.org>
8471
8472 * coding.c (Fdetect_coding_region): Fix docstring.
8473 (Fdetect_coding_string): Fix docstring.
8474
7a555aff
AS
84752003-03-13 Andreas Schwab <schwab@suse.de>
8476
25cc0080
AS
8477 * gtkutil.c: Add prototype for create_menus.
8478
30225431
AS
8479 * data.c (long_to_cons): Fix type of top.
8480
8481 * xselect.c (selection_data_to_lisp_data): Use int instead of
8482 long for an integer of size 4.
8483
7a555aff 8484 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 8485 (xg_tool_bar_help_callback): Likewise.
7a555aff 8486
a3e4741f
AS
84872003-03-12 Andreas Schwab <schwab@suse.de>
8488
8489 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8490
9668be7c
KS
84912003-03-12 Kim F. Storm <storm@cua.dk>
8492
03eb5fab 8493 The following changes consolidate the fringe handling from
9668be7c 8494 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 8495
9668be7c
KS
8496 * xdisp.c: Consolidate fringe handling code here.
8497 (left_bits, right_bits, continued_bits, continuation_bits)
8498 (ov_bits, zv_bits): Define fringe bitmaps.
8499 (fringe_bitmaps): New array holding fringe bitmaps.
8500 (draw_fringe_bitmap): Draw a specific bitmap; call display
8501 specific drawing routine via rif->draw_fringe_bitmap.
8502 (draw_row_fringe_bitmaps): Generic replacement for
8503 x_draw_row_fringe_bitmaps; all callers changed.
8504 (compute_fringe_widths): Generic replacement for
8505 x_compute_fringe_widths; all callers changed.
8506
8507 * dispextern.h (enum fringe_bitmap_type): Define here.
8508 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8509 (fringe_bitmaps): Declare extern.
8510 (struct redisplay_interface): New member draw_fringe_bitmap.
8511 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8512
8513 * xterm.c: Remove generic fringe code.
8514 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8515 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8516
8517 * w32term.c: Remove generic fringe code.
8518 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8519 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 8520
9668be7c
KS
8521 * macterm.c: Remove generic fringe code.
8522 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8523 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8524
00a88f32
SM
85252003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8526
8527 * print.c (Fprin1_to_string): Return unibyte string if possible.
8528
1d1de695
DK
85292003-03-09 David Kastrup <dak@gnu.org>
8530
8531 * process.c (read_process_output): We have allocated enough space
8532 for readmax and carryover, so actually use the alloted space.
8533
257f40f2
JD
85342003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8535
8536 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8537 toolkit scrollbar click.
8538
8539 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8540 for USE_GTK.
8541 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8542 also.
8543 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8544 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 8545
78819ebb 8546 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
8547
8548 * gtkutil.c (xg_get_scroll_id_for_window): New function.
8549 (xg_tool_bar_item_expose_callback): New function.
8550 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
8551 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
8552 on the tool bar widget.
8553 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
8554 to expose on the tool bar item widgets.
8555
15213141
JD
85562003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8557
26b74a0b 8558 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 8559 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
8560 deleted from the image cache).
8561
15213141
JD
8562 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
8563 the event isn't for a frame (i.e. for dialogs).
8564
20b853f3 85652003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
8566
8567 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
8568 composition components reaches the limit, terminate composing.
8569 (COMPOSITION_OK): New macro.
00a88f32 8570 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
8571 composition is found.
8572 (coding_restore_composition): Adjust the number of composition
8573 components if it is not sane.
8574
c9029fe5
JB
85752003-03-06 Juanma Barranquero <lektu@terra.es>
8576
8577 * w32term.h (struct w32_display_info): Add xrdb member to support
8578 passing resources via -xrm on Windows.
8579
8580 * w32term.c (w32_make_rdb): New function.
8581 (w32_term_init): Use it to initialize xrdb member of w32_display_info
8582 struct. Delete leftover code.
8583
8584 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
8585 for resources passed on the command line.
8586
8587 * w32reg.c (w32_get_rdb_resource): New function.
8588 (x_get_string_resource): Use it, so resources passed with -xrm
8589 supercede the ones in the registry.
8590
9d00001f
JD
85912003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8592
8593 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
8594 instead of x_top_window_to_frame.
8595
ca2417b9
JD
85962003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8597
8598 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
8599 when restarting Emacs.
8600
5b20caf0
RS
86012003-03-03 Richard M. Stallman <rms@gnu.org>
8602
8603 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
8604 to run kill-buffer-query-functions.
8605 (Qkill_buffer_query_functions): New var.
8606 (syms_of_buffer): Init and staticpro it.
8607
58e91b77
JD
86082003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8609
8610 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
8611
932357b4
KS
86122003-02-25 Kim F. Storm <storm@cua.dk>
8613
8614 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
8615 If centering point failed to make whole line visible and vscroll
8616 is non-zero, disable vscroll and try centering point again.
8617
8618 * lread.c (read1): Accept `single space' syntax like (? x).
8619
bb8db7e1
JD
86202003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8621
8622 * keyboard.c (cancel_hourglass_unwind): Surround with
8623 #ifdef HAVE_X_WINDOWS
8624
47d77aab
KH
86252003-02-25 Kenichi Handa <handa@m17n.org>
8626
8627 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
8628 process only when "subprocesses" is defined.
8629
6a097c0c
SM
86302003-02-24 Stefan Monnier <monnier@cs.yale.edu>
8631
8632 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
8633
0b063c27
JB
86342003-02-24 Juanma Barranquero <lektu@terra.es>
8635
d1135afc
JB
8636 * callint.c (fix_command): Declare as static void and move before
8637 Fcall_interactively.
8638
0b063c27
JB
8639 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
8640 (syms_of_xdisp): Don't initialize Qwhen.
8641
0af912f0
JD
86422003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8643
8644 * keyboard.c (cancel_hourglass_unwind): New function.
8645 (command_loop_1): Cancel hourglass with unwind-protect.
8646
120d0a23
RS
86472003-02-23 Richard M. Stallman <rms@gnu.org>
8648
8649 * callint.c (fix_command): New subroutine, from Fcall_interactively.
8650 Detect (when ... (region-beginning)) etc.
8651 (Fcall_interactively): Call fix_command.
8652 (Qif, Qwhen): New variables.
8653 (syms_of_callint): Init and staticpro them.
0b063c27 8654
120d0a23
RS
8655 * regex.c (print_partial_compiled_pattern): Output to stderr.
8656
4ece81a6
KG
86572003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8658
8659 * dired.c (directory_files_internal): Don't expand directory.
8660 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
8661 instead. From Lars Hansen <larsh@math.ku.dk>.
8662
e52bd6b7
SM
86632003-02-22 Stefan Monnier <monnier@cs.yale.edu>
8664
8665 * fns.c (string_to_multibyte): Remove unused var i.
8666 (Flanginfo): Fix int/Lisp_Object mixup.
8667 (void_call2): New fun.
8668 (Fmap_char_table): Use it in place of call2.
8669
8670 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
8671
8672 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
8673
8674 * keymap.c (copy_keymap_1): Make it static.
8675
8676 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
8677
c33ef7c4
JB
86782003-02-22 David Ponce <david@dponce.com>
8679
8680 * lread.c (Fload): Don't check STRING_MULTIBYTE.
8681
16782258
JD
86822003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8683
8684 * process.h: Removed subtty field from struct Lisp_Process.
8685
8686 * process.c (create_process): Remove setting of subtty.
8687 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
8688 (Fprocess_running_child_p, process_send_signal):
8689 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
8690 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
8691
3abeca61
KG
86922003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8693
8694 * keymap.c (Fdefine_key): Doc fix.
8695
92a8ce63
JB
86962003-02-21 Juanma Barranquero <lektu@terra.es>
8697
8698 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
8699
8700 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
8701 POLLING_PROBLEM_IN_SELECT.
8702
8703 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
8704 Delete #undef of POLLING_PROBLEM_IN_SELECT.
8705
8706 * s/hpux10-20.h: New file.
8707
e52bd6b7
SM
8708 * process.c (wait_reading_process_input):
8709 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 8710
20f1ef2e
KH
87112003-02-20 Kenichi Handa <handa@m17n.org>
8712
32d0a9dc
KH
8713 * fontset.c (check_fontset_name): If NAME is nil, return the
8714 default fontset.
8715 (override_font_info): New function.
e52bd6b7 8716 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
8717 (Ffontset_info): If FONTSET is not the default fontset, merge
8718 FONTSET onto the copy of the default fontset, and work on that
8719 copy. Document that NAME nil means the default fontset.
8720 (Ffontset_font): Document that NAME nil means the default fontset.
8721
20f1ef2e
KH
8722 * process.c (setup_process_coding_systems): If the process's
8723 in/out descriptor is -1, do nothing.
8724
77d1daf2
AS
87252003-02-19 Andreas Schwab <schwab@suse.de>
8726
e52bd6b7
SM
8727 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
8728 Add prototypes.
77d1daf2 8729
f9a45bb3
KH
87302003-02-19 Kenichi Handa <handa@m17n.org>
8731
8732 * xfaces.c (try_alternative_families): Try all scalable fonts if
8733 Vscalable_fonts_allowed is not Qt.
8734
72ecb43c
JD
87352003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8736
8737 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
8738
ee5be7c3
JD
87392003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8740
8741 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
8742 names.
8743
8744 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 8745 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
8746 x_face_list_fonts.
8747 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
8748 (Fx_list_fonts): Set maxnames to -1 to get all font names.
8749
4cd519a7
KS
87502003-02-18 Kim F. Storm <storm@cua.dk>
8751
068f9882
KS
8752 * lread.c (read1): Fix last change.
8753 "`" is not always special. Allow "?" after a character constant.
4cd519a7 8754
7290a344
AC
87552003-02-18 Andrew Choi <akochoi@shaw.ca>
8756
8757 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
8758
1f7fa69b
AS
87592003-02-18 Andreas Schwab <schwab@suse.de>
8760
8761 * window.c (window_scroll_pixel_based): Move outside a
8762 multi-glyph character before setting new window start.
8763
8764 * xdisp.c (in_display_vector_p): New function.
8765 * dispextern.h (in_display_vector_p): Declare.
8766
23e21195
KS
87672003-02-18 Kim F. Storm <storm@cua.dk>
8768
8769 * lread.c (read1): Fix and relax read syntax.
8770 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
8771 Only recognize "," after dotted-pair dot if inside backquote.
8772 Never include "`" or "," (inside backquote) in a symbol.
8773 Allow dotted-pair dot after a character constant.
8774 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 8775
f098b121
JD
87762003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8777
8778 * gtkutil.c (xg_tool_bar_expose_callback): New function.
8779 (xg_create_tool_bar): Force style of tool bar to be horizontal with
8780 icons. Set name of tool bar to emacs-toolbar.
8781 (update_frame_tool_bar): Connect expose event to
8782 xg_tool_bar_expose_callback.
8783
63020c46
RS
87842003-02-17 Richard M. Stallman <rms@gnu.org>
8785
8786 * keyboard.c (this_command_key_count_reset): New variable.
8787 Initiatize to 0 where this_command_key_count is set.
8788 (read_char): Save and restore this_command_key_count_reset
8789 around input method code.
8790 (read_char): If this_command_key_count_reset, echo reread commands.
8791 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
8792
fb4452cc
KH
87932003-02-17 Kenichi Handa <handa@m17n.org>
8794
8795 * fns.c (string_to_multibyte): Always return a multibyte string.
8796
bd11cc09
JR
87972003-02-16 Jason Rumney <jasonr@gnu.org>
8798
e52bd6b7
SM
8799 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
8800 Negative max_fonts parameter means list all.
bd11cc09 8801
4cdf4bde
DL
88022003-02-14 Dave Love <fx@gnu.org>
8803
8804 * fns.c (Flanginfo): Doc fix.
8805
023b93f6
KS
88062003-02-13 Kim F. Storm <storm@cua.dk>
8807
37cd4238
KS
8808 * lread.c (read_escape): Interpret \s as a SPACE character, except
8809 for \s-X in a character constant which still is the super modifier.
8810 (read1): Signal an `invalid read syntax' error if a character
8811 constant is immediately followed by a digit or symbol character.
8812
140a6b7e
KS
8813 * search.c (Fmatch_data): Doc fix. Explicitly state that
8814 match-data is undefined if last search failed.
8815
023b93f6
KS
8816 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
8817 All uses changed.
8818
7d5c86e5
JB
88192003-02-12 Juanma Barranquero <lektu@terra.es>
8820
8821 * eval.c (Fdefmacro): Fix typo.
8822
295fff2c
KS
88232003-02-12 Kim F. Storm <storm@cua.dk>
8824
8825 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
8826 macro is a string, convert meta modifiers in string when copying
8827 the string into a vector.
8828
60f3202d
KS
88292003-02-11 Kim F. Storm <storm@cua.dk>
8830
8831 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
8832
61cb0b53
KH
88332003-02-11 Kenichi Handa <handa@m17n.org>
8834
8835 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
8836
7392e23c
KS
88372003-02-10 Kim F. Storm <storm@cua.dk>
8838
8839 * process.c: Doc fixes.
8840 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
8841
ce4254bd
KH
88422003-02-10 Kenichi Handa <handa@m17n.org>
8843
9c7a329a
KH
8844 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
8845
ce4254bd
KH
8846 * process.c (QCfilter_multibyte): New variable.
8847 (setup_process_coding_systems): New function.
e52bd6b7
SM
8848 (Fset_process_buffer, Fset_process_filter):
8849 Call setup_process_coding_systems.
ce4254bd
KH
8850 (Fstart_process): Initialize the member `filter_multibyte' of
8851 struct Lisp_Process.
8852 (create_process): Call setup_process_coding_systems.
8853 (Fmake_network_process): New keyward `:filter-multibyte'.
8854 Initialize the member `filter_multibyte' of struct Lisp_Process.
8855 Call setup_process_coding_systems.
8856 (server_accept_connection): Call setup_process_coding_systems.
8857 (read_process_output): If the process has a filter, decide the
8858 multibyteness of a string to given to the filter by
8859 `filter_multibyte' member of the process. If the process doesn't
8860 have a filter and the result of conversion is unibyte, use
8861 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
8862 multibyte form.
8863 (Fset_process_coding_system): Call setup_process_coding_systems.
8864 (Fset_process_filter_multibyte): New function.
8865 (Fprocess_filter_multibyte_p): New function.
8866 (syms_of_process): Intern and staticpro QCfilter_multibyte.
8867 Defsubr Sset_process_filter_multibyte and
8868 Sprocess_filter_multibyte_p.
8869
8870 * process.h (struct Lisp_Process): New member filter_multibyte.
8871
8872 * lisp.h (setup_process_coding_systems): Add prototype.
8873
8874 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
8875 process, update coding systems for the process.
8876
b08d5f59
KH
88772003-02-09 Kenichi Handa <handa@m17n.org>
8878
8879 * fns.c (string_to_multibyte): New function.
8880 (Fstring_to_multibyte): New function.
8881 (syms_of_fns): Defsubr it.
8882
0dfd93c0
AS
88832003-02-08 Andreas Schwab <schwab@suse.de>
8884
8885 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
8886 instead of the substitution.
8887
7b76ca1c
JD
88882003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8889
8890 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
8891
8892 * xmenu.c (menu_position_func): Adjust menu popup position so that
8893 the menu is fully visible.
7b76ca1c 8894
2436a4e4
JD
88952003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8896
8897 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
8898 (x_make_frame_invisible, x_wm_set_icon_position):
8899 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
8900
8901 * xfns.c (x_set_name, x_set_title): Ditto.
8902
37d1e680
RS
89032003-02-04 Richard M. Stallman <rms@gnu.org>
8904
8905 * keyboard.c (echo_now): Update before_command_echo_length.
8906 (Freset_this_command_lengths): Reset this_command_key_count etc.
8907 immediately rather than arranging to do it later.
8908 (before_command_key_count_1, before_command_echo_length_1)
8909 (before_command_restore_flag): Vars deleted.
8910 (add_command_key): Don't handle before_command_restore_flag.
8911 (read_char, record_menu_key): Don't update before_command_key_count or
8912 before_command_echo_length.
8913 (read_char): Don't handle before_command_restore_flag.
8914
8915 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
8916 in direct-output clauses if it wouldn't be called in the ordinary case.
8917
578846a3
KS
89182003-02-04 Kim F. Storm <storm@cua.dk>
8919
8920 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
8921
49853a4d
JD
89222003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8923
8924 * gtkutil.c (remove_from_container): Copying list is not needed.
8925 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
8926 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
8927 on list returned from gtk_container_get_children to avoid memory leak.
8928
8b53dc06
JR
89292003-02-01 Jason Rumney <jasonr@gnu.org>
8930
5d54d177
JR
8931 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
8932 local malloc.
8933 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
8934 definitions in xpm.h.
8935 (init_xpm_functions): New function.
f63fd14e 8936 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
8937 (init_external_image_libraries): Try to load libXpm.dll.
8938
8b53dc06
JR
8939 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
8940 timestamp.
8941
b222e415
DL
89422003-01-31 Dave Love <fx@gnu.org>
8943
8944 * syntax.c (Fskip_chars_forward)
8945 (open-paren-in-column-0-is-defun-start): Doc fix.
8946
c60ee5e7
JB
89472003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
8948
8949 * fileio.c: Support // at start of name for Cygwin (just added proper
8950 preprocessor tests).
8951
8952 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
8953
8954 * Makefile.in: Use @EXEEXT@ for Cygwin.
8955
8956 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
8957
8958 * s/cygwin.h: Added for Cygwin port.
8959
53b37591
JB
89602003-01-31 Juanma Barranquero <lektu@terra.es>
8961
8962 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
8963 when including gif_lib.h.
fe929957 8964 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
8965 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
8966 Windows. Disable color table lookups. Call library functions
53b37591 8967 through pointers determined at runtime.
fe929957
JB
8968 (init_external_image_libraries): Try to load libungif.dll and
8969 libtiff.dll.
53b37591 8970
45415a8f
KH
89712003-01-31 Kenichi Handa <handa@m17n.org>
8972
8973 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 8974 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 8975
a97e4138
JD
89762003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8977
e52bd6b7 8978 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 8979
6eed9bed
DL
89802003-01-30 Dave Love <fx@gnu.org>
8981
8982 * alloc.c (Vgc_elapsed, gcs_done): New variables.
8983 (Fgarbage_collect): Use them.
8984 (init_alloc, syms_of_alloc): Set them up.
8985
100dcd40
JB
89862003-01-30 Juanma Barranquero <lektu@terra.es>
8987
8988 * w32fns.c (init_external_image_libraries): Add missing operator.
8989
fbd852af
JR
89902003-01-29 Jason Rumney <jasonr@gnu.org>
8991
8992 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
8993 an alternative name for jpeg.dll.
8994
8a2d8020
KH
89952003-01-29 Kenichi Handa <handa@m17n.org>
8996
8997 * xdisp.c (set_cursor_from_row): Pay attention to string display
8998 properties.
8999
058c18c7
AC
90002003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9001
9002 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9003 <escape>.
9004 (keycode_to_xkeysym_table): Reformat and add more comments.
9005 (XTread_socket): Drop special case for backspace.
9006
385f11cf
AC
90072003-01-28 Andrew Choi <akochoi@shaw.ca>
9008
9009 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9010 values in old-style RGB specs.
9011
c922a224
JB
90122003-01-27 Juanma Barranquero <lektu@terra.es>
9013
9014 * w32fns.c (init_external_image_libraries): Try alternate names for the
9015 jpeg dll.
9016
0a1d6de0
JD
90172003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9018
9019 * gtkutil.c (create_dialog, xg_separator_p)
9020 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9021 before calling strcmp or strlen.
9022
a97e4138 90232003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9024
9025 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9026 and handle image load failure.
9027
28908312
JR
90282003-01-26 Jason Rumney <jasonr@gnu.org>
9029
9030 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9031 New functions.
f63fd14e
JB
9032 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9033 Disable color table lookups. Call jpeg library functions
28908312
JR
9034 through pointers determined at runtime.
9035 (init_external_image_libraries): Try to load jpeg.dll.
9036
84e47416
RS
90372003-01-25 Richard M. Stallman <rms@gnu.org>
9038
9039 * lisp.h: Declare format2 instead of format1.
9040
9041 * fileio.c (barf_or_query_if_file_exists):
9042 Call format2 instead of format1.
9043
9044 * editfns.c (format2): New function, replaces format1
9045 but takes exactly two Lisp Objects as format args.
9046
9047 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9048
a97e4138 90492003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9050
9051 * xterm.h: Change to return value of x_dispatch_event to int.
9052
9053 * xterm.c (x_filter_event): New function.
9054 (event_handler_gdk, XTread_socket): Call x_filter_event.
9055 (x_dispatch_event): Change to return value of finish.
9056 (event_handler_gdk): Use return value from x_dispatch_event.
9057
9058 * xfns.c (x_window): Call create_frame_xic for GTK version to
9059 initialize input methods.
9060
9061 * gtkutil.h: Add (void) prototypes.
9062
9063 * gtkutil.c (create_menus): Remove code that puts the help menu to
9064 the right.
9065
54eefef1
JR
90662003-01-25 Jason Rumney <jasonr@gnu.org>
9067
9068 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9069 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9070 (png_load): Adjust colors for Windows. Use Windows
9071 bitmaps. Disable color table lookups.
c262430d
JR
9072 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9073 (init_png_functions): New function.
9074 (png_read_from_memory, png_load): Call png library functions
9075 through pointers determined at runtime.
9076 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9077 (init_external_image_libraries): New function.
9078 (init_xfns): Call it.
54eefef1 9079
1a9e275b
AS
90802003-01-24 Andreas Schwab <schwab@suse.de>
9081
9082 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9083
a97e4138 90842003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9085
9086 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9087 of static initializer.
9088
422eec7e
DL
90892003-01-24 Dave Love <fx@gnu.org>
9090
9091 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9092 architectures.
9093
9094 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9095 Use __alignof__.
9096
2a026b04
KH
90972003-01-24 Kenichi Handa <handa@m17n.org>
9098
9099 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9100 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9101 (command_loop_1): Call adjust_point_for_property with proper
9102 second arg.
9103
a18bb28d
JR
91042003-01-22 Jason Rumney <jasonr@gnu.org>
9105
9106 Sync changes with xterm.c and xfns.c.
9107
9108 * w32term.c (x_draw_glyph_string_foreground)
9109 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9110
9111 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9112 phys_cursor's hpos is overwritten. This is still not completely
9113 correct, as it doesn't really make sense to use hpos at all to
9114 get the cursor glyph (as that is relative to the width of the
9115 characters on the line, which may have changed during the update).
9116
9117 * w32term.c (notice_overwritten_cursor): Handle the special case
9118 of the cursor being in the first blank non-text line at the
9119 end of a window.
9120
9121 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9122 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9123 Compute from the x position returned by x_draw_glyphs.
9124
9125 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9126 except for NO_CURSOR and system caret, to make phys_cursor_width
9127 contain what its name suggests.
9128 (notice_overwritten_cursor): Consider the cursor image erased if
9129 the output area intersects the cursor image in y-direction.
9130
6a097c0c
SM
9131 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9132 note_mode_line_highlight and extend.
a18bb28d
JR
9133
9134 * w32term.c (last_window): New variable.
9135 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9136 (note_mouse_movement): Remove reimplemented code in #if 0.
9137
9138 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9139 not update_mode_lines, and always set it to 1.
9140
ac6e47ef
JR
91412003-01-21 Jason Rumney <jasonr@gnu.org>
9142
9143 * w32fns.c (IDC_HAND): Define it if system headers don't.
9144
91452003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9146
9147 * w32term.h (struct w32_output): New member hand_cursor.
9148 (WM_EMACS_SETCURSOR): New message definition.
9149
9150 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9151 function w32_define_cursor.
9152 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9153 position, change member name output_data.x to output_data.w32 and
9154 add function w32_define_cursor.
9155 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9156 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9157 (w32_initialize_display_info):
9158 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9159
9160 * w32fns.c (Vx_hand_shape): New variable.
9161 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9162 WM_EMACS_SETCURSOR.
9163 (x-create-frame): Setup Cursor types.
9164
ceb39a17
JB
91652003-01-21 David Ponce <david@dponce.com>
9166
ac6e47ef 9167 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9168 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9169 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9170 2002-09-30.)
ac6e47ef
JR
9171 (w32_draw_relief_rect): Declare all args.
9172 (w32_define_cursor): New.
9173
9174 * w32fns.c (w32_load_cursor): New function.
9175 (w32_init_class): Use it.
9176 (x_put_x_image): Declare all args.
9177
b6189c3b 91782003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9179
9180 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9181
a97e4138 91822003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9183
9184 * gtkutil.c: Must include stdio.h before termhooks.h
9185
83fc9c63
DL
91862003-01-21 Dave Love <fx@gnu.org>
9187
9188 * alloc.c (Fgc_status): Print zombie list.
9189 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9190 Fix assignment of zombies.
9191 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9192 Don't take car of non-cons.
9193
9194 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9195
9196 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9197
fe04b8c8
JR
91982003-01-20 David Ponce <david@dponce.com>
9199
9200 * w32menu.c (digest_single_submenu): Declare all args.
9201
9202 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9203 changes in xmenu.c:
9204
9205 (parse_single_submenu): Use individual keymap's prompt
9206 string as pane name, if there is one.
9207 (set_frame_menubar): Save menu_items_n_panes from each call to
9208 parse_single_submenu and use it when calling digest_single_submenu.
9209
539e69a9
ST
92102003-01-20 Steven Tamm <steventamm@mac.com>
9211
9212 * macterm.c (XTread_socket): Checks for valid, visible window
9213 before sending a scroll-wheel event.
9214
675d000f
RS
92152003-01-20 Richard M. Stallman <rms@gnu.org>
9216
9217 * xdisp.c (redisplay_window): If mini window's buffer is not
9218 a minibuffer, then redisplay it like other windows.
9219
a97e4138 92202003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9221
9222 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9223 external tool bar before setting tool bar height.
9224
048addec
JD
92252003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9226
9227 * xterm.c (handle_one_xevent): Surround popup_activated
9228 with #ifdef:s for non-toolkit version.
9229
9230 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9231 (gtkutil.o): New file.
9232 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9233 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9234
9235 * gtkutil.c: New file for GTK version.
9236
9237 * gtkutil.h: New file for GTK version.
9238
9239 * xterm.h: Add xt_or_gtk_widget.
9240 Include gtk files for USE_GTK.
9241 (struct x_output): Add toolbar_height.
9242 (struct x_output): Add GTK widgets and Gdk size_hints.
9243 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9244 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9245 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9246
9247 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9248 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9249 (note_mouse_highlight): Check popup_activated for USE_GTK.
9250 (xt_action_hook): Don't compile if USE_GTK.
9251 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9252 (xg_scroll_callback): New function.
9253 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9254 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9255 for USE_GTK.
9256 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9257 xg_show_scroll_bar for USE_GTK.
9258 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9259 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9260 (event_handler_gdk): New function for USE_GTK.
9261 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9262 (handle_one_xevent): Make sure widget is mapped before
9263 calling x_real_positions for USE_GTK.
9264 (XTread_socket): Add GTK event loop for USE_GTK.
9265 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9266 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9267 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9268 (x_iconify_frame): Add code for USE_GTK.
9269 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9270 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9271 is in gtkutil.c.
9272 (x_term_init): Add initialization for GTK.
9273 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9274
9275 * xmenu.c: Include gtkutil.h for USE_GTK.
9276 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9277 (single_menu_item, single_menu_item, Fx_popup_dialog):
9278 Check for USE_GTK.
048addec
JD
9279 (popup_widget_loop): New function for USE_GTK.
9280 (x_activate_menubar): Add code for USE_GTK.
9281 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9282 (menu_highlight_callback, menubar_selection_callback):
9283 Add USE_GTK versions.
048addec
JD
9284 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9285 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9286 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9287 is in gtkutil.c.
9288 (popup_selection_callback): New version for USE_GTK.
9289 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9290 one USE_X_TOOLKIT version.
048addec
JD
9291 (xmenu_show): Call create_and_show_popup_menu.
9292 (dialog_selection_callback): New version for USE_GTK.
9293 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9294 one USE_X_TOOLKIT version.
048addec
JD
9295 (xdialog_show): Call create_and_show_dialog.
9296
9297 * xfns.c: Include gtkutil for USE_GTK.
9298 (x_window_to_frame, x_any_window_to_frame)
9299 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9300 (x_top_window_to_frame): Add code for USE_GTK.
9301 (x_set_background_color): Call xg_set_background_color for GTK.
9302 (x_set_menu_bar_lines): Check for USE_GTK.
9303 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9304 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9305 (x_window): Call xg_create_frame_widgets for USE_GTK.
9306 (Fx_create_frame): Check for USE_GTK
9307 (Fx_file_dialog): New implementation for USE_GTK.
9308
9309 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9310 (update_menu_bar): Add check for USE_GTK.
9311 (update_tool_bar): Add check for USE_GTK and external tool bar.
9312 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9313 (redisplay_internal): Add check for USE_GTK and popup_activated.
9314 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9315 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9316 (display_menu_bar): Add check for USE_GTK
9317
78819ebb 9318 * lisp.h (Vx_resource_name): Declare extern.
048addec 9319
a64387ee 9320 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9321 for USE_GTK.
9322 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9323
9324 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9325 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9326 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9327
9328 * fileio.c (Fread_file_name): Add check for USE_GTK.
9329
6bdb309a
SM
9330 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9331 Add check for USE_GTK.
048addec
JD
9332
9333 * config.in: Added HAVE_GTK
9334
9335 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9336
93372003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9338
9339 * charset.h (Funibyte_char_to_multibyte): Export.
9340
93412003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9342
9343 * xmenu.c (mouse_position_for_popup): New function.
9344 (Fx_popup_menu): Call mouse_position_for_popup for X and
9345 mouse_position_hook for others.
9346
93472003-01-17 Kim F. Storm <storm@cua.dk>
9348
9349 * editfns.c (Finsert): Mention `string-make-multibyte' and
9350 `string-as-multibyte' in doc string.
9351
93522003-01-17 Kenichi Handa <handa@m17n.org>
9353
9354 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9355
048addec
JD
9356 * editfns.c (Fformat): Convert an unibyte char argument that is
9357 formatted by "%c" to multibyte if the total result must be a
9358 multibyte string.
cd7df9c0 9359
048addec 93602003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9361
048addec
JD
9362 * process.c (set-process-filter): Document unibyte/multibyte-ness
9363 of string argument.
56210ecd 9364
048addec 93652003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9366
048addec 9367 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9368
048addec
JD
9369 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9370 (re_search_2): Likewise.
6df8b9fe 9371
048addec 93722003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9373
048addec
JD
9374 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9375 buffer is unibyte.
292ddc31 9376
048addec 93772003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9378
048addec 9379 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9380
048addec
JD
9381 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9382 (Fprevious_char_property_change)
9383 (Fnext_single_char_property_change)
9384 (Fprevious_single_char_property_change, Fnext_property_change)
9385 (Fnext_single_property_change, Fprevious_property_change)
9386 (Fprevious_single_property_change, Fadd_text_properties)
9387 (Fput_text_property, Fset_text_properties)
9388 (Fremove_text_properties, Fremove_list_of_text_properties)
9389 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9390
048addec 93912003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9392
048addec
JD
9393 * process.h (struct Lisp_Process): New member plist replaces old
9394 member private_vars. All uses changed.
63e4e4c6 9395
048addec 9396 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9397 (QCplist): Rename from QCvars. Change all uses.
048addec 9398 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9399 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9400 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9401 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9402
048addec 94032003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9404
6bdb309a 9405 * m/delta.h: Remove (obsolete).
e833850f 9406
048addec 94072003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9408
048addec
JD
9409 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9410 behaviour in front of symlinks.
9411 (Fdelete_file): Raise an error on directories.
817cb127 9412
048addec 94132003-01-13 Dave Love <fx@gnu.org>
817cb127 9414
048addec 9415 * fns.c (Freverse): Use QUIT.
3e8cf2ea 9416
048addec 94172003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 9418
048addec
JD
9419 * minibuf.c (minibuffer_completion_contents):
9420 Error if point is inside prompt.
3e8cf2ea 9421
048addec
JD
9422 * keyboard.c (command_loop_1): Don't redisplay directly
9423 if there's a post-command-hook.
3e8cf2ea 9424
048addec
JD
9425 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9426 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 9427
048addec 94282003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 9429
048addec 9430 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 9431
048addec
JD
9432 * process.c (QCvars): New variable.
9433 (syms_of_process): Intern and staticpro it.
9434 (Fset_process_contact): Removed function.
9435 (Fprocess_variable, Fset_process_variable): New functions.
9436 (syms_of_process): Defsubr them.
9437 (Fstart_process): Initialize private_vars plist to nil.
9438 (Fmake_network_process): New arg :vars to setup the private
9439 variables for new network process.
9440 (server_accept_connection): Copy server's private variables to
9441 client process.
2c10f029 9442
048addec
JD
9443 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9444 crashes). Code rewritten and simplified. Now directly aligns the
9445 pointer and recalculates pure_bytes_used, rather than aligning the
9446 size and adjusting the pointer.
b8a76c6c 9447
048addec 94482003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 9449
048addec
JD
9450 * process.c (Fset_process_contact): New function.
9451 (syms_of_process): defsubr it.
9452 (make-network-process): Update doc.
3a8d0899 9453
048addec 94542003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 9455
048addec
JD
9456 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9457 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 9458
048addec 94592003-01-10 Dave Love <fx@gnu.org>
4abc7470 9460
048addec 9461 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 9462
048addec 94632003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 9464
048addec
JD
9465 * process.c (Fmake_network_process): Convert new port number
9466 to host byte order for `:service t' case. From Mario Lang.
bf338245 9467
048addec 94682003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 9469
048addec
JD
9470 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9471 instead of XtAppProcessEvent.
bf338245 9472
048addec
JD
9473 * xterm.c (handle_one_xevent): New function.
9474 (x_dispatch_event): New function.
9475 (XTread_socket): Call handle_one_xevent.
bf338245 9476
048addec 9477 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 9478
048addec
JD
9479 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9480 call XQueryPointer to get coordinates.
9481 (popup_get_selection): Do not set popup_activated_flag to zero,
9482 let popup_deactivate_callback do that. Needed for Motif.
9483 Call x_dispatch_event instead of XtDispatchEvent.
9484 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 9485
048addec 94862003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 9487
6bdb309a 9488 * process.c (server_accept_connection): Fix recording of new
048addec
JD
9489 connection's local address in :local property of contact info.
9490 (Fmake_network_process): Record local network address for new
9491 client processes in :local property of contact info.
6bdb309a 9492 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 9493
048addec 94942003-01-07 Dave Love <fx@gnu.org>
00e3ab56 9495
048addec 9496 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 9497
048addec 94982003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 9499
048addec 9500 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 9501
048addec
JD
9502 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9503 use the same test as for custom-variable-p.
8c6d74c6 9504
048addec 95052003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 9506
048addec
JD
9507 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9508 Count LAST_LINE_MISFIT in scroll margin for end of window.
9509 Move label too_near_end before setting SCROLL_MARGIN_POS.
9510 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 9511
048addec
JD
9512 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9513 scroll_conservatively case. If scrolling that much doesn't change
9514 STARTP, move it down one line.
e833850f 9515
048addec
JD
9516 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9517 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 9518
048addec
JD
9519 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9520 selected frame.
8c6d74c6 9521
048addec
JD
9522 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9523 (syms_of_keymap): staticpro them.
9524 (Fapropos_internal): Initialize them and clear them out.
9525 Don't GCPRO them.
8c6d74c6 9526
048addec
JD
9527 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9528 Doc fixes.
8c6d74c6 9529
048addec
JD
9530 * lisp.h: New misc type Lisp_Save_Value.
9531 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9532 (XSAVE_VALUE): New macro.
9533 (struct Lisp_Save_Value): New data type.
9534 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 9535 (make_save_value): Declare.
8c6d74c6 9536
048addec 9537 * alloc.c (make_save_value): New function.
8c6d74c6 9538
048addec
JD
9539 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9540 (x_catch_errors_unwind): Call XSync.
8c6d74c6 9541
048addec 95422003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 9543
048addec 9544 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 9545
048addec
JD
9546 * keyboard.c (command_loop_1): Call adjust_point_for_property
9547 in direct action cases for Qforward_char and Qbackward_char.
9548 Set already_adjusted so it won't be done twice.
8c6d74c6 9549
b6189c3b 95502002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 9551
048addec
JD
9552 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
9553 type definition of size_t.
8c609cff 9554
048addec 95552003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 9556
048addec
JD
9557 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
9558 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 9559
048addec 95602002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 9561
048addec
JD
9562 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
9563 to default to t.
fa634a5e 9564
048addec 95652002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 9566
048addec 9567 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 9568
048addec 95692002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 9570
048addec
JD
9571 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
9572 allow building in a different directory than source. Uses some
9573 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 9574
048addec 95752002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 9576
048addec
JD
9577 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
9578 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
9579 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
9580 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 9581
048addec 95822002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 9583
048addec
JD
9584 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
9585 <scroll-down-aggressively>: Doc fix.
2155ecf3 9586
048addec
JD
9587 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
9588 string as pane name, if there is one.
9589 (set_frame_menubar): Save menu_items_n_panes from each call to
9590 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 9591
048addec
JD
9592 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
9593 Don't try to make last line fully visible if it is past end of window.
61f1d295 9594
048addec 95952002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 9596
048addec
JD
9597 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
9598 (mac_menu_show): Add support for hierarchical popup menus.
9599 (add_menu_item): Remove indentation support.
9600 (fill_submenu, fill_menu): Create hierarchical menus
9601 instead of using indentation.
0b17a217 9602
048addec 96032002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 9604
048addec
JD
9605 * xdisp.c (try_cursor_movement): Don't call try_window here.
9606 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 9607
048addec 9608 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 9609
048addec 96102002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 9611
048addec
JD
9612 * macterm.c (XTread_socket): Call KeyTranslate for control and
9613 meta to deal correctly shifted non-alpha characters, like C-S-5
9614 being treated like C-%. Does not look for shift key to deal
9615 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 9616
048addec 96172002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 9618
048addec
JD
9619 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
9620 If it is non-nil, run timers. Use an unwind-protect to requeue
9621 the events that were read ahead.
9622 (popup_get_selection_unwind): New subroutine.
9623 (popup_get_selection_queue): File-scope variable now holds that queue.
9624 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
9625 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
9626 Use an unwind-protect to pop down the dialog box.
9627 (xdialog_show_unwind): New subroutine implements that.
f02cac82 9628
048addec
JD
9629 * xdisp.c (row_containing_pos): Change exit test using last_y.
9630 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 9631
048addec
JD
9632 * lread.c (load_error_handler): New function.
9633 (Fload): Handle errors in Fsubstitute_in_file_name.
9634 Don't expect Fsignal to return.
f02cac82 9635
048addec
JD
9636 * eval.c: Errors and throws work right with interrupt blocking.
9637 (struct catchtag): New elt interrupt_input_blocked.
9638 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
9639 (internal_catch, Fcondition_case, internal_condition_case)
9640 (internal_condition_case_1, internal_condition_case_2): Save it.
9641 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 9642
048addec 9643 * editfns.c (Fformat): Add parens.
f02cac82 9644
048addec
JD
9645 * dired.c (file_name_completion): Fix that change.
9646 Delete special quit-handling code; just use QUIT.
f02cac82 9647
b6189c3b 96482002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 9649
048addec
JD
9650 * dired.c (file_name_completion): Close directory on error
9651 just as in directory_files_internal.
1a590729 9652
048addec 96532002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 9654
048addec
JD
9655 * window.c (Fset_window_configuration): Set old_point to correct
9656 value when new_current_buffer == current_buffer.
f02cac82 9657
048addec 96582002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 9659
048addec
JD
9660 Revisited my earlier fix for the following entry in etc/PROBLEMS:
9661 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9662 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 9663
048addec
JD
9664 These changes were in part based upon suggestions made by Peter
9665 'Luna' Runestig [peter@runestig.com].
9785d95b 9666
048addec
JD
9667 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
9668 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 9669 g_b_init_get_sid_identifier_authority ): Add several static
048addec 9670 global variables.
9785d95b 9671
048addec
JD
9672 * w32.c (globals_of_w32): New function. Used to initialize those
9673 global variables that must always be initialized on startup even
9674 when the global variable initialized is non zero. Its primary
9675 purpose at this time is to set the global variables
9676 g_b_init_is_windows_9x, g_b_init_open_process_token,
9677 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
9678 g_b_init_get_sid_identifier_authority to 0 on startup.
9679 Called from main.
9785d95b 9680
048addec
JD
9681 * w32.c (is_windows_9x): Perform initialization only if
9682 g_b_init_is_windows_9x is equal to 0. On initialization set
9683 g_b_init_is_windows_9x equal to 1.
2308af15 9684
048addec
JD
9685 * w32.c (open_process_token): Perform initialization only if
9686 g_b_init_open_process_token is equal to 0. On initialization set
9687 g_b_init_open_process_token equal to 1.
2308af15 9688
048addec
JD
9689 * w32.c (get_token_information): Perform initialization only if
9690 g_b_init_get_token_information is equal to 0. On initialization
9691 set g_b_init_get_token_information equal to 1.
9785d95b 9692
048addec
JD
9693 * w32.c (lookup_account_sid): Perform initialization only if
9694 g_b_init_lookup_account_sid is equal to 0. On initialization
9695 set g_b_init_lookup_account_sid equal to 1.
9785d95b 9696
048addec
JD
9697 * w32.c (get_sid_identifier_authority): Perform initialization
9698 only if g_b_init_get_sid_identifier_authority is equal to 0.
9699 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 9700
f63fd14e 9701 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
9702 those global variables that must always be initialized on startup
9703 even when the global variable initialized is non zero.
9704 Its primary purpose at this time is to initialize the global variable
9705 track_mouse_event_fn.
9785d95b 9706
a64387ee 9707 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 9708 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 9709
048addec 9710 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 9711
f63fd14e 9712 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
9713 initialize those global variables that must always be initialized
9714 on startup even when the global variable initialized is non zero.
9715 Its primary purpose at this time is to initialize the global
9716 variables get_menu_item_info and set_menu_item_info.
9785d95b 9717
048addec
JD
9718 * w32menu.c (initialize_frame_menubar): Remove initialization of
9719 get_menu_item_info and set_menu_item_info.
9785d95b 9720
048addec 9721 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 9722
048addec
JD
9723 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
9724 Declare them.
9785d95b 9725
048addec
JD
9726 * emacs.c (main): Call globals_of_w32 prior to calling
9727 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
9728 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
9729 is defined.
9785d95b 9730
048addec
JD
9731 * w32term.c (x_update_window_begin): Fix Windows API error
9732 detected by BoundsChecker. Test to determine if
9733 w32_system_caret_hwnd is NULL prior to attempting to use
9734 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 9735
048addec
JD
9736 * w32term.c (x_update_window_end): Fix Windows API error
9737 detected by BoundsChecker. Test to determine if
9738 w32_system_caret_hwnd is NULL prior to attempting to use
9739 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 9740
048addec 97412002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 9742
048addec
JD
9743 * coding.c (coding_system_require_warning): New variable.
9744 (syms_of_coding): DEFVAR it.
b6da19ef 9745
048addec 9746 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 9747
048addec
JD
9748 * fileio.c (choose_write_coding_system): Even if
9749 Vcoding_system_for_write is non-nil, if
9750 coding_system_require_warning is nonzero, call
9751 Vselect_safe_coding_system_function.
bfcf6dbe 9752
048addec 97532002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 9754
048addec
JD
9755 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
9756 (lisp): Add font-core.
2c568af5 9757
048addec 97582002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 9759
048addec
JD
9760 * textprop.c (text_read_only): New arg `propval'.
9761 (get_char_property_and_overlay): Remove unused var `next_overlay'.
9762 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 9763
048addec 97642002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 9765
048addec 9766 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 9767
048addec 97682002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 9769
048addec
JD
9770 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
9771 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
9772 Be more careful about when help_events are generated.
96720f09 9773
048addec 97742002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 9775
048addec
JD
9776 * macterm.c (mac_check_for_quit_char): Correctly set the
9777 modifiers of the event to 0.
9778 * mac.c (sys_select): Duplicate rfds before calling select to
9779 ensure that rfds survive the while loop.
e5ae1c49 9780
048addec 97812002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 9782
048addec
JD
9783 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
9784 row_containing_pos returned NULL.
2eb46b2d 9785
048addec 97862002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 9787
6bdb309a 9788 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 9789 non-blocking.
6bdb309a 9790 (sys_select): Fix sys_select to not use a timeout larger than
048addec 9791 the one given.
b11f1d8a 9792
048addec 97932002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 9794
048addec 9795 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 9796
048addec 97972002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 9798
048addec
JD
9799 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
9800 as the last thing.
a4ac5b17 9801
048addec 98022002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 9803
048addec 9804 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 9805
048addec 98062002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 9807
048addec
JD
9808 * editfns.c (Fformat): Handle precision in string conversion
9809 specifiers like libc functions do (ie, print at most that many
9810 characters).
85cce843 9811
048addec 98122002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 9813
048addec
JD
9814 * xdisp.c (row_containing_pos): Check more carefully
9815 whether charpos is really in the row before returning it.
0d4d26a7 9816
048addec 98172002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 9818
048addec 9819 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 9820
048addec
JD
9821 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
9822 each stack frame. This may change as it could be time consuming.
0d4d26a7 9823
048addec
JD
9824 * macterm.c (mac_check_for_quit_char, quit_char_comp)
9825 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 9826 (mac_initialize): Add code to check for pressing of quit_char
048addec 9827 in the OS event queue.
b11f1d8a 9828
048addec
JD
9829 * mac.c (sys_select): Call mac_check_for_quit_char every second
9830 while blocking on select.
0d4d26a7 9831
048addec
JD
9832 * mac.c (sys_read): Use sys_select to test for input first
9833 before calling read, to allow C-g to break.
9252f7bc 9834
048addec 98352002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 9836
048addec 9837 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 9838
048addec 9839 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 9840
048addec 9841 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 9842
048addec
JD
9843 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
9844 autoload.
9252f7bc 9845
048addec 9846 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 9847
048addec 9848 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 9849
048addec 98502002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 9851
048addec 9852 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 9853
048addec 98542002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 9855
048addec 9856 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9857
048addec 9858 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9859
048addec 9860 * alloca.c: Don't use #error.
02d588e2 9861
048addec 98622002-12-03 Dave Love <fx@gnu.org>
02d588e2 9863
048addec
JD
9864 * buffer.c (Qucs_set_table_for_input): New.
9865 (Fget_buffer_create): Use it.
9866 (Qset_buffer_major_mode_hook): Deleted.
9867 (Fset_buffer_major_mode): Revert previous change.
9868 (init_buffer_once): Intern ucs-set-table-for-input.
9869 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
9870 Add &Qucs_set_table_for_input.
451e2697 9871
048addec 98722002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 9873
048addec
JD
9874 * callint.c (Fcall_interactively): Use next_event only if less
9875 than key_count.
72742a99 9876
048addec 98772002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 9878
048addec
JD
9879 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
9880 names to 255 characters.
72742a99 9881
048addec
JD
9882 * macterm.c (XTread_socket): If all frames have been collapsed,
9883 expand the first one before handling drag-and-drop events.
72742a99 9884
048addec
JD
9885 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
9886 which is detected by autoconf.
40e6ff95 9887
048addec 98882002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 9889
048addec
JD
9890 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
9891 offset in two hints table to allow prebinding to be redone and
9892 allow the executable to be stripped.
c02138c6 9893
048addec 98942002-11-29 Dave Love <fx@gnu.org>
c02138c6 9895
048addec
JD
9896 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
9897 already provided.
0e47bbf7 9898
048addec 98992002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 9900
048addec
JD
9901 * xdisp.c (start_display): Check more intelligently for
9902 whether the line is continued.
9903 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 9904
048addec 99052002-11-28 Dave Love <fx@gnu.org>
44129dcb 9906
048addec
JD
9907 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
9908 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 9909
048addec 99102002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 9911
048addec
JD
9912 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
9913 more descriptive error output from lread.c:Fload upon most require
9914 cycles during boostrapping.
1637fd2c 9915
048addec 99162002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 9917
048addec
JD
9918 * fileio.c (Finsert_file_contents): Give a more appropriate error
9919 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 9920
048addec
JD
9921 * dired.c (Ffile_attributes): Don't return negative file sizes for
9922 files bigger than 2Gb when off_t is 32 bit.
540c2788 9923
048addec 99242002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 9925
048addec 9926 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 9927
048addec
JD
9928 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
9929 Test GETPGRP_VOID instead.
9930 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 9931
048addec
JD
9932 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
9933 Don't define.
9934 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 9935
048addec 9936 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 9937
048addec 99382002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 9939
048addec
JD
9940 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
9941 supported.
4042a81a 9942
048addec 99432002-11-25 Dave Love <fx@gnu.org>
4042a81a 9944
048addec 9945 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 9946
048addec 9947 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 9948
048addec 99492002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 9950
048addec 9951 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 9952
048addec 99532002-11-24 Steven Tamm <steventamm@mac.com>
82122254 9954
048addec
JD
9955 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
9956 determine the size of pointers alloced in unexed space instead
9957 of using possibly invalid emacs_zone pointers. This fixes the
9958 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 9959
048addec 99602002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 9961
048addec 9962 * search.c (Fstring_match): Doc fix.
c1ee53bc 9963
048addec
JD
9964 * callint.c (Fcall_interactively): If a command fails because
9965 `*' detects a read-only buffer, but RECORD_FLAG is set,
9966 record it anyway if the args don't actually do tty input.
5598c32e 9967
048addec 99682002-11-22 Dave Love <fx@gnu.org>
5598c32e 9969
048addec 9970 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 9971
048addec
JD
9972 * keyboard.c (interrupt_signal): Provide forward declaration.
9973 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 9974
048addec 9975 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 9976
048addec 99772002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 9978
048addec
JD
9979 * eval.c (interactive_p): Skip any number of bytecode
9980 and special form frames, in any order.
516eea8e 9981
048addec 99822002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 9983
048addec
JD
9984 * w32fns.c (convert_mono_to_color_image): New function.
9985 (xbm_load, xbm_load_image): Use it when foreground or background
9986 is explicitly set.
04dbfa08 9987
048addec 99882002-11-19 Dave Love <fx@gnu.org>
04dbfa08 9989
048addec 9990 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 9991
048addec 99922002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 9993
048addec
JD
9994 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
9995 (XPutPixel): Swap blue and red.
9996 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
9997 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9998 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
9999 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10000
048addec 100012002-11-18 Dave Love <fx@gnu.org>
d824beee 10002
048addec 10003 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10004
048addec 10005 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10006
048addec 10007 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10008
048addec
JD
10009 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10010 malloc, realloc, calloc.
d824beee 10011
048addec
JD
10012 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10013 (bcmp): Don't define.
d824beee 10014
048addec 10015 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10016
048addec 10017 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10018
048addec 10019 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10020
048addec 10021 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10022
048addec
JD
10023 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10024 Don't include alloca.h.
d824beee 10025
048addec 10026 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10027
048addec 10028 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10029
048addec 10030 * process.c (_GNU_SOURCE): Don't define.
1998560a 10031
048addec 10032 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10033
048addec 100342002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10035
048addec 10036 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10037
048addec 100382002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10039
048addec
JD
10040 * dispextern.h (struct face): Add `overstrike' field.
10041 * xterm.c (x_draw_glyph_string_foreground)
10042 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10043 * xfaces.c (load_face_font): Set `face->overstrike' based on
10044 result from choose_face_font.
10045 (best_matching_font, choose_face_font): Add `needs_overstrike'
10046 argument, and use it to return whether overstriking is desirable
10047 for this face/font combo.
10048 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10049
048addec 100502002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10051
048addec
JD
10052 This change is my fix for the following entry in etc/PROBLEMS:
10053 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10054 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10055
048addec
JD
10056 * w32.c: Added wrapper functions around the win32 API functions
10057 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10058 GetSidIdentifierAuthority. These wrapper functions serve two
10059 purposes:
10060 1. They ensure that the wrapped function can never be called
10061 when Emacs is running on an operating system on which they are
10062 not supported (Microsoft Windows 95 / 98 / ME).
10063 2. They call the wrapped functions via function pointers rather
10064 than calling them directly. This avoids taking advantage of the
10065 undocumented fact that although these functions are not supported
10066 in the 9x branch of Microsoft Windows, the functions do exist in
10067 the version of advapi32.dll that is found in the 9x branch of
10068 Microsoft Windows.
f60ae425 10069
6bdb309a 10070 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10071 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10072 and GetSidIdentifierAuthority with calls to the newly added
10073 wrapper functions.
f60ae425 10074
048addec
JD
10075 * w32.h: Added extern declarations for the following functions:
10076 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10077 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10078
6bdb309a 10079 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10080 function pointer track_mouse_event_fn in the handler for the
10081 WM_SETFOCUS message.
3582b6a3 10082
6bdb309a 10083 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10084 reinitialize the function pointers set_menu_item_info and
10085 get_menu_item_info.
f60ae425 10086
048addec 100872002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10088
048addec
JD
10089 * sound.c: Added a partial implementation of play-sound-internal
10090 for Microsoft Windows. Added various #ifdef / #else / #endif
10091 code blocks to separate the code that will compile under
10092 Microsoft Windows from the code that is specific to Gnu/Linux.
10093 Moved several blocks of code around to make this separation of code
10094 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10095
048addec 10096 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10097
048addec
JD
10098 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10099 added support for play-sound-internal under Windows would be
10100 included in the build of Emacs.
517f42a0 10101
048addec 101022002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10103
048addec 10104 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10105
048addec 10106 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10107
048addec 101082002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10109
048addec
JD
10110 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10111 (adjust_point_for_property): Move out of display and invisible even if
10112 we were already inside before (in case a property was added while
10113 we weren't looking). Be more careful when handling invisible props.
10114 Skip invisible text as if it really wasn't there at all.
aab83f91 10115
048addec 101162002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10117
048addec
JD
10118 * w32term.c (x_draw_image_foreground)
10119 (w32_draw_image_foreground_1): Use standard copy and invert
10120 operations to draw images.
aab83f91 10121
048addec
JD
10122 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10123 depth of 1.
10124 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10125 (XPutPixel): Don't invert bits here.
a4478a76 10126
048addec 101272002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10128
048addec
JD
10129 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10130 (w32_draw_image_foreground_1): Handle image masks.
10131 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10132
048addec
JD
10133 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10134 (x_from_xcolors): Adjust RGB values for W32.
10135 (image_background, image_background_transparent)
10136 (postprocess_image, x_to_xcolors, x_disable_image)
10137 (x_build_heuristic_mask): Adapt for W32 and enable.
10138 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10139 (xbm_load): Remove unused variable.
03670a65 10140
048addec 101412002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10142
048addec 10143 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10144
048addec 101452002-11-14 Dave Love <fx@gnu.org>
59daa29a 10146
048addec 10147 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10148
048addec
JD
10149 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10150 * xmenu.c (unuse_menu_items, digest_single_submenu):
10151 * xfns.c (x_put_x_image):
10152 * xdisp.c (message2_nolog, set_message):
10153 * undo.c (record_point):
10154 * terminfo.c (tparam):
10155 * syntax.c (scan_sexps_forward):
10156 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10157 * composite.c (update_compositions):
10158 * cm.c (calccost, cmgoto):
10159 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10160
048addec 10161 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10162
048addec
JD
10163 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10164 Don't declare.
59daa29a 10165
048addec 10166 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10167
048addec
JD
10168 * fns.c (Fcopy_sequence): Doc fix.
10169 (Fmap_char_table): Cast `call2'.
3947677c 10170
048addec
JD
101712002-11-14 Francesco Potorti` <pot@gnu.org>
10172
10173 * s/sol2-8.h: New file.
10174
101752002-11-14 Kim F. Storm <storm@cua.dk>
10176
10177 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10178 dependency on `risky-local-variable' and the :propertize form.
10179
101802002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10181
10182 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10183
10184 * syntax.c (scan_sexps_forward): Undo last patch.
10185 Use a more obvious fix: check eob before updating the syntax table.
10186
101872002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10188
10189 * syntax.c (scan_sexps_forward): Update syntax table before reading
10190 a char rather than after so we don't update the table past eob.
10191
101922002-11-09 Dave Love <fx@gnu.org>
10193
10194 * buffer.c (Fset_buffer_major_mode): Fix last change.
10195
10196 * regex.c (regexec): Fix pmatch declaration.
10197
10198 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10199
10200 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10201 to self-inserting characters.
10202 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10203
10204 * coding.c (Vtranslation_table_for_input): New.
10205 (syms_of_coding): DEFVAR it.
10206
102072002-11-08 Juanma Barranquero <lektu@terra.es>
10208
10209 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10210 window.
10211
102122002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10213
6bdb309a 10214 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10215 cp, and i.
10216
102172002-11-06 Dave Love <fx@gnu.org>
10218
10219 * buffer.c (Qset_buffer_major_mode_hook): New.
10220 (Fset_buffer_major_mode): Use it.
10221
102222002-11-06 Richard M. Stallman <rms@gnu.org>
10223
10224 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10225 and stop_polling.
10226
10227 * process.c (wait_reading_process_input):
10228 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10229 Avoid initialization for auto Lisp_Object var.
10230
10231 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10232
10233 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10234
102352002-11-05 Richard M. Stallman <rms@gnu.org>
10236
10237 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10238
10239 * callint.c (Fcall_interactively): New local filter_specs.
10240 (Fcall_interactively): Check for progn as well as let.
10241 Add a gcpro.
10242 (Qprogn): New variable.
10243 (syms_of_callint): Staticpro and init Qprogn.
10244
102452002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10246
10247 * lread.c (Feval_buffer): Doc fix.
10248
102492002-11-04 Dave Love <fx@gnu.org>
10250
10251 * keyboard.c (read_char): Always translate iff
10252 Vkeyboard_translate_table is a char table and c is valid.
10253
10254 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10255 and fix C types.
10256
102572002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10258
10259 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10260
10261 * editfns.c (get_pos_property): Don't hardcode Qfield.
10262
10263 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10264 overlays. Also handle `invisible' prop.
10265
102662002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10267
10268 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10269 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10270
102712002-11-01 Andreas Schwab <schwab@suse.de>
10272
10273 * editfns.c (Fmessage): Revert last change to properly handle %%.
10274
102752002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10276
10277 * xmenu.c (unuse_menu_items): New fun.
10278 (menu_items_inuse): New var.
10279 (syms_of_xmenu): Initialize it.
10280 (init_menu_items): Use it to detect re-entrance.
10281 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10282 (Fx_popup_menu): Remove spurious XSETFRAME.
10283
10284 * editfns.c (find_field): Make an exception for nil fields.
10285
102862002-11-01 Dave Love <fx@gnu.org>
10287
10288 * m/gec63.h: Deleted.
10289
102902002-10-31 Dave Love <fx@gnu.org>
10291
10292 * xterm.c (XTread_socket): Fix last change.
10293 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10294
102952002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10296
10297 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10298
102992002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10300
10301 * editfns.c (overlays_around, get_pos_property): New funs.
10302 (find_field): Use them.
10303 Also be careful not to modify POS before its last use.
10304 (Fmessage): Don't Fformat if there's nothing to format.
10305
103062002-10-30 Dave Love <fx@gnu.org>
10307
10308 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10309 [HAVE_PTY_H]; Include pty.h.
10310
10311 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10312
10313 * xterm.c (Qeql): Declare.
10314 (Vx_keysym_table): New.
10315 (syms_of_xterm): Initialize it.
10316 (XTread_socket): Use it. Deal with ASCII keysyms.
10317 (XSetIMValues) [HAVE_X11R6]: Prototype.
10318
10319 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10320 (lispy_kana_keys): Comment out.
10321 (make_lispy_event) [XK_kana_A]: Comment out.
10322 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10323 Fix sprintf call.
10324
10325 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10326 regexp.h change).
10327 (TERMINFO, LIBS_TERMCAP): Define.
10328
10329 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10330 (bcmp): Define conditional on HAVE_BCMP.
10331 (NO_SIOCTL_H): Don't define.
10332 (TIOCSIGSEND): Don't make conditional on IRIX6.
10333
10334 * s/sol2-5.h: Don't include strings.h.
10335 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10336
10337 * s/irix6-0.h (IRIX6): Don't define.
10338 (bcopy, bcmp, bzero): Don't undef.
10339
10340 * s/irix6-5.h: Don't include strings.h.
10341 (IRIX6): Don't define.
10342 (bcopy, bcmp, bzero): Don't undef.
10343
10344 * syntax.c (Fforward_comment): Doc fix.
10345
103462002-10-29 Kim F. Storm <storm@cua.dk>
10347
10348 * process.c (Fsignal_process): Allow PROCESS to be specified by
10349 name in addition to pid (as integer or string).
10350
103512002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10352
10353 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10354 environments.
10355
103562002-10-27 Kim F. Storm <storm@cua.dk>
10357
10358 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10359
10360 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10361
10362 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10363
10364 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10365
103662002-10-26 Richard M. Stallman <rms@gnu.org>
10367
10368 * editfns.c (Fformat): Detect invalid format letters for floats.
10369
103702002-10-25 Kenichi Handa <handa@m17n.org>
10371
10372 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10373 (x_set_title): Likewise.
10374
103752002-10-25 Juanma Barranquero <lektu@terra.es>
10376
10377 * macgui.h:
10378 * w32gui.h: Remove definition of XColor.
10379
10380 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10381
103822002-10-24 Kim F. Storm <storm@cua.dk>
10383
10384 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10385 Callers changed (supply dummy arg).
10386
10387 * lisp.h (get_window_cursor_type): Update prototype.
10388
10389 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10390 get_window_cursor_type to track system caret.
10391
103922002-10-24 Kim F. Storm <storm@cua.dk>
10393
10394 * process.c (Fformat_network_address): New function.
10395 (syms_of_process): Defsubr it.
10396 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10397 service/host is not set; before Emacs would crash in that case.
048addec
JD
10398 (Fmake_network_process): Don't use Ffind_operation_coding_system
10399 to setup coding system if host or service is not set.
10400
104012002-10-23 Juanma Barranquero <lektu@terra.es>
10402
10403 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10404
10405 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10406 COLORREF.
10407
10408 * macgui.h:
10409 * w32gui.h: Add definition of XColor.
10410
10411 * macfns.c:
10412 * w32fns.c:
10413 * xfaces.c: Remove definition of XColor.
10414
104152002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10416
10417 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10418
10419 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10420 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10421 window if it is dedicated.
10422 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10423 (Vspecial_display_function): Update docstring.
10424
10425 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10426 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10427 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10428
104292002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10430
10431 * casefiddle.c (casify_region): Don't treat a prefix char as part
10432 of a word when at the beginning.
10433
104342002-10-17 Juanma Barranquero <lektu@terra.es>
10435
10436 * lread.c (syms_of_lread): Fix typos.
10437
104382002-10-17 Dave Love <fx@gnu.org>
10439
10440 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10441
104422002-10-16 Richard M. Stallman <rms@gnu.org>
10443
10444 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10445
104462002-10-14 Juanma Barranquero <lektu@terra.es>
10447
10448 * w16select.c (syms_of_win16select): Fix docstring for
10449 `selection-coding-system'.
10450
10451 * w32select.c (syms_of_w32select): Likewise.
10452
104532002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10454
10455 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10456 a backslash-quoted char.
10457 (scan_lists, scan_sexps_forward): Pacify the compiler.
10458
104592002-10-13 Richard M. Stallman <rms@gnu.org>
10460
10461 * window.c (window_scroll): Set immediate_quit.
10462
10463 * print.c (print): When backquote form is the car of a list,
10464 output in old style. Use old_backquote_output to output all
10465 comma forms inside it in old style too.
10466
10467 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10468
104692002-10-11 Markus Rost <rost@math.ohio-state.edu>
10470
10471 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10472 batch mode).
10473
10474 * lread.c (Fload): Doc fix (load-suffixes).
10475
104762002-10-10 Steven Tamm <steventamm@mac.com>
10477
10478 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10479 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10480 Also switch the default to Qnil from Qt.
10481
104822002-10-08 Kenichi Handa <handa@m17n.org>
10483
10484 * coding.c (code_convert_region): When we need more GAP for
10485 conversion, pay attention to the case that coding->produced is not
10486 greater than coding->consumed.
10487
104882002-10-07 Richard M. Stallman <rms@gnu.org>
10489
10490 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10491
104922002-10-06 Andrew Choi <akochoi@shaw.ca>
10493
10494 * macmenu.c (mac_menu_show): Add j to count menu items; match
10495 menu_item_selection to it to find selected item.
10496
104972002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10498
10499 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10500 cases. The correct fix is to pass ReparentNotify to Xt.
10501 The shell widget interprets ConfigureNotify differently depending
10502 on if it has been reparented or not.
10503
105042002-10-05 Markus Rost <rost@math.ohio-state.edu>
10505
10506 * editfns.c (Fformat_time_string): Doc fix.
10507
105082002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10509
10510 * fns.c (Flength): Doc fix.
10511
105122002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10513
10514 * keyboard.c (keyremap): New struct.
10515 (read_key_sequence): Use it: globally replace keytran_foo with
10516 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10517 keytran_next and fkey_next to just `next'.
10518
105192002-10-04 Steven Tamm <steventamm@mac.com>
10520
10521 * macterm.c (keycode_to_xkeysym_table): Change return to be
10522 treated like an X keysym.
10523
105242002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10525
10526 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10527 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10528 This is to also handle x/y changes that occur because of a resize.
10529
105302002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10531
10532 * frame.c (Vdelete_frame_functions): New variable.
10533 (syms_of_frame): Initialize and defvar it.
10534 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10535 it when frame's `tooltip' parameter is non-nil.
10536
10537 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10538
10539 * w32fns.c (x_create_tip_frame): Likewise.
10540
10541 * macfns.c (x_create_tip_frame): Likewise.
10542
105432002-09-30 Kenichi Handa <handa@m17n.org>
10544
10545 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
10546 -1 before calling ccl_driver.
10547
10548 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
10549 Only when it is non-nil, handle composition sequence.
10550 (setup_coding_system) <0>: Don't force composition handling.
10551
10552 * Makefile.in (lisp, shortlisp): Add utf-16.elc
10553
105542002-09-29 Richard M. Stallman <rms@gnu.org>
10555
10556 * search.c (Freplace_match): Adjust match data for the substitution
10557 just made in the buffer.
10558
10559 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
10560 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
10561
105622002-09-27 Richard M. Stallman <rms@gnu.org>
10563
10564 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
10565 (read_char): Use them. Do all exits thru the end of the function.
10566
105672002-09-27 Kenichi Handa <handa@etl.go.jp>
10568
10569 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
10570 is nil.
10571
105722002-09-26 Richard M. Stallman <rms@gnu.org>
10573
10574 * regex.h (__restrict_arr): Don't define if already defined.
10575
10576 * coding.c (run_pre_post_conversion_on_str):
10577 Save and restore Vdeactivate_mark.
10578
105792002-09-26 John Paul Wallington <jpw@shootybangbang.com>
10580
10581 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
10582
105832002-09-26 Kenichi Handa <handa@etl.go.jp>
10584
10585 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
10586 nonzero, try face's family at first. Otherwise try FAMILY at first.
10587 (choose_face_font): If C is a single byte char or latin-1, call
10588 try_font_list with PREFER_FACE_FAMILY 1.
10589
105902002-09-21 Richard M. Stallman <rms@gnu.org>
10591
10592 * window.c (select_window_1): Don't select frame.
10593 Set frame's selected window only when frame itself is selected.
10594 (Fselect_window): Doc fix.
10595
105962002-09-18 Kim F. Storm <storm@cua.dk>
10597
10598 * process.c (make-network-process): Doc fix (there is no
10599 network-server-log-function hook).
10600
106012002-09-18 Richard M. Stallman <rms@gnu.org>
10602
10603 * print.c (print): Clear out the unused parts of Vprint_number_table.
10604 (syms_of_print): Doc fix for `print-number-table'.
10605
10606 * unexelf.c (unexec): Undo previous change.
10607
106082002-09-17 Andreas Schwab <schwab@suse.de>
10609
10610 * m/alpha.h [LINUX]: Don't define DATA_START.
10611
106122002-09-16 Dave Love <fx@gnu.org>
10613
10614 * unexelf.c (unexec): Deal with .got, reinstating change from
10615 25-08-1999.
10616
106172002-09-13 Richard M. Stallman <rms@gnu.org>
10618
10619 * s/sol2-6.h (UNEXEC): Comment out definition.
10620
10621 * unexsol.c (unexec): Don't downcase first letter of error msg.
10622
10623 * xfaces.c (Fcolor_supported_p): Just one arg is required.
10624
106252002-09-12 Markus Rost <rost@math.ohio-state.edu>
10626
10627 * unexsol.c: Include buffer.h, charset.h, coding.h.
10628
106292002-09-11 Richard M. Stallman <rms@gnu.org>
10630
10631 * unexsol.c: Don't use report_file_error; do it by hand
10632 using dlerror.
10633
10634 * process.c (wait_reading_process_input, both versions):
10635 Before calling turn_on_atimers, call stop_polling.
10636
10637 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
10638
10639 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
10640 we go to too_near_end, call clear_glyph_matrix.
10641 (redisplay_window): After make_cursor_line_fully_visible,
10642 call clear_glyph_matrix and bypass `goto done'.
10643
10644 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
10645 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
10646
106472002-09-10 Richard M. Stallman <rms@gnu.org>
10648
10649 * fileio.c (Fdo_auto_save): Catch error making directory.
10650 Only call push_message if we need to.
10651 At the same time, make an unwind-protect to pop it.
10652 Rename local message_p to old_message_p.
10653 (do_auto_save_make_dir, do_auto_save_eh): New functions.
10654 (do_auto_save_unwind): Don't call pop_message.
10655
10656 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
10657
10658 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
10659
10660 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
10661
10662 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
10663
106642002-09-10 Stefan Monnier <monnier@cs.yale.edu>
10665
10666 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
10667 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
10668 (re_match_2_internal): Be more careful with infinite loops.
10669
106702002-09-10 Kim F. Storm <storm@cua.dk>
10671
10672 * macros.c (end_kbd_macro): New function.
10673 (Fend_kbd_macro): Use it.
10674
10675 * macros.h (end_kbd_macro): Declare extern.
10676
10677 * keyboard.c (Fdiscard_input): If defining keyboard macro,
10678 end and save it instead of discarding it.
10679
106802002-09-09 Markus Rost <rost@math.ohio-state.edu>
10681
10682 * s/sol2-6.h: Fix typo. Add comment.
10683
106842002-09-09 Richard M. Stallman <rms@gnu.org>
10685
10686 * regex.c (regnum_t): Use signed int, not unsigned int.
10687
10688 * s/sol2-6.h: New file.
10689
10690 * s/sol2-5.h (UNEXEC): Definition deleted.
10691
106922002-09-08 Kim F. Storm <storm@cua.dk>
10693
10694 * macros.c (executing_macro_index): Change type to EMACS_INT.
10695 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
10696
10697 * macros.h (executing_macro_index): Change type to EMACS_INT.
10698
106992002-09-06 Richard M. Stallman <rms@gnu.org>
10700
10701 * casetab.c (set_case_table): Make canon table point to eqv table.
10702
107032002-09-06 Juanma Barranquero <lektu@terra.es>
10704
10705 * coding.c (syms_of_coding): Fix spacing.
10706
10707 * composite.c (Fcompose_region_internal)
10708 (Fcompose_string_internal): Likewise.
10709
10710 * data.c (Flsh): Likewise.
10711
10712 * fontset.c (Fset_fontset_font): Likewise.
10713
10714 * macfns.c (Fx_server_max_request_size): Likewise.
10715
10716 * w16select.c (syms_of_win16select): Likewise.
10717
10718 * w32select.c (syms_of_w32select): Likewise.
10719
10720 * xselect.c (syms_of_xselect): Likewise.
10721
107222002-09-05 Richard M. Stallman <rms@gnu.org>
10723
10724 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
10725 call EXTEND_RANGE_TABLE and return a proper value.
10726 (set_image_of_range): Don't call set_image_of_range_1
10727 if no TRANSLATE or if range includes all of Latin-1.
10728 Only call it for the Latin-1 part of the range.
10729 For other cases, make two separate ranges,
10730 one for the original specified characters and one for
10731 their case-conversions.
10732
107332002-09-04 Richard M. Stallman <rms@gnu.org>
10734
10735 * s/sol2-5.h (UNEXEC): Use unexsol.o.
10736
10737 * window.c (displayed_window_lines): Correct for one-off bug
10738 in HEIGHT on non-window displays.
10739
10740 * regex.c (set_image_of_range_1): New function.
10741 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
10742 Return a value to indicate running out of memory.
10743 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
10744 (extend_range_table_work_area): New subroutine.
10745 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
10746 Different calling conventions, and used from set_image_of_range{,_1}.
10747 (IMMEDIATE_QUIT_CHECK): Definitions moved.
10748
107492002-09-04 Juanma Barranquero <lektu@terra.es>
10750
10751 * makefile.w32-in: All dependencies updated.
10752
107532002-09-01 Richard M. Stallman <rms@gnu.org>
10754
10755 * unexsol.c: New file.
10756
10757 * xfns.c (Qbox): Declare external, don't define.
10758
10759 * xdisp.c (redisplay_window) <force-start case>:
10760 If point is on semi-visible last line, reposition
10761 it at previous line.
10762
10763 * alloc.c (display_malloc_warning): Use display-warning.
10764 (malloc_warning_1): Function deleted.
10765
10766 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
10767
10768 * lread.c (read1): Handle #! by skipping the line.
10769
107702002-08-31 Richard M. Stallman <rms@gnu.org>
10771
10772 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
10773 Don't include LDFLAGS.
10774 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
10775
107762002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
10777
10778 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
10779 member of x_display_info unless we compile for some window system.
10780
107812002-08-31 Kim F. Storm <storm@cua.dk>
10782
10783 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
10784 (get_window_cursor_type): Don't use them.
10785 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
10786
107872002-08-30 Kenichi Handa <handa@etl.go.jp>
10788
10789 * xdisp.c (get_next_display_element): Fix previous change.
10790
107912002-08-30 Andrew Choi <akochoi@shaw.ca>
10792
10793 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
10794 (expose_window): Use it to fix the display of overlapping
10795 rows (merge code from xterm.c).
10796
10797 * macfns.c (Qbox): Add extern declaration.
10798
107992002-08-30 Juanma Barranquero <lektu@terra.es>
10800
10801 * w32fns.c (Qbox): Make extern.
10802 (syms_of_w32fns): Remove initialization of Qbox.
10803
108042002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
10805
10806 * xfns.c (Fx_open_connection): Fix error message.
10807
108082002-08-30 Kim F. Storm <storm@cua.dk>
10809
10810 The following changes consolidates the handling of the cursor
10811 type in xdisp.c, moving duplicate code and functionality from
10812 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
10813
10814 * frame.h (enum text_cursor_kinds): Consolidated here.
10815 Added DEFAULT_CURSOR value.
10816 (struct frame) <desired_cursor, cursor_width>
10817 <blink_off_cursor, blink_off_cursor_width>: New fields.
10818 Consolidated from output_x, output_w32 and output_mac structs.
10819 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10820 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
10821
10822 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
10823 Variables consolidated here.
10824 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
10825 (Vcursor_in_non_selected_windows): Renamed from
10826 cursor_in_non_selected_windows and changed to Lisp_Object.
10827 (syms_of_xdisp): Define and staticpro new and moved variables.
10828 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
10829 consolidated here. Recognize Qhollow setting.
10830 (set_frame_cursor_types): New function to set frame cursor types
10831 based on the frame parameters.
10832 (get_window_cursor_type): New function to calculate new cursor
10833 type and width for the specified window. Based on duplicated
10834 code consolidated here.
10835 Enhancements: cursor-in-non-selected-windows may be a cursor type,
10836 check buffer-local alternate-cursor-type and blink-cursor-alist
10837 before using built-in blink off methods.
10838
10839 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
10840
10841 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
10842 (get_specified_cursor_type, get_window_cursor_type)
10843 (set_frame_cursor_types): Added prototypes.
10844
10845 * macfns.c (x_specified_cursor_type): Removed.
10846 (x_set_cursor_type): Use set_frame_cursor_types.
10847 (Qbar, Qbox): Removed.
10848 (syms_of_macfns): Don't intern or staticpro them.
10849
10850 * macterm.c (x_specified_cursor_type): Remove prototype.
10851 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10852 (x_display_and_set_cursor): Use get_window_cursor_type.
10853 Remove unused local variables cursor_non_selected, active_cursor.
10854 Redraw cursor if hbar cursor width changes.
10855 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
10856
10857 * macterm.h (enum text_cursor_kinds): Removed.
10858 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
10859 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10860 (FRAME_DESIRED_CURSOR): Macro removed.
10861
10862 * w32fns.c (Vblink_cursor_alist): Removed.
10863 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10864 (syms_of_w32fns): Don't intern, staticpro, or define them.
10865 (x_specified_cursor_type): Removed.
10866 (x_set_cursor_type): Use set_frame_cursor_types.
10867
10868 * w32term.c (x_specified_cursor_type): Remove prototype.
10869 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10870 (x_display_and_set_cursor): Use get_window_cursor_type.
10871 Remove unused local variables cursor_off_state.
10872 Redraw cursor if hbar cursor width changes.
10873 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
10874
10875 * w32term.h (enum text_cursor_kinds): Removed.
10876 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
10877 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10878 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10879 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10880 (struct w32_display_info) <x_highlight_frame>: Renamed member from
10881 w32_highlight_frame.
10882
10883 * xfns.c (Vblink_cursor_alist): Removed.
10884 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10885 (syms_of_xfns): Don't intern, staticpro, or define them.
10886 (x_specified_cursor_type): Removed.
10887 (x_set_cursor_type): Use set_frame_cursor_types.
10888
10889 * xterm.c (x_specified_cursor_type): Remove prototype.
10890 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10891 (x_display_and_set_cursor): Use get_window_cursor_type.
10892 Remove unused local variables cursor_off_state.
10893 Redraw cursor if hbar cursor width changes.
10894
10895 * xterm.h (enum text_cursor_kinds): Removed.
10896 (struct output_x) <current_cursor, desired_cursor, cursor_width>
10897 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10898 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10899 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10900 (x_specified_cursor_type): Remove prototype.
10901
109022002-08-28 Richard M. Stallman <rms@gnu.org>
10903
10904 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10905 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10906 (Vblink_cursor_alist): New variable.
10907 (syms_of_w32fns): Initialize and defvar it.
10908 (x_specified_cursor_type): Recognize Qbox for filled box.
10909 Exceptions are hollow boxes.
10910 (Qbox, Qhollow): New variables.
10911 (syms_of_w32fns): Initialize and staticpro them.
10912
10913 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10914 New macros.
10915 (struct w32_output): New fields blink_off_cursor,
10916 blink_off_cursor_width.
10917 (FRAME_CURSOR_WIDTH): New macro.
10918
10919 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10920 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10921
10922 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10923 for bar cursor.
10924
10925 * w32term.c (expose_overlaps): New function.
10926 (expose_window): Use it to fix the display of overlapping rows.
10927
109282002-08-28 Simon Josefsson <jas@extundo.com>
10929
10930 * xfns.c (Fx_open_connection): Improve help when X connection
10931 fails, xhost is insecure and xauth is better.
10932
109332002-08-28 Juanma Barranquero <lektu@terra.es>
10934
10935 * makefile.w32-in: Add missing dependencies on w32term.h and
10936 composite.h.
10937
10938 * emacs.c (USAGE1): Add missing newline.
10939
109402002-08-27 Andrew Choi <akochoi@shaw.ca>
10941
10942 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
10943
109442002-08-27 Richard M. Stallman <rms@gnu.org>
10945
10946 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10947 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10948 (Vblink_cursor_alist): New variable.
10949 (syms_of_xfns): Initialize and defvar it.
10950 (x_specified_cursor_type): Recognize Qbox for filled box.
10951 Exceptions are hollow boxes.
10952 (Qbox, Qhollow): New variables.
10953 (syms_of_xfns): Initialize and staticpro them.
10954
10955 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10956 New macros.
10957 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
10958
10959 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10960 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10961
10962 * emacs.c (main): Handle --script.
10963 (USAGE1): Mention --script.
10964 (standard_args): Define sort order for --script.
10965
109662002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
10967
10968 * xdisp.c (redisplay_updating_p): Variable removed.
10969 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
10970 New variables.
10971 (init_iterator): Don't free realized faces if
10972 inhibit_free_realized_faces is set.
10973 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
10974 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
10975 initialize Qinhibit_free_realized_faces.
10976
10977 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
10978 when iterator is adding glyphs to a glyph matrix.
10979
109802002-08-27 Kenichi Handa <handa@etl.go.jp>
10981
10982 * xdisp.c (get_next_display_element): In unibyte case, don't use
10983 octal form for such eight-bit characters that can be converted to
10984 multibyte char.
10985
109862002-08-26 Kim F. Storm <storm@cua.dk>
10987
b6189c3b
KS
10988 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
10989 foreground and background colors. From Joe Buehler.
048addec
JD
10990
109912002-08-26 Miles Bader <miles@gnu.org>
10992
10993 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
10994
109952002-08-25 Andrew Choi <akochoi@shaw.ca>
10996
10997 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
10998 defined instead of MAC_OSX.
10999
11000 * s/darwin.h (select): Define select to sys_select only if
11001 HAVE_CARBON is defined.
11002 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11003 (DONT_REOPEN_PTY): #def it.
11004
11005 * macterm.c (XTread_socket): Remove code to call
11006 SendEventToEventTarget for keys with command modifiers when
11007 mac_command_key_is_meta is nil.
11008
110092002-08-24 Andreas Schwab <schwab@suse.de>
11010
11011 * eval.c (Fdefvar): Fix last change.
11012
110132002-08-23 Richard M. Stallman <rms@gnu.org>
11014
11015 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11016 Record variables in load history as (defvar . VAR).
11017 (Fdefvar): Don't record in load history if no initial value.
11018 (Qdefvar): New variable.
11019 (syms_of_eval): Init and staticpro it.
11020
11021 * lread.c (syms_of_lread): Doc fix.
11022 (build_load_history): Use Fmember to see if a definition
11023 is already in the Vload_history element.
11024
11025 * process.c (Fstart_process): Remove /: from program name.
11026
11027 * emacs.c (decode_env_path): Don't add /: if file name handler
11028 has a `safe-magic' property.
11029
11030 * callproc.c (Fcall_process): Remove /: from program name.
11031
110322002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11033
11034 * regex.c (PATFETCH): Remove the translating fetch.
11035 (PATFETCH_RAW): Rename to PATFETCH.
11036 (set_image_of_range): New fun.
11037 (SET_RANGE_TABLE_WORK_AREA): Use it.
11038 (regex_compile): Don't translate the pattern chars so eagerly.
11039 Only do it when inserting an `exactn' bytecode or when handling
11040 a char-range.
11041 (mutually_exclusive_p): Avoid empty statement.
11042
110432002-08-22 Kim F. Storm <storm@cua.dk>
11044
11045 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11046 end up on a partially visible line; this reverts a specific part
11047 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11048 display error which has been reported several times now.
11049 However it introduces the problem that changes was supposed to fix.
11050 See my comments in the source if you want to debug this further.
11051
110522002-08-20 Kenichi Handa <handa@etl.go.jp>
11053
11054 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11055
110562002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11057
11058 * msdos.c (croak): Add `void' to definition.
11059
c1380aa6 11060 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11061 Don't define them, they are defined in msdos.c.
11062
11063 * mem-limits.h [MSDOS]: Declare etext.
11064
11065 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11066 `const' since CORRECT_DIR_SEPS modifies its target.
11067
110682002-08-19 Kim F. Storm <storm@cua.dk>
11069
2fb0ce67 11070 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11071 KEEP-RECORD to avoid clearing lossage when we just want to clear
11072 the current key sequence (kmacro needs this).
11073
110742002-08-19 Kenichi Handa <handa@localhost>
11075
11076 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11077
11078 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11079 cons, return Qnil.
11080
110812002-08-17 Richard M. Stallman <rms@gnu.org>
11082
11083 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11084
11085 * sysdep.c [!VMS]: Include sys/files.h.
11086
11087 * editfns.c (save_restriction_restore): Defend from unchained marker.
11088
11089 * buffer.c (overlays_at): Handle extending vec uniformly.
11090 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11091
110922002-08-15 Andrew Choi <akochoi@shaw.ca>
11093
11094 * mac.c (init_mac_osx_environment): New function.
11095
11096 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11097
110982002-08-14 Kim F. Storm <storm@cua.dk>
11099
11100 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11101 executing macro before appending to it (when used from Lisp).
11102 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11103 which is called prior to each iteration of macro (for kmacro.el).
11104 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11105
11106 * lisp.h (Fexecute_kbd_macro): Update prototype.
11107
11108 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11109
111102002-08-14 Kenichi Handa <handa@etl.go.jp>
11111
11112 * xselect.c (QUTF8_STRING): New variable.
11113 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11114 (x_atom_to_symbol): Likewise.
11115 (x_get_local_selection): New argument local_request. If it is
11116 nonzero, call handler_fn with the second arg nil.
11117 (x_handle_selection_request): Call x_get_local_selection with
11118 local_request 0.
11119 (lisp_data_to_selection_data): Don't encode the string here.
11120 (Fx_get_selection_internal): Call x_get_local_selection with
11121 local_request 1.
11122 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11123
11124 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11125
11126 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11127
111282002-08-13 Richard M. Stallman <rms@gnu.org>
11129
11130 * minibuf.c (Fminibufferp): New function.
11131 (syms_of_minibuf): Defsubr it.
11132 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11133
111342002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11135
11136 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11137
111382002-08-12 Richard M. Stallman <rms@gnu.org>
11139
11140 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11141 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11142 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11143 already.
11144
11145 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11146
111472002-08-11 Andrew Choi <akochoi@shaw.ca>
11148
11149 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11150 (Vmac_pass_command_to_system): New variable.
11151 (Vmac_pass_control_to_system): New variable.
11152 (do_mouse_moved): Check wp with is_emacs_window.
11153 (XTread_socket): Check window_ptr with is_emacs_window.
11154 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11155 events back to Mac Toolbox for processing, depending on values of
11156 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11157 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11158 Vmac_pass_control_to_system.
11159
111602002-08-10 Kenichi Handa <handa@etl.go.jp>
11161
11162 * coding.c (unencodable_char_position): New function.
11163 (Funencodable_char_position): New function.
11164 (syms_of_coding): Defsubr Funencodable_char_position.
11165
111662002-08-10 Andrew Choi <akochoi@shaw.ca>
11167
11168 * mac.c (sys_select) [MAC_OSX]: New function.
11169
11170 * macterm.c (MakeMeTheFrontProcess): New function.
11171 (mac_initialize): Call MakeMeTheFrontProcess.
11172
11173 * s/darwin.h: Define select to sys_select.
11174
111752002-08-09 Richard M. Stallman <rms@gnu.org>
11176
11177 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11178
111792002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11180
11181 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11182 end of the buffer.
11183
111842002-08-08 Ken Raeburn <raeburn@mit.edu>
11185
11186 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11187
11188 * puresize.h (BASE_PURESIZE): Increase to 910000.
11189
111902002-08-08 Kenichi Handa <handa@etl.go.jp>
11191
11192 * coding.c (Ffind_operation_coding_system): For write-region, if
11193 VISIT is a filename, make it the target.
11194
111952002-08-07 Richard M. Stallman <rms@gnu.org>
11196
11197 * alloc.c (mark_object): Detect long lists for debugging.
11198 (mark_object_loop_halt): New variable.
11199
11200 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11201
11202 * data.c (Fmake_variable_frame_local): Doc fix.
11203
112042002-08-01 David Ponce <david@dponce.com>
11205
11206 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11207 (malloc_widget_value, free_widget_value)
11208 (w32_free_submenu_strings): Use them.
11209
11210 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11211 (push_menu_pane, push_menu_item, single_keymap_panes)
11212 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11213 (single_submenu, set_frame_menubar)
11214 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11215
11216 (Fx_popup_menu): Don't show pop up menu until preceding one is
11217 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11218
11219 * w32menu.c: Changes adapted from xmenu.c
11220 (set_frame_menubar): First parse all submenus,
11221 then make widget_value trees from them.
11222 Don't allocate any widget_value objects
11223 until we are done with the parsing.
11224 (parse_single_submenu): New function.
11225 (digest_single_submenu): New function.
11226 (single_submenu): Function deleted, replaced by those two.
11227
112282002-08-04 Andrew Choi <akochoi@shaw.ca>
11229
11230 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11231 returns a valid window pointer before proceeding for keyDown and
11232 autoKey events.
11233
112342002-08-03 Andrew Choi <akochoi@shaw.ca>
11235
11236 * macterm.c (USE_CARBON_EVENTS): New macro.
11237 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11238 (x_iconify_frame): Call CollapseWindow.
11239 (Vmac_reverse_ctrl_meta): New variable.
11240 (Vmac_wheel_button_is_mouse_2): New variable.
11241 (init_mac_drag_n_drop): New function.
11242 (mac_do_receive_drag): New function.
11243 (mac_handle_service_event): New function.
11244 (init_service_handler): New function.
11245 (mac_to_emacs_modifiers): New function.
11246 (mac_event_to_emacs_modifiers): New function.
11247 (mac_get_mouse_btn): New function.
11248 (mac_convert_event_ref): New function.
11249 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11250 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11251 mac_get_mouse_btn.
11252 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11253
11254 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11255 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11256 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11257 TOOL_BAR_EVENT for MAC_OS as well.
11258 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11259 as for WINDOWS_NT.
11260 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11261
11262 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11263
112642002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11265
11266 * xdisp.c (forward_to_next_line_start): Fix a condition that
11267 lead to a newline being skipped.
11268
112692002-08-02 Andrew Choi <akochoi@shaw.ca>
11270
11271 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11272
112732002-08-01 Richard M. Stallman <rms@gnu.org>
11274
11275 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11276
112772002-07-31 Andrew Choi <akochoi@shaw.ca>
11278
11279 * macfns.c: #undef init_process before #define-ing it.
11280
11281 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11282 HAVE_CARBON is defined.
11283
112842002-07-31 Richard M. Stallman <rms@gnu.org>
11285
11286 * xmenu.c (set_frame_menubar): First parse all submenus,
11287 then make widget_value trees from them.
11288 Don't allocate any widget_value objects
11289 until we are done with the parsing.
11290 (parse_single_submenu): New function.
11291 (digest_single_submenu): New function.
11292 (single_submenu): Function deleted, replaced by those two.
11293
112942002-07-30 Juanma Barranquero <lektu@terra.es>
11295
11296 * w32proc.c (syms_of_ntproc): Fix docstring of
11297 `w32-get-true-file-attributes'.
11298
112992002-07-28 Richard M. Stallman <rms@gnu.org>
11300
11301 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11302 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11303
11304 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11305
11306 * keyboard.c (make_lispy_event):
11307 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11308 Explicitly clear up_modifier in event->modifiers.
11309
113102002-07-27 Richard M. Stallman <rms@gnu.org>
11311
11312 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11313
11314 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11315 for bar cursor.
11316
113172002-07-26 Kenichi Handa <handa@etl.go.jp>
11318
11319 * coding.c (detect_coding_iso2022): While checking a byte sequence
11320 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11321 it in the normal loop.
11322
113232002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11324
11325 * xterm.c (expose_overlaps): New function.
11326 (expose_window): Use it to fix the display of overlapping rows.
11327
11328 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11329
113302002-07-23 Ken Raeburn <raeburn@gnu.org>
11331
11332 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11333 since it only depends on XUINT.
11334
11335 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11336 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11337 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11338 Macros deleted.
3947677c 11339
77d1daf2
AS
11340 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11341 its value over other approaches.
11342 * sysdep.c (start_of_data): Don't define the function if a macro
11343 form has been defined.
8a8e19a3 11344
048addec
JD
113452002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11346
11347 * xdisp.c (redisplay_updating_p): New variable.
11348 (init_iterator): Don't free realized faces when
11349 redisplay_updating_p is set.
11350 (redisplay_internal): Set redisplay_updating_p while updating
11351 the display.
11352
113532002-07-23 Richard M. Stallman <rms@gnu.org>
11354
11355 * editfns.c (Fmessage): Treat "" like nil.
11356
113572002-07-23 Kenichi Handa <handa@etl.go.jp>
11358
11359 * xdisp.c (face_before_or_after_it_pos):
11360 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11361
113622002-07-22 Juanma Barranquero <lektu@terra.es>
11363
11364 * callproc.c (init_callproc) [DOS_NT]:
11365 Initialize Vshared_game_score_directory to nil.
11366 (syms_of_callproc) [DOS_NT]: Likewise.
11367
113682002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11369
11370 * xdisp.c (display_line): Replace an abort with xassert.
11371
113722002-07-21 Richard M. Stallman <rms@gnu.org>
11373
11374 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11375 and END_UNCHANGED when setting buffer_unchanged_p.
11376 Use current_matrix_up_to_date_p to decide whether to use
11377 try_cursor_movement.
11378
11379 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11380
11381 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11382
11383 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11384 Set to nil if dir does not exist.
11385 (syms_of_callproc): Init unconditionally and simply.
11386
11387 * buffer.c (Fbuffer_list): Doc fix.
11388
113892002-07-21 Ken Raeburn <raeburn@gnu.org>
11390
11391 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11392
11393 * buffer.c (mmap_realloc): When shrinking, make sure number of
11394 pages to unmap is rounded towards zero.
11395
11396 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11397 (XSETINT): Deleted.
11398
11399 * m/att3b.h (XINT): Don't define.
11400 (VALBITS, VALMASK, XTYPE): Deleted.
11401 (DATA_SEG_BITS): Define.
11402 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11403 ARRAY_MARK_FLAG): Deleted.
11404 (DATA_SEG_BITS): Define.
11405 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11406 (DATA_SEG_BITS): Define.
11407
114082002-07-20 Richard M. Stallman <rms@gnu.org>
11409
11410 * print.c (print_error_message): New args CONTEXT and CALLER.
11411 Calls changed.
11412
11413 * lisp.h (print_error_message): Declare new args.
11414
11415 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11416 and CONTEXT to print_error_message, don't print them here.
11417 For a Quit, don't use Vsignaling_function.
11418 Call message_log_maybe_newline.
11419
11420 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11421
114222002-07-20 Kim F. Storm <storm@cua.dk>
11423
11424 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11425
114262002-07-19 Ken Raeburn <raeburn@gnu.org>
11427
11428 * bytecode.c (struct byte_stack): Pointers into byte string now
11429 point to const.
11430 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11431 const.
11432 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11433 * coding.c (encode_eol, detect_coding, detect_eol):
11434 (decode_coding, encode_coding, detect_coding_system):
11435 Source strings now treated as const.
11436 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11437 modify Lisp string contents.
11438 * coding.h (decode_coding, encode_coding, detect_coding,
11439 detect_eol): Declarations updated.
11440 * composite.c (compose_chars_in_text): Treat Lisp string contents
11441 as const.
11442 * dispnew.c (safe_bcopy): Source pointer now points to const.
11443 * lisp.h (STRING_COPYIN): New macro.
11444 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11445 (internal_with_output_to_temp_buffer): Declarations updated.
11446 * print.c (temp_output_buffer_setup):
11447 (internal_with_output_to_temp_buffer): Buffer name argument is now
11448 pointer to const.
11449 * sound.c (struct sound_device): Function pointer field "write"
11450 buffer argument now points to const.
11451 (vox_write): Buffer argument points to const.
11452 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11453 contents as const.
11454 * sysdep.c (emacs_write): Buffer pointer now const.
11455 * term.c (encode_terminal_code): Buffer pointer now const.
11456 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11457 (x_face_list_fonts, x_update_menu_appearance):
11458 (hash_string_case_insensitive): Treat Lisp string contents as const.
11459
114602002-07-19 Juanma Barranquero <lektu@terra.es>
11461
048addec
JD
11462 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11463
11464 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
11465 (Ffile_name_as_directory): Fix argument name in docstring.
11466 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
11467
114682002-07-18 Richard M. Stallman <rms@gnu.org>
11469
11470 * data.c (Fdefalias): Doc fix.
11471
114722002-07-17 Dave Love <fx@gnu.org>
11473
11474 * intervals.h (text_property_stickiness): Use P_.
11475
11476 * ccl.c: Remove `emacs' conditionals.
11477 (ccl_backtrace_table): Fix size spec.
11478 (ccl_driver): Fix type errors.
11479
114802002-07-16 Ken Raeburn <raeburn@gnu.org>
11481
11482 * alloc.c (xstrdup, make_string, make_unibyte_string)
11483 (make_multibyte_string, build_string): String pointer args now
11484 point to const.
11485 * charset.c (find_charset_in_text, c_string_width):
11486 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11487 * fileio.c (report_file_error):
11488 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11489 (count_combining_before, count_combining_after, insert_1_both):
11490 (insert, insert_and_inherit, insert_string):
11491 (insert_before_markers, insert_before_markers_and_inherit):
11492 * lread.c (intern, oblookup, hash_string):
11493 * minibuf.c (temp_echo_area_glyphs):
11494 * search.c (fast_c_string_match_ignore_case):
11495 * sysdep.c (emacs_open, set_file_times):
11496 * xfaces.c (xstricmp):
11497 * xdisp.c (store_frame_title, string_char_and_length):
11498 (message_dolog, message2, message2_nolog, set_message): Likewise.
11499 (set_message_1): Cast message string argument to const pointer.
11500 * editfns.c (general_insert_function): Insertion function now
11501 takes pointer to const for input data.
11502 * charset.h (find_charset_in_text, c_string_width):
11503 (parse_str_as_multibyte): Declarations updated.
11504 * dispextern.h (xstricmp): Declaration updated.
11505 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11506 (count_size_as_multibyte, count_combining_before):
11507 (count_combining_after, insert_1, insert_1_both, message_dolog):
11508 (insert, insert_and_inherit, insert_before_markers)
11509 (insert_before_markers_and_inherit, set_message, message2):
11510 (message2_dolog, build_string, make_string, make_unibyte_string):
11511 (make_multibyte_string, intern, oblookup, report_file_error):
11512 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11513 (emacs_open, xstrdup): Declarations updated.
11514 * systime.h (set_file_times): Declaration updated.
11515
11516 * charset.c (find_charset_in_text, lisp_string_width): Use const
11517 for pointer to lisp string data.
11518 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11519 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11520 * coding.c (Ffind_coding_systems_region_interval):
11521 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11522 (Fmake_directory_internal, Fdelete_directory):
11523 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11524 * fontset.c (font_family_registry, fs_query_fontset):
11525 (list_fontsets):
11526 * frame.c (Fframe_parameter):
11527 * keyboard.c (cmd_error_internal):
11528 * keymap.c (Fdescribe_buffer_bindings):
11529 * lread.c (complete_filename_p, openp):
11530 * minibuf.c (Fminibuffer_complete_word):
11531 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11532 (face_before_or_after_it_pos, next_element_from_string):
11533 (get_overlay_arrow_glyph_row, display_mode_element):
11534 (decode_mode_spec_coding):
11535 * xterm.c (same_x_server): Likewise.
11536
11537 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11538 settings of non-existent fields.
11539
11540 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11541 copy a lisp value.
11542
11543 * lread.c (Fintern_soft): Use string macros instead of
11544 Lisp_String fields.
11545 * keyboard.c (echo_char, parse_modifiers_uncached):
11546 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
11547 * textprop.c (validate_interval_range, interval_of): Likewise.
11548
11549 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
11550
11551 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11552 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
11553 XSTRING()->size_byte.
11554
11555 * lisp.h (SDATA, SREF): Produce rvalue.
11556 (SSET): New macro.
11557 * alloc.c (make_event_array): Use SSET for storing into a string.
11558 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
11559 a string.
11560 * casefiddle.c (casify_object): Use SSET.
11561 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11562 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
11563 address of string contents.
11564 * data.c (Faref): Use SDATA.
11565 (Faset): Use SDATA, SSET.
11566 * dired.c (directory_files_internal): Use SSET.
11567 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
11568 (Fread_file_name): Use SREF, SSET.
11569 * fns.c (concat): Use SSET.
11570 (concat, Fdelete): Use SDATA.
11571 * insdel.c (insert_from_string_1): Use SDATA.
11572 * keyboard.c (Fevent_convert_list): Use SREF.
11573 * lread.c (Fload): Use SDATA, SSET.
11574 * macfns.c (validate_x_resource_name): Use SSET.
11575 * process.c (status_message): Use SSET.
11576 * search.c (wordify): Use SDATA.
11577 (Freplace_match): Use SREF.
11578 * w32fns.c (validate_x_resource_name): Use SSET.
11579 * xfns.c (validate_x_resource_name): Use SSET.
11580 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
11581
115822002-07-16 Richard M. Stallman <rms@gnu.org>
11583
11584 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
11585
11586 * xdisp.c (reconsider_clip_changes):
11587 Don't test prevent_redisplay_optimizations_p.
11588 (redisplay_internal): Test prevent_redisplay_optimizations_p
11589 along with clip_changed in some cases.
11590 (try_window_id): Likewise.
11591 (redisplay_window): New local var buffer_unchanged_p.
11592
11593 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
11594
11595 * process.c (create_process): Test USG_SUBTTY_WORKS.
11596 (process_send_signal): Clean up handling of GID.
11597 Detect errors in ioctls meant to set GID.
11598
11599 * window.c (temp_output_buffer_show):
11600 Don't set prevent_redisplay_optimizations_p.
11601
116022002-07-15 Juanma Barranquero <lektu@terra.es>
11603
11604 * eval.c (Fdefvaralias): Add docstring argument.
11605
116062002-07-15 Ken Raeburn <raeburn@gnu.org>
11607
11608 * lisp.h (STRING_INTERVALS): Produce rvalue.
11609 (STRING_SET_INTERVALS): New macro.
11610 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
11611 * fns.c (Fstring_as_multibyte): Likewise.
11612 * intervals.c (balance_possible_root_interval, delete_interval)
11613 (create_root_interval, copy_intervals_to_string): Likewise.
11614 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
11615 instead of 0.
11616
116172002-07-14 Ken Raeburn <raeburn@gnu.org>
11618
11619 * lisp.h (STRING_SET_CHARS): New macro.
11620 (SCHARS, SBYTES): Produce rvalues.
11621 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
11622 * fns.c (concat): Likewise.
11623 * lread.c (read_vector): Likewise.
11624
11625 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
11626 (STRING_SET_UNIBYTE): New macro.
11627 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
11628 length of -1) changed to use STRING_SET_UNIBYTE.
11629 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
11630 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
11631 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
11632 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
11633 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
11634 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
11635 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
11636 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
11637 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
11638 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
11639 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
11640 STRING_BYTES or indirection changed to SCHARS, SBYTES,
11641 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
11642 unchanged for now.
11643
116442002-07-13 Kim F. Storm <storm@cua.dk>
11645
11646 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
11647
116482002-07-12 Richard M. Stallman <rms@gnu.org>
11649
11650 * fileio.c (Fwrite_region): Doc fix.
11651
11652 * print.c (print_error_message): Don't handle Vsignaling_function here.
11653
11654 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
11655 (command_loop_1): Avoid certain actions after memory-full error.
11656
11657 * eval.c (Fsignal): Don't call cancel_hourglass.
11658 For a memory-full error, don't call Vsignal_hook_function
11659 and don't set Vsignaling_function.
11660
11661 * process.c (process_send_signal): Add abort call.
11662
116632002-07-11 Markus Rost <rost@math.ohio-state.edu>
11664
11665 * keymap.c (Fkey_binding): Fix typo.
11666
116672002-07-11 Richard M. Stallman <rms@gnu.org>
11668
11669 * alloc.c (Vmemory_full): New variable.
11670 (Vmemory_signal_data): Renamed from memory_signal_data.
11671 Uses changed.
11672 (syms_of_alloc): Defvar them.
11673 (memory_full, buffer_memory_full): Set Vmemory_full.
11674
11675 * lisp.h (Vmemory_full): Add declaration.
11676 (current_column, indented_beyond_p): Change declaration.
11677
11678 * indent.c (last_known_column): Declare as double, not float.
11679 (current_column, current_column_1, string_display_width)
11680 (position_indentation): Return `double'.
11681 (indented_beyond_p): Arg `column' is `double'. Callers changed.
11682
11683 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
11684 (back_to_previous_visible_line_start)
11685 (reseat_at_next_visible_line_start, next_element_from_buffer):
11686 Use `double', not `float', when calling indented_beyond_p.
11687
11688 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
11689
11690 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
11691
116922002-07-11 Juanma Barranquero <lektu@terra.es>
11693
11694 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
11695 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
11696 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
11697 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
11698 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
11699 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
11700
117012002-07-10 Juanma Barranquero <lektu@terra.es>
11702
d814862a
JB
11703 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
11704 All callers changed.
048addec
JD
11705
117062002-07-09 Stefan Monnier <monnier@cs.yale.edu>
11707
11708 * data.c (Fdefalias): Add an optional `docstring' argument.
11709 (set_internal, Fsetq_default): Use XCAR/XCDR.
11710
11711 * composite.c (HASH_VALUE, HASH_KEY):
11712 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
11713
117142002-07-09 Kenichi Handa <handa@etl.go.jp>
11715
11716 * callproc.c (Fcall_process): Fix previous change.
11717
117182002-07-07 Stefan Monnier <monnier@cs.yale.edu>
11719
11720 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11721 Add support for hash-tables.
11722 (Ftry_completion): Return t even if the string appears multiple times.
11723
11724 * fns.c (Fnconc): Use XCDR.
11725 (Fprovide): Use CONSP and XCDR.
11726 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11727 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
11728 (Fmake_hash_table): Accept `:size nil'.
11729 (Fmakehash): Delete: moved to subr.el.
11730 (syms_of_fns): Don't defsubr makehash.
11731
11732 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11733 (HASH_TABLE_SIZE): Move from fns.c.
11734
117352002-07-07 Richard M. Stallman <rms@gnu.org>
11736
11737 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
11738 Instead just return 0 when there is something to be done.
11739 (try_scrolling): If make_cursor_line_fully_visible returns 0,
11740 retry scrolling as if cursor were off the bottom.
11741 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
11742 return CURSOR_MOVEMENT_MUST_SCROLL.
11743 (redisplay_window): If make_cursor_line_fully_visible returns 0,
11744 go to try_to_scroll.
11745
11746 * buffer.c (Fbuffer_local_value): Store current value into its binding
11747 so we get the up-to-date value for the binding that is loaded.
11748
11749 * eval.c (Fdefmacro): Doc fix.
11750
117512002-07-05 Dave Love <fx@gnu.org>
11752
11753 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
11754 correctly.
11755
11756 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
11757 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
11758 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
11759 CCL_LookupCharConstTbl.
11760 (syms_of_ccl): Defvar translation-hash-table-vector.
11761
117622002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11763
11764 * xdisp.c: Remove unused variable `face'.
11765
117662002-07-04 Juanma Barranquero <lektu@terra.es>
11767
11768 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
11769 obsolescence information.
11770
117712002-07-03 Andrew Choi <akochoi@shaw.ca>
11772
11773 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
11774 pattern. Search cache first.
11775 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
11776 for Japanese font.
11777 (XLoadQueryFont): Use it.
11778
117792002-07-02 Richard M. Stallman <rms@gnu.org>
11780
11781 * keymap.c (Fdefine_key): Doc fix.
11782
11783 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
11784
117852002-07-02 Juanma Barranquero <lektu@terra.es>
11786
11787 * keymap.c (syms_of_keymap): Fix typo.
11788
117892002-07-01 Andrew Choi <akochoi@shaw.ca>
11790
11791 * s/darwin.h: Define POSIX_SIGNALS.
11792
11793 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
11794 and FSRefMakePath to convert FSSpec returned with Apple Event to
11795 Posix pathname.
11796 (mac_initialize) [TARGET_API_MAC_CARBON]:
11797 Call init_required_apple_events and disable the `Quit' menu item
11798 provided automatically by the Carbon Toolbox.
11799
118002002-07-01 Dave Love <fx@gnu.org>
11801
11802 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11803 for K&R.
11804
11805 * xterm.c: Fix prototype for K&R.
11806
11807 * term.c (costs_set): Declare static, non-initialized for pcc.
11808
118092002-07-01 Richard M. Stallman <rms@gnu.org>
11810
11811 * keyboard.c (timer_last_idleness_start_time): New variable.
11812 (timer_start_idle): Set that.
11813 (read_key_sequence): Use that to reset timer_idleness_start_time
11814 to previous value.
11815
11816 * window.c (Frecenter): With arg, set optional_new_start.
11817
11818 * xdisp.c (redisplay_internal): Make optional_new_start really work.
11819
11820 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
11821 buffer for completion.
11822
118232002-06-29 Ken Raeburn <raeburn@gnu.org>
11824
11825 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
11826
118272002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11828
11829 * keyboard.c (readable_filtered_events): New function that filters
11830 FOCUS_IN_EVENT depending on parameter.
11831 (readable_events): Calls readable_filtered_events, not filtering
11832 FOCUS_IN_EVENT.
11833 (get_filtered_input_pending): New function, filtering parameter passed
11834 to readable_filtered_events.
11835 (get_input_pending): Calls get_filtered_input_pending, not filtering
11836 FOCUS_IN_EVENT.
11837 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
11838 FOCUS_IN_EVENT.
11839
11840 * xterm.h (struct x_output): Add focus_state.
11841
11842 * xterm.c (x_focus_changed): New function.
11843 (x_detect_focus_change): New function.
11844 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
11845 EnterNotify and LeaveNotify to track X focus changes.
11846
118472002-06-28 Andreas Schwab <schwab@suse.de>
11848
11849 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
11850
118512002-06-27 Kim F. Storm <storm@cua.dk>
11852
11853 * xdisp.c: (mode_line_string_list, mode_line_string_face)
11854 (mode_line_string_face_prop): New variables.
11855 (store_mode_line_string): New function.
11856 (display_mode_element): Use store_mode_line_string to
11857 add mode-line string elements to mode_line_string_list
11858 when mode_line_string_list is non-nil.
11859 (Fformat_mode_line): Now returns propertized string by
11860 default. New arg NO-PROPS to ignore properties.
11861 (decode_mode_spec): Only add two dashes for %- in propertized
11862 mode-line string.
11863 (syms_of_xdisp): Init and staticpro mode_line_string_list.
11864
118652002-06-27 Stefan Monnier <monnier@cs.yale.edu>
11866
11867 * minibuf.c (minibuffer_completion_contents): Add return type.
11868
118692002-06-27 Juanma Barranquero <lektu@terra.es>
11870
11871 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
11872
118732002-06-26 Juanma Barranquero <lektu@terra.es>
11874
11875 * fileio.c (read_file_name_cleanup): Add missing return.
11876
118772002-06-26 Richard M. Stallman <rms@gnu.org>
11878
11879 * window.c (Frecenter): Don't set force_start flag.
11880
11881 * minibuf.c (do_completion, Fminibuffer_complete_word)
11882 (Fminibuffer_completion_help): Complete just the text before point.
11883 (minibuffer_completion_contents): New function.
11884
11885 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
11886
11887 * frame.c (frames_bury_buffer): Function deleted.
11888
118892002-06-25 Miles Bader <miles@gnu.org>
11890
11891 * callint.c (Fcall_interactively): When checking to see if doprnt hit
11892 the end of callint_message, allow for a terminating '\0'.
11893
118942002-06-24 Juanma Barranquero <lektu@terra.es>
11895
11896 * w32select.c: Include composite.h
11897
11898 * w16select.c: Likewise.
11899
119002002-06-24 Kenichi Handa <handa@etl.go.jp>
11901
11902 * callproc.c (Fcall_process): If code detection is necessary,
11903 call detect_coding directly here.
11904
11905 * coding.c (detect_eol): Preserve coding->cmp_data.
11906
11907 * w16select.c (Fw16_get_clipboard_data):
11908 * w32fns.c (w32_to_x_font):
11909 * w32select.c (Fw32_get_clipboard_data):
11910 * xselect.c (selection_data_to_lisp_data):
11911 * xterm.c (XTread_socket): Disable composition handling.
11912
119132002-06-24 Stefan Monnier <monnier@cs.yale.edu>
11914
11915 * print.c (temp_output_buffer_setup): Kill all local variables.
11916
119172002-06-22 Stefan Monnier <monnier@cs.yale.edu>
11918
11919 * lread.c (Fread): Remove redundant and imprecise declaration.
11920
11921 * xfns.c (check_x_display_info): Use check_x_frame.
11922
11923 * .gdbinit (xprintsym): Use the new `xname' field.
11924 (xsymbol): Use it.
11925
119262002-06-22 Jason Rumney <jasonr@gnu.org>
11927
11928 * w32fns.c (file_dialog_callback): New function.
11929 (Fx_file_dialog): Allow selecting directories as well as files.
11930
119312002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11932
11933 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 11934 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
11935
119362002-06-17 Andrew Choi <akochoi@shaw.ca>
11937
11938 * macterm.c (mac_scroll_area): Set foreground and backcolor to
11939 black and white before scrolling. Restore frame background and
11940 foreground color after scrolling.
11941 (do_window_update): Call XClearWindow before calling expose_frame.
11942 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
11943 FRAME_FOREGROUND_PIXEL of frame.
11944
11945 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11946 test Mac command key as <ALT> key.
11947
119482002-06-17 Stefan Monnier <monnier@cs.yale.edu>
11949
11950 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
11951
11952 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
11953 Lookup keys in function-key-map immediately so that key-translation-map
11954 can be applied earlier.
11955 Remove function_key_possible and key_translation_possible, replaced
11956 by checking `keytran_start < t'.
11957
11958 * .gdbinit (xsymbol): Use the new `xname' field.
11959
119602002-06-17 Andrew Choi <akochoi@shaw.ca>
11961
11962 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11963 test Mac command key as <ALT> key.
11964
11965 * mac.c (do_applescript): Call initialize_applescript if necessary
11966 when first called. Dispose of result_desc only when there is no error.
11967 (Fdo_applescript): Use %d format specifier instead of %ld.
11968
119692002-06-16 Andrew Choi <akochoi@shaw.ca>
11970
11971 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
11972 of FrontWindow for cases keyDown and autoKey.
11973
11974 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
11975 Vdefault_fontset to Monaco with mac-roman coding.
11976
11977 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
11978 init_process before and after inclusion of Carbon/Carbon.h, resp.
11979
11980 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
11981 cursor_gc.
11982 (add_font_name_table_entry): New function.
11983 (init_font_name_table): Use add_font_name_table_entry; add italic,
11984 bold, and bold-italic entries for truetype fonts.
11985
11986 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
11987 for Mac too.
11988 (try_font_list) [MAC_OS]: If no font matches given registry, try
11989 fonts with any registry matching face_family.
11990 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
11991
11992 * s/darwin.h: If autoconf detects the Ncurses library, define
11993 LIBS_TERMCAP to -lncurses to use it.
11994
119952002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
11996
11997 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
11998
119992002-06-15 Richard M. Stallman <rms@gnu.org>
12000
12001 * window.c (Fset_window_configuration): Explicitly preserve
12002 the point value that new_current_buffer had at the start.
12003
120042002-06-14 Juanma Barranquero <lektu@terra.es>
12005
12006 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12007 Fix typos.
12008
120092002-06-14 Kim F. Storm <storm@cua.dk>
12010
12011 * insdel.c (insert_1_both, insert_from_string_1)
12012 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12013 insert happened in the end_unchanged region. Otherwise, the
12014 redisplay may be confused and duplicate the last line in the
12015 buffer [seen after save-buffer when require-final-newline==t].
12016
120172002-06-13 Jason Rumney <jasonr@gnu.org>
12018
12019 * w32.c (init_environment): Remove EMACSLOCKDIR.
12020 (stat): Swap _S_IFDIR and _S_IFREG.
12021
120222002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12023
12024 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12025 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12026 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12027 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12028 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12029 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12030 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12031 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12032 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12033 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12034 SELECTION_REQUEST_EVENT, selection_clear_event to
12035 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12036 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12037 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12038 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12039 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12040 no_event to NO_EVENT.
12041
120422002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12043
12044 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12045
120462002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12047
12048 * intervals.c (textget): Don't forget to `return'.
12049 (lookup_char_property): Use XCAR/XCDR.
12050
120512002-06-12 Juanma Barranquero <lektu@terra.es>
12052
12053 * xdisp.c (Fformat_mode_line): Fix typo.
12054
120552002-06-12 Kim F. Storm <storm@cua.dk>
12056
12057 * xdisp.c (Fformat_mode_line): New function.
12058 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12059 (store_frame_title_char, store_frame_title): Use unconditionally.
12060 (init_xdisp): Defsubr Fformat_mode_line.
12061 Initialize frame_title_buf etc. unconditionally.
12062
120632002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12064
12065 * keyboard.c (read_key_sequence):
12066 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12067 things through those maps after downcasing events.
12068 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12069 applies after function-key-map.
12070 Make sure that keytran can be done in the middle in the sequence.
12071 Be careful not to throw away events past the one we downcase.
12072
12073 * lread.c (read_integer): Remove unused var `tem'.
12074 (read1): Fix int/Lisp_Object mixup.
12075
12076 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12077
120782002-06-11 Richard M. Stallman <rms@gnu.org>
12079
12080 * keyboard.c (readable_events): Ignore any number of
12081 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12082
120832002-06-09 Miles Bader <miles@gnu.org>
12084
12085 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12086 (parse_rgb_list, tty_lookup_color): New functions.
12087 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12088 (color_distance, Fcolor_distance): New functions.
12089 (TTY_SAME_COLOR_THRESHOLD): New macro.
12090 (Qtty_color_standard_values): New variable.
12091 (syms_of_xfaces): Initialize new vars & functions.
12092
120932002-06-08 Colin Walters <walters@verbum.org>
12094
12095 * textprop.c (Vchar_property_alias_alist): New variable.
12096 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12097
12098 * intervals.c (lookup_char_property): New function for looking up
12099 overlay and text properties, created from textget.
12100 (textget): Use it.
12101
12102 * intervals.h (lookup_char_property): Declare.
12103 (Vchar_property_alias_alist): Declare.
12104
12105 * buffer.c (Foverlay_get): Use lookup_char_property.
12106
121072002-06-07 Sam Steingold <sds@gnu.org>
12108
12109 * xselect.c (lisp_data_to_selection_data): Fix last change:
12110 *data_ret is not a Lisp string, while unibyte_string is.
12111
121122002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12113
12114 * xselect.c (lisp_data_to_selection_data): Fix last change:
12115 set size_ret.
12116
121172002-06-07 Andreas Schwab <schwab@suse.de>
12118
12119 * m/amdx86-64.h: New file.
12120
121212002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12122
12123 * fns.c (Fstring_make_unibyte): Doc fix.
12124
12125 * xselect.c (lisp_data_to_selection_data): If the requested type
12126 is STRING, call string_make_unibyte to encode the selected text
12127 as a string.
12128
12129 * window.c (Fset_window_hscroll): Doc fix.
12130
121312002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12132
12133 * fileio.c (choose_write_coding_system):
12134 Call select-safe-coding-system properly.
12135
121362002-06-03 Richard M. Stallman <rms@gnu.org>
12137
12138 * xdisp.c (message_with_string): Error if STRING is not a string.
12139
12140 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12141
12142 * fileio.c (choose_write_coding_system): Pass FILE arg to
12143 Vselect_safe_coding_system_function.
12144
121452002-06-03 Ken Raeburn <raeburn@gnu.org>
12146
12147 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12148
121492002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12150
12151 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12152 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12153 * keymap.c (describe_command): Likewise.
12154 * minibuf.c (read_minibuf): Likewise.
12155
12156 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12157 Cast `current_column' return value to int.
12158 (back_to_previous_visible_line_start)
12159 (reseat_at_next_visible_line_start, next_element_from_buffer):
12160 Cast `indented_beyond_p' 3rd arg to float.
12161
12162 * indent.c (last_known_column): Now a float.
12163 (current_column_1, position_indentation, current_column)
12164 (string_display_width): Return float.
12165 (Fcurrent_column): Cast `current_column' return value to int.
12166 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12167 (indented_beyond_p): Third arg now a float.
12168 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12169
12170 * lisp.h (current_column): Now returns float.
12171 (indented_beyond_p): 3rd arg now a float.
12172
121732002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12174
12175 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12176 is Qcompound_text_with_extensions.
12177
12178 * xselect.c (lisp_data_to_selection_data): Always set selection
12179 type as string if x_encode_text returns streingp non-NULL.
12180
12181 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12182
121832002-05-30 Richard M. Stallman <rms@gnu.org>
12184
12185 * window.c (Fset_window_configuration): Correct the handling
12186 of point in current buffer, to work with multiple windows.
12187
121882002-05-29 Colin Walters <walters@verbum.org>
12189
12190 * lread.c (Fread_from_string): Don't depend on order of evaluation
12191 for C function parameters.
12192
121932002-05-28 Richard M. Stallman <rms@gnu.org>
12194
12195 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12196 way for blinked-off state and for a nonselected window.
12197
12198 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12199 instead, see if the new start pos is at beginning of line.
12200
12201 * fileio.c (Fwrite_region): If START is a string, don't
12202 make any annotations.
12203
12204 * eval.c (syms_of_eval): Doc fix.
12205
122062002-05-28 Colin Walters <walters@debian.org>
12207
12208 * emacs.c (USAGE1): Add --no-splash.
12209 (standard_args): Ditto.
12210
122112002-05-28 Colin Walters <walters@gnu.org>
12212
12213 * lread.c (readchar_count): New variable.
12214 (readchar): Increment it.
12215 (unreadchar): Decrement it.
12216 (read_multibyte): Decrement it.
12217 (Vread_with_symbol_positions): New variable.
12218 (Vread_symbol_positions_list): New variable.
12219 (read_internal_start): New function, created from Fread and
12220 Fread_from_string. Handle Vread_symbol_positions_list and
12221 Vread_with_symbol_positions.
12222 (readevalloop, Fread, Fread_from_string): Use it.
12223 (read1): Use readchar_count to add symbol positions to
12224 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12225 (syms_of_lread): DEFVAR_LISP and initialize them.
12226
12227 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12228 (substitute_object_recurse, substitute_object_in_subtree)
12229 (substitute_in_interval): Prototype.
12230 (read_multibyte): Return c if it's less than zero.
12231
122322002-05-28 Kim F. Storm <storm@cua.dk>
12233
12234 * fileio.c (Fread_file_name_internal): Added brute-force
12235 speed up for using predicate file-directory-p.
12236
122372002-05-28 Kim F. Storm <storm@cua.dk>
12238
12239 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12240 New variables.
12241 (syms_of_fileio): DEFVAR_LISP them.
12242 (read_file_name_cleanup): New unwind function.
12243 (Fread_file_name_internal): Only return completions satifying
12244 Vread_file_name_predicate. Temporarily unwind protect and rebind
12245 default-directory while checking completions against the predicate.
12246 (Fread_file_name): Added PREDICATE argument. Specbind it to
12247 Vread_file_name_predicate during completion.
12248 Call Vread_file_name_function to read the file name if non-nil.
12249
12250 * lisp.h (Fread_file_name): Now has 6 args.
12251
12252 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12253 predicate for Fread_file_name when reading directory name.
12254 Supply Qnil for predicate in other calls to Fread_file_name.
12255
122562002-05-26 Miles Bader <miles@gnu.org>
12257
12258 * term.c (tty_capable_p): New function.
12259 * dispextern.h (tty_capable_p): New function declaration.
12260 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12261 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12262
122632002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12264
12265 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12266 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12267 (Vwrite_region_annotate_functions): Docstring fix.
12268
122692002-05-23 Kim F. Storm <storm@cua.dk>
12270
12271 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12272 phys_cursor's hpos is overwritten. This is still not completely
12273 correct, as it doesn't really make sense to use hpos at all to
12274 get the cursor glyph (as that is relative to the width of the
12275 characters on the line, which may have changed during the update).
12276
122772002-05-22 Jason Rumney <jasonr@gnu.org>
12278
12279 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12280 Lisp_Object.
12281 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12282 Use modified enumfont_t struct.
12283
12284 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12285
12286 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12287 Handle the `hbar' cursor type.
12288 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12289
12290 * w32fns.c (Qhbar): New variable.
12291 (x_specified_cursor_type): Use it.
12292
122932002-05-21 Ken Raeburn <raeburn@gnu.org>
12294
12295 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12296 now, when the address is needed.
12297
122982002-05-21 Colin Walters <walters@gnu.org>
12299
12300 * Makefile.in (shortlisp): Add font-core.el.
12301
123022002-05-20 Richard M. Stallman <rms@gnu.org>
12303
12304 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12305
12306 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12307 equivalent key bindings here.
12308
123092002-05-20 Ken Raeburn <raeburn@gnu.org>
12310
12311 Change symbol structure to contain a lisp object for the symbol
12312 name:
12313 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12314 object field named "xname".
12315 (SYMBOL_NAME): New macro.
12316 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12317 name field.
12318 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12319 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12320 instead of name field.
12321 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12322 SYMBOL_NAME instead of XSYMBOL and name field.
12323 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12324 instead of XSYMBOL and name field.
12325 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12326 and SYMBOL_NAME instead of XSYMBOL and name field.
12327 * coding.c (Fread_coding_system, code_convert_region1)
12328 (code_convert_string1, code_convert_string_norecord)
12329 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12330 XSYMBOL and name field.
12331 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12332 (Fmake_variable_buffer_local, Fmake_local_variable)
12333 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12334 of XSYMBOL and name field.
12335 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12336 XSYMBOL and name field.
12337 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12338 instead of XSYMBOL and name field.
12339 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12340 XSYMBOL and name field.
12341 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12342 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12343 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12344 instead of XSYMBOL and name field.
12345 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12346 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12347 (parse_solitary_modifier, Fexecute_extended_command):
12348 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12349 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12350 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12351 of XSYMBOL and name field.
12352 (describe_command, describe_translation): Use SYMBOL_NAME and
12353 assignment instead of XSYMBOL and name field and XSETSTRING.
12354 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12355 instead of XSYMBOL and name field.
12356 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12357 name field and XSETSTRING.
12358 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12359 of XSYMBOL and name field.
12360 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12361 assignment instead of XSYMBOL and name field and XSETSTRING.
12362 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12363 XSTRING instead of XSYMBOL and name field.
12364 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12365 and XSTRING instead of XSYMBOL and name field.
12366 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12367 and XSTRING instead of XSYMBOL and name field.
12368 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12369 XSTRING instead of XSYMBOL and name field.
12370 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12371 of XSYMBOL and name field.
12372 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12373 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12374
123752002-05-19 Ken Raeburn <raeburn@gnu.org>
12376
12377 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12378 and XCDR real rvalues in most configurations.
12379
12380 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12381 Don't take the address of the cdr part of a cons cell; instead, track
12382 the parent cell and call XSETCDR, or set the variable for the head
12383 of the list if we haven't started down the list yet.
12384
123852002-05-19 Richard M. Stallman <rms@gnu.org>
12386
12387 * doc.c (reread_doc_file): Don't ask for confirmation.
12388
123892002-05-18 Jason Rumney <jasonr@gnu.org>
12390
12391 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12392 (xbm_load_image): Use it.
12393 (xbm_load): Ditto.
12394 (xbm_read_bitmap_data): Reverted to xfns.c version.
12395 From David Ponce <david@dponce.com>.
12396
123972002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12398
12399 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12400 2.02 and later.
12401
124022002-05-16 Juanma Barranquero <lektu@terra.es>
12403
12404 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12405
124062002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12407
12408 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12409 meaningful test.
12410 (read_char_minibuf_menu_prompt): Fix typo.
12411
124122002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12413
12414 * eval.c (Fcommandp): Doc fix.
12415
124162002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12417
12418 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12419 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12420 (Fset_keymap_parent): Gcpro a bit more.
12421 (access_keymap): Gcpro around meta_map call and around the main loop.
12422 (get_keyelt): Gcpro when following indirect references.
12423 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12424 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12425 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12426 Remove useless ad-hoc remap code.
12427
124282002-05-13 Richard M. Stallman <rms@gnu.org>
12429
12430 * search.c (search_buffer): Give up boyer moore search if inverse
12431 translation change charset_base.
12432
124332002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12434
12435 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12436 characters is carried over from the previous block of text, adjust
12437 coding->produced to account for the extra character.
12438
124392002-05-11 Andreas Schwab <schwab@suse.de>
12440
12441 * coding.c (intersection): Keep the elements of the returned list
12442 in the same order as in the first list.
12443
124442002-05-11 Kim F. Storm <storm@cua.dk>
12445
12446 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12447 only update cmm_size if realloc actually succeeds.
12448 Testing with initial size of 2 elements revealed that using
12449 realloc on GNU/Linux would cause a random trap in xmalloc
12450 later on, so I rewrote the code to use malloc/bcopy/free instead
12451 of realloc.
12452
124532002-05-10 Jason Rumney <jasonr@gnu.org>
12454
12455 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12456
124572002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12458
12459 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12460 parens, to ensure correct evaluation order.
12461
124622002-05-10 Kim F. Storm <storm@cua.dk>
12463
12464 * keymap.c (Vemulation_mode_map_alists): New variable.
12465 (syms_of_keymap): DEFVAR_LISP it.
12466 (current_minor_maps): Process keymap alists in that list before
12467 minor-mode-overriding-map-alist and minor-mode-map-alist.
12468
124692002-05-09 Richard M. Stallman <rms@gnu.org>
12470
12471 * search.c (Freplace_match): Doc fix.
12472
124732002-05-09 Kim F. Storm <storm@cua.dk>
12474
12475 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12476 Enlarge cursor rectangle drawn around image with non-zero relief.
12477
12478 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12479 Enlarge cursor rectangle drawn around image with non-zero relief.
12480
12481 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12482 Enlarge cursor rectangle drawn around image with non-zero relief.
12483
124842002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12485
12486 * xselect.c (lisp_data_to_selection_data): Don't set selection
12487 type if comes from the Lisp object's car. If the selection
12488 contains a pure ASCII text, always return QSTRING as its type.
12489
124902002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12491
12492 * mac.c (mac-cut-function): Doc fix.
12493
124942002-05-05 Richard M. Stallman <rms@gnu.org>
12495
12496 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12497
124982002-05-04 Jason Rumney <jasonr@gnu.org>
12499
12500 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12501 for event-click-count.
12502
12503 * process.c (init_process): Only add server subfeature if we can
12504 use non-blocking I/O.
12505
125062002-05-04 Andrew Choi <akochoi@shaw.ca>
12507
12508 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12509 repeatedly.
12510
125112002-05-03 Jason Rumney <jasonr@gnu.org>
12512
12513 * process.c (Fmake_network_process): Only support server sockets
12514 when we can make them non-blocking.
12515
12516 * s/ms-w32.h (HAVE_SELECT): Define.
12517
12518 * w32.h (FILE_NDELAY): New flag.
12519
12520 * w32.c (sys_getpeername, fcntl): New functions.
12521 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12522
12523 * w32proc.c: include sys/file.h.
12524
125252002-05-03 Colin Walters <walters@verbum.org>
12526
12527 * callproc.c (Vgame_score_directory): Renamed to
12528 Vshared_game_score_directory.
12529
125302002-04-30 Richard M. Stallman <rms@gnu.org>
12531
12532 * s/gnu.h [emacs]: Include stdio.h.
12533 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12534
12535 * eval.c (do_autoload): Error if called while preparing to dump.
12536
12537 * fns.c (Frequire): Error if need to load while preparing to dump.
12538
125392002-04-28 Colin Walters <walters@verbum.org>
12540
12541 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12542 Default to "~/.emacs.d/games".
12543
125442002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12545
12546 * lread.c (openp): Change arg exec_only to predicate.
12547 (build_load_history): Use XCAR/XCDR.
12548 (Flocate_file_internal): New fun.
12549 (syms_of_lread): Defsubr it.
12550 (Fload): Update call to openp.
12551
12552 * lisp.h (openp): Update prototype.
12553
12554 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
12555 * w32proc.c (sys_spawnve):
12556 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
12557 * w32.c (check_windows_init_file):
12558 * sound.c (Fplay_sound_internal):
12559 * process.c (Fstart_process):
12560 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
12561 * mac.c (run_mac_command):
12562 * emacs.c (init_cmdargs):
12563 * callproc.c (Fcall_process): Update call to openp.
12564
12565 * textprop.c (remove_properties): Don't use XCAR without CONSP.
12566
12567 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
12568
125692002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12570
12571 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
12572 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
12573
125742002-04-28 Richard M. Stallman <rms@gnu.org>
12575
12576 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
12577
12578 * eval.c (Fcommandp): New arg for_call_interactively.
12579 * lisp.h (Fcommandp): Declare new arg.
12580
125812002-04-28 Jason Rumney <jasonr@gnu.org>
12582
12583 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
12584
12585 * w32.c (stat, fstat): Use file index information to generate
12586 inodes for directories where available.
12587
125882002-04-26 Andrew Choi <akochoi@shaw.ca>
12589
12590 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
12591 [HAVE_CARBON]: Include Mac object files.
12592
12593 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
12594 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
12595 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
12596 MAC_OSX, and MAC_OS instead of macintosh.
12597
12598 * editfns.c [MAC_OS8]: Include stdio.h.
12599
12600 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
12601
12602 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
12603 Apple Monaco.
12604
78819ebb 12605 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
12606 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
12607 calling select.
12608
12609 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
12610
12611 * tparam.c [MAC_OSX]: Don't define BC and UP.
12612
12613 * config.in [HAVE_CARBON]: Add.
12614
12615 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
12616 Move here from mac/src and mac/inc.
12617
12618 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
12619
126202002-04-26 Gerd Moellmann <gerd@gnu.org>
12621
12622 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
12623 Compute phys_cursor_width from the x position returned
12624 by x_draw_glyhs, which is cheaper.
12625 (x_display_and_set_cursor): Compute the buffer-local value
12626 of `cursor-in-non-selected-windows' only when needed.
12627
126282002-04-25 Gerd Moellmann <gerd@gnu.org>
12629
12630 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
12631 cursor on a stretch glyph has a width that depends on
12632 x_stretch_cursor_p.
12633
126342002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12635
12636 * abbrev.c (abbrev-start-location): Doc fix.
12637
12638 * indent.c (Fvertical_motion): Fix last change.
12639
126402002-04-25 Gerd Moellmann <gerd@gnu.org>
12641
12642 * indent.c (Fvertical_motion): Move to the start of the line
12643 containing PT before moving up or down.
12644
126452002-04-24 Gerd Moellmann <gerd@gnu.org>
12646
12647 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
12648 case of writing a whole row, more or less analogous to the case of
12649 writing only parts of a row.
12650
12651 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
12652 0 for NO_CURSOR.
12653
12654 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
12655
126562002-04-23 Colin Walters <walters@verbum.org>
12657
12658 * buffer.c (syms_of_buffer): Doc fix.
12659
126602002-04-23 Gerd Moellmann <gerd@gnu.org>
12661
12662 * xterm.c (notice_overwritten_cursor): Handle the special case
12663 of the cursor being in the first blank non-text line at the
12664 end of a window.
12665
12666 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12667 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12668 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
12669 bar cursors only, to make phys_cursor_width contain what its name
12670 suggests.
12671 (notice_overwritten_cursor): Consider the cursor image erased if
12672 the output area intersects the cursor image in y-direction.
12673
126742002-04-23 Simon Marshall <simon@gnu.org>
12675
12676 * xfns.c (x_set_mouse_color): Change default for cross_cursor
12677 to XC_hand2.
12678
126792002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12680
12681 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
12682
126832002-04-22 Kim F. Storm <storm@cua.dk>
12684
12685 * textprop.c (remove_properties): Fixed trap for malformed plist.
12686
126872002-04-22 Richard M. Stallman <rms@gnu.org>
12688
12689 * cmds.c (Fend_of_line): Handle intangible text in mid line.
12690
12691 * window.c (make_window): Initialize height_fixed_p,
12692 last_cursor_off_p, and p->cursor_off_p slots.
12693
126942002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12695
12696 * fns.c (use-dialog-box): Doc fix.
12697
126982002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12699
12700 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
12701 variables `row', `i' and `area'.
12702 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
12703 toolkit library.
12704
127052002-04-19 Stefan Monnier <monnier@cs.yale.edu>
12706
12707 * xfaces.c (clear_font_table): Don't free the default font of
12708 a frame even if it's on another display.
12709 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
12710 that could be Qt.
12711
127122002-04-19 Juanma Barranquero <lektu@terra.es>
12713
12714 * indent.c (Fmove_to_column): Remove unused local variable
12715 `next_boundary_byte'.
12716 (current_column_1): Likewise.
12717
127182002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
12719
12720 * msdos.c (Qhbar): New variable.
12721 (syms_of_msdos): Intern and staticpro it.
12722 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
12723 cursor type.
12724
127252002-04-19 Dave Lambert <dlambert@acm.org>
12726
12727 Theses change implement an underscore-like (`hbar') cursor.
12728
12729 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12730
12731 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
12732 Handle the `hbar' cursor type.
12733 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12734
12735 * xfns.c (Qhbar): New variable.
12736 (syms_of_xfns): Intern and staticpro it.
12737 (x_specified_cursor_type): Handle `hbar' cursor.
12738
12739 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
12740 not defined.
12741
127422002-04-18 Richard M. Stallman <rms@gnu.org>
12743
12744 * textprop.c (remove_properties): New arg LIST allows scanning
12745 either a list or a plist.
12746 (interval_has_some_properties_list): New function, like
12747 interval_has_some_properties using list instead of plist.
12748 All callers changed.
12749 (Fremove_list_of_text_properties): New function.
12750 (syms_of_textprop): Defsubr it.
12751
127522002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12753
12754 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
12755
127562002-04-17 Juanma Barranquero <lektu@terra.es>
12757
12758 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
12759
127602002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12761
12762 * window.c (coordinates_in_window): Don't report on margin area
12763 if its width is zero.
12764
127652002-04-16 Jason Rumney <jasonr@gnu.org>
12766
12767 * w32fns.c (Fx_file_dialog): Decode file name before using.
12768
12769 * w32term.c (construct_drag_n_drop): Likewise.
12770
127712002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
12772
12773 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
12774 store load-history in pure space.
12775
12776 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
12777
127782002-04-16 Stefan Monnier <monnier@cs.yale.edu>
12779
12780 * xterm.c (Qlatin_1, Qutf_8): New vars.
12781 (syms_of_xterm): Initialize them.
12782 (XTread_socket): Eliminate incorrect optimization that tried to avoid
12783 decoding the output of X*LookupString.
12784 Always use latin-1 to decode the output of XLookupString.
12785 Try Xutf8LookupString if XmbLookupString failed.
12786
12787 * region-cache.c (new_region_cache): Use BEG.
12788
127892002-04-16 Gerd Moellmann <gerd@gnu.org>
12790
12791 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
12792 configuration files.
12793 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
12794 returns 0.
12795
127962002-04-15 Andreas Schwab <schwab@suse.de>
12797
12798 * config.in: Regenerated using autoheader.
12799
12800 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
12801 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
12802 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
12803 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
12804 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
12805 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
12806 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
12807 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
12808 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
12809 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
12810 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
12811 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
12812 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
12813 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
12814 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
12815 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
12816 STACK_DIRECTION, now set by autoconf.
12817
128182002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12819
12820 * dispnew.c (marginal_area_string): Sort arguments.
12821
12822 * dispextern.h (marginal_area_string): Add prototype.
12823
128242002-04-13 Richard M. Stallman <rms@gnu.org>
12825
12826 * fileio.c (Finsert_file_contents):
12827 Don't call temp_output_buffer_setup--do just part, by hand.
12828
12829 * coding.c (run_pre_post_conversion_on_str):
12830 Don't call temp_output_buffer_setup--do just part, by hand.
12831
12832 * keyboard.c (command_loop_1): Don't call start_hourglass
12833 or cancel_hourglass when executing a macro.
12834
12835 * marker.c (count_markers): New function.
12836
12837 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
12838 grow without limit. Move recently used elements to the front.
12839
128402002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12841
12842 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
12843
128442002-04-12 Gerd Moellmann <gerd@gnu.org>
12845
12846 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
12847 rows marginal areas.
12848 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
12849 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12850
12851 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
12852
128532002-04-12 Dave Love <fx@gnu.org>
12854
12855 * dispnew.c (marginal_area_string): New.
12856
12857 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
12858 (Qleft_margin, Qright_margin): Declare.
12859 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
12860
12861 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
12862 note_mode_line_highlight and extended.
12863
12864 * keyboard.c (Qleft_margin, Qright_margin): Declare.
12865 (make_lispy_event): Deal with mouse events in margins.
12866
128672002-04-12 Stefan Monnier <monnier@cs.yale.edu>
12868
12869 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
12870
12871 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
12872 than deactivating the mark if tmm is set to `lambda'.
12873 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
12874 Use a single event for HELP_EVENT.
12875 (Fexecute_extended_command): Save last_point_position.
12876
128772002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12878
12879 * lisp.h (Fpropertize): Add prototype.
12880
12881 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
12882
128832002-04-10 Colin Walters <walters@verbum.org>
12884
12885 * config.in: Add HAVE_SHARED_GAME_DIR.
12886
12887 * callproc.c: (Vgame_score_directory): New variable.
12888 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
12889
128902002-04-10 Richard M. Stallman <rms@gnu.org>
12891
12892 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
12893
128942002-04-09 Stefan Monnier <monnier@cs.yale.edu>
12895
12896 * minibuf.c (read_minibuf): Use empty_string.
12897 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
12898 Short-circuit the search as soon as it "failed".
12899 (Fall_completions): Allow lambda forms and lists of strings for alist.
12900 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
12901 when require_match is nil.
12902 (Ftest_completion): Rename from `test_completion' and export to elisp.
12903 Call the predicate also when alist is a list.
12904 Obey Vcompletion_regexp_list.
12905 (do_completion, Fminibuffer_complete_and_exit): Use it.
12906 (Fassoc_string): Rename from `assoc_for_completion'.
12907 Allow list of strings as well and export to elisp.
12908
129092002-04-08 Stefan Monnier <monnier@cs.yale.edu>
12910
12911 * puresize.h (BASE_PURESIZE): Increase to 900KB.
12912
129132002-04-08 Juanma Barranquero <lektu@terra.es>
12914
12915 * w32.c (sys_accept): Don't hide variable `s'.
12916
129172002-04-05 Gerd Moellmann <gerd@gnu.org>
12918
12919 * callint.c (Fcall_interactively): Use INTEGERP instead of
12920 NUMBERP for checking Vhistory_length.
12921
129222002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12923
12924 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
12925 Doc fix to reflect it.
12926
129272002-04-04 Richard M. Stallman <rms@gnu.org>
12928
12929 * xdisp.c (display_mode_element): New arg RISKY.
12930 Disregard text props found or specified within a variable
12931 that isn't marked risky-local-variable.
12932 (Qrisky_local_variable): New variable.
12933 (syms_of_xdisp): Init and staticpro it.
12934
129352002-04-04 Stefan Monnier <monnier@cs.yale.edu>
12936
12937 * undo.c (record_point): New fun.
12938 (record_delete, record_insert): Use it.
12939
129402002-04-03 Juanma Barranquero <lektu@terra.es>
12941
12942 * doc.c (Fdocumentation): Add missing parentheses.
12943 (Fdocumentation_property): Likewise.
12944
129452002-04-03 Stefan Monnier <monnier@cs.yale.edu>
12946
12947 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
12948 data is 0, just return nil.
12949
129502002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
12951
12952 * msdos.c (syms_of_msdos): Fix last change with
12953 mouse_autoselect_window.
12954
129552002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12956
12957 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
12958 mouse_autoselect_window.
12959
129602002-04-02 Stefan Monnier <monnier@cs.yale.edu>
12961
12962 * keyboard.c (make_lispy_event): Handle unknown keysyms together
12963 with system-specific keysyms. Use it also for unknown function keys.
12964
12965 * doc.c (reread_doc_file): Return whether reload was attempted.
12966 (Fdocumentation, Fdocumentation_property): Don't try to reload
12967 if the doc is 0 and only ask once.
12968
12969 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
12970
129712002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
12972
12973 * keyboard.c (read_char): If the event was Qselect_window,
12974 restore timer_idleness_start_time to its previous value.
12975
12976 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
12977
129782002-04-01 Stefan Monnier <monnier@cs.yale.edu>
12979
12980 * region-cache.c (new_region_cache): Use BEG.
12981
12982 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
12983 Use BEG and BEG_BYTE.
12984
12985 * doc.c (get_doc_string): Return nil if the location is wrong.
12986 (reread_doc_file): New fun.
12987 (Fdocumentation, Fdocumentation_property):
12988 Call it if get_doc_string fails.
12989 (Fsnarf_documentation): Make it work for a dumped Emacs.
12990
12991 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
12992 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
12993
12994 * charset.c (Fstring): Allow 0 arguments.
12995
12996 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
12997
12998 * process.c (DATAGRAM_CONN_P, list_processes_1)
12999 (Fprocess_datagram_address, Fset_process_datagram_address)
13000 (Fset_network_process_options, server_accept_connection):
13001 Fix some int/Lisp_Object confusions (thank you union types).
13002
130032002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13004
13005 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13006
13007 * w32term.c: Likewise.
13008 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13009
13010 * keyboard.c (Qselect_window): New symbol.
13011 (head_table): Use it.
13012 (keys_of_keyboard): Bound select-window event to handle-select-window.
13013 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13014
13015 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13016 (last_window): New variable.
13017 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13018 (note_mouse_movement): Remove reimplemented code in #if 0.
13019 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13020 Emacs windows.
13021
13022 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13023
130242002-03-31 Gerd Moellmann <gerd@gnu.org>
13025
13026 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13027 Callers changed.
13028
130292002-03-30 Richard M. Stallman <rms@gnu.org>
13030
13031 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13032 loop whenever it stops making progress.
13033
13034 * widget.c (set_frame_size): Don't call change_frame_size.
13035
130362002-03-30 Gerd Moellmann <gerd@gnu.org>
13037
13038 * dispnew.c (direct_output_for_insert):
13039 Call mark_window_display_accurate.
13040
130412002-03-29 Jason Rumney <jasonr@gnu.org>
13042
13043 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13044
130452002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13046
13047 * Makefile.in (lread.o): Depend on coding.h.
13048
13049 * lread.c (openp, Fload): Encode the file name before passing it
13050 to `stat', `access', and `emacs_open'.
13051 (openp): GCPRO the encoded file name. Don't recompute Lisp
13052 strings unnecessarily.
13053
130542002-03-29 Kim F. Storm <storm@cua.dk>
13055
13056 * fns.c (Flax_plist_put): Doc fix.
13057
130582002-03-28 Miles Bader <miles@gnu.org>
13059
13060 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13061
130622002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13063
13064 * process.c (set-network-process-options): Add usage.
13065 (make-network-process): Doc fix.
13066
130672002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13068
13069 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13070
130712002-03-26 Richard M. Stallman <rms@gnu.org>
13072
13073 * fns.c (Fsubstring_no_properties): New function.
13074 (Flax_plist_get, Flax_plist_put): New functions.
13075 (syms_of_fns): defsubr them.
13076
13077 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13078 don't test or alter w->update_mode_line.
13079
13080 * window.c (Fdisplay_buffer): Doc fix.
13081
130822002-03-24 Richard M. Stallman <rms@gnu.org>
13083
13084 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13085
130862002-03-24 Gerd Moellmann <gerd@gnu.org>
13087
13088 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13089 (Fdefmacro): Handle `(declare ...)'.
13090 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13091 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13092
130932002-03-24 Jason Rumney <jasonr@gnu.org>
13094
13095 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13096 (xbm_file_p): Add prototypes.
13097 (xbm_format, xbm_image_p): Sync with xfns.c.
13098 (reflect_byte): New function.
13099 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13100 (xbm_load_image): Create bitmaps with a depth of 1.
13101 (init_xfns): Enable XBM images.
13102
131032002-03-23 Jason Rumney <jasonr@gnu.org>
13104
13105 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13106 correctly. Do not pass up_modifier to keyboard buffer.
13107
13108 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13109
131102002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13111
13112 * Makefile.in (bootstrapclean): New target.
13113 (bootstrap-temacs, bootstrap-doc): Remove.
13114 (bootstrap-emacs): Use a bog-standard `temacs'.
13115 Don't bother to build a DOC file.
13116
13117 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13118
13119 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13120 in temacs even if !CANNOT_DUMP.
13121 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13122
13123 * alloc.c (check_pure_size): Only output a warning.
13124
131252002-03-22 Jason Rumney <jasonr@gnu.org>
13126
13127 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13128 supported.
13129
13130 * w32term.c (zv_bits): Declare as short, for word alignment.
13131 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13132 (syms_of_w32term): Define x-use-underline-position-properties.
13133
13134 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13135 (clear_image_cache): Block input, fix logic, clear matrices in
13136 all frames that share this cache.
13137
131382002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13139
13140 * emacs.c (main): Update the Copyright year in the blurb printed
13141 by "emacs --version".
13142
13143 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13144
13145 * xterm.c (XTread_socket): If XK_ISO_Lock and
13146 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13147 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13148
131492002-03-21 Kim F. Storm <storm@cua.dk>
13150
13151 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13152 menu-bar bindings in keymap and local-map properties _are_ used.
13153 But try keymap property first in accordance with 2002-01-03 patch.
13154 Added comment describing why this is not always reliable.
13155 (tool_bar_items): Ditto for tool-bar.
13156
131572002-03-21 Jason Rumney <jasonr@gnu.org>
13158
13159 * w32fns.c (x_clear_image_1): Disable color table code.
13160
131612002-03-21 Kim F. Storm <storm@cua.dk>
13162
13163 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13164 removed the wrong version of the DEFUN macro; fixed it.
13165
13166 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13167 Fmember rather than Fmemq).
13168 (Fprovide): Check that subfeatures is a list.
13169
13170 * process.c (QCfeature, QCdatagram): Removed variables.
13171 (QCtype, Qdatagram): New variables.
13172 (network_process_featurep): Removed function.
13173 (Fmake_network_process): Removed :feature check.
13174 Use :type 'datagram instead of :datagram t to create a datagram
13175 socket. This allows us to add other connection types (e.g. raw
13176 sockets) later in a consistent manner.
13177 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13178 supported subfeatures for feature make-network-process.
13179 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13180 Intern and staticpro QCtype and Qdatagram.
13181 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13182
13183 * xfns.c: (QCtype): Remove duplicate declaration and
13184 initialization (is now declared in process.c).
13185
13186 * w32fns.c: (QCtype): Remove duplicate declaration and
13187 initialization (is now declared in process.c).
13188
131892002-03-21 Richard M. Stallman <rms@gnu.org>
13190
13191 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13192 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13193 when jumping to `fail' to avoid undoing reg changes in the
13194 last iteration of the loop.
13195 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13196
13197 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13198 Depend on process.h.
13199
132002002-03-20 Jason Rumney <jasonr@gnu.org>
13201
13202 Most of the following changes are still conditional on HAVE_IMAGES
13203 which is not set by default on Windows.
13204
13205 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13206
13207 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13208 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13209 (four_corners_best, x_clear_image_1, x_clear_image)
13210 (x_alloc_image_color, postprocess_image)
13211 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13212 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13213 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13214
13215 * w32gui.h (struct XImage): Define.
13216
13217 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13218 extract mouse co-ordinates.
13219
132202002-03-20 Jason Rumney <jasonr@gnu.org>
13221
13222 * w32.c (init_winsock): Dynamically load new server and UDP
13223 socket functions.
13224 (socket_to_fd): New function.
13225 (sys_socket): Use it.
13226 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13227 (sys_recvfrom, sys_sendto): New wrapper functions.
13228
13229 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13230 and initialization.
13231
13232 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13233
132342002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13235
13236 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13237 Don't use "sun" as a variable, it's a predefined constant on Sun
13238 machines.
13239
132402002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13241
13242 * bytecode.c (Fbyte_code): Revert last change.
13243
132442002-03-19 Kim F. Storm <storm@cua.dk>
13245
13246 * makefile.w32-in (LIBS): Add $(WSOCK32).
13247 From David Ponce <dponce@voila.fr>.
13248
132492002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13250
13251 * process.c (wait_reading_process_input): Move variables `pname'
13252 and `pnamelen' down where they are used.
13253
13254 * bytecode.c (Fbyte_code): Discard unused computed value to
13255 prevent gcc warning.
13256
13257 * lisp.h (Fplist_member): Add prototype.
13258
132592002-03-18 Kim F. Storm <storm@cua.dk>
13260
13261 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13262 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13263
13264 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13265 Remove explicit GNU_LINUX settings for datagram support.
13266
132672002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13268
13269 * process.c (Fmake_network_process): Remove unused variable `sa'.
13270 Doc fix. Add usage:.
13271 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13272
132732002-03-17 Richard M. Stallman <rms@gnu.org>
13274
13275 * xdisp.c (cursor_type_changed): New variable.
13276 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13277 Clear it when clearing windows_or_buffers_changed.
13278 (try_cursor_movement, redisplay_window, try_window_id)
13279 (try_window_reusing_current_matrix): Test cursor_type_changed
13280 along with windows_or_buffers_changed.
13281
13282 * window.h (cursor_type_changed): New variable.
13283
13284 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13285 not update_mode_lines, and always set it to 1.
13286
13287 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13288 if no frames needed redrawing.
13289
132902002-03-17 Kim F. Storm <storm@cua.dk>
13291
13292 The following changes add support for network server processes,
13293 datagram connections, and local (unix) sockets.
13294
13295 * process.h (struct Lisp_Process): New member log.
13296 Doc fix: Member command used to indicate stopped network process.
13297 Doc fix: Member childp contains plist for network process.
13298 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13299
13300 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13301 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13302 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13303 New variables.
13304 (NETCONN1_P): New macro.
13305 (DATAGRAM_SOCKETS): New conditional symbol.
13306 (datagram_address): New array.
13307 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13308 (status_message): Use concat3.
13309 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13310 for a stopped network process.
13311 (Fset_process_buffer): Update contact plist for network process.
13312 (Fset_process_filter): Ditto. Don't enable input for stopped
13313 network processes. Server must listen, even if filter is t.
13314 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13315 New functions.
13316 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13317 (Fprocess_contact): Added KEY argument. Handle datagrams.
13318 (list_processes_1): Optionally show only processes with the query
13319 on exit flag set. Dynamically adjust column widths. Omit tty
13320 column if not needed. Report stopped network processes.
13321 Identify server and datagram network processes.
13322 (Flist_processes): New optional arg `query-only'.
13323 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13324 (conv_lisp_to_sockaddr, set_socket_options)
13325 (network_process_featurep, unwind_request_sigio): New helper functions.
13326 (Fprocess_datagram_address, Fset_process_datagram_address):
13327 (Fset_network_process_options): New lisp functions.
13328 (Fopen_network_stream): Removed. Now defined in simple.el.
13329 (Fmake_network_process): New lisp function. Code is based on previous
13330 Fopen_network_stream, but heavily reworked with new property list based
13331 argument list, support for datagrams, server processes, and local
13332 sockets in addition to old client-only functionality.
13333 (server_accept_connection): New function.
13334 (wait_reading_process_input): Use it to handle incoming connects.
13335 Do not enable input on a new connection if process is stopped.
f63fd14e 13336 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13337 (send_process): Handle datagram sockets.
13338 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13339 network process is indicated by setting command field to t .
13340 (Fprocess_send_eof): No-op if datagram connection.
13341 (Fstatus_notify): Don't read input for a stream server socket or a
13342 stopped network process.
13343 (init_process): Initialize datagram_address array.
13344 (syms_of_process): Intern and staticpro new variables, defsubr new
13345 functions.
13346
133472002-03-16 Jason Rumney <jasonr@gnu.org>
13348
13349 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13350 startup case.
13351
133522002-03-16 Richard M. Stallman <rms@gnu.org>
13353
13354 * xdisp.c (redisplay_internal, redisplay_windows):
13355 Use list_of_error to call internal_condition_case_1.
13356 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13357 so as to catch all errors with no possibility of debugger redisplay.
13358 (list_of_error): New variable.
13359 (syms_of_xdisp): Init and staticpro it.
13360
13361 * print.c (print_object): Delete `\ ' from printed rep of frame.
13362
133632002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13364
13365 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13366 until its implementation is fixed.
13367
133682002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13369
13370 * xfns.c (png_load): Remove unused variable `gamma_str'.
13371
133722002-03-14 Richard M. Stallman <rms@gnu.org>
13373
13374 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13375
133762002-03-14 Miles Bader <miles@gnu.org>
13377
13378 * intervals.c (adjust_for_invis_intang): New function.
13379 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13380 work for dealing with invisible+intangible regions. Do so before
13381 and after both forward and backward movements, to handle both
13382 front-sticky and rear-sticky cases.
13383 * textprop.c (text_property_stickiness): Function moved here from
13384 `editfns.c'.
13385 * intervals.h (text_property_stickiness): New declaration.
13386 * editfns.c (char_property_eq): Function removed.
13387 (text_property_stickiness): Function moved to `textprop.c'.
13388
133892002-03-13 Jason Rumney <jasonr@gnu.org>
13390
13391 * config.in: Add STRFTIME_NO_POSIX2.
13392
13393 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13394 and %OX when underlying strftime does not.
13395
133962002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13397
13398 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13399 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13400 line) to avoid annoying flicker.
13401 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13402 (XTread_socket): Mark it static.
13403
13404 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13405
134062002-03-13 Kim F. Storm <storm@cua.dk>
13407
13408 * puresize.h (BASE_PURESIZE): Increase to 775000.
13409
134102002-03-12 Juanma Barranquero <lektu@terra.es>
13411
13412 * editfns.c (syms_of_editfns): Fix typo.
13413
134142002-03-12 Gerd Moellmann <gerd@gnu.org>
13415
13416 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13417 Include termopt.h for interrupt_input.
13418
134192002-03-11 Andreas Schwab <schwab@suse.de>
13420
13421 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13422
134232002-03-11 Gerd Moellmann <gerd@gnu.org>
13424
13425 * xterm.c (note_mouse_movement): Put code for
13426 x_autoselect_window_p in #if 0.
13427
13428 * lread.c (Fload): Don't assume that message_with_string uses the
13429 string it is given like a C string.
13430
134312002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13432
78819ebb 13433 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
13434
13435 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13436 x_session_have_connection.
13437 (x_initialize): Add call to x_session_initialize.
13438
13439 * termhooks.h (enum event_kind): Add save_session_event.
13440
13441 * keyboard.c: Add Emacs event save_session_event.
13442
13443 * emacs.c (main): Add call to syms_of_xsmfns.
13444
78819ebb 13445 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
13446
13447 * config.in: Add HAVE_X_SM.
13448
13449 * Makefile.in (LIBXT): Add -lSM -lICE
13450 if HAVE_X_SM and not USE_X_TOOLKIT.
13451 (XOBJ): New file xsmfns.c added.
13452
13453 * xsmfns.c: New file for X session management.
13454
134552002-03-09 Jason Rumney <jasonr@gnu.org>
13456
13457 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13458 read-only when setting modified time.
13459
134602002-03-08 Gerd Moellmann <gerd@gnu.org>
13461
13462 * xdisp.c (move_it_vertically_backward): At the end of the function,
13463 when moving forward by lines, treat terminal frames specially.
13464
13465 * keyboard.c (echo_char): Make sure to add a separator between
13466 keys even if echo_dash hasn't been called.
13467
13468 * xdisp.c: Use new string macros.
13469 (update_echo_area): Pass number of bytes to message3 instead of
13470 number of chars.
13471 (set_message_1): Don't access a string's size_byte directly.
13472 (decode_mode_spec_coding): Use number of bytes of eoltype string
13473 instead number of chars.
13474
13475 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13476
134772002-03-08 Juanma Barranquero <lektu@terra.es>
13478
13479 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13480 24-bit.
13481
134822002-03-06 Jason Rumney <jasonr@gnu.org>
13483
13484 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13485
134862002-03-06 Gerd Moellmann <gerd@gnu.org>
13487
13488 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13489 (cancel_echoing, echo_length, echo_truncate): Changed to
13490 work with new kboard definition.
13491 (echo_now): Use message3_nolog instead of message2_nolog.
13492
13493 * alloc.c (mark_kboards): Mark echo_string.
13494
13495 * keyboard.h (ECHOBUFSIZE): Removed.
13496 (struct kboard): Member echoptr removed, member echobuf renamed
13497 to echo_string.
13498
13499 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13500 message3 instead of message2 to display the message using STRING's
13501 text properties.
13502
135032002-03-05 Andreas Schwab <schwab@suse.de>
13504
13505 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13506
135072002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13508
13509 * frame.c (default-frame-alist): Explain that setting it doesn't
13510 affect existing frames.
13511
135122002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13513
13514 * indent.c (skip_invisible): Fix my brain fart.
13515
13516 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13517
135182002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13519
13520 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13521 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13522 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13523 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13524 and variables to use EMACS_INT instead of just int.
13525
13526 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13527
135282002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13529
13530 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13531 environment, pass it down with corrected value.
13532
135332002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13534
13535 * lread.c (read_filtered_event): Do not call start_hourglass
13536 before returning.
13537
135382002-03-04 Juanma Barranquero <lektu@terra.es>
13539
13540 * w32term.c (x_display_and_set_cursor): Fix typo.
13541
135422002-03-03 Richard M. Stallman <rms@gnu.org>
13543
13544 * fileio.c (Fmake_temp_name): Doc fix.
13545
135462002-03-03 Gary Wong <gtw@gnu.org>
13547
13548 * termcap.c [!emacs]: Replace ospeed for building standalone
13549 libtermcap, for binary compatibility.
13550
13551 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
13552
135532002-03-03 Richard M. Stallman <rms@gnu.org>
13554
13555 * xrdb.c (file_p): Rename arg `path' to `filename'.
13556
13557 * abbrev.c (Fexpand_abbrev): Increment plist as use count
13558 only if it is an integer.
13559
13560 * xfns.c (png_load): Set screen_gamma based on f->gamma.
13561 If png_get_sRGB gives an answer, call png_set_gamma
13562 using the default image gamma value.
13563
13564 * lread.c (read1): When reading from a file, default string to
13565 multibyte only if it has some multibyte characters.
13566
13567 * print.c (print_object): Output multibyte chars 128...255
13568 using \x even if ! print_escape_multibyte.
13569
13570 * xdisp.c (display_mode_element): Move the places where
13571 bytepos, charpos, this, and lisp_string are set.
13572 Use lisp_string to set bytepos.
13573
13574 * xdisp.c (redisplay_internal):
13575 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
13576
13577 * xdisp.c (display_mode_element): Merge properties specified with
13578 :propertize onto those that come with the string.
13579
135802002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
13581
13582 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
13583 automatic-hscrolling. Users changed.
13584 <hscroll-margin>: Renamed from automatic-hscroll-margin.
13585 Users changed.
13586 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
13587
135882002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13589
13590 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
13591
135922002-03-02 Kim F. Storm <storm@cua.dk>
13593
13594 * window.c (Fminibuffer_selected_window): New function.
13595 (syms_of_window): Defsubr it.
13596
135972002-03-01 Kim F. Storm <storm@cua.dk>
13598
13599 * window.h (struct window): New member phys_cursor_width.
13600
13601 * window.c (make_window, replace_window): Init phys_cursor_width.
13602
13603 * xterm.c (x_display_and_set_cursor): Blink box cursor using
13604 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13605
13606 * w32term.c (x_display_and_set_cursor): Blink box cursor using
13607 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13608
13609 * lisp.h (GCPRO6): New macro.
13610
13611 * process.c (Fopen_network_stream): Use GCPRO6.
13612
136132002-03-01 Kim F. Storm <storm@cua.dk>
13614
13615 * process.c (Qconnect, Qfailed): New variables.
13616 (syms_of_process): Intern and staticpro them.
13617 (Fprocess_status): Document connect and failed return values.
13618 [NON_BLOCKING_CONNECT]: New conditional.
13619 (connect_wait_mask, num_pending_connects): New variables.
13620 (status_message): Convert Qfailed status.
13621 (Fopen_network_stream): Added support for non-blocking connect.
13622 New optional args: filter, sentinel, non_blocking. Doc updated.
13623 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
13624 (deactivate_process): Handle pending non-blocking connect.
13625 (wait_reading_process_input): Poll for status of non-blocking
13626 connects. Exec sentinel directly when connect succeeds.
13627 (status_notify): Don't read process output if not yet connected.
13628
136292002-02-28 Kim F. Storm <storm@cua.dk>
13630
13631 * window.c: (minibuf_selected_window): Renamed from
13632 Vminibuf_selected_window. Users changed.
13633 (syms_of_window): Staticpro it.
13634
136352002-02-26 Kim F. Storm <storm@cua.dk>
13636
13637 The following changes add a new Vminibuf_selected_window variable
13638 which is similar to Vminibuf_scroll_window, but which is only set
13639 on entry to the minibuffer (from a non-minibuffer window):
13640
13641 * window.c: (Vminibuf_selected_window): New variable.
13642 (struct save_window_data): New member minibuf_selected_window.
13643 (Fset_window_configuration): Restore Vminibuf_selected_window.
13644 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
13645 Set minibuf_scroll_window member to nil if minibuf_level is 0.
13646 (compare_window_configurations): Compare minibuf_selected_window.
13647
13648 * window.h: (Vminibuf_selected_window): Declare extern.
13649
13650 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
13651 entry to minibuffer or on entry from a non-minibuffer window.
13652
13653 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
13654 Vminibuf_selected_window instead of Vminibuf_scroll_window.
13655
13656 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
13657 instead of Vminibuf_scroll_window when deciding in which window
13658 the region should be highlighted. Consequently, the region remains
13659 highlighteded even when a completion buffer is also displayed.
13660
136612002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
13662
13663 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
13664
13665 * xselect.c (Qcompound_text_with_extensions): Renamed from
13666 Qcompound_text_no_extensions.
13667 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
13668
136692002-02-26 Juanma Barranquero <lektu@terra.es>
13670
13671 * w32proc.c (syms_of_ntproc): Doc fix.
13672
136732002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13674
13675 * intervals.h: Include "dispextern.h" unconditionally.
13676
136772002-02-24 Jason Rumney <jasonr@gnu.org>
13678
13679 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
13680 and disp-table.elc.
13681 (lisp): Add emacs-lisp/backquote.elc.
13682
136832002-02-24 Kim F. Storm <storm@cua.dk>
13684
13685 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
13686 The validation of the event type was too strict as it didn't
13687 allow string events; buffer names are used in bindings for
13688 menu-bar-select-buffer (see `menu-bar-update-buffers').
13689
136902002-02-23 Kim F. Storm <storm@cua.dk>
13691
13692 The following changes rework my patch of 2002-02-06 which
13693 added command remapping by entering the commands directly into
13694 the keymaps. Now, command remapping uses an explicit `remap'
13695 prefix in the keymaps, i.e. [remap COMMAND].
13696
13697 * keymap.c (Qremap, remap_command_vector): New variables.
13698 (is_command_symbol): Removed function.
13699 (Fdefine_key): No longer accept a symbol for KEY.
13700 Added validation of [remap COMMAND] argument for KEY.
13701 The DEF is no longer required to be a symbol when remapping a command.
13702 (Fremap_command): New function to remap command through keymaps.
13703 (Flookup_key): Perform command remapping initiated by
13704 Fremap_command directly for speed.
13705 (Fkey_binding): Use Fremap_command for command remapping.
13706 (where_is_internal): Handle new command remapping representation.
13707 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
13708 staticpro them. Defsubr Fremap_command.
13709
13710 * keymap.h (Fremap_command): Declare extern.
13711 (is_command_symbol): Remove extern.
13712
13713 * keyboard.c (command_loop_1): Use Fremap_command for command
13714 remapping; now try command remapping for all symbols.
13715
137162002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13717
13718 * coding.h (run_pre_post_conversion_on_str): Add prototype.
13719
137202002-02-23 Jason Rumney <jasonr@gnu.org>
13721
13722 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
13723 on the string before encoding it.
13724 (Fw32_get_clipboard_data): Run post-read-conversion on the string
13725 after decoding it.
13726
13727 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
13728
137292002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13730
13731 * w32term.c (enter_timestamp): Remove unused static variable to
13732 prevent warning.
13733
13734 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
13735
137362002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13737
13738 * w16select.c (Fw16_get_clipboard_data): Fix last change.
13739
13740 * xselect.c (selection_data_to_lisp_data): Fix last change.
13741
137422002-02-22 Jason Rumney <jasonr@gnu.org>
13743
13744 * w32term.h (struct w32_output): New member menu_command_in_progress.
13745
13746 * w32menu.c (menubar_selection_callback): Free the menu and
13747 clear the menu_command_in_progress flag.
13748
13749 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
13750 (menu_free_timer): New variable.
13751 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
13752 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
13753 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
13754 menu command is in progress.
13755 <WM_COMMAND>: Set the menu_command_in_progress flag.
13756 Kill any menu_free_timer that is running.
13757
13758 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
13759 Call ExtTextOutA rather than ExtTextOut.
13760
137612002-02-22 Eli Zaretskii <eliz@gnu.org>
13762
13763 * puresize.h (BASE_PURESIZE): Increase to 755000.
13764
137652002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13766
13767 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
13768 on the string before encoding it.
13769 (Fw16_get_clipboard_data): Run post-read-conversion on the string
13770 after decoding it.
13771
137722002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13773
13774 Support for ICCCM Extended Segments in X selections:
13775
13776 * xselect.c <Qcompound_text_no_extensions>: New variable.
13777 (syms_of_xselect): Intern and staticpro it.
13778 (selection_data_to_lisp_data): Run post-read-conversion on decoded
13779 selection text.
13780 (lisp_data_to_selection_data): If next-selection-coding-system is
13781 compound-text-no-extensions, set the type of selection to be
13782 compound-text.
13783
13784 * xterm.h (x_encode_text): Update prototype.
13785
13786 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
13787 callers changed. If SELECTIONP is non-zero, run the
13788 pre-write-conversion function before encoding the selection text.
13789
137902002-02-21 Kim F. Storm <storm@cua.dk>
13791
13792 * frame.c (syms_of_frame): Change mouse-highlight default to t.
13793
13794 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
13795 Correct composing of language-change event.
13796
137972002-02-20 Kim F. Storm <storm@cua.dk>
13798
13799 * keyboard.c (menu_bar_items): Don't include keymap or local-map
13800 bindings at PT when building menu (the menu is not updated often
13801 enough for this to work reliable).
13802 (tool_bar_items): Likewise.
13803 (current_active_maps): Removed unused (and buggy) function.
13804
138052002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13806
13807 * xfns.c (gif_load): Use correct width and height for GIF images.
13808
138092002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
13810
13811 * floatfns.c (Fatan): Accept an optional second arg and call
13812 atan2 if passed 2 args.
13813
138142002-02-18 Jason Rumney <jasonr@gnu.org>
13815
13816 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
13817
138182002-02-17 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32term.c (x_autoselect_window_p): New variable.
13821 (syms_of_w32term): DEFVAR_BOOL and initialize it.
13822 (note_mouse_movement): Use it.
13823
13824 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
13825
13826 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
13827
13828 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13829 New variables.
13830 (syms_of_w32fns): Intern and staticpro them.
13831 (x_frame_parms) <"fullscreen">: New parameter.
13832 (x_fullscreen_move, x_set_fullscreen): New functions.
13833 (x_set_frame_parameters): Support Qfullscreen.
13834 (x_real_positions): Save x/y_pixels_diff frame params.
13835 (x_figure_window_size): Support full-screen frames.
13836 (Fx_create_frame): Default the fullscreen parameter.
13837
13838 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
13839 (x_fullscreen_adjust): New functions.
13840 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
13841 fullscreen. Call x_check_fullscreen_move, and set the
13842 want_fullscreen member of output_data.w32
13843 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
13844
13845 * w32term.h: New enum for FULLSCREEN_* constants.
13846 (struct w32_output): New members want_fullscreen, x_pixels_diff,
13847 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
13848 (x-fullscreen-adjust): New prototype.
13849
138502002-02-17 Kim F. Storm <storm@cua.dk>
13851
13852 * frame.c: (Vmouse_highlight): New variable.
13853 (syms_of_frame): DEFVAR_LISP it.
13854
13855 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 13856
048addec 13857 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 13858
048addec
JD
13859 * xterm.c (disable_mouse_highlight): Removed variable.
13860 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13861 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13862 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
13863 and on after keyboard input.
13864 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 13865
048addec 13866 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 13867
048addec
JD
13868 * msdos.c (disable_mouse_highlight): Removed variable.
13869 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13870 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13871 (internal_terminal_init): Initialize mouse_face_hidden.
13872 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
13873 and on after keyboard input.
4f1b1854 13874
048addec 13875 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 13876
048addec
JD
13877 * w32term.c (disable_mouse_highlight): Removed variable.
13878 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
13879 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13880 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
13881 and on after keyboard input.
13882 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 13883
048addec 138842002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 13885
048addec
JD
13886 * msdos.c (last_mouse_window): New variable.
13887 (dos_rawgetc): Fix last change--if the mouse is in the same window
13888 as recorded in last_mouse_window, don't select this window.
5cb6905d 13889
048addec 13890 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 13891
048addec
JD
13892 * msdos.c (x_autoselect_window_p): New variable.
13893 (syms_of_msdos): Defvar it.
13894 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
13895 which the last mouse movement occured, unless it is already selected.
437dfb9f 13896
048addec
JD
13897 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
13898 New variables.
13899 (syms_of_xdisp): DEVFAR them.
13900 (hscroll_window_tree): Use automatic_hscroll_margin and
13901 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 13902
048addec 139032002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 13904
048addec
JD
13905 * xterm.c (x-autoselect-window): New variable.
13906 (note_mouse_movement): Use it.
9f696a00 13907
048addec 13908 * keyboard.c: Do not include "systime.h" twice.
d57966d7 13909
048addec 139102002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 13911
bfa02563 13912 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 13913
048addec 13914 * alloc.c (NSTATICS): Increase to 1280.
74779f52 13915
048addec 139162002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 13917
048addec 13918 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 13919
048addec
JD
13920 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
13921 (Vx_super_keysym): New variables.
13922 (syms_of_xterm): DEFVAR_LISP them.
13923 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
13924 variables to determine which keys to use for the various modifiers.
a474d59c 13925
048addec 139262002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 13927
048addec
JD
13928 * window.c: (Vmode_line_in_non_selected_windows): Removed.
13929 (mode_line_in_non_selected_windows): New variable.
13930 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 13931
048addec
JD
13932 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
13933 Use mode_line_in_non_selected_windows.
13934 (mode_line_in_non_selected_windows): Declare extern.
13935 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 13936
048addec 139372002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 13938
048addec
JD
13939 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
13940 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
13941 (Fclear_this_command_keys): Doc fixes.
2d10309f 13942
048addec
JD
13943 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
13944 (update_face_from_frame_parameter): Increment face_change_count
13945 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 13946
048addec
JD
13947 * xdisp.c (QCpropertize): New variable.
13948 (mode_line_proptrans_alist): New variable.
13949 (display_mode_element): New arg PROPS; all calls changed.
13950 Implement this, for strings.
13951 Handle literal output of strings by sharing the
13952 main-line code for strings, using local var `literal'.
13953 Handle :propertize feature.
13954 (syms_of_xdisp): Initialze and staticpro QCpropertize and
13955 mode_line_proptrans_alist.
0b1e6b54 13956
048addec 139572002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 13958
048addec
JD
13959 * window.c: (Vmode_line_in_non_selected_windows): New variable.
13960 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 13961
048addec
JD
13962 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
13963 (CURRENT_MODE_LINE_FACE_ID): Use it.
13964 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 13965
048addec
JD
13966 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
13967 to get mode line face.
e17144de 13968
048addec 139692002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13970
048addec
JD
13971 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
13972 variables; cus-start.el doesn't need them anymore.
44368f8f 13973
048addec 139742002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 13975
048addec
JD
13976 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
13977 reduction. This fixes a display problem where stray newlines were
13978 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 13979
048addec 139802002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13981
048addec 13982 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 13983
048addec 13984 * xdisp.c (display_mode_lines): Fix last change.
453c5510 13985
048addec 139862002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 13987
048addec
JD
13988 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
13989 match each other.
13990 (w32_load_system_font): Prevent Cleartype fonts from loading.
13991 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 13992
048addec 139932002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 13994
048addec
JD
13995 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
13996 (CURRENT_MODE_LINE_HEIGHT): Use it.
13997 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13998
048addec
JD
13999 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14000 (pos_visible_p, handle_face_prop): Likewise.
14001 (display_mode_lines): Likewise, but for the real selected window.
14002 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14003
048addec
JD
14004 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14005 in non-selected windows.
14006 (realize_basic_faces): Realize it.
14007 (syms_of_term): Intern and staticpro it.
308dd672 14008
048addec 140092002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14010
048addec
JD
14011 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14012 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14013
048addec 140142002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14015
048addec
JD
14016 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14017 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14018
048addec 14019 * floatfns.c (Fround): Doc fix.
3c1e6b46 14020
048addec 140212002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14022
048addec 14023 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14024
048addec 140252002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14026
048addec 14027 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14028
048addec 140292002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14030
048addec
JD
14031 * keymap.c (where_is_internal): Only check whether definition is
14032 remapped if it fulfills is_command_symbol.
0065bb74 14033
048addec 140342002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14035
048addec 14036 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14037
048addec 14038 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14039
048addec 140402002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14041
048addec
JD
14042 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14043 defining command remapping. Doc updated.
14044 (Flookup_key): Remap command through keymap if KEY is a symbol.
14045 (is_command_symbol): New function.
14046 (Fkey_binding): Use it. New optional argument NO-REMAP.
14047 Doc updated. Callers changed. Perform command remapping via
14048 recursive call unless that arg is non-nil.
14049 (where_is_internal): New argument no_remap. Callers changed.
14050 Call recursively to find original key bindings for a remapped
14051 comand unless that arg is non-nil.
14052 (Fwhere_is_internal): New optional argument NO-REMAP.
14053 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14054
048addec
JD
14055 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14056 (is_command_symbol): Added prototype.
0d8466cc 14057
048addec
JD
14058 * keyboard.c (Vthis_original_command): New variable.
14059 (syms_of_keyboard): DEFVAR_LISP it.
14060 (command_loop_1): Set it, and perform command remapping.
15fff01d 14061
048addec 140622002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14063
048addec 14064 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14065
048addec 140662002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14067
048addec 14068 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14069
048addec 140702002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14071
048addec 14072 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14073
048addec 140742002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14075
048addec 14076 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14077
048addec 140782002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14079
048addec 14080 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14081
048addec
JD
14082 * lread.c (read1): Redesign strategy for force_multibyte and
14083 force_singlebyte. Now is_multibyte records whether read_buffer
14084 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14085
048addec 140862002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14087
048addec
JD
14088 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14089 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14090
048addec 140912002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14092
048addec
JD
14093 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14094 latter never being defined on GNU/Linux.
749f499f 14095
048addec 140962002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14097
048addec
JD
14098 * xfaces.c (realize_default_face): Don't set the weight and slant of
14099 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14100
048addec 141012002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14102
048addec
JD
14103 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14104 Call cancel_hourglass unconditionally.
d0fd26dd 14105
048addec
JD
14106 * eval.c (Fsignal): Remove duplicated declaration of
14107 the variable `display_hourglass_p'.
b4c45162 14108
048addec 141092002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14110
048addec 14111 * editfns.c (region_limit): Nicer error message.
c95eaa61 14112
048addec
JD
14113 * coding.c (decode_composition_emacs_mule):
14114 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14115
048addec
JD
14116 * callint.c (check_mark): New arg to specify clearer error message.
14117 Callers changed.
c95eaa61 14118
048addec 141192002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14120
048addec 14121 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14122
048addec 141232002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14124
048addec
JD
14125 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14126 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14127 Fix doc-strings.
c95eaa61 14128
048addec 141292002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14130
048addec 14131 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14132
048addec
JD
14133 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14134 and scroll_up_aggressively.
c95eaa61 14135
048addec 141362002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14137
048addec 14138 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14139
048addec 141402002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14141
048addec
JD
14142 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14143 (Fprevious_property_change, Fprevious_single_property_change):
14144 Stay within the narrowed-buffer boundaries.
e2c3786a 14145
048addec 141462002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14147
048addec
JD
14148 * term.c (Ftty_display_color_cells): New function.
14149 (syms_of_term): Defsubr it.
14150 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14151 argument name to DISPLAY. Doc fix.
bf794306 14152
048addec
JD
14153 * dispextern.h: Add prototype for set_tty_color_mode and
14154 tty_setup_colors.
bf794306 14155
048addec 141562002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14157
048addec
JD
14158 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14159 If region left to draw is not what was expected, mark the frame as
14160 garbaged.
62582985 14161
048addec
JD
14162 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14163 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14164
048addec 141652002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14166
048addec
JD
14167 * w32term.c (x_update_window_begin): Only hide caret if
14168 w32_use_visible_system_caret is set.
14169 (x_update_window_end): Only show caret if
14170 w32_use_visible_system_caret is set.
14171 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14172
048addec 14173 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14174
048addec 141752002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14176
048addec
JD
14177 * unexelf.c (unexec): Define n so as to cause compilation error
14178 for the code where people have often written n instead of nn.
1e9a6186 14179
048addec 14180 * .gdbinit (hookpost-run): Defined.
1e9a6186 14181
048addec 141822002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14183
048addec 14184 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14185
048addec 141862002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14187
048addec
JD
14188 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14189 if fullscreen is being set.
7c75be36 14190
048addec 141912002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14192
048addec
JD
14193 * minibuf.c (Fminibuffer_contents)
14194 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14195 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14196
048addec 141972002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14198
048addec 14199 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14200
048addec 142012002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14202
048addec
JD
14203 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14204 height before comparison.
14205 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14206
048addec 142072002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14208
048addec
JD
14209 * w32term.c (w32_system_caret_width): Remove.
14210 (w32_use_visible_system_caret): New user flag.
14211 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14212 Windows reports a screen reader running.
14213 (x_update_window_begin): Hide the system caret.
14214 (x_update_window_end): Show the system caret.
14215 (x_display_and_set_cursor): Don't draw a cursor when
14216 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14217
048addec
JD
14218 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14219 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14220 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14221 the user requests it. Use system default width when creating.
14222 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14223
048addec
JD
14224 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14225 New window messages.
905cc05a 14226
048addec 142272002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14228
048addec 14229 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14230
048addec 142312002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14232
048addec 14233 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14234
048addec 142352002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14236
048addec 14237 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14238
048addec 142392002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14240
048addec
JD
14241 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14242 that Windows returns. If a double check fails, try to guess how
14243 ExtTextOut is going to act.
4d0fa4f3 14244
048addec
JD
14245 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14246 in place of stricmp.
14247 (w32_list_synthesized_fonts): Removed.
14248 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14249 (struct enumfont_t): New element; list.
14250 (enum_font_cb2): List all style and charset variations of a font.
14251 (Fw32_select_font): New optional argument; include_proportional.
14252 Exclude vertical fonts. Exclude proportional fonts unless
14253 include_proportional is non-nil.
14254 (w32_enable_synthesized_fonts): Change to a boolean.
14255 (Fw32_send_sys_command): Doc fix.
493faf20 14256
048addec 142572002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14258
048addec
JD
14259 * dispnew.c (update_frame): Move the variable `tem' to the block
14260 where it is used.
4971e491 14261
048addec 142622002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14263
048addec
JD
14264 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14265 call to face-set-after-frame-default.
4971e491 14266
048addec 142672002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14268
048addec
JD
14269 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14270 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14271
048addec 142722002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14273
048addec
JD
14274 * window.c (enlarge_window): When exceeding size of parent,
14275 directly delete all the siblings instead of trying to resize it.
201c831a 14276
048addec 142772002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14278
048addec 14279 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14280
048addec 142812002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14282
048addec 14283 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14284
048addec 142852002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14286
048addec
JD
14287 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14288 is invisible. This can happen if cursor is on top line of a
14289 window, and we switch to a buffer with a header line.
d77fbc16 14290
048addec 14291 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14292
048addec 142932002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14294
048addec
JD
14295 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14296 `dont_resize' only when used.
61e3b944 14297
048addec 14298 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14299
048addec 143002002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14301
048addec
JD
14302 * xdisp.c (display_mode_element): When computing charpos, depend
14303 on multibyteness of elt, not the text in field.
8af01033 14304
048addec 143052002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14306
048addec
JD
14307 * buffer.c (Fkill_all_local_variables):
14308 Increment `update_mode_lines' only once.
7363986a 14309
048addec 143102002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14311
048addec
JD
14312 * lisp.h (adjust_after_replace_noundo)
14313 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14314
048addec 14315 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14316
048addec 143172002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14318
048addec
JD
14319 Support for the --color command-line argument and tty-color-mode
14320 frame parameter:
f1a85b89 14321
048addec
JD
14322 * term.c (tty_default_color_capabilities, tty_setup_colors)
14323 (set_tty_color_mode): New functions.
14324 (term_init): Call tty_default_color_capabilities.
14325 (Qtty_color_mode_alist): New variable.
14326 (syms_of_term): Intern and staticpro it.
f1a85b89 14327
048addec
JD
14328 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14329 frames.
14330 (do_switch_frame): For termcap frames, switch the tty
14331 color mode as specified by the frame's parameters.
14332 (Qtty_color_mode): New variable.
14333 (syms_of_frame): Intern and staticpro it.
3a62677f 14334
048addec
JD
14335 * emacs.c (USAGE2): Add the --color option.
14336 (standard_args): Ditto.
72244db2 14337
048addec
JD
143382002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14339
14340 * xterm.h (struct x_output): New members want_fullscreen,
14341 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14342 y_pixels_outer_diff.
14343 New enum for FULLSCREEN_* constants.
14344 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14345 is NULL.
14346 (x_fullscreen_adjust): Add prototype.
3a62677f 14347
048addec
JD
14348 * emacs.c (USAGE2): Add the new full-screen arguments.
14349 (standard_args): Ditto.
3a62677f 14350
048addec
JD
14351 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14352 New variables.
14353 (syms_of_xfns): Intern and staticpro them.
14354 (x_frame_parms) <"fullscreen">: New parameter.
14355 (x_fullscreen_move, x_set_fullscreen): New functions.
14356 (x_set_frame_parameters): Support for Qfullscreen.
14357 (x_real_positions): More accurate computation of the frame position.
14358 (x_figure_window_size): Support full-screen frames.
14359 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14360
048addec
JD
14361 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14362 (XTread_socket) <Expose>: Call x_check_fullscreen.
14363 <ConfigureNotify>: Don't resize to fullscreen.
14364 Call x_check_fullscreen_move, and set the want_fullscreen member of
14365 output_data.x.
3a62677f 14366
048addec 143672002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14368
048addec
JD
14369 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14370 for mice with more than 3 buttons.
b8523839 14371
048addec
JD
14372 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14373 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14374
048addec
JD
14375 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14376 (syms_of_w32fns): DEFVAR_BOOL it.
14377 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14378
048addec 143792002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14380
048addec 14381 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14382
048addec 143832002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14384
048addec 14385 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14386
048addec 143872002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14388
048addec
JD
14389 * .gdbinit (xbuffer): Remove address operator since data is now a
14390 pointer.
c93674bb 14391
048addec 143922002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14393
048addec 14394 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14395
048addec 14396 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14397
048addec 143982002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14399
048addec
JD
14400 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14401 when checking for multiple frames.
91175673 14402
048addec 144032002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14404
048addec
JD
14405 * window.c (delete_window): Rewrite the code for changing the
14406 selected window to handle the case where WINDOW is not a leaf.
91175673 14407
048addec 144082002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14409
048addec
JD
14410 * process.c (send_process): Set src_multibyte to 1 after the call
14411 top setup_coding_system, not before the call.
e0fead5d 14412
048addec 144132002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 14414
048addec
JD
14415 * xmenu.c (set_frame_menubar, xmenu_show):
14416 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 14417
048addec
JD
14418 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14419 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 14420
048addec 144212002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 14422
048addec 14423 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 14424
048addec 14425 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 14426
048addec 14427 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 14428
048addec 144292002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 14430
048addec
JD
14431 * insdel.c (make_gap_larger): Make sure buffer size does not
14432 overflow range of int.
62854fe2 14433
048addec 144342002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 14435
048addec
JD
14436 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14437 OVERLAPS_P.
656f46bb 14438
048addec 14439 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 14440
048addec
JD
14441 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14442 to the left or to the right of the pointer, put it against
14443 the left screen edge.
14444 (x_frame_parms): Add missing braces around initializer.
036e218d 14445
048addec
JD
14446 * w32term.c (x_setup_relief_colors): Don't compute an image's
14447 background color if it doesn't have a Pixmap.
14448 (notice_overwritten_cursor): Don't depend on
14449 output_cursor and updated_area. Compare pixel coordinates with
14450 window's cursor pixel coordinates.
14451 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14452 Call notice_overwritten_cursor with new arg list.
14453 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14454 unconditionally.
14455 (x_draw_image_relief): Use predefined macro instead of
14456 constant when the value of `tool_bar_button_relief' is negative.
036e218d 14457
048addec 14458 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 14459
048addec 144602002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 14461
048addec 14462 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 14463
048addec 144642002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 14465
048addec
JD
14466 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14467 (Fkey_binding): Try the `keymap' property map first.
14468 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14469 minor mode bindings.
90647b07 14470
048addec 144712002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 14472
048addec 14473 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 14474
048addec 144752002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 14476
048addec
JD
14477 * keyboard.c (read_key_sequence): Handle the keymap property
14478 before minor mode maps.
9fbc32aa 14479
048addec
JD
14480 * editfns.c (Fformat): Update thissize from field_width
14481 based on the actual width, in the string case.
036e218d 14482
048addec 144832002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 14484
048addec
JD
14485 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14486 when used as truth value to prevent gcc warnings.
9fbc32aa 14487
048addec
JD
14488 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14489 * w32proc.c: Include <config.h>.
9fbc32aa 14490
048addec 144912002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 14492
048addec
JD
14493 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14494 not EMACS_INT, to make them compatible with DEFVAR_INT.
14495 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 14496
048addec 144972002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14498
048addec
JD
14499 * print.c (print_object): Test print_escape_nonascii only for
14500 unibyte strings.
14501 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14502 when outputting to a multibyte buffer.
9fbc32aa 14503
048addec 145042001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14505
048addec
JD
14506 * print.c (print_object): In multibyte string, use hex escapes.
14507 Use octal only for unibyte strings.
14508 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 14509
048addec
JD
14510 * lread.c (read_escape): New arg BYTEREP for reporting whether
14511 escape forces unibyte or multibyte.
14512 (read1): When reading a string, take note of that info.
0142178a 14513
048addec 145142001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 14515
048addec
JD
14516 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14517 comparison to test lisp value returned by Fget.
d4824a5d 14518
048addec 145192001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 14520
048addec 14521 * lisp.h (max_specpdl_size): Add declaration.
b1356234 14522
048addec 14523 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 14524
048addec
JD
14525 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14526 Handle modifier bits. Correct typo in error message.
99e380ee 14527
048addec 145282001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 14529
048addec
JD
14530 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14531 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14532 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14533 Update calls to Fdefine_abbrev.
14534 (write_abbrev): Update for changed data format.
14535 Don't list "system" abbrevs.
14536 (Fexpand_abbrev): Update use count with new data format.
14537 (describe_abbrev): Update for changed data format.
14538 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 14539
048addec 14540 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 14541
048addec 14542 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 14543
048addec
JD
14544 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14545 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 14546
048addec
JD
14547 * keymap.c (Flookup_key): Error message if key has wrong data type.
14548 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
14549 (exclude_key): New variable.
59a86c99 14550
048addec 145512001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 14552
048addec
JD
14553 * xterm.c (x_setup_relief_colors): Don't compute an image's
14554 background color if it doesn't have a Pixmap.
eb77a5f4 14555
048addec
JD
14556 * xterm.c (notice_overwritten_cursor): Don't depend on
14557 output_cursor and updated_area. Compare pixel coordinates with
14558 window's cursor pixel coordinates.
14559 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14560 Call notice_overwritten_cursor with new arg list.
14561 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14562 unconditionally.
eb77a5f4 14563
048addec
JD
14564 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
14565 height of the cursor line to the amount to scroll.
eb77a5f4 14566
048addec 145672001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 14568
048addec
JD
14569 * intervals.c (set_point_both): The position after an invisible,
14570 intangible character is not an acceptable stopping point.
bb313871 14571
048addec 145722001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 14573
048addec
JD
14574 * window.c (enlarge_window): In new preserve_before code, convert
14575 CURBEG from lisp object to integer before doing arithmetic.
6052529b 14576
048addec 145772001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 14578
048addec 14579 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 14580
048addec 145812001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 14582
048addec
JD
14583 * keyboard.c (record_char): Ignore duplicate help-echo events only
14584 separated by mouse-movement. When tracking mouse, only record
14585 first and last mouse-movement event in same window.
14586 Don't record mouse-movement events in keyboard macros.
3ce081f5 14587
048addec 145882001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 14589
048addec
JD
14590 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
14591 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 14592
048addec
JD
14593 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
14594 instead of Fstring_as_unibyte.
9fabb2f5 14595
048addec 145962001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 14597
048addec 14598 The following changes remove mocklisp support:
9fabb2f5 14599
048addec 14600 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 14601
048addec
JD
14602 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
14603 `Qmocklisp' and `Qmocklisp_arguments'.
14604 Remove prototype of syms_of_mocklisp.
2fa0eedf 14605
048addec 14606 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 14607
048addec
JD
14608 * callint.c: Do not include mocklisp.h.
14609 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 14610
048addec
JD
14611 * eval.c: Remove variables `Qmocklisp_arguments',
14612 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
14613 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
14614 Do not test for mocklisp case.
14615 (Fwhile): Remove unused variable `tem'.
14616 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 14617
048addec 14618 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 14619
048addec 14620 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 14621
048addec 14622 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 14623
048addec 146242001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 14625
048addec
JD
14626 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
14627 to the left or to the right of the pointer, put it against
14628 the left screen edge.
6108b49c 14629
048addec 146302001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 14631
048addec
JD
14632 * Makefile.in (distclean): Remove .gdbinit if we are building
14633 outside the source tree.
5eea19a4 14634
048addec 146352001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 14636
048addec 14637 * w32.c (emacs_root_dir): New function.
5eea19a4 14638
048addec 14639 * msdos.c (emacs_root_dir): New function.
5eea19a4 14640
048addec
JD
14641 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
14642 of the current drive as the fallback for default_directory.
438e57dd 14643
048addec
JD
14644 * dired.c (file_name_completion): Run the elements of
14645 completion-ignored-extensions through ENCODE_FILE.
438e57dd 14646
048addec
JD
14647 * lisp.h (scmp): Remove prototype, since it's now a static
14648 function private to dired.c.
c88e5347 14649
048addec 146502001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 14651
048addec
JD
14652 * dired.c (scmp): Function moved from minibuf.c.
14653 Delete multibyte handling--used only on encoded strings.
59ce1461 14654
048addec 14655 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 14656
048addec 14657 * fns.c (merge): Add QUIT call.
59ce1461 14658
048addec 146592001-12-18 Dave Love <fx@gnu.org>
8727d588 14660
048addec
JD
14661 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
14662 language/georgian.el.
8727d588 14663
048addec 146642001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 14665
048addec
JD
14666 * Makefile.in (lisp, shortlisp): Synchronize with changes to
14667 lisp/Makefile.in:DONTCOMPILE.
cc63037e 14668
048addec 146692001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 14670
048addec
JD
14671 * xdisp.c (window_box_height): Do not return negative values.
14672 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 14673
048addec 14674 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 14675
048addec 14676 * term.c (keys): Likewise.
deece6f5 14677
048addec 14678 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 14679
048addec 146802001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 14681
048addec
JD
14682 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
14683 patch (COMPOSING_P, not COMPOSING).
28ff4293 14684
048addec 146852001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 14686
048addec 14687 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 14688
048addec
JD
14689 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
14690 before calling decode_coding.
9b46de40 14691
048addec 14692 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 14693
048addec
JD
14694 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
14695 instead of only for COMPOSITION_DISABLED.
9b46de40 14696
048addec 146972001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 14698
048addec 14699 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 14700
048addec 14701 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 14702
048addec
JD
14703 * buffer.h (struct buffer): New field `display_error_modiff'.
14704 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 14705
048addec 14706 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 14707
048addec
JD
14708 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
14709 Call redisplay_window, but not if display_error_modiff field says no.
14710 (redisplay_window_error): New function.
14711 (displayed_buffer): New variable.
14712 (redisplay_internal, redisplay_windows): Call the new functions
14713 instead of redisplay_window directly.
2cd23960 14714
048addec 147152001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 14716
048addec 14717 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 14718
048addec 147192001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 14720
048addec 14721 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 14722 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 14723 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 14724
048addec 147252001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 14726
048addec
JD
14727 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
14728 parameter have a numeric value all the time.
f6fa0866 14729
048addec 14730 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 14731
048addec 147322001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 14733
048addec 14734 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 14735
048addec
JD
14736 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
14737 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 14738
048addec 147392001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 14740
048addec
JD
14741 * xdisp.c (move_it_vertically_backward): Change heuristic
14742 for the case that we didn't move far enough initially.
91c153e2 14743
048addec
JD
14744 * window.c (Frecenter): Simplify computation in the case of window
14745 system frames and ARG < 0; use window_box_height.
65b7d3e7 14746
048addec 147472001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 14748
048addec
JD
14749 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
14750 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 14751
048addec 147522001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 14753
048addec
JD
14754 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
14755 arg is negative.
be676094 14756
048addec 147572001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 14758
048addec
JD
14759 * m/hp800.h: Split the __hpux conditional into the parts
14760 that are right for GNU/Linux too and the parts that are not.
14761 Use the former if GNU_LINUX.
14762 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 14763
048addec 14764 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 14765
048addec 147662001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 14767
048addec
JD
14768 * macros.c, msdos.c, w16select.c: Change doc-string comments to
14769 `new style' [w/`doc:' keyword].
032a857d 14770
048addec 147712001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 14772
048addec
JD
14773 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
14774 before using.
b6270150 14775
048addec 147762001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 14777
048addec
JD
14778 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
14779 keyword].
98cbb9fa 14780
048addec 147812001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 14782
048addec 14783 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 14784
048addec 14785 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 14786
048addec 147872001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 14788
048addec 14789 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 14790 Add comment to explain where the struct came from.
048addec
JD
14791 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
14792 (add_menu_item): Process pop-up menus first to avoid memory leak.
14793 (add_menu_item, w32_menu_display_help): Use `help' field as
14794 Lisp_Object.
14795 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 14796
048addec 147972001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 14798
048addec 14799 * COPYING: Moved back.
fa336b91 14800
048addec
JD
14801 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
14802 Add parentheses around && within ||.
077907d4 14803
048addec 14804 * indent.c (compute_motion): Likewise.
aa2af83a 14805
048addec 14806 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 14807
048addec
JD
14808 * coding.c (setup_coding_system, shrink_encoding_region)
14809 (Fdecode_sjis_char): Likewise.
60a653f1 14810
048addec 148112001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 14812
048addec
JD
14813 * xdisp.c (display_mode_element): Don't read past end of string if
14814 it ends with '%'.
60a653f1 14815
048addec
JD
14816 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
14817 can hold.
60a653f1 14818
048addec
JD
14819 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
14820 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
14821 type changed to Lisp_Object.
14822 (syms_of_data): DEFVAR_LISP them.
60a653f1 14823
048addec 148242001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 14825
048addec
JD
14826 * callproc.c (init_callproc): Set Vdata_directory based on the source
14827 location whenever Emacs was run uninstalled.
60a653f1 14828
048addec 148292001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 14830
048addec
JD
14831 * config.in (HAVE_WORKING_VFORK): New #undefs.
14832 * process.c (create_process):
14833 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
14834 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
14835 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
14836 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
14837 * m/intel386.h (HAVE_VFORK): Likewise.
14838 * m/mips-siemens.h (HAVE_VFORK): Likewise.
14839 * m/mips.h (HAVE_VFORK): Likewise.
14840 * s/freebsd.h (vfork): Remove #define.
14841 * s/lynxos.h (HAVE_VFORK): Remove #undef.
14842 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 14843
048addec 148442001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 14845
048addec
JD
14846 * s/hpux10.h (random): Add undef.
14847 (HAVE_RANDOM): Define it just once.
60a653f1 14848
048addec 148492001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14850
048addec 14851 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 14852
048addec 148532001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14854
048addec
JD
14855 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
14856 scroll bars of the frame before deleting the frame itself. If the
14857 frame has a widget, delete the frame with XtDestroyWidget, and do
14858 not call XDestroyWindow before that.
60a653f1 14859
048addec 148602001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 14861
048addec 14862 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14863
048addec 14864 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14865
048addec 148662001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 14867
048addec
JD
14868 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
14869 excessively large.
60a653f1 14870
048addec
JD
14871 * insdel.c (make_gap_larger): New function.
14872 (make_gap_smaller): New function.
14873 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
14874 Call make_gap_smaller if arg is negative.
60a653f1 14875
048addec 148762001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14877
048addec
JD
14878 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
14879 Pass a dummy argument when calling interrupt_signal.
14880 (parse_menu_item): Mark disabled items before checking for empty def.
14881 (read_char_minibuf_menu_prompt): Make safety more visible.
14882 (read_key_sequence): Add a `first_unbound' variable.
14883 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
14884 unbound prefix as soon as we can detect it.
60a653f1 14885
048addec
JD
14886 * doc.c (Fsnarf_documentation): Add prototype.
14887 (get_doc_string): Handle negative arguments.
14888 (Fdocumentation): Use AREF and ASIZE.
14889 Move the calls to get_doc_string to a single place.
14890 Don't confuse an interactive-spec for a docstring reference.
14891 (Fdocumentation_property): Take advantage of the fact that
14892 get_doc_string now ignores the sign of the docstring position.
60a653f1 14893
048addec 14894 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 14895
048addec 148962001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14897
a64387ee 14898 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 14899
048addec 149002001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14901
048addec
JD
14902 * xterm.c (x_draw_image_relief): Use predefined macro instead of
14903 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 14904
048addec 149052001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 14906
048addec
JD
14907 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
14908 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 14909
048addec 14910 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 14911
048addec 149122001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14913
048addec 14914 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 14915
048addec 149162001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 14917
048addec 14918 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 14919
048addec 149202001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 14921
f63fd14e 14922 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 14923
048addec
JD
14924 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
14925 [!WM_MOUSELEAVE]: Define.
60a653f1 14926
048addec
JD
14927 * w32menu.c (current_popup_menu, get_menu_item_info):
14928 (set_menu_item_info): New vars.
14929 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
14930 (w32_menu_show): Set current_popup_menu.
14931 (add_menu_item): Allocate new strings for owner-drawn menu items
14932 and help strings.
14933 Use owner-draw for disabled menu items again.
14934 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
14935 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 14936
048addec
JD
14937 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
14938 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
14939 <WM_EXITMENULOOP>: Free menu strings.
14940 <WM_MOUSELEAVE>: Stop tracking mouse.
14941 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 14942
048addec
JD
14943 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
14944 and mouse face.
60a653f1 14945
048addec 149462001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 14947
048addec
JD
14948 The following changes add left-fringe and right-fringe
14949 frame parameters to adjust fringe widths, or remove one or
14950 both fringes.
60a653f1 14951
048addec
JD
14952 * frame.h (struct frame): Remove trunc_area_pixel_width and
14953 trunc_area_cols fields.
14954 (Qleft_fringe, Qright_fringe): Declare.
14955 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 14956
048addec
JD
14957 * frame.c (Qleft_fringe, Qright_fringe): New vars.
14958 (syms_of_frame): Initialize them.
60a653f1 14959
048addec
JD
14960 * window.c (coordinates_in_window): Handle separate left and right
14961 fringe widths.
60a653f1 14962
048addec
JD
14963 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
14964 and fringe_cols fields.
14965 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
14966 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
14967 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
14968 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
14969 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
14970 (x_compute_fringe_widths): Add prototype.
60a653f1 14971
048addec
JD
14972 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
14973 fill fringe evenly with small dashes.
f63fd14e 14974 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
14975 clip the new ZV bitmap to avoid jitter between rows.
14976 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
14977 background. Don't draw fringe bitmaps if fringe width is zero.
14978 (x_compute_fringe_widths): New function.
14979 (x_new_font, x_set_window_size_1): Use it.
60a653f1 14980
048addec
JD
14981 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
14982 (x_set_frame_parameters): Process `font' parameter before other
14983 parameters as fringe widths depend on it.
14984 (x_set_fringe_width): New function.
14985 (x_figure_window_size): Use x_compute_fringe_widths.
14986 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
14987 parameters.
60a653f1 14988
048addec
JD
14989 * widget.c (set_frame_size): Use x_compute_fringe_widths.
14990 (EmacsFrameSetCharSize): Ditto.
60a653f1 14991
048addec
JD
14992 * w32term.h: Merged changes from xterm.h.
14993 * w32term.c: Merged changes from xterm.c.
14994 * w32fns.c: Merged changes from xfns.c.
60a653f1 14995
048addec 149962001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14997
048addec 14998 * COPYING: Removed.
60a653f1 14999
048addec 150002001-11-29 Dave Love <fx@gnu.org>
60a653f1 15001
048addec
JD
15002 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15003 extra extra slot.
15004 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15005
048addec 150062001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15007
048addec
JD
15008 * fileio.c (file-name-coding-system)
15009 (default-file-name-coding-system): Doc fix (links to referenced
15010 variables added).
60a653f1 15011
048addec 150122001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15013
048addec
JD
15014 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15015 Add dummy uses of gcproN variables.
60a653f1 15016
048addec
JD
15017 * category.c (describe_category, describe_category_1)
15018 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15019 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15020
048addec 150212001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15022
048addec 15023 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15024
048addec
JD
15025 * Makefile.in (lispdir): New variable, referring to build dir.
15026 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15027
048addec 150282001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15029
048addec
JD
15030 * w32menu.c (w32_menu_display_help): Actually add the new argument
15031 OWNER.
60a653f1 15032
048addec 150332001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15034
048addec
JD
15035 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15036 menu items. From David Ponce <dponce@wanadoo.fr>.
15037 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15038 conditionally.
f63fd14e 15039 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15040 help event in the owner frame's keyboard buffer.
60a653f1 15041
048addec
JD
15042 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15043 (Fx_show_tip): Don't subtract last width from row width.
15044
15045 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15046 (w32_read_socket): Use EQ to compare frames.
60a653f1 15047
048addec 150482001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15049
048addec
JD
15050 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15051 OVERLAPS_P.
60a653f1 15052
048addec 150532001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15054
048addec
JD
15055 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15056 `gcpro3' and `gcpro4'.
60a653f1 15057
048addec 15058 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15059
048addec 150602001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15061
048addec 15062 * ccl.c: Use AREF and ASIZE.
60a653f1 15063
048addec 150642001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15065
048addec
JD
15066 * lisp.h (run_hook_list_with_args): Remove.
15067 (LIST_END_P): Fix call to wrong_type_argument.
15068 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15069
048addec 150702001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15071
048addec
JD
15072 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15073 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15074
048addec
JD
15075 * eval.c: Use AREF and ASIZE.
15076 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15077
048addec
JD
15078 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15079 which match the end of the file-name.
15080 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15081 is not a valid env var, but leave it as is instead.
60a653f1 15082
048addec
JD
15083 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15084 Make nil bindings in char-tables transparent.
15085 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15086
048addec 150872001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15088
048addec
JD
15089 * textprop.c (set_text_properties_1): Allow START, END in either order.
15090 Do nothing if range is empty.
60a653f1 15091
048addec 15092 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15093
048addec
JD
15094 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15095 (clean): Not here.
60a653f1 15096
048addec 150972001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15098
048addec
JD
15099 * textprop.c (set_text_properties_1): Clearly mark that the
15100 interval should not be empty.
60a653f1 15101
048addec
JD
15102 * intervals.c (graft_intervals_into_buffer):
15103 Don't call set_text_properties_1 on an empty interval.
60a653f1 15104
048addec 151052001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15106
048addec 15107 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15108
048addec
JD
15109 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15110 don't lose the data in it.
60a653f1 15111
048addec 151122001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15113
048addec 15114 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15115
c62aec78 15116 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15117
c62aec78 15118 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15119
048addec 151202001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15121
048addec 15122 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15123
048addec 151242001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15125
048addec
JD
15126 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15127 Niemitalo <kon@iki.fi>.
60a653f1 15128
048addec 151292001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15130
048addec 15131 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15132
048addec
JD
15133 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15134 (Fx_show_tip): Block input during frame creation.
15135 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15136
048addec 151372001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15138
048addec
JD
15139 * lread.c (Fload): Detect recursive load error for more than 3
15140 nestings of the same file.
15141 (Vrecursive_load_depth_limit): Variable deleted.
15142 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15143
048addec 151442001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15145
048addec
JD
15146 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15147 mouse position if either left or top is not specified.
60a653f1 15148
048addec
JD
15149 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15150 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15151 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15152 (my_create_tip_window): Assign tip_window.
15153 (x_create_tip_frame): Use same defaults as X.
15154 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15155 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15156
048addec
JD
15157 * w32term.c (x_after_update_window_line): Doc fix.
15158 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15159 frames.
15160 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15161
048addec
JD
15162 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15163 for all Windowed systems.
60a653f1 15164
048addec 151652001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15166
048addec
JD
15167 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15168 realized, use the initial screen colors to clear the screen.
60a653f1 15169
048addec 151702001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15171
048addec
JD
15172 * textprop.c (Fset_text_properties): Remove unused variables
15173 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15174
048addec
JD
15175 * search.c (Freplace_match): Remove unused variable `inslen'.
15176
15177 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15178
151792001-11-22 Jason Rumney <jasonr@gnu.org>
15180
15181 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15182 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15183 (my_create_tip_window): New function.
15184 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15185 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15186
151872001-11-20 Jason Rumney <jasonr@gnu.org>
15188
15189 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15190 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15191
15192 * w32fns.c (Vw32_system_coding_system): Remove.
15193 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15194
151952001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15196
15197 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15198 after build_annotations.
15199
15200 * syntax.c (describe_syntax): Add dummy arg.
15201 (describe_syntax_1): Update call to describe_vector.
15202
15203 * category.c (describe_category): Add dummy arg.
15204 (describe_category_1): Update call to describe_vector.
15205
15206 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15207 (describe_command, describe_translation): Add dummy second param.
15208 (describe_map): Call elt_describer with two arguments.
15209 (describe_vector_princ): Add `fun' parameter.
15210 Call it instead of the hardcoded `princ'.
15211 (describe_vector): Add arg `args'.
15212 Pass it as a new second argument to elt_describer.
60a653f1 15213
048addec 15214 * keymap.h (describe_vector): Update prototype.
60a653f1 15215
048addec
JD
15216 * frame.c: Don't include keymap.h any more.
15217 (keys_of_frame): Remove.
60a653f1 15218
048addec 15219 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15220
048addec 15221 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15222
048addec 152232001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15224
048addec
JD
15225 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15226 if defined, 0 otherwise.
15227 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15228 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15229
048addec 152302001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15231
048addec 15232 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15233
048addec 152342001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15235
048addec
JD
15236 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15237 (x_draw_bar_cursor): If the background color of the glyph under
15238 the cursor equals the frame's cursor color, use the glyph's
15239 foreground color for drawing the bar cursor.
15240 (x_after_update_window_line): Clear internal border in different
15241 circumstances.
15242 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15243 (w32_draw_relief_rect): Correct relief by 1 pixel.
15244 (x_set_glyph_string_background_width):
15245 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15246 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15247 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15248 if cursor_in_non_selected_windows is false.
15249 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15250 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15251 Notice if cursor gets overwritten.
15252 (notice_overwritten_cursor): Renamed from
15253 note_overwritten_text_cursor. Rewritten to take glyph widths
15254 into account, and to take X positions as parameters.
15255 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15256 around call to x_draw_glyphs.
15257 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15258 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15259 color to use for image glyph reliefs.
15260 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15261 (glyph_rect): Remove unused variable `area'.
60a653f1 15262
048addec
JD
15263 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15264 some items.
15265 (x_set_internal_border_width): Set frame garbaged when window
15266 doesn't exist yet.
15267 (Fx_create_frame): Accept zero tool_bar_button_relief.
15268 (x_clear_image_1, four_corners_best, image_background)
15269 (image_background_transparent): New functions.
15270 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15271 (gs_format): Add `:background' entry.
15272 (lookup_image): Set IMG's background color if specified.
15273 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15274 when appropriate.
15275 (x_clear_image_1): Reset `background_valid' and
15276 `background_transparent_valid' fields.
15277 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15278 calculating it here. Set IMG's background_transparent field.
15279 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15280 (enum png_keyword_index): Add PNG_BACKGROUND.
15281 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15282 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15283 (enum gif_keyword_index): Add GIF_BACKGROUND.
15284 (enum gs_keyword_index): Add GS_BACKGROUND.
15285 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15286 Pre-calculate image background color where necessary.
15287 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15288 Use display info's n_cbits entry for screen depth.
15289 (Fx_show_tip): Remove unused variables `buffer', `top',
15290 `left', `max_width' and `max_height'.
60a653f1 15291
048addec 15292 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15293
048addec 152942001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15295
048addec 15296 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15297
048addec 152982001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15299
048addec 15300 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15301
048addec 153022001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15303
048addec
JD
15304 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15305 (message_dolog_marker3): New static variables hold three markers.
15306 (syms_of_xdisp): Initialize and staticpro them.
15307 (message_dolog): Use message_dolog_marker1..3 instead of
15308 allocating markers each time. Unchain them when done.
60a653f1 15309
048addec 153102001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15311
048addec 15312 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15313
048addec 153142001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15315
048addec 15316 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15317
048addec 153182001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15319
048addec 15320 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15321
048addec 153222001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15323
048addec 15324 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15325
048addec 153262001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15327
048addec
JD
15328 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15329 with invalid position.
60a653f1 15330
048addec 153312001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15332
048addec 15333 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15334
048addec
JD
15335 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15336 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15337 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15338
048addec 15339 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15340
048addec 153412001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15342
048addec
JD
15343 * fileio.c (build_annotations): Split off the tail.
15344 (build_annotations_2): New fun. Extracted from build_annotations.
15345 (Fwrite_region): Split the call to build_annotations into two
15346 calls to build_annotations and build_annotations_2.
077907d4 15347
048addec 153482001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15349
048addec
JD
15350 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15351 clear_waiting_for_input with argument.
1756e2fb 15352
048addec 15353 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15354
048addec 15355 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15356
048addec 15357 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15358
048addec 15359 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15360
048addec 153612001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15362
048addec
JD
15363 * fileio.c (choose_write_coding_system): New fun, extracted
15364 from Fwrite_region.
15365 (Fwrite_region): Use it.
fa336b91 15366
048addec
JD
15367 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15368 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15369 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15370
048addec 153712001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15372
048addec 15373 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15374
048addec
JD
15375 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15376 Required for ISC 4.1.
fa336b91 15377
048addec 153782001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15379
048addec
JD
15380 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15381 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15382
048addec 153832001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15384
048addec
JD
15385 The following changes are made to clean up the various internal
15386 references to the fringes to actually use the term `fringe' for
15387 them. Previously, they were called `flags areas', `bitmap areas',
15388 `left/right side of windows', or implicitly as `flags' or
15389 `bitmaps':
fa336b91 15390
048addec 15391 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15392 Comments fixed. Use renamed symbols.
06e8f738 15393
f63fd14e 15394 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15395
048addec
JD
15396 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15397 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15398 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15399
048addec 15400 * msdos.c: Comment fix.
9ce647f4 15401
048addec 15402 * w32fns.c: Use renamed symbols.
9b784ab8 15403
f63fd14e 15404 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15405 (fringe_bitmap_type): Renamed from bitmap_type.
15406 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15407 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15408 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15409
f63fd14e 15410 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15411 (fringes_extra): Renamed from flags_areas_extra.
15412 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15413 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15414 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15415 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15416 (FRAME_X_LEFT_FRINGE_WIDTH):
15417 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15418 (FRAME_X_RIGHT_FRINGE_WIDTH):
15419 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 15420
048addec 15421 * widget.c: Use renamed symbols.
9f7e52b4 15422
f63fd14e 15423 * window.c: Comment fixes. Use renamed symbols.
048addec 15424 (coordinates-in-window-p): Doc fix.
fa336b91 15425
f63fd14e 15426 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 15427
048addec 15428 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 15429
048addec 15430 * xfns.c: Use renamed symbols.
89512fcd 15431
f63fd14e 15432 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
15433 (fringe_bitmap_type): Renamed from bitmap_type.
15434 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15435 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15436 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 15437
f63fd14e 15438 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
15439 (fringes_extra): Renamed from flags_areas_extra.
15440 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15441 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15442 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15443 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15444 (FRAME_X_LEFT_FRINGE_WIDTH):
15445 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15446 (FRAME_X_RIGHT_FRINGE_WIDTH):
15447 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15448
154492001-11-15 Jason Rumney <jasonr@gnu.org>
15450
15451 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15452 work for most menu items. From David Ponce
15453 <david.ponce@wanadoo.fr>.
15454
154552001-11-15 Gerd Moellmann <gerd@gnu.org>
15456
15457 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15458 Some x_set_* function expect to be called even if old and new
15459 value are equal.
15460
15461 * xdisp.c (build_desired_tool_bar_string): Accept zero
15462 tool_bar_button_relief.
15463
15464 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15465
15466 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15467
15468 * xterm.c (x_draw_bar_cursor): If the background color of the
15469 glyph under the cursor equals the frame's cursor color, use
15470 the glyph's foreground color for drawing the bar cursor.
15471
15472 * dispnew.c (direct_output_forward_char): Fix character/byte
15473 position comparison.
7d18891d 15474
048addec 154752001-11-15 Miles Bader <miles@gnu.org>
d2936d21 15476
048addec
JD
15477 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15478 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15479 Update arguments to find_field.
15480 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15481 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15482 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15483 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 15484
048addec 154852001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 15486
048addec 15487 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 15488
048addec
JD
15489 * dispextern.h (image_background, image_background_transparent):
15490 Conditionalize on HAVE_X_WINDOWS.
7d18891d 15491
048addec 154922001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 15493
048addec 15494 * print.c (Fprin1_to_string): Doc fix.
7d18891d 15495
048addec 15496 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 15497
048addec 15498 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 15499
048addec 15500 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 15501
048addec 15502 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 15503
048addec 15504 * eval.c (syms_of_eval): Doc fix.
7d18891d 15505
048addec 15506 * coding.c (syms_of_coding): Doc fix.
7d18891d 15507
048addec 15508 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 15509
048addec 15510 * dispnew.c (syms_of_display): Doc fix.
9474c847 15511
048addec 15512 * category.c (Fget_unused_category): Doc fix.
9474c847 15513
048addec 15514 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 15515
048addec 155162001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 15517
048addec 15518 * print.c (prin1, print): Doc fix.
e3059a5d 15519
048addec 155202001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 15521
048addec
JD
15522 * fontset.h: Remove declarations of variables
15523 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 15524
048addec
JD
15525 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15526 `Vclip_large_size_font'.
eae936e2 15527
048addec 155282001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 15529
048addec 15530 * w32fns.c: Doc fix.
ddb67bdc 15531
048addec 155322001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 15533
048addec 15534 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 15535
048addec 15536 * fns.c: Doc fix.
6e1b91d7 15537
048addec 15538 * emacs.c: Doc fix.
1c1d3d69 15539
048addec 15540 * coding.c: Doc fix.
1c1d3d69 15541
048addec
JD
15542 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15543 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15544 `new style' [w/`doc:' keyword].
b6f4c7ba 15545
048addec 155462001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 15547
048addec
JD
15548 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
15549 LeaveNotify events. Only FocusIn and FocusOut do that now.
15550 (x_display_and_set_cursor): Do display hollow cursors in active
15551 minibuffer windows when they are not selected.
b6f4c7ba 15552
048addec 155532001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 15554
048addec 15555 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
15556 * w32term.c: Change doc-string comments to `new style'
15557 [w/`doc:' keyword]. Doc fixes.
a89f435d 15558
048addec
JD
15559 * w32fns.c: Don't define max.
15560 (Fx_open_connection): Only execute once.
a4cd0cd7 15561
048addec 155622001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 15563
048addec
JD
15564 * ccl.c: Change macros to use do-while block instead of if-else.
15565 Use braces to follow GNU Coding Standards.
eafb659a 15566
048addec 155672001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 15568
048addec 15569 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 15570
048addec 15571 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 15572
048addec
JD
15573 * insdel.c (replace_range): Use adjust_markers_for_replace
15574 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 15575
78819ebb 15576 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 15577
048addec
JD
15578 * textprop.c (set_text_properties_1): New subroutine
15579 broken out of set_text_properties.
15580 (set_text_properties): Use set_text_properties_1.
91823618 15581
048addec
JD
15582 * intervals.c (graft_intervals_into_buffer):
15583 Use set_text_properties_1 to clear out properties.
91823618 15584
048addec
JD
15585 * search.c (Freplace_match): Use replace_range to insert
15586 and delete. Don't request property inheritance from
15587 surrounding text.
86928dfb 15588
048addec 155892001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 15590
048addec 15591 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 15592 vertical fonts. Allow them if face name is explicitly specified.
048addec 15593 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 15594
048addec 155952001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 15596
048addec
JD
15597 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
15598 instead of malloc/free.
a78e0303 15599
048addec 156002001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 15601
048addec
JD
15602 * xfaces.c (merge_face_vectors): Use braces to follow GNU
15603 Coding Standards.
15604 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 15605
048addec 15606 * buffer.c (Fbury_buffer): Likewise.
0c99b139 15607
048addec 15608 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 15609
048addec
JD
15610 * coding.c (encode_coding): Use precomputed value of `src'.
15611 (encode_coding): Remove unused variable `src_end'.
15612 (code_convert_region): Remove unused variables `count'.
830ddd77 15613
048addec 156142001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 15615
048addec
JD
15616 * w32term.c (x_display_and_set_cursor): Do not move system caret
15617 if cursor_glyph is NULL.
55c6d645 15618
048addec 156192001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 15620
048addec 15621 * keymap.c (access_keymap): Fix compilation error.
5de38842 15622
048addec 156232001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 15624
048addec 15625 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 15626
048addec 156272001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 15628
048addec
JD
15629 * intervals.c (graft_intervals_into_buffer):
15630 Remove #ifdef'd-out code.
15631 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 15632
048addec
JD
15633 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
15634 code (eval-current-buffer).
15635 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 15636
048addec 156372001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 15638
048addec 15639 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 15640
048addec 156412001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 15642
048addec 15643 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 15644
048addec
JD
15645 * keyboard.c (make_lispy_event): Check integerness and fix
15646 Lisp_Object/int mixup.
17893c65 15647
048addec 156482001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 15649
048addec 15650 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 15651
048addec
JD
15652 * fontset.c (fontset_font_pattern): Remove unused variable
15653 `family_registry'.
d5360cc7 15654
048addec 15655 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 15656
048addec 156572001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 15658
048addec 15659 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 15660
048addec
JD
15661 * buffer.c (Fkill_buffer): Don't delete auto save file
15662 if buffer is modified.
d9d54213 15663
048addec 156642001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 15665
048addec
JD
15666 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
15667 CHECK_NUMBER_CDR.
b116830b 15668
048addec 156692001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 15670
048addec 15671 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 15672
048addec 156732001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 15674
048addec 15675 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 15676
048addec 156772001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 15678
048addec 15679 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 15680
048addec 156812001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 15682
048addec
JD
15683 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
15684 the program image directly.
982f6c7e 15685
048addec 156862001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 15687
048addec 15688 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 15689
048addec 156902001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 15691
048addec
JD
15692 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
15693 and CHECK_BUFFER.
d31053f9 15694
048addec
JD
15695 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
15696 (record_char): Likewise.
d31053f9 15697
048addec
JD
15698 * keyboard.c (make_lispy_event): Don't insist a drag event must
15699 move to a different buffer position. Instead, check for moving at
15700 least double_click_fuzz.
982f6c7e 15701
048addec 15702 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 15703
048addec 15704 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 15705
048addec
JD
15706 * indent.c (current_column_1, Fmove_to_column): Separate the code
15707 for display-table glyphs from the code for buffer text, to fix
15708 bugs in the former.
830047fd 15709
048addec 157102001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 15711
048addec
JD
15712 * buffer.c (Fbuffer_local_value): New function.
15713 (syms_of_buffer): Defsubr it.
2df5238c 15714
048addec
JD
15715 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
15716 value of `cursor-in-non-selected-windows'.
4e397688 15717
048addec
JD
15718 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
15719 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
15720 (syms_of_xdisp): Initialize it.
48b0f3ae 15721
048addec 157222001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 15723
048addec 15724 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 15725
048addec
JD
15726 * coding.c: Change doc-string comments to `new style' [w/`doc:'
15727 keyword].
3ecaf7e5 15728
048addec
JD
15729 * eval.c (top_level_value, top_level_set): Remove commented and
15730 #ifdef'd-out code.
15731 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 15732
048addec 157332001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 15734
048addec 15735 * xfns.c: Include unistd.h, if it exists.
8db2e33b 15736
048addec 15737 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 15738
048addec 15739 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 15740
048addec 157412001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 15742
048addec
JD
15743 * lisp.h (CHECK_STRING_CAR): New macro.
15744 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
15745 treating XCAR and XCDR as lvalues.
15746 (openp): Use CHECK_STRING_CAR.
15747 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 15748
048addec 157492001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 15750
048addec
JD
15751 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
15752 (SIGMASKTYPE): Define.
1b1acc13 15753
048addec 15754 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 15755
048addec 157562001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 15757
048addec
JD
15758 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
15759 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
15760 Fix typos in comments.
6cb16f95 15761
048addec
JD
15762 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
15763 and #ifdef'd-out code.
15764 Fix and reindent comments.
6cb16f95 15765
048addec 15766 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 15767
048addec
JD
15768 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
15769 argument `i' in macros.
6cb16f95 15770
048addec
JD
15771 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
15772 `i' in macros.
7e9d3c2f 15773
048addec
JD
15774 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
15775 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
15776 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
15777 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
15778 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
15779 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
15780 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
15781 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
15782 in macros.
7e9d3c2f 15783
048addec
JD
15784 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
15785 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
15786 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
15787 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
15788 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
15789 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
15790 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
15791 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
15792 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
15793 (remove unused second argument).
7e9d3c2f 15794
048addec 157952001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15796
048addec
JD
15797 * syntax.c (describe_syntax): New wrapper.
15798 (Finternal_describe_syntax_value): Rename from describe_syntax.
15799 Don't insert space at front and \n at the end.
15800 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 15801
048addec
JD
15802 * regex.c (re_wctype): Try to fix some warnings.
15803 (regcomp, regexec): Don't forget the __restrict.
9ba48103 15804
048addec 158052001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 15806
048addec 15807 * textprop.c (Fget_char_property): Doc fix.
9ba48103 15808
048addec 158092001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 15810
048addec 15811 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 15812
048addec 15813 * data.c (Fsetq_default): Ditto.
c22e59e1 15814
048addec 15815 * callint.c (Finteractive): Ditto.
9271ed2c 15816
048addec 158172001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15818
048addec
JD
15819 * macros.c: Don't include keymap.h any more.
15820
158212001-11-01 Richard M. Stallman <rms@gnu.org>
15822
15823 * data.c (Fmake_local_variable): Doc fix.
15824
15825 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
15826 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 15827
048addec 15828 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
15829 bindings along with or instead of the buffer local map.
15830 Make the overriding maps override what they should.
15831
f00691a3 158322001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
15833
15834 * window.c (grow_mini_window): Fix typo in comment.
15835
27188d11
GM
158362001-11-01 Gerd Moellmann <gerd@gnu.org>
15837
7b49b9d2
GM
15838 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
15839 (XTset_vertical_scroll_bar): Likewise.
15840
43f7c3ea
GM
15841 * xfns.c (x_build_heuristic_mask): Use four_corners_best
15842 instead of IMAGE_BACKGROUND.
c22e59e1 15843
b350c2e5
GM
15844 * xfns.c (four_corners_best): Reindent.
15845
c22e59e1 15846 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
15847 Handle :box so that it is possible to specify sexprs.
15848
bf00d461
EZ
158492001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
15850
15851 * s/hpux11.h: New file.
15852
f00691a3 158532001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 15854
2b209b97
PJ
15855 * emacs.c (USAGE1): Show command line option --no-window-system
15856 instead of --no-windows in usage.
15857 (standard_args): Rename --no-windows to --no-window-system.
15858 (bug_reporting_address): Follow Emacs coding conventions.
15859
9dbc9081
PJ
15860 * eval.c (Fcommandp): Doc fix.
15861 Change doc-string comments to `new style' [w/`doc:' keyword].
15862
4e10df59
PJ
15863 * frame.c (Fframe_live_p): Doc fix.
15864
15865 * buffer.c (selective-display-ellipses): Doc fix.
15866
dd387b25
GM
158672001-10-31 Gerd Moellmann <gerd@gnu.org>
15868
fe957e65
GM
15869 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
15870
dd387b25
GM
15871 * xfaces.c (realize_x_face): If C is not a single-byte character,
15872 set the face's colors_copied_bitwise_p instead of the defaulted_p
15873 members which have a different meaning.
15874 (free_face_colors): Do nothing for a face whose colors have been
15875 copied bitwise.
15876
c22e59e1 15877 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 15878
f00691a3 158792001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 15880
687784e8
PJ
15881 * marker.c, mocklisp.c: Change doc-string comments to `new style'
15882 [w/`doc:' keyword].
2e1280f8 15883
b9d9a9b9
GM
158842001-10-31 Gerd Moellmann <gerd@gnu.org>
15885
15886 * fns.c (require_unwind): Return Lisp_Object.
15887
f00691a3 158882001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 15889
fa1361cb
PJ
15890 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
15891 (last-input-char): Revert doc-string to be the same as the
15892 doc-string of `last-input-event'.
15893
6c465a15 15894 * xdisp.c: Fix typos in comments.
48400103 15895
eafa3196
GM
158962001-10-31 Gerd Moellmann <gerd@gnu.org>
15897
15898 * window.c (grow_mini_window): Handle case that the root
15899 window is already smaller than the nominal mininum height.
15900
747d3f2a
SM
159012001-10-30 Stefan Monnier <monnier@cs.yale.edu>
15902
bf9bb76f
SM
15903 * emacs.c (main): Don't call keys_of_macros any more.
15904
15905 * lisp.h (keys_of_macros): Remove.
15906
15907 * macros.c (keys_of_macros): Remove.
15908
747d3f2a
SM
15909 * xfaces.c (Fface_attribute_relative_p): Declare args.
15910
5e905a57
JR
159112001-10-30 Jason Rumney <jasonr@gnu.org>
15912
15913 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
15914 (enum_font_cb2): Ignore fonts with vertical orientation.
15915
3a426197
RS
159162001-10-30 Richard M. Stallman <rms@gnu.org>
15917
15918 * keyboard.c (Finput_pending_p): Doc fix.
15919
a742d646
GM
159202001-10-30 Gerd Moellmann <gerd@gnu.org>
15921
259cf6bc
GM
15922 * xterm.c (x_after_update_window_line): Don't run the code
15923 clearing in borders for rows whose visible height is 0.
15924
3f99f948
GM
15925 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
15926 resized_p flag is set. If not set, use the much less flickering
15927 method previously used.
15928
15929 * dispnew.c (change_frame_size_1): Set frame's resized_p.
15930
15931 * frame.h (struct frame) <resized_p>: New member.
15932
b4a3be43
GM
15933 * lread.c (to_multibyte): Ensure read_buffer is at least twice
15934 as large as the number of bytes to convert.
747d3f2a 15935
a742d646
GM
15936 * lread.c (to_multibyte): New function.
15937 (read1): Use it.
15938
cacbb9e9
EZ
159392001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
15940
15941 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
15942
99cb6b2f
GM
159432001-10-30 Gerd Moellmann <gerd@gnu.org>
15944
327f42ee 15945 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
15946 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
15947 if the row's fill_line_p is set and drawing the last glyph with
15948 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 15949
99cb6b2f
GM
15950 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
15951
8e8223e2
SM
159522001-10-29 Stefan Monnier <monnier@cs.yale.edu>
15953
15954 * xmenu.c: Include coding.h and charset.h.
15955 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
15956 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
15957 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
15958 Explicitly set wv->help. Use `TRUE' rather than `True'.
15959 (menu_help_callback): Use empty_string.
15960
15961 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
15962 (Fx_popup_dialog): Explicitly init f.
15963 (w32_menu_display_help): Use empty_string.
15964
4d083a8f
RS
159652001-10-29 Richard M. Stallman <rms@gnu.org>
15966
b2304472
RS
15967 * fns.c (Frequire): Detect recursive try to require the same
15968 feature 3 or more levels deep, and get error.
15969 (require_unwind): New subroutine.
15970 (require_nesting_list): New variable.
15971 (syms_of_fns): Init and staticpro it.
15972
4d083a8f
RS
15973 * print.c (print_object): Clarify indication of insertion type.
15974
2fe41216
EZ
159752001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
15976
90480000
EZ
15977 * coding.c (syms_of_coding): Document that locale-coding-system is
15978 used for decoding input on X.
15979
2fe41216
EZ
15980 * window.c (Fscroll_left, Fscroll_right): Doc fix.
15981
f00691a3 159822001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
15983
15984 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
15985 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
15986
60ebcfe8
GM
159872001-10-29 Gerd Moellmann <gerd@gnu.org>
15988
9a7bdceb
GM
15989 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
15990 use NO_CURSOR if cursor_in_non_selected_windows is false.
15991
3f08fcd2
GM
15992 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
15993 the slant attribute if FRAME is t.
15994
0ccfdad2
GM
15995 * xfns.c (x_set_internal_border_width): Set frame garbaged
15996 when X window doesn't exist yet.
15997
ef253080
GM
15998 * xterm.c (x_after_update_window_line): Clear internal border
15999 in different circumstances.
b116830b 16000
60ebcfe8
GM
16001 * xterm.c (XTread_socket) <KeyPress>: Don't use
16002 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16003 <handa@etl.go.jp>.
16004
73d25f9c
EZ
160052001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16006
16007 * m/ibms390.h: New file. From Adam Thornton
16008 <athornton@sinenomine.net>.
16009
cac1daf0
GM
160102001-10-28 Gerd Moellmann <gerd@gnu.org>
16011
053b3256 16012 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16013
cac1daf0
GM
16014 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16015 a loop counter.
16016
f00691a3 160172001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16018
f9711de4 16019 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16020
4707d2d0
PJ
16021 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16022 keyword].
16023 Fix typos in comments.
b116830b 16024
d883731c
PJ
16025 * emacs.c (bug_reporting_address): New function.
16026 Use it when displaying usage message.
16027
04012254
PJ
16028 * minibuf.c (read_minibuf): Remove unused external declaration of
16029 variable `Qread_only'.
16030
13b1a09c
PJ
16031 * keymap.c (access_keymap): Remove unused variable `charset'.
16032
5bbf4378
MB
160332001-10-28 Miles Bader <miles@gnu.org>
16034
16035 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16036 Remove #ifdef'd-out code.
16037 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16038 (syms_of_xfaces): Initialize them.
16039
1ce1e4ee
JR
160402001-10-27 Jason Rumney <jasonr@gnu.org>
16041
16042 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16043 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16044 position using the system caret.
16045
16046 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16047 (w32_system_caret_height, w32_system_caret_x)
16048 (w32_system_caret_y): New variables for tracking system caret.
16049 (w32_initialize): Initialize them.
c2d53558 16050 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16051
c2d53558
SM
16052 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16053 New messages types.
1ce1e4ee
JR
16054
16055 * w32term.c (note_mouse_highlight): Clear old help_echo.
16056
f00691a3 160572001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16058
bb4600a4
PJ
16059 * xterm.c: Fix typo in a comment.
16060
7db35a48
PJ
16061 * emacs.c: Fix typos in comments.
16062 Remove unnecessary spaces.
16063 Change doc-string comments to `new style' [w/`doc:' keyword].
16064 (USAGE2): Fix typos in usage string.
16065
a7248e4f
PJ
16066 * xterm.c: Fix typo in a comment.
16067
4e30ce42
PJ
16068 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16069 emacs.c.
16070
62725a92
GM
160712001-10-27 Gerd Moellmann <gerd@gnu.org>
16072
798dbe1f 16073 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16074 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16075 farther backward when target_y was not reached.
16076
62725a92
GM
16077 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16078 Display errno only if non-zero.
16079 (sound_warning): New function.
16080 (vox_configure): Don't treat failing to set sample rate as error.
16081 (various places): Improve error messages.
16082
d4e34d24
EZ
160832001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16084
944e6f60
EZ
16085 * fileio.c (Faccess_file): Run the argument filename through
16086 Fexpand_file_name, before using it.
16087
d4e34d24
EZ
16088 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16089 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16090
38d2af0c
GM
160912001-10-26 Gerd Moellmann <gerd@gnu.org>
16092
da80a8d5
GM
16093 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16094
38d2af0c
GM
16095 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16096 Fix clearing in the case of scroll bars on the right.
c2d53558 16097
45de4a6f 160982001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16099
16100 * w32gui.h (XImage): Add a dummy typedef.
16101
fbd5ceb2
GM
161022001-10-26 Gerd Moellmann <gerd@gnu.org>
16103
c2d53558 16104 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16105
b23236fb
EZ
161062001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16107
16108 * frame.c (Fframe_parameter): Fix last change.
16109
5d991fc4
EZ
16110 * fileio.c: Revert last change (which removed old commented-out
16111 version of expand-file-name). Add a comment that explains why
16112 this old version should not be removed.
16113
879eadc3
GM
161142001-10-25 Gerd Moellmann <gerd@gnu.org>
16115
75700ff2
GM
16116 * frame.c (Fframe_parameter): Fix a bug whereby some
16117 ``artificial'' frame parameters, like `minibuffer' were not
16118 obtained by calling Fframe_parameters.
16119
dfe92a6a
GM
16120 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16121 cursor differently.
16122
879eadc3
GM
16123 * xdisp.c (move_it_vertically_backward): Compute line height
16124 differently. Add heuristic to try to be more compatible to 20.x.
16125
e1010ebe
SM
161262001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16127
d73a471b
SM
16128 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16129
d6da5a06
GM
16130 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16131 boolean.
e1010ebe 16132
f66bd220
MB
161332001-10-25 Miles Bader <miles@gnu.org>
16134
16135 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16136 BG is a pointer to a structure, not a structure.
16137 (gif_format, png_format): Add missing commas.
16138
d436d538
RS
161392001-10-24 Richard M. Stallman <rms@gnu.org>
16140
16141 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16142 (syms_of_xfaces): Defsubr it.
d436d538 16143
f00691a3 161442001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16145
16146 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16147 variable `area'.
16148
f00691a3 161492001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16150
c2d53558 16151 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16152
e2a57b34
MB
161532001-10-25 Miles Bader <miles@gnu.org>
16154
16155 * dispextern.h (struct image): Add `background',
16156 `background_valid', and `background_transparent' fields.
16157 (image_background, image_background_transparent): New declarations.
16158 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16159 * xfns.c (image_background, image_background_transparent)
16160 (four_corners_best): New functions.
c2d53558 16161 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16162 (gs_format): Add `:background' entry.
16163 (lookup_image): Set IMG's background color if specified.
16164 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16165 when appropriate.
16166 (x_clear_image_1): Reset `background_valid' and
16167 `background_transparent_valid' fields.
16168 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16169 calculating it here. Set IMG's background_transparent field.
16170 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16171 (enum png_keyword_index): Add PNG_BACKGROUND.
16172 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16173 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16174 (enum gif_keyword_index): Add GIF_BACKGROUND.
16175 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16176 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16177 Pre-calculate image background color where necessary.
16178 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16179 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16180 color to use for image glyph reliefs.
16181
b547b6e8
GM
161822001-10-24 Gerd Moellmann <gerd@gnu.org>
16183
d9e3b8c6
GM
16184 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16185 in full-width rows.
c2d53558 16186
b547b6e8
GM
16187 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16188 Fix clearing of area not covered by scroll bar.
16189
f00691a3 161902001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16191
16192 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16193 and `real_start'.
c2d53558 16194 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16195 (glyph_rect): Remove unused variable `area'.
16196
76cb5e06
GM
161972001-10-24 Gerd Moellmann <gerd@gnu.org>
16198
bdbdebff 16199 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16200
16201 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16202 (row_containing_pos): Take additional argument DY.
16203 Treat rows ending in middle of char differently.
62e33982
GM
16204 (display_line): Handle tabs on window systems differently.
16205
16206 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16207 with additional argument.
16208
16209 * dispextern.h (row_containing_pos): Adjust prototype.
16210
76cb5e06
GM
16211 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16212 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16213 (try_window_id, try_window_reusing_current_matrix)
16214 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16215 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16216
f00691a3 162172001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16218
c9e60620
PJ
16219 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16220 gnuemacs).
16221 (HAVE_BOXES): Fix typo in comment.
16222 (push_menu_pane): Fix typo in comment.
16223
3b552d56
PJ
16224 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16225 of `Qwhen'.
16226 (single_display_prop_string_p): Remove unused local declarations
16227 of `Qwhen' and `Qmargin'.
16228 (string_buffer_position): Remove unused variable `around'.
16229 (store_frame_title): Remove unused variable `width'.
16230
15c565ac
PJ
16231 * window.c: Don't define max.
16232 (coordinates_in_window): Remove unused variable `uy'.
16233
a8818eb9
PJ
16234 * widget.c: Don't define max.
16235
996fee11
PJ
16236 * process.c: Don't define max.
16237 (create_process): Remove unused variable `buffer'.
16238
496e1a5b
GM
162392001-10-23 Gerd Moellmann <gerd@gnu.org>
16240
c2d53558 16241 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16242
5905ae8b
EZ
162432001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16244
16245 * xfaces.c (Finternal_set_lisp_face_attribute)
16246 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16247 frame is on a windowed display.
16248
24db49fb
GM
162492001-10-23 Gerd Moellmann <gerd@gnu.org>
16250
c2d53558
SM
16251 * dispnew.c (sync_window_with_frame_matrix_rows):
16252 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16253 of marginal areas.
16254
c2d53558 16255 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16256
f0487f05
EZ
162572001-10-23 Andreas Schwab <schwab@suse.de>
16258
16259 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16260 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16261
f0a48a01
GM
162622001-10-23 Gerd Moellmann <gerd@gnu.org>
16263
c2d53558 16264 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16265 REAL_END. Notice if cursor gets overwritten.
16266 (notice_overwritten_cursor): Take X positions as parameters.
16267 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16268 around call to x_draw_glyphs.
16269
f00691a3 162702001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16271
fc11dff0
PJ
16272 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16273 instead of C) and usage.
a50a10a0 16274
fc11dff0
PJ
16275 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16276 of C) and usage.
a50a10a0
PJ
16277
16278 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16279 `left', `max_width' and `max_height'.
16280
8738febd
GM
162812001-10-23 Gerd Moellmann <gerd@gnu.org>
16282
16283 * xdisp.c (display_line): For a tab continued to the next line,
16284 set row's ends_in_middle_of_char_p.
16285
653c329b
GM
162862001-10-22 Gerd Moellmann <gerd@gnu.org>
16287
16288 * xdisp.c (display_line): Fix computation of continuation lines
16289 width for TABs.
16290
f00691a3 162912001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16292
7ba51063
PJ
16293 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16294 `Qlaplace'.
16295
f958c5ac
PJ
16296 * fileio.c: Remove unused code.
16297
eb360291
MB
162982001-10-22 Miles Bader <miles@gnu.org>
16299
16300 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16301 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16302 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16303
98515cf0
JR
163042001-10-21 Jason Rumney <jasonr@gnu.org>
16305
16306 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16307
93026d88
EZ
163082001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16309
16310 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16311 (Finsert_string): Avoid the multi-line string literals warning.
16312
c9a95b79
MB
163132001-10-22 Miles Bader <miles@gnu.org>
16314
16315 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16316 (Fdocumentation): Don't use it.
16317 (syms_of_doc): Don't initialize it.
16318
16319 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16320 * print.c (Fwith_output_to_temp_buffer): Likewise.
16321 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16322 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16323 (Fsave_restriction): Likewise.
c2d53558
SM
16324 * eval.c (Frun_hooks, Frun_hook_with_args)
16325 (Frun_hook_with_args_until_failure)
16326 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16327 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16328 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16329 (Funwind_protect, Fcondition_case): Likewise.
16330 * coding.c (Ffind_operation_coding_system): Likewise.
16331 * keyboard.c (Ftrack_mouse): Likewise.
16332
a3b10252
MB
163332001-10-21 Miles Bader <miles@gnu.org>
16334
c2d53558 16335 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16336 (Fmake_hash_table): Add usage: string to doc string.
16337 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16338 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16339 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16340 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16341 (Fml_prefix_argument_loop): Likewise.
16342
f00691a3 163432001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16344
c2d53558 16345 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16346
c6f73eec
PJ
16347 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16348 style' [w/`doc:' keyword].
16349
16350 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16351 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16352 comments to `new style' [w/`doc:' keyword].
16353
3cf3436e
JR
163542001-10-21 Jason Rumney <jasonr@gnu.org>
16355
16356 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16357
c169b8f1
JR
16358 * w32term.c (remember_mouse_glyph): New function.
16359 (w32_mouse_position): Use it.
16360 (note_mouse_movement): If the mouse moved off the glyph, remember
16361 its new position.
c2d53558 16362
4fdd691b
JR
16363 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16364 (w32_display_info): Add mouse_face_overlay.
16365
c169b8f1
JR
16366 * w32term.c (notice_overwritten_cursor): Renamed from
16367 note_overwritten_text_cursor. Rewritten to take glyph widths into
16368 account.
16369 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16370 (fast_find_string_pos): New function.
16371 (fast_find_position): Return the correct vpos. Add parameter
16372 STOP. In the final row, stop before glyphs having STOP as object.
16373 Don't consider glyphs that are not from a buffer.
16374 (fast_find_position) [0]: Add a presumably more correct version
16375 for after 21.1.
16376 (expose_window_tree, expose_frame): Don't compute intersections here.
16377 (expose_window): Do it here instead.
16378 (expose_window_tree, expose_window, expose_line): Return 1 when
16379 overwriting mouse-face.
16380 (expose_window): If W is the window currently being updated, mark
16381 the frame garbaged.
16382 (expose_frame): If mouse-face was overwritten, redo it.
16383 (x_use_underline_position_properties): New variable.
16384 (syms_of_xterm): DEFVAR_BOOL it.
16385 (x_draw_glyph_string): Add comment to use it in future.
16386 (x_draw_glyph_string): Restore clipping after drawing box.
16387 Fix a computation of the underline position.
16388 (w32_get_glyph_string_clip_rect): Minor cleanup.
16389 (x_fill_stretch_glyph_string): Remove an assertion.
16390 (x_produce_glyphs): Don't convert multibyte characters
16391 to unibyte characters in unibyte buffers.
16392 (cursor_in_mouse_face_p): New function.
16393 (x_draw_stretch_glyph_string): Use it to choose a different GC
16394 when drawing a cursor within highlighted text. Don't draw
16395 background again if it has already been drawn.
16396 (x_draw_glyph_string_box): Don't draw a full-width
16397 box just because the glyph row's full_width_p flag is set.
16398 (x_draw_glyphs): Fix computation of rightmost x for
16399 full-width rows.
16400 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16401 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16402 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16403 (x_update_window_end): Handle overwritten mouse face
16404 also for tool bar windows.
16405 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16406 DRAW is DRAW_IMAGE_RAISED.
16407 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16408 actually redrawn. Make the function static.
16409 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16410 optimize away highlighting if we pass over that same overlay again.
16411 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16412 to detect a case where we have to highlight a different region
16413 despite not having left the currently highlighted region.
16414 Set mouse_face_overlay in the x_display_info. Avoid changing the
16415 mouse pointer shape when show_mouse_face has already done it, or
16416 there is no need. Handle mouse-face and help-echo in strings.
16417 (glyph_rect): New function.
16418 (w32_mouse_position): Use it to raise the threshold for mouse
16419 movement event generation.
16420 (w32_initialize_display_info): Initialize the x_display_info's
16421 mouse_face_overlay.
16422 (w32_set_vertical_scroll_bar): Don't clear a zero height
16423 or width area.
16424 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16425 a widget to zero height.
16426
3cf3436e 16427 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 16428 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
16429 equivalents in menu_items.
16430 (w32_menu_show): Don't overwrite an item's name with its key
16431 description in case the description is a multibyte string.
16432 (single_submenu): Some cleanup.
16433
16434 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16435 (postprocess_image): New function.
16436 (lookup_image): Call it for all image types except PostScript.
16437 (x_kill_gs_process): Call postprocess_image.
16438 (tiff_error_handler, tiff_warning_handler): New functions.
16439 (tiff_load): Install them as handlers.
16440 (x_kill_gs_process): Recognize if someone has cleared the image
16441 cache under us.
16442 (valid_image_p): Protect better against invalid image
16443 specifications. Previous code could signal an error.
16444 (Fx_hide_tip, Fshow_tip): Doc fix.
16445 (Fv_max_tooltip_size): New variable.
16446 (syns_of_xfns): DEFVAR_LISP it.
16447 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 16448 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
16449 window_width. Use a maximum tooltip size specified by
16450 Vx_max_tooltip_size, if that has valid contents.
16451 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16452 Make sure the tooltip is completely visible.
16453 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16454 (Fx_create_frame): Adjust the frame's height for presence
16455 of the tool bar before calling x_figure_window_size.
16456 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16457 when the window gets smaller.
16458 (x_set_foreground_color): Set frame's cursor_pixel.
16459 (x_set_foreground_color, x_set_background_color): Cleaned up.
16460 (x_set_font): Handle case of x_new_fontset returning the same name
16461 as before, although there was a change in fontsets.
16462
386ca361
MB
164632001-10-21 Miles Bader <miles@gnu.org>
16464
c2d53558 16465 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
16466 (Flogxor): Add usage: string to doc string.
16467 * charset.c (Fstring): Likewise.
16468 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16469 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16470
f00691a3 164712001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 16472
03be2694
PJ
16473 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16474
16475 * alloc.c: Reindent DEFUNs with doc: keywords.
16476
16477 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16478
14ff1ee0
PJ
16479 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16480 keyword].
16481
2f147815 16482See ChangeLog.9 for earlier changes.
6922b018
KH
16483
16484;; Local Variables:
49b3bd82 16485;; coding: iso-2022-7bit
6922b018 16486;; End:
2a34a036 16487
2f147815 16488 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16489 Copying and distribution of this file, with or without modification,
16490 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
16491
16492;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4