(Using Calc): Remove paragraph on installation.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c72b0edd
SM
12004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
4 Remove redundant correctness checks.
5 (regex_compile): Fix up error codes for \{..\} expressions.
6
c721eee5
RS
72004-12-05 Richard M. Stallman <rms@gnu.org>
8
9 * regex.c (regex_compile): Fix end-of-pattern case for space.
10
d8f96db8
ST
112004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12
6108209e
KS
13 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
14 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 15 crashes with invalid characters.
6108209e
KS
16 * macmenu.c (add_menu_item): Use it.
17 * image.c (image_load_quartz2d): Likewise.
18 * macfns.c (x_set_name, x_set_title): Likewise.
19 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
20 creating them each time for labels.
d8f96db8 21
ab67e8b6
RS
222004-12-02 Richard M. Stallman <rms@gnu.org>
23
24 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
25 don't use it here.
26
27 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
28 (interactive_p): Skip Scalled_interactively_p frames
29 like Sinteractive_p frames.
30
31 * data.c (Fmake_variable_buffer_local): Doc fix.
32 (Fmake_local_variable): Doc fix.
33
34 * insdel.c (insert_from_string_before_markers)
35 (insert_from_string): Don't modify buffer on empty insertion.
36
37 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
38
f86bdc80
ST
392004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
40
41 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
42 menu text as UTF8 fails.
43
1cae6d39
KS
442004-12-01 Kim F. Storm <storm@cua.dk>
45
46 * alloc.c: Add commentary for last change.
47 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
48 sizeof(size_t) != 4.
49 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
50 Use them. Also clear header and trailer of freed memory.
51 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
52 (string_overrun_cookie): Rename from string_overrun_pattern.
53 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
54
77ea0764
AS
552004-12-01 Andreas Schwab <schwab@suse.de>
56
57 * lisp.h: Declare string_to_multibyte.
58
2d5cd4e6
KH
592004-12-01 Kenichi Handa <handa@m17n.org>
60
61 * w32console.c (w32con_write_glyphs): Decide coding here.
62 Adjusted for the change of encode_terminal_code.
63
64 * term.c (encode_terminal_code): Don't make it "static".
65
25a0994a
KH
662004-11-30 Kenichi Handa <handa@m17n.org>
67
68 * term.c (encode_terminal_buf, encode_terminal_bufsize): New
69 variables.
70 (encode_terminal_code): Argument changed. Encode all
71 characters at once, and return a pointer to the result of
72 encoding.
73 (write_glyphs): Decide coding here. Adjusted for the above
74 change.
75 (insert_glyphs): Likewise.
76 (term_init): Initialize encode_terminal_bufsize to 0.
77
78 * coding.c (Vcode_conversion_workbuf_name): New variable.
79 (syms_of_coding): Initialize and staticpro it.
80 (set_conversion_work_buffer): New function.
81 (run_pre_post_conversion_on_str): Use it.
82 (run_pre_write_conversin_on_c_str): New function.
83
84 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
85
fc7a70cc
ST
862004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
87
88 * keyboard.c: Don't undef SIGIO
89 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
90 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
91 (macfns.o): Don't depend on ccl.h.
92 * macfns.c (mac_frame_parm_handlers): Set handlers for
93 Qleft_fringe and Qright_fringe.
94 * macterm.c (mac_fill_rectangle_to_pixmap)
95 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
96 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
97 Put in #if 0.
98 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
99 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
100 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
101 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
102 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
103 XDrawImageString. Always draw background and foreground separately.
104 (x_draw_image_foreground): Use clipping instead of computing the
105 intersection rectangle.
106 (x_draw_image_glyph_string): Don't draw an image with mask to a
107 pixmap.
108 (x_redisplay_interface): Set flush_display_optional member to 0.
109 (XTread_socket): Correctly reset the TEConverter
110 object.
111
fc368889
KS
1122004-11-30 Kim F. Storm <storm@cua.dk>
113
114 * lisp.h: New defines to enable buffer overrun checking.
115 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
116 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
117
118 * alloc.c: Add more checks for buffer overruns.
119 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
120 xmalloc_overrun_check_trailer, overrun_check_malloc)
121 overrun_check_realloc, overrun_check_free): Add.
122 (GC_STRING_EXTRA, string_overrun_pattern): Add.
123 (check_sblock, allocate_string_data, compact_small_strings):
124 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
125 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
126 (check_string_free_list): Add.
127 (allocate_string, sweep_strings): Call check_string_free_list.
128
129 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
130 XMALLOC_OVERRUN_CHECK to avoid crash during load.
131
0af8cfe1
KS
1322004-11-29 Kim F. Storm <storm@cua.dk>
133
134 * fns.c (concat): Use SAFE_ALLOCA.
135
77220eeb
SM
1362004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
137
138 * sysdep.c (emacs_write): Don't use QUIT.
139
a778cf63
KH
1402004-11-29 Kenichi Handa <handa@m17n.org>
141
142 * buffer.c (init_buffer): Set current_buffer->directory to a
143 multibyte string made by string_to_multibyte.
144
77220eeb 145 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 146
e3177e43
AS
1472004-11-27 Andreas Schwab <schwab@suse.de>
148
149 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
150
151 * s/gnu-linux.h: Enable no-op gcpros on ia64.
152 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
153
77220eeb
SM
154 * filelock.c (lock_file_1): Call get_boot_time early.
155 Increase buffer size.
e3177e43 156
ca5e6fef
EZ
1572004-11-27 Eli Zaretskii <eliz@gnu.org>
158
159 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
160 is not defined.
161
e2811828
KS
1622004-11-27 Kim F. Storm <storm@cua.dk>
163
164 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
165 marker out of doc string.
166
7a262394
SM
1672004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
168
169 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
170 which was not mentioned in the log.
171
f33cc5a9
KS
1722004-11-26 Kim F. Storm <storm@cua.dk>
173
048bb03f
KS
174 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
175 angle bitmaps at top/bottom line.
176
f33cc5a9
KS
177 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
178 set it when it->method is set to next_element_from_display_vector.
179 (setup_for_ellipsis): Add LEN argument. Callers changed.
180 Set it->saved_face_id.
181 (get_next_display_element): Use loop instead of recursion.
182 Set it->saved_face_id. Combine duplicate code for ctr chars.
183 (next_element_from_display_vector): Do not set it->saved_face_id.
184 (next_element_from_ellipsis): Use setup_for_ellipsis.
185
670e8906
EZ
1862004-11-26 Eli Zaretskii <eliz@gnu.org>
187
188 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
189 prevent compiler warnings.
190
275464e7
SM
1912004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
192
1bf0e604
SM
193 * keyboard.c (command_loop_1): Print a message describing the key
194 the user just pressed when this key has no binding.
195
275464e7
SM
196 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
197 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
198
199 * lread.c (readchar): Check QUIT when `getc' is interrupted.
200
261b01c6
RS
2012004-11-24 Richard M. Stallman <rms@gnu.org>
202
203 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
204
205 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
206
a5bd504e
KS
2072004-11-24 Kim F. Storm <storm@cua.dk>
208
209 * xdisp.c (move_it_in_display_line_to, display_line):
210 Restore saved_face_id also when truncate-lines or hscrolled.
211
255e4140
JD
2122004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
213
214 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
215 x-use-old-gtk-file-dialog.
216
217 * xfns.c: Define x_use_old_gtk_file_dialog.
218 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
219 outside ifdef USE_GTK.
220
cab27d04
SM
2212004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
222
223 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
224 Don't use XFASTINT blindly.
225
226 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
227
228 * indent.c (skip_invisible): Avoid non-idempotent side-effects
229 in macro arguments.
230
231 * keymap.c (Flookup_key): Check INTEGERP before XINT.
232
233 * lread.c (oblookup): Don't use XFASTINT blindly.
234
235 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
236 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
237
11e0be49
KS
2382004-11-23 Kim F. Storm <storm@cua.dk>
239
4d721114
KS
240 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
241 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
242
11e0be49
KS
243 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
244 signal_p is zero and face name is unknown.
245 (Fx_list_fonts): Don't signal error in lookup_named_face.
246 (Fface_font): Signal error in lookup_named_face.
247 (ascii_face_of_lisp_face): Likewise.
248
249 * dispextern.h (lookup_named_face): Fix prototype.
250
251 * xdisp.c (handle_single_display_prop): Don't signal error in
252 lookup_named_face for unknown fringe face name.
253 (highlight_trailing_whitespace): Don't signal error in
254 lookup_named_face if trailing-whitespace face unknown.
255 (calc_line_height_property): Don't signal error in
256 lookup_named_face if specified face name is unknown.
257
258 * fringe.c (update_window_fringes): Show top row indicator if
259 window has header-line. Don't show arrow at bob and eob
260 if the boundary indicators are not used.
261 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
262
263 * window.c (set_window_buffer): Clear display_error_modiff.
264
0960a582
KS
2652004-11-22 Kim F. Storm <storm@cua.dk>
266
267 * fringe.c (update_window_fringes): Provide sensible fall-back
268 value for non-nil indicate-buffer-boundaries setting.
269
b0e9bb28
MR
2702004-11-22 Markus Rost <rost@ias.edu>
271
272 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
273
d0bce91e
SM
2742004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
277
e1814672
KS
2782004-11-21 Kim F. Storm <storm@cua.dk>
279
b7fd3518
KS
280 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
281
282 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
283 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
284
285 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
286 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
287
288 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
289 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
290
d0bce91e
SM
291 * xdisp.c (move_it_in_display_line_to, display_line):
292 Restore saved_face_id if overflow-newline-into-fringe is enabled and
293 line is continued before or in middle of element from display vector.
f01d4d05 294
f1a61389
KS
295 * indent.c (Fvertical_motion): Fix last change. Use another
296 method to detect if iterator moved too far ahead after reseat.
297
e1814672
KS
298 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
299 expand matrix width for overflow in zero-width area.
300 (append_glyph, append_composite_glyph, produce_image_glyph)
301 (append_stretch_glyph): Use it to avoid loop in redisplay.
302 (note_mode_line_or_margin_highlight): Don't let help-echo from
303 string override help-echo from image map.
304
2dafe1c9
LT
3052004-11-20 Luc Teirlinck <teirllm@auburn.edu>
306
d0bce91e 307 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
308 * callint.c (Fcall_interactively): Ditto.
309
fd6866c8 3102004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
311
312 * minibuf.c (Fminibuffer_complete_and_exit):
313 Fixup the case of the completed value, for case-indep completion.
314
dedbac89
RS
3152004-11-20 Richard M. Stallman <rms@gnu.org>
316
fd6866c8
RS
317 * lisp.h (Fread_from_minibuffer): Add arg in decl.
318
9d00469f 319 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 320 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 321
dedbac89 322 * search.c (Vsearch_spaces_regexp):
d0bce91e 323 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 324
2f672bb5
TTN
3252004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
326
327 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
328
f31a9a68
RS
3292004-11-19 Richard M. Stallman <rms@gnu.org>
330
331 * search.c (Vsearch_whitespace_regexp): New variable.
332 (syms_of_search): Defvar it.
333 (compile_pattern_1): Call re_set_whitespace_regexp with it.
334 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
335 is non-nil.
6de891db
RS
336 (struct regexp_cache): New element whitespace_regexp.
337 (syms_of_search): Initialize whitespace_regexp elements.
338 (compile_pattern): Compare whitespace_regexp elements.
339 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
340
341 * regex.c (regex_compile): Substitute whitespace_regexp
342 for spaces, if it is nonzero.
343 (whitespace_regexp): New variable.
344 (re_set_whitespace_regexp): New function.
345
cbc34cb3
KS
3462004-11-19 Kim F. Storm <storm@cua.dk>
347
348 * indent.c (Fvertical_motion): Fix last change.
349
b54a7539
KS
3502004-11-18 Kim F. Storm <storm@cua.dk>
351
352 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
353 Instead, move back again if reseating moves too far ahead.
354
3552004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
356
357 * xdisp.c (message3): Call clear_message.
358
5ff504fe
KS
3592004-11-17 Kim F. Storm <storm@cua.dk>
360
361 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
362
5ae53dcf
JD
3632004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
364
d0bce91e 365 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 366
6abf3a27 367 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
368 (x_menu_set_in_use): Also set popup_activated_flag.
369
5ff504fe 370 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
371 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
372
6abf3a27 373 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 374
ee31cd78
RS
3752004-11-16 Richard M. Stallman <rms@gnu.org>
376
6abf3a27
SM
377 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
378 Use map-keymap-internal to implement that.
ee31cd78
RS
379
380 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
381
6abf3a27
SM
3822004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
383
384 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
385 a window before using XWINDOW.
386
387 * window.c (make_window, Fselect_window, make_dummy_parent)
388 (save_window_save):
389 * frame.c (make_frame):
390 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
391
392 * lisp.h (NILP): Use EQ rather than XFASTINT.
393
b4d61105
KS
3942004-11-16 Kim F. Storm <storm@cua.dk>
395
6abf3a27 396 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 397
b4d61105
KS
398 * indent.c (Fvertical_motion): Fix last change. Only reseat when
399 moving backwards.
400
4012004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
402
403 * dispextern.h: Extern reseat_at_previous_visible_line_start.
404
ab5b02b0
KH
4052004-11-16 Kenichi Handa <handa@m17n.org>
406
407 * xdisp.c (display_mode_element): Fix previous change (calculate
408 end position of substring to display correctly).
409
c482cf97
KS
4102004-11-16 Kim F. Storm <storm@cua.dk>
411
412 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
413 Reported by Andrew M. Scott.
414
9f89426b
KS
4152004-11-15 Kim F. Storm <storm@cua.dk>
416
417 * fns.c (Fsafe_plist_get): New defun.
418 (syms_of_fns): Defsubr it.
419
420 * lisp.h (Fsafe_plist_get): Add EXFUN.
421
422 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
423 Use Fsafe_plist_get.
424 (note_mode_line_or_margin_highlight, note_mouse_highlight):
425 Fix image map element parsing. Use Fsafe_plist_get.
426
27418463
RS
4272004-11-15 Richard M. Stallman <rms@gnu.org>
428
429 * xdisp.c (get_next_display_element): Fix previous change.
430
a130b901
JD
4312004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
432
ef614e04
JD
433 * window.c (shrink_windows): Handle special case of one window left
434 when trying to shrink the final reminder. Grow windows if
435 total_removed is less than total_shrink.
436
a130b901
JD
437 * xmenu.c (pop_down_menu): Remove global variable current_menu,
438 extract pointer from arg with XSAVE_VALUE.
46303896
KS
439 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
440 Construct arg to record_unwind_protect with make_save_value.
a130b901 441
d9a03ad2
RS
4422004-11-13 Richard M. Stallman <rms@gnu.org>
443
444 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
445 (get_next_display_element): Fix previous change to apply only to \n.
446
447 * indent.c (Fvertical_motion): Scan to PT from start of line to
448 make iterator consistent.
449
450 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
451
b3935289
JD
4522004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
453
454 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
455
456 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
457 Record unwind with clean_up_file_dialog.
458
78819ebb
KS
459 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
460 Declare.
b3935289
JD
461
462 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
463
af89e871
JD
4642004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
465
457a8155 466 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 467 (xg_file_sel_destroy): Remove.
46303896
KS
468 (xg_file_response_cb, pop_down_file_dialog)
469 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 470 New functions.
6abf3a27
SM
471 (xg_get_file_with_chooser, xg_get_file_with_selection):
472 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
473 Move common code to xg_get_file_name. Return widget created.
474 (xg_get_file_name): Set name, transient for, modal and destroy
475 with parent here. Connect response signal to xg_file_response_cb,
476 connect delete-event to gtk_true. Record pop_down_file_dialog
477 for unwind. Do event loop and call x_menu_wait_for_event in loop.
478 (xg_create_widget): Make dialogs modal.
479
af89e871
JD
480 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
481 Lisp_Object.
482 (popup_get_selection): Move unwind protect ...
483 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
484 Move destroy of widget to pop_down_menu.
485 (popup_widget_loop): Move unwind protect ...
486 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
487 Move destroy of widget to pop_down_menu.
488 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 489 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
490 x_mouse_leave and grabbed = 0 to pop_down_menu.
491
5596fbf1
KS
4922004-11-13 Kim F. Storm <storm@cua.dk>
493
494 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
495 (syms_of_xdisp): DEFVAR_BOOL it.
496 (make_cursor_line_fully_visible, try_cursor_movement)
497 (try_window_id): Use it.
498
b9de078a
KS
4992004-11-12 Kim F. Storm <storm@cua.dk>
500
381f7091
KS
501 * dispextern.h (struct glyph_row): New member extra_line_spacing.
502 (struct it): New member max_extra_line_spacing.
503 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
504 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
505 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
506 part of last line is only extra line spacing (so the text on the
507 line is fully visible). Use helper macros.
508 Add W arg (to use them). All callers changed.
509 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
510 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
511
6abf3a27
SM
512 * window.c (window_scroll_pixel_based, Frecenter):
513 Use move_it_vertically_backward directly.
381f7091
KS
514 (Frecenter): Fix calculation of new start pos for negative arg.
515 Before, the new start pos was sometimes chosen too far back, so
516 the last line became only partially visible, and thus would be
517 either only semi-visible or automatically scrolled to the middle
518 of the window by redisplay.
519
520 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
521 (move_it_vertically_backward): Don't recure to move further back.
522 (move_it_vertically): Remove superfluous condition.
523 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 524 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
525 (display_tool_bar_line): Clear row->extra_line_spacing.
526 (try_scrolling): Use move_it_vertically_backward directly.
527 (redisplay_window): Likewise.
528 (compute_line_metrics): Set row->extra_line_spacing.
529 (display_line, display_string): Likewise.
530 (x_produce_glyphs): Update it->max_extra_line_spacing.
531
b9de078a
KS
532 * xmenu.c (pop_down_menu): Return nil.
533
c3438661
JD
5342004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
535
536 * xmenu.c (x_menu_wait_for_event): New function.
537 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
538 to handle timers.
df00f436
JD
539 (popup_widget_loop): Add argument do_timers.
540 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
541 do_timers to popup_widget_loop.
c3438661
JD
542 (xmenu_show): Call XMenuActivateSetWaitFunction so that
543 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 544 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 545 popup_get_selection.
f1d1cd24
JD
546 (pop_down_menu): New function.
547 (popup_get_selection, popup_widget_loop): Unwind protect to
548 pop_down_menu.
549 (popup_widget_loop): Add argument widget.
550 (create_and_show_popup_menu, create_and_show_dialog): Pass new
551 argument widget to popup_widget_loop.
c3438661 552
32e2fb04
SM
5532004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
554
555 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
556
0faf6806
KS
5572004-11-09 Kim F. Storm <storm@cua.dk>
558
559 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
560 Fix various comments referring to XEvents instead of input events.
561 (x_queue_event): Fix format strings.
562 (x_stop_queuing_selection_requests): Likewise.
563
564 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
565 (pint2hrstr): Add extra braces to silence compiler.
566
567 * print.c (print_object): Fix format string.
568
569 * lread.c (read1): Fix next_char matching.
570
571 * lisp.h (Fdelete): Add EXFUN.
572 (replace_range_2): Add prototype.
573
574 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
575
576 * intervals.h (NULL_INTERVAL_P): Add separate version when
577 ENABLE_CHECKING is not defined to silence compiler.
578 (compare_string_intervals): Add prototype.
579
580 * fringe.c (destroy_fringe_bitmap): Fix return type.
581 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
582
583 * emacs.c (Fdump_emacs): Fix format string.
584
585 * doc.c: Include <ctype.h>.
586 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
587
588 * data.c (store_symval_forwarding): Remove unused variables.
589
590 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
591
16bf4e32
JD
5922004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
593
594 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
595 to ${OLDXMENU}.
596
cdb805a9
KS
5972004-11-09 Kim F. Storm <storm@cua.dk>
598
599 * process.c (Fmake_network_process): Remove kludge for interrupted
600 connects on BSD. If connect is interrupted, just close socket and
601 start over rather than sleeping and retry with same socket.
602
d87a9ab8 6032004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 604
a8b16c80
JD
605 * .cvsignore: Add buildobj.lst.
606
d87a9ab8
JD
607 * doc.c: New variable Vbuild_files.
608 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
609 file names from buildobh.lst. Only attach docstrings from files
610 that are in Vbuild_files.
611 (syms_of_doc): Defvar Vbuild_files.
612
613 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
614 and w32*.o.
615 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 616 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
617
618 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
619 is linked.
620
b6709e77
KS
6212004-11-09 Kim F. Storm <storm@cua.dk>
622
623 * fringe.c (update_window_fringes): Update fringe bitmaps if
624 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
625 also update previous row to get rid of misc. artifacts.
626
bae9677d
KS
6272004-11-08 Kim F. Storm <storm@cua.dk>
628
629 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 630 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 631
3f8ea68c
EZ
6322004-11-08 Eli Zaretskii <eliz@gnu.org>
633
634 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
635 Don't include <sys/time.h> explicitly.
636 Include <stdio.h> unconditionally, not just on MacOS.
637
a653f812
KH
6382004-11-08 Kenichi Handa <handa@m17n.org>
639
640 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
641 don't pay attention to '\' before '*'.
642 (fontset_pattern_regexp): Change the meaning of the second arg.
643 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
644 (check_fontset_name): Try NAME as literal at first, and if it
645 failes, try NAME as pattern.
646
c37caf9d
JD
6472004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
648
649 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
650
b72915a7
AS
6512004-11-07 Andreas Schwab <schwab@suse.de>
652
78819ebb
KS
653 * lisp.h (Fmsdos_downcase_filename): Declare.
654 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
655 * fileio.c: Likewise.
656
238a44a8
JD
6572004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
658
659 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
660 comparisons with integers instead of Lisp_Object address.
661 (Fmsdos_set_keyboard): Declare argument allkeys.
662
663 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
664
78819ebb 665 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
666 int/Lisp_Object mixup.
667
668 * fileio.c: Ditto.
669
31141c13
ST
6702004-11-06 Steven Tamm <steventamm@mac.com>
671
672 * editfns.c: Need to include sys/time.h before resource.h on darwin.
673
f28c1bd9
RS
6742004-11-06 Richard M. Stallman <rms@gnu.org>
675
676 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
677
678 * xfaces.c (merge_named_face): GCPRO the face_name in the
679 named_merge_point struct that we make.
680 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
681
682 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
683 before deciding whether to inactivate mark.
684
59dede22
EZ
6852004-11-06 Lars Brinkhoff <lars@nocrew.org>
686
687 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
688 * editfns.c (Fget_internal_run_time): New function.
689 (syms_of_data): Defsubr it.
690 * fns.c (sxhash): As far as possible, merge calculation of
691 hash code for symbols and strings.
59dede22 692
27540e81
EZ
6932004-11-06 Eli Zaretskii <eliz@gnu.org>
694
695 * frame.c (syms_of_frame): Fix the example in the doc string.
696
df470e3b
JD
6972004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
698
699 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
700
701 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
702 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 703
4cc8522c
LT
7042004-11-05 Luc Teirlinck <teirllm@auburn.edu>
705
706 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
707
d4a42098
KS
7082004-11-05 Kim F. Storm <storm@cua.dk>
709
a8490886
KS
710 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
711
d4a42098
KS
712 * fileio.c (Ffile_modes): Doc fix.
713 (auto_save_1): Check for Ffile_modes nil value.
714
36a2b04c
KS
7152004-11-05 Kim F. Storm <storm@cua.dk>
716
717 * xselect.c (struct selection_event_queue, selection_queue)
718 (x_queue_selection_requests, x_queue_event)
719 (x_start_queuing_selection_requests)
720 (x_stop_queuing_selection_requests): Add new queue for selection
721 input events to replace previous XEvent queue in xterm.c.
722 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
723 (x_reply_selection_request): Adapt to new queue.
724 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
725 (x_handle_selection_request, x_handle_selection_clear): Make static.
726 (x_handle_selection_event): New function. May queue selection events.
727 (wait_for_property_change_unwind): Use save_value instead of cons.
728 Clear property_change_reply_object.
729 (wait_for_property_change): Abort if already waiting.
730 Use save_value instead of cons for unwind data.
731 (x_handle_property_notify): Skip events already arrived, but don't
732 free them, as "arrived" field is checked by wait_for_property_change,
733 and it will be freed by unwind or explicit unexpect_property_change.
734 (x_get_foreign_selection): Add to new queue.
735 (receive_incremental_selection): Don't unexpect wait_object when done
736 as it has already been freed by previous wait_for_property_change.
737
738 * xterm.h (x_start_queuing_selection_requests)
739 (x_stop_queuing_selection_requests, x_handle_selection_request)
740 (x_handle_selection_clear): Remove prototypes.
741 (x_handle_selection_event): Add prototype.
742
743 * xterm.c (handle_one_xevent): Don't queue X selection events
744 here, it may be too late if we start queuing after we have already
745 stored some selection events into the kbd buffer.
746 (struct selection_event_queue, queue, x_queue_selection_requests)
747 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
748 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
749 (x_catch_errors_unwind): Block input around final XSync.
750
751 * keyboard.h (kbd_buffer_unget_event): Add prototype.
752
753 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
754 (kbd_buffer_unget_event): New function.
755 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
756 and use x_handle_selection_event.
757 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
758
9c3ad9e1
JD
7592004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
760
761 * xselect.c (TRACE3): New debug macro.
762 (x_reply_selection_request): Use it.
763 (receive_incremental_selection): In call to TRACE0, the name of
764 a symbol is in xname.
765
a33b89de
KS
7662004-11-05 Kim F. Storm <storm@cua.dk>
767
768 * fontset.c (fontset_pattern_regexp): Use unsigned char.
769
a872928c
JD
7702004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
771
88208bb8
JD
772 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
773
78819ebb 774 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
775
776 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 777 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
778 * xfns.c (syms_of_xfns): ... to here.
779
a872928c
JD
780 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
781 it doesn't start with /.
782
b912921c
KH
7832004-11-04 Kenichi Handa <handa@m17n.org>
784
785 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
786 treat it as a literal character.
787
c524d9a6
KS
7882004-11-03 Kim F. Storm <storm@cua.dk>
789
790 * .gdbinit (ppt): New function.
791
8cfd0f36
JD
7922004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
793
a11e1dce
JD
794 * xterm.c (x_window_to_scroll_bar): Only call
795 xg_get_scroll_id_for_window if toolkit scroll bars are used.
796
8cfd0f36
JD
797 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
798 of save.
799
a93563fd
AS
8002004-11-02 Andreas Schwab <schwab@suse.de>
801
802 * window.c (Fscroll_right): Fix last change.
803
2b2d59d8
KS
8042004-11-02 Kim F. Storm <storm@cua.dk>
805
806 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
807
8082004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
809
810 * callproc.c (Fcall_process): Block input around vfork.
811
ca28104d
KS
8122004-11-02 Kim F. Storm <storm@cua.dk>
813
814 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
815 (syms_of_eval): Defsubr it.
816
29bb7127
RS
8172004-11-02 Richard M. Stallman <rms@gnu.org>
818
819 * insdel.c (replace_range_2): New function.
820
821 * casefiddle.c (casify_region): Handle changes in byte-length
822 using replace_range_2.
823
824 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
825
b6189c3b 826 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
827 Subtract 1 from pos when checking previous newline for invisibility.
828
829 * window.c (window_scroll_pixel_based): Update preserve_y
830 for header line if any.
831 (Fscroll_left, Fscroll_right): Don't call interactive_p;
832 use a new second argument instead.
833
834 * eval.c (Fcall_interactive_p): New function.
835 (interactive_p): Don't test INTERACTIVE here.
836 (Finteractive_p): Doc fix.
837
838 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
839
b6189c3b 8402004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
841
842 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 843 comparing font names.
a3fe4aaf 844
2a00cdb4
JD
8452004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
846
f9d64bb3
JD
847 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
848 Fx_file_dialog if only directories should be read.
849
850 * lisp.h: Fx_file_dialog takes 5 parameters.
851
32e2fb04
SM
852 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
853 Add parameter only_dir_p.
f9d64bb3
JD
854 In Motif version, don't put DEFAULT_FILENAME in filter part of the
855 dialog, just text field part. Do not add DEFAULT_FILENAME
856 to list of files if it isn't there.
857 In GTK version, pass only_dir_p parameter to xg_get_file_name.
858
32e2fb04
SM
859 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
860 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
861 a save dialog, add option kNavDontConfirmReplacement, change title
862 to "Enter name", change text for save button to "Ok".
863
32e2fb04
SM
864 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
865 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
866
867 * gtkutil.c (xg_get_file_with_chooser)
868 (xg_get_file_with_selection): New functions, only defined ifdef
869 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
870 respectively.
871 (xg_get_file_name): Add parameter only_dir_p.
872 Call xg_get_file_with_chooser or xg_get_file_with_selection
873 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
874 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
875
876 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
877
2a00cdb4
JD
878 * config.in: Rebuild (added HAVE_GTK_FILE_*).
879
f6749d5d
KS
8802004-11-01 Kim F. Storm <storm@cua.dk>
881
32e2fb04
SM
882 * process.c (connect_wait_mask, num_pending_connects):
883 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 884 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
885 (IF_NON_BLOCKING_CONNECT): New helper macro.
886 (wait_reading_process_output): Only declare and use local vars
887 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 888
1a99fe1a
JR
8892004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
890
891 * w32term.c (x_scroll_run): Delete region objects after use.
892
fcdb28b4
JD
8932004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
894
495ef86b
JD
895 * xmenu.c: Add prototypes for forward function declarations.
896 (popup_get_selection): Remove parameter do_timers, remove call to
897 timer_check.
32e2fb04
SM
898 (create_and_show_popup_menu, create_and_show_dialog):
899 Remove parameter do_timers from call to popup_get_selection.
495ef86b 900
12e6566a
JD
901 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
902 tool_bar_items and assign the result to f->tool_bar_items if
903 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
904 tool_bar_items to assignment of result.
905
fcdb28b4
JD
906 * atimer.c (alarm_signal_handler): Do not call set_alarm if
907 pending_atmers is non-zero.
908
1a1a0c4c
KS
9092004-10-31 Kim F. Storm <storm@cua.dk>
910
911 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
912
a36f1680
JW
9132004-10-28 Will <will@glozer.net>
914
915 * macterm.c: allow user to assign key modifiers to the Mac Option
916 key via a 'mac-option-modifier' variable.
917
32e2fb04 9182004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
919
920 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
921 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
922 (x_handle_selection_request, x_handle_selection_clear)
923 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
924
4f71c13f
RS
9252004-10-28 Richard M. Stallman <rms@gnu.org>
926
927 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
928
929 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
930
068f3848
SM
9312004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
934 comment-starter over a 1-char one.
935
4660a9e3
RS
9362004-10-27 Richard M. Stallman <rms@gnu.org>
937
938 * xdisp.c (get_next_display_element): In mode lines,
939 treat newline and tab like other control characters.
940
941 * editfns.c (Fmessage): Doc fix.
942
943 * indent.c (vmotion): When moving up, check the newline before.
944 Make prevline an int, not a Lisp_Object.
945
233f3db6
KS
9462004-10-27 Kim F. Storm <storm@cua.dk>
947
948 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
949 Only allocate info and discarded tables once.
950
951 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
952 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
953 (SAFE_FREE): Test it to determine if we need to unwind to free.
954 Remove size arg. All users changed.
955 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
956
1442465d
JD
9572004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
958
959 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
960 (xg_destroy_widgets): Rename from remove_from_container.
961 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
962 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
963 instead of remove_from_container.
964 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
965 (free_frame_tool_bar): Add comment.
966
967 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
968 is not NULL before strcmp.
969
c8636435
KS
9702004-10-26 Kim F. Storm <storm@cua.dk>
971
972 * callint.c (Fcall_interactively): Add 'U' code to get the
973 up-event discarded by a previous 'k' or 'K' argument.
974
5629f29b
DK
9752004-10-26 David Kastrup <dak@gnu.org>
976
977 * buffer.c (syms_of_buffer): Fix a few typos.
978
4f2f546e
JD
9792004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
980
981 * xsmfns.c: Put empty line between comment and function body.
982 Use two spaces before comment end.
983
fc1062f5
KH
9842004-10-25 Kenichi Handa <handa@m17n.org>
985
986 * fontset.c (fontset_pattern_regexp): Optimize for the case that
987 PATTERN is full XLFD.
988
be13f5e5
KH
9892004-10-24 Kenichi Handa <handa@m17n.org>
990
991 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
992
993 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
994 (regex_compile): Return REG_ERANGEX if appropriate.
995
d0ee2ed3
KH
9962004-10-22 Kenichi Handa <handa@m17n.org>
997
998 * editfns.c (Ftranslate_region_internal): New function.
999 (syms_of_editfns): Defsubr it.
1000
63ea8ea5
JD
10012004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1002
1003 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1004
c27ed90a
JD
10052004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1006
068f3848
SM
1007 * xterm.h (x_output): New member `xic_base_fontname'.
1008 (FRAME_XIC_BASE_FONTNAME): New macro.
1009 (xic_free_xfontset): Declare.
c27ed90a 1010
068f3848
SM
1011 * xfns.c (xic_create_xfontset): Share fontsets between frames
1012 based on base_fontname.
1013 (xic_free_xfontset): New function.
1014 (free_frame_xic): Use it.
1015 (xic_set_xfontset): Ditto.
c27ed90a 1016
068f3848 1017 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
1018
1019
59508699
JR
10202004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1021
1022 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1023
dede2792
JD
10242004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1025
3aca2078
JD
1026 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1027 XSync.
1028
dede2792
JD
1029 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1030 New variables and constant.
1031 (main): Calculate heap_bss_diff. If we are dumping and the
1032 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1033 and exec ourself again.
1034 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1035 print a warning.
1036
1037 * lastfile.c: Make my_endbss and my_endbss_static available on all
1038 platforms.
1039
1040 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1041 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1042
1dc5ba01
LT
10432004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1044
1045 * data.c (Flocal_variable_if_set_p): Doc fix.
1046
950090be
JR
10472004-10-19 Jason Rumney <jasonr@gnu.org>
1048
1049 * w32.c (init_environment): Set emacs_dir correctly when running
1050 emacs from the build directory.
1051
8550b998
RS
10522004-10-19 Richard M. Stallman <rms@gnu.org>
1053
1054 * editfns.c (Fdelete_and_extract_region):
1055 If region is empty, return null string.
1056
08dedea6
JD
10572004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1058
1dc5ba01 1059 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 1060 and canon_width.
068f3848 1061 (xg_frame_cleared): Remove.
08dedea6 1062
068f3848
SM
1063 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1064 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
1065 (xg_create_scroll_bar): Put an event box widget between
1066 the scroll bar widget and the edit widget.
1067 (xg_show_scroll_bar): Show the parent widget (the event box).
1068 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1069 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1070 Move the parent (the event box) widget inside the fixed widget.
1071 Move window clear to xterm.c.
1072
068f3848 1073 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 1074
08dedea6 1075 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
1076 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1077 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
1078 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1079
8550b998 10802004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
1081
1082 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 1083
84338890
JD
10842004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1085
1086 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1087 gdk_window_clear and move gdk_window_process_all_updates after
1088 clear so events are sent to the X server in correct order.
1089
6e1b0d8c
KH
10902004-10-18 Kenichi Handa <handa@m17n.org>
1091
1092 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1093 comparing font names.
8550b998 1094 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
1095 (list_fontsets): Likewise.
1096
1097 * search.c (fast_string_match_ignore_case): New function.
1098
1099 * lisp.h (fast_string_match_ignore_case): Extern it.
1100
345e75a8
KS
11012004-10-17 Kim F. Storm <storm@cua.dk>
1102
1103 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1104 than bitmap if there is not left fringe.
1105 (get_overlay_arrow_glyph_row): Also used on windows system.
1106 (display_line): Display overlay string if no left fringe.
1107
be13cbb7
JR
11082004-10-16 Jason Rumney <jasonr@gnu.org>
1109
1110 * w32fns.c (w32_font_match): Encode font name being matched.
1111
c2e2ede7
RS
11122004-10-16 Richard M. Stallman <rms@gnu.org>
1113
1114 * window.c (Fspecial_display_p): Doc fix.
1115
3584d95d
SM
11162004-10-15 Stefan <monnier@iro.umontreal.ca>
1117
1118 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1119 Don't ignore menus, because where-is-internal already does it for us.
1120
699a0392
KS
11212004-10-15 Kim F. Storm <storm@cua.dk>
1122
b3c7a89b
KS
1123 * xdisp.c (redisplay_window): Only update fringes and vertical
1124 border on window frames.
699a0392 1125
4e382b0f
AS
11262004-10-14 Andreas Schwab <schwab@suse.de>
1127
1128 * m/ia64.h (DATA_SEG_BITS): Don't define.
1129
329a7be2
KS
11302004-10-14 Kim F. Storm <storm@cua.dk>
1131
1132 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 1133 in some X versions.
329a7be2 1134
982241b1
SM
11352004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1136
1137 * fns.c (map_char_table): Add missing gcpros.
1138
9238467d
SM
11392004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1140
1141 * keymap.c (get_keymap): An autoload form is not a keymap.
1142
1143 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1144
4440e3ca
KS
11452004-10-13 Kim F. Storm <storm@cua.dk>
1146
7cfdabde
KS
1147 * callproc.c (Fcall_process): Simplify handling of display arg.
1148 Resume `display_on_the_fly' once a coding system is determined.
1149
4440e3ca
KS
1150 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1151
1c8dec6a
KS
11522004-10-12 Kim F. Storm <storm@cua.dk>
1153
1154 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1155 caller, such as call-process, is not going to poll for input.
1156 (calc_line_height_property): Handle case where it->object is nil.
1157
1158 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1159
170b174c
KH
11602004-10-12 Kenichi Handa <handa@m17n.org>
1161
9238467d
SM
1162 * xdisp.c (get_next_display_element):
1163 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
1164 chars in octal in unibyte buffer.
1165
b583964c
KS
11662004-10-12 Kim F. Storm <storm@cua.dk>
1167
1168 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1169 are no ordinary bindings.
1170
29fabd8c
JD
11712004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1172
9238467d 1173 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 1174
c3f4c690
ST
11752004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1176
9238467d
SM
1177 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1178 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 1179 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
1180 terminal frame.
1181 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1182 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
1183 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1184 Make a cancel file-open dialog be like C-g.
9238467d
SM
1185 * mac.c (mktime): Use emacs_mktime.
1186 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1187 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 1188
9688f9eb
KS
11892004-10-10 Kim F. Storm <storm@cua.dk>
1190
1191 * keyboard.c (timer_resume_idle): New function to resume idle
1192 timer without resetting timers on the idle list.
1193 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1194 (timer_start_idle, timer_stop_idle): Declare static.
1195 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1196
1197 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1198
f7f3a65f
ST
11992004-10-08 Steven Tamm <steventamm@mac.com>
1200
9238467d 1201 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 1202 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 1203 NULL where 0 should be used.
f7f3a65f
ST
1204 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1205 objc/malloc.h
9238467d 1206 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 1207
3c7d999a
KS
12082004-10-07 Kim F. Storm <storm@cua.dk>
1209
1210 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1211 windows. Update vertical line after drawing window fringes, but
1212 only if actually drawing any bitmaps--or there is no fringe.
1213
1214 * xterm.c (x_update_window_end): Likewise.
1215 * macterm.c (x_update_window_end): Likewise.
1216 * w32term.c (x_update_window_end): Likewise.
1217
1218 * fringe.c (draw_window_fringes): Return value now indicates if
1219 any fringe bitmaps were redrawn (or there are no fringes).
1220
1221 * dispextern.h (draw_window_fringes): Update prototype.
1222
bf06c82f
ST
12232004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1224
1225 * macfns.c (mac_get_window_bounds): Add extern.
1226 (x_real_positions): Use mac_get_window_bounds.
1227
1228 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1229 xmenu.c (YAILOM).
3c7d999a 1230
bf06c82f
ST
1231 * macterm.c [!MAC_OSX]: Include Windows.h.
1232 (front_emacs_window): Rename from mac_front_window. All uses
1233 changed. Return the frontmost non-tooltip emacs window.
1234 (mac_get_window_bounds): New function.
1235 (x_calc_absolute_position): Use the difference of width and height
1236 between the inner and outer window.
1237 (x_set_offset): Specify window position by the coordinae of the
1238 outer window. Adjust the position if the title bar is completely
1239 outside the screen.
1240 (app_is_suspended, app_sleep_time): Remove unused variables.
1241 (do_app_resume, do_app_suspend): Remove their contents because
1242 window-activate/deactivate events will do the job.
1243 (do_zoom_window): Remove unused variables. Make compliant to the
1244 standard way of zooming. Set f->left_pos and f->top_pos.
1245 (XTread_socket): Don't use argument `expected'. Don't use
1246 FrontWindow to determine the clicked window. Exclude unprocessed
1247 mouseUp cases in the early stage. Add parentheses to fix operator
1248 precedence.
1249 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1250
4cbbf6b7 12512004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
1252
1253 * config.in: Regenerate.
1254
1255 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1256 HAVE_EXECSHIELD.
1257
b90ee8b5
JD
12582004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1259
1260 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1261 a row if Alt or Meta has been found for that row. Also stop scanning
1262 for Keysyms for that row.
1263
904db1a2
KS
12642004-10-04 Kim F. Storm <storm@cua.dk>
1265
0207b8ad
KS
1266 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1267 to list. Include overlay arrow bitmap in return value.
1268
25f7220c
KS
1269 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1270 bars with fractional column width. If scroll bar separates two
1271 windows, move it towards the window it belongs to. Only update
1272 the padding area below the scroll bar widget when necessary,
1273 i.e. when scroll bar widget is created, moved, or resized.
1274
562020fe
KS
1275 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1276 while tracking/dragging mouse.
1277 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1278
37e34af7
KS
1279 * window.c (coordinates_in_window): Relax check for cursor
1280 on vertial border between mode lines.
1281 (Fset_window_fringes): Do not allow negative widths.
1282 (Fset_window_scroll_bars): Likewise.
1283
904db1a2
KS
1284 * .gdbinit (pp): Shorthand for p ARG + pr.
1285 (ff): New command: flush frame updates (X only).
1286
38fe4f64
MA
12872004-10-03 Michael Albinus <michael.albinus@gmx.de>
1288
1289 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1290
9de36315
KH
12912004-09-30 Kenichi Handa <handa@m17n.org>
1292
07c381ad 1293 * process.c (send_process): Free composition data.
9de36315 1294
07c381ad 1295 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
1296
1297 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
1298 compositions to encode.
1299 (encode_coding_string): Likewise. Free composition data.
1300
b6189c3b 13012004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
1302
1303 * coding.c (code_convert_region): Free composition data.
9de36315 1304
f2a54fbc
KS
13052004-09-29 Kim F. Storm <storm@cua.dk>
1306
dc5d6435
KS
1307 * fringe.c: Remove limit on number of bitmaps.
1308 (fringe_bitmaps, fringe_faces): Change to pointers.
1309 (max_fringe_bitmaps): New var.
1310 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1311 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1312
1313 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1314 (struct glyph_row): Reorder fringe_bitmap related fields.
1315 (struct it): Likewise.
1316
1317 * w32term.c (fringe_bmp): Change to pointer.
1318 (max_fringe_bmp): New var.
1319 (w32_define_fringe_bitmap): Expand fringe_bmp.
1320 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1321 (w32_destroy_fringe_bitmap): Likewise.
1322
13232004-09-29 Kim F. Storm <storm@cua.dk>
1324
1325 * fringe.c: Simplify last change.
f2a54fbc
KS
1326 (lookup_fringe_bitmap): New function.
1327 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1328 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1329 Keep standard bitmaps in Vfringe_bitmaps.
1330 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1331 (Fset_fringe_bitmap_face): Likewise.
1332
1333 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1334 (valid_fringe_bitmap_p): Remove prototype.
1335
1336 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1337
841a8bca
KS
13382004-09-29 Kim F. Storm <storm@cua.dk>
1339
1f2da365
KS
1340 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1341 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1342
841a8bca
KS
1343 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1344
1345 * fringe.c (Vfringe_bitmaps): New variable.
1346 (syms_of_fringe): DEFVAR_LISP it.
1347 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1348 Change arg to Lisp_Object and fail if not an integer.
1349 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1350 (destroy_fringe_bitmap): New functions.
9238467d
SM
1351 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1352 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
1353 clear its fringe property.
1354 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1355 Fdestroy_fringe_bitmap.
1356 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1357 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1358 and set fringe property. Signal error if no free slots.
1359 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1360 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1361
1362 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1363 symbols with a fringe property.
1364
4d965590
KS
13652004-09-27 Kim F. Storm <storm@cua.dk>
1366
1367 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1368 Doc fix. Format may now be a symbol or alist, not a cons.
1369
1370 * fringe.c (update_window_fringes): Handle new formats of
1371 indicate-buffer-boundaries (symbol or alist). No longer
1372 allow a simple cons.
1373 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1374
e888c2b3
JD
13752004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1376
9238467d 1377 * config.in: Rebuild.
e888c2b3 1378
83f1cb94
JD
13792004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1380
1381 * config.in: Rebuild.
1382
dd3b1d60 1383 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 1384
2c51754c
SM
13852004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1386
1387 * xterm.c (x_term_init): Work around a bug in some X servers.
1388
3df5f8aa
RS
13892004-09-18 Richard M. Stallman <rms@gnu.org>
1390
557ca2c1
RS
1391 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1392
3df5f8aa
RS
1393 * xdisp.c (try_window_reusing_current_matrix):
1394 Handle the case where we reach the old displayed text,
1395 out of sync with the old line boundary.
1396
9238467d 13972004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
1398
1399 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1400 narrowed buffer.
1401
bfa02563
KS
14022004-09-14 Kim F. Storm <storm@cua.dk>
1403
a25fe164
KS
1404 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1405
bfa02563
KS
1406 * xfaces.c (Qface_no_inherit): New var.
1407 (syms_of_xfaces): Intern and staticpro it.
1408 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1409 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1410 Don't increment face_change_count when face has non-nil
1411 face-no-inherit property.
1412
126f9c02
SM
14132004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1414
892a8eb5
SM
1415 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1416 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1417
126f9c02 1418 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 1419 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 1420
c0ad3b38
KS
14212004-09-12 Kim F. Storm <storm@cua.dk>
1422
1423 * editfns.c (Fformat): Handle format strings with multiple text
1424 properties. Reverse text property list from the format string,
1425 so the positions are in increasing order.
1426
844fc085
JD
14272004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1428
1429 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1430 x_uncatch_errors so that possible protocol errors are delivered.
1431
b106731c
EZ
14322004-09-10 Eli Zaretskii <eliz@gnu.org>
1433
21065c92
EZ
1434 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1435 blockinput.h.
1436 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1437 charset.h, and coding.h
9238467d 1438 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
1439 (term.o): Depend on window.h and keymap.h.
1440 (abbrev.o): Depend on syntax.h.
1441 (callint.o): Depend on keymap.h.
1442 (casefiddle.o): Depend on charset.h and keymap.h.
1443 (category.o): Depend on keymap.h.
1444 (coding.o): Depend on dispextern.h.
1445 (cmds.o): Depend on keyboard.h and keymap.h.
1446 (dispnew.o): Depend on indent.h and intervals.h.
1447 (doc.o): Depend on keymap.h.
1448 (editfns.o): Depend on frame.h.
1449 (emacs.o): Depend on dispextern.h.
1450 (fileio.o): Don't depend on ccl.h.
1451 (filelock.o): Depend on charset.h and coding.h.
1452 (frame.o): Depend on w32term.h and macterm.h.
1453 (insdel.o): Depend on region-cache.h.
1454 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1455 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1456 (search.o): Depend on $(INTERVALS_SRC).
1457 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1458 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1459 xterm.h, w32term.h, and macterm.h.
1460 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1461 w32term.h, and macterm.h.
1462 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1463 region-cache.h, xterm.h, w32term.h, and macterm.h.
1464 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1465 (data.o): Depend on frame.h.
1466 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1467 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1468 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1469 (intervals.o): Depend on keymap.h.
1470
9238467d
SM
1471 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1472 Add debugging print-out to termscript.
b106731c 1473
64b7122d
RS
14742004-09-09 Richard M. Stallman <rms@gnu.org>
1475
1476 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1477
5670531e
RS
14782004-09-08 Richard M. Stallman <rms@gnu.org>
1479
6cb4a892
RS
1480 * window.c (Fset_window_buffer): Doc fix.
1481
5670531e
RS
1482 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1483
7e388eb7
JL
14842004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1485
1486 * minibuf.c (history_delete_duplicates): New variable.
1487 (read_minibuf): Use it.
1488 (syms_of_minibuf): Create the corresponding lisp variable.
1489
370e3587
KS
14902004-09-08 Kim F. Storm <storm@cua.dk>
1491
1492 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1493 overlay just before point.
1494
f844ba4e
LT
14952004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1496
1497 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
1498 * buffer.c (reset_buffer, init_buffer_once):
1499 Handle auto_save_file_format field.
f844ba4e
LT
1500 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1501 `buffer-auto-save-file-format'.
f844ba4e
LT
1502 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1503 (build_annotations): Adapt to replacement of
1504 `auto-save-file-format' with the new buffer-local variable
1505 `buffer-auto-save-file-format'.
1506 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1507
f0f90717
JR
15082004-09-07 Jason Rumney <jasonr@gnu.org>
1509
1510 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1511
9238467d
SM
1512 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1513 Handle Unicode menu titles.
f0f90717 1514
4e14f66c
KS
15152004-09-07 Kim F. Storm <storm@cua.dk>
1516
1517 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1518 property from text property or overlay strings at point.
1519
9238467d 15202004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
1521
1522 * xmenu.c (update_submenu_strings): YAILOM.
1523 (set_frame_menubar): Make sure last_i is initialized.
1524
1f06d367
JR
15252004-09-03 Jason Rumney <jasonr@gnu.org>
1526
1806714a 1527 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
1528 (digest_single_submenu): Set lname and lkey in widget_value
1529 instead of name and key.
1530 (update_submenu_strings): New function.
1531 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1532 call update_submenu_strings.
1533
1534 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1535 (digest_single_submenu, w32_menu_show): Encode menu strings as
1536 UTF-8 if Unicode API is available.
1537 (utf8to16): New function.
1538 (add_menu_item): Use it when calling Unicode API.
1806714a 1539
46540080
KS
15402004-09-03 Kim F. Storm <storm@cua.dk>
1541
1542 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1543 in overlay or text-property strings; set cursor on corresponding
1544 glyph rather than at end of the string.
1545
9277ba61 15462004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 1547
9277ba61 1548 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
1549 set a new one before obtaining the global coordinate.
1550 Use FRAME_MAC_WINDOW.
1551 (x_set_name, x_set_title): Encode title to UTF8.
1552 Use SetWindowTitleWithCFString.
9277ba61
ST
1553 (Fx_server_version): Get correct OS version.
1554
1806714a
SM
1555 * macmenu.c (add_menu_item): Remove unused variable `i'.
1556 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
1557
1558 * macterm.c (x_update_end): Move SetPortWindowPort to inside
1559 BLOCK_INPUT.
1560 (x_set_offset): Use FRAME_MAC_WINDOW.
1561
1562 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
1563 nontext_cursor if it is on a scroll bar.
1564
1565 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
1566 Carbon support.
1806714a
SM
1567 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
1568 Use LIBS_CARBON.
9277ba61 1569
b10daec7
JD
15702004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1571
1572 * xfns.c (x_set_name_internal): New function. Check if we shall call
1573 xfree before ENCODE_UTF_8.
1574 (x_set_name, x_set_title): Call x_set_name_internal.
1575
f7e22385
JR
15762004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
1577
1578 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
1579 reload it.
1580
2bf436c3
JD
15812004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1582
1806714a 1583 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
1584 (single_submenu): Set lname and lkey in widget_value
1585 instead of name and key.
1586 (update_submenu_strings): New function.
1587 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1588 call update_submenu_strings.
1589
2bf436c3
JD
1590 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
1591 instead of name and key.
1592 (update_submenu_strings): New function.
1593 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 1594 call update_submenu_strings.
2bf436c3
JD
1595
1596 * gtkutil.h (_widget_value): Added lname and lkey.
1597
11715f92
ST
15982004-08-30 Steven Tamm <steventamm@mac.com>
1599
1600 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
1601 by using different names for inner loop variables.
1602
5500be54
JD
16032004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1604
059cd329
JD
1605 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
1606 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
1607
5500be54
JD
1608 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
1609 tool bar items is 0.
1610
383418e5
ST
16112004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1612
1613 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
1614 strings in menu items.
1615 (single_submenu): Use ENCODE_MENU_STRING
1616 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
1617 button release isn't passed to event loop
1618 (add_menu_item): Use SetMenuItemWithCFString
1619
6eb3ee72
ST
16202004-08-26 Steven Tamm <steventamm@mac.com>
1621
1622 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
1623 tool-bar/menu click
1624 * macfns.c (Fx_file_dialog): Implemented using NavServices
1625
10b43ac3
JD
16262004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1627
2728b5d0
JD
1628 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
1629
10b43ac3
JD
1630 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1631 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1632 (x_top_window_to_frame): Return 0 if wdesc is None.
1633
2ee3b79e
RS
16342004-08-22 Richard M. Stallman <rms@gnu.org>
1635
1636 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
1637 HAVE_TERMIOS]: If there's no char for this signal, drop through
1638 and use system calls.
1639
1640 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
1641
9a1ba2ea
KS
16422004-08-20 Kim F. Storm <storm@cua.dk>
1643
1644 * process.c (wait_reading_process_output): Rename from
1645 wait_reading_process_input. All uses changed.
1646 (wait_reading_process_output_1): Rename from
1647 wait_reading_process_input_1. All uses changed.
1648
1649 * dispnew.c (Fsleep_for): Remove obsolete code.
1650
295f3b30
KH
16512004-08-20 Kenichi Handa <handa@m17n.org>
1652
1653 * syntax.c (skip_chars): Fix for unibyte case.
1654
27615979
SM
16552004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1656
1657 * syntax.c (char_quoted): Mixup byte/char pos.
1658 (back_comment): Fixup globals in all cases.
1659
00267f94
JD
16602004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1661
1662 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
1663 passing it to gtk_window_set_title.
1664
2439909e
KS
16652004-08-19 Kim F. Storm <storm@cua.dk>
1666
6ba0f14c
KS
1667 * process.c (wait_reading_process_input): Clean up.
1668 Add wait_for_cell, wait_proc, and just_wait_proc args
1669 to avoid overloading `read_kbd' and `do_display' args.
1670 Change read_kbd arg to int. All callers changed.
1671
2439909e
KS
1672 * process.c (process_send_signal): Use CDISABLE.
1673
1674 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
1675
101c421e
KS
16762004-08-18 Kim F. Storm <storm@cua.dk>
1677
1678 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
1679 forward to wait_reading_process_input via DO_DISPLAY arg.
1680 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
1681 object, only process output from that process; also inhibit
1682 running timers if DO_DISPLAY==-2.
1683
c438dc33
KS
16842004-08-17 Kim F. Storm <storm@cua.dk>
1685
1686 * process.c (process_send_signal): Fix last change--use
1687 _POSIX_VDISABLE instead of CVDISABLE when available.
1688
8afc13c6
RS
16892004-08-16 Richard M. Stallman <rms@gnu.org>
1690
1691 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
1692 Set VQUIT and VINTR chars to the standard ones if they are unset.
1693 [AIX]: Don't do that here. And don't force VINTR to standard
1694 when SIGNALS_VIA_CHARACTERS.
1695
c438dc33 1696 * process.c (process_send_signal)
8afc13c6
RS
1697 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
1698 Do nothing if the character is CVDISABLE.
1699
1700 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
1701
c438dc33 1702 * intervals.c (move_if_not_intangible):
8afc13c6
RS
1703 Force POSITION to be between BEGV and ZV.
1704
6dad1714
JPW
17052004-08-14 John Paul Wallington <jpw@gnu.org>
1706
1707 * buffer.c (Frestore_buffer_modified_p): Doc fix.
1708
1709 * fileio.c (Fread_file_name): Doc fix.
1710
1711 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1712
2bd77330
LT
17132004-08-09 Luc Teirlinck <teirllm@auburn.edu>
1714
1715 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
1716
c90e7e43
LT
17172004-08-08 Luc Teirlinck <teirllm@auburn.edu>
1718
1719 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 1720 Qdisabled_command_hook.
c90e7e43 1721 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 1722 Qdisabled_command_hook.
c90e7e43
LT
1723 (syms_of_keyboard): Ditto.
1724
81909a1a
LT
17252004-08-07 Luc Teirlinck <teirllm@auburn.edu>
1726
1727 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
1728 (syms_of_keymap) <key-translation-map>: Doc fixes.
1729
0cedd530
SM
17302004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
1731
1725a7c9
SM
1732 * window.c (window_list_1): YAILOM.
1733
0cedd530
SM
1734 * fileio.c (make_temp_name): Handle multibyte prefixes.
1735
2515a131
LT
17362004-08-06 Luc Teirlinck <teirllm@auburn.edu>
1737
1738 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1739 Doc fix.
1740
c8b20fb7
KH
17412004-08-03 Kenichi Handa <handa@m17n.org>
1742
1743 * coding.c (decode_coding_string): Adjust coding->consumed, and
1744 etc. with shrinked_bytes.
1745
fb8b092b
KS
17462004-08-03 Kim F. Storm <storm@cua.dk>
1747
1748 * indent.c (compute_motion): Fix check for full width window
1749 in non-window case. Do not count left truncation glyph on
1750 window systems.
1751
df133612
LT
17522004-08-02 Luc Teirlinck <teirllm@auburn.edu>
1753
1754 * data.c (Finteractive_form): Doc fix.
1755
0f7a93c1
KS
17562004-08-02 Kim F. Storm <storm@cua.dk>
1757
1758 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
1759 properly accounting for continuation glyph on non-window systems.
1760 (Fcompute_motion): Use actual window width if WIDTH is nil, and
1761 actual window width/height if TOPOS is nil, properly accounting for
1762 continuation glyphs on non-window systems, and optional header lines.
1763 (vmotion): Let compute_motion calculate actual window width.
1764
1765 * window.c (window_scroll_line_based): Let compute_motion
1766 calculate actual window width.
1767
f491e1ed
KS
17682004-08-02 Kim F. Storm <storm@cua.dk>
1769
1770 * process.c (read_process_output): Use whole read buffer.
1771 Don't trigger adaptive read buffering on errors.
1772
83f64226
LT
17732004-07-31 Luc Teirlinck <teirllm@auburn.edu>
1774
1775 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
1776
1777 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
1778
1779 * callint.c (Fcall_interactively): Doc fix.
1780
8afc13c6
RS
17812004-07-30 Richard M. Stallman <rms@gnu.org>
1782
1783 * abbrev.c (Fexpand_abbrev): Undo previous change.
1784
7c111482
KS
17852004-07-30 Kim F. Storm <storm@cua.dk>
1786
1787 * editfns.c (Fformat): Allocate extra (dummy) element in info.
1788
ee945d08
LT
17892004-07-28 Luc Teirlinck <teirllm@auburn.edu>
1790
1791 * eval.c (Fdefvar, Fdefconst): Doc fixes.
1792
3f911c94
KS
17932004-07-27 Kim F. Storm <storm@cua.dk>
1794
1795 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
1796 we have ensured that the glyph fits on the current line (or returned
1797 MOVE_LINE_CONTINUED otherwise).
1798
f29ff8c7
KS
17992004-07-26 Kim F. Storm <storm@cua.dk>
1800
1801 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
1802 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
1803 if target position is at end of display line but char is not a newline.
1804
81159bb9
RS
18052004-07-25 Richard M. Stallman <rms@gnu.org>
1806
ab431b61
RS
1807 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
1808 instead of ON_VERTICAL_BORDER, when on scroll bar.
1809 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
1810
1811 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
1812
f29ff8c7 1813 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
1814 Take account of FRAME_INTERNAL_BORDER_WIDTH.
1815
1816 * alloc.c (check_cons_list): New function (contents commented out).
1817
fc820cc5
LT
18182004-07-24 Luc Teirlinck <teirllm@auburn.edu>
1819
1820 * xfaces.c (Fcolor_supported_p): Doc fix.
1821
1822 * frame.c (Fselect_frame, Fset_frame_selected_window)
1823 (Fframe_visible_p, Fraise_frame): Doc fixes.
1824
289978b5
LT
18252004-07-24 Richard M. Stallman <rms@gnu.org>
1826
78819ebb 1827 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
1828
1829 * fileio.c (Fwrite_region): Doc fix.
1830
1831 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
1832
1833 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
1834 only when a real abbrev is present.
1835
289978b5
LT
1836 * xfns.c (x_icon_verify): New function.
1837 (Fx_create_frame): Use it.
1838
63cc10ae
KS
18392004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
1840
1841 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
1842
36f826d4
KS
18432004-07-21 Kim F. Storm <storm@cua.dk>
1844
1845 * window.h (struct glyph_matrix): New members nrows_scale_factor
1846 and ncols_scale_factor.
1847
1848 * window.c (make_window): Initialize nrows_scale_factor and
1849 ncols_scale_factor members.
1850
1851 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
1852 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
1853 (required_matrix_height): Apply nrows_scale_factor.
1854 (required_matrix_width): Apply ncols_scale_factor.
1855
1856 * xdisp.c (display_line): Increment nrows_scale_factor and set
1857 fonts_changed_p if past last allocated row.
1858 (append_glyph, append_composite_glyph, produce_image_glyph)
1859 (append_stretch_glyph): Increment ncols_scale_factor and set
1860 fonts_changed_p if current area is full.
1861
5fc1c546
JD
18622004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1863
1864 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
1865
cb7516e5
LT
18662004-07-19 Luc Teirlinck <teirllm@auburn.edu>
1867
1868 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
1869 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
1870 (Fset_window_start, Fscroll_up, Fscroll_down)
1871 (Fother_window_for_scrolling, Fscroll_other_window)
1872 (Fsave_window_excursion, Fset_window_vscroll)
1873 (syms_of_window) <window-size-fixed>: Doc fixes.
1874
b6189c3b 18752004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
1876
1877 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
1878 ENCODE_SYSTEM for filenames.
1879
bfcf6608
ST
18802004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1881
1882 * mac.c (sys_select): Block input around call to
1883 ReceiveNextEvent to prevent breakage. Correctly handle
1884 blocking on event queue only by calling ReceiveNextEvent
1885 instead of select (since GUI events aren't on an fd).
1886 (sys_read): Remove function
1887 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
1888
e082ac9d
ST
18892004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1890
1891 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 1892 polling instead of 1 sec timeouts (like solaris).
e082ac9d 1893
cb7516e5 1894 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
1895 frame creation.
1896
1897 * keyboard.c: Undef SIGIO on Carbon
1898
1899 * atimer.c (alarm_signal_handler): Call alarm handlers after
1900 scheduling.
1901
1902 * eval.c (Feval): Remove quit_char test
1903
1904 * process.c (wait_reading_process_input): Remove clearing
1905 stdin for select call on process input.
1906
4b9da0fb
LT
19072004-07-18 Luc Teirlinck <teirllm@auburn.edu>
1908
1204e81c
LT
1909 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
1910 capitalization error in docstring.
4b9da0fb 1911
26503ad2
JB
19122004-07-17 Juanma Barranquero <lektu@terra.es>
1913
1914 * keyboard.c (not_single_kboard_state): Do nothing unless
1915 MULTI_KBOARD is defined.
1916
3751eb00
RS
19172004-07-17 Richard M. Stallman <rms@gnu.org>
1918
1919 * window.c (coordinates_in_window): Inside the window but outside
1920 its box to the L or R, return ON_VERTICAL_BORDER.
1921 (window_list_1): Rotate the list to start with WINDOW.
1922
1923 * print.c (print_preprocess): Test for print_depth at limit
1924 before entering in being_printed.
1925
1926 * keyboard.c (not_single_kboard_state): New function.
1927 (stuff_buffered_input): Now no-op only if no SIGTSTP.
1928
1929 * frame.c (Fdelete_frame): If we're in single_bboard_state on
1930 this kboard, and we delete its last frame, go to any_kboard_state.
1931
1932 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
1933
b6189c3b 19342004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
1935
1936 * w32fns.c (Fx_file_dialog): Encode strings in system coding
1937 system before passing them to OS functions for display.
1938
0f6af254
DK
19392004-07-15 David Kastrup <dak@gnu.org>
1940
f9253326
KS
1941 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
1942 Apparently fixes an abort condition.
0f6af254 1943
386c8f42
LT
19442004-07-14 Luc Teirlinck <teirllm@auburn.edu>
1945
1946 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
1947 instead of a cons.
1948
366511da
MB
19492004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
1950
1951 * keyboard.c (echo_dash): Do nothing if there already is a dash
1952 at the end of the echo string.
1953
f85409d3
KS
19542004-07-12 Kim F. Storm <storm@cua.dk>
1955
1956 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
1957 if GC_MARK_STACK.
1958
0ba2e87b
LT
19592004-07-10 Luc Teirlinck <teirllm@auburn.edu>
1960
da38045d
LT
1961 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
1962
0ba2e87b
LT
1963 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
1964 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
1965 (Freplace_buffer_in_windows, Fset_window_buffer)
1966 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
1967 (syms_of_window): Expand docstring of `display-buffer-function'.
1968
5668fbb8
LT
19692004-07-09 Luc Teirlinck <teirllm@auburn.edu>
1970
1971 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
1972 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
1973 that time values of the type (HIGH . LOW) are considered obsolete.
1974
a085bf9d
LT
19752004-07-06 Luc Teirlinck <teirllm@auburn.edu>
1976
669de2fb
LT
1977 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
1978 docstring.
1979
bac66325 1980 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 1981
8e975df9
JPW
19822004-07-06 John Paul Wallington <jpw@gnu.org>
1983
1984 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
1985
fa164e6a
JPW
1986 * fns.c (Fclear_string): Signal an error if STRING is not a string.
1987
2bac9bb1
JD
19882004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1989
1990 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
1991 instead of CGMainDisplayID (only in OSX 10.2 and later).
1992
316ef0dc
JPW
19932004-07-04 John Paul Wallington <jpw@gnu.org>
1994
1995 * fileio.c (read_file_name_completion_ignore_case): New variable.
1996 (syms_of_fileio): Declare and initialise it.
1997 (Fread_file_name): Bind `completion-ignore-case' to respect it.
1998
2a1a35c6
EZ
19992004-07-03 Eli Zaretskii <eliz@gnu.org>
2000
2001 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2002 for event.x and event.y.
2003
33a72331
KH
20042004-07-01 Kenichi Handa <handa@m17n.org>
2005
2006 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2007 after getting a new string by pre-write-conversion.
2008
9238467d 20092004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
2010
2011 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2012 (x_calc_absolute_position): Remove unused var `child'.
2013
2014 * xfaces.c (x_supports_face_attributes_p)
2015 (Fdisplay_supports_face_attributes_p): YAILOM.
2016 (tty_supports_face_attributes_p): Remove unused var `i'.
2017
2018 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2019 back_unibyte_ok.
2020
2021 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2022
2023 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2024
2025 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2026
f96ec754
AS
20272004-06-30 Andreas Schwab <schwab@suse.de>
2028
2029 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2030 (Finit_image_library): Pass LIBRARIES through to
2031 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2032 (lookup_image_type): Pass Qnil as second argument to
2033 Finit_image_library.
2034
78819ebb 2035 * lisp.h (Finit_image_library): Declare.
f96ec754 2036
59feca74 20372004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 2038
31983645
AS
2039 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2040 (XTread_socket): Send mouse button events to the toolbox
2041 dispatcher even when the mouse is grabbed. Don't process window
2042 activate events for non-Emacs windows. Replace function calls to
2043 do_window_activate and do_window_deactivate with their contents.
2044 Reset mouse grabbing status when a window is deactivated.
59feca74 2045
c61278bb
ST
20462004-06-29 Steven Tamm <steventamm@mac.com>
2047
2048 * macterm.c (mac_get_emulated_btn)
2049 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2050 support to correctly mask out modifiers.
2051
c3762cbd
DK
20522004-06-29 David Kastrup <dak@gnu.org>
2053
2054 * search.c (Fset_match_data): Allow buffer before end of list
2055 which can happen if set-match-data is using a pre-consed list.
2056
c61278bb 20572004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
2058
2059 * macterm.c (XTread_socket): Correctly set the frame position
2060 after the window is moved.
2061
74cdfe05
JD
20622004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2063
2064 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2065 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
2066 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2067 so insensitive and activated icons look ok.
74cdfe05 2068
ef544dc8
JR
20692004-06-27 Jason Rumney <jasonr@gnu.org>
2070
2071 * w32fns.c (file_dialog_callback): Disable edit control if set
2072 to directories only on CDN_INITDONE message.
2073 (Fx_file_dialog): Default to directories only when prompt starts
2074 with "Dired".
2075
7b7990cc
KS
20762004-06-25 Kim F. Storm <storm@cua.dk>
2077
2078 * alloc.c (allocate_misc): Update total_free_markers.
2079 (free_misc): New function.
2080 (safe_alloca_unwind, free_marker): Use it.
2081
2082 * lisp.h (free_misc): Add prototype.
2083
2084 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2085
d8c379f8
RS
20862004-06-24 Richard M. Stallman <rms@gnu.org>
2087
2088 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2089 (syms_of_emacs): Lisp variables deleted.
2090
559cdd07
DK
20912004-06-23 David Kastrup <dak@gnu.org>
2092
94939b84
DK
2093 * search.c (Freplace_match): Adjust the match-data more thoroughly
2094 when replacing strings in the buffer.
2095 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2096 a buffer, add the buffer as last element to the match data.
2097 (Fset_match_data): If an additional element of the match-data is a
2098 buffer, restore it to last_thing_searched.
c8d09ad8 2099 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
2100 (restore_match_data): Restore it again.
2101
dce417e7
LT
21022004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2103
2104 * keymap.c (Ftext_char_description): Doc fix.
2105 * doc.c (Fsnarf_documentation): Doc fix.
2106
ef54b2d0
KS
21072004-06-22 Kim F. Storm <storm@cua.dk>
2108
b5bc4d05
KS
2109 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2110
ef54b2d0
KS
2111 * lisp.h (struct Lisp_Save_Value): New member dogc.
2112 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2113 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2114 (SAFE_FREE_LISP): New macro.
2115
2116 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2117 (make_save_value): Init new dogc member.
2118 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2119
2120 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2121 SAFE_FREE_LISP macros.
2122
3d33d993
KS
21232004-06-22 Kim F. Storm <storm@cua.dk>
2124
2125 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2126 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2127 in that memory area are unknown to GC. Add comments.
2128
2129 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2130
5c917f98
KS
21312004-06-21 Kim F. Storm <storm@cua.dk>
2132
2133 * lisp.h (MAX_ALLOCA): Define here.
2134 (safe_alloca_unwind): Add prototype.
2135 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2136
2137 * alloc.c (safe_alloca_unwind): New function.
2138
2139 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2140
2141 * charset.c (Fstring): Use SAFE_ALLOCA.
2142
2143 * coding.c (MAX_ALLOCA): Remove define.
2144
2145 * data.c (MAX_ALLOCA): Remove define.
2146 (Faset): Use SAFE_ALLOCA.
2147
2148 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2149
2150 * fns.c (string_make_multibyte, string_to_multibyte)
2151 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2152 (MAX_ALLOCA): Remove define.
2153 (Fbase64_encode_region, Fbase64_encode_string)
2154 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2155 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2156 memory leak if encoding fails.
2157
2158 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2159
9a09408e
EZ
21602004-06-21 Eli Zaretskii <eliz@gnu.org>
2161
2162 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2163
376de739
RS
21642004-06-20 Richard M. Stallman <rms@gnu.org>
2165
2166 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2167
2168 * search.c (match_limit): Cleaner err msg when no match data available.
2169
2170 * window.c (syms_of_window): Doc fix.
2171
2172 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2173 for Vtransient_mark_mode.
2174
2175 * buffer.c (syms_of_buffer): Doc fix.
2176
acd81db9
DK
21772004-06-21 David Kastrup <dak@gnu.org>
2178
2179 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2180 and unbinding of `case-fold-search' according to
2181 `completion-ignore-case' around calls of string-match and
2182 predicates, respectively. Should give satisfactory performance
2183 in all relevant cases.
2184
f303762d
JD
21852004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2186
95911c74
JD
2187 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2188 clip_x/y_origin.
2189
a6cb6b78
JD
2190 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2191
f303762d
JD
2192 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2193
2194 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2195 on Mac OSX.
2196
bbdb2684
LT
21972004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2198
2199 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2200
5ea48b1c
KS
22012004-06-16 Kim F. Storm <storm@cua.dk>
2202
2203 * dispextern.h (Vimage_types): Remove extern.
2204
803aac3e
MB
22052004-06-16 Miles Bader <miles@gnu.org>
2206
2207 * image.c (lookup_image_type): Initialize image type if necessary.
2208
cdc97764
KS
22092004-06-15 Kim F. Storm <storm@cua.dk>
2210
c4a5739c
KS
2211 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2212 margin at top of window.
2213 (try_window_reusing_current_matrix): Calculate proper cursor position
2214 after scrolling up with non-zero scroll margin, as the old cursor
2215 position corresponds to value of PT before executing this command.
2216 (try_window_id): Consider scroll margin at bottom of window too;
2217 otherwise we fail to scroll when hl-line-mode is enabled.
2218
cdc97764
KS
2219 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2220 proper format and class is a lower-case word.
2221
5b166323
JD
22222004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2223
2224 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 2225 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
2226 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2227 xg_get_gdk_pixmap_and_mask.
cdc97764 2228
5b166323
JD
2229 * xterm.h (struct x_display_info): Typo in comment fixed.
2230
1ebd4f78
JB
22312004-06-14 Juanma Barranquero <lektu@terra.es>
2232
2233 * dispextern.h (Vimage_types): Make it conditional on
2234 HAVE_WINDOW_SYSTEM.
2235
2236 * image.c (Vimage_types): Move from xdisp.c.
2237 (Vimage_type_cache): New variable.
2238 (define_image_type): New argument indicating whether an image
2239 library was loaded; cache loaded status and return t on success,
2240 nil otherwise.
2241 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2242 (w32_delayed_load): New function to load an image library from a
2243 list of possible filenames.
2244 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2245 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 2246 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
2247 (Finit_image_library): New function, extracted from `init_image'.
2248 Try to initialize an image library on demand and cache whether we
2249 were successful or not.
2250 (syms_of_image): Initialize `Vimage_types' and
2251 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2252 Export `init-image-library'.
2253 (init_image): Remove initialization of all image types, except xbm
2254 and pbm.
2255
2256 * xdisp.c (Vimage_types): Delete (moved to image.c).
2257
904ee128
AS
22582004-06-14 Andreas Schwab <schwab@suse.de>
2259
2260 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2261 Avoid calling specbind when completion-regexp-list is empty.
2262
092de21d
RS
22632004-06-13 Richard M. Stallman <rms@gnu.org>
2264
2265 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2266 (re_wctype, re_iswctype, re_wctype_to_bit):
2267 Non-function definitions moved here from regex.c.
1ebd4f78 2268
092de21d
RS
2269 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2270 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2271 (re_wctype, re_iswctype, re_wctype_to_bit):
2272 Non-function definitions moved to regex.h.
2273
2274 * window.c (Fselect_window): Doc fix.
2275
2276 * syntax.c: Include regex.h.
2277 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2278 If requested, make a list of classes, then check the scanned
2279 chars for membership in them.
2280 (in_classes): New function.
2281 Doc fix.
2282
2283 * keyboard.c (cmd_error): Don't call any_kboard_state
2284 if inside a recursive edit level.
2285
22862004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2287
2288 * keyboard.c (command_loop): Call any_kboard_state before
2289 command_loop_2 when at top level.
2290
3ebc0939
AS
22912004-06-13 Andreas Schwab <schwab@suse.de>
2292
cea5d0d4
AS
2293 * print.c (print_object): Always use %ld for printing EMACS_INT.
2294
2295 * keyboard.c (cancel_hourglass_unwind): Return a value.
2296 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2297 (Fexecute_extended_command): Likewise.
2298
2299 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2300 avoid clashes.
2301 (SYNTAX): Likewise.
2302 (SYNTAX_WITH_FLAGS): Likewise.
2303 (SYNTAX_MATCH): Likewise.
2304
2305 * syntax.c (char_quoted): Avoid warning about undefined operation.
2306 (find_defun_start): Likewise.
2307 (scan_lists): Likewise.
2308 (INC_FROM): Likewise.
2309 (scan_sexps_forward): Likewise.
2310
be8c4ce4
AS
2311 * image.c: Include <ctype.h>.
2312
3ebc0939
AS
2313 * xfaces.c (face_attr_equal_p): Declare parameters.
2314
6fb41b5b
KH
23152004-06-13 Kenichi Handa <handa@m17n.org>
2316
2317 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2318
fc3095ce
EZ
23192004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2320
2321 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2322
66189a40
KH
23232004-06-12 Kenichi Handa <handa@m17n.org>
2324
2325 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2326 ccl_prog_stack_struct and update it.
2327 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2328 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2329 ccl->eof_ic on EOF.
2330 (ccl_debug_hook): New function.
2331 (struct ccl_prog_stack): New member eof_ic.
2332 (ccl_driver): Handle EOF in subrountine call correctly.
2333
23342004-06-11 Kenichi Handa <handa@m17n.org>
2335
2336 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2337
1da71023
KS
23382004-06-11 Kim F. Storm <storm@cua.dk>
2339
2340 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2341
e9efcef4
JB
23422004-06-11 Juanma Barranquero <lektu@terra.es>
2343
2344 * keyboard.c (Fposn_at_point): Doc fix.
2345
9b9ceb61
DK
23462004-06-11 David Kastrup <dak@gnu.org>
2347
2348 * search.c (match_limit): Don't flag an error if match-data
2349 exceeding the allocated search_regs.num_regs gets requested, just
2350 return Qnil.
2351
6e87ac8f
MB
23522004-06-08 Miles Bader <miles@gnu.org>
2353
2354 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2355
0b0dea7b
JB
23562004-06-07 Juanma Barranquero <lektu@terra.es>
2357
2358 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2359 (Fcurrent_time_string, Fcurrent_time_zone)
2360 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2361
a0a23346
MB
23622004-06-07 Miles Bader <miles@gnu.org>
2363
08384afd 2364 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
2365 (push_named_merge_point): New function.
2366 (merge_named_face): New function.
2367 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2368 Use `merge_named_face'.
2369 (merge_face_inheritance): Function removed.
c8d09ad8 2370 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
2371 Add new `err_msgs' and `named_merge_points' args. Return error
2372 status. Only print error messages if ERR_MSGS is true. Don't try to
2373 do :inherit attribute validation.
2374 (merge_face_heights): Handle `unspecified' in both directions.
2375 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2376 Call `merge_face_ref' instead of `merge_face_inheritance'.
2377 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2378 (compute_char_face, face_at_buffer_position)
2379 (face_at_string_position): Call `merge_face_ref' instead of
2380 `merge_face_vector_with_property'.
2381
12d5b185
KH
23822004-06-07 Kenichi Handa <handa@m17n.org>
2383
2384 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2385 the necessary places.
2386
2e2d7ee6
KS
23872004-06-07 Kim F. Storm <storm@cua.dk>
2388
2389 * process.c (Fdelete_process): Undo 2004-05-28 change.
2390 Instead, call status_notify also for network process.
2391 (status_message): Use process instead of status as arg.
2392 Give messages "deleted" or "connection broken by remote peer" for
2393 an exited network process.
2394 (status_notify): Change call to status_message.
2395 (read_process_output): Increase readmax to 4096. Do not increase
2396 buffer size for datagram channels (default is now large enough).
2397
fcf0d299
ST
23982004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2399
2400 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2401 problem due to newly defined variable.
2402
0722292b
MB
24032004-06-06 Miles Bader <miles@gnu.org>
2404
2405 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2406 immediately if non-interactive or not initialized.
2407
ddfb8369
RS
24082004-06-05 Richard M. Stallman <rms@gnu.org>
2409
2410 * minibuf.c (Fcompleting_read): Doc fix.
2411
57015754
AS
24122004-06-05 Andreas Schwab <schwab@suse.de>
2413
2414 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2415
23715ea6
JB
24162004-06-05 Juanma Barranquero <lektu@terra.es>
2417
2418 * keymap.c (Fdescribe_vector): Fix docstring.
2419 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2420
8e330b22
MB
24212004-06-05 Miles Bader <miles@gnu.org>
2422
2423 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2424 attributes have different values than the default face.
2425
9742a3a6
EZ
24262004-06-04 Eli Zaretskii <eliz@gnu.org>
2427
2428 * xfaces.c (x_supports_face_attributes_p): Make this function
2429 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
2430 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2431 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 2432
9717e36c
MB
24332004-06-04 Miles Bader <miles@gnu.org>
2434
2435 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2436 from Ftty_supports_face_attributes_p.
2437 (x_supports_face_attributes_p): New function.
2438 (Ftty_supports_face_attributes_p): Function deleted.
2439 (Fdisplay_supports_face_attributes_p): New function.
2440 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 2441 (face_attr_equal_p): New function.
9717e36c
MB
2442 (lface_equal_p): Use it.
2443
52deb19f
JB
24442004-06-03 Juanma Barranquero <lektu@terra.es>
2445
2446 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2447 (Vw32_color_map): Fix typo in docstring.
2448 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2449 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2450 Make argument names match their use in docstring.
2451
86d373e6
JB
24522004-06-02 Juanma Barranquero <lektu@terra.es>
2453
2454 Work around bugs/problems with MinGW builds of graphics libraries
2455 called from MSVC builds of Emacs.
2456
2457 * image.c (lookup_image): Make pointer to img static.
2458 (png_read_from_memory): Disable "global" optimization.
2459
2fb0ce67
SM
24602004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2461
c8d09ad8
SM
2462 * eval.c (Fcondition_case): Fix usage. Simplify.
2463
2fb0ce67
SM
2464 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2465
50bf7673
ST
24662004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2467
2468 * macfns.c: Don't include ccl.h.
2469 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
2470 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2471 TextUtils.h.
c8d09ad8 2472 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
2473 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2474 display height/width.
2475 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2476 (unwind_create_tip_frame, compute_tip_xy): New functions.
2477 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2478 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2479 and last_show_tip_args.
2fb0ce67 2480
50bf7673
ST
2481 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2482 (Cursor, No_Cursor): New defines.
c8d09ad8 2483 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
2484 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2485
2486 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2487
2488 * macterm.c: Don't include Gestalt.h.
2489 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2490 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2491 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2492 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2493 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2494 (construct_mouse_click, XTmouse_position)
2495 (x_scroll_bar_report_motion, x_calc_absolute_position)
2496 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2497 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2498 (note_mouse_movement): Clear the mouse face and reset the pointer
2499 shape when the pointer goes outside the frame without grabbing.
2500 (mac_front_window): New function.
2501 (mac_window_to_frame): New macro.
2502 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2503 (do_window_activate, do_window_deactivate, do_app_resume)
2504 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2505 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2506 (mac_check_for_quit_char): Use mac_front_window and/or
2507 mac_window_to_frame.
2508 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2509 scroll-bar click event.
2510 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 2511 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 2512 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 2513 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
2514 (do_window_update): Don't do anything if the updated window is the
2515 tooltip window.
2516 (do_mouse_moved): Handle mouse movement events here (previously in
2517 XTread_socket). Clear the mouse face if
2518 dpyinfo->mouse_face_hidden is set.
2519 (do_os_event, do_events): Remove (now in XTread_socket).
2520 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
2521 Loop until all the events in the queue are processed.
2522 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
2523 contents of do_os_event and do_events. Remove mouse movement
2524 handling (now in do_mouse_moved). Add the case where
2525 Vmouse_highlight has an integer value.
2526 (NewMacWindow): Remove.
2527 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2528 excess initializations.
2529 (make_mac_terminal_frame): Previous initializations in
2530 make_mac_frame are moved here.
c8d09ad8
SM
2531 (mac_initialize_display_info):
2532 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
2533
2534 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2535 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2536
08fd1251
RS
25372004-05-29 Richard M. Stallman <rms@gnu.org>
2538
2539 * lisp.h (truncate_undo_list): Update decl.
2540
2541 * alloc.c (undo_outer_limit): New variable.
2542 (syms_of_alloc): Defvar it.
2543 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2544
2545 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2546
2547 * alloc.c (lisp_align_malloc): Check for base == 0
2548 regardless of HAVE_POSIX_MEMALIGN.
2549 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2550
227ef0ff
SM
25512004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2552
2553 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
2554 (marker_blocks_pending_free): Remove.
2555 (Fgarbage_collect): Sweep after cleaning up undo-lists.
2556 Mark the undo lists after claning them up.
2557 Don't free block in marker_blocks_pending_free.
2558 (mark_buffer): Don't mark undo_list.
2559 (gc_sweep): Sweep hash-tables and strings first.
2560 Do free marker blocks that are empty.
2561
034a6113
SM
25622004-05-28 Jim Blandy <jimb@redhat.com>
2563
2564 * regex.c (print_partial_compiled_pattern): Add missing 'break'
2565 after 'case wordend'. For symbeg and symend, print to stderr,
2566 like the other cases.
2567
33594a8d
NF
25682004-05-28 Noah Friedman <friedman@splode.com>
2569
2570 * process.c (Fdelete_process): Do not call remove_process.
2571
ce50a847
SM
25722004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2573
2574 * alloc.c (struct backtrace): Remove.
2575 (Fgarbage_collect): Use the new mark_backtrace.
2576
2577 * eval.c (mark_backtrace): New function.
2578
2579 * minibuf.c (run_exit_minibuf_hook): New function.
2580 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
2581 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
2582
1e8dae36
KS
25832004-05-27 Kim F. Storm <storm@cua.dk>
2584
2585 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
2586 over display properties, e.g. images, that replace buffer text.
2587
846faa3b
KS
25882004-05-25 Kim F. Storm <storm@cua.dk>
2589
2590 * alloc.c (marker_blocks_pending_free): New var.
2591 (gc_sweep): Store free marker blocks on that list.
2592 (Fgarbage_collect): Free them after undo-list cleanup.
2593
2594 * process.c (wait_reading_process_input): Check connect_wait_mask
2595 before actually accepting connection in case it has already been
2596 accepted due to recursion.
2597
b6189c3b 25982004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 2599
ce50a847
SM
2600 * coding.c (Fset_safe_terminal_coding_system_internal):
2601 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 2602
71d5a208
RS
26032004-05-22 Richard M. Stallman <rms@gnu.org>
2604
2605 * alloc.c (Fmake_string): Doc fix.
2606
2607 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
2608 and the alist pairs too.
2609
2610 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
2611
2612 * emacs.c (main): Update copyright year.
2613
2614 * fileio.c (Fread_file_name): Expand DIR if not absolute.
2615
2616 * insdel.c (del_range_2, replace_range): Don't write an anchor
2617 if the gap is empty.
2618
2619 * xdisp.c (try_scrolling): If scroll-up-aggressively or
2620 scroll-down-aggressively is small but positive, put point
2621 near the screen edge.
2622
f63fd14e
JB
26232004-05-22 Juanma Barranquero <lektu@terra.es>
2624
2625 * keymap.c (Fdefine_key): Doc fix.
2626
4d12067c
KS
26272004-05-22 Kim F. Storm <storm@cua.dk>
2628
2629 * alloc.c (struct backtrace): Add debug_on_exit member.
2630 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
2631 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
2632 the removed cons cells.
2633 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
2634 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
2635 any cons cells pointing to unallocated stings.
2636 Do not lisp_free any marker blocks, as there may still be pointers
2637 to them from buffer undo lists at this stage of GC.
2638
2639 * keyboard.c (struct backtrace): Add debug_on_exit member.
2640 (Fcommand_execute): Clear it.
2641
931285e2
LT
26422004-05-20 Luc Teirlinck <teirllm@auburn.edu>
2643
2644 * intervals.c (lookup_char_property): Do not prematurely return nil.
2645
669fa600
SM
26462004-05-19 Jim Blandy <jimb@redhat.com>
2647
2648 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 2649 beginning and end of symbols.
4d12067c 2650
669fa600
SM
2651 * regex.c (enum syntaxcode): Add Ssymbol.
2652 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
2653 (re_opcode_t): New opcodes `symbeg' and `symend'.
2654 (print_partial_compiled_pattern): Print the new opcodes properly.
2655 (regex_compile): Parse the new operators.
ce50a847 2656 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
2657 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
2658 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
2659 (re_match_2_internal): Match symbeg and symend.
2660
2661 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
2662
0d8c2e5c
KS
26632004-05-19 Kim F. Storm <storm@cua.dk>
2664
2665 * .gdbinit (xsymbol): Fix last change.
2666
669fa600
SM
26672004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
2668
2669 * .gdbinit (xprintstr): New fun.
2670 (xstring, xprintsym): Use it.
2671
2672 * w32proc.c (create_child): Use INTMASK.
2673
2674 * alloc.c (Fgarbage_collect): Do all the marking before flushing
2675 unmarked elements of the undo list.
2676
9a6a4c40
DP
26772004-05-18 David Ponce <david@dponce.com>
2678
2679 * print.c (print): Reset print_depth before to call print_object.
2680
f3c4ec74
JR
26812004-05-18 Jason Rumney <jasonr@gnu.org>
2682
2683 * w32console.c: Prefix RIF functions with w32con_ to avoid
2684 namespace clash with functions in term.c and w32term.c.
2685
2686 * w32menu.c (add_menu_item, w32_menu_display_help)
2687 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
2688
0d8c2e5c 2689 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 2690
6be49c3a
EZ
26912004-05-18 Eli Zaretskii <eliz@gnu.org>
2692
4d0b9a0a
EZ
2693 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
2694
6be49c3a
EZ
2695 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
2696 with make_number.
2697 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
2698 with XINT.
2699
0bc90bba
KS
27002004-05-18 Kim F. Storm <storm@cua.dk>
2701
89d19988
KS
2702 * blockinput.h (INPUT_BLOCKED_P): New macros.
2703
2704 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
2705 (Ftop_level): Unblock input if blocked.
2706
0bc90bba
KS
2707 * buffer.h (GET_OVERLAYS_AT): New macro.
2708 * msdos.c (IT_note_mouse_highlight): Use it.
2709 * textprop.c (get_char_property_and_overlay): Use it.
2710 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
2711 * xfaces.c (face_at_buffer_position): Use it.
2712
2713 * print.c (print_object): Increase buf size.
2714
653bd0f6
JR
27152004-05-17 Jason Rumney <jasonr@gnu.org>
2716
2717 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
2718 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
2719 Lisp_Object using i member.
2720 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
2721 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
2722 consistently.
2723
2724 * w32proc.c (create_child): Use make_number instead of masking pid.
2725
2726 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
2727 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
2728 Use EQ to compare Lisp_Objects.
2729 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
2730
2731 * w32term.c (w32_num_mouse_buttons): Rename from
2732 Vw32_num_mouse_buttons and make it an int.
2733
2734 * w32.c (init_environment): Use it.
2735
2736 * w32fns.c (w32_wnd_proc): Likewise.
2737
2738 * w32proc.c (w32_pipe_read_delay): Rename from
2739 Vw32_pipe_read_delay and make it an int.
2740
2741 * w32.c (_sys_read_ahead): Use it.
2742
2743 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
2744
2745 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
2746
2747 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
2748 (key_event): Don't mix Lisp_Object and int.
2749
2750 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
2751
2752 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
2753 modifiers in language change event.
2754
54b53ba7
KS
27552004-05-17 Kim F. Storm <storm@cua.dk>
2756
2757 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
2758 Such objects may be freed markers which still exist on an undo list.
2759
6e86a75d
JB
27602004-05-16 Juanma Barranquero <lektu@terra.es>
2761
2762 * data.c (Fset_default): Make argument names match their use in
2763 docstring.
2764
fc80da24
AS
27652004-05-15 Andreas Schwab <schwab@suse.de>
2766
2767 * emacs.c (gdb_array_mark_flag): Define.
2768 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
2769
c1380aa6
EZ
27702004-05-15 Eli Zaretskii <eliz@gnu.org>
2771
2772 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
2773 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
2774 defined for the MS-DOS build.
2775
89458937
SM
27762004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2777
2778 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
2779
08020f9a
KH
27802004-05-14 Kenichi Handa <handa@m17n.org>
2781
2782 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
2783
a433994a
ST
27842004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2785
2786 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
2787 section to frame.c section.
2788 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 2789 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 2790
a433994a 2791 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 2792
a433994a 2793 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 2794
a433994a
ST
2795 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
2796 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
2797 (XTread_socket): Fix int/Lisp_Object mixup.
2798 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 2799
a433994a
ST
2800 * macterm.h (struct frame, struct face, struct image)
2801 (display_x_get_resource, Fx_display_color_p)
89458937
SM
2802 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
2803 Add prototypes.
a433994a 2804
b51a51b9
KS
28052004-05-14 Kim F. Storm <storm@cua.dk>
2806
2807 * process.c (wait_reading_process_input): Make reentrant.
2808 Make Available and Connecting non-static. Save and restore value
2809 of waiting_for_user_input_p.
2810
2bde1dd8
KS
28112004-05-13 Kim F. Storm <storm@cua.dk>
2812
2813 * keyboard.c (mark_kboards): Don't mark x and y members
2814 that are overloaded in selection request events.
2815
a267ab4d
SM
28162004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2817
2818 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
2819
eb15ce9e
GM
28202004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
2821
2822 * window.c (Fdisplay_buffer, Fsplit_window)
2823 (split-height-threshold): Doc fix.
2824
7fc92635
JB
28252004-05-13 Juanma Barranquero <lektu@terra.es>
2826
2827 * xfaces.c (Ftty_supports_face_attributes_p)
2828 (Finternal_copy_lisp_face): Fix typo in docstring.
2829 (Finternal_get_lisp_face_attribute): Fix docstring.
2830
1ec2a572
JD
28312004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2832
2833 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
2834
ae9292e0
ST
28352004-05-11 Steven Tamm <steventamm@mac.com>
2836
2837 * macfns.c (Fx_create_frame): Default to using tool-bar by
2838 setting tool-bar-lines to 1 in default-frame-alist.
2839
28402004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
2841
2842 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
2843 (xpm_get_color_table_v, xpm_make_color_table_h)
2844 (xpm_put_color_table_h, xpm_get_color_table_h)
2845 (xpm_str_to_color_key, xpm_load_image, xpm_load)
2846 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 2847 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 2848
fe97e8df
ST
28492004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2850
a267ab4d 2851 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
2852 instead of FRAME_X_P
2853
b47e779e
KS
28542004-05-11 Kim F. Storm <storm@cua.dk>
2855
2856 * process.c (read_process_output): Grow decoding_buf when needed;
2857 this could cause a crash in allocate_string and compact_small_strings.
2858
cdc9b845
EZ
28592004-04-29 Jim Blandy <jimb@redhat.com>
2860
2861 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
2862 against proper opcode.
2863
aa7094ba
JB
28642004-05-10 Juanma Barranquero <lektu@terra.es>
2865
2866 * process.c (Fstart_process): Fix docstring.
2867
2868 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
2869 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
2870 (Fsplit_char, Fchar_charset): Make argument names match their use
2871 in docstring.
2872
e109331a
RS
28732004-05-10 Richard M. Stallman <rms@gnu.org>
2874
2875 * print.c (print_preprocess): Use being_printed, loop_count and
2876 halftail to detect overdeep nesting and cyclic cdr chains.
2877
9a28b921
AS
28782004-05-10 Andreas Schwab <schwab@suse.de>
2879
78819ebb 2880 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
2881
2882 * fileio.c (Frename_file): Remove extra argument in call to
2883 Fmake_symbolic_link.
2884
e2c02c1a
KS
28852004-05-10 Kim F. Storm <storm@cua.dk>
2886
2887 * xdisp.c (calc_line_height_property): Use string position when
2888 object is a string.
2889
cfe9d13e
KH
28902004-05-10 Kenichi Handa <handa@m17n.org>
2891
a57e8159
KH
2892 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
2893 inhibit-modification-hooks to t temporarily before calling
2894 Ferase_buffer.
2895
2896 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
2897 inhibit-modification-hooks to t temporarily before calling
2898 Ferase_buffer.
2899
2900 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
2901 inhibit-modification-hooks to t temporarily before calling
2902 Ferase_buffer.
2903
cfe9d13e
KH
2904 * fns.c (count_combining): Delete it.
2905 (concat): Don't check combining bytes.
2906
ceb96489
JR
29072004-05-09 Jason Rumney <jasonr@gnu.org>
2908
2909 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
2910 (globals_of_w32fns): Set it.
2911
b6189c3b 29122004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
2913
2914 * data.c (Fquo): Simplify.
2915
28712a21
JB
29162004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
2917
2918 * data.c (Fquo): If any argument is float, do the computation in
2919 floating point.
2920
0f0af7a8
JB
29212004-05-08 Juanma Barranquero <lektu@terra.es>
2922
88214ef6
JB
2923 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
2924 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
2925 Fix spelling of Emacs on docstring.
2926 (Fset_process_coding_system, Fprocess_coding_system)
2927 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
2928 Make argument names match their use in docstring.
2929 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
2930 Fix docstring.
2931
0f0af7a8
JB
2932 * editfns.c (Finsert_buffer_substring): Make argument names match their
2933 use in docstring.
2934
2935 * syntax.c (Fmodify_syntax_entry): Fix docstring.
2936
2a316a84
ST
29372004-05-07 Steven Tamm <steventamm@mac.com>
2938
2939 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
2940 around call to ReceiveEvent to avoid certain crashes.
2941
29422004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 2943
2a316a84
ST
2944 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
2945 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
2946 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
2947 Save/restore the current graphics port and device handle when
2948 drawing into an offscreen graphics world.
2949
2950 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
2951 (gif_load): Likewise.
2952
ab80314b
JB
29532004-05-07 Juanma Barranquero <lektu@terra.es>
2954
2955 * window.c (Fset_window_buffer): Fix docstring.
2956
70646bb5
TTN
29572004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
2958
2959 * emacs.c (main) [VMS]: Fix var ref.
2960
b6189c3b 29612004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
2962
2963 * data.c (Fsetq_default): Fix docstring.
2964
279d3293
JR
29652004-05-06 Jason Rumney <jasonr@gnu.org>
2966
2967 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
2968 to avoid name clash.
2969
f72b5416
JD
29702004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2971
2972 * fileio.c (barf_or_query_if_file_exists): Use lstat.
2973 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 2974 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 2975
6ab66799
KS
29762004-05-04 Kim F. Storm <storm@cua.dk>
2977
2978 * xdisp.c (Qtotal): New var.
2979 (syms_of_xdisp): Intern and staticpro it.
2980 (calc_line_height_property): New arg total. Set it if
2981 line-spacing property has format (total . VALUE).
2982 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
2983 Handle total line-spacing property.
2984
ab2d724b
JD
29852004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2986
2987 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
2988 "under" scroll bar when size/position changes.
2989
238add5e
JR
29902004-05-03 Jason Rumney <jasonr@gnu.org>
2991
2992 * makefile.nt: Remove.
2993
1644f4e4
EZ
29942004-05-02 Eli Zaretskii <eliz@gnu.org>
2995
a267ab4d
SM
2996 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
2997 Avoid compiler warnings.
05fdbeb8 2998
1644f4e4
EZ
2999 * Makefile.in (region-cache.o): Depend on config.h.
3000
b6189c3b 30012004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
3002
3003 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3004 with continuation lines, too.
3005
2b98b088
TTN
30062004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3007
3008 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3009
d9bf7950
SM
30102004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3011
3012 * xdisp.c (calc_line_height_property): YAILOM (yet another
3013 int/Lisp_Object mixup).
3014
affa509c
EZ
30152004-05-01 Eli Zaretskii <eliz@gnu.org>
3016
3017 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3018 undo bad effect of pack(4) in some versions of system headers.
3019
07c07cfe
JR
30202004-05-01 Jason Rumney <jasonr@gnu.org>
3021
3022 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3023
e71caa4e
KS
30242004-04-30 Kim F. Storm <storm@cua.dk>
3025
3026 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 3027 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
3028
3029 * dispextern.h (struct it): Remove member use_default_face.
3030 Add members override_ascent, override_descent, override_boff.
3031
3032 * xdisp.c (init_iterator): Handle line-spacing float value.
3033 Initialize override_ascent member.
3034 (append_space_for_newline): Reset override_ascent.
3035 Remove use_default_face.
3036 (calc_line_height_property): New function to calculate value of
3037 line-height and line-spacing properties. Look at overlays, too.
3038 Set override_ascent, override_descent, override_boff members when
3039 using another face than the current face. Float values are now
3040 relative to the frame default font, by default; accept a cons
3041 of ratio and face name to specify value relative to a specific face.
3042 (x_produce_glyphs): Use calc_line_height_property.
3043 Use override_ascent etc. when set to handle different face heights.
3044 A negative line-spacing property value is interpreted as a total
3045 line height, rather than inter-line spacing.
3046 (note_mouse_highlight): Allocate room for 40 overlays initially.
3047
0fddae66
SM
30482004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3049
3050 * data.c (Fsubr_name): New fun.
3051 (syms_of_data): Defsubr it.
3052
712d23dc
KS
30532004-04-29 Kim F. Storm <storm@cua.dk>
3054
3055 * xdisp.c (null_glyph_slice): New var.
3056 (append_glyph, append_composite_glyph, append_stretch_glyph):
3057 Use it to initialize glyph slice.
3058
033ad8c6
SM
30592004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3060
3061 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3062 (on_hot_spot_p): Make sure we always return a value.
3063 (Flookup_image_map): Remove unused var ix and iy.
3064 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3065
93397360
EZ
30662004-04-27 Eli Zaretskii <eliz@gnu.org>
3067
3068 * msdos.c (init_environment): If one of the TMP... environment
3069 variables is set to a drive letter without a trailing slash,
3070 append a slash.
3071
0c54865e
EZ
30722004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3073
3074 * editfns.c (lisp_time_argument): Provide externally.
3075
3076 * fileio.c (Fset_file_times): New function.
3077 (syms_of_fileio): Intern and staticpro it.
3078
d3b111bd
KS
30792004-04-27 Kim F. Storm <storm@cua.dk>
3080
07dc1231
KS
3081 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3082 header line strings.
3083
360fe9d2
KS
3084 * dispextern.h (struct it): New member use_default_face.
3085
d3b111bd
KS
3086 * xdisp.c (Qline_height): New variable.
3087 (syms_of_xdisp): Intern and staticpro it.
3088 (append_space_for_newline): Partially undo 2004-04-25 change;
3089 add default_face_p arg, and restore callers.
3090 Clear it->use_default_face after use.
3091 (x_produce_glyphs): Set default font for ascii char if
3092 it->use_default_font is set. Change line-spacing property to set
3093 just extra line spacing. Handle new line-height property.
3094
0448588b
AS
30952004-04-26 Andreas Schwab <schwab@suse.de>
3096
3097 * print.c (print_object): Print non-ascii characters in bool
3098 vector representation as octal escapes.
3099
3100 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3101 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3102 bool vectors.
3103 * lread.c (read1): Likewise.
3104 * alloc.c (Fmake_bool_vector): Likewise.
3105 * data.c (Faref, Faset): Likewise.
3106 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3107 (mapcar1): Likewise.
d3b111bd 3108
536d6baa
ST
31092004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3110
3111 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3112
ae11577a
MB
31132004-04-26 Miles Bader <miles@gnu.org>
3114
3115 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3116
e198ba87
JB
31172004-04-26 Juanma Barranquero <lektu@terra.es>
3118
3119 * buffer.c (Fpop_to_buffer): Fix docstring.
3120
f3d5f92d 31212004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 3122
f3d5f92d
ST
3123 * lread.c (init_lread): Don't display missing lisp directory
3124 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 3125 may be built without correct installation path.
f3d5f92d 3126
03e35edc
KS
31272004-04-25 Kim F. Storm <storm@cua.dk>
3128
9ff3aa31
KS
3129 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3130
3131 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3132
03e35edc
KS
3133 * xdisp.c (append_space_for_newline): Rename from append_space.
3134 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3135 (x_produce_glyphs): Handle line-spacing property on newline char.
3136 If value is t, adjust ascent and descent to fit current row height.
3137 If value is an integer or float, set extra_line_spacing to integer
3138 value, or to float value x current line height.
3139
f24814e0
KH
31402004-04-23 Kenichi Handa <handa@m17n.org>
3141
3142 * fontset.c (Finternal_char_font): If POSITION is nil, return
3143 font for displaying CH with the default face.
3144
d814862a
JB
31452004-04-23 Juanma Barranquero <lektu@terra.es>
3146
3147 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3148
063a45c5
SM
31492004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3150
3151 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3152 Don't make assumptions about the relative place of i and val.
3153 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3154
ae7ab2d3
KS
31552004-04-21 Kim F. Storm <storm@cua.dk>
3156
3157 * dispextern.h (struct glyph_slice): New struct.
3158 (struct glyph): New member slice.
3159 (GLYPH_SLICE_EQUAL_P): New macro.
3160 (GLYPH_EQUAL_P): Use it.
3161 (struct glyph_string): New member slice.
3162 (struct it_slice): New struct.
3163 (struct it): New member slice, add member to stack too.
3164 New member constrain_row_ascent_descent_p.
3165 (image_ascent): Add prototype.
3166
3167 * dispnew.c (buffer_posn_from_coords): Return full image width
3168 and height even for image slices (posn is relative to full image).
3169 (marginal_area_string): Adjust x0,y0 for image slice.
3170
3171 * image.c (image_ascent): Add slice arg; calculate ascent for
3172 image slice (or full image).
3173
3174 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3175 (syms_of_keyboard): Defsubr them.
3176
3177 * lisp.h (pos_visible_p): Fix prototype.
3178
c62aec78 3179 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
3180 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3181 (x_draw_image_foreground, x_draw_image_relief)
3182 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3183 Draw sliced images.
3184
3185 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3186 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3187 (x_draw_image_foreground, x_draw_image_relief)
3188 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3189 Draw sliced images.
3190
3191 * w32term.h (image_ascent): Remove prototype.
3192
3193 * window.c (Fpos_visible_in_window_p): Return pixel position if
3194 PARTIALLY arg is non-nil. Simplify. Doc fix.
3195 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3196 to return/set vscroll in pixels.
3197
3198 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3199
3200 * xdisp.c (Qslice): New variable.
3201 (syms_of_xdisp): Intern and staticpro it.
3202 (pos_visible_p): Return pixel position in new x and y args.
3203 (init_iterator): Reset it->slice info.
3204 (handle_display_prop): Parse (slice ...) property.
3205 (push_it, pop_it): Save/restore slice info.
3206 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3207 force repositioning of tall row if window is vscrolled, as that
3208 would reset vscroll.
3209 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3210 increasing row height if row is non-empty.
3211 (fill_image_glyph_string): Copy slice info.
3212 (take_vertical_position_into_account): Simplify.
3213 (produce_image_glyph): Handle iterator slice info, setup glyph
3214 slice info. Do not force minimum line height.
3215 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3216 do not increase height (ascent/descent) of non-empty row when
3217 adding normal character glyph; instead reduce glyph ascent/descent
3218 appropriately; if row is higher than current glyph, adjust glyph
3219 descent/ascent to reposition glyph within the existing row.
3220 Likewise, when char is newline, only set ascent/descent if row is
3221 currently empty.
3222 (note_mouse_highlight): Handle hotspots with sliced image.
3223
3224 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3225 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3226 (x_draw_image_foreground, x_draw_image_relief)
3227 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3228 Draw sliced images.
3229
3230 * xterm.h (image_ascent): Remove prototype.
3231
d58f8753
SM
32322004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3233
3234 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3235
4ce2719d
JPW
32362004-04-20 John Paul Wallington <jpw@gnu.org>
3237
3238 * fns.c (Fassoc, Feql): Fix indentation.
3239
d58f8753 3240 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 3241
95f8c3b9
JPW
32422004-04-19 John Paul Wallington <jpw@gnu.org>
3243
3244 * fns.c (Feql): New function.
d58f8753 3245 (syms_of_fns): Defsubr it.
95f8c3b9 3246
b7e85537
JR
32472004-04-18 Jason Rumney <jasonr@gnu.org>
3248
3249 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3250 after closing the clipboard.
3251
5a72efd4
LT
32522004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3253
3254 * buffer.c (Fbuffer_base_buffer): Doc fix.
3255
20dc8583
KS
32562004-04-17 Kim F. Storm <storm@cua.dk>
3257
60962ec4
KS
3258 * keymap.c (Fkey_description): Add optional PREFIX arg.
3259 Combine prefix with KEYS to make up the full key sequence to describe.
3260 Correlate meta_prefix_char and following (simple) key to describe
3261 as meta modifier. All callers changed.
3262 (describe_map): Rename arg `keys' to `prefix'. Remove local
3263 `elt_prefix' var. Use Fkey_description with prefix instead of
3264 elt_prefix combined with Fsingle_key_description.
3265 (describe_vector): Declare static. Replace arg `elt_prefix' with
3266 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3267 if !KEYMAP_P. Use Fkey_description with prefix instead of
3268 Fsingle_key_description.
3269
3270 * keymap.h (Fkey_description): Fix prototype.
3271 (describe_vector): Remove prototype.
3272
409368b9
KS
3273 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3274
20dc8583
KS
3275 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3276 (png_load): Fix calculation of transparent background color on X
3277 and W32 platforms.
3278
75c5501b
JB
32792004-04-16 Juanma Barranquero <lektu@terra.es>
3280
3281 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3282 not too large before computing how much to scroll.
3283
da879ae8
SM
32842004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3285
3286 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3287
d01ca4a8
LT
32882004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3289
3290 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3291 Add hyperlink to Elisp manual to the docstring.
3292
572943b3
SM
32932004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3294
3295 * callint.c (fix_command): Use XDCR.
3296
5e30a0fb
NR
32972004-04-14 Nick Roberts <nick@nick.uklinux.net>
3298
3299 * window.c (Fget_lru_window): Doc fix.
3300
a27ddfaf
KS
33012004-04-14 Kim F. Storm <storm@cua.dk>
3302
3303 * editfns.c (Fformat): Fix allocation size of precision array.
3304
3305 * dispnew.c (update_window): Only set changed_p if
3306 scrolling_window actually did scroll.
3307 (scrolling_window): Only return 1 if we actually did scroll.
3308
3309 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3310 height to glyph height when cursor row is not fully visible.
3311 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3312 failure in case row is higher than window. Callers changed.
3313 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3314 Try to scroll partially visible, higher-than-window cursor row.
3315 (redisplay_window): Always try to scroll partially visible,
3316 higher-than-window cursor row - both initially and again with
3317 centering_position = 0.
3318 Clear desired matrix before retrying with centering_position = 0.
3319
da879ae8
SM
33202004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3321
3322 * syntax.c (scan_lists): Simplify backward string scan.
3323 Fix off-by-one boundary check for string and comment fences.
3324
5fc16e8e
SM
33252004-04-13 Joe Buehler <jbuehler@hekimian.com>
3326
3327 * sheap.c, unexcw.c: New files.
3328
c9aac8e6
LT
33292004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3330
3331 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3332 base buffer has been killed. Correct the error message if the
3333 base buffer does not exist.
3334
1e88a355
SM
33352004-04-12 Joe Buehler <jbuehler@hekimian.com>
3336
3337 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3338 Cygwin itself. Add support for Xaw3d scrollbars.
3339
3340 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3341
3342 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3343
3344 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3345 before Cygwin unexec.
3346
3347 * Makefile.in: Link changes for Cygwin unexec() support.
3348
8dbff9a0
AS
33492004-04-12 Andreas Schwab <schwab@suse.de>
3350
3351 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3352
54dffe35
LT
33532004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3354
3355 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3356 IGNORE argument equals NAME. Doc fix.
3357
99a72bdf
MY
33582004-04-11 Masatake YAMATO <jet@gyve.org>
3359
1e88a355 3360 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
3361 empty if they are backwards.
3362
40899d7b
SM
33632004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3364
3365 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3366
f8f853de
SM
33672004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3368
3369 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3370
c953fe1b
KS
33712004-04-06 Kim F. Storm <storm@cua.dk>
3372
661e85c1
KS
3373 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3374 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3375
3376 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3377 clearing highlight.
3378
3379 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3380
3381 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3382 clearing highlight.
3383
c953fe1b
KS
3384 * indent.c (vmotion): Do not reserve one column for continuation
3385 marks on window frames.
3386
c1994268
EZ
33872004-04-04 Eli Zaretskii <eliz@gnu.org>
3388
3389 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3390 from GCC.
3391
9f691b0d
SM
33922004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3393
3394 * .gdbinit-union: Remove.
3395
3396 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3397 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3398 ($nonvalbits): Remove.
3399 ($valmask): Set it by calling xreload to avoid redundancy.
3400
3401 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3402 (gdb_emacs_intbits): Remove.
3403
7a8560d7
JD
34042004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3405
9f691b0d 3406 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 3407
3c8111fc
KH
34082004-03-30 Kenichi Handa <handa@m17n.org>
3409
3410 * editfns.c (Fformat): Fix initialization of the array info.
3411
48a0bce4
KS
34122004-03-30 Kim F. Storm <storm@cua.dk>
3413
3414 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3415 (syms_of_xterm): DEFVAR_BOOL it.
3416 (ignore_next_mouse_click_timeout): New var.
3417 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3418 Use it to filter mouse clicks following focus event.
3419
1cd0066c
KS
34202004-03-29 David Ponce <david@dponce.com>
3421
3422 * callint.c (Fcall_interactively): Fix last change.
3423
adb3b353
SM
34242004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3425
3426 * eval.c (Fcommandp): Simplify.
3427
3428 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3429 Extend to handle all kinds of functions.
3430
3431 * lisp.h (Finteractive_form): Declare.
3432
3433 * callint.c (Fcall_interactively): Use it.
3434
6fc4c9c9
KS
34352004-03-26 Kim F. Storm <storm@cua.dk>
3436
3437 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3438 to catch errors in calc_pixel_width_or_height during redisplay.
3439
abdb9b83
MY
34402004-03-26 Masatake YAMATO <jet@gyve.org>
3441
b17856dd 3442 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 3443
b17856dd 3444 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 3445
b17856dd 3446 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 3447
b17856dd 3448 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 3449
e8a84b6c
JD
34502004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3451
b17856dd 3452 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 3453
36a3fd05
RS
34542004-03-19 Richard M. Stallman <rms@gnu.org>
3455
3456 * s/sol2-6.h: Delete previous change.
3457
ab24c127
KS
34582004-03-19 Kim F. Storm <storm@cua.dk>
3459
3460 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3461 to_charpos corresponds to newline in right fringe. Use local
3462 BUFFER_POS_REACHED_P macro.
3463
992126de
JD
34642004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3465
3466 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3467 to compile on non-window system.
3468
45dbfc84
KS
34692004-03-19 Kim F. Storm <storm@cua.dk>
3470
3471 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3472
3473 * image.c (Qcenter): Move to xdisp.c.
3474
3475 * xdisp.c (Qcenter): Declare here.
adb3b353 3476 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
3477 (handle_single_display_prop): Allow space display property on all
3478 platforms.
3479 (display_mode_line): Set mode_line_p before displaying line.
3480 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3481 handling. Remove complex cases for fringes and scroll-bars.
3482 Add left, right, and center alignment positions. Add text (area)
3483 width/height. Return width or height for image specs.
3484 (produce_stretch_glyph): Improve handling of :align-to. Is now
3485 relative to left of text area by default, but other base offsets
3486 can be specified -- also for text lines.
3487
3488 * term.c (produce_glyphs): Handle IT_STRETCH.
3489 (produce_stretch_glyph): New function to handle space width and
3490 align-to display properties on non-window systems.
3491
37264101
SM
34922004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3493
3494 * fileio.c (Fread_file_name): Set completion-ignore-case for
3495 case-insensitive systems.
3496
73bc43da
MY
34972004-03-14 Masatake YAMATO <jet@gyve.org>
3498
3499 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3500 when keymap and cursor are setup.
3501
9062aa89
ST
35022004-03-14 Steven Tamm <steventamm@mac.com>
3503
b17856dd 3504 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 3505
e4b1b5ab
KS
35062004-03-14 Kim F. Storm <storm@cua.dk>
3507
3508 * dispextern.h (x_find_image_file): Add prototype.
3509
3510 * image.c (x_find_image_file): Make extern.
3511
3512 * xfns.c (x_find_image_file): Remove prototype.
3513
a6eeaa81 35142004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 3515
37264101 3516 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 3517
37264101 3518 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 3519
e69cfac2
RS
35202004-03-12 Richard M. Stallman <rms@gnu.org>
3521
3522 * fns.c (internal_equal): New arg PROPS controls comparing
3523 text properties. All callers changed.
3524 (Fequal_including_properties): New function.
3525 (syms_of_fns): defsubr it.
3526
45034953
KS
35272004-03-12 Kim F. Storm <storm@cua.dk>
3528
3529 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 3530
45034953
KS
3531 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3532 (image_background, image_background_transparent): Fix prototypes.
3533
37264101 3534 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
3535
3536 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3537 (x_query_font, x_find_ccl_program, x_set_window_size)
3538 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3539 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3540 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3541
3542 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3543 (x_query_font, x_find_ccl_program, x_set_window_size)
3544 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3545 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3546 (mac_draw_line_to_pixmap): Add prototypes.
3547
35482004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3549
3550 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3551
a12d3d87
KS
35522004-03-11 Kim F. Storm <storm@cua.dk>
3553
d3ab1cf1
KS
3554 * dispextern.h: Move image related prototypes from xfns.c section
3555 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
3556 HAVE_X_WINDOWS.
37264101 3557
37de9f51 3558 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 3559 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
3560 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
3561 (GTK_OBJ) [USE_GTK]: New declaration.
3562 (obj): Add $(GTK_OBJ) to list.
3563
5243c06a 35642004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 3565
5243c06a
ST
3566 * image.c [MAC_OSX]: Include sys/stat.h
3567
3568 * macfns.c (syms_of_macfns): Remove definitions of things now
3569 defined in image.c
3570
c0f97789
KS
35712004-03-11 Kim F. Storm <storm@cua.dk>
3572
3573 The following changes consolidates the identical/similar image
3574 support code previously found in xfns.c, w32fns.c, and macfns.c
3575 into a new file image.c.
3576
3577 * makefile.w32-in (OBJ1): Add image.o.
3578 ($(BLD)/image.$(O)): Add dependencies.
3579
3580 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
3581 (image.o): Add dependencies.
37264101 3582
c0f97789
KS
3583 * image.c: New file with consolidated image support code.
3584 (COLOR_TABLE_SUPPORT): New define to control whether
3585 color table support is available (X only).
3586 (Bitmap_Record): Common name for x_bitmap_record,
3587 w32_bitmap_record, and mac_bitmap_record.
3588 (XImagePtr): Common name for pointer to XImage or equivalent.
3589 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
3590 to XImagePtr on X+MAC, and to HDC on W32.
3591 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
3592 (NO_PIXMAP): Common name for "None" or equivalent.
3593 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
3594 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
3595 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
3596 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
3597 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
3598 (XDrawLine): Define on MAC for code sharing.
3599 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
3600 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
3601 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3602 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3603 (x_reference_bitmap, x_create_bitmap_from_data)
3604 (x_create_bitmap_from_file, x_destroy_bitmap)
3605 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3606 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3607 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3608 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3609 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3610 (define_image_type, lookup_image_type, valid_image_p)
3611 (image_error, enum image_value_type, struct image_keyword)
3612 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3613 (make_image, free_image, prepare_image_for_display, image_ascent)
3614 (four_corners_best, image_background, image_background_transparent)
3615 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3616 (make_image_cache, free_image_cache, clear_image_cache)
3617 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3618 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3619 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3620 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3621 (init_image_func_pointer, image_load_quartz2d)
3622 (struct ct_color, init_color_table, free_color_table)
3623 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3624 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3625 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3626 (x_disable_image, x_build_heuristic_mask)
3627 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3628 (TIFF support, GIF support, Ghostscript support): Consolidate image
3629 code from xfns.c, w32fns.c, and macfns.c.
3630 (syms_of_image): Consolidate image related symbol setup here.
3631 (init_image): Consolidate image related initializations here.
37264101 3632
c0f97789
KS
3633 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
3634 and init_image. Remove call to init_xfns.
3635
37264101
SM
3636 * macterm.h (struct mac_bitmap_record): Add file member.
3637 Not currently used, but simplifies code sharing.
c0f97789
KS
3638
3639 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3640 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3641 (x_reference_bitmap, x_create_bitmap_from_data)
3642 (x_create_bitmap_from_file, x_destroy_bitmap)
3643 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3644 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3645 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3646 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3647 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3648 (define_image_type, lookup_image_type, valid_image_p)
3649 (image_error, enum image_value_type, struct image_keyword)
3650 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3651 (make_image, free_image, prepare_image_for_display, image_ascent)
3652 (four_corners_best, image_background, image_background_transparent)
3653 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3654 (make_image_cache, free_image_cache, clear_image_cache)
3655 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3656 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3657 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3658 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3659 (init_image_func_pointer, image_load_quartz2d)
3660 (struct ct_color, init_color_table, free_color_table)
3661 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3662 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3663 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3664 (x_disable_image, x_build_heuristic_mask)
3665 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3666 (TIFF support, GIF support, Ghostscript support): Merge with image
3667 code from xfns.c and macfns.c into image.c.
3668 (syms_of_xfns): Move image related symbols to image.c.
3669 (init_external_image_libraries, init_xfns): Remove; initialization
3670 moved to init_image in image.c.
3671
3672 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3673 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3674 (x_reference_bitmap, x_create_bitmap_from_data)
3675 (x_create_bitmap_from_file, x_destroy_bitmap)
3676 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3677 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3678 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3679 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3680 (define_image_type, lookup_image_type, valid_image_p)
3681 (image_error, enum image_value_type, struct image_keyword)
3682 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3683 (make_image, free_image, prepare_image_for_display, image_ascent)
3684 (four_corners_best, image_background, image_background_transparent)
3685 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3686 (make_image_cache, free_image_cache, clear_image_cache)
3687 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3688 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3689 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3690 (struct ct_color, init_color_table, free_color_table)
3691 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3692 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3693 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3694 (x_disable_image, x_build_heuristic_mask)
3695 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3696 (TIFF support, GIF support, Ghostscript support): Merge with image
3697 code from xfns.c and macfns.c into image.c.
3698 (syms_of_xfns): Move image related symbols to image.c.
3699 (init_external_image_libraries, init_xfns): Remove; initialization
3700 moved to init_image in image.c.
3701
3702 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3703 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3704 (x_reference_bitmap, x_create_bitmap_from_data)
3705 (x_create_bitmap_from_file, x_destroy_bitmap)
3706 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3707 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3708 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3709 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3710 (define_image_type, lookup_image_type, valid_image_p)
3711 (image_error, enum image_value_type, struct image_keyword)
3712 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3713 (make_image, free_image, prepare_image_for_display, image_ascent)
3714 (four_corners_best, image_background, image_background_transparent)
3715 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3716 (make_image_cache, free_image_cache, clear_image_cache)
3717 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3718 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3719 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3720 (struct ct_color, init_color_table, free_color_table)
3721 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3722 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3723 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3724 (x_disable_image, x_build_heuristic_mask)
3725 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3726 (TIFF support, GIF support, Ghostscript support): Merge with
3727 w32fns.c and macfns.c image code into image.c.
3728 (syms_of_xfns): Move image related symbols to image.c.
3729 (init_xfns): Remove; initialization moved to init_image in image.c.
3730
3731 * lisp.h (syms_of_image, init_image): Add protoypes.
3732 (init_xfns): Remove prototype.
3733
3734 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3735 (x_reference_bitmap, x_create_bitmap_from_data)
3736 (x_create_bitmap_from_file, x_destroy_bitmap)
3737 (x_create_bitmap_mask): Move prototypes from dispextern.h.
3738 (gamma_correct) [MAC_OS]: Add prototype.
3739
3740 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3741 (x_reference_bitmap, x_create_bitmap_from_data)
3742 (x_create_bitmap_from_file, x_destroy_bitmap)
3743 (x_create_bitmap_mask): Move prototypes to dispextern.h.
3744
6eced09c
KH
37452004-03-09 Kenichi Handa <handa@etlken2>
3746
3747 * coding.c (decode_coding_emacs_mule): Handle insufficent source
3748 correctly.
3749
9a7e95f3
RS
37502004-03-04 Richard M. Stallman <rms@gnu.org>
3751
04a6e76b
RS
3752 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
3753
9a7e95f3
RS
3754 * window.c (Fdisplay_buffer): Doc fix.
3755
3756 * buffer.c (Fpop_to_buffer): Doc fix.
3757
6c2488df
KS
37582004-03-03 Kim F. Storm <storm@cua.dk>
3759
3760 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
3761
d8d95bc7
SM
37622004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
3765
357589bf
RS
37662004-03-02 Richard M. Stallman <rms@gnu.org>
3767
3768 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
3769
409949b5
KH
37702004-03-02 Kenichi Handa <handa@m17n.org>
3771
3772 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
3773
d24bc50f
KS
37742004-03-02 Kim F. Storm <storm@cua.dk>
3775
3776 * window.h (struct window): New member overlay_arrow_bitmap.
3777
3778 * window.c (make_window): Initialize overlay_arrow_bitmap.
3779
3780 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
3781 implement and integrate multiple overlay arrows with redisplay.
3782 (syms_of_xdisp): DEFVAR_LISP and initialize it.
3783 (last_arrow_position, last_arrow_string): Replace by properties.
3784 (Qlast_arrow_position, Qlast_arrow_string)
3785 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
3786 (syms_of_xdisp): Intern and staticpro them.
3787 (overlay_arrow_string_or_property, update_overlay_arrows)
3788 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
3789 (overlay_arrow_at_row): New functions for multiple overlay arrows.
3790 (redisplay_internal): Use them instead of directly accessing
3791 Voverlay_arrow_position etc. for multiple overlay arrows.
3792 (mark_window_display_accurate): Use update_overlay_arrows.
3793 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
3794 (try_window_id): Use overlay_arrows_changed_p.
3795 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
3796 (display_line): Use overlay_arrow_at_row to check multiple
3797 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 3798 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
3799 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
3800 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
3801
3802 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
3803 (update_window_fringes): Remove unused code.
3804
c1464661
JR
38052004-03-01 Jason Rumney <jasonr@gnu.org>
3806
3807 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
3808
a64387ee
JB
38092004-03-01 Juanma Barranquero <lektu@terra.es>
3810
3811 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
3812
3813 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
3814
334faa08
JD
38152004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3816
3817 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
3818 how many colors can be displayed.
3819
bb62616f
KH
38202004-03-01 Kenichi Handa <handa@m17n.org>
3821
3822 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
3823 correctly.
3824
0fd16104
KS
38252004-02-28 Kim F. Storm <storm@cua.dk>
3826
3827 * dispnew.c (update_window): Update header line also if there are
3828 no other changes in window (move code after set_cursor label).
3829
3830 * lisp.h (mark_window_display_accurate): Remove prototype.
3831
3832 * window.c (window_loop, Fforce_window_update): Force mode line
3833 updates by setting prevent_redisplay_optimizations_p and
3834 update_mode_lines.
3835
b59dd9c8
JD
38362004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3837
d8d95bc7 3838 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
3839
3840 * xterm.c (x_calc_absolute_position): Call x_real_positions
3841 to get WM window sizes and use those to calculate position.
d8d95bc7 3842 (x_set_offset): Remove code commented out.
b59dd9c8 3843
a874691c
MB
38442004-02-28 Miles Bader <miles@gnu.org>
3845
3846 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
3847
3e0c6482
KS
38482004-02-28 Kim F. Storm <storm@cua.dk>
3849
3850 * keyboard.c (kbd_buffer_store_event_hold): New function to store
3851 an event into kbd fifo, but with special handling of quit event;
3852 a quit event is saved for later, and further events are discarded
3853 until the saved quit event has been processed.
3854 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
3855 (gen_help_event): Store help event in kbd fifo.
3856 (NREAD_INPUT_EVENTS): Remove.
3857 (read_avail_input): Adapt to new read_socket_hook interface.
3858 Remove allocation and initialization of local input_event buffer,
3859 as read_socket_hook stores events directly in fifo. Allocate and
3860 initialize local hold_quit event to handle postponed quit event
3861 (and store it if set by kbd_buffer_store_event_hold).
3862
3863 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
3864 (gen_help_event): Fix prototype.
3865
a64387ee 3866 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 3867 numcharsp args. Add hold_quit arg.
f63fd14e 3868 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3869 directly in fifo using kbd_buffer_store_event_hold.
3870
3871 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
3872 (read_input_waiting): Adapt to new read_socket_hook interface.
3873 Remove allocation and initialization of local input_event buffer,
3874 as read_socket_hook stores events directly in fifo. Allocate and
3875 initialize local hold_quit event to handle postponed quit event
3876 (and store it if set by kbd_buffer_store_event_hold).
3877
a64387ee 3878 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
3879
3880 * termhooks.h (read_socket_hook): Fix prototype.
3881
3882 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
3883 numcharsp args. Add hold_quit arg.
f63fd14e 3884 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3885 directly in fifo using kbd_buffer_store_event_hold.
3886
3887 * w32inevt.h (w32_console_mouse_position): Fix prototype.
3888
3889 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
3890 Add hold_quit arg. Rework to use just one, local, inev
3891 input_event. Store inev directly in fifo using
3e0c6482
KS
3892 kbd_buffer_store_event_hold. Update count in one place.
3893 Postpone call to gen_help_event until inev is stored; use new
3894 local do_help for this.
3895 Remove local emacs_event in handing of ButtonPress event; just use
3896 inev instead (so no reason to copy it later).
3897
3898 * xsmfns.c (x_session_check_input): Remove numchars arg.
3899
d8d95bc7
SM
3900 * xterm.c (x_focus_changed, x_detect_focus_change):
3901 Remove numchars arg. Always store event into bufp arg.
3902 Return nothing. Callers changed accordingly.
3e0c6482
KS
3903 (glyph_rect): Simplify.
3904 (STORE_KEYSYM_FOR_DEBUG): New macro.
3905 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
3906 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
3907 (current_hold_quit) [USE_GTK]: Add.
3908 (event_handler_gdk): Adapt to new handle_one_xevent.
3909 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
3910 Add hold_quit arg. Rework to use just one, local, inev
3911 input_event. Store inev directly in fifo using
3e0c6482
KS
3912 kbd_buffer_store_event_hold. Update count in one place.
3913 Postpone call to gen_help_event until inev is stored; use new
3914 local do_help for this.
3915 Simplify handling of keysyms (consolidate common code). Fix bug
3916 where count was updated with nchars instead of nbytes.
3917 Remove local emacs_event in handing of ButtonPress event; just use
3918 inev instead (so no reason to copy it later).
3919 Remove `out' label. Rename label `ret' to `done'; add various
3920 `goto done' to clarify code flow in deeply nested blocks.
3921 (x_dispatch_event): Simplify as handle_one_xevent now calls
3922 kbd_buffer_store_event itself.
f63fd14e 3923 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
3924 arg. Call handle_one_xevent with new arglist. Store event from
3925 x_session_check_input in fifo.
3926 [USE_GTK]: Setup current_hold_quit.
3927 Decrement handling_signal before unblocking input.
3928 (x_initialize) [USE_GTK]: Initialize current_count.
3929
3930 * xterm.h (x_session_check_input): Fix prototype.
3931
e3564461 39322004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 3933
d8d95bc7 3934 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 3935
e3564461
ST
3936 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
3937 macgui.h).
a64387ee 3938
e3564461 3939 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 3940
e3564461
ST
3941 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
3942 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
3943 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
3944 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
3945 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
3946 (Bitmap): Remove typedef.
3947 (Pixmap): Change int to GWorldPtr.
3948
d8d95bc7 3949 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 3950
d8d95bc7
SM
3951 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
3952 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
3953 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
3954 long representation.
3955 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
3956 colors used for masks.
3957 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 3958
e3564461
ST
3959 * macfns.c: Include sys/types.h and sys/stat.h.
3960 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
3961 Include QuickTime/QuickTime.h.
3962 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3963 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
3964 functions defined in macterm.c.
3965 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
3966 (ZPixmap): New #define for compatibility with xfns.c.
3967 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3968 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
3969 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
3970 New functions.
e3564461 3971 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
3972 (x_destroy_x_image, unwind_create_frame, x_disable_image)
3973 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
3974 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
3975 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
3976 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
3977 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
3978 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
3979 long mixup.
3980 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
3981 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
3982 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
3983 (x_set_cursor_type, Fxw_color_values, valid_image_p)
3984 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
3985 (x_alloc_image_color, clear_image_cache, lookup_image)
3986 (x_find_image_file, xbm_read_bitmap_file_data)
3987 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
3988 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
3989 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
3990 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
3991 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 3992 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
3993 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
3994 #if 0.
3995 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
3996 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
3997 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
3998 New functions (from xfns.c).
e3564461
ST
3999 (Fx_create_frame): Record unwind_create_frame.
4000 (Fxw_display_color_p): Use dpyinfo->color_p.
4001 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4002 dpyinfo->n_cbits.
4003 (Fx_display_color_cells): Use dpyinfo->n_planes;
4004 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4005 (Qheuristic, cross_disabled_images, emboss_matrix)
4006 (laplace_matrix): New variables (from xfns.c).
4007 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4008 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4009 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
4010 (image_background_transparent): New function (from xfns.c).
4011 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4012 (image_load_quicktime): Add declaration.
4013 [MAC_OSX] (image_load_quartz2d): Likewise.
4014 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4015 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 4016 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
4017 (xbm_load_image_from_file, x_laplace_read_row)
4018 (x_laplace_write_row, pbm_read_file): Remove functions.
4019 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4020 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4021 (colors_in_color_table): Sync with xfns.c (although not used).
4022 (lookup_rgb_color): Don't lookup color table. Just do gamma
4023 correction.
4024 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
4025 (x_disable_image): New function (from xfns.c).
4026 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4027 (x_build_heuristic_mask): Sync with xfns.c.
4028 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4029 (HAVE_PBM): Remove #ifdef.
4030 (pbm_load): Sync with xfns.c. Set img->width and img->height
4031 before IMAGE_BACKGROUND.
d8d95bc7 4032 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
4033 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4034 Don't enclose with #if HAVE_PNG.
4035 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
4036 symbol _CGImageCreateWithPNGDataProvider is defined.
4037 Otherwise use image_load_quicktime.
e3564461 4038 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
4039 [HAVE_PNG] (png_load): Sync with xfns.c.
4040 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
4041 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4042 HAVE_JPEG.
4043 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4044 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4045 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4046 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4047 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4048 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4049 HAVE_TIFF.
4050 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4051 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4052 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
4053 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4054 New functions (from xfns.c).
e3564461 4055 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 4056 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
4057 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4058 Don't enclose with #if HAVE_GIF.
4059 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4060 animated gif. Otherwise use image_load_quicktime.
4061 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4062 gif_DrawText to avoid conflict with QuickdrawText.h.
4063 [HAVE_GIF] (gif_load): Sync with xfns.c.
4064 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4065 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4066 Ghostscript is not supported yet).
4067 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4068 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4069 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4070 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4071 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4072 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
4073 HAVE_PNG. Call EnterMovies to support animated gifs.
4074 Call init_image_func_pointer to bind a symbol
e3564461 4075 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 4076
d8d95bc7 4077 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
4078 (x_draw_bar_cursor): Sync declaration with xterm.c.
4079 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4080 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4081 graphics).
4082 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4083 (mac_draw_line_to_pixmap, XCreatePixmap)
4084 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
4085 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4086 New functions.
4087 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4088 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4089 Cast bits to char *.
e3564461
ST
4090 (reflect_byte): New function (from w32fns.c).
4091 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4092 due to byte alignment.
d8d95bc7
SM
4093 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4094 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
4095 (XSetForeground): Remove static (now used in macfns.c).
4096 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4097 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4098 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4099 (x_draw_glyph_string_box, x_draw_image_foreground)
4100 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4101 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4102 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4103 Sync with xterm.c.
4104 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4105 than the xterm.c version when a strictly horizontal or vertical
4106 line is drawn.
4107 (XTset_terminal_window): Add static.
4108 (x_make_frame_visible): Add UNBLOCK_INPUT.
4109 (x_free_frame_resources): New funcion (from xterm.c).
4110 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4111 occurs in tool bar area.
d8d95bc7
SM
4112 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4113 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
4114 Initialize image cache.
4115 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4116 Enclose unused functions with #if 0.
4117 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4118 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 4119 from a mac font name to an XLFD font name according to its script code.
e3564461 4120 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 4121 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
4122 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4123 whose name starts with `.'.
4124 (init_font_name_table): Use decode_mac_font_name. Add both
4125 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4126 of a font is smJapanese.
4127 (mac_do_list_fonts): New function to list fonts that match a given
4128 pattern.
4129 (x_list_fonts, XLoadQueryFont): Use it.
4130 (XLoadQueryFont): Set rbearing field for each variable width
4131 character to avoid needless redraw.
4132 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4133
446f5f3d
KS
41342004-02-26 Kim F. Storm <storm@cua.dk>
4135
af617d0f
KS
4136 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4137 as read_socket_hook handler on X aborts if buffer is too small
4138 and W32 handler doesn't always check buffer limit.
4139
446f5f3d
KS
4140 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4141 right-fringe similar to a display margin image. Specifically,
4142 the characters having the fringe prop are no longer shown, and
4143 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4144 do this. Set fringe bitmap face_id in it->face_id.
4145 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4146 still realize it->face (i.e. the fringe bitmap face).
4147
7d8a0b55
MB
41482004-02-25 Miles Bader <miles@gnu.org>
4149
4150 * xdisp.c (check_it): Check string/string_pos consistency.
4151 (init_iterator): Initialize string-related fields properly.
4152
41532004-02-11 Miles Bader <miles@gnu.org>
4154
4155 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4156
41572004-02-10 Miles Bader <miles@gnu.org>
4158
4159 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4160 BLOCK_INPUT can be nested, so it doesn't make much sense.
4161
a64387ee 41622004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
4163
4164 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4165 (xbm_read_bitmap_data): Use unsigned char for image data.
4166
92f5fba2
LT
41672004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4168
4169 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4170
8565fb3d
JR
41712004-02-22 Jason Rumney <jasonr@gnu.org>
4172
4173 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4174 correctly over other bitmaps.
4175
a6eeaa81 41762004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
4177
4178 * emacs.c (USAGE1): Split into two halves.
4179 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
4180 (USAGE3): Rename from USAGE2.
4181 (USAGE4): Rename from USAGE3.
f8125c39 4182
4effffca
EZ
41832004-02-21 Juri Linkov <juri@jurta.org>
4184
4185 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4186 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4187 --file. Fix -f, -l. Sort options. Untabify.
4188 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4189
923c1e6f
LT
41902004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4191
4192 * category.c (Fdefine_category, Fcategory_docstring)
4193 (Fget_unused_category, Fset_category_table)
4194 (Fcategory_set_mnemonics): Doc fixes.
4195
b0e225fd
KS
41962004-02-20 Kim F. Storm <storm@cua.dk>
4197
4198 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4199 The following changes are relative to the 2004-01-21 revision.
4200 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4201 in one call to read_socket_hook. Value is 8.
4202 (read_avail_input): Separate and rework handling of read_socket_hook
4203 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
4204 in read_socket_hook case, and repeat if full buffer is read.
4205 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
4206 In non-read_socket_hook case, just use a single input_event, and
4207 call kbd_buffer_store_event on the fly for each character.
4208
b15aa9f9
SM
42092004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4210
4211 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4212 Remove unused `gu' alternative.
4213
83c9aa95
AS
42142004-02-19 Andreas Schwab <schwab@suse.de>
4215
4216 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4217 warning.
4218
cc808173
KS
42192004-02-18 Kim F. Storm <storm@cua.dk>
4220
4221 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4222 Fix last change.
4223
ab90a54d
KS
42242004-02-17 Kim F. Storm <storm@cua.dk>
4225
b26f249f
KS
4226 * xdisp.c (fast_find_position): Fix return value of new version;
4227 it was inverted compared to the 21.1 version.
4228 (get_window_cursor_type): Don't look at glyph if NULL.
4229 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 4230
ab90a54d
KS
4231 * keyboard.c: Rework previous change; it didn't consider that the
4232 buf array was allocated on the stack.
4233 (prev_read): Remove variable.
4234 (read_avail_input_buf): New static event buffer array.
b9568dfc 4235 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 4236 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
4237 Use in_read_avail_input to handle re-entrance; when re-entered,
4238 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4239 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
4240 is always cleared on entry. To ensure that, we clear (just) the
4241 entries that were used before we return.
4242 (init_keyboard): Initialize read_avail_input_buf here.
4243
b6189c3b 42442004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
4245
4246 * cmds.c (Fend_of_line): Doc fix.
4247
7b5368c1
EZ
42482004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4249
4250 * keyboard.c (prev_read): New static variable.
4251 (read_avail_input): Use it to zero out only those slots in buf[]
4252 that were used last time we were called.
4253
a6eeaa81 42542004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
4255
4256 * Makefile.in (obj): Move fringe.o from here...
4257 (XOBJ, MAC_OBJ): ...to here.
4258
159c348e
SE
42592004-02-16 Stephen Eglen <stephen@gnu.org>
4260
4261 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4262
d2f14999
SM
42632004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4264
b15aa9f9
SM
4265 * data.c (Fbyteorder):
4266 * fringe.c (Fdefine_fringe_bitmap):
4267 * xdisp.c (handle_single_display_prop):
d2f14999
SM
4268 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4269
8d50508a
JR
42702004-02-16 Jason Rumney <jasonr@gnu.org>
4271
4272 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4273
dd4497dc
ST
42742004-02-15 Steven Tamm <steventamm@mac.com>
4275
4276 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4277 controlling emulation of a three button mouse with option and
4278 command keys.
4279 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 4280 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 4281
c9159cb3
KS
42822004-02-15 Kim F. Storm <storm@cua.dk>
4283
2cc52658
KS
4284 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4285
c9159cb3
KS
4286 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4287 Perform byte-swapping.
4288
12fde2dc
KS
42892004-02-14 Kim F. Storm <storm@cua.dk>
4290
4291 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4292 bits from char to short to facilitate wider bitmaps.
4293 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4294 member.
4295
4296 * fringe.c (struct fringe_bitmap): Change member bits from char to
4297 short to facilitate 16 bits wide bitmaps. Modify all standard
4298 bitmaps accordingly.
4299 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4300 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4301 (draw_fringe_bitmap): Ditto.
4302 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4303 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4304 handle up to 16 bits wide bitmaps.
4305 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 4306 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
4307
4308 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4309 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4310 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4311
4312 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4313 so it is no longer necessary to expand them here.
4314
4315 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4316
9d7271e8
KS
43172004-02-12 Kim F. Storm <storm@cua.dk>
4318
4319 * window.c (Fwindow_fringes): Doc fix.
4320
706c1e4f
JD
43212004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4322
4323 * xselect.c (x_get_foreign_selection): Add new optional parameter
4324 time_stamp.
4325 (Fx_get_selection_internal): Ditto, pass time_stamp to
4326 x_get_foreign_selection.
4327
4328 * data.c (Fbyteorder): New function.
4329
c2d12b5d
JD
43302004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4331
4332 * atimer.c: Move include stdio.h to same place as in other files.
4333
4334 * region-cache.c: Ditto.
4335
4336 * sysdep.c: Ditto.
4337
4338 * xfaces.c: Ditto.
4339
4c1947b9
SS
43402004-02-09 Sam Steingold <sds@gnu.org>
4341
89458937 4342 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 4343
82722af3
KS
43442004-02-09 Kim F. Storm <storm@cua.dk>
4345
4346 * fringe.c: New file. Move original fringe related declarations
4347 and code from dispextern.h and xdisp.c here.
4348 Rework code to support user defined fringe bitmaps, redefining
4349 standard bitmaps, ability to overlay user defined bitmap with
4350 overlay arrow bitmap, and add faces to bitmaps.
4351 (Voverflow_newline_into_fringe): Declare here.
4352 (enum fringe_bitmap_align): New enum.
4353 (..._bits): All bitmaps are now defined without bitswapping; that
4354 is now done in init_fringe_once (if necessary).
4355 (standard_bitmaps): New array with specifications for the
4356 standard fringe bitmaps.
4357 (fringe_faces): New array.
4358 (valid_fringe_bitmap_id_p): New function.
4359 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4360 (draw_fringe_bitmap): New function which draws fringe bitmap,
4361 possibly overlaying bitmap with cursor in right fringe or the
4362 overlay arrow in the left fringe.
4363 (update_window_fringes): Do not handle overlay arrow here.
4364 Compare and copy fringe bitmap faces.
4365 (init_fringe_bitmap): New function.
4366 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4367 define and destroy user defined fringe bitmaps.
4368 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4369 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4370 (syms_of_fringe): New function. Defsubr new DEFUNs.
4371 DEFVAR_LISP Voverflow_newline_into_fringe.
4372 (init_fringe_once, init_fringe): New functions.
4373 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 4374
82722af3
KS
4375 * Makefile.in (obj): Add fringe.o.
4376 (fringe.o): New dependencies.
4377
4378 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4379 bits allocated to hold a fringe number. Increase number of bits
4380 from 4 to 8 to allow user defined fringe bitmaps.
4381 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4382 left_user_fringe_face_id, right_user_fringe_bitmap,
4383 right_user_fringe_face_id.
4384 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4385 Move to new file fringe.c.
4386 (MAX_FRINGE_BITMAPS): Define here.
4387 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4388 and overlay_p. Change member which to int.
4389 (struct redisplay_interface): New members define_fringe_bitmap
4390 and destroy_fringe_bitmap.
4391 (valid_fringe_bitmap_id_p): Add prototype.
4392 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4393
4394 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4395 arrows.
4396 (update_frame): Do flush_display if force_flush_display_p to
4397 ensure display (specifically fringes) are updated in a timely
4398 manner when resizing the frame by dragging the mouse.
4399 (update_window_line): Update row if overlay arrow changed.
4400 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4401 or overlay arrow changed.
4402
4403 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4404 syms_of_fringe, and init_fringe.
4405
4406 * frame.h (struct frame): New member force_flush_display_p.
4407
4408 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4409 Add prototypes.
4410
a3993cc8 4411 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 4412 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
4413 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4414 Use cursor color for displaying cursor in fringe.
82722af3
KS
4415 (x_redisplay_interface): Add null handlers for
4416 define_fringe_bitmap and destroy_fringe_bitmap functions.
4417
4418 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4419 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4420 for displaying cursor in fringe.
4421 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4422 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4423 (w32_redisplay_interface): Add them to redisplay_interface.
4424 (w32_term_init): Call w32_init_fringe instead of explicitly
4425 defining fringe bitmaps in fringe_bmp array.
4426 (x_delete_display): Call w32_reset_fringes instead of explicitly
4427 destroying fringe bitmaps in fringe_bmp array.
4428
4429 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4430 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4431 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4432 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4433 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4434 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4435 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4436 Move fringe handling vars and code to new file fringe.c.
4437 (handle_display_prop): Handle left-fringe and right-fringe
4438 display properties; store user fringe bitmaps in iterator.
4439 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4440 (clear_garbaged_frames): Set force_flush_display_p if resized.
4441 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4442 (display_line): Handle cursor in fringe at eob.
4443 (display_line): Set row user fringe bitmaps from iterator.
4444
4445 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4446 Use cursor color for displaying cursor in fringe.
4447 (x_redisplay_interface): Add null handlers for
4448 define_fringe_bitmap and destroy_fringe_bitmap functions.
4449
030400eb
JD
44502004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4451
4452 * macfns.c (Fx_change_window_property): Make doc string and
4453 parameters same as for X version.
4454
4455 * w32fns.c (Fx_change_window_property): Ditto.
4456
3af55251
KS
44572004-02-07 Kim F. Storm <storm@cua.dk>
4458
ec110e9e
KS
4459 * xdisp.c (hscroll_window_tree): Position cursor near to right
4460 margin in hscrolled window when jumping to end of line (rather
4461 than centering cursor).
4462
3af55251
KS
4463 * process.c (wait_reading_process_input): Don't do adaptive read
4464 buffering if waiting for a specific process.
4465
b0c138ce
LT
44662004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4467
4468 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4469 (Fread_minibuffer, Feval_minibuffer)
4470 (Fread_string, Fread_no_blanks_input)
4471 (Fcompleting_read): Doc fixes.
4472 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4473 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4474 (read_minibuf): Fix initial comment.
4475 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 4476 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
4477 checking completion-regexp-list.
4478 (Fdisplay_completion_list): Make it handle arguments that are
4479 symbols. Doc fix.
4480
9676f5ad 44812004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 4482
9676f5ad 4483 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 4484
9676f5ad
JD
4485 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4486 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 4487 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 4488 format. Remove unused variable cons.
5b698285
JD
4489
4490 * xselect.c: Include stdio,h.
4491
fc1d15f6
KH
44922004-02-05 Kenichi Handa <handa@m17n.org>
4493
ebaff4af
KH
4494 * fns.c (Fset_char_table_range): Fix previous change.
4495
fc1d15f6
KH
4496 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4497
9676f5ad
JD
44982004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4499
4500 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4501
da75761f
SM
45022004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4503
4504 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4505 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4506
13c5d120
KH
45072004-02-04 Kenichi Handa <handa@m17n.org>
4508
4509 * fns.c (Fset_char_table_range): Handle charsets ascii,
4510 eight-bit-control, and eight-bit-graphic correctly.
4511
2883d842
JR
45122004-02-03 Jason Rumney <jasonr@gnu.org>
4513
4514 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4515
4516 * w32fns.c (x_to_w32_font): Likewise.
4517
69eff41f
JD
45182004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4519
4520 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4521 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4522
4523 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4524 ClientMessages.
4525
4526 * xselect.c: Include termhooks.h and X11/Xproto.h
4527 (x_check_property_data, x_fill_property_data)
4528 (x_property_data_to_lisp, mouse_position_for_drop)
4529 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 4530 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
4531 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4532
da75761f 4533 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
4534 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4535 OUTER_P.
4536 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4537 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4538 if vector_ret_p is true.
4539 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 4540
a6eeaa81 45412004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
4542
4543 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4544 basename of FILE relative to it, not FILE itself.
4545
09721b31
KH
45462004-02-02 Kenichi Handa <handa@m17n.org>
4547
4548 * coding.c (coding_restore_composition): Check invalid
4549 composition data more rigidly.
4550
eb996101
LT
45512004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4552
4553 * fileio.c (Fread_file_name_internal): Correctly handle the case
4554 where insert-default-directory is nil.
4555 (Fread_file_name): Always return an empty string if the user exits
4556 with an empty minibuffer. Adapt the docstring accordingly.
4557 (syms_of_fileio): Adapt the docstring of insert-default-directory
4558 to the change in Fread_file_name.
4559
a6eeaa81 45602004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
4561
4562 * alloca.c [!alloca]: Fix the prototype for xfree.
4563
13f52ed8
KH
45642004-01-29 Kenichi Handa <handa@m17n.org>
4565
4566 * fns.c (string_char_to_byte): Optimize for ASCII only string.
4567 (string_byte_to_char): Likewise.
4568
d57625a0
JR
45692004-01-28 Peter Runestig <peter@runestig.com>
4570
4571 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
4572
a64387ee 45732004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
4574
4575 * unexmacosx.c (unexec_copy): Do not copy more than was
4576 requested to prevent overwriting during unexec.
4577
eb37b8fd
JD
45782004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4579
ce38070a
JD
4580 * process.c (sigchld_handler): Add comment about not calling malloc.
4581
eb37b8fd
JD
4582 * process.h: Add extern to synch_process_termsig.
4583
a64387ee 45842004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 4585
da75761f
SM
4586 * macterm.c (make_mac_frame, make_mac_terminal_frame):
4587 Move setting of scroll bars from make_mac_frame to
4588 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 4589
d62a265d
RS
45902004-01-26 Richard M. Stallman <rms@gnu.org>
4591
4592 * search.c (Freplace_match): Handle nonexistent
4593 back-references properly.
4594
45952004-01-03 Richard M. Stallman <rms@gnu.org>
4596
4597 * window.c (decode_any_window): New function.
4598 (Fwindow_height, Fwindow_width, Fwindow_edges)
4599 (Fwindow_pixel_edges, Fwindow_inside_edges)
4600 (Fwindow_inside_pixel_edges): Use decode_any_window.
4601
ff236419
JD
46022004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4603
4604 * process.h: synch_process_termsig new variable.
4605
4606 * callproc.c: Define synch_process_termsig.
4607 (Fcall_process): Initiate synch_process_termsig to zero and
4608 check if non-zero and get signal name after subprocess has ended.
4609
4610 * process.c (sigchld_handler): Set synch_process_termsig
4611 if terminated by a signal. synch_process_death setting removed.
4612
4613 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
4614
41b867ea
AS
46152004-01-26 Andreas Schwab <schwab@suse.de>
4616
4617 * print.c (print_preprocess): Declare size as EMACS_INT to not
4618 lose bits.
4619 (print_object): Likewise.
4620 * alloc.c (Fpurecopy): Likewise.
4621
a08084ff
LT
46222004-01-25 Luc Teirlinck <teirllm@auburn.edu>
4623
4624 * window.c (Fwindow_minibuffer_p): Doc fix.
4625
b19ac475
JY
46262004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
4627
4628 * editfns.c (Fformat): Make both passes accept the same set of flags.
4629
fe905025
KH
46302004-01-23 Kenichi Handa <handa@m17n.org>
4631
4632 * fns.c (Fmd5): If OBJECT is a buffer different from the current
4633 one, set buffer to OBJECT temporarily.
4634
438fc6c0
SM
46352004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4636
455316e2
SM
4637 * keyboard.c (kbd_buffer_gcpro): Remove.
4638 (kbd_buffer_store_event, clear_event, Fdiscard_input)
4639 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
4640 Don't initialize and/or maintain the variable any more. It was made
4641 redundant by my commit of 2003-06-15.
4642
438fc6c0
SM
4643 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
4644
5335a4ee
JD
46452004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4646
4647 * lisp.h: Add undef DECL_ALIGN.
4648
dcdaeebc
SM
46492004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4650
4651 * process.c (wait_reading_process_input) [SYNC_INPUT]:
4652 Check interrupt_input_pending explicitly.
4653
4654 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
4655
4656 * keyboard.c (handle_async_input): New fun,
4657 extracted from input_available_signal.
4658 (input_available_signal, reinvoke_input_signal): Use it.
4659
9076a823
SM
46602004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
4661
d7107586
SM
4662 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
4663
4664 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
4665 manipulation macros for when tags are in the lower bits.
4666 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
4667 (DECL_ALIGN): New macro.
4668 (DEFUN): Use it.
4669
4670 * lisp.h [ENABLE_CHECKING]: Don't force union type.
4671
4672 * s/darwin.h (__attribute__): Remove outdated workaround.
4673
4674 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
4675
4676 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
4677 Don't check range of malloc address.
4678 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
4679
9076a823
SM
4680 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
4681
4682 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
4683
ba029065
KH
46842004-01-19 Kenichi Handa <handa@m17n.org>
4685
4686 * fontset.c (fontset_font_pattern): Fix previous change.
4687
7af0e8d7
MB
46882004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
4689
4690 * xdisp.c (Voverflow_newline_into_fringe)
4691 (move_it_in_display_line_to, redisplay_internal)
4692 (update_window_fringes, redisplay_window, display_line, window):
4693 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
4694 that it compiles without a window-system.
4695 * dispnew.c (direct_output_for_insert, update_window): Likewise.
4696
77a9cf69
KS
46972004-01-16 Kim F. Storm <storm@cua.dk>
4698
4699 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
4700
a64387ee 4701 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
4702 buffer_local_flags for indicate_buffer_boundaries.
4703 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
4704 default- variable for it.
4705
4706 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
4707 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 4708 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
4709 overflowing newlines into right fringe.
4710 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
4711 and indicate_bottom_line_p for buffer boundaries and scrolling.
4712 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
4713 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
4714 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
4715 and HOLLOW_SQUARE_BITMAP.
4716 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
4717 Add prototypes.
4718
4719 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
4720 instead of related indicator fields.
4721 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
4722 (direct_output_for_insert): Handle exact width lines like
4723 contined lines. Call update_window_fringes.
4724 (update_window): Call update_window_fringes.
4725 (scrolling_window): Don't skip desired rows with changed bitmaps.
4726 Check if fringe bitmaps changes when assigning scrolled rows.
4727
4728 * xdisp.c (Voverflow_newline_into_fringe): New variable.
4729 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
4730 (move_it_in_display_line_to): Overflow newline into fringe for
4731 rows that are exactly as wide as the window.
4732 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
4733 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
4734 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
4735 (fringe_bitmaps): Add new bitmaps.
4736 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
4737 Select proper bitmap for cursor in fringe when appropriate.
4738 Handle alignment of bitmap to top or bottom of row.
4739 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
4740 done by update_window_fringes.
4741 (update_window_fringes, draw_window_fringes): New functions.
4742 (redisplay_internal): Call update_window_fringes in case only
4743 cursor row is updated.
4744 (redisplay_window): Call update_window_fringes.
4745 Explicitly call draw_window_fringes if redisplay was done using
4746 the current matrix or the overlay arrow is in the window.
4747 (try_window_reusing_current_matrix): Mark scrolled rows for
4748 fringe update (to update buffer-boundaries / scrolling icons).
4749 (find_last_unchanged_at_beg_row): Handle exact width lines line
4750 continued lines.
4751 (display_line): Overflow newline into fringe for rows that are
4752 exactly as wide as the window. Don't append space for newline
d7107586 4753 in this case.
77a9cf69
KS
4754 (notice_overwritten_cursor): Explicitly clear cursor bitmap
4755 in fringe as if it had been overwritten.
4756 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 4757 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
4758 void-text-area-pointer as user options.
4759 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 4760
77a9cf69
KS
4761 * xterm.c (x_update_window_end): Call draw_window_fringes.
4762 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4763 in row instead of actually drawing fringe bitmaps.
4764 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4765 (x_draw_window_cursor): Draw cursor in fringe.
4766
4767 * w32term.c (x_update_window_end): Call draw_window_fringes.
4768 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4769 in row instead of actually drawing fringe bitmaps.
4770 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4771 (w32_draw_window_cursor): Draw cursor in fringe.
4772
4773 * macterm.c (x_update_window_end): Call draw_window_fringes.
4774 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4775 in row instead of actually drawing fringe bitmaps.
4776 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4777 (mac_draw_window_cursor): Draw cursor in fringe.
4778
a633a954
JD
47792004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4780
4781 * xterm.c (handle_one_xevent): Don't handle characters that are part
4782 of an old style (XLookupString) compose sequence.
4783
80460525
KH
47842004-01-15 Kenichi Handa <handa@m17n.org>
4785
4786 * search.c (Freplace_match): Use make_multibyte_string or
4787 make_unibyte_string according to the buffer multibyteness.
4788
7fc34f85
SM
47892004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
4790
4791 * alloc.c (struct interval_block, struct string_block)
4792 (struct symbol_block, struct marker_block, live_string_p)
4793 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
4794 Better preserve alignment for objects in blocks.
4795 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
4796
4797 * lread.c (defvar_per_buffer): Remove dead declaration.
4798
4799 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
4800 space size.
4801
66070bd1
JD
48022004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4803
4804 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
4805 if a key press should pop down. Only pop down if a key is pressed
4806 outside the menu/dialog.
4807 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
4808 popup_get_selection.
4809 (create_and_show_dialog): Pass 1 for down_on_keypress to
4810 popup_get_selection.
4811
de7515d6
JD
48122004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4813
4814 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
4815 BLOCK/UNBLOCK_INPUT.
4816
160b1b50
JD
48172004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4818
4819 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
4820 specified.
4821
3a9f36e6
KH
48222004-01-08 Kenichi Handa <handa@m17n.org>
4823
4824 * editfns.c (Fformat): Fix '&' to '&&'.
4825
3803eb32
AS
48262004-01-08 Andreas Schwab <schwab@suse.de>
4827
4828 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
4829 size if PSEUDOVECTOR_FLAG is set.
4830
9da88f37
KH
48312004-01-07 Kenichi Handa <handa@m17n.org>
4832
74ac5074
KH
4833 * charset.c (Fdeclare_equiv_charset): Fix docstring.
4834
9da88f37
KH
4835 * fontset.c (fontset_ref_via_base): Fix previous change.
4836
05faee07
KS
48372004-01-07 Kim F. Storm <storm@cua.dk>
4838
4839 * process.c (read_process_output): Only activate adaptive
4840 buffering if we read less than 256 bytes at a time.
4841
634910c8
KS
48422004-01-06 Kim F. Storm <storm@cua.dk>
4843
4844 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
4845 object and image object. Return glyph width and height.
4846 (mode_line_string, marginal_area_string): Ditto.
4847
4848 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4849 (marginal_area_string): Fix prototypes.
4850
4851 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 4852 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
4853 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
4854
4855 * keyboard.c (make_lispy_position): Use modified mode_line_string,
4856 buffer_posn_from_coords, and marginal_area_string functions to
4857 include both string object and image object in the lispy position.
4858 Also add actual glyph width and height to position.
4859 (read_key_sequence): Use real buffer position from mouse
4860 event to find keymap property even when click is in marginal area.
4861
4862 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
4863 mode_line_string and marginal_area_string functions to handle
4864 both string object and image object properties.
d7107586 4865
57951c2e
AS
48662004-01-06 Andreas Schwab <schwab@suse.de>
4867
4868 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
4869 character.
4870
181e6a61
AS
48712004-01-02 Andreas Schwab <schwab@suse.de>
4872
d7107586
SM
4873 * macterm.c (emacs_options, x_initialized, same_x_server):
4874 Remove unused (and duplicated) definitions.
181e6a61 4875
31e0fbdd
KS
48762004-01-02 Kim F. Storm <storm@cua.dk>
4877
4878 * process.h (struct Lisp_Process): New members for adaptive read
4879 buffering: adaptive_read_buffering, read_output_delay, and
4880 read_output_skip.
4881
4882 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
4883 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
4884 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
4885 (process_output_delay_count, process_output_skip): New vars.
4886 (Vprocess_adaptive_read_buffering): New variable.
4887 (make_process): Initialize adaptive read buffering members.
4888 (Fstart_process): Set adaptive_read_buffering member.
4889 (deactivate_process): Cleanup adaptive read buffering.
4890 (wait_reading_process_input): Temporarily omit delayed
4891 subprocesses from the set of file descriptors to read from;
4892 adjust the select timeout if we skipped any subprocesses.
4893 (read_process_output): Increase adaptive read buffering delay if
4894 we read less than a full buffer; reduce delay when we read a
4895 full buffer.
4896 (send_process): Simplify using local Lisp_Process var.
4897 Reset adaptive read buffering delay after write.
4898 (init_process): Initialize process_output_delay_count and
4899 process_output_skip.
4900 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
4901
68c6a789
JR
49022004-01-01 Jason Rumney <jasonr@gnu.org>
4903
d7107586 4904 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 4905
3f70fe82
LT
49062003-12-30 Luc Teirlinck <teirllm@auburn.edu>
4907
4908 * print.c (Ferror_message_string): Add hyperlink in the docstring
4909 to the definition of `signal' in the Elisp manual.
4910 * eval.c (Fsignal): Ditto.
4911
b6189c3b 49122003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
4913
4914 * fns.c (internal_equal): Return t for two NaN arguments.
4915
7abd90ea
RS
49162003-12-29 Richard M. Stallman <rms@gnu.org>
4917
4918 * data.c (store_symval_forwarding): Handle setting
4919 default-fill-column, etc., by changing the value in
4920 buffers that use the default.
4921
4922 * minibuf.c (Fset_minibuffer_window): Doc fix.
4923
4924 * fileio.c (choose_write_coding_system): Ignore auto_saving
4925 if using the visited file for auto saves.
4926 (Fwrite_region): Don't update SAVE_MODIFF
4927 if auto-saving in visited file.
4928
3e7cfcdc
KH
49292003-12-29 Kenichi Handa <handa@m17n.org>
4930
4931 * dispextern.h (face_font_available_p): Extern it.
4932
4933 * fontset.c (Voverriding_fontspec_alist): New variable.
4934 (lookup_overriding_fontspec): New function.
d7107586 4935 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
4936 (fontset_font_pattern): Likewise.
4937 (regulalize_fontname): New function.
4938 (Fset_fontset_font): Call regulalize_fontname.
4939 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
4940 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
4941 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
4942
4943 * xfaces.c (face_font_available_p): New function.
4944
7abd90ea
RS
49452003-12-28 Richard M. Stallman <rms@gnu.org>
4946
4947 * buffer.c (Fother_buffer): Don't crash if BUF is nil
4948 or if its name is nil.
4949
4950 * buffer.c (Fkill_buffer): Don't delete auto-save file
4951 if it's the same as the visited file.
4952
de1d1a40
LT
49532003-12-28 Luc Teirlinck <teirllm@auburn.edu>
4954
4955 * coding.c (Fcheck_coding_system): Doc fix.
4956
204fb75e
KS
49572003-12-28 Kim F. Storm <storm@cua.dk>
4958
4959 * Makefile.in (eval.o): Depend on dispextern.h.
4960
4961 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
4962 image glyph using image's ascent.
4963 (mode_line_string): Return image glyph as object clicked on.
4964 Adjust y0 for image glyph using image's ascent.
4965
4966 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
4967 (struct glyph): New members, ascent and descent. Used to save
4968 this glyph's ascent and descent, instead of having.
4969 (struct glyph): Declare member face_id using FACE_ID_BITS.
4970 (find_hot_spot): Add prototype.
4971
4972 * keyboard.c (Qimage): Remove extern (now in lisp.h).
4973 (QCmap): Declare extern.
4974 (make_lispy_position): When position is inside image hot-spot,
4975 use hot-spot element's id as posn element.
4976
4977 * lisp.h (IMAGEP): New macro to test for image object type.
4978 (Qimage): Declare extern.
4979
4980 * macfns.c (Qimage): Remove extern (now in lisp.h).
4981 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4982
4983 * macterm.c (Qface, Qmouse_face): Remove unused externs.
4984
4985 * w32fns.c (Qimage): Remove extern (now in lisp.h).
4986 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4987
4988 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
4989
4990 * w32term.c (Qface, Qmouse_face): Remove unused externs.
4991
4992 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
4993 pointer types.
4994 (Qrelative_width, Qalign_to): Remove unused variables.
4995 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
4996 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
4997 image maps.
d7107586 4998 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
4999 new dx and dy args.
5000 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5001 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5002 than row's ascent and height, to get sensible height on tall rows.
5003 (build_desired_tool_bar_string): Remove Qimage extern.
5004 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5005 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5006 image glyph is alone on the last line.
5007 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 5008 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 5009 (on_hot_spot_p): New function to check if position is inside an
d7107586 5010 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
5011 (find_hot_spot): New function to search for image hot-spot.
5012 (Flookup_image_map): New defun to search for image hot-spot.
5013 (define_frame_cursor1): New aux function to determine frame pointer.
5014 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5015 Handle `pointer' text property and :pointer image property to
5016 control frame pointer shape. Detect image hot-spots for pointer
5017 and help_echo properties. Use define_frame_cursor1.
5018 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 5019 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
5020 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5021
5022 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5023
5024 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5025 (Qimage): Remove extern (now in lisp.h).
5026 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5027
5028 * xmenu.c (show_help_event): Remove unused code.
5029
5030 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5031 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5032 row's ascent and descent, to get a sensible height on tall rows.
5033
fc052137
LT
50342003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5035
5036 * minibuf.c (Fcompleting_read): Undo previous change.
5037
a64387ee 50382003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
5039
5040 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5041 Arguments GCPRO'ed in call to file name handler.
5042
56ffd194
TTN
50432003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5044
5045 * termcap.c (tgetst1): Scan for "%pN"; if all
5046 N are continuous in [1,9], remove all "%pN".
5047
5202d23d
JD
50482003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5049
f26fab36
JD
5050 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5051
5202d23d
JD
5052 * xfaces.c (lface_fully_specified_p): Take into account that
5053 MAC OS always have unspecified stipple.
5054
8babaa59
TTN
50552003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5056
5057 * tparam.c (tparam1): Add handling for `%pN', which
5058 means use param N for the next substitution.
5059
2d176448
TTN
50602003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5061
5062 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5063 In case `frame' is nil, consult the selected frame.
5064 (Fcolor_supported_p): Likewise.
5065
adb0708c
LT
50662003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5067
000eeb15
LT
5068 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5069 Doc fixes.
0dc72b11
LT
5070
5071 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5072 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
5073 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5074 Doc fix.
5075 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5076 read_minibuf.
5077 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 5078 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 5079
2e4d132b
KH
50802003-12-03 Kenichi Handa <handa@m17n.org>
5081
5082 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5083 encoding sequence.
5084
3999c705
KH
50852003-12-01 Kenichi Handa <handa@m17n.org>
5086
5087 * composite.c (syms_of_composite): Don't make the compostion hash
5088 table week.
5089
d344ecbb
LT
50902003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5091
5092 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5093 * textprop.c (Fget_char_property_and_overlay): New function.
5094 (syms_of_textprop): Defsubr it.
5095
03d6484e
JD
50962003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5097
019b1f0e
JD
5098 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5099 to compile on terminal configuration.
5100
03d6484e
JD
5101 * fileio.c (Fread_file_name): Check use_file_dialog also before
5102 calling Fx_file_dialog.
5103
5104 * fns.c: use_file_dialog: New variable.
5105 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5106
442d3fd0
KS
51072003-11-29 Kim F. Storm <storm@cua.dk>
5108
5109 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5110 (syms_of_msdos): Don't intern and staticpro them.
5111
0f6a07a8
KS
51122003-11-27 Kim F. Storm <storm@cua.dk>
5113
5114 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5115 coordinates relative to glyph at posn. If glyph is an image,
5116 return that as object at posn. Callers changed.
5117 (mode_line_string, marginal_area_string): Calculate and return
5118 pixel coordinates relative to glyph. Callers changed.
5119
5120 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5121 (marginal_area_string): Fix prototypes.
5122 (window_box_left_offset, window_box_right_offset): Add prototypes.
5123
5124 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5125 Remove prototypes.
5126
5127 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5128
5129 * keyboard.c (make_lispy_position): Add x and y coordinates
5130 relative to the current glyph as 7th element of position.
5131 If glyph is an image, return it in the object element.
5132 (read_key_sequence): Skip checks for keymap property in cases
5133 where POSN_STRING is not a string (e.g. an image).
5134
5135 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5136 (Vshow_text_cursor_in_void): New variable.
5137 (glyph_to_pixel_coords): Don't use negative hpos.
5138 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5139 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 5140 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
5141 (calc_pixel_width_or_height): New aux function, implementing
5142 pixel based artihmetic for glyph widths and heights.
5143 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5144 :width, :height, :align-to, and :ascent, thus allowing these to
5145 be specified in pixels as well as multiples of characters.
5146 Don't produce stretch glyphs with zero width or height.
5147 (get_specified_cursor_type): Declare static.
5148 (get_window_cursor_type): Declare static. Add glyph arg to be
5149 able to know when cursor is on an image; always substitute
5150 hollow-box cursor for filled-box cursor on images, to avoid
5151 negative images and flicker when blinking the cursor.
5152 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5153 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5154 than vertical scroll-bar cursor in display margins.
5155 (note_mouse_highlight): Use non-text cursor rather than text
5156 cursor in fringes and over images in the text area.
5157 Use non-text cursor when mouse pointer is outside editable text,
5158 i.e. in the void after end-of-line or end-of-buffer; this was
5159 already done for W32, but is now standard for all systems --
5160 user can toggle show-text-cursor-in-void to get old behaviour.
5161 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5162 Vdisplay_pixels_per_inch.
5163
00498bfc
AS
51642003-11-25 Andreas Schwab <schwab@suse.de>
5165
5166 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5167 EMACS_INT to not lose bits.
5168 (Ffillarray): Don't set bits beyond the size of a bool vector.
5169
edaa824d
KS
51702003-11-25 Kim F. Storm <storm@cua.dk>
5171
5172 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5173 define this defun on systems that cannot use stderr as lvalue.
5174
74d6f539
GM
51752003-11-24 Gerd Moellmann <gerd@gnu.org>
5176
5177 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5178 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5179 ld's default is incompatible with unexec.
5180
6a1ff3ba
KS
51812003-11-23 Kim F. Storm <storm@cua.dk>
5182
63dc7c6b
KS
5183 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5184 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5185 (Fforce_window_update): New defun.
5186 (syms_of_window): Defsubr it.
5187 (Fset_window_margins, Fset_window_fringes): Doc fix.
5188
6a1ff3ba
KS
5189 * print.c (Fredirect_debugging_output): New defun.
5190 (syms_of_print): Defsubr it.
5191
aef109b7
LT
51922003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5193
5194 * fns.c (Fset_char_table_parent): Doc fix.
5195
6a1ff3ba 51962003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
5197
5198 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5199 for glyph clicked on, rather than (unused) pixel positions.
5200 (mode_line_string, marginal_area_string): Change X and Y args to
5201 pointers for returning actual row/column for glyph clicked on.
5202 Simplify and optimize loops.
5203
aef109b7
LT
5204 * dispextern.h (mode_line_string, marginal_area_string):
5205 Update prototypes.
63ccbe21
KS
5206
5207 * keyboard.c (make_lispy_position): New function for generating
5208 mouse click positions from frame and pixel coordinates.
5209 Enhanced to return buffer position and actual row/column for
5210 events outside the text area using updated mode_line_string and
5211 marginal_area_string functions.
5212 Return left-fringe and right-fringe clicks as such, rather than
5213 clicks in text area.
5214 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5215 pixel_to_glyph_coords, as we never use the results.
5216 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5217 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5218 Eliminate unused code in WHEEL_EVENT handling.
5219 (make_lispy_movement): Use make_lispy_position.
5220
5221 * window.c (coordinates_in_window): Remove redundant tests.
5222 Fix returned X pixel value for left-margin.
5223
5224 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5225 mode_line_string and marginal_area_string parameters.
5226
a64387ee 52272003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 5228
d7107586
SM
5229 * w32.c (struct the_group, getgrgid): Add.
5230 * mac.c (struct my_group, getgrgid): Add.
aef109b7 5231
3dbf3426
LT
52322003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5233
5234 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5235
cae8ddbb 52362003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 5237
d7107586
SM
5238 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5239 include in call to file name handler. Optionally translate numeric
5240 UID and GID to strings. Update docstring.
5241 (directory_files_internal): Add parameter ID-FORMAT.
5242 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5243 include in call to file name handler and call to
5244 directory_files_internal. Update Docstring.
5245 (Fdirectory_files): Add dummy parameter in call to
5246 directory_files_internal.
5247 * lisp.h (Qinteger): Add.
5248 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5249 (Ffile_attributes): Add parameter.
5250 * data.c (Qinteger): Export.
cae8ddbb 5251
2550b848
LT
52522003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5253
3dbf3426 5254 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 5255
88380018
KS
52562003-11-19 Kim F. Storm <storm@cua.dk>
5257
5258 * xdisp.c (init_iterator): Initialize it->start to position
5259 before reseating (in case start position is invisible).
5260 (init_to_row_start): Set it->start to row-start.
5261 (redisplay_window): Accept optional_new_start if start position
5262 is invisible (in which case IT_CHARPOS overshoots PT).
5263 (display_line): Setup row->start from it->start (rather than
5264 it->current which is wrong if first char on line is invisible).
5265 When done, reseat it->start to it->current (= start of next row).
5266 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5267 is only partially visible.
5268
5269 * dispextern.h (struct it): New member start.
5270
854c1a59
SM
52712003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5272
455316e2
SM
5273 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5274 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5275 of block_index outside of the macro call.
5276 (Fgarbage_collect): Remove null code.
5277
5278 * m/amdx86-64.h: Don't redefine XPNTR.
5279
854c1a59
SM
5280 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5281 of VALMASK.
5282
5283 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5284 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5285 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5286
5287 * lisp.h (VALMASK): Only define for non-union type.
5288 (MARKBIT): Remove.
5289 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5290 (XTYPE): Define unconditionally.
5291 (XSETTYPE): Remove one more remnant.
5292 (EQ): Define differently for the union and non-union cases.
5293 (INTMASK): New bit mask.
5294 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5295 (GC_EQ): Delegate to EQ.
5296
5297 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5298
a0c6ef2d
JD
52992003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5300
5301 * xterm.c (x_window_to_scroll_bar): Move check of display to
5302 where window_id is compared.
5303
859492c4
KS
53042003-11-17 Kim F. Storm <storm@cua.dk>
5305
5306 * dispextern.h (struct it): New member first_vpos.
5307
5308 * xdisp.c (start_display): Set it->first_vpos.
5309 (try_window_id): Use first_vpos to start display in first _text_
5310 line if no reusable lines at start of window with header line.
5311
810f2256
JD
53122003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5313
7c402969 5314 * w32fns.c (XPutPixel):
854c1a59
SM
5315 * w32bdf.c (w32_init_bdf_font):
5316 * sunfns.c (sel_read):
5317 * process.c (Fmake_network_process):
5318 * frame.c (store_frame_param):
5319 * fontset.c (Fset_fontset_font):
5320 * emacs.c (shut_down_emacs):
a64387ee 5321 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 5322
a32e9bfd
JD
5323 * config.in: Regenerate.
5324
810f2256
JD
5325 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5326 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5327 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5328 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5329 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5330
5331 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5332
5333 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5334 (XTmouse_position, handle_one_xevent): Pass Display* to
5335 x_window_to_scroll_bar.
5336 (x_window_to_scroll_bar): Take a Display* argument.
5337 Check that display for frame is equal to Display* argument.
854c1a59 5338 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
5339 x_display_info_for_display instead. Use Display in xev instead
5340 of GDK_DISPLAY.
5341 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 5342 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
5343 (x_connection_closed): Call xg_display_close for GTK.
5344 (x_term_init): Call xg_display_open for additional displays.
5345 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5346 for GTK.
5347
5348 * xmenu.c (single_menu_item, mouse_position_for_popup)
5349 (x_activate_menubar): Formatting adjustments.
5350
5351 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5352 adjustments.
5353
5354 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5355 (xg_display_close, xg_create_default_cursor)
5356 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5357 handling.
854c1a59
SM
5358 (xg_left_ptr_cursor): Remove.
5359 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
5360 cursor here.
5361 (xg_win_to_widget): Take Display* argument, call
5362 gdk_xid_table_lookup_for_display.
5363 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5364 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5365 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5366 in FRAME_X_DISPLAY_INFO.
5367 (xg_get_scroll_id_for_window): Take Display* argument.
5368 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 5369 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 5370
78819ebb
KS
5371 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5372 Display* argument.
5373 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 5374
0b03cc78
JD
53752003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5376
5377 * xterm.c (x_detect_focus_change): Do not change focus frame for
5378 Enter/LeaveNotify if the current focus frame has explicit focus.
5379
77e688fa
KS
53802003-11-14 Kim F. Storm <storm@cua.dk>
5381
5382 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5383 is active and first glyph is only partially visible.
854c1a59 5384
dd429b03
KH
53852003-11-13 Kenichi Handa <handa@m17n.org>
5386
5387 * xdisp.c (select_frame_for_redisplay): New function.
5388 (redisplay_internal): Record also selected_frame for
5389 unwind_redisplay. Call select_frame_for_redisplay before
5390 redrawing each frame.
5391 (unwind_redisplay): Argument changed to a cons.
5392
6d9266f4
LT
53932003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5394
5395 * fns.c (Fstring_to_multibyte): Doc fix.
5396
80060eb3
KH
53972003-11-11 Kenichi Handa <handa@m17n.org>
5398
5399 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5400
74305183
JD
54012003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5402
5403 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5404 program specified positions.
5405
cfda993e
JD
54062003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5407
5408 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5409
df211069
KH
54102003-11-08 Kenichi Handa <handa@m17n.org>
5411
5412 * Makefile.in (lisp): Add kannada.el.
5413 (shortlisp): Likewise.
5414
4307d534
KH
54152003-11-07 Kenichi Handa <handa@m17n.org>
5416
854c1a59
SM
5417 * coding.c (coding_allocate_composition_data):
5418 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
5419 (coding_restore_composition): Detect invalid composition data.
5420 Give Fstring and Fvector a Lispy integer, not C int.
5421
854c1a59
SM
54222003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5423
5424 * floatfns.c (Flogb): Don't use VALMASK.
5425
5426 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5427 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5428
5429 * lisp.h (XINT): Move the cast to clarify what is going on.
5430 (GCTYPEMASK, XSETTYPE): Remove.
5431 (XGCTYPE): Make it an alias of XTYPE.
5432
d04103a1
JD
54332003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5434
5435 * xterm.c (x_term_init): Fix formatting.
5436
da18b5ac
JD
54372003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5438
78819ebb
KS
5439 * gtkutil.h (xg_have_tear_offs): Declare.
5440 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
5441
5442 * gtkutil.c: Remove variable xg_did_tearoff.
5443 (xg_have_tear_offs): New function.
5444 (tearoff_remove): Just decrease xg_detached_menus.
5445 (tearoff_activate): Increase xg_detached_menus and call
5446 tearoff_remove when tearoff is removed.
854c1a59 5447 (xg_keep_popup): Remove function.
da18b5ac
JD
5448 (create_menus): Give add_tearoff_p as argument to recursive
5449 call to create_menus.
5450 (xg_create_widget): Use variables instead of multiple
5451 strcmp. Tell create_menus to create tear off only for
5452 menu bar menus.
5453 (xg_update_menubar): Change title for a detached menu also.
5454 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5455 of deep_p.
5456 (xg_initialize): Initialize xg_detached_menus, remove
5457 initialization of xg_did_tearoff.
5458
5459 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5460 xg_have_tear_offs returns non-zero.
5461 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5462 call to xg_keep_popup.
5463
64d4923e
AC
54642003-11-01 Andrew Choi <akochoi@shaw.ca>
5465
5466 * macterm.c (XTread_socket): Handle menubar selection and grow
5467 window only for mouseDown events.
854c1a59 5468
6cc8bc07
JD
54692003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5470
5471 * xterm.c (x_term_init): For GTK part, increase x_initialized
5472 to check for more than one display. Use error instead of return 0.
5473
043131c4
AC
54742003-10-31 Andrew Choi <akochoi@shaw.ca>
5475
854c1a59 5476 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
5477 (copy_dysymtab): Call it.
5478
bdda99a1
LT
54792003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5480
5481 * eval.c (Fdefvaralias): Doc fix.
5482
800f42ff 54832003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
5484
5485 * data.c (Fsetplist): Doc fix.
5486
ef35b389
LK
54872003-10-14 Lute Kamstra <lute@gnu.org>
5488
5489 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 5490
ef35b389 54912003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 5492
07107abc
KS
5493 * window.c (Fset_window_margins): Simplify arg checking.
5494
f7005886
RS
54952003-10-13 Richard M. Stallman <rms@gnu.org>
5496
5497 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5498 (print_partial_compiled_pattern): Replace assert with a printout.
5499 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5500
5501 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5502
5503 * window.c (Fset_window_margins): Allow only integers as args.
5504 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5505 Doc fixes.
5506
9c0c2af5
LK
55072003-10-13 Lute Kamstra <lute@gnu.org>
5508
5509 * window.c (Fset_window_fringes): Elaborate docstring.
5510
3f080e4e
AC
55112003-10-12 Andrew Choi <akochoi@shaw.ca>
5512
854c1a59 5513 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 5514
3f080e4e
AC
5515 * s/darwin.h (GC_MARK_STACK): Define.
5516
0aa513ed
JD
55172003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5518
5519 * window.c (shrink_windows): New function.
5520 (size_window): Call shrink_windows to calculate window sizes when
5521 shrinking frame with more than one window.
5522
6aa8858a
KS
55232003-10-12 Kim F. Storm <storm@cua.dk>
5524
5525 * xdisp.c (compute_fringe_widths): Doc fix.
5526
c2164d91
KH
55272003-10-08 Kenichi Handa <handa@m17n.org>
5528
854c1a59 5529 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 5530
f82ac129
KH
55312003-10-07 Kenichi Handa <handa@m17n.org>
5532
5533 * coding.c (Qcoding_system_define_form): New variable.
5534 (syms_of_coding): Intern and staticpro it.
5535 (Fcheck_coding_system): Try to autoload the definition of
5536 CODING-SYSTEM.
5537
9296c947
LT
55382003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5539
5540 * fns.c (Frequire): Doc fix.
5541
c1f0671a
JD
55422003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5543
3d8c3826
JD
5544 * xfns.c (Fx_send_client_event): New function as a base for
5545 manipulating extended window manager hints.
6dc15d98 5546 (Fx_send_client_event): Remove unused variable s.
3d8c3826 5547
068ae0fd
JD
5548 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5549 that function is removed.
5550
5551 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5552 x/y_pixels_outer_diff.
5553 (x_check_expected_move): Calculate move_offset_left/top.
5554
5555 * xterm.h (struct x_output): New members: move_offset_top/left.
5556
854c1a59 5557 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
5558 call x_set_offset directly.
5559
5560 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
5561
96f09305
JD
5562 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
5563
5564 * xterm.c (x_delete_display): Free font names and font_encoder
5565 in dpyinfo->font_table.
5566
854c1a59
SM
5567 * xfns.c (Fx_close_connection): Only call XFreeFont here.
5568 Move xfree of font names to x_delete_display.
96f09305 5569
c1f0671a
JD
5570 * xterm.h (struct x_display_info): New member, wm_type.
5571 (struct x_output): New members, expected_top/left and
5572 check_expected_move.
5573
5574 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
5575 is received.
854c1a59
SM
5576 (handle_one_xevent): Rename x_check_expected_move from
5577 x_check_fullscreen_move.
c1f0671a
JD
5578 (x_set_offset): Only add WM decoration sizes to modified_top/left
5579 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 5580 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
5581 Removed fullscreen specific code. Use check_expected_move,
5582 expected_left/top instead. Also, set wm_type.
5583 (x_term_init): Initialize wm_type to unknown.
5584
5585 * frame.c (x_fullscreen_move): Remove addition of WM decoration
5586 sizes to move_x/y.
5587
be2fdba9
KH
55882003-10-03 Kenichi Handa <handa@m17n.org>
5589
5590 * macterm.c (x_load_font): Clear all members of FONTP before start
5591 filling them.
5592
55932003-10-02 Kenichi Handa <handa@m17n.org>
5594
5595 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
5596 before calling find_ccl_program_func. Call find_ccl_program_func
5597 only when fontp->font_encoder is not NULL.
5598
5599 * xterm.c (x_load_font): Clear all members of FONTP before start
5600 filling them.
5601
26a6e439
JPW
56022003-10-03 John Paul Wallington <jpw@gnu.org>
5603
5604 * keymap.c (map_keymap): Don't abort when binding is a vector.
5605
0d4c2dc2
JR
56062003-10-02 Jason Rumney <jasonr@gnu.org>
5607
854c1a59
SM
5608 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
5609 Sync dependencies with Makefile.in.
a63cf46f
JR
5610 (alloca.o): Remove.
5611
0d4c2dc2
JR
5612 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
5613 filling them.
5614
5615 * w32bdf.c (w32_load_bdf_font): Likewise.
5616
ab8f7d5c
RS
56172003-09-30 Richard M. Stallman <rms@gnu.org>
5618
5619 * term.c (set_tty_color_mode): Calculate current_mode_spec
5620 regardless of value of VAL.
5621
854c1a59 5622 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
5623 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
5624 Handle over_used when splitting UNDER.
5625
a64387ee 56262003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
5627
5628 * regex.c (regex_compile): Free the stack when returning from function.
5629
3413f972
KH
56302003-09-28 Kenichi Handa <handa@m17n.org>
5631
5632 * fontset.c (Finternal_char_font): Change return value to
5633 cons (FONT-NAME . GLYPH-CODE).
5634
a6eeaa81 56352003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
5636
5637 * term.c (tty_setup_colors): Treat any negative argument as -1.
5638
f98ddc99
KH
56392003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
5640
5641 * process.c (send_process): Delete unused temp_buf.
5642
66c8f1a8
DL
56432003-09-26 Dave Love <fx@gnu.org>
5644
5645 * xterm.c (x_bitmap_mask): Declare.
5646
ca716c26
DL
56472003-09-25 Dave Love <fx@gnu.org>
5648
5649 * Makefile.in (fns.o): Depend on md5.h.
5650
fbe57420
KS
56512003-09-25 Kim F. Storm <storm@cua.dk>
5652
5653 * window.c (set_window_buffer): Fix redisplay problems when
5654 switching between buffers with different display margin widths.
5655
ef6ae4ff
KS
56562003-09-23 Kim F. Storm <storm@cua.dk>
5657
5658 * process.c (set_socket_option): Fix :bindtodevice option.
5659 (Fset_network_process_option): Update process contact list when
5660 setting option succeeds.
5661 (Fmake_network_process): Doc fix.
5662
68e03c1c
DL
56632003-09-23 Dave Love <fx@gnu.org>
5664
7146d1c1 5665 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 5666
a6eeaa81 56672003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
5668
5669 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
5670 color mode is an integer number (it could be -1).
5671
8fe7d8c8
RS
56722003-09-22 Richard M. Stallman <rms@gnu.org>
5673
5674 * intervals.c (graft_intervals_into_buffer): Correct the main loop
5675 in the case where OVER is longer than UNDER.
5676
2f71b5ea
MY
56772003-09-22 Masatake YAMATO <jet@gyve.org>
5678
7146d1c1 5679 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 5680 `vertical_type'.
7146d1c1 5681
0c4da023
KS
56822003-09-21 Kim F. Storm <storm@cua.dk>
5683
5684 * frame.c (Vdefault_frame_scroll_bars): New variable.
5685 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
5686 (syms_of_frame): DEFVAR_LISP it, and initialize according to
5687 window-system default scroll bar position.
5688
b648413b
KS
5689 * window.c (Fwindow_scroll_bars): Doc fix.
5690
8f5b9e34
JD
56912003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5692
854c1a59 5693 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 5694
b0f23edf
RS
56952003-09-19 Richard M. Stallman <rms@gnu.org>
5696
5697 * atimer.h: Don't include lisp.h.
5698 (P_): Define it here (as well as elsewhere).
5699
5700 * print.c (Fprin1_to_string): Move the PRINTPREPARE
5701 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
5702
5703 * data.c (Fvariable_binding_locus): New function.
5704 (syms_of_data): defsubr it.
5705 (Flocal_variable_p): Delete duplicate call to indirect_variable.
5706
e1283999
DL
57072003-09-18 Dave Love <fx@gnu.org>
5708
ad5f3636
DL
5709 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
5710
e1283999
DL
5711 * process.c (Fnetwork_interface_info): Fix type error.
5712 (Fnetwork_interface_list): Doc fix.
5713 (read_process_output, read_process_output): Delete unused var.
5714
b8c7fd71
KS
57152003-09-17 Kim F. Storm <storm@cua.dk>
5716
5717 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
5718 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
5719 (Fnetwork_interface_info): Check that ifreq struct has required
5720 fields before accessing them; this requires that those fields are
5721 defined as macros, which may be too restrictive on some platforms,
5722 but it is better than failing on other platforms.
5723 (syms_of_process): Only defsubr above fns when included.
5724
11e0a411
DL
57252003-09-17 Dave Love <fx@gnu.org>
5726
5727 * unexalpha.c: Don't include varargs.h.
5728
e9c50801
KS
57292003-09-17 Kim F. Storm <storm@cua.dk>
5730
5731 * process.c (Fset_process_sentinel): Add sentinel to childp plist
5732 for network process.
5733 (socket_options): Add `:' prefix to option names. Add optbit field.
5734 (set_socket_option): Remove no_error arg and special handling of s < 0.
5735 Return 1<<optbit for known option, 0 for unknown.
5736 Do not interpret 0 as false for boolean option (only nil).
5737 Pass failed option and value to report_file_error.
7146d1c1 5738 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
5739 (Fset_network_process_option): New function to set just one option.
5740 (Fmake_network_process): Allow :coding arg to be a cons.
5741 Allow :server arg to be an integer specifying backlog size.
5742 Remove :options arg, and allow options to be specified directly
5743 as :KEY, VALUE pairs. Parse these options before binding socket.
5744 As before, :reuseaddr t is default for a server process, but this
5745 can now be disabled by specifying :reuseaddr nil.
5746 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
5747 (init_process): Availability of network options is now checked with
5748 simpler syntax (featurep 'make-network-process :OPTION); use loop to
5749 setup features.
5750 (syms_of_process): Fix defsubr's for the replaced functions.
5751
a0fc3644
DL
57522003-09-16 Dave Love <fx@gnu.org>
5753
5754 * Makefile.in: Depend on coding.h.
5755
6df2a645
KS
57562003-09-14 Kim F. Storm <storm@cua.dk>
5757
5758 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
5759 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
5760 (syms_of_process): Defsubr them.
5761
5762 * config.in: Regenerate.
7146d1c1
SM
5763
57642003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5765
5766 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
5767 * m/news-r6.h (XUNMARK): Remove.
5768 * m/mips.h (XUNMARK): Remove.
5769 * m/mips-siemens.h (XUNMARK): Remove.
5770 * m/iris4d.h (XUNMARK): Remove.
5771 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
5772
0930c1a1
SM
57732003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5774
31003b9e
SM
5775 * lisp.h (VALBITS): Don't remove 1 for the markbit.
5776 (union Lisp_Object): Use unsigned int for types. Remove markbit.
5777 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
5778 (XTYPE): Use unsigned right-shift.
5779 (XMARKBIT, XMARK, XUNMARK): Remove.
5780
0930c1a1
SM
5781 * alloc.c (init_intervals, init_symbol, init_marker):
5782 Don't preallocate anything.
5783 (Fgarbage_collect, mark_object): Ignore the markbit.
5784
5785 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
5786
19bb0fcd 57872003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
5788
5789 * xdisp.c (pint2hrstr): New function.
5790 (decode_mode_spec): Add `%i' and `%I' specs.
5791 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
5792 for `mode-line-format'.
5793
03bb6a06
AS
57942003-09-07 Andreas Schwab <schwab@suse.de>
5795
5796 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
5797 avoid warning.
5798
a6eeaa81 57992003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 5800
0930c1a1 5801 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 5802
ed159bbf
KS
58032003-09-03 Kim F. Storm <storm@cua.dk>
5804
5805 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
5806 change (superseded by 2002-08-30 change); the default blink-off
5807 cursor is now again "no cursor".
5808
fe64a394
JR
58092003-09-01 Jason Rumney <jasonr@gnu.org>
5810
5811 * makefile.w32-in (alloca.o): Remove.
5812 (coding.o): Depend on intervals.h
5813 (emacs.o, bytecode.o): Depend on window.h
5814
c0175e24
DL
58152003-09-01 Dave Love <fx@gnu.org>
5816
5817 * Makefile.in (alloca.o): Remove commands.
5818 (coding.o): Depend on intervals.h composite.h window.h.
5819 (emacs.o): Depend on window.h keyboard.h keymap.h.
5820 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
5821 (bytecode.o): Depend on window.h.
5822
a24d4cb2
JR
58232003-08-31 Jason Rumney <jasonr@gnu.org>
5824
4bc2315e
JR
5825 * w32term.c (w32_per_char_metric): Allow cached metrics to be
5826 returned even when font_type is unknown.
5827
a24d4cb2
JR
5828 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
5829
9d35adc7
JD
58302003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5831
5832 * xterm.c (x_term_init): Initialize new fields in x_display_info.
5833
5834 * xterm.h (struct x_display_info): Add red/green/blue_bits and
5835 *_offset.
5836
5837 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
5838 calculate pixel value.
5839
6f68b035
GM
58402003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
5841
0930c1a1
SM
5842 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
5843 Don't tell redisplay display is accurate when it's actually been
5844 paused for pending input.
6f68b035 5845
4828b4d7
RS
58462003-08-29 Richard M. Stallman <rms@gnu.org>
5847
5848 * dispnew.c (adjust_glyph_matrix): Call window_box
5849 whenever W is nonzero.
5850
5851 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5852 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 5853 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
5854 Use indirect_variable to trace thru variable aliases.
5855
5856 * config.in: Updated.
5857
5858 * callint.c (Fcall_interactively): Save and restore
5859 Vthis_command, Vthis_original_command, real_this_command,
5860 and current_kboard->Vlast_command.
5861
5862 * abbrev.c (Fexpand_abbrev): Insert before deleting.
5863
e019878d
GM
58642003-08-29 Gerd Moellmann <gerd@gnu.org>
5865
5866 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
5867
85478bc6
KH
58682003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
5869
0930c1a1 5870 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
5871 (decode_coding_sjis_big5): Likewise.
5872
07ce82d3
JR
58732003-08-27 Jason Rumney <jasonr@gnu.org>
5874
d3703de3
JR
5875 * w32.c (sys_pipe): Protect against file descriptor overflow.
5876
ee4a01d1
JR
5877 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
5878
07ce82d3
JR
5879 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
5880
a64387ee 58812003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
5882
5883 * xfns.c (Vgtk_version_string): New variable.
5884 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
5885
a6eeaa81 58862003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 5887
0930c1a1 5888 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 5889
5459e42a
EZ
5890 * Makefile.in (msdos.o): Depend on intervals.h.
5891
0930c1a1 5892 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 5893
231d6cfb
JD
58942003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5895
5896 * xterm.h (struct x_display_info): New fields: client_leader_window
5897 and Xatom_wm_client_leader.
5898
5899 * xterm.c (x_initialize): Move call to x_session_initialize to ...
5900 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
5901
5902 * xsmfns.c (create_client_leader_window): New function.
5903 (x_session_initialize): Call create_client_leader_window, take
5904 dpyinfo as argument.
5905
5906 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
5907
5908 * Makefile.in (xsmfns.o): Add more depenedencies.
5909
afa88464
DL
59102003-08-21 Dave Love <fx@gnu.org>
5911
5912 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
5913
f730033e
KH
59142003-08-21 Kenichi Handa <handa@m17n.org>
5915
5916 * term.c (term_init): Fix previous change; don't rely on the
5917 length of `buffer' if TERMINFO is defined.
5918
6dca786c
DL
59192003-08-20 Dave Love <fx@gnu.org>
5920
5921 * atimer.h: Include lisp.h.
5922
5923 * lisp.h (EMACS_LISP_H): New.
5924 (popup_activated_flag): Don't declare.
5925
5926 * alloca.c: Some merging with gnulib. Change logic and doc
5927 concerning (x)malloc/(x)free -- no longer Emacs-specific.
5928 [DO_BLOCK_INPUT]: Don't include lisp.h.
5929 (xmalloc, xfree): Declare.
5930 (malloc): Don't declare.
5931
0930c1a1 5932 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
5933 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
5934 atimer.h, blockinput.h.
5935
5936 * alloc.c (lisp_align_malloc): Change type of `aligned'.
5937
78819ebb 5938 * alloca.s: Remove.
6dca786c 5939
3a06a6d9
RS
59402003-08-19 Gerd Moellmann <gerd@gnu.org>
5941
5942 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
5943 use -lncurses.
5944
5945 * term.c (term_init): Use a buffer of size 4096 for tgetent since
5946 FreeBSD returns something longer than 2044. Abort if the end of
5947 the buffer is overwritten.
5948
27eeee55
MB
59492003-08-19 Miles Bader <miles@gnu.org>
5950
5951 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
5952
2f297815
GM
59532003-08-19 Gerd Moellmann <gerd@gnu.org>
5954
f4446bbf
GM
5955 * alloc.c (lisp_align_malloc): Check for memory full when
5956 allocating ablocks, which also avoids freeing a pointer into an
5957 ablocks structure.
5958
5959 * puresize.h (BASE_PURESIZE): Increase to 1100000.
5960
0930c1a1 5961 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 5962
0e7d7aae
RS
59632003-08-16 Richard M. Stallman <rms@gnu.org>
5964
5965 * editfns.c (Fencode_time): Doc fix.
5966
59672003-08-16 David Ponce <david@dponce.com>
5968
5969 * fileio.c (Fwrite_region): Fix conditional expression to issue
5970 the right message.
5971
b6189c3b 59722003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
5973
5974 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 5975 Set default value to 1.
0e7d7aae 5976
5d551295
KH
59772003-08-15 Kenichi Handa <handa@m17n.org>
5978
5979 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
5980 what autoscaled.
5981 (best_matching_font): Once we find a better scalable font, set
5982 non_scalable_has_exact_height_p to 1.
5983 (try_font_list): Call try_alternative_families to try any family
5984 with the given registry.
5985
1661e56b
AS
59862003-08-09 Andreas Schwab <schwab@suse.de>
5987
f29181dc
AS
5988 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
5989
1661e56b
AS
5990 * print.c (print_string): Fix printing of multibyte string with
5991 nontrivial printcharfun.
5992
465aa50a
JD
59932003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5994
5995 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
5996
5997 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
5998
e430e5ba
KH
59992003-07-31 Kenichi Handa <handa@m17n.org>
6000
6001 * process.c (read_process_output): Return the actually read bytes
6002 instead of the result of decoding.
6003
97e7188e
KH
60042003-07-31 Kenichi Handa <handa@m17n.org>
6005
6006 * xterm.h (struct x_bitmap_record): New member have_mask.
6007
6008 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6009 to 0.
6010 (x_create_bitmap_from_file): Likewise.
6011 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6012 (x_destroy_all_bitmaps): Likewise.
6013 (x_create_bitmap_mask): Set have_mask member to 1.
6014
b53094d6
RS
60152003-07-30 Richard M. Stallman <rms@gnu.org>
6016
6017 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6018
631f2082
JD
60192003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6020
6021 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6022
c855f2ca
RS
60232003-07-29 Richard M. Stallman <rms@gnu.org>
6024
6025 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6026 Conditionalize XIM code on HAVE_XIM.
6027
6028 * fns.c (Fclear_string): New function.
6029 (syms_of_fns): defsubr it.
6030
b6189c3b 60312003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 6032
0930c1a1 6033 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 6034
29ea8ae9
SM
60352003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6036
6037 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6038
6039 * buffer.c (delete_all_overlays): New function.
6040 * buffer.h (delete_all_overlays): Declare.
6041 * coding.c (run_pre_post_conversion_on_str):
6042 * print.c (temp_output_buffer_setup):
6043 * fileio.c (Finsert_file_contents):
6044 * minibuf.c (get_minibuffer): Use it.
6045
1dd7ccf2
AC
60462003-07-22 Andrew Choi <akochoi@shaw.ca>
6047
6048 * unexmacosx.c (unexec_regions_sort_compare):
6049 (unexec_regions_merge): New functions. Sort and merge unexec
6050 regions before dumping them.
6051
f57bd967
DL
60522003-07-22 Dave Love <fx@gnu.org>
6053
6054 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6055
7cdee936
SM
60562003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6057
6058 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6059 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6060 MARKBIT as the gcmarkbit for strings.
6061
e50886d3
RS
60622003-07-21 Richard M. Stallman <rms@gnu.org>
6063
6064 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6065
29ea8ae9 6066 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
6067 (syms_of_fns): Corresponding change.
6068
6069 * alloc.c (syms_of_alloc): Doc fixes.
6070
60712003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6072
6073 * s/netbsd.h: Use -Wl syntax.
6074
fdc39b59
RS
60752003-07-17 Richard M. Stallman <rms@gnu.org>
6076
6077 * xterm.c (xim_initialize): Redo 6/24 change.
6078
9c53385f
SM
60792003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6080
6081 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6082 (Fswitch_to_buffer): Don't signal an error when switching to the same
6083 buffer in a dedicated window.
6084
6085 * alloc.c: Use bitmaps for cons, as was done for floats.
6086 (init_float, init_cons): Let the normal code allocate the first block.
6087 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6088 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6089 New macros.
6090 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6091 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6092 (live_cons_p): Check the pointer is not past the `conses' array.
6093 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6094 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6095 (survives_gc_p): Use CONS_MARKED_P and simplify.
6096 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6097
dde13196
PE
60982003-07-13 Paul Eggert <eggert@twinsun.com>
6099
6100 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6101 puts it into BSS instead, at least on Solaris 8 and 9.
6102 This is a valid optimization, and it may occur on other platforms,
6103 so Emacs should not assume that initializing a static variable to
6104 zero puts it into data.
6105 * alloc.c (pure, staticvec):
6106 Initialize these arrays to nonzero, so that they're not
6107 put into BSS by that optimization.
6108
a801bc34
SM
61092003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6110
6111 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6112 (lisp_align_malloc): Use posix_memalign is available.
6113 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6114 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6115 for consistency. Update users.
6116
0c8b2afa
RS
61172003-07-13 Richard M. Stallman <rms@gnu.org>
6118
6119 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6120
668c2ab0
JB
61212003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6122
6123 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6124 and use the Gtk+ function gtk_window_icon_from_file if available.
6125
6126 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6127 handle mask of bitmaps.
6128 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6129 mask property.
6130 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6131
6132 * xterm.h (xg_set_icon): New function.
6133
800bebe3
RS
61342003-07-12 Paul Eggert <eggert@twinsun.com>
6135
6136 * unexelf.c (unexec): Consider a section to precede the .bss
6137 section if its addresses overlap that of .bss.
6138
69e38995
RS
61392003-07-12 Richard M. Stallman <rms@gnu.org>
6140
6141 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6142
6143 * config.in (HAVE_CRTIN): Add #undef.
6144 (INLINE): Really inline only if OPTIMIZE is defined.
6145
6146 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6147 END_FILES_1.
6148 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 6149 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
6150
6151 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
6152 (TERMINFO): Define.
6153 (LIBS_TERMCAP): Define.
6154 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
6155
6156 * xfns.c: Include libpng/png.h instead of png.h.
6157
f1d0c238
AS
61582003-07-11 Andreas Schwab <schwab@suse.de>
6159
6160 * buffer.c (modify_overlay): Update prototype.
6161 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6162 Likewise.
6163
5f6bf5fe
SM
61642003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6165
6166 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6167 (struct interval): Move to intervals.h.
6168 (struct Lisp_Marker): Use EMACS_INT for position info.
6169 (forward_point): Remove prototype of defunct function.
6170 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6171 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6172 (syms_of_textprop, set_text_properties): Remove prototypes that are
6173 already in intervals.h.
6174
6175 * intervals.h (struct interval): Move from lisp.h.
6176 Use EMACS_INT for position and size info.
6177
6178 * coding.c: Include intervals.h for Fset_text_properties.
6179
6180 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6181 position and length information.
6182
2765b457
SM
61832003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6184
6185 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6186 position and length information.
6187
2410d73a
SM
61882003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6189
6190 Change overlays_after and overlays_before so the overlays themselves
6191 are linked into lists, rather than using cons cells. After all each
6192 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6193 Lisp_Overlay for free and save up one cons cell per overlay (not
6194 to mention one indirection when traversing the list of overlay).
6195
6196 * lisp.h (struct Lisp_Overlay): New field `next'.
6197
6198 * buffer.h (struct buffer): Change overlays_before and overlays_after
6199 from Lisp lists of overlays to pointers to overlays.
6200
6201 * buffer.c (overlay_strings, recenter_overlay_lists):
6202 Fix typo in eassert in last commit.
6203 (unchain_overlay): New function.
6204 (add_overlay_mod_hooklist): Use AREF.
6205 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6206 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6207 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6208 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6209 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6210 Adjust to new type of overlays_(before|after).
6211
6212 * alloc.c (mark_object): Mark the new `next' field of overlays.
6213 (mark_buffer): Manually mark the overlays_(after|before) fields.
6214
6215 * coding.c (run_pre_post_conversion_on_str):
6216 * editfns.c (overlays_around):
6217 * xdisp.c (load_overlay_strings):
6218 * fileio.c (Finsert_file_contents):
6219 * indent.c (current_column):
6220 * insdel.c (signal_before_change, signal_after_change):
6221 * intervals.c (set_point_both):
6222 * print.c (temp_output_buffer_setup): Use new type for
6223 overlays_(before|after).
6224
04812929
SM
62252003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6226
6227 * buffer.c (report_overlay_modification): Don't run hooks while
6228 traversing the list of overlays.
6229
6230 * buffer.h (struct buffer): Use an int for overlay_center.
6231 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6232 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6233
6234 * buffer.c (reset_buffer, recenter_overlay_lists)
6235 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6236 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6237 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6238 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6239 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6240
6241 * xdisp.c (fast_find_position): Remove unused var.
6242
6243 * cmds.c (Qexpand_abbrev): New sym.
6244 (syms_of_cmds): Initialize it.
6245 (internal_self_insert): Use it to call expand-abbrev.
6246
2e7ecf15
KS
62472003-07-09 Kim F. Storm <storm@cua.dk>
6248
f9711de4 6249 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 6250 was configured with --without-xim.
42f81f64 6251 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 6252
c6de56a0
RS
62532003-07-07 Richard M. Stallman <rms@gnu.org>
6254
6255 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6256
6257 * alloc.c (Fgarbage_collect): Doc fix.
6258
b6189c3b 62592003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
6260
6261 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6262
bfe1a3f7
SM
62632003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6264
04812929
SM
6265 * minibuf.c (read_minibuf): UNGCPRO before returning.
6266 (Ftry_completion, Fall_completions): Doc fix.
6267
bfe1a3f7
SM
6268 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6269 now that `floats' is not the last element of the struct any more.
6270
ee79d1aa
JR
62712003-07-06 Jason Rumney <jasonr@gnu.org>
6272
6273 * w32term.h (ClipboardSequence_Proc): New type.
6274
6275 * w32fns.c (clipboard_sequence_fn): New variable.
6276 (globals_of_w32fns): Initialize it.
6277
6278 * w32select.c (last_clipboard_sequence_number): New variable.
6279 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6280 number if possible.
6281
49723c04
SM
62822003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6283
4698665f
SM
6284 * m/amdx86-64.h (MARKBIT):
6285 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6286 MARKBIT and ARRAY_MARK_FLAG any more.
6287
6288 * m/hp800.h (XSETMARKBIT):
6289 * m/sr2k.h (XSETMARKBIT):
6290 * lisp.h (XSETMARKBIT): Remove unused macro.
6291
49723c04
SM
6292 * lisp.h (mark_object): Change prototype.
6293
6294 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6295 (last_marked): Change accordingly.
6296 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6297 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6298 (mark_buffer): Update calls to mark_object.
6299
6300 * bytecode.c (mark_byte_stack):
6301 * fns.c (sweep_weak_table):
6302 * keyboard.c (mark_kboards): Update calls to mark_object.
6303
1d660eca
JR
63042003-07-06 Jason Rumney <jasonr@gnu.org>
6305
6306 * alloc.c (struct ablock): Only include padding when there is some.
6307
618b5ae4
SM
63082003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6309
6310 * alloc.c (ALIGN): Add casts to simplify usage.
6311 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6312 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6313 (struct ablock, struct ablocks): New types.
6314 (free_ablock): New global var.
6315 (lisp_align_malloc, lisp_align_free): New functions.
6316 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6317 (struct float_block): Reorder and add gcmarkbits.
6318 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6319 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6320 (init_float, make_float): Use lisp_align_malloc.
6321 (free_float, live_float_p): Don't use `type' any more.
6322 (make_float): Use FLOAT_UNMARK to access to mark bit.
6323 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6324 Use FLOAT_MARKED_P to access the mark bit.
6325 (pure_alloc): Simplify use of ALIGN.
6326 (mark_object): Use FLOAT_MARK to access the mark bit.
6327 (gc_sweep): Use new macros to access the float's mark bit.
6328 (init_alloc_once): Init free_ablock.
6329
6330 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6331
3ef06d12
SM
63322003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6333
6334 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6335 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6336 (allocate_buffer): Move.
6337 (string_bytes): Don't mask markbit of `size_byte'.
6338 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6339 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6340 Use the `size' field of buffers (rather than the `name' field) for
6341 the mark bit, as is done for all other vectorlike objects.
6342 Use the new macros to access the mark bit of vectorlike objects.
6343
e81043aa
RS
63442003-06-26 Richard M. Stallman <rms@gnu.org>
6345
6346 * puresize.h (BASE_PURESIZE): Increment base size.
6347
6348 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6349
6350 * xterm.c (xim_initialize): Undo previous change.
6351
2d0834cc
SM
63522003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6353
6354 * alloc.c (survives_gc_p): Simplify.
6355
6356 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6357
6358 * window.c (Fset_window_dedicated_p): Simplify.
6359 (display_buffer_1): Don't raise the win from which minibuf was entered.
6360 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6361 (Fminibuffer_selected_window): Simplify.
6362
6363 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6364
6365 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6366 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6367
6368 * insdel.c (check_markers, adjust_markers_for_delete)
6369 (adjust_markers_for_insert, adjust_markers_for_replace)
6370 (prepare_to_modify_buffer, RESTORE_VALUE):
6371 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6372 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6373 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6374 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6375 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6376 * editfns.c (save_excursion_restore, transpose_markers):
6377 * window.c (delete_window):
6378 * xdisp.c (message_dolog): Update for new types.
6379
d54ae3d8
JD
63802003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6381
a5f696ac
JD
6382 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6383 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 6384 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
6385
6386 * frame.c (make_frame): Initialize default_face_done_p.
6387
6388 * frame.h (struct frame): Add default_face_done_p.
6389
d54ae3d8
JD
6390 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6391 will be defined.
6392
2336fe58
SM
63932003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6394
6395 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6396 Initialize the new field `gcmarkbit'.
6397 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6398 (mark_interval_tree): Don't mark the tree separately from the nodes.
6399 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6400 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6401 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6402
6403 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6404 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6405 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6406 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6407 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6408
bcea31c2
DL
64092003-06-24 Dave Love <fx@gnu.org>
6410
6411 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6412
6413 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6414 from gnulib.
6415
2601f59e
RS
64162003-06-21 Richard M. Stallman <rms@gnu.org>
6417
6418 * fileio.c (Fwrite_region): Alternate messages
6419 for append and partial write.
6420
6421 * keyboard.c (read_key_sequence): When converting upcase fn key to
6422 downcase, update fkey and keytran so `backspace' gets translated.
6423
6424 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6425
6426 * process.c (wait_reading_process_input): Don't signal SIGIO
6427 in batch mode.
6428
b5d2c621
KH
64292003-06-17 Kenichi Handa <handa@m17n.org>
6430
6431 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6432 composite.h.
6433
6434 * xselect.c: Don't include charset.h, coding.h, composite.h.
6435 (Qforeign_selection): New variable.
6436 (syms_of_xselect): Intern and static it.
6437 (selection_data_to_lisp_data): Return a unibyte string made from
6438 data with `foreign-selection' text property.
6439
6793bc63
SM
64402003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6441
6442 * termhooks.h (EVENT_INIT): New macro.
6443
6444 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6445
6446 * alloc.c (mark_kboards): Move to keyboard.c.
6447
6448 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6449 * xterm.c (x_dispatch_event):
6450 * xmenu.c (find_and_call_menu_selection):
6451 * xdisp.c (handle_tool_bar_click):
6452 * w32menu.c (menubar_selection_callback):
6453 * sysdep.c (kbd_input_ast, read_input_waiting):
6454 * msdos.c (dos_rawgetc):
6455 * macterm.c (mac_check_for_quit_char):
6456 * macmenu.c (menubar_selection_callback):
6457 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6458 data to kbd_buffer_store_event.
6459
b3ea810c
KS
64602003-06-15 Kim F. Storm <storm@cua.dk>
6461
6462 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 6463 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 6464
b8f75eda
KG
64652003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6466
6467 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6468
ba92ce48
KH
64692003-06-12 Kenichi Handa <handa@m17n.org>
6470
6471 * fileio.c (Fwrite_region): Save and restore restriction.
6472
b80263be
DL
64732003-06-12 Dave Love <fx@gnu.org>
6474
6475 * alloca.c (alloca): Declare arg as size_t.
6476
6793bc63
SM
6477 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6478 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 6479
b23c0a83
DL
64802003-06-11 Dave Love <fx@gnu.org>
6481
6482 * search.c (shrink_regexp_cache): Use xrealloc.
6483 (syms_of_search): Use xmalloc.
6484
700e47c2
KS
64852003-06-10 Kim F. Storm <storm@cua.dk>
6486
6487 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6488 Adjust phys_cursor.x to be relative to window box, rather than
6489 text area before checking -- to ensure cursor is redrawn when
6490 exposing window.
6491 Note: This also fixes a similar (older) bug if display margins
6492 are present.
6493
f11aa0b2
KH
64942003-06-06 Kenichi Handa <handa@m17n.org>
6495
6496 * coding.c (encoding_buffer_size): If coding->type is
6497 coding_type_ccl, double magnification on CRLF encoding.
6498
3d143690
JR
64992003-06-06 Jason Rumney <jasonr@gnu.org>
6500
6501 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6502 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6503
6504 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6505 Mac too.
6506
f16205ca
DL
65072003-06-05 Dave Love <fx@gnu.org>
6508
b23c0a83
DL
6509 * strftime.c: Merge changes from gnulib.
6510
f16205ca
DL
6511 * mktime.c (__mktime_internal): Merge changes from gnulib
6512 involving year 69 and dst2.
6513
6514 Changes to merge with gnulib version and be consistent with the
6515 autoconf test:
6516
6793bc63
SM
6517 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6518 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
6519 [HAVE_LOCALE_H]: Include locale.h.
6520 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6521
9b87a0bc
KS
65222003-06-05 Kim F. Storm <storm@cua.dk>
6523
6524 * window.c (coordinates_in_window): Convert X and Y to window
6525 relative coordinates inside mode-line and header-line parts.
6526 Convert X and Y to margin area relative coordinates inside left
6527 and right display margin parts.
6528
5a8a15ec
JR
65292003-06-05 Jason Rumney <jasonr@gnu.org>
6530
6531 * w32fns.c (add_system_logical_colors_to_map): New function.
6532 (Fx_open_connection): Use it.
6533
01ed8ff1
SM
65342003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6535
6536 * process.c (allocate_pty): Revert part of the previous patch.
6537 (Faccept_process_output): Simplify.
6538
b427b65d
JR
65392003-06-04 Jason Rumney <jasonr@gnu.org>
6540
6541 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6542
6543 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6544 (lispy_mouse_wheel_names): Remove.
6545 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6546 Always define drag_and_drop_syms.
6547
6548 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6549 WHEEL_EVENT events.
6550
914a8c47
SM
65512003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6552
01ed8ff1
SM
6553 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
6554
914a8c47
SM
6555 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
6556
adcb132c
JD
65572003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6558
6559 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
6560 menu item label.
6561
be781fa7
RS
65622003-06-03 Richard M. Stallman <rms@gnu.org>
6563
6564 * window.c (Fwindow_edges): Doc fix.
6565 (Fwindow_pixel_edges, Fwindow_inside_edges)
6566 (Fwindow_inside_pixel_edges): New functions.
6567 (syms_of_window): defsubr them.
6568
6569 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
6570 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
6571
914a8c47
SM
65722003-06-02 Stefan Monnier <monnier@cs.yale.edu>
6573
6574 * dispnew.c (Fsit_for): Don't lie about the number of args.
6575
5b07197a
DL
65762003-06-02 Dave Love <fx@gnu.org>
6577
6578 * callproc.c: Use HAVE_FCNTL_H, not USG5.
6579 (syms_of_callproc) <process-environment>: Doc fix.
6580
6581 * doc.c: Use HAVE_FCNTL_H, not USG5.
6582
6583 * xfaces.c (font_rescale_ratio): Fix for K&R.
6584
6585 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
6586
6587 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
6588
6589 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
6590
6591 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
6592 (xg_create_frame_widgets): Use ENCODE_UTF_8.
6593
d7107586 6594 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
6595
6596 * xmenu.c (ENCODE_MENU_STRING): New.
6597 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
6598 Use it.
6599
6600 * coding.h (ENCODE_UTF_8): New.
6601 (Qutf_8): Declare.
6602
6603 * coding.c (Qutf_8): New.
6604 (syms_of_coding): Intern it.
6605
6606 * fns.c: Doc fixes.
6607
7335b336
KH
66082003-06-02 Kenichi Handa <handa@m17n.org>
6609
6610 * buffer.c (Fset_buffer_multibyte): Fix previous change.
6611
914a8c47
SM
66122003-06-01 Stefan Monnier <monnier@cs.yale.edu>
6613
6614 * lread.c (openp): Make sure STR is a string.
6615
9862c135
JR
66162003-06-01 David Ponce <david@dponce.com>
6617
cab27d04 6618 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
6619 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
6620
6621 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
6622 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
6623 (discard_mouse_events): Discard WHEEL_EVENT events too.
6624 (lispy_wheel_names, wheel_syms): New.
6625 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 6626 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 6627 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
6628
6629 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
6630 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6631 WHEEL_EVENT events.
6632
f984e73e
JPW
66332003-05-31 John Paul Wallington <jpw@gnu.org>
6634
6635 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
6636 timer are in lisp/emacs-lisp.
6637
1efcd78f
KH
66382003-05-31 Kenichi Handa <handa@m17n.org>
6639
458c8af4
KH
6640 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
6641 region when a buffer is changed to unibyte.
6642
1efcd78f
KH
6643 * charset.h (VALID_LEADING_CODE_P): New macro.
6644 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
6645
778e2804
KH
6646 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
6647 is nonzero, accept multibyte form of eight-bit-control chars.
6648 (decode_composition_emacs_mule): Likewise.
6649 (decode_coding_emacs_mule): Likewise.
6650 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
6651 multibyte form of eight-bit-control chars.
6652
6653 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
6654 (Finsert_file_contents): If coding-system-for-read is bound to
6655 Qauto_save_coding, use the coding system emacs-mule with special
6656 setting for recovering a file.
6657 (choose_write_coding_system): On auto saving, use the coding
6658 system emacs-mule with special setting for auto saving.
6659 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
6660
034060e4
KH
66612003-05-30 Kenichi Handa <handa@m17n.org>
6662
6663 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
6664 properly before calling ccl_driver.
6665
778e2804 6666 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 6667
cab27d04 6668 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
6669 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
6670 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
6671
595f5aa5
GM
66722003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
6673
6674 * xfaces.c (realize_default_face): Do not abort if lface is
6675 non-existent - reverts change from 2003-05-19.
6676
103e0180
KH
66772003-05-29 Kenichi Handa <handa@m17n.org>
6678
6679 * coding.c (decode_coding_iso2022): Pay attention to the byte
6680 sequence of CTEXT extended segment, and retain those bytes as is.
6681
66822003-05-28 Kenichi Handa <handa@m17n.org>
6683
cab27d04 6684 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
6685 of CODING_REPLACEMENT_CHARACTER.
6686 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
6687 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
6688 check this flag on encoding.
cab27d04
SM
6689 (encode_coding_sjis_big5):
6690 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
6691 (Fset_terminal_coding_system_internal):
6692 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
6693 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
6694
6695 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
6696 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
6697 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
6698
ff6a3bfb 66992003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 6700
ff6a3bfb
RS
6701 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
6702
6703 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 6704
1963c428
KS
67052003-05-28 Kim F. Storm <storm@cua.dk>
6706
6707 * xdisp.c (expose_window): Fix error in calculation of
6708 window relative coordinates of area to redisplay.
6709
2b5d4601
JR
67102003-05-27 Jason Rumney <jasonr@gnu.org>
6711
6712 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
6713
1c64a4a2
JB
67142003-05-27 David Ponce <david@dponce.com>
6715
6716 Handle W32 mouse wheel events as mouse click events, like in X.
6717
6718 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
6719 MOUSE_WHEEL_EVENT anymore.
6720
6721 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
6722 Scrolling down/up the mouse wheel is respectively mapped to mouse
6723 button 4 and 5.
6724 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6725 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
6726 WM_MOUSEWHEEL events.
6727
2d031b89
AS
67282003-05-27 Andreas Schwab <schwab@suse.de>
6729
20464fdf
AS
6730 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
6731
2d031b89
AS
6732 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
6733 partially visible line.
6734
6735 * alloc.c (Fgarbage_collect): Fix last change.
6736
97bc76d4
JPW
67372003-05-26 John Paul Wallington <jpw@gnu.org>
6738
6739 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
6740
56613f06
SM
67412003-05-25 Stefan Monnier <monnier@cs.yale.edu>
6742
6743 * window.c (Fset_window_buffer): Add type of `keep_margins'.
6744 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
6745
6746 * window.h (window_box_text_cols): Declare.
6747
6748 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
6749 (x_draw_vertical_border): Remove unused var `f'.
6750
6751 * xfaces.c (build_scalable_font_name): Remove `unused var
6752 pixel_size' warning.
6753
6754 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
6755
6756 * unexelf.c (unexec): Remove `unused var n' warning.
6757
6758 * strftime.c (my_strftime_localtime_r): Remove `defined but
6759 unused' warning.
6760
6761 * process.c (allocate_pty): Remove `unused var stb' and
6762 `cp might be used uninitialized' warnings.
6763
6764 * dispnew.c (mode_line_string): Remove unused var `f'.
6765
6766 * coding.c (find_safe_codings): Remove unused var `i'.
6767
6768 * bytecode.c (Fbyte_code): Remove `unused val' warning.
6769
6770 * buffer.c (Fkill_buffer): Remove unused var `list'.
6771
6772 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
6773
93421a1f
JD
67742003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6775
6776 * frame.c (make_frame): Condition want_fullscreen with
6777 HAVE_WINDOW_SYSTEM.
6778
c4b8aebc
JB
67792003-05-25 Juanma Barranquero <lektu@terra.es>
6780
6781 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
6782 (Fwindow_scroll_bars): Fix typo in docstring.
6783
0416870b
KS
67842003-05-24 Kim F. Storm <storm@cua.dk>
6785
6786 The following changes serve several purposes:
6787
6788 1) Swap the position of fringes and display margins in windows, i.e.
6789 the fringes are now displayed between the margins and the text area
6790 (by default).
6791
6792 2) Allow fringe and scroll bar parameters to be set per-buffer and
6793 per-window (like display margins). Such settings are now stored
6794 in window configurations, preserved when frames are resized, and
9018a88e 6795 copied when windows are split vertically or horizontally.
0416870b
KS
6796 Several bugs related to display margins have been fixed.
6797
6798 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 6799
0416870b
KS
6800 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
6801 rather than FRAME_WIDTH (FRAME_FONT (f)).
6802
6803 5) Introduce a consistent naming of variables, members and macros
6804 depending on whether their value is measured in pixels or in
6805 canonical columns/lines. Pixel dimensions are named *_width and
6806 *_height, while canonical columns/lines are named *_cols and
6807 *_lines. Pixel positions are named *_x and *_y, while column/line
6808 positions are named *_col and *_line.
6809
6810 6) Consolidate more of the X, W32, and MAC gui code by moving
6811 common data into struct frame, and generalize it for the non-gui
6812 case by using suitable defaults.
6813
6814 7) Cleanup and consolidate the macros controlling frame and window
6815 layout into frame.h and window.h, and generalize the use of the
6816 various window_box_* functions (enhanced to handle the new fringe
6817 position and the per-window fringe and scroll bar settings).
6818
6819 * frame.h (struct frame): Rename members height to text_lines,
6820 width to text_cols, window_height to total_lines, window_width to
6821 total_cols, new_height to new_text_lines, new_width to
6822 new_text_cols. All uses changed.
6823 (struct frame): New members which consolidate common members of
6824 x_output, w32_output, and mac_output structures: left_pos,
6825 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
6826 win_gravity, size_hint_flags, border_width, internal_border_width,
6827 line_height, fringe_cols, left_fringe_width, right_fringe_width,
6828 want_fullscreen. All uses changed.
6829 (struct frame): New member column_width contaning the canonical
6830 column width, analogue to line_height. All uses changed.
6831 (struct frame): Rename members scroll_bar_pixel_width to
6832 config_scroll_bar_width, and scroll_bar_cols to
6833 config_scroll_bar_cols. All uses changed.
6834 (struct frame): New member scroll_bar_actual_width which
6835 consolidates and renames the vertical_scroll_bar_extra member of
6836 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 6837 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
6838 from x/w32/macterm.h files. All uses changed. Also change code
6839 which referred to f->output_data...->pixel_height.
cab27d04 6840 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 6841 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 6842 which referred to f->output_data...->pixel_width.
cab27d04 6843 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 6844 Also change code which referred to f->height.
cab27d04 6845 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
6846 Also change code which referred to f->width.
6847 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
6848 to update new_text_lines and new_text_cols members directly.
cab27d04 6849 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 6850 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 6851 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
6852 FRAME_SCROLL_BAR_COLS. All uses changed.
6853 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 6854 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
6855 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
6856 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
6857 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
6858 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
6859 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
6860 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
6861 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
6862 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
6863 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
6864 Unconditionally return line_height member (it now has proper value
6865 also for non-window frames).
6866 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
6867 return new column_width member (rather than the default font width).
6868 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 6869 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
6870 from x/w32/macterm.h files. Unconditionally return corresponding
6871 member of frame structure (they now have proper values also for
6872 non-window frames).
cab27d04 6873 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
6874 Calculate return value from left and right widths.
6875 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
6876 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
6877 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
6878 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
6879 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
6880 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
6881 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 6882 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 6883 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 6884 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 6885 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 6886 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 6887 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 6888 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 6889 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 6890 consolidated from x/mac/w32term.h.
cab27d04 6891 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 6892 consolidated from x/mac/w32term.h.
cab27d04 6893 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 6894 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 6895 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
6896 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
6897
6898 * window.h (struct window): Rename members left to left_col,
6899 top to top_line, height to total_lines, width to total_cols,
6900 left_margin_width to left_margin_cols, right_margin_width to
6901 right_margin_cols, orig_height to orig_total_lines, orig_top to
6902 orig_top_line. All uses changed.
6903 (struct window): New members left_fringe_width, right_fringe_width,
6904 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
6905 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
6906 New macros primarily used to simplify other macros.
6907 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
6908 referred to XINT (w->width).
6909 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
6910 referred to XINT (w->height).
6911 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
6912 referred to XINT (w->width) * canon_x_unit.
6913 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
6914 referred to XINT (w->height) * canon_y_unit.
6915 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
6916 referred to XINT (w->left).
cab27d04 6917 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
6918 all uses and code that referred to XINT (w->left) + XINT (w->width).
6919 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
6920 referred to XINT (w->top).
6921 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
6922 referred to XINT (w->top) + XINT (w->height).
6923 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
6924 referred to XINT (w->left) * canon_x_unit.
6925 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
6926 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
6927 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
6928 referred to XINT (w->top) * canon_y_unit.
6929 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
6930 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
6931 (WINDOW_LEFTMOST_P): New macro.
cab27d04 6932 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 6933 All uses changed.
cab27d04 6934 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 6935 All uses changed.
cab27d04 6936 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
6937 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
6938 Do not exclude left fringe width.
cab27d04 6939 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
6940 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
6941 Do not exclude fringe widths.
6942 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
6943 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
6944 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
6945 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
6946 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
6947 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
6948 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
6949 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
6950 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
6951 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
6952 New macros. Change code which referenced corresponding
6953 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
6954 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
6955 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
6956 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
6957 allow per-window scroll-bar settings.
6958 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
6959 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
6960 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
6961 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
6962 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
6963 FRAME_SCROLL_BAR_WIDTH.
6964 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 6965 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 6966 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 6967 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 6968 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 6969 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 6970 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
6971 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
6972 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6973 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
6974 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
6975 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 6976 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 6977 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
6978 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6979 (window_from_coordinates): Update prototype.
6980 (Fset_window_buffer): Update EXFUN.
6981 (set_window_buffer): Update prototype.
9018a88e 6982
0416870b 6983 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 6984 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
6985 changed.
6986 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
6987 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
6988 internal_border_width is now set to 0 for non-window frames.
6989 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
6990 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
6991 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
6992 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
6993 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
6994 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6995 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6996 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
6997 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 6998 Move to window.h and renamed [see window.h changes].
0416870b
KS
6999 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7000 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
7001 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7002 Use WINDOW_TOTAL_LINES.
0416870b
KS
7003 (frame_update_line_height): Remove prototype.
7004
7005 * buffer.h (struct buffer): Rename members measured in columns:
7006 left_margin_width to left_margin_cols, right_margin_width to
7007 right_margin_cols. All uses changed.
7008 New members left_fringe_width, right_fringe_width,
7009 fringes_outside_margins for per-buffer fringe settings.
7010 New members scroll_bar_width and vertical_scroll_bar_type for
7011 per-buffer scroll bar settings.
7012
7013 * buffer.c (init_buffer_once): Set buffer_defaults and
7014 buffer_local_flags for new buffer-local variables
7015 left_fringe_width, right_fringe_width, fringes_outside_margins,
7016 scroll_bar_width, and vertical_scroll_bar_type.
7017 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7018 default-* variables for them.
7019
7020 * dispnew.c: Make (many) trivial substitutions for renamed and
7021 new macros in dispextern.h, frame.h and window.h.
7022 (mode_line_string): No need to adjust width for mode lines, as it
7023 is already adjusted by the caller.
7024 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 7025
0416870b
KS
7026 * frame.c: Make (many) trivial substitutions for renamed and
7027 new macros in dispextern.h, frame.h and window.h.
7028 (make_frame): Initialize left_fringe_width, right_fringe_width,
7029 fringe_cols, scroll_bar_actual_width, border_width,
7030 internal_border_width, column_width, line_height, x_pixels_diff,
7031 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7032 members with values suitable for a non-window frames.
7033
7034 * gtkutil.c: Make (many) trivial substitutions for renamed and
7035 new macros in dispextern.h, frame.h and window.h.
9018a88e 7036
0416870b
KS
7037 * indent.c: Make (few) trivial substitutions for renamed and
7038 new macros in dispextern.h, frame.h and window.h.
7039
7040 * keyboard.c: Make (many) trivial substitutions for renamed and
7041 new macros in dispextern.h, frame.h and window.h.
7042 (make_lispy_event): Use window positions returned from
7043 window_from_coordinates when constructing the lisp event for
7044 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7045 (incorrect) values locally.
7046 (make_lispy_movement): Use window positions returned from
7047 window_from_coordinates when constructing the lisp event, rather
7048 than calculating (incorrect) values locally.
7049
7050 * scroll.c: Make (some) trivial substitutions for renamed and
7051 new macros in dispextern.h, frame.h and window.h.
7052
7053 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7054 scroll-bars.
7055
7056 * sysdep.c: Make (few) trivial substitutions for renamed and
7057 new macros in dispextern.h, frame.h and window.h.
7058
7059 * term.c: Make (some) trivial substitutions for renamed and
7060 new macros in dispextern.h, frame.h and window.h.
7061
7062 * widget.c: Make (few) trivial substitutions for renamed and
7063 new macros in dispextern.h, frame.h and window.h.
7064
7065 * window.c: Make (many) trivial substitutions for renamed and
7066 new macros in dispextern.h, frame.h and window.h.
7067 (make_window): Initialize new members
7068 left_margin_cols, right_margin_cols, left_fringe_width,
7069 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7070 and vertical_scroll_bar_type.
cab27d04 7071 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 7072 and per-window fringes and scroll-bars.
0416870b 7073 Fix bug related to incorrectly adjusting coordinates by
9018a88e 7074 frame's internal_border_width (the effect normally negible since
0416870b
KS
7075 the internal_border_width is typically 0 or 1 pixel, but very
7076 noticeable for an internal_border_width of e.g. 25 pixels).
7077 Upon successful return (other than ON_NOTHING), the coordinates
7078 are now always properly converted to window relative for the
7079 given display element.
7080 (window_from_coordinates): Add new parameters wx and wy to
7081 return the window relative x and y position in the returned
7082 window and part. A null arg means, don't return the position.
7083 All callers changed.
7084 (adjust_window_margins): New function which may reduce the width
7085 of the display margins if a window's text area is too small after
7086 resizing or splitting windows.
7087 (size_window): Fix bug that did not account for display margin
7088 widths when checking the minimum width of a window; use
7089 adjust_window_margins.
7090 (set_window_buffer): Call Fset_window_fringes and
7091 Fset_window_scroll_bars to setup per-window elements.
7092 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7093 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
7094 (e.g. after splitting a window or resizing the frame).
7095 All callers changed.
0416870b
KS
7096 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7097 (Fsplit_window): Duplicate original window's display margin,
7098 fringe, and scroll-bar settings; then call Fset_window_buffer with
7099 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7100 window to only preserve the display margins in one of the windows.
c4b8aebc 7101 When splitting horizontally, call adjust_window_margins on both
0416870b 7102 windows to ensure that the text area of the new windows is non too
f9711de4 7103 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
7104 width of the split window was less than the width of the display
7105 margins.
cab27d04 7106 (window_box_text_cols): Rename from window_internal_width.
9018a88e 7107 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
7108 Fix bug that caused vertical separator to be subtracted also on
7109 window frames. Fix another bug that did not reduce the returned
7110 value by the columns used for display margins.
7111 (window_scroll_line_based): Fix bug related to scrolling too much
7112 when display margins are present (implicitly fixed by the fix to
7113 window_box_text_cols).
7114 (scroll_left, scroll_right): Fix bug related to scrolling too far
7115 by default when display margins are present (implicitly fixed by
7116 the fix to window_box_text_cols).
7117 (struct saved_window): Rename members left to left_col, top to
7118 top_line, width to total_cols, height to total_lines, orig_top to
7119 orig_top_line, orig_height to orig_total_lines. All uses changed.
7120 New members left_margin_cols, right_margin_cols,
7121 left_fringe_width, right_fringe_width, fringes_outside_margins,
7122 scroll_bar_width, and vertical_scroll_bar_type for saving
7123 per-window display elements.
7124 (Fset_window_configuration): Restore display margins, fringes,
7125 and scroll bar settings. This fixes a bug which caused display
7126 margins to be discarded when saving and restoring a window
7127 configuration.
7128 (save_window_save): Save display margins, fringes, and scroll bar
7129 settings. This fixes a bug which caused display margins to be
7130 discarded when saving and restoring a window configuration.
7131 (Fset_window_margins): Do nothing if display margins are not
7132 really changed. Otherwise, call adjust_window_margins to ensure
7133 the text area doesn't get too narrow. This fixes a bug which
f9711de4 7134 could cause Emacs to trap if setting display margins wider than
0416870b
KS
7135 the width of the window.
7136 (Fset_window_fringes): New defun to allow user to specifically set
7137 this window's fringe widths and position vs. display margins.
cab27d04 7138 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
7139 (Fset_window_scroll_bars): New defun to allow user to specifically
7140 set this window's scroll bar width and position.
7141 (Fwindow_scroll_bars): New defun to return window's actual scroll
7142 bar settings.
7143 (compare_window_configurations): Also compare display margins,
7144 fringes, and scroll bar settings.
7145 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7146
7147 * xdisp.c: Make (many) trivial substitutions for renamed and
7148 new macros in dispextern.h, frame.h and window.h.
7149 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 7150 and new fringe vs. display margin position. Note that returned
0416870b
KS
7151 value is no longer guaranteed to be a whole multiple of the frame
7152 column width, since per-window fringes may now be any width.
7153 (window_box_left_offset): New function like window_box_left, but
7154 value is relative to left border of window (rather than frame).
7155 (window_box_right_offset): New function like window_box_right,
7156 but value is relative to left border of window.
7157 (window_box_left): Adapt to per-window fringes and scroll bars,
7158 and new fringe vs. display margin position. Simplify by using
7159 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7160 (window_box): Allow null args for unnecessary return values;
7161 change/simplify relevant callers.
7162 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
7163 and new fringe vs. display margin position.
7164 Use window_box_left_offset and window_box_right_offset
0416870b 7165 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
7166 scroll bars, and new fringe vs. display margin position.
7167 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
7168 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7169 fringe vs. display margin position.
7170 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
7171 (redisplay_window): Adapt to per-window scroll bars.
7172 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
7173 bars, and new fringe vs. display margin position.
7174 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 7175 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
7176 bars, and new fringe vs. display margin position. Fix bug which
7177 increased total width of full_width rows by width of scroll bars
7178 although window's total width already includes that.
7179 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7180 (expose_area): Simplify using window_box_left_offset.
7181 (x_draw_vertical_border): Handle per-window scroll bar settings,
7182 mixing windows with left, right and no scroll bars.
7183
7184 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7185 where it's used in x_list_fonts (for clarity).
7186 (frame_update_line_height): Remove unused function; functionality
7187 is now done directly when setting the default font in x_set_font.
7188
7189 * xfns.c: Make (many) trivial substitutions for renamed and
7190 new macros in dispextern.h, frame.h and window.h.
7191
7192 * xmenu.c: Make (some) trivial substitutions for renamed and
7193 new macros in dispextern.h, frame.h and window.h.
7194
7195 * xterm.h (struct x_output): Move members left_pos, top_pos,
7196 border_width, pixel_height, pixel_width, line_height,
7197 internal_border_width, vertical_scroll_bar_extra,
7198 left_fringe_width, right_fringe_width, fringe_cols,
7199 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7200 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7201 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7202 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7203 (PIXEL_WIDTH, PIXEL_HEIGHT)
7204 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7205 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7206 frame.h and renamed [see frame.h changes].
7207 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7208 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7209 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7210 and renamed [see frame.h changes].
9018a88e 7211
0416870b
KS
7212 * xterm.c: Make (several) trivial substitutions for renamed and
7213 new macros in dispextern.h, frame.h and window.h.
cab27d04 7214 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7215 (scroll_run): Adapt to new fringe position.
7216 (glyph_rect): Use window coordinates returned from
7217 window_from_coordinates rather than frame_to_window_pixel_xy.
7218 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7219 scroll-bars.
7220 (handle_one_xevent): Simplify a USE_GTK conditional.
7221 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7222 (fringes are now inside margins, i.e. always in the clipping area).
7223 All callers changed.
7224 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7225 directly, then call compute_fringe_widths. Don't call
7226 frame_update_line_height.
7227
7228 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7229 border_width, pixel_height, pixel_width, line_height,
7230 internal_border_width, vertical_scroll_bar_extra,
7231 left_fringe_width, right_fringe_width, fringe_cols,
7232 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7233 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7234 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7235 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7236 (PIXEL_WIDTH, PIXEL_HEIGHT)
7237 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7238 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7239 frame.h and renamed [see frame.h changes].
7240 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7241 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7242 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7243 and renamed [see frame.h changes].
9018a88e 7244
0416870b
KS
7245 * w32term.c: Make (several) trivial substitutions for renamed and
7246 new macros in dispextern.h, frame.h and window.h.
cab27d04 7247 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7248 (glyph_rect): Use window coordinates returned from
7249 window_from_coordinates rather than frame_to_window_pixel_xy.
7250 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7251 scroll-bars.
7252 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7253 (fringes are now inside margins, i.e. always in the clipping area).
7254 All callers changed.
7255 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7256 directly, then call compute_fringe_widths. Don't call
7257 frame_update_line_height.
7258
7259 * w32console.c: Make (few) trivial substitutions for renamed and
7260 new macros in dispextern.h, frame.h and window.h.
7261
7262 * w32fns.c: Make (many) trivial substitutions for renamed and
7263 new macros in dispextern.h, frame.h and window.h.
7264
7265 * w32menu.c: Make (few) trivial substitutions for renamed and
7266 new macros in dispextern.h, frame.h and window.h.
7267
7268 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7269 border_width, pixel_height, pixel_width, line_height,
7270 internal_border_width, vertical_scroll_bar_extra,
7271 left_fringe_width, right_fringe_width, fringe_cols,
7272 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7273 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7274 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7275 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7276 (PIXEL_WIDTH, PIXEL_HEIGHT)
7277 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 7278 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
7279 frame.h and renamed [see frame.h changes].
7280 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7281 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 7282 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 7283 and renamed [see frame.h changes].
9018a88e 7284
0416870b
KS
7285 * macterm.c: Make (several) trivial substitutions for renamed and
7286 new macros in dispextern.h, frame.h and window.h.
cab27d04 7287 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
7288 (glyph_rect): Use window coordinates returned from
7289 window_from_coordinates rather than frame_to_window_pixel_xy.
7290 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7291 scroll-bars.
7292 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7293 (fringes are now inside margins, i.e. always in the clipping area).
7294 All callers changed.
7295 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7296 directly, then call compute_fringe_widths. Don't call
7297 frame_update_line_height.
7298
7299 * macfns.c: Make (several) trivial substitutions for renamed and
7300 new macros in dispextern.h, frame.h and window.h.
9018a88e 7301 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
7302
7303 * macmenu.c: Make (few) trivial substitutions for renamed and
7304 new macros in dispextern.h, frame.h and window.h.
7305
7306 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7307 and line_height, and use corresponding new members in struct
7308 frame. All uses changed.
7309 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7310 superseeded by corresponding macros in frame.h.
7311
7312 * msdos.c: Make (several) trivial substitutions for renamed and
7313 new macros in dispextern.h, frame.h and window.h.
7314 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 7315 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
7316 (internal_terminal_init): No need to initialize line_height here;
7317 it now defaults to 1.
7318
9018a88e
SM
73192003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7320
7321 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7322 dropping `down' events.
7323
016bd3c0
AS
73242003-05-24 Andreas Schwab <schwab@suse.de>
7325
7326 * coding.c (find_safe_codings): Fix last change.
7327
4dacadcc
TTN
73282003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7329
7330 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7331
319830ce
SM
73322003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7333
9018a88e
SM
7334 * xdisp.c (display_mode_element): Increase max depth.
7335 Simplify the error handling code. Use a different error string
7336 for the case where we hit the depth limit.
7337
319830ce
SM
7338 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7339
7340 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7341
73422003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7343
7344 * intervals.c (get_local_map): Don't get char-property of previous
7345 point any more: get_pos_property already does it and better.
7346
c67de8ba
DL
73472003-05-21 Dave Love <fx@gnu.org>
7348
7349 [Merged from unicode branch.]
7350
7351 * xfns.c (x_window, x_window): Use use_xim.
7352
7353 * xterm.c (use_xim): Initialize.
7354 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7355 (x_term_init): Maybe set use_xim.
7356
7357 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7358
edd3ff1d
JR
73592003-05-21 Jason Rumney <jasonr@gnu.org>
7360
7361 * unexw32.c (_start): Remove _fmode initialization.
7362
7363 * emacs.c (main) [WINDOWSNT]: Move it here.
7364
463f55ee
DL
73652003-05-20 Dave Love <fx@gnu.org>
7366
7367 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7368
af253914
RS
73692003-05-19 Richard M. Stallman <rms@gnu.org>
7370
7371 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7372 as value for QCfont attribute.
7373 (realize_default_face): lface should already exist; crash if not.
7374 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7375
7376 * frame.c (Fignore_event): Doc fix.
7377
1d211019
KH
73782003-05-19 Kenichi Handa <handa@m17n.org>
7379
7380 * coding.c (decode_coding_string): Handle post-read-conversion
7381 even if the coding doesn't require decoding.
7382
4dd68254
RS
73832003-05-18 Richard M. Stallman <rms@gnu.org>
7384
7385 * callproc.c (Fcall_process_region): Doc fix.
7386
14d87dc9
SM
73872003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7388
deca5d96
SM
7389 * lread.c (Fload): Print a message if package is obsolete.
7390
14d87dc9
SM
7391 * window.c (Fselect_window): Add optional `norecord' arg.
7392 (select_window_1): Fold into Fselect_window.
7393 (select_window_norecord): New function.
7394 (temp_output_buffer_show): Use it. Preserve current buffer.
7395
7396 * window.h (Fselect_window): Update declaration.
7397
7398 * window.c (delete_window, Fother_window, Fset_window_configuration):
7399 * minibuf.c (read_minibuf):
7400 * macterm.c (x_new_focus_frame):
7401 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7402 * callint.c (Fcall_interactively):
7403 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7404
7405 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7406
78f52183
DK
74072003-05-17 David Kastrup <dak@gnu.org>
7408
7409 * process.c (read_process_output): Back out change from 2003-03-09.
7410
14d87dc9
SM
74112003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7412
7413 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7414
7415 * textprop.c (text_property_stickiness): New arg `buffer'.
7416
7417 * intervals.h (text_property_stickiness): New arg `buffer'.
7418 (get_pos_property): Declare.
7419
7420 * intervals.c (get_local_map): Use get_pos_property, to obey
7421 stickiness and empty overlays.
7422 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7423 (merge_properties, intervals_equal, merge_properties_sticky):
7424 Use XCAR, XCDR.
7425 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7426
1fd1cc2f
RS
74272003-05-17 Richard M. Stallman <rms@gnu.org>
7428
4f9f637a
RS
7429 * minibuf.c (read_minibuf): If buffer is empty, record the default
7430 in the history.
7431 (Fminibuffer_complete_word): When deleting the overlap, take account
7432 of its real position.
7433
7434 * fns.c (map_char_table): Fix previous change.
7435
1fd1cc2f
RS
7436 * syntax.c (find_defun_start):
7437 When open_paren_in_column_0_is_defun_start,
7438 return beginning of buffer.
7439
7440 * lisp.h (map_char_table): Declare added arg.
7441
7442 * fns.c (map_char_table): New arg TABLE gets the master table.
7443 All calls changed.
7444 Process default and inheritance, resorting to Faref if necessary.
7445
7446 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7447 (Faccessible_keymaps): Pass new arg to map_char_table.
7448
7449 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7450
7451 * casetab.c (set_case_table): Pass new arg to map_char_table.
7452
7453 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7454
7455 * lisp.h (specbinding_func): New typedef.
7456 (struct specbinding): Use specbinding_func, to put the `volatile'
7457 in the right place.
7458
7459 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7460 to avoid GCC warning.
14d87dc9 7461
b6189c3b 74622003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 7463
14d87dc9 7464 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 7465
35fb885d
SM
74662003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7467
7468 * keyboard.c (apply_modifiers): Don't fill the other cache.
7469
9a274fbd
SM
74702003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7471
c55b5fad
SM
7472 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7473
9a274fbd
SM
7474 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7475 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7476 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7477 (Fset_window_configuration, Fcurrent_window_configuration)
7478 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7479 (Fpos_visible_in_window_p, mark_window_cursors_off)
7480 (window_internal_height, window_internal_width, Frecenter)
7481 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7482 (replace_buffer_in_all_windows, init_window_once, init_window)
7483 (syms_of_window, keys_of_window): Move from lisp.h.
7484 * lisp.h: Move window.c declarations to window.h.
7485
7486 * bytecode.c: Include window.h.
7487 * emacs.c: Include window.h.
7488
14d87dc9 7489 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
7490 (keyremap): Add `parent' field.
7491 (keyremap_step): Use it. Remove `parent' argument.
7492 (read_key_sequence): Setup and use the new `parent' field.
7493
fd93e331
SM
74942003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7495
7496 * keyboard.c (adjust_point_for_property): Ensure termination.
7497
1c4001a1
SM
74982003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7499
7500 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7501 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7502 duplicated handling of function-key-map and key-translation-map
7503 in read_key_sequence.
7504 (read_key_sequence): Use them.
7505
7506 * keyboard.c (adjust_point_for_property): Try harder to move point
7507 to the non-sticky end of an invisible property.
7508
7509 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7510 property intangible as well.
7511
780379b1
AS
75122003-05-10 Andreas Schwab <schwab@suse.de>
7513
7514 * xmenu.c (single_menu_item): Change last parameter to void* to
7515 avoid warning.
7516
ca2de342
RS
75172003-05-09 Richard M. Stallman <rms@gnu.org>
7518
7519 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7520 Bind Qinhibit_modification_hooks to t so there will be no GC.
7521 Rename local `tem' to `save_deactivate_mark'.
7522
7523 * eval.c (specpdl_ptr): Declare volatile.
7524 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7525 before doing the work of unbinding it.
7526
7527 * lisp.h (struct specbinding): Declare elements volatile.
7528 (specpdl_ptr): Declare volatile.
7529
7530 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7531
7532 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7533 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7534
347003be
DL
75352003-05-08 Dave Love <fx@gnu.org>
7536
7537 * coding.c (Vlast_coding_system_used): Doc fix.
7538
5adcec23
JR
75392003-05-07 Jason Rumney <jasonr@gnu.org>
7540
7541 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7542 when system does not support them.
7543
5fe3b8a4
SM
75442003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7545
7546 * fileio.c (Qwrite_region_annotate_functions): New var.
7547 (build_annotations): Use it to process the global part of the hook.
7548 (syms_of_fileio): Init and staticpro it.
7549
7550 * keyboard.c (safe_run_hooks_error): Display a message instead of
7551 silently ignoring the error.
7552
75532003-05-03 Stefan Monnier <monnier@cs.yale.edu>
7554
7555 * keyboard.c (input_available_signal): Mark static.
7556 (menu_bar_items): Use map_keymap.
7557 (menu_bar_one_keymap): Remove.
7558 (menu_bar_item): Adjust arglist (for use in map_keymap).
7559 Properly hide a second binding when not both are keymaps.
7560
7561 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
7562 (single_keymap_panes): Use it and map_keymap.
7563 (single_menu_item): Use skp as well.
7564
7565 * keymap.h (map_keymap_function_t): New type.
7566 (map_keymap): Declare.
7567
7568 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
7569 (map_keymap_call, Fmap_keymap): New functions.
7570 (syms_of_keymap): Defsubr map-keymap.
7571
4b1b4443
JD
75722003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7573
7574 * gtkutil.c (create_dialog, make_widget_for_menu_item)
7575 (make_menu_item, create_menus, xg_update_menu_item): Don't call
7576 ..._with_mnemonic functions for menu items.
7577
1f816871
KH
75782003-05-01 Kenichi Handa <handa@m17n.org>
7579
7580 * coding.c (coding_system_accept_latin_extra_p): Delete this
7581 function.
7582 (find_safe_codings): Pay attention to
7583 the property tranlsation-table-for-encode of each codings.
7584 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
7585
5ed6ba5b
SM
75862003-05-01 Stefan Monnier <monnier@cs.yale.edu>
7587
7588 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
7589
32c06229
SM
75902003-04-30 Stefan Monnier <monnier@cs.yale.edu>
7591
7592 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
7593
7594 * lisp.h (CHECK): Wrap args in parenthesis.
7595 (specbind): Fix doc: symbol = Qnil is not supported any more.
7596
7597 * bytecode.c (Fbyte_code) <unwind-protect>:
7598 Use Fprogn rather than 0 and Qnil.
7599
7600 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
7601 `double', and `triple' modifiers as well.
7602
ed3c3314
RS
76032003-04-30 Richard M. Stallman <rms@gnu.org>
7604
7605 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
7606
7607 * alloc.c (abort_on_gc): New variable.
7608 (Fgarbage_collect): Abort if abort_on_gc is set.
7609
7610 * lisp.h (abort_on_gc): Add decl.
7611
7612 * eval.c (Fsignal): Clear abort_on_gc.
7613
7614 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 7615 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
7616
7617 * xdisp.c (move_it_vertically_backward): Do the final big else
7618 even if nlines is 0.
7619
7620 * xdisp.c (redisplay_internal): Finish the per-frame loop
7621 even if redisplay is suspended by input.
7622
0b325c12
AC
76232003-04-24 Andrew Choi <akochoi@shaw.ca>
7624
7625 * macterm.c (x_list_fonts): Return all fonts that match if
7626 maxnames = -1.
7627
4e837cd0
KH
76282003-04-25 Kenichi Handa <handa@m17n.org>
7629
7630 * syntax.c (skip_chars): Fix previous change.
7631
9af7511a
KH
76322003-04-24 Kenichi Handa <handa@m17n.org>
7633
7634 * syntax.c (skip_chars): Make the code faster by using the common
7635 technique of *p, *stop, and *endp.
7636
e3b2c21f
JD
76372003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7638
7639 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 7640 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
7641 being updated.
7642
32c06229
SM
76432003-04-19 Stefan Monnier <monnier@cs.yale.edu>
7644
7645 * eval.c (Fapply): Undo last change and add a comment about why.
7646
c6464167
MB
76472003-04-18 Miles Bader <miles@gnu.org>
7648
7649 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
7650 pickier PARSE_MULTIBYTE_SEQ.
7651
e509f168
SM
76522003-04-17 Stefan Monnier <monnier@cs.yale.edu>
7653
7654 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
7655 Use XCDR, XCAR, CONSP.
7656 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
7657 (Fapply): Remove unnecessary GCPRO.
7658
7659 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
7660
7661 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
7662
7663 * buffer.h: Don't hardcode BEG==1.
7664
7665 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
7666
5ceea398
RS
76672003-04-16 Richard M. Stallman <rms@gnu.org>
7668
7669 * xdisp.c (try_window, try_window_reusing_current_matrix):
7670 When at end of window, set window_end_pos to Z-ZV.
7671
7672 * buffer.c (Foverlay_recenter): Doc fix.
7673
e509f168
SM
76742003-04-14 Stefan Monnier <monnier@cs.yale.edu>
7675
7676 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
7677
d243e605
AC
76782003-04-14 Andrew Choi <akochoi@shaw.ca>
7679
7680 * macterm.c (mac_check_for_quit_char): Don't check more often than
7681 once a second.
7682
6901b111
SM
76832003-04-11 Stefan Monnier <monnier@cs.yale.edu>
7684
7685 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
7686 specially, so that they can't hide an implicit switch-frame event.
7687 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
7688 (head_table): Use switch-frame as event_kind for select-window.
7689 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
7690
7691 * editfns.c (Fformat): Lisp_Object/int mixup.
7692 (format2): Remove unused var numargs.
7693
e301806f 76942003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 7695
6901b111 7696 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
7697 (Qafter_insert_file_set_coding): New variable.
7698 (syms_of_fileio): Initialize and staticpro it. Delete declaration
7699 for after-insert-file-adjust-coding-function.
7700 (Finsert_file_contents): Call Qafter_insert_file_set_coding
7701 instead of Vafter_insert_file_adjust_coding_function.
7702
38914424
KH
77032003-04-11 Kenichi Handa <handa@m17n.org>
7704
7705 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
7706
7707 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
7708 string. Callers changed.
7709
77102003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 7711
6901b111 7712 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 7713 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
7714 (Finsert_file_contents):
7715 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
7716 decode-format.
7717
f979dc05
JD
77182003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7719
7720 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
7721 get GtkAdjustment as widget now is a GtkRange.
7722
7723 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
7724 GtkRange to avoid memory leak.
7725
f8c6b4c2 77262003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 7727
50ebc53d
KH
7728 * xfaces.c (Vface_font_rescale_alist): New variable.
7729 (struct font_name): New member rescale_ratio.
7730 (font_rescale_ratio): New function.
6901b111 7731 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
7732 (better_font_p): On comparing point sized, pay attention to
7733 recale_ratio member of fonts.
7734 (build_scalable_font_name): Reflect font->rescale_ratio in the
7735 font name.
6901b111 7736 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 7737
cb98871c
KH
7738 * lread.c (read1): Before calling index, check if the 2nd
7739 arguemnt is in ASCII range.
7740
4773b8ca
RS
77412003-04-08 Richard M. Stallman <rms@gnu.org>
7742
b0ada147
RS
7743 * fileio.c (Ffile_symlink_p): Doc fix.
7744
7745 * editfns.c (Fformat): Translate positions of text properties
7746 in the format string to apply them to the result.
7747
4773b8ca
RS
7748 * fileio.c (Finsert_file_contents): Doc fix.
7749 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
7750
77512003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 7752
4773b8ca
RS
7753 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
7754
e8f25745 77552003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 7756
e8f25745
ST
7757 * mac.c (init_mac_osx_environment): Switch libexec and bin so
7758 that self-contained application finds libexec files.
7759
f8c6b4c2 77602003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 7761
6901b111
SM
7762 * coding.c (code_convert_region_unwind):
7763 Set Vlast_coding_system_used to the argument.
2310d84c
KH
7764 (code_convert_region): If post-read-conversion function changed
7765 the value of last-coding-sytem, keep the new value in
7766 coding->symbol so that it won't be overridden.
7767 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
7768 (coding_system_accept_latin_extra_p): New function.
7769 (find_safe_codings): Pay attention to characters registered in
7770 latin-extra-code-table.
2310d84c 7771
39c9a034
TTN
77722003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
7773
7774 * Makefile.in (md5.o): Add missing dependency info.
7775
eb67c5d6
RS
77762003-04-06 Richard M. Stallman <rms@gnu.org>
7777
7778 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
7779
7780 * marker.c (verify_bytepos): New function.
7781
7782 * intervals.c (set_intervals_multibyte_1): When becoming
7783 multibyte, adjust right and left child sizes to a whole set of
7784 characters. If an interval gets zero total-length, delete it.
7785 If an interval consists of just its children, delete one of them.
7786
7787 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
7788 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 7789
eb67c5d6
RS
7790 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
7791 All calls deleted.
7792 (lisp_malloc): Do the work here directly.
7793
b1f81fc5
JB
77942003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
7795
7796 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
7797 char tables.
7798
77992003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
7800
7801 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
7802 destructively change "%S" to "%s".
7803
774666fb
MB
78042003-04-03 Miles Bader <miles@gnu.org>
7805
7806 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
7807 always set.
7808
19c37f01
DL
78092003-04-01 Dave Love <fx@gnu.org>
7810
7811 * xfns.c (xpm_lookup_color): Grok "opaque".
7812
2f4b24c3
AC
78132003-03-31 Andrew Choi <akochoi@shaw.ca>
7814
7815 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
7816 parent window ID.
7817
7818 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
7819
7820 * macterm.h (struct mac_output): Define x_pixels_diff and
7821 y_pixels_diff.
b1f81fc5 7822
9443fcf6
JB
78232003-03-31 Juanma Barranquero <lektu@terra.es>
7824
7825 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
7826 blockinput.h and files included from it.
7827
e072891b
KS
78282003-03-31 Kim F. Storm <storm@cua.dk>
7829
7830 The following changes consolidates the common code related to
7831 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
7832 files into frame.c.
9443fcf6 7833
e072891b
KS
7834 * frame.c: Include blockinput.h.
7835 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
7836 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
7837 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
7838 related vars here.
7839 (struct frame_parm_table, frame_parms): New table for describing
7840 frame parameters and their associated Q-variable.
7841 The order of the parameters corresponds to the sequence of the
7842 frame_parm_handlers table in redisplay_interface.
7843 (x_fullscreen_move, x_set_frame_parameters)
7844 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
7845 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
7846 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7847 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
7848 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
7849 Generic functions for processing of frame parameters.
7850 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
7851 (display_x_get_resource, x_get_resource_string): Functions for
7852 generic access to X resources.
7853 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7854 (x_default_parameter, Fx_parse_geometry): Functions for generic
7855 access to frame parameters.
6901b111
SM
7856 (x_figure_window_size): Generic calculation of frame size.
7857 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
7858 (syms_of_frame): Intern and staticpro frame parameter variables.
7859 Defvar_lisp Vx_resource_class and Vx_resource_name here.
7860 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 7861
e072891b
KS
7862 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
7863 parameter related vars defined in frame.c.
7864 (EMACS_CLASS): Define here.
7865 (enum FULLSCREEN_*): Define here.
7866 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
7867 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
7868 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
7869 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
7870 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
7871 (x_set_visibility, x_set_autoraise, x_set_autolower)
7872 (x_set_unsplittable, x_set_vertical_scroll_bars)
7873 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
7874 (x_figure_window_size): Add prototypes.
7875
7876 * dispextern.h (frame_parm_handler): New typedef.
7877 (struct redisplay_interface): New member frame_parm_handlers.
7878 (enum resource_types): Move declaration here.
7879 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7880 (x_default_parameter): Add prototypes.
7881
7882 * window.c: Remove extern decl for frame parameter vars.
7883 (change_window_heights): New generic function;
7884 replaces x_change_window_heights. All users changed.
7885
7886 * window.h (change_window_heights): Add prototype.
7887
7888 * xfaces.c: Remove extern decl for frame parameter vars.
7889
7890 * xterm.h (EMACS_CLASS): Remove. Use generic define.
7891 (struct w32_display_info): Fix type of xrdb member.
7892 (enum FULLSCREEN_*): Remove.
7893 Remove prototypes for generic functions (in frame.h).
7894
7895 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7896 parameters now defined in frame.h and frame.c.
f63fd14e 7897 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7898 (enum x_frame_parms): Remove (bogus, unused enum).
7899 (check_x_display_info): Make non-static (for frame.c).
7900 (struct x_frame_parm_table, x_frame_parms): Remove.
7901 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7902 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7903 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7904 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7905 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7906 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7907 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7908 Remove. Use generic functions instead.
7909 (enum resource_types): Remove.
7910 (x_set_scroll_bar_default_width): New global function (for frame.c).
7911 (Fx_create_frame): Depend on x_figure_window_size to add space for
7912 toolbar and setup size_hint_flags.
7913 (x_frame_parm_handlers): New table for redisplay_interface.
7914 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 7915
e072891b 7916 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 7917 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
7918 (x_redisplay_interface): Add x_frame_parm_handlers member.
7919
7920 * w32gui.h (XrmDatabase): New (dummy) typedef.
7921
7922 * w32term.h (EMACS_CLASS): Remove. Use generic define.
7923 (struct w32_display_info): Fix type of xrdb member.
7924 (enum FULLSCREEN_*): Remove.
7925 (x_fullscreen_adjust): Remove prototype.
7926
7927 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7928 parameters now defined in frame.h and frame.c.
f63fd14e 7929 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7930 (enum x_frame_parms): Remove (bogus, unused enum).
7931 (check_x_display_info): Make non-static (for frame.c).
7932 (struct x_frame_parm_table, x_frame_parms): Remove.
7933 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7934 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7935 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7936 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7937 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7938 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7939 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7940 Remove. Use generic functions instead.
7941 (enum resource_types): Remove.
7942 (x_set_scroll_bar_default_width): New global function (for frame.c).
7943 (Fx_create_frame): Depend on x_figure_window_size to add space for
7944 toolbar and setup size_hint_flags.
7945 (w32_frame_parm_handlers): New table for redisplay_interface.
7946 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 7947
e072891b
KS
7948 * w32term.c: Remove unnecessary extern declarations.
7949 (x_fullscreen_adjust): Remove. Use generic instead.
7950 (x_redisplay_interface): Add w32_frame_parm_handlers member.
7951
7952 * w32reg.c (x_get_string_resource): Use XrmDatabase.
7953
7954 * macgui.h (XrmDatabase): New (dummy) typedef.
7955
7956 * macterm.h (EMACS_CLASS): Remove.
7957 (struct mac_display_info): Add xrdb member.
7958 (struct mac_output): Add want_fullscreen member.
7959
7960 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7961 parameters now defined in frame.h and frame.c.
f63fd14e 7962 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7963 (check_x_display_info): Make non-static (for frame.c).
7964 (struct x_frame_parm_table, x_frame_parms): Remove.
7965 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7966 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7967 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7968 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7969 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7970 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7971 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7972 Remove. Use generic functions instead.
7973 (enum resource_types): Remove.
7974 (x_set_scroll_bar_default_width): New global function (for frame.c).
7975 (mac_frame_parm_handlers): New table for redisplay_interface.
7976 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 7977
e072891b
KS
7978 * macterm.c: Remove unnecessary extern declarations.
7979 (x_redisplay_interface): Add mac_frame_parm_handlers member.
7980
3e6a560b
KS
7981 * Makefile.in (frame.o): Add dependency on blockinput.h and files
7982 included from it (atimer.h and systime.h).
7983
7b7b454e
AS
79842003-03-30 Andreas Schwab <schwab@suse.de>
7985
7986 * xdisp.c (x_insert_glyphs): Fix swapped width and height
7987 parameters for shift_glyphs_for_insert.
7988
7989 * macterm.c (x_redisplay_interface): Add missing entry for
7990 draw_vertical_window_border.
7991
beb402de
KG
79922003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7993
7994 * fileio.c (Fexpand_file_name): In the no-handler case, after
7995 expanding, look again for a handler and invoke it. This is needed
7996 for filenames like "/foo/../user@host:/bar/../baz" -- the first
7997 expansion produces "/user@host:/bar/../baz" which needs to be
7998 expanded again for the finame result "/user@host:/baz".
7999
b676f356
JD
80002003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8001
8002 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8003 of area to be redrawn for better performance.
8004
3c671a56
SM
80052003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8006
8007 * xterm.c (take_vertical_position_into_account): Remove.
8008 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8009 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8010 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8011 (x_set_toolkit_scroll_bar_thumb): Simplify.
8012 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8013 (XTread_socket): Remove unused var.
8014 (x_make_frame_invisible): Replace goto with else.
8015
8016 * xdisp.c (set_vertical_scroll_bar): New fun.
8017 (redisplay_window): Use it.
8018
84f2e615
RS
80192003-03-26 Richard M. Stallman <rms@gnu.org>
8020
8021 * xdisp.c (update_tool_bar): Recompute tool bar if
8022 update_mode_lines is set. Set w->update_mode_line
8023 only if the tool bar contents actually change.
8024 (update_menu_bar): Undo previous change.
8025
70b6104c
JD
80262003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8027
5fd6f727
JD
8028 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8029 (xg_frame_set_char_size): Calculate scroll bar width before frame
8030 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8031 (xg_separator_p): Check for all documented separator types.
8032 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8033 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8034
70b6104c
JD
8035 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8036 so tool bar gets updated.
8037
d9b36d19
SM
80382003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8039
8040 * data.c (store_symval_forwarding): Re-instate part of the code
8041 that was deleted with too much enthusiasm.
8042
80432003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8044
8045 * data.c (store_symval_forwarding): Delete special read-only
8046 hack for type == -1, since we now use ->constant instead.
8047 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8048
8049 * buffer.c (overlays_in): Declare static.
8050 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8051 `constant' field rather than the variable's `type' field.
8052
365fa1b3
AC
80532003-03-24 Andrew Choi <akochoi@shaw.ca>
8054
8055 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8056
8057 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8058
8059 * fns.c [MAC_OSX]: Do not redefine vector.
8060
8061 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8062
8063 * macgui.h: Remove definition of No_Cursor.
8064
d9b36d19 8065 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
8066
8067 * xdisp.c: Define No_Cursor.
8068 (x_write_glyphs, notice_overwritten_cursor)
8069 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8070 (note_mouse_highlight): Remove Mac-specific code.
8071 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 8072
c0bcce6f
JPW
80732003-03-24 John Paul Wallington <jpw@gnu.org>
8074
8075 * xdisp.c (redisplay_window): If mini window's buffer is not
8076 empty, then redisplay it like other windows.
8077
a526b96c
KS
80782003-03-23 Kim F. Storm <storm@cua.dk>
8079
8080 * w32term.c (w32_draw_window_cursor): Fix last change.
8081
37ab321e
KH
80822003-03-23 Kenichi Handa <handa@m17n.org>
8083
a526b96c
KS
8084 * alloc.c (make_string_from_bytes, make_specified_string):
8085 Add `const' for the arg CONTENTS.
37ab321e
KH
8086
8087 * lisp.h (make_string_from_bytes, make_specified_string):
8088 Prototypes adjusted.
8089
7863d625
JD
80902003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8091
a526b96c 8092 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 8093
7863d625
JD
8094 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8095 (XG_SB_RANGE): New define.
8096
8097 * gtkutil.c (xg_fixed_handle_expose): New function.
8098 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8099 expose events.
8100 (xg_update_scrollbar_pos): Take two more arguments, left and width
8101 of scroll bar including borders.
8102 Clear left and right part outside scroll bar separately as some
8103 themes have bars that are not an even number of pixels.
d9b36d19 8104 Don't set reallocate_redraws, don't call
7863d625
JD
8105 gdk_window_process_all_updates.
8106 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8107 so no need to change it. Calculate size and value with XG_SB_RANGE.
8108
d9b36d19
SM
8109 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8110 Pass left and width of scroll bar including borders to
7863d625
JD
8111 xg_update_scrollbar_pos.
8112
af0ad939
TTN
81132003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8114
8115 * Makefile.in: Make sure space precedes end-of-line backslashes.
8116
b22139fd
KS
81172003-03-22 Kim F. Storm <storm@cua.dk>
8118
8119 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8120 Add generic versions here. Remove system specific versions
8121 defined elsewhere.
8122
8123 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8124 Add prototypes.
8125
6e6410cf
KS
8126 * xterm.h (STORE_NATIVE_RECT): New macro.
8127
5c9cc435
KS
81282003-03-21 Kim F. Storm <storm@cua.dk>
8129
00c64fab
SM
8130 * xdisp.c (get_glyph_string_clip_rect):
8131 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
8132
8133 * dispextern.h (struct redisplay_interface): Add active_p
8134 argument to draw_window_cursor member. All uses changed.
8135
acd37560
KS
81362003-03-21 Kim F. Storm <storm@cua.dk>
8137
8138 The following changes consolidate code related to writing and
8139 inserting glyphs, exposing frame, the tool bar, the mouse face,
8140 the output cursor, and help echo from xterm.c, w32term.c and
8141 macterm.c into xdisp.c. It also generalizes the use of the
8142 window_part enum instead of using numeric values throughout.
af0ad939 8143
acd37560
KS
8144 * xdisp.c: Consolidate gui-independent code here.
8145 Include keymap.h.
8146 (Qhelp_echo): Import.
8147 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8148 (help_echo_string, help_echo_window, help_echo_object)
8149 (previous_help_echo_string, help_echo_pos): Declare here.
8150 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8151 (estimate_mode_line_height): Define here. Handle windowing
8152 systems directly (without using estimate_mode_line_height_hook).
8153 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8154 (update_window_cursor, update_cursor_in_window_tree)
8155 (fast_find_position, fast_find_string_pos)
8156 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8157 (expose_area, expose_line, expose_overlaps, expose_window)
8158 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8159 declared static as they are only used locally in xdisp.c.
8160 (draw_glyphs): Rename from x_draw_glyphs and make static.
8161 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8162 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8163 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 8164 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
8165 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8166 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8167 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8168 (note_mouse_highlight, x_clear_window_mouse_face)
8169 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8170 (x_intersect_rectangles): New generic functions for use by xdisp.c
8171 and GUI front-ends.
8172 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8173 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8174
8175 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8176 (NativeRectangle): Generic typedef for rectangle type.
8177 (enum window_part): Move here from window.c.
8178 (struct redisplay_interface): New members flush_display_optional,
8179 define_frame_cursor, clear_frame_area, draw_window_cursor,
8180 draw_vertical_window_border, shift_glyphs_for_insert.
8181 Rename member clear_mouse_face to clear_window_mouse_face.
8182 (estimate_mode_line_height_hook): Remove hook.
8183 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8184 (tool_bar_item_info): Remove prototype.
8185 (help_echo_string, help_echo_window, help_echo_object)
8186 (previous_help_echo_string, help_echo_pos)
8187 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8188 (x_stretch_cursor_p, output_cursor): Declare extern.
8189 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8190 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8191 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8192 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8193 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8194 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8195 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8196 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8197 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8198 Add prototypes.
8199 (mode_line_string, marginal_area_string): Fix prototypes.
8200
8201 * window.c (enum window_part): Move to dispextern.h.
8202 (coordinates_in_window): Use enum window_part member names
8203 instead of numbers to describe return value.
8204 (struct check_window_data): Change part member to window_part.
8205 (check_window_containing): Return window_part unaltered.
8206 (window_from_coordinates): Change part arg from int to enum
8207 window_part. Allow part arg to be null. All users changed.
8208
8209 * window.h (window_from_coordinates): Fix prototype.
8210
8211 * term.c (estimate_mode_line_height): Move to xdisp.c.
8212
8213 * keyboard.c (make_lispy_event): Use enum window_part.
8214
8215 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8216 window_part instead of int in arg list. Users changed.
8217
8218 * xterm.h (No_Cursor): Declare as None for X.
8219 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 8220
acd37560
KS
8221 * xterm.c: Remove consolidated defines and code.
8222 (BETWEEN): Remove unused macro.
8223 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8224 (x_define_frame_cursor, x_clear_frame_area)
8225 (x_draw_window_cursor): New X-specific functions for RIF.
8226 (x_redisplay_interface): Add new members.
8227
8228 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8229
8230 * w32term.h (struct w32_output): Remove cross_cursor member.
8231
8232 * w32term.c: Remove consolidated defines and code.
8233 (BETWEEN): Remove unused macro.
8234 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8235 (w32_define_frame_cursor, w32_clear_frame_area)
8236 (w32_draw_window_cursor): New W32-specific functions for RIF.
8237 (w32_redisplay_interface): Add new members.
8238
a64387ee 8239 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
8240 (XRectangle): Add X compatible rectangle type.
8241 (NativeRectangle): Declare as RECT for W32.
8242 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8243
8244 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8245
8246 * w32console.c: Remove consolidated defines and code.
af0ad939 8247
acd37560
KS
8248 * msdos.h (Display_Info): Add generic typedef.
8249
8250 * msdos.c: Remove consolidated defines and code.
8251 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8252
8253 * macterm.h (struct mac_output): Replace member cross_cursor by
8254 hand_cursor.
8255 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8256
8257 * macterm.c: Remove consolidated defines and code.
8258 (BETWEEN): Remove unused macro.
8259 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8260 (mac_define_frame_cursor, mac_clear_frame_area)
8261 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8262 (x_redisplay_interface): Add new members.
8263
8264 * macgui.h (No_Cursor): Define as 0 for Mac.
8265 (XRectangle): Add X compatible rectangle type.
8266 (NativeRectangle): Declare as Rect for Mac.
8267 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8268
204ccab1
KS
8269 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8270 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 8271
9443fcf6 8272 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
8273 included from it. Add dependency on keymap.h.
8274
8275 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8276
8ba01a70 82772003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
8278
8279 * fileio.c (Fexpand_file_name): Fix previous change.
8280
8ba01a70 82812003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
8282
8283 * fileio.c (Ffile_name_directory): Reconstruct file name by
8284 make_specified_string.
8285 (Ffile_name_nondirectory, Ffile_name_as_directory)
8286 (Fdirectory_file_name, Fexpand_file_name)
8287 (Fsubstitute_in_file_name): Likewise.
8288 (Fread_file_name): Compare decoded homedir with DIR and
8289 DEFAULT_FILENAME.
8290
8291 * alloc.c (make_specified_string): If NCHARS is negative, count
8292 the number of characters.
8293
19536747
JD
82942003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8295
de38ae5a
JD
8296 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8297 all widgets.
8298
19536747
JD
8299 * gtkutil.h: Removed xg_ignore_next_thumb.
8300
37ab321e 83012003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
8302
8303 * coding.c (Vchar_coding_system_table): Remove this variable.
8304 (Vcoding_system_safe_chars): New variable.
8305 (intersection): Remove this function.
8306 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8307 all codings in SAFE_CODINGS.
00c64fab 8308 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
8309 find_safe_codings. Get generic coding systems from
8310 Vcoding_system_safe_chars.
8311 (Fdefine_coding_system_internal): New function.
8312 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8313 Initialize and staticpro Vcoding_system_safe_chars.
8314
17097258
JD
83152003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8316
2a2071c3
JD
8317 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8318 equal old values before updating.
8319
17097258
JD
8320 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8321
8322 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8323
83242003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8325
8326 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8327 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8328 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8329 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8330 (xg_create_scroll_bar): Pass bar to button event callback.
8331 (xg_find_top_left_in_fixed): New function.
8332 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8333 whole scroll bar area. Get old position with
8334 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8335 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8336 dragging is in progress. Calculate whole as for Motif.
8337 Remove code that saved last values. Call gtk_range functions to
8338 set scroll bar sizes.
8339
8340 * gtkutil.h: Removed xg_ignore_next_thumb.
8341
8cb9dfbf
JB
83422003-03-17 Juanma Barranquero <lektu@terra.es>
8343
8344 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8345 and files included from it.
8346
00c64fab
SM
83472003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8348
8349 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8350 multiple occurrences of the same keymap under different prefixes.
8351 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8352
c45bb3b2
JR
83532003-03-16 Jason Rumney <jasonr@gnu.org>
8354
8355 * w32gui.h: Use HDC for Display.
8356
8357 * w32term.c (w32_encode_char): Prevent double-byte chars from
8358 crashing Emacs.
8359
8360 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8361 as binary.
8362
2a6d0874
JB
83632003-03-16 Juanma Barranquero <lektu@terra.es>
8364
8365 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8366
03eb5fab
KS
83672003-03-16 Kim F. Storm <storm@cua.dk>
8368
8369 The following changes consolidate some of the gui-independent
8370 parts of the processing and drawing of "glyph strings" from
8371 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 8372
03eb5fab
KS
8373 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8374 21 bits (this reduces number of faces from 4M to 2M).
8375 Replace W32 specific w32_font_type member (2 bits) by generic
8376 font_type member (3 bits) for portability.
8377 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8378 (enum draw_glyphs_face): Define here.
8379 (struct glyph_string): Define here. Merge W32 and X versions.
8380 (struct redisplay_interface): New members per_char_metric,
8381 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8382 (VCENTER_BASELINE_OFFSET): Define here.
8383 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8384 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8385
8386 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8387 (dump_glyph_string): Moved here.
8388 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8389 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8390 (fill_composite_glyph_string, fill_glyph_string)
8391 (fill_image_glyph_string, fill_stretch_glyph_string)
8392 (left_overwritten, left_overwriting, right_overwritten)
8393 (right_overwriting, get_char_face_and_encoding)
8394 (set_glyph_string_background_width, compute_overhangs_and_x)
8395 (append_glyph, append_composite_glyph, produce_image_glyph)
8396 (take_vertical_position_into_account, append_stretch_glyph)
8397 (produce_stretch_glyph): New generic functions (based on X version).
8398 Call platform specific functions through rif.
8399 (INIT_GLYPH_STRING): New macro, hides W32 details.
8400 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8401 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8402 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8403 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8404 (notice_overwritten_cursor):
8405 Generic functions exported to platform modules. Users changed.
8406
8407 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8408 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8409 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 8410 New macros for consolidated code.
2a6d0874 8411
03eb5fab
KS
8412 * xterm.c: Remove consolidated defines and code.
8413 (x_per_char_metric, x_encode_char)
8414 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8415 (x_redisplay_interface): Add new members.
8416
8417 * w32gui.h (Display): Add dummy typedef for consolidation.
8418 (XChar2b): Define alias for wchar_t for consolidation.
8419 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8420
8421 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 8422 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
8423 New macros for consolidation.
8424
fad49844 8425 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
8426 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8427 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8428 (w32_per_char_metric): Change font_type arg to int for RIF.
8429 (w32_encode_char): Return int according to RIF requirements.
8430 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8431 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8432 x_get_glyph_overhangs.
8433 (w32_redisplay_interface): Add new members.
8434
8435 * macgui.h (XChar2b): Move typedef here for consolidation.
8436 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8437
8438 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8439 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8440 consolidation.
8441
8442 * macterm.c: Remove consolidated defines and code.
8443 (mac_per_char_metric): New function for RIF.
00c64fab 8444 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
8445 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8446 (x_redisplay_interface): Add new members.
8447
00c64fab
SM
84482003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8449
8450 * keymap.c (Vmenu_events): New var.
8451 (syms_of_keymap): Initialize it.
8452 (where_is_internal): Check more carefully what is a menu event.
8453
225c7a07
RS
84542003-03-14 Richard M. Stallman <rms@gnu.org>
8455
8456 * lread.c (read1): After #!, exit loop on eof.
8457
cea9be54
JD
84582003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8459
9ea0e54d
JD
8460 * gtkutil.h: Add declaration for xg_frame_cleared.
8461
0cb35f4e
JD
8462 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8463
cea9be54
JD
8464 * gtkutil.c (struct xg_last_sb_pos): New structure.
8465 (handle_fixed_child): New function.
8466 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8467 and force a redraw on them.
8468 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8469 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8470 so we can avoid unneeded redraws.
8471 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8472 and force a redraw on the scroll bar.
8473 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8474 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 8475 (xg_frame_cleared): New function.
cea9be54 8476
20b853f3
KH
84772003-03-13 Kenichi Handa <handa@m17n.org>
8478
8479 * coding.c (Fdetect_coding_region): Fix docstring.
8480 (Fdetect_coding_string): Fix docstring.
8481
7a555aff
AS
84822003-03-13 Andreas Schwab <schwab@suse.de>
8483
25cc0080
AS
8484 * gtkutil.c: Add prototype for create_menus.
8485
30225431
AS
8486 * data.c (long_to_cons): Fix type of top.
8487
8488 * xselect.c (selection_data_to_lisp_data): Use int instead of
8489 long for an integer of size 4.
8490
7a555aff 8491 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 8492 (xg_tool_bar_help_callback): Likewise.
7a555aff 8493
a3e4741f
AS
84942003-03-12 Andreas Schwab <schwab@suse.de>
8495
8496 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8497
9668be7c
KS
84982003-03-12 Kim F. Storm <storm@cua.dk>
8499
03eb5fab 8500 The following changes consolidate the fringe handling from
9668be7c 8501 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 8502
9668be7c
KS
8503 * xdisp.c: Consolidate fringe handling code here.
8504 (left_bits, right_bits, continued_bits, continuation_bits)
8505 (ov_bits, zv_bits): Define fringe bitmaps.
8506 (fringe_bitmaps): New array holding fringe bitmaps.
8507 (draw_fringe_bitmap): Draw a specific bitmap; call display
8508 specific drawing routine via rif->draw_fringe_bitmap.
8509 (draw_row_fringe_bitmaps): Generic replacement for
8510 x_draw_row_fringe_bitmaps; all callers changed.
8511 (compute_fringe_widths): Generic replacement for
8512 x_compute_fringe_widths; all callers changed.
8513
8514 * dispextern.h (enum fringe_bitmap_type): Define here.
8515 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8516 (fringe_bitmaps): Declare extern.
8517 (struct redisplay_interface): New member draw_fringe_bitmap.
8518 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8519
8520 * xterm.c: Remove generic fringe code.
8521 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8522 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8523
8524 * w32term.c: Remove generic fringe code.
8525 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8526 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 8527
9668be7c
KS
8528 * macterm.c: Remove generic fringe code.
8529 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8530 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8531
00a88f32
SM
85322003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8533
8534 * print.c (Fprin1_to_string): Return unibyte string if possible.
8535
1d1de695
DK
85362003-03-09 David Kastrup <dak@gnu.org>
8537
8538 * process.c (read_process_output): We have allocated enough space
8539 for readmax and carryover, so actually use the alloted space.
8540
257f40f2
JD
85412003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8542
8543 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8544 toolkit scrollbar click.
8545
8546 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8547 for USE_GTK.
8548 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8549 also.
8550 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8551 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 8552
78819ebb 8553 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
8554
8555 * gtkutil.c (xg_get_scroll_id_for_window): New function.
8556 (xg_tool_bar_item_expose_callback): New function.
8557 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
8558 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
8559 on the tool bar widget.
8560 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
8561 to expose on the tool bar item widgets.
8562
15213141
JD
85632003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8564
26b74a0b 8565 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 8566 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
8567 deleted from the image cache).
8568
15213141
JD
8569 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
8570 the event isn't for a frame (i.e. for dialogs).
8571
20b853f3 85722003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
8573
8574 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
8575 composition components reaches the limit, terminate composing.
8576 (COMPOSITION_OK): New macro.
00a88f32 8577 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
8578 composition is found.
8579 (coding_restore_composition): Adjust the number of composition
8580 components if it is not sane.
8581
c9029fe5
JB
85822003-03-06 Juanma Barranquero <lektu@terra.es>
8583
8584 * w32term.h (struct w32_display_info): Add xrdb member to support
8585 passing resources via -xrm on Windows.
8586
8587 * w32term.c (w32_make_rdb): New function.
8588 (w32_term_init): Use it to initialize xrdb member of w32_display_info
8589 struct. Delete leftover code.
8590
8591 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
8592 for resources passed on the command line.
8593
8594 * w32reg.c (w32_get_rdb_resource): New function.
8595 (x_get_string_resource): Use it, so resources passed with -xrm
8596 supercede the ones in the registry.
8597
9d00001f
JD
85982003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8599
8600 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
8601 instead of x_top_window_to_frame.
8602
ca2417b9
JD
86032003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8604
8605 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
8606 when restarting Emacs.
8607
5b20caf0
RS
86082003-03-03 Richard M. Stallman <rms@gnu.org>
8609
8610 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
8611 to run kill-buffer-query-functions.
8612 (Qkill_buffer_query_functions): New var.
8613 (syms_of_buffer): Init and staticpro it.
8614
58e91b77
JD
86152003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8616
8617 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
8618
932357b4
KS
86192003-02-25 Kim F. Storm <storm@cua.dk>
8620
8621 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
8622 If centering point failed to make whole line visible and vscroll
8623 is non-zero, disable vscroll and try centering point again.
8624
8625 * lread.c (read1): Accept `single space' syntax like (? x).
8626
bb8db7e1
JD
86272003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8628
8629 * keyboard.c (cancel_hourglass_unwind): Surround with
8630 #ifdef HAVE_X_WINDOWS
8631
47d77aab
KH
86322003-02-25 Kenichi Handa <handa@m17n.org>
8633
8634 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
8635 process only when "subprocesses" is defined.
8636
6a097c0c
SM
86372003-02-24 Stefan Monnier <monnier@cs.yale.edu>
8638
8639 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
8640
0b063c27
JB
86412003-02-24 Juanma Barranquero <lektu@terra.es>
8642
d1135afc
JB
8643 * callint.c (fix_command): Declare as static void and move before
8644 Fcall_interactively.
8645
0b063c27
JB
8646 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
8647 (syms_of_xdisp): Don't initialize Qwhen.
8648
0af912f0
JD
86492003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8650
8651 * keyboard.c (cancel_hourglass_unwind): New function.
8652 (command_loop_1): Cancel hourglass with unwind-protect.
8653
120d0a23
RS
86542003-02-23 Richard M. Stallman <rms@gnu.org>
8655
8656 * callint.c (fix_command): New subroutine, from Fcall_interactively.
8657 Detect (when ... (region-beginning)) etc.
8658 (Fcall_interactively): Call fix_command.
8659 (Qif, Qwhen): New variables.
8660 (syms_of_callint): Init and staticpro them.
0b063c27 8661
120d0a23
RS
8662 * regex.c (print_partial_compiled_pattern): Output to stderr.
8663
4ece81a6
KG
86642003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8665
8666 * dired.c (directory_files_internal): Don't expand directory.
8667 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
8668 instead. From Lars Hansen <larsh@math.ku.dk>.
8669
e52bd6b7
SM
86702003-02-22 Stefan Monnier <monnier@cs.yale.edu>
8671
8672 * fns.c (string_to_multibyte): Remove unused var i.
8673 (Flanginfo): Fix int/Lisp_Object mixup.
8674 (void_call2): New fun.
8675 (Fmap_char_table): Use it in place of call2.
8676
8677 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
8678
8679 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
8680
8681 * keymap.c (copy_keymap_1): Make it static.
8682
8683 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
8684
c33ef7c4
JB
86852003-02-22 David Ponce <david@dponce.com>
8686
8687 * lread.c (Fload): Don't check STRING_MULTIBYTE.
8688
16782258
JD
86892003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8690
8691 * process.h: Removed subtty field from struct Lisp_Process.
8692
8693 * process.c (create_process): Remove setting of subtty.
8694 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
8695 (Fprocess_running_child_p, process_send_signal):
8696 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
8697 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
8698
3abeca61
KG
86992003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8700
8701 * keymap.c (Fdefine_key): Doc fix.
8702
92a8ce63
JB
87032003-02-21 Juanma Barranquero <lektu@terra.es>
8704
8705 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
8706
8707 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
8708 POLLING_PROBLEM_IN_SELECT.
8709
8710 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
8711 Delete #undef of POLLING_PROBLEM_IN_SELECT.
8712
8713 * s/hpux10-20.h: New file.
8714
e52bd6b7
SM
8715 * process.c (wait_reading_process_input):
8716 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 8717
20f1ef2e
KH
87182003-02-20 Kenichi Handa <handa@m17n.org>
8719
32d0a9dc
KH
8720 * fontset.c (check_fontset_name): If NAME is nil, return the
8721 default fontset.
8722 (override_font_info): New function.
e52bd6b7 8723 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
8724 (Ffontset_info): If FONTSET is not the default fontset, merge
8725 FONTSET onto the copy of the default fontset, and work on that
8726 copy. Document that NAME nil means the default fontset.
8727 (Ffontset_font): Document that NAME nil means the default fontset.
8728
20f1ef2e
KH
8729 * process.c (setup_process_coding_systems): If the process's
8730 in/out descriptor is -1, do nothing.
8731
77d1daf2
AS
87322003-02-19 Andreas Schwab <schwab@suse.de>
8733
e52bd6b7
SM
8734 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
8735 Add prototypes.
77d1daf2 8736
f9a45bb3
KH
87372003-02-19 Kenichi Handa <handa@m17n.org>
8738
8739 * xfaces.c (try_alternative_families): Try all scalable fonts if
8740 Vscalable_fonts_allowed is not Qt.
8741
72ecb43c
JD
87422003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8743
8744 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
8745
ee5be7c3
JD
87462003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8747
8748 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
8749 names.
8750
8751 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 8752 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
8753 x_face_list_fonts.
8754 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
8755 (Fx_list_fonts): Set maxnames to -1 to get all font names.
8756
4cd519a7
KS
87572003-02-18 Kim F. Storm <storm@cua.dk>
8758
068f9882
KS
8759 * lread.c (read1): Fix last change.
8760 "`" is not always special. Allow "?" after a character constant.
4cd519a7 8761
7290a344
AC
87622003-02-18 Andrew Choi <akochoi@shaw.ca>
8763
8764 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
8765
1f7fa69b
AS
87662003-02-18 Andreas Schwab <schwab@suse.de>
8767
8768 * window.c (window_scroll_pixel_based): Move outside a
8769 multi-glyph character before setting new window start.
8770
8771 * xdisp.c (in_display_vector_p): New function.
8772 * dispextern.h (in_display_vector_p): Declare.
8773
23e21195
KS
87742003-02-18 Kim F. Storm <storm@cua.dk>
8775
8776 * lread.c (read1): Fix and relax read syntax.
8777 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
8778 Only recognize "," after dotted-pair dot if inside backquote.
8779 Never include "`" or "," (inside backquote) in a symbol.
8780 Allow dotted-pair dot after a character constant.
8781 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 8782
f098b121
JD
87832003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8784
8785 * gtkutil.c (xg_tool_bar_expose_callback): New function.
8786 (xg_create_tool_bar): Force style of tool bar to be horizontal with
8787 icons. Set name of tool bar to emacs-toolbar.
8788 (update_frame_tool_bar): Connect expose event to
8789 xg_tool_bar_expose_callback.
8790
63020c46
RS
87912003-02-17 Richard M. Stallman <rms@gnu.org>
8792
8793 * keyboard.c (this_command_key_count_reset): New variable.
8794 Initiatize to 0 where this_command_key_count is set.
8795 (read_char): Save and restore this_command_key_count_reset
8796 around input method code.
8797 (read_char): If this_command_key_count_reset, echo reread commands.
8798 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
8799
fb4452cc
KH
88002003-02-17 Kenichi Handa <handa@m17n.org>
8801
8802 * fns.c (string_to_multibyte): Always return a multibyte string.
8803
bd11cc09
JR
88042003-02-16 Jason Rumney <jasonr@gnu.org>
8805
e52bd6b7
SM
8806 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
8807 Negative max_fonts parameter means list all.
bd11cc09 8808
4cdf4bde
DL
88092003-02-14 Dave Love <fx@gnu.org>
8810
8811 * fns.c (Flanginfo): Doc fix.
8812
023b93f6
KS
88132003-02-13 Kim F. Storm <storm@cua.dk>
8814
37cd4238
KS
8815 * lread.c (read_escape): Interpret \s as a SPACE character, except
8816 for \s-X in a character constant which still is the super modifier.
8817 (read1): Signal an `invalid read syntax' error if a character
8818 constant is immediately followed by a digit or symbol character.
8819
140a6b7e
KS
8820 * search.c (Fmatch_data): Doc fix. Explicitly state that
8821 match-data is undefined if last search failed.
8822
023b93f6
KS
8823 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
8824 All uses changed.
8825
7d5c86e5
JB
88262003-02-12 Juanma Barranquero <lektu@terra.es>
8827
8828 * eval.c (Fdefmacro): Fix typo.
8829
295fff2c
KS
88302003-02-12 Kim F. Storm <storm@cua.dk>
8831
8832 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
8833 macro is a string, convert meta modifiers in string when copying
8834 the string into a vector.
8835
60f3202d
KS
88362003-02-11 Kim F. Storm <storm@cua.dk>
8837
8838 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
8839
61cb0b53
KH
88402003-02-11 Kenichi Handa <handa@m17n.org>
8841
8842 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
8843
7392e23c
KS
88442003-02-10 Kim F. Storm <storm@cua.dk>
8845
8846 * process.c: Doc fixes.
8847 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
8848
ce4254bd
KH
88492003-02-10 Kenichi Handa <handa@m17n.org>
8850
9c7a329a
KH
8851 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
8852
ce4254bd
KH
8853 * process.c (QCfilter_multibyte): New variable.
8854 (setup_process_coding_systems): New function.
e52bd6b7
SM
8855 (Fset_process_buffer, Fset_process_filter):
8856 Call setup_process_coding_systems.
ce4254bd
KH
8857 (Fstart_process): Initialize the member `filter_multibyte' of
8858 struct Lisp_Process.
8859 (create_process): Call setup_process_coding_systems.
8860 (Fmake_network_process): New keyward `:filter-multibyte'.
8861 Initialize the member `filter_multibyte' of struct Lisp_Process.
8862 Call setup_process_coding_systems.
8863 (server_accept_connection): Call setup_process_coding_systems.
8864 (read_process_output): If the process has a filter, decide the
8865 multibyteness of a string to given to the filter by
8866 `filter_multibyte' member of the process. If the process doesn't
8867 have a filter and the result of conversion is unibyte, use
8868 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
8869 multibyte form.
8870 (Fset_process_coding_system): Call setup_process_coding_systems.
8871 (Fset_process_filter_multibyte): New function.
8872 (Fprocess_filter_multibyte_p): New function.
8873 (syms_of_process): Intern and staticpro QCfilter_multibyte.
8874 Defsubr Sset_process_filter_multibyte and
8875 Sprocess_filter_multibyte_p.
8876
8877 * process.h (struct Lisp_Process): New member filter_multibyte.
8878
8879 * lisp.h (setup_process_coding_systems): Add prototype.
8880
8881 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
8882 process, update coding systems for the process.
8883
b08d5f59
KH
88842003-02-09 Kenichi Handa <handa@m17n.org>
8885
8886 * fns.c (string_to_multibyte): New function.
8887 (Fstring_to_multibyte): New function.
8888 (syms_of_fns): Defsubr it.
8889
0dfd93c0
AS
88902003-02-08 Andreas Schwab <schwab@suse.de>
8891
8892 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
8893 instead of the substitution.
8894
7b76ca1c
JD
88952003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8896
8897 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
8898
8899 * xmenu.c (menu_position_func): Adjust menu popup position so that
8900 the menu is fully visible.
7b76ca1c 8901
2436a4e4
JD
89022003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8903
8904 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
8905 (x_make_frame_invisible, x_wm_set_icon_position):
8906 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
8907
8908 * xfns.c (x_set_name, x_set_title): Ditto.
8909
37d1e680
RS
89102003-02-04 Richard M. Stallman <rms@gnu.org>
8911
8912 * keyboard.c (echo_now): Update before_command_echo_length.
8913 (Freset_this_command_lengths): Reset this_command_key_count etc.
8914 immediately rather than arranging to do it later.
8915 (before_command_key_count_1, before_command_echo_length_1)
8916 (before_command_restore_flag): Vars deleted.
8917 (add_command_key): Don't handle before_command_restore_flag.
8918 (read_char, record_menu_key): Don't update before_command_key_count or
8919 before_command_echo_length.
8920 (read_char): Don't handle before_command_restore_flag.
8921
8922 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
8923 in direct-output clauses if it wouldn't be called in the ordinary case.
8924
578846a3
KS
89252003-02-04 Kim F. Storm <storm@cua.dk>
8926
8927 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
8928
49853a4d
JD
89292003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8930
8931 * gtkutil.c (remove_from_container): Copying list is not needed.
8932 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
8933 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
8934 on list returned from gtk_container_get_children to avoid memory leak.
8935
8b53dc06
JR
89362003-02-01 Jason Rumney <jasonr@gnu.org>
8937
5d54d177
JR
8938 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
8939 local malloc.
8940 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
8941 definitions in xpm.h.
8942 (init_xpm_functions): New function.
f63fd14e 8943 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
8944 (init_external_image_libraries): Try to load libXpm.dll.
8945
8b53dc06
JR
8946 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
8947 timestamp.
8948
b222e415
DL
89492003-01-31 Dave Love <fx@gnu.org>
8950
8951 * syntax.c (Fskip_chars_forward)
8952 (open-paren-in-column-0-is-defun-start): Doc fix.
8953
c60ee5e7
JB
89542003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
8955
8956 * fileio.c: Support // at start of name for Cygwin (just added proper
8957 preprocessor tests).
8958
8959 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
8960
8961 * Makefile.in: Use @EXEEXT@ for Cygwin.
8962
8963 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
8964
8965 * s/cygwin.h: Added for Cygwin port.
8966
53b37591
JB
89672003-01-31 Juanma Barranquero <lektu@terra.es>
8968
8969 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
8970 when including gif_lib.h.
fe929957 8971 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
8972 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
8973 Windows. Disable color table lookups. Call library functions
53b37591 8974 through pointers determined at runtime.
fe929957
JB
8975 (init_external_image_libraries): Try to load libungif.dll and
8976 libtiff.dll.
53b37591 8977
45415a8f
KH
89782003-01-31 Kenichi Handa <handa@m17n.org>
8979
8980 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 8981 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 8982
a97e4138
JD
89832003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8984
e52bd6b7 8985 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 8986
6eed9bed
DL
89872003-01-30 Dave Love <fx@gnu.org>
8988
8989 * alloc.c (Vgc_elapsed, gcs_done): New variables.
8990 (Fgarbage_collect): Use them.
8991 (init_alloc, syms_of_alloc): Set them up.
8992
100dcd40
JB
89932003-01-30 Juanma Barranquero <lektu@terra.es>
8994
8995 * w32fns.c (init_external_image_libraries): Add missing operator.
8996
fbd852af
JR
89972003-01-29 Jason Rumney <jasonr@gnu.org>
8998
8999 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9000 an alternative name for jpeg.dll.
9001
8a2d8020
KH
90022003-01-29 Kenichi Handa <handa@m17n.org>
9003
9004 * xdisp.c (set_cursor_from_row): Pay attention to string display
9005 properties.
9006
058c18c7
AC
90072003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9008
9009 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9010 <escape>.
9011 (keycode_to_xkeysym_table): Reformat and add more comments.
9012 (XTread_socket): Drop special case for backspace.
9013
385f11cf
AC
90142003-01-28 Andrew Choi <akochoi@shaw.ca>
9015
9016 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9017 values in old-style RGB specs.
9018
c922a224
JB
90192003-01-27 Juanma Barranquero <lektu@terra.es>
9020
9021 * w32fns.c (init_external_image_libraries): Try alternate names for the
9022 jpeg dll.
9023
0a1d6de0
JD
90242003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9025
9026 * gtkutil.c (create_dialog, xg_separator_p)
9027 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9028 before calling strcmp or strlen.
9029
a97e4138 90302003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
9031
9032 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9033 and handle image load failure.
9034
28908312
JR
90352003-01-26 Jason Rumney <jasonr@gnu.org>
9036
9037 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9038 New functions.
f63fd14e
JB
9039 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9040 Disable color table lookups. Call jpeg library functions
28908312
JR
9041 through pointers determined at runtime.
9042 (init_external_image_libraries): Try to load jpeg.dll.
9043
84e47416
RS
90442003-01-25 Richard M. Stallman <rms@gnu.org>
9045
9046 * lisp.h: Declare format2 instead of format1.
9047
9048 * fileio.c (barf_or_query_if_file_exists):
9049 Call format2 instead of format1.
9050
9051 * editfns.c (format2): New function, replaces format1
9052 but takes exactly two Lisp Objects as format args.
9053
9054 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9055
a97e4138 90562003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
9057
9058 * xterm.h: Change to return value of x_dispatch_event to int.
9059
9060 * xterm.c (x_filter_event): New function.
9061 (event_handler_gdk, XTread_socket): Call x_filter_event.
9062 (x_dispatch_event): Change to return value of finish.
9063 (event_handler_gdk): Use return value from x_dispatch_event.
9064
9065 * xfns.c (x_window): Call create_frame_xic for GTK version to
9066 initialize input methods.
9067
9068 * gtkutil.h: Add (void) prototypes.
9069
9070 * gtkutil.c (create_menus): Remove code that puts the help menu to
9071 the right.
9072
54eefef1
JR
90732003-01-25 Jason Rumney <jasonr@gnu.org>
9074
9075 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9076 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
9077 (png_load): Adjust colors for Windows. Use Windows
9078 bitmaps. Disable color table lookups.
c262430d
JR
9079 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9080 (init_png_functions): New function.
9081 (png_read_from_memory, png_load): Call png library functions
9082 through pointers determined at runtime.
9083 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9084 (init_external_image_libraries): New function.
9085 (init_xfns): Call it.
54eefef1 9086
1a9e275b
AS
90872003-01-24 Andreas Schwab <schwab@suse.de>
9088
9089 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9090
a97e4138 90912003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
9092
9093 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9094 of static initializer.
9095
422eec7e
DL
90962003-01-24 Dave Love <fx@gnu.org>
9097
9098 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9099 architectures.
9100
9101 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9102 Use __alignof__.
9103
2a026b04
KH
91042003-01-24 Kenichi Handa <handa@m17n.org>
9105
9106 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 9107 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
9108 (command_loop_1): Call adjust_point_for_property with proper
9109 second arg.
9110
a18bb28d
JR
91112003-01-22 Jason Rumney <jasonr@gnu.org>
9112
9113 Sync changes with xterm.c and xfns.c.
9114
9115 * w32term.c (x_draw_glyph_string_foreground)
9116 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9117
9118 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9119 phys_cursor's hpos is overwritten. This is still not completely
9120 correct, as it doesn't really make sense to use hpos at all to
9121 get the cursor glyph (as that is relative to the width of the
9122 characters on the line, which may have changed during the update).
9123
9124 * w32term.c (notice_overwritten_cursor): Handle the special case
9125 of the cursor being in the first blank non-text line at the
9126 end of a window.
9127
9128 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9129 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9130 Compute from the x position returned by x_draw_glyphs.
9131
9132 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9133 except for NO_CURSOR and system caret, to make phys_cursor_width
9134 contain what its name suggests.
9135 (notice_overwritten_cursor): Consider the cursor image erased if
9136 the output area intersects the cursor image in y-direction.
9137
6a097c0c
SM
9138 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9139 note_mode_line_highlight and extend.
a18bb28d
JR
9140
9141 * w32term.c (last_window): New variable.
9142 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9143 (note_mouse_movement): Remove reimplemented code in #if 0.
9144
9145 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9146 not update_mode_lines, and always set it to 1.
9147
ac6e47ef
JR
91482003-01-21 Jason Rumney <jasonr@gnu.org>
9149
9150 * w32fns.c (IDC_HAND): Define it if system headers don't.
9151
91522003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9153
9154 * w32term.h (struct w32_output): New member hand_cursor.
9155 (WM_EMACS_SETCURSOR): New message definition.
9156
9157 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9158 function w32_define_cursor.
9159 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9160 position, change member name output_data.x to output_data.w32 and
9161 add function w32_define_cursor.
9162 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9163 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
9164 (w32_initialize_display_info):
9165 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
9166
9167 * w32fns.c (Vx_hand_shape): New variable.
9168 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9169 WM_EMACS_SETCURSOR.
9170 (x-create-frame): Setup Cursor types.
9171
ceb39a17
JB
91722003-01-21 David Ponce <david@dponce.com>
9173
ac6e47ef 9174 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 9175 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 9176 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 9177 2002-09-30.)
ac6e47ef
JR
9178 (w32_draw_relief_rect): Declare all args.
9179 (w32_define_cursor): New.
9180
9181 * w32fns.c (w32_load_cursor): New function.
9182 (w32_init_class): Use it.
9183 (x_put_x_image): Declare all args.
9184
b6189c3b 91852003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
9186
9187 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9188
a97e4138 91892003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
9190
9191 * gtkutil.c: Must include stdio.h before termhooks.h
9192
83fc9c63
DL
91932003-01-21 Dave Love <fx@gnu.org>
9194
9195 * alloc.c (Fgc_status): Print zombie list.
9196 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9197 Fix assignment of zombies.
9198 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9199 Don't take car of non-cons.
9200
9201 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9202
9203 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9204
fe04b8c8
JR
92052003-01-20 David Ponce <david@dponce.com>
9206
9207 * w32menu.c (digest_single_submenu): Declare all args.
9208
9209 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9210 changes in xmenu.c:
9211
9212 (parse_single_submenu): Use individual keymap's prompt
9213 string as pane name, if there is one.
9214 (set_frame_menubar): Save menu_items_n_panes from each call to
9215 parse_single_submenu and use it when calling digest_single_submenu.
9216
539e69a9
ST
92172003-01-20 Steven Tamm <steventamm@mac.com>
9218
9219 * macterm.c (XTread_socket): Checks for valid, visible window
9220 before sending a scroll-wheel event.
9221
675d000f
RS
92222003-01-20 Richard M. Stallman <rms@gnu.org>
9223
9224 * xdisp.c (redisplay_window): If mini window's buffer is not
9225 a minibuffer, then redisplay it like other windows.
9226
a97e4138 92272003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
9228
9229 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9230 external tool bar before setting tool bar height.
9231
048addec
JD
92322003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9233
9234 * xterm.c (handle_one_xevent): Surround popup_activated
9235 with #ifdef:s for non-toolkit version.
9236
9237 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9238 (gtkutil.o): New file.
9239 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9240 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9241
9242 * gtkutil.c: New file for GTK version.
9243
9244 * gtkutil.h: New file for GTK version.
9245
9246 * xterm.h: Add xt_or_gtk_widget.
9247 Include gtk files for USE_GTK.
9248 (struct x_output): Add toolbar_height.
9249 (struct x_output): Add GTK widgets and Gdk size_hints.
9250 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9251 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9252 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9253
9254 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 9255 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
9256 (note_mouse_highlight): Check popup_activated for USE_GTK.
9257 (xt_action_hook): Don't compile if USE_GTK.
9258 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9259 (xg_scroll_callback): New function.
9260 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9261 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9262 for USE_GTK.
9263 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9264 xg_show_scroll_bar for USE_GTK.
9265 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9266 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9267 (event_handler_gdk): New function for USE_GTK.
9268 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9269 (handle_one_xevent): Make sure widget is mapped before
9270 calling x_real_positions for USE_GTK.
9271 (XTread_socket): Add GTK event loop for USE_GTK.
9272 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9273 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9274 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9275 (x_iconify_frame): Add code for USE_GTK.
9276 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9277 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9278 is in gtkutil.c.
9279 (x_term_init): Add initialization for GTK.
9280 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9281
9282 * xmenu.c: Include gtkutil.h for USE_GTK.
9283 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
9284 (single_menu_item, single_menu_item, Fx_popup_dialog):
9285 Check for USE_GTK.
048addec
JD
9286 (popup_widget_loop): New function for USE_GTK.
9287 (x_activate_menubar): Add code for USE_GTK.
9288 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
9289 (menu_highlight_callback, menubar_selection_callback):
9290 Add USE_GTK versions.
048addec
JD
9291 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9292 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9293 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9294 is in gtkutil.c.
9295 (popup_selection_callback): New version for USE_GTK.
9296 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 9297 one USE_X_TOOLKIT version.
048addec
JD
9298 (xmenu_show): Call create_and_show_popup_menu.
9299 (dialog_selection_callback): New version for USE_GTK.
9300 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 9301 one USE_X_TOOLKIT version.
048addec
JD
9302 (xdialog_show): Call create_and_show_dialog.
9303
9304 * xfns.c: Include gtkutil for USE_GTK.
9305 (x_window_to_frame, x_any_window_to_frame)
9306 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9307 (x_top_window_to_frame): Add code for USE_GTK.
9308 (x_set_background_color): Call xg_set_background_color for GTK.
9309 (x_set_menu_bar_lines): Check for USE_GTK.
9310 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9311 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9312 (x_window): Call xg_create_frame_widgets for USE_GTK.
9313 (Fx_create_frame): Check for USE_GTK
9314 (Fx_file_dialog): New implementation for USE_GTK.
9315
9316 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9317 (update_menu_bar): Add check for USE_GTK.
9318 (update_tool_bar): Add check for USE_GTK and external tool bar.
9319 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9320 (redisplay_internal): Add check for USE_GTK and popup_activated.
9321 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9322 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9323 (display_menu_bar): Add check for USE_GTK
9324
78819ebb 9325 * lisp.h (Vx_resource_name): Declare extern.
048addec 9326
a64387ee 9327 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
9328 for USE_GTK.
9329 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9330
9331 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9332 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9333 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9334
9335 * fileio.c (Fread_file_name): Add check for USE_GTK.
9336
6bdb309a
SM
9337 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9338 Add check for USE_GTK.
048addec
JD
9339
9340 * config.in: Added HAVE_GTK
9341
9342 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9343
93442003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9345
9346 * charset.h (Funibyte_char_to_multibyte): Export.
9347
93482003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9349
9350 * xmenu.c (mouse_position_for_popup): New function.
9351 (Fx_popup_menu): Call mouse_position_for_popup for X and
9352 mouse_position_hook for others.
9353
93542003-01-17 Kim F. Storm <storm@cua.dk>
9355
9356 * editfns.c (Finsert): Mention `string-make-multibyte' and
9357 `string-as-multibyte' in doc string.
9358
93592003-01-17 Kenichi Handa <handa@m17n.org>
9360
9361 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 9362
048addec
JD
9363 * editfns.c (Fformat): Convert an unibyte char argument that is
9364 formatted by "%c" to multibyte if the total result must be a
9365 multibyte string.
cd7df9c0 9366
048addec 93672003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 9368
048addec
JD
9369 * process.c (set-process-filter): Document unibyte/multibyte-ness
9370 of string argument.
56210ecd 9371
048addec 93722003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 9373
048addec 9374 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 9375
048addec
JD
9376 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9377 (re_search_2): Likewise.
6df8b9fe 9378
048addec 93792003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 9380
048addec
JD
9381 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9382 buffer is unibyte.
292ddc31 9383
048addec 93842003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 9385
048addec 9386 * fns.c (Fsubstring): Clarify doc string.
292ddc31 9387
048addec
JD
9388 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9389 (Fprevious_char_property_change)
9390 (Fnext_single_char_property_change)
9391 (Fprevious_single_char_property_change, Fnext_property_change)
9392 (Fnext_single_property_change, Fprevious_property_change)
9393 (Fprevious_single_property_change, Fadd_text_properties)
9394 (Fput_text_property, Fset_text_properties)
9395 (Fremove_text_properties, Fremove_list_of_text_properties)
9396 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 9397
048addec 93982003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 9399
048addec
JD
9400 * process.h (struct Lisp_Process): New member plist replaces old
9401 member private_vars. All uses changed.
63e4e4c6 9402
048addec 9403 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 9404 (QCplist): Rename from QCvars. Change all uses.
048addec 9405 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 9406 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 9407 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 9408 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 9409
048addec 94102003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 9411
6bdb309a 9412 * m/delta.h: Remove (obsolete).
e833850f 9413
048addec 94142003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 9415
048addec
JD
9416 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9417 behaviour in front of symlinks.
9418 (Fdelete_file): Raise an error on directories.
817cb127 9419
048addec 94202003-01-13 Dave Love <fx@gnu.org>
817cb127 9421
048addec 9422 * fns.c (Freverse): Use QUIT.
3e8cf2ea 9423
048addec 94242003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 9425
048addec
JD
9426 * minibuf.c (minibuffer_completion_contents):
9427 Error if point is inside prompt.
3e8cf2ea 9428
048addec
JD
9429 * keyboard.c (command_loop_1): Don't redisplay directly
9430 if there's a post-command-hook.
3e8cf2ea 9431
048addec
JD
9432 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9433 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 9434
048addec 94352003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 9436
048addec 9437 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 9438
048addec
JD
9439 * process.c (QCvars): New variable.
9440 (syms_of_process): Intern and staticpro it.
9441 (Fset_process_contact): Removed function.
9442 (Fprocess_variable, Fset_process_variable): New functions.
9443 (syms_of_process): Defsubr them.
9444 (Fstart_process): Initialize private_vars plist to nil.
9445 (Fmake_network_process): New arg :vars to setup the private
9446 variables for new network process.
9447 (server_accept_connection): Copy server's private variables to
9448 client process.
2c10f029 9449
048addec
JD
9450 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9451 crashes). Code rewritten and simplified. Now directly aligns the
9452 pointer and recalculates pure_bytes_used, rather than aligning the
9453 size and adjusting the pointer.
b8a76c6c 9454
048addec 94552003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 9456
048addec
JD
9457 * process.c (Fset_process_contact): New function.
9458 (syms_of_process): defsubr it.
9459 (make-network-process): Update doc.
3a8d0899 9460
048addec 94612003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 9462
048addec
JD
9463 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9464 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 9465
048addec 94662003-01-10 Dave Love <fx@gnu.org>
4abc7470 9467
048addec 9468 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 9469
048addec 94702003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 9471
048addec
JD
9472 * process.c (Fmake_network_process): Convert new port number
9473 to host byte order for `:service t' case. From Mario Lang.
bf338245 9474
048addec 94752003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 9476
048addec
JD
9477 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9478 instead of XtAppProcessEvent.
bf338245 9479
048addec
JD
9480 * xterm.c (handle_one_xevent): New function.
9481 (x_dispatch_event): New function.
9482 (XTread_socket): Call handle_one_xevent.
bf338245 9483
048addec 9484 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 9485
048addec
JD
9486 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9487 call XQueryPointer to get coordinates.
9488 (popup_get_selection): Do not set popup_activated_flag to zero,
9489 let popup_deactivate_callback do that. Needed for Motif.
9490 Call x_dispatch_event instead of XtDispatchEvent.
9491 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 9492
048addec 94932003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 9494
6bdb309a 9495 * process.c (server_accept_connection): Fix recording of new
048addec
JD
9496 connection's local address in :local property of contact info.
9497 (Fmake_network_process): Record local network address for new
9498 client processes in :local property of contact info.
6bdb309a 9499 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 9500
048addec 95012003-01-07 Dave Love <fx@gnu.org>
00e3ab56 9502
048addec 9503 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 9504
048addec 95052003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 9506
048addec 9507 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 9508
048addec
JD
9509 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9510 use the same test as for custom-variable-p.
8c6d74c6 9511
048addec 95122003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 9513
048addec
JD
9514 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9515 Count LAST_LINE_MISFIT in scroll margin for end of window.
9516 Move label too_near_end before setting SCROLL_MARGIN_POS.
9517 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 9518
048addec
JD
9519 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9520 scroll_conservatively case. If scrolling that much doesn't change
9521 STARTP, move it down one line.
e833850f 9522
048addec
JD
9523 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9524 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 9525
048addec
JD
9526 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9527 selected frame.
8c6d74c6 9528
048addec
JD
9529 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9530 (syms_of_keymap): staticpro them.
9531 (Fapropos_internal): Initialize them and clear them out.
9532 Don't GCPRO them.
8c6d74c6 9533
048addec
JD
9534 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9535 Doc fixes.
8c6d74c6 9536
048addec
JD
9537 * lisp.h: New misc type Lisp_Save_Value.
9538 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9539 (XSAVE_VALUE): New macro.
9540 (struct Lisp_Save_Value): New data type.
9541 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 9542 (make_save_value): Declare.
8c6d74c6 9543
048addec 9544 * alloc.c (make_save_value): New function.
8c6d74c6 9545
048addec
JD
9546 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9547 (x_catch_errors_unwind): Call XSync.
8c6d74c6 9548
048addec 95492003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 9550
048addec 9551 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 9552
048addec
JD
9553 * keyboard.c (command_loop_1): Call adjust_point_for_property
9554 in direct action cases for Qforward_char and Qbackward_char.
9555 Set already_adjusted so it won't be done twice.
8c6d74c6 9556
b6189c3b 95572002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 9558
048addec
JD
9559 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
9560 type definition of size_t.
8c609cff 9561
048addec 95622003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 9563
048addec
JD
9564 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
9565 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 9566
048addec 95672002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 9568
048addec
JD
9569 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
9570 to default to t.
fa634a5e 9571
048addec 95722002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 9573
048addec 9574 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 9575
048addec 95762002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 9577
048addec
JD
9578 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
9579 allow building in a different directory than source. Uses some
9580 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 9581
048addec 95822002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 9583
048addec
JD
9584 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
9585 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
9586 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
9587 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 9588
048addec 95892002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 9590
048addec
JD
9591 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
9592 <scroll-down-aggressively>: Doc fix.
2155ecf3 9593
048addec
JD
9594 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
9595 string as pane name, if there is one.
9596 (set_frame_menubar): Save menu_items_n_panes from each call to
9597 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 9598
048addec
JD
9599 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
9600 Don't try to make last line fully visible if it is past end of window.
61f1d295 9601
048addec 96022002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 9603
048addec
JD
9604 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
9605 (mac_menu_show): Add support for hierarchical popup menus.
9606 (add_menu_item): Remove indentation support.
9607 (fill_submenu, fill_menu): Create hierarchical menus
9608 instead of using indentation.
0b17a217 9609
048addec 96102002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 9611
048addec
JD
9612 * xdisp.c (try_cursor_movement): Don't call try_window here.
9613 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 9614
048addec 9615 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 9616
048addec 96172002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 9618
048addec
JD
9619 * macterm.c (XTread_socket): Call KeyTranslate for control and
9620 meta to deal correctly shifted non-alpha characters, like C-S-5
9621 being treated like C-%. Does not look for shift key to deal
9622 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 9623
048addec 96242002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 9625
048addec
JD
9626 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
9627 If it is non-nil, run timers. Use an unwind-protect to requeue
9628 the events that were read ahead.
9629 (popup_get_selection_unwind): New subroutine.
9630 (popup_get_selection_queue): File-scope variable now holds that queue.
9631 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
9632 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
9633 Use an unwind-protect to pop down the dialog box.
9634 (xdialog_show_unwind): New subroutine implements that.
f02cac82 9635
048addec
JD
9636 * xdisp.c (row_containing_pos): Change exit test using last_y.
9637 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 9638
048addec
JD
9639 * lread.c (load_error_handler): New function.
9640 (Fload): Handle errors in Fsubstitute_in_file_name.
9641 Don't expect Fsignal to return.
f02cac82 9642
048addec
JD
9643 * eval.c: Errors and throws work right with interrupt blocking.
9644 (struct catchtag): New elt interrupt_input_blocked.
9645 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
9646 (internal_catch, Fcondition_case, internal_condition_case)
9647 (internal_condition_case_1, internal_condition_case_2): Save it.
9648 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 9649
048addec 9650 * editfns.c (Fformat): Add parens.
f02cac82 9651
048addec
JD
9652 * dired.c (file_name_completion): Fix that change.
9653 Delete special quit-handling code; just use QUIT.
f02cac82 9654
b6189c3b 96552002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 9656
048addec
JD
9657 * dired.c (file_name_completion): Close directory on error
9658 just as in directory_files_internal.
1a590729 9659
048addec 96602002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 9661
048addec
JD
9662 * window.c (Fset_window_configuration): Set old_point to correct
9663 value when new_current_buffer == current_buffer.
f02cac82 9664
048addec 96652002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 9666
048addec
JD
9667 Revisited my earlier fix for the following entry in etc/PROBLEMS:
9668 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9669 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 9670
048addec
JD
9671 These changes were in part based upon suggestions made by Peter
9672 'Luna' Runestig [peter@runestig.com].
9785d95b 9673
048addec
JD
9674 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
9675 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 9676 g_b_init_get_sid_identifier_authority ): Add several static
048addec 9677 global variables.
9785d95b 9678
048addec
JD
9679 * w32.c (globals_of_w32): New function. Used to initialize those
9680 global variables that must always be initialized on startup even
9681 when the global variable initialized is non zero. Its primary
9682 purpose at this time is to set the global variables
9683 g_b_init_is_windows_9x, g_b_init_open_process_token,
9684 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
9685 g_b_init_get_sid_identifier_authority to 0 on startup.
9686 Called from main.
9785d95b 9687
048addec
JD
9688 * w32.c (is_windows_9x): Perform initialization only if
9689 g_b_init_is_windows_9x is equal to 0. On initialization set
9690 g_b_init_is_windows_9x equal to 1.
2308af15 9691
048addec
JD
9692 * w32.c (open_process_token): Perform initialization only if
9693 g_b_init_open_process_token is equal to 0. On initialization set
9694 g_b_init_open_process_token equal to 1.
2308af15 9695
048addec
JD
9696 * w32.c (get_token_information): Perform initialization only if
9697 g_b_init_get_token_information is equal to 0. On initialization
9698 set g_b_init_get_token_information equal to 1.
9785d95b 9699
048addec
JD
9700 * w32.c (lookup_account_sid): Perform initialization only if
9701 g_b_init_lookup_account_sid is equal to 0. On initialization
9702 set g_b_init_lookup_account_sid equal to 1.
9785d95b 9703
048addec
JD
9704 * w32.c (get_sid_identifier_authority): Perform initialization
9705 only if g_b_init_get_sid_identifier_authority is equal to 0.
9706 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 9707
f63fd14e 9708 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
9709 those global variables that must always be initialized on startup
9710 even when the global variable initialized is non zero.
9711 Its primary purpose at this time is to initialize the global variable
9712 track_mouse_event_fn.
9785d95b 9713
a64387ee 9714 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 9715 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 9716
048addec 9717 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 9718
f63fd14e 9719 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
9720 initialize those global variables that must always be initialized
9721 on startup even when the global variable initialized is non zero.
9722 Its primary purpose at this time is to initialize the global
9723 variables get_menu_item_info and set_menu_item_info.
9785d95b 9724
048addec
JD
9725 * w32menu.c (initialize_frame_menubar): Remove initialization of
9726 get_menu_item_info and set_menu_item_info.
9785d95b 9727
048addec 9728 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 9729
048addec
JD
9730 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
9731 Declare them.
9785d95b 9732
048addec
JD
9733 * emacs.c (main): Call globals_of_w32 prior to calling
9734 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
9735 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
9736 is defined.
9785d95b 9737
048addec
JD
9738 * w32term.c (x_update_window_begin): Fix Windows API error
9739 detected by BoundsChecker. Test to determine if
9740 w32_system_caret_hwnd is NULL prior to attempting to use
9741 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 9742
048addec
JD
9743 * w32term.c (x_update_window_end): Fix Windows API error
9744 detected by BoundsChecker. Test to determine if
9745 w32_system_caret_hwnd is NULL prior to attempting to use
9746 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 9747
048addec 97482002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 9749
048addec
JD
9750 * coding.c (coding_system_require_warning): New variable.
9751 (syms_of_coding): DEFVAR it.
b6da19ef 9752
048addec 9753 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 9754
048addec
JD
9755 * fileio.c (choose_write_coding_system): Even if
9756 Vcoding_system_for_write is non-nil, if
9757 coding_system_require_warning is nonzero, call
9758 Vselect_safe_coding_system_function.
bfcf6dbe 9759
048addec 97602002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 9761
048addec
JD
9762 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
9763 (lisp): Add font-core.
2c568af5 9764
048addec 97652002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 9766
048addec
JD
9767 * textprop.c (text_read_only): New arg `propval'.
9768 (get_char_property_and_overlay): Remove unused var `next_overlay'.
9769 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 9770
048addec 97712002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 9772
048addec 9773 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 9774
048addec 97752002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 9776
048addec
JD
9777 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
9778 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
9779 Be more careful about when help_events are generated.
96720f09 9780
048addec 97812002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 9782
048addec
JD
9783 * macterm.c (mac_check_for_quit_char): Correctly set the
9784 modifiers of the event to 0.
9785 * mac.c (sys_select): Duplicate rfds before calling select to
9786 ensure that rfds survive the while loop.
e5ae1c49 9787
048addec 97882002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 9789
048addec
JD
9790 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
9791 row_containing_pos returned NULL.
2eb46b2d 9792
048addec 97932002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 9794
6bdb309a 9795 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 9796 non-blocking.
6bdb309a 9797 (sys_select): Fix sys_select to not use a timeout larger than
048addec 9798 the one given.
b11f1d8a 9799
048addec 98002002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 9801
048addec 9802 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 9803
048addec 98042002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 9805
048addec
JD
9806 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
9807 as the last thing.
a4ac5b17 9808
048addec 98092002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 9810
048addec 9811 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 9812
048addec 98132002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 9814
048addec
JD
9815 * editfns.c (Fformat): Handle precision in string conversion
9816 specifiers like libc functions do (ie, print at most that many
9817 characters).
85cce843 9818
048addec 98192002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 9820
048addec
JD
9821 * xdisp.c (row_containing_pos): Check more carefully
9822 whether charpos is really in the row before returning it.
0d4d26a7 9823
048addec 98242002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 9825
048addec 9826 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 9827
048addec
JD
9828 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
9829 each stack frame. This may change as it could be time consuming.
0d4d26a7 9830
048addec
JD
9831 * macterm.c (mac_check_for_quit_char, quit_char_comp)
9832 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 9833 (mac_initialize): Add code to check for pressing of quit_char
048addec 9834 in the OS event queue.
b11f1d8a 9835
048addec
JD
9836 * mac.c (sys_select): Call mac_check_for_quit_char every second
9837 while blocking on select.
0d4d26a7 9838
048addec
JD
9839 * mac.c (sys_read): Use sys_select to test for input first
9840 before calling read, to allow C-g to break.
9252f7bc 9841
048addec 98422002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 9843
048addec 9844 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 9845
048addec 9846 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 9847
048addec 9848 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 9849
048addec
JD
9850 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
9851 autoload.
9252f7bc 9852
048addec 9853 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 9854
048addec 9855 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 9856
048addec 98572002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 9858
048addec 9859 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 9860
048addec 98612002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 9862
048addec 9863 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9864
048addec 9865 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9866
048addec 9867 * alloca.c: Don't use #error.
02d588e2 9868
048addec 98692002-12-03 Dave Love <fx@gnu.org>
02d588e2 9870
048addec
JD
9871 * buffer.c (Qucs_set_table_for_input): New.
9872 (Fget_buffer_create): Use it.
9873 (Qset_buffer_major_mode_hook): Deleted.
9874 (Fset_buffer_major_mode): Revert previous change.
9875 (init_buffer_once): Intern ucs-set-table-for-input.
9876 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
9877 Add &Qucs_set_table_for_input.
451e2697 9878
048addec 98792002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 9880
048addec
JD
9881 * callint.c (Fcall_interactively): Use next_event only if less
9882 than key_count.
72742a99 9883
048addec 98842002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 9885
048addec
JD
9886 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
9887 names to 255 characters.
72742a99 9888
048addec
JD
9889 * macterm.c (XTread_socket): If all frames have been collapsed,
9890 expand the first one before handling drag-and-drop events.
72742a99 9891
048addec
JD
9892 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
9893 which is detected by autoconf.
40e6ff95 9894
048addec 98952002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 9896
048addec
JD
9897 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
9898 offset in two hints table to allow prebinding to be redone and
9899 allow the executable to be stripped.
c02138c6 9900
048addec 99012002-11-29 Dave Love <fx@gnu.org>
c02138c6 9902
048addec
JD
9903 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
9904 already provided.
0e47bbf7 9905
048addec 99062002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 9907
048addec
JD
9908 * xdisp.c (start_display): Check more intelligently for
9909 whether the line is continued.
9910 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 9911
048addec 99122002-11-28 Dave Love <fx@gnu.org>
44129dcb 9913
048addec
JD
9914 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
9915 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 9916
048addec 99172002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 9918
048addec
JD
9919 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
9920 more descriptive error output from lread.c:Fload upon most require
9921 cycles during boostrapping.
1637fd2c 9922
048addec 99232002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 9924
048addec
JD
9925 * fileio.c (Finsert_file_contents): Give a more appropriate error
9926 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 9927
048addec
JD
9928 * dired.c (Ffile_attributes): Don't return negative file sizes for
9929 files bigger than 2Gb when off_t is 32 bit.
540c2788 9930
048addec 99312002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 9932
048addec 9933 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 9934
048addec
JD
9935 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
9936 Test GETPGRP_VOID instead.
9937 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 9938
048addec
JD
9939 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
9940 Don't define.
9941 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 9942
048addec 9943 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 9944
048addec 99452002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 9946
048addec
JD
9947 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
9948 supported.
4042a81a 9949
048addec 99502002-11-25 Dave Love <fx@gnu.org>
4042a81a 9951
048addec 9952 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 9953
048addec 9954 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 9955
048addec 99562002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 9957
048addec 9958 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 9959
048addec 99602002-11-24 Steven Tamm <steventamm@mac.com>
82122254 9961
048addec
JD
9962 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
9963 determine the size of pointers alloced in unexed space instead
9964 of using possibly invalid emacs_zone pointers. This fixes the
9965 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 9966
048addec 99672002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 9968
048addec 9969 * search.c (Fstring_match): Doc fix.
c1ee53bc 9970
048addec
JD
9971 * callint.c (Fcall_interactively): If a command fails because
9972 `*' detects a read-only buffer, but RECORD_FLAG is set,
9973 record it anyway if the args don't actually do tty input.
5598c32e 9974
048addec 99752002-11-22 Dave Love <fx@gnu.org>
5598c32e 9976
048addec 9977 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 9978
048addec
JD
9979 * keyboard.c (interrupt_signal): Provide forward declaration.
9980 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 9981
048addec 9982 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 9983
048addec 99842002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 9985
048addec
JD
9986 * eval.c (interactive_p): Skip any number of bytecode
9987 and special form frames, in any order.
516eea8e 9988
048addec 99892002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 9990
048addec
JD
9991 * w32fns.c (convert_mono_to_color_image): New function.
9992 (xbm_load, xbm_load_image): Use it when foreground or background
9993 is explicitly set.
04dbfa08 9994
048addec 99952002-11-19 Dave Love <fx@gnu.org>
04dbfa08 9996
048addec 9997 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 9998
048addec 99992002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 10000
048addec
JD
10001 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10002 (XPutPixel): Swap blue and red.
10003 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10004 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10005 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10006 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 10007
048addec 100082002-11-18 Dave Love <fx@gnu.org>
d824beee 10009
048addec 10010 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 10011
048addec 10012 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 10013
048addec 10014 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 10015
048addec
JD
10016 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10017 malloc, realloc, calloc.
d824beee 10018
048addec
JD
10019 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10020 (bcmp): Don't define.
d824beee 10021
048addec 10022 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 10023
048addec 10024 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 10025
048addec 10026 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 10027
048addec 10028 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 10029
048addec
JD
10030 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10031 Don't include alloca.h.
d824beee 10032
048addec 10033 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 10034
048addec 10035 * regex.c (_GNU_SOURCE): Don't define.
1998560a 10036
048addec 10037 * process.c (_GNU_SOURCE): Don't define.
1998560a 10038
048addec 10039 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 10040
048addec 100412002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 10042
048addec 10043 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 10044
048addec 100452002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 10046
048addec
JD
10047 * dispextern.h (struct face): Add `overstrike' field.
10048 * xterm.c (x_draw_glyph_string_foreground)
10049 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10050 * xfaces.c (load_face_font): Set `face->overstrike' based on
10051 result from choose_face_font.
10052 (best_matching_font, choose_face_font): Add `needs_overstrike'
10053 argument, and use it to return whether overstriking is desirable
10054 for this face/font combo.
10055 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 10056
048addec 100572002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 10058
048addec
JD
10059 This change is my fix for the following entry in etc/PROBLEMS:
10060 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10061 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 10062
048addec
JD
10063 * w32.c: Added wrapper functions around the win32 API functions
10064 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10065 GetSidIdentifierAuthority. These wrapper functions serve two
10066 purposes:
10067 1. They ensure that the wrapped function can never be called
10068 when Emacs is running on an operating system on which they are
10069 not supported (Microsoft Windows 95 / 98 / ME).
10070 2. They call the wrapped functions via function pointers rather
10071 than calling them directly. This avoids taking advantage of the
10072 undocumented fact that although these functions are not supported
10073 in the 9x branch of Microsoft Windows, the functions do exist in
10074 the version of advapi32.dll that is found in the 9x branch of
10075 Microsoft Windows.
f60ae425 10076
6bdb309a 10077 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
10078 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10079 and GetSidIdentifierAuthority with calls to the newly added
10080 wrapper functions.
f60ae425 10081
048addec
JD
10082 * w32.h: Added extern declarations for the following functions:
10083 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10084 syms_of_w32menu, and void syms_of_fontset.
f60ae425 10085
6bdb309a 10086 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
10087 function pointer track_mouse_event_fn in the handler for the
10088 WM_SETFOCUS message.
3582b6a3 10089
6bdb309a 10090 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
10091 reinitialize the function pointers set_menu_item_info and
10092 get_menu_item_info.
f60ae425 10093
048addec 100942002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 10095
048addec
JD
10096 * sound.c: Added a partial implementation of play-sound-internal
10097 for Microsoft Windows. Added various #ifdef / #else / #endif
10098 code blocks to separate the code that will compile under
10099 Microsoft Windows from the code that is specific to Gnu/Linux.
10100 Moved several blocks of code around to make this separation of code
10101 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 10102
048addec 10103 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 10104
048addec
JD
10105 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10106 added support for play-sound-internal under Windows would be
10107 included in the build of Emacs.
517f42a0 10108
048addec 101092002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 10110
048addec 10111 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 10112
048addec 10113 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 10114
048addec 101152002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 10116
048addec
JD
10117 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10118 (adjust_point_for_property): Move out of display and invisible even if
10119 we were already inside before (in case a property was added while
10120 we weren't looking). Be more careful when handling invisible props.
10121 Skip invisible text as if it really wasn't there at all.
aab83f91 10122
048addec 101232002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 10124
048addec
JD
10125 * w32term.c (x_draw_image_foreground)
10126 (w32_draw_image_foreground_1): Use standard copy and invert
10127 operations to draw images.
aab83f91 10128
048addec
JD
10129 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10130 depth of 1.
10131 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10132 (XPutPixel): Don't invert bits here.
a4478a76 10133
048addec 101342002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 10135
048addec
JD
10136 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10137 (w32_draw_image_foreground_1): Handle image masks.
10138 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 10139
048addec
JD
10140 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10141 (x_from_xcolors): Adjust RGB values for W32.
10142 (image_background, image_background_transparent)
10143 (postprocess_image, x_to_xcolors, x_disable_image)
10144 (x_build_heuristic_mask): Adapt for W32 and enable.
10145 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10146 (xbm_load): Remove unused variable.
03670a65 10147
048addec 101482002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 10149
048addec 10150 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 10151
048addec 101522002-11-14 Dave Love <fx@gnu.org>
59daa29a 10153
048addec 10154 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 10155
048addec
JD
10156 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10157 * xmenu.c (unuse_menu_items, digest_single_submenu):
10158 * xfns.c (x_put_x_image):
10159 * xdisp.c (message2_nolog, set_message):
10160 * undo.c (record_point):
10161 * terminfo.c (tparam):
10162 * syntax.c (scan_sexps_forward):
10163 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10164 * composite.c (update_compositions):
10165 * cm.c (calccost, cmgoto):
10166 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 10167
048addec 10168 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 10169
048addec
JD
10170 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10171 Don't declare.
59daa29a 10172
048addec 10173 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 10174
048addec
JD
10175 * fns.c (Fcopy_sequence): Doc fix.
10176 (Fmap_char_table): Cast `call2'.
3947677c 10177
048addec
JD
101782002-11-14 Francesco Potorti` <pot@gnu.org>
10179
10180 * s/sol2-8.h: New file.
10181
101822002-11-14 Kim F. Storm <storm@cua.dk>
10183
10184 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10185 dependency on `risky-local-variable' and the :propertize form.
10186
101872002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10188
10189 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10190
10191 * syntax.c (scan_sexps_forward): Undo last patch.
10192 Use a more obvious fix: check eob before updating the syntax table.
10193
101942002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10195
10196 * syntax.c (scan_sexps_forward): Update syntax table before reading
10197 a char rather than after so we don't update the table past eob.
10198
101992002-11-09 Dave Love <fx@gnu.org>
10200
10201 * buffer.c (Fset_buffer_major_mode): Fix last change.
10202
10203 * regex.c (regexec): Fix pmatch declaration.
10204
10205 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10206
10207 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10208 to self-inserting characters.
10209 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10210
10211 * coding.c (Vtranslation_table_for_input): New.
10212 (syms_of_coding): DEFVAR it.
10213
102142002-11-08 Juanma Barranquero <lektu@terra.es>
10215
10216 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10217 window.
10218
102192002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10220
6bdb309a 10221 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
10222 cp, and i.
10223
102242002-11-06 Dave Love <fx@gnu.org>
10225
10226 * buffer.c (Qset_buffer_major_mode_hook): New.
10227 (Fset_buffer_major_mode): Use it.
10228
102292002-11-06 Richard M. Stallman <rms@gnu.org>
10230
10231 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10232 and stop_polling.
10233
10234 * process.c (wait_reading_process_input):
10235 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10236 Avoid initialization for auto Lisp_Object var.
10237
10238 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10239
10240 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10241
102422002-11-05 Richard M. Stallman <rms@gnu.org>
10243
10244 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10245
10246 * callint.c (Fcall_interactively): New local filter_specs.
10247 (Fcall_interactively): Check for progn as well as let.
10248 Add a gcpro.
10249 (Qprogn): New variable.
10250 (syms_of_callint): Staticpro and init Qprogn.
10251
102522002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10253
10254 * lread.c (Feval_buffer): Doc fix.
10255
102562002-11-04 Dave Love <fx@gnu.org>
10257
10258 * keyboard.c (read_char): Always translate iff
10259 Vkeyboard_translate_table is a char table and c is valid.
10260
10261 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10262 and fix C types.
10263
102642002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10265
10266 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10267
10268 * editfns.c (get_pos_property): Don't hardcode Qfield.
10269
10270 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10271 overlays. Also handle `invisible' prop.
10272
102732002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10274
10275 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10276 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10277
102782002-11-01 Andreas Schwab <schwab@suse.de>
10279
10280 * editfns.c (Fmessage): Revert last change to properly handle %%.
10281
102822002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10283
10284 * xmenu.c (unuse_menu_items): New fun.
10285 (menu_items_inuse): New var.
10286 (syms_of_xmenu): Initialize it.
10287 (init_menu_items): Use it to detect re-entrance.
10288 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10289 (Fx_popup_menu): Remove spurious XSETFRAME.
10290
10291 * editfns.c (find_field): Make an exception for nil fields.
10292
102932002-11-01 Dave Love <fx@gnu.org>
10294
10295 * m/gec63.h: Deleted.
10296
102972002-10-31 Dave Love <fx@gnu.org>
10298
10299 * xterm.c (XTread_socket): Fix last change.
10300 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10301
103022002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10303
10304 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10305
103062002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10307
10308 * editfns.c (overlays_around, get_pos_property): New funs.
10309 (find_field): Use them.
10310 Also be careful not to modify POS before its last use.
10311 (Fmessage): Don't Fformat if there's nothing to format.
10312
103132002-10-30 Dave Love <fx@gnu.org>
10314
10315 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10316 [HAVE_PTY_H]; Include pty.h.
10317
10318 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10319
10320 * xterm.c (Qeql): Declare.
10321 (Vx_keysym_table): New.
10322 (syms_of_xterm): Initialize it.
10323 (XTread_socket): Use it. Deal with ASCII keysyms.
10324 (XSetIMValues) [HAVE_X11R6]: Prototype.
10325
10326 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10327 (lispy_kana_keys): Comment out.
10328 (make_lispy_event) [XK_kana_A]: Comment out.
10329 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10330 Fix sprintf call.
10331
10332 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10333 regexp.h change).
10334 (TERMINFO, LIBS_TERMCAP): Define.
10335
10336 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10337 (bcmp): Define conditional on HAVE_BCMP.
10338 (NO_SIOCTL_H): Don't define.
10339 (TIOCSIGSEND): Don't make conditional on IRIX6.
10340
10341 * s/sol2-5.h: Don't include strings.h.
10342 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10343
10344 * s/irix6-0.h (IRIX6): Don't define.
10345 (bcopy, bcmp, bzero): Don't undef.
10346
10347 * s/irix6-5.h: Don't include strings.h.
10348 (IRIX6): Don't define.
10349 (bcopy, bcmp, bzero): Don't undef.
10350
10351 * syntax.c (Fforward_comment): Doc fix.
10352
103532002-10-29 Kim F. Storm <storm@cua.dk>
10354
10355 * process.c (Fsignal_process): Allow PROCESS to be specified by
10356 name in addition to pid (as integer or string).
10357
103582002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10359
10360 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10361 environments.
10362
103632002-10-27 Kim F. Storm <storm@cua.dk>
10364
10365 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10366
10367 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10368
10369 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10370
10371 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10372
103732002-10-26 Richard M. Stallman <rms@gnu.org>
10374
10375 * editfns.c (Fformat): Detect invalid format letters for floats.
10376
103772002-10-25 Kenichi Handa <handa@m17n.org>
10378
10379 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10380 (x_set_title): Likewise.
10381
103822002-10-25 Juanma Barranquero <lektu@terra.es>
10383
10384 * macgui.h:
10385 * w32gui.h: Remove definition of XColor.
10386
10387 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10388
103892002-10-24 Kim F. Storm <storm@cua.dk>
10390
10391 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10392 Callers changed (supply dummy arg).
10393
10394 * lisp.h (get_window_cursor_type): Update prototype.
10395
10396 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10397 get_window_cursor_type to track system caret.
10398
103992002-10-24 Kim F. Storm <storm@cua.dk>
10400
10401 * process.c (Fformat_network_address): New function.
10402 (syms_of_process): Defsubr it.
10403 (list_processes_1): Use it to format :local/:remote address if
f9711de4 10404 service/host is not set; before Emacs would crash in that case.
048addec
JD
10405 (Fmake_network_process): Don't use Ffind_operation_coding_system
10406 to setup coding system if host or service is not set.
10407
104082002-10-23 Juanma Barranquero <lektu@terra.es>
10409
10410 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10411
10412 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10413 COLORREF.
10414
10415 * macgui.h:
10416 * w32gui.h: Add definition of XColor.
10417
10418 * macfns.c:
10419 * w32fns.c:
10420 * xfaces.c: Remove definition of XColor.
10421
104222002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10423
10424 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10425
10426 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10427 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10428 window if it is dedicated.
10429 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10430 (Vspecial_display_function): Update docstring.
10431
10432 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10433 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10434 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10435
104362002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10437
10438 * casefiddle.c (casify_region): Don't treat a prefix char as part
10439 of a word when at the beginning.
10440
104412002-10-17 Juanma Barranquero <lektu@terra.es>
10442
10443 * lread.c (syms_of_lread): Fix typos.
10444
104452002-10-17 Dave Love <fx@gnu.org>
10446
10447 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10448
104492002-10-16 Richard M. Stallman <rms@gnu.org>
10450
10451 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10452
104532002-10-14 Juanma Barranquero <lektu@terra.es>
10454
10455 * w16select.c (syms_of_win16select): Fix docstring for
10456 `selection-coding-system'.
10457
10458 * w32select.c (syms_of_w32select): Likewise.
10459
104602002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10461
10462 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10463 a backslash-quoted char.
10464 (scan_lists, scan_sexps_forward): Pacify the compiler.
10465
104662002-10-13 Richard M. Stallman <rms@gnu.org>
10467
10468 * window.c (window_scroll): Set immediate_quit.
10469
10470 * print.c (print): When backquote form is the car of a list,
10471 output in old style. Use old_backquote_output to output all
10472 comma forms inside it in old style too.
10473
10474 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10475
104762002-10-11 Markus Rost <rost@math.ohio-state.edu>
10477
10478 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10479 batch mode).
10480
10481 * lread.c (Fload): Doc fix (load-suffixes).
10482
104832002-10-10 Steven Tamm <steventamm@mac.com>
10484
10485 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10486 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10487 Also switch the default to Qnil from Qt.
10488
104892002-10-08 Kenichi Handa <handa@m17n.org>
10490
10491 * coding.c (code_convert_region): When we need more GAP for
10492 conversion, pay attention to the case that coding->produced is not
10493 greater than coding->consumed.
10494
104952002-10-07 Richard M. Stallman <rms@gnu.org>
10496
10497 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10498
104992002-10-06 Andrew Choi <akochoi@shaw.ca>
10500
10501 * macmenu.c (mac_menu_show): Add j to count menu items; match
10502 menu_item_selection to it to find selected item.
10503
105042002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10505
10506 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10507 cases. The correct fix is to pass ReparentNotify to Xt.
10508 The shell widget interprets ConfigureNotify differently depending
10509 on if it has been reparented or not.
10510
105112002-10-05 Markus Rost <rost@math.ohio-state.edu>
10512
10513 * editfns.c (Fformat_time_string): Doc fix.
10514
105152002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10516
10517 * fns.c (Flength): Doc fix.
10518
105192002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10520
10521 * keyboard.c (keyremap): New struct.
10522 (read_key_sequence): Use it: globally replace keytran_foo with
10523 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10524 keytran_next and fkey_next to just `next'.
10525
105262002-10-04 Steven Tamm <steventamm@mac.com>
10527
10528 * macterm.c (keycode_to_xkeysym_table): Change return to be
10529 treated like an X keysym.
10530
105312002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10532
10533 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10534 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10535 This is to also handle x/y changes that occur because of a resize.
10536
105372002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10538
10539 * frame.c (Vdelete_frame_functions): New variable.
10540 (syms_of_frame): Initialize and defvar it.
10541 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10542 it when frame's `tooltip' parameter is non-nil.
10543
10544 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10545
10546 * w32fns.c (x_create_tip_frame): Likewise.
10547
10548 * macfns.c (x_create_tip_frame): Likewise.
10549
105502002-09-30 Kenichi Handa <handa@m17n.org>
10551
10552 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
10553 -1 before calling ccl_driver.
10554
10555 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
10556 Only when it is non-nil, handle composition sequence.
10557 (setup_coding_system) <0>: Don't force composition handling.
10558
10559 * Makefile.in (lisp, shortlisp): Add utf-16.elc
10560
105612002-09-29 Richard M. Stallman <rms@gnu.org>
10562
10563 * search.c (Freplace_match): Adjust match data for the substitution
10564 just made in the buffer.
10565
10566 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
10567 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
10568
105692002-09-27 Richard M. Stallman <rms@gnu.org>
10570
10571 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
10572 (read_char): Use them. Do all exits thru the end of the function.
10573
105742002-09-27 Kenichi Handa <handa@etl.go.jp>
10575
10576 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
10577 is nil.
10578
105792002-09-26 Richard M. Stallman <rms@gnu.org>
10580
10581 * regex.h (__restrict_arr): Don't define if already defined.
10582
10583 * coding.c (run_pre_post_conversion_on_str):
10584 Save and restore Vdeactivate_mark.
10585
105862002-09-26 John Paul Wallington <jpw@shootybangbang.com>
10587
10588 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
10589
105902002-09-26 Kenichi Handa <handa@etl.go.jp>
10591
10592 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
10593 nonzero, try face's family at first. Otherwise try FAMILY at first.
10594 (choose_face_font): If C is a single byte char or latin-1, call
10595 try_font_list with PREFER_FACE_FAMILY 1.
10596
105972002-09-21 Richard M. Stallman <rms@gnu.org>
10598
10599 * window.c (select_window_1): Don't select frame.
10600 Set frame's selected window only when frame itself is selected.
10601 (Fselect_window): Doc fix.
10602
106032002-09-18 Kim F. Storm <storm@cua.dk>
10604
10605 * process.c (make-network-process): Doc fix (there is no
10606 network-server-log-function hook).
10607
106082002-09-18 Richard M. Stallman <rms@gnu.org>
10609
10610 * print.c (print): Clear out the unused parts of Vprint_number_table.
10611 (syms_of_print): Doc fix for `print-number-table'.
10612
10613 * unexelf.c (unexec): Undo previous change.
10614
106152002-09-17 Andreas Schwab <schwab@suse.de>
10616
10617 * m/alpha.h [LINUX]: Don't define DATA_START.
10618
106192002-09-16 Dave Love <fx@gnu.org>
10620
10621 * unexelf.c (unexec): Deal with .got, reinstating change from
10622 25-08-1999.
10623
106242002-09-13 Richard M. Stallman <rms@gnu.org>
10625
10626 * s/sol2-6.h (UNEXEC): Comment out definition.
10627
10628 * unexsol.c (unexec): Don't downcase first letter of error msg.
10629
10630 * xfaces.c (Fcolor_supported_p): Just one arg is required.
10631
106322002-09-12 Markus Rost <rost@math.ohio-state.edu>
10633
10634 * unexsol.c: Include buffer.h, charset.h, coding.h.
10635
106362002-09-11 Richard M. Stallman <rms@gnu.org>
10637
10638 * unexsol.c: Don't use report_file_error; do it by hand
10639 using dlerror.
10640
10641 * process.c (wait_reading_process_input, both versions):
10642 Before calling turn_on_atimers, call stop_polling.
10643
10644 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
10645
10646 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
10647 we go to too_near_end, call clear_glyph_matrix.
10648 (redisplay_window): After make_cursor_line_fully_visible,
10649 call clear_glyph_matrix and bypass `goto done'.
10650
10651 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
10652 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
10653
106542002-09-10 Richard M. Stallman <rms@gnu.org>
10655
10656 * fileio.c (Fdo_auto_save): Catch error making directory.
10657 Only call push_message if we need to.
10658 At the same time, make an unwind-protect to pop it.
10659 Rename local message_p to old_message_p.
10660 (do_auto_save_make_dir, do_auto_save_eh): New functions.
10661 (do_auto_save_unwind): Don't call pop_message.
10662
10663 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
10664
10665 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
10666
10667 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
10668
10669 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
10670
106712002-09-10 Stefan Monnier <monnier@cs.yale.edu>
10672
10673 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
10674 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
10675 (re_match_2_internal): Be more careful with infinite loops.
10676
106772002-09-10 Kim F. Storm <storm@cua.dk>
10678
10679 * macros.c (end_kbd_macro): New function.
10680 (Fend_kbd_macro): Use it.
10681
10682 * macros.h (end_kbd_macro): Declare extern.
10683
10684 * keyboard.c (Fdiscard_input): If defining keyboard macro,
10685 end and save it instead of discarding it.
10686
106872002-09-09 Markus Rost <rost@math.ohio-state.edu>
10688
10689 * s/sol2-6.h: Fix typo. Add comment.
10690
106912002-09-09 Richard M. Stallman <rms@gnu.org>
10692
10693 * regex.c (regnum_t): Use signed int, not unsigned int.
10694
10695 * s/sol2-6.h: New file.
10696
10697 * s/sol2-5.h (UNEXEC): Definition deleted.
10698
106992002-09-08 Kim F. Storm <storm@cua.dk>
10700
10701 * macros.c (executing_macro_index): Change type to EMACS_INT.
10702 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
10703
10704 * macros.h (executing_macro_index): Change type to EMACS_INT.
10705
107062002-09-06 Richard M. Stallman <rms@gnu.org>
10707
10708 * casetab.c (set_case_table): Make canon table point to eqv table.
10709
107102002-09-06 Juanma Barranquero <lektu@terra.es>
10711
10712 * coding.c (syms_of_coding): Fix spacing.
10713
10714 * composite.c (Fcompose_region_internal)
10715 (Fcompose_string_internal): Likewise.
10716
10717 * data.c (Flsh): Likewise.
10718
10719 * fontset.c (Fset_fontset_font): Likewise.
10720
10721 * macfns.c (Fx_server_max_request_size): Likewise.
10722
10723 * w16select.c (syms_of_win16select): Likewise.
10724
10725 * w32select.c (syms_of_w32select): Likewise.
10726
10727 * xselect.c (syms_of_xselect): Likewise.
10728
107292002-09-05 Richard M. Stallman <rms@gnu.org>
10730
10731 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
10732 call EXTEND_RANGE_TABLE and return a proper value.
10733 (set_image_of_range): Don't call set_image_of_range_1
10734 if no TRANSLATE or if range includes all of Latin-1.
10735 Only call it for the Latin-1 part of the range.
10736 For other cases, make two separate ranges,
10737 one for the original specified characters and one for
10738 their case-conversions.
10739
107402002-09-04 Richard M. Stallman <rms@gnu.org>
10741
10742 * s/sol2-5.h (UNEXEC): Use unexsol.o.
10743
10744 * window.c (displayed_window_lines): Correct for one-off bug
10745 in HEIGHT on non-window displays.
10746
10747 * regex.c (set_image_of_range_1): New function.
10748 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
10749 Return a value to indicate running out of memory.
10750 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
10751 (extend_range_table_work_area): New subroutine.
10752 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
10753 Different calling conventions, and used from set_image_of_range{,_1}.
10754 (IMMEDIATE_QUIT_CHECK): Definitions moved.
10755
107562002-09-04 Juanma Barranquero <lektu@terra.es>
10757
10758 * makefile.w32-in: All dependencies updated.
10759
107602002-09-01 Richard M. Stallman <rms@gnu.org>
10761
10762 * unexsol.c: New file.
10763
10764 * xfns.c (Qbox): Declare external, don't define.
10765
10766 * xdisp.c (redisplay_window) <force-start case>:
10767 If point is on semi-visible last line, reposition
10768 it at previous line.
10769
10770 * alloc.c (display_malloc_warning): Use display-warning.
10771 (malloc_warning_1): Function deleted.
10772
10773 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
10774
10775 * lread.c (read1): Handle #! by skipping the line.
10776
107772002-08-31 Richard M. Stallman <rms@gnu.org>
10778
10779 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
10780 Don't include LDFLAGS.
10781 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
10782
107832002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
10784
10785 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
10786 member of x_display_info unless we compile for some window system.
10787
107882002-08-31 Kim F. Storm <storm@cua.dk>
10789
10790 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
10791 (get_window_cursor_type): Don't use them.
10792 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
10793
107942002-08-30 Kenichi Handa <handa@etl.go.jp>
10795
10796 * xdisp.c (get_next_display_element): Fix previous change.
10797
107982002-08-30 Andrew Choi <akochoi@shaw.ca>
10799
10800 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
10801 (expose_window): Use it to fix the display of overlapping
10802 rows (merge code from xterm.c).
10803
10804 * macfns.c (Qbox): Add extern declaration.
10805
108062002-08-30 Juanma Barranquero <lektu@terra.es>
10807
10808 * w32fns.c (Qbox): Make extern.
10809 (syms_of_w32fns): Remove initialization of Qbox.
10810
108112002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
10812
10813 * xfns.c (Fx_open_connection): Fix error message.
10814
108152002-08-30 Kim F. Storm <storm@cua.dk>
10816
10817 The following changes consolidates the handling of the cursor
10818 type in xdisp.c, moving duplicate code and functionality from
10819 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
10820
10821 * frame.h (enum text_cursor_kinds): Consolidated here.
10822 Added DEFAULT_CURSOR value.
10823 (struct frame) <desired_cursor, cursor_width>
10824 <blink_off_cursor, blink_off_cursor_width>: New fields.
10825 Consolidated from output_x, output_w32 and output_mac structs.
10826 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10827 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
10828
10829 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
10830 Variables consolidated here.
10831 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
10832 (Vcursor_in_non_selected_windows): Renamed from
10833 cursor_in_non_selected_windows and changed to Lisp_Object.
10834 (syms_of_xdisp): Define and staticpro new and moved variables.
10835 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
10836 consolidated here. Recognize Qhollow setting.
10837 (set_frame_cursor_types): New function to set frame cursor types
10838 based on the frame parameters.
10839 (get_window_cursor_type): New function to calculate new cursor
10840 type and width for the specified window. Based on duplicated
10841 code consolidated here.
10842 Enhancements: cursor-in-non-selected-windows may be a cursor type,
10843 check buffer-local alternate-cursor-type and blink-cursor-alist
10844 before using built-in blink off methods.
10845
10846 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
10847
10848 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
10849 (get_specified_cursor_type, get_window_cursor_type)
10850 (set_frame_cursor_types): Added prototypes.
10851
10852 * macfns.c (x_specified_cursor_type): Removed.
10853 (x_set_cursor_type): Use set_frame_cursor_types.
10854 (Qbar, Qbox): Removed.
10855 (syms_of_macfns): Don't intern or staticpro them.
10856
10857 * macterm.c (x_specified_cursor_type): Remove prototype.
10858 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10859 (x_display_and_set_cursor): Use get_window_cursor_type.
10860 Remove unused local variables cursor_non_selected, active_cursor.
10861 Redraw cursor if hbar cursor width changes.
10862 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
10863
10864 * macterm.h (enum text_cursor_kinds): Removed.
10865 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
10866 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10867 (FRAME_DESIRED_CURSOR): Macro removed.
10868
10869 * w32fns.c (Vblink_cursor_alist): Removed.
10870 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10871 (syms_of_w32fns): Don't intern, staticpro, or define them.
10872 (x_specified_cursor_type): Removed.
10873 (x_set_cursor_type): Use set_frame_cursor_types.
10874
10875 * w32term.c (x_specified_cursor_type): Remove prototype.
10876 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10877 (x_display_and_set_cursor): Use get_window_cursor_type.
10878 Remove unused local variables cursor_off_state.
10879 Redraw cursor if hbar cursor width changes.
10880 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
10881
10882 * w32term.h (enum text_cursor_kinds): Removed.
10883 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
10884 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10885 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10886 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10887 (struct w32_display_info) <x_highlight_frame>: Renamed member from
10888 w32_highlight_frame.
10889
10890 * xfns.c (Vblink_cursor_alist): Removed.
10891 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10892 (syms_of_xfns): Don't intern, staticpro, or define them.
10893 (x_specified_cursor_type): Removed.
10894 (x_set_cursor_type): Use set_frame_cursor_types.
10895
10896 * xterm.c (x_specified_cursor_type): Remove prototype.
10897 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10898 (x_display_and_set_cursor): Use get_window_cursor_type.
10899 Remove unused local variables cursor_off_state.
10900 Redraw cursor if hbar cursor width changes.
10901
10902 * xterm.h (enum text_cursor_kinds): Removed.
10903 (struct output_x) <current_cursor, desired_cursor, cursor_width>
10904 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10905 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10906 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10907 (x_specified_cursor_type): Remove prototype.
10908
109092002-08-28 Richard M. Stallman <rms@gnu.org>
10910
10911 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10912 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10913 (Vblink_cursor_alist): New variable.
10914 (syms_of_w32fns): Initialize and defvar it.
10915 (x_specified_cursor_type): Recognize Qbox for filled box.
10916 Exceptions are hollow boxes.
10917 (Qbox, Qhollow): New variables.
10918 (syms_of_w32fns): Initialize and staticpro them.
10919
10920 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10921 New macros.
10922 (struct w32_output): New fields blink_off_cursor,
10923 blink_off_cursor_width.
10924 (FRAME_CURSOR_WIDTH): New macro.
10925
10926 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10927 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10928
10929 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10930 for bar cursor.
10931
10932 * w32term.c (expose_overlaps): New function.
10933 (expose_window): Use it to fix the display of overlapping rows.
10934
109352002-08-28 Simon Josefsson <jas@extundo.com>
10936
10937 * xfns.c (Fx_open_connection): Improve help when X connection
10938 fails, xhost is insecure and xauth is better.
10939
109402002-08-28 Juanma Barranquero <lektu@terra.es>
10941
10942 * makefile.w32-in: Add missing dependencies on w32term.h and
10943 composite.h.
10944
10945 * emacs.c (USAGE1): Add missing newline.
10946
109472002-08-27 Andrew Choi <akochoi@shaw.ca>
10948
10949 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
10950
109512002-08-27 Richard M. Stallman <rms@gnu.org>
10952
10953 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10954 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10955 (Vblink_cursor_alist): New variable.
10956 (syms_of_xfns): Initialize and defvar it.
10957 (x_specified_cursor_type): Recognize Qbox for filled box.
10958 Exceptions are hollow boxes.
10959 (Qbox, Qhollow): New variables.
10960 (syms_of_xfns): Initialize and staticpro them.
10961
10962 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10963 New macros.
10964 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
10965
10966 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10967 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10968
10969 * emacs.c (main): Handle --script.
10970 (USAGE1): Mention --script.
10971 (standard_args): Define sort order for --script.
10972
109732002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
10974
10975 * xdisp.c (redisplay_updating_p): Variable removed.
10976 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
10977 New variables.
10978 (init_iterator): Don't free realized faces if
10979 inhibit_free_realized_faces is set.
10980 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
10981 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
10982 initialize Qinhibit_free_realized_faces.
10983
10984 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
10985 when iterator is adding glyphs to a glyph matrix.
10986
109872002-08-27 Kenichi Handa <handa@etl.go.jp>
10988
10989 * xdisp.c (get_next_display_element): In unibyte case, don't use
10990 octal form for such eight-bit characters that can be converted to
10991 multibyte char.
10992
109932002-08-26 Kim F. Storm <storm@cua.dk>
10994
b6189c3b
KS
10995 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
10996 foreground and background colors. From Joe Buehler.
048addec
JD
10997
109982002-08-26 Miles Bader <miles@gnu.org>
10999
11000 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11001
110022002-08-25 Andrew Choi <akochoi@shaw.ca>
11003
11004 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11005 defined instead of MAC_OSX.
11006
11007 * s/darwin.h (select): Define select to sys_select only if
11008 HAVE_CARBON is defined.
11009 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11010 (DONT_REOPEN_PTY): #def it.
11011
11012 * macterm.c (XTread_socket): Remove code to call
11013 SendEventToEventTarget for keys with command modifiers when
11014 mac_command_key_is_meta is nil.
11015
110162002-08-24 Andreas Schwab <schwab@suse.de>
11017
11018 * eval.c (Fdefvar): Fix last change.
11019
110202002-08-23 Richard M. Stallman <rms@gnu.org>
11021
11022 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11023 Record variables in load history as (defvar . VAR).
11024 (Fdefvar): Don't record in load history if no initial value.
11025 (Qdefvar): New variable.
11026 (syms_of_eval): Init and staticpro it.
11027
11028 * lread.c (syms_of_lread): Doc fix.
11029 (build_load_history): Use Fmember to see if a definition
11030 is already in the Vload_history element.
11031
11032 * process.c (Fstart_process): Remove /: from program name.
11033
11034 * emacs.c (decode_env_path): Don't add /: if file name handler
11035 has a `safe-magic' property.
11036
11037 * callproc.c (Fcall_process): Remove /: from program name.
11038
110392002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11040
11041 * regex.c (PATFETCH): Remove the translating fetch.
11042 (PATFETCH_RAW): Rename to PATFETCH.
11043 (set_image_of_range): New fun.
11044 (SET_RANGE_TABLE_WORK_AREA): Use it.
11045 (regex_compile): Don't translate the pattern chars so eagerly.
11046 Only do it when inserting an `exactn' bytecode or when handling
11047 a char-range.
11048 (mutually_exclusive_p): Avoid empty statement.
11049
110502002-08-22 Kim F. Storm <storm@cua.dk>
11051
11052 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11053 end up on a partially visible line; this reverts a specific part
11054 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11055 display error which has been reported several times now.
11056 However it introduces the problem that changes was supposed to fix.
11057 See my comments in the source if you want to debug this further.
11058
110592002-08-20 Kenichi Handa <handa@etl.go.jp>
11060
11061 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11062
110632002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11064
11065 * msdos.c (croak): Add `void' to definition.
11066
c1380aa6 11067 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
11068 Don't define them, they are defined in msdos.c.
11069
11070 * mem-limits.h [MSDOS]: Declare etext.
11071
11072 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11073 `const' since CORRECT_DIR_SEPS modifies its target.
11074
110752002-08-19 Kim F. Storm <storm@cua.dk>
11076
2fb0ce67 11077 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
11078 KEEP-RECORD to avoid clearing lossage when we just want to clear
11079 the current key sequence (kmacro needs this).
11080
110812002-08-19 Kenichi Handa <handa@localhost>
11082
11083 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11084
11085 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11086 cons, return Qnil.
11087
110882002-08-17 Richard M. Stallman <rms@gnu.org>
11089
11090 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11091
11092 * sysdep.c [!VMS]: Include sys/files.h.
11093
11094 * editfns.c (save_restriction_restore): Defend from unchained marker.
11095
11096 * buffer.c (overlays_at): Handle extending vec uniformly.
11097 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11098
110992002-08-15 Andrew Choi <akochoi@shaw.ca>
11100
11101 * mac.c (init_mac_osx_environment): New function.
11102
11103 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11104
111052002-08-14 Kim F. Storm <storm@cua.dk>
11106
11107 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11108 executing macro before appending to it (when used from Lisp).
11109 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11110 which is called prior to each iteration of macro (for kmacro.el).
11111 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11112
11113 * lisp.h (Fexecute_kbd_macro): Update prototype.
11114
11115 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11116
111172002-08-14 Kenichi Handa <handa@etl.go.jp>
11118
11119 * xselect.c (QUTF8_STRING): New variable.
11120 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11121 (x_atom_to_symbol): Likewise.
11122 (x_get_local_selection): New argument local_request. If it is
11123 nonzero, call handler_fn with the second arg nil.
11124 (x_handle_selection_request): Call x_get_local_selection with
11125 local_request 0.
11126 (lisp_data_to_selection_data): Don't encode the string here.
11127 (Fx_get_selection_internal): Call x_get_local_selection with
11128 local_request 1.
11129 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11130
11131 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11132
11133 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11134
111352002-08-13 Richard M. Stallman <rms@gnu.org>
11136
11137 * minibuf.c (Fminibufferp): New function.
11138 (syms_of_minibuf): Defsubr it.
11139 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11140
111412002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11142
11143 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11144
111452002-08-12 Richard M. Stallman <rms@gnu.org>
11146
11147 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11148 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11149 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11150 already.
11151
11152 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11153
111542002-08-11 Andrew Choi <akochoi@shaw.ca>
11155
11156 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11157 (Vmac_pass_command_to_system): New variable.
11158 (Vmac_pass_control_to_system): New variable.
11159 (do_mouse_moved): Check wp with is_emacs_window.
11160 (XTread_socket): Check window_ptr with is_emacs_window.
11161 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11162 events back to Mac Toolbox for processing, depending on values of
11163 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11164 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11165 Vmac_pass_control_to_system.
11166
111672002-08-10 Kenichi Handa <handa@etl.go.jp>
11168
11169 * coding.c (unencodable_char_position): New function.
11170 (Funencodable_char_position): New function.
11171 (syms_of_coding): Defsubr Funencodable_char_position.
11172
111732002-08-10 Andrew Choi <akochoi@shaw.ca>
11174
11175 * mac.c (sys_select) [MAC_OSX]: New function.
11176
11177 * macterm.c (MakeMeTheFrontProcess): New function.
11178 (mac_initialize): Call MakeMeTheFrontProcess.
11179
11180 * s/darwin.h: Define select to sys_select.
11181
111822002-08-09 Richard M. Stallman <rms@gnu.org>
11183
11184 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11185
111862002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11187
11188 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11189 end of the buffer.
11190
111912002-08-08 Ken Raeburn <raeburn@mit.edu>
11192
11193 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11194
11195 * puresize.h (BASE_PURESIZE): Increase to 910000.
11196
111972002-08-08 Kenichi Handa <handa@etl.go.jp>
11198
11199 * coding.c (Ffind_operation_coding_system): For write-region, if
11200 VISIT is a filename, make it the target.
11201
112022002-08-07 Richard M. Stallman <rms@gnu.org>
11203
11204 * alloc.c (mark_object): Detect long lists for debugging.
11205 (mark_object_loop_halt): New variable.
11206
11207 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11208
11209 * data.c (Fmake_variable_frame_local): Doc fix.
11210
112112002-08-01 David Ponce <david@dponce.com>
11212
11213 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11214 (malloc_widget_value, free_widget_value)
11215 (w32_free_submenu_strings): Use them.
11216
11217 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11218 (push_menu_pane, push_menu_item, single_keymap_panes)
11219 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11220 (single_submenu, set_frame_menubar)
11221 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11222
11223 (Fx_popup_menu): Don't show pop up menu until preceding one is
11224 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11225
11226 * w32menu.c: Changes adapted from xmenu.c
11227 (set_frame_menubar): First parse all submenus,
11228 then make widget_value trees from them.
11229 Don't allocate any widget_value objects
11230 until we are done with the parsing.
11231 (parse_single_submenu): New function.
11232 (digest_single_submenu): New function.
11233 (single_submenu): Function deleted, replaced by those two.
11234
112352002-08-04 Andrew Choi <akochoi@shaw.ca>
11236
11237 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11238 returns a valid window pointer before proceeding for keyDown and
11239 autoKey events.
11240
112412002-08-03 Andrew Choi <akochoi@shaw.ca>
11242
11243 * macterm.c (USE_CARBON_EVENTS): New macro.
11244 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11245 (x_iconify_frame): Call CollapseWindow.
11246 (Vmac_reverse_ctrl_meta): New variable.
11247 (Vmac_wheel_button_is_mouse_2): New variable.
11248 (init_mac_drag_n_drop): New function.
11249 (mac_do_receive_drag): New function.
11250 (mac_handle_service_event): New function.
11251 (init_service_handler): New function.
11252 (mac_to_emacs_modifiers): New function.
11253 (mac_event_to_emacs_modifiers): New function.
11254 (mac_get_mouse_btn): New function.
11255 (mac_convert_event_ref): New function.
11256 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11257 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11258 mac_get_mouse_btn.
11259 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11260
11261 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11262 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11263 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11264 TOOL_BAR_EVENT for MAC_OS as well.
11265 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11266 as for WINDOWS_NT.
11267 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11268
11269 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11270
112712002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11272
11273 * xdisp.c (forward_to_next_line_start): Fix a condition that
11274 lead to a newline being skipped.
11275
112762002-08-02 Andrew Choi <akochoi@shaw.ca>
11277
11278 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11279
112802002-08-01 Richard M. Stallman <rms@gnu.org>
11281
11282 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11283
112842002-07-31 Andrew Choi <akochoi@shaw.ca>
11285
11286 * macfns.c: #undef init_process before #define-ing it.
11287
11288 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11289 HAVE_CARBON is defined.
11290
112912002-07-31 Richard M. Stallman <rms@gnu.org>
11292
11293 * xmenu.c (set_frame_menubar): First parse all submenus,
11294 then make widget_value trees from them.
11295 Don't allocate any widget_value objects
11296 until we are done with the parsing.
11297 (parse_single_submenu): New function.
11298 (digest_single_submenu): New function.
11299 (single_submenu): Function deleted, replaced by those two.
11300
113012002-07-30 Juanma Barranquero <lektu@terra.es>
11302
11303 * w32proc.c (syms_of_ntproc): Fix docstring of
11304 `w32-get-true-file-attributes'.
11305
113062002-07-28 Richard M. Stallman <rms@gnu.org>
11307
11308 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11309 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11310
11311 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11312
11313 * keyboard.c (make_lispy_event):
11314 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11315 Explicitly clear up_modifier in event->modifiers.
11316
113172002-07-27 Richard M. Stallman <rms@gnu.org>
11318
11319 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11320
11321 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11322 for bar cursor.
11323
113242002-07-26 Kenichi Handa <handa@etl.go.jp>
11325
11326 * coding.c (detect_coding_iso2022): While checking a byte sequence
11327 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11328 it in the normal loop.
11329
113302002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11331
11332 * xterm.c (expose_overlaps): New function.
11333 (expose_window): Use it to fix the display of overlapping rows.
11334
11335 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11336
113372002-07-23 Ken Raeburn <raeburn@gnu.org>
11338
11339 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11340 since it only depends on XUINT.
11341
11342 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11343 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11344 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11345 Macros deleted.
3947677c 11346
77d1daf2
AS
11347 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11348 its value over other approaches.
11349 * sysdep.c (start_of_data): Don't define the function if a macro
11350 form has been defined.
8a8e19a3 11351
048addec
JD
113522002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11353
11354 * xdisp.c (redisplay_updating_p): New variable.
11355 (init_iterator): Don't free realized faces when
11356 redisplay_updating_p is set.
11357 (redisplay_internal): Set redisplay_updating_p while updating
11358 the display.
11359
113602002-07-23 Richard M. Stallman <rms@gnu.org>
11361
11362 * editfns.c (Fmessage): Treat "" like nil.
11363
113642002-07-23 Kenichi Handa <handa@etl.go.jp>
11365
11366 * xdisp.c (face_before_or_after_it_pos):
11367 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11368
113692002-07-22 Juanma Barranquero <lektu@terra.es>
11370
11371 * callproc.c (init_callproc) [DOS_NT]:
11372 Initialize Vshared_game_score_directory to nil.
11373 (syms_of_callproc) [DOS_NT]: Likewise.
11374
113752002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11376
11377 * xdisp.c (display_line): Replace an abort with xassert.
11378
113792002-07-21 Richard M. Stallman <rms@gnu.org>
11380
11381 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11382 and END_UNCHANGED when setting buffer_unchanged_p.
11383 Use current_matrix_up_to_date_p to decide whether to use
11384 try_cursor_movement.
11385
11386 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11387
11388 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11389
11390 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11391 Set to nil if dir does not exist.
11392 (syms_of_callproc): Init unconditionally and simply.
11393
11394 * buffer.c (Fbuffer_list): Doc fix.
11395
113962002-07-21 Ken Raeburn <raeburn@gnu.org>
11397
11398 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11399
11400 * buffer.c (mmap_realloc): When shrinking, make sure number of
11401 pages to unmap is rounded towards zero.
11402
11403 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11404 (XSETINT): Deleted.
11405
11406 * m/att3b.h (XINT): Don't define.
11407 (VALBITS, VALMASK, XTYPE): Deleted.
11408 (DATA_SEG_BITS): Define.
11409 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11410 ARRAY_MARK_FLAG): Deleted.
11411 (DATA_SEG_BITS): Define.
11412 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11413 (DATA_SEG_BITS): Define.
11414
114152002-07-20 Richard M. Stallman <rms@gnu.org>
11416
11417 * print.c (print_error_message): New args CONTEXT and CALLER.
11418 Calls changed.
11419
11420 * lisp.h (print_error_message): Declare new args.
11421
11422 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11423 and CONTEXT to print_error_message, don't print them here.
11424 For a Quit, don't use Vsignaling_function.
11425 Call message_log_maybe_newline.
11426
11427 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11428
114292002-07-20 Kim F. Storm <storm@cua.dk>
11430
11431 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11432
114332002-07-19 Ken Raeburn <raeburn@gnu.org>
11434
11435 * bytecode.c (struct byte_stack): Pointers into byte string now
11436 point to const.
11437 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11438 const.
11439 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11440 * coding.c (encode_eol, detect_coding, detect_eol):
11441 (decode_coding, encode_coding, detect_coding_system):
11442 Source strings now treated as const.
11443 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11444 modify Lisp string contents.
11445 * coding.h (decode_coding, encode_coding, detect_coding,
11446 detect_eol): Declarations updated.
11447 * composite.c (compose_chars_in_text): Treat Lisp string contents
11448 as const.
11449 * dispnew.c (safe_bcopy): Source pointer now points to const.
11450 * lisp.h (STRING_COPYIN): New macro.
11451 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11452 (internal_with_output_to_temp_buffer): Declarations updated.
11453 * print.c (temp_output_buffer_setup):
11454 (internal_with_output_to_temp_buffer): Buffer name argument is now
11455 pointer to const.
11456 * sound.c (struct sound_device): Function pointer field "write"
11457 buffer argument now points to const.
11458 (vox_write): Buffer argument points to const.
11459 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11460 contents as const.
11461 * sysdep.c (emacs_write): Buffer pointer now const.
11462 * term.c (encode_terminal_code): Buffer pointer now const.
11463 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11464 (x_face_list_fonts, x_update_menu_appearance):
11465 (hash_string_case_insensitive): Treat Lisp string contents as const.
11466
114672002-07-19 Juanma Barranquero <lektu@terra.es>
11468
048addec
JD
11469 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11470
11471 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
11472 (Ffile_name_as_directory): Fix argument name in docstring.
11473 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
11474
114752002-07-18 Richard M. Stallman <rms@gnu.org>
11476
11477 * data.c (Fdefalias): Doc fix.
11478
114792002-07-17 Dave Love <fx@gnu.org>
11480
11481 * intervals.h (text_property_stickiness): Use P_.
11482
11483 * ccl.c: Remove `emacs' conditionals.
11484 (ccl_backtrace_table): Fix size spec.
11485 (ccl_driver): Fix type errors.
11486
114872002-07-16 Ken Raeburn <raeburn@gnu.org>
11488
11489 * alloc.c (xstrdup, make_string, make_unibyte_string)
11490 (make_multibyte_string, build_string): String pointer args now
11491 point to const.
11492 * charset.c (find_charset_in_text, c_string_width):
11493 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11494 * fileio.c (report_file_error):
11495 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11496 (count_combining_before, count_combining_after, insert_1_both):
11497 (insert, insert_and_inherit, insert_string):
11498 (insert_before_markers, insert_before_markers_and_inherit):
11499 * lread.c (intern, oblookup, hash_string):
11500 * minibuf.c (temp_echo_area_glyphs):
11501 * search.c (fast_c_string_match_ignore_case):
11502 * sysdep.c (emacs_open, set_file_times):
11503 * xfaces.c (xstricmp):
11504 * xdisp.c (store_frame_title, string_char_and_length):
11505 (message_dolog, message2, message2_nolog, set_message): Likewise.
11506 (set_message_1): Cast message string argument to const pointer.
11507 * editfns.c (general_insert_function): Insertion function now
11508 takes pointer to const for input data.
11509 * charset.h (find_charset_in_text, c_string_width):
11510 (parse_str_as_multibyte): Declarations updated.
11511 * dispextern.h (xstricmp): Declaration updated.
11512 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11513 (count_size_as_multibyte, count_combining_before):
11514 (count_combining_after, insert_1, insert_1_both, message_dolog):
11515 (insert, insert_and_inherit, insert_before_markers)
11516 (insert_before_markers_and_inherit, set_message, message2):
11517 (message2_dolog, build_string, make_string, make_unibyte_string):
11518 (make_multibyte_string, intern, oblookup, report_file_error):
11519 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11520 (emacs_open, xstrdup): Declarations updated.
11521 * systime.h (set_file_times): Declaration updated.
11522
11523 * charset.c (find_charset_in_text, lisp_string_width): Use const
11524 for pointer to lisp string data.
11525 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11526 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11527 * coding.c (Ffind_coding_systems_region_interval):
11528 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11529 (Fmake_directory_internal, Fdelete_directory):
11530 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11531 * fontset.c (font_family_registry, fs_query_fontset):
11532 (list_fontsets):
11533 * frame.c (Fframe_parameter):
11534 * keyboard.c (cmd_error_internal):
11535 * keymap.c (Fdescribe_buffer_bindings):
11536 * lread.c (complete_filename_p, openp):
11537 * minibuf.c (Fminibuffer_complete_word):
11538 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11539 (face_before_or_after_it_pos, next_element_from_string):
11540 (get_overlay_arrow_glyph_row, display_mode_element):
11541 (decode_mode_spec_coding):
11542 * xterm.c (same_x_server): Likewise.
11543
11544 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11545 settings of non-existent fields.
11546
11547 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11548 copy a lisp value.
11549
11550 * lread.c (Fintern_soft): Use string macros instead of
11551 Lisp_String fields.
11552 * keyboard.c (echo_char, parse_modifiers_uncached):
11553 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
11554 * textprop.c (validate_interval_range, interval_of): Likewise.
11555
11556 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
11557
11558 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11559 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
11560 XSTRING()->size_byte.
11561
11562 * lisp.h (SDATA, SREF): Produce rvalue.
11563 (SSET): New macro.
11564 * alloc.c (make_event_array): Use SSET for storing into a string.
11565 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
11566 a string.
11567 * casefiddle.c (casify_object): Use SSET.
11568 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11569 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
11570 address of string contents.
11571 * data.c (Faref): Use SDATA.
11572 (Faset): Use SDATA, SSET.
11573 * dired.c (directory_files_internal): Use SSET.
11574 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
11575 (Fread_file_name): Use SREF, SSET.
11576 * fns.c (concat): Use SSET.
11577 (concat, Fdelete): Use SDATA.
11578 * insdel.c (insert_from_string_1): Use SDATA.
11579 * keyboard.c (Fevent_convert_list): Use SREF.
11580 * lread.c (Fload): Use SDATA, SSET.
11581 * macfns.c (validate_x_resource_name): Use SSET.
11582 * process.c (status_message): Use SSET.
11583 * search.c (wordify): Use SDATA.
11584 (Freplace_match): Use SREF.
11585 * w32fns.c (validate_x_resource_name): Use SSET.
11586 * xfns.c (validate_x_resource_name): Use SSET.
11587 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
11588
115892002-07-16 Richard M. Stallman <rms@gnu.org>
11590
11591 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
11592
11593 * xdisp.c (reconsider_clip_changes):
11594 Don't test prevent_redisplay_optimizations_p.
11595 (redisplay_internal): Test prevent_redisplay_optimizations_p
11596 along with clip_changed in some cases.
11597 (try_window_id): Likewise.
11598 (redisplay_window): New local var buffer_unchanged_p.
11599
11600 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
11601
11602 * process.c (create_process): Test USG_SUBTTY_WORKS.
11603 (process_send_signal): Clean up handling of GID.
11604 Detect errors in ioctls meant to set GID.
11605
11606 * window.c (temp_output_buffer_show):
11607 Don't set prevent_redisplay_optimizations_p.
11608
116092002-07-15 Juanma Barranquero <lektu@terra.es>
11610
11611 * eval.c (Fdefvaralias): Add docstring argument.
11612
116132002-07-15 Ken Raeburn <raeburn@gnu.org>
11614
11615 * lisp.h (STRING_INTERVALS): Produce rvalue.
11616 (STRING_SET_INTERVALS): New macro.
11617 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
11618 * fns.c (Fstring_as_multibyte): Likewise.
11619 * intervals.c (balance_possible_root_interval, delete_interval)
11620 (create_root_interval, copy_intervals_to_string): Likewise.
11621 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
11622 instead of 0.
11623
116242002-07-14 Ken Raeburn <raeburn@gnu.org>
11625
11626 * lisp.h (STRING_SET_CHARS): New macro.
11627 (SCHARS, SBYTES): Produce rvalues.
11628 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
11629 * fns.c (concat): Likewise.
11630 * lread.c (read_vector): Likewise.
11631
11632 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
11633 (STRING_SET_UNIBYTE): New macro.
11634 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
11635 length of -1) changed to use STRING_SET_UNIBYTE.
11636 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
11637 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
11638 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
11639 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
11640 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
11641 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
11642 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
11643 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
11644 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
11645 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
11646 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
11647 STRING_BYTES or indirection changed to SCHARS, SBYTES,
11648 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
11649 unchanged for now.
11650
116512002-07-13 Kim F. Storm <storm@cua.dk>
11652
11653 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
11654
116552002-07-12 Richard M. Stallman <rms@gnu.org>
11656
11657 * fileio.c (Fwrite_region): Doc fix.
11658
11659 * print.c (print_error_message): Don't handle Vsignaling_function here.
11660
11661 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
11662 (command_loop_1): Avoid certain actions after memory-full error.
11663
11664 * eval.c (Fsignal): Don't call cancel_hourglass.
11665 For a memory-full error, don't call Vsignal_hook_function
11666 and don't set Vsignaling_function.
11667
11668 * process.c (process_send_signal): Add abort call.
11669
116702002-07-11 Markus Rost <rost@math.ohio-state.edu>
11671
11672 * keymap.c (Fkey_binding): Fix typo.
11673
116742002-07-11 Richard M. Stallman <rms@gnu.org>
11675
11676 * alloc.c (Vmemory_full): New variable.
11677 (Vmemory_signal_data): Renamed from memory_signal_data.
11678 Uses changed.
11679 (syms_of_alloc): Defvar them.
11680 (memory_full, buffer_memory_full): Set Vmemory_full.
11681
11682 * lisp.h (Vmemory_full): Add declaration.
11683 (current_column, indented_beyond_p): Change declaration.
11684
11685 * indent.c (last_known_column): Declare as double, not float.
11686 (current_column, current_column_1, string_display_width)
11687 (position_indentation): Return `double'.
11688 (indented_beyond_p): Arg `column' is `double'. Callers changed.
11689
11690 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
11691 (back_to_previous_visible_line_start)
11692 (reseat_at_next_visible_line_start, next_element_from_buffer):
11693 Use `double', not `float', when calling indented_beyond_p.
11694
11695 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
11696
11697 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
11698
116992002-07-11 Juanma Barranquero <lektu@terra.es>
11700
11701 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
11702 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
11703 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
11704 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
11705 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
11706 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
11707
117082002-07-10 Juanma Barranquero <lektu@terra.es>
11709
d814862a
JB
11710 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
11711 All callers changed.
048addec
JD
11712
117132002-07-09 Stefan Monnier <monnier@cs.yale.edu>
11714
11715 * data.c (Fdefalias): Add an optional `docstring' argument.
11716 (set_internal, Fsetq_default): Use XCAR/XCDR.
11717
11718 * composite.c (HASH_VALUE, HASH_KEY):
11719 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
11720
117212002-07-09 Kenichi Handa <handa@etl.go.jp>
11722
11723 * callproc.c (Fcall_process): Fix previous change.
11724
117252002-07-07 Stefan Monnier <monnier@cs.yale.edu>
11726
11727 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11728 Add support for hash-tables.
11729 (Ftry_completion): Return t even if the string appears multiple times.
11730
11731 * fns.c (Fnconc): Use XCDR.
11732 (Fprovide): Use CONSP and XCDR.
11733 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11734 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
11735 (Fmake_hash_table): Accept `:size nil'.
11736 (Fmakehash): Delete: moved to subr.el.
11737 (syms_of_fns): Don't defsubr makehash.
11738
11739 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11740 (HASH_TABLE_SIZE): Move from fns.c.
11741
117422002-07-07 Richard M. Stallman <rms@gnu.org>
11743
11744 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
11745 Instead just return 0 when there is something to be done.
11746 (try_scrolling): If make_cursor_line_fully_visible returns 0,
11747 retry scrolling as if cursor were off the bottom.
11748 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
11749 return CURSOR_MOVEMENT_MUST_SCROLL.
11750 (redisplay_window): If make_cursor_line_fully_visible returns 0,
11751 go to try_to_scroll.
11752
11753 * buffer.c (Fbuffer_local_value): Store current value into its binding
11754 so we get the up-to-date value for the binding that is loaded.
11755
11756 * eval.c (Fdefmacro): Doc fix.
11757
117582002-07-05 Dave Love <fx@gnu.org>
11759
11760 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
11761 correctly.
11762
11763 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
11764 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
11765 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
11766 CCL_LookupCharConstTbl.
11767 (syms_of_ccl): Defvar translation-hash-table-vector.
11768
117692002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11770
11771 * xdisp.c: Remove unused variable `face'.
11772
117732002-07-04 Juanma Barranquero <lektu@terra.es>
11774
11775 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
11776 obsolescence information.
11777
117782002-07-03 Andrew Choi <akochoi@shaw.ca>
11779
11780 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
11781 pattern. Search cache first.
11782 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
11783 for Japanese font.
11784 (XLoadQueryFont): Use it.
11785
117862002-07-02 Richard M. Stallman <rms@gnu.org>
11787
11788 * keymap.c (Fdefine_key): Doc fix.
11789
11790 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
11791
117922002-07-02 Juanma Barranquero <lektu@terra.es>
11793
11794 * keymap.c (syms_of_keymap): Fix typo.
11795
117962002-07-01 Andrew Choi <akochoi@shaw.ca>
11797
11798 * s/darwin.h: Define POSIX_SIGNALS.
11799
11800 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
11801 and FSRefMakePath to convert FSSpec returned with Apple Event to
11802 Posix pathname.
11803 (mac_initialize) [TARGET_API_MAC_CARBON]:
11804 Call init_required_apple_events and disable the `Quit' menu item
11805 provided automatically by the Carbon Toolbox.
11806
118072002-07-01 Dave Love <fx@gnu.org>
11808
11809 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11810 for K&R.
11811
11812 * xterm.c: Fix prototype for K&R.
11813
11814 * term.c (costs_set): Declare static, non-initialized for pcc.
11815
118162002-07-01 Richard M. Stallman <rms@gnu.org>
11817
11818 * keyboard.c (timer_last_idleness_start_time): New variable.
11819 (timer_start_idle): Set that.
11820 (read_key_sequence): Use that to reset timer_idleness_start_time
11821 to previous value.
11822
11823 * window.c (Frecenter): With arg, set optional_new_start.
11824
11825 * xdisp.c (redisplay_internal): Make optional_new_start really work.
11826
11827 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
11828 buffer for completion.
11829
118302002-06-29 Ken Raeburn <raeburn@gnu.org>
11831
11832 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
11833
118342002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11835
11836 * keyboard.c (readable_filtered_events): New function that filters
11837 FOCUS_IN_EVENT depending on parameter.
11838 (readable_events): Calls readable_filtered_events, not filtering
11839 FOCUS_IN_EVENT.
11840 (get_filtered_input_pending): New function, filtering parameter passed
11841 to readable_filtered_events.
11842 (get_input_pending): Calls get_filtered_input_pending, not filtering
11843 FOCUS_IN_EVENT.
11844 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
11845 FOCUS_IN_EVENT.
11846
11847 * xterm.h (struct x_output): Add focus_state.
11848
11849 * xterm.c (x_focus_changed): New function.
11850 (x_detect_focus_change): New function.
11851 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
11852 EnterNotify and LeaveNotify to track X focus changes.
11853
118542002-06-28 Andreas Schwab <schwab@suse.de>
11855
11856 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
11857
118582002-06-27 Kim F. Storm <storm@cua.dk>
11859
11860 * xdisp.c: (mode_line_string_list, mode_line_string_face)
11861 (mode_line_string_face_prop): New variables.
11862 (store_mode_line_string): New function.
11863 (display_mode_element): Use store_mode_line_string to
11864 add mode-line string elements to mode_line_string_list
11865 when mode_line_string_list is non-nil.
11866 (Fformat_mode_line): Now returns propertized string by
11867 default. New arg NO-PROPS to ignore properties.
11868 (decode_mode_spec): Only add two dashes for %- in propertized
11869 mode-line string.
11870 (syms_of_xdisp): Init and staticpro mode_line_string_list.
11871
118722002-06-27 Stefan Monnier <monnier@cs.yale.edu>
11873
11874 * minibuf.c (minibuffer_completion_contents): Add return type.
11875
118762002-06-27 Juanma Barranquero <lektu@terra.es>
11877
11878 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
11879
118802002-06-26 Juanma Barranquero <lektu@terra.es>
11881
11882 * fileio.c (read_file_name_cleanup): Add missing return.
11883
118842002-06-26 Richard M. Stallman <rms@gnu.org>
11885
11886 * window.c (Frecenter): Don't set force_start flag.
11887
11888 * minibuf.c (do_completion, Fminibuffer_complete_word)
11889 (Fminibuffer_completion_help): Complete just the text before point.
11890 (minibuffer_completion_contents): New function.
11891
11892 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
11893
11894 * frame.c (frames_bury_buffer): Function deleted.
11895
118962002-06-25 Miles Bader <miles@gnu.org>
11897
11898 * callint.c (Fcall_interactively): When checking to see if doprnt hit
11899 the end of callint_message, allow for a terminating '\0'.
11900
119012002-06-24 Juanma Barranquero <lektu@terra.es>
11902
11903 * w32select.c: Include composite.h
11904
11905 * w16select.c: Likewise.
11906
119072002-06-24 Kenichi Handa <handa@etl.go.jp>
11908
11909 * callproc.c (Fcall_process): If code detection is necessary,
11910 call detect_coding directly here.
11911
11912 * coding.c (detect_eol): Preserve coding->cmp_data.
11913
11914 * w16select.c (Fw16_get_clipboard_data):
11915 * w32fns.c (w32_to_x_font):
11916 * w32select.c (Fw32_get_clipboard_data):
11917 * xselect.c (selection_data_to_lisp_data):
11918 * xterm.c (XTread_socket): Disable composition handling.
11919
119202002-06-24 Stefan Monnier <monnier@cs.yale.edu>
11921
11922 * print.c (temp_output_buffer_setup): Kill all local variables.
11923
119242002-06-22 Stefan Monnier <monnier@cs.yale.edu>
11925
11926 * lread.c (Fread): Remove redundant and imprecise declaration.
11927
11928 * xfns.c (check_x_display_info): Use check_x_frame.
11929
11930 * .gdbinit (xprintsym): Use the new `xname' field.
11931 (xsymbol): Use it.
11932
119332002-06-22 Jason Rumney <jasonr@gnu.org>
11934
11935 * w32fns.c (file_dialog_callback): New function.
11936 (Fx_file_dialog): Allow selecting directories as well as files.
11937
119382002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11939
11940 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 11941 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
11942
119432002-06-17 Andrew Choi <akochoi@shaw.ca>
11944
11945 * macterm.c (mac_scroll_area): Set foreground and backcolor to
11946 black and white before scrolling. Restore frame background and
11947 foreground color after scrolling.
11948 (do_window_update): Call XClearWindow before calling expose_frame.
11949 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
11950 FRAME_FOREGROUND_PIXEL of frame.
11951
11952 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11953 test Mac command key as <ALT> key.
11954
119552002-06-17 Stefan Monnier <monnier@cs.yale.edu>
11956
11957 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
11958
11959 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
11960 Lookup keys in function-key-map immediately so that key-translation-map
11961 can be applied earlier.
11962 Remove function_key_possible and key_translation_possible, replaced
11963 by checking `keytran_start < t'.
11964
11965 * .gdbinit (xsymbol): Use the new `xname' field.
11966
119672002-06-17 Andrew Choi <akochoi@shaw.ca>
11968
11969 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11970 test Mac command key as <ALT> key.
11971
11972 * mac.c (do_applescript): Call initialize_applescript if necessary
11973 when first called. Dispose of result_desc only when there is no error.
11974 (Fdo_applescript): Use %d format specifier instead of %ld.
11975
119762002-06-16 Andrew Choi <akochoi@shaw.ca>
11977
11978 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
11979 of FrontWindow for cases keyDown and autoKey.
11980
11981 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
11982 Vdefault_fontset to Monaco with mac-roman coding.
11983
11984 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
11985 init_process before and after inclusion of Carbon/Carbon.h, resp.
11986
11987 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
11988 cursor_gc.
11989 (add_font_name_table_entry): New function.
11990 (init_font_name_table): Use add_font_name_table_entry; add italic,
11991 bold, and bold-italic entries for truetype fonts.
11992
11993 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
11994 for Mac too.
11995 (try_font_list) [MAC_OS]: If no font matches given registry, try
11996 fonts with any registry matching face_family.
11997 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
11998
11999 * s/darwin.h: If autoconf detects the Ncurses library, define
12000 LIBS_TERMCAP to -lncurses to use it.
12001
120022002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12003
12004 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12005
120062002-06-15 Richard M. Stallman <rms@gnu.org>
12007
12008 * window.c (Fset_window_configuration): Explicitly preserve
12009 the point value that new_current_buffer had at the start.
12010
120112002-06-14 Juanma Barranquero <lektu@terra.es>
12012
12013 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12014 Fix typos.
12015
120162002-06-14 Kim F. Storm <storm@cua.dk>
12017
12018 * insdel.c (insert_1_both, insert_from_string_1)
12019 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12020 insert happened in the end_unchanged region. Otherwise, the
12021 redisplay may be confused and duplicate the last line in the
12022 buffer [seen after save-buffer when require-final-newline==t].
12023
120242002-06-13 Jason Rumney <jasonr@gnu.org>
12025
12026 * w32.c (init_environment): Remove EMACSLOCKDIR.
12027 (stat): Swap _S_IFDIR and _S_IFREG.
12028
120292002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12030
12031 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12032 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12033 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12034 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12035 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12036 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12037 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12038 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12039 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12040 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12041 SELECTION_REQUEST_EVENT, selection_clear_event to
12042 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12043 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12044 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12045 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12046 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12047 no_event to NO_EVENT.
12048
120492002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12050
12051 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12052
120532002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12054
12055 * intervals.c (textget): Don't forget to `return'.
12056 (lookup_char_property): Use XCAR/XCDR.
12057
120582002-06-12 Juanma Barranquero <lektu@terra.es>
12059
12060 * xdisp.c (Fformat_mode_line): Fix typo.
12061
120622002-06-12 Kim F. Storm <storm@cua.dk>
12063
12064 * xdisp.c (Fformat_mode_line): New function.
12065 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12066 (store_frame_title_char, store_frame_title): Use unconditionally.
12067 (init_xdisp): Defsubr Fformat_mode_line.
12068 Initialize frame_title_buf etc. unconditionally.
12069
120702002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12071
12072 * keyboard.c (read_key_sequence):
12073 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12074 things through those maps after downcasing events.
12075 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12076 applies after function-key-map.
12077 Make sure that keytran can be done in the middle in the sequence.
12078 Be careful not to throw away events past the one we downcase.
12079
12080 * lread.c (read_integer): Remove unused var `tem'.
12081 (read1): Fix int/Lisp_Object mixup.
12082
12083 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12084
120852002-06-11 Richard M. Stallman <rms@gnu.org>
12086
12087 * keyboard.c (readable_events): Ignore any number of
12088 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12089
120902002-06-09 Miles Bader <miles@gnu.org>
12091
12092 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12093 (parse_rgb_list, tty_lookup_color): New functions.
12094 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12095 (color_distance, Fcolor_distance): New functions.
12096 (TTY_SAME_COLOR_THRESHOLD): New macro.
12097 (Qtty_color_standard_values): New variable.
12098 (syms_of_xfaces): Initialize new vars & functions.
12099
121002002-06-08 Colin Walters <walters@verbum.org>
12101
12102 * textprop.c (Vchar_property_alias_alist): New variable.
12103 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12104
12105 * intervals.c (lookup_char_property): New function for looking up
12106 overlay and text properties, created from textget.
12107 (textget): Use it.
12108
12109 * intervals.h (lookup_char_property): Declare.
12110 (Vchar_property_alias_alist): Declare.
12111
12112 * buffer.c (Foverlay_get): Use lookup_char_property.
12113
121142002-06-07 Sam Steingold <sds@gnu.org>
12115
12116 * xselect.c (lisp_data_to_selection_data): Fix last change:
12117 *data_ret is not a Lisp string, while unibyte_string is.
12118
121192002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12120
12121 * xselect.c (lisp_data_to_selection_data): Fix last change:
12122 set size_ret.
12123
121242002-06-07 Andreas Schwab <schwab@suse.de>
12125
12126 * m/amdx86-64.h: New file.
12127
121282002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12129
12130 * fns.c (Fstring_make_unibyte): Doc fix.
12131
12132 * xselect.c (lisp_data_to_selection_data): If the requested type
12133 is STRING, call string_make_unibyte to encode the selected text
12134 as a string.
12135
12136 * window.c (Fset_window_hscroll): Doc fix.
12137
121382002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12139
12140 * fileio.c (choose_write_coding_system):
12141 Call select-safe-coding-system properly.
12142
121432002-06-03 Richard M. Stallman <rms@gnu.org>
12144
12145 * xdisp.c (message_with_string): Error if STRING is not a string.
12146
12147 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12148
12149 * fileio.c (choose_write_coding_system): Pass FILE arg to
12150 Vselect_safe_coding_system_function.
12151
121522002-06-03 Ken Raeburn <raeburn@gnu.org>
12153
12154 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12155
121562002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12157
12158 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12159 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12160 * keymap.c (describe_command): Likewise.
12161 * minibuf.c (read_minibuf): Likewise.
12162
12163 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12164 Cast `current_column' return value to int.
12165 (back_to_previous_visible_line_start)
12166 (reseat_at_next_visible_line_start, next_element_from_buffer):
12167 Cast `indented_beyond_p' 3rd arg to float.
12168
12169 * indent.c (last_known_column): Now a float.
12170 (current_column_1, position_indentation, current_column)
12171 (string_display_width): Return float.
12172 (Fcurrent_column): Cast `current_column' return value to int.
12173 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12174 (indented_beyond_p): Third arg now a float.
12175 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12176
12177 * lisp.h (current_column): Now returns float.
12178 (indented_beyond_p): 3rd arg now a float.
12179
121802002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12181
12182 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12183 is Qcompound_text_with_extensions.
12184
12185 * xselect.c (lisp_data_to_selection_data): Always set selection
12186 type as string if x_encode_text returns streingp non-NULL.
12187
12188 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12189
121902002-05-30 Richard M. Stallman <rms@gnu.org>
12191
12192 * window.c (Fset_window_configuration): Correct the handling
12193 of point in current buffer, to work with multiple windows.
12194
121952002-05-29 Colin Walters <walters@verbum.org>
12196
12197 * lread.c (Fread_from_string): Don't depend on order of evaluation
12198 for C function parameters.
12199
122002002-05-28 Richard M. Stallman <rms@gnu.org>
12201
12202 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12203 way for blinked-off state and for a nonselected window.
12204
12205 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12206 instead, see if the new start pos is at beginning of line.
12207
12208 * fileio.c (Fwrite_region): If START is a string, don't
12209 make any annotations.
12210
12211 * eval.c (syms_of_eval): Doc fix.
12212
122132002-05-28 Colin Walters <walters@debian.org>
12214
12215 * emacs.c (USAGE1): Add --no-splash.
12216 (standard_args): Ditto.
12217
122182002-05-28 Colin Walters <walters@gnu.org>
12219
12220 * lread.c (readchar_count): New variable.
12221 (readchar): Increment it.
12222 (unreadchar): Decrement it.
12223 (read_multibyte): Decrement it.
12224 (Vread_with_symbol_positions): New variable.
12225 (Vread_symbol_positions_list): New variable.
12226 (read_internal_start): New function, created from Fread and
12227 Fread_from_string. Handle Vread_symbol_positions_list and
12228 Vread_with_symbol_positions.
12229 (readevalloop, Fread, Fread_from_string): Use it.
12230 (read1): Use readchar_count to add symbol positions to
12231 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12232 (syms_of_lread): DEFVAR_LISP and initialize them.
12233
12234 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12235 (substitute_object_recurse, substitute_object_in_subtree)
12236 (substitute_in_interval): Prototype.
12237 (read_multibyte): Return c if it's less than zero.
12238
122392002-05-28 Kim F. Storm <storm@cua.dk>
12240
12241 * fileio.c (Fread_file_name_internal): Added brute-force
12242 speed up for using predicate file-directory-p.
12243
122442002-05-28 Kim F. Storm <storm@cua.dk>
12245
12246 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12247 New variables.
12248 (syms_of_fileio): DEFVAR_LISP them.
12249 (read_file_name_cleanup): New unwind function.
12250 (Fread_file_name_internal): Only return completions satifying
12251 Vread_file_name_predicate. Temporarily unwind protect and rebind
12252 default-directory while checking completions against the predicate.
12253 (Fread_file_name): Added PREDICATE argument. Specbind it to
12254 Vread_file_name_predicate during completion.
12255 Call Vread_file_name_function to read the file name if non-nil.
12256
12257 * lisp.h (Fread_file_name): Now has 6 args.
12258
12259 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12260 predicate for Fread_file_name when reading directory name.
12261 Supply Qnil for predicate in other calls to Fread_file_name.
12262
122632002-05-26 Miles Bader <miles@gnu.org>
12264
12265 * term.c (tty_capable_p): New function.
12266 * dispextern.h (tty_capable_p): New function declaration.
12267 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12268 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12269
122702002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12271
12272 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12273 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12274 (Vwrite_region_annotate_functions): Docstring fix.
12275
122762002-05-23 Kim F. Storm <storm@cua.dk>
12277
12278 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12279 phys_cursor's hpos is overwritten. This is still not completely
12280 correct, as it doesn't really make sense to use hpos at all to
12281 get the cursor glyph (as that is relative to the width of the
12282 characters on the line, which may have changed during the update).
12283
122842002-05-22 Jason Rumney <jasonr@gnu.org>
12285
12286 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12287 Lisp_Object.
12288 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12289 Use modified enumfont_t struct.
12290
12291 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12292
12293 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12294 Handle the `hbar' cursor type.
12295 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12296
12297 * w32fns.c (Qhbar): New variable.
12298 (x_specified_cursor_type): Use it.
12299
123002002-05-21 Ken Raeburn <raeburn@gnu.org>
12301
12302 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12303 now, when the address is needed.
12304
123052002-05-21 Colin Walters <walters@gnu.org>
12306
12307 * Makefile.in (shortlisp): Add font-core.el.
12308
123092002-05-20 Richard M. Stallman <rms@gnu.org>
12310
12311 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12312
12313 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12314 equivalent key bindings here.
12315
123162002-05-20 Ken Raeburn <raeburn@gnu.org>
12317
12318 Change symbol structure to contain a lisp object for the symbol
12319 name:
12320 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12321 object field named "xname".
12322 (SYMBOL_NAME): New macro.
12323 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12324 name field.
12325 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12326 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12327 instead of name field.
12328 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12329 SYMBOL_NAME instead of XSYMBOL and name field.
12330 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12331 instead of XSYMBOL and name field.
12332 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12333 and SYMBOL_NAME instead of XSYMBOL and name field.
12334 * coding.c (Fread_coding_system, code_convert_region1)
12335 (code_convert_string1, code_convert_string_norecord)
12336 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12337 XSYMBOL and name field.
12338 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12339 (Fmake_variable_buffer_local, Fmake_local_variable)
12340 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12341 of XSYMBOL and name field.
12342 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12343 XSYMBOL and name field.
12344 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12345 instead of XSYMBOL and name field.
12346 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12347 XSYMBOL and name field.
12348 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12349 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12350 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12351 instead of XSYMBOL and name field.
12352 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12353 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12354 (parse_solitary_modifier, Fexecute_extended_command):
12355 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12356 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12357 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12358 of XSYMBOL and name field.
12359 (describe_command, describe_translation): Use SYMBOL_NAME and
12360 assignment instead of XSYMBOL and name field and XSETSTRING.
12361 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12362 instead of XSYMBOL and name field.
12363 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12364 name field and XSETSTRING.
12365 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12366 of XSYMBOL and name field.
12367 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12368 assignment instead of XSYMBOL and name field and XSETSTRING.
12369 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12370 XSTRING instead of XSYMBOL and name field.
12371 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12372 and XSTRING instead of XSYMBOL and name field.
12373 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12374 and XSTRING instead of XSYMBOL and name field.
12375 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12376 XSTRING instead of XSYMBOL and name field.
12377 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12378 of XSYMBOL and name field.
12379 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12380 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12381
123822002-05-19 Ken Raeburn <raeburn@gnu.org>
12383
12384 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12385 and XCDR real rvalues in most configurations.
12386
12387 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12388 Don't take the address of the cdr part of a cons cell; instead, track
12389 the parent cell and call XSETCDR, or set the variable for the head
12390 of the list if we haven't started down the list yet.
12391
123922002-05-19 Richard M. Stallman <rms@gnu.org>
12393
12394 * doc.c (reread_doc_file): Don't ask for confirmation.
12395
123962002-05-18 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12399 (xbm_load_image): Use it.
12400 (xbm_load): Ditto.
12401 (xbm_read_bitmap_data): Reverted to xfns.c version.
12402 From David Ponce <david@dponce.com>.
12403
124042002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12405
12406 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12407 2.02 and later.
12408
124092002-05-16 Juanma Barranquero <lektu@terra.es>
12410
12411 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12412
124132002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12414
12415 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12416 meaningful test.
12417 (read_char_minibuf_menu_prompt): Fix typo.
12418
124192002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12420
12421 * eval.c (Fcommandp): Doc fix.
12422
124232002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12424
12425 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12426 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12427 (Fset_keymap_parent): Gcpro a bit more.
12428 (access_keymap): Gcpro around meta_map call and around the main loop.
12429 (get_keyelt): Gcpro when following indirect references.
12430 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12431 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12432 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12433 Remove useless ad-hoc remap code.
12434
124352002-05-13 Richard M. Stallman <rms@gnu.org>
12436
12437 * search.c (search_buffer): Give up boyer moore search if inverse
12438 translation change charset_base.
12439
124402002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12441
12442 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12443 characters is carried over from the previous block of text, adjust
12444 coding->produced to account for the extra character.
12445
124462002-05-11 Andreas Schwab <schwab@suse.de>
12447
12448 * coding.c (intersection): Keep the elements of the returned list
12449 in the same order as in the first list.
12450
124512002-05-11 Kim F. Storm <storm@cua.dk>
12452
12453 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12454 only update cmm_size if realloc actually succeeds.
12455 Testing with initial size of 2 elements revealed that using
12456 realloc on GNU/Linux would cause a random trap in xmalloc
12457 later on, so I rewrote the code to use malloc/bcopy/free instead
12458 of realloc.
12459
124602002-05-10 Jason Rumney <jasonr@gnu.org>
12461
12462 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12463
124642002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12465
12466 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12467 parens, to ensure correct evaluation order.
12468
124692002-05-10 Kim F. Storm <storm@cua.dk>
12470
12471 * keymap.c (Vemulation_mode_map_alists): New variable.
12472 (syms_of_keymap): DEFVAR_LISP it.
12473 (current_minor_maps): Process keymap alists in that list before
12474 minor-mode-overriding-map-alist and minor-mode-map-alist.
12475
124762002-05-09 Richard M. Stallman <rms@gnu.org>
12477
12478 * search.c (Freplace_match): Doc fix.
12479
124802002-05-09 Kim F. Storm <storm@cua.dk>
12481
12482 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12483 Enlarge cursor rectangle drawn around image with non-zero relief.
12484
12485 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12486 Enlarge cursor rectangle drawn around image with non-zero relief.
12487
12488 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12489 Enlarge cursor rectangle drawn around image with non-zero relief.
12490
124912002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12492
12493 * xselect.c (lisp_data_to_selection_data): Don't set selection
12494 type if comes from the Lisp object's car. If the selection
12495 contains a pure ASCII text, always return QSTRING as its type.
12496
124972002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12498
12499 * mac.c (mac-cut-function): Doc fix.
12500
125012002-05-05 Richard M. Stallman <rms@gnu.org>
12502
12503 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12504
125052002-05-04 Jason Rumney <jasonr@gnu.org>
12506
12507 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12508 for event-click-count.
12509
12510 * process.c (init_process): Only add server subfeature if we can
12511 use non-blocking I/O.
12512
125132002-05-04 Andrew Choi <akochoi@shaw.ca>
12514
12515 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12516 repeatedly.
12517
125182002-05-03 Jason Rumney <jasonr@gnu.org>
12519
12520 * process.c (Fmake_network_process): Only support server sockets
12521 when we can make them non-blocking.
12522
12523 * s/ms-w32.h (HAVE_SELECT): Define.
12524
12525 * w32.h (FILE_NDELAY): New flag.
12526
12527 * w32.c (sys_getpeername, fcntl): New functions.
12528 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12529
12530 * w32proc.c: include sys/file.h.
12531
125322002-05-03 Colin Walters <walters@verbum.org>
12533
12534 * callproc.c (Vgame_score_directory): Renamed to
12535 Vshared_game_score_directory.
12536
125372002-04-30 Richard M. Stallman <rms@gnu.org>
12538
12539 * s/gnu.h [emacs]: Include stdio.h.
12540 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12541
12542 * eval.c (do_autoload): Error if called while preparing to dump.
12543
12544 * fns.c (Frequire): Error if need to load while preparing to dump.
12545
125462002-04-28 Colin Walters <walters@verbum.org>
12547
12548 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12549 Default to "~/.emacs.d/games".
12550
125512002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12552
12553 * lread.c (openp): Change arg exec_only to predicate.
12554 (build_load_history): Use XCAR/XCDR.
12555 (Flocate_file_internal): New fun.
12556 (syms_of_lread): Defsubr it.
12557 (Fload): Update call to openp.
12558
12559 * lisp.h (openp): Update prototype.
12560
12561 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
12562 * w32proc.c (sys_spawnve):
12563 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
12564 * w32.c (check_windows_init_file):
12565 * sound.c (Fplay_sound_internal):
12566 * process.c (Fstart_process):
12567 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
12568 * mac.c (run_mac_command):
12569 * emacs.c (init_cmdargs):
12570 * callproc.c (Fcall_process): Update call to openp.
12571
12572 * textprop.c (remove_properties): Don't use XCAR without CONSP.
12573
12574 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
12575
125762002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12577
12578 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
12579 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
12580
125812002-04-28 Richard M. Stallman <rms@gnu.org>
12582
12583 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
12584
12585 * eval.c (Fcommandp): New arg for_call_interactively.
12586 * lisp.h (Fcommandp): Declare new arg.
12587
125882002-04-28 Jason Rumney <jasonr@gnu.org>
12589
12590 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
12591
12592 * w32.c (stat, fstat): Use file index information to generate
12593 inodes for directories where available.
12594
125952002-04-26 Andrew Choi <akochoi@shaw.ca>
12596
12597 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
12598 [HAVE_CARBON]: Include Mac object files.
12599
12600 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
12601 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
12602 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
12603 MAC_OSX, and MAC_OS instead of macintosh.
12604
12605 * editfns.c [MAC_OS8]: Include stdio.h.
12606
12607 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
12608
12609 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
12610 Apple Monaco.
12611
78819ebb 12612 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
12613 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
12614 calling select.
12615
12616 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
12617
12618 * tparam.c [MAC_OSX]: Don't define BC and UP.
12619
12620 * config.in [HAVE_CARBON]: Add.
12621
12622 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
12623 Move here from mac/src and mac/inc.
12624
12625 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
12626
126272002-04-26 Gerd Moellmann <gerd@gnu.org>
12628
12629 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
12630 Compute phys_cursor_width from the x position returned
12631 by x_draw_glyhs, which is cheaper.
12632 (x_display_and_set_cursor): Compute the buffer-local value
12633 of `cursor-in-non-selected-windows' only when needed.
12634
126352002-04-25 Gerd Moellmann <gerd@gnu.org>
12636
12637 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
12638 cursor on a stretch glyph has a width that depends on
12639 x_stretch_cursor_p.
12640
126412002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12642
12643 * abbrev.c (abbrev-start-location): Doc fix.
12644
12645 * indent.c (Fvertical_motion): Fix last change.
12646
126472002-04-25 Gerd Moellmann <gerd@gnu.org>
12648
12649 * indent.c (Fvertical_motion): Move to the start of the line
12650 containing PT before moving up or down.
12651
126522002-04-24 Gerd Moellmann <gerd@gnu.org>
12653
12654 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
12655 case of writing a whole row, more or less analogous to the case of
12656 writing only parts of a row.
12657
12658 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
12659 0 for NO_CURSOR.
12660
12661 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
12662
126632002-04-23 Colin Walters <walters@verbum.org>
12664
12665 * buffer.c (syms_of_buffer): Doc fix.
12666
126672002-04-23 Gerd Moellmann <gerd@gnu.org>
12668
12669 * xterm.c (notice_overwritten_cursor): Handle the special case
12670 of the cursor being in the first blank non-text line at the
12671 end of a window.
12672
12673 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12674 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12675 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
12676 bar cursors only, to make phys_cursor_width contain what its name
12677 suggests.
12678 (notice_overwritten_cursor): Consider the cursor image erased if
12679 the output area intersects the cursor image in y-direction.
12680
126812002-04-23 Simon Marshall <simon@gnu.org>
12682
12683 * xfns.c (x_set_mouse_color): Change default for cross_cursor
12684 to XC_hand2.
12685
126862002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12687
12688 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
12689
126902002-04-22 Kim F. Storm <storm@cua.dk>
12691
12692 * textprop.c (remove_properties): Fixed trap for malformed plist.
12693
126942002-04-22 Richard M. Stallman <rms@gnu.org>
12695
12696 * cmds.c (Fend_of_line): Handle intangible text in mid line.
12697
12698 * window.c (make_window): Initialize height_fixed_p,
12699 last_cursor_off_p, and p->cursor_off_p slots.
12700
127012002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12702
12703 * fns.c (use-dialog-box): Doc fix.
12704
127052002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12706
12707 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
12708 variables `row', `i' and `area'.
12709 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
12710 toolkit library.
12711
127122002-04-19 Stefan Monnier <monnier@cs.yale.edu>
12713
12714 * xfaces.c (clear_font_table): Don't free the default font of
12715 a frame even if it's on another display.
12716 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
12717 that could be Qt.
12718
127192002-04-19 Juanma Barranquero <lektu@terra.es>
12720
12721 * indent.c (Fmove_to_column): Remove unused local variable
12722 `next_boundary_byte'.
12723 (current_column_1): Likewise.
12724
127252002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
12726
12727 * msdos.c (Qhbar): New variable.
12728 (syms_of_msdos): Intern and staticpro it.
12729 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
12730 cursor type.
12731
127322002-04-19 Dave Lambert <dlambert@acm.org>
12733
12734 Theses change implement an underscore-like (`hbar') cursor.
12735
12736 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12737
12738 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
12739 Handle the `hbar' cursor type.
12740 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12741
12742 * xfns.c (Qhbar): New variable.
12743 (syms_of_xfns): Intern and staticpro it.
12744 (x_specified_cursor_type): Handle `hbar' cursor.
12745
12746 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
12747 not defined.
12748
127492002-04-18 Richard M. Stallman <rms@gnu.org>
12750
12751 * textprop.c (remove_properties): New arg LIST allows scanning
12752 either a list or a plist.
12753 (interval_has_some_properties_list): New function, like
12754 interval_has_some_properties using list instead of plist.
12755 All callers changed.
12756 (Fremove_list_of_text_properties): New function.
12757 (syms_of_textprop): Defsubr it.
12758
127592002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12760
12761 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
12762
127632002-04-17 Juanma Barranquero <lektu@terra.es>
12764
12765 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
12766
127672002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12768
12769 * window.c (coordinates_in_window): Don't report on margin area
12770 if its width is zero.
12771
127722002-04-16 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32fns.c (Fx_file_dialog): Decode file name before using.
12775
12776 * w32term.c (construct_drag_n_drop): Likewise.
12777
127782002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
12779
12780 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
12781 store load-history in pure space.
12782
12783 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
12784
127852002-04-16 Stefan Monnier <monnier@cs.yale.edu>
12786
12787 * xterm.c (Qlatin_1, Qutf_8): New vars.
12788 (syms_of_xterm): Initialize them.
12789 (XTread_socket): Eliminate incorrect optimization that tried to avoid
12790 decoding the output of X*LookupString.
12791 Always use latin-1 to decode the output of XLookupString.
12792 Try Xutf8LookupString if XmbLookupString failed.
12793
12794 * region-cache.c (new_region_cache): Use BEG.
12795
127962002-04-16 Gerd Moellmann <gerd@gnu.org>
12797
12798 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
12799 configuration files.
12800 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
12801 returns 0.
12802
128032002-04-15 Andreas Schwab <schwab@suse.de>
12804
12805 * config.in: Regenerated using autoheader.
12806
12807 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
12808 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
12809 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
12810 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
12811 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
12812 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
12813 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
12814 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
12815 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
12816 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
12817 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
12818 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
12819 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
12820 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
12821 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
12822 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
12823 STACK_DIRECTION, now set by autoconf.
12824
128252002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12826
12827 * dispnew.c (marginal_area_string): Sort arguments.
12828
12829 * dispextern.h (marginal_area_string): Add prototype.
12830
128312002-04-13 Richard M. Stallman <rms@gnu.org>
12832
12833 * fileio.c (Finsert_file_contents):
12834 Don't call temp_output_buffer_setup--do just part, by hand.
12835
12836 * coding.c (run_pre_post_conversion_on_str):
12837 Don't call temp_output_buffer_setup--do just part, by hand.
12838
12839 * keyboard.c (command_loop_1): Don't call start_hourglass
12840 or cancel_hourglass when executing a macro.
12841
12842 * marker.c (count_markers): New function.
12843
12844 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
12845 grow without limit. Move recently used elements to the front.
12846
128472002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12848
12849 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
12850
128512002-04-12 Gerd Moellmann <gerd@gnu.org>
12852
12853 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
12854 rows marginal areas.
12855 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
12856 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12857
12858 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
12859
128602002-04-12 Dave Love <fx@gnu.org>
12861
12862 * dispnew.c (marginal_area_string): New.
12863
12864 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
12865 (Qleft_margin, Qright_margin): Declare.
12866 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
12867
12868 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
12869 note_mode_line_highlight and extended.
12870
12871 * keyboard.c (Qleft_margin, Qright_margin): Declare.
12872 (make_lispy_event): Deal with mouse events in margins.
12873
128742002-04-12 Stefan Monnier <monnier@cs.yale.edu>
12875
12876 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
12877
12878 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
12879 than deactivating the mark if tmm is set to `lambda'.
12880 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
12881 Use a single event for HELP_EVENT.
12882 (Fexecute_extended_command): Save last_point_position.
12883
128842002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12885
12886 * lisp.h (Fpropertize): Add prototype.
12887
12888 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
12889
128902002-04-10 Colin Walters <walters@verbum.org>
12891
12892 * config.in: Add HAVE_SHARED_GAME_DIR.
12893
12894 * callproc.c: (Vgame_score_directory): New variable.
12895 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
12896
128972002-04-10 Richard M. Stallman <rms@gnu.org>
12898
12899 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
12900
129012002-04-09 Stefan Monnier <monnier@cs.yale.edu>
12902
12903 * minibuf.c (read_minibuf): Use empty_string.
12904 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
12905 Short-circuit the search as soon as it "failed".
12906 (Fall_completions): Allow lambda forms and lists of strings for alist.
12907 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
12908 when require_match is nil.
12909 (Ftest_completion): Rename from `test_completion' and export to elisp.
12910 Call the predicate also when alist is a list.
12911 Obey Vcompletion_regexp_list.
12912 (do_completion, Fminibuffer_complete_and_exit): Use it.
12913 (Fassoc_string): Rename from `assoc_for_completion'.
12914 Allow list of strings as well and export to elisp.
12915
129162002-04-08 Stefan Monnier <monnier@cs.yale.edu>
12917
12918 * puresize.h (BASE_PURESIZE): Increase to 900KB.
12919
129202002-04-08 Juanma Barranquero <lektu@terra.es>
12921
12922 * w32.c (sys_accept): Don't hide variable `s'.
12923
129242002-04-05 Gerd Moellmann <gerd@gnu.org>
12925
12926 * callint.c (Fcall_interactively): Use INTEGERP instead of
12927 NUMBERP for checking Vhistory_length.
12928
129292002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12930
12931 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
12932 Doc fix to reflect it.
12933
129342002-04-04 Richard M. Stallman <rms@gnu.org>
12935
12936 * xdisp.c (display_mode_element): New arg RISKY.
12937 Disregard text props found or specified within a variable
12938 that isn't marked risky-local-variable.
12939 (Qrisky_local_variable): New variable.
12940 (syms_of_xdisp): Init and staticpro it.
12941
129422002-04-04 Stefan Monnier <monnier@cs.yale.edu>
12943
12944 * undo.c (record_point): New fun.
12945 (record_delete, record_insert): Use it.
12946
129472002-04-03 Juanma Barranquero <lektu@terra.es>
12948
12949 * doc.c (Fdocumentation): Add missing parentheses.
12950 (Fdocumentation_property): Likewise.
12951
129522002-04-03 Stefan Monnier <monnier@cs.yale.edu>
12953
12954 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
12955 data is 0, just return nil.
12956
129572002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
12958
12959 * msdos.c (syms_of_msdos): Fix last change with
12960 mouse_autoselect_window.
12961
129622002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12963
12964 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
12965 mouse_autoselect_window.
12966
129672002-04-02 Stefan Monnier <monnier@cs.yale.edu>
12968
12969 * keyboard.c (make_lispy_event): Handle unknown keysyms together
12970 with system-specific keysyms. Use it also for unknown function keys.
12971
12972 * doc.c (reread_doc_file): Return whether reload was attempted.
12973 (Fdocumentation, Fdocumentation_property): Don't try to reload
12974 if the doc is 0 and only ask once.
12975
12976 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
12977
129782002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
12979
12980 * keyboard.c (read_char): If the event was Qselect_window,
12981 restore timer_idleness_start_time to its previous value.
12982
12983 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
12984
129852002-04-01 Stefan Monnier <monnier@cs.yale.edu>
12986
12987 * region-cache.c (new_region_cache): Use BEG.
12988
12989 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
12990 Use BEG and BEG_BYTE.
12991
12992 * doc.c (get_doc_string): Return nil if the location is wrong.
12993 (reread_doc_file): New fun.
12994 (Fdocumentation, Fdocumentation_property):
12995 Call it if get_doc_string fails.
12996 (Fsnarf_documentation): Make it work for a dumped Emacs.
12997
12998 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
12999 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13000
13001 * charset.c (Fstring): Allow 0 arguments.
13002
13003 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13004
13005 * process.c (DATAGRAM_CONN_P, list_processes_1)
13006 (Fprocess_datagram_address, Fset_process_datagram_address)
13007 (Fset_network_process_options, server_accept_connection):
13008 Fix some int/Lisp_Object confusions (thank you union types).
13009
130102002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13011
13012 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13013
13014 * w32term.c: Likewise.
13015 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13016
13017 * keyboard.c (Qselect_window): New symbol.
13018 (head_table): Use it.
13019 (keys_of_keyboard): Bound select-window event to handle-select-window.
13020 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13021
13022 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13023 (last_window): New variable.
13024 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13025 (note_mouse_movement): Remove reimplemented code in #if 0.
13026 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13027 Emacs windows.
13028
13029 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13030
130312002-03-31 Gerd Moellmann <gerd@gnu.org>
13032
13033 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13034 Callers changed.
13035
130362002-03-30 Richard M. Stallman <rms@gnu.org>
13037
13038 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13039 loop whenever it stops making progress.
13040
13041 * widget.c (set_frame_size): Don't call change_frame_size.
13042
130432002-03-30 Gerd Moellmann <gerd@gnu.org>
13044
13045 * dispnew.c (direct_output_for_insert):
13046 Call mark_window_display_accurate.
13047
130482002-03-29 Jason Rumney <jasonr@gnu.org>
13049
13050 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13051
130522002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13053
13054 * Makefile.in (lread.o): Depend on coding.h.
13055
13056 * lread.c (openp, Fload): Encode the file name before passing it
13057 to `stat', `access', and `emacs_open'.
13058 (openp): GCPRO the encoded file name. Don't recompute Lisp
13059 strings unnecessarily.
13060
130612002-03-29 Kim F. Storm <storm@cua.dk>
13062
13063 * fns.c (Flax_plist_put): Doc fix.
13064
130652002-03-28 Miles Bader <miles@gnu.org>
13066
13067 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13068
130692002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13070
13071 * process.c (set-network-process-options): Add usage.
13072 (make-network-process): Doc fix.
13073
130742002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13075
13076 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13077
130782002-03-26 Richard M. Stallman <rms@gnu.org>
13079
13080 * fns.c (Fsubstring_no_properties): New function.
13081 (Flax_plist_get, Flax_plist_put): New functions.
13082 (syms_of_fns): defsubr them.
13083
13084 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13085 don't test or alter w->update_mode_line.
13086
13087 * window.c (Fdisplay_buffer): Doc fix.
13088
130892002-03-24 Richard M. Stallman <rms@gnu.org>
13090
13091 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13092
130932002-03-24 Gerd Moellmann <gerd@gnu.org>
13094
13095 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13096 (Fdefmacro): Handle `(declare ...)'.
13097 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13098 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13099
131002002-03-24 Jason Rumney <jasonr@gnu.org>
13101
13102 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13103 (xbm_file_p): Add prototypes.
13104 (xbm_format, xbm_image_p): Sync with xfns.c.
13105 (reflect_byte): New function.
13106 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13107 (xbm_load_image): Create bitmaps with a depth of 1.
13108 (init_xfns): Enable XBM images.
13109
131102002-03-23 Jason Rumney <jasonr@gnu.org>
13111
13112 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13113 correctly. Do not pass up_modifier to keyboard buffer.
13114
13115 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13116
131172002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13118
13119 * Makefile.in (bootstrapclean): New target.
13120 (bootstrap-temacs, bootstrap-doc): Remove.
13121 (bootstrap-emacs): Use a bog-standard `temacs'.
13122 Don't bother to build a DOC file.
13123
13124 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13125
13126 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13127 in temacs even if !CANNOT_DUMP.
13128 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13129
13130 * alloc.c (check_pure_size): Only output a warning.
13131
131322002-03-22 Jason Rumney <jasonr@gnu.org>
13133
13134 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13135 supported.
13136
13137 * w32term.c (zv_bits): Declare as short, for word alignment.
13138 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13139 (syms_of_w32term): Define x-use-underline-position-properties.
13140
13141 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13142 (clear_image_cache): Block input, fix logic, clear matrices in
13143 all frames that share this cache.
13144
131452002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13146
13147 * emacs.c (main): Update the Copyright year in the blurb printed
13148 by "emacs --version".
13149
13150 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13151
13152 * xterm.c (XTread_socket): If XK_ISO_Lock and
13153 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13154 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13155
131562002-03-21 Kim F. Storm <storm@cua.dk>
13157
13158 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13159 menu-bar bindings in keymap and local-map properties _are_ used.
13160 But try keymap property first in accordance with 2002-01-03 patch.
13161 Added comment describing why this is not always reliable.
13162 (tool_bar_items): Ditto for tool-bar.
13163
131642002-03-21 Jason Rumney <jasonr@gnu.org>
13165
13166 * w32fns.c (x_clear_image_1): Disable color table code.
13167
131682002-03-21 Kim F. Storm <storm@cua.dk>
13169
13170 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13171 removed the wrong version of the DEFUN macro; fixed it.
13172
13173 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13174 Fmember rather than Fmemq).
13175 (Fprovide): Check that subfeatures is a list.
13176
13177 * process.c (QCfeature, QCdatagram): Removed variables.
13178 (QCtype, Qdatagram): New variables.
13179 (network_process_featurep): Removed function.
13180 (Fmake_network_process): Removed :feature check.
13181 Use :type 'datagram instead of :datagram t to create a datagram
13182 socket. This allows us to add other connection types (e.g. raw
13183 sockets) later in a consistent manner.
13184 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13185 supported subfeatures for feature make-network-process.
13186 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13187 Intern and staticpro QCtype and Qdatagram.
13188 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13189
13190 * xfns.c: (QCtype): Remove duplicate declaration and
13191 initialization (is now declared in process.c).
13192
13193 * w32fns.c: (QCtype): Remove duplicate declaration and
13194 initialization (is now declared in process.c).
13195
131962002-03-21 Richard M. Stallman <rms@gnu.org>
13197
13198 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13199 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13200 when jumping to `fail' to avoid undoing reg changes in the
13201 last iteration of the loop.
13202 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13203
13204 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13205 Depend on process.h.
13206
132072002-03-20 Jason Rumney <jasonr@gnu.org>
13208
13209 Most of the following changes are still conditional on HAVE_IMAGES
13210 which is not set by default on Windows.
13211
13212 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13213
13214 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13215 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13216 (four_corners_best, x_clear_image_1, x_clear_image)
13217 (x_alloc_image_color, postprocess_image)
13218 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13219 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13220 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13221
13222 * w32gui.h (struct XImage): Define.
13223
13224 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13225 extract mouse co-ordinates.
13226
132272002-03-20 Jason Rumney <jasonr@gnu.org>
13228
13229 * w32.c (init_winsock): Dynamically load new server and UDP
13230 socket functions.
13231 (socket_to_fd): New function.
13232 (sys_socket): Use it.
13233 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13234 (sys_recvfrom, sys_sendto): New wrapper functions.
13235
13236 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13237 and initialization.
13238
13239 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13240
132412002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13242
13243 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13244 Don't use "sun" as a variable, it's a predefined constant on Sun
13245 machines.
13246
132472002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13248
13249 * bytecode.c (Fbyte_code): Revert last change.
13250
132512002-03-19 Kim F. Storm <storm@cua.dk>
13252
13253 * makefile.w32-in (LIBS): Add $(WSOCK32).
13254 From David Ponce <dponce@voila.fr>.
13255
132562002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13257
13258 * process.c (wait_reading_process_input): Move variables `pname'
13259 and `pnamelen' down where they are used.
13260
13261 * bytecode.c (Fbyte_code): Discard unused computed value to
13262 prevent gcc warning.
13263
13264 * lisp.h (Fplist_member): Add prototype.
13265
132662002-03-18 Kim F. Storm <storm@cua.dk>
13267
13268 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13269 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13270
13271 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13272 Remove explicit GNU_LINUX settings for datagram support.
13273
132742002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13275
13276 * process.c (Fmake_network_process): Remove unused variable `sa'.
13277 Doc fix. Add usage:.
13278 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13279
132802002-03-17 Richard M. Stallman <rms@gnu.org>
13281
13282 * xdisp.c (cursor_type_changed): New variable.
13283 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13284 Clear it when clearing windows_or_buffers_changed.
13285 (try_cursor_movement, redisplay_window, try_window_id)
13286 (try_window_reusing_current_matrix): Test cursor_type_changed
13287 along with windows_or_buffers_changed.
13288
13289 * window.h (cursor_type_changed): New variable.
13290
13291 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13292 not update_mode_lines, and always set it to 1.
13293
13294 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13295 if no frames needed redrawing.
13296
132972002-03-17 Kim F. Storm <storm@cua.dk>
13298
13299 The following changes add support for network server processes,
13300 datagram connections, and local (unix) sockets.
13301
13302 * process.h (struct Lisp_Process): New member log.
13303 Doc fix: Member command used to indicate stopped network process.
13304 Doc fix: Member childp contains plist for network process.
13305 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13306
13307 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13308 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13309 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13310 New variables.
13311 (NETCONN1_P): New macro.
13312 (DATAGRAM_SOCKETS): New conditional symbol.
13313 (datagram_address): New array.
13314 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13315 (status_message): Use concat3.
13316 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13317 for a stopped network process.
13318 (Fset_process_buffer): Update contact plist for network process.
13319 (Fset_process_filter): Ditto. Don't enable input for stopped
13320 network processes. Server must listen, even if filter is t.
13321 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13322 New functions.
13323 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13324 (Fprocess_contact): Added KEY argument. Handle datagrams.
13325 (list_processes_1): Optionally show only processes with the query
13326 on exit flag set. Dynamically adjust column widths. Omit tty
13327 column if not needed. Report stopped network processes.
13328 Identify server and datagram network processes.
13329 (Flist_processes): New optional arg `query-only'.
13330 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13331 (conv_lisp_to_sockaddr, set_socket_options)
13332 (network_process_featurep, unwind_request_sigio): New helper functions.
13333 (Fprocess_datagram_address, Fset_process_datagram_address):
13334 (Fset_network_process_options): New lisp functions.
13335 (Fopen_network_stream): Removed. Now defined in simple.el.
13336 (Fmake_network_process): New lisp function. Code is based on previous
13337 Fopen_network_stream, but heavily reworked with new property list based
13338 argument list, support for datagrams, server processes, and local
13339 sockets in addition to old client-only functionality.
13340 (server_accept_connection): New function.
13341 (wait_reading_process_input): Use it to handle incoming connects.
13342 Do not enable input on a new connection if process is stopped.
f63fd14e 13343 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
13344 (send_process): Handle datagram sockets.
13345 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13346 network process is indicated by setting command field to t .
13347 (Fprocess_send_eof): No-op if datagram connection.
13348 (Fstatus_notify): Don't read input for a stream server socket or a
13349 stopped network process.
13350 (init_process): Initialize datagram_address array.
13351 (syms_of_process): Intern and staticpro new variables, defsubr new
13352 functions.
13353
133542002-03-16 Jason Rumney <jasonr@gnu.org>
13355
13356 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13357 startup case.
13358
133592002-03-16 Richard M. Stallman <rms@gnu.org>
13360
13361 * xdisp.c (redisplay_internal, redisplay_windows):
13362 Use list_of_error to call internal_condition_case_1.
13363 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13364 so as to catch all errors with no possibility of debugger redisplay.
13365 (list_of_error): New variable.
13366 (syms_of_xdisp): Init and staticpro it.
13367
13368 * print.c (print_object): Delete `\ ' from printed rep of frame.
13369
133702002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13371
13372 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13373 until its implementation is fixed.
13374
133752002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13376
13377 * xfns.c (png_load): Remove unused variable `gamma_str'.
13378
133792002-03-14 Richard M. Stallman <rms@gnu.org>
13380
13381 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13382
133832002-03-14 Miles Bader <miles@gnu.org>
13384
13385 * intervals.c (adjust_for_invis_intang): New function.
13386 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13387 work for dealing with invisible+intangible regions. Do so before
13388 and after both forward and backward movements, to handle both
13389 front-sticky and rear-sticky cases.
13390 * textprop.c (text_property_stickiness): Function moved here from
13391 `editfns.c'.
13392 * intervals.h (text_property_stickiness): New declaration.
13393 * editfns.c (char_property_eq): Function removed.
13394 (text_property_stickiness): Function moved to `textprop.c'.
13395
133962002-03-13 Jason Rumney <jasonr@gnu.org>
13397
13398 * config.in: Add STRFTIME_NO_POSIX2.
13399
13400 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13401 and %OX when underlying strftime does not.
13402
134032002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13404
13405 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13406 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13407 line) to avoid annoying flicker.
13408 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13409 (XTread_socket): Mark it static.
13410
13411 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13412
134132002-03-13 Kim F. Storm <storm@cua.dk>
13414
13415 * puresize.h (BASE_PURESIZE): Increase to 775000.
13416
134172002-03-12 Juanma Barranquero <lektu@terra.es>
13418
13419 * editfns.c (syms_of_editfns): Fix typo.
13420
134212002-03-12 Gerd Moellmann <gerd@gnu.org>
13422
13423 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13424 Include termopt.h for interrupt_input.
13425
134262002-03-11 Andreas Schwab <schwab@suse.de>
13427
13428 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13429
134302002-03-11 Gerd Moellmann <gerd@gnu.org>
13431
13432 * xterm.c (note_mouse_movement): Put code for
13433 x_autoselect_window_p in #if 0.
13434
13435 * lread.c (Fload): Don't assume that message_with_string uses the
13436 string it is given like a C string.
13437
134382002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13439
78819ebb 13440 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
13441
13442 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13443 x_session_have_connection.
13444 (x_initialize): Add call to x_session_initialize.
13445
13446 * termhooks.h (enum event_kind): Add save_session_event.
13447
13448 * keyboard.c: Add Emacs event save_session_event.
13449
13450 * emacs.c (main): Add call to syms_of_xsmfns.
13451
78819ebb 13452 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
13453
13454 * config.in: Add HAVE_X_SM.
13455
13456 * Makefile.in (LIBXT): Add -lSM -lICE
13457 if HAVE_X_SM and not USE_X_TOOLKIT.
13458 (XOBJ): New file xsmfns.c added.
13459
13460 * xsmfns.c: New file for X session management.
13461
134622002-03-09 Jason Rumney <jasonr@gnu.org>
13463
13464 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13465 read-only when setting modified time.
13466
134672002-03-08 Gerd Moellmann <gerd@gnu.org>
13468
13469 * xdisp.c (move_it_vertically_backward): At the end of the function,
13470 when moving forward by lines, treat terminal frames specially.
13471
13472 * keyboard.c (echo_char): Make sure to add a separator between
13473 keys even if echo_dash hasn't been called.
13474
13475 * xdisp.c: Use new string macros.
13476 (update_echo_area): Pass number of bytes to message3 instead of
13477 number of chars.
13478 (set_message_1): Don't access a string's size_byte directly.
13479 (decode_mode_spec_coding): Use number of bytes of eoltype string
13480 instead number of chars.
13481
13482 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13483
134842002-03-08 Juanma Barranquero <lektu@terra.es>
13485
13486 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13487 24-bit.
13488
134892002-03-06 Jason Rumney <jasonr@gnu.org>
13490
13491 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13492
134932002-03-06 Gerd Moellmann <gerd@gnu.org>
13494
13495 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13496 (cancel_echoing, echo_length, echo_truncate): Changed to
13497 work with new kboard definition.
13498 (echo_now): Use message3_nolog instead of message2_nolog.
13499
13500 * alloc.c (mark_kboards): Mark echo_string.
13501
13502 * keyboard.h (ECHOBUFSIZE): Removed.
13503 (struct kboard): Member echoptr removed, member echobuf renamed
13504 to echo_string.
13505
13506 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13507 message3 instead of message2 to display the message using STRING's
13508 text properties.
13509
135102002-03-05 Andreas Schwab <schwab@suse.de>
13511
13512 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13513
135142002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13515
13516 * frame.c (default-frame-alist): Explain that setting it doesn't
13517 affect existing frames.
13518
135192002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13520
13521 * indent.c (skip_invisible): Fix my brain fart.
13522
13523 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13524
135252002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13526
13527 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13528 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13529 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13530 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13531 and variables to use EMACS_INT instead of just int.
13532
13533 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13534
135352002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13536
13537 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13538 environment, pass it down with corrected value.
13539
135402002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13541
13542 * lread.c (read_filtered_event): Do not call start_hourglass
13543 before returning.
13544
135452002-03-04 Juanma Barranquero <lektu@terra.es>
13546
13547 * w32term.c (x_display_and_set_cursor): Fix typo.
13548
135492002-03-03 Richard M. Stallman <rms@gnu.org>
13550
13551 * fileio.c (Fmake_temp_name): Doc fix.
13552
135532002-03-03 Gary Wong <gtw@gnu.org>
13554
13555 * termcap.c [!emacs]: Replace ospeed for building standalone
13556 libtermcap, for binary compatibility.
13557
13558 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
13559
135602002-03-03 Richard M. Stallman <rms@gnu.org>
13561
13562 * xrdb.c (file_p): Rename arg `path' to `filename'.
13563
13564 * abbrev.c (Fexpand_abbrev): Increment plist as use count
13565 only if it is an integer.
13566
13567 * xfns.c (png_load): Set screen_gamma based on f->gamma.
13568 If png_get_sRGB gives an answer, call png_set_gamma
13569 using the default image gamma value.
13570
13571 * lread.c (read1): When reading from a file, default string to
13572 multibyte only if it has some multibyte characters.
13573
13574 * print.c (print_object): Output multibyte chars 128...255
13575 using \x even if ! print_escape_multibyte.
13576
13577 * xdisp.c (display_mode_element): Move the places where
13578 bytepos, charpos, this, and lisp_string are set.
13579 Use lisp_string to set bytepos.
13580
13581 * xdisp.c (redisplay_internal):
13582 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
13583
13584 * xdisp.c (display_mode_element): Merge properties specified with
13585 :propertize onto those that come with the string.
13586
135872002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
13588
13589 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
13590 automatic-hscrolling. Users changed.
13591 <hscroll-margin>: Renamed from automatic-hscroll-margin.
13592 Users changed.
13593 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
13594
135952002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13596
13597 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
13598
135992002-03-02 Kim F. Storm <storm@cua.dk>
13600
13601 * window.c (Fminibuffer_selected_window): New function.
13602 (syms_of_window): Defsubr it.
13603
136042002-03-01 Kim F. Storm <storm@cua.dk>
13605
13606 * window.h (struct window): New member phys_cursor_width.
13607
13608 * window.c (make_window, replace_window): Init phys_cursor_width.
13609
13610 * xterm.c (x_display_and_set_cursor): Blink box cursor using
13611 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13612
13613 * w32term.c (x_display_and_set_cursor): Blink box cursor using
13614 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13615
13616 * lisp.h (GCPRO6): New macro.
13617
13618 * process.c (Fopen_network_stream): Use GCPRO6.
13619
136202002-03-01 Kim F. Storm <storm@cua.dk>
13621
13622 * process.c (Qconnect, Qfailed): New variables.
13623 (syms_of_process): Intern and staticpro them.
13624 (Fprocess_status): Document connect and failed return values.
13625 [NON_BLOCKING_CONNECT]: New conditional.
13626 (connect_wait_mask, num_pending_connects): New variables.
13627 (status_message): Convert Qfailed status.
13628 (Fopen_network_stream): Added support for non-blocking connect.
13629 New optional args: filter, sentinel, non_blocking. Doc updated.
13630 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
13631 (deactivate_process): Handle pending non-blocking connect.
13632 (wait_reading_process_input): Poll for status of non-blocking
13633 connects. Exec sentinel directly when connect succeeds.
13634 (status_notify): Don't read process output if not yet connected.
13635
136362002-02-28 Kim F. Storm <storm@cua.dk>
13637
13638 * window.c: (minibuf_selected_window): Renamed from
13639 Vminibuf_selected_window. Users changed.
13640 (syms_of_window): Staticpro it.
13641
136422002-02-26 Kim F. Storm <storm@cua.dk>
13643
13644 The following changes add a new Vminibuf_selected_window variable
13645 which is similar to Vminibuf_scroll_window, but which is only set
13646 on entry to the minibuffer (from a non-minibuffer window):
13647
13648 * window.c: (Vminibuf_selected_window): New variable.
13649 (struct save_window_data): New member minibuf_selected_window.
13650 (Fset_window_configuration): Restore Vminibuf_selected_window.
13651 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
13652 Set minibuf_scroll_window member to nil if minibuf_level is 0.
13653 (compare_window_configurations): Compare minibuf_selected_window.
13654
13655 * window.h: (Vminibuf_selected_window): Declare extern.
13656
13657 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
13658 entry to minibuffer or on entry from a non-minibuffer window.
13659
13660 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
13661 Vminibuf_selected_window instead of Vminibuf_scroll_window.
13662
13663 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
13664 instead of Vminibuf_scroll_window when deciding in which window
13665 the region should be highlighted. Consequently, the region remains
13666 highlighteded even when a completion buffer is also displayed.
13667
136682002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
13669
13670 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
13671
13672 * xselect.c (Qcompound_text_with_extensions): Renamed from
13673 Qcompound_text_no_extensions.
13674 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
13675
136762002-02-26 Juanma Barranquero <lektu@terra.es>
13677
13678 * w32proc.c (syms_of_ntproc): Doc fix.
13679
136802002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13681
13682 * intervals.h: Include "dispextern.h" unconditionally.
13683
136842002-02-24 Jason Rumney <jasonr@gnu.org>
13685
13686 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
13687 and disp-table.elc.
13688 (lisp): Add emacs-lisp/backquote.elc.
13689
136902002-02-24 Kim F. Storm <storm@cua.dk>
13691
13692 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
13693 The validation of the event type was too strict as it didn't
13694 allow string events; buffer names are used in bindings for
13695 menu-bar-select-buffer (see `menu-bar-update-buffers').
13696
136972002-02-23 Kim F. Storm <storm@cua.dk>
13698
13699 The following changes rework my patch of 2002-02-06 which
13700 added command remapping by entering the commands directly into
13701 the keymaps. Now, command remapping uses an explicit `remap'
13702 prefix in the keymaps, i.e. [remap COMMAND].
13703
13704 * keymap.c (Qremap, remap_command_vector): New variables.
13705 (is_command_symbol): Removed function.
13706 (Fdefine_key): No longer accept a symbol for KEY.
13707 Added validation of [remap COMMAND] argument for KEY.
13708 The DEF is no longer required to be a symbol when remapping a command.
13709 (Fremap_command): New function to remap command through keymaps.
13710 (Flookup_key): Perform command remapping initiated by
13711 Fremap_command directly for speed.
13712 (Fkey_binding): Use Fremap_command for command remapping.
13713 (where_is_internal): Handle new command remapping representation.
13714 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
13715 staticpro them. Defsubr Fremap_command.
13716
13717 * keymap.h (Fremap_command): Declare extern.
13718 (is_command_symbol): Remove extern.
13719
13720 * keyboard.c (command_loop_1): Use Fremap_command for command
13721 remapping; now try command remapping for all symbols.
13722
137232002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13724
13725 * coding.h (run_pre_post_conversion_on_str): Add prototype.
13726
137272002-02-23 Jason Rumney <jasonr@gnu.org>
13728
13729 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
13730 on the string before encoding it.
13731 (Fw32_get_clipboard_data): Run post-read-conversion on the string
13732 after decoding it.
13733
13734 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
13735
137362002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13737
13738 * w32term.c (enter_timestamp): Remove unused static variable to
13739 prevent warning.
13740
13741 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
13742
137432002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13744
13745 * w16select.c (Fw16_get_clipboard_data): Fix last change.
13746
13747 * xselect.c (selection_data_to_lisp_data): Fix last change.
13748
137492002-02-22 Jason Rumney <jasonr@gnu.org>
13750
13751 * w32term.h (struct w32_output): New member menu_command_in_progress.
13752
13753 * w32menu.c (menubar_selection_callback): Free the menu and
13754 clear the menu_command_in_progress flag.
13755
13756 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
13757 (menu_free_timer): New variable.
13758 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
13759 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
13760 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
13761 menu command is in progress.
13762 <WM_COMMAND>: Set the menu_command_in_progress flag.
13763 Kill any menu_free_timer that is running.
13764
13765 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
13766 Call ExtTextOutA rather than ExtTextOut.
13767
137682002-02-22 Eli Zaretskii <eliz@gnu.org>
13769
13770 * puresize.h (BASE_PURESIZE): Increase to 755000.
13771
137722002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13773
13774 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
13775 on the string before encoding it.
13776 (Fw16_get_clipboard_data): Run post-read-conversion on the string
13777 after decoding it.
13778
137792002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13780
13781 Support for ICCCM Extended Segments in X selections:
13782
13783 * xselect.c <Qcompound_text_no_extensions>: New variable.
13784 (syms_of_xselect): Intern and staticpro it.
13785 (selection_data_to_lisp_data): Run post-read-conversion on decoded
13786 selection text.
13787 (lisp_data_to_selection_data): If next-selection-coding-system is
13788 compound-text-no-extensions, set the type of selection to be
13789 compound-text.
13790
13791 * xterm.h (x_encode_text): Update prototype.
13792
13793 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
13794 callers changed. If SELECTIONP is non-zero, run the
13795 pre-write-conversion function before encoding the selection text.
13796
137972002-02-21 Kim F. Storm <storm@cua.dk>
13798
13799 * frame.c (syms_of_frame): Change mouse-highlight default to t.
13800
13801 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
13802 Correct composing of language-change event.
13803
138042002-02-20 Kim F. Storm <storm@cua.dk>
13805
13806 * keyboard.c (menu_bar_items): Don't include keymap or local-map
13807 bindings at PT when building menu (the menu is not updated often
13808 enough for this to work reliable).
13809 (tool_bar_items): Likewise.
13810 (current_active_maps): Removed unused (and buggy) function.
13811
138122002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13813
13814 * xfns.c (gif_load): Use correct width and height for GIF images.
13815
138162002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
13817
13818 * floatfns.c (Fatan): Accept an optional second arg and call
13819 atan2 if passed 2 args.
13820
138212002-02-18 Jason Rumney <jasonr@gnu.org>
13822
13823 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
13824
138252002-02-17 Jason Rumney <jasonr@gnu.org>
13826
13827 * w32term.c (x_autoselect_window_p): New variable.
13828 (syms_of_w32term): DEFVAR_BOOL and initialize it.
13829 (note_mouse_movement): Use it.
13830
13831 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
13832
13833 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
13834
13835 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13836 New variables.
13837 (syms_of_w32fns): Intern and staticpro them.
13838 (x_frame_parms) <"fullscreen">: New parameter.
13839 (x_fullscreen_move, x_set_fullscreen): New functions.
13840 (x_set_frame_parameters): Support Qfullscreen.
13841 (x_real_positions): Save x/y_pixels_diff frame params.
13842 (x_figure_window_size): Support full-screen frames.
13843 (Fx_create_frame): Default the fullscreen parameter.
13844
13845 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
13846 (x_fullscreen_adjust): New functions.
13847 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
13848 fullscreen. Call x_check_fullscreen_move, and set the
13849 want_fullscreen member of output_data.w32
13850 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
13851
13852 * w32term.h: New enum for FULLSCREEN_* constants.
13853 (struct w32_output): New members want_fullscreen, x_pixels_diff,
13854 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
13855 (x-fullscreen-adjust): New prototype.
13856
138572002-02-17 Kim F. Storm <storm@cua.dk>
13858
13859 * frame.c: (Vmouse_highlight): New variable.
13860 (syms_of_frame): DEFVAR_LISP it.
13861
13862 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 13863
048addec 13864 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 13865
048addec
JD
13866 * xterm.c (disable_mouse_highlight): Removed variable.
13867 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13868 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13869 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
13870 and on after keyboard input.
13871 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 13872
048addec 13873 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 13874
048addec
JD
13875 * msdos.c (disable_mouse_highlight): Removed variable.
13876 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13877 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13878 (internal_terminal_init): Initialize mouse_face_hidden.
13879 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
13880 and on after keyboard input.
4f1b1854 13881
048addec 13882 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 13883
048addec
JD
13884 * w32term.c (disable_mouse_highlight): Removed variable.
13885 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
13886 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13887 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
13888 and on after keyboard input.
13889 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 13890
048addec 138912002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 13892
048addec
JD
13893 * msdos.c (last_mouse_window): New variable.
13894 (dos_rawgetc): Fix last change--if the mouse is in the same window
13895 as recorded in last_mouse_window, don't select this window.
5cb6905d 13896
048addec 13897 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 13898
048addec
JD
13899 * msdos.c (x_autoselect_window_p): New variable.
13900 (syms_of_msdos): Defvar it.
13901 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
13902 which the last mouse movement occured, unless it is already selected.
437dfb9f 13903
048addec
JD
13904 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
13905 New variables.
13906 (syms_of_xdisp): DEVFAR them.
13907 (hscroll_window_tree): Use automatic_hscroll_margin and
13908 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 13909
048addec 139102002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 13911
048addec
JD
13912 * xterm.c (x-autoselect-window): New variable.
13913 (note_mouse_movement): Use it.
9f696a00 13914
048addec 13915 * keyboard.c: Do not include "systime.h" twice.
d57966d7 13916
048addec 139172002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 13918
bfa02563 13919 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 13920
048addec 13921 * alloc.c (NSTATICS): Increase to 1280.
74779f52 13922
048addec 139232002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 13924
048addec 13925 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 13926
048addec
JD
13927 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
13928 (Vx_super_keysym): New variables.
13929 (syms_of_xterm): DEFVAR_LISP them.
13930 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
13931 variables to determine which keys to use for the various modifiers.
a474d59c 13932
048addec 139332002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 13934
048addec
JD
13935 * window.c: (Vmode_line_in_non_selected_windows): Removed.
13936 (mode_line_in_non_selected_windows): New variable.
13937 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 13938
048addec
JD
13939 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
13940 Use mode_line_in_non_selected_windows.
13941 (mode_line_in_non_selected_windows): Declare extern.
13942 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 13943
048addec 139442002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 13945
048addec
JD
13946 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
13947 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
13948 (Fclear_this_command_keys): Doc fixes.
2d10309f 13949
048addec
JD
13950 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
13951 (update_face_from_frame_parameter): Increment face_change_count
13952 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 13953
048addec
JD
13954 * xdisp.c (QCpropertize): New variable.
13955 (mode_line_proptrans_alist): New variable.
13956 (display_mode_element): New arg PROPS; all calls changed.
13957 Implement this, for strings.
13958 Handle literal output of strings by sharing the
13959 main-line code for strings, using local var `literal'.
13960 Handle :propertize feature.
13961 (syms_of_xdisp): Initialze and staticpro QCpropertize and
13962 mode_line_proptrans_alist.
0b1e6b54 13963
048addec 139642002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 13965
048addec
JD
13966 * window.c: (Vmode_line_in_non_selected_windows): New variable.
13967 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 13968
048addec
JD
13969 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
13970 (CURRENT_MODE_LINE_FACE_ID): Use it.
13971 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 13972
048addec
JD
13973 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
13974 to get mode line face.
e17144de 13975
048addec 139762002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13977
048addec
JD
13978 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
13979 variables; cus-start.el doesn't need them anymore.
44368f8f 13980
048addec 139812002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 13982
048addec
JD
13983 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
13984 reduction. This fixes a display problem where stray newlines were
13985 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 13986
048addec 139872002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13988
048addec 13989 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 13990
048addec 13991 * xdisp.c (display_mode_lines): Fix last change.
453c5510 13992
048addec 139932002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 13994
048addec
JD
13995 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
13996 match each other.
13997 (w32_load_system_font): Prevent Cleartype fonts from loading.
13998 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 13999
048addec 140002002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 14001
048addec
JD
14002 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14003 (CURRENT_MODE_LINE_HEIGHT): Use it.
14004 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14005
048addec
JD
14006 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14007 (pos_visible_p, handle_face_prop): Likewise.
14008 (display_mode_lines): Likewise, but for the real selected window.
14009 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 14010
048addec
JD
14011 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14012 in non-selected windows.
14013 (realize_basic_faces): Realize it.
14014 (syms_of_term): Intern and staticpro it.
308dd672 14015
048addec 140162002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 14017
048addec
JD
14018 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14019 Changed mail addresses to emacs-devel@gnu.org.
308dd672 14020
048addec 140212002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 14022
048addec
JD
14023 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14024 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 14025
048addec 14026 * floatfns.c (Fround): Doc fix.
3c1e6b46 14027
048addec 140282002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 14029
048addec 14030 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 14031
048addec 140322002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 14033
048addec 14034 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 14035
048addec 140362002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 14037
048addec
JD
14038 * keymap.c (where_is_internal): Only check whether definition is
14039 remapped if it fulfills is_command_symbol.
0065bb74 14040
048addec 140412002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 14042
048addec 14043 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 14044
048addec 14045 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 14046
048addec 140472002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 14048
048addec
JD
14049 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14050 defining command remapping. Doc updated.
14051 (Flookup_key): Remap command through keymap if KEY is a symbol.
14052 (is_command_symbol): New function.
14053 (Fkey_binding): Use it. New optional argument NO-REMAP.
14054 Doc updated. Callers changed. Perform command remapping via
14055 recursive call unless that arg is non-nil.
14056 (where_is_internal): New argument no_remap. Callers changed.
14057 Call recursively to find original key bindings for a remapped
14058 comand unless that arg is non-nil.
14059 (Fwhere_is_internal): New optional argument NO-REMAP.
14060 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 14061
048addec
JD
14062 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14063 (is_command_symbol): Added prototype.
0d8466cc 14064
048addec
JD
14065 * keyboard.c (Vthis_original_command): New variable.
14066 (syms_of_keyboard): DEFVAR_LISP it.
14067 (command_loop_1): Set it, and perform command remapping.
15fff01d 14068
048addec 140692002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 14070
048addec 14071 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 14072
048addec 140732002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 14074
048addec 14075 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 14076
048addec 140772002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 14078
048addec 14079 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 14080
048addec 140812002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 14082
048addec 14083 * filelock.c (S_ISLNK): Define if not defined.
3a232704 14084
048addec 140852002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 14086
048addec 14087 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 14088
048addec
JD
14089 * lread.c (read1): Redesign strategy for force_multibyte and
14090 force_singlebyte. Now is_multibyte records whether read_buffer
14091 is multibyte. Encountering any multibyte character makes it so.
4e02881b 14092
048addec 140932002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 14094
048addec
JD
14095 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14096 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 14097
048addec 140982002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 14099
048addec
JD
14100 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14101 latter never being defined on GNU/Linux.
749f499f 14102
048addec 141032002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 14104
048addec
JD
14105 * xfaces.c (realize_default_face): Don't set the weight and slant of
14106 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 14107
048addec 141082002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 14109
048addec
JD
14110 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14111 Call cancel_hourglass unconditionally.
d0fd26dd 14112
048addec
JD
14113 * eval.c (Fsignal): Remove duplicated declaration of
14114 the variable `display_hourglass_p'.
b4c45162 14115
048addec 141162002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 14117
048addec 14118 * editfns.c (region_limit): Nicer error message.
c95eaa61 14119
048addec
JD
14120 * coding.c (decode_composition_emacs_mule):
14121 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 14122
048addec
JD
14123 * callint.c (check_mark): New arg to specify clearer error message.
14124 Callers changed.
c95eaa61 14125
048addec 141262002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 14127
048addec 14128 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 14129
048addec 141302002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 14131
048addec
JD
14132 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14133 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14134 Fix doc-strings.
c95eaa61 14135
048addec 141362002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 14137
048addec 14138 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 14139
048addec
JD
14140 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14141 and scroll_up_aggressively.
c95eaa61 14142
048addec 141432002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 14144
048addec 14145 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 14146
048addec 141472002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 14148
048addec
JD
14149 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14150 (Fprevious_property_change, Fprevious_single_property_change):
14151 Stay within the narrowed-buffer boundaries.
e2c3786a 14152
048addec 141532002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 14154
048addec
JD
14155 * term.c (Ftty_display_color_cells): New function.
14156 (syms_of_term): Defsubr it.
14157 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14158 argument name to DISPLAY. Doc fix.
bf794306 14159
048addec
JD
14160 * dispextern.h: Add prototype for set_tty_color_mode and
14161 tty_setup_colors.
bf794306 14162
048addec 141632002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 14164
048addec
JD
14165 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14166 If region left to draw is not what was expected, mark the frame as
14167 garbaged.
62582985 14168
048addec
JD
14169 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14170 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 14171
048addec 141722002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 14173
048addec
JD
14174 * w32term.c (x_update_window_begin): Only hide caret if
14175 w32_use_visible_system_caret is set.
14176 (x_update_window_end): Only show caret if
14177 w32_use_visible_system_caret is set.
14178 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 14179
048addec 14180 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 14181
048addec 141822002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 14183
048addec
JD
14184 * unexelf.c (unexec): Define n so as to cause compilation error
14185 for the code where people have often written n instead of nn.
1e9a6186 14186
048addec 14187 * .gdbinit (hookpost-run): Defined.
1e9a6186 14188
048addec 141892002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 14190
048addec 14191 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 14192
048addec 141932002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 14194
048addec
JD
14195 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14196 if fullscreen is being set.
7c75be36 14197
048addec 141982002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 14199
048addec
JD
14200 * minibuf.c (Fminibuffer_contents)
14201 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14202 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 14203
048addec 142042002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 14205
048addec 14206 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 14207
048addec 142082002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 14209
048addec
JD
14210 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14211 height before comparison.
14212 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 14213
048addec 142142002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 14215
048addec
JD
14216 * w32term.c (w32_system_caret_width): Remove.
14217 (w32_use_visible_system_caret): New user flag.
14218 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14219 Windows reports a screen reader running.
14220 (x_update_window_begin): Hide the system caret.
14221 (x_update_window_end): Show the system caret.
14222 (x_display_and_set_cursor): Don't draw a cursor when
14223 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 14224
048addec
JD
14225 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14226 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14227 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14228 the user requests it. Use system default width when creating.
14229 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 14230
048addec
JD
14231 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14232 New window messages.
905cc05a 14233
048addec 142342002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 14235
048addec 14236 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 14237
048addec 142382002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 14239
048addec 14240 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 14241
048addec 142422002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 14243
048addec 14244 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 14245
048addec 142462002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 14247
048addec
JD
14248 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14249 that Windows returns. If a double check fails, try to guess how
14250 ExtTextOut is going to act.
4d0fa4f3 14251
048addec
JD
14252 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14253 in place of stricmp.
14254 (w32_list_synthesized_fonts): Removed.
14255 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14256 (struct enumfont_t): New element; list.
14257 (enum_font_cb2): List all style and charset variations of a font.
14258 (Fw32_select_font): New optional argument; include_proportional.
14259 Exclude vertical fonts. Exclude proportional fonts unless
14260 include_proportional is non-nil.
14261 (w32_enable_synthesized_fonts): Change to a boolean.
14262 (Fw32_send_sys_command): Doc fix.
493faf20 14263
048addec 142642002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 14265
048addec
JD
14266 * dispnew.c (update_frame): Move the variable `tem' to the block
14267 where it is used.
4971e491 14268
048addec 142692002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 14270
048addec
JD
14271 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14272 call to face-set-after-frame-default.
4971e491 14273
048addec 142742002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 14275
048addec
JD
14276 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14277 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 14278
048addec 142792002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 14280
048addec
JD
14281 * window.c (enlarge_window): When exceeding size of parent,
14282 directly delete all the siblings instead of trying to resize it.
201c831a 14283
048addec 142842002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 14285
048addec 14286 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 14287
048addec 142882002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 14289
048addec 14290 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 14291
048addec 142922002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 14293
048addec
JD
14294 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14295 is invisible. This can happen if cursor is on top line of a
14296 window, and we switch to a buffer with a header line.
d77fbc16 14297
048addec 14298 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 14299
048addec 143002002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 14301
048addec
JD
14302 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14303 `dont_resize' only when used.
61e3b944 14304
048addec 14305 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 14306
048addec 143072002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 14308
048addec
JD
14309 * xdisp.c (display_mode_element): When computing charpos, depend
14310 on multibyteness of elt, not the text in field.
8af01033 14311
048addec 143122002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 14313
048addec
JD
14314 * buffer.c (Fkill_all_local_variables):
14315 Increment `update_mode_lines' only once.
7363986a 14316
048addec 143172002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 14318
048addec
JD
14319 * lisp.h (adjust_after_replace_noundo)
14320 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 14321
048addec 14322 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 14323
048addec 143242002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 14325
048addec
JD
14326 Support for the --color command-line argument and tty-color-mode
14327 frame parameter:
f1a85b89 14328
048addec
JD
14329 * term.c (tty_default_color_capabilities, tty_setup_colors)
14330 (set_tty_color_mode): New functions.
14331 (term_init): Call tty_default_color_capabilities.
14332 (Qtty_color_mode_alist): New variable.
14333 (syms_of_term): Intern and staticpro it.
f1a85b89 14334
048addec
JD
14335 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14336 frames.
14337 (do_switch_frame): For termcap frames, switch the tty
14338 color mode as specified by the frame's parameters.
14339 (Qtty_color_mode): New variable.
14340 (syms_of_frame): Intern and staticpro it.
3a62677f 14341
048addec
JD
14342 * emacs.c (USAGE2): Add the --color option.
14343 (standard_args): Ditto.
72244db2 14344
048addec
JD
143452002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14346
14347 * xterm.h (struct x_output): New members want_fullscreen,
14348 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14349 y_pixels_outer_diff.
14350 New enum for FULLSCREEN_* constants.
14351 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14352 is NULL.
14353 (x_fullscreen_adjust): Add prototype.
3a62677f 14354
048addec
JD
14355 * emacs.c (USAGE2): Add the new full-screen arguments.
14356 (standard_args): Ditto.
3a62677f 14357
048addec
JD
14358 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14359 New variables.
14360 (syms_of_xfns): Intern and staticpro them.
14361 (x_frame_parms) <"fullscreen">: New parameter.
14362 (x_fullscreen_move, x_set_fullscreen): New functions.
14363 (x_set_frame_parameters): Support for Qfullscreen.
14364 (x_real_positions): More accurate computation of the frame position.
14365 (x_figure_window_size): Support full-screen frames.
14366 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 14367
048addec
JD
14368 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14369 (XTread_socket) <Expose>: Call x_check_fullscreen.
14370 <ConfigureNotify>: Don't resize to fullscreen.
14371 Call x_check_fullscreen_move, and set the want_fullscreen member of
14372 output_data.x.
3a62677f 14373
048addec 143742002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 14375
048addec
JD
14376 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14377 for mice with more than 3 buttons.
b8523839 14378
048addec
JD
14379 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14380 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 14381
048addec
JD
14382 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14383 (syms_of_w32fns): DEFVAR_BOOL it.
14384 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 14385
048addec 143862002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 14387
048addec 14388 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 14389
048addec 143902002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 14391
048addec 14392 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 14393
048addec 143942002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 14395
048addec
JD
14396 * .gdbinit (xbuffer): Remove address operator since data is now a
14397 pointer.
c93674bb 14398
048addec 143992002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 14400
048addec 14401 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 14402
048addec 14403 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 14404
048addec 144052002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 14406
048addec
JD
14407 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14408 when checking for multiple frames.
91175673 14409
048addec 144102002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 14411
048addec
JD
14412 * window.c (delete_window): Rewrite the code for changing the
14413 selected window to handle the case where WINDOW is not a leaf.
91175673 14414
048addec 144152002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 14416
048addec
JD
14417 * process.c (send_process): Set src_multibyte to 1 after the call
14418 top setup_coding_system, not before the call.
e0fead5d 14419
048addec 144202002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 14421
048addec
JD
14422 * xmenu.c (set_frame_menubar, xmenu_show):
14423 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 14424
048addec
JD
14425 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14426 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 14427
048addec 144282002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 14429
048addec 14430 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 14431
048addec 14432 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 14433
048addec 14434 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 14435
048addec 144362002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 14437
048addec
JD
14438 * insdel.c (make_gap_larger): Make sure buffer size does not
14439 overflow range of int.
62854fe2 14440
048addec 144412002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 14442
048addec
JD
14443 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14444 OVERLAPS_P.
656f46bb 14445
048addec 14446 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 14447
048addec
JD
14448 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14449 to the left or to the right of the pointer, put it against
14450 the left screen edge.
14451 (x_frame_parms): Add missing braces around initializer.
036e218d 14452
048addec
JD
14453 * w32term.c (x_setup_relief_colors): Don't compute an image's
14454 background color if it doesn't have a Pixmap.
14455 (notice_overwritten_cursor): Don't depend on
14456 output_cursor and updated_area. Compare pixel coordinates with
14457 window's cursor pixel coordinates.
14458 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14459 Call notice_overwritten_cursor with new arg list.
14460 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14461 unconditionally.
14462 (x_draw_image_relief): Use predefined macro instead of
14463 constant when the value of `tool_bar_button_relief' is negative.
036e218d 14464
048addec 14465 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 14466
048addec 144672002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 14468
048addec 14469 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 14470
048addec 144712002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 14472
048addec
JD
14473 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14474 (Fkey_binding): Try the `keymap' property map first.
14475 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14476 minor mode bindings.
90647b07 14477
048addec 144782002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 14479
048addec 14480 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 14481
048addec 144822002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 14483
048addec
JD
14484 * keyboard.c (read_key_sequence): Handle the keymap property
14485 before minor mode maps.
9fbc32aa 14486
048addec
JD
14487 * editfns.c (Fformat): Update thissize from field_width
14488 based on the actual width, in the string case.
036e218d 14489
048addec 144902002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 14491
048addec
JD
14492 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14493 when used as truth value to prevent gcc warnings.
9fbc32aa 14494
048addec
JD
14495 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14496 * w32proc.c: Include <config.h>.
9fbc32aa 14497
048addec 144982002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 14499
048addec
JD
14500 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14501 not EMACS_INT, to make them compatible with DEFVAR_INT.
14502 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 14503
048addec 145042002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14505
048addec
JD
14506 * print.c (print_object): Test print_escape_nonascii only for
14507 unibyte strings.
14508 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14509 when outputting to a multibyte buffer.
9fbc32aa 14510
048addec 145112001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 14512
048addec
JD
14513 * print.c (print_object): In multibyte string, use hex escapes.
14514 Use octal only for unibyte strings.
14515 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 14516
048addec
JD
14517 * lread.c (read_escape): New arg BYTEREP for reporting whether
14518 escape forces unibyte or multibyte.
14519 (read1): When reading a string, take note of that info.
0142178a 14520
048addec 145212001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 14522
048addec
JD
14523 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14524 comparison to test lisp value returned by Fget.
d4824a5d 14525
048addec 145262001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 14527
048addec 14528 * lisp.h (max_specpdl_size): Add declaration.
b1356234 14529
048addec 14530 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 14531
048addec
JD
14532 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14533 Handle modifier bits. Correct typo in error message.
99e380ee 14534
048addec 145352001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 14536
048addec
JD
14537 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14538 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14539 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14540 Update calls to Fdefine_abbrev.
14541 (write_abbrev): Update for changed data format.
14542 Don't list "system" abbrevs.
14543 (Fexpand_abbrev): Update use count with new data format.
14544 (describe_abbrev): Update for changed data format.
14545 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 14546
048addec 14547 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 14548
048addec 14549 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 14550
048addec
JD
14551 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14552 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 14553
048addec
JD
14554 * keymap.c (Flookup_key): Error message if key has wrong data type.
14555 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
14556 (exclude_key): New variable.
59a86c99 14557
048addec 145582001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 14559
048addec
JD
14560 * xterm.c (x_setup_relief_colors): Don't compute an image's
14561 background color if it doesn't have a Pixmap.
eb77a5f4 14562
048addec
JD
14563 * xterm.c (notice_overwritten_cursor): Don't depend on
14564 output_cursor and updated_area. Compare pixel coordinates with
14565 window's cursor pixel coordinates.
14566 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14567 Call notice_overwritten_cursor with new arg list.
14568 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14569 unconditionally.
eb77a5f4 14570
048addec
JD
14571 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
14572 height of the cursor line to the amount to scroll.
eb77a5f4 14573
048addec 145742001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 14575
048addec
JD
14576 * intervals.c (set_point_both): The position after an invisible,
14577 intangible character is not an acceptable stopping point.
bb313871 14578
048addec 145792001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 14580
048addec
JD
14581 * window.c (enlarge_window): In new preserve_before code, convert
14582 CURBEG from lisp object to integer before doing arithmetic.
6052529b 14583
048addec 145842001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 14585
048addec 14586 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 14587
048addec 145882001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 14589
048addec
JD
14590 * keyboard.c (record_char): Ignore duplicate help-echo events only
14591 separated by mouse-movement. When tracking mouse, only record
14592 first and last mouse-movement event in same window.
14593 Don't record mouse-movement events in keyboard macros.
3ce081f5 14594
048addec 145952001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 14596
048addec
JD
14597 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
14598 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 14599
048addec
JD
14600 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
14601 instead of Fstring_as_unibyte.
9fabb2f5 14602
048addec 146032001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 14604
048addec 14605 The following changes remove mocklisp support:
9fabb2f5 14606
048addec 14607 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 14608
048addec
JD
14609 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
14610 `Qmocklisp' and `Qmocklisp_arguments'.
14611 Remove prototype of syms_of_mocklisp.
2fa0eedf 14612
048addec 14613 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 14614
048addec
JD
14615 * callint.c: Do not include mocklisp.h.
14616 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 14617
048addec
JD
14618 * eval.c: Remove variables `Qmocklisp_arguments',
14619 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
14620 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
14621 Do not test for mocklisp case.
14622 (Fwhile): Remove unused variable `tem'.
14623 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 14624
048addec 14625 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 14626
048addec 14627 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 14628
048addec 14629 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 14630
048addec 146312001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 14632
048addec
JD
14633 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
14634 to the left or to the right of the pointer, put it against
14635 the left screen edge.
6108b49c 14636
048addec 146372001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 14638
048addec
JD
14639 * Makefile.in (distclean): Remove .gdbinit if we are building
14640 outside the source tree.
5eea19a4 14641
048addec 146422001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 14643
048addec 14644 * w32.c (emacs_root_dir): New function.
5eea19a4 14645
048addec 14646 * msdos.c (emacs_root_dir): New function.
5eea19a4 14647
048addec
JD
14648 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
14649 of the current drive as the fallback for default_directory.
438e57dd 14650
048addec
JD
14651 * dired.c (file_name_completion): Run the elements of
14652 completion-ignored-extensions through ENCODE_FILE.
438e57dd 14653
048addec
JD
14654 * lisp.h (scmp): Remove prototype, since it's now a static
14655 function private to dired.c.
c88e5347 14656
048addec 146572001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 14658
048addec
JD
14659 * dired.c (scmp): Function moved from minibuf.c.
14660 Delete multibyte handling--used only on encoded strings.
59ce1461 14661
048addec 14662 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 14663
048addec 14664 * fns.c (merge): Add QUIT call.
59ce1461 14665
048addec 146662001-12-18 Dave Love <fx@gnu.org>
8727d588 14667
048addec
JD
14668 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
14669 language/georgian.el.
8727d588 14670
048addec 146712001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 14672
048addec
JD
14673 * Makefile.in (lisp, shortlisp): Synchronize with changes to
14674 lisp/Makefile.in:DONTCOMPILE.
cc63037e 14675
048addec 146762001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 14677
048addec
JD
14678 * xdisp.c (window_box_height): Do not return negative values.
14679 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 14680
048addec 14681 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 14682
048addec 14683 * term.c (keys): Likewise.
deece6f5 14684
048addec 14685 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 14686
048addec 146872001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 14688
048addec
JD
14689 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
14690 patch (COMPOSING_P, not COMPOSING).
28ff4293 14691
048addec 146922001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 14693
048addec 14694 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 14695
048addec
JD
14696 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
14697 before calling decode_coding.
9b46de40 14698
048addec 14699 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 14700
048addec
JD
14701 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
14702 instead of only for COMPOSITION_DISABLED.
9b46de40 14703
048addec 147042001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 14705
048addec 14706 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 14707
048addec 14708 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 14709
048addec
JD
14710 * buffer.h (struct buffer): New field `display_error_modiff'.
14711 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 14712
048addec 14713 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 14714
048addec
JD
14715 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
14716 Call redisplay_window, but not if display_error_modiff field says no.
14717 (redisplay_window_error): New function.
14718 (displayed_buffer): New variable.
14719 (redisplay_internal, redisplay_windows): Call the new functions
14720 instead of redisplay_window directly.
2cd23960 14721
048addec 147222001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 14723
048addec 14724 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 14725
048addec 147262001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 14727
048addec 14728 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 14729 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 14730 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 14731
048addec 147322001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 14733
048addec
JD
14734 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
14735 parameter have a numeric value all the time.
f6fa0866 14736
048addec 14737 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 14738
048addec 147392001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 14740
048addec 14741 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 14742
048addec
JD
14743 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
14744 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 14745
048addec 147462001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 14747
048addec
JD
14748 * xdisp.c (move_it_vertically_backward): Change heuristic
14749 for the case that we didn't move far enough initially.
91c153e2 14750
048addec
JD
14751 * window.c (Frecenter): Simplify computation in the case of window
14752 system frames and ARG < 0; use window_box_height.
65b7d3e7 14753
048addec 147542001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 14755
048addec
JD
14756 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
14757 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 14758
048addec 147592001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 14760
048addec
JD
14761 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
14762 arg is negative.
be676094 14763
048addec 147642001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 14765
048addec
JD
14766 * m/hp800.h: Split the __hpux conditional into the parts
14767 that are right for GNU/Linux too and the parts that are not.
14768 Use the former if GNU_LINUX.
14769 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 14770
048addec 14771 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 14772
048addec 147732001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 14774
048addec
JD
14775 * macros.c, msdos.c, w16select.c: Change doc-string comments to
14776 `new style' [w/`doc:' keyword].
032a857d 14777
048addec 147782001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 14779
048addec
JD
14780 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
14781 before using.
b6270150 14782
048addec 147832001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 14784
048addec
JD
14785 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
14786 keyword].
98cbb9fa 14787
048addec 147882001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 14789
048addec 14790 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 14791
048addec 14792 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 14793
048addec 147942001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 14795
048addec 14796 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 14797 Add comment to explain where the struct came from.
048addec
JD
14798 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
14799 (add_menu_item): Process pop-up menus first to avoid memory leak.
14800 (add_menu_item, w32_menu_display_help): Use `help' field as
14801 Lisp_Object.
14802 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 14803
048addec 148042001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 14805
048addec 14806 * COPYING: Moved back.
fa336b91 14807
048addec
JD
14808 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
14809 Add parentheses around && within ||.
077907d4 14810
048addec 14811 * indent.c (compute_motion): Likewise.
aa2af83a 14812
048addec 14813 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 14814
048addec
JD
14815 * coding.c (setup_coding_system, shrink_encoding_region)
14816 (Fdecode_sjis_char): Likewise.
60a653f1 14817
048addec 148182001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 14819
048addec
JD
14820 * xdisp.c (display_mode_element): Don't read past end of string if
14821 it ends with '%'.
60a653f1 14822
048addec
JD
14823 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
14824 can hold.
60a653f1 14825
048addec
JD
14826 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
14827 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
14828 type changed to Lisp_Object.
14829 (syms_of_data): DEFVAR_LISP them.
60a653f1 14830
048addec 148312001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 14832
048addec
JD
14833 * callproc.c (init_callproc): Set Vdata_directory based on the source
14834 location whenever Emacs was run uninstalled.
60a653f1 14835
048addec 148362001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 14837
048addec
JD
14838 * config.in (HAVE_WORKING_VFORK): New #undefs.
14839 * process.c (create_process):
14840 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
14841 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
14842 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
14843 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
14844 * m/intel386.h (HAVE_VFORK): Likewise.
14845 * m/mips-siemens.h (HAVE_VFORK): Likewise.
14846 * m/mips.h (HAVE_VFORK): Likewise.
14847 * s/freebsd.h (vfork): Remove #define.
14848 * s/lynxos.h (HAVE_VFORK): Remove #undef.
14849 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 14850
048addec 148512001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 14852
048addec
JD
14853 * s/hpux10.h (random): Add undef.
14854 (HAVE_RANDOM): Define it just once.
60a653f1 14855
048addec 148562001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14857
048addec 14858 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 14859
048addec 148602001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14861
048addec
JD
14862 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
14863 scroll bars of the frame before deleting the frame itself. If the
14864 frame has a widget, delete the frame with XtDestroyWidget, and do
14865 not call XDestroyWindow before that.
60a653f1 14866
048addec 148672001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 14868
048addec 14869 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14870
048addec 14871 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14872
048addec 148732001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 14874
048addec
JD
14875 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
14876 excessively large.
60a653f1 14877
048addec
JD
14878 * insdel.c (make_gap_larger): New function.
14879 (make_gap_smaller): New function.
14880 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
14881 Call make_gap_smaller if arg is negative.
60a653f1 14882
048addec 148832001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14884
048addec
JD
14885 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
14886 Pass a dummy argument when calling interrupt_signal.
14887 (parse_menu_item): Mark disabled items before checking for empty def.
14888 (read_char_minibuf_menu_prompt): Make safety more visible.
14889 (read_key_sequence): Add a `first_unbound' variable.
14890 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
14891 unbound prefix as soon as we can detect it.
60a653f1 14892
048addec
JD
14893 * doc.c (Fsnarf_documentation): Add prototype.
14894 (get_doc_string): Handle negative arguments.
14895 (Fdocumentation): Use AREF and ASIZE.
14896 Move the calls to get_doc_string to a single place.
14897 Don't confuse an interactive-spec for a docstring reference.
14898 (Fdocumentation_property): Take advantage of the fact that
14899 get_doc_string now ignores the sign of the docstring position.
60a653f1 14900
048addec 14901 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 14902
048addec 149032001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14904
a64387ee 14905 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 14906
048addec 149072001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14908
048addec
JD
14909 * xterm.c (x_draw_image_relief): Use predefined macro instead of
14910 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 14911
048addec 149122001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 14913
048addec
JD
14914 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
14915 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 14916
048addec 14917 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 14918
048addec 149192001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14920
048addec 14921 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 14922
048addec 149232001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 14924
048addec 14925 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 14926
048addec 149272001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 14928
f63fd14e 14929 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 14930
048addec
JD
14931 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
14932 [!WM_MOUSELEAVE]: Define.
60a653f1 14933
048addec
JD
14934 * w32menu.c (current_popup_menu, get_menu_item_info):
14935 (set_menu_item_info): New vars.
14936 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
14937 (w32_menu_show): Set current_popup_menu.
14938 (add_menu_item): Allocate new strings for owner-drawn menu items
14939 and help strings.
14940 Use owner-draw for disabled menu items again.
14941 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
14942 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 14943
048addec
JD
14944 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
14945 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
14946 <WM_EXITMENULOOP>: Free menu strings.
14947 <WM_MOUSELEAVE>: Stop tracking mouse.
14948 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 14949
048addec
JD
14950 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
14951 and mouse face.
60a653f1 14952
048addec 149532001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 14954
048addec
JD
14955 The following changes add left-fringe and right-fringe
14956 frame parameters to adjust fringe widths, or remove one or
14957 both fringes.
60a653f1 14958
048addec
JD
14959 * frame.h (struct frame): Remove trunc_area_pixel_width and
14960 trunc_area_cols fields.
14961 (Qleft_fringe, Qright_fringe): Declare.
14962 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 14963
048addec
JD
14964 * frame.c (Qleft_fringe, Qright_fringe): New vars.
14965 (syms_of_frame): Initialize them.
60a653f1 14966
048addec
JD
14967 * window.c (coordinates_in_window): Handle separate left and right
14968 fringe widths.
60a653f1 14969
048addec
JD
14970 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
14971 and fringe_cols fields.
14972 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
14973 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
14974 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
14975 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
14976 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
14977 (x_compute_fringe_widths): Add prototype.
60a653f1 14978
048addec
JD
14979 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
14980 fill fringe evenly with small dashes.
f63fd14e 14981 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
14982 clip the new ZV bitmap to avoid jitter between rows.
14983 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
14984 background. Don't draw fringe bitmaps if fringe width is zero.
14985 (x_compute_fringe_widths): New function.
14986 (x_new_font, x_set_window_size_1): Use it.
60a653f1 14987
048addec
JD
14988 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
14989 (x_set_frame_parameters): Process `font' parameter before other
14990 parameters as fringe widths depend on it.
14991 (x_set_fringe_width): New function.
14992 (x_figure_window_size): Use x_compute_fringe_widths.
14993 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
14994 parameters.
60a653f1 14995
048addec
JD
14996 * widget.c (set_frame_size): Use x_compute_fringe_widths.
14997 (EmacsFrameSetCharSize): Ditto.
60a653f1 14998
048addec
JD
14999 * w32term.h: Merged changes from xterm.h.
15000 * w32term.c: Merged changes from xterm.c.
15001 * w32fns.c: Merged changes from xfns.c.
60a653f1 15002
048addec 150032001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15004
048addec 15005 * COPYING: Removed.
60a653f1 15006
048addec 150072001-11-29 Dave Love <fx@gnu.org>
60a653f1 15008
048addec
JD
15009 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15010 extra extra slot.
15011 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 15012
048addec 150132001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15014
048addec
JD
15015 * fileio.c (file-name-coding-system)
15016 (default-file-name-coding-system): Doc fix (links to referenced
15017 variables added).
60a653f1 15018
048addec 150192001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15020
048addec
JD
15021 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15022 Add dummy uses of gcproN variables.
60a653f1 15023
048addec
JD
15024 * category.c (describe_category, describe_category_1)
15025 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15026 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 15027
048addec 150282001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 15029
048addec 15030 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 15031
048addec
JD
15032 * Makefile.in (lispdir): New variable, referring to build dir.
15033 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 15034
048addec 150352001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 15036
048addec
JD
15037 * w32menu.c (w32_menu_display_help): Actually add the new argument
15038 OWNER.
60a653f1 15039
048addec 150402001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 15041
048addec
JD
15042 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15043 menu items. From David Ponce <dponce@wanadoo.fr>.
15044 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15045 conditionally.
f63fd14e 15046 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 15047 help event in the owner frame's keyboard buffer.
60a653f1 15048
048addec
JD
15049 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15050 (Fx_show_tip): Don't subtract last width from row width.
15051
15052 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15053 (w32_read_socket): Use EQ to compare frames.
60a653f1 15054
048addec 150552001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 15056
048addec
JD
15057 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15058 OVERLAPS_P.
60a653f1 15059
048addec 150602001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15061
048addec
JD
15062 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15063 `gcpro3' and `gcpro4'.
60a653f1 15064
048addec 15065 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 15066
048addec 150672001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15068
048addec 15069 * ccl.c: Use AREF and ASIZE.
60a653f1 15070
048addec 150712001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15072
048addec
JD
15073 * lisp.h (run_hook_list_with_args): Remove.
15074 (LIST_END_P): Fix call to wrong_type_argument.
15075 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 15076
048addec 150772001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15078
048addec
JD
15079 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15080 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 15081
048addec
JD
15082 * eval.c: Use AREF and ASIZE.
15083 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 15084
048addec
JD
15085 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15086 which match the end of the file-name.
15087 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15088 is not a valid env var, but leave it as is instead.
60a653f1 15089
048addec
JD
15090 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15091 Make nil bindings in char-tables transparent.
15092 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 15093
048addec 150942001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 15095
048addec
JD
15096 * textprop.c (set_text_properties_1): Allow START, END in either order.
15097 Do nothing if range is empty.
60a653f1 15098
048addec 15099 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 15100
048addec
JD
15101 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15102 (clean): Not here.
60a653f1 15103
048addec 151042001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15105
048addec
JD
15106 * textprop.c (set_text_properties_1): Clearly mark that the
15107 interval should not be empty.
60a653f1 15108
048addec
JD
15109 * intervals.c (graft_intervals_into_buffer):
15110 Don't call set_text_properties_1 on an empty interval.
60a653f1 15111
048addec 151122001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 15113
048addec 15114 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 15115
048addec
JD
15116 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15117 don't lose the data in it.
60a653f1 15118
048addec 151192001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 15120
048addec 15121 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 15122
c62aec78 15123 * buffer.c (Fkill_buffer): Likewise.
60a653f1 15124
c62aec78 15125 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 15126
048addec 151272001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15128
048addec 15129 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 15130
048addec 151312001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15132
048addec
JD
15133 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15134 Niemitalo <kon@iki.fi>.
60a653f1 15135
048addec 151362001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 15137
048addec 15138 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 15139
048addec
JD
15140 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15141 (Fx_show_tip): Block input during frame creation.
15142 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 15143
048addec 151442001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 15145
048addec
JD
15146 * lread.c (Fload): Detect recursive load error for more than 3
15147 nestings of the same file.
15148 (Vrecursive_load_depth_limit): Variable deleted.
15149 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 15150
048addec 151512001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 15152
048addec
JD
15153 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15154 mouse position if either left or top is not specified.
60a653f1 15155
048addec
JD
15156 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15157 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15158 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15159 (my_create_tip_window): Assign tip_window.
15160 (x_create_tip_frame): Use same defaults as X.
15161 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 15162 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 15163
048addec
JD
15164 * w32term.c (x_after_update_window_line): Doc fix.
15165 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15166 frames.
15167 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 15168
048addec
JD
15169 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15170 for all Windowed systems.
60a653f1 15171
048addec 151722001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 15173
048addec
JD
15174 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15175 realized, use the initial screen colors to clear the screen.
60a653f1 15176
048addec 151772001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15178
048addec
JD
15179 * textprop.c (Fset_text_properties): Remove unused variables
15180 `unchanged', `prev_changed', `s' and `len'.
60a653f1 15181
048addec
JD
15182 * search.c (Freplace_match): Remove unused variable `inslen'.
15183
15184 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15185
151862001-11-22 Jason Rumney <jasonr@gnu.org>
15187
15188 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15189 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15190 (my_create_tip_window): New function.
15191 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15192 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15193
151942001-11-20 Jason Rumney <jasonr@gnu.org>
15195
15196 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15197 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15198
15199 * w32fns.c (Vw32_system_coding_system): Remove.
15200 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15201
152022001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15203
15204 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15205 after build_annotations.
15206
15207 * syntax.c (describe_syntax): Add dummy arg.
15208 (describe_syntax_1): Update call to describe_vector.
15209
15210 * category.c (describe_category): Add dummy arg.
15211 (describe_category_1): Update call to describe_vector.
15212
15213 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15214 (describe_command, describe_translation): Add dummy second param.
15215 (describe_map): Call elt_describer with two arguments.
15216 (describe_vector_princ): Add `fun' parameter.
15217 Call it instead of the hardcoded `princ'.
15218 (describe_vector): Add arg `args'.
15219 Pass it as a new second argument to elt_describer.
60a653f1 15220
048addec 15221 * keymap.h (describe_vector): Update prototype.
60a653f1 15222
048addec
JD
15223 * frame.c: Don't include keymap.h any more.
15224 (keys_of_frame): Remove.
60a653f1 15225
048addec 15226 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 15227
048addec 15228 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 15229
048addec 152302001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 15231
048addec
JD
15232 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15233 if defined, 0 otherwise.
15234 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15235 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 15236
048addec 152372001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 15238
048addec 15239 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 15240
048addec 152412001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 15242
048addec
JD
15243 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15244 (x_draw_bar_cursor): If the background color of the glyph under
15245 the cursor equals the frame's cursor color, use the glyph's
15246 foreground color for drawing the bar cursor.
15247 (x_after_update_window_line): Clear internal border in different
15248 circumstances.
15249 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15250 (w32_draw_relief_rect): Correct relief by 1 pixel.
15251 (x_set_glyph_string_background_width):
15252 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15253 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15254 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15255 if cursor_in_non_selected_windows is false.
15256 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15257 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15258 Notice if cursor gets overwritten.
15259 (notice_overwritten_cursor): Renamed from
15260 note_overwritten_text_cursor. Rewritten to take glyph widths
15261 into account, and to take X positions as parameters.
15262 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15263 around call to x_draw_glyphs.
15264 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15265 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15266 color to use for image glyph reliefs.
15267 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15268 (glyph_rect): Remove unused variable `area'.
60a653f1 15269
048addec
JD
15270 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15271 some items.
15272 (x_set_internal_border_width): Set frame garbaged when window
15273 doesn't exist yet.
15274 (Fx_create_frame): Accept zero tool_bar_button_relief.
15275 (x_clear_image_1, four_corners_best, image_background)
15276 (image_background_transparent): New functions.
15277 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15278 (gs_format): Add `:background' entry.
15279 (lookup_image): Set IMG's background color if specified.
15280 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15281 when appropriate.
15282 (x_clear_image_1): Reset `background_valid' and
15283 `background_transparent_valid' fields.
15284 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15285 calculating it here. Set IMG's background_transparent field.
15286 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15287 (enum png_keyword_index): Add PNG_BACKGROUND.
15288 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15289 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15290 (enum gif_keyword_index): Add GIF_BACKGROUND.
15291 (enum gs_keyword_index): Add GS_BACKGROUND.
15292 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15293 Pre-calculate image background color where necessary.
15294 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15295 Use display info's n_cbits entry for screen depth.
15296 (Fx_show_tip): Remove unused variables `buffer', `top',
15297 `left', `max_width' and `max_height'.
60a653f1 15298
048addec 15299 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 15300
048addec 153012001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 15302
048addec 15303 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 15304
048addec 153052001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 15306
048addec 15307 * frame.c (Fframe_live_p): Doc fix.
60a653f1 15308
048addec 153092001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 15310
048addec
JD
15311 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15312 (message_dolog_marker3): New static variables hold three markers.
15313 (syms_of_xdisp): Initialize and staticpro them.
15314 (message_dolog): Use message_dolog_marker1..3 instead of
15315 allocating markers each time. Unchain them when done.
60a653f1 15316
048addec 153172001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15318
048addec 15319 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 15320
048addec 153212001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 15322
048addec 15323 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 15324
048addec 153252001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 15326
048addec 15327 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 15328
048addec 153292001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 15330
048addec 15331 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 15332
048addec 153332001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 15334
048addec
JD
15335 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15336 with invalid position.
60a653f1 15337
048addec 153382001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 15339
048addec 15340 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 15341
048addec
JD
15342 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15343 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15344 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 15345
048addec 15346 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 15347
048addec 153482001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 15349
048addec
JD
15350 * fileio.c (build_annotations): Split off the tail.
15351 (build_annotations_2): New fun. Extracted from build_annotations.
15352 (Fwrite_region): Split the call to build_annotations into two
15353 calls to build_annotations and build_annotations_2.
077907d4 15354
048addec 153552001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 15356
048addec
JD
15357 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15358 clear_waiting_for_input with argument.
1756e2fb 15359
048addec 15360 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 15361
048addec 15362 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 15363
048addec 15364 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 15365
048addec 15366 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 15367
048addec 153682001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 15369
048addec
JD
15370 * fileio.c (choose_write_coding_system): New fun, extracted
15371 from Fwrite_region.
15372 (Fwrite_region): Use it.
fa336b91 15373
048addec
JD
15374 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15375 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15376 (ml_apply, find_handler_clause): Add prototype.
fa336b91 15377
048addec 153782001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 15379
048addec 15380 * config.in: Add #undef HAVE_COFF_H.
fa336b91 15381
048addec
JD
15382 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15383 Required for ISC 4.1.
fa336b91 15384
048addec 153852001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 15386
048addec
JD
15387 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15388 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 15389
048addec 153902001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 15391
048addec
JD
15392 The following changes are made to clean up the various internal
15393 references to the fringes to actually use the term `fringe' for
15394 them. Previously, they were called `flags areas', `bitmap areas',
15395 `left/right side of windows', or implicitly as `flags' or
15396 `bitmaps':
fa336b91 15397
048addec 15398 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 15399 Comments fixed. Use renamed symbols.
06e8f738 15400
f63fd14e 15401 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 15402
048addec
JD
15403 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15404 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15405 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 15406
048addec 15407 * msdos.c: Comment fix.
9ce647f4 15408
048addec 15409 * w32fns.c: Use renamed symbols.
9b784ab8 15410
f63fd14e 15411 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
15412 (fringe_bitmap_type): Renamed from bitmap_type.
15413 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15414 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15415 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 15416
f63fd14e 15417 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
15418 (fringes_extra): Renamed from flags_areas_extra.
15419 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15420 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15421 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15422 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15423 (FRAME_X_LEFT_FRINGE_WIDTH):
15424 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15425 (FRAME_X_RIGHT_FRINGE_WIDTH):
15426 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 15427
048addec 15428 * widget.c: Use renamed symbols.
9f7e52b4 15429
f63fd14e 15430 * window.c: Comment fixes. Use renamed symbols.
048addec 15431 (coordinates-in-window-p): Doc fix.
fa336b91 15432
f63fd14e 15433 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 15434
048addec 15435 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 15436
048addec 15437 * xfns.c: Use renamed symbols.
89512fcd 15438
f63fd14e 15439 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
15440 (fringe_bitmap_type): Renamed from bitmap_type.
15441 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15442 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15443 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 15444
f63fd14e 15445 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
15446 (fringes_extra): Renamed from flags_areas_extra.
15447 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15448 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15449 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15450 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15451 (FRAME_X_LEFT_FRINGE_WIDTH):
15452 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15453 (FRAME_X_RIGHT_FRINGE_WIDTH):
15454 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15455
154562001-11-15 Jason Rumney <jasonr@gnu.org>
15457
15458 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15459 work for most menu items. From David Ponce
15460 <david.ponce@wanadoo.fr>.
15461
154622001-11-15 Gerd Moellmann <gerd@gnu.org>
15463
15464 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15465 Some x_set_* function expect to be called even if old and new
15466 value are equal.
15467
15468 * xdisp.c (build_desired_tool_bar_string): Accept zero
15469 tool_bar_button_relief.
15470
15471 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15472
15473 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15474
15475 * xterm.c (x_draw_bar_cursor): If the background color of the
15476 glyph under the cursor equals the frame's cursor color, use
15477 the glyph's foreground color for drawing the bar cursor.
15478
15479 * dispnew.c (direct_output_forward_char): Fix character/byte
15480 position comparison.
7d18891d 15481
048addec 154822001-11-15 Miles Bader <miles@gnu.org>
d2936d21 15483
048addec
JD
15484 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15485 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15486 Update arguments to find_field.
15487 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15488 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15489 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15490 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 15491
048addec 154922001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 15493
048addec 15494 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 15495
048addec
JD
15496 * dispextern.h (image_background, image_background_transparent):
15497 Conditionalize on HAVE_X_WINDOWS.
7d18891d 15498
048addec 154992001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 15500
048addec 15501 * print.c (Fprin1_to_string): Doc fix.
7d18891d 15502
048addec 15503 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 15504
048addec 15505 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 15506
048addec 15507 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 15508
048addec 15509 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 15510
048addec 15511 * eval.c (syms_of_eval): Doc fix.
7d18891d 15512
048addec 15513 * coding.c (syms_of_coding): Doc fix.
7d18891d 15514
048addec 15515 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 15516
048addec 15517 * dispnew.c (syms_of_display): Doc fix.
9474c847 15518
048addec 15519 * category.c (Fget_unused_category): Doc fix.
9474c847 15520
048addec 15521 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 15522
048addec 155232001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 15524
048addec 15525 * print.c (prin1, print): Doc fix.
e3059a5d 15526
048addec 155272001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 15528
048addec
JD
15529 * fontset.h: Remove declarations of variables
15530 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 15531
048addec
JD
15532 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15533 `Vclip_large_size_font'.
eae936e2 15534
048addec 155352001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 15536
048addec 15537 * w32fns.c: Doc fix.
ddb67bdc 15538
048addec 155392001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 15540
048addec 15541 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 15542
048addec 15543 * fns.c: Doc fix.
6e1b91d7 15544
048addec 15545 * emacs.c: Doc fix.
1c1d3d69 15546
048addec 15547 * coding.c: Doc fix.
1c1d3d69 15548
048addec
JD
15549 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15550 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15551 `new style' [w/`doc:' keyword].
b6f4c7ba 15552
048addec 155532001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 15554
048addec
JD
15555 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
15556 LeaveNotify events. Only FocusIn and FocusOut do that now.
15557 (x_display_and_set_cursor): Do display hollow cursors in active
15558 minibuffer windows when they are not selected.
b6f4c7ba 15559
048addec 155602001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 15561
048addec 15562 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
15563 * w32term.c: Change doc-string comments to `new style'
15564 [w/`doc:' keyword]. Doc fixes.
a89f435d 15565
048addec
JD
15566 * w32fns.c: Don't define max.
15567 (Fx_open_connection): Only execute once.
a4cd0cd7 15568
048addec 155692001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 15570
048addec
JD
15571 * ccl.c: Change macros to use do-while block instead of if-else.
15572 Use braces to follow GNU Coding Standards.
eafb659a 15573
048addec 155742001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 15575
048addec 15576 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 15577
048addec 15578 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 15579
048addec
JD
15580 * insdel.c (replace_range): Use adjust_markers_for_replace
15581 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 15582
78819ebb 15583 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 15584
048addec
JD
15585 * textprop.c (set_text_properties_1): New subroutine
15586 broken out of set_text_properties.
15587 (set_text_properties): Use set_text_properties_1.
91823618 15588
048addec
JD
15589 * intervals.c (graft_intervals_into_buffer):
15590 Use set_text_properties_1 to clear out properties.
91823618 15591
048addec
JD
15592 * search.c (Freplace_match): Use replace_range to insert
15593 and delete. Don't request property inheritance from
15594 surrounding text.
86928dfb 15595
048addec 155962001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 15597
048addec 15598 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 15599 vertical fonts. Allow them if face name is explicitly specified.
048addec 15600 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 15601
048addec 156022001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 15603
048addec
JD
15604 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
15605 instead of malloc/free.
a78e0303 15606
048addec 156072001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 15608
048addec
JD
15609 * xfaces.c (merge_face_vectors): Use braces to follow GNU
15610 Coding Standards.
15611 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 15612
048addec 15613 * buffer.c (Fbury_buffer): Likewise.
0c99b139 15614
048addec 15615 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 15616
048addec
JD
15617 * coding.c (encode_coding): Use precomputed value of `src'.
15618 (encode_coding): Remove unused variable `src_end'.
15619 (code_convert_region): Remove unused variables `count'.
830ddd77 15620
048addec 156212001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 15622
048addec
JD
15623 * w32term.c (x_display_and_set_cursor): Do not move system caret
15624 if cursor_glyph is NULL.
55c6d645 15625
048addec 156262001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 15627
048addec 15628 * keymap.c (access_keymap): Fix compilation error.
5de38842 15629
048addec 156302001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 15631
048addec 15632 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 15633
048addec 156342001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 15635
048addec
JD
15636 * intervals.c (graft_intervals_into_buffer):
15637 Remove #ifdef'd-out code.
15638 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 15639
048addec
JD
15640 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
15641 code (eval-current-buffer).
15642 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 15643
048addec 156442001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 15645
048addec 15646 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 15647
048addec 156482001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 15649
048addec 15650 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 15651
048addec
JD
15652 * keyboard.c (make_lispy_event): Check integerness and fix
15653 Lisp_Object/int mixup.
17893c65 15654
048addec 156552001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 15656
048addec 15657 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 15658
048addec
JD
15659 * fontset.c (fontset_font_pattern): Remove unused variable
15660 `family_registry'.
d5360cc7 15661
048addec 15662 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 15663
048addec 156642001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 15665
048addec 15666 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 15667
048addec
JD
15668 * buffer.c (Fkill_buffer): Don't delete auto save file
15669 if buffer is modified.
d9d54213 15670
048addec 156712001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 15672
048addec
JD
15673 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
15674 CHECK_NUMBER_CDR.
b116830b 15675
048addec 156762001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 15677
048addec 15678 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 15679
048addec 156802001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 15681
048addec 15682 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 15683
048addec 156842001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 15685
048addec 15686 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 15687
048addec 156882001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 15689
048addec
JD
15690 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
15691 the program image directly.
982f6c7e 15692
048addec 156932001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 15694
048addec 15695 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 15696
048addec 156972001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 15698
048addec
JD
15699 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
15700 and CHECK_BUFFER.
d31053f9 15701
048addec
JD
15702 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
15703 (record_char): Likewise.
d31053f9 15704
048addec
JD
15705 * keyboard.c (make_lispy_event): Don't insist a drag event must
15706 move to a different buffer position. Instead, check for moving at
15707 least double_click_fuzz.
982f6c7e 15708
048addec 15709 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 15710
048addec 15711 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 15712
048addec
JD
15713 * indent.c (current_column_1, Fmove_to_column): Separate the code
15714 for display-table glyphs from the code for buffer text, to fix
15715 bugs in the former.
830047fd 15716
048addec 157172001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 15718
048addec
JD
15719 * buffer.c (Fbuffer_local_value): New function.
15720 (syms_of_buffer): Defsubr it.
2df5238c 15721
048addec
JD
15722 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
15723 value of `cursor-in-non-selected-windows'.
4e397688 15724
048addec
JD
15725 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
15726 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
15727 (syms_of_xdisp): Initialize it.
48b0f3ae 15728
048addec 157292001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 15730
048addec 15731 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 15732
048addec
JD
15733 * coding.c: Change doc-string comments to `new style' [w/`doc:'
15734 keyword].
3ecaf7e5 15735
048addec
JD
15736 * eval.c (top_level_value, top_level_set): Remove commented and
15737 #ifdef'd-out code.
15738 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 15739
048addec 157402001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 15741
048addec 15742 * xfns.c: Include unistd.h, if it exists.
8db2e33b 15743
048addec 15744 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 15745
048addec 15746 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 15747
048addec 157482001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 15749
048addec
JD
15750 * lisp.h (CHECK_STRING_CAR): New macro.
15751 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
15752 treating XCAR and XCDR as lvalues.
15753 (openp): Use CHECK_STRING_CAR.
15754 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 15755
048addec 157562001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 15757
048addec
JD
15758 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
15759 (SIGMASKTYPE): Define.
1b1acc13 15760
048addec 15761 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 15762
048addec 157632001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 15764
048addec
JD
15765 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
15766 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
15767 Fix typos in comments.
6cb16f95 15768
048addec
JD
15769 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
15770 and #ifdef'd-out code.
15771 Fix and reindent comments.
6cb16f95 15772
048addec 15773 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 15774
048addec
JD
15775 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
15776 argument `i' in macros.
6cb16f95 15777
048addec
JD
15778 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
15779 `i' in macros.
7e9d3c2f 15780
048addec
JD
15781 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
15782 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
15783 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
15784 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
15785 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
15786 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
15787 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
15788 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
15789 in macros.
7e9d3c2f 15790
048addec
JD
15791 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
15792 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
15793 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
15794 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
15795 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
15796 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
15797 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
15798 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
15799 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
15800 (remove unused second argument).
7e9d3c2f 15801
048addec 158022001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15803
048addec
JD
15804 * syntax.c (describe_syntax): New wrapper.
15805 (Finternal_describe_syntax_value): Rename from describe_syntax.
15806 Don't insert space at front and \n at the end.
15807 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 15808
048addec
JD
15809 * regex.c (re_wctype): Try to fix some warnings.
15810 (regcomp, regexec): Don't forget the __restrict.
9ba48103 15811
048addec 158122001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 15813
048addec 15814 * textprop.c (Fget_char_property): Doc fix.
9ba48103 15815
048addec 158162001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 15817
048addec 15818 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 15819
048addec 15820 * data.c (Fsetq_default): Ditto.
c22e59e1 15821
048addec 15822 * callint.c (Finteractive): Ditto.
9271ed2c 15823
048addec 158242001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15825
048addec
JD
15826 * macros.c: Don't include keymap.h any more.
15827
158282001-11-01 Richard M. Stallman <rms@gnu.org>
15829
15830 * data.c (Fmake_local_variable): Doc fix.
15831
15832 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
15833 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 15834
048addec 15835 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
15836 bindings along with or instead of the buffer local map.
15837 Make the overriding maps override what they should.
15838
f00691a3 158392001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
15840
15841 * window.c (grow_mini_window): Fix typo in comment.
15842
27188d11
GM
158432001-11-01 Gerd Moellmann <gerd@gnu.org>
15844
7b49b9d2
GM
15845 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
15846 (XTset_vertical_scroll_bar): Likewise.
15847
43f7c3ea
GM
15848 * xfns.c (x_build_heuristic_mask): Use four_corners_best
15849 instead of IMAGE_BACKGROUND.
c22e59e1 15850
b350c2e5
GM
15851 * xfns.c (four_corners_best): Reindent.
15852
c22e59e1 15853 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
15854 Handle :box so that it is possible to specify sexprs.
15855
bf00d461
EZ
158562001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
15857
15858 * s/hpux11.h: New file.
15859
f00691a3 158602001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 15861
2b209b97
PJ
15862 * emacs.c (USAGE1): Show command line option --no-window-system
15863 instead of --no-windows in usage.
15864 (standard_args): Rename --no-windows to --no-window-system.
15865 (bug_reporting_address): Follow Emacs coding conventions.
15866
9dbc9081
PJ
15867 * eval.c (Fcommandp): Doc fix.
15868 Change doc-string comments to `new style' [w/`doc:' keyword].
15869
4e10df59
PJ
15870 * frame.c (Fframe_live_p): Doc fix.
15871
15872 * buffer.c (selective-display-ellipses): Doc fix.
15873
dd387b25
GM
158742001-10-31 Gerd Moellmann <gerd@gnu.org>
15875
fe957e65
GM
15876 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
15877
dd387b25
GM
15878 * xfaces.c (realize_x_face): If C is not a single-byte character,
15879 set the face's colors_copied_bitwise_p instead of the defaulted_p
15880 members which have a different meaning.
15881 (free_face_colors): Do nothing for a face whose colors have been
15882 copied bitwise.
15883
c22e59e1 15884 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 15885
f00691a3 158862001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 15887
687784e8
PJ
15888 * marker.c, mocklisp.c: Change doc-string comments to `new style'
15889 [w/`doc:' keyword].
2e1280f8 15890
b9d9a9b9
GM
158912001-10-31 Gerd Moellmann <gerd@gnu.org>
15892
15893 * fns.c (require_unwind): Return Lisp_Object.
15894
f00691a3 158952001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 15896
fa1361cb
PJ
15897 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
15898 (last-input-char): Revert doc-string to be the same as the
15899 doc-string of `last-input-event'.
15900
6c465a15 15901 * xdisp.c: Fix typos in comments.
48400103 15902
eafa3196
GM
159032001-10-31 Gerd Moellmann <gerd@gnu.org>
15904
15905 * window.c (grow_mini_window): Handle case that the root
15906 window is already smaller than the nominal mininum height.
15907
747d3f2a
SM
159082001-10-30 Stefan Monnier <monnier@cs.yale.edu>
15909
bf9bb76f
SM
15910 * emacs.c (main): Don't call keys_of_macros any more.
15911
15912 * lisp.h (keys_of_macros): Remove.
15913
15914 * macros.c (keys_of_macros): Remove.
15915
747d3f2a
SM
15916 * xfaces.c (Fface_attribute_relative_p): Declare args.
15917
5e905a57
JR
159182001-10-30 Jason Rumney <jasonr@gnu.org>
15919
15920 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
15921 (enum_font_cb2): Ignore fonts with vertical orientation.
15922
3a426197
RS
159232001-10-30 Richard M. Stallman <rms@gnu.org>
15924
15925 * keyboard.c (Finput_pending_p): Doc fix.
15926
a742d646
GM
159272001-10-30 Gerd Moellmann <gerd@gnu.org>
15928
259cf6bc
GM
15929 * xterm.c (x_after_update_window_line): Don't run the code
15930 clearing in borders for rows whose visible height is 0.
15931
3f99f948
GM
15932 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
15933 resized_p flag is set. If not set, use the much less flickering
15934 method previously used.
15935
15936 * dispnew.c (change_frame_size_1): Set frame's resized_p.
15937
15938 * frame.h (struct frame) <resized_p>: New member.
15939
b4a3be43
GM
15940 * lread.c (to_multibyte): Ensure read_buffer is at least twice
15941 as large as the number of bytes to convert.
747d3f2a 15942
a742d646
GM
15943 * lread.c (to_multibyte): New function.
15944 (read1): Use it.
15945
cacbb9e9
EZ
159462001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
15947
15948 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
15949
99cb6b2f
GM
159502001-10-30 Gerd Moellmann <gerd@gnu.org>
15951
327f42ee 15952 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
15953 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
15954 if the row's fill_line_p is set and drawing the last glyph with
15955 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 15956
99cb6b2f
GM
15957 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
15958
8e8223e2
SM
159592001-10-29 Stefan Monnier <monnier@cs.yale.edu>
15960
15961 * xmenu.c: Include coding.h and charset.h.
15962 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
15963 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
15964 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
15965 Explicitly set wv->help. Use `TRUE' rather than `True'.
15966 (menu_help_callback): Use empty_string.
15967
15968 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
15969 (Fx_popup_dialog): Explicitly init f.
15970 (w32_menu_display_help): Use empty_string.
15971
4d083a8f
RS
159722001-10-29 Richard M. Stallman <rms@gnu.org>
15973
b2304472
RS
15974 * fns.c (Frequire): Detect recursive try to require the same
15975 feature 3 or more levels deep, and get error.
15976 (require_unwind): New subroutine.
15977 (require_nesting_list): New variable.
15978 (syms_of_fns): Init and staticpro it.
15979
4d083a8f
RS
15980 * print.c (print_object): Clarify indication of insertion type.
15981
2fe41216
EZ
159822001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
15983
90480000
EZ
15984 * coding.c (syms_of_coding): Document that locale-coding-system is
15985 used for decoding input on X.
15986
2fe41216
EZ
15987 * window.c (Fscroll_left, Fscroll_right): Doc fix.
15988
f00691a3 159892001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
15990
15991 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
15992 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
15993
60ebcfe8
GM
159942001-10-29 Gerd Moellmann <gerd@gnu.org>
15995
9a7bdceb
GM
15996 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
15997 use NO_CURSOR if cursor_in_non_selected_windows is false.
15998
3f08fcd2
GM
15999 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16000 the slant attribute if FRAME is t.
16001
0ccfdad2
GM
16002 * xfns.c (x_set_internal_border_width): Set frame garbaged
16003 when X window doesn't exist yet.
16004
ef253080
GM
16005 * xterm.c (x_after_update_window_line): Clear internal border
16006 in different circumstances.
b116830b 16007
60ebcfe8
GM
16008 * xterm.c (XTread_socket) <KeyPress>: Don't use
16009 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16010 <handa@etl.go.jp>.
16011
73d25f9c
EZ
160122001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16013
16014 * m/ibms390.h: New file. From Adam Thornton
16015 <athornton@sinenomine.net>.
16016
cac1daf0
GM
160172001-10-28 Gerd Moellmann <gerd@gnu.org>
16018
053b3256 16019 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 16020
cac1daf0
GM
16021 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16022 a loop counter.
16023
f00691a3 160242001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 16025
f9711de4 16026 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 16027
4707d2d0
PJ
16028 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16029 keyword].
16030 Fix typos in comments.
b116830b 16031
d883731c
PJ
16032 * emacs.c (bug_reporting_address): New function.
16033 Use it when displaying usage message.
16034
04012254
PJ
16035 * minibuf.c (read_minibuf): Remove unused external declaration of
16036 variable `Qread_only'.
16037
13b1a09c
PJ
16038 * keymap.c (access_keymap): Remove unused variable `charset'.
16039
5bbf4378
MB
160402001-10-28 Miles Bader <miles@gnu.org>
16041
16042 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16043 Remove #ifdef'd-out code.
16044 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16045 (syms_of_xfaces): Initialize them.
16046
1ce1e4ee
JR
160472001-10-27 Jason Rumney <jasonr@gnu.org>
16048
16049 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16050 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16051 position using the system caret.
16052
16053 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16054 (w32_system_caret_height, w32_system_caret_x)
16055 (w32_system_caret_y): New variables for tracking system caret.
16056 (w32_initialize): Initialize them.
c2d53558 16057 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 16058
c2d53558
SM
16059 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16060 New messages types.
1ce1e4ee
JR
16061
16062 * w32term.c (note_mouse_highlight): Clear old help_echo.
16063
f00691a3 160642001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 16065
bb4600a4
PJ
16066 * xterm.c: Fix typo in a comment.
16067
7db35a48
PJ
16068 * emacs.c: Fix typos in comments.
16069 Remove unnecessary spaces.
16070 Change doc-string comments to `new style' [w/`doc:' keyword].
16071 (USAGE2): Fix typos in usage string.
16072
a7248e4f
PJ
16073 * xterm.c: Fix typo in a comment.
16074
4e30ce42
PJ
16075 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16076 emacs.c.
16077
62725a92
GM
160782001-10-27 Gerd Moellmann <gerd@gnu.org>
16079
798dbe1f 16080 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 16081 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
16082 farther backward when target_y was not reached.
16083
62725a92
GM
16084 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16085 Display errno only if non-zero.
16086 (sound_warning): New function.
16087 (vox_configure): Don't treat failing to set sample rate as error.
16088 (various places): Improve error messages.
16089
d4e34d24
EZ
160902001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16091
944e6f60
EZ
16092 * fileio.c (Faccess_file): Run the argument filename through
16093 Fexpand_file_name, before using it.
16094
d4e34d24
EZ
16095 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16096 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16097
38d2af0c
GM
160982001-10-26 Gerd Moellmann <gerd@gnu.org>
16099
da80a8d5
GM
16100 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16101
38d2af0c
GM
16102 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16103 Fix clearing in the case of scroll bars on the right.
c2d53558 16104
45de4a6f 161052001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
16106
16107 * w32gui.h (XImage): Add a dummy typedef.
16108
fbd5ceb2
GM
161092001-10-26 Gerd Moellmann <gerd@gnu.org>
16110
c2d53558 16111 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 16112
b23236fb
EZ
161132001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16114
16115 * frame.c (Fframe_parameter): Fix last change.
16116
5d991fc4
EZ
16117 * fileio.c: Revert last change (which removed old commented-out
16118 version of expand-file-name). Add a comment that explains why
16119 this old version should not be removed.
16120
879eadc3
GM
161212001-10-25 Gerd Moellmann <gerd@gnu.org>
16122
75700ff2
GM
16123 * frame.c (Fframe_parameter): Fix a bug whereby some
16124 ``artificial'' frame parameters, like `minibuffer' were not
16125 obtained by calling Fframe_parameters.
16126
dfe92a6a
GM
16127 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16128 cursor differently.
16129
879eadc3
GM
16130 * xdisp.c (move_it_vertically_backward): Compute line height
16131 differently. Add heuristic to try to be more compatible to 20.x.
16132
e1010ebe
SM
161332001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16134
d73a471b
SM
16135 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16136
d6da5a06
GM
16137 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16138 boolean.
e1010ebe 16139
f66bd220
MB
161402001-10-25 Miles Bader <miles@gnu.org>
16141
16142 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16143 BG is a pointer to a structure, not a structure.
16144 (gif_format, png_format): Add missing commas.
16145
d436d538
RS
161462001-10-24 Richard M. Stallman <rms@gnu.org>
16147
16148 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 16149 (syms_of_xfaces): Defsubr it.
d436d538 16150
f00691a3 161512001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
16152
16153 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16154 variable `area'.
16155
f00691a3 161562001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 16157
c2d53558 16158 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 16159
e2a57b34
MB
161602001-10-25 Miles Bader <miles@gnu.org>
16161
16162 * dispextern.h (struct image): Add `background',
16163 `background_valid', and `background_transparent' fields.
16164 (image_background, image_background_transparent): New declarations.
16165 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16166 * xfns.c (image_background, image_background_transparent)
16167 (four_corners_best): New functions.
c2d53558 16168 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
16169 (gs_format): Add `:background' entry.
16170 (lookup_image): Set IMG's background color if specified.
16171 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16172 when appropriate.
16173 (x_clear_image_1): Reset `background_valid' and
16174 `background_transparent_valid' fields.
16175 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16176 calculating it here. Set IMG's background_transparent field.
16177 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16178 (enum png_keyword_index): Add PNG_BACKGROUND.
16179 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16180 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16181 (enum gif_keyword_index): Add GIF_BACKGROUND.
16182 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 16183 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
16184 Pre-calculate image background color where necessary.
16185 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16186 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16187 color to use for image glyph reliefs.
16188
b547b6e8
GM
161892001-10-24 Gerd Moellmann <gerd@gnu.org>
16190
d9e3b8c6
GM
16191 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16192 in full-width rows.
c2d53558 16193
b547b6e8
GM
16194 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16195 Fix clearing of area not covered by scroll bar.
16196
f00691a3 161972001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
16198
16199 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16200 and `real_start'.
c2d53558 16201 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
16202 (glyph_rect): Remove unused variable `area'.
16203
76cb5e06
GM
162042001-10-24 Gerd Moellmann <gerd@gnu.org>
16205
bdbdebff 16206 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
16207
16208 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16209 (row_containing_pos): Take additional argument DY.
16210 Treat rows ending in middle of char differently.
62e33982
GM
16211 (display_line): Handle tabs on window systems differently.
16212
16213 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16214 with additional argument.
16215
16216 * dispextern.h (row_containing_pos): Adjust prototype.
16217
76cb5e06
GM
16218 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16219 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16220 (try_window_id, try_window_reusing_current_matrix)
16221 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 16222 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 16223
f00691a3 162242001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 16225
c9e60620
PJ
16226 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16227 gnuemacs).
16228 (HAVE_BOXES): Fix typo in comment.
16229 (push_menu_pane): Fix typo in comment.
16230
3b552d56
PJ
16231 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16232 of `Qwhen'.
16233 (single_display_prop_string_p): Remove unused local declarations
16234 of `Qwhen' and `Qmargin'.
16235 (string_buffer_position): Remove unused variable `around'.
16236 (store_frame_title): Remove unused variable `width'.
16237
15c565ac
PJ
16238 * window.c: Don't define max.
16239 (coordinates_in_window): Remove unused variable `uy'.
16240
a8818eb9
PJ
16241 * widget.c: Don't define max.
16242
996fee11
PJ
16243 * process.c: Don't define max.
16244 (create_process): Remove unused variable `buffer'.
16245
496e1a5b
GM
162462001-10-23 Gerd Moellmann <gerd@gnu.org>
16247
c2d53558 16248 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 16249
5905ae8b
EZ
162502001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16251
16252 * xfaces.c (Finternal_set_lisp_face_attribute)
16253 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16254 frame is on a windowed display.
16255
24db49fb
GM
162562001-10-23 Gerd Moellmann <gerd@gnu.org>
16257
c2d53558
SM
16258 * dispnew.c (sync_window_with_frame_matrix_rows):
16259 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
16260 of marginal areas.
16261
c2d53558 16262 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 16263
f0487f05
EZ
162642001-10-23 Andreas Schwab <schwab@suse.de>
16265
16266 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16267 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16268
f0a48a01
GM
162692001-10-23 Gerd Moellmann <gerd@gnu.org>
16270
c2d53558 16271 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
16272 REAL_END. Notice if cursor gets overwritten.
16273 (notice_overwritten_cursor): Take X positions as parameters.
16274 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16275 around call to x_draw_glyphs.
16276
f00691a3 162772001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 16278
fc11dff0
PJ
16279 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16280 instead of C) and usage.
a50a10a0 16281
fc11dff0
PJ
16282 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16283 of C) and usage.
a50a10a0
PJ
16284
16285 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16286 `left', `max_width' and `max_height'.
16287
8738febd
GM
162882001-10-23 Gerd Moellmann <gerd@gnu.org>
16289
16290 * xdisp.c (display_line): For a tab continued to the next line,
16291 set row's ends_in_middle_of_char_p.
16292
653c329b
GM
162932001-10-22 Gerd Moellmann <gerd@gnu.org>
16294
16295 * xdisp.c (display_line): Fix computation of continuation lines
16296 width for TABs.
16297
f00691a3 162982001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 16299
7ba51063
PJ
16300 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16301 `Qlaplace'.
16302
f958c5ac
PJ
16303 * fileio.c: Remove unused code.
16304
eb360291
MB
163052001-10-22 Miles Bader <miles@gnu.org>
16306
16307 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16308 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16309 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16310
98515cf0
JR
163112001-10-21 Jason Rumney <jasonr@gnu.org>
16312
16313 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16314
93026d88
EZ
163152001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16316
16317 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16318 (Finsert_string): Avoid the multi-line string literals warning.
16319
c9a95b79
MB
163202001-10-22 Miles Bader <miles@gnu.org>
16321
16322 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16323 (Fdocumentation): Don't use it.
16324 (syms_of_doc): Don't initialize it.
16325
16326 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16327 * print.c (Fwith_output_to_temp_buffer): Likewise.
16328 * window.c (Fsave_window_excursion): Likewise.
c2d53558 16329 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 16330 (Fsave_restriction): Likewise.
c2d53558
SM
16331 * eval.c (Frun_hooks, Frun_hook_with_args)
16332 (Frun_hook_with_args_until_failure)
16333 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16334 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16335 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
16336 (Funwind_protect, Fcondition_case): Likewise.
16337 * coding.c (Ffind_operation_coding_system): Likewise.
16338 * keyboard.c (Ftrack_mouse): Likewise.
16339
a3b10252
MB
163402001-10-21 Miles Bader <miles@gnu.org>
16341
c2d53558 16342 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
16343 (Fmake_hash_table): Add usage: string to doc string.
16344 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 16345 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
16346 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16347 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16348 (Fml_prefix_argument_loop): Likewise.
16349
f00691a3 163502001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 16351
c2d53558 16352 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 16353
c6f73eec
PJ
16354 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16355 style' [w/`doc:' keyword].
16356
16357 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16358 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16359 comments to `new style' [w/`doc:' keyword].
16360
3cf3436e
JR
163612001-10-21 Jason Rumney <jasonr@gnu.org>
16362
16363 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16364
c169b8f1
JR
16365 * w32term.c (remember_mouse_glyph): New function.
16366 (w32_mouse_position): Use it.
16367 (note_mouse_movement): If the mouse moved off the glyph, remember
16368 its new position.
c2d53558 16369
4fdd691b
JR
16370 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16371 (w32_display_info): Add mouse_face_overlay.
16372
c169b8f1
JR
16373 * w32term.c (notice_overwritten_cursor): Renamed from
16374 note_overwritten_text_cursor. Rewritten to take glyph widths into
16375 account.
16376 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16377 (fast_find_string_pos): New function.
16378 (fast_find_position): Return the correct vpos. Add parameter
16379 STOP. In the final row, stop before glyphs having STOP as object.
16380 Don't consider glyphs that are not from a buffer.
16381 (fast_find_position) [0]: Add a presumably more correct version
16382 for after 21.1.
16383 (expose_window_tree, expose_frame): Don't compute intersections here.
16384 (expose_window): Do it here instead.
16385 (expose_window_tree, expose_window, expose_line): Return 1 when
16386 overwriting mouse-face.
16387 (expose_window): If W is the window currently being updated, mark
16388 the frame garbaged.
16389 (expose_frame): If mouse-face was overwritten, redo it.
16390 (x_use_underline_position_properties): New variable.
16391 (syms_of_xterm): DEFVAR_BOOL it.
16392 (x_draw_glyph_string): Add comment to use it in future.
16393 (x_draw_glyph_string): Restore clipping after drawing box.
16394 Fix a computation of the underline position.
16395 (w32_get_glyph_string_clip_rect): Minor cleanup.
16396 (x_fill_stretch_glyph_string): Remove an assertion.
16397 (x_produce_glyphs): Don't convert multibyte characters
16398 to unibyte characters in unibyte buffers.
16399 (cursor_in_mouse_face_p): New function.
16400 (x_draw_stretch_glyph_string): Use it to choose a different GC
16401 when drawing a cursor within highlighted text. Don't draw
16402 background again if it has already been drawn.
16403 (x_draw_glyph_string_box): Don't draw a full-width
16404 box just because the glyph row's full_width_p flag is set.
16405 (x_draw_glyphs): Fix computation of rightmost x for
16406 full-width rows.
16407 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16408 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 16409 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
16410 (x_update_window_end): Handle overwritten mouse face
16411 also for tool bar windows.
16412 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16413 DRAW is DRAW_IMAGE_RAISED.
16414 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
16415 actually redrawn. Make the function static.
16416 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
16417 optimize away highlighting if we pass over that same overlay again.
16418 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16419 to detect a case where we have to highlight a different region
16420 despite not having left the currently highlighted region.
16421 Set mouse_face_overlay in the x_display_info. Avoid changing the
16422 mouse pointer shape when show_mouse_face has already done it, or
16423 there is no need. Handle mouse-face and help-echo in strings.
16424 (glyph_rect): New function.
16425 (w32_mouse_position): Use it to raise the threshold for mouse
16426 movement event generation.
16427 (w32_initialize_display_info): Initialize the x_display_info's
16428 mouse_face_overlay.
16429 (w32_set_vertical_scroll_bar): Don't clear a zero height
16430 or width area.
16431 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16432 a widget to zero height.
16433
3cf3436e 16434 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 16435 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
16436 equivalents in menu_items.
16437 (w32_menu_show): Don't overwrite an item's name with its key
16438 description in case the description is a multibyte string.
16439 (single_submenu): Some cleanup.
16440
16441 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16442 (postprocess_image): New function.
16443 (lookup_image): Call it for all image types except PostScript.
16444 (x_kill_gs_process): Call postprocess_image.
16445 (tiff_error_handler, tiff_warning_handler): New functions.
16446 (tiff_load): Install them as handlers.
16447 (x_kill_gs_process): Recognize if someone has cleared the image
16448 cache under us.
16449 (valid_image_p): Protect better against invalid image
16450 specifications. Previous code could signal an error.
16451 (Fx_hide_tip, Fshow_tip): Doc fix.
16452 (Fv_max_tooltip_size): New variable.
16453 (syns_of_xfns): DEFVAR_LISP it.
16454 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 16455 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
16456 window_width. Use a maximum tooltip size specified by
16457 Vx_max_tooltip_size, if that has valid contents.
16458 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16459 Make sure the tooltip is completely visible.
16460 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16461 (Fx_create_frame): Adjust the frame's height for presence
16462 of the tool bar before calling x_figure_window_size.
16463 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16464 when the window gets smaller.
16465 (x_set_foreground_color): Set frame's cursor_pixel.
16466 (x_set_foreground_color, x_set_background_color): Cleaned up.
16467 (x_set_font): Handle case of x_new_fontset returning the same name
16468 as before, although there was a change in fontsets.
16469
386ca361
MB
164702001-10-21 Miles Bader <miles@gnu.org>
16471
c2d53558 16472 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
16473 (Flogxor): Add usage: string to doc string.
16474 * charset.c (Fstring): Likewise.
16475 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16476 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16477
f00691a3 164782001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 16479
03be2694
PJ
16480 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16481
16482 * alloc.c: Reindent DEFUNs with doc: keywords.
16483
16484 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16485
14ff1ee0
PJ
16486 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16487 keyword].
16488
2f147815 16489See ChangeLog.9 for earlier changes.
6922b018
KH
16490
16491;; Local Variables:
49b3bd82 16492;; coding: iso-2022-7bit
6922b018 16493;; End:
2a34a036 16494
2f147815 16495 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16496 Copying and distribution of this file, with or without modification,
16497 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
16498
16499;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4