(Fmodify_frame_parameters):
[bpt/emacs.git] / src / ChangeLog
CommitLineData
23873c96
JB
12005-06-21 Juanma Barranquero <lekktu@gmail.com>
2
3 * fns.c (Fchar_table_range):
4 * process.c (Fmake_network_process): Fix spellings.
5
b7d1f38f
KS
62005-06-20 Kim F. Storm <storm@cua.dk>
7
8 * fns.c (Fsort): Doc fix.
9
b4e49aee
MB
102005-06-20 Miles Bader <miles@gnu.org>
11
12 * xfaces.c (Qvertical_divider): New variable.
13 (realize_basic_faces): Realize its face.
14 (syms_of_xfaces): Initialize it.
15
16 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
17
18 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
19 window-separator on ttys using `vertical-divider' face by default.
20
b7da00ba
RS
212005-06-17 Richard M. Stallman <rms@gnu.org>
22
23 * xdisp.c (get_next_display_element): Reverse
24 test of Vshow_nonbreak_escape.
25
26 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
27 (Ftty_no_underline): New function.
28 (syms_of_term): defsubr it.
b7d1f38f 29
b7da00ba
RS
30 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
31
32 * dispnew.c (spec_glyph_lookup_face): New function.
33 (build_frame_matrix_from_leaf_window): Use it.
34
35 * dispextern.h (spec_glyph_lookup_face): Add declaration.
36
37 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
38
392005-06-12 Richard M. Stallman <rms@gnu.org>
40
41 * keyboard.c (read_char): After catching a longjmp,
42 call restore_getcjmp.
43
289824a3
JB
442005-06-17 Juanma Barranquero <lekktu@gmail.com>
45
46 * xselect.c (lisp_data_to_selection_data): Fix spelling.
47
95085023
YM
482005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
49
50 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
51 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
52 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
53 events.
54 (XTread_socket): Don't pass keyboard events with the option
55 modifier to the system when Vmac_command_key_is_meta is nil or
56 Vmac_option_modifier is non-nil.
57 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
58 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
59 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
60 handler function.
61 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
62 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
63 handler part to mac_handle_mouse_event.
64
4a9308b8
JB
652005-06-14 Juanma Barranquero <lekktu@gmail.com>
66
67 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
68 NEW-ALIAS and BASE-VARIABLE, respectively.
69
5aa6db57
SM
702005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
73 (get_phys_cursor_geometry, format_mode_line_unwind_data)
74 (get_line_height_property, x_produce_glyphs): Remove unused vars.
75
76 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
77
0e0dddda
EZ
782005-06-13 Eli Zaretskii <eliz@gnu.org>
79
80 * w32term.c (x_use_underline_position_properties): New variable.
81 (x_draw_glyph_string): Remind in a comment to change doc string of
82 x-use-underline-position-properties if/when underline positioning
83 is implemented.
84 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
85 and initialize it to nil.
86
7f2b4738
JR
872005-06-12 Jason Rumney <jasonr@gnu.org>
88
89 * w32fns.c (NEWOPENFILENAME): New struct.
90 (Fx_file_dialog): Use it to trick the system into giving us up to
91 date dialogs on systems that are documented to support it.
92 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
93
a1e8cad6
EZ
942005-06-12 Eli Zaretskii <eliz@gnu.org>
95
96 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
97 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
98
099a3eea
EZ
992005-06-11 Eli Zaretskii <eliz@gnu.org>
100
2e09fef1
EZ
101 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
102 to CreateDIBSection to avoid a compiler warning.
103 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
104 warning.
105 (png_load): Cast return values of fn_png_create_read_struct and
106 fn_png_create_info_struct, to avoid compiler warnings on W32.
107 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
108 to avoid compiler warnings.
109 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
110 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
111 avoid a compiler warning.
112 (tiff_load): Cast return values of fn_TIFFOpen and
113 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
114 to IMAGE_BACKGROUND to avoid a compiler warning.
115 (gif_load): Cast return values of fn_DGifOpenFileName and
116 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
117 IMAGE_BACKGROUND to avoid a compiler warning.
118 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
119 before redefining.
120
099a3eea
EZ
121 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
122 the call to CreateDIBSection, to avoid a compiler warning.
123
d11f8e1a
JR
1242005-06-11 Jason Rumney <jasonr@gnu.org>
125
126 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
127 minibuffer.
128 * macfns.c (Fx_file_dialog): Likewise.
129
cd4344a3
EZ
1302005-06-10 Eli Zaretskii <eliz@gnu.org>
131
132 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
133
578c1340
JB
1342005-06-10 Juanma Barranquero <lekktu@gmail.com>
135
136 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
137 * w32fns.c (syms_of_w32fns): Fix spellings.
138
4162f25f
EZ
1392005-06-10 Eli Zaretskii <eliz@gnu.org>
140
141 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
142 `verbose'; print diagnostic messages only if it is non-zero.
143 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
144 in the environment.
145 (copy_executable_and_dump_data): Print section names with %.8s.
146
121c59a3
MY
1472005-06-10 Masatake YAMATO <jet@gyve.org>
148
149 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
150 when mouse_face is not given.
121c59a3 151
c869384d
LT
1522005-06-09 Luc Teirlinck <teirllm@auburn.edu>
153
154 * window.c (Fselect_window): Adapt call to Fselect_frame.
155
156 * lisp.h: Update EXFUN of Fselect_frame.
157
158 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
159
6ecf436d
LT
160 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
161 no_enter.
162 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
163 Adapt to above change.
164
c14ec135
JB
1652005-06-10 Juanma Barranquero <lekktu@gmail.com>
166
167 * fns.c (Fmemq, Fmaphash): Doc fixes.
168
9fed2905
JB
1692005-06-09 Juanma Barranquero <lekktu@gmail.com>
170
171 * xfaces.c (Fdisplay_supports_face_attributes_p):
172 Fix typo in docstring.
173
427c5b1b
ST
1742005-06-08 Steven Tamm <steventamm@mac.com>
175
176 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
177 used by gcc4 on intel mac.
178
b7aae902
KS
1792005-06-09 Kim F. Storm <storm@cua.dk>
180
181 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
182 in REUSE list if non-nil; free them if equal to evaporate.
183 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
184 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
185 (restore_search_regs): Rename from restore_match_data. Uses changed.
186 (unwind_set_match_data): New function.
187 (record_unwind_save_match_data): New function like save-match-data.
188
189 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
190 (record_unwind_save_match_data): Add prototype.
191 (restore_search_regs): Rename from restore_match_data.
192
193 * composite.c (compose_chars_in_text):
194 * eval.c (do_autoload):
195 * macmenu.c (set_frame_menubar):
196 * process.c (read_process_output, exec_sentinel):
197 * xmenu.c (set_frame_menubar):
198 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
199 * w32menu.c (set_frame_menubar):
200 Use record_unwind_save_match_data.
201
547d2b37
RS
2022005-06-08 Richard M. Stallman <rms@gnu.org>
203
204 * xdisp.c (get_next_display_element): Alter previous change:
205 Distinguish Vshow_nonbreak_escape = t or not t.
206 For t, use escape_glyph once again, as before previous change.
207 Use space or hyphen for display, instead of the non-ASCII char.
208 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
209
210 * process.c (Fstart_process): Don't touch command_channel_p slot.
211
99598737 212 * process.h (struct process): Delete command_channel_p.
547d2b37 213
602907ae
MY
2142005-06-07 Masatake YAMATO <jet@gyve.org>
215
5aa6db57
SM
216 * xdisp.c (note_mode_line_or_margin_highlight):
217 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 218 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
219 is not ON_MODE_LINE nor ON_HEADER_LINE.
220
8b793bed
KS
2212005-06-07 Kim F. Storm <storm@cua.dk>
222
223 * process.c: Improve commentary for adaptive read buffering.
224
3d031334
SM
2252005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
226
227 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
228 if available.
229
16d2e704
JD
2302005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
231
5aa6db57
SM
232 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
233 New functions for popping down menus on C-g.
16d2e704
JD
234 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
235
236 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
237 non-static.
238
9fed2905 239 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 240
b6cc2ad0
EZ
2412005-06-06 Eli Zaretskii <eliz@gnu.org>
242
5aa6db57
SM
243 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR):
244 Remove macros.
b6cc2ad0 245
5aa6db57 246 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
247
248 * w32proc.c (RVA_TO_PTR): New macro.
249
250 * w32heap.c (RVA_TO_PTR): No need to #undef now.
251
252 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
253 Depend on w32heap.h.
254
24e55feb
LT
2552005-06-06 Luc Teirlinck <teirllm@auburn.edu>
256
257 * keyboard.c (command_loop_1): Update Vthis_original_command.
258
ce6e10af
RS
2592005-06-06 Richard M. Stallman <rms@gnu.org>
260
261 * xmenu.c (popup_get_selection): Undo previous change.
262
c476bcb0
JL
2632005-06-06 Juri Linkov <juri@jurta.org>
264
265 * xdisp.c (Qno_break_space): New variable.
266 (syms_of_xdisp): Initialize it.
267 (get_next_display_element): Add no-break space and soft hypen
268 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
269 Use `no-break-space' face for no-break spaces.
270
5494d7bc
JD
2712005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
272
273 * window.c (delete_window): Handle the case where a h/vchild has
274 a h/vchild.
275
a0c38328
EZ
2762005-06-05 Eli Zaretskii <eliz@gnu.org>
277
278 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
279 call to pfn_setsockopt, cast optval to `const char *'.
280
91018229
EZ
2812005-06-04 Eli Zaretskii <eliz@gnu.org>
282
1a8fb426
EZ
283 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
284 (open_unc_volume): Cast return value of map_w32_filename, to avoid
285 compiler warnings.
286
b6f0a397
EZ
287 * s/ms-w32.h (fileno): Don't define if already defined.
288
17a7c5c2 289 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 290
91018229
EZ
291 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
292
196ac78c
RS
2932005-06-04 Richard M. Stallman <rms@gnu.org>
294
295 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
296
b8987570
JD
2972005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
298
299 * macmenu.c (cleanup_popup_menu): New function.
300 (Fx_popup_menu): unwind protect cleanup_popup_menu in case
301 mac_menu_show Quit:s.
302 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
303 a dialog).
304
555228aa
KS
3052005-06-04 Kim F. Storm <storm@cua.dk>
306
307 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
308
309 * callproc.c (Fcall_process): Don't use alloca to gradually
310 increase size of buf, as it effectively uses twice the necessary
311 space on the stack. Instead, pre-allocate buf of full size, and
312 gradually increase the read size.
313
314 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
315
316 * eval.c (unbind_to): Preserve value of Vquit_flag.
317
318 * xterm.c (handle_one_xevent): Also ignore mouse motion just
319 before a button release event.
320
6312e5f7
JB
3212005-06-03 Juanma Barranquero <lekktu@gmail.com>
322
323 * xfaces.c (Finternal_lisp_face_equal_p): Really report
324 on faces in a frame, if the argument FRAME is non-nil.
325 Improve argument/docstring consistency.
326
0493f7be
KS
3272005-06-02 Kim F. Storm <storm@cua.dk>
328
329 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
330 (x_consider_frame_title, Fformat_mode_line): Save offset into
331 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
332
89fe657e
KS
3332005-06-01 Kim F. Storm <storm@cua.dk>
334
335 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
336
02a6375c
YM
3372005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
338
339 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
340 resolution fields for scalable fonts to 0.
341
342 * xfaces.c (build_scalable_font_name): Round pixel size to the
343 nearest integer.
344
95d4fad8
KS
3452005-06-01 Kim F. Storm <storm@cua.dk>
346
347 * xdisp.c (display_mode_line): Support nested calls to redisplay
348 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
349
3c1b433a
SM
3502005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
351
352 * fileio.c (Finsert_file_contents):
353 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
354
13cc7d61
KS
3552005-05-31 Kim F. Storm <storm@cua.dk>
356
357 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
358 (mode_line_noprop_ptr): Rename from frame_title_*.
359 (store_mode_line_noprop_char): Rename from store_frame_title_char.
360 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 361 (mode_line_target): New enum to specify current output target
13cc7d61
KS
362 for mode line formatting.
363 (display_mode_element): Test it rather than frame_title_ptr and
364 mode_line_string_list to determine where output should go.
365 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
366 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
367 (format_mode_line_unwind_data, unwind_format_mode_line):
368 New functions for unwind protection in mode line formatting.
13cc7d61 369 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
370 to support nested calls to format-mode-line and redisplay.
371 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 372 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
373 support nested calls to format-mode-line and redisplay.
374 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 375 Don't trim trailing dashes.
13cc7d61
KS
376 (decode_mode_spec): Don't make infinite number of trailing dashes
377 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
378 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
379 mode_line_string_face_prop, and Vmode_line_unwind_vector.
380 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
381 Initialize mode_line_target to MODE_LINE_DISPLAY.
382
c16b1394
RS
3832005-05-29 Richard M. Stallman <rms@gnu.org>
384
385 * buffer.c (Fbuffer_local_value): Call indirect_variable.
386
edfaeb4e
MY
3872005-05-28 Masatake YAMATO <jet@gyve.org>
388
389 * xdisp.c (note_mode_line_or_margin_highlight): Change the
390 pointer to a hand cursor when hoovering over a mouse-face.
391
7cf49add
KH
3922005-05-27 Kenichi Handa <handa@m17n.org>
393
394 * xterm.c (x_encode_char): Call check_ccl_update in advance.
395
396 * ccl.c: Now an element of Vccl_program_table is a vector of
397 length 4, not 3.
3c1b433a
SM
398 (ccl_get_compiled_code): New arg idx. Caller changed.
399 Adjust for the change of Vccl_program_table.
400 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
401 (check_ccl_update): New function.
402 (Fregister_ccl_program): Use ASET to set an element of a vector.
403 Adjusted for the change of Vccl_program_table.
404
405 * ccl.h (struct ccl_program): New member idx.
406 (check_ccl_update): Extern it.
407
5e2ad10b
JB
4082005-05-27 Juanma Barranquero <lekktu@gmail.com>
409
3c1b433a 410 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
411 (syms_of_image): Defvar it.
412 (lookup_image_type): Use it.
413
5e2ad10b
JB
414 * buffer.c (Fbuffer_local_value): Make argument name match its use
415 in docstring.
416
6e604a9b
JB
4172005-05-26 Juanma Barranquero <lekktu@gmail.com>
418
419 * keyboard.c (Frecursive_edit): Fix typo in docstring.
420 (Fposn_at_x_y): Make argument name match its use in docstring.
421
59244a3f
LK
4222005-05-26 Lute Kamstra <lute@gnu.org>
423
424 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
425
55ce5058
MY
4262005-05-24 Masatake YAMATO <jet@gyve.org>
427
428 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
429 as loop sentinels.
430
cb5db137
NR
4312005-05-24 Nick Roberts <nickrob@snap.net.nz>
432
433 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
434 select frame title ("Question"/"Information").
435 (xdialog_show): Use it.
436
13dcfc35
NR
437 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
438
439 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
440
d3393daa
NR
441 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
442 a third argument (Qnil).
443
444 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
445
446 * editfns.c (Fmessage_box): Use "Information" for frame title.
447
71d4fba1
TTN
4482005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
449
450 * termcap.c [VMS]: Include <starlet.h>.
451
359e4563
MY
4522005-05-23 Masatake YAMATO <jet@gyve.org>
453
6e604a9b
JB
454 * xdisp.c (note_mode_line_or_margin_highlight): Add code
455 for mouse-face. Change the type of the first argument from `window'
456 to `Lisp_Object'.
359e4563
MY
457 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
458 window instead of w.
459
edceb51c
AS
4602005-05-22 Andreas Schwab <schwab@suse.de>
461
41c4895c 462 * process.c (send_process): Move misplaced volatile.
edceb51c 463
5c213fcc
RS
4642005-05-21 Richard M. Stallman <rms@gnu.org>
465
466 * xdisp.c (display_mode_element): If we're processing a list and
467 padding is specified, put it after the last element.
468
aa4060b9
EZ
4692005-05-21 Eli Zaretskii <eliz@gnu.org>
470
471 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
472 "superroot" on DOS_NT systems.
473
a2c9aee6
EZ
4742005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
475
476 * process.c (send_process): Restore the SIGPIPE handler if we
477 catch a SIGPIPE.
478
09e8eb5b
JB
4792005-05-20 Juanma Barranquero <lekktu@gmail.com>
480
481 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
482 misleading comments).
483 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
484
f3fbdb1f
LK
4852005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
486
487 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
488 Correct the right value.
489
639ec765
NR
4902005-05-19 Nick Roberts <nickrob@snap.net.nz>
491
240d926e 492 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
493 post-command-idle-hook and post-command-idle-delay.
494 (command_loop_1): Don't try to execute post-command-idle-hook.
495
03d42907
KS
4962005-05-16 Kim F. Storm <storm@cua.dk>
497
1cb83e13
KS
498 * xdisp.c (handle_display_prop): Handle empty replacement.
499 (handle_single_display_spec): Return -1 for empty replacement.
500
501 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
502
03d42907
KS
503 * .gdbinit (pitx): Print more info about iterator.
504
0da46b6e
AS
5052005-05-16 Andreas Schwab <schwab@suse.de>
506
3c1b433a 507 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 508
d06ba294
RS
5092005-05-14 Richard M. Stallman <rms@gnu.org>
510
511 * xdisp.c (message3): Call cancel_echoing.
512
513 * alloc.c (Fmemory_full_p): New function.
514 (syms_of_alloc): defsubr it.
515
516 * process.c (send_process_trap): Unblock SIGPIPE.
517 (send_process): Reset SIGPIPE handler before reporting error.
518
90713743
NR
5192005-05-14 Nick Roberts <nickrob@snap.net.nz>
520
521 * emacs.c (syms_of_emacs): Fix doc string for system-type.
522
68780e2a
RS
5232005-05-13 Richard M. Stallman <rms@gnu.org>
524
525 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
526 (Finsert_file_contents): If we read 0 bytes from a special file,
527 unlock the visited file if we locked it.
528 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 529 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 530
5063dbbf
YM
5312005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
532
533 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
534
3c1b433a
SM
535 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
536 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
537 redisplay from being paused by them.
538
539 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
540 [!MAC_OSX] (target_ticks): Remove variable.
541 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
542 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
543 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 544 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
545 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
546 handling using Time Manager routines.
3c1b433a
SM
547 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
548 New variables.
5063dbbf
YM
549 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
550 (setitimer): New functions.
551
552 * macfns.c, macmenu.c: Don't include signal.h.
553
554 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
555 Rename from get_control_part_bound. All callers changed.
556 (x_scroll_bar_clear): New function.
557 (x_clear_frame): Use it.
558 (XTset_vertical_scroll_bar): Don't call Draw1Control.
559 (x_scroll_bar_handle_click): Change type of second argument from
560 int to ControlPartCode.
561 (check_alarm): Remove declaration.
02a6375c
YM
562 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
563 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
564
5652005-05-13 Nozomu Ando <nand@mac.com>
566
567 * unexmacosx.c: Include assert.h.
568 (MACOSX_MALLOC_MULT16): New define.
569 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
570 ptr is in unexec regions by checking it is multiple of 16.
571 (unexec_malloc_header_t): New typedef.
572 (unexec_malloc, unexec_realloc, unexec_free): Store and use
573 allocated size information in unexec_malloc_header.
574
d101bf56
RS
5752005-05-10 Richard M. Stallman <rms@gnu.org>
576
577 * xterm.c (noinclude): Add #undef.
578
579 * image.c, xfns.c, xmenu.c: Don't include signal.h.
580
2f60660a
JB
5812005-05-09 Juanma Barranquero <lekktu@gmail.com>
582
f1701e65
JB
583 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
584 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
585 Doc fixes.
586
2f60660a
JB
587 * dired.c (Ffile_name_completion): Make argument name
588 match its use in docstring.
589
9f29e806
LT
5902005-05-08 Luc Teirlinck <teirllm@auburn.edu>
591
592 * eval.c (Fdefvaralias): Remove any pre-existing
593 variable-documentation property of the alias.
594
a790bcd4
TTN
5952005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
596
597 * xfns.c (start_hourglass): Do nothing when running on a tty.
598
d5fb8dab
JB
5992005-05-07 Juanma Barranquero <lekktu@gmail.com>
600
601 * fns.c (Fchar_table_range): Fix typos in docstring.
602
7ec64183
SM
6032005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
604
605 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
606
6ff95f1d
EZ
6072005-05-06 Eli Zaretskii <eliz@gnu.org>
608
2c6b25c7
EZ
609 * lread.c (Flocate_file_internal): Doc fix.
610
6ff95f1d
EZ
611 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
612
17d28d26
YM
6132005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
614
615 * macselect.c (x_own_selection): Accept Lisp string as result of
616 selection converter function.
617 (x_clear_frame_selections): Don't call x-lost-selection-functions
618 if Emacs is not owner of the selection.
619 (Vmac_services_selection): Put variable and initialization in
620 #ifdef MAC_OSX.
621 (syms_of_macselect) [MAC_OSX]: Set default value of
622 Vmac_services_selection to PRIMARY.
623
7ec64183
SM
624 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
625 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
626 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
627 (install_scroll_bar_timer, set_scroll_bar_timer)
628 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
629 (get_control_part_bound, x_scroll_bar_handle_press)
630 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
631 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
632 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
633 (scroll_bar_timer_event_posted_p): New variables.
634 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
635 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
636 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
637 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
638 Initialize track_top and track_height to nil.
639 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
640 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
641 (XTset_vertical_scroll_bar): Don't make space between scroll bar
642 and associated window.
643 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
644 from window config.
7ec64183
SM
645 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
646 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
647 Recalculate them if they are nil.
648 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
649 clicked control is a scroll bar.
650 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
651 event handler functions. Don't add modifiers to scroll bar click
7ec64183 652 events. Call scroll bar release handler when window is deactivated.
17d28d26 653 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
654 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
655 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 656
7ec64183
SM
657 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
658 New members track_top and track_height.
17d28d26
YM
659
660 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
661 init_process when including sys/select.h.
662
643b4cf5
LT
6632005-05-05 Luc Teirlinck <teirllm@auburn.edu>
664
665 * eval.c (Fdefvaralias): Doc fix.
666
667 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
668
99bda128
KS
6692005-05-05 Kim F. Storm <storm@cua.dk>
670
671 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
672 default value.
673 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
674 Fix type of cursor-in-non-selected-windows.
675
3a3563e9
JD
6762005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
677
678 * mac.c: #undef init_process so not to conflict with system headers.
679
0124c5bd
RS
6802005-05-02 Richard M. Stallman <rms@gnu.org>
681
682 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
683
684 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
685
686 * xdisp.c (Vcursor_in_non_selected_windows)
687 (Qcursor_in_non_selected_windows): Vars deleted.
688 (syms_of_xdisp): Don't initialize them.
689 (get_window_cursor_type): Use cursor_in_non_selected_windows
690 buffer slot.
691
4b3f161f
KS
6922005-05-02 Kim F. Storm <storm@cua.dk>
693
e40527dc
KS
694 * macros.c (executing_kbd_macro_index): Rename from
695 executing_macro_index. All uses changed.
696 (executing_kbd_macro_iterations): Rename from
697 executing_macro_iterations. All uses changed.
698 (executing_kbd_macro): Rename from executing_macro.
699 All uses changed.
700 (syms_of_macros): Rename Lisp var executing-macro-index to
701 executing-kbd-macro-index.
702
4b3f161f
KS
703 * xdisp.c (move_it_in_display_line_to): Fix last change.
704
4d49edf6
LT
7052005-05-01 Luc Teirlinck <teirllm@auburn.edu>
706
f6b1b15a
LT
707 * xmenu.c (Fx_popup_menu): Doc fix.
708
4d49edf6
LT
709 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
710
4a766fe6
JR
7112005-05-02 Jason Rumney <jasonr@gnu.org>
712
713 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
714
c924d3ff
TTN
7152005-05-02 Nozomu Ando <nand@mac.com>
716
717 * sysselect.h: Fix typo.
718
b161ea4e 7192005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 720
b161ea4e
NR
721 * charset.c (Fchars_in_region): Remove as obsolete.
722
d37e919d 7232005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
724
725 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 726 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 727 glyph.
5c2e5a5e 728
bec0b768
LT
7292005-05-01 Luc Teirlinck <teirllm@auburn.edu>
730
731 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
732
ebbfa918
RS
7332005-05-01 Richard M. Stallman <rms@gnu.org>
734
735 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
736 If user cancels the menu, quit unless FOR_CLICK.
737
7ec64183 738 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
739 All uses changed.
740 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
741 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
742 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
743 * commands.h (Vexecuting_kbd_macro): Likewise.
744
a72c2d97
TTN
7452005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
746
747 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
748
7e995a23
RS
7492005-04-30 Richard M. Stallman <rms@gnu.org>
750
751 * fileio.c (Ffind_file_name_handler): Handle the `operations'
752 property of the file name handler.
753 (Qoperations): New variable.
754 (syms_of_fileio): Initialize and staticpro it.
755
756 * xdisp.c (set_message_1): Delete xassert.
757
7a92caf8
YM
7582005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
759
7ec64183 760 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
761
762 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
763
764 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
765 before/after including Carbon.h if there is a working mktime.
766
5ae91803
KS
7672005-04-28 Kim F. Storm <storm@cua.dk>
768
769 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
770 Fix cyclic alias check. If alias loop is detected, signal
771 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
772
d79b6c21
LK
7732005-04-28 Lute Kamstra <lute@gnu.org>
774
775 * eval.c (do_autoload): Record only autoloads in the autoload
776 property of symbols.
777
8c75afbf
NR
7782005-04-28 Nick Roberts <nickrob@snap.net.nz>
779
780 * emacs.c (USAGE1): Add --basic-display and --quick options.
781
832e294f
KS
7822005-04-27 Kim F. Storm <storm@cua.dk>
783
784 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
785
f03f317a
RS
7862005-04-26 Richard M. Stallman <rms@gnu.org>
787
c019856e
RS
788 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
789 (syms_of_window): Doc fixes.
790
f03f317a
RS
791 * indent.c (Fvertical_motion): Undo previous change.
792
38f60cd9
KH
7932005-04-26 Kenichi Handa <handa@m17n.org>
794
795 * fns.c (char_table_range): New function.
796 (Fchar_table_range): Signal an error if characters in the range
797 have inconsistent values. Don't check the parent.
798
87ede5a1
KH
7992005-04-25 Kenichi Handa <handa@m17n.org>
800
801 * fontset.c (fontset_set): Fix previous change.
802
a6390474
RS
8032005-04-24 Richard M. Stallman <rms@gnu.org>
804
805 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
806
7fce7dfe
EZ
8072005-04-24 Eli Zaretskii <eliz@gnu.org>
808
cf1982d9
EZ
809 * regex.c (re_search_2, re_match_2_internal): Convert second arg
810 of RE_TRANSLATE to int, to shut up GCC warnings.
811
7fce7dfe
EZ
812 * fileio.c (Fcopy_file): Doc fix.
813 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
814 not needed.
815
49ed33c7
YM
8162005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
817
818 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
819 (SOME_MACHINE_OBJECTS): Likewise.
820 (mac.o): Depend on ccl.h.
821 (macselect.o): New target.
822
7ec64183
SM
823 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
824 Call syms_of_macselect.
49ed33c7
YM
825
826 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
827
7ec64183 828 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
829 (QCLIPBOARD): Remove variable.
830 (syms_of_mac): Don't initialize it.
831 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
832 Remove functions.
833 (syms_of_mac): Don't defsubr them.
834 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
835 (QHFS_plus_D, QHFS_plus_C): New variables.
836 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
837 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
838 (cfstring_create_normalized): New functions.
839 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
840 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
841
7ec64183
SM
842 * macterm.c (handling_window_update, terminate_flag):
843 Remove variables.
844 (do_window_update, do_ae_quit_application, XTread_socket):
845 Don't use them.
49ed33c7
YM
846 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
847 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
848 (init_service_handler): Move to macselect.c. Remove declarations.
849 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
850 (Qapplication, Qabout): New variables.
851 (syms_of_mac): Initialize them.
852 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
853 (Qperform): New variables.
854 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 855 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
856 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
857 (mac_store_application_menu_event, init_menu_bar): New functions.
858 [USE_CARBON_EVENTS] (mac_handle_command_event)
859 (init_command_handler): New functions.
860 (mac_handle_window_event): Return noErr on window update event.
861 (do_ae_quit_application): Call mac_store_application_menu_event.
862 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
863 and init_menu_bar.
864
865 * macterm.h (x_clear_frame_selections): Add extern.
866
867 * macselect.c: New file for selection processing on Mac OS.
868
469bc679
RS
8692005-04-23 Richard M. Stallman <rms@gnu.org>
870
871 * fileio.c (Fcopy_file): New arg MUSTBENEW.
872 (Frename_file): Pass new arg to Fcopy_file.
873
874 * window.c (window_size_fixed): Variable deleted.
875 (syms_of_window): Initialize window-size-fixed to nil.
876 But don't DEFVAR window_size_fixed.
877
d379c558
AS
8782005-04-23 Andreas Schwab <schwab@suse.de>
879
880 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
881 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
882 use lib64 instead of lib.
883 (_LP64) [_ARCH_PPC64]: Define if not defined.
884
007d105b
TTN
8852005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
886
887 * s/ms-w32.h (HAVE_PWD_H): Define.
888
b9c15916
KH
8892005-04-22 Kenichi Handa <handa@m17n.org>
890
891 * fns.c (copy_sub_char_table): Explicitly copy the default value
892 of the sub-chartable.
893
894 * fontset.c (fontset_set): When a sub-chartable is created,
895 explicitly sets the defalt value.
896
1ba52906
KS
8972005-04-22 Kim F. Storm <storm@cua.dk>
898
899 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
900 (Fsafe_plist_get): Rename to Fplist_get.
901 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
902 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
903
904 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
905
906 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
907 (note_mode_line_or_margin_highlight, note_mouse_highlight):
908 Use Fplist_get instead of Fsafe_plist_get.
909
910 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
911
e235145c
MB
9122005-04-21 Miles Bader <miles@gnu.org>
913
914 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
915
766c5349
TTN
9162005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
917
c164a7e6
TTN
918 * sysdep.c: Remove reference to defunct vms-pwd.h.
919 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
920 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
921
766c5349
TTN
922 * config.in: Regenerate.
923
2b048bf5
KH
9242005-04-20 Kenichi Handa <handa@m17n.org>
925
926 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
927 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
928 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
929
930 * alloc.c (make_sub_char_table): Argument changed to initial
931 value of the slots.
932
933 * data.c (Faref): Handle special slots used as default values of
934 ascii, eight-bit-control, eight-bit-control. Don't ignore a
935 default value set for a group of characters.
936 (Faset): Signal an error if IDXVAL is not a valid character code.
937 Make a sub-chartable with correct initial value.
938
939 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
940 values for ascii, eight-bit-control, eight-bit-graphic.
941 Don't call Faref with charset-id.
2b048bf5
KH
942 (Fset_char_table_default): Document how to treat normal character
943 argument. Handle special slots used as default values of ascii,
944 eight-bit-control, eight-bit-control. Make a sub chartable if
945 necessary.
946
b0a35939
KH
9472005-04-20 Kenichi Handa <handa@m17n.org>
948
949 * search.c (boyer_moore): Fix previous change.
950
98dde726
KS
9512005-04-19 Kim F. Storm <storm@cua.dk>
952
953 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
954 face unless last visible char and first invisible char have the
955 same face. Also use default face if saved_face_id is undefined.
956
327a3376
YM
9572005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
958
959 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
960 `full_name'.
961 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
962 mac_scriptcode member.
963
964 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
965 (syms_of_mac): Don't initialize them.
966 (Vmac_charset_info_alist): New variable.
967 (syms_of_mac): Defvar it.
968 (create_text_encoding_info_alist): New function.
969 (decode_mac_font_name, mac_to_x_fontname)
970 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
971 code the correspondence among XLFD charsets, Mac script codes, and
972 Emacs coding systems. Use Vmac_charset_info_alist and result of
973 create_text_encoding_info_alist instead.
974 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
975 routines also on Mac OS Classic.
7ec64183
SM
976 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
977 Use add_font_name_table_entry.
327a3376
YM
978 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
979 specified. Derive unspecified scalable fields from specified one.
980 (x_list_fonts): Consider Valternate_fontname_alist.
981 (kDefaultFontSize): Change value from 9 to 12.
982 (XLoadQueryFont): Get decoded font family, font face, and charset
983 from x_font_name_to_mac_font_name. Set full name of loaded font.
984 (mac_unload_font): Free `full_name' member.
985 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
986 NULL. Copy full_name member of struct MacFontStruct to that of
987 struct font_info.
988
d0636839
KS
9892005-04-19 Kim F. Storm <storm@cua.dk>
990
5827e9d4
KS
991 * xdisp.c (handle_stop): Set saved_face_id to current face if
992 selective_display_ellipsis_p so ellipsis will be shown in same
993 face as preceding text.
994 (setup_for_ellipsis): Don't set saved_face_id here.
995 (next_element_from_display_vector): Default to saved_face_id.
996
d0636839
KS
997 * fns.c (Fsafe_get): New function.
998 (syms_of_fns): Defsubr it.
999
1000 * lisp.h (Fsafe_get): EXFUN it.
1001
1002 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
1003 loops in case of bad face property lists. Limit number of face
1004 alias lookups to 10 (in case of face alias loops).
1005
e5c78c9d
KS
10062005-04-18 Kim F. Storm <storm@cua.dk>
1007
1008 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
1009 It replaces the corresponding member from struct window, as a
1010 window may now show multiple overlay arrows.
1011 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
1012
1013 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
1014 Compare overlay_arrow_bitmap than overlay_arrow_p members.
1015
1016 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
1017 rather than from window.
1018 (update_window_fringes): Compare overlay_arrow_bitmap rather than
1019 overlay_arrow_p members.
1020 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
1021 if not default.
1022
1023 * window.h (struct window): Remove member overlay_arrow_bitmap.
1024
1025 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
1026
1027 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
1028 Calls changed. Don't check for overlay-arrow-bitmap property here.
1029 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
1030 fringe is present, return Lisp integer for bitmap (or -1 for default).
1031 Fix value of overlay-arrow-bitmap property to be a symbol, use
1032 lookup_fringe_bitmap to parse it.
1033 (display_line): Change call to overlay_arrow_at_row. Store integer
1034 return value as overlay bitmap in row rather than window.
1035 Only show overlay arrow if row displays text, or if no other overlay
1036 arrow is seen in window (if overlay marker is at point-max).
1037
7d603e3f
TTN
10382005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1039
1040 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
1041
9942fa0c
LK
10422005-04-18 Lute Kamstra <lute@gnu.org>
1043
1044 * lread.c (Vloads_in_progress): Static.
1045 * fns.c (Vloads_in_progress): Remove extern.
1046 (load_in_progress): Add extern.
1047 (Frequire): Use load_in_progress instead of Vloads_in_progress.
1048
999cdb8f
TTN
10492005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1050
1051 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
1052
3f4413f8
YM
10532005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1054
1055 * macterm.c (XTread_socket): Don't beep on keyboard input even if
1056 no frame is visible.
1057
60ec7b7e
DN
10582005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1059
1060 * term.c (struct keys): Add support for shifted keys.
1061
a8a1c0ee
RS
10622005-04-16 Richard M. Stallman <rms@gnu.org>
1063
1064 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
1065 (set_message): Call with_echo_area_buffer with WHICH = 0.
1066 (set_message_1): Erase the echo area buffer first thing.
1067 (echo_area_display): Don't clear echo_message_buffer.
1068
f3cf04d3
YM
10692005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1070
1071 * Makefile.in (mac.o): Depend on charset.h and coding.h.
1072
1073 * mac.c: Include charset.h and coding.h.
1074 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 1075 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
1076 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
1077
1078 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1079
1080 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
1081
1082 * macterm.c (x_autoselect_window_p): Remove variable.
1083 (last_window): New variable.
7ec64183
SM
1084 (XTreassert_line_highlight, x_change_line_highlight):
1085 Remove declarations.
f3cf04d3
YM
1086 (mac_focus_changed, x_detect_focus_change): New functions and
1087 declarations.
1088 (XTextExtents16, front_emacs_window): Remove function.
1089 (mac_focus_frame): New function.
1090 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
1091 (mac_check_for_quit_char): Use it instead of front_emacs_window.
1092 (x_scroll_bar_report_motion): Obtain window from control owner.
1093 (x_make_frame_invisible): Set window manager size hint.
1094 (do_mouse_moved): Remove function.
1095 (XTread_socket): Move its contents here. Generate select-window
1096 event on mouse movement if needed. Use x_detect_focus_change on
1097 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
1098 window rectangle when dnd items are dropped.
1099 Don't activate/deactivate root control.
f3cf04d3
YM
1100 (frame_highlight, frame_unhighlight): Activate/deactivate root
1101 control here.
1102 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
1103
1104 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
1105 New extern.
1106
9e5b2858
LT
11072005-04-15 Luc Teirlinck <teirllm@auburn.edu>
1108
1109 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
1110 (lisp): Use it.
1111 (SOME_MACHINE_LISP): Add tooltip.
1112
42c6741e
YM
11132005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1114
7ec64183
SM
1115 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
1116 Don't include TextEncodingConverter.h.
42c6741e
YM
1117 (mac_system_script_code, Vmac_system_locale): New variables.
1118 (syms_of_mac): Defvar them.
1119 (mac_get_system_locale): New function.
1120
7ec64183
SM
1121 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
1122 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 1123 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
1124 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
1125 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
1126
1127 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
1128 TextEncodingConverter.h.
1129
0614c575
ST
11302005-04-13 Steven Tamm <steventamm@mac.com>
1131
7e26f91b
KS
1132 * macterm.c (syms_of_macterm): Remove redundant definition of
1133 mac-pass-control-to-system.
0614c575 1134
203eb0aa
SM
11352005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1136
1137 * window.c (Fset_window_configuration): Be careful when you choose
1138 among several possible points for the new_current_buffer.
1139
a56e6111
YM
11402005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1141
1142 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
1143 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
1144 (Qlanguage_change) [MAC_OS]: New variable.
1145 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 1146 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
1147
1148 * macterm.c (mac_keyboard_text_encoding)
1149 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
1150 (XTread_socket): Store language-change event if keyboard script change
1151 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 1152 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 1153
7e26f91b 1154 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 1155
6695c528
RS
11562005-04-10 Richard M. Stallman <rms@gnu.org>
1157
1158 * emacs.c (standard_args): Rename --bare-bones to --quick.
1159 Add -D aka --basic-display.
1160
1161 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
1162
18e2d91f
RS
11632005-04-09 Richard M. Stallman <rms@gnu.org>
1164
1165 * keymap.c (where_is_internal): Convert a string used as event type
1166 into "(any string)".
1167
1168 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
1169 * fns.c (Vloads_in_progress): Add extern.
1170 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
1171
11722005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
1173
1174 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
1175
1cf21850
LK
11762005-04-09 Lute Kamstra <lute@gnu.org>
1177
1178 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
1179 within the accessible part of the buffer.
1180
bfd93240
KS
11812005-04-09 Kim F. Storm <storm@cua.dk>
1182
1183 * lread.c (readevalloop): Add args START and END as region in
1184 current buffer to read. Callers changed.
1185 When specified, narrow to this region only when reading,
1186 not during eval. Track next point to read from during eval.
1187 Also restore point to "real" buffer position before eval.
1188 (Feval_region): Don't save excursion and restriction here, and
1189 don't narrow to region. Just pass region to readevalloop.
1190 Note: Point is now preserved even when PRINTFLAG is nil.
1191
9ba27690
KS
11922005-04-08 Kim F. Storm <storm@cua.dk>
1193
1194 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
1195
73f0d996
KS
11962005-04-06 Kim F. Storm <storm@cua.dk>
1197
1198 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
1199
369f76bb
YM
12002005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1201
1202 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
1203 (Fmac_get_preference): Doc fix.
1204
203eb0aa
SM
1205 * macfns.c (Fx_create_frame, x_create_tip_frame):
1206 Add "fontset-mac" to fallback font/fontsets.
369f76bb 1207
2ba613a6
KS
12082005-04-04 Kim F. Storm <storm@cua.dk>
1209
4d5ddddc
KS
1210 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
1211
2ba613a6
KS
1212 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
1213 Call it again after autoload.
1214
1673df2e
JD
12152005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1216
1217 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
1218 mallopt.
1219
1220 * ralloc.c (r_alloc_init): Ditto.
1221
41639988
KH
12222005-04-01 Kenichi Handa <handa@m17n.org>
1223
1cf21850
LK
1224 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
1225 (Vascii_eqv_table): Extern them.
41639988
KH
1226
1227 * casetab.c (set_case_table): If standard is nonzero, setup
1228 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
1229
1230 * search.c (looking_at_1): Use current_buffer->case_canon_table,
1231 not DOWNCASE_TABLE.
1232 (string_match_1): Likewise.
1233 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
1234 Vascii_downcase_table.
1235 (fast_string_match_ignore_case): Likewise.
1236 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
1237 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
1238 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
1239 simple_translate.
1240
6ca53601
SM
12412005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1242
1243 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
1244 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
1245 Use XtNtopShadowPixel and XtNbottomShadowPixel.
1246 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
1247 really work and that breaks with some versions of Xaw3d.
1248
fafbb99d 12492005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
1250
1251 * coding.c (syms_of_coding): Fix previous change.
1252
6ca53601
SM
12532005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
1254
1255 * fileio.c (search_embedded_absfilename): Fix last change.
1256
bf762c98
KH
12572005-03-25 Kenichi Handa <handa@m17n.org>
1258
1259 * coding.c (syms_of_coding): Suggest to use set-coding-category in
1260 the docstring of coding-category-list.
1261
f793f885
KS
12622005-03-31 Kim F. Storm <storm@cua.dk>
1263
1264 * keyboard.c (Qmouse_fixup_help_message): New var.
1265 (syms_of_keyboard): Intern and staticpro it.
1266 (show_help_echo): Apply mouse-fixup-help-message to help string.
1267
c364fe19
KS
12682005-03-30 Kim F. Storm <storm@cua.dk>
1269
1270 * xdisp.c (display_line): Allow multiple overlay arrows in window.
1271
c70a4df6
SM
12722005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1273
1274 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
1275 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
1276 (Ffile_name_absolute_p): Use it.
1277 (search_embedded_absfilename): New fun, extracted from
1278 Fsubstitute_in_file_name. Use file_name_absolute_p.
1279 Free the pw data after use.
1280 (Fsubstitute_in_file_name): Use it.
1281 After cutting a prefix, re-check file-name-handler.
1282
6e7d0438
JR
12832005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
1284
6ca53601 1285 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
1286
1287 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
1288 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
1289
65671706
SM
12902005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
1291
1292 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
1293 Use Fexit_minibuffer.
1294 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
1295
0de4dad4
SM
12962005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1297
781da985
SM
1298 * dired.c (Ffile_attributes): Add a missing gcpro.
1299
0de4dad4
SM
1300 * alloc.c (make_number): The arg can be bigger than `int'.
1301 * lisp.h (make_number): Make prototype more precise.
1302
1303 * process.c, dired.c (Vfile_name_coding_system)
1304 (Vdefault_file_name_coding_system):
1305 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
1306 (Vdefault_file_name_coding_system): Remove unused declarations.
1307
ff18668f
JD
13082005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1309
1310 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
1311 if it failed to pop up (Gnome "show pointer on ctrl" option makes
1312 menus fail to pop up).
1313
0de4dad4 13142005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
1315
1316 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 1317 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 1318
8df0ffbe
KS
13192005-03-22 Kim F. Storm <storm@cua.dk>
1320
1321 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
1322 * dispextern.h (lookup_derived_face): Fix prototype.
1323 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
1324
1325 * xdisp.c (handle_single_display_spec): Derive left-fringe and
1326 right-fringe face from fringe face.
1327
1328 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
1329 Derive face from fringe face.
1330
6ca30ba4
JD
13312005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1332
1333 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
1334
d615870a
DK
13352005-03-22 David Kastrup <dak@gnu.org>
1336
1337 * textprop.c (Fnext_char_property_change)
66347da7 1338 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
1339 (Fnext_single_char_property_change)
1340 (Fprevious_single_char_property_change): Check that limit is a
1341 number in strings.
1342 (Fnext_single_char_property_change): Coerce position to integer.
1343 (Fprevious_single_char_property_change): Same here.
1344
32b939ea
TTN
13452005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
1346
1347 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
1348
6027e473
SM
13492005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
1350
1351 * frame.c (Fignore_event): Remove.
1352 (syms_of_frame): Don't defsubr it.
1353
1354 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
1355 redundant `ignore-event'.
1356
730f4d72
EZ
13572005-03-19 Eli Zaretskii <eliz@gnu.org>
1358
1359 * unexec.c (write_segment, unexec): Move these functions to avoid
1360 forward references (which cause errors with "gcc -gcoff").
1361
c7f6afd5
JD
13622005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1363
6027e473 1364 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 1365 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 1366
c7f6afd5
JD
1367 * xrdb.c (x_load_resources): Use different char *helv when I18N
1368 is present.
1369
db328182
KH
13702005-03-17 Kenichi Handa <handa@m17n.org>
1371
66347da7 1372 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 1373
211f2210
SM
13742005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1375
1376 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
1377 Use xic_create_fontsetname even for non-Motif menus.
1378 Don't forget to free the fontsetname.
1379
1380 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
1381
c7bd5d57
RS
13822005-03-17 Richard M. Stallman <rms@gnu.org>
1383
1384 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
1385
1386 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
1387 (Fmake_symbolic_link): Use G to read the new file name.
1388
1389 * callint.c (Finteractive): Document G option.
1390 (Fcall_interactively): Implement G option.
1391
1392 * buffer.c (buffer_lisp_local_variables): New function,
1393 broken out from Fbuffer_local_variables.
1394 (clone_per_buffer_values): Use buffer_lisp_local_variables.
1395
888953f1
SM
13962005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1397
3c916d65
SM
1398 * xfns.c (xic_create_fontsetname): Add `motif' argument.
1399 Always return a freshly allocated string.
1400 (xic_create_xfontset): Adjust call.
1401
1402 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
1403 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
1404 (dump_realized_face): Fix warning.
1405
9f9e5275
SM
1406 * emacs.c (Fkill_emacs): YAILOM.
1407
888953f1
SM
1408 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
1409
48502d68
YM
14102005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1411
1412 * mac.c (HASHKEY_TERMINAL): Remove.
1413 (HASHKEY_MAX_NID): New macro.
1414 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
1415 argument.
888953f1 1416 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
1417 (xrm_create_database, xrm_q_put_resource)
1418 (xrm_merge_string_database, xrm_q_get_resource_1)
1419 (xrm_q_get_resource): Change resource database representation so
1420 that it may not use multiple hash tables for a single database.
1421 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
1422
d5161e8c
SM
14232005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1424
11a646cd
SM
1425 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
1426
1427 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
1428 locale-coding-system, as was already done for WINDOWSNT.
1429
d5161e8c
SM
1430 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
1431 translation for chars in the 0-255 range.
1432
568b6e41
LK
14332005-03-16 Lute Kamstra <lute@gnu.org>
1434
1435 * floatfns.c (Ffloor): Doc fix.
1436
469fb3cf
YM
14372005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1438
1439 * mac.c: Include macterm.h instead of directly including Carbon.h.
1440 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
1441 (Qarray, Qdictionary): New variables.
1442 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
1443 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
1444 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
1445 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
1446 in callback for CFDictionaryApplyFunction.
1447 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1448 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1449 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
1450 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
1451 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
1452 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1453 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 1454 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
1455 (parse_binding, parse_component, parse_resource_name, parse_value)
1456 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
1457 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
1458 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
1459 New functions.
469fb3cf
YM
1460
1461 * macfns.c (mac_get_rdb_resource): Remove function.
1462 (x_get_string_resource): Use xrm_get_resource.
1463
1464 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
1465
1466 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
1467 name_list_element.
1468 (mac_make_rdb): Create resource database from preferences and
1469 argument string.
1470 (mac_term_init): Save resource database to cddr part of
1471 name_list_element.
1472
1473 * macterm.h (xrm_merge_string_database, xrm_get_resource)
1474 (xrm_get_preference_database): Add externs.
1475 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1476 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1477 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
1478
1479 * process.c (init_process): Change `#ifdef DARWIN' to `#if
1480 defined (DARWIN) || defined (MAC_OSX)'
1481
1482 * s/darwin.h (DARWIN): Don't define.
1483
6a3fac90
YM
14842005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1485
1486 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
1487 Remove unused variables.
1488 (syms_of_macfns): Don't initialize them. Likewise for
1489 Qface_set_after_frame_default. Defvar and initialize
1490 Vx_window_horizontal_drag_shape.
1491 (x_set_mouse_color): Change mouse pointer shape.
1492 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 1493 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
1494 (hourglass_started): New function (from xfns.c).
1495 (start_hourglass, cancel_hourglass): Put function body in #ifdef
1496 MAC_OSX.
1497 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
1498 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 1499 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
1500
1501 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
1502 Controls.h. Use ThemeCursor instead of CursHandle.
1503
d5161e8c
SM
1504 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
1505 Remove functions and declarations.
1506 (mac_set_colors): Take argument for saving background color.
1507 All callers changed.
6a3fac90
YM
1508 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
1509 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
1510 background color.
1511 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
1512 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
1513 Use SetThemeCursor.
6a3fac90
YM
1514 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
1515 indicator control to the upper-right corner of the window.
1516 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
1517 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
1518 (do_window_update): Update controls after updating content area.
1519 (mac_handle_window_event): Remove unused extern.
1520 (XTread_socket): Check both control handle and control part code
1521 to determine whether a scroll bar is clicked. Activate/deactivate
1522 root control instead of contained scroll bar controls.
1523 (make_mac_terminal_frame): Use ThemeCursor constants.
1524
d5161e8c
SM
1525 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
1526 New member hourglass_control.
6a3fac90 1527 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 1528 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 1529
a7321976
YM
15302005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1531
1532 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 1533 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
1534 laptops, and fn + `enter' on laptops.
1535
f7b758bd
SM
15362005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1537
1538 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
1539 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
1540 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
1541
1542 * xfns.c (xic_defaut_fontset): New constant.
1543 (xic_create_fontsetname): New function.
1544 Extracted from create_frame_xic. Try to generate a slightly
1545 better fontset.
1546 (xic_create_xfontset): Use it.
1547 (create_frame_xic): Simplify.
1548
dac24db4
SM
15492005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
1550
1551 * fileio.c (Fmake_symbolic_link): Fix last change.
1552
e0402468
RS
15532005-03-11 Richard M. Stallman <rms@gnu.org>
1554
1555 * fileio.c (Frename_file, Fadd_name_to_file)
1556 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
1557 expand the basename of FILE relative to it.
1558
fa815b14
KH
15592005-03-11 Kenichi Handa <handa@m17n.org>
1560
1561 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
1562 before calling setup_coding_system so that autoloading of a coding
1563 system work.
1564
817d354b
JD
15652005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1566
68a505ef
JD
1567 * xfns.c (hourglass_started): New function.
1568
1569 * dispextern.h: Declare hourglass_started.
1570
1571 * keyboard.c (Fexecute_extended_command): Restart hourglass
1572 after call to Fcompleting_read if already started.
1573
817d354b
JD
1574 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
1575 GTK main loop is entered in xterm.c, thus doing the redraw.
1576
b0a6f45c
KS
15772005-03-10 Kim F. Storm <storm@cua.dk>
1578
1579 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
1580
ee5d57b0
KH
15812005-03-08 Kenichi Handa <handa@m17n.org>
1582
1583 * frame.c (x_set_font): Call set_default_ascii_font if an
1584 available font is found.
1585
1586 * fontset.c (set_default_ascii_font): New function.
dac24db4 1587 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
1588
1589 * fontset.h (set_default_ascii_font): Extern it.
1590
f30c4a5c
KS
15912005-03-07 Kim F. Storm <storm@cua.dk>
1592
3fb26a86
KS
1593 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
1594 (clear_image_cache_count): New var.
1595 (redisplay_internal): Don't clear face and image caches in the
1596 middle of redisplay; do it afterwards.
1597
a54595d4
KS
1598 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
1599
f30c4a5c
KS
1600 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
1601 is valid. If not, clear phys_cursor_on_p and return.
1602
3d182f9d
AS
16032005-03-07 Andreas Schwab <schwab@suse.de>
1604
1605 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
1606
85d964de
RS
16072005-03-06 Richard M. Stallman <rms@gnu.org>
1608
1609 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
1610
1611 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
1612 (Feval, Ffuncall): Use CHECK_CONS_LIST.
1613
1614 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
1615
1616 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
1617 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
1618
3ff96c81
JL
16192005-03-05 Juri Linkov <juri@jurta.org>
1620
1621 * emacs.c (USAGE1): Replace Info node name "command arguments"
1622 with "emacs invocation".
1623 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
1624 allow arguments `--color' and `MODE' to be separated by space.
1625 Add --no-blinking-cursor, -nbc.
1626 (standard_args): Add -nbc, --no-blinking-cursor.
1627
64eb0083
TTN
16282005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1629
1630 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
1631 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
1632 * fileio.c (Fexpand_file_name) [VMS]:
1633 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
1634 * doc.c (munge_doc_file_name) [VMS]: Likewise.
1635 (Fsnarf_documentation): Call munge_doc_file_name.
1636
ad708ae5
TTN
16372005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1638
1639 * s/vms.h (FILE_SYSTEM_CASE): New macro.
1640 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
1641 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
1642
ba025f6d
YM
16432005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1644
1645 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
1646 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 1647
dac24db4 1648 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
1649
1650 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1651 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 1652 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
1653 (mac_clear_font_name_table): Move extern to macterm.h.
1654
1655 * macfns.c (install_window_handler): Move extern to macterm.h.
1656 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
1657 valid. Don't check !NILP (dir) because it is already checked with
1658 CHECK_STRING.
1659 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 1660 specifying the default location and obtaining the selected filename.
ba025f6d
YM
1661
1662 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1663
2313f861 1664 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
1665 are included via Carbon.h.
1666
dac24db4
SM
1667 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
1668 Define USE_CARBON_EVENTS to 1.
2313f861 1669 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
1670 (x_free_frame_resources): Call remove_window_handler for
1671 non-tooltip windows.
1672 [TARGET_API_MAC_CARBON]: Don't include headers that are included
1673 via Carbon.h.
1674 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
1675 (mac_do_receive_dragUPP): New variables.
1676 (mac_handle_service_event, init_service_handler): Put declarations
1677 and definitions in #ifdef MAC_OSX.
1678 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
1679 drag-and-drop handler functions and register them.
1680 (remove_window_handler): New function.
dac24db4
SM
1681 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
1682 Use fsspec_to_posix_pathname.
ba025f6d
YM
1683 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
1684 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
1685 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
1686 Set default cursors.
ba025f6d
YM
1687 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
1688 init_service_handler or init_quit_char_handler.
1689 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
1690
1691 * macterm.h (install_window_handler, remove_window_handler)
1692 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
1693 (mac_clear_font_name_table): New externs.
ad708ae5 1694
c1558952
TTN
16952005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1696
1697 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
1698 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
1699 (Fexpand_file_name): Likewise.
1700
fa439170
TTN
17012005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1702
1703 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
1704 no longer special-case VMS. Add bogus return value.
1705
db2dacf6
KS
17062005-03-02 Kim F. Storm <storm@cua.dk>
1707
1708 * dispextern.h (XASSERTS): Define to 0 if not already defined.
1709 (xassert) [!XASSERTS]: Define dummy version.
1710
0870514c
KS
17112005-03-02 Kim F. Storm <storm@cua.dk>
1712
1713 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
1714 Reported by David Kastrup.
1715
6b640092
KS
17162005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
1717
1718 * xdisp.c (get_next_display_element): Fix control and escape
1719 glyph from display vector.
1720
f4a5a485
SM
17212005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
1722
1723 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
1724
85d964de
RS
17252005-02-27 Richard M. Stallman <rms@gnu.org>
1726
1727 * xdisp.c (fast_find_position): Rename END to BEG.
1728 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
1729
6e8db3ea
JD
17302005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1731
f4a5a485 1732 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
1733 gtk_window_resize and x_wm_set_size_hint.
1734
0f465b55
KS
17352005-02-25 Kim F. Storm <storm@cua.dk>
1736
1737 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
1738
1739 * xdisp.c (init_from_display_pos): Don't read past end of
1740 it->overlay_strings array.
1741
d5fb8dab 17422005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
1743
1744 * buffer.c (syms_of_buffer): Fix typo.
1745
b02c3eed
LK
17462005-02-23 Lute Kamstra <lute@gnu.org>
1747
1748 * buffer.c (Foverlay_buffer): Doc fix.
1749
c8500765
KS
17502005-02-22 Kim F. Storm <storm@cua.dk>
1751
b686dd59
KS
1752 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
1753 and symbol keys in alists and hash tables.
1754
c8500765
KS
1755 * xdisp.c (fast_find_position): Fix search for start of overlay.
1756
81c85b53
KS
17572005-02-21 Kim F. Storm <storm@cua.dk>
1758
1759 * window.c (window_scroll_pixel_based): When scrolling backwards,
1760 handle partial visible line at end of window even when we hit PT.
1761
f4a5a485 17622005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
1763
1764 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
1765
0dd5a842
KS
17662005-02-21 Kim F. Storm <storm@cua.dk>
1767
1768 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
1769 I think those asserts are bogus if buffer contains invisible text
1770 or images.
1771
d5fb8dab 17722005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
1773
1774 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
1775
0fba9f25
KS
17762005-02-20 Kim F. Storm <storm@cua.dk>
1777
1778 * xdisp.c (pos_visible_p): Be sure to move to the specified
1779 position. Always get the full ascent / descent of the
1780 corresponding row, to return reliable rtop and rbot values.
1781 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
1782 Must look one character back, as back_to_previous_line_start
1783 returns position after the newline.
1784 (move_it_vertically_backward): Fix heuristic for when to move further
1785 back in case line_height * 2/3 is larger than window height.
1786 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
1787 as it does not do anything anymore. Add arg current_matrix_p to
1788 use current matrix rather than desired matrix when set.
1789 (try_cursor_movement): Don't scroll to make cursor row fully
1790 visible if cursor didn't move. This avoids unexpected recentering
1791 in case of blinking cursor or accepting process output.
1792 Use current matrix to check cursor row visibility.
1793 (redisplay_window): Fix whether to recenter or move to top in case
1794 cursor line is taller than window height.
1795 (find_first_unchanged_at_end_row): Stop search if we reach a row
1796 which not enabled (instead of abort).
1797
b1c2adc3
KS
17982005-02-18 Kim F. Storm <storm@cua.dk>
1799
c2ee48fb
KS
1800 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
1801 to be nil in a :box attribute value list; customize prints that
1802 as lisp value when no box color is specified.
1803
b1c2adc3
KS
1804 * .gdbinit (pitx, pit): Pretty print display iterator.
1805 (prowx, prow): Pretty print glyph row.
1806 (pcursorx, pcursor): Pretty print a window cursor.
1807 (pwinx, pwin): Pretty print struct window.
1808
f102186f
SM
18092005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1810
1811 * alloc.c (BLOCK_BYTES): Harmless typo.
1812
9b516537
AS
18132005-02-17 Andreas Schwab <schwab@suse.de>
1814
1815 * xfns.c (hack_wm_protocols): Use correct type for last parameter
1816 of XGetWindowProperty to avoid aliasing issues.
1817 (Fx_window_property): Likewise.
1818
1819 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 1820 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
1821
1822 * xterm.c (handle_one_xevent): Use union of struct input_event and
1823 struct selection_input_event to avoid aliasing issues.
1824 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
1825
886b1418
KS
18262005-02-17 Kim F. Storm <storm@cua.dk>
1827
1828 * dispextern.h (enum it_method): New enum.
1829 (GET_FROM_*): Its members.
1830 (struct it): Change member method from function pointer to enum.
1831
1832 * xdisp.c (check_it, init_from_display_pos, handle_stop)
1833 (setup_for_ellipsis, handle_single_display_spec)
1834 (handle_composition_prop, next_overlay_string)
1835 (get_overlay_strings, reseat_1, reseat_to_string)
1836 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
1837 (in_display_vector_p, display_line, get_next_display_element):
1838 Change it->method from function pointer to enum.
1839 (get_next_element): New array to map it->method to function.
1840 (get_next_display_element): Use it.
1841 (set_iterator_to_next): Use switch instead of if/else chain.
1842
99ee2c6a 18432005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
1844
1845 * w32select.c: Summary: Thorough rework to implement Unicode
1846 clipboard operations and delayed rendering.
1847
1848 Drop last_clipboard_text and related code, keep track of
f4a5a485 1849 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
1850
1851 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
1852 (clipboard_owner, modifying_clipboard, cfg_coding_system)
1853 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
1854 (current_coding_system, current_requires_encoding)
f4a5a485
SM
1855 (current_num_nls, current_clipboard_type, current_lcid):
1856 New static variables.
52c7f9ee
JR
1857
1858 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
1859 (render, render_all, run_protected, lisp_error_handler)
1860 (owner_callback, create_owner, setup_config)
f4a5a485
SM
1861 (enum_locale_callback, cp_from_locale, coding_from_cp):
1862 New local functions.
52c7f9ee
JR
1863
1864 (term_w32select, globals_of_w32select): New global functions.
1865
1866 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
1867 clipboard_owner instead. Use delayed rendering and provide
1868 all text formats. Provide CF_LOCALE if necessary.
1869
1870 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
1871 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
1872 available. Force DOS line-ends for decoding.
1873
1874 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
1875
1876 (syms_of_w32select): Init and register new variables.
1877
1878 * w32.h: Add prototypes for globals_of_w32select and
1879 term_w32select. Make the neighboring K&R declarations into
1880 prototypes, too.
1881
1882 * emacs.c: Include w32.h to get function prototypes.
1883 (main): Call globals_of_w32select.
1884
886b1418 1885 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
1886
1887 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
1888
86e61586
KS
18892005-02-16 Kim F. Storm <storm@cua.dk>
1890
1891 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
1892 at end of display vector.
1893
6407f07b
RS
18942005-02-15 Richard M. Stallman <rms@gnu.org>
1895
1896 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
1897 for mode and header lines.
1898
1899 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1900
1901 * keymap.h (describe_map_tree): Change decl.
1902
1903 * keyboard.c (command_loop_1): Always use safe_run_hooks
1904 to run Qdeferred_action_function.
1905
1906 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
1907 (describe_map, describe_vector): Likewise. When it's 1,
1908 don't omit shadowed bindings, instead mark them as shadowed.
1909
1910 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
1911 for describe_map_tree. Pass 1 for MENTION_SHADOW.
1912
1913 * data.c (Fsetq_default): Allow no arg case.
1914
3bb917bf
KH
19152005-02-14 Kenichi Handa <handa@m17n.org>
1916
1917 * coding.c (encode_coding_string): Always return a unibyte string.
1918 If NOCOPY is nonzero and there's no need of encoding, make STR
1919 unibyte directly.
1920
1921 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
1922 multibyte string, signal an error instead of aborting.
1923
e31d908f
DN
19242005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
1925
1926 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
1927
48e029b6
KS
19282005-02-12 Kim F. Storm <storm@cua.dk>
1929
1930 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
1931
c10bb00a
KS
19322005-02-10 Kim F. Storm <storm@cua.dk>
1933
1934 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
1935 if it moves outside window or it doesn't display text.
1936
9ca0f64a
KS
19372005-02-09 Kim F. Storm <storm@cua.dk>
1938
1939 * undo.c (Fprimitive_undo): Check that undo function does not
1940 switch buffer.
1941
b8d6f4af
JD
19422005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1943
1944 * xselect.c (selection_data_to_lisp_data): For the special case
1945 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
1946 (x_property_data_to_lisp, selection_data_to_lisp_data):
1947 Comment update: data must be array of int for format == 32.
b8d6f4af 1948
3419757d
SM
19492005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
1950
1951 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
1952
3a441526
JD
19532005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1954
fc34503b
JD
1955 * xfns.c (Fx_change_window_property): Use long array when format is 32.
1956 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
1957 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
1958 (x_set_tool_bar_lines): Check that width and height is greater than
1959 zero before clearing area.
fc34503b
JD
1960
1961 * xselect.c (x_reply_selection_request): Pass long array to
1962 XChangeProperty so that 64 bit longs are handeled correctly.
1963 (x_get_window_property): If format is 32 and long is bigger than 32
1964 bits convert data from XGetWindowProperty from long array to int array.
1965 (lisp_data_to_selection_data): When the input is a vector and the
1966 format is 32, allocate a long array even if long is bigger than 32 bits.
1967 (x_fill_property_data): Use char, short and long as the man page
1968 for XChangeProperty specifies. This way the data returned is OK for
1969 both 32 and 64 bit machines.
1970 (x_handle_dnd_message): Calculate size correctly even for 64 bit
1971 machines.
1972 (Fx_send_client_event): Undo change from 2005-02-05,
1973 x_fill_property_data now handles that case.
1974
3419757d 1975 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
1976 reason for the approach in the code.
1977
82ec225b
KS
19782005-02-07 Kim F. Storm <storm@cua.dk>
1979
1980 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
1981
ba2c991c
RS
19822005-02-06 Richard M. Stallman <rms@gnu.org>
1983
1984 * eval.c (Frun_hook_with_args)
1985 (Frun_hook_with_args_until_success)
1986 (Frun_hook_with_args_until_failure): Doc fixes.
1987
e120ea40
AS
19882005-02-05 Andreas Schwab <schwab@suse.de>
1989
3419757d 1990 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 1991
31f16913
JD
19922005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1993
1994 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
1995 the longs in a XClientMessageEvent correctly when long is 64 bits.
1996
6082a820
EZ
19972005-02-05 Eli Zaretskii <eliz@gnu.org>
1998
1999 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
2000 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
2001
0e95095b
JD
20022005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2003
2004 * xmenu.c (menubar_selection_callback): Force out GTK buffered
2005 events so the menu event comes after them. This is to prevent sit-for
2006 from exiting on buffered events directly after a menu selection,
2007 lisp code for Help => About Emacs uses sit-for.
2008
2009 * gtkutil.c (create_menus): Connect selection-done event instead of
2010 the deactivate event to deactivate_cb. This will make the last
2011 leave event come before the call to deactivate_cb, so the leave
2012 event does not make sit-for exit after a menu selection.
2013
5bb6a3c1
KS
20142005-02-03 Kim F. Storm <storm@cua.dk>
2015
2016 * dispnew.c (build_frame_matrix_from_leaf_window)
2017 [!GLYPH_DEBUG]: Fix xassert.
2018
2019 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
2020
2021 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2022
e9859e26
YM
20232005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2024
2025 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
2026 the compiling OS version.
2027
2028 * macfns.c (x_create_tip_frame): Likewise.
2029
3419757d 2030 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 2031
4e07258f
RS
20322005-02-03 Richard M. Stallman <rms@gnu.org>
2033
2034 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
2035
2036 * xdisp.c (echo_area_display): Clear echo_message_buffer.
2037
2038 * buffer.c (Fbury_buffer): Doc fix.
2039
4a34b529
ST
20402005-02-02 Steven Tamm <steventamm@mac.com>
2041
7e26f91b 2042 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 2043 xassert being uncondition, but predicate is.
7e26f91b 2044 * dispnew.c (update_window): Fix compile error due to
f6c62d96 2045 xassert being uncondition, but predicate is.
4a34b529 2046
d78f30b8
MB
20472005-02-02 Miles Bader <miles@gnu.org>
2048
2049 * dispextern.h (xassert): Enable unconditionally.
2050
b044278d
KS
20512005-02-02 Kim F. Storm <storm@cua.dk>
2052
2053 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
2054
56072160
KH
20552005-02-02 Kenichi Handa <handa@m17n.org>
2056
2057 * casefiddle.c (casify_object): Enable changing characters of
2058 different byte length.
2059 (casify_region): Fix loop condition, args to replace_range_2, and
2060 update opoint_byte.
2061
f4a5a485 2062 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 2063
5e1674c5
KS
20642005-02-01 Kim F. Storm <storm@cua.dk>
2065
2066 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
2067 stack before calling handle_display_prop.
2068
fb89c330
KS
20692005-01-31 Kim F. Storm <storm@cua.dk>
2070
2071 * undo.c (Qapply): New lisp var.
2072 (syms_of_undo): Intern and staticpro it.
2073 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
2074 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
2075
2076 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2077
7bf72fa6
JH
20782005-01-30 Jesper Harder <harder@phys.au.dk>
2079
a050b1a9
KS
2080 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
2081 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 2082
03c64f2e
LT
20832005-01-29 Luc Teirlinck <teirllm@auburn.edu>
2084
2085 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 2086 Increase value to 3 Meg.
03c64f2e 2087
49b8b5dc
JD
20882005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2089
2090 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
2091 button events are not received otherwise.
2092
5a92a9eb
RS
20932005-01-29 Richard M. Stallman <rms@gnu.org>
2094
2095 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2096
2097 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
2098
5c243ee4
SM
20992005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2100
2101 * keymap.c (access_keymap): YAILOM.
2102
caf533af
KS
21032005-01-27 Kim F. Storm <storm@cua.dk>
2104
2105 * xdisp.c (get_phys_cursor_geometry): New function to calculate
2106 phys cursor position and size for hollow cursor. Position is
2107 aligned with get_glyph_string_clip_rect and ensures that a hollow
2108 cursor is shown, even when the actual glyph is not visible.
2109
2110 * dispextern.h (get_phys_cursor_geometry): Add prototype.
2111
2112 * xterm.c (x_clip_to_row): Ensure y >= 0.
2113 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2114
2115 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2116
2117 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2118
043f7f73
SM
21192005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
2120
2121 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
2122
889f3641
KS
21232005-01-27 Kim F. Storm <storm@cua.dk>
2124
2125 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
2126 glyph, even when row is only partially visible and actual cursor
2127 position is not visible.
2128
29099c2f
RS
21292005-01-24 Richard M. Stallman <rms@gnu.org>
2130
2131 * xterm.c (x_error_quitter): No longer static, and moved after
2132 x_error_handler.
2133
6adb6f01
KS
21342005-01-24 Kim F. Storm <storm@cua.dk>
2135
2136 * xdisp.c (move_it_by_lines): If we move forward after going too
2137 far back, cancel move if end position is same as start position.
2138
4d904fa0
ST
21392005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2140
2141 * dispextern.h (struct glyph_string): New members clip_head and
2142 clip_tail.
6adb6f01 2143
4d904fa0
ST
2144 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
2145 region to the area between clip_head and clip_tail.
2146 (draw_glyphs): Record the area that need to be actually redrawn to
2147 the new variables clip_head and clip_tail when there are
2148 overhangs. Set values of these variables to the corresponding
2149 members in struct glyph_string. Refine x coordinates for
2150 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 2151
4d904fa0
ST
2152 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
2153
2154 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
2155 QDTextBounds.
2156 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 2157 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 2158 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 2159 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 2160
f2417699
KS
21612005-01-24 Kim F. Storm <storm@cua.dk>
2162
6f67f013
KS
2163 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
2164 direction if window height was smaller than next-screen-context-lines.
2165 Now always scroll at least one line in the requested direction.
2166 Ensure that we actually do scroll backwards when requested to do so.
2167
f2417699
KS
2168 * xdisp.c (redisplay_window): Only try to make cursor line fully
2169 visible once (to avoid redisplay loop).
2170
a354b72c
KS
21712005-01-23 Kim F. Storm <storm@cua.dk>
2172
6b3d88f7 2173 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 2174 partially visible rows.
6b3d88f7
KS
2175 (window_scroll_pixel_based): Adapt to that change.
2176
5c20cae2
KS
2177 * window.c (window_scroll_pixel_based): Force moving to next line
2178 if scrolling doesn't move start point, e.g. if looking at tall image.
2179
a354b72c 2180 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
2181 Clear last_height before calling line_bottom_y to get real height.
2182 Fix calculation of y.
a354b72c 2183
d9e7c622
ST
21842005-01-22 Steven Tamm <steventamm@mac.com>
2185
2186 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 2187 (DARWIN): Define.
7e26f91b 2188
d9e7c622
ST
2189 * process.c (init_process): Default process-connection-type to
2190 nil on darwin 6 or less, t if it is 7 or higher. This way the
2191 broken pty behavior is still allowed on darwin 6 for interactive
2192 processes for people that know what they are doing.
2193
d00e399a
KS
21942005-01-22 Kim F. Storm <storm@cua.dk>
2195
2196 * window.c (auto_window_vscroll_p): New boolean.
2197 (syms_of_window): DEFVAR_BOOL it.
2198 (Fpos_visible_in_window_p): Extend return value to include RTOP
2199 and RBOT values if FULLY is nil.
2200 (window_scroll_pixel_based): Adjust vscroll for partially visible
2201 rows if auto_window_vscroll_p is set.
2202 (Fset_window_vscroll): Do nothing if vscroll is not modified.
2203
2204 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
2205 to return number of partially invisible pixels at top and bottom
2206 of the dislay row at POS.
2207
2208 * lisp.h (pos_visible_p): Fix prototype.
2209
f95a20e7
RS
22102005-01-21 Richard M. Stallman <rms@gnu.org>
2211
2212 * fileio.c (Fcopy_file): Doc fix.
2213
eee141ce
JD
22142005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2215
2216 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
2217 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
2218 start of function for older compilers.
2219
6f771c32
RS
22202005-01-20 Richard M. Stallman <rms@gnu.org>
2221
2222 * editfns.c (Fmessage): If arg is "", return "" (as before).
2223
2224 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
2225
2226 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
2227 variable.
2228
a15252fd
ST
22292005-01-20 Steven Tamm <steventamm@mac.com>
2230
043f7f73 2231 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
2232 (init_editfns): Assign new variable operating-system-release
2233 based on call to uname if available.
043f7f73 2234 (get_operating_system_release): Add function to
d00e399a 2235 allow c-level access to operating system release.
a15252fd
ST
2236
2237 * config.h: Regenerated.
2238
043f7f73
SM
2239 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
2240 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
2241 using ptys as '7'.
2242
3d6a4b2d
KS
22432005-01-20 Kim F. Storm <storm@cua.dk>
2244
62fc9b0f
KS
2245 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
2246
c310aca4
KS
2247 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
2248 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
2249
2250 * macterm.c (x_draw_glyph_string_box): Likewise.
2251
2252 * w32term.c (x_draw_glyph_string_box): Likewise.
2253
3d6a4b2d
KS
2254 * indent.c (Fvertical_motion): Temporarily disable selective display.
2255
27c8be45
KS
22562005-01-19 Kim F. Storm <storm@cua.dk>
2257
77db5cf3
KS
2258 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
2259 image property.
2260
27c8be45
KS
2261 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
2262
81f498dc
KS
22632005-01-18 Kim F. Storm <storm@cua.dk>
2264
2265 * xdisp.c (fast_find_position): Backtrack to find first row if
2266 charpos is inside a display overlay that spans multiple lines.
2267
1cdb0707
KH
22682005-01-18 Kenichi Handa <handa@m17n.org>
2269
2270 * coding.c (decode_coding_iso2022): Translate invalid codes if
2271 translation-table is specified.
2272
677159ce
KS
22732005-01-18 Kim F. Storm <storm@cua.dk>
2274
2275 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
2276 change. If handle_display_prop indicates newline is replaced by
2277 image or text, move back to start of relevant overlay or interval
2278 and continue scan from there. Simplify.
2279
977284cc
KS
22802005-01-17 Kim F. Storm <storm@cua.dk>
2281
043f7f73
SM
2282 * dispnew.c (mode_line_string, marginal_area_string):
2283 Fix off-by-one error in search for glyph.
977284cc 2284
e24531b7
KS
22852005-01-16 Kim F. Storm <storm@cua.dk>
2286
2287 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
2288
5ddd7664
ST
22892005-01-16 Steven Tamm <steventamm@mac.com>
2290
043f7f73 2291 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 2292
fc2ff44b
AS
22932005-01-16 Andreas Schwab <schwab@suse.de>
2294
2295 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
2296
50af5100
JD
22972005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2298
2299 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
2300 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
2301
a2d5fca0
JD
23022005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2303
2304 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
2305 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
2306 New flags for readable_events.
043f7f73 2307 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
2308 (tracking_off): Call readable_events and get_input_pending with
2309 flag READABLE_EVENTS_DO_TIMERS_NOW.
2310 (readable_events): Move code from old readable_filtered_events here,
2311 but check new READABLE_EVENTS_* in argument flags instead of previous
2312 two boolean arguments do_timers_now and filter_events.
2313 If we are doing mouse tracking and the mouse moved, return only if
2314 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
2315 (swallow_events): Call get_input_pending with flag
2316 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 2317 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
2318 here. Replace boolean arguments do_timers_now, filter_events with
2319 flags, and pass flags to readable_events. Document new
2320 READABLE_EVENTS_* flags.
2321 (detect_input_pending_ignore_squeezables): New function.
2322 (detect_input_pending_run_timers): Call get_input_pending with flag
2323 READABLE_EVENTS_DO_TIMERS_NOW.
2324 (Finput_pending_p): Call get_input_pending with flags
2325 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
2326
2327 * dispnew.c (update_window, update_frame_1): Replace calls to
2328 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 2329 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
2330 mouse movements.
2331
2332 * lisp.h: Declare detect_input_pending_ignore_squeezables.
2333
42afbcda
ST
23342005-01-15 Steven Tamm <steventamm@mac.com>
2335
e24531b7
KS
2336 * macterm.c (Vmac_use_core_graphics): Declare variable for
2337 mac-allow-anti-aliasing.
2338 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 2339 (mac_draw_string_common): Use core graphics text rendering if
0530c679 2340 mac-allow-anti-aliasing is enabled.
743d0696 2341
42afbcda
ST
2342 * macfns.c (Fx_file_dialog): Save As dialog includes only the
2343 file name in the text box.
2344
9cdd4884
ST
23452005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2346
043f7f73
SM
2347 * macfns.c (x_set_foreground_color, x_set_background_color):
2348 Sync with xfns.c.
9cdd4884
ST
2349 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
2350 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
2351 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
2352
88948d55
KS
23532005-01-14 Kim F. Storm <storm@cua.dk>
2354
2355 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
2356
20d6de82
RS
23572005-01-13 Richard M. Stallman <rms@gnu.org>
2358
2359 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
2360 if Voverriding_terminal_local_map is non-nil.
2361
2362 * keyboard.c (syms_of_keyboard): Doc fix.
2363
f75a592e
KS
23642005-01-13 Kim F. Storm <storm@cua.dk>
2365
2366 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 2367 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 2368
28f94a34
RS
23692005-01-12 Richard M. Stallman <rms@gnu.org>
2370
2371 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
2372 face property for characters that don't specify one.
2373
2374 * fns.c (Frequire): Record in load-history unconditionally.
2375
57a230b1
KS
23762005-01-10 Kim F. Storm <storm@cua.dk>
2377
2378 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
2379
2380 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
2381 Callers changed.
2382 Add support to merge with lisp face id too (if face_name is t).
2383
2384 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2385 Don't lookup lface_id from display table glyphs here; instead use
2386 merge_faces to merge the lisp face id into current face.
2387
8ab2c119
KS
23882005-01-09 Kim F. Storm <storm@cua.dk>
2389
2390 * dispextern.h (struct it): New member dpvec_face_id.
2391 (merge_into_realized_face): Add prototype.
2392
2393 * xfaces.c (merge_into_realized_face): New function. Used to
2394 merge escape-glyph face or face from display table into current face.
2395
2396 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
2397 (syms_of_xdisp): DEFVAR_LISP it.
2398 (escape_glyph_face): Remove var.
2399 (redisplay_window): Don't initialize it.
2400 (setup_for_ellipsis, get_next_display_element):
2401 Set it->dpvec_face_id to -1.
2402 (get_next_display_element): Test Vshow_nonbreak_escape.
2403 Do not setup escape_glyph_face.
2404 Properly merge escape-glyph face or face from display table with
043f7f73
SM
2405 current face for escape and control characters.
2406 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
2407 element of display vector.
2408 (next_element_from_display_vector): If it->dpvec_face_id is set,
2409 use that instead of lface_id from glyph itself.
2410
e0910857
JD
24112005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2412
2413 * xterm.h (struct x_output): New member, toolbar_detached.
2414
2415 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
2416 38.
2417 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
2418 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
2419 (xg_create_tool_bar): Initialize toolbar_detached.
2420 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
2421 toolbar_detached is zero.
2422
ff59904a
JD
24232005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2424
9b85e63d
JD
2425 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
2426 gtk_menu_popup if not for_click, so callbacks for the menu are called.
2427
ff59904a
JD
2428 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
2429 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 2430 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
2431
2432 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 2433 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
2434 XFLOAT_DATA to get extract number from Lisp object.
2435
f9a23a6f
KS
24362005-01-07 Kim F. Storm <storm@cua.dk>
2437
2438 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
2439 Set stop_charpos to current charpos instead of 0.
2440
28f94a34
RS
24412005-01-06 Nick Roberts <nickrob@snap.net.nz>
2442
2443 * xdisp.c (Fformat_mode_line): First arg now required.
2444
a6fffcdc
ST
24452005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2446
2447 * macterm.c (XLoadQueryFont): Correctly handle 0 size
2448 font widths that are returned from some Japanese fonts.
2449
c35b0c6b
KS
24502005-01-06 Kim F. Storm <storm@cua.dk>
2451
2452 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
2453 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
2454 (destroy_fringe_bitmap): Set fringe_faces element to nil.
2455 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
2456 fringe_faces array and init elements to nil.
2457 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
2458 non-persistent face id.
2459 (mark_fringe_data): New function for GC.
2460
2461 * alloc.c (mark_fringe_data): Declare extern.
2462 (Fgarbage_collect): Call mark_fringe_data.
2463
2464 * alloc.c (overrun_check_free): Invalidate freed memory if
2465 XMALLOC_CLEAR_FREE_MEMORY is defined.
2466
e0e76ab9
ST
24672005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2468
2469 * macfns.c: Include sys/param.h.
2470 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
2471 and function.
2472 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
2473 of filename string. Set event callback function when creating
2474 dialog boxes. Add code conversions for filenames. Don't dispose
2475 apple event descriptor record if failed to create it.
2476
2477 * macterm.c: Include sys/param.h.
2478 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
2479 kEventWindowUpdate.
2480 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
2481 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
2482 of FSSpec from apple event descriptor record.
2483 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
2484 size of filename string.
2485 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
2486 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
2487 file dialog is in action.
043f7f73
SM
2488 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
2489 Reject only when there are no filename items. Set background color
e0e76ab9 2490 before (un)highlighting the window below the dragged items.
2313f861 2491 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 2492
043bc640
KH
24932005-01-05 Romain Francoise <romain@orebokech.com>
2494
2495 * term.c (encode_terminal_code): Fix buffer size computation.
2496
dd496df6
RS
24972005-01-04 Richard M. Stallman <rms@gnu.org>
2498
2499 * xdisp.c (Fformat_mode_line): Doc fix.
2500
026cdede
SM
25012005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2502
2503 * alloc.c (refill_memory_reserve): Move.
2504 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
2505 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
2506
d57c7572
RS
25072005-01-03 Richard M. Stallman <rms@gnu.org>
2508
2509 * window.c (window_scroll_pixel_based): Don't correct preserve_y
2510 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
2511
b14f868c
JR
25122005-01-03 Jason Rumney <jasonr@gnu.org>
2513
2514 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
2515 fontp->space_width to FONT_WIDTH so they are valid.
2516
2517 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 2518 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
2519 their appropriate values.
2520
2521 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2522 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
2523 fontp->space_width.
2524
e169f939
ST
25252005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2526
2527 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
2528 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
2529 metrics for max and min bounds.
2530 (x_load_font): Correctly calculate average font width metrics.
2531
19996af4
RS
25322005-01-02 Richard M. Stallman <rms@gnu.org>
2533
2534 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
2535
42d02da0
JD
25362004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2537
2538 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
2539
1db7dd46
RS
25402004-12-31 Richard M. Stallman <rms@gnu.org>
2541
b437860a
RS
2542 * xdisp.c (setup_for_ellipsis, get_next_display_element):
2543 Set it->ellipsis_p to 1 or 0.
2544 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 2545 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
2546 (cursor_row_p): If PT's at the end of the ellipsis the row
2547 ends within, don't display cursor on this row.
2548
2549 * dispextern.h (struct it): New element ellipsis_p.
2550 (struct glyph_row): New element ends_in_ellipsis_p.
2551
2552 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
2553 position if we're reading from something other than the buffer.
2554
1db7dd46
RS
2555 * window.c (window_scroll_pixel_based): Only look at
2556 Vscroll_preserve_screen_position if the old PT can't be kept.
2557 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2558
1225f637
KS
25592004-12-30 Kim F. Storm <storm@cua.dk>
2560
2561 * xdisp.c (get_line_height_property): New function extracted from
2562 original calc_line_height_property.
2563 (calc_line_height_property): Rework. Handle t and (nil . ratio).
2564 (x_produce_glyphs): Use them to handle line-height and
2565 line-spacing according to new height spec.
2566 (Qtotal): Remove.
33b2f4ea 2567 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 2568
c243063e
KH
25692004-12-30 Kenichi Handa <handa@m17n.org>
2570
2571 * fileio.c (Finsert_file_contents): Don't use
2572 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 2573 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
2574
2575 * fontset.h (struct font_info): New members space_width and
2576 average_width.
2577
2578 * frame.h (struct frame): New member space_width.
2579 (FRAME_SPACE_WIDTH): New macro.
2580
2581 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
2582
2583 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2584 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 2585 fontp->space_width.
043f7f73 2586 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
2587 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
2588
2589 * xdisp.c (x_produce_glyphs): Calculate tab width by
2590 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
2591
456e761b
ST
25922004-12-29 Sanghyuk Suh <han9kin@mac.com>
2593
2594 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 2595 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 2596
188577ce
LT
25972004-12-29 Luc Teirlinck <teirllm@auburn.edu>
2598
2599 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
2600
99ec74b9
RS
26012004-12-29 Richard M. Stallman <rms@gnu.org>
2602
2603 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
2604
30c92fab
ST
26052004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2606
2607 * macfns.c (install_window_handler): Modify extern to return OSErr
2608 value.
2609 (mac_window): Handle return value of install_window_handler.
2610
2611 * macterm.c (reflect_byte): Remove function.
2612 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
2613 Lookup table instead.
2614 (mac_do_font_lists): Simplify calculation of the longest
2615 nonspecial string.
2616 (init_mac_drag_n_drop): Remove function and declaration.
2617 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
2618 init_mac_drag_n_drop.
2619 (mac_do_track_drag): New function and declaration.
2620 (install_window_handler): Return OSErr value.
043f7f73
SM
2621 (install_window_handler) [TARGET_API_MAC_CARBON]:
2622 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 2623 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
2624 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
2625 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 2626
4b982924
DN
26272004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2628
2629 * coding.c (decode_coding): Fix previous change.
2630
93fdf45f
RS
26312004-12-28 Richard M. Stallman <rms@gnu.org>
2632
2633 * xdisp.c (back_to_previous_visible_line_start):
2634 Don't call handle_display_prop.
2635
5bdca8af
DN
26362004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2637
2638 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
2639 (decode_coding_emacs_mule, encode_coding_emacs_mule)
2640 (decode_coding_iso2022, encode_designation_at_bol)
2641 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
2642 (decode_coding): Constify arguments and local vars.
2643
33385c6f
JD
26442004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2645
2646 * xmenu.c (popup_get_selection): Only pop down dialogs
2647 on C-g and Escape.
95bdef2e 2648 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
2649 (create_and_show_popup_menu, create_and_show_dialog):
2650 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 2651
b15325b2
ST
26522004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2653
2654 * dispextern.h: Change HAVE_CARBON to MAC_OS.
2655 (struct glyph_string): Likewise.
a2c7e69a 2656
b15325b2
ST
2657 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
2658 mac_initialize.
a2c7e69a 2659
b15325b2
ST
2660 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
2661 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 2662
b15325b2 2663 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 2664
b15325b2
ST
2665 * frame.c (x_set_frame_parameters, x_report_frame_params)
2666 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
2667 (x_set_border_width, Vdefault_frame_scroll_bars):
2668 Change HAVE_CARBON to MAC_OS.
a2c7e69a 2669
b15325b2
ST
2670 * image.c [MAC_OS]: Include sys/stat.h.
2671 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
2672 QuickTimeComponents.h.
a2c7e69a 2673
b15325b2
ST
2674 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
2675 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 2676 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
2677 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
2678 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2679 (mac_clear_font_name_table): Add extern.
2680 (Fmac_clear_font_name_table): New defun.
2681 (syms_of_mac): Defsubr it.
2682 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
2683 [MAC_OSX] (select_and_poll_event): New function.
2684 [MAC_OSX] (sys_select): Use it.
2685 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
2686 [MAC_OSX && SELECT_USE_CFSOCKET]
2687 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
2688 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
2689 RunLoop for simultaneously monitoring two kinds of inputs, window
2690 events and process outputs, without periodically polling.
a2c7e69a 2691
b15325b2
ST
2692 * macfns.c (mac_initialized): Remove extern.
2693 (stricmp): Put in #if 0. All callers changed to use xstricmp in
2694 xfaces.c.
043f7f73
SM
2695 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
2696 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
2697 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
2698 (mac_get_rdb_resource): New function (from w32reg.c).
2699 (x_get_string_resource): Use it.
2700 (install_window_handler): Add extern.
2701 (mac_window): New function.
043f7f73
SM
2702 (Fx_create_frame): Use it instead of make_mac_frame.
2703 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
2704 (Fx_open_connection, Fx_close_connection): New defuns.
2705 (syms_of_macfns): Defsubr them.
043f7f73
SM
2706 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
2707 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
2708 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
2709 (x_create_tip_frame): Don't call ShowWindow.
2710 (Fx_show_tip): Call ShowWindow.
2711 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
2712 TARGET_API_MAC_CARBON'.
2713 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
2714 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 2715
043f7f73 2716 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
2717 (Window): Typedef to WindowPtr and move outside `#if
2718 TARGET_API_MAC_CARBON'.
2719 (XSizeHints): New struct.
a2c7e69a 2720
b15325b2
ST
2721 * macterm.c (x_update_begin, x_update_end)
2722 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
2723 frame.
2724 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2725 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
2726 (construct_mouse_click): Put in #if 0.
2727 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
2728 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
2729 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2730 (activate_scroll_bars, deactivate_scroll_bars)
2731 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
2732 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
2733 if the position is neither user-specified nor program-specified.
2734 (x_free_frame_resources): Free size_hints.
043f7f73 2735 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
2736 (mac_clear_font_name_table): New function.
2737 (mac_do_list_fonts): Initialize font_name_table if needed.
2738 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
2739 around mac_do_list_fonts.
2740 (mac_unload_font): New function.
2741 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
2742 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
2743 and definitions with #if TARGET_API_MAC_CARBON.
2744 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
2745 (install_window_handler): Add decl.
2746 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
2747 window. Use UpdateControls. Get the rectangle that should be
2748 updated and restrict the target of expose_frame to it.
043f7f73 2749 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
2750 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
2751 (do_zoom_window): Don't use x_set_window_size.
2752 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
2753 (install_window_handler): New function.
2754 [!USE_CARBON_EVENTS] (mouse_region): New variable.
2755 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
2756 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
2757 GetEventDispatcherTarget inside BLOCK_INPUT.
2758 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
2759 Update mouse_region when mouse is moved.
2760 (make_mac_frame): Remove.
043f7f73
SM
2761 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
2762 Initialize mouse pointer shapes. Change values of f->left_pos and
2763 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
2764 Don't call ShowWindow.
b15325b2
ST
2765 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
2766 Vinvocation_name and Vsystem_name.
2767 (mac_make_rdb): New function (from w32term.c).
2768 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
2769 already been opened. Don't pass argument to
2770 mac_initialize_display_info. Don't set dpyinfo->height/width.
2771 Add entries to x_display_list and x_display_name_list.
2772 (x_delete_display): New function.
2773 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
2774 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
2775
b15325b2
ST
2776 * macterm.h (check_mac): Add extern.
2777 (struct mac_output): New member size_hints.
2778 (FRAME_SIZE_HINTS): New macro.
2779 (mac_unload_font): Add extern.
a2c7e69a 2780
b15325b2 2781 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 2782
b15325b2
ST
2783 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
2784
92d2947b
RS
27852004-12-27 Richard M. Stallman <rms@gnu.org>
2786
043f7f73 2787 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
2788 (syms_of_buffer): Don't defsubr it.
2789
2790 * process.c (list_processes_1): Set undo_list instead
2791 of calling Fbuffer_disable_undo.
2792
043f7f73 2793 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 2794 single_display_prop_string_p.
043f7f73 2795 (single_display_spec_intangible_p): Rename from
92d2947b 2796 single_display_prop_intangible_p.
043f7f73 2797 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
2798 Rewritten to be easier to understand.
2799
a2c7e69a 2800 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
2801 and variables get just NAME.
2802
2803 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2804
2805 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2806 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
2807 (Qdefvar): Var deleted.
2808 (syms_of_eval): Don't initialze it.
2809
2810 * lread.c (syms_of_lread) <load-history>: Doc fix.
2811
9f6fcdc5
JD
28122004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2813
2814 * xmenu.c (popup_get_selection): Pop down on C-g.
2815 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
2816 pops down menu on C-g.
2817 (xdialog_show): If dialog popped down and no button in the dialog was
2818 pushed, call Fsignal to quit.
2819 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
2820 Fsignal to quit.
2821
2822 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
2823
2824 * gtkutil.c (xg_initialize): Install bindings for C-g so that
2825 dialogs and menus pop down.
2826
d8ca23a0
KH
28272004-12-27 Kenichi Handa <handa@m17n.org>
2828
2829 * coding.c (code_convert_region): Fix calculation of `ratio'.
2830
857ae68b
JD
28312004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2832
133c0116
JD
2833 * gtkutil.c (update_frame_tool_bar): Make the value of
2834 tool-bar-button-margin control margins of images in tool bar.
2835
857ae68b
JD
2836 * alloc.c (check_depth): New variable.
2837 (overrun_check_malloc, overrun_check_realloc): Only add
2838 overhead and write check pattern if check_depth is 1 (to handle
2839 recursive calls). Increase/decrease check_depth in entry/exit.
2840 (overrun_check_free): Only check for overhead if check_depth is 1.
2841 Increase/decrease check_depth in entry/exit.
2842
bd55c35c
JD
28432004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2844
2845 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
2846 before touching input_available_clear_time, to avoid accessing it
2847 from multiple threads.
2848
66354420
JR
28492004-12-23 Jason Rumney <jasonr@gnu.org>
2850
2851 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
2852 of JPEG library.
2853
55f4edbc
RS
28542004-12-22 Richard M. Stallman <rms@gnu.org>
2855
2856 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
2857
2858 * lisp.h (Vundo_outer_limit): Fix decl.
2859
2860 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
2861 Uses changed.
2862 (syms_of_undo): Initialize appropriately.
2863 (truncate_undo_list): If it's nil, there's no limit.
2864
7a0ea9e3
KH
28652004-12-22 Kenichi Handa <handa@m17n.org>
2866
2867 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
2868
fda2922a
RS
28692004-12-21 Richard M. Stallman <rms@gnu.org>
2870
2871 * eval.c (unwind_to_catch): Clear immediate_quit.
2872
2873 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
2874 specially as `\ ' and `\-'.
2875
2876 * keyboard.c (kbd_buffer_store_event_hold):
2877 In the code for while-no-input, handle immediate_quit.
2878
2879 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
2880 Call that at the very start.
043f7f73 2881 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
2882 (syms_of_alloc): Don't define undo-limit,
2883 undo-strong-limit and undo-outer-limit here.
2884
2885 * undo.c (truncate_undo_list): Return void.
2886 Take just one argument, the buffer.
2887 Make it current, and inhibit recursive GC.
2888 Access and update the undo list directly; return void.
2889 Refer to the undo...limit variables directly.
2890 Test undo_outer_limit only after counting the whole current command.
2891 When it's exceeded, call the function in undo-outer-limit-function.
2892 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
2893 (Vundo_outer_limit_function): New variable.
2894 (syms_of_undo): Define undo-limit, undo-strong-limit
2895 and undo-outer-limit here, and undo-outer-limit-function.
2896 Doc fixes.
2897
2898 * lisp.h (truncate_undo_list): Update decl.
2899
29002004-12-21 Piet van Oostrum <piet@cs.uu.nl>
2901
2902 * fileio.c (Fread_file_name): Delete duplicates in
2903 file-name-history when history_delete_duplicates is true.
2904
68c69027
ST
29052004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2906
2907 * macterm.c (mac_do_list_fonts): Fix memory leak
2908
134579f2
RS
29092004-12-20 Richard M. Stallman <rms@gnu.org>
2910
2911 * regex.c (re_match_2_internal) <symend, wordend>:
2912 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
2913
fbe6152f
ST
29142004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2915
043f7f73
SM
2916 * macterm.c (endif, x_font_name_to_mac_font_name):
2917 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
2918 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
2919 quickly finding a specific font without needing regexps.
2920
fecad3f6
JD
29212004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2922
333f1b6f
JD
2923 * syssignal.h: Declare main_thread.
2924 (SIGNAL_THREAD_CHECK): New macro.
2925
2926 * keyboard.c (input_available_signal): Move thread checking code
2927 to macro SIGNAL_THREAD_CHECK and call that macro.
2928 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
2929
2930 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
2931
2932 * emacs.c: Define main_thread.
2933 (main): Initialize main_thread.
2934 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
2935 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
2936
2937 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
2938
2939 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
2940
2941 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
2942
043f7f73
SM
2943 * process.c (send_process_trap, sigchld_handler):
2944 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
2945
2946 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
2947
2948 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2949
fecad3f6
JD
2950 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
2951 returning when xg_ignore_gtk_scrollbar is true.
2952
2a84c6da
KS
29532004-12-14 Kim F. Storm <storm@cua.dk>
2954
2955 * keyboard.c (read_char): Save and restore echo_string when
2956 handling input method.
2957
d9c1ce9d
RS
29582004-12-13 Richard M. Stallman <rms@gnu.org>
2959
2960 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
2961
2962 * keyboard.c (Vthrow_on_input): New variable.
2963 (syms_of_keyboard): Defvar and initialize it.
2964 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
2965
2966 * lisp.h (QUIT): Check for Vthrow_on_input.
2967 (Vthrow_on_input): Declare it.
2968
a6495ed5
KS
29692004-12-13 Kim F. Storm <storm@cua.dk>
2970
2971 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
2972 vector.
2973
24a0e22f
RS
29742004-12-12 Richard M. Stallman <rms@gnu.org>
2975
2976 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
2977
2978 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
2979 (Ftry_completion): Really use outer `zero'; eliminate inner one.
2980
d6d31e57
KH
29812004-12-12 Kenichi Handa <handa@m17n.org>
2982
2983 * term.c (encode_terminal_code): Fix previous change.
2984
6f8ffb88
SM
29852004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
2986
fb6f5cbf
SM
2987 * keyboard.c (handle_async_input): Remove pthread mutex handling.
2988 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
2989
6f8ffb88
SM
2990 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
2991 in macro arguments.
2992
2993 * minibuf.c (Ftry_completion, Fall_completions): Don't use
2994 XFASTINT blindly.
2995
2996 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
2997
c83c9f9d
JD
29982004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2999
2f25767f
JD
3000 * w32term.c (x_calc_absolute_position): Remove calculation of
3001 difference between inner and outer window. Don't subtract difference
3002 for left and top calculations.
3003
c83c9f9d
JD
3004 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
3005 for left and top calculations. Remove call to x_real_positions.
24a0e22f 3006 [Bug report by Drew Adams in November]
c83c9f9d
JD
3007 (x_check_expected_move): Do not set change_gravity to 1 when calling
3008 x_set_offset.
3009
cc1caa4e
RS
30102004-12-08 Richard M. Stallman <rms@gnu.org>
3011
3012 * xdisp.c (get_next_display_element): Use `escape-glyph' for
3013 control chars and escaped octal codes.
3014 (Qescape_glyph): New variable.
3015 (syms_of_xdisp): Initialize it.
3016 (escape_glyph_face): New variable.
3017 (redisplay_window): Initialize it.
3018
e0e30823
RS
30192004-12-07 Paul Eggert <eggert@cs.ucla.edu>
3020
3021 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
3022 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
3023
f415cacd
JD
30242004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3025
cf435f39
JD
3026 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
3027 reset_malloc_hooks.
3028
6f8ffb88
SM
3029 * keyboard.c (handle_async_input, input_available_signal):
3030 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 3031
f415cacd
JD
3032 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
3033
043f7f73 30342004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
3035
3036 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
3037
3038 * config.in: Regenerate.
3039
ded997c1
JD
30402004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3041
453a4f1b
JD
3042 * xmenu.c (Fx_popup_menu): Correct documentation about position.
3043 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
3044 if not given by a mouse click to correspond with x-popup-menu
3045 documentation.
3046
9a38524c
JD
3047 * config.in: Regenerate.
3048
aa477689
JD
3049 * gtkutil.c: Include signal.h and syssignal.h.
3050 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
3051
3052 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
3053 new variables main_thread and alloc_mutex,
3054 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
3055 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
3056 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
3057 (UN)BLOCK_INPUT.
3058 (emacs_blocked_free, emacs_blocked_malloc)
3059 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
3060 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
3061 (reset_malloc_hooks): New function.
3062
3063 * lisp.h: Declare reset_malloc_hooks.
3064
3065 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
3066
3067 * keyboard.c: Conditionally include pthread.h
6f8ffb88 3068 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
3069 thread, block signal, send signal to main thread and return.
3070
ded997c1 3071 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 3072 Set current folder in file chooser if default_filename is a directory.
ded997c1 3073
c72b0edd
SM
30742004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
3075
3076 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
3077 Remove redundant correctness checks.
3078 (regex_compile): Fix up error codes for \{..\} expressions.
3079
c721eee5
RS
30802004-12-05 Richard M. Stallman <rms@gnu.org>
3081
3082 * regex.c (regex_compile): Fix end-of-pattern case for space.
3083
d8f96db8
ST
30842004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3085
6108209e
KS
3086 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
3087 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 3088 crashes with invalid characters.
6108209e
KS
3089 * macmenu.c (add_menu_item): Use it.
3090 * image.c (image_load_quartz2d): Likewise.
3091 * macfns.c (x_set_name, x_set_title): Likewise.
3092 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
3093 creating them each time for labels.
d8f96db8 3094
ab67e8b6
RS
30952004-12-02 Richard M. Stallman <rms@gnu.org>
3096
3097 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
3098 don't use it here.
3099
3100 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
3101 (interactive_p): Skip Scalled_interactively_p frames
3102 like Sinteractive_p frames.
b8217ea6 3103 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
3104
3105 * data.c (Fmake_variable_buffer_local): Doc fix.
3106 (Fmake_local_variable): Doc fix.
3107
3108 * insdel.c (insert_from_string_before_markers)
3109 (insert_from_string): Don't modify buffer on empty insertion.
3110
3111 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
3112
f86bdc80
ST
31132004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3114
3115 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
3116 menu text as UTF8 fails.
3117
1cae6d39
KS
31182004-12-01 Kim F. Storm <storm@cua.dk>
3119
3120 * alloc.c: Add commentary for last change.
3121 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
3122 sizeof(size_t) != 4.
3123 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
3124 Use them. Also clear header and trailer of freed memory.
3125 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
3126 (string_overrun_cookie): Rename from string_overrun_pattern.
3127 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
3128
77ea0764
AS
31292004-12-01 Andreas Schwab <schwab@suse.de>
3130
3131 * lisp.h: Declare string_to_multibyte.
3132
2d5cd4e6
KH
31332004-12-01 Kenichi Handa <handa@m17n.org>
3134
3135 * w32console.c (w32con_write_glyphs): Decide coding here.
3136 Adjusted for the change of encode_terminal_code.
3137
3138 * term.c (encode_terminal_code): Don't make it "static".
3139
25a0994a
KH
31402004-11-30 Kenichi Handa <handa@m17n.org>
3141
19b1f29a 3142 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 3143 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
3144 characters at once, and return a pointer to the result of encoding.
3145 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
3146 (insert_glyphs): Likewise.
3147 (term_init): Initialize encode_terminal_bufsize to 0.
3148
3149 * coding.c (Vcode_conversion_workbuf_name): New variable.
3150 (syms_of_coding): Initialize and staticpro it.
3151 (set_conversion_work_buffer): New function.
3152 (run_pre_post_conversion_on_str): Use it.
3153 (run_pre_write_conversin_on_c_str): New function.
3154
3155 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
3156
fc7a70cc
ST
31572004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3158
3159 * keyboard.c: Don't undef SIGIO
3160 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
3161 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
3162 (macfns.o): Don't depend on ccl.h.
3163 * macfns.c (mac_frame_parm_handlers): Set handlers for
3164 Qleft_fringe and Qright_fringe.
3165 * macterm.c (mac_fill_rectangle_to_pixmap)
3166 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
3167 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
3168 Put in #if 0.
3169 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
3170 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
3171 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
3172 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3173 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
3174 XDrawImageString. Always draw background and foreground separately.
3175 (x_draw_image_foreground): Use clipping instead of computing the
3176 intersection rectangle.
3177 (x_draw_image_glyph_string): Don't draw an image with mask to a
3178 pixmap.
3179 (x_redisplay_interface): Set flush_display_optional member to 0.
3180 (XTread_socket): Correctly reset the TEConverter
3181 object.
3182
fc368889
KS
31832004-11-30 Kim F. Storm <storm@cua.dk>
3184
3185 * lisp.h: New defines to enable buffer overrun checking.
3186 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
3187 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
3188
3189 * alloc.c: Add more checks for buffer overruns.
3190 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
3191 xmalloc_overrun_check_trailer, overrun_check_malloc)
3192 overrun_check_realloc, overrun_check_free): Add.
3193 (GC_STRING_EXTRA, string_overrun_pattern): Add.
3194 (check_sblock, allocate_string_data, compact_small_strings):
3195 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
3196 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
3197 (check_string_free_list): Add.
3198 (allocate_string, sweep_strings): Call check_string_free_list.
3199
3200 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
3201 XMALLOC_OVERRUN_CHECK to avoid crash during load.
3202
0af8cfe1
KS
32032004-11-29 Kim F. Storm <storm@cua.dk>
3204
3205 * fns.c (concat): Use SAFE_ALLOCA.
3206
77220eeb
SM
32072004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
3208
3209 * sysdep.c (emacs_write): Don't use QUIT.
3210
a778cf63
KH
32112004-11-29 Kenichi Handa <handa@m17n.org>
3212
3213 * buffer.c (init_buffer): Set current_buffer->directory to a
3214 multibyte string made by string_to_multibyte.
3215
77220eeb 3216 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 3217
e3177e43
AS
32182004-11-27 Andreas Schwab <schwab@suse.de>
3219
3220 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
3221
3222 * s/gnu-linux.h: Enable no-op gcpros on ia64.
3223 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
3224
77220eeb
SM
3225 * filelock.c (lock_file_1): Call get_boot_time early.
3226 Increase buffer size.
e3177e43 3227
ca5e6fef
EZ
32282004-11-27 Eli Zaretskii <eliz@gnu.org>
3229
3230 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
3231 is not defined.
3232
e2811828
KS
32332004-11-27 Kim F. Storm <storm@cua.dk>
3234
3235 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
3236 marker out of doc string.
3237
7a262394
SM
32382004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
3239
3240 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
3241 which was not mentioned in the log.
3242
f33cc5a9
KS
32432004-11-26 Kim F. Storm <storm@cua.dk>
3244
048bb03f
KS
3245 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
3246 angle bitmaps at top/bottom line.
3247
52eb0373 3248 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
3249 set it when it->method is set to next_element_from_display_vector.
3250 (setup_for_ellipsis): Add LEN argument. Callers changed.
3251 Set it->saved_face_id.
3252 (get_next_display_element): Use loop instead of recursion.
3253 Set it->saved_face_id. Combine duplicate code for ctr chars.
3254 (next_element_from_display_vector): Do not set it->saved_face_id.
3255 (next_element_from_ellipsis): Use setup_for_ellipsis.
3256
670e8906
EZ
32572004-11-26 Eli Zaretskii <eliz@gnu.org>
3258
3259 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
3260 prevent compiler warnings.
3261
275464e7
SM
32622004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
3263
1bf0e604
SM
3264 * keyboard.c (command_loop_1): Print a message describing the key
3265 the user just pressed when this key has no binding.
3266
275464e7
SM
3267 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
3268 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
3269
3270 * lread.c (readchar): Check QUIT when `getc' is interrupted.
3271
261b01c6
RS
32722004-11-24 Richard M. Stallman <rms@gnu.org>
3273
3274 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
3275
3276 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
3277
a5bd504e
KS
32782004-11-24 Kim F. Storm <storm@cua.dk>
3279
3280 * xdisp.c (move_it_in_display_line_to, display_line):
3281 Restore saved_face_id also when truncate-lines or hscrolled.
3282
255e4140
JD
32832004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3284
3285 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
3286 x-use-old-gtk-file-dialog.
3287
3288 * xfns.c: Define x_use_old_gtk_file_dialog.
3289 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
3290 outside ifdef USE_GTK.
3291
cab27d04
SM
32922004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
3293
3294 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
3295 Don't use XFASTINT blindly.
3296
3297 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
3298
3299 * indent.c (skip_invisible): Avoid non-idempotent side-effects
3300 in macro arguments.
3301
3302 * keymap.c (Flookup_key): Check INTEGERP before XINT.
3303
3304 * lread.c (oblookup): Don't use XFASTINT blindly.
3305
3306 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
3307 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
3308
11e0be49
KS
33092004-11-23 Kim F. Storm <storm@cua.dk>
3310
4d721114
KS
3311 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
3312 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
3313
11e0be49
KS
3314 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
3315 signal_p is zero and face name is unknown.
3316 (Fx_list_fonts): Don't signal error in lookup_named_face.
3317 (Fface_font): Signal error in lookup_named_face.
3318 (ascii_face_of_lisp_face): Likewise.
3319
3320 * dispextern.h (lookup_named_face): Fix prototype.
3321
3322 * xdisp.c (handle_single_display_prop): Don't signal error in
3323 lookup_named_face for unknown fringe face name.
3324 (highlight_trailing_whitespace): Don't signal error in
3325 lookup_named_face if trailing-whitespace face unknown.
3326 (calc_line_height_property): Don't signal error in
3327 lookup_named_face if specified face name is unknown.
3328
3329 * fringe.c (update_window_fringes): Show top row indicator if
3330 window has header-line. Don't show arrow at bob and eob
3331 if the boundary indicators are not used.
3332 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
3333
3334 * window.c (set_window_buffer): Clear display_error_modiff.
3335
0960a582
KS
33362004-11-22 Kim F. Storm <storm@cua.dk>
3337
3338 * fringe.c (update_window_fringes): Provide sensible fall-back
3339 value for non-nil indicate-buffer-boundaries setting.
3340
b0e9bb28
MR
33412004-11-22 Markus Rost <rost@ias.edu>
3342
3343 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
3344
d0bce91e
SM
33452004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
3346
3347 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
3348
e1814672
KS
33492004-11-21 Kim F. Storm <storm@cua.dk>
3350
b7fd3518
KS
3351 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
3352
3353 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
3354 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3355
3356 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
3357 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3358
3359 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
3360 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3361
d0bce91e
SM
3362 * xdisp.c (move_it_in_display_line_to, display_line):
3363 Restore saved_face_id if overflow-newline-into-fringe is enabled and
3364 line is continued before or in middle of element from display vector.
f01d4d05 3365
f1a61389
KS
3366 * indent.c (Fvertical_motion): Fix last change. Use another
3367 method to detect if iterator moved too far ahead after reseat.
3368
e1814672
KS
3369 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
3370 expand matrix width for overflow in zero-width area.
3371 (append_glyph, append_composite_glyph, produce_image_glyph)
3372 (append_stretch_glyph): Use it to avoid loop in redisplay.
3373 (note_mode_line_or_margin_highlight): Don't let help-echo from
3374 string override help-echo from image map.
3375
2dafe1c9
LT
33762004-11-20 Luc Teirlinck <teirllm@auburn.edu>
3377
d0bce91e 3378 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
3379 * callint.c (Fcall_interactively): Ditto.
3380
fd6866c8 33812004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
3382
3383 * minibuf.c (Fminibuffer_complete_and_exit):
3384 Fixup the case of the completed value, for case-indep completion.
3385
dedbac89
RS
33862004-11-20 Richard M. Stallman <rms@gnu.org>
3387
fd6866c8
RS
3388 * lisp.h (Fread_from_minibuffer): Add arg in decl.
3389
9d00469f 3390 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 3391 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 3392
dedbac89 3393 * search.c (Vsearch_spaces_regexp):
d0bce91e 3394 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 3395
2f672bb5
TTN
33962004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
3397
3398 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
3399
f31a9a68
RS
34002004-11-19 Richard M. Stallman <rms@gnu.org>
3401
3402 * search.c (Vsearch_whitespace_regexp): New variable.
3403 (syms_of_search): Defvar it.
3404 (compile_pattern_1): Call re_set_whitespace_regexp with it.
3405 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
3406 is non-nil.
6de891db
RS
3407 (struct regexp_cache): New element whitespace_regexp.
3408 (syms_of_search): Initialize whitespace_regexp elements.
3409 (compile_pattern): Compare whitespace_regexp elements.
3410 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
3411
3412 * regex.c (regex_compile): Substitute whitespace_regexp
3413 for spaces, if it is nonzero.
3414 (whitespace_regexp): New variable.
3415 (re_set_whitespace_regexp): New function.
3416
cbc34cb3
KS
34172004-11-19 Kim F. Storm <storm@cua.dk>
3418
3419 * indent.c (Fvertical_motion): Fix last change.
3420
b54a7539
KS
34212004-11-18 Kim F. Storm <storm@cua.dk>
3422
3423 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
3424 Instead, move back again if reseating moves too far ahead.
3425
34262004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
3427
3428 * xdisp.c (message3): Call clear_message.
3429
5ff504fe
KS
34302004-11-17 Kim F. Storm <storm@cua.dk>
3431
3432 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
3433
5ae53dcf
JD
34342004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3435
d0bce91e 3436 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 3437
6abf3a27 3438 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
3439 (x_menu_set_in_use): Also set popup_activated_flag.
3440
5ff504fe 3441 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
3442 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
3443
52eb0373 3444 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 3445
ee31cd78
RS
34462004-11-16 Richard M. Stallman <rms@gnu.org>
3447
6abf3a27
SM
3448 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
3449 Use map-keymap-internal to implement that.
ee31cd78
RS
3450
3451 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
3452
6abf3a27
SM
34532004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3454
3455 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
3456 a window before using XWINDOW.
3457
3458 * window.c (make_window, Fselect_window, make_dummy_parent)
3459 (save_window_save):
3460 * frame.c (make_frame):
3461 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
3462
3463 * lisp.h (NILP): Use EQ rather than XFASTINT.
3464
b4d61105
KS
34652004-11-16 Kim F. Storm <storm@cua.dk>
3466
6abf3a27 3467 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 3468
b4d61105
KS
3469 * indent.c (Fvertical_motion): Fix last change. Only reseat when
3470 moving backwards.
3471
34722004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
3473
3474 * dispextern.h: Extern reseat_at_previous_visible_line_start.
3475
ab5b02b0
KH
34762004-11-16 Kenichi Handa <handa@m17n.org>
3477
3478 * xdisp.c (display_mode_element): Fix previous change (calculate
3479 end position of substring to display correctly).
3480
c482cf97
KS
34812004-11-16 Kim F. Storm <storm@cua.dk>
3482
3483 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
3484 Reported by Andrew M. Scott.
3485
9f89426b
KS
34862004-11-15 Kim F. Storm <storm@cua.dk>
3487
3488 * fns.c (Fsafe_plist_get): New defun.
3489 (syms_of_fns): Defsubr it.
3490
3491 * lisp.h (Fsafe_plist_get): Add EXFUN.
3492
3493 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
3494 Use Fsafe_plist_get.
3495 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3496 Fix image map element parsing. Use Fsafe_plist_get.
3497
27418463
RS
34982004-11-15 Richard M. Stallman <rms@gnu.org>
3499
3500 * xdisp.c (get_next_display_element): Fix previous change.
3501
a130b901
JD
35022004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3503
ef614e04
JD
3504 * window.c (shrink_windows): Handle special case of one window left
3505 when trying to shrink the final reminder. Grow windows if
3506 total_removed is less than total_shrink.
3507
a130b901
JD
3508 * xmenu.c (pop_down_menu): Remove global variable current_menu,
3509 extract pointer from arg with XSAVE_VALUE.
46303896
KS
3510 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
3511 Construct arg to record_unwind_protect with make_save_value.
a130b901 3512
d9a03ad2
RS
35132004-11-13 Richard M. Stallman <rms@gnu.org>
3514
3515 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
3516 (get_next_display_element): Fix previous change to apply only to \n.
3517
3518 * indent.c (Fvertical_motion): Scan to PT from start of line to
3519 make iterator consistent.
3520
3521 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3522
b3935289
JD
35232004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3524
3525 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
3526
3527 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
3528 Record unwind with clean_up_file_dialog.
3529
78819ebb
KS
3530 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
3531 Declare.
b3935289
JD
3532
3533 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
3534
af89e871
JD
35352004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3536
457a8155 3537 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 3538 (xg_file_sel_destroy): Remove.
46303896
KS
3539 (xg_file_response_cb, pop_down_file_dialog)
3540 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 3541 New functions.
6abf3a27
SM
3542 (xg_get_file_with_chooser, xg_get_file_with_selection):
3543 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
3544 Move common code to xg_get_file_name. Return widget created.
3545 (xg_get_file_name): Set name, transient for, modal and destroy
3546 with parent here. Connect response signal to xg_file_response_cb,
3547 connect delete-event to gtk_true. Record pop_down_file_dialog
3548 for unwind. Do event loop and call x_menu_wait_for_event in loop.
3549 (xg_create_widget): Make dialogs modal.
3550
af89e871
JD
3551 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
3552 Lisp_Object.
3553 (popup_get_selection): Move unwind protect ...
3554 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3555 Move destroy of widget to pop_down_menu.
3556 (popup_widget_loop): Move unwind protect ...
3557 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3558 Move destroy of widget to pop_down_menu.
3559 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 3560 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
3561 x_mouse_leave and grabbed = 0 to pop_down_menu.
3562
5596fbf1
KS
35632004-11-13 Kim F. Storm <storm@cua.dk>
3564
3565 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
3566 (syms_of_xdisp): DEFVAR_BOOL it.
3567 (make_cursor_line_fully_visible, try_cursor_movement)
3568 (try_window_id): Use it.
3569
b9de078a
KS
35702004-11-12 Kim F. Storm <storm@cua.dk>
3571
381f7091
KS
3572 * dispextern.h (struct glyph_row): New member extra_line_spacing.
3573 (struct it): New member max_extra_line_spacing.
3574 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
3575 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
3576 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
3577 part of last line is only extra line spacing (so the text on the
52eb0373 3578 line is fully visible). Use helper macros.
381f7091
KS
3579 Add W arg (to use them). All callers changed.
3580 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
3581 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
3582
6abf3a27
SM
3583 * window.c (window_scroll_pixel_based, Frecenter):
3584 Use move_it_vertically_backward directly.
381f7091
KS
3585 (Frecenter): Fix calculation of new start pos for negative arg.
3586 Before, the new start pos was sometimes chosen too far back, so
3587 the last line became only partially visible, and thus would be
3588 either only semi-visible or automatically scrolled to the middle
3589 of the window by redisplay.
3590
3591 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
3592 (move_it_vertically_backward): Don't recure to move further back.
3593 (move_it_vertically): Remove superfluous condition.
3594 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 3595 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
3596 (display_tool_bar_line): Clear row->extra_line_spacing.
3597 (try_scrolling): Use move_it_vertically_backward directly.
3598 (redisplay_window): Likewise.
3599 (compute_line_metrics): Set row->extra_line_spacing.
3600 (display_line, display_string): Likewise.
3601 (x_produce_glyphs): Update it->max_extra_line_spacing.
3602
b9de078a
KS
3603 * xmenu.c (pop_down_menu): Return nil.
3604
c3438661
JD
36052004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3606
3607 * xmenu.c (x_menu_wait_for_event): New function.
3608 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
3609 to handle timers.
df00f436
JD
3610 (popup_widget_loop): Add argument do_timers.
3611 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
3612 do_timers to popup_widget_loop.
c3438661
JD
3613 (xmenu_show): Call XMenuActivateSetWaitFunction so that
3614 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 3615 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 3616 popup_get_selection.
f1d1cd24
JD
3617 (pop_down_menu): New function.
3618 (popup_get_selection, popup_widget_loop): Unwind protect to
3619 pop_down_menu.
3620 (popup_widget_loop): Add argument widget.
3621 (create_and_show_popup_menu, create_and_show_dialog): Pass new
3622 argument widget to popup_widget_loop.
c3438661 3623
32e2fb04
SM
36242004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3625
3626 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
3627
0faf6806
KS
36282004-11-09 Kim F. Storm <storm@cua.dk>
3629
3630 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
3631 Fix various comments referring to XEvents instead of input events.
3632 (x_queue_event): Fix format strings.
3633 (x_stop_queuing_selection_requests): Likewise.
3634
3635 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
3636 (pint2hrstr): Add extra braces to silence compiler.
3637
3638 * print.c (print_object): Fix format string.
3639
3640 * lread.c (read1): Fix next_char matching.
3641
3642 * lisp.h (Fdelete): Add EXFUN.
3643 (replace_range_2): Add prototype.
3644
3645 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
3646
3647 * intervals.h (NULL_INTERVAL_P): Add separate version when
3648 ENABLE_CHECKING is not defined to silence compiler.
3649 (compare_string_intervals): Add prototype.
3650
3651 * fringe.c (destroy_fringe_bitmap): Fix return type.
3652 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
3653
3654 * emacs.c (Fdump_emacs): Fix format string.
3655
3656 * doc.c: Include <ctype.h>.
3657 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
3658
3659 * data.c (store_symval_forwarding): Remove unused variables.
3660
3661 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
3662
16bf4e32
JD
36632004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3664
3665 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
3666 to ${OLDXMENU}.
3667
cdb805a9
KS
36682004-11-09 Kim F. Storm <storm@cua.dk>
3669
3670 * process.c (Fmake_network_process): Remove kludge for interrupted
3671 connects on BSD. If connect is interrupted, just close socket and
3672 start over rather than sleeping and retry with same socket.
3673
d87a9ab8 36742004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 3675
a8b16c80
JD
3676 * .cvsignore: Add buildobj.lst.
3677
d87a9ab8
JD
3678 * doc.c: New variable Vbuild_files.
3679 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 3680 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
3681 that are in Vbuild_files.
3682 (syms_of_doc): Defvar Vbuild_files.
3683
3684 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
3685 and w32*.o.
3686 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 3687 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
3688
3689 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
3690 is linked.
3691
b6709e77
KS
36922004-11-09 Kim F. Storm <storm@cua.dk>
3693
3694 * fringe.c (update_window_fringes): Update fringe bitmaps if
3695 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
3696 also update previous row to get rid of misc. artifacts.
3697
bae9677d
KS
36982004-11-08 Kim F. Storm <storm@cua.dk>
3699
3700 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 3701 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 3702
3f8ea68c
EZ
37032004-11-08 Eli Zaretskii <eliz@gnu.org>
3704
3705 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
3706 Don't include <sys/time.h> explicitly.
3707 Include <stdio.h> unconditionally, not just on MacOS.
3708
a653f812
KH
37092004-11-08 Kenichi Handa <handa@m17n.org>
3710
3711 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
3712 don't pay attention to '\' before '*'.
3713 (fontset_pattern_regexp): Change the meaning of the second arg.
3714 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
3715 (check_fontset_name): Try NAME as literal at first, and if it
3716 failes, try NAME as pattern.
3717
c37caf9d
JD
37182004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3719
3720 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
3721
b72915a7
AS
37222004-11-07 Andreas Schwab <schwab@suse.de>
3723
78819ebb
KS
3724 * lisp.h (Fmsdos_downcase_filename): Declare.
3725 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
3726 * fileio.c: Likewise.
3727
238a44a8
JD
37282004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3729
3730 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
3731 comparisons with integers instead of Lisp_Object address.
3732 (Fmsdos_set_keyboard): Declare argument allkeys.
3733
3734 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
3735
78819ebb 3736 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
3737 int/Lisp_Object mixup.
3738
3739 * fileio.c: Ditto.
3740
31141c13
ST
37412004-11-06 Steven Tamm <steventamm@mac.com>
3742
3743 * editfns.c: Need to include sys/time.h before resource.h on darwin.
3744
f28c1bd9
RS
37452004-11-06 Richard M. Stallman <rms@gnu.org>
3746
3747 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
3748
3749 * xfaces.c (merge_named_face): GCPRO the face_name in the
3750 named_merge_point struct that we make.
3751 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
3752
3753 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
3754 before deciding whether to inactivate mark.
3755
59dede22
EZ
37562004-11-06 Lars Brinkhoff <lars@nocrew.org>
3757
3758 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
3759 * editfns.c (Fget_internal_run_time): New function.
3760 (syms_of_data): Defsubr it.
3761 * fns.c (sxhash): As far as possible, merge calculation of
3762 hash code for symbols and strings.
59dede22 3763
27540e81
EZ
37642004-11-06 Eli Zaretskii <eliz@gnu.org>
3765
3766 * frame.c (syms_of_frame): Fix the example in the doc string.
3767
df470e3b
JD
37682004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3769
3770 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
3771
3772 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
3773 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 3774
4cc8522c
LT
37752004-11-05 Luc Teirlinck <teirllm@auburn.edu>
3776
3777 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
3778
d4a42098
KS
37792004-11-05 Kim F. Storm <storm@cua.dk>
3780
a8490886
KS
3781 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
3782
d4a42098
KS
3783 * fileio.c (Ffile_modes): Doc fix.
3784 (auto_save_1): Check for Ffile_modes nil value.
3785
36a2b04c
KS
37862004-11-05 Kim F. Storm <storm@cua.dk>
3787
3788 * xselect.c (struct selection_event_queue, selection_queue)
3789 (x_queue_selection_requests, x_queue_event)
3790 (x_start_queuing_selection_requests)
3791 (x_stop_queuing_selection_requests): Add new queue for selection
3792 input events to replace previous XEvent queue in xterm.c.
3793 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
3794 (x_reply_selection_request): Adapt to new queue.
3795 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
3796 (x_handle_selection_request, x_handle_selection_clear): Make static.
3797 (x_handle_selection_event): New function. May queue selection events.
3798 (wait_for_property_change_unwind): Use save_value instead of cons.
3799 Clear property_change_reply_object.
3800 (wait_for_property_change): Abort if already waiting.
3801 Use save_value instead of cons for unwind data.
3802 (x_handle_property_notify): Skip events already arrived, but don't
3803 free them, as "arrived" field is checked by wait_for_property_change,
3804 and it will be freed by unwind or explicit unexpect_property_change.
3805 (x_get_foreign_selection): Add to new queue.
3806 (receive_incremental_selection): Don't unexpect wait_object when done
3807 as it has already been freed by previous wait_for_property_change.
3808
3809 * xterm.h (x_start_queuing_selection_requests)
3810 (x_stop_queuing_selection_requests, x_handle_selection_request)
3811 (x_handle_selection_clear): Remove prototypes.
3812 (x_handle_selection_event): Add prototype.
3813
3814 * xterm.c (handle_one_xevent): Don't queue X selection events
3815 here, it may be too late if we start queuing after we have already
3816 stored some selection events into the kbd buffer.
3817 (struct selection_event_queue, queue, x_queue_selection_requests)
3818 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
3819 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
3820 (x_catch_errors_unwind): Block input around final XSync.
3821
3822 * keyboard.h (kbd_buffer_unget_event): Add prototype.
3823
3824 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
3825 (kbd_buffer_unget_event): New function.
3826 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
3827 and use x_handle_selection_event.
3828 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
3829
9c3ad9e1
JD
38302004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3831
3832 * xselect.c (TRACE3): New debug macro.
3833 (x_reply_selection_request): Use it.
3834 (receive_incremental_selection): In call to TRACE0, the name of
3835 a symbol is in xname.
3836
a33b89de
KS
38372004-11-05 Kim F. Storm <storm@cua.dk>
3838
3839 * fontset.c (fontset_pattern_regexp): Use unsigned char.
3840
a872928c
JD
38412004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3842
88208bb8
JD
3843 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
3844
78819ebb 3845 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
3846
3847 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 3848 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
3849 * xfns.c (syms_of_xfns): ... to here.
3850
a872928c
JD
3851 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
3852 it doesn't start with /.
3853
b912921c
KH
38542004-11-04 Kenichi Handa <handa@m17n.org>
3855
3856 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
3857 treat it as a literal character.
3858
c524d9a6
KS
38592004-11-03 Kim F. Storm <storm@cua.dk>
3860
3861 * .gdbinit (ppt): New function.
3862
8cfd0f36
JD
38632004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3864
a11e1dce
JD
3865 * xterm.c (x_window_to_scroll_bar): Only call
3866 xg_get_scroll_id_for_window if toolkit scroll bars are used.
3867
8cfd0f36
JD
3868 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
3869 of save.
3870
a93563fd
AS
38712004-11-02 Andreas Schwab <schwab@suse.de>
3872
3873 * window.c (Fscroll_right): Fix last change.
3874
2b2d59d8
KS
38752004-11-02 Kim F. Storm <storm@cua.dk>
3876
3877 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
3878
38792004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3880
3881 * callproc.c (Fcall_process): Block input around vfork.
3882
ca28104d
KS
38832004-11-02 Kim F. Storm <storm@cua.dk>
3884
3885 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
3886 (syms_of_eval): Defsubr it.
3887
29bb7127
RS
38882004-11-02 Richard M. Stallman <rms@gnu.org>
3889
3890 * insdel.c (replace_range_2): New function.
3891
3892 * casefiddle.c (casify_region): Handle changes in byte-length
3893 using replace_range_2.
3894
3895 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
3896
b6189c3b 3897 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
3898 Subtract 1 from pos when checking previous newline for invisibility.
3899
3900 * window.c (window_scroll_pixel_based): Update preserve_y
3901 for header line if any.
3902 (Fscroll_left, Fscroll_right): Don't call interactive_p;
3903 use a new second argument instead.
3904
3905 * eval.c (Fcall_interactive_p): New function.
3906 (interactive_p): Don't test INTERACTIVE here.
3907 (Finteractive_p): Doc fix.
3908
3909 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
3910
b6189c3b 39112004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
3912
3913 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 3914 comparing font names.
a3fe4aaf 3915
2a00cdb4
JD
39162004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3917
f9d64bb3
JD
3918 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
3919 Fx_file_dialog if only directories should be read.
3920
3921 * lisp.h: Fx_file_dialog takes 5 parameters.
3922
32e2fb04
SM
3923 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
3924 Add parameter only_dir_p.
f9d64bb3
JD
3925 In Motif version, don't put DEFAULT_FILENAME in filter part of the
3926 dialog, just text field part. Do not add DEFAULT_FILENAME
3927 to list of files if it isn't there.
3928 In GTK version, pass only_dir_p parameter to xg_get_file_name.
3929
32e2fb04
SM
3930 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
3931 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
3932 a save dialog, add option kNavDontConfirmReplacement, change title
3933 to "Enter name", change text for save button to "Ok".
3934
32e2fb04
SM
3935 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
3936 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
3937
3938 * gtkutil.c (xg_get_file_with_chooser)
3939 (xg_get_file_with_selection): New functions, only defined ifdef
3940 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
3941 respectively.
3942 (xg_get_file_name): Add parameter only_dir_p.
3943 Call xg_get_file_with_chooser or xg_get_file_with_selection
3944 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
3945 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
3946
3947 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
3948
2a00cdb4
JD
3949 * config.in: Rebuild (added HAVE_GTK_FILE_*).
3950
f6749d5d
KS
39512004-11-01 Kim F. Storm <storm@cua.dk>
3952
32e2fb04
SM
3953 * process.c (connect_wait_mask, num_pending_connects):
3954 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 3955 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
3956 (IF_NON_BLOCKING_CONNECT): New helper macro.
3957 (wait_reading_process_output): Only declare and use local vars
3958 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 3959
1a99fe1a
JR
39602004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
3961
3962 * w32term.c (x_scroll_run): Delete region objects after use.
3963
fcdb28b4
JD
39642004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3965
495ef86b
JD
3966 * xmenu.c: Add prototypes for forward function declarations.
3967 (popup_get_selection): Remove parameter do_timers, remove call to
3968 timer_check.
32e2fb04
SM
3969 (create_and_show_popup_menu, create_and_show_dialog):
3970 Remove parameter do_timers from call to popup_get_selection.
495ef86b 3971
12e6566a
JD
3972 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
3973 tool_bar_items and assign the result to f->tool_bar_items if
3974 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
3975 tool_bar_items to assignment of result.
3976
fcdb28b4
JD
3977 * atimer.c (alarm_signal_handler): Do not call set_alarm if
3978 pending_atmers is non-zero.
3979
1a1a0c4c
KS
39802004-10-31 Kim F. Storm <storm@cua.dk>
3981
3982 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
3983
a36f1680
JW
39842004-10-28 Will <will@glozer.net>
3985
3986 * macterm.c: allow user to assign key modifiers to the Mac Option
3987 key via a 'mac-option-modifier' variable.
3988
32e2fb04 39892004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
3990
3991 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
3992 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
3993 (x_handle_selection_request, x_handle_selection_clear)
3994 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
3995
4f71c13f
RS
39962004-10-28 Richard M. Stallman <rms@gnu.org>
3997
3998 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3999
4000 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4001
068f3848
SM
40022004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
4003
4004 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
4005 comment-starter over a 1-char one.
4006
4660a9e3
RS
40072004-10-27 Richard M. Stallman <rms@gnu.org>
4008
4009 * xdisp.c (get_next_display_element): In mode lines,
4010 treat newline and tab like other control characters.
4011
4012 * editfns.c (Fmessage): Doc fix.
4013
4014 * indent.c (vmotion): When moving up, check the newline before.
4015 Make prevline an int, not a Lisp_Object.
4016
233f3db6
KS
40172004-10-27 Kim F. Storm <storm@cua.dk>
4018
4019 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
4020 Only allocate info and discarded tables once.
4021
4022 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
4023 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
4024 (SAFE_FREE): Test it to determine if we need to unwind to free.
4025 Remove size arg. All users changed.
4026 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
4027
1442465d
JD
40282004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4029
4030 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
4031 (xg_destroy_widgets): Rename from remove_from_container.
4032 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
4033 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
4034 instead of remove_from_container.
4035 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
4036 (free_frame_tool_bar): Add comment.
4037
4038 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
4039 is not NULL before strcmp.
4040
c8636435
KS
40412004-10-26 Kim F. Storm <storm@cua.dk>
4042
4043 * callint.c (Fcall_interactively): Add 'U' code to get the
4044 up-event discarded by a previous 'k' or 'K' argument.
4045
5629f29b
DK
40462004-10-26 David Kastrup <dak@gnu.org>
4047
4048 * buffer.c (syms_of_buffer): Fix a few typos.
4049
4f2f546e
JD
40502004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4051
4052 * xsmfns.c: Put empty line between comment and function body.
4053 Use two spaces before comment end.
4054
fc1062f5
KH
40552004-10-25 Kenichi Handa <handa@m17n.org>
4056
4057 * fontset.c (fontset_pattern_regexp): Optimize for the case that
4058 PATTERN is full XLFD.
4059
be13f5e5
KH
40602004-10-24 Kenichi Handa <handa@m17n.org>
4061
4062 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
4063
4064 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
4065 (regex_compile): Return REG_ERANGEX if appropriate.
4066
d0ee2ed3
KH
40672004-10-22 Kenichi Handa <handa@m17n.org>
4068
4069 * editfns.c (Ftranslate_region_internal): New function.
4070 (syms_of_editfns): Defsubr it.
4071
63ea8ea5
JD
40722004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4073
4074 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
4075
9ba27690 40762004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 4077
068f3848
SM
4078 * xterm.h (x_output): New member `xic_base_fontname'.
4079 (FRAME_XIC_BASE_FONTNAME): New macro.
4080 (xic_free_xfontset): Declare.
c27ed90a 4081
068f3848
SM
4082 * xfns.c (xic_create_xfontset): Share fontsets between frames
4083 based on base_fontname.
4084 (xic_free_xfontset): New function.
4085 (free_frame_xic): Use it.
4086 (xic_set_xfontset): Ditto.
c27ed90a 4087
068f3848 4088 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
4089
4090
59508699
JR
40912004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
4092
4093 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
4094
dede2792
JD
40952004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4096
3aca2078
JD
4097 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
4098 XSync.
4099
dede2792
JD
4100 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
4101 New variables and constant.
4102 (main): Calculate heap_bss_diff. If we are dumping and the
4103 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
4104 and exec ourself again.
4105 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
4106 print a warning.
4107
4108 * lastfile.c: Make my_endbss and my_endbss_static available on all
4109 platforms.
4110
4111 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
4112 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
4113
1dc5ba01
LT
41142004-10-19 Luc Teirlinck <teirllm@auburn.edu>
4115
4116 * data.c (Flocal_variable_if_set_p): Doc fix.
4117
950090be
JR
41182004-10-19 Jason Rumney <jasonr@gnu.org>
4119
4120 * w32.c (init_environment): Set emacs_dir correctly when running
4121 emacs from the build directory.
4122
8550b998
RS
41232004-10-19 Richard M. Stallman <rms@gnu.org>
4124
4125 * editfns.c (Fdelete_and_extract_region):
4126 If region is empty, return null string.
4127
08dedea6
JD
41282004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4129
1dc5ba01 4130 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 4131 and canon_width.
068f3848 4132 (xg_frame_cleared): Remove.
08dedea6 4133
068f3848
SM
4134 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
4135 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
4136 (xg_create_scroll_bar): Put an event box widget between
4137 the scroll bar widget and the edit widget.
4138 (xg_show_scroll_bar): Show the parent widget (the event box).
4139 (xg_remove_scroll_bar): Destroy parent (the event box) also.
4140 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
4141 Move the parent (the event box) widget inside the fixed widget.
4142 Move window clear to xterm.c.
4143
068f3848 4144 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 4145
08dedea6 4146 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
4147 (x_scroll_bar_create, XTset_vertical_scroll_bar):
4148 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
4149 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
4150
8550b998 41512004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
4152
4153 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 4154
84338890
JD
41552004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4156
4157 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
4158 gdk_window_clear and move gdk_window_process_all_updates after
4159 clear so events are sent to the X server in correct order.
4160
6e1b0d8c
KH
41612004-10-18 Kenichi Handa <handa@m17n.org>
4162
4163 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
4164 comparing font names.
8550b998 4165 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
4166 (list_fontsets): Likewise.
4167
4168 * search.c (fast_string_match_ignore_case): New function.
4169
4170 * lisp.h (fast_string_match_ignore_case): Extern it.
4171
345e75a8
KS
41722004-10-17 Kim F. Storm <storm@cua.dk>
4173
4174 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
4175 than bitmap if there is not left fringe.
4176 (get_overlay_arrow_glyph_row): Also used on windows system.
4177 (display_line): Display overlay string if no left fringe.
4178
be13cbb7
JR
41792004-10-16 Jason Rumney <jasonr@gnu.org>
4180
4181 * w32fns.c (w32_font_match): Encode font name being matched.
4182
c2e2ede7
RS
41832004-10-16 Richard M. Stallman <rms@gnu.org>
4184
4185 * window.c (Fspecial_display_p): Doc fix.
4186
043f7f73 41872004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
4188
4189 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
4190 Don't ignore menus, because where-is-internal already does it for us.
4191
699a0392
KS
41922004-10-15 Kim F. Storm <storm@cua.dk>
4193
b3c7a89b
KS
4194 * xdisp.c (redisplay_window): Only update fringes and vertical
4195 border on window frames.
699a0392 4196
4e382b0f
AS
41972004-10-14 Andreas Schwab <schwab@suse.de>
4198
4199 * m/ia64.h (DATA_SEG_BITS): Don't define.
4200
329a7be2
KS
42012004-10-14 Kim F. Storm <storm@cua.dk>
4202
4203 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 4204 in some X versions.
329a7be2 4205
982241b1
SM
42062004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4207
4208 * fns.c (map_char_table): Add missing gcpros.
4209
9238467d
SM
42102004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4211
4212 * keymap.c (get_keymap): An autoload form is not a keymap.
4213
4214 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
4215
4440e3ca
KS
42162004-10-13 Kim F. Storm <storm@cua.dk>
4217
7cfdabde
KS
4218 * callproc.c (Fcall_process): Simplify handling of display arg.
4219 Resume `display_on_the_fly' once a coding system is determined.
4220
4440e3ca
KS
4221 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
4222
1c8dec6a
KS
42232004-10-12 Kim F. Storm <storm@cua.dk>
4224
4225 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
4226 caller, such as call-process, is not going to poll for input.
4227 (calc_line_height_property): Handle case where it->object is nil.
4228
4229 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
4230
170b174c
KH
42312004-10-12 Kenichi Handa <handa@m17n.org>
4232
9238467d
SM
4233 * xdisp.c (get_next_display_element):
4234 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
4235 chars in octal in unibyte buffer.
4236
b583964c
KS
42372004-10-12 Kim F. Storm <storm@cua.dk>
4238
4239 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
4240 are no ordinary bindings.
4241
29fabd8c
JD
42422004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4243
9238467d 4244 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 4245
c3f4c690
ST
42462004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4247
9238467d
SM
4248 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
4249 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 4250 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
4251 terminal frame.
4252 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
4253 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
4254 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
4255 Make a cancel file-open dialog be like C-g.
9238467d
SM
4256 * mac.c (mktime): Use emacs_mktime.
4257 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
4258 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 4259
9688f9eb
KS
42602004-10-10 Kim F. Storm <storm@cua.dk>
4261
4262 * keyboard.c (timer_resume_idle): New function to resume idle
4263 timer without resetting timers on the idle list.
52eb0373 4264 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
4265 (timer_start_idle, timer_stop_idle): Declare static.
4266 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
4267
4268 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
4269
f7f3a65f
ST
42702004-10-08 Steven Tamm <steventamm@mac.com>
4271
9238467d 4272 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 4273 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 4274 NULL where 0 should be used.
f7f3a65f
ST
4275 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
4276 objc/malloc.h
9238467d 4277 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 4278
3c7d999a
KS
42792004-10-07 Kim F. Storm <storm@cua.dk>
4280
4281 * xdisp.c (redisplay_window): Fix flicker on vertical line between
4282 windows. Update vertical line after drawing window fringes, but
4283 only if actually drawing any bitmaps--or there is no fringe.
4284
4285 * xterm.c (x_update_window_end): Likewise.
4286 * macterm.c (x_update_window_end): Likewise.
4287 * w32term.c (x_update_window_end): Likewise.
4288
4289 * fringe.c (draw_window_fringes): Return value now indicates if
4290 any fringe bitmaps were redrawn (or there are no fringes).
4291
4292 * dispextern.h (draw_window_fringes): Update prototype.
4293
bf06c82f
ST
42942004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4295
4296 * macfns.c (mac_get_window_bounds): Add extern.
4297 (x_real_positions): Use mac_get_window_bounds.
4298
4299 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
4300 xmenu.c (YAILOM).
3c7d999a 4301
bf06c82f
ST
4302 * macterm.c [!MAC_OSX]: Include Windows.h.
4303 (front_emacs_window): Rename from mac_front_window. All uses
4304 changed. Return the frontmost non-tooltip emacs window.
4305 (mac_get_window_bounds): New function.
4306 (x_calc_absolute_position): Use the difference of width and height
4307 between the inner and outer window.
4308 (x_set_offset): Specify window position by the coordinae of the
4309 outer window. Adjust the position if the title bar is completely
4310 outside the screen.
4311 (app_is_suspended, app_sleep_time): Remove unused variables.
4312 (do_app_resume, do_app_suspend): Remove their contents because
4313 window-activate/deactivate events will do the job.
4314 (do_zoom_window): Remove unused variables. Make compliant to the
4315 standard way of zooming. Set f->left_pos and f->top_pos.
4316 (XTread_socket): Don't use argument `expected'. Don't use
4317 FrontWindow to determine the clicked window. Exclude unprocessed
4318 mouseUp cases in the early stage. Add parentheses to fix operator
4319 precedence.
4320 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
4321
4cbbf6b7 43222004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
4323
4324 * config.in: Regenerate.
4325
4326 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
4327 HAVE_EXECSHIELD.
4328
b90ee8b5
JD
43292004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4330
4331 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
4332 a row if Alt or Meta has been found for that row. Also stop scanning
4333 for Keysyms for that row.
4334
904db1a2
KS
43352004-10-04 Kim F. Storm <storm@cua.dk>
4336
0207b8ad
KS
4337 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
4338 to list. Include overlay arrow bitmap in return value.
4339
25f7220c
KS
4340 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
4341 bars with fractional column width. If scroll bar separates two
4342 windows, move it towards the window it belongs to. Only update
4343 the padding area below the scroll bar widget when necessary,
4344 i.e. when scroll bar widget is created, moved, or resized.
4345
562020fe
KS
4346 * xdisp.c (define_frame_cursor1): Do not change frame cursor
4347 while tracking/dragging mouse.
4348 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
4349
37e34af7
KS
4350 * window.c (coordinates_in_window): Relax check for cursor
4351 on vertial border between mode lines.
4352 (Fset_window_fringes): Do not allow negative widths.
4353 (Fset_window_scroll_bars): Likewise.
4354
904db1a2
KS
4355 * .gdbinit (pp): Shorthand for p ARG + pr.
4356 (ff): New command: flush frame updates (X only).
4357
38fe4f64
MA
43582004-10-03 Michael Albinus <michael.albinus@gmx.de>
4359
4360 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
4361
9de36315
KH
43622004-09-30 Kenichi Handa <handa@m17n.org>
4363
07c381ad 4364 * process.c (send_process): Free composition data.
9de36315 4365
07c381ad 4366 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
4367
4368 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
4369 compositions to encode.
4370 (encode_coding_string): Likewise. Free composition data.
4371
d5fb8dab 43722004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
4373
4374 * coding.c (code_convert_region): Free composition data.
9de36315 4375
f2a54fbc
KS
43762004-09-29 Kim F. Storm <storm@cua.dk>
4377
dc5d6435
KS
4378 * fringe.c: Remove limit on number of bitmaps.
4379 (fringe_bitmaps, fringe_faces): Change to pointers.
4380 (max_fringe_bitmaps): New var.
4381 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
4382 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
4383
4384 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
4385 (struct glyph_row): Reorder fringe_bitmap related fields.
4386 (struct it): Likewise.
4387
4388 * w32term.c (fringe_bmp): Change to pointer.
4389 (max_fringe_bmp): New var.
4390 (w32_define_fringe_bitmap): Expand fringe_bmp.
4391 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
4392 (w32_destroy_fringe_bitmap): Likewise.
4393
43942004-09-29 Kim F. Storm <storm@cua.dk>
4395
4396 * fringe.c: Simplify last change.
f2a54fbc
KS
4397 (lookup_fringe_bitmap): New function.
4398 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
4399 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
4400 Keep standard bitmaps in Vfringe_bitmaps.
4401 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
4402 (Fset_fringe_bitmap_face): Likewise.
4403
4404 * dispextern.h (lookup_fringe_bitmap): Add prototype.
4405 (valid_fringe_bitmap_p): Remove prototype.
4406
4407 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
4408
841a8bca
KS
44092004-09-29 Kim F. Storm <storm@cua.dk>
4410
1f2da365
KS
4411 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
4412 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
4413
841a8bca
KS
4414 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
4415
4416 * fringe.c (Vfringe_bitmaps): New variable.
4417 (syms_of_fringe): DEFVAR_LISP it.
4418 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
4419 Change arg to Lisp_Object and fail if not an integer.
4420 (get_fringe_bitmap_name, resolve_fringe_bitmap)
4421 (destroy_fringe_bitmap): New functions.
9238467d
SM
4422 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
4423 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
4424 clear its fringe property.
4425 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
4426 Fdestroy_fringe_bitmap.
4427 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
4428 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
4429 and set fringe property. Signal error if no free slots.
4430 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
4431 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
4432
4433 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
4434 symbols with a fringe property.
4435
4d965590
KS
44362004-09-27 Kim F. Storm <storm@cua.dk>
4437
4438 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
4439 Doc fix. Format may now be a symbol or alist, not a cons.
4440
4441 * fringe.c (update_window_fringes): Handle new formats of
4442 indicate-buffer-boundaries (symbol or alist). No longer
4443 allow a simple cons.
4444 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
4445
e888c2b3
JD
44462004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4447
9238467d 4448 * config.in: Rebuild.
e888c2b3 4449
83f1cb94
JD
44502004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4451
4452 * config.in: Rebuild.
4453
dd3b1d60 4454 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 4455
2c51754c
SM
44562004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
4457
4458 * xterm.c (x_term_init): Work around a bug in some X servers.
4459
3df5f8aa
RS
44602004-09-18 Richard M. Stallman <rms@gnu.org>
4461
557ca2c1
RS
4462 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
4463
3df5f8aa
RS
4464 * xdisp.c (try_window_reusing_current_matrix):
4465 Handle the case where we reach the old displayed text,
4466 out of sync with the old line boundary.
4467
9238467d 44682004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
4469
4470 * fileio.c (Finsert_file_contents): Fix case of replacement in a
4471 narrowed buffer.
4472
bfa02563
KS
44732004-09-14 Kim F. Storm <storm@cua.dk>
4474
a25fe164
KS
4475 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
4476
bfa02563
KS
4477 * xfaces.c (Qface_no_inherit): New var.
4478 (syms_of_xfaces): Intern and staticpro it.
4479 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
4480 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
4481 Don't increment face_change_count when face has non-nil
4482 face-no-inherit property.
4483
126f9c02
SM
44842004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
4485
892a8eb5
SM
4486 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
4487 (Fbyte_code): Remove dead code after `wrong_type_argument'.
4488
126f9c02 4489 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 4490 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 4491
c0ad3b38
KS
44922004-09-12 Kim F. Storm <storm@cua.dk>
4493
4494 * editfns.c (Fformat): Handle format strings with multiple text
4495 properties. Reverse text property list from the format string,
4496 so the positions are in increasing order.
4497
844fc085
JD
44982004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4499
4500 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
4501 x_uncatch_errors so that possible protocol errors are delivered.
4502
b106731c
EZ
45032004-09-10 Eli Zaretskii <eliz@gnu.org>
4504
21065c92
EZ
4505 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
4506 blockinput.h.
4507 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
4508 charset.h, and coding.h
9238467d 4509 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
4510 (term.o): Depend on window.h and keymap.h.
4511 (abbrev.o): Depend on syntax.h.
4512 (callint.o): Depend on keymap.h.
4513 (casefiddle.o): Depend on charset.h and keymap.h.
4514 (category.o): Depend on keymap.h.
4515 (coding.o): Depend on dispextern.h.
4516 (cmds.o): Depend on keyboard.h and keymap.h.
4517 (dispnew.o): Depend on indent.h and intervals.h.
4518 (doc.o): Depend on keymap.h.
4519 (editfns.o): Depend on frame.h.
4520 (emacs.o): Depend on dispextern.h.
4521 (fileio.o): Don't depend on ccl.h.
4522 (filelock.o): Depend on charset.h and coding.h.
4523 (frame.o): Depend on w32term.h and macterm.h.
4524 (insdel.o): Depend on region-cache.h.
4525 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
4526 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
4527 (search.o): Depend on $(INTERVALS_SRC).
4528 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
4529 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
4530 xterm.h, w32term.h, and macterm.h.
4531 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
4532 w32term.h, and macterm.h.
4533 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
4534 region-cache.h, xterm.h, w32term.h, and macterm.h.
4535 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
4536 (data.o): Depend on frame.h.
4537 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
4538 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
4539 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
4540 (intervals.o): Depend on keymap.h.
4541
9238467d
SM
4542 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
4543 Add debugging print-out to termscript.
b106731c 4544
64b7122d
RS
45452004-09-09 Richard M. Stallman <rms@gnu.org>
4546
4547 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
4548
5670531e
RS
45492004-09-08 Richard M. Stallman <rms@gnu.org>
4550
6cb4a892
RS
4551 * window.c (Fset_window_buffer): Doc fix.
4552
5670531e
RS
4553 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
4554
7e388eb7
JL
45552004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
4556
4557 * minibuf.c (history_delete_duplicates): New variable.
4558 (read_minibuf): Use it.
4559 (syms_of_minibuf): Create the corresponding lisp variable.
4560
370e3587
KS
45612004-09-08 Kim F. Storm <storm@cua.dk>
4562
4563 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
4564 overlay just before point.
4565
f844ba4e
LT
45662004-09-07 Luc Teirlinck <teirllm@auburn.edu>
4567
4568 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
4569 * buffer.c (reset_buffer, init_buffer_once):
4570 Handle auto_save_file_format field.
f844ba4e
LT
4571 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
4572 `buffer-auto-save-file-format'.
f844ba4e
LT
4573 * fileio.c: Delete declaration for removed Vauto_save_file_format.
4574 (build_annotations): Adapt to replacement of
4575 `auto-save-file-format' with the new buffer-local variable
4576 `buffer-auto-save-file-format'.
4577 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
4578
f0f90717
JR
45792004-09-07 Jason Rumney <jasonr@gnu.org>
4580
4581 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
4582
9238467d
SM
4583 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
4584 Handle Unicode menu titles.
f0f90717 4585
4e14f66c
KS
45862004-09-07 Kim F. Storm <storm@cua.dk>
4587
4588 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
4589 property from text property or overlay strings at point.
4590
9238467d 45912004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
4592
4593 * xmenu.c (update_submenu_strings): YAILOM.
4594 (set_frame_menubar): Make sure last_i is initialized.
4595
1f06d367
JR
45962004-09-03 Jason Rumney <jasonr@gnu.org>
4597
1806714a 4598 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
4599 (digest_single_submenu): Set lname and lkey in widget_value
4600 instead of name and key.
4601 (update_submenu_strings): New function.
4602 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4603 call update_submenu_strings.
4604
4605 * w32menu.c (globals_of_w32menu): Check for Unicode API.
4606 (digest_single_submenu, w32_menu_show): Encode menu strings as
4607 UTF-8 if Unicode API is available.
4608 (utf8to16): New function.
4609 (add_menu_item): Use it when calling Unicode API.
1806714a 4610
46540080
KS
46112004-09-03 Kim F. Storm <storm@cua.dk>
4612
4613 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
4614 in overlay or text-property strings; set cursor on corresponding
4615 glyph rather than at end of the string.
4616
9277ba61 46172004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 4618
9277ba61 4619 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
4620 set a new one before obtaining the global coordinate.
4621 Use FRAME_MAC_WINDOW.
4622 (x_set_name, x_set_title): Encode title to UTF8.
4623 Use SetWindowTitleWithCFString.
9277ba61
ST
4624 (Fx_server_version): Get correct OS version.
4625
1806714a
SM
4626 * macmenu.c (add_menu_item): Remove unused variable `i'.
4627 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
4628
4629 * macterm.c (x_update_end): Move SetPortWindowPort to inside
4630 BLOCK_INPUT.
4631 (x_set_offset): Use FRAME_MAC_WINDOW.
4632
4633 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
4634 nontext_cursor if it is on a scroll bar.
4635
4636 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
4637 Carbon support.
1806714a
SM
4638 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
4639 Use LIBS_CARBON.
9277ba61 4640
b10daec7
JD
46412004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4642
4643 * xfns.c (x_set_name_internal): New function. Check if we shall call
4644 xfree before ENCODE_UTF_8.
4645 (x_set_name, x_set_title): Call x_set_name_internal.
4646
f7e22385
JR
46472004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
4648
4649 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
4650 reload it.
4651
2bf436c3
JD
46522004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4653
1806714a 4654 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
4655 (single_submenu): Set lname and lkey in widget_value
4656 instead of name and key.
4657 (update_submenu_strings): New function.
4658 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4659 call update_submenu_strings.
4660
2bf436c3
JD
4661 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
4662 instead of name and key.
4663 (update_submenu_strings): New function.
4664 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 4665 call update_submenu_strings.
2bf436c3
JD
4666
4667 * gtkutil.h (_widget_value): Added lname and lkey.
4668
11715f92
ST
46692004-08-30 Steven Tamm <steventamm@mac.com>
4670
4671 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
4672 by using different names for inner loop variables.
4673
5500be54
JD
46742004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4675
059cd329
JD
4676 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
4677 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
4678
5500be54
JD
4679 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
4680 tool bar items is 0.
4681
383418e5
ST
46822004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4683
4684 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
4685 strings in menu items.
4686 (single_submenu): Use ENCODE_MENU_STRING
4687 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
4688 button release isn't passed to event loop
4689 (add_menu_item): Use SetMenuItemWithCFString
4690
6eb3ee72
ST
46912004-08-26 Steven Tamm <steventamm@mac.com>
4692
4693 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
4694 tool-bar/menu click.
4695 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 4696
10b43ac3
JD
46972004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4698
2728b5d0
JD
4699 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
4700
10b43ac3
JD
4701 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4702 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4703 (x_top_window_to_frame): Return 0 if wdesc is None.
4704
2ee3b79e
RS
47052004-08-22 Richard M. Stallman <rms@gnu.org>
4706
4707 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
4708 HAVE_TERMIOS]: If there's no char for this signal, drop through
4709 and use system calls.
4710
4711 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
4712
9a1ba2ea
KS
47132004-08-20 Kim F. Storm <storm@cua.dk>
4714
4715 * process.c (wait_reading_process_output): Rename from
4716 wait_reading_process_input. All uses changed.
4717 (wait_reading_process_output_1): Rename from
4718 wait_reading_process_input_1. All uses changed.
4719
4720 * dispnew.c (Fsleep_for): Remove obsolete code.
4721
295f3b30
KH
47222004-08-20 Kenichi Handa <handa@m17n.org>
4723
4724 * syntax.c (skip_chars): Fix for unibyte case.
4725
27615979
SM
47262004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4727
4728 * syntax.c (char_quoted): Mixup byte/char pos.
4729 (back_comment): Fixup globals in all cases.
4730
00267f94
JD
47312004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4732
4733 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
4734 passing it to gtk_window_set_title.
4735
2439909e
KS
47362004-08-19 Kim F. Storm <storm@cua.dk>
4737
6ba0f14c
KS
4738 * process.c (wait_reading_process_input): Clean up.
4739 Add wait_for_cell, wait_proc, and just_wait_proc args
4740 to avoid overloading `read_kbd' and `do_display' args.
4741 Change read_kbd arg to int. All callers changed.
4742
2439909e
KS
4743 * process.c (process_send_signal): Use CDISABLE.
4744
4745 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
4746
101c421e
KS
47472004-08-18 Kim F. Storm <storm@cua.dk>
4748
4749 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
4750 forward to wait_reading_process_input via DO_DISPLAY arg.
4751 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
4752 object, only process output from that process; also inhibit
4753 running timers if DO_DISPLAY==-2.
4754
c438dc33
KS
47552004-08-17 Kim F. Storm <storm@cua.dk>
4756
4757 * process.c (process_send_signal): Fix last change--use
4758 _POSIX_VDISABLE instead of CVDISABLE when available.
4759
8afc13c6
RS
47602004-08-16 Richard M. Stallman <rms@gnu.org>
4761
4762 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
4763 Set VQUIT and VINTR chars to the standard ones if they are unset.
4764 [AIX]: Don't do that here. And don't force VINTR to standard
4765 when SIGNALS_VIA_CHARACTERS.
4766
c438dc33 4767 * process.c (process_send_signal)
8afc13c6
RS
4768 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
4769 Do nothing if the character is CVDISABLE.
4770
4771 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
4772
c438dc33 4773 * intervals.c (move_if_not_intangible):
8afc13c6
RS
4774 Force POSITION to be between BEGV and ZV.
4775
6dad1714
JPW
47762004-08-14 John Paul Wallington <jpw@gnu.org>
4777
4778 * buffer.c (Frestore_buffer_modified_p): Doc fix.
4779
4780 * fileio.c (Fread_file_name): Doc fix.
4781
4782 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
4783
2bd77330
LT
47842004-08-09 Luc Teirlinck <teirllm@auburn.edu>
4785
4786 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4787
c90e7e43
LT
47882004-08-08 Luc Teirlinck <teirllm@auburn.edu>
4789
4790 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 4791 Qdisabled_command_hook.
c90e7e43 4792 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 4793 Qdisabled_command_hook.
c90e7e43
LT
4794 (syms_of_keyboard): Ditto.
4795
81909a1a
LT
47962004-08-07 Luc Teirlinck <teirllm@auburn.edu>
4797
4798 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
4799 (syms_of_keymap) <key-translation-map>: Doc fixes.
4800
0cedd530
SM
48012004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
4802
1725a7c9
SM
4803 * window.c (window_list_1): YAILOM.
4804
0cedd530
SM
4805 * fileio.c (make_temp_name): Handle multibyte prefixes.
4806
2515a131
LT
48072004-08-06 Luc Teirlinck <teirllm@auburn.edu>
4808
4809 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4810 Doc fix.
4811
c8b20fb7
KH
48122004-08-03 Kenichi Handa <handa@m17n.org>
4813
4814 * coding.c (decode_coding_string): Adjust coding->consumed, and
4815 etc. with shrinked_bytes.
4816
fb8b092b
KS
48172004-08-03 Kim F. Storm <storm@cua.dk>
4818
4819 * indent.c (compute_motion): Fix check for full width window
4820 in non-window case. Do not count left truncation glyph on
4821 window systems.
4822
df133612
LT
48232004-08-02 Luc Teirlinck <teirllm@auburn.edu>
4824
4825 * data.c (Finteractive_form): Doc fix.
4826
0f7a93c1
KS
48272004-08-02 Kim F. Storm <storm@cua.dk>
4828
4829 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
4830 properly accounting for continuation glyph on non-window systems.
4831 (Fcompute_motion): Use actual window width if WIDTH is nil, and
4832 actual window width/height if TOPOS is nil, properly accounting for
4833 continuation glyphs on non-window systems, and optional header lines.
4834 (vmotion): Let compute_motion calculate actual window width.
4835
4836 * window.c (window_scroll_line_based): Let compute_motion
4837 calculate actual window width.
4838
f491e1ed
KS
48392004-08-02 Kim F. Storm <storm@cua.dk>
4840
4841 * process.c (read_process_output): Use whole read buffer.
4842 Don't trigger adaptive read buffering on errors.
4843
83f64226
LT
48442004-07-31 Luc Teirlinck <teirllm@auburn.edu>
4845
4846 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
4847
4848 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
4849
4850 * callint.c (Fcall_interactively): Doc fix.
4851
8afc13c6
RS
48522004-07-30 Richard M. Stallman <rms@gnu.org>
4853
4854 * abbrev.c (Fexpand_abbrev): Undo previous change.
4855
7c111482
KS
48562004-07-30 Kim F. Storm <storm@cua.dk>
4857
4858 * editfns.c (Fformat): Allocate extra (dummy) element in info.
4859
ee945d08
LT
48602004-07-28 Luc Teirlinck <teirllm@auburn.edu>
4861
4862 * eval.c (Fdefvar, Fdefconst): Doc fixes.
4863
3f911c94
KS
48642004-07-27 Kim F. Storm <storm@cua.dk>
4865
4866 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
4867 we have ensured that the glyph fits on the current line (or returned
4868 MOVE_LINE_CONTINUED otherwise).
4869
f29ff8c7
KS
48702004-07-26 Kim F. Storm <storm@cua.dk>
4871
4872 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
4873 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
4874 if target position is at end of display line but char is not a newline.
4875
81159bb9
RS
48762004-07-25 Richard M. Stallman <rms@gnu.org>
4877
ab431b61
RS
4878 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
4879 instead of ON_VERTICAL_BORDER, when on scroll bar.
4880 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
4881
4882 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
4883
f29ff8c7 4884 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
4885 Take account of FRAME_INTERNAL_BORDER_WIDTH.
4886
4887 * alloc.c (check_cons_list): New function (contents commented out).
4888
fc820cc5
LT
48892004-07-24 Luc Teirlinck <teirllm@auburn.edu>
4890
4891 * xfaces.c (Fcolor_supported_p): Doc fix.
4892
4893 * frame.c (Fselect_frame, Fset_frame_selected_window)
4894 (Fframe_visible_p, Fraise_frame): Doc fixes.
4895
289978b5
LT
48962004-07-24 Richard M. Stallman <rms@gnu.org>
4897
78819ebb 4898 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
4899
4900 * fileio.c (Fwrite_region): Doc fix.
4901
4902 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
4903
4904 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
4905 only when a real abbrev is present.
4906
289978b5
LT
4907 * xfns.c (x_icon_verify): New function.
4908 (Fx_create_frame): Use it.
4909
d5fb8dab 49102004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
4911
4912 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
4913
36f826d4
KS
49142004-07-21 Kim F. Storm <storm@cua.dk>
4915
4916 * window.h (struct glyph_matrix): New members nrows_scale_factor
4917 and ncols_scale_factor.
4918
4919 * window.c (make_window): Initialize nrows_scale_factor and
4920 ncols_scale_factor members.
4921
4922 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
4923 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
4924 (required_matrix_height): Apply nrows_scale_factor.
4925 (required_matrix_width): Apply ncols_scale_factor.
4926
4927 * xdisp.c (display_line): Increment nrows_scale_factor and set
4928 fonts_changed_p if past last allocated row.
4929 (append_glyph, append_composite_glyph, produce_image_glyph)
4930 (append_stretch_glyph): Increment ncols_scale_factor and set
4931 fonts_changed_p if current area is full.
4932
5fc1c546
JD
49332004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4934
4935 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
4936
cb7516e5
LT
49372004-07-19 Luc Teirlinck <teirllm@auburn.edu>
4938
4939 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
4940 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
4941 (Fset_window_start, Fscroll_up, Fscroll_down)
4942 (Fother_window_for_scrolling, Fscroll_other_window)
4943 (Fsave_window_excursion, Fset_window_vscroll)
4944 (syms_of_window) <window-size-fixed>: Doc fixes.
4945
b6189c3b 49462004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
4947
4948 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
4949 ENCODE_SYSTEM for filenames.
4950
bfcf6608
ST
49512004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4952
4953 * mac.c (sys_select): Block input around call to
4954 ReceiveNextEvent to prevent breakage. Correctly handle
4955 blocking on event queue only by calling ReceiveNextEvent
4956 instead of select (since GUI events aren't on an fd).
4957 (sys_read): Remove function
4958 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
4959
e082ac9d
ST
49602004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4961
4962 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 4963 polling instead of 1 sec timeouts (like solaris).
e082ac9d 4964
cb7516e5 4965 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
4966 frame creation.
4967
4968 * keyboard.c: Undef SIGIO on Carbon
4969
4970 * atimer.c (alarm_signal_handler): Call alarm handlers after
4971 scheduling.
4972
4973 * eval.c (Feval): Remove quit_char test
4974
4975 * process.c (wait_reading_process_input): Remove clearing
4976 stdin for select call on process input.
4977
4b9da0fb
LT
49782004-07-18 Luc Teirlinck <teirllm@auburn.edu>
4979
1204e81c
LT
4980 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
4981 capitalization error in docstring.
4b9da0fb 4982
26503ad2
JB
49832004-07-17 Juanma Barranquero <lektu@terra.es>
4984
4985 * keyboard.c (not_single_kboard_state): Do nothing unless
4986 MULTI_KBOARD is defined.
4987
3751eb00
RS
49882004-07-17 Richard M. Stallman <rms@gnu.org>
4989
4990 * window.c (coordinates_in_window): Inside the window but outside
4991 its box to the L or R, return ON_VERTICAL_BORDER.
4992 (window_list_1): Rotate the list to start with WINDOW.
4993
4994 * print.c (print_preprocess): Test for print_depth at limit
4995 before entering in being_printed.
4996
4997 * keyboard.c (not_single_kboard_state): New function.
4998 (stuff_buffered_input): Now no-op only if no SIGTSTP.
4999
5000 * frame.c (Fdelete_frame): If we're in single_bboard_state on
5001 this kboard, and we delete its last frame, go to any_kboard_state.
5002
5003 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
5004
b6189c3b 50052004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
5006
5007 * w32fns.c (Fx_file_dialog): Encode strings in system coding
5008 system before passing them to OS functions for display.
5009
0f6af254
DK
50102004-07-15 David Kastrup <dak@gnu.org>
5011
f9253326
KS
5012 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
5013 Apparently fixes an abort condition.
0f6af254 5014
386c8f42
LT
50152004-07-14 Luc Teirlinck <teirllm@auburn.edu>
5016
5017 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
5018 instead of a cons.
5019
366511da
MB
50202004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5021
5022 * keyboard.c (echo_dash): Do nothing if there already is a dash
5023 at the end of the echo string.
5024
f85409d3
KS
50252004-07-12 Kim F. Storm <storm@cua.dk>
5026
5027 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
5028 if GC_MARK_STACK.
5029
0ba2e87b
LT
50302004-07-10 Luc Teirlinck <teirllm@auburn.edu>
5031
da38045d
LT
5032 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
5033
0ba2e87b
LT
5034 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
5035 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
5036 (Freplace_buffer_in_windows, Fset_window_buffer)
5037 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
5038 (syms_of_window): Expand docstring of `display-buffer-function'.
5039
5668fbb8
LT
50402004-07-09 Luc Teirlinck <teirllm@auburn.edu>
5041
5042 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
5043 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
5044 that time values of the type (HIGH . LOW) are considered obsolete.
5045
a085bf9d
LT
50462004-07-06 Luc Teirlinck <teirllm@auburn.edu>
5047
669de2fb
LT
5048 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
5049 docstring.
5050
bac66325 5051 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 5052
8e975df9
JPW
50532004-07-06 John Paul Wallington <jpw@gnu.org>
5054
5055 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
5056
fa164e6a
JPW
5057 * fns.c (Fclear_string): Signal an error if STRING is not a string.
5058
2bac9bb1
JD
50592004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5060
5061 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
5062 instead of CGMainDisplayID (only in OSX 10.2 and later).
5063
316ef0dc
JPW
50642004-07-04 John Paul Wallington <jpw@gnu.org>
5065
5066 * fileio.c (read_file_name_completion_ignore_case): New variable.
5067 (syms_of_fileio): Declare and initialise it.
5068 (Fread_file_name): Bind `completion-ignore-case' to respect it.
5069
2a1a35c6
EZ
50702004-07-03 Eli Zaretskii <eliz@gnu.org>
5071
5072 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
5073 for event.x and event.y.
5074
33a72331
KH
50752004-07-01 Kenichi Handa <handa@m17n.org>
5076
5077 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
5078 after getting a new string by pre-write-conversion.
5079
9238467d 50802004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
5081
5082 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
5083 (x_calc_absolute_position): Remove unused var `child'.
5084
5085 * xfaces.c (x_supports_face_attributes_p)
5086 (Fdisplay_supports_face_attributes_p): YAILOM.
5087 (tty_supports_face_attributes_p): Remove unused var `i'.
5088
5089 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
5090 back_unibyte_ok.
5091
5092 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
5093
5094 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
5095
5096 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
5097
f96ec754
AS
50982004-06-30 Andreas Schwab <schwab@suse.de>
5099
5100 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
5101 (Finit_image_library): Pass LIBRARIES through to
5102 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
5103 (lookup_image_type): Pass Qnil as second argument to
5104 Finit_image_library.
5105
78819ebb 5106 * lisp.h (Finit_image_library): Declare.
f96ec754 5107
59feca74 51082004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 5109
31983645
AS
5110 * macterm.c (do_window_activate, do_window_deactivate): Remove.
5111 (XTread_socket): Send mouse button events to the toolbox
5112 dispatcher even when the mouse is grabbed. Don't process window
5113 activate events for non-Emacs windows. Replace function calls to
5114 do_window_activate and do_window_deactivate with their contents.
5115 Reset mouse grabbing status when a window is deactivated.
59feca74 5116
c61278bb
ST
51172004-06-29 Steven Tamm <steventamm@mac.com>
5118
5119 * macterm.c (mac_get_emulated_btn)
5120 (mac_event_to_emacs_modifiers): Fix emulated mouse button
5121 support to correctly mask out modifiers.
5122
c3762cbd
DK
51232004-06-29 David Kastrup <dak@gnu.org>
5124
5125 * search.c (Fset_match_data): Allow buffer before end of list
5126 which can happen if set-match-data is using a pre-consed list.
5127
c61278bb 51282004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
5129
5130 * macterm.c (XTread_socket): Correctly set the frame position
5131 after the window is moved.
5132
74cdfe05
JD
51332004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5134
5135 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
5136 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
5137 (xg_get_image_for_pixmap): Add workaround for monochrome displays
5138 so insensitive and activated icons look ok.
74cdfe05 5139
ef544dc8
JR
51402004-06-27 Jason Rumney <jasonr@gnu.org>
5141
5142 * w32fns.c (file_dialog_callback): Disable edit control if set
5143 to directories only on CDN_INITDONE message.
5144 (Fx_file_dialog): Default to directories only when prompt starts
5145 with "Dired".
5146
7b7990cc
KS
51472004-06-25 Kim F. Storm <storm@cua.dk>
5148
5149 * alloc.c (allocate_misc): Update total_free_markers.
5150 (free_misc): New function.
5151 (safe_alloca_unwind, free_marker): Use it.
5152
5153 * lisp.h (free_misc): Add prototype.
5154
5155 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
5156
d8c379f8
RS
51572004-06-24 Richard M. Stallman <rms@gnu.org>
5158
5159 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
5160 (syms_of_emacs): Lisp variables deleted.
5161
559cdd07
DK
51622004-06-23 David Kastrup <dak@gnu.org>
5163
94939b84
DK
5164 * search.c (Freplace_match): Adjust the match-data more thoroughly
5165 when replacing strings in the buffer.
5166 (Fmatch_data): When INTEGERS is non-nil and the last match was in
5167 a buffer, add the buffer as last element to the match data.
5168 (Fset_match_data): If an additional element of the match-data is a
5169 buffer, restore it to last_thing_searched.
c8d09ad8 5170 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
5171 (restore_match_data): Restore it again.
5172
dce417e7
LT
51732004-06-23 Luc Teirlinck <teirllm@auburn.edu>
5174
5175 * keymap.c (Ftext_char_description): Doc fix.
5176 * doc.c (Fsnarf_documentation): Doc fix.
5177
ef54b2d0
KS
51782004-06-22 Kim F. Storm <storm@cua.dk>
5179
b5bc4d05
KS
5180 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
5181
ef54b2d0
KS
5182 * lisp.h (struct Lisp_Save_Value): New member dogc.
5183 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
5184 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
5185 (SAFE_FREE_LISP): New macro.
5186
5187 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
5188 (make_save_value): Init new dogc member.
5189 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
5190
5191 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
5192 SAFE_FREE_LISP macros.
5193
3d33d993
KS
51942004-06-22 Kim F. Storm <storm@cua.dk>
5195
5196 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
5197 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
5198 in that memory area are unknown to GC. Add comments.
5199
5200 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
5201
5c917f98
KS
52022004-06-21 Kim F. Storm <storm@cua.dk>
5203
5204 * lisp.h (MAX_ALLOCA): Define here.
5205 (safe_alloca_unwind): Add prototype.
5206 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
5207
5208 * alloc.c (safe_alloca_unwind): New function.
5209
5210 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
5211
5212 * charset.c (Fstring): Use SAFE_ALLOCA.
5213
5214 * coding.c (MAX_ALLOCA): Remove define.
5215
5216 * data.c (MAX_ALLOCA): Remove define.
5217 (Faset): Use SAFE_ALLOCA.
5218
5219 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
5220
5221 * fns.c (string_make_multibyte, string_to_multibyte)
5222 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
5223 (MAX_ALLOCA): Remove define.
5224 (Fbase64_encode_region, Fbase64_encode_string)
5225 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
5226 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
5227 memory leak if encoding fails.
5228
5229 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
5230
9a09408e
EZ
52312004-06-21 Eli Zaretskii <eliz@gnu.org>
5232
5233 * print.c (Fwith_output_to_temp_buffer): Doc fix.
5234
376de739
RS
52352004-06-20 Richard M. Stallman <rms@gnu.org>
5236
5237 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
5238
5239 * search.c (match_limit): Cleaner err msg when no match data available.
5240
5241 * window.c (syms_of_window): Doc fix.
5242
5243 * keyboard.c (command_loop_1): Handle values `only' and `identity'
5244 for Vtransient_mark_mode.
5245
5246 * buffer.c (syms_of_buffer): Doc fix.
5247
acd81db9
DK
52482004-06-21 David Kastrup <dak@gnu.org>
5249
5250 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
5251 and unbinding of `case-fold-search' according to
5252 `completion-ignore-case' around calls of string-match and
5253 predicates, respectively. Should give satisfactory performance
5254 in all relevant cases.
5255
f303762d
JD
52562004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5257
95911c74
JD
5258 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
5259 clip_x/y_origin.
5260
a6cb6b78
JD
5261 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
5262
f303762d
JD
5263 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
5264
5265 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
5266 on Mac OSX.
5267
bbdb2684
LT
52682004-06-16 Luc Teirlinck <teirllm@auburn.edu>
5269
5270 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
5271
5ea48b1c
KS
52722004-06-16 Kim F. Storm <storm@cua.dk>
5273
5274 * dispextern.h (Vimage_types): Remove extern.
5275
803aac3e
MB
52762004-06-16 Miles Bader <miles@gnu.org>
5277
5278 * image.c (lookup_image_type): Initialize image type if necessary.
5279
cdc97764
KS
52802004-06-15 Kim F. Storm <storm@cua.dk>
5281
c4a5739c
KS
5282 * xdisp.c (try_cursor_movement): Exclude header line from scroll
5283 margin at top of window.
5284 (try_window_reusing_current_matrix): Calculate proper cursor position
5285 after scrolling up with non-zero scroll margin, as the old cursor
5286 position corresponds to value of PT before executing this command.
5287 (try_window_id): Consider scroll margin at bottom of window too;
5288 otherwise we fail to scroll when hl-line-mode is enabled.
5289
cdc97764
KS
5290 * syntax.c (skip_chars): Only recognize [:class:] when it has the
5291 proper format and class is a lower-case word.
5292
5b166323
JD
52932004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5294
5295 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 5296 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
5297 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
5298 xg_get_gdk_pixmap_and_mask.
cdc97764 5299
5b166323
JD
5300 * xterm.h (struct x_display_info): Typo in comment fixed.
5301
1ebd4f78
JB
53022004-06-14 Juanma Barranquero <lektu@terra.es>
5303
5304 * dispextern.h (Vimage_types): Make it conditional on
5305 HAVE_WINDOW_SYSTEM.
5306
5307 * image.c (Vimage_types): Move from xdisp.c.
5308 (Vimage_type_cache): New variable.
5309 (define_image_type): New argument indicating whether an image
5310 library was loaded; cache loaded status and return t on success,
5311 nil otherwise.
5312 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
5313 (w32_delayed_load): New function to load an image library from a
5314 list of possible filenames.
5315 (init_xpm_functions, init_png_functions, init_jpeg_functions)
5316 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 5317 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
5318 (Finit_image_library): New function, extracted from `init_image'.
5319 Try to initialize an image library on demand and cache whether we
5320 were successful or not.
5321 (syms_of_image): Initialize `Vimage_types' and
5322 `Vimage_type_cache'. Add recognized image types to Vimage_types.
5323 Export `init-image-library'.
5324 (init_image): Remove initialization of all image types, except xbm
5325 and pbm.
5326
5327 * xdisp.c (Vimage_types): Delete (moved to image.c).
5328
904ee128
AS
53292004-06-14 Andreas Schwab <schwab@suse.de>
5330
5331 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5332 Avoid calling specbind when completion-regexp-list is empty.
5333
092de21d
RS
53342004-06-13 Richard M. Stallman <rms@gnu.org>
5335
5336 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5337 (re_wctype, re_iswctype, re_wctype_to_bit):
5338 Non-function definitions moved here from regex.c.
1ebd4f78 5339
092de21d
RS
5340 * regex.c (re_wctype, re_iswctype): Function defs longer static.
5341 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5342 (re_wctype, re_iswctype, re_wctype_to_bit):
5343 Non-function definitions moved to regex.h.
5344
5345 * window.c (Fselect_window): Doc fix.
5346
5347 * syntax.c: Include regex.h.
5348 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
5349 If requested, make a list of classes, then check the scanned
5350 chars for membership in them.
5351 (in_classes): New function.
5352 Doc fix.
5353
5354 * keyboard.c (cmd_error): Don't call any_kboard_state
5355 if inside a recursive edit level.
5356
9ba27690 53572004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
5358
5359 * keyboard.c (command_loop): Call any_kboard_state before
5360 command_loop_2 when at top level.
5361
3ebc0939
AS
53622004-06-13 Andreas Schwab <schwab@suse.de>
5363
cea5d0d4
AS
5364 * print.c (print_object): Always use %ld for printing EMACS_INT.
5365
5366 * keyboard.c (cancel_hourglass_unwind): Return a value.
5367 (modify_event_symbol): Always use %ld for printing EMACS_INT.
5368 (Fexecute_extended_command): Likewise.
5369
5370 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
5371 avoid clashes.
5372 (SYNTAX): Likewise.
5373 (SYNTAX_WITH_FLAGS): Likewise.
5374 (SYNTAX_MATCH): Likewise.
5375
5376 * syntax.c (char_quoted): Avoid warning about undefined operation.
5377 (find_defun_start): Likewise.
5378 (scan_lists): Likewise.
5379 (INC_FROM): Likewise.
5380 (scan_sexps_forward): Likewise.
5381
be8c4ce4
AS
5382 * image.c: Include <ctype.h>.
5383
3ebc0939
AS
5384 * xfaces.c (face_attr_equal_p): Declare parameters.
5385
6fb41b5b
KH
53862004-06-13 Kenichi Handa <handa@m17n.org>
5387
5388 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
5389
fc3095ce
EZ
53902004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
5391
5392 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
5393
66189a40
KH
53942004-06-12 Kenichi Handa <handa@m17n.org>
5395
5396 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
5397 ccl_prog_stack_struct and update it.
5398 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
5399 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
5400 ccl->eof_ic on EOF.
5401 (ccl_debug_hook): New function.
5402 (struct ccl_prog_stack): New member eof_ic.
5403 (ccl_driver): Handle EOF in subrountine call correctly.
5404
54052004-06-11 Kenichi Handa <handa@m17n.org>
5406
a9b43336 5407 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 5408
1da71023
KS
54092004-06-11 Kim F. Storm <storm@cua.dk>
5410
5411 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
5412
e9efcef4
JB
54132004-06-11 Juanma Barranquero <lektu@terra.es>
5414
5415 * keyboard.c (Fposn_at_point): Doc fix.
5416
9b9ceb61
DK
54172004-06-11 David Kastrup <dak@gnu.org>
5418
5419 * search.c (match_limit): Don't flag an error if match-data
5420 exceeding the allocated search_regs.num_regs gets requested, just
5421 return Qnil.
5422
6e87ac8f
MB
54232004-06-08 Miles Bader <miles@gnu.org>
5424
5425 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
5426
0b0dea7b
JB
54272004-06-07 Juanma Barranquero <lektu@terra.es>
5428
5429 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
5430 (Fcurrent_time_string, Fcurrent_time_zone)
5431 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
5432
a0a23346
MB
54332004-06-07 Miles Bader <miles@gnu.org>
5434
08384afd 5435 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
5436 (push_named_merge_point): New function.
5437 (merge_named_face): New function.
5438 (merge_face_ref, face_at_buffer_position, face_at_string_position):
5439 Use `merge_named_face'.
5440 (merge_face_inheritance): Function removed.
c8d09ad8 5441 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
5442 Add new `err_msgs' and `named_merge_points' args. Return error
5443 status. Only print error messages if ERR_MSGS is true. Don't try to
5444 do :inherit attribute validation.
5445 (merge_face_heights): Handle `unspecified' in both directions.
5446 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
5447 Call `merge_face_ref' instead of `merge_face_inheritance'.
5448 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
5449 (compute_char_face, face_at_buffer_position)
5450 (face_at_string_position): Call `merge_face_ref' instead of
5451 `merge_face_vector_with_property'.
5452
12d5b185
KH
54532004-06-07 Kenichi Handa <handa@m17n.org>
5454
5455 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
5456 the necessary places.
5457
2e2d7ee6
KS
54582004-06-07 Kim F. Storm <storm@cua.dk>
5459
5460 * process.c (Fdelete_process): Undo 2004-05-28 change.
5461 Instead, call status_notify also for network process.
5462 (status_message): Use process instead of status as arg.
5463 Give messages "deleted" or "connection broken by remote peer" for
5464 an exited network process.
5465 (status_notify): Change call to status_message.
5466 (read_process_output): Increase readmax to 4096. Do not increase
5467 buffer size for datagram channels (default is now large enough).
5468
fcf0d299
ST
54692004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
5470
5471 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
5472 problem due to newly defined variable.
5473
0722292b
MB
54742004-06-06 Miles Bader <miles@gnu.org>
5475
5476 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
5477 immediately if non-interactive or not initialized.
5478
ddfb8369
RS
54792004-06-05 Richard M. Stallman <rms@gnu.org>
5480
5481 * minibuf.c (Fcompleting_read): Doc fix.
5482
57015754
AS
54832004-06-05 Andreas Schwab <schwab@suse.de>
5484
5485 * macfns.c (x_create_tip_frame): Fix declaration after statement.
5486
23715ea6
JB
54872004-06-05 Juanma Barranquero <lektu@terra.es>
5488
5489 * keymap.c (Fdescribe_vector): Fix docstring.
5490 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
5491
8e330b22
MB
54922004-06-05 Miles Bader <miles@gnu.org>
5493
5494 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
5495 attributes have different values than the default face.
5496
9742a3a6
EZ
54972004-06-04 Eli Zaretskii <eliz@gnu.org>
5498
5499 * xfaces.c (x_supports_face_attributes_p): Make this function
5500 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
5501 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
5502 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 5503
9717e36c
MB
55042004-06-04 Miles Bader <miles@gnu.org>
5505
5506 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
5507 from Ftty_supports_face_attributes_p.
5508 (x_supports_face_attributes_p): New function.
5509 (Ftty_supports_face_attributes_p): Function deleted.
5510 (Fdisplay_supports_face_attributes_p): New function.
5511 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 5512 (face_attr_equal_p): New function.
9717e36c
MB
5513 (lface_equal_p): Use it.
5514
52deb19f
JB
55152004-06-03 Juanma Barranquero <lektu@terra.es>
5516
5517 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
5518 (Vw32_color_map): Fix typo in docstring.
5519 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
5520 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
5521 Make argument names match their use in docstring.
5522
86d373e6
JB
55232004-06-02 Juanma Barranquero <lektu@terra.es>
5524
5525 Work around bugs/problems with MinGW builds of graphics libraries
5526 called from MSVC builds of Emacs.
5527
5528 * image.c (lookup_image): Make pointer to img static.
5529 (png_read_from_memory): Disable "global" optimization.
5530
2fb0ce67
SM
55312004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5532
c8d09ad8
SM
5533 * eval.c (Fcondition_case): Fix usage. Simplify.
5534
2fb0ce67
SM
5535 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
5536
50bf7673
ST
55372004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5538
5539 * macfns.c: Don't include ccl.h.
5540 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
5541 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
5542 TextUtils.h.
c8d09ad8 5543 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
5544 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
5545 display height/width.
5546 (compute_tip_xy, Vx_max_tooltip_size): Declare.
5547 (unwind_create_tip_frame, compute_tip_xy): New functions.
5548 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
5549 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
5550 and last_show_tip_args.
2fb0ce67 5551
50bf7673
ST
5552 * macgui.h [!MAC_OSX]: Include Gestalt.h.
5553 (Cursor, No_Cursor): New defines.
c8d09ad8 5554 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
5555 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
5556
5557 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
5558
5559 * macterm.c: Don't include Gestalt.h.
5560 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
5561 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
5562 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
5563 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
5564 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
5565 (construct_mouse_click, XTmouse_position)
5566 (x_scroll_bar_report_motion, x_calc_absolute_position)
5567 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
5568 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
5569 (note_mouse_movement): Clear the mouse face and reset the pointer
5570 shape when the pointer goes outside the frame without grabbing.
5571 (mac_front_window): New function.
5572 (mac_window_to_frame): New macro.
5573 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
5574 (do_window_activate, do_window_deactivate, do_app_resume)
5575 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
5576 (do_zoom_window, mac_do_receive_drag, XTread_socket)
5577 (mac_check_for_quit_char): Use mac_front_window and/or
5578 mac_window_to_frame.
5579 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
5580 scroll-bar click event.
5581 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 5582 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 5583 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 5584 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
5585 (do_window_update): Don't do anything if the updated window is the
5586 tooltip window.
5587 (do_mouse_moved): Handle mouse movement events here (previously in
5588 XTread_socket). Clear the mouse face if
5589 dpyinfo->mouse_face_hidden is set.
5590 (do_os_event, do_events): Remove (now in XTread_socket).
5591 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
5592 Loop until all the events in the queue are processed.
5593 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
5594 contents of do_os_event and do_events. Remove mouse movement
5595 handling (now in do_mouse_moved). Add the case where
5596 Vmouse_highlight has an integer value.
5597 (NewMacWindow): Remove.
5598 (make_mac_frame): Do what NewMacWindow previously did. Don't do
5599 excess initializations.
5600 (make_mac_terminal_frame): Previous initializations in
5601 make_mac_frame are moved here.
c8d09ad8
SM
5602 (mac_initialize_display_info):
5603 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
5604
5605 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
5606 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
5607
08fd1251
RS
56082004-05-29 Richard M. Stallman <rms@gnu.org>
5609
5610 * lisp.h (truncate_undo_list): Update decl.
5611
5612 * alloc.c (undo_outer_limit): New variable.
5613 (syms_of_alloc): Defvar it.
5614 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
5615
5616 * undo.c (truncate_undo_list): New arg LIMITSIZE.
5617
5618 * alloc.c (lisp_align_malloc): Check for base == 0
5619 regardless of HAVE_POSIX_MEMALIGN.
5620 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
5621
227ef0ff
SM
56222004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5623
5624 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
5625 (marker_blocks_pending_free): Remove.
5626 (Fgarbage_collect): Sweep after cleaning up undo-lists.
5627 Mark the undo lists after claning them up.
5628 Don't free block in marker_blocks_pending_free.
5629 (mark_buffer): Don't mark undo_list.
5630 (gc_sweep): Sweep hash-tables and strings first.
5631 Do free marker blocks that are empty.
5632
034a6113
SM
56332004-05-28 Jim Blandy <jimb@redhat.com>
5634
5635 * regex.c (print_partial_compiled_pattern): Add missing 'break'
5636 after 'case wordend'. For symbeg and symend, print to stderr,
5637 like the other cases.
5638
33594a8d
NF
56392004-05-28 Noah Friedman <friedman@splode.com>
5640
5641 * process.c (Fdelete_process): Do not call remove_process.
5642
ce50a847
SM
56432004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5644
5645 * alloc.c (struct backtrace): Remove.
5646 (Fgarbage_collect): Use the new mark_backtrace.
5647
5648 * eval.c (mark_backtrace): New function.
5649
5650 * minibuf.c (run_exit_minibuf_hook): New function.
5651 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
5652 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
5653
1e8dae36
KS
56542004-05-27 Kim F. Storm <storm@cua.dk>
5655
5656 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
5657 over display properties, e.g. images, that replace buffer text.
5658
846faa3b
KS
56592004-05-25 Kim F. Storm <storm@cua.dk>
5660
5661 * alloc.c (marker_blocks_pending_free): New var.
5662 (gc_sweep): Store free marker blocks on that list.
5663 (Fgarbage_collect): Free them after undo-list cleanup.
5664
5665 * process.c (wait_reading_process_input): Check connect_wait_mask
5666 before actually accepting connection in case it has already been
5667 accepted due to recursion.
5668
b6189c3b 56692004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 5670
ce50a847
SM
5671 * coding.c (Fset_safe_terminal_coding_system_internal):
5672 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 5673
71d5a208
RS
56742004-05-22 Richard M. Stallman <rms@gnu.org>
5675
5676 * alloc.c (Fmake_string): Doc fix.
5677
5678 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
5679 and the alist pairs too.
5680
5681 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
5682
5683 * emacs.c (main): Update copyright year.
5684
5685 * fileio.c (Fread_file_name): Expand DIR if not absolute.
5686
5687 * insdel.c (del_range_2, replace_range): Don't write an anchor
5688 if the gap is empty.
5689
5690 * xdisp.c (try_scrolling): If scroll-up-aggressively or
5691 scroll-down-aggressively is small but positive, put point
5692 near the screen edge.
5693
f63fd14e
JB
56942004-05-22 Juanma Barranquero <lektu@terra.es>
5695
5696 * keymap.c (Fdefine_key): Doc fix.
5697
4d12067c
KS
56982004-05-22 Kim F. Storm <storm@cua.dk>
5699
5700 * alloc.c (struct backtrace): Add debug_on_exit member.
5701 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
5702 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
5703 the removed cons cells.
5704 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
5705 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
5706 any cons cells pointing to unallocated stings.
5707 Do not lisp_free any marker blocks, as there may still be pointers
5708 to them from buffer undo lists at this stage of GC.
5709
5710 * keyboard.c (struct backtrace): Add debug_on_exit member.
5711 (Fcommand_execute): Clear it.
5712
931285e2
LT
57132004-05-20 Luc Teirlinck <teirllm@auburn.edu>
5714
5715 * intervals.c (lookup_char_property): Do not prematurely return nil.
5716
669fa600
SM
57172004-05-19 Jim Blandy <jimb@redhat.com>
5718
5719 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 5720 beginning and end of symbols.
4d12067c 5721
669fa600
SM
5722 * regex.c (enum syntaxcode): Add Ssymbol.
5723 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
5724 (re_opcode_t): New opcodes `symbeg' and `symend'.
5725 (print_partial_compiled_pattern): Print the new opcodes properly.
5726 (regex_compile): Parse the new operators.
ce50a847 5727 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
5728 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
5729 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
5730 (re_match_2_internal): Match symbeg and symend.
5731
5732 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
5733
0d8c2e5c
KS
57342004-05-19 Kim F. Storm <storm@cua.dk>
5735
5736 * .gdbinit (xsymbol): Fix last change.
5737
669fa600
SM
57382004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
5739
5740 * .gdbinit (xprintstr): New fun.
5741 (xstring, xprintsym): Use it.
5742
5743 * w32proc.c (create_child): Use INTMASK.
5744
5745 * alloc.c (Fgarbage_collect): Do all the marking before flushing
5746 unmarked elements of the undo list.
5747
9a6a4c40
DP
57482004-05-18 David Ponce <david@dponce.com>
5749
5750 * print.c (print): Reset print_depth before to call print_object.
5751
f3c4ec74
JR
57522004-05-18 Jason Rumney <jasonr@gnu.org>
5753
5754 * w32console.c: Prefix RIF functions with w32con_ to avoid
5755 namespace clash with functions in term.c and w32term.c.
5756
5757 * w32menu.c (add_menu_item, w32_menu_display_help)
5758 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
5759
0d8c2e5c 5760 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 5761
6be49c3a
EZ
57622004-05-18 Eli Zaretskii <eliz@gnu.org>
5763
4d0b9a0a
EZ
5764 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
5765
6be49c3a
EZ
5766 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
5767 with make_number.
5768 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
5769 with XINT.
5770
0bc90bba
KS
57712004-05-18 Kim F. Storm <storm@cua.dk>
5772
89d19988
KS
5773 * blockinput.h (INPUT_BLOCKED_P): New macros.
5774
5775 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
5776 (Ftop_level): Unblock input if blocked.
5777
0bc90bba
KS
5778 * buffer.h (GET_OVERLAYS_AT): New macro.
5779 * msdos.c (IT_note_mouse_highlight): Use it.
5780 * textprop.c (get_char_property_and_overlay): Use it.
5781 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
5782 * xfaces.c (face_at_buffer_position): Use it.
5783
5784 * print.c (print_object): Increase buf size.
5785
653bd0f6
JR
57862004-05-17 Jason Rumney <jasonr@gnu.org>
5787
5788 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
5789 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
5790 Lisp_Object using i member.
5791 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
5792 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
5793 consistently.
5794
5795 * w32proc.c (create_child): Use make_number instead of masking pid.
5796
5797 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
5798 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
5799 Use EQ to compare Lisp_Objects.
5800 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
5801
5802 * w32term.c (w32_num_mouse_buttons): Rename from
5803 Vw32_num_mouse_buttons and make it an int.
5804
5805 * w32.c (init_environment): Use it.
5806
5807 * w32fns.c (w32_wnd_proc): Likewise.
5808
5809 * w32proc.c (w32_pipe_read_delay): Rename from
5810 Vw32_pipe_read_delay and make it an int.
5811
5812 * w32.c (_sys_read_ahead): Use it.
5813
5814 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
5815
5816 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
5817
5818 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
5819 (key_event): Don't mix Lisp_Object and int.
5820
5821 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
5822
5823 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
5824 modifiers in language change event.
5825
54b53ba7
KS
58262004-05-17 Kim F. Storm <storm@cua.dk>
5827
5828 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
5829 Such objects may be freed markers which still exist on an undo list.
5830
6e86a75d
JB
58312004-05-16 Juanma Barranquero <lektu@terra.es>
5832
5833 * data.c (Fset_default): Make argument names match their use in
5834 docstring.
5835
fc80da24
AS
58362004-05-15 Andreas Schwab <schwab@suse.de>
5837
5838 * emacs.c (gdb_array_mark_flag): Define.
5839 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5840
c1380aa6
EZ
58412004-05-15 Eli Zaretskii <eliz@gnu.org>
5842
5843 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
5844 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
5845 defined for the MS-DOS build.
5846
89458937
SM
58472004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5848
5849 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
5850
08020f9a
KH
58512004-05-14 Kenichi Handa <handa@m17n.org>
5852
5853 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
5854
a433994a
ST
58552004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5856
5857 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
5858 section to frame.c section.
5859 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 5860 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 5861
a433994a 5862 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 5863
a433994a 5864 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 5865
a433994a
ST
5866 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
5867 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
5868 (XTread_socket): Fix int/Lisp_Object mixup.
5869 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 5870
a433994a
ST
5871 * macterm.h (struct frame, struct face, struct image)
5872 (display_x_get_resource, Fx_display_color_p)
89458937
SM
5873 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
5874 Add prototypes.
a433994a 5875
b51a51b9
KS
58762004-05-14 Kim F. Storm <storm@cua.dk>
5877
5878 * process.c (wait_reading_process_input): Make reentrant.
5879 Make Available and Connecting non-static. Save and restore value
5880 of waiting_for_user_input_p.
5881
2bde1dd8
KS
58822004-05-13 Kim F. Storm <storm@cua.dk>
5883
5884 * keyboard.c (mark_kboards): Don't mark x and y members
5885 that are overloaded in selection request events.
5886
a267ab4d
SM
58872004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
5888
5889 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
5890
eb15ce9e
GM
58912004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
5892
5893 * window.c (Fdisplay_buffer, Fsplit_window)
5894 (split-height-threshold): Doc fix.
5895
7fc92635
JB
58962004-05-13 Juanma Barranquero <lektu@terra.es>
5897
5898 * xfaces.c (Ftty_supports_face_attributes_p)
5899 (Finternal_copy_lisp_face): Fix typo in docstring.
5900 (Finternal_get_lisp_face_attribute): Fix docstring.
5901
1ec2a572
JD
59022004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5903
5904 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
5905
ae9292e0
ST
59062004-05-11 Steven Tamm <steventamm@mac.com>
5907
5908 * macfns.c (Fx_create_frame): Default to using tool-bar by
5909 setting tool-bar-lines to 1 in default-frame-alist.
5910
59112004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
5912
5913 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
5914 (xpm_get_color_table_v, xpm_make_color_table_h)
5915 (xpm_put_color_table_h, xpm_get_color_table_h)
5916 (xpm_str_to_color_key, xpm_load_image, xpm_load)
5917 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 5918 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 5919
fe97e8df
ST
59202004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5921
a267ab4d 5922 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
5923 instead of FRAME_X_P
5924
b47e779e
KS
59252004-05-11 Kim F. Storm <storm@cua.dk>
5926
5927 * process.c (read_process_output): Grow decoding_buf when needed;
5928 this could cause a crash in allocate_string and compact_small_strings.
5929
cdc9b845
EZ
59302004-04-29 Jim Blandy <jimb@redhat.com>
5931
5932 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
5933 against proper opcode.
5934
aa7094ba
JB
59352004-05-10 Juanma Barranquero <lektu@terra.es>
5936
5937 * process.c (Fstart_process): Fix docstring.
5938
5939 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
5940 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
5941 (Fsplit_char, Fchar_charset): Make argument names match their use
5942 in docstring.
5943
e109331a
RS
59442004-05-10 Richard M. Stallman <rms@gnu.org>
5945
5946 * print.c (print_preprocess): Use being_printed, loop_count and
5947 halftail to detect overdeep nesting and cyclic cdr chains.
5948
9a28b921
AS
59492004-05-10 Andreas Schwab <schwab@suse.de>
5950
78819ebb 5951 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
5952
5953 * fileio.c (Frename_file): Remove extra argument in call to
5954 Fmake_symbolic_link.
5955
e2c02c1a
KS
59562004-05-10 Kim F. Storm <storm@cua.dk>
5957
5958 * xdisp.c (calc_line_height_property): Use string position when
5959 object is a string.
5960
cfe9d13e
KH
59612004-05-10 Kenichi Handa <handa@m17n.org>
5962
a57e8159
KH
5963 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
5964 inhibit-modification-hooks to t temporarily before calling
5965 Ferase_buffer.
5966
5967 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
5968 inhibit-modification-hooks to t temporarily before calling
5969 Ferase_buffer.
5970
5971 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
5972 inhibit-modification-hooks to t temporarily before calling
5973 Ferase_buffer.
5974
cfe9d13e
KH
5975 * fns.c (count_combining): Delete it.
5976 (concat): Don't check combining bytes.
5977
ceb96489
JR
59782004-05-09 Jason Rumney <jasonr@gnu.org>
5979
5980 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
5981 (globals_of_w32fns): Set it.
5982
b6189c3b 59832004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
5984
5985 * data.c (Fquo): Simplify.
5986
28712a21
JB
59872004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
5988
5989 * data.c (Fquo): If any argument is float, do the computation in
5990 floating point.
5991
0f0af7a8
JB
59922004-05-08 Juanma Barranquero <lektu@terra.es>
5993
88214ef6
JB
5994 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
5995 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
5996 Fix spelling of Emacs on docstring.
5997 (Fset_process_coding_system, Fprocess_coding_system)
5998 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
5999 Make argument names match their use in docstring.
6000 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
6001 Fix docstring.
6002
0f0af7a8
JB
6003 * editfns.c (Finsert_buffer_substring): Make argument names match their
6004 use in docstring.
6005
6006 * syntax.c (Fmodify_syntax_entry): Fix docstring.
6007
2a316a84
ST
60082004-05-07 Steven Tamm <steventamm@mac.com>
6009
6010 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
6011 around call to ReceiveEvent to avoid certain crashes.
6012
60132004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 6014
2a316a84
ST
6015 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
6016 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
6017 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
6018 Save/restore the current graphics port and device handle when
6019 drawing into an offscreen graphics world.
6020
6021 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
6022 (gif_load): Likewise.
6023
ab80314b
JB
60242004-05-07 Juanma Barranquero <lektu@terra.es>
6025
6026 * window.c (Fset_window_buffer): Fix docstring.
6027
70646bb5
TTN
60282004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
6029
6030 * emacs.c (main) [VMS]: Fix var ref.
6031
b6189c3b 60322004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
6033
6034 * data.c (Fsetq_default): Fix docstring.
6035
279d3293
JR
60362004-05-06 Jason Rumney <jasonr@gnu.org>
6037
6038 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
6039 to avoid name clash.
6040
f72b5416
JD
60412004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6042
6043 * fileio.c (barf_or_query_if_file_exists): Use lstat.
6044 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 6045 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 6046
6ab66799
KS
60472004-05-04 Kim F. Storm <storm@cua.dk>
6048
6049 * xdisp.c (Qtotal): New var.
6050 (syms_of_xdisp): Intern and staticpro it.
6051 (calc_line_height_property): New arg total. Set it if
6052 line-spacing property has format (total . VALUE).
6053 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
6054 Handle total line-spacing property.
6055
ab2d724b
JD
60562004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6057
6058 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
6059 "under" scroll bar when size/position changes.
6060
238add5e
JR
60612004-05-03 Jason Rumney <jasonr@gnu.org>
6062
6063 * makefile.nt: Remove.
6064
1644f4e4
EZ
60652004-05-02 Eli Zaretskii <eliz@gnu.org>
6066
a267ab4d
SM
6067 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
6068 Avoid compiler warnings.
05fdbeb8 6069
1644f4e4
EZ
6070 * Makefile.in (region-cache.o): Depend on config.h.
6071
b6189c3b 60722004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
6073
6074 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
6075 with continuation lines, too.
6076
2b98b088
TTN
60772004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
6078
6079 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
6080
d9bf7950
SM
60812004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
6082
6083 * xdisp.c (calc_line_height_property): YAILOM (yet another
6084 int/Lisp_Object mixup).
6085
affa509c
EZ
60862004-05-01 Eli Zaretskii <eliz@gnu.org>
6087
6088 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
6089 undo bad effect of pack(4) in some versions of system headers.
6090
07c07cfe
JR
60912004-05-01 Jason Rumney <jasonr@gnu.org>
6092
6093 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
6094
e71caa4e
KS
60952004-04-30 Kim F. Storm <storm@cua.dk>
6096
6097 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 6098 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
6099
6100 * dispextern.h (struct it): Remove member use_default_face.
6101 Add members override_ascent, override_descent, override_boff.
6102
6103 * xdisp.c (init_iterator): Handle line-spacing float value.
6104 Initialize override_ascent member.
6105 (append_space_for_newline): Reset override_ascent.
6106 Remove use_default_face.
6107 (calc_line_height_property): New function to calculate value of
6108 line-height and line-spacing properties. Look at overlays, too.
6109 Set override_ascent, override_descent, override_boff members when
6110 using another face than the current face. Float values are now
6111 relative to the frame default font, by default; accept a cons
6112 of ratio and face name to specify value relative to a specific face.
6113 (x_produce_glyphs): Use calc_line_height_property.
6114 Use override_ascent etc. when set to handle different face heights.
6115 A negative line-spacing property value is interpreted as a total
6116 line height, rather than inter-line spacing.
6117 (note_mouse_highlight): Allocate room for 40 overlays initially.
6118
0fddae66
SM
61192004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6120
6121 * data.c (Fsubr_name): New fun.
6122 (syms_of_data): Defsubr it.
6123
712d23dc
KS
61242004-04-29 Kim F. Storm <storm@cua.dk>
6125
6126 * xdisp.c (null_glyph_slice): New var.
6127 (append_glyph, append_composite_glyph, append_stretch_glyph):
6128 Use it to initialize glyph slice.
6129
033ad8c6
SM
61302004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
6131
6132 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
6133 (on_hot_spot_p): Make sure we always return a value.
6134 (Flookup_image_map): Remove unused var ix and iy.
6135 (note_mode_line_or_margin_highlight): Remove unused var `image'.
6136
93397360
EZ
61372004-04-27 Eli Zaretskii <eliz@gnu.org>
6138
6139 * msdos.c (init_environment): If one of the TMP... environment
6140 variables is set to a drive letter without a trailing slash,
6141 append a slash.
6142
0c54865e
EZ
61432004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
6144
6145 * editfns.c (lisp_time_argument): Provide externally.
6146
6147 * fileio.c (Fset_file_times): New function.
6148 (syms_of_fileio): Intern and staticpro it.
6149
d3b111bd
KS
61502004-04-27 Kim F. Storm <storm@cua.dk>
6151
07dc1231
KS
6152 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
6153 header line strings.
6154
360fe9d2
KS
6155 * dispextern.h (struct it): New member use_default_face.
6156
d3b111bd
KS
6157 * xdisp.c (Qline_height): New variable.
6158 (syms_of_xdisp): Intern and staticpro it.
6159 (append_space_for_newline): Partially undo 2004-04-25 change;
6160 add default_face_p arg, and restore callers.
6161 Clear it->use_default_face after use.
6162 (x_produce_glyphs): Set default font for ascii char if
6163 it->use_default_font is set. Change line-spacing property to set
6164 just extra line spacing. Handle new line-height property.
6165
0448588b
AS
61662004-04-26 Andreas Schwab <schwab@suse.de>
6167
6168 * print.c (print_object): Print non-ascii characters in bool
6169 vector representation as octal escapes.
6170
6171 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
6172 * print.c (print_object): Use it instead of BITS_PER_CHAR for
6173 bool vectors.
6174 * lread.c (read1): Likewise.
6175 * alloc.c (Fmake_bool_vector): Likewise.
6176 * data.c (Faref, Faset): Likewise.
6177 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
6178 (mapcar1): Likewise.
d3b111bd 6179
536d6baa
ST
61802004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
6181
7e26f91b 6182 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 6183
ae11577a
MB
61842004-04-26 Miles Bader <miles@gnu.org>
6185
6186 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
6187
e198ba87
JB
61882004-04-26 Juanma Barranquero <lektu@terra.es>
6189
6190 * buffer.c (Fpop_to_buffer): Fix docstring.
6191
f3d5f92d 61922004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 6193
f3d5f92d
ST
6194 * lread.c (init_lread): Don't display missing lisp directory
6195 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 6196 may be built without correct installation path.
f3d5f92d 6197
03e35edc
KS
61982004-04-25 Kim F. Storm <storm@cua.dk>
6199
9ff3aa31
KS
6200 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6201
6202 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6203
03e35edc
KS
6204 * xdisp.c (append_space_for_newline): Rename from append_space.
6205 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
6206 (x_produce_glyphs): Handle line-spacing property on newline char.
6207 If value is t, adjust ascent and descent to fit current row height.
6208 If value is an integer or float, set extra_line_spacing to integer
6209 value, or to float value x current line height.
6210
f24814e0
KH
62112004-04-23 Kenichi Handa <handa@m17n.org>
6212
6213 * fontset.c (Finternal_char_font): If POSITION is nil, return
6214 font for displaying CH with the default face.
6215
d814862a
JB
62162004-04-23 Juanma Barranquero <lektu@terra.es>
6217
6218 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
6219
063a45c5
SM
62202004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
6223 Don't make assumptions about the relative place of i and val.
6224 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
6225
ae7ab2d3
KS
62262004-04-21 Kim F. Storm <storm@cua.dk>
6227
6228 * dispextern.h (struct glyph_slice): New struct.
6229 (struct glyph): New member slice.
6230 (GLYPH_SLICE_EQUAL_P): New macro.
6231 (GLYPH_EQUAL_P): Use it.
6232 (struct glyph_string): New member slice.
6233 (struct it_slice): New struct.
6234 (struct it): New member slice, add member to stack too.
6235 New member constrain_row_ascent_descent_p.
6236 (image_ascent): Add prototype.
6237
6238 * dispnew.c (buffer_posn_from_coords): Return full image width
6239 and height even for image slices (posn is relative to full image).
6240 (marginal_area_string): Adjust x0,y0 for image slice.
6241
6242 * image.c (image_ascent): Add slice arg; calculate ascent for
6243 image slice (or full image).
6244
6245 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
6246 (syms_of_keyboard): Defsubr them.
6247
6248 * lisp.h (pos_visible_p): Fix prototype.
6249
c62aec78 6250 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
6251 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6252 (x_draw_image_foreground, x_draw_image_relief)
6253 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6254 Draw sliced images.
6255
6256 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
6257 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6258 (x_draw_image_foreground, x_draw_image_relief)
6259 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
6260 Draw sliced images.
6261
6262 * w32term.h (image_ascent): Remove prototype.
6263
6264 * window.c (Fpos_visible_in_window_p): Return pixel position if
6265 PARTIALLY arg is non-nil. Simplify. Doc fix.
6266 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
6267 to return/set vscroll in pixels.
6268
6269 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
6270
6271 * xdisp.c (Qslice): New variable.
6272 (syms_of_xdisp): Intern and staticpro it.
6273 (pos_visible_p): Return pixel position in new x and y args.
6274 (init_iterator): Reset it->slice info.
6275 (handle_display_prop): Parse (slice ...) property.
6276 (push_it, pop_it): Save/restore slice info.
6277 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
6278 force repositioning of tall row if window is vscrolled, as that
6279 would reset vscroll.
6280 (append_space): Set it->constrain_row_ascent_descent_p to avoid
6281 increasing row height if row is non-empty.
6282 (fill_image_glyph_string): Copy slice info.
6283 (take_vertical_position_into_account): Simplify.
6284 (produce_image_glyph): Handle iterator slice info, setup glyph
6285 slice info. Do not force minimum line height.
6286 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
6287 do not increase height (ascent/descent) of non-empty row when
6288 adding normal character glyph; instead reduce glyph ascent/descent
6289 appropriately; if row is higher than current glyph, adjust glyph
6290 descent/ascent to reposition glyph within the existing row.
6291 Likewise, when char is newline, only set ascent/descent if row is
6292 currently empty.
6293 (note_mouse_highlight): Handle hotspots with sliced image.
6294
6295 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
6296 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6297 (x_draw_image_foreground, x_draw_image_relief)
6298 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6299 Draw sliced images.
6300
6301 * xterm.h (image_ascent): Remove prototype.
6302
d58f8753
SM
63032004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6304
6305 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
6306
4ce2719d
JPW
63072004-04-20 John Paul Wallington <jpw@gnu.org>
6308
6309 * fns.c (Fassoc, Feql): Fix indentation.
6310
d58f8753 6311 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 6312
95f8c3b9
JPW
63132004-04-19 John Paul Wallington <jpw@gnu.org>
6314
6315 * fns.c (Feql): New function.
d58f8753 6316 (syms_of_fns): Defsubr it.
95f8c3b9 6317
b7e85537
JR
63182004-04-18 Jason Rumney <jasonr@gnu.org>
6319
6320 * w32select.c (Fw32_set_clipboard_data): Get sequence number
6321 after closing the clipboard.
6322
5a72efd4
LT
63232004-04-16 Luc Teirlinck <teirllm@auburn.edu>
6324
6325 * buffer.c (Fbuffer_base_buffer): Doc fix.
6326
20dc8583
KS
63272004-04-17 Kim F. Storm <storm@cua.dk>
6328
60962ec4
KS
6329 * keymap.c (Fkey_description): Add optional PREFIX arg.
6330 Combine prefix with KEYS to make up the full key sequence to describe.
6331 Correlate meta_prefix_char and following (simple) key to describe
6332 as meta modifier. All callers changed.
6333 (describe_map): Rename arg `keys' to `prefix'. Remove local
6334 `elt_prefix' var. Use Fkey_description with prefix instead of
6335 elt_prefix combined with Fsingle_key_description.
6336 (describe_vector): Declare static. Replace arg `elt_prefix' with
6337 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 6338 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
6339 Fsingle_key_description.
6340
6341 * keymap.h (Fkey_description): Fix prototype.
6342 (describe_vector): Remove prototype.
6343
409368b9
KS
6344 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
6345
20dc8583
KS
6346 * image.c (PNG_BG_COLOR_SHIFT): Remove.
6347 (png_load): Fix calculation of transparent background color on X
6348 and W32 platforms.
6349
75c5501b
JB
63502004-04-16 Juanma Barranquero <lektu@terra.es>
6351
6352 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
6353 not too large before computing how much to scroll.
6354
da879ae8
SM
63552004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
6356
6357 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
6358
d01ca4a8
LT
63592004-04-14 Luc Teirlinck <teirllm@auburn.edu>
6360
6361 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
6362 Add hyperlink to Elisp manual to the docstring.
6363
572943b3
SM
63642004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
6365
6366 * callint.c (fix_command): Use XDCR.
6367
5e30a0fb
NR
63682004-04-14 Nick Roberts <nick@nick.uklinux.net>
6369
6370 * window.c (Fget_lru_window): Doc fix.
6371
a27ddfaf
KS
63722004-04-14 Kim F. Storm <storm@cua.dk>
6373
6374 * editfns.c (Fformat): Fix allocation size of precision array.
6375
6376 * dispnew.c (update_window): Only set changed_p if
6377 scrolling_window actually did scroll.
6378 (scrolling_window): Only return 1 if we actually did scroll.
6379
6380 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
6381 height to glyph height when cursor row is not fully visible.
6382 (make_cursor_line_fully_visible): Add FORCE_P arg to return
6383 failure in case row is higher than window. Callers changed.
6384 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
6385 Try to scroll partially visible, higher-than-window cursor row.
6386 (redisplay_window): Always try to scroll partially visible,
6387 higher-than-window cursor row - both initially and again with
6388 centering_position = 0.
6389 Clear desired matrix before retrying with centering_position = 0.
6390
da879ae8
SM
63912004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6392
6393 * syntax.c (scan_lists): Simplify backward string scan.
6394 Fix off-by-one boundary check for string and comment fences.
6395
5fc16e8e
SM
63962004-04-13 Joe Buehler <jbuehler@hekimian.com>
6397
6398 * sheap.c, unexcw.c: New files.
6399
c9aac8e6
LT
64002004-04-12 Luc Teirlinck <teirllm@auburn.edu>
6401
6402 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
6403 base buffer has been killed. Correct the error message if the
6404 base buffer does not exist.
6405
1e88a355
SM
64062004-04-12 Joe Buehler <jbuehler@hekimian.com>
6407
6408 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
6409 Cygwin itself. Add support for Xaw3d scrollbars.
6410
6411 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
6412
6413 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
6414
6415 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
6416 before Cygwin unexec.
6417
6418 * Makefile.in: Link changes for Cygwin unexec() support.
6419
8dbff9a0
AS
64202004-04-12 Andreas Schwab <schwab@suse.de>
6421
6422 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
6423
54dffe35
LT
64242004-04-11 Luc Teirlinck <teirllm@auburn.edu>
6425
6426 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
6427 IGNORE argument equals NAME. Doc fix.
6428
99a72bdf
MY
64292004-04-11 Masatake YAMATO <jet@gyve.org>
6430
1e88a355 6431 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
6432 empty if they are backwards.
6433
40899d7b
SM
64342004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6435
6436 * xfaces.c (face_color_supported_p): Fix compilation without X11.
6437
f8f853de
SM
64382004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
6439
6440 * doc.c (Fsnarf_documentation): Ignore new file name entries.
6441
c953fe1b
KS
64422004-04-06 Kim F. Storm <storm@cua.dk>
6443
661e85c1
KS
6444 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6445 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
6446
6447 * w32term.c (w32_read_socket): Set mouse_face_hidden after
6448 clearing highlight.
6449
6450 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6451
6452 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
6453 clearing highlight.
6454
c953fe1b
KS
6455 * indent.c (vmotion): Do not reserve one column for continuation
6456 marks on window frames.
6457
c1994268
EZ
64582004-04-04 Eli Zaretskii <eliz@gnu.org>
6459
6460 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
6461 from GCC.
6462
9f691b0d
SM
64632004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6464
6465 * .gdbinit-union: Remove.
6466
6467 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
6468 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
6469 ($nonvalbits): Remove.
6470 ($valmask): Set it by calling xreload to avoid redundancy.
6471
6472 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
6473 (gdb_emacs_intbits): Remove.
6474
7a8560d7
JD
64752004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6476
9f691b0d 6477 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 6478
3c8111fc
KH
64792004-03-30 Kenichi Handa <handa@m17n.org>
6480
6481 * editfns.c (Fformat): Fix initialization of the array info.
6482
48a0bce4
KS
64832004-03-30 Kim F. Storm <storm@cua.dk>
6484
6485 * xterm.c (x_mouse_click_focus_ignore_position): New var.
6486 (syms_of_xterm): DEFVAR_BOOL it.
6487 (ignore_next_mouse_click_timeout): New var.
6488 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
6489 Use it to filter mouse clicks following focus event.
6490
1cd0066c
KS
64912004-03-29 David Ponce <david@dponce.com>
6492
6493 * callint.c (Fcall_interactively): Fix last change.
6494
adb3b353
SM
64952004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6496
6497 * eval.c (Fcommandp): Simplify.
6498
6499 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
6500 Extend to handle all kinds of functions.
6501
6502 * lisp.h (Finteractive_form): Declare.
6503
6504 * callint.c (Fcall_interactively): Use it.
6505
6fc4c9c9
KS
65062004-03-26 Kim F. Storm <storm@cua.dk>
6507
6508 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
6509 to catch errors in calc_pixel_width_or_height during redisplay.
6510
abdb9b83
MY
65112004-03-26 Masatake YAMATO <jet@gyve.org>
6512
b17856dd 6513 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 6514
b17856dd 6515 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 6516
b17856dd 6517 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 6518
b17856dd 6519 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 6520
e8a84b6c
JD
65212004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6522
b17856dd 6523 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 6524
36a3fd05
RS
65252004-03-19 Richard M. Stallman <rms@gnu.org>
6526
6527 * s/sol2-6.h: Delete previous change.
6528
ab24c127
KS
65292004-03-19 Kim F. Storm <storm@cua.dk>
6530
6531 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
6532 to_charpos corresponds to newline in right fringe. Use local
6533 BUFFER_POS_REACHED_P macro.
6534
992126de
JD
65352004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6536
6537 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
6538 to compile on non-window system.
6539
45dbfc84
KS
65402004-03-19 Kim F. Storm <storm@cua.dk>
6541
6542 * dispextern.h (calc_pixel_width_or_height): Add prototype.
6543
6544 * image.c (Qcenter): Move to xdisp.c.
6545
6546 * xdisp.c (Qcenter): Declare here.
adb3b353 6547 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
6548 (handle_single_display_prop): Allow space display property on all
6549 platforms.
6550 (display_mode_line): Set mode_line_p before displaying line.
6551 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
6552 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 6553 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
6554 width/height. Return width or height for image specs.
6555 (produce_stretch_glyph): Improve handling of :align-to. Is now
6556 relative to left of text area by default, but other base offsets
6557 can be specified -- also for text lines.
6558
6559 * term.c (produce_glyphs): Handle IT_STRETCH.
6560 (produce_stretch_glyph): New function to handle space width and
6561 align-to display properties on non-window systems.
6562
37264101
SM
65632004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6564
6565 * fileio.c (Fread_file_name): Set completion-ignore-case for
6566 case-insensitive systems.
6567
73bc43da
MY
65682004-03-14 Masatake YAMATO <jet@gyve.org>
6569
6570 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
6571 when keymap and cursor are setup.
6572
d5fb8dab 65732004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 6574
b17856dd 6575 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 6576
e4b1b5ab
KS
65772004-03-14 Kim F. Storm <storm@cua.dk>
6578
6579 * dispextern.h (x_find_image_file): Add prototype.
6580
6581 * image.c (x_find_image_file): Make extern.
6582
6583 * xfns.c (x_find_image_file): Remove prototype.
6584
a6eeaa81 65852004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 6586
37264101 6587 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 6588
37264101 6589 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 6590
e69cfac2
RS
65912004-03-12 Richard M. Stallman <rms@gnu.org>
6592
6593 * fns.c (internal_equal): New arg PROPS controls comparing
6594 text properties. All callers changed.
6595 (Fequal_including_properties): New function.
6596 (syms_of_fns): defsubr it.
6597
45034953
KS
65982004-03-12 Kim F. Storm <storm@cua.dk>
6599
6600 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 6601
45034953
KS
6602 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
6603 (image_background, image_background_transparent): Fix prototypes.
6604
37264101 6605 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
6606
6607 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
6608 (x_query_font, x_find_ccl_program, x_set_window_size)
6609 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6610 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6611 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
6612
6613 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
6614 (x_query_font, x_find_ccl_program, x_set_window_size)
6615 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6616 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6617 (mac_draw_line_to_pixmap): Add prototypes.
6618
66192004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6620
6621 * macterm.c (XTread_socket): Fix mouse click on tool bar.
6622
a12d3d87
KS
66232004-03-11 Kim F. Storm <storm@cua.dk>
6624
d3ab1cf1
KS
6625 * dispextern.h: Move image related prototypes from xfns.c section
6626 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
6627 HAVE_X_WINDOWS.
37264101 6628
37de9f51 6629 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 6630 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
6631 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
6632 (GTK_OBJ) [USE_GTK]: New declaration.
6633 (obj): Add $(GTK_OBJ) to list.
6634
d5fb8dab 66352004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 6636
7e26f91b 6637 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
6638
6639 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 6640 defined in image.c.
5243c06a 6641
c0f97789
KS
66422004-03-11 Kim F. Storm <storm@cua.dk>
6643
6644 The following changes consolidates the identical/similar image
6645 support code previously found in xfns.c, w32fns.c, and macfns.c
6646 into a new file image.c.
6647
6648 * makefile.w32-in (OBJ1): Add image.o.
6649 ($(BLD)/image.$(O)): Add dependencies.
6650
6651 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
6652 (image.o): Add dependencies.
37264101 6653
c0f97789
KS
6654 * image.c: New file with consolidated image support code.
6655 (COLOR_TABLE_SUPPORT): New define to control whether
6656 color table support is available (X only).
6657 (Bitmap_Record): Common name for x_bitmap_record,
6658 w32_bitmap_record, and mac_bitmap_record.
6659 (XImagePtr): Common name for pointer to XImage or equivalent.
6660 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
6661 to XImagePtr on X+MAC, and to HDC on W32.
6662 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
6663 (NO_PIXMAP): Common name for "None" or equivalent.
6664 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
6665 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
6666 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
6667 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
6668 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
6669 (XDrawLine): Define on MAC for code sharing.
6670 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
6671 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
6672 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6673 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6674 (x_reference_bitmap, x_create_bitmap_from_data)
6675 (x_create_bitmap_from_file, x_destroy_bitmap)
6676 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6677 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6678 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6679 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6680 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6681 (define_image_type, lookup_image_type, valid_image_p)
6682 (image_error, enum image_value_type, struct image_keyword)
6683 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6684 (make_image, free_image, prepare_image_for_display, image_ascent)
6685 (four_corners_best, image_background, image_background_transparent)
6686 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6687 (make_image_cache, free_image_cache, clear_image_cache)
6688 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6689 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6690 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6691 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6692 (init_image_func_pointer, image_load_quartz2d)
6693 (struct ct_color, init_color_table, free_color_table)
6694 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6695 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6696 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6697 (x_disable_image, x_build_heuristic_mask)
6698 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6699 (TIFF support, GIF support, Ghostscript support): Consolidate image
6700 code from xfns.c, w32fns.c, and macfns.c.
6701 (syms_of_image): Consolidate image related symbol setup here.
6702 (init_image): Consolidate image related initializations here.
37264101 6703
c0f97789
KS
6704 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
6705 and init_image. Remove call to init_xfns.
6706
37264101
SM
6707 * macterm.h (struct mac_bitmap_record): Add file member.
6708 Not currently used, but simplifies code sharing.
c0f97789
KS
6709
6710 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6711 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6712 (x_reference_bitmap, x_create_bitmap_from_data)
6713 (x_create_bitmap_from_file, x_destroy_bitmap)
6714 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6715 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6716 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6717 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6718 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6719 (define_image_type, lookup_image_type, valid_image_p)
6720 (image_error, enum image_value_type, struct image_keyword)
6721 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6722 (make_image, free_image, prepare_image_for_display, image_ascent)
6723 (four_corners_best, image_background, image_background_transparent)
6724 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6725 (make_image_cache, free_image_cache, clear_image_cache)
6726 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6727 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6728 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6729 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6730 (init_image_func_pointer, image_load_quartz2d)
6731 (struct ct_color, init_color_table, free_color_table)
6732 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6733 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6734 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6735 (x_disable_image, x_build_heuristic_mask)
6736 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6737 (TIFF support, GIF support, Ghostscript support): Merge with image
6738 code from xfns.c and macfns.c into image.c.
6739 (syms_of_xfns): Move image related symbols to image.c.
6740 (init_external_image_libraries, init_xfns): Remove; initialization
6741 moved to init_image in image.c.
6742
6743 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6744 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6745 (x_reference_bitmap, x_create_bitmap_from_data)
6746 (x_create_bitmap_from_file, x_destroy_bitmap)
6747 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6748 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6749 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6750 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6751 (define_image_type, lookup_image_type, valid_image_p)
6752 (image_error, enum image_value_type, struct image_keyword)
6753 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6754 (make_image, free_image, prepare_image_for_display, image_ascent)
6755 (four_corners_best, image_background, image_background_transparent)
6756 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6757 (make_image_cache, free_image_cache, clear_image_cache)
6758 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6759 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6760 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6761 (struct ct_color, init_color_table, free_color_table)
6762 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6763 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6764 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6765 (x_disable_image, x_build_heuristic_mask)
6766 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6767 (TIFF support, GIF support, Ghostscript support): Merge with image
6768 code from xfns.c and macfns.c into image.c.
6769 (syms_of_xfns): Move image related symbols to image.c.
6770 (init_external_image_libraries, init_xfns): Remove; initialization
6771 moved to init_image in image.c.
6772
6773 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6774 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6775 (x_reference_bitmap, x_create_bitmap_from_data)
6776 (x_create_bitmap_from_file, x_destroy_bitmap)
6777 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6778 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6779 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6780 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6781 (define_image_type, lookup_image_type, valid_image_p)
6782 (image_error, enum image_value_type, struct image_keyword)
6783 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6784 (make_image, free_image, prepare_image_for_display, image_ascent)
6785 (four_corners_best, image_background, image_background_transparent)
6786 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6787 (make_image_cache, free_image_cache, clear_image_cache)
6788 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6789 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6790 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6791 (struct ct_color, init_color_table, free_color_table)
6792 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6793 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6794 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6795 (x_disable_image, x_build_heuristic_mask)
6796 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6797 (TIFF support, GIF support, Ghostscript support): Merge with
6798 w32fns.c and macfns.c image code into image.c.
6799 (syms_of_xfns): Move image related symbols to image.c.
6800 (init_xfns): Remove; initialization moved to init_image in image.c.
6801
6802 * lisp.h (syms_of_image, init_image): Add protoypes.
6803 (init_xfns): Remove prototype.
6804
6805 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6806 (x_reference_bitmap, x_create_bitmap_from_data)
6807 (x_create_bitmap_from_file, x_destroy_bitmap)
6808 (x_create_bitmap_mask): Move prototypes from dispextern.h.
6809 (gamma_correct) [MAC_OS]: Add prototype.
6810
6811 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6812 (x_reference_bitmap, x_create_bitmap_from_data)
6813 (x_create_bitmap_from_file, x_destroy_bitmap)
6814 (x_create_bitmap_mask): Move prototypes to dispextern.h.
6815
6eced09c
KH
68162004-03-09 Kenichi Handa <handa@etlken2>
6817
6818 * coding.c (decode_coding_emacs_mule): Handle insufficent source
6819 correctly.
6820
9a7e95f3
RS
68212004-03-04 Richard M. Stallman <rms@gnu.org>
6822
04a6e76b
RS
6823 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
6824
9a7e95f3
RS
6825 * window.c (Fdisplay_buffer): Doc fix.
6826
6827 * buffer.c (Fpop_to_buffer): Doc fix.
6828
6c2488df
KS
68292004-03-03 Kim F. Storm <storm@cua.dk>
6830
6831 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
6832
d8d95bc7
SM
68332004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
6834
6835 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
6836
357589bf
RS
68372004-03-02 Richard M. Stallman <rms@gnu.org>
6838
6839 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
6840
409949b5
KH
68412004-03-02 Kenichi Handa <handa@m17n.org>
6842
6843 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
6844
d24bc50f
KS
68452004-03-02 Kim F. Storm <storm@cua.dk>
6846
6847 * window.h (struct window): New member overlay_arrow_bitmap.
6848
6849 * window.c (make_window): Initialize overlay_arrow_bitmap.
6850
6851 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
6852 implement and integrate multiple overlay arrows with redisplay.
6853 (syms_of_xdisp): DEFVAR_LISP and initialize it.
6854 (last_arrow_position, last_arrow_string): Replace by properties.
6855 (Qlast_arrow_position, Qlast_arrow_string)
6856 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
6857 (syms_of_xdisp): Intern and staticpro them.
6858 (overlay_arrow_string_or_property, update_overlay_arrows)
6859 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
6860 (overlay_arrow_at_row): New functions for multiple overlay arrows.
6861 (redisplay_internal): Use them instead of directly accessing
6862 Voverlay_arrow_position etc. for multiple overlay arrows.
6863 (mark_window_display_accurate): Use update_overlay_arrows.
6864 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
6865 (try_window_id): Use overlay_arrows_changed_p.
6866 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
6867 (display_line): Use overlay_arrow_at_row to check multiple
6868 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 6869 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
6870 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
6871 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
6872
6873 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
6874 (update_window_fringes): Remove unused code.
6875
c1464661
JR
68762004-03-01 Jason Rumney <jasonr@gnu.org>
6877
6878 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
6879
a64387ee
JB
68802004-03-01 Juanma Barranquero <lektu@terra.es>
6881
6882 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
6883
6884 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
6885
334faa08
JD
68862004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6887
6888 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
6889 how many colors can be displayed.
6890
bb62616f
KH
68912004-03-01 Kenichi Handa <handa@m17n.org>
6892
6893 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
6894 correctly.
6895
0fd16104
KS
68962004-02-28 Kim F. Storm <storm@cua.dk>
6897
6898 * dispnew.c (update_window): Update header line also if there are
6899 no other changes in window (move code after set_cursor label).
6900
6901 * lisp.h (mark_window_display_accurate): Remove prototype.
6902
6903 * window.c (window_loop, Fforce_window_update): Force mode line
6904 updates by setting prevent_redisplay_optimizations_p and
6905 update_mode_lines.
6906
b59dd9c8
JD
69072004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6908
d8d95bc7 6909 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
6910
6911 * xterm.c (x_calc_absolute_position): Call x_real_positions
6912 to get WM window sizes and use those to calculate position.
d8d95bc7 6913 (x_set_offset): Remove code commented out.
b59dd9c8 6914
a874691c
MB
69152004-02-28 Miles Bader <miles@gnu.org>
6916
6917 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
6918
3e0c6482
KS
69192004-02-28 Kim F. Storm <storm@cua.dk>
6920
6921 * keyboard.c (kbd_buffer_store_event_hold): New function to store
6922 an event into kbd fifo, but with special handling of quit event;
6923 a quit event is saved for later, and further events are discarded
6924 until the saved quit event has been processed.
6925 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
6926 (gen_help_event): Store help event in kbd fifo.
6927 (NREAD_INPUT_EVENTS): Remove.
6928 (read_avail_input): Adapt to new read_socket_hook interface.
6929 Remove allocation and initialization of local input_event buffer,
6930 as read_socket_hook stores events directly in fifo. Allocate and
6931 initialize local hold_quit event to handle postponed quit event
6932 (and store it if set by kbd_buffer_store_event_hold).
6933
6934 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
6935 (gen_help_event): Fix prototype.
6936
a64387ee 6937 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 6938 numcharsp args. Add hold_quit arg.
f63fd14e 6939 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
6940 directly in fifo using kbd_buffer_store_event_hold.
6941
6942 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
6943 (read_input_waiting): Adapt to new read_socket_hook interface.
6944 Remove allocation and initialization of local input_event buffer,
6945 as read_socket_hook stores events directly in fifo. Allocate and
6946 initialize local hold_quit event to handle postponed quit event
6947 (and store it if set by kbd_buffer_store_event_hold).
6948
a64387ee 6949 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
6950
6951 * termhooks.h (read_socket_hook): Fix prototype.
6952
6953 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
6954 numcharsp args. Add hold_quit arg.
f63fd14e 6955 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
6956 directly in fifo using kbd_buffer_store_event_hold.
6957
6958 * w32inevt.h (w32_console_mouse_position): Fix prototype.
6959
6960 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
6961 Add hold_quit arg. Rework to use just one, local, inev
6962 input_event. Store inev directly in fifo using
3e0c6482
KS
6963 kbd_buffer_store_event_hold. Update count in one place.
6964 Postpone call to gen_help_event until inev is stored; use new
6965 local do_help for this.
6966 Remove local emacs_event in handing of ButtonPress event; just use
6967 inev instead (so no reason to copy it later).
6968
6969 * xsmfns.c (x_session_check_input): Remove numchars arg.
6970
d8d95bc7
SM
6971 * xterm.c (x_focus_changed, x_detect_focus_change):
6972 Remove numchars arg. Always store event into bufp arg.
6973 Return nothing. Callers changed accordingly.
3e0c6482
KS
6974 (glyph_rect): Simplify.
6975 (STORE_KEYSYM_FOR_DEBUG): New macro.
6976 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
6977 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
6978 (current_hold_quit) [USE_GTK]: Add.
6979 (event_handler_gdk): Adapt to new handle_one_xevent.
6980 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
6981 Add hold_quit arg. Rework to use just one, local, inev
6982 input_event. Store inev directly in fifo using
3e0c6482
KS
6983 kbd_buffer_store_event_hold. Update count in one place.
6984 Postpone call to gen_help_event until inev is stored; use new
6985 local do_help for this.
6986 Simplify handling of keysyms (consolidate common code). Fix bug
6987 where count was updated with nchars instead of nbytes.
6988 Remove local emacs_event in handing of ButtonPress event; just use
6989 inev instead (so no reason to copy it later).
6990 Remove `out' label. Rename label `ret' to `done'; add various
6991 `goto done' to clarify code flow in deeply nested blocks.
6992 (x_dispatch_event): Simplify as handle_one_xevent now calls
6993 kbd_buffer_store_event itself.
f63fd14e 6994 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
6995 arg. Call handle_one_xevent with new arglist. Store event from
6996 x_session_check_input in fifo.
6997 [USE_GTK]: Setup current_hold_quit.
6998 Decrement handling_signal before unblocking input.
6999 (x_initialize) [USE_GTK]: Initialize current_count.
7000
7001 * xterm.h (x_session_check_input): Fix prototype.
7002
e3564461 70032004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 7004
d8d95bc7 7005 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 7006
e3564461
ST
7007 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
7008 macgui.h).
a64387ee 7009
e3564461 7010 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 7011
e3564461
ST
7012 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
7013 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
7014 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
7015 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
7016 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
7017 (Bitmap): Remove typedef.
7018 (Pixmap): Change int to GWorldPtr.
7019
d8d95bc7 7020 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 7021
d8d95bc7
SM
7022 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7023 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
7024 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
7025 long representation.
7026 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
7027 colors used for masks.
7028 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 7029
e3564461
ST
7030 * macfns.c: Include sys/types.h and sys/stat.h.
7031 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
7032 Include QuickTime/QuickTime.h.
7033 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7034 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
7035 functions defined in macterm.c.
7036 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
7037 (ZPixmap): New #define for compatibility with xfns.c.
7038 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7039 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
7040 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
7041 New functions.
e3564461 7042 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
7043 (x_destroy_x_image, unwind_create_frame, x_disable_image)
7044 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
7045 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
7046 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
7047 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
7048 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
7049 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
7050 long mixup.
7051 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
7052 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
7053 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
7054 (x_set_cursor_type, Fxw_color_values, valid_image_p)
7055 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
7056 (x_alloc_image_color, clear_image_cache, lookup_image)
7057 (x_find_image_file, xbm_read_bitmap_file_data)
7058 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
7059 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
7060 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
7061 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
7062 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 7063 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
7064 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
7065 #if 0.
7066 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
7067 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
7068 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
7069 New functions (from xfns.c).
e3564461
ST
7070 (Fx_create_frame): Record unwind_create_frame.
7071 (Fxw_display_color_p): Use dpyinfo->color_p.
7072 (Fx_display_grayscale_p, Fx_display_planes): Don't use
7073 dpyinfo->n_cbits.
7074 (Fx_display_color_cells): Use dpyinfo->n_planes;
7075 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
7076 (Qheuristic, cross_disabled_images, emboss_matrix)
7077 (laplace_matrix): New variables (from xfns.c).
7078 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
7079 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
7080 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
7081 (image_background_transparent): New function (from xfns.c).
7082 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7083 (image_load_quicktime): Add declaration.
7084 [MAC_OSX] (image_load_quartz2d): Likewise.
7085 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
7086 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 7087 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
7088 (xbm_load_image_from_file, x_laplace_read_row)
7089 (x_laplace_write_row, pbm_read_file): Remove functions.
7090 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
7091 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
7092 (colors_in_color_table): Sync with xfns.c (although not used).
7093 (lookup_rgb_color): Don't lookup color table. Just do gamma
7094 correction.
7095 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
7096 (x_disable_image): New function (from xfns.c).
7097 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7098 (x_build_heuristic_mask): Sync with xfns.c.
7099 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7100 (HAVE_PBM): Remove #ifdef.
7101 (pbm_load): Sync with xfns.c. Set img->width and img->height
7102 before IMAGE_BACKGROUND.
d8d95bc7 7103 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
7104 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
7105 Don't enclose with #if HAVE_PNG.
7106 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
7107 symbol _CGImageCreateWithPNGDataProvider is defined.
7108 Otherwise use image_load_quicktime.
e3564461 7109 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
7110 [HAVE_PNG] (png_load): Sync with xfns.c.
7111 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7112 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
7113 HAVE_JPEG.
7114 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
7115 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
7116 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
7117 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
7118 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
7119 (tiff_image_p, tiff_load): Don't enclose declarations with #if
7120 HAVE_TIFF.
7121 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
7122 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
7123 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
7124 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
7125 New functions (from xfns.c).
e3564461 7126 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 7127 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
7128 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
7129 Don't enclose with #if HAVE_GIF.
7130 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
7131 animated gif. Otherwise use image_load_quicktime.
7132 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
7133 gif_DrawText to avoid conflict with QuickdrawText.h.
7134 [HAVE_GIF] (gif_load): Sync with xfns.c.
7135 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
7136 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
7137 Ghostscript is not supported yet).
7138 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
7139 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
7140 cross_disabled_images (from xfns.c). Remove #if 0 for supported
7141 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
7142 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
7143 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
7144 HAVE_PNG. Call EnterMovies to support animated gifs.
7145 Call init_image_func_pointer to bind a symbol
e3564461 7146 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 7147
d8d95bc7 7148 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
7149 (x_draw_bar_cursor): Sync declaration with xterm.c.
7150 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
7151 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
7152 graphics).
7153 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
7154 (mac_draw_line_to_pixmap, XCreatePixmap)
7155 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
7156 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
7157 New functions.
7158 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
7159 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
7160 Cast bits to char *.
e3564461
ST
7161 (reflect_byte): New function (from w32fns.c).
7162 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
7163 due to byte alignment.
d8d95bc7
SM
7164 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
7165 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
7166 (XSetForeground): Remove static (now used in macfns.c).
7167 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
7168 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
7169 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
7170 (x_draw_glyph_string_box, x_draw_image_foreground)
7171 (x_draw_image_foreground_1, x_draw_image_glyph_string)
7172 (x_draw_stretch_glyph_string, x_draw_glyph_string)
7173 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
7174 Sync with xterm.c.
7175 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
7176 than the xterm.c version when a strictly horizontal or vertical
7177 line is drawn.
7178 (XTset_terminal_window): Add static.
7179 (x_make_frame_visible): Add UNBLOCK_INPUT.
7180 (x_free_frame_resources): New funcion (from xterm.c).
7181 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
7182 occurs in tool bar area.
d8d95bc7
SM
7183 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
7184 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
7185 Initialize image cache.
7186 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
7187 Enclose unused functions with #if 0.
7188 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
7189 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 7190 from a mac font name to an XLFD font name according to its script code.
e3564461 7191 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 7192 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
7193 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
7194 whose name starts with `.'.
7195 (init_font_name_table): Use decode_mac_font_name. Add both
7196 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
7197 of a font is smJapanese.
7198 (mac_do_list_fonts): New function to list fonts that match a given
7199 pattern.
7200 (x_list_fonts, XLoadQueryFont): Use it.
7201 (XLoadQueryFont): Set rbearing field for each variable width
7202 character to avoid needless redraw.
7203 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
7204
446f5f3d
KS
72052004-02-26 Kim F. Storm <storm@cua.dk>
7206
af617d0f
KS
7207 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
7208 as read_socket_hook handler on X aborts if buffer is too small
7209 and W32 handler doesn't always check buffer limit.
7210
446f5f3d
KS
7211 * xdisp.c (handle_single_display_prop): Handle left-fringe and
7212 right-fringe similar to a display margin image. Specifically,
7213 the characters having the fringe prop are no longer shown, and
7214 we use IT_IMAGE/next_element_from_image with image_id = -1 to
7215 do this. Set fringe bitmap face_id in it->face_id.
7216 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
7217 still realize it->face (i.e. the fringe bitmap face).
7218
7d8a0b55
MB
72192004-02-25 Miles Bader <miles@gnu.org>
7220
7221 * xdisp.c (check_it): Check string/string_pos consistency.
7222 (init_iterator): Initialize string-related fields properly.
7223
72242004-02-11 Miles Bader <miles@gnu.org>
7225
7226 * xdisp.c (produce_image_glyph): Force negative descents to zero.
7227
72282004-02-10 Miles Bader <miles@gnu.org>
7229
7230 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
7231 BLOCK_INPUT can be nested, so it doesn't make much sense.
7232
a64387ee 72332004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
7234
7235 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
7236 (xbm_read_bitmap_data): Use unsigned char for image data.
7237
92f5fba2
LT
72382004-02-23 Luc Teirlinck <teirllm@auburn.edu>
7239
7240 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
7241
8565fb3d
JR
72422004-02-22 Jason Rumney <jasonr@gnu.org>
7243
7244 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
7245 correctly over other bitmaps.
7246
a6eeaa81 72472004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
7248
7249 * emacs.c (USAGE1): Split into two halves.
7250 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
7251 (USAGE3): Rename from USAGE2.
7252 (USAGE4): Rename from USAGE3.
f8125c39 7253
4effffca
EZ
72542004-02-21 Juri Linkov <juri@jurta.org>
7255
7256 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
7257 Fix --multibyte. Move --help, --version to USAGE2. Add alias
7258 --file. Fix -f, -l. Sort options. Untabify.
7259 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
7260
923c1e6f
LT
72612004-02-19 Luc Teirlinck <teirllm@auburn.edu>
7262
7263 * category.c (Fdefine_category, Fcategory_docstring)
7264 (Fget_unused_category, Fset_category_table)
7265 (Fcategory_set_mnemonics): Doc fixes.
7266
b0e225fd
KS
72672004-02-20 Kim F. Storm <storm@cua.dk>
7268
7269 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
7270 The following changes are relative to the 2004-01-21 revision.
7271 (NREAD_INPUT_EVENTS): Define as max number of input events to read
7272 in one call to read_socket_hook. Value is 8.
7273 (read_avail_input): Separate and rework handling of read_socket_hook
7274 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
7275 in read_socket_hook case, and repeat if full buffer is read.
7276 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
7277 In non-read_socket_hook case, just use a single input_event, and
7278 call kbd_buffer_store_event on the fly for each character.
7279
b15aa9f9
SM
72802004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7281
7282 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
7283 Remove unused `gu' alternative.
7284
83c9aa95
AS
72852004-02-19 Andreas Schwab <schwab@suse.de>
7286
7287 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
7288 warning.
7289
cc808173
KS
72902004-02-18 Kim F. Storm <storm@cua.dk>
7291
7292 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
7293 Fix last change.
7294
ab90a54d
KS
72952004-02-17 Kim F. Storm <storm@cua.dk>
7296
b26f249f
KS
7297 * xdisp.c (fast_find_position): Fix return value of new version;
7298 it was inverted compared to the 21.1 version.
7299 (get_window_cursor_type): Don't look at glyph if NULL.
7300 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 7301
ab90a54d
KS
7302 * keyboard.c: Rework previous change; it didn't consider that the
7303 buf array was allocated on the stack.
7304 (prev_read): Remove variable.
7305 (read_avail_input_buf): New static event buffer array.
b9568dfc 7306 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 7307 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
7308 Use in_read_avail_input to handle re-entrance; when re-entered,
7309 fully initialize and use tmp_buf array instead of read_avail_input_buf.
7310 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
7311 is always cleared on entry. To ensure that, we clear (just) the
7312 entries that were used before we return.
7313 (init_keyboard): Initialize read_avail_input_buf here.
7314
b6189c3b 73152004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
7316
7317 * cmds.c (Fend_of_line): Doc fix.
7318
7b5368c1
EZ
73192004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
7320
7321 * keyboard.c (prev_read): New static variable.
7322 (read_avail_input): Use it to zero out only those slots in buf[]
7323 that were used last time we were called.
7324
a6eeaa81 73252004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
7326
7327 * Makefile.in (obj): Move fringe.o from here...
7328 (XOBJ, MAC_OBJ): ...to here.
7329
159c348e
SE
73302004-02-16 Stephen Eglen <stephen@gnu.org>
7331
7332 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
7333
d2f14999
SM
73342004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
7335
b15aa9f9
SM
7336 * data.c (Fbyteorder):
7337 * fringe.c (Fdefine_fringe_bitmap):
7338 * xdisp.c (handle_single_display_prop):
d2f14999
SM
7339 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
7340
8d50508a
JR
73412004-02-16 Jason Rumney <jasonr@gnu.org>
7342
7343 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
7344
dd4497dc
ST
73452004-02-15 Steven Tamm <steventamm@mac.com>
7346
7347 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
7348 controlling emulation of a three button mouse with option and
7349 command keys.
7e26f91b 7350 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 7351 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 7352
c9159cb3
KS
73532004-02-15 Kim F. Storm <storm@cua.dk>
7354
2cc52658
KS
7355 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
7356
c9159cb3
KS
7357 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
7358 Perform byte-swapping.
7359
12fde2dc
KS
73602004-02-14 Kim F. Storm <storm@cua.dk>
7361
7362 * dispextern.h (struct draw_fringe_bitmap_params): Change member
7363 bits from char to short to facilitate wider bitmaps.
7364 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
7365 member.
7366
7367 * fringe.c (struct fringe_bitmap): Change member bits from char to
7368 short to facilitate 16 bits wide bitmaps. Modify all standard
7369 bitmaps accordingly.
7370 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
7371 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
7372 (draw_fringe_bitmap): Ditto.
7373 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
7374 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
7375 handle up to 16 bits wide bitmaps.
7376 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 7377 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
7378
7379 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
7380 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
7381 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
7382
7383 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
7384 so it is no longer necessary to expand them here.
7385
7386 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
7387
9d7271e8
KS
73882004-02-12 Kim F. Storm <storm@cua.dk>
7389
7390 * window.c (Fwindow_fringes): Doc fix.
7391
706c1e4f
JD
73922004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7393
7394 * xselect.c (x_get_foreign_selection): Add new optional parameter
7395 time_stamp.
7396 (Fx_get_selection_internal): Ditto, pass time_stamp to
7397 x_get_foreign_selection.
7398
7399 * data.c (Fbyteorder): New function.
7400
c2d12b5d
JD
74012004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7402
7403 * atimer.c: Move include stdio.h to same place as in other files.
7404
7405 * region-cache.c: Ditto.
7406
7407 * sysdep.c: Ditto.
7408
7409 * xfaces.c: Ditto.
7410
4c1947b9
SS
74112004-02-09 Sam Steingold <sds@gnu.org>
7412
89458937 7413 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 7414
82722af3
KS
74152004-02-09 Kim F. Storm <storm@cua.dk>
7416
7417 * fringe.c: New file. Move original fringe related declarations
7418 and code from dispextern.h and xdisp.c here.
7419 Rework code to support user defined fringe bitmaps, redefining
7420 standard bitmaps, ability to overlay user defined bitmap with
7421 overlay arrow bitmap, and add faces to bitmaps.
7422 (Voverflow_newline_into_fringe): Declare here.
7423 (enum fringe_bitmap_align): New enum.
7424 (..._bits): All bitmaps are now defined without bitswapping; that
7425 is now done in init_fringe_once (if necessary).
7426 (standard_bitmaps): New array with specifications for the
7427 standard fringe bitmaps.
7428 (fringe_faces): New array.
7429 (valid_fringe_bitmap_id_p): New function.
7430 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
7431 (draw_fringe_bitmap): New function which draws fringe bitmap,
7432 possibly overlaying bitmap with cursor in right fringe or the
7433 overlay arrow in the left fringe.
7434 (update_window_fringes): Do not handle overlay arrow here.
7435 Compare and copy fringe bitmap faces.
7436 (init_fringe_bitmap): New function.
7437 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
7438 define and destroy user defined fringe bitmaps.
7439 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
7440 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
7441 (syms_of_fringe): New function. Defsubr new DEFUNs.
7442 DEFVAR_LISP Voverflow_newline_into_fringe.
7443 (init_fringe_once, init_fringe): New functions.
7444 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 7445
82722af3
KS
7446 * Makefile.in (obj): Add fringe.o.
7447 (fringe.o): New dependencies.
7448
7449 * dispextern.h (FRINGE_ID_BITS): New definition for number of
7450 bits allocated to hold a fringe number. Increase number of bits
7451 from 4 to 8 to allow user defined fringe bitmaps.
7452 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
7453 left_user_fringe_face_id, right_user_fringe_bitmap,
7454 right_user_fringe_face_id.
7455 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
7456 Move to new file fringe.c.
7457 (MAX_FRINGE_BITMAPS): Define here.
7458 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
7459 and overlay_p. Change member which to int.
7460 (struct redisplay_interface): New members define_fringe_bitmap
7461 and destroy_fringe_bitmap.
7462 (valid_fringe_bitmap_id_p): Add prototype.
7463 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
7464
7465 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
7466 arrows.
7467 (update_frame): Do flush_display if force_flush_display_p to
7468 ensure display (specifically fringes) are updated in a timely
7469 manner when resizing the frame by dragging the mouse.
7470 (update_window_line): Update row if overlay arrow changed.
7471 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
7472 or overlay arrow changed.
7473
7474 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
7475 syms_of_fringe, and init_fringe.
7476
7477 * frame.h (struct frame): New member force_flush_display_p.
7478
7479 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
7480 Add prototypes.
7481
a3993cc8 7482 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 7483 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
7484 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
7485 Use cursor color for displaying cursor in fringe.
82722af3
KS
7486 (x_redisplay_interface): Add null handlers for
7487 define_fringe_bitmap and destroy_fringe_bitmap functions.
7488
7489 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
7490 xterm.c to handle overlayed fringe bitmaps and to use cursor color
7491 for displaying cursor in fringe.
7492 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
7493 specific functions to define and destroy fringe bitmaps in fringe_bmp.
7494 (w32_redisplay_interface): Add them to redisplay_interface.
7495 (w32_term_init): Call w32_init_fringe instead of explicitly
7496 defining fringe bitmaps in fringe_bmp array.
7497 (x_delete_display): Call w32_reset_fringes instead of explicitly
7498 destroying fringe bitmaps in fringe_bmp array.
7499
7500 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
7501 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
7502 (continued_bits, continuation_bits, ov_bits, first_line_bits)
7503 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
7504 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
7505 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
7506 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
7507 Move fringe handling vars and code to new file fringe.c.
7508 (handle_display_prop): Handle left-fringe and right-fringe
7509 display properties; store user fringe bitmaps in iterator.
7510 (move_it_in_display_line_to): Handle cursor in fringe at eob.
7511 (clear_garbaged_frames): Set force_flush_display_p if resized.
7512 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
7513 (display_line): Handle cursor in fringe at eob.
7514 (display_line): Set row user fringe bitmaps from iterator.
7515
7516 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
7517 Use cursor color for displaying cursor in fringe.
7518 (x_redisplay_interface): Add null handlers for
7519 define_fringe_bitmap and destroy_fringe_bitmap functions.
7520
030400eb
JD
75212004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7522
7523 * macfns.c (Fx_change_window_property): Make doc string and
7524 parameters same as for X version.
7525
7526 * w32fns.c (Fx_change_window_property): Ditto.
7527
3af55251
KS
75282004-02-07 Kim F. Storm <storm@cua.dk>
7529
ec110e9e
KS
7530 * xdisp.c (hscroll_window_tree): Position cursor near to right
7531 margin in hscrolled window when jumping to end of line (rather
7532 than centering cursor).
7533
3af55251
KS
7534 * process.c (wait_reading_process_input): Don't do adaptive read
7535 buffering if waiting for a specific process.
7536
b0c138ce
LT
75372004-02-05 Luc Teirlinck <teirllm@auburn.edu>
7538
7539 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
7540 (Fread_minibuffer, Feval_minibuffer)
7541 (Fread_string, Fread_no_blanks_input)
7542 (Fcompleting_read): Doc fixes.
7543 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
7544 completion-regexp-list. Define Qcase_fold_search and staticpro it.
7545 (read_minibuf): Fix initial comment.
7546 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 7547 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
7548 checking completion-regexp-list.
7549 (Fdisplay_completion_list): Make it handle arguments that are
7550 symbols. Doc fix.
7551
9676f5ad 75522004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 7553
9676f5ad 7554 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 7555
9676f5ad
JD
7556 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
7557 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 7558 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 7559 format. Remove unused variable cons.
5b698285
JD
7560
7561 * xselect.c: Include stdio,h.
7562
fc1d15f6
KH
75632004-02-05 Kenichi Handa <handa@m17n.org>
7564
ebaff4af
KH
7565 * fns.c (Fset_char_table_range): Fix previous change.
7566
fc1d15f6
KH
7567 * buffer.c (Fset_buffer_multibyte): Fix docstring.
7568
9676f5ad
JD
75692004-02-04 Luc Teirlinck <teirllm@auburn.edu>
7570
7571 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
7572
da75761f
SM
75732004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
7574
7575 * keymap.c (Vmouse_events): Rename from Vmenu_events.
7576 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
7577
13c5d120
KH
75782004-02-04 Kenichi Handa <handa@m17n.org>
7579
7580 * fns.c (Fset_char_table_range): Handle charsets ascii,
7581 eight-bit-control, and eight-bit-graphic correctly.
7582
2883d842
JR
75832004-02-03 Jason Rumney <jasonr@gnu.org>
7584
7585 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
7586
7587 * w32fns.c (x_to_w32_font): Likewise.
7588
69eff41f
JD
75892004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7590
7591 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
7592 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
7593
7594 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
7595 ClientMessages.
7596
7597 * xselect.c: Include termhooks.h and X11/Xproto.h
7598 (x_check_property_data, x_fill_property_data)
7599 (x_property_data_to_lisp, mouse_position_for_drop)
7600 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 7601 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
7602 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
7603
da75761f 7604 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
7605 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
7606 OUTER_P.
7607 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
7608 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
7609 if vector_ret_p is true.
7610 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 7611
a6eeaa81 76122004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
7613
7614 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
7615 basename of FILE relative to it, not FILE itself.
7616
09721b31
KH
76172004-02-02 Kenichi Handa <handa@m17n.org>
7618
7619 * coding.c (coding_restore_composition): Check invalid
7620 composition data more rigidly.
7621
eb996101
LT
76222004-01-30 Luc Teirlinck <teirllm@auburn.edu>
7623
7624 * fileio.c (Fread_file_name_internal): Correctly handle the case
7625 where insert-default-directory is nil.
7626 (Fread_file_name): Always return an empty string if the user exits
7627 with an empty minibuffer. Adapt the docstring accordingly.
7628 (syms_of_fileio): Adapt the docstring of insert-default-directory
7629 to the change in Fread_file_name.
7630
a6eeaa81 76312004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
7632
7633 * alloca.c [!alloca]: Fix the prototype for xfree.
7634
13f52ed8
KH
76352004-01-29 Kenichi Handa <handa@m17n.org>
7636
7637 * fns.c (string_char_to_byte): Optimize for ASCII only string.
7638 (string_byte_to_char): Likewise.
7639
d57625a0
JR
76402004-01-28 Peter Runestig <peter@runestig.com>
7641
7642 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
7643
a64387ee 76442004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
7645
7646 * unexmacosx.c (unexec_copy): Do not copy more than was
7647 requested to prevent overwriting during unexec.
7648
eb37b8fd
JD
76492004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7650
ce38070a
JD
7651 * process.c (sigchld_handler): Add comment about not calling malloc.
7652
eb37b8fd
JD
7653 * process.h: Add extern to synch_process_termsig.
7654
a64387ee 76552004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 7656
da75761f
SM
7657 * macterm.c (make_mac_frame, make_mac_terminal_frame):
7658 Move setting of scroll bars from make_mac_frame to
7659 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 7660
d62a265d
RS
76612004-01-26 Richard M. Stallman <rms@gnu.org>
7662
7663 * search.c (Freplace_match): Handle nonexistent
7664 back-references properly.
7665
76662004-01-03 Richard M. Stallman <rms@gnu.org>
7667
7668 * window.c (decode_any_window): New function.
7669 (Fwindow_height, Fwindow_width, Fwindow_edges)
7670 (Fwindow_pixel_edges, Fwindow_inside_edges)
7671 (Fwindow_inside_pixel_edges): Use decode_any_window.
7672
ff236419
JD
76732004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7674
7675 * process.h: synch_process_termsig new variable.
7676
7677 * callproc.c: Define synch_process_termsig.
7678 (Fcall_process): Initiate synch_process_termsig to zero and
7679 check if non-zero and get signal name after subprocess has ended.
7680
7681 * process.c (sigchld_handler): Set synch_process_termsig
7682 if terminated by a signal. synch_process_death setting removed.
7683
7684 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
7685
41b867ea
AS
76862004-01-26 Andreas Schwab <schwab@suse.de>
7687
7688 * print.c (print_preprocess): Declare size as EMACS_INT to not
7689 lose bits.
7690 (print_object): Likewise.
7691 * alloc.c (Fpurecopy): Likewise.
7692
a08084ff
LT
76932004-01-25 Luc Teirlinck <teirllm@auburn.edu>
7694
7695 * window.c (Fwindow_minibuffer_p): Doc fix.
7696
b19ac475
JY
76972004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
7698
7699 * editfns.c (Fformat): Make both passes accept the same set of flags.
7700
fe905025
KH
77012004-01-23 Kenichi Handa <handa@m17n.org>
7702
7703 * fns.c (Fmd5): If OBJECT is a buffer different from the current
7704 one, set buffer to OBJECT temporarily.
7705
438fc6c0
SM
77062004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7707
455316e2
SM
7708 * keyboard.c (kbd_buffer_gcpro): Remove.
7709 (kbd_buffer_store_event, clear_event, Fdiscard_input)
7710 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
7711 Don't initialize and/or maintain the variable any more. It was made
7712 redundant by my commit of 2003-06-15.
7713
438fc6c0
SM
7714 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
7715
5335a4ee
JD
77162004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7717
7718 * lisp.h: Add undef DECL_ALIGN.
7719
dcdaeebc
SM
77202004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7721
7722 * process.c (wait_reading_process_input) [SYNC_INPUT]:
7723 Check interrupt_input_pending explicitly.
7724
7725 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
7726
7727 * keyboard.c (handle_async_input): New fun,
7728 extracted from input_available_signal.
7729 (input_available_signal, reinvoke_input_signal): Use it.
7730
9076a823
SM
77312004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
7732
d7107586
SM
7733 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
7734
7735 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
7736 manipulation macros for when tags are in the lower bits.
7737 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
7738 (DECL_ALIGN): New macro.
7739 (DEFUN): Use it.
7740
7741 * lisp.h [ENABLE_CHECKING]: Don't force union type.
7742
7743 * s/darwin.h (__attribute__): Remove outdated workaround.
7744
7745 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
7746
7747 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
7748 Don't check range of malloc address.
7749 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
7750
9076a823
SM
7751 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
7752
7753 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
7754
ba029065
KH
77552004-01-19 Kenichi Handa <handa@m17n.org>
7756
7757 * fontset.c (fontset_font_pattern): Fix previous change.
7758
7af0e8d7
MB
77592004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
7760
7761 * xdisp.c (Voverflow_newline_into_fringe)
7762 (move_it_in_display_line_to, redisplay_internal)
7763 (update_window_fringes, redisplay_window, display_line, window):
7764 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
7765 that it compiles without a window-system.
7766 * dispnew.c (direct_output_for_insert, update_window): Likewise.
7767
77a9cf69
KS
77682004-01-16 Kim F. Storm <storm@cua.dk>
7769
7770 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
7771
a64387ee 7772 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
7773 buffer_local_flags for indicate_buffer_boundaries.
7774 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
7775 default- variable for it.
7776
7777 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
7778 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 7779 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
7780 overflowing newlines into right fringe.
7781 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
7782 and indicate_bottom_line_p for buffer boundaries and scrolling.
7783 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
7784 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
7785 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
7786 and HOLLOW_SQUARE_BITMAP.
7787 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
7788 Add prototypes.
7789
7790 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
7791 instead of related indicator fields.
7792 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
7793 (direct_output_for_insert): Handle exact width lines like
7794 contined lines. Call update_window_fringes.
7795 (update_window): Call update_window_fringes.
7796 (scrolling_window): Don't skip desired rows with changed bitmaps.
7797 Check if fringe bitmaps changes when assigning scrolled rows.
7798
7799 * xdisp.c (Voverflow_newline_into_fringe): New variable.
7800 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
7801 (move_it_in_display_line_to): Overflow newline into fringe for
7802 rows that are exactly as wide as the window.
7803 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
7804 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
7805 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
7806 (fringe_bitmaps): Add new bitmaps.
7807 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
7808 Select proper bitmap for cursor in fringe when appropriate.
7809 Handle alignment of bitmap to top or bottom of row.
7810 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
7811 done by update_window_fringes.
7812 (update_window_fringes, draw_window_fringes): New functions.
7813 (redisplay_internal): Call update_window_fringes in case only
7814 cursor row is updated.
7815 (redisplay_window): Call update_window_fringes.
7816 Explicitly call draw_window_fringes if redisplay was done using
7817 the current matrix or the overlay arrow is in the window.
7818 (try_window_reusing_current_matrix): Mark scrolled rows for
7819 fringe update (to update buffer-boundaries / scrolling icons).
7820 (find_last_unchanged_at_beg_row): Handle exact width lines line
7821 continued lines.
7822 (display_line): Overflow newline into fringe for rows that are
7823 exactly as wide as the window. Don't append space for newline
d7107586 7824 in this case.
77a9cf69
KS
7825 (notice_overwritten_cursor): Explicitly clear cursor bitmap
7826 in fringe as if it had been overwritten.
7827 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 7828 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
7829 void-text-area-pointer as user options.
7830 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 7831
77a9cf69
KS
7832 * xterm.c (x_update_window_end): Call draw_window_fringes.
7833 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7834 in row instead of actually drawing fringe bitmaps.
7835 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7836 (x_draw_window_cursor): Draw cursor in fringe.
7837
7838 * w32term.c (x_update_window_end): Call draw_window_fringes.
7839 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7840 in row instead of actually drawing fringe bitmaps.
7841 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7842 (w32_draw_window_cursor): Draw cursor in fringe.
7843
7844 * macterm.c (x_update_window_end): Call draw_window_fringes.
7845 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7846 in row instead of actually drawing fringe bitmaps.
7847 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7848 (mac_draw_window_cursor): Draw cursor in fringe.
7849
a633a954
JD
78502004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7851
7852 * xterm.c (handle_one_xevent): Don't handle characters that are part
7853 of an old style (XLookupString) compose sequence.
7854
80460525
KH
78552004-01-15 Kenichi Handa <handa@m17n.org>
7856
7857 * search.c (Freplace_match): Use make_multibyte_string or
7858 make_unibyte_string according to the buffer multibyteness.
7859
7fc34f85
SM
78602004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
7861
7862 * alloc.c (struct interval_block, struct string_block)
7863 (struct symbol_block, struct marker_block, live_string_p)
7864 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
7865 Better preserve alignment for objects in blocks.
7866 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
7867
7868 * lread.c (defvar_per_buffer): Remove dead declaration.
7869
7870 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
7871 space size.
7872
66070bd1
JD
78732004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7874
7875 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
7876 if a key press should pop down. Only pop down if a key is pressed
7877 outside the menu/dialog.
7878 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
7879 popup_get_selection.
7880 (create_and_show_dialog): Pass 1 for down_on_keypress to
7881 popup_get_selection.
7882
de7515d6
JD
78832004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7884
7885 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
7886 BLOCK/UNBLOCK_INPUT.
7887
160b1b50
JD
78882004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7889
7890 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
7891 specified.
7892
3a9f36e6
KH
78932004-01-08 Kenichi Handa <handa@m17n.org>
7894
7895 * editfns.c (Fformat): Fix '&' to '&&'.
7896
3803eb32
AS
78972004-01-08 Andreas Schwab <schwab@suse.de>
7898
7899 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
7900 size if PSEUDOVECTOR_FLAG is set.
7901
9da88f37
KH
79022004-01-07 Kenichi Handa <handa@m17n.org>
7903
74ac5074
KH
7904 * charset.c (Fdeclare_equiv_charset): Fix docstring.
7905
9da88f37
KH
7906 * fontset.c (fontset_ref_via_base): Fix previous change.
7907
05faee07
KS
79082004-01-07 Kim F. Storm <storm@cua.dk>
7909
7910 * process.c (read_process_output): Only activate adaptive
7911 buffering if we read less than 256 bytes at a time.
7912
634910c8
KS
79132004-01-06 Kim F. Storm <storm@cua.dk>
7914
7915 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
7916 object and image object. Return glyph width and height.
7917 (mode_line_string, marginal_area_string): Ditto.
7918
7919 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7920 (marginal_area_string): Fix prototypes.
7921
7922 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 7923 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
7924 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
7925
7926 * keyboard.c (make_lispy_position): Use modified mode_line_string,
7927 buffer_posn_from_coords, and marginal_area_string functions to
7928 include both string object and image object in the lispy position.
7929 Also add actual glyph width and height to position.
7930 (read_key_sequence): Use real buffer position from mouse
7931 event to find keymap property even when click is in marginal area.
7932
7933 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
7934 mode_line_string and marginal_area_string functions to handle
7935 both string object and image object properties.
d7107586 7936
57951c2e
AS
79372004-01-06 Andreas Schwab <schwab@suse.de>
7938
7939 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
7940 character.
7941
181e6a61
AS
79422004-01-02 Andreas Schwab <schwab@suse.de>
7943
d7107586
SM
7944 * macterm.c (emacs_options, x_initialized, same_x_server):
7945 Remove unused (and duplicated) definitions.
181e6a61 7946
31e0fbdd
KS
79472004-01-02 Kim F. Storm <storm@cua.dk>
7948
7949 * process.h (struct Lisp_Process): New members for adaptive read
7950 buffering: adaptive_read_buffering, read_output_delay, and
7951 read_output_skip.
7952
7953 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
7954 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
7955 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
7956 (process_output_delay_count, process_output_skip): New vars.
7957 (Vprocess_adaptive_read_buffering): New variable.
7958 (make_process): Initialize adaptive read buffering members.
7959 (Fstart_process): Set adaptive_read_buffering member.
7960 (deactivate_process): Cleanup adaptive read buffering.
7961 (wait_reading_process_input): Temporarily omit delayed
7962 subprocesses from the set of file descriptors to read from;
7963 adjust the select timeout if we skipped any subprocesses.
7964 (read_process_output): Increase adaptive read buffering delay if
7965 we read less than a full buffer; reduce delay when we read a
7966 full buffer.
7967 (send_process): Simplify using local Lisp_Process var.
7968 Reset adaptive read buffering delay after write.
7969 (init_process): Initialize process_output_delay_count and
7970 process_output_skip.
7971 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
7972
68c6a789
JR
79732004-01-01 Jason Rumney <jasonr@gnu.org>
7974
d7107586 7975 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 7976
3f70fe82
LT
79772003-12-30 Luc Teirlinck <teirllm@auburn.edu>
7978
7979 * print.c (Ferror_message_string): Add hyperlink in the docstring
7980 to the definition of `signal' in the Elisp manual.
7981 * eval.c (Fsignal): Ditto.
7982
b6189c3b 79832003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
7984
7985 * fns.c (internal_equal): Return t for two NaN arguments.
7986
7abd90ea
RS
79872003-12-29 Richard M. Stallman <rms@gnu.org>
7988
7989 * data.c (store_symval_forwarding): Handle setting
7990 default-fill-column, etc., by changing the value in
7991 buffers that use the default.
7992
7993 * minibuf.c (Fset_minibuffer_window): Doc fix.
7994
7995 * fileio.c (choose_write_coding_system): Ignore auto_saving
7996 if using the visited file for auto saves.
7997 (Fwrite_region): Don't update SAVE_MODIFF
7998 if auto-saving in visited file.
7999
3e7cfcdc
KH
80002003-12-29 Kenichi Handa <handa@m17n.org>
8001
8002 * dispextern.h (face_font_available_p): Extern it.
8003
8004 * fontset.c (Voverriding_fontspec_alist): New variable.
8005 (lookup_overriding_fontspec): New function.
d7107586 8006 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
8007 (fontset_font_pattern): Likewise.
8008 (regulalize_fontname): New function.
8009 (Fset_fontset_font): Call regulalize_fontname.
8010 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
8011 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
8012 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
8013
8014 * xfaces.c (face_font_available_p): New function.
8015
7abd90ea
RS
80162003-12-28 Richard M. Stallman <rms@gnu.org>
8017
8018 * buffer.c (Fother_buffer): Don't crash if BUF is nil
8019 or if its name is nil.
8020
8021 * buffer.c (Fkill_buffer): Don't delete auto-save file
8022 if it's the same as the visited file.
8023
de1d1a40
LT
80242003-12-28 Luc Teirlinck <teirllm@auburn.edu>
8025
8026 * coding.c (Fcheck_coding_system): Doc fix.
8027
204fb75e
KS
80282003-12-28 Kim F. Storm <storm@cua.dk>
8029
8030 * Makefile.in (eval.o): Depend on dispextern.h.
8031
8032 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
8033 image glyph using image's ascent.
8034 (mode_line_string): Return image glyph as object clicked on.
8035 Adjust y0 for image glyph using image's ascent.
8036
8037 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
8038 (struct glyph): New members, ascent and descent. Used to save
8039 this glyph's ascent and descent, instead of having.
8040 (struct glyph): Declare member face_id using FACE_ID_BITS.
8041 (find_hot_spot): Add prototype.
8042
8043 * keyboard.c (Qimage): Remove extern (now in lisp.h).
8044 (QCmap): Declare extern.
8045 (make_lispy_position): When position is inside image hot-spot,
8046 use hot-spot element's id as posn element.
8047
8048 * lisp.h (IMAGEP): New macro to test for image object type.
8049 (Qimage): Declare extern.
8050
8051 * macfns.c (Qimage): Remove extern (now in lisp.h).
8052 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8053
8054 * macterm.c (Qface, Qmouse_face): Remove unused externs.
8055
8056 * w32fns.c (Qimage): Remove extern (now in lisp.h).
8057 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8058
8059 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
8060
8061 * w32term.c (Qface, Qmouse_face): Remove unused externs.
8062
8063 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
8064 pointer types.
8065 (Qrelative_width, Qalign_to): Remove unused variables.
8066 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
8067 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
8068 image maps.
d7107586 8069 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
8070 new dx and dy args.
8071 Remove buffer_only_p arg (always 0). Simplify code accordingly.
8072 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
8073 than row's ascent and height, to get sensible height on tall rows.
8074 (build_desired_tool_bar_string): Remove Qimage extern.
8075 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
8076 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
8077 image glyph is alone on the last line.
8078 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 8079 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 8080 (on_hot_spot_p): New function to check if position is inside an
d7107586 8081 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
8082 (find_hot_spot): New function to search for image hot-spot.
8083 (Flookup_image_map): New defun to search for image hot-spot.
8084 (define_frame_cursor1): New aux function to determine frame pointer.
8085 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8086 Handle `pointer' text property and :pointer image property to
8087 control frame pointer shape. Detect image hot-spots for pointer
8088 and help_echo properties. Use define_frame_cursor1.
8089 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 8090 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
8091 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
8092
8093 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
8094
8095 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
8096 (Qimage): Remove extern (now in lisp.h).
8097 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8098
8099 * xmenu.c (show_help_event): Remove unused code.
8100
8101 * xterm.c (Qface, Qmouse_face): Remove unused externs.
8102 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
8103 row's ascent and descent, to get a sensible height on tall rows.
8104
fc052137
LT
81052003-12-25 Luc Teirlinck <teirllm@auburn.edu>
8106
8107 * minibuf.c (Fcompleting_read): Undo previous change.
8108
a64387ee 81092003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
8110
8111 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
8112 Arguments GCPRO'ed in call to file name handler.
8113
56ffd194
TTN
81142003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
8115
8116 * termcap.c (tgetst1): Scan for "%pN"; if all
8117 N are continuous in [1,9], remove all "%pN".
8118
5202d23d
JD
81192003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8120
f26fab36
JD
8121 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
8122
5202d23d
JD
8123 * xfaces.c (lface_fully_specified_p): Take into account that
8124 MAC OS always have unspecified stipple.
8125
8babaa59
TTN
81262003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8127
8128 * tparam.c (tparam1): Add handling for `%pN', which
8129 means use param N for the next substitution.
8130
2d176448
TTN
81312003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8132
8133 * xfaces.c (Fcolor_gray_p): Fix omission bug:
8134 In case `frame' is nil, consult the selected frame.
8135 (Fcolor_supported_p): Likewise.
8136
adb0708c
LT
81372003-12-23 Luc Teirlinck <teirllm@auburn.edu>
8138
000eeb15
LT
8139 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
8140 Doc fixes.
0dc72b11
LT
8141
8142 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
8143 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
8144 (Fread_from_minibuffer): Delete code moved into read_minibuf.
8145 Doc fix.
8146 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
8147 read_minibuf.
8148 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 8149 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 8150
2e4d132b
KH
81512003-12-03 Kenichi Handa <handa@m17n.org>
8152
8153 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
8154 encoding sequence.
8155
3999c705
KH
81562003-12-01 Kenichi Handa <handa@m17n.org>
8157
8158 * composite.c (syms_of_composite): Don't make the compostion hash
8159 table week.
8160
d344ecbb
LT
81612003-11-30 Luc Teirlinck <teirllm@auburn.edu>
8162
8163 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
8164 * textprop.c (Fget_char_property_and_overlay): New function.
8165 (syms_of_textprop): Defsubr it.
8166
03d6484e
JD
81672003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8168
019b1f0e
JD
8169 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
8170 to compile on terminal configuration.
8171
03d6484e
JD
8172 * fileio.c (Fread_file_name): Check use_file_dialog also before
8173 calling Fx_file_dialog.
8174
8175 * fns.c: use_file_dialog: New variable.
8176 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
8177
442d3fd0
KS
81782003-11-29 Kim F. Storm <storm@cua.dk>
8179
8180 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
8181 (syms_of_msdos): Don't intern and staticpro them.
8182
0f6a07a8
KS
81832003-11-27 Kim F. Storm <storm@cua.dk>
8184
8185 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
8186 coordinates relative to glyph at posn. If glyph is an image,
8187 return that as object at posn. Callers changed.
8188 (mode_line_string, marginal_area_string): Calculate and return
8189 pixel coordinates relative to glyph. Callers changed.
8190
8191 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8192 (marginal_area_string): Fix prototypes.
8193 (window_box_left_offset, window_box_right_offset): Add prototypes.
8194
8195 * frame.h (get_specified_cursor_type, get_window_cursor_type):
8196 Remove prototypes.
8197
8198 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
8199
8200 * keyboard.c (make_lispy_position): Add x and y coordinates
8201 relative to the current glyph as 7th element of position.
8202 If glyph is an image, return it in the object element.
8203 (read_key_sequence): Skip checks for keymap property in cases
8204 where POSN_STRING is not a string (e.g. an image).
8205
8206 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
8207 (Vshow_text_cursor_in_void): New variable.
8208 (glyph_to_pixel_coords): Don't use negative hpos.
8209 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
8210 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 8211 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
8212 (calc_pixel_width_or_height): New aux function, implementing
8213 pixel based artihmetic for glyph widths and heights.
8214 (produce_stretch_glyph): Use calc_pixel_width_or_height for
8215 :width, :height, :align-to, and :ascent, thus allowing these to
8216 be specified in pixels as well as multiples of characters.
8217 Don't produce stretch glyphs with zero width or height.
8218 (get_specified_cursor_type): Declare static.
8219 (get_window_cursor_type): Declare static. Add glyph arg to be
8220 able to know when cursor is on an image; always substitute
8221 hollow-box cursor for filled-box cursor on images, to avoid
8222 negative images and flicker when blinking the cursor.
8223 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
8224 (note_mode_line_or_margin_highlight): Use non-text cursor rather
8225 than vertical scroll-bar cursor in display margins.
8226 (note_mouse_highlight): Use non-text cursor rather than text
8227 cursor in fringes and over images in the text area.
8228 Use non-text cursor when mouse pointer is outside editable text,
8229 i.e. in the void after end-of-line or end-of-buffer; this was
8230 already done for W32, but is now standard for all systems --
8231 user can toggle show-text-cursor-in-void to get old behaviour.
8232 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
8233 Vdisplay_pixels_per_inch.
8234
00498bfc
AS
82352003-11-25 Andreas Schwab <schwab@suse.de>
8236
8237 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
8238 EMACS_INT to not lose bits.
8239 (Ffillarray): Don't set bits beyond the size of a bool vector.
8240
edaa824d
KS
82412003-11-25 Kim F. Storm <storm@cua.dk>
8242
8243 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
8244 define this defun on systems that cannot use stderr as lvalue.
8245
74d6f539
GM
82462003-11-24 Gerd Moellmann <gerd@gnu.org>
8247
8248 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
8249 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
8250 ld's default is incompatible with unexec.
8251
6a1ff3ba
KS
82522003-11-23 Kim F. Storm <storm@cua.dk>
8253
63dc7c6b
KS
8254 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
8255 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
8256 (Fforce_window_update): New defun.
8257 (syms_of_window): Defsubr it.
8258 (Fset_window_margins, Fset_window_fringes): Doc fix.
8259
6a1ff3ba
KS
8260 * print.c (Fredirect_debugging_output): New defun.
8261 (syms_of_print): Defsubr it.
8262
aef109b7
LT
82632003-11-22 Luc Teirlinck <teirllm@auburn.edu>
8264
8265 * fns.c (Fset_char_table_parent): Doc fix.
8266
6a1ff3ba 82672003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
8268
8269 * dispnew.c (buffer_posn_from_coords): Return actual row/column
8270 for glyph clicked on, rather than (unused) pixel positions.
8271 (mode_line_string, marginal_area_string): Change X and Y args to
8272 pointers for returning actual row/column for glyph clicked on.
8273 Simplify and optimize loops.
8274
aef109b7
LT
8275 * dispextern.h (mode_line_string, marginal_area_string):
8276 Update prototypes.
63ccbe21
KS
8277
8278 * keyboard.c (make_lispy_position): New function for generating
8279 mouse click positions from frame and pixel coordinates.
8280 Enhanced to return buffer position and actual row/column for
8281 events outside the text area using updated mode_line_string and
8282 marginal_area_string functions.
8283 Return left-fringe and right-fringe clicks as such, rather than
8284 clicks in text area.
8285 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
8286 pixel_to_glyph_coords, as we never use the results.
8287 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
8288 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
8289 Eliminate unused code in WHEEL_EVENT handling.
8290 (make_lispy_movement): Use make_lispy_position.
8291
8292 * window.c (coordinates_in_window): Remove redundant tests.
8293 Fix returned X pixel value for left-margin.
8294
8295 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
8296 mode_line_string and marginal_area_string parameters.
8297
a64387ee 82982003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 8299
d7107586
SM
8300 * w32.c (struct the_group, getgrgid): Add.
8301 * mac.c (struct my_group, getgrgid): Add.
aef109b7 8302
3dbf3426
LT
83032003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8304
8305 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
8306
cae8ddbb 83072003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 8308
d7107586
SM
8309 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
8310 include in call to file name handler. Optionally translate numeric
8311 UID and GID to strings. Update docstring.
8312 (directory_files_internal): Add parameter ID-FORMAT.
8313 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
8314 include in call to file name handler and call to
8315 directory_files_internal. Update Docstring.
8316 (Fdirectory_files): Add dummy parameter in call to
8317 directory_files_internal.
8318 * lisp.h (Qinteger): Add.
8319 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
8320 (Ffile_attributes): Add parameter.
8321 * data.c (Qinteger): Export.
cae8ddbb 8322
2550b848
LT
83232003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8324
3dbf3426 8325 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 8326
88380018
KS
83272003-11-19 Kim F. Storm <storm@cua.dk>
8328
8329 * xdisp.c (init_iterator): Initialize it->start to position
8330 before reseating (in case start position is invisible).
8331 (init_to_row_start): Set it->start to row-start.
8332 (redisplay_window): Accept optional_new_start if start position
8333 is invisible (in which case IT_CHARPOS overshoots PT).
8334 (display_line): Setup row->start from it->start (rather than
8335 it->current which is wrong if first char on line is invisible).
8336 When done, reseat it->start to it->current (= start of next row).
8337 (expose_area): Fix exposure of text area when first char (e.g. TAB)
8338 is only partially visible.
8339
8340 * dispextern.h (struct it): New member start.
8341
854c1a59
SM
83422003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8343
455316e2
SM
8344 * alloc.c (make_float, Fcons): Clear the markbit at init time.
8345 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
8346 of block_index outside of the macro call.
8347 (Fgarbage_collect): Remove null code.
8348
8349 * m/amdx86-64.h: Don't redefine XPNTR.
8350
854c1a59
SM
8351 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
8352 of VALMASK.
8353
8354 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
8355 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
8356 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
8357
8358 * lisp.h (VALMASK): Only define for non-union type.
8359 (MARKBIT): Remove.
8360 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
8361 (XTYPE): Define unconditionally.
8362 (XSETTYPE): Remove one more remnant.
8363 (EQ): Define differently for the union and non-union cases.
8364 (INTMASK): New bit mask.
8365 (struct Lisp_Marker): Move down to prepare for upcoming patch.
8366 (GC_EQ): Delegate to EQ.
8367
8368 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
8369
a0c6ef2d
JD
83702003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8371
8372 * xterm.c (x_window_to_scroll_bar): Move check of display to
8373 where window_id is compared.
8374
859492c4
KS
83752003-11-17 Kim F. Storm <storm@cua.dk>
8376
8377 * dispextern.h (struct it): New member first_vpos.
8378
8379 * xdisp.c (start_display): Set it->first_vpos.
8380 (try_window_id): Use first_vpos to start display in first _text_
8381 line if no reusable lines at start of window with header line.
8382
810f2256
JD
83832003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8384
7c402969 8385 * w32fns.c (XPutPixel):
854c1a59
SM
8386 * w32bdf.c (w32_init_bdf_font):
8387 * sunfns.c (sel_read):
8388 * process.c (Fmake_network_process):
8389 * frame.c (store_frame_param):
8390 * fontset.c (Fset_fontset_font):
8391 * emacs.c (shut_down_emacs):
a64387ee 8392 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 8393
a32e9bfd
JD
8394 * config.in: Regenerate.
8395
810f2256
JD
8396 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8397 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8398 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
8399 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
8400 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
8401
8402 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
8403
8404 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
8405 (XTmouse_position, handle_one_xevent): Pass Display* to
8406 x_window_to_scroll_bar.
8407 (x_window_to_scroll_bar): Take a Display* argument.
8408 Check that display for frame is equal to Display* argument.
854c1a59 8409 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
8410 x_display_info_for_display instead. Use Display in xev instead
8411 of GDK_DISPLAY.
8412 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 8413 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
8414 (x_connection_closed): Call xg_display_close for GTK.
8415 (x_term_init): Call xg_display_open for additional displays.
8416 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
8417 for GTK.
8418
8419 * xmenu.c (single_menu_item, mouse_position_for_popup)
8420 (x_activate_menubar): Formatting adjustments.
8421
8422 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
8423 adjustments.
8424
8425 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
8426 (xg_display_close, xg_create_default_cursor)
8427 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
8428 handling.
854c1a59
SM
8429 (xg_left_ptr_cursor): Remove.
8430 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
8431 cursor here.
8432 (xg_win_to_widget): Take Display* argument, call
8433 gdk_xid_table_lookup_for_display.
8434 (xg_create_frame_widgets, xg_get_file_name, create_menus)
8435 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
8436 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
8437 in FRAME_X_DISPLAY_INFO.
8438 (xg_get_scroll_id_for_window): Take Display* argument.
8439 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 8440 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 8441
78819ebb
KS
8442 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
8443 Display* argument.
8444 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 8445
0b03cc78
JD
84462003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8447
8448 * xterm.c (x_detect_focus_change): Do not change focus frame for
8449 Enter/LeaveNotify if the current focus frame has explicit focus.
8450
77e688fa
KS
84512003-11-14 Kim F. Storm <storm@cua.dk>
8452
8453 * dispnew.c (update_text_area): Fix redisplay error when hscroll
8454 is active and first glyph is only partially visible.
854c1a59 8455
dd429b03
KH
84562003-11-13 Kenichi Handa <handa@m17n.org>
8457
8458 * xdisp.c (select_frame_for_redisplay): New function.
8459 (redisplay_internal): Record also selected_frame for
8460 unwind_redisplay. Call select_frame_for_redisplay before
8461 redrawing each frame.
8462 (unwind_redisplay): Argument changed to a cons.
8463
6d9266f4
LT
84642003-11-12 Luc Teirlinck <teirllm@auburn.edu>
8465
8466 * fns.c (Fstring_to_multibyte): Doc fix.
8467
80060eb3
KH
84682003-11-11 Kenichi Handa <handa@m17n.org>
8469
8470 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8471
74305183
JD
84722003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8473
8474 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
8475 program specified positions.
8476
cfda993e
JD
84772003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8478
8479 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
8480
df211069
KH
84812003-11-08 Kenichi Handa <handa@m17n.org>
8482
8483 * Makefile.in (lisp): Add kannada.el.
8484 (shortlisp): Likewise.
8485
4307d534
KH
84862003-11-07 Kenichi Handa <handa@m17n.org>
8487
854c1a59
SM
8488 * coding.c (coding_allocate_composition_data):
8489 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
8490 (coding_restore_composition): Detect invalid composition data.
8491 Give Fstring and Fvector a Lispy integer, not C int.
8492
854c1a59
SM
84932003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
8494
8495 * floatfns.c (Flogb): Don't use VALMASK.
8496
8497 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
8498 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
8499
8500 * lisp.h (XINT): Move the cast to clarify what is going on.
8501 (GCTYPEMASK, XSETTYPE): Remove.
8502 (XGCTYPE): Make it an alias of XTYPE.
8503
d04103a1
JD
85042003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8505
8506 * xterm.c (x_term_init): Fix formatting.
8507
da18b5ac
JD
85082003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8509
78819ebb
KS
8510 * gtkutil.h (xg_have_tear_offs): Declare.
8511 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
8512
8513 * gtkutil.c: Remove variable xg_did_tearoff.
8514 (xg_have_tear_offs): New function.
8515 (tearoff_remove): Just decrease xg_detached_menus.
8516 (tearoff_activate): Increase xg_detached_menus and call
8517 tearoff_remove when tearoff is removed.
854c1a59 8518 (xg_keep_popup): Remove function.
da18b5ac
JD
8519 (create_menus): Give add_tearoff_p as argument to recursive
8520 call to create_menus.
8521 (xg_create_widget): Use variables instead of multiple
8522 strcmp. Tell create_menus to create tear off only for
8523 menu bar menus.
8524 (xg_update_menubar): Change title for a detached menu also.
8525 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
8526 of deep_p.
8527 (xg_initialize): Initialize xg_detached_menus, remove
8528 initialization of xg_did_tearoff.
8529
8530 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
8531 xg_have_tear_offs returns non-zero.
8532 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
8533 call to xg_keep_popup.
8534
64d4923e
AC
85352003-11-01 Andrew Choi <akochoi@shaw.ca>
8536
8537 * macterm.c (XTread_socket): Handle menubar selection and grow
8538 window only for mouseDown events.
854c1a59 8539
6cc8bc07
JD
85402003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8541
8542 * xterm.c (x_term_init): For GTK part, increase x_initialized
8543 to check for more than one display. Use error instead of return 0.
8544
043131c4
AC
85452003-10-31 Andrew Choi <akochoi@shaw.ca>
8546
854c1a59 8547 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
8548 (copy_dysymtab): Call it.
8549
bdda99a1
LT
85502003-10-31 Luc Teirlinck <teirllm@auburn.edu>
8551
8552 * eval.c (Fdefvaralias): Doc fix.
8553
800f42ff 85542003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
8555
8556 * data.c (Fsetplist): Doc fix.
8557
ef35b389
LK
85582003-10-14 Lute Kamstra <lute@gnu.org>
8559
8560 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 8561
ef35b389 85622003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 8563
07107abc
KS
8564 * window.c (Fset_window_margins): Simplify arg checking.
8565
f7005886
RS
85662003-10-13 Richard M. Stallman <rms@gnu.org>
8567
8568 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
8569 (print_partial_compiled_pattern): Replace assert with a printout.
8570 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
8571
8572 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
8573
8574 * window.c (Fset_window_margins): Allow only integers as args.
8575 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
8576 Doc fixes.
8577
9c0c2af5
LK
85782003-10-13 Lute Kamstra <lute@gnu.org>
8579
8580 * window.c (Fset_window_fringes): Elaborate docstring.
8581
3f080e4e
AC
85822003-10-12 Andrew Choi <akochoi@shaw.ca>
8583
854c1a59 8584 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 8585
3f080e4e
AC
8586 * s/darwin.h (GC_MARK_STACK): Define.
8587
0aa513ed
JD
85882003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8589
8590 * window.c (shrink_windows): New function.
8591 (size_window): Call shrink_windows to calculate window sizes when
8592 shrinking frame with more than one window.
8593
6aa8858a
KS
85942003-10-12 Kim F. Storm <storm@cua.dk>
8595
8596 * xdisp.c (compute_fringe_widths): Doc fix.
8597
c2164d91
KH
85982003-10-08 Kenichi Handa <handa@m17n.org>
8599
854c1a59 8600 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 8601
f82ac129
KH
86022003-10-07 Kenichi Handa <handa@m17n.org>
8603
8604 * coding.c (Qcoding_system_define_form): New variable.
8605 (syms_of_coding): Intern and staticpro it.
8606 (Fcheck_coding_system): Try to autoload the definition of
8607 CODING-SYSTEM.
8608
9296c947
LT
86092003-10-05 Luc Teirlinck <teirllm@auburn.edu>
8610
8611 * fns.c (Frequire): Doc fix.
8612
c1f0671a
JD
86132003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8614
3d8c3826
JD
8615 * xfns.c (Fx_send_client_event): New function as a base for
8616 manipulating extended window manager hints.
6dc15d98 8617 (Fx_send_client_event): Remove unused variable s.
3d8c3826 8618
068ae0fd
JD
8619 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
8620 that function is removed.
8621
8622 * xterm.c (x_set_offset): Use move_offset_left/top instead of
8623 x/y_pixels_outer_diff.
8624 (x_check_expected_move): Calculate move_offset_left/top.
8625
8626 * xterm.h (struct x_output): New members: move_offset_top/left.
8627
854c1a59 8628 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
8629 call x_set_offset directly.
8630
8631 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
8632
96f09305
JD
8633 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
8634
8635 * xterm.c (x_delete_display): Free font names and font_encoder
8636 in dpyinfo->font_table.
8637
854c1a59
SM
8638 * xfns.c (Fx_close_connection): Only call XFreeFont here.
8639 Move xfree of font names to x_delete_display.
96f09305 8640
c1f0671a
JD
8641 * xterm.h (struct x_display_info): New member, wm_type.
8642 (struct x_output): New members, expected_top/left and
8643 check_expected_move.
8644
8645 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
8646 is received.
854c1a59
SM
8647 (handle_one_xevent): Rename x_check_expected_move from
8648 x_check_fullscreen_move.
c1f0671a
JD
8649 (x_set_offset): Only add WM decoration sizes to modified_top/left
8650 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 8651 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
8652 Removed fullscreen specific code. Use check_expected_move,
8653 expected_left/top instead. Also, set wm_type.
8654 (x_term_init): Initialize wm_type to unknown.
8655
8656 * frame.c (x_fullscreen_move): Remove addition of WM decoration
8657 sizes to move_x/y.
8658
be2fdba9
KH
86592003-10-03 Kenichi Handa <handa@m17n.org>
8660
8661 * macterm.c (x_load_font): Clear all members of FONTP before start
8662 filling them.
8663
86642003-10-02 Kenichi Handa <handa@m17n.org>
8665
8666 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
8667 before calling find_ccl_program_func. Call find_ccl_program_func
8668 only when fontp->font_encoder is not NULL.
8669
8670 * xterm.c (x_load_font): Clear all members of FONTP before start
8671 filling them.
8672
26a6e439
JPW
86732003-10-03 John Paul Wallington <jpw@gnu.org>
8674
8675 * keymap.c (map_keymap): Don't abort when binding is a vector.
8676
0d4c2dc2
JR
86772003-10-02 Jason Rumney <jasonr@gnu.org>
8678
854c1a59
SM
8679 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
8680 Sync dependencies with Makefile.in.
a63cf46f
JR
8681 (alloca.o): Remove.
8682
0d4c2dc2
JR
8683 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
8684 filling them.
8685
8686 * w32bdf.c (w32_load_bdf_font): Likewise.
8687
ab8f7d5c
RS
86882003-09-30 Richard M. Stallman <rms@gnu.org>
8689
8690 * term.c (set_tty_color_mode): Calculate current_mode_spec
8691 regardless of value of VAL.
8692
854c1a59 8693 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
8694 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
8695 Handle over_used when splitting UNDER.
8696
a64387ee 86972003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
8698
8699 * regex.c (regex_compile): Free the stack when returning from function.
8700
3413f972
KH
87012003-09-28 Kenichi Handa <handa@m17n.org>
8702
8703 * fontset.c (Finternal_char_font): Change return value to
8704 cons (FONT-NAME . GLYPH-CODE).
8705
a6eeaa81 87062003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
8707
8708 * term.c (tty_setup_colors): Treat any negative argument as -1.
8709
f98ddc99
KH
87102003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
8711
8712 * process.c (send_process): Delete unused temp_buf.
8713
66c8f1a8
DL
87142003-09-26 Dave Love <fx@gnu.org>
8715
8716 * xterm.c (x_bitmap_mask): Declare.
8717
ca716c26
DL
87182003-09-25 Dave Love <fx@gnu.org>
8719
8720 * Makefile.in (fns.o): Depend on md5.h.
8721
fbe57420
KS
87222003-09-25 Kim F. Storm <storm@cua.dk>
8723
8724 * window.c (set_window_buffer): Fix redisplay problems when
8725 switching between buffers with different display margin widths.
8726
ef6ae4ff
KS
87272003-09-23 Kim F. Storm <storm@cua.dk>
8728
8729 * process.c (set_socket_option): Fix :bindtodevice option.
8730 (Fset_network_process_option): Update process contact list when
8731 setting option succeeds.
8732 (Fmake_network_process): Doc fix.
8733
68e03c1c
DL
87342003-09-23 Dave Love <fx@gnu.org>
8735
7146d1c1 8736 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 8737
a6eeaa81 87382003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
8739
8740 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
8741 color mode is an integer number (it could be -1).
8742
8fe7d8c8
RS
87432003-09-22 Richard M. Stallman <rms@gnu.org>
8744
8745 * intervals.c (graft_intervals_into_buffer): Correct the main loop
8746 in the case where OVER is longer than UNDER.
8747
2f71b5ea
MY
87482003-09-22 Masatake YAMATO <jet@gyve.org>
8749
7146d1c1 8750 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 8751 `vertical_type'.
7146d1c1 8752
0c4da023
KS
87532003-09-21 Kim F. Storm <storm@cua.dk>
8754
8755 * frame.c (Vdefault_frame_scroll_bars): New variable.
8756 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
8757 (syms_of_frame): DEFVAR_LISP it, and initialize according to
8758 window-system default scroll bar position.
8759
b648413b
KS
8760 * window.c (Fwindow_scroll_bars): Doc fix.
8761
8f5b9e34
JD
87622003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8763
854c1a59 8764 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 8765
b0f23edf
RS
87662003-09-19 Richard M. Stallman <rms@gnu.org>
8767
8768 * atimer.h: Don't include lisp.h.
8769 (P_): Define it here (as well as elsewhere).
8770
8771 * print.c (Fprin1_to_string): Move the PRINTPREPARE
8772 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
8773
8774 * data.c (Fvariable_binding_locus): New function.
8775 (syms_of_data): defsubr it.
8776 (Flocal_variable_p): Delete duplicate call to indirect_variable.
8777
e1283999
DL
87782003-09-18 Dave Love <fx@gnu.org>
8779
ad5f3636
DL
8780 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
8781
e1283999
DL
8782 * process.c (Fnetwork_interface_info): Fix type error.
8783 (Fnetwork_interface_list): Doc fix.
8784 (read_process_output, read_process_output): Delete unused var.
8785
b8c7fd71
KS
87862003-09-17 Kim F. Storm <storm@cua.dk>
8787
8788 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
8789 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
8790 (Fnetwork_interface_info): Check that ifreq struct has required
8791 fields before accessing them; this requires that those fields are
8792 defined as macros, which may be too restrictive on some platforms,
8793 but it is better than failing on other platforms.
8794 (syms_of_process): Only defsubr above fns when included.
8795
11e0a411
DL
87962003-09-17 Dave Love <fx@gnu.org>
8797
8798 * unexalpha.c: Don't include varargs.h.
8799
e9c50801
KS
88002003-09-17 Kim F. Storm <storm@cua.dk>
8801
8802 * process.c (Fset_process_sentinel): Add sentinel to childp plist
8803 for network process.
8804 (socket_options): Add `:' prefix to option names. Add optbit field.
8805 (set_socket_option): Remove no_error arg and special handling of s < 0.
8806 Return 1<<optbit for known option, 0 for unknown.
8807 Do not interpret 0 as false for boolean option (only nil).
8808 Pass failed option and value to report_file_error.
7146d1c1 8809 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
8810 (Fset_network_process_option): New function to set just one option.
8811 (Fmake_network_process): Allow :coding arg to be a cons.
8812 Allow :server arg to be an integer specifying backlog size.
8813 Remove :options arg, and allow options to be specified directly
8814 as :KEY, VALUE pairs. Parse these options before binding socket.
8815 As before, :reuseaddr t is default for a server process, but this
8816 can now be disabled by specifying :reuseaddr nil.
8817 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
8818 (init_process): Availability of network options is now checked with
8819 simpler syntax (featurep 'make-network-process :OPTION); use loop to
8820 setup features.
8821 (syms_of_process): Fix defsubr's for the replaced functions.
8822
a0fc3644
DL
88232003-09-16 Dave Love <fx@gnu.org>
8824
8825 * Makefile.in: Depend on coding.h.
8826
6df2a645
KS
88272003-09-14 Kim F. Storm <storm@cua.dk>
8828
8829 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
8830 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
8831 (syms_of_process): Defsubr them.
8832
8833 * config.in: Regenerate.
7146d1c1
SM
8834
88352003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8836
8837 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
8838 * m/news-r6.h (XUNMARK): Remove.
8839 * m/mips.h (XUNMARK): Remove.
8840 * m/mips-siemens.h (XUNMARK): Remove.
8841 * m/iris4d.h (XUNMARK): Remove.
8842 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
8843
0930c1a1
SM
88442003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8845
31003b9e
SM
8846 * lisp.h (VALBITS): Don't remove 1 for the markbit.
8847 (union Lisp_Object): Use unsigned int for types. Remove markbit.
8848 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
8849 (XTYPE): Use unsigned right-shift.
8850 (XMARKBIT, XMARK, XUNMARK): Remove.
8851
0930c1a1
SM
8852 * alloc.c (init_intervals, init_symbol, init_marker):
8853 Don't preallocate anything.
8854 (Fgarbage_collect, mark_object): Ignore the markbit.
8855
8856 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
8857
19bb0fcd 88582003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
8859
8860 * xdisp.c (pint2hrstr): New function.
8861 (decode_mode_spec): Add `%i' and `%I' specs.
8862 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
8863 for `mode-line-format'.
8864
03bb6a06
AS
88652003-09-07 Andreas Schwab <schwab@suse.de>
8866
8867 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
8868 avoid warning.
8869
a6eeaa81 88702003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 8871
0930c1a1 8872 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 8873
ed159bbf
KS
88742003-09-03 Kim F. Storm <storm@cua.dk>
8875
8876 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
8877 change (superseded by 2002-08-30 change); the default blink-off
8878 cursor is now again "no cursor".
8879
fe64a394
JR
88802003-09-01 Jason Rumney <jasonr@gnu.org>
8881
8882 * makefile.w32-in (alloca.o): Remove.
8883 (coding.o): Depend on intervals.h
8884 (emacs.o, bytecode.o): Depend on window.h
8885
c0175e24
DL
88862003-09-01 Dave Love <fx@gnu.org>
8887
8888 * Makefile.in (alloca.o): Remove commands.
8889 (coding.o): Depend on intervals.h composite.h window.h.
8890 (emacs.o): Depend on window.h keyboard.h keymap.h.
8891 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
8892 (bytecode.o): Depend on window.h.
8893
a24d4cb2
JR
88942003-08-31 Jason Rumney <jasonr@gnu.org>
8895
4bc2315e
JR
8896 * w32term.c (w32_per_char_metric): Allow cached metrics to be
8897 returned even when font_type is unknown.
8898
a24d4cb2
JR
8899 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
8900
9d35adc7
JD
89012003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8902
8903 * xterm.c (x_term_init): Initialize new fields in x_display_info.
8904
8905 * xterm.h (struct x_display_info): Add red/green/blue_bits and
8906 *_offset.
8907
8908 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
8909 calculate pixel value.
8910
6f68b035
GM
89112003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
8912
0930c1a1
SM
8913 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
8914 Don't tell redisplay display is accurate when it's actually been
8915 paused for pending input.
6f68b035 8916
4828b4d7
RS
89172003-08-29 Richard M. Stallman <rms@gnu.org>
8918
8919 * dispnew.c (adjust_glyph_matrix): Call window_box
8920 whenever W is nonzero.
8921
8922 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8923 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 8924 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
8925 Use indirect_variable to trace thru variable aliases.
8926
8927 * config.in: Updated.
8928
8929 * callint.c (Fcall_interactively): Save and restore
8930 Vthis_command, Vthis_original_command, real_this_command,
8931 and current_kboard->Vlast_command.
8932
8933 * abbrev.c (Fexpand_abbrev): Insert before deleting.
8934
e019878d
GM
89352003-08-29 Gerd Moellmann <gerd@gnu.org>
8936
8937 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
8938
85478bc6
KH
89392003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
8940
0930c1a1 8941 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
8942 (decode_coding_sjis_big5): Likewise.
8943
07ce82d3
JR
89442003-08-27 Jason Rumney <jasonr@gnu.org>
8945
d3703de3
JR
8946 * w32.c (sys_pipe): Protect against file descriptor overflow.
8947
ee4a01d1
JR
8948 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
8949
07ce82d3
JR
8950 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
8951
a64387ee 89522003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
8953
8954 * xfns.c (Vgtk_version_string): New variable.
8955 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
8956
a6eeaa81 89572003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 8958
0930c1a1 8959 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 8960
5459e42a
EZ
8961 * Makefile.in (msdos.o): Depend on intervals.h.
8962
0930c1a1 8963 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 8964
231d6cfb
JD
89652003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8966
8967 * xterm.h (struct x_display_info): New fields: client_leader_window
8968 and Xatom_wm_client_leader.
8969
8970 * xterm.c (x_initialize): Move call to x_session_initialize to ...
8971 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
8972
8973 * xsmfns.c (create_client_leader_window): New function.
8974 (x_session_initialize): Call create_client_leader_window, take
8975 dpyinfo as argument.
8976
8977 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
8978
8979 * Makefile.in (xsmfns.o): Add more depenedencies.
8980
afa88464
DL
89812003-08-21 Dave Love <fx@gnu.org>
8982
8983 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
8984
f730033e
KH
89852003-08-21 Kenichi Handa <handa@m17n.org>
8986
8987 * term.c (term_init): Fix previous change; don't rely on the
8988 length of `buffer' if TERMINFO is defined.
8989
6dca786c
DL
89902003-08-20 Dave Love <fx@gnu.org>
8991
8992 * atimer.h: Include lisp.h.
8993
8994 * lisp.h (EMACS_LISP_H): New.
8995 (popup_activated_flag): Don't declare.
8996
8997 * alloca.c: Some merging with gnulib. Change logic and doc
8998 concerning (x)malloc/(x)free -- no longer Emacs-specific.
8999 [DO_BLOCK_INPUT]: Don't include lisp.h.
9000 (xmalloc, xfree): Declare.
9001 (malloc): Don't declare.
9002
0930c1a1 9003 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
9004 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
9005 atimer.h, blockinput.h.
9006
9007 * alloc.c (lisp_align_malloc): Change type of `aligned'.
9008
78819ebb 9009 * alloca.s: Remove.
6dca786c 9010
3a06a6d9
RS
90112003-08-19 Gerd Moellmann <gerd@gnu.org>
9012
9013 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
9014 use -lncurses.
9015
9016 * term.c (term_init): Use a buffer of size 4096 for tgetent since
9017 FreeBSD returns something longer than 2044. Abort if the end of
9018 the buffer is overwritten.
9019
27eeee55
MB
90202003-08-19 Miles Bader <miles@gnu.org>
9021
9022 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
9023
2f297815
GM
90242003-08-19 Gerd Moellmann <gerd@gnu.org>
9025
f4446bbf
GM
9026 * alloc.c (lisp_align_malloc): Check for memory full when
9027 allocating ablocks, which also avoids freeing a pointer into an
9028 ablocks structure.
9029
9030 * puresize.h (BASE_PURESIZE): Increase to 1100000.
9031
0930c1a1 9032 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 9033
0e7d7aae
RS
90342003-08-16 Richard M. Stallman <rms@gnu.org>
9035
9036 * editfns.c (Fencode_time): Doc fix.
9037
90382003-08-16 David Ponce <david@dponce.com>
9039
9040 * fileio.c (Fwrite_region): Fix conditional expression to issue
9041 the right message.
9042
b6189c3b 90432003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
9044
9045 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 9046 Set default value to 1.
0e7d7aae 9047
5d551295
KH
90482003-08-15 Kenichi Handa <handa@m17n.org>
9049
9050 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
9051 what autoscaled.
9052 (best_matching_font): Once we find a better scalable font, set
9053 non_scalable_has_exact_height_p to 1.
9054 (try_font_list): Call try_alternative_families to try any family
9055 with the given registry.
9056
1661e56b
AS
90572003-08-09 Andreas Schwab <schwab@suse.de>
9058
f29181dc
AS
9059 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
9060
1661e56b
AS
9061 * print.c (print_string): Fix printing of multibyte string with
9062 nontrivial printcharfun.
9063
465aa50a
JD
90642003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9065
9066 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
9067
9068 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
9069
e430e5ba
KH
90702003-07-31 Kenichi Handa <handa@m17n.org>
9071
9072 * process.c (read_process_output): Return the actually read bytes
9073 instead of the result of decoding.
9074
97e7188e
KH
90752003-07-31 Kenichi Handa <handa@m17n.org>
9076
9077 * xterm.h (struct x_bitmap_record): New member have_mask.
9078
9079 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
9080 to 0.
9081 (x_create_bitmap_from_file): Likewise.
9082 (x_destroy_bitmap): Check have_mask member before freeing a mask.
9083 (x_destroy_all_bitmaps): Likewise.
9084 (x_create_bitmap_mask): Set have_mask member to 1.
9085
b53094d6
RS
90862003-07-30 Richard M. Stallman <rms@gnu.org>
9087
9088 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
9089
631f2082
JD
90902003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9091
9092 * gtkutil.c (xg_mark_data): Update calls to mark_object.
9093
c855f2ca
RS
90942003-07-29 Richard M. Stallman <rms@gnu.org>
9095
9096 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
9097 Conditionalize XIM code on HAVE_XIM.
9098
9099 * fns.c (Fclear_string): New function.
9100 (syms_of_fns): defsubr it.
9101
b6189c3b 91022003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 9103
0930c1a1 9104 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 9105
29ea8ae9
SM
91062003-07-22 Stefan Monnier <monnier@cs.yale.edu>
9107
9108 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
9109
9110 * buffer.c (delete_all_overlays): New function.
9111 * buffer.h (delete_all_overlays): Declare.
9112 * coding.c (run_pre_post_conversion_on_str):
9113 * print.c (temp_output_buffer_setup):
9114 * fileio.c (Finsert_file_contents):
9115 * minibuf.c (get_minibuffer): Use it.
9116
1dd7ccf2
AC
91172003-07-22 Andrew Choi <akochoi@shaw.ca>
9118
9119 * unexmacosx.c (unexec_regions_sort_compare):
9120 (unexec_regions_merge): New functions. Sort and merge unexec
9121 regions before dumping them.
9122
f57bd967
DL
91232003-07-22 Dave Love <fx@gnu.org>
9124
9125 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
9126
7cdee936
SM
91272003-07-21 Stefan Monnier <monnier@cs.yale.edu>
9128
9129 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
9130 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
9131 MARKBIT as the gcmarkbit for strings.
9132
e50886d3
RS
91332003-07-21 Richard M. Stallman <rms@gnu.org>
9134
9135 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
9136
29ea8ae9 9137 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
9138 (syms_of_fns): Corresponding change.
9139
9140 * alloc.c (syms_of_alloc): Doc fixes.
9141
91422003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
9143
9144 * s/netbsd.h: Use -Wl syntax.
9145
fdc39b59
RS
91462003-07-17 Richard M. Stallman <rms@gnu.org>
9147
9148 * xterm.c (xim_initialize): Redo 6/24 change.
9149
9c53385f
SM
91502003-07-15 Stefan Monnier <monnier@cs.yale.edu>
9151
9152 * buffer.c (copy_overlays): Use EMACS_INT for positions.
9153 (Fswitch_to_buffer): Don't signal an error when switching to the same
9154 buffer in a dedicated window.
9155
9156 * alloc.c: Use bitmaps for cons, as was done for floats.
9157 (init_float, init_cons): Let the normal code allocate the first block.
9158 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
9159 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
9160 New macros.
9161 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
9162 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
9163 (live_cons_p): Check the pointer is not past the `conses' array.
9164 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
9165 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
9166 (survives_gc_p): Use CONS_MARKED_P and simplify.
9167 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
9168
dde13196
PE
91692003-07-13 Paul Eggert <eggert@twinsun.com>
9170
9171 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
9172 puts it into BSS instead, at least on Solaris 8 and 9.
9173 This is a valid optimization, and it may occur on other platforms,
9174 so Emacs should not assume that initializing a static variable to
9175 zero puts it into data.
9176 * alloc.c (pure, staticvec):
9177 Initialize these arrays to nonzero, so that they're not
9178 put into BSS by that optimization.
9179
a801bc34
SM
91802003-07-13 Stefan Monnier <monnier@cs.yale.edu>
9181
9182 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
9183 (lisp_align_malloc): Use posix_memalign is available.
9184 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
9185 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
9186 for consistency. Update users.
9187
0c8b2afa
RS
91882003-07-13 Richard M. Stallman <rms@gnu.org>
9189
9190 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
9191
668c2ab0
JB
91922003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
9193
9194 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
9195 and use the Gtk+ function gtk_window_icon_from_file if available.
9196
9197 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
9198 handle mask of bitmaps.
9199 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
9200 mask property.
9201 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
9202
9203 * xterm.h (xg_set_icon): New function.
9204
800bebe3
RS
92052003-07-12 Paul Eggert <eggert@twinsun.com>
9206
9207 * unexelf.c (unexec): Consider a section to precede the .bss
9208 section if its addresses overlap that of .bss.
9209
69e38995
RS
92102003-07-12 Richard M. Stallman <rms@gnu.org>
9211
9212 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
9213
9214 * config.in (HAVE_CRTIN): Add #undef.
9215 (INLINE): Really inline only if OPTIMIZE is defined.
9216
9217 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
9218 END_FILES_1.
9219 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 9220 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
9221
9222 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
9223 (TERMINFO): Define.
9224 (LIBS_TERMCAP): Define.
9225 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
9226
9227 * xfns.c: Include libpng/png.h instead of png.h.
9228
f1d0c238
AS
92292003-07-11 Andreas Schwab <schwab@suse.de>
9230
9231 * buffer.c (modify_overlay): Update prototype.
9232 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
9233 Likewise.
9234
5f6bf5fe
SM
92352003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9236
9237 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
9238 (struct interval): Move to intervals.h.
9239 (struct Lisp_Marker): Use EMACS_INT for position info.
9240 (forward_point): Remove prototype of defunct function.
9241 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
9242 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
9243 (syms_of_textprop, set_text_properties): Remove prototypes that are
9244 already in intervals.h.
9245
9246 * intervals.h (struct interval): Move from lisp.h.
9247 Use EMACS_INT for position and size info.
9248
9249 * coding.c: Include intervals.h for Fset_text_properties.
9250
9251 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9252 position and length information.
9253
2765b457
SM
92542003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9255
9256 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9257 position and length information.
9258
2410d73a
SM
92592003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9260
9261 Change overlays_after and overlays_before so the overlays themselves
9262 are linked into lists, rather than using cons cells. After all each
9263 Lisp_Misc already occupies 5 words, so we can add a `next' field to
9264 Lisp_Overlay for free and save up one cons cell per overlay (not
9265 to mention one indirection when traversing the list of overlay).
9266
9267 * lisp.h (struct Lisp_Overlay): New field `next'.
9268
9269 * buffer.h (struct buffer): Change overlays_before and overlays_after
9270 from Lisp lists of overlays to pointers to overlays.
9271
9272 * buffer.c (overlay_strings, recenter_overlay_lists):
9273 Fix typo in eassert in last commit.
9274 (unchain_overlay): New function.
9275 (add_overlay_mod_hooklist): Use AREF.
9276 (copy_overlays, reset_buffer, overlays_at, overlays_in)
9277 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
9278 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
9279 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
9280 (report_overlay_modification, evaporate_overlays, init_buffer_once):
9281 Adjust to new type of overlays_(before|after).
9282
9283 * alloc.c (mark_object): Mark the new `next' field of overlays.
9284 (mark_buffer): Manually mark the overlays_(after|before) fields.
9285
9286 * coding.c (run_pre_post_conversion_on_str):
9287 * editfns.c (overlays_around):
9288 * xdisp.c (load_overlay_strings):
9289 * fileio.c (Finsert_file_contents):
9290 * indent.c (current_column):
9291 * insdel.c (signal_before_change, signal_after_change):
9292 * intervals.c (set_point_both):
9293 * print.c (temp_output_buffer_setup): Use new type for
9294 overlays_(before|after).
9295
04812929
SM
92962003-07-08 Stefan Monnier <monnier@cs.yale.edu>
9297
9298 * buffer.c (report_overlay_modification): Don't run hooks while
9299 traversing the list of overlays.
9300
9301 * buffer.h (struct buffer): Use an int for overlay_center.
9302 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9303 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9304
9305 * buffer.c (reset_buffer, recenter_overlay_lists)
9306 (adjust_overlays_for_insert, adjust_overlays_for_delete)
9307 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
9308 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
9309 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9310 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9311
9312 * xdisp.c (fast_find_position): Remove unused var.
9313
9314 * cmds.c (Qexpand_abbrev): New sym.
9315 (syms_of_cmds): Initialize it.
9316 (internal_self_insert): Use it to call expand-abbrev.
9317
2e7ecf15
KS
93182003-07-09 Kim F. Storm <storm@cua.dk>
9319
f9711de4 9320 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 9321 was configured with --without-xim.
42f81f64 9322 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 9323
c6de56a0
RS
93242003-07-07 Richard M. Stallman <rms@gnu.org>
9325
9326 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
9327
9328 * alloc.c (Fgarbage_collect): Doc fix.
9329
b6189c3b 93302003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
9331
9332 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
9333
bfe1a3f7
SM
93342003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9335
04812929
SM
9336 * minibuf.c (read_minibuf): UNGCPRO before returning.
9337 (Ftry_completion, Fall_completions): Doc fix.
9338
bfe1a3f7
SM
9339 * alloc.c (live_float_p): Check that p is not past the `floats' array,
9340 now that `floats' is not the last element of the struct any more.
9341
ee79d1aa
JR
93422003-07-06 Jason Rumney <jasonr@gnu.org>
9343
9344 * w32term.h (ClipboardSequence_Proc): New type.
9345
9346 * w32fns.c (clipboard_sequence_fn): New variable.
9347 (globals_of_w32fns): Initialize it.
9348
9349 * w32select.c (last_clipboard_sequence_number): New variable.
9350 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
9351 number if possible.
9352
49723c04
SM
93532003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9354
4698665f
SM
9355 * m/amdx86-64.h (MARKBIT):
9356 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
9357 MARKBIT and ARRAY_MARK_FLAG any more.
9358
9359 * m/hp800.h (XSETMARKBIT):
9360 * m/sr2k.h (XSETMARKBIT):
9361 * lisp.h (XSETMARKBIT): Remove unused macro.
9362
49723c04
SM
9363 * lisp.h (mark_object): Change prototype.
9364
9365 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
9366 (last_marked): Change accordingly.
9367 (mark_interval, mark_maybe_object, mark_maybe_pointer)
9368 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
9369 (mark_buffer): Update calls to mark_object.
9370
9371 * bytecode.c (mark_byte_stack):
9372 * fns.c (sweep_weak_table):
9373 * keyboard.c (mark_kboards): Update calls to mark_object.
9374
1d660eca
JR
93752003-07-06 Jason Rumney <jasonr@gnu.org>
9376
9377 * alloc.c (struct ablock): Only include padding when there is some.
9378
618b5ae4
SM
93792003-07-04 Stefan Monnier <monnier@cs.yale.edu>
9380
9381 * alloc.c (ALIGN): Add casts to simplify usage.
9382 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
9383 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
9384 (struct ablock, struct ablocks): New types.
9385 (free_ablock): New global var.
9386 (lisp_align_malloc, lisp_align_free): New functions.
9387 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
9388 (struct float_block): Reorder and add gcmarkbits.
9389 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
9390 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
9391 (init_float, make_float): Use lisp_align_malloc.
9392 (free_float, live_float_p): Don't use `type' any more.
9393 (make_float): Use FLOAT_UNMARK to access to mark bit.
9394 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
9395 Use FLOAT_MARKED_P to access the mark bit.
9396 (pure_alloc): Simplify use of ALIGN.
9397 (mark_object): Use FLOAT_MARK to access the mark bit.
9398 (gc_sweep): Use new macros to access the float's mark bit.
9399 (init_alloc_once): Init free_ablock.
9400
9401 * lisp.h (struct Lisp_Float): Remove unused field `type'.
9402
3ef06d12
SM
94032003-06-27 Stefan Monnier <monnier@cs.yale.edu>
9404
9405 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
9406 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
9407 (allocate_buffer): Move.
9408 (string_bytes): Don't mask markbit of `size_byte'.
9409 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9410 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
9411 Use the `size' field of buffers (rather than the `name' field) for
9412 the mark bit, as is done for all other vectorlike objects.
9413 Use the new macros to access the mark bit of vectorlike objects.
9414
e81043aa
RS
94152003-06-26 Richard M. Stallman <rms@gnu.org>
9416
9417 * puresize.h (BASE_PURESIZE): Increment base size.
9418
9419 * xdisp.c (fast_find_position): Enable Gerd's new definition.
9420
9421 * xterm.c (xim_initialize): Undo previous change.
9422
2d0834cc
SM
94232003-06-26 Stefan Monnier <monnier@cs.yale.edu>
9424
9425 * alloc.c (survives_gc_p): Simplify.
9426
9427 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
9428
9429 * window.c (Fset_window_dedicated_p): Simplify.
9430 (display_buffer_1): Don't raise the win from which minibuf was entered.
9431 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
9432 (Fminibuffer_selected_window): Simplify.
9433
9434 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
9435
9436 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
9437 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
9438
9439 * insdel.c (check_markers, adjust_markers_for_delete)
9440 (adjust_markers_for_insert, adjust_markers_for_replace)
9441 (prepare_to_modify_buffer, RESTORE_VALUE):
9442 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
9443 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
9444 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
9445 * alloc.c (Fmake_marker, free_marker, gc_sweep):
9446 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
9447 * editfns.c (save_excursion_restore, transpose_markers):
9448 * window.c (delete_window):
9449 * xdisp.c (message_dolog): Update for new types.
9450
d54ae3d8
JD
94512003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9452
a5f696ac
JD
9453 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
9454 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 9455 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
9456
9457 * frame.c (make_frame): Initialize default_face_done_p.
9458
9459 * frame.h (struct frame): Add default_face_done_p.
9460
d54ae3d8
JD
9461 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
9462 will be defined.
9463
2336fe58
SM
94642003-06-25 Stefan Monnier <monnier@cs.yale.edu>
9465
9466 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
9467 Initialize the new field `gcmarkbit'.
9468 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
9469 (mark_interval_tree): Don't mark the tree separately from the nodes.
9470 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
9471 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9472 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
9473
9474 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
9475 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
9476 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
9477 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
9478 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
9479
bcea31c2
DL
94802003-06-24 Dave Love <fx@gnu.org>
9481
9482 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
9483
9484 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
9485 from gnulib.
9486
2601f59e
RS
94872003-06-21 Richard M. Stallman <rms@gnu.org>
9488
9489 * fileio.c (Fwrite_region): Alternate messages
9490 for append and partial write.
9491
9492 * keyboard.c (read_key_sequence): When converting upcase fn key to
9493 downcase, update fkey and keytran so `backspace' gets translated.
9494
9495 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
9496
9497 * process.c (wait_reading_process_input): Don't signal SIGIO
9498 in batch mode.
9499
b5d2c621
KH
95002003-06-17 Kenichi Handa <handa@m17n.org>
9501
9502 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
9503 composite.h.
9504
9505 * xselect.c: Don't include charset.h, coding.h, composite.h.
9506 (Qforeign_selection): New variable.
9507 (syms_of_xselect): Intern and static it.
9508 (selection_data_to_lisp_data): Return a unibyte string made from
9509 data with `foreign-selection' text property.
9510
6793bc63
SM
95112003-06-15 Stefan Monnier <monnier@cs.yale.edu>
9512
9513 * termhooks.h (EVENT_INIT): New macro.
9514
9515 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
9516
9517 * alloc.c (mark_kboards): Move to keyboard.c.
9518
9519 * keyboard.c (record_asynch_buffer_change, read_avail_input):
9520 * xterm.c (x_dispatch_event):
9521 * xmenu.c (find_and_call_menu_selection):
9522 * xdisp.c (handle_tool_bar_click):
9523 * w32menu.c (menubar_selection_callback):
9524 * sysdep.c (kbd_input_ast, read_input_waiting):
9525 * msdos.c (dos_rawgetc):
9526 * macterm.c (mac_check_for_quit_char):
9527 * macmenu.c (menubar_selection_callback):
9528 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
9529 data to kbd_buffer_store_event.
9530
b3ea810c
KS
95312003-06-15 Kim F. Storm <storm@cua.dk>
9532
9533 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 9534 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 9535
b8f75eda
KG
95362003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9537
9538 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
9539
ba92ce48
KH
95402003-06-12 Kenichi Handa <handa@m17n.org>
9541
9542 * fileio.c (Fwrite_region): Save and restore restriction.
9543
b80263be
DL
95442003-06-12 Dave Love <fx@gnu.org>
9545
9546 * alloca.c (alloca): Declare arg as size_t.
9547
6793bc63
SM
9548 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
9549 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 9550
b23c0a83
DL
95512003-06-11 Dave Love <fx@gnu.org>
9552
9553 * search.c (shrink_regexp_cache): Use xrealloc.
9554 (syms_of_search): Use xmalloc.
9555
700e47c2
KS
95562003-06-10 Kim F. Storm <storm@cua.dk>
9557
9558 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
9559 Adjust phys_cursor.x to be relative to window box, rather than
9560 text area before checking -- to ensure cursor is redrawn when
9561 exposing window.
9562 Note: This also fixes a similar (older) bug if display margins
9563 are present.
9564
f11aa0b2
KH
95652003-06-06 Kenichi Handa <handa@m17n.org>
9566
9567 * coding.c (encoding_buffer_size): If coding->type is
9568 coding_type_ccl, double magnification on CRLF encoding.
9569
3d143690
JR
95702003-06-06 Jason Rumney <jasonr@gnu.org>
9571
9572 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
9573 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
9574
9575 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
9576 Mac too.
9577
f16205ca
DL
95782003-06-05 Dave Love <fx@gnu.org>
9579
b23c0a83
DL
9580 * strftime.c: Merge changes from gnulib.
9581
f16205ca
DL
9582 * mktime.c (__mktime_internal): Merge changes from gnulib
9583 involving year 69 and dst2.
9584
9585 Changes to merge with gnulib version and be consistent with the
9586 autoconf test:
9587
6793bc63
SM
9588 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
9589 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
9590 [HAVE_LOCALE_H]: Include locale.h.
9591 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
9592
9b87a0bc
KS
95932003-06-05 Kim F. Storm <storm@cua.dk>
9594
9595 * window.c (coordinates_in_window): Convert X and Y to window
9596 relative coordinates inside mode-line and header-line parts.
9597 Convert X and Y to margin area relative coordinates inside left
9598 and right display margin parts.
9599
5a8a15ec
JR
96002003-06-05 Jason Rumney <jasonr@gnu.org>
9601
9602 * w32fns.c (add_system_logical_colors_to_map): New function.
9603 (Fx_open_connection): Use it.
9604
01ed8ff1
SM
96052003-06-04 Stefan Monnier <monnier@cs.yale.edu>
9606
9607 * process.c (allocate_pty): Revert part of the previous patch.
9608 (Faccept_process_output): Simplify.
9609
b427b65d
JR
96102003-06-04 Jason Rumney <jasonr@gnu.org>
9611
9612 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
9613
9614 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
9615 (lispy_mouse_wheel_names): Remove.
9616 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
9617 Always define drag_and_drop_syms.
9618
9619 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
9620 WHEEL_EVENT events.
9621
914a8c47
SM
96222003-06-03 Stefan Monnier <monnier@cs.yale.edu>
9623
01ed8ff1
SM
9624 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
9625
914a8c47
SM
9626 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
9627
adcb132c
JD
96282003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9629
9630 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
9631 menu item label.
9632
be781fa7
RS
96332003-06-03 Richard M. Stallman <rms@gnu.org>
9634
9635 * window.c (Fwindow_edges): Doc fix.
9636 (Fwindow_pixel_edges, Fwindow_inside_edges)
9637 (Fwindow_inside_pixel_edges): New functions.
9638 (syms_of_window): defsubr them.
9639
9640 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
9641 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
9642
914a8c47
SM
96432003-06-02 Stefan Monnier <monnier@cs.yale.edu>
9644
9645 * dispnew.c (Fsit_for): Don't lie about the number of args.
9646
5b07197a
DL
96472003-06-02 Dave Love <fx@gnu.org>
9648
9649 * callproc.c: Use HAVE_FCNTL_H, not USG5.
9650 (syms_of_callproc) <process-environment>: Doc fix.
9651
9652 * doc.c: Use HAVE_FCNTL_H, not USG5.
9653
9654 * xfaces.c (font_rescale_ratio): Fix for K&R.
9655
9656 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
9657
9658 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
9659
9660 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
9661
9662 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
9663 (xg_create_frame_widgets): Use ENCODE_UTF_8.
9664
d7107586 9665 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
9666
9667 * xmenu.c (ENCODE_MENU_STRING): New.
9668 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
9669 Use it.
9670
9671 * coding.h (ENCODE_UTF_8): New.
9672 (Qutf_8): Declare.
9673
9674 * coding.c (Qutf_8): New.
9675 (syms_of_coding): Intern it.
9676
9677 * fns.c: Doc fixes.
9678
7335b336
KH
96792003-06-02 Kenichi Handa <handa@m17n.org>
9680
9681 * buffer.c (Fset_buffer_multibyte): Fix previous change.
9682
914a8c47
SM
96832003-06-01 Stefan Monnier <monnier@cs.yale.edu>
9684
9685 * lread.c (openp): Make sure STR is a string.
9686
9862c135
JR
96872003-06-01 David Ponce <david@dponce.com>
9688
cab27d04 9689 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
9690 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
9691
9692 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
9693 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
9694 (discard_mouse_events): Discard WHEEL_EVENT events too.
9695 (lispy_wheel_names, wheel_syms): New.
9696 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 9697 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 9698 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
9699
9700 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
9701 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9702 WHEEL_EVENT events.
9703
f984e73e
JPW
97042003-05-31 John Paul Wallington <jpw@gnu.org>
9705
9706 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
9707 timer are in lisp/emacs-lisp.
9708
1efcd78f
KH
97092003-05-31 Kenichi Handa <handa@m17n.org>
9710
458c8af4
KH
9711 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
9712 region when a buffer is changed to unibyte.
9713
1efcd78f
KH
9714 * charset.h (VALID_LEADING_CODE_P): New macro.
9715 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
9716
778e2804
KH
9717 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
9718 is nonzero, accept multibyte form of eight-bit-control chars.
9719 (decode_composition_emacs_mule): Likewise.
9720 (decode_coding_emacs_mule): Likewise.
9721 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
9722 multibyte form of eight-bit-control chars.
9723
9724 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
9725 (Finsert_file_contents): If coding-system-for-read is bound to
9726 Qauto_save_coding, use the coding system emacs-mule with special
9727 setting for recovering a file.
9728 (choose_write_coding_system): On auto saving, use the coding
9729 system emacs-mule with special setting for auto saving.
9730 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
9731
034060e4
KH
97322003-05-30 Kenichi Handa <handa@m17n.org>
9733
9734 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
9735 properly before calling ccl_driver.
9736
778e2804 9737 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 9738
cab27d04 9739 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
9740 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
9741 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
9742
595f5aa5
GM
97432003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
9744
9745 * xfaces.c (realize_default_face): Do not abort if lface is
9746 non-existent - reverts change from 2003-05-19.
9747
103e0180
KH
97482003-05-29 Kenichi Handa <handa@m17n.org>
9749
9750 * coding.c (decode_coding_iso2022): Pay attention to the byte
9751 sequence of CTEXT extended segment, and retain those bytes as is.
9752
97532003-05-28 Kenichi Handa <handa@m17n.org>
9754
cab27d04 9755 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
9756 of CODING_REPLACEMENT_CHARACTER.
9757 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
9758 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
9759 check this flag on encoding.
cab27d04
SM
9760 (encode_coding_sjis_big5):
9761 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
9762 (Fset_terminal_coding_system_internal):
9763 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
9764 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
9765
9766 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
9767 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9768 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
9769
ff6a3bfb 97702003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 9771
ff6a3bfb
RS
9772 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
9773
9774 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 9775
1963c428
KS
97762003-05-28 Kim F. Storm <storm@cua.dk>
9777
9778 * xdisp.c (expose_window): Fix error in calculation of
9779 window relative coordinates of area to redisplay.
9780
2b5d4601
JR
97812003-05-27 Jason Rumney <jasonr@gnu.org>
9782
9783 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
9784
1c64a4a2
JB
97852003-05-27 David Ponce <david@dponce.com>
9786
9787 Handle W32 mouse wheel events as mouse click events, like in X.
9788
9789 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
9790 MOUSE_WHEEL_EVENT anymore.
9791
9792 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
9793 Scrolling down/up the mouse wheel is respectively mapped to mouse
9794 button 4 and 5.
9795 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9796 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
9797 WM_MOUSEWHEEL events.
9798
2d031b89
AS
97992003-05-27 Andreas Schwab <schwab@suse.de>
9800
20464fdf
AS
9801 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
9802
2d031b89
AS
9803 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
9804 partially visible line.
9805
9806 * alloc.c (Fgarbage_collect): Fix last change.
9807
97bc76d4
JPW
98082003-05-26 John Paul Wallington <jpw@gnu.org>
9809
9810 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
9811
56613f06
SM
98122003-05-25 Stefan Monnier <monnier@cs.yale.edu>
9813
9814 * window.c (Fset_window_buffer): Add type of `keep_margins'.
9815 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
9816
9817 * window.h (window_box_text_cols): Declare.
9818
9819 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
9820 (x_draw_vertical_border): Remove unused var `f'.
9821
9822 * xfaces.c (build_scalable_font_name): Remove `unused var
9823 pixel_size' warning.
9824
9825 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
9826
9827 * unexelf.c (unexec): Remove `unused var n' warning.
9828
9829 * strftime.c (my_strftime_localtime_r): Remove `defined but
9830 unused' warning.
9831
9832 * process.c (allocate_pty): Remove `unused var stb' and
9833 `cp might be used uninitialized' warnings.
9834
9835 * dispnew.c (mode_line_string): Remove unused var `f'.
9836
9837 * coding.c (find_safe_codings): Remove unused var `i'.
9838
9839 * bytecode.c (Fbyte_code): Remove `unused val' warning.
9840
9841 * buffer.c (Fkill_buffer): Remove unused var `list'.
9842
9843 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
9844
93421a1f
JD
98452003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9846
9847 * frame.c (make_frame): Condition want_fullscreen with
9848 HAVE_WINDOW_SYSTEM.
9849
c4b8aebc
JB
98502003-05-25 Juanma Barranquero <lektu@terra.es>
9851
9852 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
9853 (Fwindow_scroll_bars): Fix typo in docstring.
9854
0416870b
KS
98552003-05-24 Kim F. Storm <storm@cua.dk>
9856
9857 The following changes serve several purposes:
9858
9859 1) Swap the position of fringes and display margins in windows, i.e.
9860 the fringes are now displayed between the margins and the text area
9861 (by default).
9862
9863 2) Allow fringe and scroll bar parameters to be set per-buffer and
9864 per-window (like display margins). Such settings are now stored
9865 in window configurations, preserved when frames are resized, and
9018a88e 9866 copied when windows are split vertically or horizontally.
0416870b
KS
9867 Several bugs related to display margins have been fixed.
9868
9869 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 9870
0416870b
KS
9871 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
9872 rather than FRAME_WIDTH (FRAME_FONT (f)).
9873
9874 5) Introduce a consistent naming of variables, members and macros
9875 depending on whether their value is measured in pixels or in
9876 canonical columns/lines. Pixel dimensions are named *_width and
9877 *_height, while canonical columns/lines are named *_cols and
9878 *_lines. Pixel positions are named *_x and *_y, while column/line
9879 positions are named *_col and *_line.
9880
9881 6) Consolidate more of the X, W32, and MAC gui code by moving
9882 common data into struct frame, and generalize it for the non-gui
9883 case by using suitable defaults.
9884
9885 7) Cleanup and consolidate the macros controlling frame and window
9886 layout into frame.h and window.h, and generalize the use of the
9887 various window_box_* functions (enhanced to handle the new fringe
9888 position and the per-window fringe and scroll bar settings).
9889
9890 * frame.h (struct frame): Rename members height to text_lines,
9891 width to text_cols, window_height to total_lines, window_width to
9892 total_cols, new_height to new_text_lines, new_width to
9893 new_text_cols. All uses changed.
9894 (struct frame): New members which consolidate common members of
9895 x_output, w32_output, and mac_output structures: left_pos,
9896 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
9897 win_gravity, size_hint_flags, border_width, internal_border_width,
9898 line_height, fringe_cols, left_fringe_width, right_fringe_width,
9899 want_fullscreen. All uses changed.
9900 (struct frame): New member column_width contaning the canonical
9901 column width, analogue to line_height. All uses changed.
9902 (struct frame): Rename members scroll_bar_pixel_width to
9903 config_scroll_bar_width, and scroll_bar_cols to
9904 config_scroll_bar_cols. All uses changed.
9905 (struct frame): New member scroll_bar_actual_width which
9906 consolidates and renames the vertical_scroll_bar_extra member of
9907 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 9908 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
9909 from x/w32/macterm.h files. All uses changed. Also change code
9910 which referred to f->output_data...->pixel_height.
cab27d04 9911 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 9912 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 9913 which referred to f->output_data...->pixel_width.
cab27d04 9914 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 9915 Also change code which referred to f->height.
cab27d04 9916 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
9917 Also change code which referred to f->width.
9918 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
9919 to update new_text_lines and new_text_cols members directly.
cab27d04 9920 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 9921 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 9922 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
9923 FRAME_SCROLL_BAR_COLS. All uses changed.
9924 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 9925 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
9926 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
9927 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
9928 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
9929 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
9930 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
9931 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
9932 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
9933 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
9934 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
9935 Unconditionally return line_height member (it now has proper value
9936 also for non-window frames).
9937 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
9938 return new column_width member (rather than the default font width).
9939 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 9940 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
9941 from x/w32/macterm.h files. Unconditionally return corresponding
9942 member of frame structure (they now have proper values also for
9943 non-window frames).
cab27d04 9944 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
9945 Calculate return value from left and right widths.
9946 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
9947 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
9948 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
9949 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
9950 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
9951 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
9952 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 9953 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 9954 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 9955 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 9956 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 9957 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 9958 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 9959 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 9960 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 9961 consolidated from x/mac/w32term.h.
cab27d04 9962 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 9963 consolidated from x/mac/w32term.h.
cab27d04 9964 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 9965 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 9966 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
9967 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
9968
9969 * window.h (struct window): Rename members left to left_col,
9970 top to top_line, height to total_lines, width to total_cols,
9971 left_margin_width to left_margin_cols, right_margin_width to
9972 right_margin_cols, orig_height to orig_total_lines, orig_top to
9973 orig_top_line. All uses changed.
9974 (struct window): New members left_fringe_width, right_fringe_width,
9975 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
9976 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
9977 New macros primarily used to simplify other macros.
9978 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
9979 referred to XINT (w->width).
9980 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
9981 referred to XINT (w->height).
9982 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
9983 referred to XINT (w->width) * canon_x_unit.
9984 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
9985 referred to XINT (w->height) * canon_y_unit.
9986 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
9987 referred to XINT (w->left).
cab27d04 9988 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
9989 all uses and code that referred to XINT (w->left) + XINT (w->width).
9990 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
9991 referred to XINT (w->top).
9992 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
9993 referred to XINT (w->top) + XINT (w->height).
9994 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
9995 referred to XINT (w->left) * canon_x_unit.
9996 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
9997 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
9998 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
9999 referred to XINT (w->top) * canon_y_unit.
10000 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
10001 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
10002 (WINDOW_LEFTMOST_P): New macro.
cab27d04 10003 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 10004 All uses changed.
cab27d04 10005 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 10006 All uses changed.
cab27d04 10007 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
10008 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
10009 Do not exclude left fringe width.
cab27d04 10010 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
10011 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
10012 Do not exclude fringe widths.
10013 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
10014 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
10015 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
10016 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
10017 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
10018 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
10019 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
10020 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
10021 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
10022 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
10023 New macros. Change code which referenced corresponding
10024 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
10025 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
10026 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
10027 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
10028 allow per-window scroll-bar settings.
10029 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
10030 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
10031 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
10032 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
10033 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
10034 FRAME_SCROLL_BAR_WIDTH.
10035 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 10036 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 10037 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 10038 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 10039 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 10040 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 10041 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
10042 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
10043 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10044 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
10045 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
10046 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 10047 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 10048 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
10049 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
10050 (window_from_coordinates): Update prototype.
10051 (Fset_window_buffer): Update EXFUN.
10052 (set_window_buffer): Update prototype.
9018a88e 10053
0416870b 10054 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 10055 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
10056 changed.
10057 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
10058 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
10059 internal_border_width is now set to 0 for non-window frames.
10060 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
10061 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
10062 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
10063 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
10064 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
10065 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10066 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
10067 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
10068 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 10069 Move to window.h and renamed [see window.h changes].
0416870b
KS
10070 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
10071 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
10072 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
10073 Use WINDOW_TOTAL_LINES.
0416870b
KS
10074 (frame_update_line_height): Remove prototype.
10075
10076 * buffer.h (struct buffer): Rename members measured in columns:
10077 left_margin_width to left_margin_cols, right_margin_width to
10078 right_margin_cols. All uses changed.
10079 New members left_fringe_width, right_fringe_width,
10080 fringes_outside_margins for per-buffer fringe settings.
10081 New members scroll_bar_width and vertical_scroll_bar_type for
10082 per-buffer scroll bar settings.
10083
10084 * buffer.c (init_buffer_once): Set buffer_defaults and
10085 buffer_local_flags for new buffer-local variables
10086 left_fringe_width, right_fringe_width, fringes_outside_margins,
10087 scroll_bar_width, and vertical_scroll_bar_type.
10088 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
10089 default-* variables for them.
10090
10091 * dispnew.c: Make (many) trivial substitutions for renamed and
10092 new macros in dispextern.h, frame.h and window.h.
10093 (mode_line_string): No need to adjust width for mode lines, as it
10094 is already adjusted by the caller.
10095 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 10096
0416870b
KS
10097 * frame.c: Make (many) trivial substitutions for renamed and
10098 new macros in dispextern.h, frame.h and window.h.
10099 (make_frame): Initialize left_fringe_width, right_fringe_width,
10100 fringe_cols, scroll_bar_actual_width, border_width,
10101 internal_border_width, column_width, line_height, x_pixels_diff,
10102 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
10103 members with values suitable for a non-window frames.
10104
10105 * gtkutil.c: Make (many) trivial substitutions for renamed and
10106 new macros in dispextern.h, frame.h and window.h.
9018a88e 10107
0416870b
KS
10108 * indent.c: Make (few) trivial substitutions for renamed and
10109 new macros in dispextern.h, frame.h and window.h.
10110
10111 * keyboard.c: Make (many) trivial substitutions for renamed and
10112 new macros in dispextern.h, frame.h and window.h.
10113 (make_lispy_event): Use window positions returned from
10114 window_from_coordinates when constructing the lisp event for
10115 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
10116 (incorrect) values locally.
10117 (make_lispy_movement): Use window positions returned from
10118 window_from_coordinates when constructing the lisp event, rather
10119 than calculating (incorrect) values locally.
10120
10121 * scroll.c: Make (some) trivial substitutions for renamed and
10122 new macros in dispextern.h, frame.h and window.h.
10123
10124 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
10125 scroll-bars.
10126
10127 * sysdep.c: Make (few) trivial substitutions for renamed and
10128 new macros in dispextern.h, frame.h and window.h.
10129
10130 * term.c: Make (some) trivial substitutions for renamed and
10131 new macros in dispextern.h, frame.h and window.h.
10132
10133 * widget.c: Make (few) trivial substitutions for renamed and
10134 new macros in dispextern.h, frame.h and window.h.
10135
10136 * window.c: Make (many) trivial substitutions for renamed and
10137 new macros in dispextern.h, frame.h and window.h.
10138 (make_window): Initialize new members
10139 left_margin_cols, right_margin_cols, left_fringe_width,
10140 right_fringe_width, fringes_outside_margins, scroll_bar_width,
10141 and vertical_scroll_bar_type.
cab27d04 10142 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 10143 and per-window fringes and scroll-bars.
0416870b 10144 Fix bug related to incorrectly adjusting coordinates by
9018a88e 10145 frame's internal_border_width (the effect normally negible since
0416870b
KS
10146 the internal_border_width is typically 0 or 1 pixel, but very
10147 noticeable for an internal_border_width of e.g. 25 pixels).
10148 Upon successful return (other than ON_NOTHING), the coordinates
10149 are now always properly converted to window relative for the
10150 given display element.
10151 (window_from_coordinates): Add new parameters wx and wy to
10152 return the window relative x and y position in the returned
10153 window and part. A null arg means, don't return the position.
10154 All callers changed.
10155 (adjust_window_margins): New function which may reduce the width
10156 of the display margins if a window's text area is too small after
10157 resizing or splitting windows.
10158 (size_window): Fix bug that did not account for display margin
10159 widths when checking the minimum width of a window; use
10160 adjust_window_margins.
10161 (set_window_buffer): Call Fset_window_fringes and
10162 Fset_window_scroll_bars to setup per-window elements.
10163 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
10164 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
10165 (e.g. after splitting a window or resizing the frame).
10166 All callers changed.
0416870b
KS
10167 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
10168 (Fsplit_window): Duplicate original window's display margin,
10169 fringe, and scroll-bar settings; then call Fset_window_buffer with
10170 KEEP_MARGINS non-nil. This fixes a bug which caused a split
10171 window to only preserve the display margins in one of the windows.
c4b8aebc 10172 When splitting horizontally, call adjust_window_margins on both
0416870b 10173 windows to ensure that the text area of the new windows is non too
f9711de4 10174 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
10175 width of the split window was less than the width of the display
10176 margins.
cab27d04 10177 (window_box_text_cols): Rename from window_internal_width.
9018a88e 10178 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
10179 Fix bug that caused vertical separator to be subtracted also on
10180 window frames. Fix another bug that did not reduce the returned
10181 value by the columns used for display margins.
10182 (window_scroll_line_based): Fix bug related to scrolling too much
10183 when display margins are present (implicitly fixed by the fix to
10184 window_box_text_cols).
10185 (scroll_left, scroll_right): Fix bug related to scrolling too far
10186 by default when display margins are present (implicitly fixed by
10187 the fix to window_box_text_cols).
10188 (struct saved_window): Rename members left to left_col, top to
10189 top_line, width to total_cols, height to total_lines, orig_top to
10190 orig_top_line, orig_height to orig_total_lines. All uses changed.
10191 New members left_margin_cols, right_margin_cols,
10192 left_fringe_width, right_fringe_width, fringes_outside_margins,
10193 scroll_bar_width, and vertical_scroll_bar_type for saving
10194 per-window display elements.
10195 (Fset_window_configuration): Restore display margins, fringes,
10196 and scroll bar settings. This fixes a bug which caused display
10197 margins to be discarded when saving and restoring a window
10198 configuration.
10199 (save_window_save): Save display margins, fringes, and scroll bar
10200 settings. This fixes a bug which caused display margins to be
10201 discarded when saving and restoring a window configuration.
10202 (Fset_window_margins): Do nothing if display margins are not
10203 really changed. Otherwise, call adjust_window_margins to ensure
10204 the text area doesn't get too narrow. This fixes a bug which
f9711de4 10205 could cause Emacs to trap if setting display margins wider than
0416870b
KS
10206 the width of the window.
10207 (Fset_window_fringes): New defun to allow user to specifically set
10208 this window's fringe widths and position vs. display margins.
cab27d04 10209 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
10210 (Fset_window_scroll_bars): New defun to allow user to specifically
10211 set this window's scroll bar width and position.
10212 (Fwindow_scroll_bars): New defun to return window's actual scroll
10213 bar settings.
10214 (compare_window_configurations): Also compare display margins,
10215 fringes, and scroll bar settings.
10216 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
10217
10218 * xdisp.c: Make (many) trivial substitutions for renamed and
10219 new macros in dispextern.h, frame.h and window.h.
10220 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 10221 and new fringe vs. display margin position. Note that returned
0416870b
KS
10222 value is no longer guaranteed to be a whole multiple of the frame
10223 column width, since per-window fringes may now be any width.
10224 (window_box_left_offset): New function like window_box_left, but
10225 value is relative to left border of window (rather than frame).
10226 (window_box_right_offset): New function like window_box_right,
10227 but value is relative to left border of window.
10228 (window_box_left): Adapt to per-window fringes and scroll bars,
10229 and new fringe vs. display margin position. Simplify by using
10230 WINDOW_LEFT_EDGE_X and window_box_left_offset.
10231 (window_box): Allow null args for unnecessary return values;
10232 change/simplify relevant callers.
10233 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
10234 and new fringe vs. display margin position.
10235 Use window_box_left_offset and window_box_right_offset
0416870b 10236 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
10237 scroll bars, and new fringe vs. display margin position.
10238 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
10239 (draw_fringe_bitmap): Rework to handle per-window fringes and new
10240 fringe vs. display margin position.
10241 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
10242 (redisplay_window): Adapt to per-window scroll bars.
10243 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
10244 bars, and new fringe vs. display margin position.
10245 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 10246 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
10247 bars, and new fringe vs. display margin position. Fix bug which
10248 increased total width of full_width rows by width of scroll bars
10249 although window's total width already includes that.
10250 (x_fix_overlapping_area): Simplify using window_box_left_offset.
10251 (expose_area): Simplify using window_box_left_offset.
10252 (x_draw_vertical_border): Handle per-window scroll bar settings,
10253 mixing windows with left, right and no scroll bars.
10254
10255 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
10256 where it's used in x_list_fonts (for clarity).
10257 (frame_update_line_height): Remove unused function; functionality
10258 is now done directly when setting the default font in x_set_font.
10259
10260 * xfns.c: Make (many) trivial substitutions for renamed and
10261 new macros in dispextern.h, frame.h and window.h.
10262
10263 * xmenu.c: Make (some) trivial substitutions for renamed and
10264 new macros in dispextern.h, frame.h and window.h.
10265
10266 * xterm.h (struct x_output): Move members left_pos, top_pos,
10267 border_width, pixel_height, pixel_width, line_height,
10268 internal_border_width, vertical_scroll_bar_extra,
10269 left_fringe_width, right_fringe_width, fringe_cols,
10270 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10271 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10272 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10273 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10274 (PIXEL_WIDTH, PIXEL_HEIGHT)
10275 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10276 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10277 frame.h and renamed [see frame.h changes].
10278 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10279 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10280 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10281 and renamed [see frame.h changes].
9018a88e 10282
0416870b
KS
10283 * xterm.c: Make (several) trivial substitutions for renamed and
10284 new macros in dispextern.h, frame.h and window.h.
cab27d04 10285 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10286 (scroll_run): Adapt to new fringe position.
10287 (glyph_rect): Use window coordinates returned from
10288 window_from_coordinates rather than frame_to_window_pixel_xy.
10289 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10290 scroll-bars.
10291 (handle_one_xevent): Simplify a USE_GTK conditional.
10292 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10293 (fringes are now inside margins, i.e. always in the clipping area).
10294 All callers changed.
10295 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10296 directly, then call compute_fringe_widths. Don't call
10297 frame_update_line_height.
10298
10299 * w32term.h (struct w32_output): Move members left_pos, top_pos,
10300 border_width, pixel_height, pixel_width, line_height,
10301 internal_border_width, vertical_scroll_bar_extra,
10302 left_fringe_width, right_fringe_width, fringe_cols,
10303 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10304 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10305 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10306 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10307 (PIXEL_WIDTH, PIXEL_HEIGHT)
10308 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10309 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10310 frame.h and renamed [see frame.h changes].
10311 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10312 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10313 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10314 and renamed [see frame.h changes].
9018a88e 10315
0416870b
KS
10316 * w32term.c: Make (several) trivial substitutions for renamed and
10317 new macros in dispextern.h, frame.h and window.h.
cab27d04 10318 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10319 (glyph_rect): Use window coordinates returned from
10320 window_from_coordinates rather than frame_to_window_pixel_xy.
10321 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10322 scroll-bars.
10323 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
10324 (fringes are now inside margins, i.e. always in the clipping area).
10325 All callers changed.
10326 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10327 directly, then call compute_fringe_widths. Don't call
10328 frame_update_line_height.
10329
10330 * w32console.c: Make (few) trivial substitutions for renamed and
10331 new macros in dispextern.h, frame.h and window.h.
10332
10333 * w32fns.c: Make (many) trivial substitutions for renamed and
10334 new macros in dispextern.h, frame.h and window.h.
10335
10336 * w32menu.c: Make (few) trivial substitutions for renamed and
10337 new macros in dispextern.h, frame.h and window.h.
10338
10339 * macterm.h (struct mac_output): Move members left_pos, top_pos,
10340 border_width, pixel_height, pixel_width, line_height,
10341 internal_border_width, vertical_scroll_bar_extra,
10342 left_fringe_width, right_fringe_width, fringe_cols,
10343 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10344 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
10345 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10346 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10347 (PIXEL_WIDTH, PIXEL_HEIGHT)
10348 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10349 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10350 frame.h and renamed [see frame.h changes].
10351 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10352 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10353 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10354 and renamed [see frame.h changes].
9018a88e 10355
0416870b
KS
10356 * macterm.c: Make (several) trivial substitutions for renamed and
10357 new macros in dispextern.h, frame.h and window.h.
cab27d04 10358 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10359 (glyph_rect): Use window coordinates returned from
10360 window_from_coordinates rather than frame_to_window_pixel_xy.
10361 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10362 scroll-bars.
10363 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10364 (fringes are now inside margins, i.e. always in the clipping area).
10365 All callers changed.
10366 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10367 directly, then call compute_fringe_widths. Don't call
10368 frame_update_line_height.
10369
10370 * macfns.c: Make (several) trivial substitutions for renamed and
10371 new macros in dispextern.h, frame.h and window.h.
9018a88e 10372 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
10373
10374 * macmenu.c: Make (few) trivial substitutions for renamed and
10375 new macros in dispextern.h, frame.h and window.h.
10376
10377 * msdos.h (struct x_output): Remove members left_pos, top_pos,
10378 and line_height, and use corresponding new members in struct
10379 frame. All uses changed.
10380 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
10381 superseeded by corresponding macros in frame.h.
10382
10383 * msdos.c: Make (several) trivial substitutions for renamed and
10384 new macros in dispextern.h, frame.h and window.h.
10385 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 10386 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
10387 (internal_terminal_init): No need to initialize line_height here;
10388 it now defaults to 1.
10389
9018a88e
SM
103902003-05-24 Stefan Monnier <monnier@cs.yale.edu>
10391
10392 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
10393 dropping `down' events.
10394
016bd3c0
AS
103952003-05-24 Andreas Schwab <schwab@suse.de>
10396
10397 * coding.c (find_safe_codings): Fix last change.
10398
4dacadcc
TTN
103992003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
10400
10401 * xfns.c (x_window): Fix typo from 2003-05-21 change.
10402
319830ce
SM
104032003-05-23 Stefan Monnier <monnier@cs.yale.edu>
10404
9018a88e
SM
10405 * xdisp.c (display_mode_element): Increase max depth.
10406 Simplify the error handling code. Use a different error string
10407 for the case where we hit the depth limit.
10408
319830ce
SM
10409 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
10410
10411 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
10412
104132003-05-21 Stefan Monnier <monnier@cs.yale.edu>
10414
10415 * intervals.c (get_local_map): Don't get char-property of previous
10416 point any more: get_pos_property already does it and better.
10417
c67de8ba
DL
104182003-05-21 Dave Love <fx@gnu.org>
10419
10420 [Merged from unicode branch.]
10421
10422 * xfns.c (x_window, x_window): Use use_xim.
10423
10424 * xterm.c (use_xim): Initialize.
10425 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10426 (x_term_init): Maybe set use_xim.
10427
10428 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10429
edd3ff1d
JR
104302003-05-21 Jason Rumney <jasonr@gnu.org>
10431
10432 * unexw32.c (_start): Remove _fmode initialization.
10433
10434 * emacs.c (main) [WINDOWSNT]: Move it here.
10435
463f55ee
DL
104362003-05-20 Dave Love <fx@gnu.org>
10437
10438 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
10439
af253914
RS
104402003-05-19 Richard M. Stallman <rms@gnu.org>
10441
10442 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
10443 as value for QCfont attribute.
10444 (realize_default_face): lface should already exist; crash if not.
10445 Specify 0 for FORCE_P when calling set_lface_from_font_name.
10446
10447 * frame.c (Fignore_event): Doc fix.
10448
1d211019
KH
104492003-05-19 Kenichi Handa <handa@m17n.org>
10450
10451 * coding.c (decode_coding_string): Handle post-read-conversion
10452 even if the coding doesn't require decoding.
10453
4dd68254
RS
104542003-05-18 Richard M. Stallman <rms@gnu.org>
10455
10456 * callproc.c (Fcall_process_region): Doc fix.
10457
14d87dc9
SM
104582003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10459
deca5d96
SM
10460 * lread.c (Fload): Print a message if package is obsolete.
10461
14d87dc9
SM
10462 * window.c (Fselect_window): Add optional `norecord' arg.
10463 (select_window_1): Fold into Fselect_window.
10464 (select_window_norecord): New function.
10465 (temp_output_buffer_show): Use it. Preserve current buffer.
10466
10467 * window.h (Fselect_window): Update declaration.
10468
10469 * window.c (delete_window, Fother_window, Fset_window_configuration):
10470 * minibuf.c (read_minibuf):
10471 * macterm.c (x_new_focus_frame):
10472 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
10473 * callint.c (Fcall_interactively):
10474 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
10475
10476 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
10477
78f52183
DK
104782003-05-17 David Kastrup <dak@gnu.org>
10479
10480 * process.c (read_process_output): Back out change from 2003-03-09.
10481
14d87dc9
SM
104822003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10483
10484 * editfns.c (get_pos_property): Don't assume that `object' = nil.
10485
10486 * textprop.c (text_property_stickiness): New arg `buffer'.
10487
10488 * intervals.h (text_property_stickiness): New arg `buffer'.
10489 (get_pos_property): Declare.
10490
10491 * intervals.c (get_local_map): Use get_pos_property, to obey
10492 stickiness and empty overlays.
10493 (create_root_interval, graft_intervals_into_buffer): Use BEG.
10494 (merge_properties, intervals_equal, merge_properties_sticky):
10495 Use XCAR, XCDR.
10496 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
10497
1fd1cc2f
RS
104982003-05-17 Richard M. Stallman <rms@gnu.org>
10499
4f9f637a
RS
10500 * minibuf.c (read_minibuf): If buffer is empty, record the default
10501 in the history.
10502 (Fminibuffer_complete_word): When deleting the overlap, take account
10503 of its real position.
10504
10505 * fns.c (map_char_table): Fix previous change.
10506
1fd1cc2f
RS
10507 * syntax.c (find_defun_start):
10508 When open_paren_in_column_0_is_defun_start,
10509 return beginning of buffer.
10510
10511 * lisp.h (map_char_table): Declare added arg.
10512
10513 * fns.c (map_char_table): New arg TABLE gets the master table.
10514 All calls changed.
10515 Process default and inheritance, resorting to Faref if necessary.
10516
10517 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10518 (Faccessible_keymaps): Pass new arg to map_char_table.
10519
10520 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
10521
10522 * casetab.c (set_case_table): Pass new arg to map_char_table.
10523
10524 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
10525
10526 * lisp.h (specbinding_func): New typedef.
10527 (struct specbinding): Use specbinding_func, to put the `volatile'
10528 in the right place.
10529
10530 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
10531 to avoid GCC warning.
14d87dc9 10532
b6189c3b 105332003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 10534
14d87dc9 10535 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 10536
35fb885d
SM
105372003-05-15 Stefan Monnier <monnier@cs.yale.edu>
10538
10539 * keyboard.c (apply_modifiers): Don't fill the other cache.
10540
9a274fbd
SM
105412003-05-14 Stefan Monnier <monnier@cs.yale.edu>
10542
c55b5fad
SM
10543 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
10544
9a274fbd
SM
10545 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
10546 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
10547 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
10548 (Fset_window_configuration, Fcurrent_window_configuration)
10549 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
10550 (Fpos_visible_in_window_p, mark_window_cursors_off)
10551 (window_internal_height, window_internal_width, Frecenter)
10552 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
10553 (replace_buffer_in_all_windows, init_window_once, init_window)
10554 (syms_of_window, keys_of_window): Move from lisp.h.
10555 * lisp.h: Move window.c declarations to window.h.
10556
10557 * bytecode.c: Include window.h.
10558 * emacs.c: Include window.h.
10559
14d87dc9 10560 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
10561 (keyremap): Add `parent' field.
10562 (keyremap_step): Use it. Remove `parent' argument.
10563 (read_key_sequence): Setup and use the new `parent' field.
10564
fd93e331
SM
105652003-05-11 Stefan Monnier <monnier@cs.yale.edu>
10566
10567 * keyboard.c (adjust_point_for_property): Ensure termination.
10568
1c4001a1
SM
105692003-05-10 Stefan Monnier <monnier@cs.yale.edu>
10570
10571 * keyboard.c (follow_key): Remove dead variable `did_meta'.
10572 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
10573 duplicated handling of function-key-map and key-translation-map
10574 in read_key_sequence.
10575 (read_key_sequence): Use them.
10576
10577 * keyboard.c (adjust_point_for_property): Try harder to move point
10578 to the non-sticky end of an invisible property.
10579
10580 * xdisp.c (single_display_prop_intangible_p): Make `space' display
10581 property intangible as well.
10582
780379b1
AS
105832003-05-10 Andreas Schwab <schwab@suse.de>
10584
10585 * xmenu.c (single_menu_item): Change last parameter to void* to
10586 avoid warning.
10587
ca2de342
RS
105882003-05-09 Richard M. Stallman <rms@gnu.org>
10589
10590 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
10591 Bind Qinhibit_modification_hooks to t so there will be no GC.
10592 Rename local `tem' to `save_deactivate_mark'.
10593
10594 * eval.c (specpdl_ptr): Declare volatile.
10595 (unbind_to): Copy the whole binding and decrement specpdl_ptr
10596 before doing the work of unbinding it.
10597
10598 * lisp.h (struct specbinding): Declare elements volatile.
10599 (specpdl_ptr): Declare volatile.
10600
10601 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
10602
10603 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
10604 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
10605
347003be
DL
106062003-05-08 Dave Love <fx@gnu.org>
10607
10608 * coding.c (Vlast_coding_system_used): Doc fix.
10609
5adcec23
JR
106102003-05-07 Jason Rumney <jasonr@gnu.org>
10611
10612 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
10613 when system does not support them.
10614
5fe3b8a4
SM
106152003-05-05 Stefan Monnier <monnier@cs.yale.edu>
10616
10617 * fileio.c (Qwrite_region_annotate_functions): New var.
10618 (build_annotations): Use it to process the global part of the hook.
10619 (syms_of_fileio): Init and staticpro it.
10620
10621 * keyboard.c (safe_run_hooks_error): Display a message instead of
10622 silently ignoring the error.
10623
106242003-05-03 Stefan Monnier <monnier@cs.yale.edu>
10625
10626 * keyboard.c (input_available_signal): Mark static.
10627 (menu_bar_items): Use map_keymap.
10628 (menu_bar_one_keymap): Remove.
10629 (menu_bar_item): Adjust arglist (for use in map_keymap).
10630 Properly hide a second binding when not both are keymaps.
10631
10632 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
10633 (single_keymap_panes): Use it and map_keymap.
10634 (single_menu_item): Use skp as well.
10635
10636 * keymap.h (map_keymap_function_t): New type.
10637 (map_keymap): Declare.
10638
10639 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
10640 (map_keymap_call, Fmap_keymap): New functions.
10641 (syms_of_keymap): Defsubr map-keymap.
10642
4b1b4443
JD
106432003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10644
10645 * gtkutil.c (create_dialog, make_widget_for_menu_item)
10646 (make_menu_item, create_menus, xg_update_menu_item): Don't call
10647 ..._with_mnemonic functions for menu items.
10648
1f816871
KH
106492003-05-01 Kenichi Handa <handa@m17n.org>
10650
10651 * coding.c (coding_system_accept_latin_extra_p): Delete this
10652 function.
10653 (find_safe_codings): Pay attention to
10654 the property tranlsation-table-for-encode of each codings.
10655 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
10656
5ed6ba5b
SM
106572003-05-01 Stefan Monnier <monnier@cs.yale.edu>
10658
10659 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
10660
32c06229
SM
106612003-04-30 Stefan Monnier <monnier@cs.yale.edu>
10662
10663 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
10664
10665 * lisp.h (CHECK): Wrap args in parenthesis.
10666 (specbind): Fix doc: symbol = Qnil is not supported any more.
10667
10668 * bytecode.c (Fbyte_code) <unwind-protect>:
10669 Use Fprogn rather than 0 and Qnil.
10670
10671 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
10672 `double', and `triple' modifiers as well.
10673
ed3c3314
RS
106742003-04-30 Richard M. Stallman <rms@gnu.org>
10675
10676 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
10677
10678 * alloc.c (abort_on_gc): New variable.
10679 (Fgarbage_collect): Abort if abort_on_gc is set.
10680
10681 * lisp.h (abort_on_gc): Add decl.
10682
10683 * eval.c (Fsignal): Clear abort_on_gc.
10684
10685 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 10686 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
10687
10688 * xdisp.c (move_it_vertically_backward): Do the final big else
10689 even if nlines is 0.
10690
10691 * xdisp.c (redisplay_internal): Finish the per-frame loop
10692 even if redisplay is suspended by input.
10693
0b325c12
AC
106942003-04-24 Andrew Choi <akochoi@shaw.ca>
10695
10696 * macterm.c (x_list_fonts): Return all fonts that match if
10697 maxnames = -1.
10698
4e837cd0
KH
106992003-04-25 Kenichi Handa <handa@m17n.org>
10700
10701 * syntax.c (skip_chars): Fix previous change.
10702
9af7511a
KH
107032003-04-24 Kenichi Handa <handa@m17n.org>
10704
10705 * syntax.c (skip_chars): Make the code faster by using the common
10706 technique of *p, *stop, and *endp.
10707
e3b2c21f
JD
107082003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10709
10710 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 10711 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
10712 being updated.
10713
32c06229
SM
107142003-04-19 Stefan Monnier <monnier@cs.yale.edu>
10715
10716 * eval.c (Fapply): Undo last change and add a comment about why.
10717
c6464167
MB
107182003-04-18 Miles Bader <miles@gnu.org>
10719
10720 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
10721 pickier PARSE_MULTIBYTE_SEQ.
10722
e509f168
SM
107232003-04-17 Stefan Monnier <monnier@cs.yale.edu>
10724
10725 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
10726 Use XCDR, XCAR, CONSP.
10727 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
10728 (Fapply): Remove unnecessary GCPRO.
10729
10730 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
10731
10732 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
10733
10734 * buffer.h: Don't hardcode BEG==1.
10735
10736 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
10737
5ceea398
RS
107382003-04-16 Richard M. Stallman <rms@gnu.org>
10739
10740 * xdisp.c (try_window, try_window_reusing_current_matrix):
10741 When at end of window, set window_end_pos to Z-ZV.
10742
10743 * buffer.c (Foverlay_recenter): Doc fix.
10744
e509f168
SM
107452003-04-14 Stefan Monnier <monnier@cs.yale.edu>
10746
10747 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
10748
d243e605
AC
107492003-04-14 Andrew Choi <akochoi@shaw.ca>
10750
10751 * macterm.c (mac_check_for_quit_char): Don't check more often than
10752 once a second.
10753
6901b111
SM
107542003-04-11 Stefan Monnier <monnier@cs.yale.edu>
10755
10756 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
10757 specially, so that they can't hide an implicit switch-frame event.
10758 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
10759 (head_table): Use switch-frame as event_kind for select-window.
10760 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
10761
10762 * editfns.c (Fformat): Lisp_Object/int mixup.
10763 (format2): Remove unused var numargs.
10764
e301806f 107652003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 10766
6901b111 10767 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
10768 (Qafter_insert_file_set_coding): New variable.
10769 (syms_of_fileio): Initialize and staticpro it. Delete declaration
10770 for after-insert-file-adjust-coding-function.
10771 (Finsert_file_contents): Call Qafter_insert_file_set_coding
10772 instead of Vafter_insert_file_adjust_coding_function.
10773
38914424
KH
107742003-04-11 Kenichi Handa <handa@m17n.org>
10775
10776 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
10777
10778 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
10779 string. Callers changed.
10780
107812003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 10782
6901b111 10783 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 10784 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
10785 (Finsert_file_contents):
10786 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
10787 decode-format.
10788
f979dc05
JD
107892003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10790
10791 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
10792 get GtkAdjustment as widget now is a GtkRange.
10793
10794 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
10795 GtkRange to avoid memory leak.
10796
f8c6b4c2 107972003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 10798
50ebc53d
KH
10799 * xfaces.c (Vface_font_rescale_alist): New variable.
10800 (struct font_name): New member rescale_ratio.
10801 (font_rescale_ratio): New function.
6901b111 10802 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
10803 (better_font_p): On comparing point sized, pay attention to
10804 recale_ratio member of fonts.
10805 (build_scalable_font_name): Reflect font->rescale_ratio in the
10806 font name.
6901b111 10807 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 10808
cb98871c
KH
10809 * lread.c (read1): Before calling index, check if the 2nd
10810 arguemnt is in ASCII range.
10811
4773b8ca
RS
108122003-04-08 Richard M. Stallman <rms@gnu.org>
10813
b0ada147
RS
10814 * fileio.c (Ffile_symlink_p): Doc fix.
10815
10816 * editfns.c (Fformat): Translate positions of text properties
10817 in the format string to apply them to the result.
10818
4773b8ca
RS
10819 * fileio.c (Finsert_file_contents): Doc fix.
10820 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10821
108222003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 10823
4773b8ca
RS
10824 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
10825
e8f25745 108262003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 10827
e8f25745
ST
10828 * mac.c (init_mac_osx_environment): Switch libexec and bin so
10829 that self-contained application finds libexec files.
10830
f8c6b4c2 108312003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 10832
6901b111
SM
10833 * coding.c (code_convert_region_unwind):
10834 Set Vlast_coding_system_used to the argument.
2310d84c
KH
10835 (code_convert_region): If post-read-conversion function changed
10836 the value of last-coding-sytem, keep the new value in
10837 coding->symbol so that it won't be overridden.
10838 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
10839 (coding_system_accept_latin_extra_p): New function.
10840 (find_safe_codings): Pay attention to characters registered in
10841 latin-extra-code-table.
2310d84c 10842
39c9a034
TTN
108432003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
10844
10845 * Makefile.in (md5.o): Add missing dependency info.
10846
eb67c5d6
RS
108472003-04-06 Richard M. Stallman <rms@gnu.org>
10848
10849 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
10850
10851 * marker.c (verify_bytepos): New function.
10852
10853 * intervals.c (set_intervals_multibyte_1): When becoming
10854 multibyte, adjust right and left child sizes to a whole set of
10855 characters. If an interval gets zero total-length, delete it.
10856 If an interval consists of just its children, delete one of them.
10857
10858 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
10859 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 10860
52eb0373 10861 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
10862 All calls deleted.
10863 (lisp_malloc): Do the work here directly.
10864
b1f81fc5
JB
108652003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
10866
10867 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
10868 char tables.
10869
108702003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
10871
10872 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
10873 destructively change "%S" to "%s".
10874
774666fb
MB
108752003-04-03 Miles Bader <miles@gnu.org>
10876
10877 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
10878 always set.
10879
19c37f01
DL
108802003-04-01 Dave Love <fx@gnu.org>
10881
10882 * xfns.c (xpm_lookup_color): Grok "opaque".
10883
2f4b24c3
AC
108842003-03-31 Andrew Choi <akochoi@shaw.ca>
10885
10886 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
10887 parent window ID.
10888
10889 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
10890
10891 * macterm.h (struct mac_output): Define x_pixels_diff and
10892 y_pixels_diff.
b1f81fc5 10893
9443fcf6
JB
108942003-03-31 Juanma Barranquero <lektu@terra.es>
10895
10896 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
10897 blockinput.h and files included from it.
10898
e072891b
KS
108992003-03-31 Kim F. Storm <storm@cua.dk>
10900
10901 The following changes consolidates the common code related to
10902 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
10903 files into frame.c.
9443fcf6 10904
e072891b
KS
10905 * frame.c: Include blockinput.h.
10906 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
10907 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
10908 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
10909 related vars here.
10910 (struct frame_parm_table, frame_parms): New table for describing
10911 frame parameters and their associated Q-variable.
10912 The order of the parameters corresponds to the sequence of the
10913 frame_parm_handlers table in redisplay_interface.
10914 (x_fullscreen_move, x_set_frame_parameters)
10915 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
10916 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
10917 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10918 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
10919 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
10920 Generic functions for processing of frame parameters.
10921 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
10922 (display_x_get_resource, x_get_resource_string): Functions for
10923 generic access to X resources.
10924 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10925 (x_default_parameter, Fx_parse_geometry): Functions for generic
10926 access to frame parameters.
6901b111
SM
10927 (x_figure_window_size): Generic calculation of frame size.
10928 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
10929 (syms_of_frame): Intern and staticpro frame parameter variables.
10930 Defvar_lisp Vx_resource_class and Vx_resource_name here.
10931 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 10932
e072891b
KS
10933 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
10934 parameter related vars defined in frame.c.
10935 (EMACS_CLASS): Define here.
10936 (enum FULLSCREEN_*): Define here.
10937 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
10938 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
10939 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
10940 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
10941 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
10942 (x_set_visibility, x_set_autoraise, x_set_autolower)
10943 (x_set_unsplittable, x_set_vertical_scroll_bars)
10944 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
10945 (x_figure_window_size): Add prototypes.
10946
10947 * dispextern.h (frame_parm_handler): New typedef.
10948 (struct redisplay_interface): New member frame_parm_handlers.
10949 (enum resource_types): Move declaration here.
10950 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10951 (x_default_parameter): Add prototypes.
10952
10953 * window.c: Remove extern decl for frame parameter vars.
10954 (change_window_heights): New generic function;
10955 replaces x_change_window_heights. All users changed.
10956
10957 * window.h (change_window_heights): Add prototype.
10958
10959 * xfaces.c: Remove extern decl for frame parameter vars.
10960
10961 * xterm.h (EMACS_CLASS): Remove. Use generic define.
10962 (struct w32_display_info): Fix type of xrdb member.
10963 (enum FULLSCREEN_*): Remove.
10964 Remove prototypes for generic functions (in frame.h).
10965
10966 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10967 parameters now defined in frame.h and frame.c.
f63fd14e 10968 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
10969 (enum x_frame_parms): Remove (bogus, unused enum).
10970 (check_x_display_info): Make non-static (for frame.c).
10971 (struct x_frame_parm_table, x_frame_parms): Remove.
10972 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10973 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10974 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10975 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10976 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10977 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10978 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10979 Remove. Use generic functions instead.
10980 (enum resource_types): Remove.
10981 (x_set_scroll_bar_default_width): New global function (for frame.c).
10982 (Fx_create_frame): Depend on x_figure_window_size to add space for
10983 toolbar and setup size_hint_flags.
10984 (x_frame_parm_handlers): New table for redisplay_interface.
10985 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 10986
e072891b 10987 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 10988 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
10989 (x_redisplay_interface): Add x_frame_parm_handlers member.
10990
10991 * w32gui.h (XrmDatabase): New (dummy) typedef.
10992
10993 * w32term.h (EMACS_CLASS): Remove. Use generic define.
10994 (struct w32_display_info): Fix type of xrdb member.
10995 (enum FULLSCREEN_*): Remove.
10996 (x_fullscreen_adjust): Remove prototype.
10997
10998 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10999 parameters now defined in frame.h and frame.c.
f63fd14e 11000 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11001 (enum x_frame_parms): Remove (bogus, unused enum).
11002 (check_x_display_info): Make non-static (for frame.c).
11003 (struct x_frame_parm_table, x_frame_parms): Remove.
11004 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11005 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11006 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11007 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11008 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11009 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11010 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11011 Remove. Use generic functions instead.
11012 (enum resource_types): Remove.
11013 (x_set_scroll_bar_default_width): New global function (for frame.c).
11014 (Fx_create_frame): Depend on x_figure_window_size to add space for
11015 toolbar and setup size_hint_flags.
11016 (w32_frame_parm_handlers): New table for redisplay_interface.
11017 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 11018
e072891b 11019 * w32term.c: Remove unnecessary extern declarations.
52eb0373 11020 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11021 (x_redisplay_interface): Add w32_frame_parm_handlers member.
11022
11023 * w32reg.c (x_get_string_resource): Use XrmDatabase.
11024
11025 * macgui.h (XrmDatabase): New (dummy) typedef.
11026
11027 * macterm.h (EMACS_CLASS): Remove.
11028 (struct mac_display_info): Add xrdb member.
11029 (struct mac_output): Add want_fullscreen member.
11030
11031 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11032 parameters now defined in frame.h and frame.c.
f63fd14e 11033 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11034 (check_x_display_info): Make non-static (for frame.c).
11035 (struct x_frame_parm_table, x_frame_parms): Remove.
11036 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11037 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11038 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11039 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11040 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11041 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11042 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11043 Remove. Use generic functions instead.
11044 (enum resource_types): Remove.
11045 (x_set_scroll_bar_default_width): New global function (for frame.c).
11046 (mac_frame_parm_handlers): New table for redisplay_interface.
11047 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 11048
e072891b
KS
11049 * macterm.c: Remove unnecessary extern declarations.
11050 (x_redisplay_interface): Add mac_frame_parm_handlers member.
11051
3e6a560b
KS
11052 * Makefile.in (frame.o): Add dependency on blockinput.h and files
11053 included from it (atimer.h and systime.h).
11054
7b7b454e
AS
110552003-03-30 Andreas Schwab <schwab@suse.de>
11056
11057 * xdisp.c (x_insert_glyphs): Fix swapped width and height
11058 parameters for shift_glyphs_for_insert.
11059
11060 * macterm.c (x_redisplay_interface): Add missing entry for
11061 draw_vertical_window_border.
11062
beb402de
KG
110632003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11064
11065 * fileio.c (Fexpand_file_name): In the no-handler case, after
11066 expanding, look again for a handler and invoke it. This is needed
11067 for filenames like "/foo/../user@host:/bar/../baz" -- the first
11068 expansion produces "/user@host:/bar/../baz" which needs to be
11069 expanded again for the finame result "/user@host:/baz".
11070
b676f356
JD
110712003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11072
11073 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
11074 of area to be redrawn for better performance.
11075
3c671a56
SM
110762003-03-28 Stefan Monnier <monnier@cs.yale.edu>
11077
11078 * xterm.c (take_vertical_position_into_account): Remove.
11079 (xt_action_hook): Call set_vertical_scroll_bar if needed.
11080 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
11081 (xm_scroll_callback, x_create_toolkit_scroll_bar)
11082 (x_set_toolkit_scroll_bar_thumb): Simplify.
11083 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
11084 (XTread_socket): Remove unused var.
11085 (x_make_frame_invisible): Replace goto with else.
11086
11087 * xdisp.c (set_vertical_scroll_bar): New fun.
11088 (redisplay_window): Use it.
11089
84f2e615
RS
110902003-03-26 Richard M. Stallman <rms@gnu.org>
11091
11092 * xdisp.c (update_tool_bar): Recompute tool bar if
11093 update_mode_lines is set. Set w->update_mode_line
11094 only if the tool bar contents actually change.
11095 (update_menu_bar): Undo previous change.
11096
70b6104c
JD
110972003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11098
5fd6f727
JD
11099 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
11100 (xg_frame_set_char_size): Calculate scroll bar width before frame
11101 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
11102 (xg_separator_p): Check for all documented separator types.
11103 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
11104 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
11105
70b6104c
JD
11106 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
11107 so tool bar gets updated.
11108
d9b36d19
SM
111092003-03-26 Stefan Monnier <monnier@cs.yale.edu>
11110
11111 * data.c (store_symval_forwarding): Re-instate part of the code
11112 that was deleted with too much enthusiasm.
11113
111142003-03-25 Stefan Monnier <monnier@cs.yale.edu>
11115
11116 * data.c (store_symval_forwarding): Delete special read-only
11117 hack for type == -1, since we now use ->constant instead.
11118 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
11119
11120 * buffer.c (overlays_in): Declare static.
11121 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
11122 `constant' field rather than the variable's `type' field.
11123
365fa1b3
AC
111242003-03-24 Andrew Choi <akochoi@shaw.ca>
11125
11126 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
11127
11128 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
11129
11130 * fns.c [MAC_OSX]: Do not redefine vector.
11131
11132 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
11133
11134 * macgui.h: Remove definition of No_Cursor.
11135
d9b36d19 11136 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
11137
11138 * xdisp.c: Define No_Cursor.
11139 (x_write_glyphs, notice_overwritten_cursor)
11140 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
11141 (note_mouse_highlight): Remove Mac-specific code.
11142 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 11143
c0bcce6f
JPW
111442003-03-24 John Paul Wallington <jpw@gnu.org>
11145
11146 * xdisp.c (redisplay_window): If mini window's buffer is not
11147 empty, then redisplay it like other windows.
11148
a526b96c
KS
111492003-03-23 Kim F. Storm <storm@cua.dk>
11150
11151 * w32term.c (w32_draw_window_cursor): Fix last change.
11152
37ab321e
KH
111532003-03-23 Kenichi Handa <handa@m17n.org>
11154
a526b96c
KS
11155 * alloc.c (make_string_from_bytes, make_specified_string):
11156 Add `const' for the arg CONTENTS.
37ab321e
KH
11157
11158 * lisp.h (make_string_from_bytes, make_specified_string):
11159 Prototypes adjusted.
11160
7863d625
JD
111612003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11162
a526b96c 11163 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 11164
7863d625
JD
11165 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
11166 (XG_SB_RANGE): New define.
11167
11168 * gtkutil.c (xg_fixed_handle_expose): New function.
11169 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
11170 expose events.
11171 (xg_update_scrollbar_pos): Take two more arguments, left and width
11172 of scroll bar including borders.
11173 Clear left and right part outside scroll bar separately as some
11174 themes have bars that are not an even number of pixels.
d9b36d19 11175 Don't set reallocate_redraws, don't call
7863d625
JD
11176 gdk_window_process_all_updates.
11177 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
11178 so no need to change it. Calculate size and value with XG_SB_RANGE.
11179
d9b36d19
SM
11180 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
11181 Pass left and width of scroll bar including borders to
7863d625
JD
11182 xg_update_scrollbar_pos.
11183
af0ad939
TTN
111842003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
11185
11186 * Makefile.in: Make sure space precedes end-of-line backslashes.
11187
b22139fd
KS
111882003-03-22 Kim F. Storm <storm@cua.dk>
11189
11190 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
11191 Add generic versions here. Remove system specific versions
11192 defined elsewhere.
11193
11194 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
11195 Add prototypes.
11196
6e6410cf
KS
11197 * xterm.h (STORE_NATIVE_RECT): New macro.
11198
5c9cc435
KS
111992003-03-21 Kim F. Storm <storm@cua.dk>
11200
00c64fab
SM
11201 * xdisp.c (get_glyph_string_clip_rect):
11202 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
11203
11204 * dispextern.h (struct redisplay_interface): Add active_p
11205 argument to draw_window_cursor member. All uses changed.
11206
acd37560
KS
112072003-03-21 Kim F. Storm <storm@cua.dk>
11208
11209 The following changes consolidate code related to writing and
11210 inserting glyphs, exposing frame, the tool bar, the mouse face,
11211 the output cursor, and help echo from xterm.c, w32term.c and
11212 macterm.c into xdisp.c. It also generalizes the use of the
11213 window_part enum instead of using numeric values throughout.
af0ad939 11214
acd37560
KS
11215 * xdisp.c: Consolidate gui-independent code here.
11216 Include keymap.h.
11217 (Qhelp_echo): Import.
11218 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
11219 (help_echo_string, help_echo_window, help_echo_object)
11220 (previous_help_echo_string, help_echo_pos): Declare here.
11221 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
11222 (estimate_mode_line_height): Define here. Handle windowing
11223 systems directly (without using estimate_mode_line_height_hook).
11224 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
11225 (update_window_cursor, update_cursor_in_window_tree)
11226 (fast_find_position, fast_find_string_pos)
11227 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
11228 (expose_area, expose_line, expose_overlaps, expose_window)
11229 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
11230 declared static as they are only used locally in xdisp.c.
11231 (draw_glyphs): Rename from x_draw_glyphs and make static.
11232 (tool_bar_item_info, notice_overwritten_cursor): Make static.
11233 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11234 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 11235 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
11236 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11237 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
11238 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
11239 (note_mouse_highlight, x_clear_window_mouse_face)
11240 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
11241 (x_intersect_rectangles): New generic functions for use by xdisp.c
11242 and GUI front-ends.
11243 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
11244 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
11245
11246 * dispextern.h (Display_Info): Generic typedef for *_display_info.
11247 (NativeRectangle): Generic typedef for rectangle type.
11248 (enum window_part): Move here from window.c.
11249 (struct redisplay_interface): New members flush_display_optional,
11250 define_frame_cursor, clear_frame_area, draw_window_cursor,
11251 draw_vertical_window_border, shift_glyphs_for_insert.
11252 Rename member clear_mouse_face to clear_window_mouse_face.
11253 (estimate_mode_line_height_hook): Remove hook.
11254 (auto_raise_tool_bar_buttons_p): Don't declare extern.
11255 (tool_bar_item_info): Remove prototype.
11256 (help_echo_string, help_echo_window, help_echo_object)
11257 (previous_help_echo_string, help_echo_pos)
11258 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
11259 (x_stretch_cursor_p, output_cursor): Declare extern.
11260 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
11261 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
11262 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11263 (display_and_set_cursor, set_output_cursor, x_cursor_to)
11264 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
11265 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11266 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
11267 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
11268 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
11269 Add prototypes.
11270 (mode_line_string, marginal_area_string): Fix prototypes.
11271
11272 * window.c (enum window_part): Move to dispextern.h.
11273 (coordinates_in_window): Use enum window_part member names
11274 instead of numbers to describe return value.
11275 (struct check_window_data): Change part member to window_part.
11276 (check_window_containing): Return window_part unaltered.
11277 (window_from_coordinates): Change part arg from int to enum
11278 window_part. Allow part arg to be null. All users changed.
11279
11280 * window.h (window_from_coordinates): Fix prototype.
11281
11282 * term.c (estimate_mode_line_height): Move to xdisp.c.
11283
11284 * keyboard.c (make_lispy_event): Use enum window_part.
11285
11286 * dispnew.c (mode_line_string, marginal_area_string): Use enum
11287 window_part instead of int in arg list. Users changed.
11288
11289 * xterm.h (No_Cursor): Declare as None for X.
11290 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 11291
acd37560
KS
11292 * xterm.c: Remove consolidated defines and code.
11293 (BETWEEN): Remove unused macro.
11294 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
11295 (x_define_frame_cursor, x_clear_frame_area)
11296 (x_draw_window_cursor): New X-specific functions for RIF.
11297 (x_redisplay_interface): Add new members.
11298
11299 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
11300
11301 * w32term.h (struct w32_output): Remove cross_cursor member.
11302
11303 * w32term.c: Remove consolidated defines and code.
11304 (BETWEEN): Remove unused macro.
11305 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
11306 (w32_define_frame_cursor, w32_clear_frame_area)
11307 (w32_draw_window_cursor): New W32-specific functions for RIF.
11308 (w32_redisplay_interface): Add new members.
11309
a64387ee 11310 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
11311 (XRectangle): Add X compatible rectangle type.
11312 (NativeRectangle): Declare as RECT for W32.
11313 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11314
11315 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
11316
11317 * w32console.c: Remove consolidated defines and code.
af0ad939 11318
acd37560
KS
11319 * msdos.h (Display_Info): Add generic typedef.
11320
11321 * msdos.c: Remove consolidated defines and code.
11322 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
11323
11324 * macterm.h (struct mac_output): Replace member cross_cursor by
11325 hand_cursor.
11326 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
11327
11328 * macterm.c: Remove consolidated defines and code.
11329 (BETWEEN): Remove unused macro.
11330 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
11331 (mac_define_frame_cursor, mac_clear_frame_area)
11332 (mac_draw_window_cursor): New Mac-specific functions for RIF.
11333 (x_redisplay_interface): Add new members.
11334
11335 * macgui.h (No_Cursor): Define as 0 for Mac.
11336 (XRectangle): Add X compatible rectangle type.
11337 (NativeRectangle): Declare as Rect for Mac.
11338 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11339
204ccab1
KS
11340 * macfns.c (x_set_mouse_color): Setup hand_cursor.
11341 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 11342
9443fcf6 11343 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
11344 included from it. Add dependency on keymap.h.
11345
11346 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
11347
8ba01a70 113482003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
11349
11350 * fileio.c (Fexpand_file_name): Fix previous change.
11351
8ba01a70 113522003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
11353
11354 * fileio.c (Ffile_name_directory): Reconstruct file name by
11355 make_specified_string.
11356 (Ffile_name_nondirectory, Ffile_name_as_directory)
11357 (Fdirectory_file_name, Fexpand_file_name)
11358 (Fsubstitute_in_file_name): Likewise.
11359 (Fread_file_name): Compare decoded homedir with DIR and
11360 DEFAULT_FILENAME.
11361
11362 * alloc.c (make_specified_string): If NCHARS is negative, count
11363 the number of characters.
11364
19536747
JD
113652003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11366
de38ae5a
JD
11367 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
11368 all widgets.
11369
19536747
JD
11370 * gtkutil.h: Removed xg_ignore_next_thumb.
11371
37ab321e 113722003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
11373
11374 * coding.c (Vchar_coding_system_table): Remove this variable.
11375 (Vcoding_system_safe_chars): New variable.
11376 (intersection): Remove this function.
11377 (find_safe_codings): Don't use Vchar_coding_system_table, but try
11378 all codings in SAFE_CODINGS.
00c64fab 11379 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
11380 find_safe_codings. Get generic coding systems from
11381 Vcoding_system_safe_chars.
11382 (Fdefine_coding_system_internal): New function.
11383 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
11384 Initialize and staticpro Vcoding_system_safe_chars.
11385
17097258
JD
113862003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11387
2a2071c3
JD
11388 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
11389 equal old values before updating.
11390
17097258
JD
11391 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
11392
11393 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
11394
113952003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11396
11397 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
11398 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
11399 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
11400 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
11401 (xg_create_scroll_bar): Pass bar to button event callback.
11402 (xg_find_top_left_in_fixed): New function.
11403 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
11404 whole scroll bar area. Get old position with
11405 xg_find_top_left_in_fixed, calculate and only clear needed areas.
11406 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
11407 dragging is in progress. Calculate whole as for Motif.
11408 Remove code that saved last values. Call gtk_range functions to
11409 set scroll bar sizes.
11410
11411 * gtkutil.h: Removed xg_ignore_next_thumb.
11412
8cb9dfbf
JB
114132003-03-17 Juanma Barranquero <lektu@terra.es>
11414
11415 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
11416 and files included from it.
11417
00c64fab
SM
114182003-03-18 Stefan Monnier <monnier@cs.yale.edu>
11419
11420 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
11421 multiple occurrences of the same keymap under different prefixes.
11422 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
11423
c45bb3b2
JR
114242003-03-16 Jason Rumney <jasonr@gnu.org>
11425
11426 * w32gui.h: Use HDC for Display.
11427
11428 * w32term.c (w32_encode_char): Prevent double-byte chars from
11429 crashing Emacs.
11430
11431 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
11432 as binary.
11433
2a6d0874
JB
114342003-03-16 Juanma Barranquero <lektu@terra.es>
11435
11436 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
11437
03eb5fab
KS
114382003-03-16 Kim F. Storm <storm@cua.dk>
11439
11440 The following changes consolidate some of the gui-independent
11441 parts of the processing and drawing of "glyph strings" from
11442 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 11443
03eb5fab
KS
11444 * dispextern.h (struct glyph): Reduce face_id member from 22 to
11445 21 bits (this reduces number of faces from 4M to 2M).
11446 Replace W32 specific w32_font_type member (2 bits) by generic
11447 font_type member (3 bits) for portability.
11448 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
11449 (enum draw_glyphs_face): Define here.
11450 (struct glyph_string): Define here. Merge W32 and X versions.
11451 (struct redisplay_interface): New members per_char_metric,
11452 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
11453 (VCENTER_BASELINE_OFFSET): Define here.
11454 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
11455 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
11456
11457 * xdisp.c: Consolidate gui-independent "glyph string" code here.
11458 (dump_glyph_string): Moved here.
11459 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
11460 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
11461 (fill_composite_glyph_string, fill_glyph_string)
11462 (fill_image_glyph_string, fill_stretch_glyph_string)
11463 (left_overwritten, left_overwriting, right_overwritten)
11464 (right_overwriting, get_char_face_and_encoding)
11465 (set_glyph_string_background_width, compute_overhangs_and_x)
11466 (append_glyph, append_composite_glyph, produce_image_glyph)
11467 (take_vertical_position_into_account, append_stretch_glyph)
11468 (produce_stretch_glyph): New generic functions (based on X version).
11469 Call platform specific functions through rif.
11470 (INIT_GLYPH_STRING): New macro, hides W32 details.
11471 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
11472 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
11473 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
11474 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
11475 (notice_overwritten_cursor):
11476 Generic functions exported to platform modules. Users changed.
11477
11478 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
11479 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
11480 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 11481 New macros for consolidated code.
2a6d0874 11482
03eb5fab
KS
11483 * xterm.c: Remove consolidated defines and code.
11484 (x_per_char_metric, x_encode_char)
11485 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
11486 (x_redisplay_interface): Add new members.
11487
11488 * w32gui.h (Display): Add dummy typedef for consolidation.
11489 (XChar2b): Define alias for wchar_t for consolidation.
11490 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11491
11492 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 11493 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
11494 New macros for consolidation.
11495
fad49844 11496 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
11497 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
11498 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
11499 (w32_per_char_metric): Change font_type arg to int for RIF.
11500 (w32_encode_char): Return int according to RIF requirements.
11501 (w32_compute_glyph_string_overhangs): Adapt to RIF.
11502 (w32_get_glyph_overhangs): New function for RIF. Uses generic
11503 x_get_glyph_overhangs.
11504 (w32_redisplay_interface): Add new members.
11505
11506 * macgui.h (XChar2b): Move typedef here for consolidation.
11507 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11508
11509 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
11510 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
11511 consolidation.
11512
11513 * macterm.c: Remove consolidated defines and code.
11514 (mac_per_char_metric): New function for RIF.
00c64fab 11515 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
11516 (mac_compute_glyph_string_overhangs): Adapt for RIF.
11517 (x_redisplay_interface): Add new members.
11518
00c64fab
SM
115192003-03-15 Stefan Monnier <monnier@cs.yale.edu>
11520
11521 * keymap.c (Vmenu_events): New var.
11522 (syms_of_keymap): Initialize it.
11523 (where_is_internal): Check more carefully what is a menu event.
11524
225c7a07
RS
115252003-03-14 Richard M. Stallman <rms@gnu.org>
11526
11527 * lread.c (read1): After #!, exit loop on eof.
11528
cea9be54
JD
115292003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11530
9ea0e54d
JD
11531 * gtkutil.h: Add declaration for xg_frame_cleared.
11532
0cb35f4e
JD
11533 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
11534
cea9be54
JD
11535 * gtkutil.c (struct xg_last_sb_pos): New structure.
11536 (handle_fixed_child): New function.
11537 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
11538 and force a redraw on them.
11539 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
11540 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
11541 so we can avoid unneeded redraws.
11542 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
11543 and force a redraw on the scroll bar.
11544 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
11545 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 11546 (xg_frame_cleared): New function.
cea9be54 11547
20b853f3
KH
115482003-03-13 Kenichi Handa <handa@m17n.org>
11549
11550 * coding.c (Fdetect_coding_region): Fix docstring.
11551 (Fdetect_coding_string): Fix docstring.
11552
7a555aff
AS
115532003-03-13 Andreas Schwab <schwab@suse.de>
11554
25cc0080
AS
11555 * gtkutil.c: Add prototype for create_menus.
11556
30225431
AS
11557 * data.c (long_to_cons): Fix type of top.
11558
11559 * xselect.c (selection_data_to_lisp_data): Use int instead of
11560 long for an integer of size 4.
11561
7a555aff 11562 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 11563 (xg_tool_bar_help_callback): Likewise.
7a555aff 11564
a3e4741f
AS
115652003-03-12 Andreas Schwab <schwab@suse.de>
11566
11567 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
11568
9668be7c
KS
115692003-03-12 Kim F. Storm <storm@cua.dk>
11570
03eb5fab 11571 The following changes consolidate the fringe handling from
9668be7c 11572 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 11573
9668be7c
KS
11574 * xdisp.c: Consolidate fringe handling code here.
11575 (left_bits, right_bits, continued_bits, continuation_bits)
11576 (ov_bits, zv_bits): Define fringe bitmaps.
11577 (fringe_bitmaps): New array holding fringe bitmaps.
11578 (draw_fringe_bitmap): Draw a specific bitmap; call display
11579 specific drawing routine via rif->draw_fringe_bitmap.
11580 (draw_row_fringe_bitmaps): Generic replacement for
11581 x_draw_row_fringe_bitmaps; all callers changed.
11582 (compute_fringe_widths): Generic replacement for
11583 x_compute_fringe_widths; all callers changed.
11584
11585 * dispextern.h (enum fringe_bitmap_type): Define here.
11586 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
11587 (fringe_bitmaps): Declare extern.
11588 (struct redisplay_interface): New member draw_fringe_bitmap.
11589 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
11590
11591 * xterm.c: Remove generic fringe code.
11592 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11593 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11594
11595 * w32term.c: Remove generic fringe code.
11596 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
11597 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 11598
9668be7c
KS
11599 * macterm.c: Remove generic fringe code.
11600 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11601 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11602
00a88f32
SM
116032003-03-11 Stefan Monnier <monnier@cs.yale.edu>
11604
11605 * print.c (Fprin1_to_string): Return unibyte string if possible.
11606
1d1de695
DK
116072003-03-09 David Kastrup <dak@gnu.org>
11608
11609 * process.c (read_process_output): We have allocated enough space
11610 for readmax and carryover, so actually use the alloted space.
11611
257f40f2
JD
116122003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11613
11614 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
11615 toolkit scrollbar click.
11616
11617 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
11618 for USE_GTK.
11619 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
11620 also.
11621 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
11622 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 11623
78819ebb 11624 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
11625
11626 * gtkutil.c (xg_get_scroll_id_for_window): New function.
11627 (xg_tool_bar_item_expose_callback): New function.
11628 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
11629 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
11630 on the tool bar widget.
11631 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
11632 to expose on the tool bar item widgets.
11633
15213141
JD
116342003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11635
26b74a0b 11636 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 11637 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
11638 deleted from the image cache).
11639
15213141
JD
11640 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
11641 the event isn't for a frame (i.e. for dialogs).
11642
20b853f3 116432003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
11644
11645 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
11646 composition components reaches the limit, terminate composing.
11647 (COMPOSITION_OK): New macro.
00a88f32 11648 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
11649 composition is found.
11650 (coding_restore_composition): Adjust the number of composition
11651 components if it is not sane.
11652
c9029fe5
JB
116532003-03-06 Juanma Barranquero <lektu@terra.es>
11654
11655 * w32term.h (struct w32_display_info): Add xrdb member to support
11656 passing resources via -xrm on Windows.
11657
11658 * w32term.c (w32_make_rdb): New function.
11659 (w32_term_init): Use it to initialize xrdb member of w32_display_info
11660 struct. Delete leftover code.
11661
11662 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
11663 for resources passed on the command line.
11664
11665 * w32reg.c (w32_get_rdb_resource): New function.
11666 (x_get_string_resource): Use it, so resources passed with -xrm
11667 supercede the ones in the registry.
11668
9d00001f
JD
116692003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11670
11671 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
11672 instead of x_top_window_to_frame.
11673
ca2417b9
JD
116742003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11675
11676 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
11677 when restarting Emacs.
11678
5b20caf0
RS
116792003-03-03 Richard M. Stallman <rms@gnu.org>
11680
11681 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
11682 to run kill-buffer-query-functions.
11683 (Qkill_buffer_query_functions): New var.
11684 (syms_of_buffer): Init and staticpro it.
11685
58e91b77
JD
116862003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11687
11688 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
11689
932357b4
KS
116902003-02-25 Kim F. Storm <storm@cua.dk>
11691
11692 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
11693 If centering point failed to make whole line visible and vscroll
11694 is non-zero, disable vscroll and try centering point again.
11695
11696 * lread.c (read1): Accept `single space' syntax like (? x).
11697
bb8db7e1
JD
116982003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11699
11700 * keyboard.c (cancel_hourglass_unwind): Surround with
11701 #ifdef HAVE_X_WINDOWS
11702
47d77aab
KH
117032003-02-25 Kenichi Handa <handa@m17n.org>
11704
11705 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
11706 process only when "subprocesses" is defined.
11707
6a097c0c
SM
117082003-02-24 Stefan Monnier <monnier@cs.yale.edu>
11709
11710 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
11711
0b063c27
JB
117122003-02-24 Juanma Barranquero <lektu@terra.es>
11713
d1135afc
JB
11714 * callint.c (fix_command): Declare as static void and move before
11715 Fcall_interactively.
11716
0b063c27
JB
11717 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
11718 (syms_of_xdisp): Don't initialize Qwhen.
11719
0af912f0
JD
117202003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11721
11722 * keyboard.c (cancel_hourglass_unwind): New function.
11723 (command_loop_1): Cancel hourglass with unwind-protect.
11724
120d0a23
RS
117252003-02-23 Richard M. Stallman <rms@gnu.org>
11726
11727 * callint.c (fix_command): New subroutine, from Fcall_interactively.
11728 Detect (when ... (region-beginning)) etc.
11729 (Fcall_interactively): Call fix_command.
11730 (Qif, Qwhen): New variables.
11731 (syms_of_callint): Init and staticpro them.
0b063c27 11732
120d0a23
RS
11733 * regex.c (print_partial_compiled_pattern): Output to stderr.
11734
4ece81a6
KG
117352003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11736
11737 * dired.c (directory_files_internal): Don't expand directory.
11738 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
11739 instead. From Lars Hansen <larsh@math.ku.dk>.
11740
e52bd6b7
SM
117412003-02-22 Stefan Monnier <monnier@cs.yale.edu>
11742
11743 * fns.c (string_to_multibyte): Remove unused var i.
11744 (Flanginfo): Fix int/Lisp_Object mixup.
11745 (void_call2): New fun.
11746 (Fmap_char_table): Use it in place of call2.
11747
11748 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
11749
11750 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
11751
11752 * keymap.c (copy_keymap_1): Make it static.
11753
11754 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
11755
c33ef7c4
JB
117562003-02-22 David Ponce <david@dponce.com>
11757
11758 * lread.c (Fload): Don't check STRING_MULTIBYTE.
11759
16782258
JD
117602003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11761
11762 * process.h: Removed subtty field from struct Lisp_Process.
11763
11764 * process.c (create_process): Remove setting of subtty.
11765 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
11766 (Fprocess_running_child_p, process_send_signal):
11767 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
11768 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
11769
3abeca61
KG
117702003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11771
11772 * keymap.c (Fdefine_key): Doc fix.
11773
92a8ce63
JB
117742003-02-21 Juanma Barranquero <lektu@terra.es>
11775
11776 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
11777
11778 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
11779 POLLING_PROBLEM_IN_SELECT.
11780
11781 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
11782 Delete #undef of POLLING_PROBLEM_IN_SELECT.
11783
11784 * s/hpux10-20.h: New file.
11785
e52bd6b7
SM
11786 * process.c (wait_reading_process_input):
11787 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 11788
20f1ef2e
KH
117892003-02-20 Kenichi Handa <handa@m17n.org>
11790
32d0a9dc
KH
11791 * fontset.c (check_fontset_name): If NAME is nil, return the
11792 default fontset.
11793 (override_font_info): New function.
e52bd6b7 11794 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
11795 (Ffontset_info): If FONTSET is not the default fontset, merge
11796 FONTSET onto the copy of the default fontset, and work on that
11797 copy. Document that NAME nil means the default fontset.
11798 (Ffontset_font): Document that NAME nil means the default fontset.
11799
20f1ef2e
KH
11800 * process.c (setup_process_coding_systems): If the process's
11801 in/out descriptor is -1, do nothing.
11802
77d1daf2
AS
118032003-02-19 Andreas Schwab <schwab@suse.de>
11804
e52bd6b7
SM
11805 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
11806 Add prototypes.
77d1daf2 11807
f9a45bb3
KH
118082003-02-19 Kenichi Handa <handa@m17n.org>
11809
11810 * xfaces.c (try_alternative_families): Try all scalable fonts if
11811 Vscalable_fonts_allowed is not Qt.
11812
72ecb43c
JD
118132003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11814
11815 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
11816
ee5be7c3
JD
118172003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11818
11819 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
11820 names.
11821
11822 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 11823 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
11824 x_face_list_fonts.
11825 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
11826 (Fx_list_fonts): Set maxnames to -1 to get all font names.
11827
4cd519a7
KS
118282003-02-18 Kim F. Storm <storm@cua.dk>
11829
068f9882
KS
11830 * lread.c (read1): Fix last change.
11831 "`" is not always special. Allow "?" after a character constant.
4cd519a7 11832
7290a344
AC
118332003-02-18 Andrew Choi <akochoi@shaw.ca>
11834
11835 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
11836
1f7fa69b
AS
118372003-02-18 Andreas Schwab <schwab@suse.de>
11838
11839 * window.c (window_scroll_pixel_based): Move outside a
11840 multi-glyph character before setting new window start.
11841
11842 * xdisp.c (in_display_vector_p): New function.
11843 * dispextern.h (in_display_vector_p): Declare.
11844
23e21195
KS
118452003-02-18 Kim F. Storm <storm@cua.dk>
11846
11847 * lread.c (read1): Fix and relax read syntax.
11848 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
11849 Only recognize "," after dotted-pair dot if inside backquote.
11850 Never include "`" or "," (inside backquote) in a symbol.
11851 Allow dotted-pair dot after a character constant.
11852 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 11853
f098b121
JD
118542003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11855
11856 * gtkutil.c (xg_tool_bar_expose_callback): New function.
11857 (xg_create_tool_bar): Force style of tool bar to be horizontal with
11858 icons. Set name of tool bar to emacs-toolbar.
11859 (update_frame_tool_bar): Connect expose event to
11860 xg_tool_bar_expose_callback.
11861
63020c46
RS
118622003-02-17 Richard M. Stallman <rms@gnu.org>
11863
11864 * keyboard.c (this_command_key_count_reset): New variable.
11865 Initiatize to 0 where this_command_key_count is set.
11866 (read_char): Save and restore this_command_key_count_reset
11867 around input method code.
11868 (read_char): If this_command_key_count_reset, echo reread commands.
11869 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
11870
fb4452cc
KH
118712003-02-17 Kenichi Handa <handa@m17n.org>
11872
11873 * fns.c (string_to_multibyte): Always return a multibyte string.
11874
bd11cc09
JR
118752003-02-16 Jason Rumney <jasonr@gnu.org>
11876
e52bd6b7
SM
11877 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
11878 Negative max_fonts parameter means list all.
bd11cc09 11879
4cdf4bde
DL
118802003-02-14 Dave Love <fx@gnu.org>
11881
11882 * fns.c (Flanginfo): Doc fix.
11883
023b93f6
KS
118842003-02-13 Kim F. Storm <storm@cua.dk>
11885
37cd4238
KS
11886 * lread.c (read_escape): Interpret \s as a SPACE character, except
11887 for \s-X in a character constant which still is the super modifier.
11888 (read1): Signal an `invalid read syntax' error if a character
11889 constant is immediately followed by a digit or symbol character.
11890
140a6b7e
KS
11891 * search.c (Fmatch_data): Doc fix. Explicitly state that
11892 match-data is undefined if last search failed.
11893
3419757d 11894 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
11895 All uses changed.
11896
7d5c86e5
JB
118972003-02-12 Juanma Barranquero <lektu@terra.es>
11898
11899 * eval.c (Fdefmacro): Fix typo.
11900
295fff2c
KS
119012003-02-12 Kim F. Storm <storm@cua.dk>
11902
11903 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
11904 macro is a string, convert meta modifiers in string when copying
11905 the string into a vector.
11906
60f3202d
KS
119072003-02-11 Kim F. Storm <storm@cua.dk>
11908
11909 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
11910
61cb0b53
KH
119112003-02-11 Kenichi Handa <handa@m17n.org>
11912
11913 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
11914
7392e23c
KS
119152003-02-10 Kim F. Storm <storm@cua.dk>
11916
11917 * process.c: Doc fixes.
11918 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
11919
ce4254bd
KH
119202003-02-10 Kenichi Handa <handa@m17n.org>
11921
9c7a329a
KH
11922 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
11923
ce4254bd
KH
11924 * process.c (QCfilter_multibyte): New variable.
11925 (setup_process_coding_systems): New function.
e52bd6b7
SM
11926 (Fset_process_buffer, Fset_process_filter):
11927 Call setup_process_coding_systems.
ce4254bd
KH
11928 (Fstart_process): Initialize the member `filter_multibyte' of
11929 struct Lisp_Process.
11930 (create_process): Call setup_process_coding_systems.
11931 (Fmake_network_process): New keyward `:filter-multibyte'.
11932 Initialize the member `filter_multibyte' of struct Lisp_Process.
11933 Call setup_process_coding_systems.
11934 (server_accept_connection): Call setup_process_coding_systems.
11935 (read_process_output): If the process has a filter, decide the
11936 multibyteness of a string to given to the filter by
11937 `filter_multibyte' member of the process. If the process doesn't
11938 have a filter and the result of conversion is unibyte, use
11939 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
11940 multibyte form.
11941 (Fset_process_coding_system): Call setup_process_coding_systems.
11942 (Fset_process_filter_multibyte): New function.
11943 (Fprocess_filter_multibyte_p): New function.
11944 (syms_of_process): Intern and staticpro QCfilter_multibyte.
11945 Defsubr Sset_process_filter_multibyte and
11946 Sprocess_filter_multibyte_p.
11947
11948 * process.h (struct Lisp_Process): New member filter_multibyte.
11949
11950 * lisp.h (setup_process_coding_systems): Add prototype.
11951
11952 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
11953 process, update coding systems for the process.
11954
b08d5f59
KH
119552003-02-09 Kenichi Handa <handa@m17n.org>
11956
11957 * fns.c (string_to_multibyte): New function.
11958 (Fstring_to_multibyte): New function.
11959 (syms_of_fns): Defsubr it.
11960
0dfd93c0
AS
119612003-02-08 Andreas Schwab <schwab@suse.de>
11962
11963 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
11964 instead of the substitution.
11965
7b76ca1c
JD
119662003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11967
11968 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
11969
11970 * xmenu.c (menu_position_func): Adjust menu popup position so that
11971 the menu is fully visible.
7b76ca1c 11972
2436a4e4
JD
119732003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11974
11975 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
11976 (x_make_frame_invisible, x_wm_set_icon_position):
11977 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
11978
11979 * xfns.c (x_set_name, x_set_title): Ditto.
11980
37d1e680
RS
119812003-02-04 Richard M. Stallman <rms@gnu.org>
11982
11983 * keyboard.c (echo_now): Update before_command_echo_length.
11984 (Freset_this_command_lengths): Reset this_command_key_count etc.
11985 immediately rather than arranging to do it later.
11986 (before_command_key_count_1, before_command_echo_length_1)
11987 (before_command_restore_flag): Vars deleted.
11988 (add_command_key): Don't handle before_command_restore_flag.
11989 (read_char, record_menu_key): Don't update before_command_key_count or
11990 before_command_echo_length.
11991 (read_char): Don't handle before_command_restore_flag.
11992
11993 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
11994 in direct-output clauses if it wouldn't be called in the ordinary case.
11995
578846a3
KS
119962003-02-04 Kim F. Storm <storm@cua.dk>
11997
11998 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
11999
49853a4d
JD
120002003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12001
12002 * gtkutil.c (remove_from_container): Copying list is not needed.
12003 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
12004 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
12005 on list returned from gtk_container_get_children to avoid memory leak.
12006
8b53dc06
JR
120072003-02-01 Jason Rumney <jasonr@gnu.org>
12008
5d54d177
JR
12009 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
12010 local malloc.
12011 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
12012 definitions in xpm.h.
12013 (init_xpm_functions): New function.
f63fd14e 12014 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
12015 (init_external_image_libraries): Try to load libXpm.dll.
12016
8b53dc06
JR
12017 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
12018 timestamp.
12019
b222e415
DL
120202003-01-31 Dave Love <fx@gnu.org>
12021
12022 * syntax.c (Fskip_chars_forward)
12023 (open-paren-in-column-0-is-defun-start): Doc fix.
12024
c60ee5e7
JB
120252003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
12026
12027 * fileio.c: Support // at start of name for Cygwin (just added proper
12028 preprocessor tests).
12029
12030 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
12031
12032 * Makefile.in: Use @EXEEXT@ for Cygwin.
12033
12034 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
12035
12036 * s/cygwin.h: Added for Cygwin port.
12037
53b37591
JB
120382003-01-31 Juanma Barranquero <lektu@terra.es>
12039
12040 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
12041 when including gif_lib.h.
fe929957 12042 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
12043 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
12044 Windows. Disable color table lookups. Call library functions
53b37591 12045 through pointers determined at runtime.
fe929957
JB
12046 (init_external_image_libraries): Try to load libungif.dll and
12047 libtiff.dll.
53b37591 12048
45415a8f
KH
120492003-01-31 Kenichi Handa <handa@m17n.org>
12050
12051 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 12052 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 12053
a97e4138
JD
120542003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12055
e52bd6b7 12056 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 12057
6eed9bed
DL
120582003-01-30 Dave Love <fx@gnu.org>
12059
12060 * alloc.c (Vgc_elapsed, gcs_done): New variables.
12061 (Fgarbage_collect): Use them.
12062 (init_alloc, syms_of_alloc): Set them up.
12063
100dcd40
JB
120642003-01-30 Juanma Barranquero <lektu@terra.es>
12065
12066 * w32fns.c (init_external_image_libraries): Add missing operator.
12067
fbd852af
JR
120682003-01-29 Jason Rumney <jasonr@gnu.org>
12069
12070 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
12071 an alternative name for jpeg.dll.
12072
8a2d8020
KH
120732003-01-29 Kenichi Handa <handa@m17n.org>
12074
12075 * xdisp.c (set_cursor_from_row): Pay attention to string display
12076 properties.
12077
058c18c7
AC
120782003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
12079
12080 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
12081 <escape>.
12082 (keycode_to_xkeysym_table): Reformat and add more comments.
12083 (XTread_socket): Drop special case for backspace.
12084
385f11cf
AC
120852003-01-28 Andrew Choi <akochoi@shaw.ca>
12086
12087 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
12088 values in old-style RGB specs.
12089
c922a224
JB
120902003-01-27 Juanma Barranquero <lektu@terra.es>
12091
12092 * w32fns.c (init_external_image_libraries): Try alternate names for the
12093 jpeg dll.
12094
0a1d6de0
JD
120952003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12096
12097 * gtkutil.c (create_dialog, xg_separator_p)
12098 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
12099 before calling strcmp or strlen.
12100
a97e4138 121012003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
12102
12103 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
12104 and handle image load failure.
12105
28908312
JR
121062003-01-26 Jason Rumney <jasonr@gnu.org>
12107
12108 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
12109 New functions.
f63fd14e
JB
12110 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
12111 Disable color table lookups. Call jpeg library functions
28908312
JR
12112 through pointers determined at runtime.
12113 (init_external_image_libraries): Try to load jpeg.dll.
12114
84e47416
RS
121152003-01-25 Richard M. Stallman <rms@gnu.org>
12116
12117 * lisp.h: Declare format2 instead of format1.
12118
12119 * fileio.c (barf_or_query_if_file_exists):
12120 Call format2 instead of format1.
12121
12122 * editfns.c (format2): New function, replaces format1
12123 but takes exactly two Lisp Objects as format args.
12124
12125 * buffer.c (Fkill_buffer): Call format2 instead of format1.
12126
a97e4138 121272003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
12128
12129 * xterm.h: Change to return value of x_dispatch_event to int.
12130
12131 * xterm.c (x_filter_event): New function.
12132 (event_handler_gdk, XTread_socket): Call x_filter_event.
12133 (x_dispatch_event): Change to return value of finish.
12134 (event_handler_gdk): Use return value from x_dispatch_event.
12135
12136 * xfns.c (x_window): Call create_frame_xic for GTK version to
12137 initialize input methods.
12138
12139 * gtkutil.h: Add (void) prototypes.
12140
12141 * gtkutil.c (create_menus): Remove code that puts the help menu to
12142 the right.
12143
54eefef1
JR
121442003-01-25 Jason Rumney <jasonr@gnu.org>
12145
12146 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
12147 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
12148 (png_load): Adjust colors for Windows. Use Windows
12149 bitmaps. Disable color table lookups.
c262430d
JR
12150 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
12151 (init_png_functions): New function.
12152 (png_read_from_memory, png_load): Call png library functions
12153 through pointers determined at runtime.
12154 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
12155 (init_external_image_libraries): New function.
12156 (init_xfns): Call it.
54eefef1 12157
1a9e275b
AS
121582003-01-24 Andreas Schwab <schwab@suse.de>
12159
12160 * minibuf.c (Fminibuffer_message): Verify type of parameter.
12161
a97e4138 121622003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
12163
12164 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
12165 of static initializer.
12166
422eec7e
DL
121672003-01-24 Dave Love <fx@gnu.org>
12168
12169 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
12170 architectures.
12171
12172 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
12173 Use __alignof__.
12174
2a026b04
KH
121752003-01-24 Kenichi Handa <handa@m17n.org>
12176
12177 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 12178 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
12179 (command_loop_1): Call adjust_point_for_property with proper
12180 second arg.
12181
a18bb28d
JR
121822003-01-22 Jason Rumney <jasonr@gnu.org>
12183
12184 Sync changes with xterm.c and xfns.c.
12185
12186 * w32term.c (x_draw_glyph_string_foreground)
12187 (x_draw_composite_glyph_string_foreground): Implement overstriking.
12188
12189 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
12190 phys_cursor's hpos is overwritten. This is still not completely
12191 correct, as it doesn't really make sense to use hpos at all to
12192 get the cursor glyph (as that is relative to the width of the
12193 characters on the line, which may have changed during the update).
12194
12195 * w32term.c (notice_overwritten_cursor): Handle the special case
12196 of the cursor being in the first blank non-text line at the
12197 end of a window.
12198
12199 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12200 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12201 Compute from the x position returned by x_draw_glyphs.
12202
12203 (x_display_and_set_cursor): Don't set phys_cursor_width here,
12204 except for NO_CURSOR and system caret, to make phys_cursor_width
12205 contain what its name suggests.
12206 (notice_overwritten_cursor): Consider the cursor image erased if
12207 the output area intersects the cursor image in y-direction.
12208
6a097c0c
SM
12209 * w32term.c (note_mode_line_or_margin_highlight): Rename from
12210 note_mode_line_highlight and extend.
a18bb28d
JR
12211
12212 * w32term.c (last_window): New variable.
12213 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
12214 (note_mouse_movement): Remove reimplemented code in #if 0.
12215
12216 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
12217 not update_mode_lines, and always set it to 1.
12218
ac6e47ef
JR
122192003-01-21 Jason Rumney <jasonr@gnu.org>
12220
12221 * w32fns.c (IDC_HAND): Define it if system headers don't.
12222
122232003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12224
12225 * w32term.h (struct w32_output): New member hand_cursor.
12226 (WM_EMACS_SETCURSOR): New message definition.
12227
12228 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
12229 function w32_define_cursor.
12230 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
12231 position, change member name output_data.x to output_data.w32 and
12232 add function w32_define_cursor.
12233 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
12234 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
12235 (w32_initialize_display_info):
12236 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
12237
12238 * w32fns.c (Vx_hand_shape): New variable.
12239 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
12240 WM_EMACS_SETCURSOR.
12241 (x-create-frame): Setup Cursor types.
12242
ceb39a17
JB
122432003-01-21 David Ponce <david@dponce.com>
12244
ac6e47ef 12245 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
12246 ccl->reg[2] to -1 before calling ccl_driver.
12247 (Sync. with xterm.c x_encode_char change by Kenichi Handa
12248 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
12249 (w32_draw_relief_rect): Declare all args.
12250 (w32_define_cursor): New.
12251
12252 * w32fns.c (w32_load_cursor): New function.
12253 (w32_init_class): Use it.
12254 (x_put_x_image): Declare all args.
12255
b6189c3b 122562003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
12257
12258 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
12259
a97e4138 122602003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
12261
12262 * gtkutil.c: Must include stdio.h before termhooks.h
12263
83fc9c63
DL
122642003-01-21 Dave Love <fx@gnu.org>
12265
12266 * alloc.c (Fgc_status): Print zombie list.
12267 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12268 Fix assignment of zombies.
12269 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12270 Don't take car of non-cons.
12271
12272 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12273
12274 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12275
fe04b8c8
JR
122762003-01-20 David Ponce <david@dponce.com>
12277
12278 * w32menu.c (digest_single_submenu): Declare all args.
12279
12280 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
12281 changes in xmenu.c:
12282
12283 (parse_single_submenu): Use individual keymap's prompt
12284 string as pane name, if there is one.
12285 (set_frame_menubar): Save menu_items_n_panes from each call to
12286 parse_single_submenu and use it when calling digest_single_submenu.
12287
539e69a9
ST
122882003-01-20 Steven Tamm <steventamm@mac.com>
12289
7e26f91b 12290 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
12291 before sending a scroll-wheel event.
12292
675d000f
RS
122932003-01-20 Richard M. Stallman <rms@gnu.org>
12294
12295 * xdisp.c (redisplay_window): If mini window's buffer is not
12296 a minibuffer, then redisplay it like other windows.
12297
a97e4138 122982003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
12299
12300 * gtkutil.c (xg_create_frame_widgets): Check if there is an
12301 external tool bar before setting tool bar height.
12302
048addec
JD
123032003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12304
12305 * xterm.c (handle_one_xevent): Surround popup_activated
12306 with #ifdef:s for non-toolkit version.
12307
12308 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
12309 (gtkutil.o): New file.
12310 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
12311 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
12312
12313 * gtkutil.c: New file for GTK version.
12314
12315 * gtkutil.h: New file for GTK version.
12316
12317 * xterm.h: Add xt_or_gtk_widget.
12318 Include gtk files for USE_GTK.
12319 (struct x_output): Add toolbar_height.
12320 (struct x_output): Add GTK widgets and Gdk size_hints.
12321 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
12322 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
12323 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
12324
12325 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 12326 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
12327 (note_mouse_highlight): Check popup_activated for USE_GTK.
12328 (xt_action_hook): Don't compile if USE_GTK.
12329 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
12330 (xg_scroll_callback): New function.
12331 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
12332 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
12333 for USE_GTK.
12334 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
12335 xg_show_scroll_bar for USE_GTK.
12336 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
12337 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
12338 (event_handler_gdk): New function for USE_GTK.
12339 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
12340 (handle_one_xevent): Make sure widget is mapped before
12341 calling x_real_positions for USE_GTK.
12342 (XTread_socket): Add GTK event loop for USE_GTK.
12343 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
12344 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
12345 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
12346 (x_iconify_frame): Add code for USE_GTK.
12347 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
12348 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
12349 is in gtkutil.c.
12350 (x_term_init): Add initialization for GTK.
12351 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
12352
12353 * xmenu.c: Include gtkutil.h for USE_GTK.
12354 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
12355 (single_menu_item, single_menu_item, Fx_popup_dialog):
12356 Check for USE_GTK.
048addec
JD
12357 (popup_widget_loop): New function for USE_GTK.
12358 (x_activate_menubar): Add code for USE_GTK.
12359 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
12360 (menu_highlight_callback, menubar_selection_callback):
12361 Add USE_GTK versions.
048addec
JD
12362 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
12363 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
12364 (free_frame_menubar): Only compile if not USE_GTK. GTK version
12365 is in gtkutil.c.
12366 (popup_selection_callback): New version for USE_GTK.
12367 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 12368 one USE_X_TOOLKIT version.
048addec
JD
12369 (xmenu_show): Call create_and_show_popup_menu.
12370 (dialog_selection_callback): New version for USE_GTK.
12371 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 12372 one USE_X_TOOLKIT version.
048addec
JD
12373 (xdialog_show): Call create_and_show_dialog.
12374
12375 * xfns.c: Include gtkutil for USE_GTK.
12376 (x_window_to_frame, x_any_window_to_frame)
12377 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12378 (x_top_window_to_frame): Add code for USE_GTK.
12379 (x_set_background_color): Call xg_set_background_color for GTK.
12380 (x_set_menu_bar_lines): Check for USE_GTK.
12381 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
12382 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
12383 (x_window): Call xg_create_frame_widgets for USE_GTK.
12384 (Fx_create_frame): Check for USE_GTK
12385 (Fx_file_dialog): New implementation for USE_GTK.
12386
12387 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
12388 (update_menu_bar): Add check for USE_GTK.
12389 (update_tool_bar): Add check for USE_GTK and external tool bar.
12390 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
12391 (redisplay_internal): Add check for USE_GTK and popup_activated.
12392 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
12393 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
12394 (display_menu_bar): Add check for USE_GTK
12395
78819ebb 12396 * lisp.h (Vx_resource_name): Declare extern.
048addec 12397
a64387ee 12398 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
12399 for USE_GTK.
12400 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
12401
12402 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
12403 (FRAME_EXTERNAL_TOOL_BAR): New macro.
12404 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
12405
12406 * fileio.c (Fread_file_name): Add check for USE_GTK.
12407
6bdb309a
SM
12408 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
12409 Add check for USE_GTK.
048addec
JD
12410
12411 * config.in: Added HAVE_GTK
12412
12413 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
12414
124152003-01-18 Stefan Monnier <monnier@cs.yale.edu>
12416
12417 * charset.h (Funibyte_char_to_multibyte): Export.
12418
124192003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12420
12421 * xmenu.c (mouse_position_for_popup): New function.
12422 (Fx_popup_menu): Call mouse_position_for_popup for X and
12423 mouse_position_hook for others.
12424
124252003-01-17 Kim F. Storm <storm@cua.dk>
12426
12427 * editfns.c (Finsert): Mention `string-make-multibyte' and
12428 `string-as-multibyte' in doc string.
12429
124302003-01-17 Kenichi Handa <handa@m17n.org>
12431
12432 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 12433
048addec
JD
12434 * editfns.c (Fformat): Convert an unibyte char argument that is
12435 formatted by "%c" to multibyte if the total result must be a
12436 multibyte string.
cd7df9c0 12437
048addec 124382003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 12439
048addec
JD
12440 * process.c (set-process-filter): Document unibyte/multibyte-ness
12441 of string argument.
56210ecd 12442
048addec 124432003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 12444
048addec 12445 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 12446
048addec
JD
12447 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
12448 (re_search_2): Likewise.
6df8b9fe 12449
048addec 124502003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 12451
048addec
JD
12452 * xdisp.c (message_dolog): Fix bug of the case that *Message*
12453 buffer is unibyte.
292ddc31 12454
048addec 124552003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 12456
048addec 12457 * fns.c (Fsubstring): Clarify doc string.
292ddc31 12458
048addec
JD
12459 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
12460 (Fprevious_char_property_change)
12461 (Fnext_single_char_property_change)
12462 (Fprevious_single_char_property_change, Fnext_property_change)
12463 (Fnext_single_property_change, Fprevious_property_change)
12464 (Fprevious_single_property_change, Fadd_text_properties)
12465 (Fput_text_property, Fset_text_properties)
12466 (Fremove_text_properties, Fremove_list_of_text_properties)
12467 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 12468
048addec 124692003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 12470
048addec
JD
12471 * process.h (struct Lisp_Process): New member plist replaces old
12472 member private_vars. All uses changed.
63e4e4c6 12473
048addec 12474 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 12475 (QCplist): Rename from QCvars. Change all uses.
048addec 12476 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 12477 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 12478 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 12479 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 12480
048addec 124812003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 12482
6bdb309a 12483 * m/delta.h: Remove (obsolete).
e833850f 12484
048addec 124852003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 12486
048addec
JD
12487 * fileio.c (Fdelete_directory, Fdelete_file): Document the
12488 behaviour in front of symlinks.
12489 (Fdelete_file): Raise an error on directories.
817cb127 12490
048addec 124912003-01-13 Dave Love <fx@gnu.org>
817cb127 12492
048addec 12493 * fns.c (Freverse): Use QUIT.
3e8cf2ea 12494
048addec 124952003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 12496
048addec
JD
12497 * minibuf.c (minibuffer_completion_contents):
12498 Error if point is inside prompt.
3e8cf2ea 12499
048addec
JD
12500 * keyboard.c (command_loop_1): Don't redisplay directly
12501 if there's a post-command-hook.
3e8cf2ea 12502
048addec
JD
12503 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
12504 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 12505
048addec 125062003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 12507
048addec 12508 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 12509
048addec
JD
12510 * process.c (QCvars): New variable.
12511 (syms_of_process): Intern and staticpro it.
12512 (Fset_process_contact): Removed function.
12513 (Fprocess_variable, Fset_process_variable): New functions.
12514 (syms_of_process): Defsubr them.
12515 (Fstart_process): Initialize private_vars plist to nil.
12516 (Fmake_network_process): New arg :vars to setup the private
12517 variables for new network process.
12518 (server_accept_connection): Copy server's private variables to
12519 client process.
2c10f029 12520
048addec
JD
12521 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
12522 crashes). Code rewritten and simplified. Now directly aligns the
12523 pointer and recalculates pure_bytes_used, rather than aligning the
12524 size and adjusting the pointer.
b8a76c6c 12525
048addec 125262003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 12527
048addec
JD
12528 * process.c (Fset_process_contact): New function.
12529 (syms_of_process): defsubr it.
12530 (make-network-process): Update doc.
3a8d0899 12531
048addec 125322003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 12533
048addec
JD
12534 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
12535 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 12536
048addec 125372003-01-10 Dave Love <fx@gnu.org>
4abc7470 12538
048addec 12539 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 12540
048addec 125412003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 12542
048addec
JD
12543 * process.c (Fmake_network_process): Convert new port number
12544 to host byte order for `:service t' case. From Mario Lang.
bf338245 12545
048addec 125462003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 12547
048addec
JD
12548 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
12549 instead of XtAppProcessEvent.
bf338245 12550
048addec
JD
12551 * xterm.c (handle_one_xevent): New function.
12552 (x_dispatch_event): New function.
12553 (XTread_socket): Call handle_one_xevent.
bf338245 12554
048addec 12555 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 12556
048addec
JD
12557 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
12558 call XQueryPointer to get coordinates.
12559 (popup_get_selection): Do not set popup_activated_flag to zero,
12560 let popup_deactivate_callback do that. Needed for Motif.
12561 Call x_dispatch_event instead of XtDispatchEvent.
12562 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 12563
048addec 125642003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 12565
6bdb309a 12566 * process.c (server_accept_connection): Fix recording of new
048addec
JD
12567 connection's local address in :local property of contact info.
12568 (Fmake_network_process): Record local network address for new
12569 client processes in :local property of contact info.
6bdb309a 12570 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 12571
048addec 125722003-01-07 Dave Love <fx@gnu.org>
00e3ab56 12573
048addec 12574 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 12575
048addec 125762003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 12577
048addec 12578 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 12579
048addec
JD
12580 * eval.c (Fuser_variable_p): Doc change. For custom variables,
12581 use the same test as for custom-variable-p.
8c6d74c6 12582
048addec 125832003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 12584
048addec
JD
12585 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
12586 Count LAST_LINE_MISFIT in scroll margin for end of window.
12587 Move label too_near_end before setting SCROLL_MARGIN_POS.
12588 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 12589
048addec
JD
12590 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
12591 scroll_conservatively case. If scrolling that much doesn't change
12592 STARTP, move it down one line.
e833850f 12593
048addec
JD
12594 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
12595 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 12596
048addec
JD
12597 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
12598 selected frame.
8c6d74c6 12599
048addec 12600 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 12601 (syms_of_keymap): Staticpro them.
048addec
JD
12602 (Fapropos_internal): Initialize them and clear them out.
12603 Don't GCPRO them.
8c6d74c6 12604
048addec
JD
12605 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
12606 Doc fixes.
8c6d74c6 12607
048addec
JD
12608 * lisp.h: New misc type Lisp_Save_Value.
12609 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
12610 (XSAVE_VALUE): New macro.
12611 (struct Lisp_Save_Value): New data type.
12612 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 12613 (make_save_value): Declare.
8c6d74c6 12614
048addec 12615 * alloc.c (make_save_value): New function.
8c6d74c6 12616
048addec
JD
12617 * xterm.c (x_catch_errors): Save dpy using make_save_value.
12618 (x_catch_errors_unwind): Call XSync.
8c6d74c6 12619
048addec 126202003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 12621
048addec 12622 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 12623
048addec
JD
12624 * keyboard.c (command_loop_1): Call adjust_point_for_property
12625 in direct action cases for Qforward_char and Qbackward_char.
12626 Set already_adjusted so it won't be done twice.
8c6d74c6 12627
b6189c3b 126282002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 12629
048addec
JD
12630 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
12631 type definition of size_t.
8c609cff 12632
048addec 126332003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 12634
048addec
JD
12635 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
12636 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 12637
048addec 126382002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 12639
048addec
JD
12640 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
12641 to default to t.
fa634a5e 12642
048addec 126432002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 12644
048addec 12645 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 12646
048addec 126472002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 12648
7e26f91b 12649 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
12650 allow building in a different directory than source. Uses some
12651 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 12652
048addec 126532002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 12654
048addec
JD
12655 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
12656 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
12657 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
12658 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 12659
048addec 126602002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 12661
048addec
JD
12662 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
12663 <scroll-down-aggressively>: Doc fix.
2155ecf3 12664
048addec
JD
12665 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
12666 string as pane name, if there is one.
12667 (set_frame_menubar): Save menu_items_n_panes from each call to
12668 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 12669
048addec
JD
12670 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
12671 Don't try to make last line fully visible if it is past end of window.
61f1d295 12672
048addec 126732002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 12674
048addec
JD
12675 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
12676 (mac_menu_show): Add support for hierarchical popup menus.
12677 (add_menu_item): Remove indentation support.
12678 (fill_submenu, fill_menu): Create hierarchical menus
12679 instead of using indentation.
0b17a217 12680
048addec 126812002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 12682
048addec
JD
12683 * xdisp.c (try_cursor_movement): Don't call try_window here.
12684 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 12685
048addec 12686 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 12687
048addec 126882002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 12689
048addec
JD
12690 * macterm.c (XTread_socket): Call KeyTranslate for control and
12691 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 12692 being treated like C-%. Do not look for shift key to deal
048addec 12693 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 12694
048addec 126952002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 12696
048addec
JD
12697 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
12698 If it is non-nil, run timers. Use an unwind-protect to requeue
12699 the events that were read ahead.
12700 (popup_get_selection_unwind): New subroutine.
12701 (popup_get_selection_queue): File-scope variable now holds that queue.
12702 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
12703 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
12704 Use an unwind-protect to pop down the dialog box.
12705 (xdialog_show_unwind): New subroutine implements that.
f02cac82 12706
048addec
JD
12707 * xdisp.c (row_containing_pos): Change exit test using last_y.
12708 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 12709
048addec
JD
12710 * lread.c (load_error_handler): New function.
12711 (Fload): Handle errors in Fsubstitute_in_file_name.
12712 Don't expect Fsignal to return.
f02cac82 12713
048addec
JD
12714 * eval.c: Errors and throws work right with interrupt blocking.
12715 (struct catchtag): New elt interrupt_input_blocked.
12716 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
12717 (internal_catch, Fcondition_case, internal_condition_case)
12718 (internal_condition_case_1, internal_condition_case_2): Save it.
12719 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 12720
048addec 12721 * editfns.c (Fformat): Add parens.
f02cac82 12722
048addec
JD
12723 * dired.c (file_name_completion): Fix that change.
12724 Delete special quit-handling code; just use QUIT.
f02cac82 12725
b6189c3b 127262002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 12727
048addec
JD
12728 * dired.c (file_name_completion): Close directory on error
12729 just as in directory_files_internal.
1a590729 12730
048addec 127312002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 12732
048addec
JD
12733 * window.c (Fset_window_configuration): Set old_point to correct
12734 value when new_current_buffer == current_buffer.
f02cac82 12735
048addec 127362002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 12737
048addec
JD
12738 Revisited my earlier fix for the following entry in etc/PROBLEMS:
12739 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12740 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 12741
048addec
JD
12742 These changes were in part based upon suggestions made by Peter
12743 'Luna' Runestig [peter@runestig.com].
9785d95b 12744
f4a5a485
SM
12745 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
12746 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
12747 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 12748 global variables.
9785d95b 12749
048addec
JD
12750 * w32.c (globals_of_w32): New function. Used to initialize those
12751 global variables that must always be initialized on startup even
12752 when the global variable initialized is non zero. Its primary
12753 purpose at this time is to set the global variables
12754 g_b_init_is_windows_9x, g_b_init_open_process_token,
12755 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
12756 g_b_init_get_sid_identifier_authority to 0 on startup.
12757 Called from main.
9785d95b 12758
048addec
JD
12759 * w32.c (is_windows_9x): Perform initialization only if
12760 g_b_init_is_windows_9x is equal to 0. On initialization set
12761 g_b_init_is_windows_9x equal to 1.
2308af15 12762
048addec
JD
12763 * w32.c (open_process_token): Perform initialization only if
12764 g_b_init_open_process_token is equal to 0. On initialization set
12765 g_b_init_open_process_token equal to 1.
2308af15 12766
048addec
JD
12767 * w32.c (get_token_information): Perform initialization only if
12768 g_b_init_get_token_information is equal to 0. On initialization
12769 set g_b_init_get_token_information equal to 1.
9785d95b 12770
048addec
JD
12771 * w32.c (lookup_account_sid): Perform initialization only if
12772 g_b_init_lookup_account_sid is equal to 0. On initialization
12773 set g_b_init_lookup_account_sid equal to 1.
9785d95b 12774
048addec
JD
12775 * w32.c (get_sid_identifier_authority): Perform initialization
12776 only if g_b_init_get_sid_identifier_authority is equal to 0.
12777 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 12778
f63fd14e 12779 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
12780 those global variables that must always be initialized on startup
12781 even when the global variable initialized is non zero.
12782 Its primary purpose at this time is to initialize the global variable
12783 track_mouse_event_fn.
9785d95b 12784
a64387ee 12785 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 12786 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 12787
048addec 12788 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 12789
f63fd14e 12790 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
12791 initialize those global variables that must always be initialized
12792 on startup even when the global variable initialized is non zero.
12793 Its primary purpose at this time is to initialize the global
12794 variables get_menu_item_info and set_menu_item_info.
9785d95b 12795
048addec
JD
12796 * w32menu.c (initialize_frame_menubar): Remove initialization of
12797 get_menu_item_info and set_menu_item_info.
9785d95b 12798
048addec 12799 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 12800
048addec
JD
12801 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
12802 Declare them.
9785d95b 12803
048addec
JD
12804 * emacs.c (main): Call globals_of_w32 prior to calling
12805 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
12806 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
12807 is defined.
9785d95b 12808
048addec
JD
12809 * w32term.c (x_update_window_begin): Fix Windows API error
12810 detected by BoundsChecker. Test to determine if
12811 w32_system_caret_hwnd is NULL prior to attempting to use
12812 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 12813
048addec
JD
12814 * w32term.c (x_update_window_end): Fix Windows API error
12815 detected by BoundsChecker. Test to determine if
12816 w32_system_caret_hwnd is NULL prior to attempting to use
12817 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 12818
048addec 128192002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 12820
048addec
JD
12821 * coding.c (coding_system_require_warning): New variable.
12822 (syms_of_coding): DEFVAR it.
b6da19ef 12823
048addec 12824 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 12825
048addec
JD
12826 * fileio.c (choose_write_coding_system): Even if
12827 Vcoding_system_for_write is non-nil, if
12828 coding_system_require_warning is nonzero, call
12829 Vselect_safe_coding_system_function.
bfcf6dbe 12830
048addec 128312002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 12832
048addec
JD
12833 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
12834 (lisp): Add font-core.
2c568af5 12835
048addec 128362002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 12837
048addec
JD
12838 * textprop.c (text_read_only): New arg `propval'.
12839 (get_char_property_and_overlay): Remove unused var `next_overlay'.
12840 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 12841
048addec 128422002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 12843
048addec 12844 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 12845
048addec 128462002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 12847
048addec
JD
12848 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
12849 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
12850 Be more careful about when help_events are generated.
96720f09 12851
048addec 128522002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 12853
048addec
JD
12854 * macterm.c (mac_check_for_quit_char): Correctly set the
12855 modifiers of the event to 0.
12856 * mac.c (sys_select): Duplicate rfds before calling select to
12857 ensure that rfds survive the while loop.
e5ae1c49 12858
048addec 128592002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 12860
048addec
JD
12861 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
12862 row_containing_pos returned NULL.
2eb46b2d 12863
048addec 128642002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 12865
6bdb309a 12866 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 12867 non-blocking.
6bdb309a 12868 (sys_select): Fix sys_select to not use a timeout larger than
048addec 12869 the one given.
b11f1d8a 12870
048addec 128712002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 12872
048addec 12873 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 12874
048addec 128752002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 12876
048addec
JD
12877 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
12878 as the last thing.
a4ac5b17 12879
048addec 128802002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 12881
048addec 12882 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 12883
048addec 128842002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 12885
048addec
JD
12886 * editfns.c (Fformat): Handle precision in string conversion
12887 specifiers like libc functions do (ie, print at most that many
12888 characters).
85cce843 12889
048addec 128902002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 12891
048addec
JD
12892 * xdisp.c (row_containing_pos): Check more carefully
12893 whether charpos is really in the row before returning it.
0d4d26a7 12894
048addec 128952002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 12896
048addec 12897 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 12898
048addec
JD
12899 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
12900 each stack frame. This may change as it could be time consuming.
0d4d26a7 12901
048addec
JD
12902 * macterm.c (mac_check_for_quit_char, quit_char_comp)
12903 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 12904 (mac_initialize): Add code to check for pressing of quit_char
048addec 12905 in the OS event queue.
b11f1d8a 12906
048addec
JD
12907 * mac.c (sys_select): Call mac_check_for_quit_char every second
12908 while blocking on select.
0d4d26a7 12909
048addec
JD
12910 * mac.c (sys_read): Use sys_select to test for input first
12911 before calling read, to allow C-g to break.
9252f7bc 12912
048addec 129132002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 12914
048addec 12915 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 12916
048addec 12917 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 12918
048addec 12919 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 12920
048addec
JD
12921 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
12922 autoload.
9252f7bc 12923
048addec 12924 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 12925
048addec 12926 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 12927
048addec 129282002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 12929
048addec 12930 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 12931
048addec 129322002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 12933
048addec 12934 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 12935
048addec 12936 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 12937
048addec 12938 * alloca.c: Don't use #error.
02d588e2 12939
048addec 129402002-12-03 Dave Love <fx@gnu.org>
02d588e2 12941
048addec
JD
12942 * buffer.c (Qucs_set_table_for_input): New.
12943 (Fget_buffer_create): Use it.
12944 (Qset_buffer_major_mode_hook): Deleted.
12945 (Fset_buffer_major_mode): Revert previous change.
12946 (init_buffer_once): Intern ucs-set-table-for-input.
12947 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
12948 Add &Qucs_set_table_for_input.
451e2697 12949
048addec 129502002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 12951
048addec
JD
12952 * callint.c (Fcall_interactively): Use next_event only if less
12953 than key_count.
72742a99 12954
048addec 129552002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 12956
048addec
JD
12957 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
12958 names to 255 characters.
72742a99 12959
048addec
JD
12960 * macterm.c (XTread_socket): If all frames have been collapsed,
12961 expand the first one before handling drag-and-drop events.
72742a99 12962
048addec
JD
12963 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
12964 which is detected by autoconf.
40e6ff95 12965
048addec 129662002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 12967
048addec
JD
12968 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
12969 offset in two hints table to allow prebinding to be redone and
12970 allow the executable to be stripped.
c02138c6 12971
048addec 129722002-11-29 Dave Love <fx@gnu.org>
c02138c6 12973
048addec
JD
12974 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
12975 already provided.
0e47bbf7 12976
048addec 129772002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 12978
048addec
JD
12979 * xdisp.c (start_display): Check more intelligently for
12980 whether the line is continued.
12981 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 12982
048addec 129832002-11-28 Dave Love <fx@gnu.org>
44129dcb 12984
048addec
JD
12985 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
12986 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 12987
048addec 129882002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 12989
048addec
JD
12990 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
12991 more descriptive error output from lread.c:Fload upon most require
12992 cycles during boostrapping.
1637fd2c 12993
048addec 129942002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 12995
048addec
JD
12996 * fileio.c (Finsert_file_contents): Give a more appropriate error
12997 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 12998
048addec
JD
12999 * dired.c (Ffile_attributes): Don't return negative file sizes for
13000 files bigger than 2Gb when off_t is 32 bit.
540c2788 13001
048addec 130022002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 13003
048addec 13004 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 13005
048addec
JD
13006 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
13007 Test GETPGRP_VOID instead.
13008 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 13009
048addec
JD
13010 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
13011 Don't define.
13012 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 13013
048addec 13014 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 13015
048addec 130162002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 13017
048addec
JD
13018 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
13019 supported.
4042a81a 13020
048addec 130212002-11-25 Dave Love <fx@gnu.org>
4042a81a 13022
048addec 13023 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 13024
048addec 13025 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 13026
048addec 130272002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 13028
048addec 13029 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 13030
048addec 130312002-11-24 Steven Tamm <steventamm@mac.com>
82122254 13032
048addec
JD
13033 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
13034 determine the size of pointers alloced in unexed space instead
13035 of using possibly invalid emacs_zone pointers. This fixes the
13036 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 13037
048addec 130382002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 13039
048addec 13040 * search.c (Fstring_match): Doc fix.
c1ee53bc 13041
048addec
JD
13042 * callint.c (Fcall_interactively): If a command fails because
13043 `*' detects a read-only buffer, but RECORD_FLAG is set,
13044 record it anyway if the args don't actually do tty input.
5598c32e 13045
048addec 130462002-11-22 Dave Love <fx@gnu.org>
5598c32e 13047
048addec 13048 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 13049
048addec
JD
13050 * keyboard.c (interrupt_signal): Provide forward declaration.
13051 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 13052
048addec 13053 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 13054
048addec 130552002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 13056
048addec
JD
13057 * eval.c (interactive_p): Skip any number of bytecode
13058 and special form frames, in any order.
516eea8e 13059
048addec 130602002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 13061
048addec
JD
13062 * w32fns.c (convert_mono_to_color_image): New function.
13063 (xbm_load, xbm_load_image): Use it when foreground or background
13064 is explicitly set.
04dbfa08 13065
048addec 130662002-11-19 Dave Love <fx@gnu.org>
04dbfa08 13067
048addec 13068 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 13069
048addec 130702002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 13071
048addec
JD
13072 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
13073 (XPutPixel): Swap blue and red.
13074 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
13075 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13076 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
13077 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 13078
048addec 130792002-11-18 Dave Love <fx@gnu.org>
d824beee 13080
048addec 13081 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 13082
048addec 13083 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 13084
048addec 13085 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 13086
048addec
JD
13087 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
13088 malloc, realloc, calloc.
d824beee 13089
048addec
JD
13090 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
13091 (bcmp): Don't define.
d824beee 13092
048addec 13093 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 13094
048addec 13095 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 13096
048addec 13097 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 13098
048addec 13099 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 13100
048addec
JD
13101 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
13102 Don't include alloca.h.
d824beee 13103
048addec 13104 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 13105
048addec 13106 * regex.c (_GNU_SOURCE): Don't define.
1998560a 13107
048addec 13108 * process.c (_GNU_SOURCE): Don't define.
1998560a 13109
048addec 13110 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 13111
048addec 131122002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 13113
048addec 13114 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 13115
048addec 131162002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 13117
048addec
JD
13118 * dispextern.h (struct face): Add `overstrike' field.
13119 * xterm.c (x_draw_glyph_string_foreground)
13120 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13121 * xfaces.c (load_face_font): Set `face->overstrike' based on
13122 result from choose_face_font.
13123 (best_matching_font, choose_face_font): Add `needs_overstrike'
13124 argument, and use it to return whether overstriking is desirable
13125 for this face/font combo.
13126 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 13127
048addec 131282002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 13129
048addec
JD
13130 This change is my fix for the following entry in etc/PROBLEMS:
13131 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
13132 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 13133
048addec
JD
13134 * w32.c: Added wrapper functions around the win32 API functions
13135 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
13136 GetSidIdentifierAuthority. These wrapper functions serve two
13137 purposes:
13138 1. They ensure that the wrapped function can never be called
13139 when Emacs is running on an operating system on which they are
13140 not supported (Microsoft Windows 95 / 98 / ME).
13141 2. They call the wrapped functions via function pointers rather
13142 than calling them directly. This avoids taking advantage of the
13143 undocumented fact that although these functions are not supported
13144 in the 9x branch of Microsoft Windows, the functions do exist in
13145 the version of advapi32.dll that is found in the 9x branch of
13146 Microsoft Windows.
f60ae425 13147
6bdb309a 13148 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
13149 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
13150 and GetSidIdentifierAuthority with calls to the newly added
13151 wrapper functions.
f60ae425 13152
048addec
JD
13153 * w32.h: Added extern declarations for the following functions:
13154 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
13155 syms_of_w32menu, and void syms_of_fontset.
f60ae425 13156
6bdb309a 13157 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
13158 function pointer track_mouse_event_fn in the handler for the
13159 WM_SETFOCUS message.
3582b6a3 13160
6bdb309a 13161 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
13162 reinitialize the function pointers set_menu_item_info and
13163 get_menu_item_info.
f60ae425 13164
048addec 131652002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 13166
048addec
JD
13167 * sound.c: Added a partial implementation of play-sound-internal
13168 for Microsoft Windows. Added various #ifdef / #else / #endif
13169 code blocks to separate the code that will compile under
9fed2905 13170 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 13171 Moved several blocks of code around to make this separation of code
9fed2905 13172 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 13173
048addec 13174 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 13175
048addec
JD
13176 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
13177 added support for play-sound-internal under Windows would be
13178 included in the build of Emacs.
517f42a0 13179
048addec 131802002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 13181
048addec 13182 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 13183
048addec 13184 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 13185
048addec 131862002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 13187
048addec
JD
13188 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
13189 (adjust_point_for_property): Move out of display and invisible even if
13190 we were already inside before (in case a property was added while
13191 we weren't looking). Be more careful when handling invisible props.
13192 Skip invisible text as if it really wasn't there at all.
aab83f91 13193
048addec 131942002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 13195
048addec
JD
13196 * w32term.c (x_draw_image_foreground)
13197 (w32_draw_image_foreground_1): Use standard copy and invert
13198 operations to draw images.
aab83f91 13199
048addec
JD
13200 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
13201 depth of 1.
13202 (xbm_read_bitmap_data): Invert bits as xbm is read in.
13203 (XPutPixel): Don't invert bits here.
a4478a76 13204
048addec 132052002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 13206
048addec
JD
13207 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
13208 (w32_draw_image_foreground_1): Handle image masks.
13209 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 13210
048addec
JD
13211 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
13212 (x_from_xcolors): Adjust RGB values for W32.
13213 (image_background, image_background_transparent)
13214 (postprocess_image, x_to_xcolors, x_disable_image)
13215 (x_build_heuristic_mask): Adapt for W32 and enable.
13216 (x_create_x_image_and_pixmap): Mark images with palettes as such.
13217 (xbm_load): Remove unused variable.
03670a65 13218
048addec 132192002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 13220
048addec 13221 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 13222
048addec 132232002-11-14 Dave Love <fx@gnu.org>
59daa29a 13224
048addec 13225 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 13226
048addec
JD
13227 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
13228 * xmenu.c (unuse_menu_items, digest_single_submenu):
13229 * xfns.c (x_put_x_image):
13230 * xdisp.c (message2_nolog, set_message):
13231 * undo.c (record_point):
13232 * terminfo.c (tparam):
13233 * syntax.c (scan_sexps_forward):
13234 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13235 * composite.c (update_compositions):
13236 * cm.c (calccost, cmgoto):
13237 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 13238
048addec 13239 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 13240
048addec
JD
13241 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
13242 Don't declare.
59daa29a 13243
048addec 13244 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 13245
048addec
JD
13246 * fns.c (Fcopy_sequence): Doc fix.
13247 (Fmap_char_table): Cast `call2'.
3947677c 13248
048addec
JD
132492002-11-14 Francesco Potorti` <pot@gnu.org>
13250
13251 * s/sol2-8.h: New file.
13252
132532002-11-14 Kim F. Storm <storm@cua.dk>
13254
13255 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
13256 dependency on `risky-local-variable' and the :propertize form.
13257
132582002-11-12 Stefan Monnier <monnier@cs.yale.edu>
13259
13260 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
13261
13262 * syntax.c (scan_sexps_forward): Undo last patch.
13263 Use a more obvious fix: check eob before updating the syntax table.
13264
132652002-11-09 Stefan Monnier <monnier@cs.yale.edu>
13266
13267 * syntax.c (scan_sexps_forward): Update syntax table before reading
13268 a char rather than after so we don't update the table past eob.
13269
132702002-11-09 Dave Love <fx@gnu.org>
13271
13272 * buffer.c (Fset_buffer_major_mode): Fix last change.
13273
13274 * regex.c (regexec): Fix pmatch declaration.
13275
13276 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
13277
13278 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
13279 to self-inserting characters.
13280 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
13281
13282 * coding.c (Vtranslation_table_for_input): New.
13283 (syms_of_coding): DEFVAR it.
13284
132852002-11-08 Juanma Barranquero <lektu@terra.es>
13286
13287 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
13288 window.
13289
132902002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13291
6bdb309a 13292 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
13293 cp, and i.
13294
132952002-11-06 Dave Love <fx@gnu.org>
13296
13297 * buffer.c (Qset_buffer_major_mode_hook): New.
13298 (Fset_buffer_major_mode): Use it.
13299
133002002-11-06 Richard M. Stallman <rms@gnu.org>
13301
13302 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
13303 and stop_polling.
13304
13305 * process.c (wait_reading_process_input):
13306 Test POLLING_PROBLEM_IN_SELECT, not hpux.
13307 Avoid initialization for auto Lisp_Object var.
13308
13309 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
13310
13311 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
13312
133132002-11-05 Richard M. Stallman <rms@gnu.org>
13314
13315 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
13316
13317 * callint.c (Fcall_interactively): New local filter_specs.
13318 (Fcall_interactively): Check for progn as well as let.
13319 Add a gcpro.
13320 (Qprogn): New variable.
13321 (syms_of_callint): Staticpro and init Qprogn.
13322
133232002-11-04 John Paul Wallington <jpw@shootybangbang.com>
13324
13325 * lread.c (Feval_buffer): Doc fix.
13326
133272002-11-04 Dave Love <fx@gnu.org>
13328
13329 * keyboard.c (read_char): Always translate iff
13330 Vkeyboard_translate_table is a char table and c is valid.
13331
13332 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13333 and fix C types.
13334
133352002-11-03 Stefan Monnier <monnier@cs.yale.edu>
13336
13337 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
13338
13339 * editfns.c (get_pos_property): Don't hardcode Qfield.
13340
13341 * keyboard.c (adjust_point_for_property): Handle `display' prop on
13342 overlays. Also handle `invisible' prop.
13343
133442002-11-02 Stefan Monnier <monnier@cs.yale.edu>
13345
13346 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
13347 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
13348
133492002-11-01 Andreas Schwab <schwab@suse.de>
13350
13351 * editfns.c (Fmessage): Revert last change to properly handle %%.
13352
133532002-11-01 Stefan Monnier <monnier@cs.yale.edu>
13354
13355 * xmenu.c (unuse_menu_items): New fun.
13356 (menu_items_inuse): New var.
13357 (syms_of_xmenu): Initialize it.
13358 (init_menu_items): Use it to detect re-entrance.
13359 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
13360 (Fx_popup_menu): Remove spurious XSETFRAME.
13361
13362 * editfns.c (find_field): Make an exception for nil fields.
13363
133642002-11-01 Dave Love <fx@gnu.org>
13365
13366 * m/gec63.h: Deleted.
13367
133682002-10-31 Dave Love <fx@gnu.org>
13369
13370 * xterm.c (XTread_socket): Fix last change.
13371 (xaw_scroll_callback): Cast call_data to long to avoid warning.
13372
133732002-10-31 Stefan Monnier <monnier@cs.yale.edu>
13374
13375 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
13376
133772002-10-30 Stefan Monnier <monnier@cs.yale.edu>
13378
13379 * editfns.c (overlays_around, get_pos_property): New funs.
13380 (find_field): Use them.
13381 Also be careful not to modify POS before its last use.
13382 (Fmessage): Don't Fformat if there's nothing to format.
13383
133842002-10-30 Dave Love <fx@gnu.org>
13385
13386 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
13387 [HAVE_PTY_H]; Include pty.h.
13388
13389 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
13390
13391 * xterm.c (Qeql): Declare.
13392 (Vx_keysym_table): New.
13393 (syms_of_xterm): Initialize it.
13394 (XTread_socket): Use it. Deal with ASCII keysyms.
13395 (XSetIMValues) [HAVE_X11R6]: Prototype.
13396
13397 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
13398 (lispy_kana_keys): Comment out.
13399 (make_lispy_event) [XK_kana_A]: Comment out.
13400 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
13401 Fix sprintf call.
13402
13403 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
13404 regexp.h change).
13405 (TERMINFO, LIBS_TERMCAP): Define.
13406
13407 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
13408 (bcmp): Define conditional on HAVE_BCMP.
13409 (NO_SIOCTL_H): Don't define.
13410 (TIOCSIGSEND): Don't make conditional on IRIX6.
13411
13412 * s/sol2-5.h: Don't include strings.h.
13413 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
13414
13415 * s/irix6-0.h (IRIX6): Don't define.
13416 (bcopy, bcmp, bzero): Don't undef.
13417
13418 * s/irix6-5.h: Don't include strings.h.
13419 (IRIX6): Don't define.
13420 (bcopy, bcmp, bzero): Don't undef.
13421
13422 * syntax.c (Fforward_comment): Doc fix.
13423
134242002-10-29 Kim F. Storm <storm@cua.dk>
13425
13426 * process.c (Fsignal_process): Allow PROCESS to be specified by
13427 name in addition to pid (as integer or string).
13428
134292002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
13430
13431 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
13432 environments.
13433
134342002-10-27 Kim F. Storm <storm@cua.dk>
13435
13436 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13437
13438 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
13439
13440 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
13441
13442 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13443
134442002-10-26 Richard M. Stallman <rms@gnu.org>
13445
13446 * editfns.c (Fformat): Detect invalid format letters for floats.
13447
134482002-10-25 Kenichi Handa <handa@m17n.org>
13449
13450 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
13451 (x_set_title): Likewise.
13452
134532002-10-25 Juanma Barranquero <lektu@terra.es>
13454
13455 * macgui.h:
13456 * w32gui.h: Remove definition of XColor.
13457
13458 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
13459
134602002-10-24 Kim F. Storm <storm@cua.dk>
13461
13462 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
13463 Callers changed (supply dummy arg).
13464
13465 * lisp.h (get_window_cursor_type): Update prototype.
13466
13467 * w32term.c (x_display_and_set_cursor): Get active_cursor from
13468 get_window_cursor_type to track system caret.
13469
134702002-10-24 Kim F. Storm <storm@cua.dk>
13471
13472 * process.c (Fformat_network_address): New function.
13473 (syms_of_process): Defsubr it.
13474 (list_processes_1): Use it to format :local/:remote address if
f9711de4 13475 service/host is not set; before Emacs would crash in that case.
048addec
JD
13476 (Fmake_network_process): Don't use Ffind_operation_coding_system
13477 to setup coding system if host or service is not set.
13478
134792002-10-23 Juanma Barranquero <lektu@terra.es>
13480
13481 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
13482
13483 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
13484 COLORREF.
13485
13486 * macgui.h:
13487 * w32gui.h: Add definition of XColor.
13488
13489 * macfns.c:
13490 * w32fns.c:
13491 * xfaces.c: Remove definition of XColor.
13492
134932002-10-22 Stefan Monnier <monnier@cs.yale.edu>
13494
13495 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
13496
13497 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
13498 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
13499 window if it is dedicated.
13500 (Fshrink_window): Add preserve_before as was done for enlarge_window.
13501 (Vspecial_display_function): Update docstring.
13502
13503 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
13504 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
13505 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
13506
135072002-10-21 Stefan Monnier <monnier@cs.yale.edu>
13508
13509 * casefiddle.c (casify_region): Don't treat a prefix char as part
13510 of a word when at the beginning.
13511
135122002-10-17 Juanma Barranquero <lektu@terra.es>
13513
13514 * lread.c (syms_of_lread): Fix typos.
13515
135162002-10-17 Dave Love <fx@gnu.org>
13517
13518 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
13519
135202002-10-16 Richard M. Stallman <rms@gnu.org>
13521
13522 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
13523
135242002-10-14 Juanma Barranquero <lektu@terra.es>
13525
13526 * w16select.c (syms_of_win16select): Fix docstring for
13527 `selection-coding-system'.
13528
13529 * w32select.c (syms_of_w32select): Likewise.
13530
135312002-10-14 Stefan Monnier <monnier@cs.yale.edu>
13532
13533 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
13534 a backslash-quoted char.
13535 (scan_lists, scan_sexps_forward): Pacify the compiler.
13536
135372002-10-13 Richard M. Stallman <rms@gnu.org>
13538
13539 * window.c (window_scroll): Set immediate_quit.
13540
13541 * print.c (print): When backquote form is the car of a list,
13542 output in old style. Use old_backquote_output to output all
13543 comma forms inside it in old style too.
13544
13545 * buffer.h (struct buffer): Move `undo_list' down below `name'.
13546
135472002-10-11 Markus Rost <rost@math.ohio-state.edu>
13548
13549 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
13550 batch mode).
13551
13552 * lread.c (Fload): Doc fix (load-suffixes).
13553
135542002-10-10 Steven Tamm <steventamm@mac.com>
13555
13556 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
13557 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
13558 Also switch the default to Qnil from Qt.
13559
135602002-10-08 Kenichi Handa <handa@m17n.org>
13561
13562 * coding.c (code_convert_region): When we need more GAP for
13563 conversion, pay attention to the case that coding->produced is not
13564 greater than coding->consumed.
13565
135662002-10-07 Richard M. Stallman <rms@gnu.org>
13567
13568 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
13569
135702002-10-06 Andrew Choi <akochoi@shaw.ca>
13571
13572 * macmenu.c (mac_menu_show): Add j to count menu items; match
13573 menu_item_selection to it to find selected item.
13574
135752002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13576
13577 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
13578 cases. The correct fix is to pass ReparentNotify to Xt.
13579 The shell widget interprets ConfigureNotify differently depending
13580 on if it has been reparented or not.
13581
135822002-10-05 Markus Rost <rost@math.ohio-state.edu>
13583
13584 * editfns.c (Fformat_time_string): Doc fix.
13585
135862002-10-05 John Paul Wallington <jpw@shootybangbang.com>
13587
13588 * fns.c (Flength): Doc fix.
13589
135902002-10-04 Stefan Monnier <monnier@cs.yale.edu>
13591
13592 * keyboard.c (keyremap): New struct.
13593 (read_key_sequence): Use it: globally replace keytran_foo with
13594 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
13595 keytran_next and fkey_next to just `next'.
13596
135972002-10-04 Steven Tamm <steventamm@mac.com>
13598
13599 * macterm.c (keycode_to_xkeysym_table): Change return to be
13600 treated like an X keysym.
13601
136022002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13603
13604 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
13605 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
13606 This is to also handle x/y changes that occur because of a resize.
13607
136082002-10-02 John Paul Wallington <jpw@shootybangbang.com>
13609
13610 * frame.c (Vdelete_frame_functions): New variable.
13611 (syms_of_frame): Initialize and defvar it.
13612 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
13613 it when frame's `tooltip' parameter is non-nil.
13614
13615 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
13616
13617 * w32fns.c (x_create_tip_frame): Likewise.
13618
13619 * macfns.c (x_create_tip_frame): Likewise.
13620
136212002-09-30 Kenichi Handa <handa@m17n.org>
13622
13623 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
13624 -1 before calling ccl_driver.
13625
13626 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
13627 Only when it is non-nil, handle composition sequence.
13628 (setup_coding_system) <0>: Don't force composition handling.
13629
13630 * Makefile.in (lisp, shortlisp): Add utf-16.elc
13631
136322002-09-29 Richard M. Stallman <rms@gnu.org>
13633
13634 * search.c (Freplace_match): Adjust match data for the substitution
13635 just made in the buffer.
13636
13637 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
13638 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
13639
136402002-09-27 Richard M. Stallman <rms@gnu.org>
13641
13642 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
13643 (read_char): Use them. Do all exits thru the end of the function.
13644
136452002-09-27 Kenichi Handa <handa@etl.go.jp>
13646
13647 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
13648 is nil.
13649
136502002-09-26 Richard M. Stallman <rms@gnu.org>
13651
13652 * regex.h (__restrict_arr): Don't define if already defined.
13653
13654 * coding.c (run_pre_post_conversion_on_str):
13655 Save and restore Vdeactivate_mark.
13656
136572002-09-26 John Paul Wallington <jpw@shootybangbang.com>
13658
13659 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
13660
136612002-09-26 Kenichi Handa <handa@etl.go.jp>
13662
13663 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
13664 nonzero, try face's family at first. Otherwise try FAMILY at first.
13665 (choose_face_font): If C is a single byte char or latin-1, call
13666 try_font_list with PREFER_FACE_FAMILY 1.
13667
136682002-09-21 Richard M. Stallman <rms@gnu.org>
13669
13670 * window.c (select_window_1): Don't select frame.
13671 Set frame's selected window only when frame itself is selected.
13672 (Fselect_window): Doc fix.
13673
136742002-09-18 Kim F. Storm <storm@cua.dk>
13675
13676 * process.c (make-network-process): Doc fix (there is no
13677 network-server-log-function hook).
13678
136792002-09-18 Richard M. Stallman <rms@gnu.org>
13680
13681 * print.c (print): Clear out the unused parts of Vprint_number_table.
13682 (syms_of_print): Doc fix for `print-number-table'.
13683
13684 * unexelf.c (unexec): Undo previous change.
13685
136862002-09-17 Andreas Schwab <schwab@suse.de>
13687
13688 * m/alpha.h [LINUX]: Don't define DATA_START.
13689
136902002-09-16 Dave Love <fx@gnu.org>
13691
13692 * unexelf.c (unexec): Deal with .got, reinstating change from
13693 25-08-1999.
13694
136952002-09-13 Richard M. Stallman <rms@gnu.org>
13696
13697 * s/sol2-6.h (UNEXEC): Comment out definition.
13698
13699 * unexsol.c (unexec): Don't downcase first letter of error msg.
13700
13701 * xfaces.c (Fcolor_supported_p): Just one arg is required.
13702
137032002-09-12 Markus Rost <rost@math.ohio-state.edu>
13704
13705 * unexsol.c: Include buffer.h, charset.h, coding.h.
13706
137072002-09-11 Richard M. Stallman <rms@gnu.org>
13708
13709 * unexsol.c: Don't use report_file_error; do it by hand
13710 using dlerror.
13711
13712 * process.c (wait_reading_process_input, both versions):
13713 Before calling turn_on_atimers, call stop_polling.
13714
13715 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
13716
13717 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
13718 we go to too_near_end, call clear_glyph_matrix.
13719 (redisplay_window): After make_cursor_line_fully_visible,
13720 call clear_glyph_matrix and bypass `goto done'.
13721
13722 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
13723 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
13724
137252002-09-10 Richard M. Stallman <rms@gnu.org>
13726
13727 * fileio.c (Fdo_auto_save): Catch error making directory.
13728 Only call push_message if we need to.
13729 At the same time, make an unwind-protect to pop it.
13730 Rename local message_p to old_message_p.
13731 (do_auto_save_make_dir, do_auto_save_eh): New functions.
13732 (do_auto_save_unwind): Don't call pop_message.
13733
13734 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
13735
13736 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
13737
13738 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
13739
13740 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
13741
137422002-09-10 Stefan Monnier <monnier@cs.yale.edu>
13743
13744 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
13745 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
13746 (re_match_2_internal): Be more careful with infinite loops.
13747
137482002-09-10 Kim F. Storm <storm@cua.dk>
13749
13750 * macros.c (end_kbd_macro): New function.
13751 (Fend_kbd_macro): Use it.
13752
13753 * macros.h (end_kbd_macro): Declare extern.
13754
13755 * keyboard.c (Fdiscard_input): If defining keyboard macro,
13756 end and save it instead of discarding it.
13757
137582002-09-09 Markus Rost <rost@math.ohio-state.edu>
13759
13760 * s/sol2-6.h: Fix typo. Add comment.
13761
137622002-09-09 Richard M. Stallman <rms@gnu.org>
13763
13764 * regex.c (regnum_t): Use signed int, not unsigned int.
13765
13766 * s/sol2-6.h: New file.
13767
13768 * s/sol2-5.h (UNEXEC): Definition deleted.
13769
137702002-09-08 Kim F. Storm <storm@cua.dk>
13771
13772 * macros.c (executing_macro_index): Change type to EMACS_INT.
13773 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
13774
13775 * macros.h (executing_macro_index): Change type to EMACS_INT.
13776
137772002-09-06 Richard M. Stallman <rms@gnu.org>
13778
13779 * casetab.c (set_case_table): Make canon table point to eqv table.
13780
137812002-09-06 Juanma Barranquero <lektu@terra.es>
13782
13783 * coding.c (syms_of_coding): Fix spacing.
13784
13785 * composite.c (Fcompose_region_internal)
13786 (Fcompose_string_internal): Likewise.
13787
13788 * data.c (Flsh): Likewise.
13789
13790 * fontset.c (Fset_fontset_font): Likewise.
13791
13792 * macfns.c (Fx_server_max_request_size): Likewise.
13793
13794 * w16select.c (syms_of_win16select): Likewise.
13795
13796 * w32select.c (syms_of_w32select): Likewise.
13797
13798 * xselect.c (syms_of_xselect): Likewise.
13799
138002002-09-05 Richard M. Stallman <rms@gnu.org>
13801
13802 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
13803 call EXTEND_RANGE_TABLE and return a proper value.
13804 (set_image_of_range): Don't call set_image_of_range_1
13805 if no TRANSLATE or if range includes all of Latin-1.
13806 Only call it for the Latin-1 part of the range.
13807 For other cases, make two separate ranges,
13808 one for the original specified characters and one for
13809 their case-conversions.
13810
138112002-09-04 Richard M. Stallman <rms@gnu.org>
13812
13813 * s/sol2-5.h (UNEXEC): Use unexsol.o.
13814
13815 * window.c (displayed_window_lines): Correct for one-off bug
13816 in HEIGHT on non-window displays.
13817
13818 * regex.c (set_image_of_range_1): New function.
13819 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
13820 Return a value to indicate running out of memory.
13821 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
13822 (extend_range_table_work_area): New subroutine.
13823 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
13824 Different calling conventions, and used from set_image_of_range{,_1}.
13825 (IMMEDIATE_QUIT_CHECK): Definitions moved.
13826
138272002-09-04 Juanma Barranquero <lektu@terra.es>
13828
13829 * makefile.w32-in: All dependencies updated.
13830
138312002-09-01 Richard M. Stallman <rms@gnu.org>
13832
13833 * unexsol.c: New file.
13834
13835 * xfns.c (Qbox): Declare external, don't define.
13836
13837 * xdisp.c (redisplay_window) <force-start case>:
13838 If point is on semi-visible last line, reposition
13839 it at previous line.
13840
13841 * alloc.c (display_malloc_warning): Use display-warning.
13842 (malloc_warning_1): Function deleted.
13843
13844 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
13845
13846 * lread.c (read1): Handle #! by skipping the line.
13847
138482002-08-31 Richard M. Stallman <rms@gnu.org>
13849
13850 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
13851 Don't include LDFLAGS.
13852 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
13853
138542002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
13855
13856 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
13857 member of x_display_info unless we compile for some window system.
13858
138592002-08-31 Kim F. Storm <storm@cua.dk>
13860
13861 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
13862 (get_window_cursor_type): Don't use them.
13863 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
13864
138652002-08-30 Kenichi Handa <handa@etl.go.jp>
13866
13867 * xdisp.c (get_next_display_element): Fix previous change.
13868
138692002-08-30 Andrew Choi <akochoi@shaw.ca>
13870
13871 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
13872 (expose_window): Use it to fix the display of overlapping
13873 rows (merge code from xterm.c).
13874
13875 * macfns.c (Qbox): Add extern declaration.
13876
138772002-08-30 Juanma Barranquero <lektu@terra.es>
13878
13879 * w32fns.c (Qbox): Make extern.
13880 (syms_of_w32fns): Remove initialization of Qbox.
13881
138822002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
13883
13884 * xfns.c (Fx_open_connection): Fix error message.
13885
138862002-08-30 Kim F. Storm <storm@cua.dk>
13887
13888 The following changes consolidates the handling of the cursor
13889 type in xdisp.c, moving duplicate code and functionality from
13890 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
13891
13892 * frame.h (enum text_cursor_kinds): Consolidated here.
13893 Added DEFAULT_CURSOR value.
13894 (struct frame) <desired_cursor, cursor_width>
13895 <blink_off_cursor, blink_off_cursor_width>: New fields.
13896 Consolidated from output_x, output_w32 and output_mac structs.
13897 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13898 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
13899
13900 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
13901 Variables consolidated here.
13902 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
13903 (Vcursor_in_non_selected_windows): Renamed from
13904 cursor_in_non_selected_windows and changed to Lisp_Object.
13905 (syms_of_xdisp): Define and staticpro new and moved variables.
13906 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
13907 consolidated here. Recognize Qhollow setting.
13908 (set_frame_cursor_types): New function to set frame cursor types
13909 based on the frame parameters.
13910 (get_window_cursor_type): New function to calculate new cursor
13911 type and width for the specified window. Based on duplicated
13912 code consolidated here.
13913 Enhancements: cursor-in-non-selected-windows may be a cursor type,
13914 check buffer-local alternate-cursor-type and blink-cursor-alist
13915 before using built-in blink off methods.
13916
13917 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
13918
13919 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
13920 (get_specified_cursor_type, get_window_cursor_type)
13921 (set_frame_cursor_types): Added prototypes.
13922
13923 * macfns.c (x_specified_cursor_type): Removed.
13924 (x_set_cursor_type): Use set_frame_cursor_types.
13925 (Qbar, Qbox): Removed.
13926 (syms_of_macfns): Don't intern or staticpro them.
13927
13928 * macterm.c (x_specified_cursor_type): Remove prototype.
13929 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13930 (x_display_and_set_cursor): Use get_window_cursor_type.
13931 Remove unused local variables cursor_non_selected, active_cursor.
13932 Redraw cursor if hbar cursor width changes.
13933 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
13934
13935 * macterm.h (enum text_cursor_kinds): Removed.
13936 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
13937 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13938 (FRAME_DESIRED_CURSOR): Macro removed.
13939
13940 * w32fns.c (Vblink_cursor_alist): Removed.
13941 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13942 (syms_of_w32fns): Don't intern, staticpro, or define them.
13943 (x_specified_cursor_type): Removed.
13944 (x_set_cursor_type): Use set_frame_cursor_types.
13945
13946 * w32term.c (x_specified_cursor_type): Remove prototype.
13947 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13948 (x_display_and_set_cursor): Use get_window_cursor_type.
13949 Remove unused local variables cursor_off_state.
13950 Redraw cursor if hbar cursor width changes.
13951 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
13952
13953 * w32term.h (enum text_cursor_kinds): Removed.
13954 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
13955 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13956 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13957 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13958 (struct w32_display_info) <x_highlight_frame>: Renamed member from
13959 w32_highlight_frame.
13960
13961 * xfns.c (Vblink_cursor_alist): Removed.
13962 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13963 (syms_of_xfns): Don't intern, staticpro, or define them.
13964 (x_specified_cursor_type): Removed.
13965 (x_set_cursor_type): Use set_frame_cursor_types.
13966
13967 * xterm.c (x_specified_cursor_type): Remove prototype.
13968 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13969 (x_display_and_set_cursor): Use get_window_cursor_type.
13970 Remove unused local variables cursor_off_state.
13971 Redraw cursor if hbar cursor width changes.
13972
13973 * xterm.h (enum text_cursor_kinds): Removed.
13974 (struct output_x) <current_cursor, desired_cursor, cursor_width>
13975 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13976 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13977 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13978 (x_specified_cursor_type): Remove prototype.
13979
139802002-08-28 Richard M. Stallman <rms@gnu.org>
13981
13982 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
13983 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
13984 (Vblink_cursor_alist): New variable.
13985 (syms_of_w32fns): Initialize and defvar it.
13986 (x_specified_cursor_type): Recognize Qbox for filled box.
13987 Exceptions are hollow boxes.
13988 (Qbox, Qhollow): New variables.
13989 (syms_of_w32fns): Initialize and staticpro them.
13990
13991 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
13992 New macros.
13993 (struct w32_output): New fields blink_off_cursor,
13994 blink_off_cursor_width.
13995 (FRAME_CURSOR_WIDTH): New macro.
13996
13997 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
13998 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
13999
14000 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14001 for bar cursor.
14002
14003 * w32term.c (expose_overlaps): New function.
14004 (expose_window): Use it to fix the display of overlapping rows.
14005
140062002-08-28 Simon Josefsson <jas@extundo.com>
14007
14008 * xfns.c (Fx_open_connection): Improve help when X connection
14009 fails, xhost is insecure and xauth is better.
14010
140112002-08-28 Juanma Barranquero <lektu@terra.es>
14012
14013 * makefile.w32-in: Add missing dependencies on w32term.h and
14014 composite.h.
14015
14016 * emacs.c (USAGE1): Add missing newline.
14017
140182002-08-27 Andrew Choi <akochoi@shaw.ca>
14019
14020 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
14021
140222002-08-27 Richard M. Stallman <rms@gnu.org>
14023
14024 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14025 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14026 (Vblink_cursor_alist): New variable.
14027 (syms_of_xfns): Initialize and defvar it.
14028 (x_specified_cursor_type): Recognize Qbox for filled box.
14029 Exceptions are hollow boxes.
14030 (Qbox, Qhollow): New variables.
14031 (syms_of_xfns): Initialize and staticpro them.
14032
14033 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14034 New macros.
14035 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
14036
14037 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14038 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14039
14040 * emacs.c (main): Handle --script.
14041 (USAGE1): Mention --script.
14042 (standard_args): Define sort order for --script.
14043
140442002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
14045
14046 * xdisp.c (redisplay_updating_p): Variable removed.
14047 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
14048 New variables.
14049 (init_iterator): Don't free realized faces if
14050 inhibit_free_realized_faces is set.
14051 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
14052 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
14053 initialize Qinhibit_free_realized_faces.
14054
14055 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
14056 when iterator is adding glyphs to a glyph matrix.
14057
140582002-08-27 Kenichi Handa <handa@etl.go.jp>
14059
14060 * xdisp.c (get_next_display_element): In unibyte case, don't use
14061 octal form for such eight-bit characters that can be converted to
14062 multibyte char.
14063
140642002-08-26 Kim F. Storm <storm@cua.dk>
14065
b6189c3b
KS
14066 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
14067 foreground and background colors. From Joe Buehler.
048addec
JD
14068
140692002-08-26 Miles Bader <miles@gnu.org>
14070
14071 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
14072
140732002-08-25 Andrew Choi <akochoi@shaw.ca>
14074
14075 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
14076 defined instead of MAC_OSX.
14077
14078 * s/darwin.h (select): Define select to sys_select only if
14079 HAVE_CARBON is defined.
14080 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
14081 (DONT_REOPEN_PTY): #def it.
14082
14083 * macterm.c (XTread_socket): Remove code to call
14084 SendEventToEventTarget for keys with command modifiers when
14085 mac_command_key_is_meta is nil.
14086
140872002-08-24 Andreas Schwab <schwab@suse.de>
14088
14089 * eval.c (Fdefvar): Fix last change.
14090
140912002-08-23 Richard M. Stallman <rms@gnu.org>
14092
14093 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
14094 Record variables in load history as (defvar . VAR).
14095 (Fdefvar): Don't record in load history if no initial value.
14096 (Qdefvar): New variable.
14097 (syms_of_eval): Init and staticpro it.
14098
14099 * lread.c (syms_of_lread): Doc fix.
14100 (build_load_history): Use Fmember to see if a definition
14101 is already in the Vload_history element.
14102
14103 * process.c (Fstart_process): Remove /: from program name.
14104
14105 * emacs.c (decode_env_path): Don't add /: if file name handler
14106 has a `safe-magic' property.
14107
14108 * callproc.c (Fcall_process): Remove /: from program name.
14109
141102002-08-23 Stefan Monnier <monnier@cs.yale.edu>
14111
14112 * regex.c (PATFETCH): Remove the translating fetch.
14113 (PATFETCH_RAW): Rename to PATFETCH.
14114 (set_image_of_range): New fun.
14115 (SET_RANGE_TABLE_WORK_AREA): Use it.
14116 (regex_compile): Don't translate the pattern chars so eagerly.
14117 Only do it when inserting an `exactn' bytecode or when handling
14118 a char-range.
14119 (mutually_exclusive_p): Avoid empty statement.
14120
141212002-08-22 Kim F. Storm <storm@cua.dk>
14122
14123 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
14124 end up on a partially visible line; this reverts a specific part
14125 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
14126 display error which has been reported several times now.
14127 However it introduces the problem that changes was supposed to fix.
14128 See my comments in the source if you want to debug this further.
14129
141302002-08-20 Kenichi Handa <handa@etl.go.jp>
14131
14132 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14133
141342002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
14135
14136 * msdos.c (croak): Add `void' to definition.
14137
c1380aa6 14138 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
14139 Don't define them, they are defined in msdos.c.
14140
14141 * mem-limits.h [MSDOS]: Declare etext.
14142
14143 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
14144 `const' since CORRECT_DIR_SEPS modifies its target.
14145
141462002-08-19 Kim F. Storm <storm@cua.dk>
14147
2fb0ce67 14148 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
14149 KEEP-RECORD to avoid clearing lossage when we just want to clear
14150 the current key sequence (kmacro needs this).
14151
141522002-08-19 Kenichi Handa <handa@localhost>
14153
14154 * composite.c (run_composition_function): Call FUNC if it is fboundp.
14155
14156 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
14157 cons, return Qnil.
14158
141592002-08-17 Richard M. Stallman <rms@gnu.org>
14160
14161 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
14162
14163 * sysdep.c [!VMS]: Include sys/files.h.
14164
14165 * editfns.c (save_restriction_restore): Defend from unchained marker.
14166
14167 * buffer.c (overlays_at): Handle extending vec uniformly.
14168 (overlays_in): Handle extending vec from length 0 as in overlays_at.
14169
141702002-08-15 Andrew Choi <akochoi@shaw.ca>
14171
14172 * mac.c (init_mac_osx_environment): New function.
14173
14174 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
14175
141762002-08-14 Kim F. Storm <storm@cua.dk>
14177
14178 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
14179 executing macro before appending to it (when used from Lisp).
14180 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
14181 which is called prior to each iteration of macro (for kmacro.el).
14182 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
14183
14184 * lisp.h (Fexecute_kbd_macro): Update prototype.
14185
14186 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
14187
141882002-08-14 Kenichi Handa <handa@etl.go.jp>
14189
14190 * xselect.c (QUTF8_STRING): New variable.
14191 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
14192 (x_atom_to_symbol): Likewise.
14193 (x_get_local_selection): New argument local_request. If it is
14194 nonzero, call handler_fn with the second arg nil.
14195 (x_handle_selection_request): Call x_get_local_selection with
14196 local_request 0.
14197 (lisp_data_to_selection_data): Don't encode the string here.
14198 (Fx_get_selection_internal): Call x_get_local_selection with
14199 local_request 1.
14200 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
14201
14202 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
14203
14204 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
14205
142062002-08-13 Richard M. Stallman <rms@gnu.org>
14207
14208 * minibuf.c (Fminibufferp): New function.
14209 (syms_of_minibuf): Defsubr it.
14210 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
14211
142122002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
14213
14214 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
14215
142162002-08-12 Richard M. Stallman <rms@gnu.org>
14217
14218 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
14219 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
14220 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
14221 already.
14222
14223 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
14224
142252002-08-11 Andrew Choi <akochoi@shaw.ca>
14226
14227 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
14228 (Vmac_pass_command_to_system): New variable.
14229 (Vmac_pass_control_to_system): New variable.
14230 (do_mouse_moved): Check wp with is_emacs_window.
14231 (XTread_socket): Check window_ptr with is_emacs_window.
14232 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
14233 events back to Mac Toolbox for processing, depending on values of
14234 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
14235 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
14236 Vmac_pass_control_to_system.
14237
142382002-08-10 Kenichi Handa <handa@etl.go.jp>
14239
14240 * coding.c (unencodable_char_position): New function.
14241 (Funencodable_char_position): New function.
14242 (syms_of_coding): Defsubr Funencodable_char_position.
14243
142442002-08-10 Andrew Choi <akochoi@shaw.ca>
14245
14246 * mac.c (sys_select) [MAC_OSX]: New function.
14247
14248 * macterm.c (MakeMeTheFrontProcess): New function.
14249 (mac_initialize): Call MakeMeTheFrontProcess.
14250
14251 * s/darwin.h: Define select to sys_select.
14252
142532002-08-09 Richard M. Stallman <rms@gnu.org>
14254
14255 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
14256
142572002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
14258
14259 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
14260 end of the buffer.
14261
142622002-08-08 Ken Raeburn <raeburn@mit.edu>
14263
14264 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
14265
14266 * puresize.h (BASE_PURESIZE): Increase to 910000.
14267
142682002-08-08 Kenichi Handa <handa@etl.go.jp>
14269
14270 * coding.c (Ffind_operation_coding_system): For write-region, if
14271 VISIT is a filename, make it the target.
14272
142732002-08-07 Richard M. Stallman <rms@gnu.org>
14274
14275 * alloc.c (mark_object): Detect long lists for debugging.
14276 (mark_object_loop_halt): New variable.
14277
14278 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
14279
14280 * data.c (Fmake_variable_frame_local): Doc fix.
14281
142822002-08-01 David Ponce <david@dponce.com>
14283
14284 * w32menu.c (local_heap, local_alloc, local_free): New macros.
14285 (malloc_widget_value, free_widget_value)
14286 (w32_free_submenu_strings): Use them.
14287
14288 (push_submenu_start, push_submenu_end, push_left_right_boundary)
14289 (push_menu_pane, push_menu_item, single_keymap_panes)
14290 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
14291 (single_submenu, set_frame_menubar)
14292 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
14293
14294 (Fx_popup_menu): Don't show pop up menu until preceding one is
14295 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
14296
14297 * w32menu.c: Changes adapted from xmenu.c
14298 (set_frame_menubar): First parse all submenus,
14299 then make widget_value trees from them.
14300 Don't allocate any widget_value objects
14301 until we are done with the parsing.
14302 (parse_single_submenu): New function.
14303 (digest_single_submenu): New function.
14304 (single_submenu): Function deleted, replaced by those two.
14305
143062002-08-04 Andrew Choi <akochoi@shaw.ca>
14307
14308 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
14309 returns a valid window pointer before proceeding for keyDown and
14310 autoKey events.
14311
143122002-08-03 Andrew Choi <akochoi@shaw.ca>
14313
14314 * macterm.c (USE_CARBON_EVENTS): New macro.
14315 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
14316 (x_iconify_frame): Call CollapseWindow.
14317 (Vmac_reverse_ctrl_meta): New variable.
14318 (Vmac_wheel_button_is_mouse_2): New variable.
14319 (init_mac_drag_n_drop): New function.
14320 (mac_do_receive_drag): New function.
14321 (mac_handle_service_event): New function.
14322 (init_service_handler): New function.
14323 (mac_to_emacs_modifiers): New function.
14324 (mac_event_to_emacs_modifiers): New function.
14325 (mac_get_mouse_btn): New function.
14326 (mac_convert_event_ref): New function.
14327 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
14328 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
14329 mac_get_mouse_btn.
14330 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
14331
14332 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
14333 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
14334 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
14335 TOOL_BAR_EVENT for MAC_OS as well.
14336 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
14337 as for WINDOWS_NT.
14338 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
14339
14340 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
14341
143422002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
14343
14344 * xdisp.c (forward_to_next_line_start): Fix a condition that
14345 lead to a newline being skipped.
14346
143472002-08-02 Andrew Choi <akochoi@shaw.ca>
14348
14349 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
14350
143512002-08-01 Richard M. Stallman <rms@gnu.org>
14352
14353 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
14354
143552002-07-31 Andrew Choi <akochoi@shaw.ca>
14356
14357 * macfns.c: #undef init_process before #define-ing it.
14358
14359 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
14360 HAVE_CARBON is defined.
14361
143622002-07-31 Richard M. Stallman <rms@gnu.org>
14363
14364 * xmenu.c (set_frame_menubar): First parse all submenus,
14365 then make widget_value trees from them.
14366 Don't allocate any widget_value objects
14367 until we are done with the parsing.
14368 (parse_single_submenu): New function.
14369 (digest_single_submenu): New function.
14370 (single_submenu): Function deleted, replaced by those two.
14371
143722002-07-30 Juanma Barranquero <lektu@terra.es>
14373
14374 * w32proc.c (syms_of_ntproc): Fix docstring of
14375 `w32-get-true-file-attributes'.
14376
143772002-07-28 Richard M. Stallman <rms@gnu.org>
14378
14379 * s/hpux8.h (HPUX8): Define this before including hpux.h.
14380 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
14381
14382 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
14383
14384 * keyboard.c (make_lispy_event):
14385 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
14386 Explicitly clear up_modifier in event->modifiers.
14387
143882002-07-27 Richard M. Stallman <rms@gnu.org>
14389
14390 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
14391
14392 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14393 for bar cursor.
14394
143952002-07-26 Kenichi Handa <handa@etl.go.jp>
14396
14397 * coding.c (detect_coding_iso2022): While checking a byte sequence
14398 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
14399 it in the normal loop.
14400
144012002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
14402
14403 * xterm.c (expose_overlaps): New function.
14404 (expose_window): Use it to fix the display of overlapping rows.
14405
14406 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
14407
144082002-07-23 Ken Raeburn <raeburn@gnu.org>
14409
14410 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
14411 since it only depends on XUINT.
14412
14413 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
14414 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
14415 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
14416 Macros deleted.
3947677c 14417
77d1daf2
AS
14418 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
14419 its value over other approaches.
14420 * sysdep.c (start_of_data): Don't define the function if a macro
14421 form has been defined.
8a8e19a3 14422
048addec
JD
144232002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
14424
14425 * xdisp.c (redisplay_updating_p): New variable.
14426 (init_iterator): Don't free realized faces when
14427 redisplay_updating_p is set.
14428 (redisplay_internal): Set redisplay_updating_p while updating
14429 the display.
14430
144312002-07-23 Richard M. Stallman <rms@gnu.org>
14432
14433 * editfns.c (Fmessage): Treat "" like nil.
14434
144352002-07-23 Kenichi Handa <handa@etl.go.jp>
14436
14437 * xdisp.c (face_before_or_after_it_pos):
14438 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14439
144402002-07-22 Juanma Barranquero <lektu@terra.es>
14441
14442 * callproc.c (init_callproc) [DOS_NT]:
14443 Initialize Vshared_game_score_directory to nil.
14444 (syms_of_callproc) [DOS_NT]: Likewise.
14445
144462002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
14447
14448 * xdisp.c (display_line): Replace an abort with xassert.
14449
144502002-07-21 Richard M. Stallman <rms@gnu.org>
14451
14452 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
14453 and END_UNCHANGED when setting buffer_unchanged_p.
14454 Use current_matrix_up_to_date_p to decide whether to use
14455 try_cursor_movement.
14456
14457 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
14458
14459 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
14460
14461 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
14462 Set to nil if dir does not exist.
14463 (syms_of_callproc): Init unconditionally and simply.
14464
14465 * buffer.c (Fbuffer_list): Doc fix.
14466
144672002-07-21 Ken Raeburn <raeburn@gnu.org>
14468
14469 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
14470
14471 * buffer.c (mmap_realloc): When shrinking, make sure number of
14472 pages to unmap is rounded towards zero.
14473
14474 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
14475 (XSETINT): Deleted.
14476
14477 * m/att3b.h (XINT): Don't define.
14478 (VALBITS, VALMASK, XTYPE): Deleted.
14479 (DATA_SEG_BITS): Define.
14480 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
14481 ARRAY_MARK_FLAG): Deleted.
14482 (DATA_SEG_BITS): Define.
14483 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
14484 (DATA_SEG_BITS): Define.
14485
144862002-07-20 Richard M. Stallman <rms@gnu.org>
14487
14488 * print.c (print_error_message): New args CONTEXT and CALLER.
14489 Calls changed.
14490
14491 * lisp.h (print_error_message): Declare new args.
14492
14493 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
14494 and CONTEXT to print_error_message, don't print them here.
14495 For a Quit, don't use Vsignaling_function.
14496 Call message_log_maybe_newline.
14497
14498 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
14499
145002002-07-20 Kim F. Storm <storm@cua.dk>
14501
14502 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
14503
145042002-07-19 Ken Raeburn <raeburn@gnu.org>
14505
14506 * bytecode.c (struct byte_stack): Pointers into byte string now
14507 point to const.
14508 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
14509 const.
14510 * charset.h (BCOPY_SHORT): Source pointer now points to const.
14511 * coding.c (encode_eol, detect_coding, detect_eol):
14512 (decode_coding, encode_coding, detect_coding_system):
14513 Source strings now treated as const.
14514 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
14515 modify Lisp string contents.
14516 * coding.h (decode_coding, encode_coding, detect_coding,
14517 detect_eol): Declarations updated.
14518 * composite.c (compose_chars_in_text): Treat Lisp string contents
14519 as const.
14520 * dispnew.c (safe_bcopy): Source pointer now points to const.
14521 * lisp.h (STRING_COPYIN): New macro.
14522 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
14523 (internal_with_output_to_temp_buffer): Declarations updated.
14524 * print.c (temp_output_buffer_setup):
14525 (internal_with_output_to_temp_buffer): Buffer name argument is now
14526 pointer to const.
14527 * sound.c (struct sound_device): Function pointer field "write"
14528 buffer argument now points to const.
14529 (vox_write): Buffer argument points to const.
14530 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
14531 contents as const.
14532 * sysdep.c (emacs_write): Buffer pointer now const.
14533 * term.c (encode_terminal_code): Buffer pointer now const.
14534 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
14535 (x_face_list_fonts, x_update_menu_appearance):
14536 (hash_string_case_insensitive): Treat Lisp string contents as const.
14537
145382002-07-19 Juanma Barranquero <lektu@terra.es>
14539
048addec
JD
14540 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
14541
14542 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
14543 (Ffile_name_as_directory): Fix argument name in docstring.
14544 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
14545
145462002-07-18 Richard M. Stallman <rms@gnu.org>
14547
14548 * data.c (Fdefalias): Doc fix.
14549
145502002-07-17 Dave Love <fx@gnu.org>
14551
14552 * intervals.h (text_property_stickiness): Use P_.
14553
14554 * ccl.c: Remove `emacs' conditionals.
14555 (ccl_backtrace_table): Fix size spec.
14556 (ccl_driver): Fix type errors.
14557
145582002-07-16 Ken Raeburn <raeburn@gnu.org>
14559
14560 * alloc.c (xstrdup, make_string, make_unibyte_string)
14561 (make_multibyte_string, build_string): String pointer args now
14562 point to const.
14563 * charset.c (find_charset_in_text, c_string_width):
14564 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
14565 * fileio.c (report_file_error):
14566 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
14567 (count_combining_before, count_combining_after, insert_1_both):
14568 (insert, insert_and_inherit, insert_string):
14569 (insert_before_markers, insert_before_markers_and_inherit):
14570 * lread.c (intern, oblookup, hash_string):
14571 * minibuf.c (temp_echo_area_glyphs):
14572 * search.c (fast_c_string_match_ignore_case):
14573 * sysdep.c (emacs_open, set_file_times):
14574 * xfaces.c (xstricmp):
14575 * xdisp.c (store_frame_title, string_char_and_length):
14576 (message_dolog, message2, message2_nolog, set_message): Likewise.
14577 (set_message_1): Cast message string argument to const pointer.
14578 * editfns.c (general_insert_function): Insertion function now
14579 takes pointer to const for input data.
14580 * charset.h (find_charset_in_text, c_string_width):
14581 (parse_str_as_multibyte): Declarations updated.
14582 * dispextern.h (xstricmp): Declaration updated.
14583 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
14584 (count_size_as_multibyte, count_combining_before):
14585 (count_combining_after, insert_1, insert_1_both, message_dolog):
14586 (insert, insert_and_inherit, insert_before_markers)
14587 (insert_before_markers_and_inherit, set_message, message2):
14588 (message2_dolog, build_string, make_string, make_unibyte_string):
14589 (make_multibyte_string, intern, oblookup, report_file_error):
14590 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
14591 (emacs_open, xstrdup): Declarations updated.
14592 * systime.h (set_file_times): Declaration updated.
14593
14594 * charset.c (find_charset_in_text, lisp_string_width): Use const
14595 for pointer to lisp string data.
14596 * charset.h (FETCH_STRING_CHAR_ADVANCE):
14597 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
14598 * coding.c (Ffind_coding_systems_region_interval):
14599 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
14600 (Fmake_directory_internal, Fdelete_directory):
14601 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
14602 * fontset.c (font_family_registry, fs_query_fontset):
14603 (list_fontsets):
14604 * frame.c (Fframe_parameter):
14605 * keyboard.c (cmd_error_internal):
14606 * keymap.c (Fdescribe_buffer_bindings):
14607 * lread.c (complete_filename_p, openp):
14608 * minibuf.c (Fminibuffer_complete_word):
14609 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
14610 (face_before_or_after_it_pos, next_element_from_string):
14611 (get_overlay_arrow_glyph_row, display_mode_element):
14612 (decode_mode_spec_coding):
14613 * xterm.c (same_x_server): Likewise.
14614
14615 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
14616 settings of non-existent fields.
14617
14618 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
14619 copy a lisp value.
14620
14621 * lread.c (Fintern_soft): Use string macros instead of
14622 Lisp_String fields.
14623 * keyboard.c (echo_char, parse_modifiers_uncached):
14624 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
14625 * textprop.c (validate_interval_range, interval_of): Likewise.
14626
14627 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
14628
14629 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14630 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
14631 XSTRING()->size_byte.
14632
14633 * lisp.h (SDATA, SREF): Produce rvalue.
14634 (SSET): New macro.
14635 * alloc.c (make_event_array): Use SSET for storing into a string.
14636 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
14637 a string.
14638 * casefiddle.c (casify_object): Use SSET.
14639 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14640 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
14641 address of string contents.
14642 * data.c (Faref): Use SDATA.
14643 (Faset): Use SDATA, SSET.
14644 * dired.c (directory_files_internal): Use SSET.
14645 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
14646 (Fread_file_name): Use SREF, SSET.
14647 * fns.c (concat): Use SSET.
14648 (concat, Fdelete): Use SDATA.
14649 * insdel.c (insert_from_string_1): Use SDATA.
14650 * keyboard.c (Fevent_convert_list): Use SREF.
14651 * lread.c (Fload): Use SDATA, SSET.
14652 * macfns.c (validate_x_resource_name): Use SSET.
14653 * process.c (status_message): Use SSET.
14654 * search.c (wordify): Use SDATA.
14655 (Freplace_match): Use SREF.
14656 * w32fns.c (validate_x_resource_name): Use SSET.
14657 * xfns.c (validate_x_resource_name): Use SSET.
14658 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
14659
146602002-07-16 Richard M. Stallman <rms@gnu.org>
14661
14662 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
14663
14664 * xdisp.c (reconsider_clip_changes):
14665 Don't test prevent_redisplay_optimizations_p.
14666 (redisplay_internal): Test prevent_redisplay_optimizations_p
14667 along with clip_changed in some cases.
14668 (try_window_id): Likewise.
14669 (redisplay_window): New local var buffer_unchanged_p.
14670
14671 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
14672
14673 * process.c (create_process): Test USG_SUBTTY_WORKS.
14674 (process_send_signal): Clean up handling of GID.
14675 Detect errors in ioctls meant to set GID.
14676
14677 * window.c (temp_output_buffer_show):
14678 Don't set prevent_redisplay_optimizations_p.
14679
146802002-07-15 Juanma Barranquero <lektu@terra.es>
14681
14682 * eval.c (Fdefvaralias): Add docstring argument.
14683
146842002-07-15 Ken Raeburn <raeburn@gnu.org>
14685
14686 * lisp.h (STRING_INTERVALS): Produce rvalue.
14687 (STRING_SET_INTERVALS): New macro.
14688 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
14689 * fns.c (Fstring_as_multibyte): Likewise.
14690 * intervals.c (balance_possible_root_interval, delete_interval)
14691 (create_root_interval, copy_intervals_to_string): Likewise.
14692 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
14693 instead of 0.
14694
146952002-07-14 Ken Raeburn <raeburn@gnu.org>
14696
14697 * lisp.h (STRING_SET_CHARS): New macro.
14698 (SCHARS, SBYTES): Produce rvalues.
14699 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
14700 * fns.c (concat): Likewise.
14701 * lread.c (read_vector): Likewise.
14702
3419757d 14703 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 14704 (STRING_SET_UNIBYTE): New macro.
3419757d 14705 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
14706 length of -1) changed to use STRING_SET_UNIBYTE.
14707 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14708 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
14709 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
14710 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
14711 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
14712 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
14713 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
14714 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
14715 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
14716 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
14717 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
14718 STRING_BYTES or indirection changed to SCHARS, SBYTES,
14719 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
14720 unchanged for now.
14721
147222002-07-13 Kim F. Storm <storm@cua.dk>
14723
14724 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
14725
147262002-07-12 Richard M. Stallman <rms@gnu.org>
14727
14728 * fileio.c (Fwrite_region): Doc fix.
14729
14730 * print.c (print_error_message): Don't handle Vsignaling_function here.
14731
14732 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
14733 (command_loop_1): Avoid certain actions after memory-full error.
14734
14735 * eval.c (Fsignal): Don't call cancel_hourglass.
14736 For a memory-full error, don't call Vsignal_hook_function
14737 and don't set Vsignaling_function.
14738
14739 * process.c (process_send_signal): Add abort call.
14740
147412002-07-11 Markus Rost <rost@math.ohio-state.edu>
14742
14743 * keymap.c (Fkey_binding): Fix typo.
14744
147452002-07-11 Richard M. Stallman <rms@gnu.org>
14746
14747 * alloc.c (Vmemory_full): New variable.
3419757d 14748 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
14749 Uses changed.
14750 (syms_of_alloc): Defvar them.
14751 (memory_full, buffer_memory_full): Set Vmemory_full.
14752
14753 * lisp.h (Vmemory_full): Add declaration.
14754 (current_column, indented_beyond_p): Change declaration.
14755
14756 * indent.c (last_known_column): Declare as double, not float.
14757 (current_column, current_column_1, string_display_width)
14758 (position_indentation): Return `double'.
14759 (indented_beyond_p): Arg `column' is `double'. Callers changed.
14760
14761 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
14762 (back_to_previous_visible_line_start)
14763 (reseat_at_next_visible_line_start, next_element_from_buffer):
14764 Use `double', not `float', when calling indented_beyond_p.
14765
3419757d 14766 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
14767
14768 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
14769
147702002-07-11 Juanma Barranquero <lektu@terra.es>
14771
14772 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
14773 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
14774 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
14775 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
14776 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
14777 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
14778
147792002-07-10 Juanma Barranquero <lektu@terra.es>
14780
d814862a
JB
14781 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
14782 All callers changed.
048addec
JD
14783
147842002-07-09 Stefan Monnier <monnier@cs.yale.edu>
14785
14786 * data.c (Fdefalias): Add an optional `docstring' argument.
14787 (set_internal, Fsetq_default): Use XCAR/XCDR.
14788
14789 * composite.c (HASH_VALUE, HASH_KEY):
14790 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
14791
147922002-07-09 Kenichi Handa <handa@etl.go.jp>
14793
14794 * callproc.c (Fcall_process): Fix previous change.
14795
147962002-07-07 Stefan Monnier <monnier@cs.yale.edu>
14797
14798 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14799 Add support for hash-tables.
14800 (Ftry_completion): Return t even if the string appears multiple times.
14801
14802 * fns.c (Fnconc): Use XCDR.
14803 (Fprovide): Use CONSP and XCDR.
14804 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14805 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
14806 (Fmake_hash_table): Accept `:size nil'.
14807 (Fmakehash): Delete: moved to subr.el.
14808 (syms_of_fns): Don't defsubr makehash.
14809
14810 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14811 (HASH_TABLE_SIZE): Move from fns.c.
14812
148132002-07-07 Richard M. Stallman <rms@gnu.org>
14814
14815 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
14816 Instead just return 0 when there is something to be done.
14817 (try_scrolling): If make_cursor_line_fully_visible returns 0,
14818 retry scrolling as if cursor were off the bottom.
14819 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
14820 return CURSOR_MOVEMENT_MUST_SCROLL.
14821 (redisplay_window): If make_cursor_line_fully_visible returns 0,
14822 go to try_to_scroll.
14823
14824 * buffer.c (Fbuffer_local_value): Store current value into its binding
14825 so we get the up-to-date value for the binding that is loaded.
14826
14827 * eval.c (Fdefmacro): Doc fix.
14828
148292002-07-05 Dave Love <fx@gnu.org>
14830
14831 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
14832 correctly.
14833
14834 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
14835 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
14836 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
14837 CCL_LookupCharConstTbl.
14838 (syms_of_ccl): Defvar translation-hash-table-vector.
14839
148402002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14841
14842 * xdisp.c: Remove unused variable `face'.
14843
148442002-07-04 Juanma Barranquero <lektu@terra.es>
14845
14846 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
14847 obsolescence information.
14848
148492002-07-03 Andrew Choi <akochoi@shaw.ca>
14850
14851 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
14852 pattern. Search cache first.
14853 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
14854 for Japanese font.
14855 (XLoadQueryFont): Use it.
14856
148572002-07-02 Richard M. Stallman <rms@gnu.org>
14858
14859 * keymap.c (Fdefine_key): Doc fix.
14860
14861 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
14862
148632002-07-02 Juanma Barranquero <lektu@terra.es>
14864
14865 * keymap.c (syms_of_keymap): Fix typo.
14866
148672002-07-01 Andrew Choi <akochoi@shaw.ca>
14868
14869 * s/darwin.h: Define POSIX_SIGNALS.
14870
14871 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
14872 and FSRefMakePath to convert FSSpec returned with Apple Event to
14873 Posix pathname.
14874 (mac_initialize) [TARGET_API_MAC_CARBON]:
14875 Call init_required_apple_events and disable the `Quit' menu item
14876 provided automatically by the Carbon Toolbox.
14877
148782002-07-01 Dave Love <fx@gnu.org>
14879
14880 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14881 for K&R.
14882
14883 * xterm.c: Fix prototype for K&R.
14884
14885 * term.c (costs_set): Declare static, non-initialized for pcc.
14886
148872002-07-01 Richard M. Stallman <rms@gnu.org>
14888
14889 * keyboard.c (timer_last_idleness_start_time): New variable.
14890 (timer_start_idle): Set that.
14891 (read_key_sequence): Use that to reset timer_idleness_start_time
14892 to previous value.
14893
14894 * window.c (Frecenter): With arg, set optional_new_start.
14895
14896 * xdisp.c (redisplay_internal): Make optional_new_start really work.
14897
14898 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
14899 buffer for completion.
14900
149012002-06-29 Ken Raeburn <raeburn@gnu.org>
14902
14903 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
14904
149052002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14906
14907 * keyboard.c (readable_filtered_events): New function that filters
14908 FOCUS_IN_EVENT depending on parameter.
14909 (readable_events): Calls readable_filtered_events, not filtering
14910 FOCUS_IN_EVENT.
14911 (get_filtered_input_pending): New function, filtering parameter passed
14912 to readable_filtered_events.
14913 (get_input_pending): Calls get_filtered_input_pending, not filtering
14914 FOCUS_IN_EVENT.
14915 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
14916 FOCUS_IN_EVENT.
14917
14918 * xterm.h (struct x_output): Add focus_state.
14919
14920 * xterm.c (x_focus_changed): New function.
14921 (x_detect_focus_change): New function.
14922 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
14923 EnterNotify and LeaveNotify to track X focus changes.
14924
149252002-06-28 Andreas Schwab <schwab@suse.de>
14926
14927 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
14928
149292002-06-27 Kim F. Storm <storm@cua.dk>
14930
52eb0373 14931 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
14932 (mode_line_string_face_prop): New variables.
14933 (store_mode_line_string): New function.
14934 (display_mode_element): Use store_mode_line_string to
14935 add mode-line string elements to mode_line_string_list
14936 when mode_line_string_list is non-nil.
14937 (Fformat_mode_line): Now returns propertized string by
14938 default. New arg NO-PROPS to ignore properties.
14939 (decode_mode_spec): Only add two dashes for %- in propertized
14940 mode-line string.
14941 (syms_of_xdisp): Init and staticpro mode_line_string_list.
14942
149432002-06-27 Stefan Monnier <monnier@cs.yale.edu>
14944
14945 * minibuf.c (minibuffer_completion_contents): Add return type.
14946
149472002-06-27 Juanma Barranquero <lektu@terra.es>
14948
14949 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
14950
149512002-06-26 Juanma Barranquero <lektu@terra.es>
14952
14953 * fileio.c (read_file_name_cleanup): Add missing return.
14954
149552002-06-26 Richard M. Stallman <rms@gnu.org>
14956
14957 * window.c (Frecenter): Don't set force_start flag.
14958
14959 * minibuf.c (do_completion, Fminibuffer_complete_word)
14960 (Fminibuffer_completion_help): Complete just the text before point.
14961 (minibuffer_completion_contents): New function.
14962
14963 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
14964
14965 * frame.c (frames_bury_buffer): Function deleted.
14966
149672002-06-25 Miles Bader <miles@gnu.org>
14968
14969 * callint.c (Fcall_interactively): When checking to see if doprnt hit
14970 the end of callint_message, allow for a terminating '\0'.
14971
149722002-06-24 Juanma Barranquero <lektu@terra.es>
14973
52eb0373 14974 * w32select.c: Include composite.h.
048addec
JD
14975
14976 * w16select.c: Likewise.
14977
149782002-06-24 Kenichi Handa <handa@etl.go.jp>
14979
14980 * callproc.c (Fcall_process): If code detection is necessary,
14981 call detect_coding directly here.
14982
14983 * coding.c (detect_eol): Preserve coding->cmp_data.
14984
14985 * w16select.c (Fw16_get_clipboard_data):
14986 * w32fns.c (w32_to_x_font):
14987 * w32select.c (Fw32_get_clipboard_data):
14988 * xselect.c (selection_data_to_lisp_data):
14989 * xterm.c (XTread_socket): Disable composition handling.
14990
149912002-06-24 Stefan Monnier <monnier@cs.yale.edu>
14992
14993 * print.c (temp_output_buffer_setup): Kill all local variables.
14994
149952002-06-22 Stefan Monnier <monnier@cs.yale.edu>
14996
14997 * lread.c (Fread): Remove redundant and imprecise declaration.
14998
14999 * xfns.c (check_x_display_info): Use check_x_frame.
15000
15001 * .gdbinit (xprintsym): Use the new `xname' field.
15002 (xsymbol): Use it.
15003
150042002-06-22 Jason Rumney <jasonr@gnu.org>
15005
15006 * w32fns.c (file_dialog_callback): New function.
15007 (Fx_file_dialog): Allow selecting directories as well as files.
15008
150092002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15010
15011 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 15012 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
15013
150142002-06-17 Andrew Choi <akochoi@shaw.ca>
15015
15016 * macterm.c (mac_scroll_area): Set foreground and backcolor to
15017 black and white before scrolling. Restore frame background and
15018 foreground color after scrolling.
15019 (do_window_update): Call XClearWindow before calling expose_frame.
15020 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
15021 FRAME_FOREGROUND_PIXEL of frame.
15022
15023 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15024 test Mac command key as <ALT> key.
15025
150262002-06-17 Stefan Monnier <monnier@cs.yale.edu>
15027
15028 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
15029
15030 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
15031 Lookup keys in function-key-map immediately so that key-translation-map
15032 can be applied earlier.
15033 Remove function_key_possible and key_translation_possible, replaced
15034 by checking `keytran_start < t'.
15035
15036 * .gdbinit (xsymbol): Use the new `xname' field.
15037
150382002-06-17 Andrew Choi <akochoi@shaw.ca>
15039
15040 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15041 test Mac command key as <ALT> key.
15042
15043 * mac.c (do_applescript): Call initialize_applescript if necessary
15044 when first called. Dispose of result_desc only when there is no error.
15045 (Fdo_applescript): Use %d format specifier instead of %ld.
15046
150472002-06-16 Andrew Choi <akochoi@shaw.ca>
15048
15049 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
15050 of FrontWindow for cases keyDown and autoKey.
15051
15052 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
15053 Vdefault_fontset to Monaco with mac-roman coding.
15054
15055 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
15056 init_process before and after inclusion of Carbon/Carbon.h, resp.
15057
15058 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
15059 cursor_gc.
15060 (add_font_name_table_entry): New function.
15061 (init_font_name_table): Use add_font_name_table_entry; add italic,
15062 bold, and bold-italic entries for truetype fonts.
15063
15064 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
15065 for Mac too.
15066 (try_font_list) [MAC_OS]: If no font matches given registry, try
15067 fonts with any registry matching face_family.
15068 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
15069
15070 * s/darwin.h: If autoconf detects the Ncurses library, define
15071 LIBS_TERMCAP to -lncurses to use it.
15072
150732002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
15074
15075 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
15076
150772002-06-15 Richard M. Stallman <rms@gnu.org>
15078
15079 * window.c (Fset_window_configuration): Explicitly preserve
15080 the point value that new_current_buffer had at the start.
15081
150822002-06-14 Juanma Barranquero <lektu@terra.es>
15083
15084 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
15085 Fix typos.
15086
150872002-06-14 Kim F. Storm <storm@cua.dk>
15088
15089 * insdel.c (insert_1_both, insert_from_string_1)
15090 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
15091 insert happened in the end_unchanged region. Otherwise, the
15092 redisplay may be confused and duplicate the last line in the
15093 buffer [seen after save-buffer when require-final-newline==t].
15094
150952002-06-13 Jason Rumney <jasonr@gnu.org>
15096
15097 * w32.c (init_environment): Remove EMACSLOCKDIR.
15098 (stat): Swap _S_IFDIR and _S_IFREG.
15099
151002002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15101
15102 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
15103 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
15104 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
15105 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
15106 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
15107 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
15108 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
15109 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
15110 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
15111 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
15112 SELECTION_REQUEST_EVENT, selection_clear_event to
15113 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
15114 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
15115 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
15116 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
15117 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
15118 no_event to NO_EVENT.
15119
151202002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15121
15122 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
15123
151242002-06-12 Stefan Monnier <monnier@cs.yale.edu>
15125
15126 * intervals.c (textget): Don't forget to `return'.
15127 (lookup_char_property): Use XCAR/XCDR.
15128
151292002-06-12 Juanma Barranquero <lektu@terra.es>
15130
15131 * xdisp.c (Fformat_mode_line): Fix typo.
15132
151332002-06-12 Kim F. Storm <storm@cua.dk>
15134
15135 * xdisp.c (Fformat_mode_line): New function.
15136 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
15137 (store_frame_title_char, store_frame_title): Use unconditionally.
15138 (init_xdisp): Defsubr Fformat_mode_line.
15139 Initialize frame_title_buf etc. unconditionally.
15140
151412002-06-11 Stefan Monnier <monnier@cs.yale.edu>
15142
15143 * keyboard.c (read_key_sequence):
15144 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
15145 things through those maps after downcasing events.
15146 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
15147 applies after function-key-map.
15148 Make sure that keytran can be done in the middle in the sequence.
15149 Be careful not to throw away events past the one we downcase.
15150
15151 * lread.c (read_integer): Remove unused var `tem'.
15152 (read1): Fix int/Lisp_Object mixup.
15153
15154 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
15155
151562002-06-11 Richard M. Stallman <rms@gnu.org>
15157
15158 * keyboard.c (readable_events): Ignore any number of
15159 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
15160
151612002-06-09 Miles Bader <miles@gnu.org>
15162
15163 * xfaces.c (Ftty_supports_face_attributes_p): New function.
15164 (parse_rgb_list, tty_lookup_color): New functions.
15165 (tty_defined_color): Use `tty_lookup_color' to do all the work.
15166 (color_distance, Fcolor_distance): New functions.
15167 (TTY_SAME_COLOR_THRESHOLD): New macro.
15168 (Qtty_color_standard_values): New variable.
15169 (syms_of_xfaces): Initialize new vars & functions.
15170
151712002-06-08 Colin Walters <walters@verbum.org>
15172
15173 * textprop.c (Vchar_property_alias_alist): New variable.
15174 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
15175
15176 * intervals.c (lookup_char_property): New function for looking up
15177 overlay and text properties, created from textget.
15178 (textget): Use it.
15179
15180 * intervals.h (lookup_char_property): Declare.
15181 (Vchar_property_alias_alist): Declare.
15182
15183 * buffer.c (Foverlay_get): Use lookup_char_property.
15184
151852002-06-07 Sam Steingold <sds@gnu.org>
15186
15187 * xselect.c (lisp_data_to_selection_data): Fix last change:
15188 *data_ret is not a Lisp string, while unibyte_string is.
15189
151902002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
15191
15192 * xselect.c (lisp_data_to_selection_data): Fix last change:
15193 set size_ret.
15194
151952002-06-07 Andreas Schwab <schwab@suse.de>
15196
15197 * m/amdx86-64.h: New file.
15198
151992002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
15200
15201 * fns.c (Fstring_make_unibyte): Doc fix.
15202
15203 * xselect.c (lisp_data_to_selection_data): If the requested type
15204 is STRING, call string_make_unibyte to encode the selected text
15205 as a string.
15206
15207 * window.c (Fset_window_hscroll): Doc fix.
15208
152092002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15210
15211 * fileio.c (choose_write_coding_system):
15212 Call select-safe-coding-system properly.
15213
152142002-06-03 Richard M. Stallman <rms@gnu.org>
15215
15216 * xdisp.c (message_with_string): Error if STRING is not a string.
15217
15218 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
15219
15220 * fileio.c (choose_write_coding_system): Pass FILE arg to
15221 Vselect_safe_coding_system_function.
15222
152232002-06-03 Ken Raeburn <raeburn@gnu.org>
15224
15225 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
15226
152272002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
15228
15229 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
15230 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
15231 * keymap.c (describe_command): Likewise.
15232 * minibuf.c (read_minibuf): Likewise.
15233
15234 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
15235 Cast `current_column' return value to int.
15236 (back_to_previous_visible_line_start)
15237 (reseat_at_next_visible_line_start, next_element_from_buffer):
15238 Cast `indented_beyond_p' 3rd arg to float.
15239
15240 * indent.c (last_known_column): Now a float.
15241 (current_column_1, position_indentation, current_column)
15242 (string_display_width): Return float.
15243 (Fcurrent_column): Cast `current_column' return value to int.
15244 (Fcurrent_indentation): Cast `position_indentation' retval to int.
15245 (indented_beyond_p): Third arg now a float.
15246 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
15247
15248 * lisp.h (current_column): Now returns float.
15249 (indented_beyond_p): 3rd arg now a float.
15250
152512002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
15252
15253 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
15254 is Qcompound_text_with_extensions.
15255
15256 * xselect.c (lisp_data_to_selection_data): Always set selection
15257 type as string if x_encode_text returns streingp non-NULL.
15258
15259 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
15260
152612002-05-30 Richard M. Stallman <rms@gnu.org>
15262
15263 * window.c (Fset_window_configuration): Correct the handling
15264 of point in current buffer, to work with multiple windows.
15265
152662002-05-29 Colin Walters <walters@verbum.org>
15267
15268 * lread.c (Fread_from_string): Don't depend on order of evaluation
15269 for C function parameters.
15270
152712002-05-28 Richard M. Stallman <rms@gnu.org>
15272
15273 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
15274 way for blinked-off state and for a nonselected window.
15275
15276 * window.c (window_scroll_pixel_based): Don't call Fbolp;
15277 instead, see if the new start pos is at beginning of line.
15278
15279 * fileio.c (Fwrite_region): If START is a string, don't
15280 make any annotations.
15281
15282 * eval.c (syms_of_eval): Doc fix.
15283
152842002-05-28 Colin Walters <walters@debian.org>
15285
15286 * emacs.c (USAGE1): Add --no-splash.
15287 (standard_args): Ditto.
15288
152892002-05-28 Colin Walters <walters@gnu.org>
15290
15291 * lread.c (readchar_count): New variable.
15292 (readchar): Increment it.
15293 (unreadchar): Decrement it.
15294 (read_multibyte): Decrement it.
15295 (Vread_with_symbol_positions): New variable.
15296 (Vread_symbol_positions_list): New variable.
15297 (read_internal_start): New function, created from Fread and
15298 Fread_from_string. Handle Vread_symbol_positions_list and
15299 Vread_with_symbol_positions.
15300 (readevalloop, Fread, Fread_from_string): Use it.
15301 (read1): Use readchar_count to add symbol positions to
15302 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
15303 (syms_of_lread): DEFVAR_LISP and initialize them.
15304
15305 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
15306 (substitute_object_recurse, substitute_object_in_subtree)
15307 (substitute_in_interval): Prototype.
15308 (read_multibyte): Return c if it's less than zero.
15309
153102002-05-28 Kim F. Storm <storm@cua.dk>
15311
15312 * fileio.c (Fread_file_name_internal): Added brute-force
15313 speed up for using predicate file-directory-p.
15314
153152002-05-28 Kim F. Storm <storm@cua.dk>
15316
15317 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
15318 New variables.
15319 (syms_of_fileio): DEFVAR_LISP them.
15320 (read_file_name_cleanup): New unwind function.
15321 (Fread_file_name_internal): Only return completions satifying
15322 Vread_file_name_predicate. Temporarily unwind protect and rebind
15323 default-directory while checking completions against the predicate.
15324 (Fread_file_name): Added PREDICATE argument. Specbind it to
15325 Vread_file_name_predicate during completion.
15326 Call Vread_file_name_function to read the file name if non-nil.
15327
15328 * lisp.h (Fread_file_name): Now has 6 args.
15329
15330 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
15331 predicate for Fread_file_name when reading directory name.
15332 Supply Qnil for predicate in other calls to Fread_file_name.
15333
153342002-05-26 Miles Bader <miles@gnu.org>
15335
15336 * term.c (tty_capable_p): New function.
15337 * dispextern.h (tty_capable_p): New function declaration.
15338 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
15339 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
15340
153412002-05-23 Stefan Monnier <monnier@cs.yale.edu>
15342
15343 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
15344 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
15345 (Vwrite_region_annotate_functions): Docstring fix.
15346
153472002-05-23 Kim F. Storm <storm@cua.dk>
15348
15349 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
15350 phys_cursor's hpos is overwritten. This is still not completely
15351 correct, as it doesn't really make sense to use hpos at all to
15352 get the cursor glyph (as that is relative to the width of the
15353 characters on the line, which may have changed during the update).
15354
153552002-05-22 Jason Rumney <jasonr@gnu.org>
15356
15357 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
15358 Lisp_Object.
15359 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
15360 Use modified enumfont_t struct.
15361
15362 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15363
15364 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
15365 Handle the `hbar' cursor type.
15366 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15367
15368 * w32fns.c (Qhbar): New variable.
15369 (x_specified_cursor_type): Use it.
15370
153712002-05-21 Ken Raeburn <raeburn@gnu.org>
15372
15373 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
15374 now, when the address is needed.
15375
153762002-05-21 Colin Walters <walters@gnu.org>
15377
15378 * Makefile.in (shortlisp): Add font-core.el.
15379
153802002-05-20 Richard M. Stallman <rms@gnu.org>
15381
15382 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
15383
15384 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
15385 equivalent key bindings here.
15386
153872002-05-20 Ken Raeburn <raeburn@gnu.org>
15388
15389 Change symbol structure to contain a lisp object for the symbol
15390 name:
15391 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
15392 object field named "xname".
15393 (SYMBOL_NAME): New macro.
15394 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
15395 name field.
15396 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
15397 (mark_object, gc_sweep): Use symbol xname field and XSTRING
15398 instead of name field.
15399 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
15400 SYMBOL_NAME instead of XSYMBOL and name field.
15401 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
15402 instead of XSYMBOL and name field.
15403 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
15404 and SYMBOL_NAME instead of XSYMBOL and name field.
15405 * coding.c (Fread_coding_system, code_convert_region1)
15406 (code_convert_string1, code_convert_string_norecord)
15407 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
15408 XSYMBOL and name field.
15409 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
15410 (Fmake_variable_buffer_local, Fmake_local_variable)
15411 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
15412 of XSYMBOL and name field.
15413 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
15414 XSYMBOL and name field.
15415 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
15416 instead of XSYMBOL and name field.
15417 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
15418 XSYMBOL and name field.
15419 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
15420 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15421 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
15422 instead of XSYMBOL and name field.
15423 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
15424 (parse_modifiers, apply_modifiers, Fevent_convert_list)
15425 (parse_solitary_modifier, Fexecute_extended_command):
15426 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15427 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
15428 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
15429 of XSYMBOL and name field.
15430 (describe_command, describe_translation): Use SYMBOL_NAME and
15431 assignment instead of XSYMBOL and name field and XSETSTRING.
15432 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
15433 instead of XSYMBOL and name field.
15434 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
15435 name field and XSETSTRING.
15436 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15437 of XSYMBOL and name field.
15438 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
15439 assignment instead of XSYMBOL and name field and XSETSTRING.
15440 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
15441 XSTRING instead of XSYMBOL and name field.
15442 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
15443 and XSTRING instead of XSYMBOL and name field.
15444 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
15445 and XSTRING instead of XSYMBOL and name field.
15446 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
15447 XSTRING instead of XSYMBOL and name field.
15448 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15449 of XSYMBOL and name field.
15450 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
15451 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15452
154532002-05-19 Ken Raeburn <raeburn@gnu.org>
15454
15455 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
15456 and XCDR real rvalues in most configurations.
15457
15458 * buffer.c (fix_overlays_in_range, fix_overlays_before):
15459 Don't take the address of the cdr part of a cons cell; instead, track
15460 the parent cell and call XSETCDR, or set the variable for the head
15461 of the list if we haven't started down the list yet.
15462
154632002-05-19 Richard M. Stallman <rms@gnu.org>
15464
15465 * doc.c (reread_doc_file): Don't ask for confirmation.
15466
154672002-05-18 Jason Rumney <jasonr@gnu.org>
15468
15469 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
15470 (xbm_load_image): Use it.
15471 (xbm_load): Ditto.
15472 (xbm_read_bitmap_data): Reverted to xfns.c version.
15473 From David Ponce <david@dponce.com>.
15474
154752002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
15476
15477 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
15478 2.02 and later.
15479
154802002-05-16 Juanma Barranquero <lektu@terra.es>
15481
15482 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
15483
154842002-05-15 Stefan Monnier <monnier@cs.yale.edu>
15485
15486 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
15487 meaningful test.
15488 (read_char_minibuf_menu_prompt): Fix typo.
15489
154902002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
15491
15492 * eval.c (Fcommandp): Doc fix.
15493
154942002-05-13 Stefan Monnier <monnier@cs.yale.edu>
15495
15496 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
15497 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
15498 (Fset_keymap_parent): Gcpro a bit more.
15499 (access_keymap): Gcpro around meta_map call and around the main loop.
15500 (get_keyelt): Gcpro when following indirect references.
15501 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
15502 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
15503 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
15504 Remove useless ad-hoc remap code.
15505
155062002-05-13 Richard M. Stallman <rms@gnu.org>
15507
15508 * search.c (search_buffer): Give up boyer moore search if inverse
15509 translation change charset_base.
15510
155112002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
15512
15513 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
15514 characters is carried over from the previous block of text, adjust
15515 coding->produced to account for the extra character.
15516
155172002-05-11 Andreas Schwab <schwab@suse.de>
15518
15519 * coding.c (intersection): Keep the elements of the returned list
15520 in the same order as in the first list.
15521
155222002-05-11 Kim F. Storm <storm@cua.dk>
15523
3419757d 15524 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
15525 only update cmm_size if realloc actually succeeds.
15526 Testing with initial size of 2 elements revealed that using
15527 realloc on GNU/Linux would cause a random trap in xmalloc
15528 later on, so I rewrote the code to use malloc/bcopy/free instead
15529 of realloc.
15530
155312002-05-10 Jason Rumney <jasonr@gnu.org>
15532
15533 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
15534
155352002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
15536
15537 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
15538 parens, to ensure correct evaluation order.
15539
155402002-05-10 Kim F. Storm <storm@cua.dk>
15541
15542 * keymap.c (Vemulation_mode_map_alists): New variable.
15543 (syms_of_keymap): DEFVAR_LISP it.
15544 (current_minor_maps): Process keymap alists in that list before
15545 minor-mode-overriding-map-alist and minor-mode-map-alist.
15546
155472002-05-09 Richard M. Stallman <rms@gnu.org>
15548
15549 * search.c (Freplace_match): Doc fix.
15550
155512002-05-09 Kim F. Storm <storm@cua.dk>
15552
15553 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15554 Enlarge cursor rectangle drawn around image with non-zero relief.
15555
15556 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
15557 Enlarge cursor rectangle drawn around image with non-zero relief.
15558
15559 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15560 Enlarge cursor rectangle drawn around image with non-zero relief.
15561
155622002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
15563
15564 * xselect.c (lisp_data_to_selection_data): Don't set selection
15565 type if comes from the Lisp object's car. If the selection
15566 contains a pure ASCII text, always return QSTRING as its type.
15567
155682002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15569
15570 * mac.c (mac-cut-function): Doc fix.
15571
155722002-05-05 Richard M. Stallman <rms@gnu.org>
15573
15574 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
15575
155762002-05-04 Jason Rumney <jasonr@gnu.org>
15577
15578 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
15579 for event-click-count.
15580
15581 * process.c (init_process): Only add server subfeature if we can
15582 use non-blocking I/O.
15583
155842002-05-04 Andrew Choi <akochoi@shaw.ca>
15585
15586 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
15587 repeatedly.
15588
155892002-05-03 Jason Rumney <jasonr@gnu.org>
15590
15591 * process.c (Fmake_network_process): Only support server sockets
15592 when we can make them non-blocking.
15593
15594 * s/ms-w32.h (HAVE_SELECT): Define.
15595
15596 * w32.h (FILE_NDELAY): New flag.
15597
15598 * w32.c (sys_getpeername, fcntl): New functions.
15599 (_sys_read_ahead): Temporarily block on non-blocking sockets.
15600
15601 * w32proc.c: include sys/file.h.
15602
156032002-05-03 Colin Walters <walters@verbum.org>
15604
15605 * callproc.c (Vgame_score_directory): Renamed to
15606 Vshared_game_score_directory.
15607
156082002-04-30 Richard M. Stallman <rms@gnu.org>
15609
15610 * s/gnu.h [emacs]: Include stdio.h.
15611 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
15612
15613 * eval.c (do_autoload): Error if called while preparing to dump.
15614
15615 * fns.c (Frequire): Error if need to load while preparing to dump.
15616
156172002-04-28 Colin Walters <walters@verbum.org>
15618
15619 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
15620 Default to "~/.emacs.d/games".
15621
156222002-04-29 Stefan Monnier <monnier@cs.yale.edu>
15623
15624 * lread.c (openp): Change arg exec_only to predicate.
15625 (build_load_history): Use XCAR/XCDR.
15626 (Flocate_file_internal): New fun.
15627 (syms_of_lread): Defsubr it.
15628 (Fload): Update call to openp.
15629
15630 * lisp.h (openp): Update prototype.
15631
15632 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
15633 * w32proc.c (sys_spawnve):
15634 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
15635 * w32.c (check_windows_init_file):
15636 * sound.c (Fplay_sound_internal):
15637 * process.c (Fstart_process):
15638 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
15639 * mac.c (run_mac_command):
15640 * emacs.c (init_cmdargs):
15641 * callproc.c (Fcall_process): Update call to openp.
15642
15643 * textprop.c (remove_properties): Don't use XCAR without CONSP.
15644
15645 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
15646
156472002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15648
15649 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
15650 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
15651
156522002-04-28 Richard M. Stallman <rms@gnu.org>
15653
15654 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
15655
15656 * eval.c (Fcommandp): New arg for_call_interactively.
15657 * lisp.h (Fcommandp): Declare new arg.
15658
156592002-04-28 Jason Rumney <jasonr@gnu.org>
15660
15661 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
15662
15663 * w32.c (stat, fstat): Use file index information to generate
15664 inodes for directories where available.
15665
156662002-04-26 Andrew Choi <akochoi@shaw.ca>
15667
15668 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
15669 [HAVE_CARBON]: Include Mac object files.
15670
15671 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
15672 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
15673 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
15674 MAC_OSX, and MAC_OS instead of macintosh.
15675
15676 * editfns.c [MAC_OS8]: Include stdio.h.
15677
15678 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
15679
15680 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
15681 Apple Monaco.
15682
78819ebb 15683 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
15684 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
15685 calling select.
15686
15687 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
15688
15689 * tparam.c [MAC_OSX]: Don't define BC and UP.
15690
15691 * config.in [HAVE_CARBON]: Add.
15692
15693 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
15694 Move here from mac/src and mac/inc.
15695
15696 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
15697
156982002-04-26 Gerd Moellmann <gerd@gnu.org>
15699
15700 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
15701 Compute phys_cursor_width from the x position returned
15702 by x_draw_glyhs, which is cheaper.
15703 (x_display_and_set_cursor): Compute the buffer-local value
15704 of `cursor-in-non-selected-windows' only when needed.
15705
157062002-04-25 Gerd Moellmann <gerd@gnu.org>
15707
15708 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
15709 cursor on a stretch glyph has a width that depends on
15710 x_stretch_cursor_p.
15711
157122002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15713
15714 * abbrev.c (abbrev-start-location): Doc fix.
15715
15716 * indent.c (Fvertical_motion): Fix last change.
15717
157182002-04-25 Gerd Moellmann <gerd@gnu.org>
15719
15720 * indent.c (Fvertical_motion): Move to the start of the line
15721 containing PT before moving up or down.
15722
157232002-04-24 Gerd Moellmann <gerd@gnu.org>
15724
15725 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
15726 case of writing a whole row, more or less analogous to the case of
15727 writing only parts of a row.
15728
15729 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
15730 0 for NO_CURSOR.
15731
15732 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
15733
157342002-04-23 Colin Walters <walters@verbum.org>
15735
15736 * buffer.c (syms_of_buffer): Doc fix.
15737
157382002-04-23 Gerd Moellmann <gerd@gnu.org>
15739
15740 * xterm.c (notice_overwritten_cursor): Handle the special case
15741 of the cursor being in the first blank non-text line at the
15742 end of a window.
15743
15744 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15745 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15746 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
15747 bar cursors only, to make phys_cursor_width contain what its name
15748 suggests.
15749 (notice_overwritten_cursor): Consider the cursor image erased if
15750 the output area intersects the cursor image in y-direction.
15751
157522002-04-23 Simon Marshall <simon@gnu.org>
15753
15754 * xfns.c (x_set_mouse_color): Change default for cross_cursor
15755 to XC_hand2.
15756
157572002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15758
15759 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
15760
157612002-04-22 Kim F. Storm <storm@cua.dk>
15762
15763 * textprop.c (remove_properties): Fixed trap for malformed plist.
15764
157652002-04-22 Richard M. Stallman <rms@gnu.org>
15766
15767 * cmds.c (Fend_of_line): Handle intangible text in mid line.
15768
15769 * window.c (make_window): Initialize height_fixed_p,
15770 last_cursor_off_p, and p->cursor_off_p slots.
15771
157722002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15773
15774 * fns.c (use-dialog-box): Doc fix.
15775
157762002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15777
15778 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
15779 variables `row', `i' and `area'.
15780 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
15781 toolkit library.
15782
157832002-04-19 Stefan Monnier <monnier@cs.yale.edu>
15784
15785 * xfaces.c (clear_font_table): Don't free the default font of
15786 a frame even if it's on another display.
15787 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
15788 that could be Qt.
15789
157902002-04-19 Juanma Barranquero <lektu@terra.es>
15791
15792 * indent.c (Fmove_to_column): Remove unused local variable
15793 `next_boundary_byte'.
15794 (current_column_1): Likewise.
15795
157962002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
15797
15798 * msdos.c (Qhbar): New variable.
15799 (syms_of_msdos): Intern and staticpro it.
15800 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
15801 cursor type.
15802
158032002-04-19 Dave Lambert <dlambert@acm.org>
15804
15805 Theses change implement an underscore-like (`hbar') cursor.
15806
15807 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15808
15809 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
15810 Handle the `hbar' cursor type.
15811 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15812
15813 * xfns.c (Qhbar): New variable.
15814 (syms_of_xfns): Intern and staticpro it.
15815 (x_specified_cursor_type): Handle `hbar' cursor.
15816
15817 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
15818 not defined.
15819
158202002-04-18 Richard M. Stallman <rms@gnu.org>
15821
15822 * textprop.c (remove_properties): New arg LIST allows scanning
15823 either a list or a plist.
15824 (interval_has_some_properties_list): New function, like
15825 interval_has_some_properties using list instead of plist.
15826 All callers changed.
15827 (Fremove_list_of_text_properties): New function.
15828 (syms_of_textprop): Defsubr it.
15829
158302002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15831
15832 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
15833
158342002-04-17 Juanma Barranquero <lektu@terra.es>
15835
15836 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
15837
158382002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15839
15840 * window.c (coordinates_in_window): Don't report on margin area
15841 if its width is zero.
15842
158432002-04-16 Jason Rumney <jasonr@gnu.org>
15844
15845 * w32fns.c (Fx_file_dialog): Decode file name before using.
15846
15847 * w32term.c (construct_drag_n_drop): Likewise.
15848
158492002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
15850
15851 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
15852 store load-history in pure space.
15853
15854 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
15855
158562002-04-16 Stefan Monnier <monnier@cs.yale.edu>
15857
15858 * xterm.c (Qlatin_1, Qutf_8): New vars.
15859 (syms_of_xterm): Initialize them.
15860 (XTread_socket): Eliminate incorrect optimization that tried to avoid
15861 decoding the output of X*LookupString.
15862 Always use latin-1 to decode the output of XLookupString.
15863 Try Xutf8LookupString if XmbLookupString failed.
15864
15865 * region-cache.c (new_region_cache): Use BEG.
15866
158672002-04-16 Gerd Moellmann <gerd@gnu.org>
15868
15869 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
15870 configuration files.
15871 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
15872 returns 0.
15873
158742002-04-15 Andreas Schwab <schwab@suse.de>
15875
15876 * config.in: Regenerated using autoheader.
15877
15878 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
15879 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
15880 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
15881 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
15882 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
15883 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
15884 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
15885 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
15886 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
15887 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
15888 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
15889 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
15890 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
15891 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
15892 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
15893 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
15894 STACK_DIRECTION, now set by autoconf.
15895
158962002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15897
15898 * dispnew.c (marginal_area_string): Sort arguments.
15899
15900 * dispextern.h (marginal_area_string): Add prototype.
15901
159022002-04-13 Richard M. Stallman <rms@gnu.org>
15903
15904 * fileio.c (Finsert_file_contents):
15905 Don't call temp_output_buffer_setup--do just part, by hand.
15906
15907 * coding.c (run_pre_post_conversion_on_str):
15908 Don't call temp_output_buffer_setup--do just part, by hand.
15909
15910 * keyboard.c (command_loop_1): Don't call start_hourglass
15911 or cancel_hourglass when executing a macro.
15912
15913 * marker.c (count_markers): New function.
15914
15915 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
15916 grow without limit. Move recently used elements to the front.
15917
159182002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
15919
15920 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
15921
159222002-04-12 Gerd Moellmann <gerd@gnu.org>
15923
15924 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
15925 rows marginal areas.
15926 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
15927 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15928
15929 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
15930
159312002-04-12 Dave Love <fx@gnu.org>
15932
15933 * dispnew.c (marginal_area_string): New.
15934
15935 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
15936 (Qleft_margin, Qright_margin): Declare.
15937 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
15938
15939 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
15940 note_mode_line_highlight and extended.
15941
15942 * keyboard.c (Qleft_margin, Qright_margin): Declare.
15943 (make_lispy_event): Deal with mouse events in margins.
15944
159452002-04-12 Stefan Monnier <monnier@cs.yale.edu>
15946
15947 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
15948
15949 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
15950 than deactivating the mark if tmm is set to `lambda'.
15951 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
15952 Use a single event for HELP_EVENT.
15953 (Fexecute_extended_command): Save last_point_position.
15954
159552002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15956
15957 * lisp.h (Fpropertize): Add prototype.
15958
15959 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
15960
159612002-04-10 Colin Walters <walters@verbum.org>
15962
15963 * config.in: Add HAVE_SHARED_GAME_DIR.
15964
52eb0373 15965 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
15966 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
15967
159682002-04-10 Richard M. Stallman <rms@gnu.org>
15969
15970 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
15971
159722002-04-09 Stefan Monnier <monnier@cs.yale.edu>
15973
15974 * minibuf.c (read_minibuf): Use empty_string.
15975 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
15976 Short-circuit the search as soon as it "failed".
15977 (Fall_completions): Allow lambda forms and lists of strings for alist.
15978 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
15979 when require_match is nil.
15980 (Ftest_completion): Rename from `test_completion' and export to elisp.
15981 Call the predicate also when alist is a list.
15982 Obey Vcompletion_regexp_list.
15983 (do_completion, Fminibuffer_complete_and_exit): Use it.
15984 (Fassoc_string): Rename from `assoc_for_completion'.
15985 Allow list of strings as well and export to elisp.
15986
159872002-04-08 Stefan Monnier <monnier@cs.yale.edu>
15988
15989 * puresize.h (BASE_PURESIZE): Increase to 900KB.
15990
159912002-04-08 Juanma Barranquero <lektu@terra.es>
15992
15993 * w32.c (sys_accept): Don't hide variable `s'.
15994
159952002-04-05 Gerd Moellmann <gerd@gnu.org>
15996
15997 * callint.c (Fcall_interactively): Use INTEGERP instead of
15998 NUMBERP for checking Vhistory_length.
15999
160002002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16001
16002 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
16003 Doc fix to reflect it.
16004
160052002-04-04 Richard M. Stallman <rms@gnu.org>
16006
16007 * xdisp.c (display_mode_element): New arg RISKY.
16008 Disregard text props found or specified within a variable
16009 that isn't marked risky-local-variable.
16010 (Qrisky_local_variable): New variable.
16011 (syms_of_xdisp): Init and staticpro it.
16012
160132002-04-04 Stefan Monnier <monnier@cs.yale.edu>
16014
16015 * undo.c (record_point): New fun.
16016 (record_delete, record_insert): Use it.
16017
160182002-04-03 Juanma Barranquero <lektu@terra.es>
16019
16020 * doc.c (Fdocumentation): Add missing parentheses.
16021 (Fdocumentation_property): Likewise.
16022
160232002-04-03 Stefan Monnier <monnier@cs.yale.edu>
16024
16025 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
16026 data is 0, just return nil.
16027
160282002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
16029
16030 * msdos.c (syms_of_msdos): Fix last change with
16031 mouse_autoselect_window.
16032
160332002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16034
16035 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
16036 mouse_autoselect_window.
16037
160382002-04-02 Stefan Monnier <monnier@cs.yale.edu>
16039
16040 * keyboard.c (make_lispy_event): Handle unknown keysyms together
16041 with system-specific keysyms. Use it also for unknown function keys.
16042
16043 * doc.c (reread_doc_file): Return whether reload was attempted.
16044 (Fdocumentation, Fdocumentation_property): Don't try to reload
16045 if the doc is 0 and only ask once.
16046
16047 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
16048
160492002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
16050
16051 * keyboard.c (read_char): If the event was Qselect_window,
16052 restore timer_idleness_start_time to its previous value.
16053
16054 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
16055
160562002-04-01 Stefan Monnier <monnier@cs.yale.edu>
16057
16058 * region-cache.c (new_region_cache): Use BEG.
16059
16060 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
16061 Use BEG and BEG_BYTE.
16062
16063 * doc.c (get_doc_string): Return nil if the location is wrong.
16064 (reread_doc_file): New fun.
16065 (Fdocumentation, Fdocumentation_property):
16066 Call it if get_doc_string fails.
16067 (Fsnarf_documentation): Make it work for a dumped Emacs.
16068
16069 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
16070 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
16071
16072 * charset.c (Fstring): Allow 0 arguments.
16073
16074 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
16075
16076 * process.c (DATAGRAM_CONN_P, list_processes_1)
16077 (Fprocess_datagram_address, Fset_process_datagram_address)
16078 (Fset_network_process_options, server_accept_connection):
16079 Fix some int/Lisp_Object confusions (thank you union types).
16080
160812002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16082
16083 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
16084
16085 * w32term.c: Likewise.
16086 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
16087
16088 * keyboard.c (Qselect_window): New symbol.
16089 (head_table): Use it.
16090 (keys_of_keyboard): Bound select-window event to handle-select-window.
16091 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
16092
16093 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
16094 (last_window): New variable.
16095 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
16096 (note_mouse_movement): Remove reimplemented code in #if 0.
16097 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
16098 Emacs windows.
16099
16100 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
16101
161022002-03-31 Gerd Moellmann <gerd@gnu.org>
16103
16104 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
16105 Callers changed.
16106
161072002-03-30 Richard M. Stallman <rms@gnu.org>
16108
16109 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
16110 loop whenever it stops making progress.
16111
16112 * widget.c (set_frame_size): Don't call change_frame_size.
16113
161142002-03-30 Gerd Moellmann <gerd@gnu.org>
16115
16116 * dispnew.c (direct_output_for_insert):
16117 Call mark_window_display_accurate.
16118
161192002-03-29 Jason Rumney <jasonr@gnu.org>
16120
16121 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
16122
161232002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
16124
16125 * Makefile.in (lread.o): Depend on coding.h.
16126
16127 * lread.c (openp, Fload): Encode the file name before passing it
16128 to `stat', `access', and `emacs_open'.
16129 (openp): GCPRO the encoded file name. Don't recompute Lisp
16130 strings unnecessarily.
16131
161322002-03-29 Kim F. Storm <storm@cua.dk>
16133
16134 * fns.c (Flax_plist_put): Doc fix.
16135
161362002-03-28 Miles Bader <miles@gnu.org>
16137
16138 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
16139
161402002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16141
16142 * process.c (set-network-process-options): Add usage.
16143 (make-network-process): Doc fix.
16144
161452002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
16146
16147 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
16148
161492002-03-26 Richard M. Stallman <rms@gnu.org>
16150
16151 * fns.c (Fsubstring_no_properties): New function.
16152 (Flax_plist_get, Flax_plist_put): New functions.
16153 (syms_of_fns): defsubr them.
16154
16155 * xdisp.c (update_menu_bar): Test only update_mode_lines;
16156 don't test or alter w->update_mode_line.
16157
16158 * window.c (Fdisplay_buffer): Doc fix.
16159
161602002-03-24 Richard M. Stallman <rms@gnu.org>
16161
16162 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
16163
161642002-03-24 Gerd Moellmann <gerd@gnu.org>
16165
16166 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
16167 (Fdefmacro): Handle `(declare ...)'.
16168 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
16169 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
16170
161712002-03-24 Jason Rumney <jasonr@gnu.org>
16172
16173 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
16174 (xbm_file_p): Add prototypes.
16175 (xbm_format, xbm_image_p): Sync with xfns.c.
16176 (reflect_byte): New function.
16177 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
16178 (xbm_load_image): Create bitmaps with a depth of 1.
16179 (init_xfns): Enable XBM images.
16180
161812002-03-23 Jason Rumney <jasonr@gnu.org>
16182
16183 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
16184 correctly. Do not pass up_modifier to keyboard buffer.
16185
16186 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
16187
161882002-03-22 Stefan Monnier <monnier@cs.yale.edu>
16189
16190 * Makefile.in (bootstrapclean): New target.
16191 (bootstrap-temacs, bootstrap-doc): Remove.
16192 (bootstrap-emacs): Use a bog-standard `temacs'.
16193 Don't bother to build a DOC file.
16194
16195 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
16196
16197 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
16198 in temacs even if !CANNOT_DUMP.
16199 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
16200
16201 * alloc.c (check_pure_size): Only output a warning.
16202
162032002-03-22 Jason Rumney <jasonr@gnu.org>
16204
16205 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
16206 supported.
16207
16208 * w32term.c (zv_bits): Declare as short, for word alignment.
16209 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
16210 (syms_of_w32term): Define x-use-underline-position-properties.
16211
16212 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
16213 (clear_image_cache): Block input, fix logic, clear matrices in
16214 all frames that share this cache.
16215
162162002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
16217
16218 * emacs.c (main): Update the Copyright year in the blurb printed
16219 by "emacs --version".
16220
16221 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
16222
16223 * xterm.c (XTread_socket): If XK_ISO_Lock and
16224 XK_ISO_Last_Group_Lock are defined, handle keysyms between
16225 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
16226
162272002-03-21 Kim F. Storm <storm@cua.dk>
16228
16229 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
16230 menu-bar bindings in keymap and local-map properties _are_ used.
16231 But try keymap property first in accordance with 2002-01-03 patch.
16232 Added comment describing why this is not always reliable.
16233 (tool_bar_items): Ditto for tool-bar.
16234
162352002-03-21 Jason Rumney <jasonr@gnu.org>
16236
16237 * w32fns.c (x_clear_image_1): Disable color table code.
16238
162392002-03-21 Kim F. Storm <storm@cua.dk>
16240
16241 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
16242 removed the wrong version of the DEFUN macro; fixed it.
16243
16244 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
16245 Fmember rather than Fmemq).
16246 (Fprovide): Check that subfeatures is a list.
16247
16248 * process.c (QCfeature, QCdatagram): Removed variables.
16249 (QCtype, Qdatagram): New variables.
16250 (network_process_featurep): Removed function.
16251 (Fmake_network_process): Removed :feature check.
16252 Use :type 'datagram instead of :datagram t to create a datagram
16253 socket. This allows us to add other connection types (e.g. raw
16254 sockets) later in a consistent manner.
16255 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
16256 supported subfeatures for feature make-network-process.
16257 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
16258 Intern and staticpro QCtype and Qdatagram.
16259 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
16260
16261 * xfns.c: (QCtype): Remove duplicate declaration and
16262 initialization (is now declared in process.c).
16263
16264 * w32fns.c: (QCtype): Remove duplicate declaration and
16265 initialization (is now declared in process.c).
16266
162672002-03-21 Richard M. Stallman <rms@gnu.org>
16268
16269 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
16270 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
16271 when jumping to `fail' to avoid undoing reg changes in the
16272 last iteration of the loop.
16273 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
16274
16275 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
16276 Depend on process.h.
16277
162782002-03-20 Jason Rumney <jasonr@gnu.org>
16279
16280 Most of the following changes are still conditional on HAVE_IMAGES
16281 which is not set by default on Windows.
16282
16283 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
16284
16285 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
16286 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
16287 (four_corners_best, x_clear_image_1, x_clear_image)
16288 (x_alloc_image_color, postprocess_image)
16289 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
16290 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
16291 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
16292
16293 * w32gui.h (struct XImage): Define.
16294
16295 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
16296 extract mouse co-ordinates.
16297
162982002-03-20 Jason Rumney <jasonr@gnu.org>
16299
16300 * w32.c (init_winsock): Dynamically load new server and UDP
16301 socket functions.
16302 (socket_to_fd): New function.
16303 (sys_socket): Use it.
16304 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
16305 (sys_recvfrom, sys_sendto): New wrapper functions.
16306
16307 * process.c (QCfamily, QCfilter): Remove duplicate declaration
16308 and initialization.
16309
16310 * makefile.w32-in (LIBS): Remove $(WSOCK32).
16311
163122002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
16313
16314 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
16315 Don't use "sun" as a variable, it's a predefined constant on Sun
16316 machines.
16317
163182002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16319
16320 * bytecode.c (Fbyte_code): Revert last change.
16321
163222002-03-19 Kim F. Storm <storm@cua.dk>
16323
16324 * makefile.w32-in (LIBS): Add $(WSOCK32).
16325 From David Ponce <dponce@voila.fr>.
16326
163272002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16328
16329 * process.c (wait_reading_process_input): Move variables `pname'
16330 and `pnamelen' down where they are used.
16331
16332 * bytecode.c (Fbyte_code): Discard unused computed value to
16333 prevent gcc warning.
16334
16335 * lisp.h (Fplist_member): Add prototype.
16336
163372002-03-18 Kim F. Storm <storm@cua.dk>
16338
16339 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
16340 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
16341
16342 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
16343 Remove explicit GNU_LINUX settings for datagram support.
16344
163452002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16346
16347 * process.c (Fmake_network_process): Remove unused variable `sa'.
16348 Doc fix. Add usage:.
16349 (set_socket_options): Remove unused variables `optnum' and `opttype'.
16350
163512002-03-17 Richard M. Stallman <rms@gnu.org>
16352
16353 * xdisp.c (cursor_type_changed): New variable.
16354 (redisplay_internal): Redisplay all windows if cursor_type_changed.
16355 Clear it when clearing windows_or_buffers_changed.
16356 (try_cursor_movement, redisplay_window, try_window_id)
16357 (try_window_reusing_current_matrix): Test cursor_type_changed
16358 along with windows_or_buffers_changed.
16359
16360 * window.h (cursor_type_changed): New variable.
16361
16362 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
16363 not update_mode_lines, and always set it to 1.
16364
16365 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
16366 if no frames needed redrawing.
16367
163682002-03-17 Kim F. Storm <storm@cua.dk>
16369
16370 The following changes add support for network server processes,
16371 datagram connections, and local (unix) sockets.
16372
16373 * process.h (struct Lisp_Process): New member log.
16374 Doc fix: Member command used to indicate stopped network process.
16375 Doc fix: Member childp contains plist for network process.
16376 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
16377
16378 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
16379 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
16380 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
16381 New variables.
16382 (NETCONN1_P): New macro.
16383 (DATAGRAM_SOCKETS): New conditional symbol.
16384 (datagram_address): New array.
16385 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
16386 (status_message): Use concat3.
16387 (Fprocess_status): Add `listen' status to doc string. Return `stop'
16388 for a stopped network process.
16389 (Fset_process_buffer): Update contact plist for network process.
16390 (Fset_process_filter): Ditto. Don't enable input for stopped
16391 network processes. Server must listen, even if filter is t.
16392 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
16393 New functions.
16394 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
16395 (Fprocess_contact): Added KEY argument. Handle datagrams.
16396 (list_processes_1): Optionally show only processes with the query
16397 on exit flag set. Dynamically adjust column widths. Omit tty
16398 column if not needed. Report stopped network processes.
16399 Identify server and datagram network processes.
16400 (Flist_processes): New optional arg `query-only'.
16401 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
16402 (conv_lisp_to_sockaddr, set_socket_options)
16403 (network_process_featurep, unwind_request_sigio): New helper functions.
16404 (Fprocess_datagram_address, Fset_process_datagram_address):
16405 (Fset_network_process_options): New lisp functions.
16406 (Fopen_network_stream): Removed. Now defined in simple.el.
16407 (Fmake_network_process): New lisp function. Code is based on previous
16408 Fopen_network_stream, but heavily reworked with new property list based
16409 argument list, support for datagrams, server processes, and local
16410 sockets in addition to old client-only functionality.
16411 (server_accept_connection): New function.
16412 (wait_reading_process_input): Use it to handle incoming connects.
16413 Do not enable input on a new connection if process is stopped.
f63fd14e 16414 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
16415 (send_process): Handle datagram sockets.
16416 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
16417 network process is indicated by setting command field to t .
16418 (Fprocess_send_eof): No-op if datagram connection.
16419 (Fstatus_notify): Don't read input for a stream server socket or a
16420 stopped network process.
16421 (init_process): Initialize datagram_address array.
16422 (syms_of_process): Intern and staticpro new variables, defsubr new
16423 functions.
16424
164252002-03-16 Jason Rumney <jasonr@gnu.org>
16426
16427 * w32fns.c (w32_to_all_x_charsets): Return correct type in
16428 startup case.
16429
164302002-03-16 Richard M. Stallman <rms@gnu.org>
16431
16432 * xdisp.c (redisplay_internal, redisplay_windows):
16433 Use list_of_error to call internal_condition_case_1.
16434 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
16435 so as to catch all errors with no possibility of debugger redisplay.
16436 (list_of_error): New variable.
16437 (syms_of_xdisp): Init and staticpro it.
16438
16439 * print.c (print_object): Delete `\ ' from printed rep of frame.
16440
164412002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
16442
16443 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
16444 until its implementation is fixed.
16445
164462002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16447
16448 * xfns.c (png_load): Remove unused variable `gamma_str'.
16449
164502002-03-14 Richard M. Stallman <rms@gnu.org>
16451
16452 * xfns.c (x_real_positions): Handle failure in XQueryTree.
16453
164542002-03-14 Miles Bader <miles@gnu.org>
16455
16456 * intervals.c (adjust_for_invis_intang): New function.
16457 (set_point_both): Use `adjust_for_invis_intang' to do most of the
16458 work for dealing with invisible+intangible regions. Do so before
16459 and after both forward and backward movements, to handle both
16460 front-sticky and rear-sticky cases.
16461 * textprop.c (text_property_stickiness): Function moved here from
16462 `editfns.c'.
16463 * intervals.h (text_property_stickiness): New declaration.
16464 * editfns.c (char_property_eq): Function removed.
16465 (text_property_stickiness): Function moved to `textprop.c'.
16466
164672002-03-13 Jason Rumney <jasonr@gnu.org>
16468
16469 * config.in: Add STRFTIME_NO_POSIX2.
16470
16471 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
16472 and %OX when underlying strftime does not.
16473
164742002-03-13 Stefan Monnier <monnier@cs.yale.edu>
16475
16476 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
16477 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
16478 line) to avoid annoying flicker.
16479 (xm_scroll_callback): Get rid of the now unnecessary kludge.
16480 (XTread_socket): Mark it static.
16481
16482 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
16483
164842002-03-13 Kim F. Storm <storm@cua.dk>
16485
16486 * puresize.h (BASE_PURESIZE): Increase to 775000.
16487
164882002-03-12 Juanma Barranquero <lektu@terra.es>
16489
16490 * editfns.c (syms_of_editfns): Fix typo.
16491
164922002-03-12 Gerd Moellmann <gerd@gnu.org>
16493
16494 * xsmfns.c: Include stdio.h because termhooks.h needs it.
16495 Include termopt.h for interrupt_input.
16496
164972002-03-11 Andreas Schwab <schwab@suse.de>
16498
16499 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
16500
165012002-03-11 Gerd Moellmann <gerd@gnu.org>
16502
16503 * xterm.c (note_mouse_movement): Put code for
16504 x_autoselect_window_p in #if 0.
16505
16506 * lread.c (Fload): Don't assume that message_with_string uses the
16507 string it is given like a C string.
16508
165092002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16510
78819ebb 16511 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 16512
52eb0373 16513 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
16514 x_session_have_connection.
16515 (x_initialize): Add call to x_session_initialize.
16516
16517 * termhooks.h (enum event_kind): Add save_session_event.
16518
16519 * keyboard.c: Add Emacs event save_session_event.
16520
16521 * emacs.c (main): Add call to syms_of_xsmfns.
16522
78819ebb 16523 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
16524
16525 * config.in: Add HAVE_X_SM.
16526
16527 * Makefile.in (LIBXT): Add -lSM -lICE
16528 if HAVE_X_SM and not USE_X_TOOLKIT.
16529 (XOBJ): New file xsmfns.c added.
16530
16531 * xsmfns.c: New file for X session management.
16532
165332002-03-09 Jason Rumney <jasonr@gnu.org>
16534
16535 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
16536 read-only when setting modified time.
16537
165382002-03-08 Gerd Moellmann <gerd@gnu.org>
16539
16540 * xdisp.c (move_it_vertically_backward): At the end of the function,
16541 when moving forward by lines, treat terminal frames specially.
16542
16543 * keyboard.c (echo_char): Make sure to add a separator between
16544 keys even if echo_dash hasn't been called.
16545
16546 * xdisp.c: Use new string macros.
16547 (update_echo_area): Pass number of bytes to message3 instead of
16548 number of chars.
16549 (set_message_1): Don't access a string's size_byte directly.
16550 (decode_mode_spec_coding): Use number of bytes of eoltype string
16551 instead number of chars.
16552
16553 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
16554
165552002-03-08 Juanma Barranquero <lektu@terra.es>
16556
16557 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
16558 24-bit.
16559
165602002-03-06 Jason Rumney <jasonr@gnu.org>
16561
16562 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
16563
165642002-03-06 Gerd Moellmann <gerd@gnu.org>
16565
16566 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
16567 (cancel_echoing, echo_length, echo_truncate): Changed to
16568 work with new kboard definition.
16569 (echo_now): Use message3_nolog instead of message2_nolog.
16570
16571 * alloc.c (mark_kboards): Mark echo_string.
16572
16573 * keyboard.h (ECHOBUFSIZE): Removed.
16574 (struct kboard): Member echoptr removed, member echobuf renamed
16575 to echo_string.
16576
16577 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
16578 message3 instead of message2 to display the message using STRING's
16579 text properties.
16580
165812002-03-05 Andreas Schwab <schwab@suse.de>
16582
16583 * xdisp.c (hscroll_margin): Change to EMACS_INT.
16584
165852002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
16586
16587 * frame.c (default-frame-alist): Explain that setting it doesn't
16588 affect existing frames.
16589
165902002-03-05 Stefan Monnier <monnier@cs.yale.edu>
16591
16592 * indent.c (skip_invisible): Fix my brain fart.
16593
16594 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
16595
165962002-03-04 Stefan Monnier <monnier@cs.yale.edu>
16597
16598 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
16599 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
16600 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
16601 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
16602 and variables to use EMACS_INT instead of just int.
16603
16604 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
16605
166062002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
16607
16608 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
16609 environment, pass it down with corrected value.
16610
166112002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16612
16613 * lread.c (read_filtered_event): Do not call start_hourglass
16614 before returning.
16615
166162002-03-04 Juanma Barranquero <lektu@terra.es>
16617
16618 * w32term.c (x_display_and_set_cursor): Fix typo.
16619
166202002-03-03 Richard M. Stallman <rms@gnu.org>
16621
16622 * fileio.c (Fmake_temp_name): Doc fix.
16623
166242002-03-03 Gary Wong <gtw@gnu.org>
16625
16626 * termcap.c [!emacs]: Replace ospeed for building standalone
16627 libtermcap, for binary compatibility.
16628
16629 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
16630
166312002-03-03 Richard M. Stallman <rms@gnu.org>
16632
16633 * xrdb.c (file_p): Rename arg `path' to `filename'.
16634
16635 * abbrev.c (Fexpand_abbrev): Increment plist as use count
16636 only if it is an integer.
16637
16638 * xfns.c (png_load): Set screen_gamma based on f->gamma.
16639 If png_get_sRGB gives an answer, call png_set_gamma
16640 using the default image gamma value.
16641
16642 * lread.c (read1): When reading from a file, default string to
16643 multibyte only if it has some multibyte characters.
16644
16645 * print.c (print_object): Output multibyte chars 128...255
16646 using \x even if ! print_escape_multibyte.
16647
16648 * xdisp.c (display_mode_element): Move the places where
16649 bytepos, charpos, this, and lisp_string are set.
16650 Use lisp_string to set bytepos.
16651
16652 * xdisp.c (redisplay_internal):
16653 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
16654
16655 * xdisp.c (display_mode_element): Merge properties specified with
16656 :propertize onto those that come with the string.
16657
166582002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
16659
16660 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
16661 automatic-hscrolling. Users changed.
16662 <hscroll-margin>: Renamed from automatic-hscroll-margin.
16663 Users changed.
16664 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
16665
166662002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
16667
16668 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
16669
166702002-03-02 Kim F. Storm <storm@cua.dk>
16671
16672 * window.c (Fminibuffer_selected_window): New function.
16673 (syms_of_window): Defsubr it.
16674
166752002-03-01 Kim F. Storm <storm@cua.dk>
16676
16677 * window.h (struct window): New member phys_cursor_width.
16678
16679 * window.c (make_window, replace_window): Init phys_cursor_width.
16680
16681 * xterm.c (x_display_and_set_cursor): Blink box cursor using
16682 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16683
16684 * w32term.c (x_display_and_set_cursor): Blink box cursor using
16685 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16686
16687 * lisp.h (GCPRO6): New macro.
16688
16689 * process.c (Fopen_network_stream): Use GCPRO6.
16690
166912002-03-01 Kim F. Storm <storm@cua.dk>
16692
16693 * process.c (Qconnect, Qfailed): New variables.
16694 (syms_of_process): Intern and staticpro them.
16695 (Fprocess_status): Document connect and failed return values.
16696 [NON_BLOCKING_CONNECT]: New conditional.
16697 (connect_wait_mask, num_pending_connects): New variables.
16698 (status_message): Convert Qfailed status.
16699 (Fopen_network_stream): Added support for non-blocking connect.
16700 New optional args: filter, sentinel, non_blocking. Doc updated.
16701 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
16702 (deactivate_process): Handle pending non-blocking connect.
16703 (wait_reading_process_input): Poll for status of non-blocking
16704 connects. Exec sentinel directly when connect succeeds.
16705 (status_notify): Don't read process output if not yet connected.
16706
167072002-02-28 Kim F. Storm <storm@cua.dk>
16708
16709 * window.c: (minibuf_selected_window): Renamed from
16710 Vminibuf_selected_window. Users changed.
16711 (syms_of_window): Staticpro it.
16712
167132002-02-26 Kim F. Storm <storm@cua.dk>
16714
16715 The following changes add a new Vminibuf_selected_window variable
16716 which is similar to Vminibuf_scroll_window, but which is only set
16717 on entry to the minibuffer (from a non-minibuffer window):
16718
16719 * window.c: (Vminibuf_selected_window): New variable.
16720 (struct save_window_data): New member minibuf_selected_window.
16721 (Fset_window_configuration): Restore Vminibuf_selected_window.
16722 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
16723 Set minibuf_scroll_window member to nil if minibuf_level is 0.
16724 (compare_window_configurations): Compare minibuf_selected_window.
16725
16726 * window.h: (Vminibuf_selected_window): Declare extern.
16727
16728 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
16729 entry to minibuffer or on entry from a non-minibuffer window.
16730
16731 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
16732 Vminibuf_selected_window instead of Vminibuf_scroll_window.
16733
16734 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
16735 instead of Vminibuf_scroll_window when deciding in which window
16736 the region should be highlighted. Consequently, the region remains
16737 highlighteded even when a completion buffer is also displayed.
16738
167392002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
16740
16741 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
16742
16743 * xselect.c (Qcompound_text_with_extensions): Renamed from
16744 Qcompound_text_no_extensions.
16745 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
16746
167472002-02-26 Juanma Barranquero <lektu@terra.es>
16748
16749 * w32proc.c (syms_of_ntproc): Doc fix.
16750
167512002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16752
16753 * intervals.h: Include "dispextern.h" unconditionally.
16754
167552002-02-24 Jason Rumney <jasonr@gnu.org>
16756
16757 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
16758 and disp-table.elc.
16759 (lisp): Add emacs-lisp/backquote.elc.
16760
167612002-02-24 Kim F. Storm <storm@cua.dk>
16762
3419757d 16763 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
16764 The validation of the event type was too strict as it didn't
16765 allow string events; buffer names are used in bindings for
16766 menu-bar-select-buffer (see `menu-bar-update-buffers').
16767
167682002-02-23 Kim F. Storm <storm@cua.dk>
16769
16770 The following changes rework my patch of 2002-02-06 which
16771 added command remapping by entering the commands directly into
16772 the keymaps. Now, command remapping uses an explicit `remap'
16773 prefix in the keymaps, i.e. [remap COMMAND].
16774
16775 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 16776 (is_command_symbol): Remove function.
048addec
JD
16777 (Fdefine_key): No longer accept a symbol for KEY.
16778 Added validation of [remap COMMAND] argument for KEY.
16779 The DEF is no longer required to be a symbol when remapping a command.
16780 (Fremap_command): New function to remap command through keymaps.
16781 (Flookup_key): Perform command remapping initiated by
16782 Fremap_command directly for speed.
16783 (Fkey_binding): Use Fremap_command for command remapping.
16784 (where_is_internal): Handle new command remapping representation.
16785 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
16786 staticpro them. Defsubr Fremap_command.
16787
16788 * keymap.h (Fremap_command): Declare extern.
16789 (is_command_symbol): Remove extern.
16790
16791 * keyboard.c (command_loop_1): Use Fremap_command for command
16792 remapping; now try command remapping for all symbols.
16793
167942002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16795
16796 * coding.h (run_pre_post_conversion_on_str): Add prototype.
16797
167982002-02-23 Jason Rumney <jasonr@gnu.org>
16799
16800 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
16801 on the string before encoding it.
16802 (Fw32_get_clipboard_data): Run post-read-conversion on the string
16803 after decoding it.
16804
16805 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
16806
168072002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16808
16809 * w32term.c (enter_timestamp): Remove unused static variable to
16810 prevent warning.
16811
16812 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
16813
168142002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16815
16816 * w16select.c (Fw16_get_clipboard_data): Fix last change.
16817
16818 * xselect.c (selection_data_to_lisp_data): Fix last change.
16819
168202002-02-22 Jason Rumney <jasonr@gnu.org>
16821
16822 * w32term.h (struct w32_output): New member menu_command_in_progress.
16823
16824 * w32menu.c (menubar_selection_callback): Free the menu and
16825 clear the menu_command_in_progress flag.
16826
16827 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
16828 (menu_free_timer): New variable.
16829 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
16830 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
16831 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
16832 menu command is in progress.
16833 <WM_COMMAND>: Set the menu_command_in_progress flag.
16834 Kill any menu_free_timer that is running.
16835
16836 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
16837 Call ExtTextOutA rather than ExtTextOut.
16838
168392002-02-22 Eli Zaretskii <eliz@gnu.org>
16840
16841 * puresize.h (BASE_PURESIZE): Increase to 755000.
16842
168432002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16844
16845 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
16846 on the string before encoding it.
16847 (Fw16_get_clipboard_data): Run post-read-conversion on the string
16848 after decoding it.
16849
168502002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16851
16852 Support for ICCCM Extended Segments in X selections:
16853
16854 * xselect.c <Qcompound_text_no_extensions>: New variable.
16855 (syms_of_xselect): Intern and staticpro it.
16856 (selection_data_to_lisp_data): Run post-read-conversion on decoded
16857 selection text.
16858 (lisp_data_to_selection_data): If next-selection-coding-system is
16859 compound-text-no-extensions, set the type of selection to be
16860 compound-text.
16861
16862 * xterm.h (x_encode_text): Update prototype.
16863
16864 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
16865 callers changed. If SELECTIONP is non-zero, run the
16866 pre-write-conversion function before encoding the selection text.
16867
168682002-02-21 Kim F. Storm <storm@cua.dk>
16869
16870 * frame.c (syms_of_frame): Change mouse-highlight default to t.
16871
16872 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
16873 Correct composing of language-change event.
16874
168752002-02-20 Kim F. Storm <storm@cua.dk>
16876
16877 * keyboard.c (menu_bar_items): Don't include keymap or local-map
16878 bindings at PT when building menu (the menu is not updated often
16879 enough for this to work reliable).
16880 (tool_bar_items): Likewise.
16881 (current_active_maps): Removed unused (and buggy) function.
16882
168832002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16884
16885 * xfns.c (gif_load): Use correct width and height for GIF images.
16886
168872002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
16888
16889 * floatfns.c (Fatan): Accept an optional second arg and call
16890 atan2 if passed 2 args.
16891
168922002-02-18 Jason Rumney <jasonr@gnu.org>
16893
16894 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
16895
168962002-02-17 Jason Rumney <jasonr@gnu.org>
16897
16898 * w32term.c (x_autoselect_window_p): New variable.
16899 (syms_of_w32term): DEFVAR_BOOL and initialize it.
16900 (note_mouse_movement): Use it.
16901
16902 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
16903
16904 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
16905
16906 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16907 New variables.
16908 (syms_of_w32fns): Intern and staticpro them.
16909 (x_frame_parms) <"fullscreen">: New parameter.
16910 (x_fullscreen_move, x_set_fullscreen): New functions.
16911 (x_set_frame_parameters): Support Qfullscreen.
16912 (x_real_positions): Save x/y_pixels_diff frame params.
16913 (x_figure_window_size): Support full-screen frames.
16914 (Fx_create_frame): Default the fullscreen parameter.
16915
16916 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
16917 (x_fullscreen_adjust): New functions.
16918 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
16919 fullscreen. Call x_check_fullscreen_move, and set the
16920 want_fullscreen member of output_data.w32
16921 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
16922
16923 * w32term.h: New enum for FULLSCREEN_* constants.
16924 (struct w32_output): New members want_fullscreen, x_pixels_diff,
16925 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
16926 (x-fullscreen-adjust): New prototype.
16927
169282002-02-17 Kim F. Storm <storm@cua.dk>
16929
52eb0373 16930 * frame.c (Vmouse_highlight): New variable.
048addec
JD
16931 (syms_of_frame): DEFVAR_LISP it.
16932
52eb0373 16933 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 16934
048addec 16935 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 16936
048addec
JD
16937 * xterm.c (disable_mouse_highlight): Removed variable.
16938 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16939 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16940 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
16941 and on after keyboard input.
16942 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 16943
048addec 16944 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 16945
048addec
JD
16946 * msdos.c (disable_mouse_highlight): Removed variable.
16947 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16948 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16949 (internal_terminal_init): Initialize mouse_face_hidden.
16950 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
16951 and on after keyboard input.
4f1b1854 16952
048addec 16953 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 16954
048addec
JD
16955 * w32term.c (disable_mouse_highlight): Removed variable.
16956 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
16957 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16958 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
16959 and on after keyboard input.
16960 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 16961
048addec 169622002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 16963
048addec
JD
16964 * msdos.c (last_mouse_window): New variable.
16965 (dos_rawgetc): Fix last change--if the mouse is in the same window
16966 as recorded in last_mouse_window, don't select this window.
5cb6905d 16967
048addec 16968 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 16969
048addec
JD
16970 * msdos.c (x_autoselect_window_p): New variable.
16971 (syms_of_msdos): Defvar it.
16972 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
16973 which the last mouse movement occured, unless it is already selected.
437dfb9f 16974
048addec
JD
16975 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
16976 New variables.
16977 (syms_of_xdisp): DEVFAR them.
16978 (hscroll_window_tree): Use automatic_hscroll_margin and
16979 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 16980
048addec 169812002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 16982
048addec
JD
16983 * xterm.c (x-autoselect-window): New variable.
16984 (note_mouse_movement): Use it.
9f696a00 16985
048addec 16986 * keyboard.c: Do not include "systime.h" twice.
d57966d7 16987
048addec 169882002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 16989
bfa02563 16990 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 16991
048addec 16992 * alloc.c (NSTATICS): Increase to 1280.
74779f52 16993
048addec 169942002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 16995
048addec 16996 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 16997
048addec
JD
16998 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
16999 (Vx_super_keysym): New variables.
17000 (syms_of_xterm): DEFVAR_LISP them.
17001 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
17002 variables to determine which keys to use for the various modifiers.
a474d59c 17003
048addec 170042002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 17005
048addec
JD
17006 * window.c: (Vmode_line_in_non_selected_windows): Removed.
17007 (mode_line_in_non_selected_windows): New variable.
17008 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 17009
048addec
JD
17010 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
17011 Use mode_line_in_non_selected_windows.
17012 (mode_line_in_non_selected_windows): Declare extern.
17013 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 17014
048addec 170152002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 17016
048addec
JD
17017 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
17018 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
17019 (Fclear_this_command_keys): Doc fixes.
2d10309f 17020
048addec
JD
17021 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
17022 (update_face_from_frame_parameter): Increment face_change_count
17023 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 17024
048addec
JD
17025 * xdisp.c (QCpropertize): New variable.
17026 (mode_line_proptrans_alist): New variable.
17027 (display_mode_element): New arg PROPS; all calls changed.
17028 Implement this, for strings.
17029 Handle literal output of strings by sharing the
17030 main-line code for strings, using local var `literal'.
17031 Handle :propertize feature.
17032 (syms_of_xdisp): Initialze and staticpro QCpropertize and
17033 mode_line_proptrans_alist.
0b1e6b54 17034
048addec 170352002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 17036
048addec
JD
17037 * window.c: (Vmode_line_in_non_selected_windows): New variable.
17038 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 17039
048addec
JD
17040 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
17041 (CURRENT_MODE_LINE_FACE_ID): Use it.
17042 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 17043
048addec
JD
17044 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
17045 to get mode line face.
e17144de 17046
048addec 170472002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17048
048addec
JD
17049 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
17050 variables; cus-start.el doesn't need them anymore.
44368f8f 17051
048addec 170522002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 17053
048addec
JD
17054 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
17055 reduction. This fixes a display problem where stray newlines were
17056 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 17057
048addec 170582002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17059
048addec 17060 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 17061
048addec 17062 * xdisp.c (display_mode_lines): Fix last change.
453c5510 17063
048addec 170642002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 17065
048addec
JD
17066 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
17067 match each other.
17068 (w32_load_system_font): Prevent Cleartype fonts from loading.
17069 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 17070
048addec 170712002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 17072
048addec
JD
17073 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
17074 (CURRENT_MODE_LINE_HEIGHT): Use it.
17075 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17076
048addec
JD
17077 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
17078 (pos_visible_p, handle_face_prop): Likewise.
17079 (display_mode_lines): Likewise, but for the real selected window.
17080 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17081
048addec
JD
17082 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
17083 in non-selected windows.
17084 (realize_basic_faces): Realize it.
17085 (syms_of_term): Intern and staticpro it.
308dd672 17086
048addec 170872002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 17088
048addec
JD
17089 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
17090 Changed mail addresses to emacs-devel@gnu.org.
308dd672 17091
048addec 170922002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 17093
048addec
JD
17094 * fileio.c (Fsubstitute_in_file_name): If the file name includes
17095 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 17096
048addec 17097 * floatfns.c (Fround): Doc fix.
3c1e6b46 17098
048addec 170992002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 17100
048addec 17101 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 17102
048addec 171032002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 17104
048addec 17105 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 17106
048addec 171072002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 17108
048addec
JD
17109 * keymap.c (where_is_internal): Only check whether definition is
17110 remapped if it fulfills is_command_symbol.
0065bb74 17111
048addec 171122002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 17113
048addec 17114 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 17115
048addec 17116 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 17117
048addec 171182002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 17119
048addec
JD
17120 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
17121 defining command remapping. Doc updated.
17122 (Flookup_key): Remap command through keymap if KEY is a symbol.
17123 (is_command_symbol): New function.
17124 (Fkey_binding): Use it. New optional argument NO-REMAP.
17125 Doc updated. Callers changed. Perform command remapping via
17126 recursive call unless that arg is non-nil.
17127 (where_is_internal): New argument no_remap. Callers changed.
17128 Call recursively to find original key bindings for a remapped
17129 comand unless that arg is non-nil.
17130 (Fwhere_is_internal): New optional argument NO-REMAP.
17131 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 17132
048addec 17133 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 17134 (is_command_symbol): Add prototype.
0d8466cc 17135
048addec
JD
17136 * keyboard.c (Vthis_original_command): New variable.
17137 (syms_of_keyboard): DEFVAR_LISP it.
17138 (command_loop_1): Set it, and perform command remapping.
15fff01d 17139
048addec 171402002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 17141
048addec 17142 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 17143
048addec 171442002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 17145
048addec 17146 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 17147
048addec 171482002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 17149
048addec 17150 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 17151
048addec 171522002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 17153
048addec 17154 * filelock.c (S_ISLNK): Define if not defined.
3a232704 17155
048addec 171562002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 17157
048addec 17158 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 17159
048addec
JD
17160 * lread.c (read1): Redesign strategy for force_multibyte and
17161 force_singlebyte. Now is_multibyte records whether read_buffer
17162 is multibyte. Encountering any multibyte character makes it so.
4e02881b 17163
048addec 171642002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 17165
048addec
JD
17166 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
17167 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 17168
048addec 171692002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 17170
048addec
JD
17171 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
17172 latter never being defined on GNU/Linux.
749f499f 17173
048addec 171742002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 17175
048addec
JD
17176 * xfaces.c (realize_default_face): Don't set the weight and slant of
17177 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 17178
048addec 171792002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 17180
048addec
JD
17181 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
17182 Call cancel_hourglass unconditionally.
d0fd26dd 17183
048addec
JD
17184 * eval.c (Fsignal): Remove duplicated declaration of
17185 the variable `display_hourglass_p'.
b4c45162 17186
048addec 171872002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 17188
048addec 17189 * editfns.c (region_limit): Nicer error message.
c95eaa61 17190
048addec
JD
17191 * coding.c (decode_composition_emacs_mule):
17192 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 17193
048addec
JD
17194 * callint.c (check_mark): New arg to specify clearer error message.
17195 Callers changed.
c95eaa61 17196
048addec 171972002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 17198
048addec 17199 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 17200
048addec 172012002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 17202
048addec
JD
17203 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
17204 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
17205 Fix doc-strings.
c95eaa61 17206
048addec 172072002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 17208
048addec 17209 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 17210
048addec
JD
17211 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
17212 and scroll_up_aggressively.
c95eaa61 17213
048addec 172142002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 17215
048addec 17216 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 17217
048addec 172182002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 17219
048addec
JD
17220 * textprop.c (Fnext_property_change, Fnext_single_property_change)
17221 (Fprevious_property_change, Fprevious_single_property_change):
17222 Stay within the narrowed-buffer boundaries.
e2c3786a 17223
048addec 172242002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 17225
048addec
JD
17226 * term.c (Ftty_display_color_cells): New function.
17227 (syms_of_term): Defsubr it.
17228 (Ftty_display_color_cells, Ftty_display_color_p): Change the
17229 argument name to DISPLAY. Doc fix.
bf794306 17230
048addec
JD
17231 * dispextern.h: Add prototype for set_tty_color_mode and
17232 tty_setup_colors.
bf794306 17233
048addec 172342002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 17235
048addec
JD
17236 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
17237 If region left to draw is not what was expected, mark the frame as
17238 garbaged.
62582985 17239
048addec
JD
17240 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
17241 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 17242
048addec 172432002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 17244
048addec
JD
17245 * w32term.c (x_update_window_begin): Only hide caret if
17246 w32_use_visible_system_caret is set.
17247 (x_update_window_end): Only show caret if
17248 w32_use_visible_system_caret is set.
17249 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 17250
048addec 17251 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 17252
048addec 172532002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 17254
048addec
JD
17255 * unexelf.c (unexec): Define n so as to cause compilation error
17256 for the code where people have often written n instead of nn.
1e9a6186 17257
048addec 17258 * .gdbinit (hookpost-run): Defined.
1e9a6186 17259
048addec 172602002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 17261
048addec 17262 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 17263
048addec 172642002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 17265
048addec
JD
17266 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
17267 if fullscreen is being set.
7c75be36 17268
048addec 172692002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 17270
048addec
JD
17271 * minibuf.c (Fminibuffer_contents)
17272 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
17273 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 17274
048addec 172752002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 17276
048addec 17277 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 17278
048addec 172792002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 17280
048addec
JD
17281 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
17282 height before comparison.
17283 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 17284
048addec 172852002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 17286
048addec
JD
17287 * w32term.c (w32_system_caret_width): Remove.
17288 (w32_use_visible_system_caret): New user flag.
17289 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
17290 Windows reports a screen reader running.
17291 (x_update_window_begin): Hide the system caret.
17292 (x_update_window_end): Show the system caret.
17293 (x_display_and_set_cursor): Don't draw a cursor when
17294 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 17295
048addec
JD
17296 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
17297 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
17298 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
17299 the user requests it. Use system default width when creating.
17300 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 17301
048addec
JD
17302 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
17303 New window messages.
905cc05a 17304
048addec 173052002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 17306
048addec 17307 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 17308
048addec 173092002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 17310
048addec 17311 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 17312
048addec 173132002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 17314
048addec 17315 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 17316
048addec 173172002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 17318
048addec
JD
17319 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
17320 that Windows returns. If a double check fails, try to guess how
17321 ExtTextOut is going to act.
4d0fa4f3 17322
048addec
JD
17323 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
17324 in place of stricmp.
17325 (w32_list_synthesized_fonts): Removed.
17326 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
17327 (struct enumfont_t): New element; list.
17328 (enum_font_cb2): List all style and charset variations of a font.
17329 (Fw32_select_font): New optional argument; include_proportional.
17330 Exclude vertical fonts. Exclude proportional fonts unless
17331 include_proportional is non-nil.
17332 (w32_enable_synthesized_fonts): Change to a boolean.
17333 (Fw32_send_sys_command): Doc fix.
493faf20 17334
048addec 173352002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 17336
048addec
JD
17337 * dispnew.c (update_frame): Move the variable `tem' to the block
17338 where it is used.
4971e491 17339
048addec 173402002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 17341
048addec
JD
17342 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
17343 call to face-set-after-frame-default.
4971e491 17344
048addec 173452002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 17346
048addec
JD
17347 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
17348 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 17349
048addec 173502002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 17351
048addec
JD
17352 * window.c (enlarge_window): When exceeding size of parent,
17353 directly delete all the siblings instead of trying to resize it.
201c831a 17354
048addec 173552002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 17356
048addec 17357 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 17358
048addec 173592002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 17360
048addec 17361 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 17362
048addec 173632002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 17364
048addec
JD
17365 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
17366 is invisible. This can happen if cursor is on top line of a
17367 window, and we switch to a buffer with a header line.
d77fbc16 17368
048addec 17369 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 17370
048addec 173712002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 17372
048addec
JD
17373 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
17374 `dont_resize' only when used.
61e3b944 17375
048addec 17376 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 17377
048addec 173782002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 17379
048addec
JD
17380 * xdisp.c (display_mode_element): When computing charpos, depend
17381 on multibyteness of elt, not the text in field.
8af01033 17382
048addec 173832002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 17384
048addec
JD
17385 * buffer.c (Fkill_all_local_variables):
17386 Increment `update_mode_lines' only once.
7363986a 17387
048addec 173882002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 17389
048addec
JD
17390 * lisp.h (adjust_after_replace_noundo)
17391 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 17392
048addec 17393 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 17394
048addec 173952002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 17396
048addec
JD
17397 Support for the --color command-line argument and tty-color-mode
17398 frame parameter:
f1a85b89 17399
048addec
JD
17400 * term.c (tty_default_color_capabilities, tty_setup_colors)
17401 (set_tty_color_mode): New functions.
17402 (term_init): Call tty_default_color_capabilities.
17403 (Qtty_color_mode_alist): New variable.
17404 (syms_of_term): Intern and staticpro it.
f1a85b89 17405
048addec
JD
17406 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
17407 frames.
17408 (do_switch_frame): For termcap frames, switch the tty
17409 color mode as specified by the frame's parameters.
17410 (Qtty_color_mode): New variable.
17411 (syms_of_frame): Intern and staticpro it.
3a62677f 17412
048addec
JD
17413 * emacs.c (USAGE2): Add the --color option.
17414 (standard_args): Ditto.
72244db2 17415
048addec
JD
174162002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17417
17418 * xterm.h (struct x_output): New members want_fullscreen,
17419 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
17420 y_pixels_outer_diff.
17421 New enum for FULLSCREEN_* constants.
17422 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
17423 is NULL.
17424 (x_fullscreen_adjust): Add prototype.
3a62677f 17425
048addec
JD
17426 * emacs.c (USAGE2): Add the new full-screen arguments.
17427 (standard_args): Ditto.
3a62677f 17428
048addec
JD
17429 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17430 New variables.
17431 (syms_of_xfns): Intern and staticpro them.
17432 (x_frame_parms) <"fullscreen">: New parameter.
17433 (x_fullscreen_move, x_set_fullscreen): New functions.
17434 (x_set_frame_parameters): Support for Qfullscreen.
17435 (x_real_positions): More accurate computation of the frame position.
17436 (x_figure_window_size): Support full-screen frames.
17437 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 17438
048addec
JD
17439 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
17440 (XTread_socket) <Expose>: Call x_check_fullscreen.
17441 <ConfigureNotify>: Don't resize to fullscreen.
17442 Call x_check_fullscreen_move, and set the want_fullscreen member of
17443 output_data.x.
3a62677f 17444
048addec 174452002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 17446
048addec
JD
17447 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
17448 for mice with more than 3 buttons.
b8523839 17449
048addec
JD
17450 * w32term.c (parse_button): New parameter xbutton. Callers changed.
17451 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 17452
048addec
JD
17453 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
17454 (syms_of_w32fns): DEFVAR_BOOL it.
17455 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 17456
048addec 174572002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 17458
048addec 17459 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 17460
048addec 174612002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 17462
048addec 17463 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 17464
048addec 174652002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 17466
048addec
JD
17467 * .gdbinit (xbuffer): Remove address operator since data is now a
17468 pointer.
c93674bb 17469
048addec 174702002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 17471
048addec 17472 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 17473
048addec 17474 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 17475
048addec 174762002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 17477
048addec
JD
17478 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
17479 when checking for multiple frames.
91175673 17480
048addec 174812002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 17482
048addec
JD
17483 * window.c (delete_window): Rewrite the code for changing the
17484 selected window to handle the case where WINDOW is not a leaf.
91175673 17485
048addec 174862002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 17487
048addec
JD
17488 * process.c (send_process): Set src_multibyte to 1 after the call
17489 top setup_coding_system, not before the call.
e0fead5d 17490
048addec 174912002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 17492
048addec
JD
17493 * xmenu.c (set_frame_menubar, xmenu_show):
17494 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 17495
048addec
JD
17496 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
17497 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 17498
048addec 174992002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 17500
048addec 17501 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 17502
048addec 17503 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 17504
048addec 17505 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 17506
048addec 175072002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 17508
048addec
JD
17509 * insdel.c (make_gap_larger): Make sure buffer size does not
17510 overflow range of int.
62854fe2 17511
048addec 175122002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 17513
048addec
JD
17514 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17515 OVERLAPS_P.
656f46bb 17516
048addec 17517 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 17518
048addec
JD
17519 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
17520 to the left or to the right of the pointer, put it against
17521 the left screen edge.
17522 (x_frame_parms): Add missing braces around initializer.
036e218d 17523
048addec
JD
17524 * w32term.c (x_setup_relief_colors): Don't compute an image's
17525 background color if it doesn't have a Pixmap.
17526 (notice_overwritten_cursor): Don't depend on
17527 output_cursor and updated_area. Compare pixel coordinates with
17528 window's cursor pixel coordinates.
17529 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17530 Call notice_overwritten_cursor with new arg list.
17531 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17532 unconditionally.
17533 (x_draw_image_relief): Use predefined macro instead of
17534 constant when the value of `tool_bar_button_relief' is negative.
036e218d 17535
048addec 17536 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 17537
048addec 175382002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 17539
048addec 17540 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 17541
048addec 175422002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 17543
048addec
JD
17544 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
17545 (Fkey_binding): Try the `keymap' property map first.
17546 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
17547 minor mode bindings.
90647b07 17548
048addec 175492002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 17550
3419757d 17551 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 17552
048addec 175532002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 17554
048addec
JD
17555 * keyboard.c (read_key_sequence): Handle the keymap property
17556 before minor mode maps.
9fbc32aa 17557
048addec
JD
17558 * editfns.c (Fformat): Update thissize from field_width
17559 based on the actual width, in the string case.
036e218d 17560
048addec 175612002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 17562
048addec
JD
17563 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
17564 when used as truth value to prevent gcc warnings.
9fbc32aa 17565
048addec
JD
17566 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
17567 * w32proc.c: Include <config.h>.
9fbc32aa 17568
048addec 175692002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 17570
048addec
JD
17571 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
17572 not EMACS_INT, to make them compatible with DEFVAR_INT.
17573 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 17574
048addec 175752002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 17576
048addec
JD
17577 * print.c (print_object): Test print_escape_nonascii only for
17578 unibyte strings.
17579 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
17580 when outputting to a multibyte buffer.
9fbc32aa 17581
048addec 175822001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 17583
048addec
JD
17584 * print.c (print_object): In multibyte string, use hex escapes.
17585 Use octal only for unibyte strings.
17586 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 17587
048addec
JD
17588 * lread.c (read_escape): New arg BYTEREP for reporting whether
17589 escape forces unibyte or multibyte.
17590 (read1): When reading a string, take note of that info.
0142178a 17591
048addec 175922001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 17593
048addec
JD
17594 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
17595 comparison to test lisp value returned by Fget.
d4824a5d 17596
048addec 175972001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 17598
048addec 17599 * lisp.h (max_specpdl_size): Add declaration.
b1356234 17600
048addec 17601 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 17602
048addec
JD
17603 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
17604 Handle modifier bits. Correct typo in error message.
99e380ee 17605
048addec 176062001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 17607
048addec
JD
17608 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
17609 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
17610 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17611 Update calls to Fdefine_abbrev.
17612 (write_abbrev): Update for changed data format.
17613 Don't list "system" abbrevs.
17614 (Fexpand_abbrev): Update use count with new data format.
17615 (describe_abbrev): Update for changed data format.
17616 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 17617
048addec 17618 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 17619
048addec 17620 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 17621
048addec
JD
17622 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
17623 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 17624
048addec
JD
17625 * keymap.c (Flookup_key): Error message if key has wrong data type.
17626 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
17627 (exclude_key): New variable.
59a86c99 17628
048addec 176292001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 17630
048addec
JD
17631 * xterm.c (x_setup_relief_colors): Don't compute an image's
17632 background color if it doesn't have a Pixmap.
eb77a5f4 17633
048addec
JD
17634 * xterm.c (notice_overwritten_cursor): Don't depend on
17635 output_cursor and updated_area. Compare pixel coordinates with
17636 window's cursor pixel coordinates.
17637 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17638 Call notice_overwritten_cursor with new arg list.
17639 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17640 unconditionally.
eb77a5f4 17641
048addec
JD
17642 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
17643 height of the cursor line to the amount to scroll.
eb77a5f4 17644
048addec 176452001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 17646
048addec
JD
17647 * intervals.c (set_point_both): The position after an invisible,
17648 intangible character is not an acceptable stopping point.
bb313871 17649
048addec 176502001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 17651
048addec
JD
17652 * window.c (enlarge_window): In new preserve_before code, convert
17653 CURBEG from lisp object to integer before doing arithmetic.
6052529b 17654
048addec 176552001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 17656
048addec 17657 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 17658
048addec 176592001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 17660
048addec
JD
17661 * keyboard.c (record_char): Ignore duplicate help-echo events only
17662 separated by mouse-movement. When tracking mouse, only record
17663 first and last mouse-movement event in same window.
17664 Don't record mouse-movement events in keyboard macros.
3ce081f5 17665
048addec 176662001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 17667
048addec
JD
17668 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
17669 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 17670
048addec
JD
17671 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
17672 instead of Fstring_as_unibyte.
9fabb2f5 17673
048addec 176742001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 17675
048addec 17676 The following changes remove mocklisp support:
9fabb2f5 17677
048addec 17678 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 17679
048addec
JD
17680 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
17681 `Qmocklisp' and `Qmocklisp_arguments'.
17682 Remove prototype of syms_of_mocklisp.
2fa0eedf 17683
048addec 17684 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 17685
048addec
JD
17686 * callint.c: Do not include mocklisp.h.
17687 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 17688
048addec
JD
17689 * eval.c: Remove variables `Qmocklisp_arguments',
17690 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
17691 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
17692 Do not test for mocklisp case.
17693 (Fwhile): Remove unused variable `tem'.
17694 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 17695
048addec 17696 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 17697
048addec 17698 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 17699
048addec 17700 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 17701
048addec 177022001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 17703
048addec
JD
17704 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
17705 to the left or to the right of the pointer, put it against
17706 the left screen edge.
6108b49c 17707
048addec 177082001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 17709
048addec
JD
17710 * Makefile.in (distclean): Remove .gdbinit if we are building
17711 outside the source tree.
5eea19a4 17712
048addec 177132001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 17714
048addec 17715 * w32.c (emacs_root_dir): New function.
5eea19a4 17716
048addec 17717 * msdos.c (emacs_root_dir): New function.
5eea19a4 17718
048addec
JD
17719 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
17720 of the current drive as the fallback for default_directory.
438e57dd 17721
048addec
JD
17722 * dired.c (file_name_completion): Run the elements of
17723 completion-ignored-extensions through ENCODE_FILE.
438e57dd 17724
048addec
JD
17725 * lisp.h (scmp): Remove prototype, since it's now a static
17726 function private to dired.c.
c88e5347 17727
048addec 177282001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 17729
048addec
JD
17730 * dired.c (scmp): Function moved from minibuf.c.
17731 Delete multibyte handling--used only on encoded strings.
59ce1461 17732
048addec 17733 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 17734
048addec 17735 * fns.c (merge): Add QUIT call.
59ce1461 17736
048addec 177372001-12-18 Dave Love <fx@gnu.org>
8727d588 17738
048addec
JD
17739 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
17740 language/georgian.el.
8727d588 17741
048addec 177422001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 17743
048addec
JD
17744 * Makefile.in (lisp, shortlisp): Synchronize with changes to
17745 lisp/Makefile.in:DONTCOMPILE.
cc63037e 17746
048addec 177472001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 17748
048addec
JD
17749 * xdisp.c (window_box_height): Do not return negative values.
17750 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 17751
048addec 17752 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 17753
048addec 17754 * term.c (keys): Likewise.
deece6f5 17755
048addec 17756 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 17757
048addec 177582001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 17759
048addec
JD
17760 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
17761 patch (COMPOSING_P, not COMPOSING).
28ff4293 17762
048addec 177632001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 17764
048addec 17765 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 17766
048addec
JD
17767 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
17768 before calling decode_coding.
9b46de40 17769
048addec 17770 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 17771
048addec
JD
17772 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
17773 instead of only for COMPOSITION_DISABLED.
9b46de40 17774
048addec 177752001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 17776
048addec 17777 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 17778
048addec 17779 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 17780
048addec
JD
17781 * buffer.h (struct buffer): New field `display_error_modiff'.
17782 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 17783
048addec 17784 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 17785
048addec
JD
17786 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
17787 Call redisplay_window, but not if display_error_modiff field says no.
17788 (redisplay_window_error): New function.
17789 (displayed_buffer): New variable.
17790 (redisplay_internal, redisplay_windows): Call the new functions
17791 instead of redisplay_window directly.
2cd23960 17792
048addec 177932001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 17794
048addec 17795 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 17796
048addec 177972001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 17798
048addec 17799 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 17800 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 17801 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 17802
048addec 178032001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 17804
048addec
JD
17805 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
17806 parameter have a numeric value all the time.
f6fa0866 17807
048addec 17808 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 17809
048addec 178102001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 17811
048addec 17812 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 17813
048addec
JD
17814 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
17815 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 17816
048addec 178172001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 17818
048addec
JD
17819 * xdisp.c (move_it_vertically_backward): Change heuristic
17820 for the case that we didn't move far enough initially.
91c153e2 17821
048addec
JD
17822 * window.c (Frecenter): Simplify computation in the case of window
17823 system frames and ARG < 0; use window_box_height.
65b7d3e7 17824
048addec 178252001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 17826
048addec
JD
17827 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
17828 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 17829
048addec 178302001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 17831
048addec
JD
17832 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
17833 arg is negative.
be676094 17834
048addec 178352001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 17836
048addec
JD
17837 * m/hp800.h: Split the __hpux conditional into the parts
17838 that are right for GNU/Linux too and the parts that are not.
17839 Use the former if GNU_LINUX.
17840 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 17841
048addec 17842 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 17843
048addec 178442001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 17845
048addec
JD
17846 * macros.c, msdos.c, w16select.c: Change doc-string comments to
17847 `new style' [w/`doc:' keyword].
032a857d 17848
048addec 178492001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 17850
048addec
JD
17851 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
17852 before using.
b6270150 17853
048addec 178542001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 17855
048addec
JD
17856 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
17857 keyword].
98cbb9fa 17858
048addec 178592001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 17860
048addec 17861 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 17862
048addec 17863 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 17864
048addec 178652001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 17866
048addec 17867 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 17868 Add comment to explain where the struct came from.
048addec
JD
17869 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
17870 (add_menu_item): Process pop-up menus first to avoid memory leak.
17871 (add_menu_item, w32_menu_display_help): Use `help' field as
17872 Lisp_Object.
17873 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 17874
048addec 178752001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 17876
048addec 17877 * COPYING: Moved back.
fa336b91 17878
048addec
JD
17879 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
17880 Add parentheses around && within ||.
077907d4 17881
048addec 17882 * indent.c (compute_motion): Likewise.
aa2af83a 17883
048addec 17884 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 17885
048addec
JD
17886 * coding.c (setup_coding_system, shrink_encoding_region)
17887 (Fdecode_sjis_char): Likewise.
60a653f1 17888
048addec 178892001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 17890
048addec
JD
17891 * xdisp.c (display_mode_element): Don't read past end of string if
17892 it ends with '%'.
60a653f1 17893
048addec
JD
17894 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
17895 can hold.
60a653f1 17896
048addec
JD
17897 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
17898 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
17899 type changed to Lisp_Object.
17900 (syms_of_data): DEFVAR_LISP them.
60a653f1 17901
048addec 179022001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 17903
048addec
JD
17904 * callproc.c (init_callproc): Set Vdata_directory based on the source
17905 location whenever Emacs was run uninstalled.
60a653f1 17906
048addec 179072001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 17908
048addec
JD
17909 * config.in (HAVE_WORKING_VFORK): New #undefs.
17910 * process.c (create_process):
17911 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
17912 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
17913 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
17914 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
17915 * m/intel386.h (HAVE_VFORK): Likewise.
17916 * m/mips-siemens.h (HAVE_VFORK): Likewise.
17917 * m/mips.h (HAVE_VFORK): Likewise.
17918 * s/freebsd.h (vfork): Remove #define.
17919 * s/lynxos.h (HAVE_VFORK): Remove #undef.
17920 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 17921
048addec 179222001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 17923
048addec
JD
17924 * s/hpux10.h (random): Add undef.
17925 (HAVE_RANDOM): Define it just once.
60a653f1 17926
048addec 179272001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17928
048addec 17929 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 17930
048addec 179312001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 17932
048addec
JD
17933 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
17934 scroll bars of the frame before deleting the frame itself. If the
17935 frame has a widget, delete the frame with XtDestroyWidget, and do
17936 not call XDestroyWindow before that.
60a653f1 17937
048addec 179382001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 17939
048addec 17940 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 17941
048addec 17942 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 17943
048addec 179442001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 17945
048addec
JD
17946 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
17947 excessively large.
60a653f1 17948
048addec
JD
17949 * insdel.c (make_gap_larger): New function.
17950 (make_gap_smaller): New function.
17951 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
17952 Call make_gap_smaller if arg is negative.
60a653f1 17953
048addec 179542001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17955
048addec
JD
17956 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
17957 Pass a dummy argument when calling interrupt_signal.
17958 (parse_menu_item): Mark disabled items before checking for empty def.
17959 (read_char_minibuf_menu_prompt): Make safety more visible.
17960 (read_key_sequence): Add a `first_unbound' variable.
17961 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
17962 unbound prefix as soon as we can detect it.
60a653f1 17963
048addec
JD
17964 * doc.c (Fsnarf_documentation): Add prototype.
17965 (get_doc_string): Handle negative arguments.
17966 (Fdocumentation): Use AREF and ASIZE.
17967 Move the calls to get_doc_string to a single place.
17968 Don't confuse an interactive-spec for a docstring reference.
17969 (Fdocumentation_property): Take advantage of the fact that
17970 get_doc_string now ignores the sign of the docstring position.
60a653f1 17971
048addec 17972 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 17973
048addec 179742001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17975
a64387ee 17976 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 17977
048addec 179782001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17979
048addec
JD
17980 * xterm.c (x_draw_image_relief): Use predefined macro instead of
17981 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 17982
048addec 179832001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 17984
048addec
JD
17985 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
17986 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 17987
048addec 17988 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 17989
048addec 179902001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17991
048addec 17992 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 17993
048addec 179942001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 17995
048addec 17996 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 17997
048addec 179982001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 17999
f63fd14e 18000 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 18001
048addec
JD
18002 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
18003 [!WM_MOUSELEAVE]: Define.
60a653f1 18004
048addec
JD
18005 * w32menu.c (current_popup_menu, get_menu_item_info):
18006 (set_menu_item_info): New vars.
18007 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
18008 (w32_menu_show): Set current_popup_menu.
18009 (add_menu_item): Allocate new strings for owner-drawn menu items
18010 and help strings.
18011 Use owner-draw for disabled menu items again.
18012 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
18013 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 18014
048addec
JD
18015 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
18016 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
18017 <WM_EXITMENULOOP>: Free menu strings.
18018 <WM_MOUSELEAVE>: Stop tracking mouse.
18019 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 18020
048addec
JD
18021 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
18022 and mouse face.
60a653f1 18023
048addec 180242001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 18025
048addec
JD
18026 The following changes add left-fringe and right-fringe
18027 frame parameters to adjust fringe widths, or remove one or
18028 both fringes.
60a653f1 18029
048addec
JD
18030 * frame.h (struct frame): Remove trunc_area_pixel_width and
18031 trunc_area_cols fields.
18032 (Qleft_fringe, Qright_fringe): Declare.
18033 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 18034
048addec
JD
18035 * frame.c (Qleft_fringe, Qright_fringe): New vars.
18036 (syms_of_frame): Initialize them.
60a653f1 18037
048addec
JD
18038 * window.c (coordinates_in_window): Handle separate left and right
18039 fringe widths.
60a653f1 18040
048addec
JD
18041 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
18042 and fringe_cols fields.
18043 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
18044 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
18045 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
18046 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
18047 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
18048 (x_compute_fringe_widths): Add prototype.
60a653f1 18049
048addec
JD
18050 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
18051 fill fringe evenly with small dashes.
f63fd14e 18052 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
18053 clip the new ZV bitmap to avoid jitter between rows.
18054 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
18055 background. Don't draw fringe bitmaps if fringe width is zero.
18056 (x_compute_fringe_widths): New function.
18057 (x_new_font, x_set_window_size_1): Use it.
60a653f1 18058
048addec
JD
18059 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
18060 (x_set_frame_parameters): Process `font' parameter before other
18061 parameters as fringe widths depend on it.
18062 (x_set_fringe_width): New function.
18063 (x_figure_window_size): Use x_compute_fringe_widths.
18064 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
18065 parameters.
60a653f1 18066
048addec
JD
18067 * widget.c (set_frame_size): Use x_compute_fringe_widths.
18068 (EmacsFrameSetCharSize): Ditto.
60a653f1 18069
048addec
JD
18070 * w32term.h: Merged changes from xterm.h.
18071 * w32term.c: Merged changes from xterm.c.
18072 * w32fns.c: Merged changes from xfns.c.
60a653f1 18073
048addec 180742001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18075
048addec 18076 * COPYING: Removed.
60a653f1 18077
048addec 180782001-11-29 Dave Love <fx@gnu.org>
60a653f1 18079
048addec
JD
18080 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
18081 extra extra slot.
18082 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 18083
048addec 180842001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18085
048addec
JD
18086 * fileio.c (file-name-coding-system)
18087 (default-file-name-coding-system): Doc fix (links to referenced
18088 variables added).
60a653f1 18089
048addec 180902001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18091
048addec
JD
18092 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
18093 Add dummy uses of gcproN variables.
60a653f1 18094
048addec
JD
18095 * category.c (describe_category, describe_category_1)
18096 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
18097 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 18098
048addec 180992001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 18100
048addec 18101 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 18102
048addec
JD
18103 * Makefile.in (lispdir): New variable, referring to build dir.
18104 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 18105
048addec 181062001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 18107
048addec
JD
18108 * w32menu.c (w32_menu_display_help): Actually add the new argument
18109 OWNER.
60a653f1 18110
048addec 181112001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 18112
048addec
JD
18113 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
18114 menu items. From David Ponce <dponce@wanadoo.fr>.
18115 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
18116 conditionally.
f63fd14e 18117 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 18118 help event in the owner frame's keyboard buffer.
60a653f1 18119
048addec
JD
18120 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
18121 (Fx_show_tip): Don't subtract last width from row width.
18122
18123 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
18124 (w32_read_socket): Use EQ to compare frames.
60a653f1 18125
048addec 181262001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 18127
048addec
JD
18128 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
18129 OVERLAPS_P.
60a653f1 18130
048addec 181312001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18132
048addec
JD
18133 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
18134 `gcpro3' and `gcpro4'.
60a653f1 18135
048addec 18136 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 18137
048addec 181382001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18139
048addec 18140 * ccl.c: Use AREF and ASIZE.
60a653f1 18141
048addec 181422001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18143
048addec
JD
18144 * lisp.h (run_hook_list_with_args): Remove.
18145 (LIST_END_P): Fix call to wrong_type_argument.
18146 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 18147
048addec 181482001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18149
048addec
JD
18150 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
18151 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 18152
048addec
JD
18153 * eval.c: Use AREF and ASIZE.
18154 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 18155
048addec
JD
18156 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
18157 which match the end of the file-name.
18158 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
18159 is not a valid env var, but leave it as is instead.
60a653f1 18160
048addec
JD
18161 * keymap.c (access_keymap): Handle t bindings like nil bindings.
18162 Make nil bindings in char-tables transparent.
18163 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 18164
048addec 181652001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 18166
048addec
JD
18167 * textprop.c (set_text_properties_1): Allow START, END in either order.
18168 Do nothing if range is empty.
60a653f1 18169
048addec 18170 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 18171
048addec
JD
18172 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
18173 (clean): Not here.
60a653f1 18174
048addec 181752001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18176
048addec
JD
18177 * textprop.c (set_text_properties_1): Clearly mark that the
18178 interval should not be empty.
60a653f1 18179
048addec
JD
18180 * intervals.c (graft_intervals_into_buffer):
18181 Don't call set_text_properties_1 on an empty interval.
60a653f1 18182
048addec 181832001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 18184
048addec 18185 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 18186
048addec
JD
18187 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
18188 don't lose the data in it.
60a653f1 18189
048addec 181902001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 18191
048addec 18192 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 18193
c62aec78 18194 * buffer.c (Fkill_buffer): Likewise.
60a653f1 18195
c62aec78 18196 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 18197
048addec 181982001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18199
048addec 18200 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 18201
048addec 182022001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18203
048addec
JD
18204 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
18205 Niemitalo <kon@iki.fi>.
60a653f1 18206
048addec 182072001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 18208
048addec 18209 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 18210
048addec
JD
18211 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
18212 (Fx_show_tip): Block input during frame creation.
18213 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 18214
048addec 182152001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 18216
048addec
JD
18217 * lread.c (Fload): Detect recursive load error for more than 3
18218 nestings of the same file.
18219 (Vrecursive_load_depth_limit): Variable deleted.
18220 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 18221
048addec 182222001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 18223
048addec
JD
18224 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
18225 mouse position if either left or top is not specified.
60a653f1 18226
048addec
JD
18227 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
18228 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
18229 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
18230 (my_create_tip_window): Assign tip_window.
18231 (x_create_tip_frame): Use same defaults as X.
18232 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 18233 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 18234
048addec
JD
18235 * w32term.c (x_after_update_window_line): Doc fix.
18236 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
18237 frames.
18238 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 18239
048addec
JD
18240 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
18241 for all Windowed systems.
60a653f1 18242
048addec 182432001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18244
048addec
JD
18245 * msdos.c (IT_clear_screen): If the frame's faces are not yet
18246 realized, use the initial screen colors to clear the screen.
60a653f1 18247
048addec 182482001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18249
048addec
JD
18250 * textprop.c (Fset_text_properties): Remove unused variables
18251 `unchanged', `prev_changed', `s' and `len'.
60a653f1 18252
048addec
JD
18253 * search.c (Freplace_match): Remove unused variable `inslen'.
18254
18255 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
18256
182572001-11-22 Jason Rumney <jasonr@gnu.org>
18258
18259 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
18260 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
18261 (my_create_tip_window): New function.
18262 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
18263 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
18264
182652001-11-20 Jason Rumney <jasonr@gnu.org>
18266
18267 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
18268 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
18269
18270 * w32fns.c (Vw32_system_coding_system): Remove.
18271 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
18272
182732001-11-19 Stefan Monnier <monnier@cs.yale.edu>
18274
18275 * fileio.c (Fwrite_region): Move choose_write_coding_system to
18276 after build_annotations.
18277
18278 * syntax.c (describe_syntax): Add dummy arg.
18279 (describe_syntax_1): Update call to describe_vector.
18280
18281 * category.c (describe_category): Add dummy arg.
18282 (describe_category_1): Update call to describe_vector.
18283
18284 * keymap.c (Fdescribe_vector): Add `describer' parameter.
18285 (describe_command, describe_translation): Add dummy second param.
18286 (describe_map): Call elt_describer with two arguments.
18287 (describe_vector_princ): Add `fun' parameter.
18288 Call it instead of the hardcoded `princ'.
18289 (describe_vector): Add arg `args'.
18290 Pass it as a new second argument to elt_describer.
60a653f1 18291
048addec 18292 * keymap.h (describe_vector): Update prototype.
60a653f1 18293
048addec
JD
18294 * frame.c: Don't include keymap.h any more.
18295 (keys_of_frame): Remove.
60a653f1 18296
048addec 18297 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 18298
048addec 18299 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 18300
048addec 183012001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 18302
048addec
JD
18303 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
18304 if defined, 0 otherwise.
18305 (MAP_FAILED): Define if not defined and use it to test mmap failure.
18306 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 18307
048addec 183082001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 18309
048addec 18310 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 18311
048addec 183122001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 18313
048addec
JD
18314 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
18315 (x_draw_bar_cursor): If the background color of the glyph under
18316 the cursor equals the frame's cursor color, use the glyph's
18317 foreground color for drawing the bar cursor.
18318 (x_after_update_window_line): Clear internal border in different
18319 circumstances.
18320 (w32_set_vertical_scroll_bar): Check for width and height > 0.
18321 (w32_draw_relief_rect): Correct relief by 1 pixel.
18322 (x_set_glyph_string_background_width):
18323 Set extends_to_end_of_line_p if the row's fill_line_p is set and
18324 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
18325 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
18326 if cursor_in_non_selected_windows is false.
18327 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
18328 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
18329 Notice if cursor gets overwritten.
18330 (notice_overwritten_cursor): Renamed from
18331 note_overwritten_text_cursor. Rewritten to take glyph widths
18332 into account, and to take X positions as parameters.
18333 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18334 around call to x_draw_glyphs.
18335 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18336 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18337 color to use for image glyph reliefs.
18338 (x_draw_image_relief): Accept zero tool_bar_button_relief.
18339 (glyph_rect): Remove unused variable `area'.
60a653f1 18340
048addec
JD
18341 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
18342 some items.
18343 (x_set_internal_border_width): Set frame garbaged when window
18344 doesn't exist yet.
18345 (Fx_create_frame): Accept zero tool_bar_button_relief.
18346 (x_clear_image_1, four_corners_best, image_background)
18347 (image_background_transparent): New functions.
18348 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18349 (gs_format): Add `:background' entry.
18350 (lookup_image): Set IMG's background color if specified.
18351 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18352 when appropriate.
18353 (x_clear_image_1): Reset `background_valid' and
18354 `background_transparent_valid' fields.
18355 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18356 calculating it here. Set IMG's background_transparent field.
18357 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18358 (enum png_keyword_index): Add PNG_BACKGROUND.
18359 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18360 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18361 (enum gif_keyword_index): Add GIF_BACKGROUND.
18362 (enum gs_keyword_index): Add GS_BACKGROUND.
18363 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18364 Pre-calculate image background color where necessary.
18365 (x_create_x_image_and_pixmap, xbm_load, gs_load):
18366 Use display info's n_cbits entry for screen depth.
18367 (Fx_show_tip): Remove unused variables `buffer', `top',
18368 `left', `max_width' and `max_height'.
60a653f1 18369
048addec 18370 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 18371
048addec 183722001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 18373
048addec 18374 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 18375
048addec 183762001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18377
048addec 18378 * frame.c (Fframe_live_p): Doc fix.
60a653f1 18379
048addec 183802001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 18381
048addec
JD
18382 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
18383 (message_dolog_marker3): New static variables hold three markers.
18384 (syms_of_xdisp): Initialize and staticpro them.
18385 (message_dolog): Use message_dolog_marker1..3 instead of
18386 allocating markers each time. Unchain them when done.
60a653f1 18387
048addec 183882001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 18389
048addec 18390 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 18391
048addec 183922001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 18393
048addec 18394 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 18395
048addec 183962001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 18397
048addec 18398 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 18399
048addec 184002001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 18401
048addec 18402 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 18403
048addec 184042001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 18405
048addec
JD
18406 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
18407 with invalid position.
60a653f1 18408
048addec 184092001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 18410
048addec 18411 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 18412
048addec
JD
18413 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
18414 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
18415 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 18416
048addec 18417 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 18418
048addec 184192001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18420
048addec
JD
18421 * fileio.c (build_annotations): Split off the tail.
18422 (build_annotations_2): New fun. Extracted from build_annotations.
18423 (Fwrite_region): Split the call to build_annotations into two
18424 calls to build_annotations and build_annotations_2.
077907d4 18425
048addec 184262001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 18427
048addec
JD
18428 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
18429 clear_waiting_for_input with argument.
1756e2fb 18430
048addec 18431 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 18432
048addec 18433 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 18434
048addec 18435 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 18436
048addec 18437 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 18438
048addec 184392001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 18440
048addec
JD
18441 * fileio.c (choose_write_coding_system): New fun, extracted
18442 from Fwrite_region.
18443 (Fwrite_region): Use it.
fa336b91 18444
048addec
JD
18445 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
18446 (funcall_lambda, run_hook_with_args): Make static and add prototype.
18447 (ml_apply, find_handler_clause): Add prototype.
fa336b91 18448
048addec 184492001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 18450
048addec 18451 * config.in: Add #undef HAVE_COFF_H.
fa336b91 18452
048addec
JD
18453 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
18454 Required for ISC 4.1.
fa336b91 18455
048addec 184562001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 18457
52eb0373 18458 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 18459 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 18460
048addec 184612001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 18462
048addec
JD
18463 The following changes are made to clean up the various internal
18464 references to the fringes to actually use the term `fringe' for
18465 them. Previously, they were called `flags areas', `bitmap areas',
18466 `left/right side of windows', or implicitly as `flags' or
18467 `bitmaps':
fa336b91 18468
048addec 18469 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 18470 Comments fixed. Use renamed symbols.
06e8f738 18471
f63fd14e 18472 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 18473
048addec
JD
18474 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
18475 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
18476 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 18477
048addec 18478 * msdos.c: Comment fix.
9ce647f4 18479
048addec 18480 * w32fns.c: Use renamed symbols.
9b784ab8 18481
f63fd14e 18482 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
18483 (fringe_bitmap_type): Renamed from bitmap_type.
18484 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18485 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
18486 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 18487
f63fd14e 18488 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
18489 (fringes_extra): Renamed from flags_areas_extra.
18490 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18491 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18492 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18493 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18494 (FRAME_X_LEFT_FRINGE_WIDTH):
18495 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18496 (FRAME_X_RIGHT_FRINGE_WIDTH):
18497 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 18498
048addec 18499 * widget.c: Use renamed symbols.
9f7e52b4 18500
f63fd14e 18501 * window.c: Comment fixes. Use renamed symbols.
048addec 18502 (coordinates-in-window-p): Doc fix.
fa336b91 18503
f63fd14e 18504 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 18505
048addec 18506 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 18507
048addec 18508 * xfns.c: Use renamed symbols.
89512fcd 18509
f63fd14e 18510 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
18511 (fringe_bitmap_type): Renamed from bitmap_type.
18512 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18513 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
18514 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 18515
f63fd14e 18516 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
18517 (fringes_extra): Renamed from flags_areas_extra.
18518 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18519 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18520 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18521 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18522 (FRAME_X_LEFT_FRINGE_WIDTH):
18523 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18524 (FRAME_X_RIGHT_FRINGE_WIDTH):
18525 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
18526
185272001-11-15 Jason Rumney <jasonr@gnu.org>
18528
18529 * w32menu.c (add-menu-item): Make help_echo and radio buttons
18530 work for most menu items. From David Ponce
18531 <david.ponce@wanadoo.fr>.
18532
185332001-11-15 Gerd Moellmann <gerd@gnu.org>
18534
18535 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
18536 Some x_set_* function expect to be called even if old and new
18537 value are equal.
18538
18539 * xdisp.c (build_desired_tool_bar_string): Accept zero
18540 tool_bar_button_relief.
18541
18542 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
18543
18544 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
18545
18546 * xterm.c (x_draw_bar_cursor): If the background color of the
18547 glyph under the cursor equals the frame's cursor color, use
18548 the glyph's foreground color for drawing the bar cursor.
18549
18550 * dispnew.c (direct_output_forward_char): Fix character/byte
18551 position comparison.
7d18891d 18552
048addec 185532001-11-15 Miles Bader <miles@gnu.org>
d2936d21 18554
048addec
JD
18555 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
18556 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
18557 Update arguments to find_field.
18558 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
18559 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
18560 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
18561 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 18562
048addec 185632001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 18564
048addec 18565 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 18566
048addec
JD
18567 * dispextern.h (image_background, image_background_transparent):
18568 Conditionalize on HAVE_X_WINDOWS.
7d18891d 18569
048addec 185702001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 18571
048addec 18572 * print.c (Fprin1_to_string): Doc fix.
7d18891d 18573
048addec 18574 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 18575
048addec 18576 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 18577
048addec 18578 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 18579
048addec 18580 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 18581
048addec 18582 * eval.c (syms_of_eval): Doc fix.
7d18891d 18583
048addec 18584 * coding.c (syms_of_coding): Doc fix.
7d18891d 18585
048addec 18586 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 18587
048addec 18588 * dispnew.c (syms_of_display): Doc fix.
9474c847 18589
048addec 18590 * category.c (Fget_unused_category): Doc fix.
9474c847 18591
048addec 18592 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 18593
048addec 185942001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 18595
048addec 18596 * print.c (prin1, print): Doc fix.
e3059a5d 18597
048addec 185982001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 18599
048addec
JD
18600 * fontset.h: Remove declarations of variables
18601 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 18602
048addec
JD
18603 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
18604 `Vclip_large_size_font'.
eae936e2 18605
048addec 186062001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 18607
048addec 18608 * w32fns.c: Doc fix.
ddb67bdc 18609
048addec 186102001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 18611
048addec 18612 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 18613
048addec 18614 * fns.c: Doc fix.
6e1b91d7 18615
048addec 18616 * emacs.c: Doc fix.
1c1d3d69 18617
048addec 18618 * coding.c: Doc fix.
1c1d3d69 18619
048addec
JD
18620 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
18621 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
18622 `new style' [w/`doc:' keyword].
b6f4c7ba 18623
048addec 186242001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 18625
048addec
JD
18626 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
18627 LeaveNotify events. Only FocusIn and FocusOut do that now.
18628 (x_display_and_set_cursor): Do display hollow cursors in active
18629 minibuffer windows when they are not selected.
b6f4c7ba 18630
048addec 186312001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 18632
048addec 18633 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
18634 * w32term.c: Change doc-string comments to `new style'
18635 [w/`doc:' keyword]. Doc fixes.
a89f435d 18636
048addec
JD
18637 * w32fns.c: Don't define max.
18638 (Fx_open_connection): Only execute once.
a4cd0cd7 18639
048addec 186402001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 18641
048addec
JD
18642 * ccl.c: Change macros to use do-while block instead of if-else.
18643 Use braces to follow GNU Coding Standards.
eafb659a 18644
048addec 186452001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 18646
048addec 18647 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 18648
048addec 18649 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 18650
048addec
JD
18651 * insdel.c (replace_range): Use adjust_markers_for_replace
18652 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 18653
78819ebb 18654 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 18655
048addec
JD
18656 * textprop.c (set_text_properties_1): New subroutine
18657 broken out of set_text_properties.
18658 (set_text_properties): Use set_text_properties_1.
91823618 18659
048addec
JD
18660 * intervals.c (graft_intervals_into_buffer):
18661 Use set_text_properties_1 to clear out properties.
91823618 18662
048addec
JD
18663 * search.c (Freplace_match): Use replace_range to insert
18664 and delete. Don't request property inheritance from
18665 surrounding text.
86928dfb 18666
048addec 186672001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 18668
048addec 18669 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 18670 vertical fonts. Allow them if face name is explicitly specified.
048addec 18671 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 18672
048addec 186732001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 18674
048addec
JD
18675 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
18676 instead of malloc/free.
a78e0303 18677
048addec 186782001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 18679
048addec
JD
18680 * xfaces.c (merge_face_vectors): Use braces to follow GNU
18681 Coding Standards.
18682 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 18683
048addec 18684 * buffer.c (Fbury_buffer): Likewise.
0c99b139 18685
048addec 18686 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 18687
048addec
JD
18688 * coding.c (encode_coding): Use precomputed value of `src'.
18689 (encode_coding): Remove unused variable `src_end'.
18690 (code_convert_region): Remove unused variables `count'.
830ddd77 18691
048addec 186922001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 18693
048addec
JD
18694 * w32term.c (x_display_and_set_cursor): Do not move system caret
18695 if cursor_glyph is NULL.
55c6d645 18696
048addec 186972001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 18698
048addec 18699 * keymap.c (access_keymap): Fix compilation error.
5de38842 18700
048addec 187012001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 18702
048addec 18703 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 18704
048addec 187052001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 18706
048addec
JD
18707 * intervals.c (graft_intervals_into_buffer):
18708 Remove #ifdef'd-out code.
18709 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 18710
048addec
JD
18711 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
18712 code (eval-current-buffer).
18713 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 18714
048addec 187152001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 18716
048addec 18717 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 18718
048addec 187192001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 18720
048addec 18721 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 18722
048addec
JD
18723 * keyboard.c (make_lispy_event): Check integerness and fix
18724 Lisp_Object/int mixup.
17893c65 18725
048addec 187262001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 18727
048addec 18728 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 18729
048addec
JD
18730 * fontset.c (fontset_font_pattern): Remove unused variable
18731 `family_registry'.
d5360cc7 18732
048addec 18733 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 18734
048addec 187352001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 18736
048addec 18737 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 18738
048addec
JD
18739 * buffer.c (Fkill_buffer): Don't delete auto save file
18740 if buffer is modified.
d9d54213 18741
048addec 187422001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 18743
048addec
JD
18744 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
18745 CHECK_NUMBER_CDR.
b116830b 18746
048addec 187472001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 18748
048addec 18749 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 18750
048addec 187512001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 18752
048addec 18753 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 18754
048addec 187552001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 18756
048addec 18757 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 18758
048addec 187592001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 18760
048addec
JD
18761 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
18762 the program image directly.
982f6c7e 18763
048addec 187642001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 18765
048addec 18766 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 18767
048addec 187682001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 18769
048addec
JD
18770 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
18771 and CHECK_BUFFER.
d31053f9 18772
048addec
JD
18773 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
18774 (record_char): Likewise.
d31053f9 18775
048addec
JD
18776 * keyboard.c (make_lispy_event): Don't insist a drag event must
18777 move to a different buffer position. Instead, check for moving at
18778 least double_click_fuzz.
982f6c7e 18779
048addec 18780 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 18781
048addec 18782 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 18783
048addec
JD
18784 * indent.c (current_column_1, Fmove_to_column): Separate the code
18785 for display-table glyphs from the code for buffer text, to fix
18786 bugs in the former.
830047fd 18787
048addec 187882001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 18789
048addec
JD
18790 * buffer.c (Fbuffer_local_value): New function.
18791 (syms_of_buffer): Defsubr it.
2df5238c 18792
048addec
JD
18793 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
18794 value of `cursor-in-non-selected-windows'.
4e397688 18795
048addec
JD
18796 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
18797 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
18798 (syms_of_xdisp): Initialize it.
48b0f3ae 18799
048addec 188002001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 18801
048addec 18802 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 18803
048addec
JD
18804 * coding.c: Change doc-string comments to `new style' [w/`doc:'
18805 keyword].
3ecaf7e5 18806
048addec
JD
18807 * eval.c (top_level_value, top_level_set): Remove commented and
18808 #ifdef'd-out code.
18809 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 18810
048addec 188112001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 18812
048addec 18813 * xfns.c: Include unistd.h, if it exists.
8db2e33b 18814
048addec 18815 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 18816
048addec 18817 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 18818
048addec 188192001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 18820
048addec
JD
18821 * lisp.h (CHECK_STRING_CAR): New macro.
18822 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
18823 treating XCAR and XCDR as lvalues.
18824 (openp): Use CHECK_STRING_CAR.
18825 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 18826
048addec 188272001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 18828
048addec
JD
18829 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
18830 (SIGMASKTYPE): Define.
1b1acc13 18831
048addec 18832 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 18833
048addec 188342001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 18835
048addec
JD
18836 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
18837 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
18838 Fix typos in comments.
6cb16f95 18839
048addec
JD
18840 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
18841 and #ifdef'd-out code.
18842 Fix and reindent comments.
6cb16f95 18843
048addec 18844 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 18845
048addec
JD
18846 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
18847 argument `i' in macros.
6cb16f95 18848
048addec
JD
18849 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
18850 `i' in macros.
7e9d3c2f 18851
048addec
JD
18852 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
18853 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
18854 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
18855 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
18856 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
18857 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
18858 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
18859 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
18860 in macros.
7e9d3c2f 18861
048addec
JD
18862 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18863 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
18864 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
18865 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
18866 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
18867 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
18868 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
18869 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
18870 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
18871 (remove unused second argument).
7e9d3c2f 18872
048addec 188732001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 18874
048addec
JD
18875 * syntax.c (describe_syntax): New wrapper.
18876 (Finternal_describe_syntax_value): Rename from describe_syntax.
18877 Don't insert space at front and \n at the end.
18878 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 18879
048addec
JD
18880 * regex.c (re_wctype): Try to fix some warnings.
18881 (regcomp, regexec): Don't forget the __restrict.
9ba48103 18882
048addec 188832001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 18884
048addec 18885 * textprop.c (Fget_char_property): Doc fix.
9ba48103 18886
048addec 188872001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 18888
048addec 18889 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 18890
048addec 18891 * data.c (Fsetq_default): Ditto.
c22e59e1 18892
048addec 18893 * callint.c (Finteractive): Ditto.
9271ed2c 18894
048addec 188952001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 18896
048addec
JD
18897 * macros.c: Don't include keymap.h any more.
18898
188992001-11-01 Richard M. Stallman <rms@gnu.org>
18900
18901 * data.c (Fmake_local_variable): Doc fix.
18902
18903 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
18904 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 18905
048addec 18906 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
18907 bindings along with or instead of the buffer local map.
18908 Make the overriding maps override what they should.
18909
f00691a3 189102001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
18911
18912 * window.c (grow_mini_window): Fix typo in comment.
18913
27188d11
GM
189142001-11-01 Gerd Moellmann <gerd@gnu.org>
18915
7b49b9d2
GM
18916 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
18917 (XTset_vertical_scroll_bar): Likewise.
18918
43f7c3ea
GM
18919 * xfns.c (x_build_heuristic_mask): Use four_corners_best
18920 instead of IMAGE_BACKGROUND.
c22e59e1 18921
b350c2e5
GM
18922 * xfns.c (four_corners_best): Reindent.
18923
c22e59e1 18924 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
18925 Handle :box so that it is possible to specify sexprs.
18926
bf00d461
EZ
189272001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
18928
18929 * s/hpux11.h: New file.
18930
f00691a3 189312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 18932
2b209b97
PJ
18933 * emacs.c (USAGE1): Show command line option --no-window-system
18934 instead of --no-windows in usage.
18935 (standard_args): Rename --no-windows to --no-window-system.
18936 (bug_reporting_address): Follow Emacs coding conventions.
18937
9dbc9081
PJ
18938 * eval.c (Fcommandp): Doc fix.
18939 Change doc-string comments to `new style' [w/`doc:' keyword].
18940
4e10df59
PJ
18941 * frame.c (Fframe_live_p): Doc fix.
18942
18943 * buffer.c (selective-display-ellipses): Doc fix.
18944
dd387b25
GM
189452001-10-31 Gerd Moellmann <gerd@gnu.org>
18946
fe957e65
GM
18947 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
18948
dd387b25
GM
18949 * xfaces.c (realize_x_face): If C is not a single-byte character,
18950 set the face's colors_copied_bitwise_p instead of the defaulted_p
18951 members which have a different meaning.
18952 (free_face_colors): Do nothing for a face whose colors have been
18953 copied bitwise.
18954
c22e59e1 18955 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 18956
f00691a3 189572001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 18958
687784e8
PJ
18959 * marker.c, mocklisp.c: Change doc-string comments to `new style'
18960 [w/`doc:' keyword].
2e1280f8 18961
b9d9a9b9
GM
189622001-10-31 Gerd Moellmann <gerd@gnu.org>
18963
18964 * fns.c (require_unwind): Return Lisp_Object.
18965
f00691a3 189662001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 18967
fa1361cb
PJ
18968 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
18969 (last-input-char): Revert doc-string to be the same as the
18970 doc-string of `last-input-event'.
18971
6c465a15 18972 * xdisp.c: Fix typos in comments.
48400103 18973
eafa3196
GM
189742001-10-31 Gerd Moellmann <gerd@gnu.org>
18975
18976 * window.c (grow_mini_window): Handle case that the root
18977 window is already smaller than the nominal mininum height.
18978
747d3f2a
SM
189792001-10-30 Stefan Monnier <monnier@cs.yale.edu>
18980
bf9bb76f
SM
18981 * emacs.c (main): Don't call keys_of_macros any more.
18982
18983 * lisp.h (keys_of_macros): Remove.
18984
18985 * macros.c (keys_of_macros): Remove.
18986
747d3f2a
SM
18987 * xfaces.c (Fface_attribute_relative_p): Declare args.
18988
5e905a57
JR
189892001-10-30 Jason Rumney <jasonr@gnu.org>
18990
18991 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
18992 (enum_font_cb2): Ignore fonts with vertical orientation.
18993
3a426197
RS
189942001-10-30 Richard M. Stallman <rms@gnu.org>
18995
18996 * keyboard.c (Finput_pending_p): Doc fix.
18997
a742d646
GM
189982001-10-30 Gerd Moellmann <gerd@gnu.org>
18999
259cf6bc
GM
19000 * xterm.c (x_after_update_window_line): Don't run the code
19001 clearing in borders for rows whose visible height is 0.
19002
3f99f948
GM
19003 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
19004 resized_p flag is set. If not set, use the much less flickering
19005 method previously used.
19006
19007 * dispnew.c (change_frame_size_1): Set frame's resized_p.
19008
19009 * frame.h (struct frame) <resized_p>: New member.
19010
b4a3be43
GM
19011 * lread.c (to_multibyte): Ensure read_buffer is at least twice
19012 as large as the number of bytes to convert.
747d3f2a 19013
a742d646
GM
19014 * lread.c (to_multibyte): New function.
19015 (read1): Use it.
19016
cacbb9e9
EZ
190172001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
19018
19019 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
19020
99cb6b2f
GM
190212001-10-30 Gerd Moellmann <gerd@gnu.org>
19022
327f42ee 19023 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
19024 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
19025 if the row's fill_line_p is set and drawing the last glyph with
19026 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 19027
99cb6b2f
GM
19028 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
19029
8e8223e2
SM
190302001-10-29 Stefan Monnier <monnier@cs.yale.edu>
19031
19032 * xmenu.c: Include coding.h and charset.h.
19033 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
19034 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
19035 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
19036 Explicitly set wv->help. Use `TRUE' rather than `True'.
19037 (menu_help_callback): Use empty_string.
19038
19039 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
19040 (Fx_popup_dialog): Explicitly init f.
19041 (w32_menu_display_help): Use empty_string.
19042
4d083a8f
RS
190432001-10-29 Richard M. Stallman <rms@gnu.org>
19044
b2304472
RS
19045 * fns.c (Frequire): Detect recursive try to require the same
19046 feature 3 or more levels deep, and get error.
19047 (require_unwind): New subroutine.
19048 (require_nesting_list): New variable.
19049 (syms_of_fns): Init and staticpro it.
19050
4d083a8f
RS
19051 * print.c (print_object): Clarify indication of insertion type.
19052
2fe41216
EZ
190532001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
19054
90480000
EZ
19055 * coding.c (syms_of_coding): Document that locale-coding-system is
19056 used for decoding input on X.
19057
2fe41216
EZ
19058 * window.c (Fscroll_left, Fscroll_right): Doc fix.
19059
f00691a3 190602001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
19061
19062 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
19063 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
19064
60ebcfe8
GM
190652001-10-29 Gerd Moellmann <gerd@gnu.org>
19066
9a7bdceb
GM
19067 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
19068 use NO_CURSOR if cursor_in_non_selected_windows is false.
19069
3f08fcd2
GM
19070 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
19071 the slant attribute if FRAME is t.
19072
0ccfdad2
GM
19073 * xfns.c (x_set_internal_border_width): Set frame garbaged
19074 when X window doesn't exist yet.
19075
ef253080
GM
19076 * xterm.c (x_after_update_window_line): Clear internal border
19077 in different circumstances.
b116830b 19078
60ebcfe8
GM
19079 * xterm.c (XTread_socket) <KeyPress>: Don't use
19080 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
19081 <handa@etl.go.jp>.
19082
73d25f9c
EZ
190832001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
19084
19085 * m/ibms390.h: New file. From Adam Thornton
19086 <athornton@sinenomine.net>.
19087
cac1daf0
GM
190882001-10-28 Gerd Moellmann <gerd@gnu.org>
19089
053b3256 19090 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 19091
cac1daf0
GM
19092 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
19093 a loop counter.
19094
f00691a3 190952001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 19096
f9711de4 19097 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 19098
4707d2d0
PJ
19099 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
19100 keyword].
19101 Fix typos in comments.
b116830b 19102
d883731c
PJ
19103 * emacs.c (bug_reporting_address): New function.
19104 Use it when displaying usage message.
19105
04012254
PJ
19106 * minibuf.c (read_minibuf): Remove unused external declaration of
19107 variable `Qread_only'.
19108
13b1a09c
PJ
19109 * keymap.c (access_keymap): Remove unused variable `charset'.
19110
5bbf4378
MB
191112001-10-28 Miles Bader <miles@gnu.org>
19112
19113 * xfaces.c (merge_face_heights): Handle TO being relative as well.
19114 Remove #ifdef'd-out code.
19115 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
19116 (syms_of_xfaces): Initialize them.
19117
1ce1e4ee
JR
191182001-10-27 Jason Rumney <jasonr@gnu.org>
19119
19120 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
19121 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
19122 position using the system caret.
19123
19124 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
19125 (w32_system_caret_height, w32_system_caret_x)
19126 (w32_system_caret_y): New variables for tracking system caret.
19127 (w32_initialize): Initialize them.
c2d53558 19128 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 19129
c2d53558
SM
19130 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
19131 New messages types.
1ce1e4ee
JR
19132
19133 * w32term.c (note_mouse_highlight): Clear old help_echo.
19134
f00691a3 191352001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 19136
bb4600a4
PJ
19137 * xterm.c: Fix typo in a comment.
19138
7db35a48
PJ
19139 * emacs.c: Fix typos in comments.
19140 Remove unnecessary spaces.
19141 Change doc-string comments to `new style' [w/`doc:' keyword].
19142 (USAGE2): Fix typos in usage string.
19143
a7248e4f
PJ
19144 * xterm.c: Fix typo in a comment.
19145
52eb0373 19146 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
19147 emacs.c.
19148
62725a92
GM
191492001-10-27 Gerd Moellmann <gerd@gnu.org>
19150
798dbe1f 19151 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 19152 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
19153 farther backward when target_y was not reached.
19154
62725a92
GM
19155 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
19156 Display errno only if non-zero.
19157 (sound_warning): New function.
19158 (vox_configure): Don't treat failing to set sample rate as error.
19159 (various places): Improve error messages.
19160
d4e34d24
EZ
191612001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
19162
944e6f60
EZ
19163 * fileio.c (Faccess_file): Run the argument filename through
19164 Fexpand_file_name, before using it.
19165
d4e34d24
EZ
19166 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
19167 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
19168
38d2af0c
GM
191692001-10-26 Gerd Moellmann <gerd@gnu.org>
19170
da80a8d5
GM
19171 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
19172
38d2af0c
GM
19173 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19174 Fix clearing in the case of scroll bars on the right.
c2d53558 19175
45de4a6f 191762001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
19177
19178 * w32gui.h (XImage): Add a dummy typedef.
19179
fbd5ceb2
GM
191802001-10-26 Gerd Moellmann <gerd@gnu.org>
19181
c2d53558 19182 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 19183
b23236fb
EZ
191842001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
19185
19186 * frame.c (Fframe_parameter): Fix last change.
19187
5d991fc4
EZ
19188 * fileio.c: Revert last change (which removed old commented-out
19189 version of expand-file-name). Add a comment that explains why
19190 this old version should not be removed.
19191
879eadc3
GM
191922001-10-25 Gerd Moellmann <gerd@gnu.org>
19193
75700ff2
GM
19194 * frame.c (Fframe_parameter): Fix a bug whereby some
19195 ``artificial'' frame parameters, like `minibuffer' were not
19196 obtained by calling Fframe_parameters.
19197
dfe92a6a
GM
19198 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
19199 cursor differently.
19200
879eadc3
GM
19201 * xdisp.c (move_it_vertically_backward): Compute line height
19202 differently. Add heuristic to try to be more compatible to 20.x.
19203
e1010ebe
SM
192042001-10-25 Stefan Monnier <monnier@cs.yale.edu>
19205
d73a471b
SM
19206 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
19207
d6da5a06
GM
19208 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
19209 boolean.
e1010ebe 19210
f66bd220
MB
192112001-10-25 Miles Bader <miles@gnu.org>
19212
19213 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
19214 BG is a pointer to a structure, not a structure.
19215 (gif_format, png_format): Add missing commas.
19216
d436d538
RS
192172001-10-24 Richard M. Stallman <rms@gnu.org>
19218
19219 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 19220 (syms_of_xfaces): Defsubr it.
d436d538 19221
f00691a3 192222001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
19223
19224 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
19225 variable `area'.
19226
f00691a3 192272001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 19228
c2d53558 19229 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 19230
e2a57b34
MB
192312001-10-25 Miles Bader <miles@gnu.org>
19232
19233 * dispextern.h (struct image): Add `background',
19234 `background_valid', and `background_transparent' fields.
19235 (image_background, image_background_transparent): New declarations.
19236 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
19237 * xfns.c (image_background, image_background_transparent)
19238 (four_corners_best): New functions.
c2d53558 19239 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
19240 (gs_format): Add `:background' entry.
19241 (lookup_image): Set IMG's background color if specified.
19242 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19243 when appropriate.
19244 (x_clear_image_1): Reset `background_valid' and
19245 `background_transparent_valid' fields.
19246 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19247 calculating it here. Set IMG's background_transparent field.
19248 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19249 (enum png_keyword_index): Add PNG_BACKGROUND.
19250 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19251 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19252 (enum gif_keyword_index): Add GIF_BACKGROUND.
19253 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 19254 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
19255 Pre-calculate image background color where necessary.
19256 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19257 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19258 color to use for image glyph reliefs.
19259
b547b6e8
GM
192602001-10-24 Gerd Moellmann <gerd@gnu.org>
19261
d9e3b8c6
GM
19262 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
19263 in full-width rows.
c2d53558 19264
b547b6e8
GM
19265 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19266 Fix clearing of area not covered by scroll bar.
19267
f00691a3 192682001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 19269
52eb0373 19270 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 19271 and `real_start'.
c2d53558 19272 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
19273 (glyph_rect): Remove unused variable `area'.
19274
76cb5e06
GM
192752001-10-24 Gerd Moellmann <gerd@gnu.org>
19276
bdbdebff 19277 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
19278
19279 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
19280 (row_containing_pos): Take additional argument DY.
19281 Treat rows ending in middle of char differently.
62e33982
GM
19282 (display_line): Handle tabs on window systems differently.
19283
19284 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
19285 with additional argument.
19286
19287 * dispextern.h (row_containing_pos): Adjust prototype.
19288
76cb5e06
GM
19289 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
19290 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
19291 (try_window_id, try_window_reusing_current_matrix)
19292 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 19293 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 19294
f00691a3 192952001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 19296
c9e60620
PJ
19297 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
19298 gnuemacs).
19299 (HAVE_BOXES): Fix typo in comment.
19300 (push_menu_pane): Fix typo in comment.
19301
52eb0373 19302 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
19303 of `Qwhen'.
19304 (single_display_prop_string_p): Remove unused local declarations
19305 of `Qwhen' and `Qmargin'.
19306 (string_buffer_position): Remove unused variable `around'.
19307 (store_frame_title): Remove unused variable `width'.
19308
15c565ac
PJ
19309 * window.c: Don't define max.
19310 (coordinates_in_window): Remove unused variable `uy'.
19311
a8818eb9
PJ
19312 * widget.c: Don't define max.
19313
996fee11
PJ
19314 * process.c: Don't define max.
19315 (create_process): Remove unused variable `buffer'.
19316
496e1a5b
GM
193172001-10-23 Gerd Moellmann <gerd@gnu.org>
19318
c2d53558 19319 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 19320
5905ae8b
EZ
193212001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
19322
19323 * xfaces.c (Finternal_set_lisp_face_attribute)
19324 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
19325 frame is on a windowed display.
19326
24db49fb
GM
193272001-10-23 Gerd Moellmann <gerd@gnu.org>
19328
c2d53558
SM
19329 * dispnew.c (sync_window_with_frame_matrix_rows):
19330 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
19331 of marginal areas.
19332
c2d53558 19333 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 19334
f0487f05
EZ
193352001-10-23 Andreas Schwab <schwab@suse.de>
19336
19337 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
19338 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
19339
f0a48a01
GM
193402001-10-23 Gerd Moellmann <gerd@gnu.org>
19341
c2d53558 19342 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
19343 REAL_END. Notice if cursor gets overwritten.
19344 (notice_overwritten_cursor): Take X positions as parameters.
19345 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19346 around call to x_draw_glyphs.
19347
f00691a3 193482001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 19349
fc11dff0
PJ
19350 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
19351 instead of C) and usage.
a50a10a0 19352
fc11dff0
PJ
19353 * editfns.c (char-to-string): Fix argument names (use CHAR instead
19354 of C) and usage.
a50a10a0
PJ
19355
19356 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
19357 `left', `max_width' and `max_height'.
19358
8738febd
GM
193592001-10-23 Gerd Moellmann <gerd@gnu.org>
19360
19361 * xdisp.c (display_line): For a tab continued to the next line,
19362 set row's ends_in_middle_of_char_p.
19363
653c329b
GM
193642001-10-22 Gerd Moellmann <gerd@gnu.org>
19365
19366 * xdisp.c (display_line): Fix computation of continuation lines
19367 width for TABs.
19368
f00691a3 193692001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 19370
7ba51063
PJ
19371 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
19372 `Qlaplace'.
19373
f958c5ac
PJ
19374 * fileio.c: Remove unused code.
19375
eb360291
MB
193762001-10-22 Miles Bader <miles@gnu.org>
19377
19378 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
19379 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
19380 Remove `DOC_STRINGS_IN_COMMENTS' cases.
19381
98515cf0
JR
193822001-10-21 Jason Rumney <jasonr@gnu.org>
19383
19384 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
19385
93026d88
EZ
193862001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
19387
19388 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
19389 (Finsert_string): Avoid the multi-line string literals warning.
19390
c9a95b79
MB
193912001-10-22 Miles Bader <miles@gnu.org>
19392
19393 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
19394 (Fdocumentation): Don't use it.
19395 (syms_of_doc): Don't initialize it.
19396
19397 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
19398 * print.c (Fwith_output_to_temp_buffer): Likewise.
19399 * window.c (Fsave_window_excursion): Likewise.
c2d53558 19400 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 19401 (Fsave_restriction): Likewise.
c2d53558
SM
19402 * eval.c (Frun_hooks, Frun_hook_with_args)
19403 (Frun_hook_with_args_until_failure)
19404 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
19405 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
19406 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
19407 (Funwind_protect, Fcondition_case): Likewise.
19408 * coding.c (Ffind_operation_coding_system): Likewise.
19409 * keyboard.c (Ftrack_mouse): Likewise.
19410
a3b10252
MB
194112001-10-21 Miles Bader <miles@gnu.org>
19412
c2d53558 19413 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
19414 (Fmake_hash_table): Add usage: string to doc string.
19415 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 19416 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
19417 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
19418 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
19419 (Fml_prefix_argument_loop): Likewise.
19420
f00691a3 194212001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 19422
c2d53558 19423 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 19424
c6f73eec
PJ
19425 * sysdep.c (init_sys_modes): Change doc-string comments to `new
19426 style' [w/`doc:' keyword].
19427
19428 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
19429 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
19430 comments to `new style' [w/`doc:' keyword].
19431
3cf3436e
JR
194322001-10-21 Jason Rumney <jasonr@gnu.org>
19433
19434 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
19435
c169b8f1
JR
19436 * w32term.c (remember_mouse_glyph): New function.
19437 (w32_mouse_position): Use it.
19438 (note_mouse_movement): If the mouse moved off the glyph, remember
19439 its new position.
c2d53558 19440
4fdd691b
JR
19441 * w32term.h (struct w32_output): Correct spelling of x_compatible.
19442 (w32_display_info): Add mouse_face_overlay.
19443
c169b8f1
JR
19444 * w32term.c (notice_overwritten_cursor): Renamed from
19445 note_overwritten_text_cursor. Rewritten to take glyph widths into
19446 account.
19447 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
19448 (fast_find_string_pos): New function.
19449 (fast_find_position): Return the correct vpos. Add parameter
19450 STOP. In the final row, stop before glyphs having STOP as object.
19451 Don't consider glyphs that are not from a buffer.
19452 (fast_find_position) [0]: Add a presumably more correct version
19453 for after 21.1.
19454 (expose_window_tree, expose_frame): Don't compute intersections here.
19455 (expose_window): Do it here instead.
19456 (expose_window_tree, expose_window, expose_line): Return 1 when
19457 overwriting mouse-face.
19458 (expose_window): If W is the window currently being updated, mark
19459 the frame garbaged.
19460 (expose_frame): If mouse-face was overwritten, redo it.
19461 (x_use_underline_position_properties): New variable.
19462 (syms_of_xterm): DEFVAR_BOOL it.
19463 (x_draw_glyph_string): Add comment to use it in future.
19464 (x_draw_glyph_string): Restore clipping after drawing box.
19465 Fix a computation of the underline position.
19466 (w32_get_glyph_string_clip_rect): Minor cleanup.
19467 (x_fill_stretch_glyph_string): Remove an assertion.
19468 (x_produce_glyphs): Don't convert multibyte characters
19469 to unibyte characters in unibyte buffers.
19470 (cursor_in_mouse_face_p): New function.
19471 (x_draw_stretch_glyph_string): Use it to choose a different GC
19472 when drawing a cursor within highlighted text. Don't draw
19473 background again if it has already been drawn.
19474 (x_draw_glyph_string_box): Don't draw a full-width
19475 box just because the glyph row's full_width_p flag is set.
19476 (x_draw_glyphs): Fix computation of rightmost x for
19477 full-width rows.
19478 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
19479 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 19480 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
19481 (x_update_window_end): Handle overwritten mouse face
19482 also for tool bar windows.
19483 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
19484 DRAW is DRAW_IMAGE_RAISED.
19485 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
19486 actually redrawn. Make the function static.
19487 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
19488 optimize away highlighting if we pass over that same overlay again.
19489 (note_mouse_highlight): Call mouse_face_overlay_overlaps
19490 to detect a case where we have to highlight a different region
19491 despite not having left the currently highlighted region.
19492 Set mouse_face_overlay in the x_display_info. Avoid changing the
19493 mouse pointer shape when show_mouse_face has already done it, or
19494 there is no need. Handle mouse-face and help-echo in strings.
19495 (glyph_rect): New function.
19496 (w32_mouse_position): Use it to raise the threshold for mouse
19497 movement event generation.
19498 (w32_initialize_display_info): Initialize the x_display_info's
19499 mouse_face_overlay.
19500 (w32_set_vertical_scroll_bar): Don't clear a zero height
19501 or width area.
19502 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
19503 a widget to zero height.
19504
3cf3436e 19505 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 19506 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
19507 equivalents in menu_items.
19508 (w32_menu_show): Don't overwrite an item's name with its key
19509 description in case the description is a multibyte string.
19510 (single_submenu): Some cleanup.
19511
19512 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
19513 (postprocess_image): New function.
19514 (lookup_image): Call it for all image types except PostScript.
19515 (x_kill_gs_process): Call postprocess_image.
19516 (tiff_error_handler, tiff_warning_handler): New functions.
19517 (tiff_load): Install them as handlers.
19518 (x_kill_gs_process): Recognize if someone has cleared the image
19519 cache under us.
19520 (valid_image_p): Protect better against invalid image
19521 specifications. Previous code could signal an error.
19522 (Fx_hide_tip, Fshow_tip): Doc fix.
19523 (Fv_max_tooltip_size): New variable.
19524 (syns_of_xfns): DEFVAR_LISP it.
19525 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 19526 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
19527 window_width. Use a maximum tooltip size specified by
19528 Vx_max_tooltip_size, if that has valid contents.
19529 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
19530 Make sure the tooltip is completely visible.
19531 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
19532 (Fx_create_frame): Adjust the frame's height for presence
19533 of the tool bar before calling x_figure_window_size.
19534 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
19535 when the window gets smaller.
19536 (x_set_foreground_color): Set frame's cursor_pixel.
19537 (x_set_foreground_color, x_set_background_color): Cleaned up.
19538 (x_set_font): Handle case of x_new_fontset returning the same name
19539 as before, although there was a change in fontsets.
19540
386ca361
MB
195412001-10-21 Miles Bader <miles@gnu.org>
19542
c2d53558 19543 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
19544 (Flogxor): Add usage: string to doc string.
19545 * charset.c (Fstring): Likewise.
19546 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
19547 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
19548
f00691a3 195492001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 19550
03be2694
PJ
19551 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
19552
19553 * alloc.c: Reindent DEFUNs with doc: keywords.
19554
19555 * abbrev.c (Finsert_abbrev_table_description): Reindent.
19556
14ff1ee0
PJ
19557 * frame.c: Change doc-string comments to `new style' [w/`doc:'
19558 keyword].
19559
2f147815 19560See ChangeLog.9 for earlier changes.
6922b018
KH
19561
19562;; Local Variables:
49b3bd82 19563;; coding: iso-2022-7bit
6922b018 19564;; End:
2a34a036 19565
2f147815 19566 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
19567 Copying and distribution of this file, with or without modification,
19568 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
19569
19570;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4